html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/897
Dataset viewer issues
Thanks for reporting ! cc @srush for the empty feature list issue and the encoding issue cc @julien-c maybe we can update the url and just have a redirection from the old url to the new one ?
I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user ```bash IndexError: list index out of range Traceback: File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 316, in <module> st.table(style) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta rv = marshall_element(msg.delta.new_element) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element return method(dg, element, *args, **kwargs) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table data_frame_proto.marshall_data_frame(data, element.table) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame _marshall_styles(proto_df.style, df, styler) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles translated_style = styler._translate() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate * (len(clabels[0]) - len(hidden_columns)) ``` - there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly.
38
Dataset viewer issues I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user ```bash IndexError: list index out of range Traceback: File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 316, in <module> st.table(style) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta rv = marshall_element(msg.delta.new_element) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element return method(dg, element, *args, **kwargs) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table data_frame_proto.marshall_data_frame(data, element.table) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame _marshall_styles(proto_df.style, df, styler) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles translated_style = styler._translate() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate * (len(clabels[0]) - len(hidden_columns)) ``` - there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly. Thanks for reporting ! cc @srush for the empty feature list issue and the encoding issue cc @julien-c maybe we can update the url and just have a redirection from the old url to the new one ?
[ -0.21869347989559174, 0.2789267301559448, -0.026432693004608154, 0.2816515564918518, -0.002390105277299881, 0.11150448769330978, 0.29812559485435486, 0.29886355996131897, -0.19562393426895142, 0.06475918740034103, -0.007638853974640369, 0.2664066553115845, -0.3950025141239166, 0.0988747850060463, -0.11228369176387787, -0.20077919960021973, 0.022098034620285034, -0.014663182199001312, 0.023218728601932526, -0.09434323012828827, -0.17187286913394928, -0.23184527456760406, -0.3681102991104126, 0.04724673181772232, 0.17304518818855286, -0.1287800669670105, -0.09841499477624893, -0.024854563176631927, -0.16575348377227783, -0.6458479166030884, 0.045323446393013, 0.2832353413105011, 0.13055366277694702, 0.4277634620666504, -0.00011410026490921155, -0.09524378925561905, 0.5284168124198914, 0.22078324854373932, -0.42465275526046753, -0.16562296450138092, -0.12310504913330078, -0.31841516494750977, 0.40103623270988464, -0.1876372992992401, 0.2975272536277771, -0.34791213274002075, 0.02075548842549324, -0.1845206618309021, 0.09018728882074356, 0.46960189938545227, 0.1956327259540558, 0.11081275343894958, -0.10841773450374603, 0.17521324753761292, 0.3652736246585846, 0.24911938607692719, -0.27971968054771423, -0.10152465105056763, 0.16327834129333496, -0.0791659727692604, -0.0257098525762558, 0.3140527307987213, -0.1640223115682602, -0.08618813753128052, 0.35732561349868774, -0.18821492791175842, -0.07579024881124496, -0.4510444104671478, -0.09530922025442123, 0.22415128350257874, 0.7972297072410583, -0.34952422976493835, -0.37971770763397217, -0.3601835072040558, 0.013120166957378387, -0.15770086646080017, 0.16194704174995422, 0.007930673658847809, -0.17826689779758453, 0.06684518605470657, -0.2203083634376526, -0.3423938751220703, -0.15497300028800964, 0.09650982171297073, -0.2113792449235916, 0.6253471374511719, 0.1779181808233261, 0.08076296746730804, 0.11390264332294464, -0.18350394070148468, 0.5544172525405884, -0.122894287109375, -0.1087578684091568, 0.1986275017261505, -0.269296258687973, -0.1737067997455597, 0.46110445261001587, -0.16223913431167603, -0.16378283500671387, 0.4153256416320801, 0.2714701294898987, 0.043507326394319534, -0.3141147494316101, 0.009632740169763565, 0.4544063210487366, 0.16718684136867523, 0.1473376452922821, 0.15721909701824188, 0.3739820718765259, -0.038006603717803955, 0.3260331451892853, 0.10134661942720413, 0.09789171814918518, -0.008679443970322609, -0.2973325252532959, -0.1162441298365593, 0.4545961022377014, -0.23305930197238922, -0.3032274544239044, 0.15261252224445343, -0.10096718370914459, -0.2630612254142761, 0.15321017801761627, 0.21911218762397766, -0.07060983031988144, 0.0922880619764328, -0.19886784255504608, 0.18614739179611206, -0.28147071599960327, -0.18969592452049255, -0.12012316286563873, -0.11570897698402405, -0.18967202305793762, -0.3266673684120178, 0.16346512734889984, -0.28762421011924744, 0.11970996111631393, -0.10036171227693558, -0.15472055971622467, 0.1945931613445282, 0.09082221984863281, -0.16367347538471222, -0.0009148493409156799, 0.06888014078140259, -0.23028405010700226, 0.13607005774974823, 0.11972449719905853, -0.26540809869766235, 0.0479443296790123, 0.2560563385486603, 0.25866037607192993, -0.17823192477226257, -0.14890742301940918, 0.17883054912090302, -0.22460998594760895, 0.07030308991670609, 0.044087957590818405, 0.364419549703598, -0.2849559485912323, -0.23955412209033966, -0.18931666016578674, -0.2350798100233078, -0.1941618025302887, -0.18783515691757202, 0.17204226553440094, 0.553048849105835, -0.4830779433250427, -0.04656262323260307, -0.4554138481616974, -0.05572035536170006, 0.04205082356929779, 0.0599898062646389, -0.19934824109077454, 0.1053987443447113, -0.3029535710811615, -0.06731437146663666, 0.5750011801719666, -0.21915312111377716, -0.4035128355026245, 0.27355554699897766, -0.17270001769065857, 0.02767029218375683, 0.023907281458377838, 0.13191302120685577, 0.1925353705883026, -0.30889180302619934, -0.38730961084365845, -0.03343970701098442, -0.06463798135519028, -0.22136130928993225, -0.31280413269996643, -0.10743006318807602, 0.5276129841804504, 0.03648827597498894, 0.13503043353557587, -0.05401191860437393, 0.27512675523757935, 0.009417452849447727, 0.365054726600647, 0.13583828508853912, 0.036221347749233246, 0.07428842782974243, -0.00893428921699524, 0.18160900473594666, -0.034314729273319244, -0.17889362573623657, -0.3708629608154297, 0.09832815080881119, 0.15788337588310242, 0.03196756914258003, 0.05781029164791107, -0.039584893733263016, -0.044182129204273224, 0.1766231507062912, -0.20023836195468903, 0.009159810841083527, 0.10592794418334961, 0.03717083856463432, -0.2283870428800583, 0.15017136931419373, -0.3601384460926056, -0.3355705440044403, -0.07564602047204971, 0.10331031680107117, -0.21842043101787567, 0.44582462310791016, -0.07755584269762039, -0.054632775485515594, 0.2532235085964203, 0.33029696345329285, 0.21765568852424622, -0.13389815390110016, -0.15472006797790527, 0.22553026676177979, 0.3120875358581543, 0.0964818000793457, 0.20382195711135864, 0.22028212249279022, 0.46315139532089233, -0.4166271984577179, 0.4512762725353241, 0.4248669743537903, 0.01578422263264656, -0.011136338114738464, -0.46551111340522766, 0.12089433521032333, -0.4010043740272522, 0.300658255815506, 0.12312301993370056, 0.0035371221601963043, 0.343237042427063, 0.002978857606649399, 0.038748599588871, -0.12947234511375427, 0.26904726028442383, 0.08172684907913208, -0.014612091705203056, -0.048484526574611664, -0.40411049127578735, 0.23435869812965393, -0.11109785735607147, 0.14269240200519562, -0.20790553092956543, 0.18280979990959167, -0.24221807718276978, -0.18724879622459412, 0.2078428566455841, 0.16497796773910522, 0.13817955553531647, 0.19748996198177338, 0.0077133700251579285, 0.17222289741039276, 0.1840900331735611, -0.1922399401664734, 0.22130617499351501, 0.26343294978141785, -0.22534887492656708, 0.10505123436450958, 0.11574666947126389, 0.0659235417842865, -0.20380941033363342, -0.3943380117416382, 0.15960492193698883, 0.3535884916782379, -0.275031179189682, -0.17222820222377777, -0.383197546005249, -0.7089204788208008, 0.08786552399396896, -0.059456516057252884, -0.3682585060596466, -0.5505607724189758, 0.130633145570755, 0.3110087215900421, -0.396045982837677, 0.2758710980415344, -0.5261024832725525, 0.0930708646774292, -0.08336413651704788, 0.3771485388278961, 0.029482856392860413, -0.3150152564048767, -0.14949262142181396, 0.11388729512691498, 0.37049466371536255, 0.3368932008743286, 0.33913177251815796, 0.22853583097457886, 0.09026642143726349, -0.5124881267547607, -0.3946644961833954, 0.18214233219623566, -0.08113067597150803, 0.35999271273612976, 0.03346184268593788, -0.030446425080299377, -0.00336538627743721, -0.014520637691020966, 0.1848326325416565, -0.03345276415348053, 0.08082292228937149, 0.037749890238046646, 0.22659699618816376, -0.056840818375349045, 0.004386838525533676, -0.2615484297275543, -0.1642235517501831, -0.5408257842063904, 0.023208487778902054, 0.17733536660671234, 0.2984771132469177, 0.21281969547271729, -0.11003264039754868, 0.08110928535461426, 0.17003095149993896, -0.1284521073102951, 0.08159206807613373, 0.25226759910583496, 0.23519380390644073, -0.1482934206724167, -0.3752681314945221, 0.14313046634197235, 0.16788774728775024, -0.18062883615493774, -0.028923112899065018, -0.6907395720481873, 0.236535906791687, 0.0004746299237012863, 0.09335389733314514, 0.08523605763912201, -0.11976009607315063, 0.23464226722717285, 0.39413633942604065, -0.028592070564627647, 0.060487307608127594, -0.1572936624288559, -0.16239216923713684, -0.027297906577587128, 0.24874362349510193, 0.061306025832891464, 0.29273900389671326, -0.07882584631443024, 0.41966909170150757, 0.16087184846401215, 0.13305523991584778, 0.33002930879592896, -0.12925609946250916, 0.38631847500801086, 0.08805082738399506, -0.3644263446331024, 0.3801056444644928, 0.22772058844566345, -0.24730023741722107, 0.3891529440879822, -0.046808868646621704, -0.22723674774169922, -0.1322389394044876, 0.11187514662742615, -0.017420727759599686, -0.22353172302246094, 0.005479678511619568, -0.33661818504333496, 0.07231121510267258, 0.10848318040370941, 0.16036951541900635, -0.08755083382129669, -0.4027014970779419, -0.0639725923538208, 0.035426001995801926, 0.12605251371860504, -0.3977695107460022, -0.6519767045974731, -0.14408214390277863, -0.4036361575126648, 0.3362407982349396, 0.13357199728488922, 0.2592409551143646, -0.138412207365036, -0.04285997152328491, 0.007549017667770386, 0.3046002686023712, 0.33385932445526123, -0.292635440826416, 0.030858881771564484, 0.2173914760351181, 0.2529657483100891, -0.36218369007110596, -0.12527576088905334, -0.12476593255996704, 0.4686269462108612, -0.005612529814243317, 0.10888604819774628, 0.11776914447546005, -0.1460489183664322, 0.1244104728102684, 0.08382616192102432, -0.33467555046081543, -0.02303839847445488, 0.08582155406475067, -0.1470865160226822, -0.11348018795251846, -0.25954580307006836, -0.29039841890335083, -0.08079172670841217, -0.11173031479120255, -0.016047371551394463, 0.005192709155380726, -0.1716824173927307, 0.12762972712516785, 0.1367407888174057, 0.4477115571498871, -0.07230186462402344, 0.22260096669197083, 0.27073734998703003, 0.2623252272605896, 0.3942553699016571, 0.3254240155220032, 0.16237841546535492, -0.10769376158714294, 0.10564421117305756, -0.1841585636138916, 0.39697813987731934, 0.28623053431510925, 0.04328053817152977, 0.027917269617319107, -0.0078064389526844025, 0.3893856406211853, -0.19835446774959564, 0.026047630235552788, 0.3512429893016815, -0.09674222022294998, -0.16604109108448029, -0.6548129916191101, 0.1735789179801941, -0.17576922476291656, -0.20775558054447174, 0.4948207437992096, 0.00519966334104538, -0.18102753162384033, 0.577065646648407, 0.03604159131646156, 0.9330321550369263, 0.26722484827041626, -0.10944284498691559, 0.2783373296260834, -0.12101105600595474, 0.6129657626152039, 0.01594618707895279, 0.2773436903953552, -0.3774954676628113, -0.32412189245224, -0.024355631321668625, 0.003222372382879257, 0.03885311633348465, -0.15783005952835083, -0.16309848427772522, 0.2387273758649826, -0.2339894026517868, -0.020034287124872208, -0.032912664115428925, 0.3232557475566864, 0.24245423078536987, 0.148151233792305, -0.1084032654762268, 0.11454682052135468, -0.06081525981426239, -0.18979886174201965, -0.14678135514259338, 0.01284310407936573, 0.10848179459571838, 0.0014937855303287506, -0.3961191773414612, 0.0321093387901783, -0.11987606436014175, 0.1515933871269226, -0.3794669806957245, -0.3329625725746155, 0.29180392622947693, 0.2802642285823822, -0.13891401886940002, 0.11287175118923187, -0.15638864040374756, 0.18297788500785828, 0.011346030980348587, 0.18128995597362518, 0.06381616741418839, 0.29058775305747986, 0.2833433449268341, -0.07673327624797821, -0.2789280116558075, 0.1410660594701767, 0.08366041630506516, -0.035202376544475555, -0.20294928550720215, -0.18588082492351532, 0.1857667863368988, -0.2779078483581543, 0.12682899832725525, -0.1243291050195694, -0.3048660457134247, -0.19105874001979828, 0.12626861035823822, 0.20975665748119354, -0.06697270274162292, 0.2531120777130127, 0.15373308956623077, -0.037299785763025284, -0.1281880885362625, 0.23231083154678345, 0.047071561217308044, 0.03881220519542694, 0.5362430810928345, 0.420065701007843, -0.1564953327178955, -0.18535569310188293, 0.13522395491600037, -0.19855698943138123, -0.11281288415193558, 0.033666640520095825, -0.40926504135131836, 0.07903735339641571, 0.08434144407510757, 0.15072140097618103, 0.14431244134902954, 0.1743263155221939, -0.4357248842716217, -0.24767239391803741, -0.01973947137594223, 0.2915026545524597, -0.15396352112293243, 0.1664566993713379, -0.43212002515792847, -0.14110857248306274, 0.12473098933696747, -0.17029033601284027, -0.3006683886051178, -0.1900259405374527, 0.019892310723662376, 0.18104341626167297, 0.026948023587465286, 0.18252277374267578, -0.20850291848182678, -0.4424801766872406, 0.03552742302417755, -0.26388096809387207, -0.08454348891973495, -0.16377303004264832, -0.08523917943239212, 0.17696666717529297, 0.07402904331684113, -0.441614031791687, -0.31481045484542847, -0.2439829707145691, -0.018949542194604874, -0.06310417503118515, -0.3076319396495819, -0.04782212898135185, 0.040485773235559464, 0.08202490210533142, -0.030759263783693314, -0.275333434343338, -0.007742300629615784, 0.24126625061035156, 0.11930067837238312, 0.5414618253707886, 0.2563711404800415, 0.2153194695711136, 0.163913294672966, -0.12501375377178192, -0.25805941224098206, 0.1643504500389099, -0.3087148666381836, 0.16522115468978882, 0.35490936040878296, -0.33222895860671997, 0.25568336248397827, 0.38087770342826843, 0.4932391941547394, 0.4313775300979614, -0.14327111840248108, -0.27896344661712646, 0.44242480397224426, 0.16406352818012238, -0.4123227596282959, -0.17633266746997833, 0.2795853614807129, 0.24381856620311737, 0.0173586867749691, 0.10301374644041061, 0.13619770109653473, -0.1607578694820404, -0.258586585521698, 0.06803269684314728, 0.4175926148891449, -0.20391955971717834, 0.3002224862575531, 0.4241985082626343, -0.21271763741970062, -0.06398451328277588, 0.17780737578868866, 0.21667608618736267, 0.14355018734931946, 0.6396573185920715, 0.1417243480682373, 0.07588149607181549, 0.4841807186603546, 0.16919027268886566, 0.12414915859699249, -0.283316969871521, -0.18182772397994995, 0.20283903181552887, -0.09950162470340729, 0.09306072443723679, 0.25929340720176697, 0.0468207411468029, 0.06315542012453079, -0.368815153837204, 0.04595262557268143, 0.2396121472120285, -0.007523585110902786, 0.21208195388317108, -0.35501939058303833, -0.2509006857872009, -0.04946153610944748, -0.026153037324547768, -0.09407386183738708, -0.07516621053218842, -0.17267918586730957, -0.0033780336380004883, -0.31689953804016113, -0.42752307653427124, 0.3732616603374481, 0.12408468127250671, 0.22689583897590637, -0.20286805927753448, -0.011472215875983238, 0.326961874961853, 0.17356860637664795, -0.024668995290994644, 0.4546070992946625, 0.2917700707912445, 0.13064470887184143, -0.23476123809814453, 0.031038843095302582, -0.06641402840614319, -0.14321757853031158, -0.13198956847190857, 0.13225501775741577, 0.030253935605287552, 0.19515982270240784, 0.1808881163597107, 0.07680181413888931, -0.053962115198373795, 0.4734235107898712, 0.23372429609298706, 0.05840510502457619, -0.2925066649913788, 0.33999818563461304, 0.14584918320178986, -0.5043172836303711, 0.07749049365520477, -0.3538140058517456, -0.20017248392105103, 0.18579216301441193, 0.7511010766029358, 0.03130217641592026, 0.1374647319316864, -0.05855390056967735, 0.061800651252269745, 0.09239806234836578, 0.3376110792160034, 0.4668431282043457, 0.03557272255420685, -0.13037902116775513, -0.23124109208583832, -0.8589655160903931, 0.09143437445163727, -0.21711117029190063, -0.2172408550977707, 0.5133663415908813, 0.12803921103477478, -0.05024772137403488, 0.22136050462722778, 0.3961094617843628, -0.010214760899543762, 0.027092378586530685, 0.05152493715286255, -0.3876029849052429, -0.13282640278339386, -0.13215883076190948, 0.3818223476409912, -0.3627648651599884, -0.1248885989189148, 0.2687462270259857, -0.4400666356086731, -0.02861975133419037, -0.05402977019548416, 0.03777613490819931, -0.040177442133426666, 0.14797306060791016, 0.19135886430740356, 0.13452009856700897, 0.1358107328414917, 0.21023693680763245, -0.026231251657009125, -0.41102659702301025, -0.27339574694633484, -0.24404723942279816, 0.20693784952163696, 0.09817598760128021, 0.3102208077907562, -0.326844722032547, 0.035486508160829544, -0.23431691527366638, 0.262662798166275, -0.04874765872955322, 0.19258998334407806, -0.4621894061565399, -0.0339333638548851, -0.14550894498825073, 0.21075484156608582, 0.07861153036355972, 0.16035166382789612, -0.011109627783298492, 0.08779814839363098, -0.1460525542497635, -0.30172306299209595, 0.41680318117141724, -0.3896627724170685, -0.17871874570846558, -0.009612884372472763, 0.19828495383262634, 0.36034271121025085, 0.037417732179164886, -0.3271518349647522, -0.19176194071769714, 0.2938881516456604, -0.14244699478149414, 0.005539536476135254, -0.08357198536396027, -0.18318696320056915, -0.0577193982899189, 0.1430443525314331, -0.0101633220911026, 0.1501580774784088, -0.20104655623435974, 0.1263788789510727, 0.09896530210971832 ]
https://github.com/huggingface/datasets/issues/897
Dataset viewer issues
Ok, I redirected on our side to a new url. ⚠️ @srush: if you update the Streamlit config too to `/datasets/viewer`, let me know because I'll need to change our nginx config at the same time
I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user ```bash IndexError: list index out of range Traceback: File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 316, in <module> st.table(style) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta rv = marshall_element(msg.delta.new_element) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element return method(dg, element, *args, **kwargs) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table data_frame_proto.marshall_data_frame(data, element.table) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame _marshall_styles(proto_df.style, df, styler) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles translated_style = styler._translate() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate * (len(clabels[0]) - len(hidden_columns)) ``` - there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly.
36
Dataset viewer issues I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though: - the URL is still under `nlp`, perhaps an alias for `datasets` can be made - when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user ```bash IndexError: list index out of range Traceback: File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 316, in <module> st.table(style) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta rv = marshall_element(msg.delta.new_element) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element return method(dg, element, *args, **kwargs) File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table data_frame_proto.marshall_data_frame(data, element.table) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame _marshall_styles(proto_df.style, df, styler) File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles translated_style = styler._translate() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate * (len(clabels[0]) - len(hidden_columns)) ``` - there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly. Ok, I redirected on our side to a new url. ⚠️ @srush: if you update the Streamlit config too to `/datasets/viewer`, let me know because I'll need to change our nginx config at the same time
[ -0.21869347989559174, 0.2789267301559448, -0.026432693004608154, 0.2816515564918518, -0.002390105277299881, 0.11150448769330978, 0.29812559485435486, 0.29886355996131897, -0.19562393426895142, 0.06475918740034103, -0.007638853974640369, 0.2664066553115845, -0.3950025141239166, 0.0988747850060463, -0.11228369176387787, -0.20077919960021973, 0.022098034620285034, -0.014663182199001312, 0.023218728601932526, -0.09434323012828827, -0.17187286913394928, -0.23184527456760406, -0.3681102991104126, 0.04724673181772232, 0.17304518818855286, -0.1287800669670105, -0.09841499477624893, -0.024854563176631927, -0.16575348377227783, -0.6458479166030884, 0.045323446393013, 0.2832353413105011, 0.13055366277694702, 0.4277634620666504, -0.00011410026490921155, -0.09524378925561905, 0.5284168124198914, 0.22078324854373932, -0.42465275526046753, -0.16562296450138092, -0.12310504913330078, -0.31841516494750977, 0.40103623270988464, -0.1876372992992401, 0.2975272536277771, -0.34791213274002075, 0.02075548842549324, -0.1845206618309021, 0.09018728882074356, 0.46960189938545227, 0.1956327259540558, 0.11081275343894958, -0.10841773450374603, 0.17521324753761292, 0.3652736246585846, 0.24911938607692719, -0.27971968054771423, -0.10152465105056763, 0.16327834129333496, -0.0791659727692604, -0.0257098525762558, 0.3140527307987213, -0.1640223115682602, -0.08618813753128052, 0.35732561349868774, -0.18821492791175842, -0.07579024881124496, -0.4510444104671478, -0.09530922025442123, 0.22415128350257874, 0.7972297072410583, -0.34952422976493835, -0.37971770763397217, -0.3601835072040558, 0.013120166957378387, -0.15770086646080017, 0.16194704174995422, 0.007930673658847809, -0.17826689779758453, 0.06684518605470657, -0.2203083634376526, -0.3423938751220703, -0.15497300028800964, 0.09650982171297073, -0.2113792449235916, 0.6253471374511719, 0.1779181808233261, 0.08076296746730804, 0.11390264332294464, -0.18350394070148468, 0.5544172525405884, -0.122894287109375, -0.1087578684091568, 0.1986275017261505, -0.269296258687973, -0.1737067997455597, 0.46110445261001587, -0.16223913431167603, -0.16378283500671387, 0.4153256416320801, 0.2714701294898987, 0.043507326394319534, -0.3141147494316101, 0.009632740169763565, 0.4544063210487366, 0.16718684136867523, 0.1473376452922821, 0.15721909701824188, 0.3739820718765259, -0.038006603717803955, 0.3260331451892853, 0.10134661942720413, 0.09789171814918518, -0.008679443970322609, -0.2973325252532959, -0.1162441298365593, 0.4545961022377014, -0.23305930197238922, -0.3032274544239044, 0.15261252224445343, -0.10096718370914459, -0.2630612254142761, 0.15321017801761627, 0.21911218762397766, -0.07060983031988144, 0.0922880619764328, -0.19886784255504608, 0.18614739179611206, -0.28147071599960327, -0.18969592452049255, -0.12012316286563873, -0.11570897698402405, -0.18967202305793762, -0.3266673684120178, 0.16346512734889984, -0.28762421011924744, 0.11970996111631393, -0.10036171227693558, -0.15472055971622467, 0.1945931613445282, 0.09082221984863281, -0.16367347538471222, -0.0009148493409156799, 0.06888014078140259, -0.23028405010700226, 0.13607005774974823, 0.11972449719905853, -0.26540809869766235, 0.0479443296790123, 0.2560563385486603, 0.25866037607192993, -0.17823192477226257, -0.14890742301940918, 0.17883054912090302, -0.22460998594760895, 0.07030308991670609, 0.044087957590818405, 0.364419549703598, -0.2849559485912323, -0.23955412209033966, -0.18931666016578674, -0.2350798100233078, -0.1941618025302887, -0.18783515691757202, 0.17204226553440094, 0.553048849105835, -0.4830779433250427, -0.04656262323260307, -0.4554138481616974, -0.05572035536170006, 0.04205082356929779, 0.0599898062646389, -0.19934824109077454, 0.1053987443447113, -0.3029535710811615, -0.06731437146663666, 0.5750011801719666, -0.21915312111377716, -0.4035128355026245, 0.27355554699897766, -0.17270001769065857, 0.02767029218375683, 0.023907281458377838, 0.13191302120685577, 0.1925353705883026, -0.30889180302619934, -0.38730961084365845, -0.03343970701098442, -0.06463798135519028, -0.22136130928993225, -0.31280413269996643, -0.10743006318807602, 0.5276129841804504, 0.03648827597498894, 0.13503043353557587, -0.05401191860437393, 0.27512675523757935, 0.009417452849447727, 0.365054726600647, 0.13583828508853912, 0.036221347749233246, 0.07428842782974243, -0.00893428921699524, 0.18160900473594666, -0.034314729273319244, -0.17889362573623657, -0.3708629608154297, 0.09832815080881119, 0.15788337588310242, 0.03196756914258003, 0.05781029164791107, -0.039584893733263016, -0.044182129204273224, 0.1766231507062912, -0.20023836195468903, 0.009159810841083527, 0.10592794418334961, 0.03717083856463432, -0.2283870428800583, 0.15017136931419373, -0.3601384460926056, -0.3355705440044403, -0.07564602047204971, 0.10331031680107117, -0.21842043101787567, 0.44582462310791016, -0.07755584269762039, -0.054632775485515594, 0.2532235085964203, 0.33029696345329285, 0.21765568852424622, -0.13389815390110016, -0.15472006797790527, 0.22553026676177979, 0.3120875358581543, 0.0964818000793457, 0.20382195711135864, 0.22028212249279022, 0.46315139532089233, -0.4166271984577179, 0.4512762725353241, 0.4248669743537903, 0.01578422263264656, -0.011136338114738464, -0.46551111340522766, 0.12089433521032333, -0.4010043740272522, 0.300658255815506, 0.12312301993370056, 0.0035371221601963043, 0.343237042427063, 0.002978857606649399, 0.038748599588871, -0.12947234511375427, 0.26904726028442383, 0.08172684907913208, -0.014612091705203056, -0.048484526574611664, -0.40411049127578735, 0.23435869812965393, -0.11109785735607147, 0.14269240200519562, -0.20790553092956543, 0.18280979990959167, -0.24221807718276978, -0.18724879622459412, 0.2078428566455841, 0.16497796773910522, 0.13817955553531647, 0.19748996198177338, 0.0077133700251579285, 0.17222289741039276, 0.1840900331735611, -0.1922399401664734, 0.22130617499351501, 0.26343294978141785, -0.22534887492656708, 0.10505123436450958, 0.11574666947126389, 0.0659235417842865, -0.20380941033363342, -0.3943380117416382, 0.15960492193698883, 0.3535884916782379, -0.275031179189682, -0.17222820222377777, -0.383197546005249, -0.7089204788208008, 0.08786552399396896, -0.059456516057252884, -0.3682585060596466, -0.5505607724189758, 0.130633145570755, 0.3110087215900421, -0.396045982837677, 0.2758710980415344, -0.5261024832725525, 0.0930708646774292, -0.08336413651704788, 0.3771485388278961, 0.029482856392860413, -0.3150152564048767, -0.14949262142181396, 0.11388729512691498, 0.37049466371536255, 0.3368932008743286, 0.33913177251815796, 0.22853583097457886, 0.09026642143726349, -0.5124881267547607, -0.3946644961833954, 0.18214233219623566, -0.08113067597150803, 0.35999271273612976, 0.03346184268593788, -0.030446425080299377, -0.00336538627743721, -0.014520637691020966, 0.1848326325416565, -0.03345276415348053, 0.08082292228937149, 0.037749890238046646, 0.22659699618816376, -0.056840818375349045, 0.004386838525533676, -0.2615484297275543, -0.1642235517501831, -0.5408257842063904, 0.023208487778902054, 0.17733536660671234, 0.2984771132469177, 0.21281969547271729, -0.11003264039754868, 0.08110928535461426, 0.17003095149993896, -0.1284521073102951, 0.08159206807613373, 0.25226759910583496, 0.23519380390644073, -0.1482934206724167, -0.3752681314945221, 0.14313046634197235, 0.16788774728775024, -0.18062883615493774, -0.028923112899065018, -0.6907395720481873, 0.236535906791687, 0.0004746299237012863, 0.09335389733314514, 0.08523605763912201, -0.11976009607315063, 0.23464226722717285, 0.39413633942604065, -0.028592070564627647, 0.060487307608127594, -0.1572936624288559, -0.16239216923713684, -0.027297906577587128, 0.24874362349510193, 0.061306025832891464, 0.29273900389671326, -0.07882584631443024, 0.41966909170150757, 0.16087184846401215, 0.13305523991584778, 0.33002930879592896, -0.12925609946250916, 0.38631847500801086, 0.08805082738399506, -0.3644263446331024, 0.3801056444644928, 0.22772058844566345, -0.24730023741722107, 0.3891529440879822, -0.046808868646621704, -0.22723674774169922, -0.1322389394044876, 0.11187514662742615, -0.017420727759599686, -0.22353172302246094, 0.005479678511619568, -0.33661818504333496, 0.07231121510267258, 0.10848318040370941, 0.16036951541900635, -0.08755083382129669, -0.4027014970779419, -0.0639725923538208, 0.035426001995801926, 0.12605251371860504, -0.3977695107460022, -0.6519767045974731, -0.14408214390277863, -0.4036361575126648, 0.3362407982349396, 0.13357199728488922, 0.2592409551143646, -0.138412207365036, -0.04285997152328491, 0.007549017667770386, 0.3046002686023712, 0.33385932445526123, -0.292635440826416, 0.030858881771564484, 0.2173914760351181, 0.2529657483100891, -0.36218369007110596, -0.12527576088905334, -0.12476593255996704, 0.4686269462108612, -0.005612529814243317, 0.10888604819774628, 0.11776914447546005, -0.1460489183664322, 0.1244104728102684, 0.08382616192102432, -0.33467555046081543, -0.02303839847445488, 0.08582155406475067, -0.1470865160226822, -0.11348018795251846, -0.25954580307006836, -0.29039841890335083, -0.08079172670841217, -0.11173031479120255, -0.016047371551394463, 0.005192709155380726, -0.1716824173927307, 0.12762972712516785, 0.1367407888174057, 0.4477115571498871, -0.07230186462402344, 0.22260096669197083, 0.27073734998703003, 0.2623252272605896, 0.3942553699016571, 0.3254240155220032, 0.16237841546535492, -0.10769376158714294, 0.10564421117305756, -0.1841585636138916, 0.39697813987731934, 0.28623053431510925, 0.04328053817152977, 0.027917269617319107, -0.0078064389526844025, 0.3893856406211853, -0.19835446774959564, 0.026047630235552788, 0.3512429893016815, -0.09674222022294998, -0.16604109108448029, -0.6548129916191101, 0.1735789179801941, -0.17576922476291656, -0.20775558054447174, 0.4948207437992096, 0.00519966334104538, -0.18102753162384033, 0.577065646648407, 0.03604159131646156, 0.9330321550369263, 0.26722484827041626, -0.10944284498691559, 0.2783373296260834, -0.12101105600595474, 0.6129657626152039, 0.01594618707895279, 0.2773436903953552, -0.3774954676628113, -0.32412189245224, -0.024355631321668625, 0.003222372382879257, 0.03885311633348465, -0.15783005952835083, -0.16309848427772522, 0.2387273758649826, -0.2339894026517868, -0.020034287124872208, -0.032912664115428925, 0.3232557475566864, 0.24245423078536987, 0.148151233792305, -0.1084032654762268, 0.11454682052135468, -0.06081525981426239, -0.18979886174201965, -0.14678135514259338, 0.01284310407936573, 0.10848179459571838, 0.0014937855303287506, -0.3961191773414612, 0.0321093387901783, -0.11987606436014175, 0.1515933871269226, -0.3794669806957245, -0.3329625725746155, 0.29180392622947693, 0.2802642285823822, -0.13891401886940002, 0.11287175118923187, -0.15638864040374756, 0.18297788500785828, 0.011346030980348587, 0.18128995597362518, 0.06381616741418839, 0.29058775305747986, 0.2833433449268341, -0.07673327624797821, -0.2789280116558075, 0.1410660594701767, 0.08366041630506516, -0.035202376544475555, -0.20294928550720215, -0.18588082492351532, 0.1857667863368988, -0.2779078483581543, 0.12682899832725525, -0.1243291050195694, -0.3048660457134247, -0.19105874001979828, 0.12626861035823822, 0.20975665748119354, -0.06697270274162292, 0.2531120777130127, 0.15373308956623077, -0.037299785763025284, -0.1281880885362625, 0.23231083154678345, 0.047071561217308044, 0.03881220519542694, 0.5362430810928345, 0.420065701007843, -0.1564953327178955, -0.18535569310188293, 0.13522395491600037, -0.19855698943138123, -0.11281288415193558, 0.033666640520095825, -0.40926504135131836, 0.07903735339641571, 0.08434144407510757, 0.15072140097618103, 0.14431244134902954, 0.1743263155221939, -0.4357248842716217, -0.24767239391803741, -0.01973947137594223, 0.2915026545524597, -0.15396352112293243, 0.1664566993713379, -0.43212002515792847, -0.14110857248306274, 0.12473098933696747, -0.17029033601284027, -0.3006683886051178, -0.1900259405374527, 0.019892310723662376, 0.18104341626167297, 0.026948023587465286, 0.18252277374267578, -0.20850291848182678, -0.4424801766872406, 0.03552742302417755, -0.26388096809387207, -0.08454348891973495, -0.16377303004264832, -0.08523917943239212, 0.17696666717529297, 0.07402904331684113, -0.441614031791687, -0.31481045484542847, -0.2439829707145691, -0.018949542194604874, -0.06310417503118515, -0.3076319396495819, -0.04782212898135185, 0.040485773235559464, 0.08202490210533142, -0.030759263783693314, -0.275333434343338, -0.007742300629615784, 0.24126625061035156, 0.11930067837238312, 0.5414618253707886, 0.2563711404800415, 0.2153194695711136, 0.163913294672966, -0.12501375377178192, -0.25805941224098206, 0.1643504500389099, -0.3087148666381836, 0.16522115468978882, 0.35490936040878296, -0.33222895860671997, 0.25568336248397827, 0.38087770342826843, 0.4932391941547394, 0.4313775300979614, -0.14327111840248108, -0.27896344661712646, 0.44242480397224426, 0.16406352818012238, -0.4123227596282959, -0.17633266746997833, 0.2795853614807129, 0.24381856620311737, 0.0173586867749691, 0.10301374644041061, 0.13619770109653473, -0.1607578694820404, -0.258586585521698, 0.06803269684314728, 0.4175926148891449, -0.20391955971717834, 0.3002224862575531, 0.4241985082626343, -0.21271763741970062, -0.06398451328277588, 0.17780737578868866, 0.21667608618736267, 0.14355018734931946, 0.6396573185920715, 0.1417243480682373, 0.07588149607181549, 0.4841807186603546, 0.16919027268886566, 0.12414915859699249, -0.283316969871521, -0.18182772397994995, 0.20283903181552887, -0.09950162470340729, 0.09306072443723679, 0.25929340720176697, 0.0468207411468029, 0.06315542012453079, -0.368815153837204, 0.04595262557268143, 0.2396121472120285, -0.007523585110902786, 0.21208195388317108, -0.35501939058303833, -0.2509006857872009, -0.04946153610944748, -0.026153037324547768, -0.09407386183738708, -0.07516621053218842, -0.17267918586730957, -0.0033780336380004883, -0.31689953804016113, -0.42752307653427124, 0.3732616603374481, 0.12408468127250671, 0.22689583897590637, -0.20286805927753448, -0.011472215875983238, 0.326961874961853, 0.17356860637664795, -0.024668995290994644, 0.4546070992946625, 0.2917700707912445, 0.13064470887184143, -0.23476123809814453, 0.031038843095302582, -0.06641402840614319, -0.14321757853031158, -0.13198956847190857, 0.13225501775741577, 0.030253935605287552, 0.19515982270240784, 0.1808881163597107, 0.07680181413888931, -0.053962115198373795, 0.4734235107898712, 0.23372429609298706, 0.05840510502457619, -0.2925066649913788, 0.33999818563461304, 0.14584918320178986, -0.5043172836303711, 0.07749049365520477, -0.3538140058517456, -0.20017248392105103, 0.18579216301441193, 0.7511010766029358, 0.03130217641592026, 0.1374647319316864, -0.05855390056967735, 0.061800651252269745, 0.09239806234836578, 0.3376110792160034, 0.4668431282043457, 0.03557272255420685, -0.13037902116775513, -0.23124109208583832, -0.8589655160903931, 0.09143437445163727, -0.21711117029190063, -0.2172408550977707, 0.5133663415908813, 0.12803921103477478, -0.05024772137403488, 0.22136050462722778, 0.3961094617843628, -0.010214760899543762, 0.027092378586530685, 0.05152493715286255, -0.3876029849052429, -0.13282640278339386, -0.13215883076190948, 0.3818223476409912, -0.3627648651599884, -0.1248885989189148, 0.2687462270259857, -0.4400666356086731, -0.02861975133419037, -0.05402977019548416, 0.03777613490819931, -0.040177442133426666, 0.14797306060791016, 0.19135886430740356, 0.13452009856700897, 0.1358107328414917, 0.21023693680763245, -0.026231251657009125, -0.41102659702301025, -0.27339574694633484, -0.24404723942279816, 0.20693784952163696, 0.09817598760128021, 0.3102208077907562, -0.326844722032547, 0.035486508160829544, -0.23431691527366638, 0.262662798166275, -0.04874765872955322, 0.19258998334407806, -0.4621894061565399, -0.0339333638548851, -0.14550894498825073, 0.21075484156608582, 0.07861153036355972, 0.16035166382789612, -0.011109627783298492, 0.08779814839363098, -0.1460525542497635, -0.30172306299209595, 0.41680318117141724, -0.3896627724170685, -0.17871874570846558, -0.009612884372472763, 0.19828495383262634, 0.36034271121025085, 0.037417732179164886, -0.3271518349647522, -0.19176194071769714, 0.2938881516456604, -0.14244699478149414, 0.005539536476135254, -0.08357198536396027, -0.18318696320056915, -0.0577193982899189, 0.1430443525314331, -0.0101633220911026, 0.1501580774784088, -0.20104655623435974, 0.1263788789510727, 0.09896530210971832 ]
https://github.com/huggingface/datasets/issues/888
Nested lists are zipped unexpectedly
Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`. See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details
I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ```
27
Nested lists are zipped unexpectedly I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ``` Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`. See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details
[ 0.22983865439891815, -0.46769362688064575, -0.10918630659580231, 0.39305758476257324, 0.011223489418625832, -0.007393099367618561, 0.24145455658435822, 0.04362607002258301, 0.17048215866088867, 0.12772095203399658, -0.1480688601732254, 0.4359340965747833, 0.2361755669116974, 0.2945674657821655, -0.06695239245891571, -0.09880286455154419, 0.2758646309375763, -0.07476748526096344, -0.19309943914413452, -0.11464733630418777, -0.3136233687400818, 0.26648807525634766, -0.36059921979904175, 0.05519518256187439, 0.08430588990449905, -0.05681658536195755, -0.18317247927188873, 0.1451127976179123, 0.1657562106847763, -0.08426449447870255, 0.5213051438331604, 0.037981003522872925, -0.0886196419596672, 0.5056127905845642, -0.00011407574493205175, 0.2123831957578659, 0.1992177516222, -0.05852765589952469, -0.24967478215694427, -0.34811103343963623, 0.0021732114255428314, -0.423300564289093, 0.19105881452560425, -0.2739611268043518, -0.057896688580513, -0.2668309211730957, -0.027284102514386177, -0.4505227506160736, 0.5443418025970459, 0.06471065431833267, 0.2045084834098816, 0.2837791442871094, 0.02361242100596428, 0.04814355820417404, 0.23273342847824097, 0.02051301673054695, -0.11908761411905289, 0.015383772552013397, 0.15558375418186188, 0.07093868404626846, 0.11597022414207458, -0.0186714269220829, 0.042326293885707855, 0.06944799423217773, 0.26141464710235596, 0.4643961489200592, -0.29565417766571045, -0.4514957070350647, -0.31632378697395325, 0.2530363202095032, 0.05607973411679268, -0.13172274827957153, -0.38578686118125916, -0.5079494118690491, -0.31579136848449707, -0.47941842675209045, 0.23641979694366455, 0.1448516696691513, -0.09737390279769897, 0.2124941498041153, -0.1825156807899475, 0.1744575947523117, -0.06920189410448074, 0.32131075859069824, -0.1747743785381317, 0.34117186069488525, -0.2386368066072464, 0.15469461679458618, -0.10075727105140686, -0.11286675930023193, 0.14959576725959778, -0.45613744854927063, 0.24088115990161896, 0.12730158865451813, -0.1851058304309845, -0.04078785330057144, 0.05415899679064751, -0.34831324219703674, 0.06750673055648804, 0.1040368303656578, -0.008131873793900013, 0.16140928864479065, -0.3872080445289612, -0.06633310765028, 0.2979254722595215, 0.2695171535015106, -0.08650954812765121, -0.029597286134958267, -0.14834950864315033, 0.2968333661556244, 0.1175827831029892, 0.015989048406481743, 0.2882221043109894, 0.06998617202043533, -0.13799820840358734, -0.030700448900461197, 0.35006046295166016, 0.1445537954568863, -0.3362068831920624, 0.10176112502813339, -0.47386831045150757, -0.07496586441993713, -0.03369726240634918, 0.06388772279024124, -0.32066503167152405, 0.15250128507614136, -0.007156968116760254, 0.24714455008506775, -0.13455799221992493, 0.34465956687927246, -0.2371739149093628, -0.19042791426181793, -0.06528487056493759, 0.06634996086359024, -0.04209839552640915, -0.09537865221500397, 0.16548682749271393, 0.2125788927078247, 0.1812344491481781, -0.2676430344581604, 0.03924459218978882, 0.01523006521165371, 0.32614070177078247, 0.14744669198989868, -0.10082167387008667, 0.3499752879142761, 0.22308792173862457, -0.18122805655002594, -0.1014811247587204, 0.05665583908557892, -0.519572377204895, -0.05185088887810707, 0.1581282764673233, 0.13381996750831604, -0.43782782554626465, 0.09688612818717957, -0.08043067902326584, 0.14716224372386932, 0.33095309138298035, 0.366914302110672, 0.03437428921461105, 0.03424975275993347, -0.5084052085876465, -0.22939017415046692, 0.0003264807164669037, -0.07389412820339203, -0.20717953145503998, -0.0262301042675972, -0.1019277349114418, 0.0716584250330925, 0.2804747521877289, 0.3513953387737274, -0.1295994222164154, 0.2629666030406952, -0.315141499042511, 0.2650033235549927, 0.10253285616636276, 0.017196472734212875, -0.37167268991470337, 0.21608081459999084, -0.15127116441726685, 0.5964812636375427, 0.01669975370168686, 0.009715566411614418, 0.09721604734659195, -0.18604038655757904, 0.40227994322776794, 0.19876310229301453, 0.33532217144966125, -0.2042618989944458, -0.12044791877269745, -0.08449994772672653, 0.4401879906654358, -0.23150035738945007, -0.5066450834274292, 0.06581240147352219, -0.20220530033111572, -0.05356590822339058, 0.27370595932006836, -0.08461783826351166, -0.0229788925498724, 0.4262552261352539, -0.050877053290605545, 0.17802676558494568, 0.006602051202207804, 0.05734319984912872, -0.5211535096168518, 0.17285144329071045, -0.13699790835380554, -0.15790481865406036, -0.3792926073074341, -0.10826162993907928, -0.1152304857969284, 0.38776034116744995, -0.18136543035507202, -0.0864766538143158, 0.15967035293579102, 0.15048900246620178, -0.07181917130947113, -0.12627221643924713, -0.10379833728075027, 0.12335197627544403, 0.0714033842086792, 0.09061752259731293, -0.6953414678573608, 0.39205676317214966, 0.278939425945282, 0.05484907329082489, -0.21763566136360168, 0.23173099756240845, -0.04565870016813278, -0.294031023979187, 0.05237783119082451, 0.22494414448738098, 0.23389598727226257, -0.15886570513248444, -0.4249761402606964, 0.02980494499206543, 0.3272553086280823, -0.01993388682603836, -0.16821987926959991, 0.4148458242416382, -0.07353020459413528, -0.086097851395607, -0.4220731556415558, 0.48356711864471436, -0.09402291476726532, 0.4029453992843628, -0.15990951657295227, -0.06250623613595963, 0.04806186258792877, 0.1892826110124588, -0.20367515087127686, -0.20968925952911377, -0.05292200669646263, 0.2995161712169647, 0.18771687150001526, 0.27527859807014465, -0.24358156323432922, 0.4470910131931305, 0.7448369860649109, 0.03508817031979561, -0.07206863909959793, 0.2781619429588318, -0.01953912526369095, -0.24792051315307617, -0.05993203818798065, 0.09525902569293976, 0.3652762770652771, 0.06466127187013626, 0.22163894772529602, 0.11589120328426361, -0.1229742094874382, -0.2536592483520508, -0.0077807605266571045, 0.26398974657058716, 0.15660163760185242, -0.010072901844978333, 0.28188657760620117, -0.07502321898937225, -0.25094717741012573, 0.11762906610965729, -0.01214221864938736, 0.0026536639779806137, -0.15096187591552734, 0.3371888995170593, -0.3686794340610504, 0.011347394436597824, 0.05871123820543289, -0.5471539497375488, -0.09466032683849335, -0.314431756734848, -0.1246987134218216, 0.2293175458908081, -0.03630326688289642, -0.021086012944579124, 0.5416874885559082, 0.007451847195625305, 0.26580914855003357, 0.05521811544895172, -0.07125536352396011, 0.07660261541604996, -0.23920542001724243, 0.07236622273921967, -0.07379712164402008, -0.21919968724250793, -0.019730156287550926, 0.2536250650882721, -0.21254046261310577, -0.21881525218486786, -0.20200374722480774, 0.00205138698220253, -0.4176459312438965, 0.2868642508983612, 0.12449733912944794, 0.3577861785888672, 0.08635349571704865, -0.13630492985248566, 0.02868897281587124, 0.7422841191291809, -0.29044249653816223, 0.0333610437810421, 0.15720465779304504, -0.013064878061413765, -0.27049893140792847, -0.33381786942481995, -0.2083854228258133, -0.06913502514362335, 0.6958265900611877, 0.23053522408008575, 0.134495347738266, 0.1984081119298935, -0.06064583361148834, -0.20142512023448944, 0.3159997761249542, -0.11957299709320068, -0.281266450881958, -0.3180610239505768, 0.2908923029899597, -0.15029236674308777, -0.43292319774627686, -0.17166151106357574, -0.23204079270362854, 0.1632244735956192, -0.05224558711051941, -0.26770684123039246, -0.051959577947854996, -0.3353409767150879, 0.26345711946487427, 0.11473394930362701, -0.018323460593819618, 0.3230096697807312, 0.005467304028570652, 0.003128195181488991, -0.0969487652182579, -0.08483456075191498, 0.2513020634651184, 0.031140824779868126, 0.1827380359172821, 0.149539977312088, 0.2881782650947571, 0.0694664865732193, 0.3716076612472534, 0.4487588107585907, -0.0575874038040638, 0.07087387889623642, -0.20504803955554962, 0.05901551619172096, -0.3577527105808258, -0.028577227145433426, -0.324898898601532, -0.09132631123065948, -0.11345572769641876, 0.14707453548908234, -0.044547710567712784, -0.14247845113277435, 0.22771626710891724, 0.24068138003349304, 0.05880442261695862, -0.17939357459545135, 0.05935174971818924, -0.13863171637058258, -0.06767577677965164, 0.12511949241161346, 0.10052082687616348, -0.2591460645198822, -0.21063292026519775, -0.18909400701522827, -0.2704480290412903, 0.32280290126800537, -0.13355112075805664, -0.48323968052864075, -0.3275100588798523, -0.29353857040405273, 0.08657453954219818, 0.06585904210805893, 0.3359496593475342, 0.12101244926452637, -0.33326050639152527, 0.17204882204532623, 0.004210596904158592, 0.6275285482406616, 0.18353413045406342, -0.1038910448551178, 0.2392941117286682, -0.37928539514541626, -0.5593376159667969, -0.22334635257720947, -0.30374613404273987, 0.058243103325366974, -0.07339689135551453, 0.70119708776474, -0.43229174613952637, -0.273514062166214, -0.15425680577754974, 0.022594161331653595, -0.1823846399784088, -0.11031940579414368, -0.1726929396390915, -0.03836733475327492, -0.08098453283309937, -0.31573954224586487, 0.12110311537981033, 0.022062186151742935, -0.20137201249599457, -0.5030109882354736, -0.030270105227828026, -0.1497216820716858, 0.03272862732410431, -0.17054426670074463, 0.20450156927108765, 0.18523812294006348, -0.0533427856862545, 0.18296366930007935, 0.3905874788761139, -0.3235558867454529, 0.5041468739509583, 0.16338588297367096, -0.4202219843864441, -0.05677008628845215, -0.05225806683301926, -0.03874068707227707, 0.17073549330234528, -0.2789490818977356, 0.3413132429122925, -0.20474430918693542, 0.18574276566505432, -0.423326700925827, 0.02619006112217903, 0.565671980381012, 0.1640043556690216, -0.1857062429189682, -0.4488421082496643, 0.46330711245536804, -0.03623894229531288, -0.23612399399280548, 0.21302226185798645, -0.47715044021606445, -0.22495050728321075, 0.08511721342802048, -0.09771668165922165, 0.6535158157348633, -0.014114990830421448, 0.32768112421035767, 0.7303431034088135, 0.25322943925857544, 0.6516917943954468, -0.20090222358703613, 0.1017262265086174, -0.03787175193428993, -0.2553575932979584, -0.2321525365114212, -0.09909224510192871, -0.24376913905143738, 0.07220989465713501, -0.1671479344367981, 0.32491961121559143, -0.20173844695091248, -0.09808999300003052, -0.10916686058044434, -0.22465451061725616, 0.3676774501800537, -0.19161982834339142, -0.24702802300453186, 0.09235921502113342, 0.14395484328269958, 0.27669259905815125, -0.029046617448329926, -0.17885304987430573, -0.3586544990539551, -0.08180214464664459, 0.01690080761909485, 0.05191870033740997, -0.04198676347732544, 0.293071985244751, 0.5869743227958679, -0.08690023422241211, -0.15372270345687866, 0.369027316570282, 0.14239054918289185, -0.10047267377376556, -0.09462197870016098, -0.15217258036136627, -0.21621212363243103, 0.11407015472650528, 0.14033466577529907, -0.19924402236938477, 0.18698880076408386, 0.140891432762146, -0.06719614565372467, -0.05837852507829666, -0.12352719902992249, -0.028110597282648087, -0.1539425253868103, 0.36285972595214844, -0.1732289046049118, -0.3580103814601898, -0.1335514336824417, 0.13376788794994354, -0.07433067262172699, 0.009341415017843246, 0.1406380832195282, -0.07206377387046814, -0.12723511457443237, 0.17935307323932648, -0.17114593088626862, -0.3843345046043396, -0.10063222050666809, 0.4531824588775635, 0.3465637266635895, 0.2332884669303894, 0.5220937132835388, 0.21173687279224396, -0.013121206313371658, -0.04133613407611847, 0.10719814151525497, 0.24509386718273163, 0.04290822148323059, 0.21023564040660858, -0.22966302931308746, 0.003604784607887268, -0.11854666471481323, 0.4313834309577942, 0.14014333486557007, -0.0068083256483078, -0.3198310434818268, -0.22560104727745056, -0.11995825171470642, 0.11462357640266418, 0.1380527913570404, 0.08693183958530426, -0.37894222140312195, 0.12099853157997131, 0.01727374456822872, -0.29595431685447693, -0.24424907565116882, 0.04403337836265564, -0.17469890415668488, 0.07344052195549011, 0.16506247222423553, -0.06725277006626129, 0.2527099549770355, 0.07984821498394012, 0.1422855406999588, 0.11946599930524826, -0.21475516259670258, -0.24838751554489136, -0.07793891429901123, 0.024731233716011047, -0.11276590079069138, -0.11586189270019531, 0.040220651775598526, 0.07329307496547699, 0.0024650264531373978, -0.2223990112543106, 0.06209788843989372, 0.05236450582742691, 0.10281473398208618, 0.09344411641359329, 0.11878935992717743, 0.11333675682544708, -0.08874060213565826, 0.02199578657746315, -0.11390610039234161, 0.33333611488342285, -0.0880424976348877, -0.00827435776591301, -0.3272550106048584, -0.037597715854644775, -0.3286813795566559, -0.004740960896015167, -0.08733844757080078, 0.051861707121133804, 0.38606181740760803, -0.15409058332443237, -0.17579711973667145, -0.14739353954792023, 0.3297919034957886, 0.41877031326293945, -0.18397687375545502, -0.11483345180749893, -0.31605812907218933, 0.15244737267494202, -0.04300135746598244, -0.19445188343524933, 0.2041420191526413, 0.4142589271068573, 0.04786693677306175, 0.35996174812316895, 0.07953830063343048, 0.12550070881843567, 0.010744832456111908, -0.20781558752059937, 0.09085243940353394, -0.0719287246465683, 0.3282034397125244, 0.29487067461013794, -0.012539885938167572, 0.18776437640190125, 0.13932596147060394, -0.10762165486812592, 0.13662199676036835, 0.5006203055381775, 0.4455506503582001, 0.15728344023227692, 0.46498310565948486, 0.2576409578323364, 0.16203194856643677, -0.396062970161438, -0.09343571960926056, 0.21196389198303223, -0.006873197853565216, 0.11351345479488373, 0.2420564889907837, 0.1350422203540802, 0.03175922483205795, -0.24651379883289337, -0.0710507407784462, 0.1377975046634674, 0.03526194021105766, -0.39077475666999817, 0.08549032360315323, -0.02346593141555786, -0.07257932424545288, -0.19070257246494293, -0.024769801646471024, -0.3372787833213806, 0.2577611207962036, -0.10212263464927673, 0.169078528881073, -0.17884264886379242, 0.07240702211856842, -0.03903346508741379, 0.16087490320205688, -0.011252269148826599, 0.39894434809684753, 0.32080337405204773, -0.16319303214550018, 0.009653240442276001, 0.0057606566697359085, 0.16891595721244812, 0.07398734986782074, -0.002522990107536316, 0.18512341380119324, 0.08491922914981842, -0.16913433372974396, -0.09216906875371933, 0.17388391494750977, -0.2618696391582489, -0.12276877462863922, 0.3215522766113281, 0.18026146292686462, -0.09504665434360504, 0.37880629301071167, 0.18229058384895325, 0.322346955537796, -0.4141274094581604, 0.3234882652759552, -0.36906278133392334, 0.06902072578668594, -0.1374792754650116, -0.21402788162231445, -0.48571786284446716, -0.1849493533372879, 0.45498424768447876, 0.06229623034596443, 0.3871009945869446, 0.07716698199510574, 0.10508977621793747, -0.1980641633272171, 0.5660416483879089, 0.15628772974014282, 0.08481044322252274, 0.21972185373306274, -0.016659393906593323, -0.12857025861740112, 0.19372282922267914, 0.02821202203631401, 0.07469113171100616, 0.04112553969025612, 0.20855724811553955, -0.012678541243076324, 0.19190911948680878, -0.24879412353038788, -0.3145218789577484, -0.23959939181804657, 0.12383963167667389, -0.6030551195144653, -0.21362625062465668, 0.05461001768708229, 0.13221023976802826, 0.022782452404499054, -0.13036878407001495, 0.31845077872276306, -0.053122811019420624, -0.04057837650179863, 0.00552012212574482, 0.24256157875061035, -0.34237468242645264, 0.18141059577465057, 0.0602165088057518, 0.3718806803226471, -0.14782144129276276, -0.02522716112434864, -0.12647110223770142, -0.25781235098838806, -0.1313624382019043, 0.07531435042619705, 0.5303564071655273, -0.10085241496562958, 0.37219104170799255, -0.16195343434810638, 0.2664504945278168, -0.021882880479097366, -0.11178078502416611, 0.24698226153850555, -0.4401486814022064, -0.3289557099342346, 0.25834715366363525, -0.2655971050262451, 0.12131458520889282, 0.14670877158641815, 0.6770505309104919, -0.009260378777980804, 0.14496038854122162, 0.2292739897966385, -0.12962152063846588, 0.4818064868450165, -0.20918403565883636, -0.4057362377643585, 0.1518884152173996, -0.1456570029258728, 0.15262991189956665, -0.22122620046138763, -0.008384034037590027, -0.09043277055025101, 0.4702816605567932, -0.31185996532440186, -0.30276229977607727, 0.029877357184886932, -0.04297846183180809, -0.08237195760011673, -0.24349015951156616, 0.3457027077674866, 0.12186317145824432, -0.20466843247413635, 0.3793984353542328, -0.22598274052143097 ]
https://github.com/huggingface/datasets/issues/888
Nested lists are zipped unexpectedly
Thanks. This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ```
28
Nested lists are zipped unexpectedly I might misunderstand something, but I expect that if I define: ```python "top": datasets.features.Sequence({ "middle": datasets.features.Sequence({ "bottom": datasets.Value("int32") }) }) ``` And I then create an example: ```python yield 1, { "top": [{ "middle": [ {"bottom": 1}, {"bottom": 2} ] }] } ``` I then load my dataset: ```python train = load_dataset("my dataset")["train"] ``` and expect to be able to access `data[0]["top"][0]["middle"][0]`. That is not the case. Here is `data[0]` as JSON: ```json {"top": {"middle": [{"bottom": [1, 2]}]}} ``` Clearly different than the thing I inputted. ```json {"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]} ``` Thanks. This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
[ 0.21846823394298553, -0.31721851229667664, -0.15455202758312225, 0.4096398949623108, 0.019808094948530197, 0.002264760434627533, 0.1813218891620636, 0.12848195433616638, 0.12042100727558136, 0.11076246947050095, -0.08942676335573196, 0.5233139395713806, 0.33097368478775024, 0.20519089698791504, -0.10971195250749588, -0.06532130390405655, 0.3139224350452423, -0.05463320016860962, -0.028981931507587433, -0.07130412757396698, -0.31602707505226135, 0.2633284628391266, -0.373917818069458, 0.04648687690496445, 0.13226333260536194, -0.052191443741321564, -0.25759756565093994, 0.3128819167613983, 0.10925886780023575, -0.07227545231580734, 0.4127608835697174, -0.07933719456195831, -0.10829538851976395, 0.4087023138999939, -0.0001130302989622578, 0.15144246816635132, 0.23433388769626617, -0.10968993604183197, -0.22925688326358795, -0.2896883487701416, 0.1124606803059578, -0.48461970686912537, 0.11443886905908585, -0.2547377645969391, -0.03969721496105194, -0.2845824956893921, -0.12641490995883942, -0.6383933424949646, 0.474534273147583, -0.125784233212471, 0.22453871369361877, 0.2374025583267212, 0.06650839745998383, 0.04225293919444084, 0.26525256037712097, -0.08348239958286285, -0.03733532875776291, 0.10731154680252075, 0.26515501737594604, -0.010516785085201263, 0.14353302121162415, -0.08464758098125458, -0.1027296707034111, 0.04347473755478859, 0.14240401983261108, 0.3884350061416626, -0.3656548261642456, -0.4055756628513336, -0.3164651393890381, 0.131606787443161, 0.12937749922275543, -0.08039190620183945, -0.33274731040000916, -0.43940237164497375, -0.3403942286968231, -0.43658503890037537, 0.14432290196418762, 0.2944246232509613, -0.035161226987838745, 0.20338912308216095, -0.14298032224178314, 0.14549729228019714, 0.0265144482254982, 0.39435523748397827, -0.09280715882778168, 0.5669481158256531, -0.1781388819217682, 0.20753327012062073, -0.14154082536697388, -0.09789137542247772, 0.3217332661151886, -0.5392983555793762, 0.11955425143241882, 0.08275315910577774, -0.08114480972290039, 0.02894745022058487, -0.025487221777439117, -0.29507842659950256, 0.020924188196659088, 0.24300797283649445, 0.0097585991024971, 0.09698043018579483, -0.24644052982330322, -0.09636350721120834, 0.3439161777496338, 0.2305067926645279, -0.1567775309085846, 0.048011500388383865, -0.1993892639875412, 0.24592189490795135, 0.06420625746250153, -0.07430221140384674, 0.33138957619667053, -0.018140245229005814, 0.00418226420879364, 0.09408259391784668, 0.32470887899398804, -0.006612975150346756, -0.3000766336917877, -0.01722334697842598, -0.6085447669029236, -0.12700600922107697, -0.01570926234126091, -0.021211162209510803, -0.2186053842306137, 0.23459529876708984, -0.06605677306652069, 0.38466107845306396, -0.1284172683954239, 0.21589703857898712, -0.1964946985244751, -0.19692601263523102, -0.14036056399345398, 0.049829065799713135, -0.022843454033136368, -0.07315710186958313, 0.19889117777347565, 0.30861884355545044, 0.098599374294281, -0.32327473163604736, 0.06425505876541138, 0.05886341258883476, 0.2998341917991638, 0.07703139632940292, 0.04181777313351631, 0.33012112975120544, 0.29619938135147095, -0.17138022184371948, -0.08284716308116913, 0.191727876663208, -0.6464290022850037, -0.06232437491416931, 0.1348978877067566, 0.15340395271778107, -0.44814974069595337, 0.04457901418209076, 0.038360558450222015, -0.03740425780415535, 0.35448241233825684, 0.24287956953048706, 0.014559738337993622, 0.09948129206895828, -0.3080238103866577, -0.19643136858940125, -0.129965141415596, -0.061015188694000244, -0.28429409861564636, 0.11406116187572479, -0.24709731340408325, 0.1278834491968155, 0.4151361286640167, 0.16777902841567993, -0.15441180765628815, 0.2156069576740265, -0.3377683162689209, 0.2923145890235901, 0.12592093646526337, 0.13458684086799622, -0.4144972860813141, 0.3028043806552887, -0.18075406551361084, 0.5522434115409851, 0.03827156499028206, -0.00589812221005559, -0.1193740963935852, -0.13126710057258606, 0.4894070327281952, 0.14287160336971283, 0.3969980776309967, -0.19767670333385468, -0.23311862349510193, -0.03538672253489494, 0.47138679027557373, -0.18430857360363007, -0.5262531638145447, 0.1478799283504486, -0.15204963088035583, -0.16896626353263855, 0.3451806604862213, -0.12723331153392792, 0.0350564643740654, 0.42894428968429565, 0.004361487925052643, -0.00037745386362075806, -0.024130359292030334, 0.0816468596458435, -0.3355897068977356, 0.09892245382070541, -0.2258460521697998, -0.2860853970050812, -0.4463807940483093, -0.01837702840566635, -0.1477212905883789, 0.25644174218177795, -0.1700652837753296, -0.030860986560583115, 0.17361479997634888, 0.2090606540441513, -0.11638885736465454, -0.3199608623981476, -0.01058768481016159, 0.01950436644256115, 0.3265605568885803, 0.09761381894350052, -0.6830196976661682, 0.40540552139282227, 0.2875942587852478, -0.011384502984583378, -0.14584994316101074, 0.06954414397478104, 0.15248243510723114, -0.25532859563827515, 0.01801726222038269, 0.3207511007785797, 0.15931099653244019, -0.1835813671350479, -0.34262609481811523, -0.15456049144268036, 0.15208570659160614, -0.0245114304125309, 0.024228332564234734, 0.5047953724861145, -0.06884045898914337, -0.03772035986185074, -0.27108559012413025, 0.5477904677391052, -0.25547727942466736, 0.4314804673194885, -0.2103954553604126, -0.054800018668174744, -0.0019483305513858795, 0.1101335734128952, -0.14516453444957733, -0.178276926279068, -0.051948923617601395, 0.3697812557220459, 0.13206139206886292, 0.2217053771018982, -0.12725362181663513, 0.5368810296058655, 0.6226233839988708, 0.014943066984415054, -0.10852361470460892, 0.23665636777877808, -0.017270803451538086, -0.23394975066184998, -0.08270301669836044, 0.13183024525642395, 0.4769046902656555, 0.16632461547851562, 0.23832844197750092, 0.06337382644414902, -0.04665733873844147, -0.2988387644290924, 0.04153332859277725, 0.294847697019577, 0.14174272119998932, 0.01894143968820572, 0.24715887010097504, -0.11037150770425797, -0.18901842832565308, 0.13108856976032257, -0.06762044876813889, -0.055550552904605865, -0.18472781777381897, 0.4284859001636505, -0.41488081216812134, 0.1286706030368805, 0.008959142491221428, -0.6086062788963318, -0.12592914700508118, -0.36743128299713135, -0.09627658128738403, 0.16301700472831726, -0.03327195718884468, -0.07937375456094742, 0.3183373510837555, -0.050881192088127136, 0.20746654272079468, 0.03442797809839249, -0.09795330464839935, 0.05492352321743965, -0.3040452301502228, 0.11654491722583771, -0.09927643835544586, -0.17880524694919586, -0.1328107714653015, 0.2860114872455597, -0.06282907724380493, -0.09838073700666428, -0.1677875518798828, -0.06133300065994263, -0.3298404812812805, 0.4358929395675659, -0.005303606390953064, 0.2740274667739868, 0.14201439917087555, -0.16843239963054657, -0.057389866560697556, 0.811455488204956, -0.22420041263103485, -0.05300113558769226, 0.10511051118373871, -0.12211050093173981, -0.26190170645713806, -0.28971704840660095, -0.24179108440876007, -0.08763465285301208, 0.5448135137557983, 0.23490263521671295, 0.06521274149417877, 0.012660050764679909, -0.09158466756343842, -0.40411680936813354, 0.4660032391548157, -0.20621547102928162, -0.2937188446521759, -0.3625425100326538, 0.38377103209495544, -0.17041903734207153, -0.3073122203350067, -0.1411053091287613, -0.2317969650030136, 0.2073753923177719, -0.05514907091856003, -0.20602737367153168, 0.06941016763448715, -0.29085731506347656, 0.17785221338272095, 0.01701154001057148, 0.015464103780686855, 0.2527927756309509, 0.1166265532374382, -0.022867372259497643, -0.12349403649568558, -0.0833316445350647, 0.13360509276390076, -0.117499940097332, 0.31879016757011414, -0.014285877346992493, 0.16774195432662964, 0.015017114579677582, 0.2484380304813385, 0.37850886583328247, 0.11093577742576599, 0.17586258053779602, -0.16044799983501434, 0.04115308076143265, -0.2754455804824829, -0.03361424431204796, -0.4888681471347809, -0.06389743089675903, -0.1470775008201599, 0.10494992882013321, -0.030632253736257553, -0.27734842896461487, 0.20617112517356873, 0.05426039919257164, -0.06454591453075409, -0.12424792349338531, 0.0656333863735199, -0.13539427518844604, -0.029889635741710663, 0.1548282504081726, 0.07809153944253922, -0.2866787314414978, -0.28046226501464844, -0.22605235874652863, -0.35234206914901733, 0.35819539427757263, -0.125173419713974, -0.5212157964706421, -0.344673752784729, -0.0681028738617897, 0.2324889898300171, 0.01551843248307705, 0.24906247854232788, 0.176851287484169, -0.37717384099960327, 0.09622558951377869, -0.04482332989573479, 0.5204252004623413, 0.22176006436347961, -0.03320395201444626, 0.3260820508003235, -0.1375298798084259, -0.4786703586578369, -0.2850190997123718, -0.30578485131263733, 0.21254299581050873, -0.1146567165851593, 0.6859155297279358, -0.40321043133735657, -0.1047901138663292, -0.066289022564888, 0.10852980613708496, -0.13283096253871918, -0.20472045242786407, -0.20618416368961334, -0.010784246027469635, -0.01900099217891693, -0.24658909440040588, 0.04286031424999237, 0.16728417575359344, -0.3029407560825348, -0.4507916569709778, 0.020264165475964546, -0.1985383927822113, 0.019310414791107178, -0.20843525230884552, 0.28440651297569275, 0.1069716289639473, -0.004723474383354187, 0.14851123094558716, 0.46337243914604187, -0.37363606691360474, 0.6574382185935974, 0.2314501851797104, -0.21348348259925842, -0.019956737756729126, -0.08278632909059525, 0.09313370287418365, 0.15651972591876984, -0.24625422060489655, 0.3424846827983856, -0.19023331999778748, 0.09401314705610275, -0.2823221683502197, -0.1878390908241272, 0.4364050626754761, 0.0247589573264122, -0.16641324758529663, -0.40406233072280884, 0.4862018823623657, -0.15261274576187134, -0.29207390546798706, 0.17256677150726318, -0.754637598991394, -0.15074096620082855, 0.06666459143161774, -0.07456699758768082, 0.7946745157241821, 0.13339906930923462, 0.16289028525352478, 0.5988460779190063, 0.15699400007724762, 0.34403344988822937, -0.23016707599163055, 0.12906165421009064, -0.12002450227737427, -0.18316929042339325, -0.15182562172412872, -0.10168126225471497, -0.22997117042541504, 0.21756777167320251, -0.17132653295993805, 0.3684467673301697, -0.30665481090545654, -0.2079586386680603, -0.08208061009645462, -0.2884984612464905, 0.2763155996799469, -0.13973753154277802, -0.3677797317504883, 0.08314050734043121, 0.08896045386791229, 0.18205636739730835, 0.01627471297979355, -0.2232857346534729, -0.40190669894218445, -0.1828644722700119, 0.16947047412395477, 0.18818581104278564, 0.0737713873386383, 0.2382064163684845, 0.5669986009597778, -0.09083918482065201, -0.2376575618982315, 0.23088695108890533, 0.037821754813194275, 0.00831727683544159, -0.05109290033578873, -0.08689521253108978, -0.049808524549007416, 0.10957176238298416, 0.13939794898033142, -0.07937031239271164, 0.001979079097509384, 0.14298823475837708, -0.18892070651054382, -0.03809202462434769, -0.13223882019519806, -0.07500146329402924, -0.2670207917690277, 0.30361902713775635, -0.06649886816740036, -0.49307018518447876, -0.0863872766494751, 0.16255736351013184, 0.0961073637008667, -0.04421500116586685, 0.1409607231616974, -0.05844759941101074, -0.060001179575920105, 0.21543022990226746, -0.2095668464899063, -0.3898906111717224, -0.1302579939365387, 0.48185378313064575, 0.35420843958854675, 0.3314030170440674, 0.5364952683448792, 0.11738216876983643, -0.005248349159955978, -0.06158904358744621, 0.17743703722953796, 0.17317643761634827, 0.0555574968457222, 0.2308420091867447, -0.2614547908306122, 0.13894878327846527, 0.025560466572642326, 0.2495398223400116, 0.1538054347038269, 0.09332039207220078, -0.2747827470302582, -0.2578545808792114, -0.01239633560180664, 0.0752706378698349, 0.24699416756629944, 0.02641274221241474, -0.3694920241832733, 0.016656331717967987, -0.06555544584989548, -0.2943483889102936, -0.2588205337524414, 0.11872745305299759, -0.07350396364927292, 0.0706629678606987, 0.06329511106014252, -0.04989288002252579, 0.09830642491579056, 0.17550891637802124, 0.178802028298378, 0.09733524173498154, -0.09398315101861954, -0.24234387278556824, -0.08931893110275269, 0.03993816673755646, -0.0994456559419632, -0.05129697918891907, 0.03122537210583687, 0.06194444000720978, 0.11776834726333618, -0.14081768691539764, -0.08007689565420151, -0.05016002431511879, 0.11515923589468002, 0.04947609826922417, 0.17524394392967224, 0.009220652282238007, -0.16704952716827393, 0.06506560742855072, -0.16281433403491974, 0.3521941304206848, -0.07341570407152176, 0.022996414452791214, -0.2047654390335083, -0.03578349947929382, -0.3333113193511963, -0.11818905919790268, -0.06016454100608826, 0.27368396520614624, 0.4423307180404663, -0.17544524371623993, -0.09912633895874023, -0.17106477916240692, 0.3002394139766693, 0.46212130784988403, -0.10710621625185013, -0.05822257697582245, -0.4228374660015106, 0.18977023661136627, -0.03016570396721363, -0.22065041959285736, 0.047797515988349915, 0.406750351190567, -0.011504355818033218, 0.3411349952220917, 0.07623589038848877, 0.0044590383768081665, 0.18758517503738403, -0.16098624467849731, 0.21293793618679047, 0.06910653412342072, 0.2861248254776001, 0.44576624035835266, -0.01882261037826538, 0.1424776017665863, 0.19348441064357758, -0.18987619876861572, 0.0758744478225708, 0.40383774042129517, 0.4355382025241852, 0.10026363283395767, 0.5404434204101562, 0.19175134599208832, -0.05077233165502548, -0.38685736060142517, -0.11489169299602509, 0.19246870279312134, 0.1613171100616455, 0.1440422683954239, 0.3425574004650116, 0.13288968801498413, -0.023340541869401932, -0.18781188130378723, -0.10280400514602661, 0.1639954000711441, 0.1770244538784027, -0.4165564775466919, 0.015663061290979385, -0.15860119462013245, -0.17369872331619263, -0.09607839584350586, -0.028437849134206772, -0.21678470075130463, 0.2008897066116333, -0.1973615139722824, 0.1110689789056778, -0.20864583551883698, 0.1426244080066681, 0.029180683195590973, 0.11351524293422699, -0.12199334800243378, 0.3748125731945038, 0.42253535985946655, -0.16913659870624542, 0.1362071931362152, -0.02146201767027378, 0.19881145656108856, 0.11221247911453247, -0.06230368837714195, 0.057575974613428116, 0.10412438213825226, -0.21802018582820892, -0.052204784005880356, 0.17241095006465912, -0.20578840374946594, -0.18325883150100708, 0.2945329546928406, 0.20708633959293365, -0.13004156947135925, 0.5459814667701721, 0.25381067395210266, 0.37271931767463684, -0.32818877696990967, 0.2841496169567108, -0.27043020725250244, -0.030711527913808823, -0.18450115621089935, -0.35614150762557983, -0.4568127393722534, -0.2268989235162735, 0.34890052676200867, 0.12652070820331573, 0.3013010025024414, 0.06697786599397659, 0.11086107790470123, -0.14326956868171692, 0.5278847217559814, 0.12736423313617706, -0.07210368663072586, 0.15256240963935852, -0.05744436755776405, -0.09450069814920425, 0.30243971943855286, -0.12914979457855225, 0.07928518950939178, -0.016669532284140587, 0.07803540676832199, 0.08335761725902557, 0.1977618783712387, -0.22638250887393951, -0.27168646454811096, -0.3187080919742584, 0.20240959525108337, -0.6554203629493713, -0.24554549157619476, 0.3589968681335449, 0.2067427784204483, 0.0032626576721668243, -0.14578381180763245, 0.25391900539398193, -0.029918663203716278, 0.007100626826286316, -0.018424611538648605, 0.04419238865375519, -0.24374565482139587, 0.18840555846691132, 0.15711736679077148, 0.4281647801399231, -0.06770853698253632, -0.07355520129203796, -0.13802573084831238, -0.27737897634506226, -0.19538293778896332, 0.14497537910938263, 0.5468018054962158, 0.03243272006511688, 0.34504154324531555, -0.10001416504383087, 0.36059412360191345, -0.10937149822711945, -0.14594748616218567, 0.10215114057064056, -0.27453047037124634, -0.23567984998226166, 0.21474173665046692, -0.272490918636322, 0.09016643464565277, 0.07185100764036179, 0.6004976034164429, 0.02556869015097618, 0.20153851807117462, 0.2285083383321762, -0.09280838817358017, 0.3809424638748169, -0.10586805641651154, -0.4406690001487732, 0.275593638420105, -0.13676968216896057, 0.10998836159706116, -0.2000235915184021, 0.20153272151947021, -0.07027217745780945, 0.5745113492012024, -0.2451063096523285, -0.1149062067270279, 0.028858836740255356, -0.056311119347810745, -0.11137725412845612, -0.18281403183937073, 0.21705400943756104, 0.1465844362974167, -0.17669235169887543, 0.2814050018787384, -0.1616724282503128 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yes right now `ArrayXD` can only be used as a column feature type, not a subtype. With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes. For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset. What do you think ?
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
85
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Yes right now `ArrayXD` can only be used as a column feature type, not a subtype. With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes. For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset. What do you think ?
[ -0.1616058647632599, 0.010842189192771912, -0.06661902368068695, 0.1772310733795166, 0.3133357763290405, 0.005771614611148834, 0.5568304657936096, 0.11533623933792114, -0.1397424042224884, 0.07902054488658905, 0.16181236505508423, 0.06118863821029663, -0.24828796088695526, 0.288280189037323, 0.1433373987674713, -0.4168108403682709, 0.1650111973285675, 0.2572270929813385, 0.055381178855895996, 0.11300928890705109, -0.18978232145309448, -0.20306065678596497, -0.22296305000782013, 0.19242574274539948, -0.20328198373317719, -0.13255785405635834, -0.23127755522727966, -0.17466405034065247, -0.2154565006494522, -0.48739713430404663, 0.3294045925140381, 0.14319773018360138, 0.2426173985004425, 0.13768184185028076, -0.00011549243936315179, -0.01075158640742302, 0.39260196685791016, 0.013295819982886314, -0.1953316181898117, 0.02770800143480301, 0.07736179977655411, -0.4880392253398895, 0.11426660418510437, -0.3838244080543518, 0.10639040917158127, -0.9378987550735474, -0.04163927584886551, -0.08971948176622391, 0.10508774220943451, 0.05009232461452484, 0.1922922134399414, 0.17157679796218872, 0.3899649679660797, -0.010545047000050545, 0.4836084246635437, 0.3242550492286682, -0.2707020044326782, -0.03869789466261864, 0.38310572504997253, 0.1397038847208023, 0.07713520526885986, -0.17487668991088867, -0.02848915010690689, 0.05742467939853668, 0.47208669781684875, 0.1713971048593521, 0.27273571491241455, -0.16845795512199402, -0.10269521921873093, 0.41052740812301636, 0.49524131417274475, -0.23191151022911072, -0.30759283900260925, -0.31157001852989197, 0.0032652495428919792, -0.17538052797317505, -0.10730891674757004, 0.21377497911453247, -0.12963420152664185, -0.014074616134166718, -0.15349991619586945, 0.15485556423664093, -0.44183120131492615, 0.31434735655784607, 0.10757222771644592, 0.13292661309242249, 0.07352164387702942, 0.2417719066143036, -0.24761153757572174, -0.5056386590003967, 0.43169349431991577, -0.2360917031764984, -0.027042310684919357, 0.14070208370685577, 0.0072508640587329865, -0.008092217147350311, -0.1698649525642395, -0.340079665184021, 0.47705698013305664, -0.10004924237728119, 0.3479023575782776, 0.011199384927749634, 0.16620004177093506, 0.09313507378101349, 0.040967971086502075, 0.3405994176864624, -0.12125637382268906, -0.27478834986686707, -0.15112841129302979, 0.11713913828134537, 0.17133532464504242, 0.07277172803878784, -0.2241661250591278, -0.1283685714006424, 0.2919897139072418, -0.10561364144086838, 0.218283012509346, 0.33135494589805603, 0.06216692924499512, -0.020299360156059265, -0.5062041878700256, -0.1305088996887207, -0.03679497539997101, 0.12053553760051727, 0.06742099672555923, 0.13499140739440918, -0.08093265444040298, 0.3865686058998108, 0.13140465319156647, -0.005581411998718977, -0.09676564484834671, -0.12211516499519348, -0.16393427550792694, -0.043226778507232666, -0.031127845868468285, 0.2660108208656311, -0.03623264282941818, -0.08435378223657608, 0.12068642675876617, 0.1519429087638855, -0.06731300801038742, 0.10368479788303375, 0.11265874654054642, 0.08755838871002197, -0.1935006082057953, -0.24137866497039795, -0.256832093000412, 0.009255997836589813, -0.2337166666984558, 0.34633225202560425, 0.019691362977027893, -0.25242626667022705, -0.45456764101982117, 0.1253437101840973, -0.24851176142692566, -0.03749185800552368, -0.23031321167945862, 0.22046858072280884, 0.2725120782852173, 0.01924791932106018, 0.10925991088151932, -0.07481549680233002, 0.040371183305978775, -0.4584236145019531, -0.01617778092622757, -0.06293419003486633, -0.2794123888015747, 0.1130257099866867, 0.005277689080685377, -0.010395444929599762, -0.13504961133003235, -0.023258555680513382, -0.18222250044345856, 0.0009785741567611694, -0.058332622051239014, 0.19947217404842377, 0.46916109323501587, 0.2001068890094757, -0.04428678750991821, 0.06833754479885101, 0.09939925372600555, -0.18403886258602142, 0.3197769522666931, 0.06001744046807289, -0.04580966755747795, -0.1721130609512329, -0.28265485167503357, 0.31459909677505493, -0.09646192938089371, -0.16959042847156525, -0.08001221716403961, -0.570695161819458, 0.3061467409133911, 0.14844247698783875, 0.09845558553934097, -0.07344701141119003, 0.04198402911424637, -0.41094619035720825, 0.2504273056983948, -0.40954476594924927, 0.24873587489128113, -0.07554197311401367, 0.2601502239704132, -0.09080006182193756, 0.11705780029296875, -0.27813342213630676, -0.8328419923782349, 0.20760810375213623, -0.3454921841621399, -0.10670027136802673, 0.029505006968975067, -0.18897239863872528, -0.1704300045967102, 0.14569897949695587, -0.13040697574615479, 0.15649540722370148, 0.08730138093233109, 0.003468558192253113, 0.056149955838918686, -0.29687798023223877, -0.25163188576698303, -0.35270044207572937, -0.06088186055421829, -0.020740889012813568, -0.40563032031059265, 0.4219987094402313, 0.14684507250785828, -0.2653646469116211, -0.2945556640625, 0.28713932633399963, -0.039131879806518555, -0.0812380388379097, -0.04055645316839218, 0.2517086863517761, -0.09432419389486313, 0.00020112097263336182, -0.5369085669517517, 0.17635507881641388, 0.034669917076826096, -0.17438602447509766, 0.3629363775253296, 0.006033023819327354, 0.026516057550907135, -0.13104234635829926, 0.23020359873771667, 0.45680224895477295, -0.0022053904831409454, 0.42854586243629456, -0.17449462413787842, -0.0404052808880806, -0.07211752980947495, 0.1969555765390396, -0.07365970313549042, -0.16585469245910645, -0.277336984872818, 0.23618410527706146, 0.15943869948387146, -0.026036972180008888, -0.20235176384449005, 0.15954847633838654, 0.2601911425590515, -0.10219037532806396, 0.046060312539339066, 0.14008915424346924, -0.2551285922527313, 0.07293637841939926, 0.16639049351215363, 0.15240636467933655, 0.16845156252384186, 0.20516924560070038, -0.12232455611228943, -0.02315058372914791, -0.1620202213525772, -0.09881573170423508, 0.21741873025894165, 0.17602741718292236, 0.4924130141735077, 0.09497592598199844, 0.4513031542301178, -0.18522728979587555, -0.19040825963020325, -0.004029624164104462, 0.027307765558362007, 0.07143706828355789, -0.15418708324432373, 0.056347303092479706, -0.09565813839435577, -0.06152600049972534, -0.08484412729740143, -0.6617176532745361, -0.04795769974589348, 0.010168850421905518, 0.003406273201107979, 0.002336151897907257, -0.17642070353031158, 0.2182946801185608, 0.07076770067214966, -0.12850527465343475, 0.2033282220363617, -0.15065862238407135, -0.16653671860694885, 0.00612871116027236, -0.024549245834350586, 0.06365042924880981, 0.24782095849514008, -0.0018961024470627308, 0.008557286113500595, 0.24483855068683624, 0.0823841392993927, -0.3313177525997162, -0.3151353895664215, -0.008297506719827652, -0.15285710990428925, 0.23263879120349884, 0.43191272020339966, -0.049544721841812134, 0.17052790522575378, -0.31250855326652527, 0.31043383479118347, 0.012928476557135582, -0.2742742896080017, 0.13886460661888123, -0.21981748938560486, 0.1748543679714203, -0.10596252977848053, 0.007749706506729126, -0.1792995035648346, -0.3620900511741638, 0.3248397707939148, 0.4152485728263855, 0.19818390905857086, 0.24612313508987427, 0.35202887654304504, 0.17199395596981049, -0.0005933013744652271, 0.017038265243172646, 0.144662007689476, 0.255849689245224, 0.3828645944595337, -0.02664838172495365, -0.1819358468055725, -0.13551141321659088, -0.9175083637237549, 0.09743975102901459, 0.37258994579315186, 0.06004806607961655, -0.17031478881835938, -0.15634964406490326, 0.27509987354278564, 0.08539426326751709, -0.013637775555253029, 0.44565531611442566, 0.123040109872818, 0.01617804728448391, -0.09629343450069427, -0.04932864382863045, 0.3227929472923279, 0.2541520297527313, -0.02902146428823471, 0.2366010546684265, 0.3795795440673828, -0.11615124344825745, 0.6229422092437744, 0.033568188548088074, -0.43437233567237854, 0.31520503759384155, -0.28014057874679565, -0.16842645406723022, -0.19517800211906433, -0.054130613803863525, -0.14075952768325806, -0.030709102749824524, -0.09051796793937683, -0.06000146269798279, -0.11867087334394455, -0.35015732049942017, 0.18309180438518524, 0.19644741714000702, 0.04432658106088638, 0.01433490589261055, 0.12710878252983093, 0.05627765133976936, 0.31027916073799133, -0.13237051665782928, 0.01031302660703659, -0.39227238297462463, -0.23436078429222107, -0.262718141078949, -0.26727068424224854, 0.16224703192710876, -0.0061255996115505695, -0.21945270895957947, 0.07165712118148804, -0.01615968346595764, 0.3092055320739746, 0.5854974985122681, 0.10129384696483612, 0.30754485726356506, -0.21156993508338928, 0.06563006341457367, -0.0478951521217823, 0.36906319856643677, -0.14956897497177124, -0.26047056913375854, 0.461935430765152, 0.11156883835792542, -0.45155519247055054, -0.17442820966243744, -0.016855429857969284, -0.12022531777620316, -0.2905304729938507, 0.15743345022201538, -0.39363449811935425, -0.025870278477668762, 0.3197917640209198, 0.2921334505081177, -0.036438677459955215, -0.13938705623149872, -0.13648980855941772, -0.09234753251075745, -0.18672849237918854, -0.2591008245944977, 0.029978780075907707, 0.32637661695480347, 0.15823815762996674, -0.3826510012149811, -0.46298718452453613, -0.13174504041671753, -0.2740681767463684, 0.050139810889959335, 0.4171842932701111, -0.10655239969491959, 0.15909995138645172, -0.31151625514030457, 0.04253746569156647, 0.2721482515335083, 0.16537782549858093, 0.1622941941022873, 0.041253529489040375, 0.004972454160451889, 0.10176932066679001, 0.4132731556892395, 0.17759552597999573, -0.13184285163879395, 0.13685140013694763, 0.03409157693386078, 0.08792293816804886, -0.22651873528957367, -0.2132219821214676, 0.4135330021381378, -0.35429131984710693, -0.020844953134655952, -0.3419051766395569, 0.6716282367706299, -0.027588970959186554, 0.11438369750976562, 0.20112566649913788, 0.3124503195285797, -0.18801455199718475, 0.2436714917421341, 0.6279744505882263, 0.8101685643196106, 0.08266092836856842, 0.09251216053962708, 0.658675491809845, 0.03957433998584747, -0.03682364523410797, 0.40765345096588135, 0.0628150999546051, -0.48584142327308655, 0.10586313158273697, -0.15238046646118164, -0.2838105857372284, 0.23521357774734497, 0.08376309275627136, -0.12775066494941711, -0.0044286055490374565, -0.0640946552157402, 0.4120749235153198, 0.10505148023366928, 0.013396747410297394, -0.3504088819026947, -0.2208382487297058, -0.1791243553161621, 0.045685671269893646, 0.05591707304120064, -0.4603314697742462, -0.04901544749736786, -0.3513258099555969, 0.025260109454393387, 0.025979258120059967, -0.12474991381168365, -0.2373867630958557, -0.37297558784484863, -0.06404677778482437, 0.4174681007862091, -0.5670108795166016, 0.11837171018123627, 0.21525128185749054, -0.017716966569423676, -0.280242919921875, -0.12612402439117432, -0.07662591338157654, 0.16729438304901123, -0.24284103512763977, -0.24451497197151184, -0.3188093900680542, 0.2764323651790619, 0.06746306270360947, -0.0918487012386322, -0.10105287283658981, 0.035077229142189026, -0.03839823231101036, -0.17447254061698914, -0.014175668358802795, 0.26458609104156494, -0.38082292675971985, -0.08093267679214478, -0.21530404686927795, -0.05247899517416954, -0.1254981905221939, 0.06651722639799118, 0.04758286848664284, 0.0788213387131691, -0.09338376671075821, 0.18830691277980804, 0.14968477189540863, -0.099390909075737, -0.020407438278198242, 0.5038692355155945, 0.3624753952026367, 0.30462363362312317, 0.20167134702205658, 0.05996520817279816, -0.1735871136188507, 0.34852105379104614, 0.44944801926612854, -0.505456268787384, 0.16326753795146942, 0.1418391466140747, -0.24781620502471924, -0.136399045586586, 0.5404826998710632, 0.03942708298563957, 0.21223291754722595, -0.07879011332988739, 0.01177358627319336, -0.4203207492828369, 0.4531819820404053, 0.08423423022031784, 0.3178556263446808, -0.2962433397769928, 0.00668336171656847, -0.016440236940979958, -0.003370314836502075, -0.2555532157421112, 0.0823913961648941, 0.13992466032505035, -0.12069195508956909, -0.43550246953964233, -0.06975677609443665, 0.08993668109178543, 0.13022196292877197, 0.056796878576278687, 0.04314390569925308, -0.473217248916626, -0.13663625717163086, -0.06306064128875732, 0.14652281999588013, 0.11138668656349182, -0.07509604841470718, 0.10886227339506149, -0.035666324198246, -0.39031982421875, -0.1736459732055664, -0.03850606083869934, -0.1806110441684723, -0.19874094426631927, -0.0751567929983139, 0.2943122684955597, 0.03074444830417633, -0.3263242840766907, 0.03146253898739815, -0.11105881631374359, 0.24274666607379913, 0.08386921882629395, 0.11728627234697342, -0.02869296260178089, -0.07102169096469879, -0.07779098302125931, 0.2803216576576233, -0.020985588431358337, -0.24576249718666077, 0.3363741636276245, -0.2781680226325989, -0.40029436349868774, -0.1711619347333908, 0.5554993152618408, 0.22211650013923645, -0.10556697845458984, 0.07754155993461609, 0.0982770323753357, 0.16081367433071136, -0.3934294581413269, 0.02503763511776924, 0.14382946491241455, 0.05193886160850525, 0.23611697554588318, 0.47880589962005615, 0.33442187309265137, -0.07776255160570145, -0.02870352566242218, 0.11932674795389175, -0.13267600536346436, -0.00020704418420791626, 0.043733928352594376, 0.6355383396148682, -0.1258765161037445, 0.04851850867271423, 0.48112767934799194, 0.19399385154247284, 0.4050464332103729, 0.04579596593976021, 0.0016180798411369324, 0.3823401927947998, 0.35683125257492065, -0.1043538898229599, 0.24558427929878235, -0.051192983984947205, 0.07298611849546432, 0.1793747991323471, 0.49257469177246094, -0.04423573613166809, 0.21955768764019012, 0.7067703604698181, 0.23347434401512146, -0.055462583899497986, -0.27714505791664124, -0.11557859182357788, 0.00632229819893837, -0.0822095274925232, -0.07511641085147858, -0.16911041736602783, -0.3798799216747284, -0.37404516339302063, -0.23215970396995544, -0.4588373303413391, 0.29070013761520386, -0.23360083997249603, 0.29342061281204224, -0.4083956778049469, 0.5953162908554077, 0.2168375551700592, 0.05169232189655304, -0.12795524299144745, 0.5140505433082581, 0.4316691756248474, -0.0781317800283432, -0.03608986362814903, 0.4701980948448181, 0.2200416773557663, 0.21576908230781555, -0.321706086397171, 0.005828579887747765, -0.09644462168216705, -0.22047503292560577, 0.10554719716310501, 0.06033924221992493, 0.14767923951148987, 0.17962603271007538, 0.29846978187561035, 0.06714339554309845, -0.09874489158391953, 0.21739526093006134, 0.19057050347328186, -0.09632180631160736, -0.2707991302013397, 0.38875824213027954, -0.2764681577682495, -0.0880609005689621, 0.013380009680986404, -0.08520781248807907, -0.3422195315361023, -0.03592367470264435, 0.2539329528808594, -0.16863349080085754, 0.06422337889671326, 0.03855234384536743, 0.05126967281103134, -0.21652017533779144, 0.5640590190887451, 0.037769705057144165, 0.37527427077293396, -0.0008872468024492264, 0.0180550217628479, -0.36693182587623596, 0.2662672996520996, -0.2843759059906006, 0.0349874421954155, 0.39765599370002747, 0.15150634944438934, -0.03191414475440979, 0.09352049231529236, 0.23489752411842346, 0.2483491152524948, -0.047607552260160446, 0.39871153235435486, -0.38231799006462097, -0.046815816313028336, 0.36741799116134644, 0.045746155083179474, -0.01667475327849388, -0.32895636558532715, 0.23131592571735382, -0.39871808886528015, -0.039868373423814774, 0.18515174090862274, 0.09116347134113312, 0.07333122193813324, 0.010180331766605377, 0.4556730091571808, -0.052139125764369965, -0.005795814096927643, 0.1570112109184265, -0.03470073640346527, -0.32264822721481323, -0.30237770080566406, -0.21031886339187622, 0.2482529878616333, 0.1688113659620285, 0.4968717396259308, -0.2597641050815582, 0.16700409352779388, -0.011452942155301571, -0.13931235671043396, -0.013844650238752365, 0.1429249495267868, -0.22754058241844177, 0.535584568977356, -0.4553389847278595, -0.026293955743312836, -0.032797589898109436, -0.06463058292865753, 0.045730315148830414, 0.09547442942857742, -0.10814712196588516, -0.5193560123443604, 0.675230860710144, -0.06918954849243164, -0.4102229177951813, 0.18904490768909454, -0.11859312653541565, 0.524876058101654, -0.07224000990390778, -0.25892210006713867, 0.03436595946550369, 0.3283545672893524, 0.019148550927639008, 0.08816197514533997, 0.04105028510093689, 0.07246711105108261, -0.09392272680997849, -0.2172296792268753, 0.17764946818351746, -0.13183003664016724, -0.12104769796133041, -0.3250684142112732, -0.5128965377807617 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
> Yes right now ArrayXD can only be used as a column feature type, not a subtype. Meaning it can't be nested under `Sequence`? If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
45
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> > Yes right now ArrayXD can only be used as a column feature type, not a subtype. Meaning it can't be nested under `Sequence`? If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested.
[ -0.1496906280517578, 0.04668372869491577, -0.08322662115097046, 0.11906826496124268, 0.2730080485343933, 0.12014759331941605, 0.6236188411712646, 0.1325291246175766, 0.0004311203956604004, 0.1169992983341217, 0.27267956733703613, 0.21372008323669434, -0.148215651512146, 0.08733724802732468, 0.14949770271778107, -0.3523186445236206, 0.230417400598526, 0.3752020597457886, 0.1984269618988037, 0.08082589507102966, -0.15122228860855103, -0.09654191136360168, -0.23079894483089447, 0.3625943064689636, -0.24300013482570648, -0.11532240360975266, -0.11991135776042938, -0.0832742378115654, -0.1397196650505066, -0.5142058730125427, 0.4007091224193573, 0.02552112750709057, 0.23229272663593292, 0.11462055891752243, -0.00011815008474513888, -0.014663752168416977, 0.4348636269569397, 0.05916467308998108, -0.12298323214054108, -0.004891648888587952, 0.10119488090276718, -0.40425175428390503, 0.26446327567100525, -0.42773595452308655, -0.024050861597061157, -0.9039795398712158, 0.04273006319999695, 0.006663702428340912, 0.12529325485229492, 0.20793132483959198, 0.14422693848609924, 0.1297578513622284, 0.4764493703842163, -0.1806751936674118, 0.4600851535797119, 0.14056441187858582, -0.29449576139450073, -0.08078397810459137, 0.5120019912719727, 0.1438986212015152, 0.09920655190944672, -0.31352096796035767, -0.13095687329769135, 0.07073833048343658, 0.4406239986419678, 0.3419971466064453, 0.2460748255252838, -0.25856509804725647, -0.26238712668418884, 0.3397231101989746, 0.41323134303092957, -0.17509904503822327, -0.1234787330031395, -0.1843847930431366, 0.03575180470943451, -0.28762900829315186, 0.016576498746871948, 0.10873798280954361, -0.2263009399175644, 0.015462663024663925, -0.009694600477814674, 0.12073826789855957, -0.4009537696838379, 0.31739917397499084, 0.1675133854150772, 0.29283809661865234, 0.07076152414083481, 0.26307645440101624, -0.10442563891410828, -0.34819573163986206, 0.575660765171051, -0.27388128638267517, 0.10033383220434189, 0.2177470326423645, -0.0703517347574234, 0.02296796441078186, -0.17509707808494568, -0.3643650710582733, 0.40702781081199646, -0.039715543389320374, 0.23409509658813477, -0.06545959413051605, 0.2624446451663971, 0.15167051553726196, -0.08502309024333954, 0.30856019258499146, -0.013591893017292023, -0.289694219827652, -0.09561772644519806, 0.1351405531167984, 0.06933991611003876, 0.04238012805581093, -0.2960186302661896, -0.07982068508863449, 0.2877987027168274, -0.036306869238615036, 0.21925626695156097, 0.22945037484169006, 0.05760381370782852, 0.00014275964349508286, -0.4910029470920563, -0.21630237996578217, -0.04690932109951973, 0.2278481423854828, 0.13353054225444794, -0.09123389422893524, -0.12097667157649994, 0.39316362142562866, 0.1145646795630455, 0.053909216076135635, -0.10548612475395203, -0.020339161157608032, -0.1385609656572342, 0.0261314008384943, -0.09256817400455475, 0.14986439049243927, 0.13249608874320984, -0.01770429126918316, 0.18242359161376953, 0.11768095195293427, 0.11834205687046051, 0.1672094762325287, 0.10507901757955551, 0.12161087989807129, -0.039088767021894455, 0.02139143832027912, 0.06077103316783905, -0.03228164091706276, -0.21466967463493347, 0.34453919529914856, -0.15020352602005005, -0.2812201976776123, -0.4611908793449402, 0.09512483328580856, -0.2679344415664673, 0.026811033487319946, -0.08556217700242996, 0.05317429453134537, 0.3206285536289215, -0.009290821850299835, 0.07006024569272995, 0.00848705880343914, 0.0941201001405716, -0.39101073145866394, 0.010252906009554863, -0.2070118635892868, -0.3107110261917114, 0.10500755906105042, -0.1832684725522995, -0.05113722011446953, -0.10334023088216782, -0.034176383167505264, -0.18306419253349304, 0.21111240983009338, -0.24384349584579468, 0.3546351194381714, 0.4485313892364502, 0.12384450435638428, 0.07614069432020187, 0.0937400758266449, 0.045883238315582275, -0.12583371996879578, 0.27544739842414856, 0.12349864840507507, -0.04208161309361458, -0.233223095536232, -0.19782254099845886, 0.13695552945137024, -0.06502366811037064, -0.32272180914878845, 0.09249070286750793, -0.3614102303981781, 0.45328593254089355, 0.03468704968690872, -0.055667635053396225, 0.1533394604921341, -0.1450343132019043, -0.3850354254245758, 0.18315863609313965, -0.45050451159477234, 0.10361063480377197, 0.11987666040658951, 0.21426746249198914, -0.07738381624221802, 0.06935600936412811, -0.3480021059513092, -0.7058080434799194, 0.19832026958465576, -0.3318617343902588, -0.05108105391263962, -0.032328709959983826, -0.1590729057788849, -0.21612626314163208, 0.18692931532859802, -0.2282208949327469, 0.12363190948963165, 0.065497986972332, -0.010188333690166473, 0.12699244916439056, -0.2844242751598358, -0.3284109830856323, -0.33247387409210205, -0.027413439005613327, -0.046229030936956406, -0.5676481127738953, 0.43373435735702515, -0.015260202810168266, -0.38344424962997437, -0.2677718698978424, 0.2581307291984558, 0.04498498886823654, -0.06546362489461899, 0.07356774061918259, 0.20841017365455627, -0.08868352323770523, -0.1237078458070755, -0.5375238656997681, 0.0925367921590805, -0.03260554373264313, -0.4755493998527527, 0.14851057529449463, 0.17478656768798828, 0.0008851690217852592, -0.2654135227203369, 0.12461000680923462, 0.35144326090812683, 0.20070059597492218, 0.5677340030670166, -0.16230188310146332, 0.04681263118982315, -0.05057830363512039, 0.19669388234615326, -0.06600260734558105, -0.08247039467096329, -0.0508015938103199, 0.24969696998596191, 0.05010395124554634, -0.04162255674600601, -0.1632547676563263, 0.23745980858802795, 0.31213176250457764, -0.07191462814807892, 0.07125415652990341, 0.08411940932273865, -0.12054532021284103, 0.01414775475859642, 0.19880330562591553, -0.22633150219917297, 0.18352557718753815, 0.14530056715011597, -0.10914675891399384, 0.11527119576931, -0.34589552879333496, -0.09470781683921814, 0.11840523779392242, 0.04162561148405075, 0.49658095836639404, 0.06266183406114578, 0.24714840948581696, -0.21607670187950134, -0.1896667778491974, -0.19802343845367432, -0.08871030062437057, 0.10409265756607056, -0.2519029378890991, 0.0450727641582489, -0.21138925850391388, -0.08832120150327682, 0.009318828582763672, -0.5655487775802612, 0.06710660457611084, -0.08814244717359543, -0.12486182153224945, 0.13535593450069427, -0.0841241329908371, 0.25114962458610535, -0.05220367759466171, -0.24216802418231964, 0.25636619329452515, -0.09641135483980179, -0.2533523440361023, -0.07175876200199127, 0.026772242039442062, 0.06158003583550453, 0.1554645448923111, 0.0690750703215599, -0.04495897889137268, 0.2691810727119446, -0.03381829708814621, -0.35501599311828613, -0.275241494178772, 0.04992152750492096, -0.20361706614494324, 0.22740095853805542, 0.4706685543060303, 0.1386536955833435, 0.07063326984643936, -0.5315940976142883, 0.3367735743522644, 0.05357584357261658, -0.30530884861946106, 0.2561754584312439, -0.17802837491035461, 0.055512502789497375, -0.02164294384419918, -0.08927657455205917, -0.13822676241397858, -0.3535018563270569, 0.18067499995231628, 0.5079568028450012, 0.2637706398963928, 0.07049615681171417, 0.26265066862106323, 0.22465483844280243, 0.03756111487746239, -0.08087237924337387, 0.18133674561977386, 0.2828783392906189, 0.45972371101379395, -0.17452441155910492, -0.2502919137477875, -0.022766757756471634, -0.8539392352104187, 0.03768836706876755, 0.16834314167499542, 0.17711575329303741, -0.1344534009695053, -0.1827838122844696, 0.19936247169971466, 0.10495299100875854, -0.035828717052936554, 0.36696869134902954, 0.10599534213542938, 0.005178069695830345, -0.1473030149936676, -0.05262746289372444, 0.4297551214694977, 0.06483928859233856, 0.005989491939544678, 0.20775017142295837, 0.3540017306804657, -0.2904820442199707, 0.48844730854034424, 0.23391538858413696, -0.2760825753211975, 0.3280070722103119, -0.27279365062713623, -0.1918715387582779, -0.339503675699234, -0.04887872561812401, -0.2594250738620758, 0.034765973687171936, -0.13296668231487274, -0.056142061948776245, -0.13260549306869507, -0.3195642828941345, 0.18137183785438538, 0.3871639668941498, 0.05190817266702652, 0.025386881083250046, -0.0014420989900827408, -0.01215711236000061, 0.2845233976840973, -0.09572212398052216, -0.029858887195587158, -0.25486883521080017, -0.1367805004119873, -0.2171657532453537, -0.2505751848220825, 0.18649229407310486, -0.030670175328850746, -0.4782129228115082, -0.1128225326538086, -0.06053268164396286, 0.2148715853691101, 0.536018431186676, 0.04493124037981033, 0.1140575110912323, -0.08362870663404465, 0.12719975411891937, -0.12068329751491547, 0.470215380191803, -0.2056218683719635, -0.2539268732070923, 0.5924773812294006, 0.17681646347045898, -0.4166940748691559, -0.13835832476615906, -0.023703835904598236, -0.037647221237421036, -0.38036149740219116, 0.1894264966249466, -0.42176714539527893, 0.03247857466340065, 0.3612165153026581, 0.23127834498882294, -0.08398879319429398, -0.1792083978652954, -0.1439407914876938, -0.25511813163757324, -0.12620402872562408, -0.3026905655860901, 0.07540624588727951, 0.35236817598342896, 0.11897489428520203, -0.48889607191085815, -0.3445180654525757, -0.040381234139204025, -0.21985147893428802, -0.05913785845041275, 0.42528143525123596, -0.2475017011165619, 0.04283854737877846, -0.3103659451007843, -0.03876594454050064, 0.06783879548311234, 0.12221232801675797, 0.16962754726409912, 0.03648930415511131, 0.077731654047966, -0.187954381108284, 0.4526895582675934, 0.07881172746419907, -0.22874893248081207, 0.21787667274475098, 0.07107885926961899, 0.01601187139749527, -0.13281264901161194, -0.23477968573570251, 0.4364156723022461, -0.3234701156616211, -0.06711377203464508, -0.35969358682632446, 0.5855862498283386, 0.10399571061134338, 0.10381938517093658, 0.20817534625530243, 0.19328078627586365, -0.20107002556324005, 0.20217373967170715, 0.6190621852874756, 0.8599436283111572, -0.006221801042556763, 0.12883152067661285, 0.7438943982124329, 0.19307862222194672, 0.23251403868198395, 0.4236084222793579, 0.05578862503170967, -0.4851090908050537, -0.11736486852169037, -0.2180391550064087, -0.36829355359077454, 0.21326804161071777, 0.16006001830101013, -0.250089168548584, 0.10496128350496292, -0.21315552294254303, 0.4065164029598236, 0.20369195938110352, -0.052384186536073685, -0.1543252319097519, -0.1582650989294052, -0.23679137229919434, 0.056863024830818176, 0.11289355158805847, -0.5091956853866577, -0.1073659285902977, -0.27369511127471924, -0.03622022271156311, -0.040634531527757645, -0.1031133309006691, -0.04975341260433197, -0.22193604707717896, 0.011608900502324104, 0.3405357003211975, -0.49455368518829346, 0.09693825244903564, 0.2401859611272812, 0.05453616380691528, -0.39380401372909546, -0.09496492147445679, -0.15820100903511047, 0.1575787365436554, -0.24125556647777557, -0.22492074966430664, -0.3560342490673065, 0.31166723370552063, -0.039134781807661057, 0.06341882795095444, 0.023866556584835052, -0.03190060332417488, -0.15450844168663025, -0.09650172293186188, 0.06433560699224472, 0.15219613909721375, -0.2587008774280548, -0.2742069661617279, -0.08163782954216003, -0.12325213849544525, -0.18287403881549835, 0.035598888993263245, 0.12393274158239365, -0.10153517127037048, -0.07288629561662674, 0.03883115202188492, 0.11034460365772247, 0.035549674183130264, -0.00675579160451889, 0.672928512096405, 0.3418900966644287, 0.3343163728713989, 0.3273959755897522, 0.025948256254196167, -0.15852613747119904, 0.15650001168251038, 0.6011675000190735, -0.4475330710411072, 0.241757333278656, 0.10944028198719025, -0.20664721727371216, -0.2043611705303192, 0.5340683460235596, -0.10072678327560425, 0.24585264921188354, -0.2113170176744461, -0.05598772317171097, -0.39514419436454773, 0.4105910658836365, 0.11978068947792053, 0.25701257586479187, -0.3223993480205536, 0.06891307979822159, 0.003037465736269951, -0.25050902366638184, -0.21258607506752014, -0.012769827619194984, -0.09301670640707016, -0.06765224039554596, -0.34295785427093506, 0.015114016830921173, 0.1378580778837204, 0.17098373174667358, 0.06573441624641418, 0.06986232101917267, -0.38205686211586, -0.13145887851715088, -0.03815216198563576, 0.18835683166980743, 0.1633758544921875, -0.1374683529138565, 0.23310096561908722, 0.0005476009100675583, -0.29752734303474426, -0.1349494904279709, -0.10466107726097107, -0.19488093256950378, -0.009614787995815277, -0.10157633572816849, 0.29306361079216003, 0.08488710224628448, -0.41998809576034546, -0.036345481872558594, -0.22282391786575317, 0.1653895080089569, 0.06119119003415108, -0.018848925828933716, -0.08095885068178177, -0.09231869876384735, -0.04861905053257942, 0.25898006558418274, 0.001753486692905426, -0.1703343689441681, 0.43380066752433777, -0.229349747300148, -0.3992432653903961, -0.24507936835289001, 0.5093851089477539, 0.2323615998029709, -0.19324243068695068, 0.12199898064136505, 0.015303458087146282, 0.10136464983224869, -0.34276431798934937, 0.07777141779661179, 0.27875226736068726, 0.024666380137205124, 0.1570969969034195, 0.35376378893852234, 0.20225906372070312, 0.01824299991130829, 0.0486772321164608, 0.021756011992692947, 0.00995149277150631, -0.09068664908409119, 0.06765556335449219, 0.614108681678772, -0.012182053178548813, 0.14867116510868073, 0.46650266647338867, 0.08639304339885712, 0.3322010934352875, 0.12019802629947662, 0.09878121316432953, 0.2952756881713867, 0.4559447169303894, -0.12175461649894714, 0.31475600600242615, 0.049367982894182205, -0.00892305001616478, 0.21641336381435394, 0.6006953716278076, -0.1371317207813263, 0.19764062762260437, 0.5118812322616577, 0.17623330652713776, -0.06589315831661224, -0.22778774797916412, 0.01672736555337906, 0.07458864152431488, -0.08215419948101044, -0.09257349371910095, -0.04774272441864014, -0.2798788547515869, -0.4828264117240906, -0.11672806739807129, -0.3559362292289734, 0.18598401546478271, -0.26344698667526245, 0.267008900642395, -0.41534262895584106, 0.7211950421333313, 0.21319013833999634, -0.037368662655353546, 0.00740332156419754, 0.5196146965026855, 0.2977147698402405, -0.022733047604560852, -0.07103918492794037, 0.45697978138923645, 0.3191637396812439, 0.24897867441177368, -0.2854173481464386, 0.01545711699873209, -0.16175799071788788, -0.2667803466320038, 0.059619367122650146, 0.12580256164073944, 0.11705589294433594, 0.24199920892715454, 0.2920165956020355, 0.05336259305477142, -0.0957195907831192, 0.2782728672027588, 0.18972347676753998, 0.00015385262668132782, -0.16817548871040344, 0.4383733868598938, -0.3106479346752167, -0.20096364617347717, 0.172869473695755, 0.04155625030398369, -0.41183343529701233, 0.09327469021081924, 0.2761674225330353, -0.15684941411018372, 0.08164481818675995, 0.023017674684524536, 0.04715651273727417, -0.28802841901779175, 0.5047276616096497, -0.030245285481214523, 0.5685746669769287, -0.057138316333293915, -0.03958595544099808, -0.38269221782684326, 0.35459497570991516, -0.36106011271476746, -0.0181552954018116, 0.4315899610519409, 0.14604797959327698, 0.004892066121101379, 0.19876578450202942, 0.1994728446006775, 0.12666188180446625, -0.2016124278306961, 0.3863149881362915, -0.34148842096328735, -0.1408742070198059, 0.4099109172821045, 0.15353010594844818, -0.21024677157402039, -0.22670364379882812, 0.22068747878074646, -0.2635425627231598, -0.03871946781873703, 0.2351825088262558, -0.023665957152843475, 0.049142297357320786, -0.021844029426574707, 0.4545924961566925, 0.11392385512590408, 0.1612926423549652, 0.14807772636413574, 0.02391531504690647, -0.25109046697616577, -0.2117917239665985, -0.2025730013847351, 0.2957012355327606, 0.163251593708992, 0.43528786301612854, -0.25151070952415466, 0.278542697429657, -0.14914584159851074, 0.010939057916402817, 0.07570789754390717, 0.07072985917329788, -0.31853729486465454, 0.6374917030334473, -0.5367576479911804, -0.025510091334581375, 0.031203962862491608, -0.2014324963092804, 0.027492573484778404, 0.15252257883548737, -0.06132311746478081, -0.5150297284126282, 0.6163953542709351, 0.020746812224388123, -0.45864972472190857, 0.19950412213802338, -0.09506615996360779, 0.49642840027809143, -0.1267412155866623, -0.13463899493217468, -0.08362925052642822, 0.37562283873558044, -0.015766087919473648, -0.02875254489481449, 0.04559772461652756, 0.034092940390110016, -0.024565482512116432, -0.1855211704969406, 0.025475692003965378, -0.07557027786970139, -0.14208172261714935, -0.32196637988090515, -0.5487015843391418 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yea unfortunately.. That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects. We already have an ExtensionArray that allows us to use them as column types but not for subtypes. Maybe we can extend it, I haven't experimented with that yet
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
48
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Yea unfortunately.. That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects. We already have an ExtensionArray that allows us to use them as column types but not for subtypes. Maybe we can extend it, I haven't experimented with that yet
[ -0.02122092992067337, 0.16213637590408325, 0.019125480204820633, 0.19337473809719086, 0.3534964323043823, 0.14655590057373047, 0.6769049763679504, 0.10014146566390991, -0.13536351919174194, 0.16974985599517822, 0.17544203996658325, 0.2483869045972824, -0.21873265504837036, -0.04890677332878113, 0.1682206243276596, -0.48519042134284973, 0.13466894626617432, 0.3015385568141937, 0.02285432070493698, 0.07043533027172089, -0.046942468732595444, -0.1379910260438919, -0.2132522463798523, 0.29887187480926514, -0.3213110864162445, 0.006946457549929619, -0.041584040969610214, -0.26098310947418213, -0.2811136841773987, -0.5396842360496521, 0.4548948109149933, -0.13678832352161407, 0.21576032042503357, 0.05412547290325165, -0.00011805731628555804, 0.13916507363319397, 0.4717531204223633, 0.11581805348396301, -0.26760995388031006, -0.07280804216861725, 0.11657340079545975, -0.3765866458415985, 0.2254808396100998, -0.29492971301078796, 0.0746299996972084, -0.8747565150260925, -0.013704625889658928, -0.04804184287786484, -0.039008066058158875, 0.22313518822193146, 0.1390293389558792, 0.1530652642250061, 0.39176058769226074, -0.13804185390472412, 0.5562929511070251, 0.20292462408542633, -0.34450021386146545, -0.03317737951874733, 0.25755977630615234, 0.1419355422258377, 0.07369478791952133, -0.25204530358314514, 0.031747087836265564, 0.15357880294322968, 0.3329479396343231, 0.30480697751045227, 0.3153316080570221, -0.21418213844299316, -0.09369204193353653, 0.3583950996398926, 0.41893184185028076, -0.17434030771255493, -0.21960322558879852, -0.1580253541469574, 0.035117316991090775, -0.08256679773330688, -0.07192424684762955, 0.14024701714515686, -0.14358484745025635, -0.05951342359185219, -0.08164332062005997, 0.23403309285640717, -0.41481372714042664, 0.28778085112571716, 0.18843020498752594, 0.06270169466733932, 0.11773203313350677, 0.24689191579818726, -0.124174103140831, -0.26879435777664185, 0.3728429079055786, -0.2962971329689026, -0.08790303766727448, 0.16725468635559082, 0.01046823337674141, 0.10180382430553436, -0.17798084020614624, -0.2950916886329651, 0.3978045880794525, -0.007865160703659058, 0.26241904497146606, 0.052133020013570786, 0.2533866763114929, 0.17389234900474548, -0.02278520166873932, 0.2581658661365509, -0.052480749785900116, -0.06772778928279877, -0.14617092907428741, -0.001009348314255476, 0.07352083921432495, 0.02968619018793106, -0.2602938711643219, -0.1566111296415329, 0.4041571021080017, -0.10659920424222946, 0.19350020587444305, 0.3161323070526123, 0.08387913554906845, -0.05441419780254364, -0.5178289413452148, -0.12695267796516418, 0.08197378367185593, 0.05386060103774071, 0.14109668135643005, -0.02006373181939125, -0.09959006309509277, 0.40025633573532104, 0.046651072800159454, -0.0912170559167862, -0.11674721539020538, -0.006497355177998543, -0.2495863437652588, -0.12158850580453873, 0.051768865436315536, 0.15789775550365448, -0.017810922116041183, -0.060043323785066605, 0.12220758199691772, 0.1848505139350891, 0.1443338543176651, 0.08231987059116364, 0.14576053619384766, 0.14535251259803772, -0.11780498921871185, -0.10481851547956467, 0.0018954426050186157, -0.032476309686899185, -0.24537095427513123, 0.1876765787601471, -0.03543521463871002, -0.26381829380989075, -0.5372961759567261, 0.08828417956829071, -0.2288089543581009, 0.04093078523874283, -0.3024856746196747, -0.031841736286878586, 0.17606070637702942, 0.007588192820549011, 0.07603198289871216, -0.16961133480072021, 0.244795560836792, -0.3598734140396118, 0.12709669768810272, -0.19725795090198517, -0.2495066076517105, 0.038828395307064056, -0.280426949262619, -0.05305195227265358, -0.02347714453935623, -0.05678006634116173, -0.27082037925720215, 0.06504349410533905, -0.1856781393289566, 0.3091665506362915, 0.5356972217559814, 0.340539813041687, 0.029240107163786888, -0.14999304711818695, 0.10011696815490723, -0.1054028570652008, 0.22798293828964233, 0.03750172629952431, -0.06673479825258255, -0.1072201058268547, -0.2658882141113281, 0.25324463844299316, -0.18292811512947083, -0.23415368795394897, 0.016666878014802933, -0.4594132900238037, 0.21687790751457214, 0.0980006754398346, -0.000879928469657898, 0.06047482788562775, 0.008151933550834656, -0.4529452919960022, 0.04859419912099838, -0.4307848811149597, 0.2427629977464676, -0.09229986369609833, 0.30016037821769714, 0.0703752413392067, 0.16709299385547638, -0.3774496912956238, -0.656847357749939, 0.25595706701278687, -0.346961110830307, 0.03966435790061951, 0.07442515343427658, -0.16714724898338318, -0.11282272636890411, 0.20923416316509247, -0.040151242166757584, 0.21299530565738678, 0.04445825517177582, -0.004036076366901398, 0.15633997321128845, -0.21693076193332672, -0.20365874469280243, -0.4877382814884186, -0.05523990839719772, 0.002082706894725561, -0.40645894408226013, 0.4541432559490204, -0.036335527896881104, -0.24640560150146484, -0.3527885675430298, 0.22592440247535706, -0.10121401399374008, -0.0033876521047204733, 0.025005068629980087, 0.1707049012184143, 0.03524523228406906, -0.11942937970161438, -0.45587512850761414, 0.03069320321083069, -0.07540000975131989, -0.3779904246330261, 0.14928998053073883, 0.1526356041431427, 0.017933949828147888, -0.17377567291259766, 0.10945138335227966, 0.3874126076698303, 0.2484332025051117, 0.51526939868927, -0.09536296129226685, 0.1582254022359848, -0.03142305463552475, 0.23996835947036743, -0.14967861771583557, -0.14980873465538025, -0.1329905241727829, 0.1323251575231552, 0.024152927100658417, 0.04989345744252205, -0.09742557257413864, 0.054342612624168396, 0.22938427329063416, -0.06082523614168167, 0.06624539941549301, 0.14791223406791687, -0.264335960149765, 0.1247425302863121, 0.23347865045070648, -0.06964178383350372, 0.07612164318561554, 0.17350225150585175, 0.007998701184988022, -0.08982208371162415, -0.3006950914859772, -0.10953184962272644, 0.18242937326431274, 0.16651605069637299, 0.5337375998497009, 0.005829572677612305, 0.3214496076107025, -0.13664843142032623, -0.14775919914245605, 0.02879200503230095, -0.018866581842303276, 0.028834376484155655, -0.21764369308948517, 0.08991456031799316, -0.27399587631225586, 0.045877523720264435, -0.04085082560777664, -0.5973742604255676, 0.1676318198442459, -0.06250966340303421, -0.10865306854248047, -0.014021165668964386, -0.20819233357906342, 0.2753811776638031, 0.020489297807216644, -0.18512533605098724, 0.1897028237581253, -0.10982520133256912, -0.1761683225631714, -0.048124462366104126, -0.11759229749441147, 0.024251937866210938, 0.27322614192962646, -0.004464905709028244, -0.08651220053434372, 0.26221784949302673, -0.07133976370096207, -0.37593042850494385, -0.37475067377090454, 0.058374304324388504, -0.13347771763801575, 0.2712835967540741, 0.6011126041412354, -0.08819739520549774, 0.05690514296293259, -0.4877176284790039, 0.3660816550254822, -0.049885958433151245, -0.23717141151428223, 0.431159108877182, -0.22440308332443237, 0.11039777100086212, -0.10153594613075256, -0.04756947606801987, -0.0823075920343399, -0.29281145334243774, 0.2672376036643982, 0.4423724114894867, 0.20788593590259552, 0.19001896679401398, 0.3677292764186859, 0.29352107644081116, -0.05950969085097313, -0.0418136864900589, 0.21013958752155304, 0.3851246237754822, 0.5554254651069641, -0.13260389864444733, -0.23906607925891876, 0.04697287455201149, -0.9182718992233276, 0.059865910559892654, 0.27455759048461914, 0.09657342731952667, -0.05319115146994591, -0.1662643551826477, 0.2467547357082367, 0.15177886188030243, 0.07341530919075012, 0.23633553087711334, 0.07301405072212219, 0.03068253956735134, -0.0971597284078598, -0.07205463945865631, 0.3589543104171753, 0.05925101041793823, -0.054440803825855255, 0.059930939227342606, 0.2749342620372772, -0.25004851818084717, 0.49267423152923584, 0.03234422206878662, -0.39531850814819336, 0.29001396894454956, -0.28130656480789185, -0.15717282891273499, -0.2730332612991333, -0.038377124816179276, -0.20336610078811646, 0.02025344967842102, -0.07475601136684418, -0.057900309562683105, -0.04694627225399017, -0.370583713054657, 0.20490097999572754, 0.3417929708957672, 0.04603344947099686, -0.059337250888347626, 0.0681162178516388, -0.10480785369873047, 0.1422339379787445, -0.09608897566795349, 0.015193119645118713, -0.316089391708374, -0.10015770047903061, -0.21411345899105072, -0.2398771494626999, 0.13525554537773132, 0.03665771707892418, -0.3534593880176544, -0.08990735560655594, 0.18761642277240753, 0.2133796215057373, 0.5379560589790344, 0.006976188160479069, 0.2843591272830963, -0.12436594814062119, 0.14485277235507965, -0.004066686611622572, 0.38108402490615845, -0.25074508786201477, -0.2140434831380844, 0.549307107925415, 0.20647282898426056, -0.4260235130786896, -0.19976985454559326, 0.01150893047451973, 0.004528954159468412, -0.3076286017894745, -0.01466042548418045, -0.31752970814704895, 0.0350651778280735, 0.43450382351875305, 0.298555463552475, -0.01863246038556099, -0.014090204611420631, -0.1972004473209381, -0.18793147802352905, -0.06825771182775497, -0.3189419209957123, -0.006039412692189217, 0.3794974684715271, 0.05505757033824921, -0.37106460332870483, -0.4575199782848358, -0.03665175661444664, -0.2041069120168686, 0.02199859544634819, 0.4698270857334137, -0.182025745511055, 0.11306266486644745, -0.3893318474292755, 0.015756264328956604, 0.38531917333602905, 0.13869476318359375, 0.11581176519393921, -0.03393082320690155, 0.19721290469169617, -0.05217012017965317, 0.3916821777820587, -0.011398136615753174, -0.15004608035087585, 0.13453033566474915, 0.03401850163936615, -0.029001273214817047, -0.018413111567497253, -0.18756355345249176, 0.3766222596168518, -0.3450866937637329, -0.06278885900974274, -0.3435284197330475, 0.650111973285675, 0.08761882781982422, 0.13135206699371338, 0.2399795800447464, 0.43665432929992676, -0.19134661555290222, 0.3129681944847107, 0.7067784070968628, 0.7163450717926025, 0.019092820584774017, 0.14177553355693817, 0.5875766277313232, 0.04866400361061096, 0.2839810252189636, 0.39273643493652344, 0.12997323274612427, -0.4477539658546448, 0.08775652199983597, -0.11774957180023193, -0.34262511134147644, 0.27841025590896606, 0.134661465883255, -0.16731388866901398, -0.1764117181301117, -0.22587968409061432, 0.5874403715133667, 0.1703423112630844, 0.017973311245441437, -0.3542061746120453, -0.17259272933006287, -0.060898952186107635, 0.0736890360713005, 0.1389015018939972, -0.5042871236801147, -0.03248335421085358, -0.22971364855766296, -0.19759956002235413, 0.003745187073945999, -0.22458423674106598, -0.06362918019294739, -0.20129084587097168, -0.09641006588935852, 0.4480983316898346, -0.4837571382522583, 0.20402301847934723, 0.22266057133674622, 0.14459887146949768, -0.27378472685813904, -0.14725348353385925, -0.06846325099468231, 0.20307496190071106, -0.32004091143608093, -0.17941994965076447, -0.323415070772171, 0.19670726358890533, 0.07858936488628387, 0.00554627925157547, 0.046965472400188446, 0.007979611866176128, -0.18573544919490814, -0.0939311534166336, 0.020762503147125244, 0.27109217643737793, -0.3104768395423889, -0.07629670202732086, -0.2866957485675812, -0.14704962074756622, -0.14738577604293823, 0.04096756875514984, 0.023046370595693588, -0.1762242466211319, -0.08339444547891617, 0.054964616894721985, 0.1699424684047699, 0.03785128518939018, -0.04407583922147751, 0.6143608689308167, 0.41088050603866577, 0.3430807292461395, 0.26160284876823425, 0.04669152945280075, -0.16338062286376953, 0.15845611691474915, 0.700141429901123, -0.5357524752616882, 0.17567068338394165, 0.09489929676055908, -0.2978060245513916, -0.16409645974636078, 0.5314976572990417, -0.029676474630832672, 0.2333259880542755, -0.24501314759254456, -0.020223211497068405, -0.37627536058425903, 0.4165404438972473, 0.08811961114406586, 0.30439841747283936, -0.2610393464565277, -0.043973408639431, -0.02046773210167885, -0.08434472233057022, -0.20425382256507874, 0.00001100427471101284, 0.02686801739037037, -0.0468636229634285, -0.4833246171474457, -0.044960521161556244, 0.11465352773666382, -0.02819870412349701, 0.07644175738096237, 0.046955037862062454, -0.3073565363883972, -0.09387233108282089, -0.06958379596471786, 0.14457528293132782, 0.07500781118869781, -0.1609964668750763, 0.13167034089565277, -0.01849629543721676, -0.2922176718711853, -0.11029073596000671, -0.11734899878501892, -0.17165187001228333, -0.18854810297489166, -0.10036379843950272, 0.37076494097709656, 0.02186768874526024, -0.4096216559410095, -0.06227422505617142, -0.2591795027256012, 0.21437355875968933, 0.14315165579319, 0.01041148230433464, 0.0338703989982605, -0.014072112739086151, 0.010854559950530529, 0.2403663992881775, -0.04893408715724945, -0.21677693724632263, 0.366778165102005, -0.284389853477478, -0.3287574052810669, -0.2931697368621826, 0.38238146901130676, 0.31204506754875183, -0.13002781569957733, 0.14662335813045502, 0.12182527780532837, 0.0957394689321518, -0.26359790563583374, 0.05994695797562599, 0.21362848579883575, -0.12378963083028793, 0.19577105343341827, 0.38094910979270935, 0.1733328402042389, 0.029394708573818207, -0.04995143413543701, 0.0747181624174118, -0.058328352868556976, 0.04048052430152893, 0.15803752839565277, 0.7727534174919128, -0.08896331489086151, 0.046870335936546326, 0.34637778997421265, 0.05720198154449463, 0.30925890803337097, -0.1376059353351593, -0.04992461949586868, 0.4082031548023224, 0.11940585821866989, -0.14702866971492767, 0.23536452651023865, 0.03651523217558861, 0.14369289577007294, 0.2908634841442108, 0.5998584628105164, -0.06553467363119125, 0.15461407601833344, 0.6458665132522583, 0.12957988679409027, -0.06089967116713524, -0.30792510509490967, -0.17056028544902802, 0.0009383112192153931, -0.017082488164305687, -0.31977948546409607, -0.07181664556264877, -0.34003233909606934, -0.37776970863342285, -0.20017658174037933, -0.3219608664512634, 0.19667427241802216, -0.24145035445690155, 0.13999313116073608, -0.2682494521141052, 0.6058336496353149, 0.1733977496623993, 0.018611237406730652, -0.011450838297605515, 0.46652117371559143, 0.19313402473926544, -0.11038419604301453, -0.10411857068538666, 0.3926156461238861, 0.23527562618255615, 0.3206700086593628, -0.24029326438903809, -0.10840509831905365, -0.0384163074195385, -0.2632313072681427, 0.047827042639255524, 0.14192336797714233, 0.20506376028060913, 0.12602558732032776, 0.2356913536787033, 0.05492240935564041, -0.07628171145915985, 0.12941312789916992, 0.10683473944664001, -0.024024542421102524, -0.18707743287086487, 0.4449997544288635, -0.20764951407909393, -0.14979499578475952, 0.1466754972934723, -0.06259449571371078, -0.29744985699653625, -0.14193706214427948, 0.1849878579378128, -0.11328202486038208, 0.006851928308606148, -0.0043784249573946, 0.0315435566008091, -0.15522801876068115, 0.5530232787132263, 0.046312227845191956, 0.4742763340473175, -0.08364701271057129, -0.04956484213471413, -0.29237228631973267, 0.26677849888801575, -0.49525731801986694, -0.0020597968250513077, 0.496064156293869, 0.256235808134079, -0.006529159843921661, 0.1396310031414032, 0.1487072855234146, 0.34948626160621643, -0.06305796653032303, 0.42086687684059143, -0.24861940741539001, -0.18346095085144043, 0.4288111925125122, 0.016288699582219124, -0.1165725439786911, -0.3974458873271942, 0.2201230823993683, -0.22666925191879272, -0.024923883378505707, 0.22094252705574036, 0.02512752264738083, 0.1664779782295227, 0.10088229924440384, 0.512607216835022, 0.021321065723896027, 0.09377501904964447, 0.2348669469356537, 0.007140258327126503, -0.310479074716568, -0.2480718344449997, -0.2417108565568924, 0.14544539153575897, 0.042988572269678116, 0.43806594610214233, -0.22617647051811218, 0.15970255434513092, -0.08594480156898499, -0.08571183681488037, 0.072384774684906, 0.18997254967689514, -0.20992472767829895, 0.5638706088066101, -0.6787708401679993, -0.003118874505162239, -0.024871062487363815, -0.2467939555644989, 0.05845057591795921, 0.05741719901561737, -0.16132885217666626, -0.359348863363266, 0.6176451444625854, -0.15568982064723969, -0.41577446460723877, 0.14466702938079834, -0.09502436220645905, 0.46293067932128906, -0.1521490216255188, -0.23487958312034607, -0.12059761583805084, 0.3565762937068939, 0.0417901873588562, 0.01968323066830635, 0.015324625186622143, 0.08727271854877472, -0.00939042866230011, -0.2324376255273819, 0.13488532602787018, -0.09557189792394638, -0.025856204330921173, -0.36196500062942505, -0.5236228108406067 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Cool So please consider this issue as a feature request for: ``` Array3D(shape=(None, 137, 2), dtype="float32") ``` its a way to represent videos, poses, and other cool sequences
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
28
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Cool So please consider this issue as a feature request for: ``` Array3D(shape=(None, 137, 2), dtype="float32") ``` its a way to represent videos, poses, and other cool sequences
[ -0.11950768530368805, 0.24245190620422363, -0.08252320438623428, 0.09619344770908356, 0.3023024797439575, -0.08079168200492859, 0.6678081154823303, 0.12745080888271332, -0.4523451626300812, 0.2668219208717346, 0.36515095829963684, 0.1533161848783493, -0.25517576932907104, 0.14884133636951447, 0.27441075444221497, -0.42577284574508667, 0.13714838027954102, 0.5718725323677063, 0.18966078758239746, 0.1134708821773529, -0.0811234563589096, -0.09107115864753723, -0.15861617028713226, 0.18719422817230225, -0.30315664410591125, -0.018084583804011345, -0.1779542863368988, -0.32973918318748474, -0.13452540338039398, -0.4514864981174469, 0.2623897194862366, 0.038963787257671356, 0.16776567697525024, 0.14945930242538452, -0.0001254905655514449, -0.016788437962532043, 0.5140053629875183, 0.005547789856791496, -0.19652074575424194, 0.0710480660200119, 0.039049454033374786, -0.5094621777534485, 0.2315443754196167, -0.2614152729511261, -0.048627328127622604, -0.5891057252883911, -0.03733044117689133, -0.06619556248188019, -0.036601826548576355, 0.13774867355823517, 0.09991221129894257, 0.24490565061569214, 0.18954235315322876, -0.06588682532310486, 0.5248129367828369, 0.6106522083282471, -0.4015277028083801, -0.0032516513019800186, 0.40934130549430847, 0.048481374979019165, 0.009082712233066559, -0.04466848447918892, -0.11383763700723648, 0.152800053358078, 0.37134209275245667, 0.12533919513225555, 0.41572239995002747, -0.3516634702682495, -0.11975061148405075, 0.3804672956466675, 0.5132597088813782, -0.22698554396629333, -0.16332893073558807, -0.1825231909751892, 0.1375933587551117, -0.11918701231479645, -0.16815811395645142, 0.2776908278465271, -0.3058530390262604, -0.10672856867313385, -0.32000672817230225, 0.18121720850467682, -0.4519748389720917, 0.44151705503463745, 0.23196399211883545, -0.032462477684020996, 0.026533178985118866, 0.15500986576080322, -0.15431347489356995, -0.2096683233976364, 0.6051821112632751, -0.3144931495189667, 0.17137974500656128, 0.026673130691051483, 0.23157842457294464, 0.0007798261940479279, -0.17810466885566711, -0.2584560215473175, 0.2240985929965973, 0.02405649609863758, 0.18966957926750183, 0.0009136013686656952, 0.33610671758651733, 0.05493529513478279, -0.23508861660957336, 0.15510933101177216, 0.019665580242872238, -0.2865149974822998, -0.10869546234607697, 0.16412116587162018, 0.052384037524461746, 0.08127960562705994, -0.09288309514522552, -0.15815050899982452, 0.21445585787296295, 0.1445920616388321, 0.22469674050807953, 0.3323439955711365, 0.09896307438611984, -0.021218087524175644, -0.6472463011741638, -0.11901698261499405, 0.049350637942552567, 0.1676115095615387, 0.11621198803186417, 0.02179577201604843, -0.14202052354812622, 0.4201961159706116, 0.041330479085445404, -0.1068362295627594, -0.13273084163665771, 0.028479471802711487, -0.20209093391895294, 0.03455207496881485, 0.14741958677768707, 0.2719278335571289, 0.06823782622814178, -0.10987845808267593, 0.2920946478843689, 0.11498844623565674, 0.25188812613487244, 0.13041619956493378, 0.2680565416812897, 0.18439655005931854, -0.17666076123714447, -0.029183655977249146, -0.010828252881765366, 0.023979172110557556, -0.2019139528274536, 0.25281602144241333, 0.03599991649389267, -0.29116690158843994, -0.40170881152153015, 0.06757321208715439, -0.13321122527122498, 0.11479564756155014, 0.011067382991313934, 0.03926724195480347, 0.12916195392608643, -0.09209674596786499, 0.0919327512383461, -0.0653633326292038, 0.09205645322799683, -0.40384331345558167, 0.11009108275175095, 0.058743372559547424, -0.3762679994106293, -0.006013933569192886, -0.17853473126888275, 0.059890419244766235, -0.0581476166844368, -0.09338290989398956, -0.2455008178949356, 0.1491195410490036, -0.28153353929519653, 0.09785515069961548, 0.5955638885498047, 0.06837137043476105, -0.06657000631093979, 0.12860386073589325, 0.0778093934059143, -0.1911044418811798, 0.27002042531967163, 0.17735227942466736, -0.07449700683355331, -0.0917331799864769, -0.31898126006126404, 0.315950870513916, -0.17401404678821564, -0.20624908804893494, 0.08530284464359283, -0.48056063055992126, 0.504550576210022, 0.12277790904045105, 0.0911305695772171, -0.012192562222480774, -0.0017257556319236755, -0.39547187089920044, 0.10352915525436401, -0.523114800453186, 0.22635959088802338, 0.06486541032791138, 0.3272497057914734, -0.10172934830188751, 0.014254676178097725, -0.290419340133667, -0.7621390223503113, 0.11185810714960098, -0.38177743554115295, 0.03239709138870239, -0.09286005795001984, -0.09416501224040985, -0.009800171479582787, 0.1435680389404297, -0.1588364541530609, 0.13655970990657806, 0.018694397062063217, 0.22345447540283203, 0.17552216351032257, -0.09271170198917389, -0.14796796441078186, -0.48860594630241394, 0.16053986549377441, -0.09355945885181427, -0.3995203971862793, 0.6104872226715088, -0.030408969148993492, -0.3412741422653198, -0.2333662062883377, 0.30264565348625183, 0.11167838424444199, -0.1268319934606552, 0.07595507800579071, 0.02327670156955719, -0.046714235097169876, -0.007260680198669434, -0.5716782808303833, 0.145181804895401, 0.16953954100608826, -0.5125939846038818, 0.3018433153629303, 0.2380748689174652, -0.02086593583226204, -0.2693946659564972, 0.26504844427108765, 0.5354464054107666, 0.01640043593943119, 0.5599129796028137, -0.14889192581176758, 0.10691099613904953, -0.08349497616291046, 0.3042312562465668, -0.17105841636657715, -0.2814382016658783, -0.07708171010017395, 0.3215995132923126, 0.2348315268754959, -0.08163830637931824, -0.12026215344667435, 0.16733306646347046, 0.3450402319431305, -0.10630470514297485, 0.11705668270587921, 0.10448241233825684, -0.1672394573688507, 0.03059566393494606, 0.21944864094257355, -0.24864435195922852, -0.00959843397140503, 0.11336773633956909, -0.15090440213680267, -0.016722043976187706, -0.1790008544921875, -0.177520751953125, 0.23999783396720886, 0.19789858162403107, 0.5377182364463806, 0.1734979748725891, 0.2530473470687866, -0.23421402275562286, -0.25632548332214355, -0.2838898301124573, 0.07821565866470337, -0.002949662506580353, -0.16629044711589813, 0.08192621171474457, -0.09859690815210342, -0.17535868287086487, -0.053821638226509094, -0.8407201170921326, -0.054962772876024246, -0.016143521293997765, -0.13320016860961914, -0.018302615731954575, -0.12504485249519348, 0.2904631495475769, 0.13499689102172852, -0.1161113828420639, 0.1887720227241516, -0.12794218957424164, -0.23948068916797638, -0.020878108218312263, 0.0010634362697601318, -0.047881290316581726, 0.19386032223701477, 0.1102151870727539, -0.028572553768754005, 0.08936011046171188, 0.195614293217659, -0.44369083642959595, -0.41406697034835815, 0.07615594565868378, -0.054647296667099, 0.30432382225990295, 0.6237304210662842, -0.02885018289089203, 0.14163681864738464, -0.43355751037597656, 0.3720018267631531, 0.030733345076441765, -0.19801616668701172, 0.2701030373573303, -0.19130001962184906, 0.13115042448043823, -0.077439084649086, 0.12743917107582092, -0.04363059997558594, -0.2877109944820404, 0.17427143454551697, 0.4535888135433197, 0.2285221815109253, 0.06468682736158371, 0.3853498101234436, 0.30643799901008606, 0.03193944692611694, 0.06176937371492386, 0.2502897083759308, 0.3139863908290863, 0.344000905752182, -0.15348181128501892, -0.15167824923992157, -0.07957883924245834, -0.8197317123413086, -0.04146011546254158, 0.19953754544258118, 0.005626246333122253, -0.3204466998577118, -0.15873152017593384, 0.28159210085868835, 0.021231375634670258, 0.046625517308712006, 0.37347644567489624, 0.1232595220208168, 0.11930443346500397, -0.0999317616224289, -0.24737252295017242, 0.32001993060112, 0.14774677157402039, -0.16016697883605957, 0.010414734482765198, 0.42386674880981445, -0.2608790099620819, 0.6008721590042114, -0.010329091921448708, -0.3659655749797821, 0.3163512349128723, -0.16807518899440765, -0.030800309032201767, -0.21455225348472595, -0.024850130081176758, -0.14439000189304352, 0.08740904927253723, -0.09681406617164612, -0.05151009559631348, -0.19671142101287842, -0.2967805862426758, 0.1497732400894165, 0.2748080790042877, -0.06453017145395279, 0.016301870346069336, -0.04853282868862152, -0.1632591187953949, 0.18956542015075684, -0.17047446966171265, 0.0903787687420845, -0.26275894045829773, -0.15583482384681702, -0.13048045337200165, -0.21189232170581818, 0.2559710144996643, -0.02616514451801777, -0.3173457384109497, -0.07321324199438095, 0.07022068649530411, 0.1907729059457779, 0.6411176323890686, 0.01791399158537388, 0.12417581677436829, -0.018988152965903282, 0.08274215459823608, -0.09361618012189865, 0.7690874934196472, -0.24369008839130402, -0.12895357608795166, 0.4463675022125244, 0.036239512264728546, -0.41538164019584656, -0.19209465384483337, -0.11460503935813904, -0.07105310261249542, -0.3726542592048645, 0.1269795149564743, -0.20479068160057068, -0.025786446407437325, 0.31336042284965515, 0.32393643260002136, -0.018565453588962555, -0.09819373488426208, -0.11918403208255768, -0.1535014659166336, -0.19672991335391998, -0.32829293608665466, -0.040012963116168976, 0.32376280426979065, 0.24263371527194977, -0.48547571897506714, -0.37508171796798706, -0.11223415285348892, -0.06753230094909668, -0.12783293426036835, 0.3981781303882599, -0.06365421414375305, 0.07895404100418091, -0.4502415657043457, 0.019328009337186813, 0.2227465957403183, -0.13193394243717194, 0.249707892537117, 0.02498333901166916, 0.19441169500350952, -0.06538712978363037, 0.5268791913986206, 0.27933448553085327, 0.007096044719219208, 0.04110405966639519, 0.08464314043521881, 0.0907713919878006, -0.18725593388080597, -0.10357778519392014, 0.3837703764438629, -0.4485939145088196, -0.10142210125923157, -0.2877464294433594, 0.5306909680366516, -0.05516066402196884, 0.18104581534862518, 0.09352365136146545, 0.4269600510597229, -0.21412929892539978, 0.26970523595809937, 0.637816309928894, 0.9567372798919678, 0.03404620289802551, 0.3521621823310852, 0.6656084060668945, -0.016293667256832123, 0.243069127202034, 0.3726676106452942, 0.14535203576087952, -0.4971991777420044, -0.026707887649536133, -0.1719362884759903, -0.4330444931983948, 0.18196441233158112, 0.13267812132835388, -0.25654909014701843, -0.056142162531614304, -0.14850479364395142, 0.2846318185329437, 0.0706547349691391, -0.03625330328941345, -0.10296575725078583, -0.14468716084957123, -0.09484618157148361, 0.0010900851339101791, 0.012376807630062103, -0.3828657865524292, -0.13855239748954773, -0.3460882306098938, -0.02288755774497986, 0.03275638073682785, -0.14556579291820526, 0.0021425150334835052, -0.2827848196029663, 0.04191538318991661, 0.36172351241111755, -0.6093158721923828, 0.030667845159769058, 0.08797839283943176, 0.05158010870218277, -0.20787961781024933, -0.11856669187545776, -0.10194607079029083, 0.3350900113582611, -0.29274120926856995, -0.20244520902633667, -0.32911282777786255, 0.30695974826812744, -0.03669285029172897, 0.03435244411230087, 0.13679715991020203, 0.0006988560780882835, -0.09086169302463531, -0.15946029126644135, 0.015070490539073944, 0.24537822604179382, -0.1630985289812088, -0.34232035279273987, -0.20613685250282288, -0.10854187607765198, -0.042359162122011185, -0.0009980183094739914, 0.08765388280153275, -0.20882795751094818, -0.22182998061180115, 0.1476566046476364, 0.10276724398136139, -0.04976427182555199, -0.006664015352725983, 0.46247586607933044, 0.20398451387882233, 0.30916959047317505, 0.35088440775871277, -0.07022552192211151, -0.18640843033790588, 0.2011597454547882, 0.46279627084732056, -0.5874416828155518, 0.18544048070907593, 0.12403343617916107, -0.27665212750434875, -0.08491881936788559, 0.4894612729549408, -0.13674455881118774, 0.34552451968193054, -0.1024450808763504, -0.0035819485783576965, -0.3030039370059967, 0.14142149686813354, 0.08511374890804291, 0.36112096905708313, -0.20153409242630005, -0.12058383226394653, 0.0020427368581295013, -0.15577635169029236, -0.160377636551857, 0.02744555100798607, 0.15076975524425507, 0.07184933125972748, -0.6480774879455566, -0.16031566262245178, -0.13076052069664001, 0.17007985711097717, 0.04278840124607086, 0.0692400187253952, -0.4720148742198944, -0.04957571625709534, -0.044676586985588074, 0.21609991788864136, 0.08680322766304016, -0.07375998795032501, 0.16761569678783417, 0.04948507249355316, -0.32841506600379944, -0.15563854575157166, -0.090865358710289, -0.14411506056785583, -0.15055625140666962, -0.06302101165056229, 0.307847261428833, -0.09977655857801437, -0.3593612313270569, -0.12164945900440216, -0.19800534844398499, 0.31160253286361694, 0.10844886302947998, 0.054485343396663666, -0.012075512669980526, -0.012439176440238953, -0.06978412717580795, 0.23847222328186035, -0.07673870027065277, -0.18828794360160828, 0.35753852128982544, -0.2864845395088196, -0.30523058772087097, -0.24008844792842865, 0.3885755240917206, 0.022489242255687714, -0.24479041993618011, 0.07347476482391357, 0.1066964790225029, 0.08827995508909225, -0.20881928503513336, -0.03263472765684128, 0.1386857032775879, -0.09585180878639221, 0.1512499302625656, 0.412718802690506, 0.11994048953056335, 0.04771226644515991, -0.014456391334533691, 0.0668138787150383, -0.20373223721981049, 0.021462997421622276, 0.134693905711174, 0.5152422785758972, -0.0964198037981987, 0.04653114825487137, 0.362901896238327, 0.11971904337406158, 0.30329629778862, -0.07188692688941956, -0.09997542947530746, 0.24137480556964874, 0.18972325325012207, -0.1481652855873108, 0.28054431080818176, 0.07977613806724548, 0.047267306596040726, 0.24415111541748047, 0.5410909652709961, 0.03882096707820892, 0.08458742499351501, 0.2596602141857147, 0.11917540431022644, -0.049879755824804306, -0.45478126406669617, -0.05646612122654915, 0.009520091116428375, 0.002575038932263851, -0.05196493864059448, -0.034516073763370514, -0.2187303900718689, -0.21390295028686523, -0.12415887415409088, -0.34987759590148926, 0.16360294818878174, -0.027809306979179382, 0.2309521734714508, -0.05943606048822403, 0.79119873046875, 0.1474616527557373, 0.03510616719722748, -0.08233121782541275, 0.36547163128852844, 0.18926085531711578, -0.08421827852725983, -0.23636677861213684, 0.34243303537368774, 0.30284154415130615, 0.30579203367233276, -0.4137304127216339, -0.002746846526861191, -0.04820721969008446, -0.2514015734195709, 0.0007546655833721161, 0.11046957969665527, 0.19965359568595886, 0.3655878007411957, 0.24302668869495392, 0.05292999744415283, -0.07758492976427078, 0.10956466197967529, 0.2621614634990692, -0.05906624719500542, -0.2608363926410675, 0.4748162627220154, -0.36839166283607483, -0.07728353887796402, 0.020059188827872276, -0.021400384604930878, -0.4413028955459595, -0.09221480786800385, 0.34336942434310913, -0.22229298949241638, -0.03149798884987831, 0.00788408238440752, 0.00036622025072574615, -0.40764784812927246, 0.46858033537864685, 0.056580495089292526, 0.5203982591629028, -0.14260414242744446, -0.057029809802770615, -0.19973871111869812, 0.22563062608242035, -0.18276728689670563, 0.06312654167413712, 0.36024925112724304, 0.28220486640930176, -0.07029324024915695, 0.1351899802684784, 0.08179625868797302, 0.3429289162158966, -0.009584927931427956, 0.3274743854999542, -0.30786895751953125, 0.07214706391096115, 0.33324313163757324, 0.06983481347560883, -0.08409157395362854, -0.3582056760787964, 0.15510611236095428, -0.38117894530296326, -0.0411696657538414, 0.1865786612033844, 0.04765878617763519, 0.06021689996123314, 0.3429681360721588, 0.44392529129981995, 0.002110430970788002, 0.07944120466709137, 0.1255156695842743, -0.13021109998226166, -0.1910495162010193, -0.15067964792251587, 0.017183206975460052, 0.4100235402584076, -0.03039110079407692, 0.5122289657592773, -0.25263628363609314, 0.46741610765457153, -0.15937574207782745, 0.14068284630775452, 0.18905490636825562, 0.25056880712509155, -0.14290979504585266, 0.47389310598373413, -0.6883054971694946, 0.061436209827661514, 0.11719155311584473, -0.2447529137134552, 0.10541804879903793, 0.14440731704235077, -0.09446476399898529, -0.3961617350578308, 0.6354129314422607, -0.2361481934785843, -0.5173560380935669, 0.1891830861568451, -0.0922156572341919, 0.32424667477607727, -0.048665232956409454, -0.32838815450668335, -0.0839729905128479, 0.4084092974662781, 0.029456624761223793, 0.0013380981981754303, 0.1020156592130661, -0.09592825174331665, -0.010799366980791092, -0.15528856217861176, 0.18439197540283203, -0.01526704803109169, -0.17277754843235016, -0.4269973635673523, -0.547298789024353 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq well, so sequence of sequences doesn't work either... ``` pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648 ```
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
23
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> @lhoestq well, so sequence of sequences doesn't work either... ``` pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648 ```
[ -0.16009140014648438, 0.15517309308052063, -0.13658010959625244, 0.20118501782417297, 0.23780526220798492, 0.002427421510219574, 0.5615333318710327, 0.08139819651842117, -0.15611067414283752, 0.1868872344493866, 0.3679438531398773, 0.1477242261171341, -0.19521017372608185, -0.07515094429254532, 0.19821743667125702, -0.3740195631980896, 0.10513266175985336, 0.4515884518623352, 0.09581529349088669, 0.08156046271324158, -0.1296783983707428, -0.10000798851251602, -0.25318384170532227, 0.23153115808963776, -0.25456881523132324, -0.11556441336870193, -0.18877898156642914, -0.24447688460350037, -0.06532898545265198, -0.6357086896896362, 0.26618629693984985, 0.04157482460141182, 0.11110655963420868, 0.22008468210697174, -0.00012018423149129376, -0.043064184486866, 0.49930381774902344, 0.05532149225473404, -0.18635545670986176, -0.04839064180850983, -0.016586462035775185, -0.5161792635917664, 0.2466992288827896, -0.2830958664417267, 0.025601688772439957, -0.6335046291351318, -0.05077817291021347, -0.11116968095302582, 0.09917908161878586, 0.2162884622812271, 0.13575802743434906, 0.10129916667938232, 0.29485729336738586, -0.1379256248474121, 0.4939407706260681, 0.18564806878566742, -0.264546275138855, -0.006446331739425659, 0.4243837893009186, 0.007797960191965103, 0.003983929753303528, -0.22599999606609344, -0.0914994552731514, 0.19466045498847961, 0.32395780086517334, 0.2544250786304474, 0.17280060052871704, -0.26841622591018677, -0.11674346774816513, 0.46339869499206543, 0.5487833023071289, -0.19920262694358826, -0.20620323717594147, -0.16235172748565674, 0.025136299431324005, -0.24955196678638458, -0.016856685280799866, 0.22302278876304626, -0.2625144422054291, -0.06791038811206818, -0.29602280259132385, 0.2252052128314972, -0.3634741008281708, 0.3561137914657593, 0.27390357851982117, 0.07418425381183624, 0.036259476095438004, 0.19226610660552979, -0.04267711564898491, -0.160104438662529, 0.448190301656723, -0.27379757165908813, 0.041133150458335876, 0.20048493146896362, -0.047782447189092636, 0.08125299215316772, -0.17875441908836365, -0.2598588466644287, 0.3866291642189026, 0.10062570124864578, 0.28537434339523315, -0.049744442105293274, 0.2407917082309723, 0.011291161179542542, -0.15654227137565613, 0.22878620028495789, -0.035437315702438354, -0.19554896652698517, -0.1534389853477478, 0.14810150861740112, 0.11318264901638031, 0.10706775635480881, -0.08411230146884918, -0.2671605348587036, 0.34216901659965515, -0.01003788411617279, 0.16210265457630157, 0.2628885507583618, -0.0015818867832422256, 0.15847960114479065, -0.7266279458999634, -0.2275589257478714, -0.010235077701508999, 0.2344358265399933, 0.06737080961465836, -0.07876629382371902, -0.14435282349586487, 0.3206436038017273, 0.06907258182764053, 0.017556440085172653, -0.222075417637825, -0.028284884989261627, -0.15741179883480072, 0.14801041781902313, -0.005637116730213165, 0.14561329782009125, 0.13143041729927063, -0.002154383808374405, 0.12790875136852264, 0.04693152755498886, 0.24037808179855347, -0.059141241014003754, 0.18085145950317383, 0.18605303764343262, -0.18973921239376068, 0.07943771034479141, -0.013283759355545044, -0.14118441939353943, -0.20696839690208435, 0.3373624086380005, -0.07481270283460617, -0.2489272952079773, -0.23960234224796295, 0.11953765153884888, -0.2464342713356018, 0.14363546669483185, -0.056774623692035675, 0.022128954529762268, 0.3504427671432495, 0.03295857831835747, 0.09728650003671646, -0.04631447792053223, 0.13431574404239655, -0.3639492392539978, 0.03161000460386276, 0.029170215129852295, -0.404064416885376, 0.10277490317821503, -0.017000725492835045, 0.04207741469144821, 0.0010872632265090942, 0.00022298097610473633, -0.24837280809879303, 0.3167399764060974, -0.3398917317390442, 0.3151925802230835, 0.47719407081604004, 0.2314249873161316, -0.14764878153800964, 0.07802659273147583, 0.008705243468284607, -0.1805400401353836, 0.2836228013038635, 0.12470700591802597, -0.07068231701850891, -0.17883025109767914, -0.2814876437187195, 0.1967943161725998, -0.0682692751288414, -0.26830339431762695, -0.04745178669691086, -0.3563324809074402, 0.328225314617157, 0.009509619325399399, -0.030008893460035324, -0.057911135256290436, -0.061150677502155304, -0.3634926378726959, 0.09846685081720352, -0.3985062837600708, 0.1682196408510208, 0.3102673888206482, 0.25407731533050537, -0.10700607299804688, 0.01800236850976944, -0.2215559482574463, -0.6752681732177734, 0.1367509365081787, -0.335999995470047, -0.07144682109355927, -0.16087625920772552, -0.042185526341199875, -0.17712974548339844, 0.2556406557559967, -0.25501108169555664, 0.15288309752941132, 0.07672785967588425, 0.17223936319351196, 0.2379293441772461, -0.28398939967155457, -0.12917238473892212, -0.24621155858039856, 0.023567115887999535, -0.034684862941503525, -0.4833647608757019, 0.634550154209137, -0.06430424749851227, -0.3637024462223053, -0.2196400910615921, 0.13412471115589142, 0.04577069357037544, -0.11066721379756927, 0.08895757794380188, 0.22542202472686768, 0.06352398544549942, -0.16462381184101105, -0.49933961033821106, 0.003829449415206909, 0.12411896884441376, -0.5690354108810425, 0.0915197804570198, 0.23022563755512238, 0.006118743680417538, -0.2539628744125366, 0.10378075391054153, 0.33098411560058594, 0.009149130433797836, 0.5892532467842102, -0.10806608200073242, -0.05829639732837677, -0.022379284724593163, 0.20746225118637085, -0.10527955740690231, -0.1419219672679901, 0.04791395366191864, 0.36491870880126953, 0.3332374095916748, -0.05937575548887253, -0.08091527968645096, 0.07297761738300323, 0.233144149184227, -0.05247693881392479, 0.003004562109708786, 0.08715862035751343, -0.1870844066143036, -0.040420882403850555, 0.16658832132816315, -0.2382637858390808, 0.15281282365322113, 0.15056660771369934, -0.15060576796531677, -0.014066191390156746, -0.31691107153892517, -0.22607411444187164, 0.1385507881641388, 0.15584343671798706, 0.5817118287086487, 0.12869426608085632, 0.3334384560585022, -0.13192909955978394, -0.1932002305984497, -0.3791253864765167, 0.05765261501073837, 0.1512160450220108, -0.19382597506046295, 0.1737961620092392, -0.14543916285037994, 0.03654862940311432, 0.028119508177042007, -0.6938310265541077, 0.04465685784816742, -0.09636116772890091, -0.19447949528694153, 0.053863633424043655, -0.10521431267261505, 0.21629232168197632, 0.12007053196430206, -0.21245317161083221, 0.28098177909851074, -0.06108429282903671, -0.1656043827533722, -0.09610534459352493, -0.012270428240299225, 0.036058563739061356, 0.21402385830879211, 0.047058384865522385, 0.0029297340661287308, 0.17347095906734467, -0.08416134119033813, -0.4023233950138092, -0.33856046199798584, 0.07223169505596161, -0.08918358385562897, 0.20778372883796692, 0.5260066390037537, 0.07933361828327179, -0.04332863911986351, -0.5001630187034607, 0.3418537378311157, 0.17125989496707916, -0.2787891924381256, 0.35814493894577026, -0.20939768850803375, 0.18847393989562988, 0.026400234550237656, -0.08357330411672592, -0.01334911398589611, -0.30302897095680237, 0.20116408169269562, 0.5015555620193481, 0.25156331062316895, 0.28234970569610596, 0.35745489597320557, 0.2633712887763977, -0.04834933951497078, -0.004742708057165146, 0.16473962366580963, 0.33532074093818665, 0.3585025370121002, -0.1083960235118866, -0.2562657594680786, -0.1058746948838234, -0.8942083716392517, 0.06576969474554062, 0.3306569457054138, -0.05344714596867561, -0.266445130109787, -0.2960113286972046, 0.2652876377105713, -0.044467754662036896, 0.12494673579931259, 0.39584171772003174, 0.1515047401189804, -0.027753734961152077, -0.07511481642723083, -0.06603488326072693, 0.436036080121994, 0.01464577205479145, 0.03303549438714981, 0.012260138057172298, 0.38509735465049744, -0.1809912770986557, 0.6154465675354004, 0.23864111304283142, -0.29489660263061523, 0.24687442183494568, -0.2687767446041107, -0.01609959825873375, -0.38049864768981934, 0.14055973291397095, -0.21494683623313904, 0.13249942660331726, -0.13962724804878235, -0.08481478691101074, -0.1557292342185974, -0.18568550050258636, 0.2108892798423767, 0.3257882297039032, -0.05601195991039276, 0.02706259861588478, -0.012488769367337227, -0.006273720413446426, 0.2157731056213379, -0.0722607746720314, 0.008547909557819366, -0.16570070385932922, -0.12190929055213928, -0.28322309255599976, -0.3324130177497864, 0.2549269497394562, -0.04207347705960274, -0.416433185338974, -0.0695744976401329, 0.0470716767013073, 0.17468112707138062, 0.571999192237854, 0.057209424674510956, 0.2247125655412674, -0.15257741510868073, 0.11330397427082062, -0.1367260366678238, 0.5029537677764893, -0.1614837795495987, -0.21735019981861115, 0.5037885308265686, 0.14878293871879578, -0.3988541066646576, -0.1728271245956421, -0.14505141973495483, 0.10501797497272491, -0.3108484447002411, 0.03740761801600456, -0.3851984143257141, 0.035042792558670044, 0.2270035594701767, 0.45199018716812134, 0.030863549560308456, -0.15458741784095764, -0.17307502031326294, -0.2341376543045044, -0.1679702252149582, -0.17699694633483887, -0.07721433788537979, 0.33253371715545654, 0.11854162067174911, -0.5217429995536804, -0.2831084728240967, -0.2218746840953827, -0.21664543449878693, -0.11684474349021912, 0.4292852580547333, -0.09597210586071014, 0.1976209133863449, -0.4244111180305481, -0.021713271737098694, 0.2756626605987549, 0.07550601661205292, 0.2074224054813385, 0.04718652740120888, 0.11861681193113327, -0.15475960075855255, 0.38129329681396484, 0.1365758180618286, -0.09779177606105804, 0.12088268995285034, 0.08734162896871567, 0.1731404811143875, -0.030942145735025406, -0.11824361979961395, 0.2858741879463196, -0.387058287858963, -0.24091842770576477, -0.2526109218597412, 0.6065801382064819, 0.03451194614171982, 0.13066446781158447, 0.2011978030204773, 0.37899523973464966, -0.19072788953781128, 0.1544511616230011, 0.5385931730270386, 0.8276066184043884, -0.10918334126472473, 0.10955998301506042, 0.644987165927887, 0.10660766065120697, 0.3623749315738678, 0.46513664722442627, 0.1103195920586586, -0.46435457468032837, -0.1454155147075653, -0.09503904730081558, -0.4753379821777344, 0.18984287977218628, 0.2201744168996811, -0.28131622076034546, 0.10273998230695724, -0.20253130793571472, 0.4250155985355377, 0.11371038854122162, -0.1704331487417221, -0.1086486354470253, -0.12362675368785858, -0.20006351172924042, 0.05827096849679947, 0.04766250029206276, -0.3526817858219147, -0.17186275124549866, -0.18647460639476776, -0.09502243995666504, -0.10464543849229813, -0.07011521607637405, -0.01499986369162798, -0.32503828406333923, -0.04540318250656128, 0.4836616814136505, -0.7281646132469177, 0.019850902259349823, 0.1408109813928604, 0.0578351691365242, -0.1766631156206131, -0.07002707570791245, -0.18267343938350677, 0.09840930253267288, -0.28285011649131775, -0.16208066046237946, -0.3218933939933777, 0.18635906279087067, 0.009796194732189178, 0.08413424342870712, 0.1313338279724121, -0.10874085873365402, -0.1377049833536148, 0.051309749484062195, 0.1794710010290146, 0.1363493800163269, -0.22458477318286896, -0.20159466564655304, -0.05018407106399536, -0.2770039141178131, -0.1344670206308365, 0.03154091536998749, 0.14421111345291138, -0.1530606895685196, -0.10887085646390915, 0.08988082408905029, 0.048057347536087036, -0.08801360428333282, 0.026797376573085785, 0.647964358329773, 0.20055736601352692, 0.46968698501586914, 0.2697419226169586, -0.05491971969604492, -0.19102242588996887, 0.05960029363632202, 0.5864042639732361, -0.614002525806427, 0.1377328485250473, 0.08553086221218109, -0.10888119041919708, -0.017055708914995193, 0.5587210059165955, -0.14631657302379608, 0.331133633852005, -0.0994507223367691, -0.08585239946842194, -0.3952614367008209, 0.2944931983947754, 0.03458390012383461, 0.2714483439922333, -0.24112269282341003, -0.005688400939106941, -0.04902387037873268, -0.01776554249227047, -0.201321542263031, -0.027435172349214554, -0.10238278657197952, 0.07542799413204193, -0.5516823530197144, -0.006328251212835312, 0.006059696897864342, 0.11832624673843384, 0.08394694328308105, 0.12772208452224731, -0.40312981605529785, -0.1666737198829651, 0.04904616251587868, 0.16361050307750702, 0.14344865083694458, -0.13647828996181488, 0.10579193383455276, 0.01644318550825119, -0.20591610670089722, -0.190421462059021, -0.08907733857631683, -0.1587846577167511, -0.15243074297904968, -0.17989367246627808, 0.37324613332748413, 0.01335063949227333, -0.45008760690689087, -0.09930746257305145, -0.3206630349159241, 0.3353334963321686, 0.0838315412402153, 0.03387057036161423, 0.051851704716682434, -0.06759724020957947, -0.13659867644309998, 0.2506709098815918, 0.025240309536457062, -0.2826595902442932, 0.3494511842727661, -0.45874160528182983, -0.38218095898628235, -0.1372278779745102, 0.45602914690971375, 0.2827410101890564, -0.19411784410476685, 0.07832319289445877, 0.0601528137922287, 0.1380980908870697, -0.240096777677536, -0.0345078706741333, 0.07294293493032455, -0.012485983781516552, 0.14425025880336761, 0.3384785056114197, 0.2148677110671997, -0.13689610362052917, 0.08492578566074371, 0.10684197396039963, -0.044374458491802216, -0.005736485123634338, 0.005963967181742191, 0.6895577311515808, 0.02217402681708336, 0.06496753543615341, 0.40456223487854004, 0.08228680491447449, 0.3356212079524994, -0.025246232748031616, -0.09287125617265701, 0.3353498876094818, 0.28873834013938904, -0.028422508388757706, 0.19666478037834167, -0.09208850562572479, -0.06859986484050751, 0.2863985598087311, 0.5743163824081421, -0.217049241065979, 0.10652440041303635, 0.35711777210235596, 0.2653890550136566, 0.06380269676446915, -0.2555144429206848, -0.11675466597080231, 0.07686401158571243, -0.0006837816908955574, -0.10983162373304367, -0.02754918485879898, -0.19418178498744965, -0.3827090263366699, -0.15051156282424927, -0.38976025581359863, 0.23271280527114868, -0.16596834361553192, 0.21777436137199402, -0.3669431805610657, 0.6742685437202454, 0.21016672253608704, -0.036913610994815826, -0.1713700294494629, 0.531313419342041, 0.32480645179748535, -0.07920841872692108, -0.10937197506427765, 0.36681294441223145, 0.35727688670158386, 0.3015880286693573, -0.24070590734481812, 0.07957668602466583, -0.19189326465129852, -0.256619930267334, -0.05457766726613045, 0.15614713728427887, 0.1720077097415924, 0.0037681609392166138, 0.24825571477413177, 0.07094943523406982, -0.12562759220600128, 0.3689873516559601, 0.2804301381111145, 0.03707500547170639, -0.1932654231786728, 0.3348274230957031, -0.2718711495399475, -0.19034546613693237, 0.13119208812713623, 0.006321728229522705, -0.44025111198425293, 0.10308200865983963, 0.3191308379173279, -0.12231358885765076, 0.020165491849184036, 0.045045752078294754, 0.03412159904837608, -0.36949536204338074, 0.47349482774734497, 0.157785564661026, 0.6076852679252625, -0.07976879924535751, -0.1412038505077362, -0.2672116160392761, 0.2897804081439972, -0.44175928831100464, 0.07409419864416122, 0.3080427348613739, 0.2579089105129242, -0.048748187720775604, 0.2920193672180176, 0.07726946473121643, 0.22331060469150543, -0.04798690974712372, 0.37013617157936096, -0.3534587025642395, -0.13685186207294464, 0.3459898829460144, 0.048521608114242554, -0.2119520604610443, -0.2849324941635132, 0.24081210792064667, -0.3483980596065521, 0.0187244713306427, 0.15983879566192627, 0.16104570031166077, 0.01161128282546997, 0.24859930574893951, 0.44378986954689026, 0.11999824643135071, 0.0778709277510643, 0.13558220863342285, 0.01829301379621029, -0.27656033635139465, -0.20720405876636505, -0.03770628198981285, 0.35013261437416077, 0.1534586250782013, 0.4672715663909912, -0.24801312386989594, 0.3416926860809326, -0.0683879479765892, 0.049189675599336624, 0.07881156355142593, 0.32670900225639343, -0.24871790409088135, 0.4114185869693756, -0.5436218976974487, 0.06655983626842499, 0.029938649386167526, -0.1942567527294159, 0.13547027111053467, 0.10805897414684296, -0.12194140255451202, -0.5837488174438477, 0.611818790435791, -0.16556726396083832, -0.41068053245544434, 0.10208886861801147, -0.014482170343399048, 0.33524033427238464, -0.12222889810800552, -0.13298460841178894, 0.01589091867208481, 0.4949215054512024, -0.03308655321598053, -0.20153777301311493, 0.012879306450486183, 0.002036592923104763, 0.036506328731775284, -0.16226433217525482, 0.21191158890724182, -0.007995322346687317, -0.14545698463916779, -0.38979530334472656, -0.5064116716384888 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Working with Arrow can be quite fun sometimes. You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741). Let me know if it works. I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
67
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Working with Arrow can be quite fun sometimes. You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741). Let me know if it works. I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week.
[ -0.22131282091140747, 0.19797593355178833, -0.015701476484537125, 0.3644227385520935, 0.3536314368247986, 0.012184731662273407, 0.5489983558654785, 0.17654363811016083, -0.22645021975040436, 0.2063266932964325, 0.21528120338916779, 0.23048175871372223, -0.18102702498435974, 0.0037142839282751083, 0.28497976064682007, -0.3763326406478882, 0.152505561709404, 0.38059860467910767, 0.03357338160276413, 0.13607634603977203, -0.039774078875780106, -0.0720350444316864, -0.12139444053173065, 0.11141834408044815, -0.4059668779373169, -0.004856394603848457, -0.1747133433818817, -0.12007410079240799, -0.2310265600681305, -0.5286941528320312, 0.18104706704616547, 0.06852541118860245, 0.07160241156816483, 0.22119921445846558, -0.00012125128705520183, 0.087012380361557, 0.5184177756309509, 0.07389410585165024, -0.314426451921463, -0.02535131573677063, 0.1473911702632904, -0.41041964292526245, 0.253574401140213, -0.2232877016067505, 0.05241330713033676, -0.6484956741333008, 0.07178685069084167, -0.02528339810669422, 0.1690184772014618, 0.2796277403831482, 0.15558156371116638, 0.2720470428466797, 0.3203715682029724, -0.1293947547674179, 0.49582532048225403, 0.41107404232025146, -0.291288822889328, -0.0375177375972271, 0.24390144646167755, 0.09630795568227768, -0.20482882857322693, -0.08129699528217316, -0.04610501229763031, 0.12726333737373352, 0.4374941289424896, 0.2534180283546448, 0.18010872602462769, -0.2713247239589691, 0.1292906552553177, 0.31187501549720764, 0.5142444968223572, -0.2984481453895569, -0.16867932677268982, -0.2406480312347412, 0.06960608065128326, -0.12142010778188705, 0.05004085227847099, 0.20967017114162445, -0.3758707046508789, -0.17506656050682068, -0.2559000253677368, 0.05319465324282646, -0.38254350423812866, 0.1938743144273758, 0.33222997188568115, -0.0729312151670456, -0.07717210799455643, 0.1957789957523346, 0.09489583224058151, -0.08444440364837646, 0.4489101767539978, -0.3274928033351898, -0.06036163493990898, 0.16821371018886566, -0.026027116924524307, 0.19145184755325317, -0.06189226359128952, -0.24891257286071777, 0.3557296693325043, -0.01463739201426506, 0.09079591929912567, -0.0260440893471241, 0.40901800990104675, -0.0300462543964386, -0.1666976511478424, 0.24244295060634613, 0.026845183223485947, -0.056447748094797134, -0.012662455439567566, 0.1458718478679657, 0.136891171336174, 0.0023784898221492767, -0.30369776487350464, -0.3543187975883484, 0.4389380216598511, -0.15977036952972412, 0.2262704223394394, 0.27198508381843567, 0.05805480480194092, 0.052741888910532, -0.3872825801372528, -0.16340970993041992, -0.051205333322286606, 0.26051390171051025, 0.007941960357129574, -0.16952332854270935, -0.07498250901699066, 0.3475947976112366, -0.11349550634622574, -0.07718408852815628, -0.20060665905475616, 0.014128798618912697, -0.18721896409988403, -0.035555265843868256, 0.18567727506160736, -0.0006735138595104218, 0.1712857484817505, -0.10051486641168594, 0.1102587878704071, 0.03648781031370163, 0.22940906882286072, -0.0032715662382543087, 0.07451892644166946, 0.24315398931503296, -0.10598629713058472, 0.07599572092294693, -0.10074500739574432, -0.10353982448577881, -0.19389601051807404, 0.359540194272995, -0.007272303104400635, -0.31636348366737366, -0.3604942262172699, 0.06773706525564194, -0.18847990036010742, 0.10953206568956375, -0.33342450857162476, 0.024151522666215897, 0.2464960515499115, 0.1929251104593277, 0.046809665858745575, -0.0788818895816803, 0.11973263323307037, -0.41869527101516724, 0.2552203834056854, 0.15068258345127106, -0.3296797573566437, -0.07641936838626862, -0.1774587631225586, -0.1453157514333725, 0.014685779809951782, 0.14076374471187592, -0.22774863243103027, 0.3168017864227295, -0.19699908792972565, 0.16468358039855957, 0.5898751020431519, 0.1421811282634735, -0.1942751556634903, 0.04892835021018982, -0.03594230115413666, -0.133045494556427, 0.2738947868347168, 0.13370515406131744, -0.08580376207828522, 0.0003618673363234848, -0.2265041172504425, 0.2427280992269516, -0.20607829093933105, -0.1284233033657074, -0.10287192463874817, -0.4257863461971283, 0.2570195496082306, 0.1826576292514801, 0.18831996619701385, -0.20023396611213684, -0.07634573429822922, -0.44529083371162415, 0.1509932279586792, -0.4555950462818146, 0.31997421383857727, 0.20126575231552124, 0.2738684117794037, -0.06866240501403809, 0.09198195487260818, -0.1971549391746521, -0.6865985989570618, 0.22454994916915894, -0.32398316264152527, 0.11369180679321289, -0.11731158196926117, -0.038934532552957535, -0.047035861760377884, 0.23423530161380768, -0.18901124596595764, 0.016943540424108505, 0.030437912791967392, 0.007918030023574829, 0.2468835413455963, -0.15512675046920776, -0.1208433210849762, -0.3237173557281494, -0.07242685556411743, 0.08797339349985123, -0.4804646074771881, 0.3551839292049408, -0.026848239824175835, -0.32553306221961975, -0.24177566170692444, 0.12611204385757446, -0.09644276648759842, -0.06996334344148636, -0.03479264676570892, 0.13794627785682678, -0.1718253642320633, 0.009486444294452667, -0.44156792759895325, 0.0668799877166748, 0.03407071530818939, -0.36494317650794983, 0.3318943679332733, 0.09767113626003265, 0.009557418525218964, -0.26819908618927, 0.02322068065404892, 0.3331257700920105, 0.10535520315170288, 0.5135990977287292, -0.04698844999074936, -0.012193531729280949, -0.09000033885240555, 0.2590038776397705, -0.0001806393265724182, -0.09548314660787582, 0.07814087718725204, 0.1912839561700821, 0.3023991584777832, 0.10074297338724136, -0.09008598327636719, 0.018186122179031372, 0.3622381091117859, -0.07504436373710632, -0.01547858864068985, 0.21645748615264893, -0.358288049697876, -0.04430582746863365, 0.11466165632009506, -0.22369173169136047, 0.09582217782735825, 0.18965083360671997, -0.0962161123752594, -0.003071364015340805, -0.12162446230649948, -0.245604008436203, 0.23082062602043152, 0.10904426872730255, 0.4995396137237549, 0.08597999066114426, 0.24744680523872375, -0.20250189304351807, -0.29542720317840576, -0.11554180085659027, 0.11008253693580627, 0.21187931299209595, -0.31031912565231323, -0.036450907588005066, 0.0036008190363645554, -0.026373326778411865, -0.04725710675120354, -0.4187701344490051, -0.07728025317192078, -0.002174077555537224, -0.11590053141117096, 0.03878270462155342, -0.13915225863456726, 0.20608758926391602, 0.09571138024330139, -0.17541466653347015, 0.1691354662179947, -0.08273731172084808, -0.1555672585964203, -0.07009465992450714, -0.06287471950054169, 0.027388084679841995, 0.4325105547904968, -0.0062162973918020725, 0.10227809101343155, 0.06940127909183502, 0.007533673197031021, -0.386561781167984, -0.3180577754974365, 0.0014938674867153168, -0.18850071728229523, 0.3855702579021454, 0.5089980363845825, 0.01295473426580429, 0.07049642503261566, -0.23512494564056396, 0.42832833528518677, -0.06205018609762192, -0.2789500057697296, 0.2951146066188812, -0.24952952563762665, 0.01322257425636053, -0.07542087882757187, -0.06257704645395279, 0.0871272012591362, -0.30139562487602234, 0.4161199927330017, 0.3892332911491394, 0.2587933838367462, 0.2775218188762665, 0.45375576615333557, 0.3612794578075409, -0.15781883895397186, 0.07667676359415054, 0.26655352115631104, 0.08845062553882599, 0.4034973680973053, -0.03177421912550926, -0.25915059447288513, -0.06069565564393997, -0.675292432308197, 0.07913587987422943, 0.1878128945827484, -0.13350066542625427, -0.08554740995168686, -0.3491368889808655, 0.36534106731414795, -0.017570890486240387, 0.25127238035202026, 0.32027870416641235, 0.130918949842453, 0.022084256634116173, -0.0302401315420866, -0.1539268046617508, 0.4097857177257538, -0.05654623359441757, -0.11664872616529465, -0.04449637979269028, 0.3685622215270996, -0.27815210819244385, 0.7187972664833069, 0.15942756831645966, -0.1908808797597885, 0.17351943254470825, -0.1888524889945984, 0.08687439560890198, -0.23857519030570984, -0.05066139996051788, 0.03568948432803154, 0.08391418308019638, -0.03302696719765663, -0.005041547119617462, -0.01465383917093277, -0.15483668446540833, 0.24451839923858643, 0.09449049830436707, 0.01795213669538498, -0.09380503743886948, 0.2726672887802124, 0.0028940215706825256, 0.12385761737823486, -0.14959129691123962, 0.017495155334472656, -0.3889082074165344, -0.18019655346870422, -0.1647978276014328, -0.3463934063911438, 0.26376959681510925, -0.011087080463767052, -0.28536275029182434, 0.03915270417928696, -0.38505053520202637, 0.11644401401281357, 0.42422524094581604, -0.1564011424779892, 0.22179363667964935, -0.020632078871130943, 0.19370555877685547, -0.15111751854419708, 0.6794895529747009, -0.11875083297491074, -0.34091275930404663, 0.42746880650520325, 0.15534892678260803, -0.5605745315551758, -0.08464288711547852, -0.1652866154909134, 0.24614687263965607, -0.31589657068252563, 0.10866895318031311, -0.4143292307853699, -0.14333263039588928, 0.4140113592147827, 0.39137187600135803, -0.0545656643807888, -0.18513788282871246, -0.21211370825767517, -0.30407461524009705, -0.1858677864074707, -0.12978973984718323, 0.012849869206547737, 0.37273192405700684, 0.14850114285945892, -0.30514514446258545, -0.29676076769828796, 0.01640871912240982, -0.12483647465705872, -0.05243995785713196, 0.40779945254325867, -0.24689240753650665, 0.17859111726284027, -0.21985802054405212, -0.0665869265794754, 0.32682347297668457, 0.20263123512268066, 0.05367150902748108, -0.1761282980442047, 0.11340726912021637, -0.039344146847724915, 0.4988565444946289, 0.2018638402223587, -0.11459236592054367, 0.15126225352287292, 0.12141761928796768, 0.252267062664032, -0.18701954185962677, -0.08605045080184937, 0.41176891326904297, -0.26268044114112854, -0.22547583281993866, -0.323644757270813, 0.5513413548469543, 0.042740534991025925, 0.21842525899410248, 0.35255157947540283, 0.43898171186447144, -0.22359320521354675, 0.2400864064693451, 0.4835233986377716, 0.8892105221748352, -0.1507897526025772, 0.24045006930828094, 0.6072924137115479, 0.005507074296474457, 0.27294275164604187, 0.23931650817394257, 0.22259476780891418, -0.5379678010940552, -0.05114845931529999, 0.07093555480241776, -0.3519349992275238, 0.28473398089408875, 0.10380308330059052, -0.11337178945541382, -0.04175938665866852, -0.1383732706308365, 0.41227197647094727, 0.06635601073503494, 0.12671364843845367, -0.2973129451274872, -0.3045106530189514, -0.0827561542391777, 0.031222980469465256, 0.04540405049920082, -0.3888436555862427, -0.05923376977443695, -0.11341892182826996, -0.07888492941856384, -0.07339497655630112, -0.21809230744838715, -0.061666835099458694, -0.5097702741622925, -0.09594164788722992, 0.47218090295791626, -0.44215625524520874, 0.20038649439811707, 0.13334380090236664, 0.1253826916217804, -0.08046165108680725, -0.10254967212677002, -0.034653451293706894, 0.13244116306304932, -0.18098178505897522, -0.06683371216058731, -0.3247704803943634, 0.11695520579814911, 0.05005292594432831, -0.09297768771648407, 0.007003650069236755, -0.12740464508533478, -0.07828468084335327, -0.03454812616109848, -0.05465720593929291, 0.19909827411174774, -0.279914528131485, -0.2094135582447052, -0.25351011753082275, -0.15702220797538757, -0.19317103922367096, 0.03919875994324684, 0.16045816242694855, -0.12081009149551392, -0.07206977158784866, -0.001257389783859253, 0.028835080564022064, -0.06945054233074188, -0.045508407056331635, 0.5458691120147705, 0.21700680255889893, 0.5177693367004395, 0.3589177131652832, -0.04987582564353943, -0.18147656321525574, -0.03329192101955414, 0.6822755336761475, -0.7731728553771973, 0.2939395606517792, 0.18184857070446014, -0.2421349585056305, -0.16770288348197937, 0.5106953382492065, -0.12476278841495514, 0.1342891901731491, -0.10646273195743561, 0.10379135608673096, -0.48086386919021606, 0.29909324645996094, 0.20305298268795013, 0.35783082246780396, -0.17867684364318848, -0.0927870124578476, 0.07187848538160324, 0.12344642728567123, -0.197748064994812, -0.0050354283303022385, 0.09589863568544388, 0.016149505972862244, -0.40357422828674316, -0.042503632605075836, 0.24485798180103302, 0.03978908807039261, 0.0327780544757843, 0.01981031522154808, -0.36077311635017395, -0.13902142643928528, -0.03786160796880722, 0.14554110169410706, -0.037149205803871155, -0.1967013031244278, 0.2865370810031891, -0.022483065724372864, -0.23300811648368835, -0.2979307770729065, 0.1548820436000824, -0.07795717567205429, -0.18536289036273956, -0.28412747383117676, 0.3411075472831726, -0.0969536229968071, -0.34571754932403564, 0.01793956197798252, -0.21943342685699463, 0.29884880781173706, 0.027140144258737564, 0.1437520980834961, 0.12958769500255585, -0.037207718938589096, -0.00950568076223135, 0.21393054723739624, 0.10749555379152298, -0.21734127402305603, 0.20242193341255188, -0.43661779165267944, -0.416458398103714, -0.14296270906925201, 0.3953704237937927, 0.30891352891921997, -0.061444371938705444, 0.12813279032707214, 0.10379216820001602, 0.1279308795928955, -0.20232431590557098, 0.0143390828743577, 0.1377168446779251, -0.1896728277206421, 0.1461171954870224, 0.35541975498199463, 0.06051814183592796, -0.006624087691307068, -0.10272608697414398, 0.1862228810787201, -0.07402347028255463, 0.046620942652225494, 0.1086212545633316, 0.4495139420032501, 0.0012580007314682007, -0.02755565568804741, 0.477154016494751, 0.01750119775533676, 0.29436230659484863, -0.07106178998947144, -0.08561231940984726, 0.36960023641586304, 0.13612473011016846, 0.012899190187454224, 0.08575335890054703, -0.12888531386852264, 0.10216151177883148, 0.23273500800132751, 0.354418009519577, -0.05589400231838226, -0.01865074783563614, 0.7463911771774292, 0.24879541993141174, -0.0134416613727808, -0.3547646105289459, -0.05387168750166893, -0.19856500625610352, -0.12775662541389465, -0.07943312078714371, -0.07918047904968262, -0.25954312086105347, -0.07938125729560852, -0.20000271499156952, -0.4033372402191162, 0.22919140756130219, -0.12262646853923798, 0.08475644141435623, -0.3299497961997986, 0.6227366924285889, 0.21933317184448242, 0.003063701093196869, -0.16118445992469788, 0.4744716286659241, 0.23971180617809296, -0.21449807286262512, -0.32111307978630066, 0.6006438136100769, 0.4467809796333313, 0.3391551971435547, -0.20908892154693604, 0.03971655294299126, 0.02759202942252159, -0.16984404623508453, -0.06829279661178589, 0.07739600539207458, 0.2278272658586502, 0.191487118601799, 0.14241088926792145, 0.05181790888309479, -0.1375400871038437, 0.03417738899588585, 0.2019420564174652, -0.0764235407114029, -0.12304989993572235, 0.21567478775978088, -0.3101530969142914, -0.23950639367103577, -0.016339421272277832, -0.12589305639266968, -0.3975880444049835, -0.06258281320333481, 0.46611252427101135, -0.19911333918571472, -0.043626569211483, -0.23006442189216614, 0.03519738093018532, -0.19803118705749512, 0.5869741439819336, 0.16210244596004486, 0.49916714429855347, -0.39217323064804077, -0.04797423630952835, -0.33897486329078674, 0.23386910557746887, -0.4670828580856323, 0.11459589004516602, 0.27718013525009155, 0.3103753626346588, -0.12250234931707382, 0.06111377105116844, 0.20082172751426697, 0.27449843287467957, 0.06808522343635559, 0.37295204401016235, -0.26228067278862, 0.034185294061899185, 0.3085060119628906, -0.029283197596669197, -0.01489319372922182, -0.4345173239707947, 0.26619210839271545, -0.3839820921421051, -0.023568106815218925, 0.08238492906093597, 0.21931946277618408, 0.2361360490322113, 0.06692487746477127, 0.41593021154403687, -0.006545765325427055, 0.026806846261024475, 0.1588428020477295, -0.23405607044696808, -0.3672117590904236, -0.14263823628425598, -0.24646584689617157, 0.23775553703308105, 0.11278931796550751, 0.4968149960041046, -0.330393522977829, 0.17464226484298706, -0.22607450187206268, 0.022077087312936783, 0.04351632297039032, 0.2901390790939331, -0.14157171547412872, 0.41835007071495056, -0.6275557279586792, 0.12061271071434021, 0.10109469294548035, -0.16842788457870483, 0.0512663759291172, 0.025399180129170418, -0.2978525757789612, -0.4806821346282959, 0.5629155039787292, -0.3771932125091553, -0.456242173910141, 0.07515958696603775, 0.03180014342069626, 0.4164331257343292, -0.21714946627616882, -0.4832150638103485, 0.015603750944137573, 0.3150598704814911, 0.060846585780382156, -0.04681830480694771, 0.16616275906562805, -0.029331274330615997, 0.10804718732833862, -0.15059737861156464, 0.3135238289833069, -0.10692154616117477, -0.17431683838367462, -0.26263701915740967, -0.5996114015579224 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus) Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
37
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus) Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
[ -0.3745763599872589, 0.12805873155593872, -0.047619834542274475, 0.20823878049850464, 0.2405516803264618, -0.0033116415143013, 0.4983978569507599, 0.14746323227882385, -0.29328426718711853, 0.1866019070148468, 0.28144174814224243, -0.05396466329693794, -0.19091755151748657, -0.11750122904777527, 0.2229364961385727, -0.28514689207077026, 0.1425437480211258, 0.3723790943622589, 0.004917345941066742, 0.028200723230838776, -0.08748160302639008, -0.17401713132858276, -0.2596127390861511, -0.11417986452579498, -0.2867547571659088, -0.19243206083774567, -0.23852525651454926, -0.1416579782962799, -0.1820707619190216, -0.5740126371383667, 0.15130330622196198, 0.002133745700120926, 0.2676508128643036, 0.41988426446914673, -0.00012584033538587391, 0.014042176306247711, 0.5327542424201965, -0.029670406132936478, -0.3078179955482483, 0.1804806888103485, 0.11603935807943344, -0.56707763671875, 0.07550225406885147, -0.27681538462638855, 0.06673949956893921, -0.6155690550804138, 0.07928626239299774, -0.0935676246881485, 0.08113209903240204, 0.26869240403175354, 0.07581423223018646, 0.11476597189903259, 0.23322583734989166, -0.201983243227005, 0.4513535499572754, 0.2915460467338562, -0.1934957504272461, 0.09871819615364075, 0.4797884523868561, 0.2244313359260559, -0.13446465134620667, -0.09340988099575043, -0.22578103840351105, 0.27860885858535767, 0.22499600052833557, 0.16199269890785217, 0.5029171705245972, -0.29461032152175903, 0.13336597383022308, 0.3447369933128357, 0.5489016771316528, -0.11152447015047073, -0.20930646359920502, -0.297488808631897, -0.06867729872465134, -0.11758160591125488, -0.24315649271011353, 0.24193157255649567, -0.2852620780467987, -0.13751088082790375, -0.2829046845436096, 0.12524378299713135, -0.3688935935497284, 0.3038165271282196, 0.27151355147361755, 0.00869607925415039, 0.08807917684316635, 0.24282100796699524, -0.03252558037638664, -0.14728842675685883, 0.3926496207714081, -0.15541209280490875, -0.11841286718845367, 0.1431395262479782, 0.05888276547193527, 0.15500572323799133, -0.03807222843170166, -0.28883853554725647, 0.43211668729782104, -0.10634395480155945, 0.01387081854045391, -0.0473385751247406, 0.5867905616760254, -0.09263104945421219, -0.12876632809638977, 0.39049118757247925, -0.19729623198509216, -0.04165010526776314, 0.10457777976989746, 0.10699687153100967, -0.062018491327762604, 0.20882833003997803, -0.28776371479034424, -0.40631788969039917, 0.4093298017978668, -0.10461672395467758, 0.071078822016716, 0.16944049298763275, 0.06700034439563751, 0.1073104664683342, -0.32121944427490234, -0.05982585623860359, -0.17917326092720032, 0.3538227081298828, -0.003910530358552933, -0.025315027683973312, -0.06789378076791763, 0.2610297203063965, -0.038054704666137695, -0.07146210223436356, -0.16402488946914673, -0.08083677291870117, -0.23091760277748108, -0.026076192036271095, 0.2522600293159485, 0.1547972708940506, 0.20872431993484497, -0.22512155771255493, 0.23052774369716644, 0.05265989899635315, 0.10992363095283508, -0.11921955645084381, 0.20410534739494324, 0.30685847997665405, -0.03177596628665924, 0.09199876338243484, -0.06526915729045868, 0.060340069234371185, -0.23986387252807617, 0.47550779581069946, -0.12243186682462692, -0.25116997957229614, -0.2756827771663666, 0.03254875913262367, -0.23423147201538086, 0.08592990785837173, -0.33214595913887024, 0.08392025530338287, 0.4152880609035492, 0.08845429122447968, 0.11650076508522034, -0.12336747348308563, 0.06684602797031403, -0.44322043657302856, 0.036399729549884796, 0.19624824821949005, -0.39477744698524475, 0.0962429791688919, -0.01763007417321205, 0.16938331723213196, 0.2834204137325287, 0.12042546272277832, -0.07690383493900299, 0.2557767331600189, -0.19146737456321716, 0.2448733001947403, 0.5503518581390381, 0.03744020685553551, -0.32487669587135315, 0.23411497473716736, -0.023539017885923386, -0.27919673919677734, 0.3945930600166321, 0.11496543139219284, 0.09642267972230911, -0.051859498023986816, -0.1384652704000473, 0.3612682819366455, -0.23456457257270813, 0.07399799674749374, -0.13796666264533997, -0.5268693566322327, 0.09479816257953644, 0.16226844489574432, 0.3325763940811157, -0.10041556507349014, 0.035372547805309296, -0.35604384541511536, 0.16480177640914917, -0.4008251130580902, 0.31267374753952026, 0.14926943182945251, 0.2288142293691635, -0.18412907421588898, 0.20839904248714447, -0.1813567578792572, -0.6962066292762756, 0.28761276602745056, -0.5014746785163879, 0.07391677796840668, 0.03917267173528671, -0.042970187962055206, -0.16205400228500366, 0.07031501084566116, -0.06924845278263092, 0.01743515022099018, -0.0559539832174778, 0.06695128232240677, 0.3730543255805969, -0.18423813581466675, -0.0645485669374466, -0.37710535526275635, 0.057368241250514984, -0.002746538259088993, -0.36069533228874207, 0.20456448197364807, 0.0023692771792411804, -0.42562687397003174, -0.19670678675174713, 0.07872772961854935, -0.06718759983778, -0.10911653190851212, -0.02989870309829712, 0.19066989421844482, -0.10572783648967743, -0.1265949010848999, -0.5945051908493042, 0.11334392428398132, -0.007530052214860916, -0.17096328735351562, 0.3066865801811218, 0.12030522525310516, -0.03838692978024483, -0.27616170048713684, 0.15489858388900757, 0.2250409722328186, 0.09560470283031464, 0.44436225295066833, -0.04831763356924057, -0.17879779636859894, 0.053685158491134644, 0.10913418233394623, 0.023280469700694084, -0.1872335970401764, 0.057343002408742905, 0.1311625838279724, 0.2436993271112442, 0.01790756732225418, -0.1004728227853775, -0.0674116387963295, 0.23301716148853302, -0.041328758001327515, 0.19553500413894653, 0.12481948733329773, -0.3651069402694702, -0.07162603735923767, 0.1410181224346161, -0.2624342441558838, 0.18577925860881805, 0.2264379858970642, 0.0025504902005195618, 0.007684594020247459, -0.0249638594686985, -0.2826313078403473, 0.16993242502212524, 0.037053853273391724, 0.536016047000885, 0.27104321122169495, 0.2685301899909973, -0.15290601551532745, -0.25962427258491516, -0.07022567093372345, 0.1242121085524559, 0.18143928050994873, -0.2733657658100128, 0.0103879664093256, 0.00004987791180610657, -0.13574481010437012, -0.04129433631896973, -0.3904174566268921, 0.0741705447435379, 0.08749144524335861, -0.03729429095983505, 0.07033555209636688, -0.15334562957286835, 0.16520272195339203, -0.03977786749601364, -0.04183097183704376, 0.2344285398721695, -0.27108269929885864, -0.09374312311410904, -0.009346185252070427, -0.28187325596809387, -0.03239976987242699, 0.3056127727031708, -0.003835866693407297, 0.1419285535812378, 0.09929691255092621, 0.09660113602876663, -0.25070497393608093, -0.2788386940956116, -0.034101806581020355, 0.021712327376008034, 0.32309556007385254, 0.45745718479156494, 0.14997318387031555, 0.11795775592327118, -0.1752307265996933, 0.3148292601108551, -0.11351814866065979, -0.21769094467163086, 0.17100772261619568, -0.31605884432792664, 0.03262798860669136, -0.12103545665740967, -0.04946490377187729, 0.01121734082698822, -0.37295183539390564, 0.06965799629688263, 0.4055190980434418, 0.22052885591983795, 0.308449387550354, 0.48283669352531433, 0.23675478994846344, 0.12433093041181564, 0.1658310741186142, 0.19842711091041565, 0.215118408203125, 0.4572960138320923, -0.02934880368411541, -0.29747408628463745, -0.19027799367904663, -0.6981372833251953, 0.01840951107442379, 0.37383365631103516, -0.2694818377494812, -0.024569276720285416, -0.39427298307418823, 0.10623672604560852, 0.05831814557313919, 0.2845516502857208, 0.37828269600868225, -0.04741939529776573, -0.02540978044271469, -0.07031663507223129, -0.05842182785272598, 0.24947673082351685, 0.12398865818977356, 0.11730872839689255, -0.03087523952126503, 0.4462181031703949, -0.19458651542663574, 0.714711606502533, 0.09477172791957855, -0.3038937449455261, 0.27079129219055176, -0.1401405781507492, 0.017062649130821228, -0.270302951335907, 0.037200942635536194, 0.09616556018590927, 0.12775203585624695, -0.2376384735107422, 0.14757728576660156, -0.05910392105579376, -0.38616102933883667, 0.17759770154953003, 0.047105368226766586, -0.07902590930461884, -0.04445914179086685, 0.2812485694885254, -0.20390628278255463, 0.13388656079769135, -0.07929107546806335, 0.03680705279111862, -0.31275129318237305, -0.2526501715183258, -0.19027096033096313, -0.4711127281188965, 0.1410619169473648, 0.04336013272404671, -0.10229117423295975, 0.12383563816547394, -0.30254170298576355, 0.27921801805496216, 0.43464237451553345, 0.0007245941087603569, 0.2395622283220291, -0.07878220081329346, 0.2065567523241043, -0.09702420979738235, 0.6973793506622314, -0.18041661381721497, -0.08164305984973907, 0.32599687576293945, 0.19557812809944153, -0.551875114440918, -0.24223142862319946, -0.06724086403846741, 0.09544386714696884, -0.13721945881843567, 0.11831492185592651, -0.4352438151836395, 0.12174129486083984, 0.31662240624427795, 0.42479467391967773, -0.05360976606607437, -0.22969675064086914, -0.29663708806037903, -0.33488839864730835, -0.21743807196617126, -0.039017580449581146, 0.10083784908056259, 0.3269648253917694, 0.19873501360416412, -0.3782701790332794, -0.4008761942386627, -0.040806058794260025, -0.07394465804100037, 0.0705559253692627, 0.3742888867855072, 0.02639641799032688, 0.01728276163339615, -0.2732779085636139, 0.13705074787139893, 0.35070353746414185, 0.1135040894150734, -0.004343338310718536, 0.0875767171382904, 0.1709025800228119, 0.01458426471799612, 0.4518882632255554, 0.3074623942375183, -0.04811576008796692, -0.036169879138469696, 0.17421174049377441, 0.3180810809135437, -0.15632431209087372, -0.01637696474790573, 0.259396493434906, -0.33164992928504944, -0.458773136138916, -0.292275607585907, 0.5466740727424622, 0.10496796667575836, 0.1723930388689041, 0.2966722249984741, 0.26433372497558594, -0.30653631687164307, 0.44640445709228516, 0.5022369623184204, 0.8925898671150208, -0.11671487987041473, 0.21795174479484558, 0.37229692935943604, 0.28579139709472656, 0.2620510458946228, 0.3009257912635803, 0.18851573765277863, -0.4703860580921173, 0.06114441901445389, 0.10758200287818909, -0.4274890422821045, 0.1937938928604126, 0.3318334221839905, -0.2136283665895462, 0.055597443133592606, -0.2017824649810791, 0.3583788573741913, -0.0195149052888155, 0.056936949491500854, -0.07708121091127396, -0.25091537833213806, -0.030021123588085175, -0.02209639549255371, 0.10721707344055176, -0.3095642328262329, -0.1783050000667572, -0.1149400845170021, -0.18043243885040283, -0.15788018703460693, -0.30142343044281006, -0.12944331765174866, -0.36611539125442505, -0.026383694261312485, 0.352342814207077, -0.5593372583389282, 0.01273837685585022, 0.09759008884429932, 0.09047667682170868, 0.051414892077445984, -0.07093970477581024, -0.06835836172103882, 0.23989570140838623, -0.2562883198261261, 0.10048482567071915, -0.3581423759460449, 0.1616690754890442, -0.01705760695040226, -0.06351323425769806, 0.010568533092737198, -0.17075082659721375, -0.10433375835418701, -0.1473846286535263, 0.001024000346660614, 0.09475335478782654, -0.2414892315864563, -0.3821016252040863, -0.19393274188041687, -0.08715638518333435, -0.08788153529167175, -0.028743375092744827, 0.08978521823883057, -0.0756547823548317, 0.24119636416435242, 0.07993699610233307, -0.14551714062690735, -0.050012607127428055, 0.026844412088394165, 0.6528419256210327, -0.0308868158608675, 0.4302843511104584, 0.31638380885124207, -0.0479409322142601, -0.13713133335113525, -0.005802512168884277, 0.46905869245529175, -0.6159567832946777, 0.3625901937484741, 0.15116073191165924, -0.2743070721626282, -0.005991182290017605, 0.44511669874191284, -0.07272463291883469, 0.2775435745716095, -0.16059520840644836, -0.004994310438632965, -0.4703550934791565, 0.23545622825622559, 0.12058417499065399, 0.3705759048461914, -0.15226000547409058, -0.22069984674453735, 0.09761753678321838, 0.16113807260990143, -0.12689556181430817, -0.03276228904724121, 0.008387764915823936, 0.016170663759112358, -0.6082546710968018, 0.14832529425621033, 0.08972154557704926, 0.15009211003780365, -0.04801696911454201, 0.046520356088876724, -0.2260243147611618, -0.0851689949631691, 0.026853982359170914, 0.2054857760667801, -0.031073477119207382, -0.052264563739299774, 0.35204431414604187, -0.15900367498397827, -0.3431048095226288, -0.19624628126621246, 0.17369158565998077, -0.02587493136525154, -0.20292578637599945, -0.2717246413230896, 0.35824429988861084, 0.009541571140289307, -0.17172548174858093, 0.16339139640331268, -0.2824486494064331, 0.2918497323989868, 0.06435714662075043, 0.205990731716156, 0.192140132188797, -0.0676647499203682, -0.03455008566379547, 0.1483299434185028, 0.2114982008934021, -0.2168189287185669, 0.18925249576568604, -0.40901774168014526, -0.4071270227432251, -0.027428988367319107, 0.33213457465171814, 0.3150840997695923, -0.0426492802798748, 0.0057698823511600494, 0.07252566516399384, 0.11303403973579407, -0.280831515789032, 0.044814761728048325, 0.11336536705493927, -0.05560944229364395, 0.15347132086753845, 0.44820332527160645, 0.09660296142101288, -0.09774608165025711, -0.19229833781719208, 0.20721587538719177, 0.07310006767511368, 0.05315108597278595, -0.038838159292936325, 0.4976276457309723, 0.06062121316790581, -0.10856877267360687, 0.36378559470176697, -0.025639746338129044, 0.4311865270137787, -0.015195593237876892, 0.017849378287792206, 0.42529335618019104, 0.2894127070903778, -0.026756305247545242, 0.03566534444689751, -0.10305193066596985, -0.02763396129012108, 0.4369138479232788, 0.4502415955066681, -0.08807762712240219, 0.04227321594953537, 0.42867743968963623, 0.33602264523506165, 0.0045402394607663155, -0.3861784338951111, -0.19567391276359558, -0.1396334171295166, -0.12592682242393494, -0.23163288831710815, -0.0897773951292038, -0.08556024730205536, -0.16629724204540253, -0.2277529537677765, -0.41161447763442993, 0.06153791770339012, -0.12466245889663696, 0.006956078112125397, -0.2559811472892761, 0.5384839177131653, 0.08665645122528076, -0.02746107429265976, -0.23189419507980347, 0.47047021985054016, 0.24908214807510376, -0.11127254366874695, -0.10511985421180725, 0.5898385047912598, 0.559963047504425, 0.43872302770614624, -0.25530266761779785, -0.011218412779271603, -0.02012387290596962, -0.12639519572257996, -0.3179321587085724, 0.1776316910982132, 0.24755984544754028, 0.08267876505851746, 0.16293329000473022, -0.0125131132081151, -0.1205989345908165, 0.22892433404922485, 0.16149812936782837, -0.23850557208061218, 0.03324395790696144, 0.3079955577850342, -0.2352716624736786, -0.19897931814193726, 0.043784841895103455, -0.06363511830568314, -0.45376092195510864, -0.09030542522668839, 0.5740745067596436, -0.3744279742240906, 0.010804029181599617, -0.08257494866847992, -0.018042651936411858, -0.3596271276473999, 0.6653100252151489, 0.2563318908214569, 0.6802738904953003, -0.2463735044002533, 0.015094645321369171, -0.32819491624832153, 0.30732300877571106, -0.5743774175643921, 0.19132037460803986, 0.18576467037200928, 0.4029058516025543, -0.07870281487703323, 0.07603869587182999, 0.13967479765415192, 0.2906525433063507, -0.09444287419319153, 0.5938667058944702, -0.2642398178577423, 0.018315035849809647, 0.01358640193939209, 0.03210165351629257, -0.0200352743268013, -0.4920802116394043, 0.2735617756843567, -0.4048539698123932, -0.061160214245319366, 0.07246394455432892, 0.09605541825294495, 0.3531216084957123, 0.3399710953235626, 0.5330668091773987, -0.013852166011929512, 0.152252659201622, 0.0977395549416542, -0.03381618857383728, -0.49071204662323, -0.02325489930808544, -0.2535429000854492, 0.16726818680763245, 0.1176786869764328, 0.3558965027332306, -0.34109458327293396, 0.30615702271461487, -0.04579778015613556, -0.1281309425830841, -0.018648475408554077, 0.2860834002494812, -0.08825241029262543, 0.2683667540550232, -0.5508415102958679, 0.09477437287569046, 0.03822050243616104, -0.1866859495639801, 0.07874684780836105, 0.013466892763972282, -0.21530060470104218, -0.5623306632041931, 0.6698253154754639, -0.34106209874153137, -0.5061424374580383, -0.11337561905384064, 0.0440773144364357, 0.22925212979316711, -0.12405919283628464, -0.23941665887832642, 0.0347791388630867, 0.35170337557792664, 0.1622706949710846, -0.21053548157215118, 0.11080510914325714, -0.13352341949939728, -0.008062776178121567, -0.1948653757572174, 0.2667158842086792, -0.08929789066314697, -0.23011939227581024, -0.6121368408203125, -0.6397602558135986 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
42
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported.
[ -0.15002933144569397, 0.20671406388282776, -0.04670087993144989, 0.27963361144065857, 0.4458690285682678, -0.014902453869581223, 0.6093955636024475, 0.1298004537820816, -0.32201841473579407, 0.19370654225349426, 0.271323025226593, 0.3150213360786438, -0.16626356542110443, -0.13409139215946198, 0.284039705991745, -0.3528667986392975, 0.1987500786781311, 0.4137447774410248, -0.02612810581922531, 0.053942643105983734, -0.07697150111198425, -0.1808711588382721, -0.234281986951828, 0.15002962946891785, -0.4875096082687378, 0.01622002199292183, -0.2609250247478485, -0.08983977884054184, -0.2083284556865692, -0.6032207012176514, 0.25451934337615967, 0.03924970328807831, 0.02570648118853569, 0.21638968586921692, -0.00011871288734255359, 0.07178916037082672, 0.5233741998672485, 0.10011786222457886, -0.375701904296875, -0.020712241530418396, 0.12989699840545654, -0.43134209513664246, 0.2927474081516266, -0.3118646442890167, -0.04442719370126724, -0.6730904579162598, -0.0052331071346998215, -0.09253118932247162, 0.08519717305898666, 0.2867693305015564, 0.1531415581703186, 0.149641215801239, 0.26104646921157837, -0.21679222583770752, 0.504507839679718, 0.30869626998901367, -0.23492683470249176, -0.09653878211975098, 0.26609379053115845, 0.027071794494986534, -0.0867839977145195, -0.1411193609237671, -0.049965523183345795, 0.23373930156230927, 0.34847554564476013, 0.30372536182403564, 0.2073802649974823, -0.21040979027748108, 0.02562824636697769, 0.35534101724624634, 0.5374172925949097, -0.21185347437858582, -0.1425718367099762, -0.1533842384815216, 0.007465902250260115, -0.13599613308906555, -0.03676046431064606, 0.21092240512371063, -0.30659762024879456, -0.08608122169971466, -0.27233466506004333, 0.15102191269397736, -0.389447957277298, 0.2965713441371918, 0.19560539722442627, 0.01833658665418625, 0.043337538838386536, 0.2343142330646515, -0.019765879958868027, -0.16946835815906525, 0.520832896232605, -0.29110074043273926, -0.022575903683900833, 0.1274241805076599, 0.04799649864435196, 0.15951940417289734, -0.07552420347929001, -0.3094823658466339, 0.38649675250053406, -0.05545151233673096, 0.1326500028371811, 0.044081561267375946, 0.37917596101760864, 0.021211188286542892, -0.15554600954055786, 0.23365150392055511, -0.12819457054138184, -0.0899411216378212, 0.005533009767532349, 0.07009997218847275, 0.0022219568490982056, 0.04704378545284271, -0.26288512349128723, -0.2715010941028595, 0.42324814200401306, -0.09344061464071274, 0.26949769258499146, 0.18733350932598114, 0.02715188078582287, 0.03920522704720497, -0.5091847777366638, -0.13349132239818573, -0.0782192274928093, 0.23539522290229797, 0.08063317835330963, -0.08232074975967407, -0.06162683293223381, 0.30549705028533936, -0.11721394211053848, -0.14751036465168, -0.23557507991790771, 0.01660744845867157, -0.2514525353908539, -0.025388190522789955, 0.17084042727947235, 0.2288854867219925, 0.1448998749256134, -0.047035783529281616, 0.06509485095739365, 0.11351606249809265, 0.2895407974720001, -0.01059103012084961, 0.1357872039079666, 0.19527576863765717, -0.20650526881217957, 0.03022058494389057, -0.012940432876348495, -0.11328244209289551, -0.17925825715065002, 0.3830025792121887, 0.018222466111183167, -0.3663845360279083, -0.28733256459236145, 0.09464316815137863, -0.21517875790596008, 0.0613824799656868, -0.07093948870897293, 0.1718260943889618, 0.2112196832895279, 0.15108290314674377, 0.060830093920230865, -0.033351510763168335, 0.04179215058684349, -0.44017136096954346, 0.21931885182857513, 0.13951393961906433, -0.40588054060935974, 0.05546289682388306, -0.16317737102508545, -0.0664396584033966, -0.015645623207092285, -0.024563830345869064, -0.2742758095264435, 0.27727073431015015, -0.19553767144680023, 0.22987450659275055, 0.5872290730476379, 0.16619913280010223, -0.2438395619392395, -0.03689838573336601, 0.0033272728323936462, -0.16649490594863892, 0.2262384593486786, 0.16005147993564606, -0.11714869737625122, 0.06815125793218613, -0.17701947689056396, 0.30294907093048096, -0.15429984033107758, -0.15962733328342438, -0.10558947920799255, -0.3996221721172333, 0.34693825244903564, 0.2101229429244995, 0.148347407579422, -0.11168443411588669, -0.10295330733060837, -0.36827975511550903, 0.11748340725898743, -0.4526263177394867, 0.25876089930534363, 0.13189491629600525, 0.38441020250320435, -0.15946680307388306, 0.09330591559410095, -0.26136863231658936, -0.6854188442230225, 0.2985851764678955, -0.24929620325565338, 0.17300516366958618, -0.09013508260250092, 0.022701282054185867, -0.09971337020397186, 0.1692359298467636, -0.20327652990818024, -0.001978497952222824, 0.06796684116125107, 0.0506003275513649, 0.23363801836967468, -0.19736483693122864, -0.19059541821479797, -0.3107888996601105, -0.061224352568387985, 0.0008913968922570348, -0.34212881326675415, 0.5485239624977112, -0.01725216768682003, -0.396737277507782, -0.3598184287548065, 0.07436646521091461, -0.008520297706127167, -0.045928239822387695, -0.023860376328229904, 0.1929890513420105, -0.013088468462228775, -0.12980534136295319, -0.4362165629863739, 0.10466586798429489, 0.030957341194152832, -0.39271557331085205, 0.27774348855018616, 0.2070191204547882, -0.03437015786767006, -0.2954363524913788, 0.04061192274093628, 0.30325642228126526, 0.07001828402280807, 0.5143808722496033, -0.0675569623708725, 0.01706658862531185, 0.024786004796624184, 0.21326404809951782, -0.0073069012723863125, -0.11725357174873352, -0.0014551542699337006, 0.23228485882282257, 0.2657839357852936, 0.013867523521184921, -0.09002315253019333, 0.05861622095108032, 0.32436060905456543, -0.08001456409692764, 0.05079290270805359, 0.08368515968322754, -0.29458796977996826, -0.0193245280534029, 0.21280871331691742, -0.21050602197647095, 0.1979474425315857, 0.2074626088142395, -0.04820164665579796, 0.11027005314826965, -0.2756568491458893, -0.14830932021141052, 0.23555901646614075, 0.14297959208488464, 0.5560609698295593, 0.02224814146757126, 0.2309238314628601, -0.2626539468765259, -0.29594603180885315, -0.16685935854911804, 0.16685058176517487, 0.25694045424461365, -0.3018985688686371, -0.058559730648994446, -0.1459393948316574, -0.034317001700401306, -0.035540539771318436, -0.47339844703674316, 0.03934095427393913, 0.0014643343165516853, -0.14789164066314697, 0.02219572849571705, -0.11769731342792511, 0.25840434432029724, 0.04800315573811531, -0.09063790738582611, 0.22607611119747162, -0.06722847372293472, -0.13706780970096588, -0.11124163120985031, -0.16639292240142822, 0.02301795408129692, 0.3057001531124115, 0.06077428534626961, -0.025573713704943657, 0.13043972849845886, 0.008615845814347267, -0.3728961944580078, -0.3643665909767151, 0.07001609355211258, -0.09638500213623047, 0.3734647333621979, 0.4846833646297455, 0.03400900587439537, 0.07078476250171661, -0.24214307963848114, 0.47717827558517456, -0.0035103019326925278, -0.27951544523239136, 0.3224969208240509, -0.2145097404718399, 0.04312476888298988, -0.08843855559825897, -0.20025071501731873, 0.043354593217372894, -0.3384430408477783, 0.21440811455249786, 0.37705662846565247, 0.21819116175174713, 0.2402547001838684, 0.48269572854042053, 0.3846856653690338, -0.026259107515215874, 0.07251258194446564, 0.1978987753391266, 0.25198760628700256, 0.34460920095443726, -0.06192572042346001, -0.20835670828819275, -0.08896605670452118, -0.7822167277336121, 0.06586379557847977, 0.3343045115470886, -0.132839635014534, -0.13301043212413788, -0.30915579199790955, 0.36848610639572144, -0.05663606524467468, 0.14051522314548492, 0.37806475162506104, 0.17087139189243317, -0.021763335913419724, -0.08045965433120728, -0.11399964988231659, 0.3861761689186096, 0.09082328528165817, -0.07788661867380142, -0.007912714034318924, 0.4225042164325714, -0.14400577545166016, 0.6777370572090149, 0.09871764481067657, -0.271126925945282, 0.2037224918603897, -0.2157236784696579, 0.004897229373455048, -0.25059422850608826, 0.026511238887906075, -0.12178410589694977, 0.0888630822300911, -0.15233388543128967, -0.01915079355239868, -0.036373089998960495, -0.3188764452934265, 0.1218133419752121, 0.196555957198143, -0.062440186738967896, -0.03971724584698677, 0.13161467015743256, -0.030844062566757202, 0.1022256389260292, -0.0918358862400055, 0.10500027984380722, -0.28759801387786865, -0.07567894458770752, -0.1908876597881317, -0.42048120498657227, 0.12403545528650284, -0.05752670392394066, -0.32833606004714966, 0.13981284201145172, -0.08856558054685593, 0.1524428427219391, 0.3744049668312073, -0.10428764671087265, 0.17585617303848267, -0.141458198428154, 0.1569480299949646, -0.15479423105716705, 0.6634982228279114, -0.1758406013250351, -0.27101290225982666, 0.5152444839477539, 0.1407133936882019, -0.5415212512016296, -0.21296830475330353, -0.2095397412776947, 0.24580855667591095, -0.27251672744750977, 0.15201148390769958, -0.4102881848812103, -0.03270109370350838, 0.3773133456707001, 0.3596920073032379, -0.0327300988137722, -0.09448496997356415, -0.2216612547636032, -0.3411523103713989, -0.06819047033786774, -0.11541218310594559, -0.0727885365486145, 0.3152894973754883, 0.1236099824309349, -0.39715737104415894, -0.3735955059528351, -0.04002389311790466, -0.17212845385074615, -0.010452162474393845, 0.4588949680328369, -0.2380857765674591, 0.1649462729692459, -0.23977866768836975, 0.0009234920144081116, 0.2648710012435913, 0.19213168323040009, 0.11757853627204895, -0.06437936425209045, 0.10528822988271713, -0.05726194754242897, 0.44947996735572815, 0.25927600264549255, -0.05408557131886482, 0.057429902255535126, 0.1639578491449356, 0.13752561807632446, -0.1249852105975151, -0.026866275817155838, 0.4133703410625458, -0.3308500349521637, -0.1898859292268753, -0.3715834319591522, 0.6200922727584839, 0.041490476578474045, 0.1514875292778015, 0.3555672764778137, 0.3764854669570923, -0.24240772426128387, 0.316528856754303, 0.5446494221687317, 0.966724157333374, -0.128904789686203, 0.21344421803951263, 0.6495654582977295, 0.002965029329061508, 0.28280162811279297, 0.2540849447250366, 0.22778339684009552, -0.5002312064170837, -0.03399941325187683, -0.006579773500561714, -0.39275914430618286, 0.20695021748542786, 0.21497873961925507, -0.18650273978710175, -0.001237794291228056, -0.21826183795928955, 0.43583041429519653, 0.10367470979690552, 0.03440634906291962, -0.2134680151939392, -0.1178780347108841, -0.07300432026386261, 0.08956791460514069, 0.005827665328979492, -0.4381960928440094, -0.1154487356543541, -0.10171563178300858, -0.19784167408943176, -0.013527553528547287, -0.1254940629005432, -0.02390369027853012, -0.34957146644592285, 0.06967781484127045, 0.37010955810546875, -0.5165643095970154, 0.020866382867097855, 0.1090419590473175, 0.057287488132715225, -0.14020593464374542, -0.09696986526250839, 0.026019934564828873, 0.24284568428993225, -0.1842738687992096, -0.013058473356068134, -0.3214932978153229, 0.26306092739105225, 0.03283035010099411, -0.20511873066425323, 0.022953670471906662, -0.13531258702278137, -0.16925519704818726, -0.17502428591251373, -0.05511510372161865, 0.24795158207416534, -0.25306984782218933, -0.1780579686164856, -0.08158962428569794, -0.1463174670934677, -0.17387755215168, 0.0666026696562767, 0.11702533066272736, -0.14107395708560944, 0.0025064051151275635, 0.13004107773303986, 0.023549608886241913, -0.07092238962650299, 0.02051972597837448, 0.5894397497177124, 0.29130712151527405, 0.4302317202091217, 0.3094697594642639, -0.046793799847364426, -0.17819419503211975, 0.003834851086139679, 0.647973358631134, -0.5415277481079102, 0.2230454534292221, 0.1170603483915329, -0.20200215280056, -0.12187608331441879, 0.4708723723888397, -0.11451597511768341, 0.28162628412246704, -0.18627777695655823, 0.11730313301086426, -0.47316139936447144, 0.2905728816986084, 0.22204063832759857, 0.4258403182029724, -0.26732999086380005, -0.1688770204782486, -0.005042599514126778, -0.0191145408898592, -0.23168709874153137, 0.07894846051931381, 0.027930481359362602, 0.06788409501314163, -0.5748069286346436, -0.10592719167470932, 0.13177183270454407, 0.08111847937107086, 0.10176622867584229, 0.0013394001871347427, -0.3881566822528839, -0.1580253541469574, -0.002090292051434517, 0.15583167970180511, 0.05874158442020416, -0.17484238743782043, 0.2019316405057907, -0.13838064670562744, -0.25600379705429077, -0.22967204451560974, 0.03893202543258667, -0.021391568705439568, -0.21820004284381866, -0.18092620372772217, 0.38344061374664307, -0.025435738265514374, -0.31178832054138184, 0.0269563440233469, -0.2520409822463989, 0.2981007695198059, 0.1187538206577301, 0.07039449363946915, 0.12290503829717636, -0.058407023549079895, -0.0751534104347229, 0.19653019309043884, 0.04046483710408211, -0.27315717935562134, 0.2590329349040985, -0.43747156858444214, -0.3664396405220032, -0.22709344327449799, 0.45812469720840454, 0.3234955072402954, -0.11106929928064346, 0.07360711693763733, 0.15905091166496277, 0.16983962059020996, -0.22207015752792358, 0.04900240898132324, 0.21036748588085175, -0.11934664100408554, 0.18067483603954315, 0.30133798718452454, 0.08320273458957672, -0.0033885836601257324, -0.10545416176319122, 0.11712836474180222, -0.022932805120944977, 0.02528250962495804, 0.08340531587600708, 0.4652065336704254, -0.10984370112419128, -0.05181604251265526, 0.38788312673568726, -0.019609495997428894, 0.22277653217315674, 0.007996026426553726, -0.08504199236631393, 0.41476136445999146, 0.0869293361902237, -0.05177493765950203, 0.1325203776359558, -0.02931196801364422, 0.11169862747192383, 0.2715787887573242, 0.3833857774734497, -0.1204075887799263, -0.02678374946117401, 0.6152070760726929, 0.22237266600131989, -0.04603705182671547, -0.4197399616241455, -0.1864476054906845, -0.1455492377281189, -0.03401143103837967, -0.08270546793937683, -0.1281299889087677, -0.23598824441432953, -0.15408533811569214, -0.16394391655921936, -0.4509737491607666, 0.25125694274902344, -0.08055636286735535, 0.0692252591252327, -0.29031312465667725, 0.7235400080680847, 0.18264830112457275, 0.015535496175289154, -0.1364162564277649, 0.4172537624835968, 0.3453889489173889, -0.12965786457061768, -0.1810428500175476, 0.4945090115070343, 0.3849453628063202, 0.4238962233066559, -0.4110919237136841, -0.03241094946861267, 0.00566504243761301, -0.21467268466949463, -0.05592843517661095, 0.05933961272239685, 0.23705676198005676, 0.18803872168064117, 0.17708058655261993, 0.07763760536909103, -0.1500834971666336, 0.10098101198673248, 0.2514288127422333, -0.035796262323856354, -0.22356010973453522, 0.21573035418987274, -0.22515207529067993, -0.22059693932533264, 0.05898214876651764, -0.07665307074785233, -0.4713694453239441, -0.14397543668746948, 0.4179430305957794, -0.16830959916114807, -0.006646157242357731, -0.0709943100810051, 0.042357370257377625, -0.27391740679740906, 0.4860873222351074, 0.010110776871442795, 0.5837246775627136, -0.278260737657547, -0.10448751598596573, -0.3904719352722168, 0.3186704218387604, -0.5196860432624817, 0.10719461739063263, 0.26804211735725403, 0.36915814876556396, -0.07570160180330276, 0.11052568256855011, 0.14471545815467834, 0.17749625444412231, 0.006225586868822575, 0.4266393482685089, -0.3925250172615051, -0.010361693799495697, 0.25644195079803467, 0.007643529213964939, -0.0866415798664093, -0.38605090975761414, 0.1612877994775772, -0.347937673330307, -0.018234850838780403, 0.17642487585544586, 0.1481558084487915, 0.24859195947647095, 0.22585967183113098, 0.5414074659347534, -0.05794215947389603, 0.15316885709762573, 0.24250128865242004, -0.1587216705083847, -0.36442866921424866, -0.1778421700000763, -0.15898115932941437, 0.24178549647331238, 0.07554662227630615, 0.433543860912323, -0.26035991311073303, 0.2352064549922943, -0.16380393505096436, -0.001935028936713934, 0.027668975293636322, 0.24005918204784393, -0.13745690882205963, 0.4033573269844055, -0.6006201505661011, 0.09106022119522095, -0.021642714738845825, -0.16584494709968567, 0.0927807092666626, 0.05653934180736542, -0.2232377678155899, -0.45278200507164, 0.63230299949646, -0.3164663016796112, -0.4803246557712555, 0.025568075478076935, -0.010819509625434875, 0.37912166118621826, -0.11545506864786148, -0.3446509838104248, -0.09048257768154144, 0.39343470335006714, 0.00285232812166214, -0.1030598133802414, 0.11040188372135162, 0.053117454051971436, 0.0731431394815445, -0.16793601214885712, 0.24423332512378693, -0.19231685996055603, -0.1297086477279663, -0.38424938917160034, -0.5637408494949341 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi @lhoestq, Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays? e.g.: `datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))` `Array3D(shape=(None, 137, 2), dtype="float32")`
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
29
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Hi @lhoestq, Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays? e.g.: `datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))` `Array3D(shape=(None, 137, 2), dtype="float32")`
[ -0.20844438672065735, 0.0039850324392318726, -0.0901312381029129, 0.04117797315120697, 0.3527281880378723, -0.036300938576459885, 0.6182533502578735, 0.09212664514780045, -0.19569119811058044, 0.1928672045469284, 0.2420264035463333, 0.047521885484457016, -0.2796562910079956, 0.04918203502893448, 0.24265553057193756, -0.34459319710731506, 0.21767446398735046, 0.40564772486686707, 0.13021248579025269, 0.01604548841714859, -0.15405650436878204, -0.13571451604366302, -0.3179493546485901, 0.2507111728191376, -0.16508080065250397, -0.006374558433890343, -0.2581343352794647, -0.11908326297998428, -0.0953020229935646, -0.479681134223938, 0.43523353338241577, 0.10036589950323105, 0.21723304688930511, 0.17358338832855225, -0.00012564433563966304, -0.015190910547971725, 0.45407336950302124, 0.005307281389832497, -0.2272014170885086, 0.10617406666278839, 0.05165231227874756, -0.42385560274124146, 0.1683063507080078, -0.32537078857421875, 0.09302534908056259, -1.0158857107162476, 0.03741779550909996, -0.1650811731815338, -0.004754684865474701, -0.025116808712482452, 0.09717299044132233, 0.11753523349761963, 0.5744313597679138, -0.05445710942149162, 0.4038919508457184, 0.3394398093223572, -0.2964446246623993, 0.0017571225762367249, 0.6183680295944214, 0.18037544190883636, 0.16332530975341797, -0.3020036518573761, -0.15559180080890656, 0.10847608745098114, 0.3668767511844635, 0.09007114171981812, 0.2777215540409088, -0.19633609056472778, -0.10393235832452774, 0.35252562165260315, 0.4946061074733734, -0.20986568927764893, -0.24756655097007751, -0.2931714355945587, 0.006206415127962828, -0.09687063843011856, -0.16348016262054443, 0.13155195116996765, -0.26342201232910156, -0.03815857693552971, -0.24934114515781403, 0.027851946651935577, -0.4791487753391266, 0.3923698663711548, 0.18320873379707336, 0.31687745451927185, 0.07805424183607101, 0.21022188663482666, -0.13059580326080322, -0.47131234407424927, 0.5399209856987, -0.1946733593940735, -0.039347391575574875, 0.177069753408432, -0.010968562215566635, 0.03823251277208328, -0.14360928535461426, -0.3914034366607666, 0.32965219020843506, -0.1347401738166809, 0.22335131466388702, 0.0036933161318302155, 0.2935332655906677, 0.1309709995985031, -0.11200296878814697, 0.44398173689842224, -0.005044244229793549, -0.25733909010887146, -0.10001370310783386, 0.017675012350082397, 0.14946314692497253, 0.11855488270521164, -0.38859060406684875, -0.06656111031770706, 0.21357207000255585, -0.007296295836567879, 0.11256338655948639, 0.3052557408809662, 0.08393654227256775, -0.08253368735313416, -0.5444912314414978, -0.1952551007270813, -0.03425680100917816, 0.11300242692232132, 0.13208156824111938, 0.06446278095245361, -0.09580951929092407, 0.33587706089019775, 0.019079742953181267, -0.027425505220890045, -0.049288515001535416, -0.07435831427574158, -0.16969789564609528, -0.20901083946228027, -0.0742269977927208, 0.2425684779882431, 0.023055603727698326, -0.24549125134944916, 0.29633399844169617, 0.25895956158638, -0.10091455280780792, 0.1745903044939041, 0.1355239599943161, 0.08654225617647171, -0.1246085911989212, -0.14219334721565247, -0.15301883220672607, 0.06598395109176636, -0.2035199999809265, 0.457589328289032, 0.03496462106704712, -0.26321908831596375, -0.5190051198005676, 0.06348105520009995, -0.2189636528491974, -0.059922248125076294, -0.01346249133348465, 0.15403857827186584, 0.24651461839675903, -0.02626160718500614, 0.07057501375675201, -0.10210259258747101, 0.10381779074668884, -0.37536853551864624, 0.055007465183734894, -0.19843517243862152, -0.41594767570495605, 0.0520624965429306, 0.03623020648956299, 0.017668627202510834, -0.24961045384407043, -0.1657969057559967, -0.13680490851402283, 0.13067802786827087, -0.14763258397579193, 0.15542659163475037, 0.4196234941482544, 0.06593436002731323, 0.026213817298412323, 0.1470690667629242, 0.10740536451339722, -0.2000730186700821, 0.273433119058609, 0.0588100291788578, 0.023161262273788452, -0.06642136722803116, -0.36638525128364563, 0.27283596992492676, -0.10102878510951996, -0.2770080864429474, 0.03490472957491875, -0.559799313545227, 0.30229759216308594, 0.2005218267440796, 0.10874396562576294, 0.005318820476531982, 0.06421616673469543, -0.3475569188594818, 0.3698144555091858, -0.46129170060157776, 0.2046324759721756, -0.04516252875328064, 0.33030611276626587, -0.17539505660533905, 0.17330896854400635, -0.317658394575119, -0.7671220302581787, 0.24276328086853027, -0.3001483082771301, -0.08346819877624512, 0.14649158716201782, 0.0340716689825058, -0.12144304811954498, 0.1729820817708969, -0.22080166637897491, 0.08931209146976471, -0.03169109672307968, -0.06866350769996643, 0.16656677424907684, -0.25477927923202515, -0.2116602063179016, -0.42588624358177185, 0.015258757397532463, -0.04175703600049019, -0.5153884887695312, 0.3571024239063263, 0.11930146813392639, -0.37394973635673523, -0.31168678402900696, 0.26900598406791687, -0.10388614982366562, -0.2080879509449005, -0.11685258895158768, 0.26875847578048706, -0.10845749080181122, 0.014357313513755798, -0.5090363025665283, 0.12129724025726318, -0.0007315259426832199, -0.3114977180957794, 0.4452410042285919, 0.18804225325584412, 0.007420937530696392, -0.3056256175041199, 0.29827356338500977, 0.4102919101715088, 0.13030095398426056, 0.45319387316703796, -0.13913321495056152, -0.014308018609881401, -0.07552853971719742, 0.2140806019306183, 0.04932405799627304, -0.11155828833580017, -0.11174142360687256, 0.28411486744880676, 0.11762043833732605, -0.09520179033279419, -0.12548604607582092, 0.1526382565498352, 0.17837592959403992, -0.08802799880504608, 0.06175999343395233, 0.15660864114761353, -0.17420199513435364, 0.12631207704544067, 0.16004309058189392, 0.05948929861187935, 0.17689520120620728, 0.13917599618434906, -0.22937405109405518, 0.05311664938926697, -0.16666992008686066, -0.1580820530653, 0.28098946809768677, 0.056883957237005234, 0.4773665964603424, 0.10187371075153351, 0.284690797328949, -0.20708894729614258, -0.17742878198623657, -0.1415570229291916, -0.03247314691543579, 0.08082013577222824, -0.14079472422599792, 0.04415830224752426, -0.1467219591140747, -0.19752448797225952, 0.0022290218621492386, -0.6770442724227905, 0.013373536989092827, -0.023939643055200577, -0.10550333559513092, 0.023071421310305595, -0.0805765837430954, 0.27858036756515503, -0.07870816439390182, -0.12861011922359467, 0.26233699917793274, -0.15323340892791748, -0.147690549492836, 0.014616461470723152, -0.09394187480211258, -0.007148547098040581, 0.1849808543920517, -0.06405121833086014, -0.13560128211975098, 0.23879317939281464, 0.15102799236774445, -0.194521963596344, -0.32524746656417847, -0.028423652052879333, -0.06775372475385666, 0.2654830515384674, 0.4885598123073578, -0.17511765658855438, 0.1404496282339096, -0.32837602496147156, 0.3227989375591278, -0.11914538592100143, -0.24913367629051208, 0.17542070150375366, -0.18403708934783936, 0.010525942780077457, -0.10253717005252838, 0.08856221288442612, -0.196002796292305, -0.24939970672130585, 0.2090701162815094, 0.46572181582450867, 0.21657148003578186, 0.2988510727882385, 0.45659053325653076, 0.21074765920639038, -0.009106583893299103, -0.1195422112941742, 0.32863685488700867, 0.23012319207191467, 0.4304119646549225, -0.003096697386354208, -0.1493745595216751, -0.12614698708057404, -0.8431597352027893, 0.11973568797111511, 0.3775213360786438, 0.16663597524166107, -0.10065648704767227, -0.18611086905002594, 0.13863830268383026, 0.06838484108448029, 0.03450755774974823, 0.34504812955856323, 0.083746038377285, 0.08081113547086716, -0.20812714099884033, -0.06666038930416107, 0.38704919815063477, 0.200428307056427, -0.005589589476585388, 0.2823006212711334, 0.3034772276878357, -0.19050173461437225, 0.6329154968261719, -0.06740880012512207, -0.34575897455215454, 0.26884838938713074, -0.1577969789505005, -0.1502290815114975, -0.11617796868085861, -0.20452240109443665, -0.07198577374219894, 0.035728223621845245, -0.2112002819776535, -0.07226195931434631, -0.04872739315032959, -0.3421907126903534, 0.12180463969707489, 0.35614559054374695, 0.047599561512470245, 0.1159227192401886, -0.06617613881826401, -0.05638965219259262, 0.2670345902442932, -0.1015591025352478, 0.11031173914670944, -0.3185116648674011, -0.20994296669960022, -0.3018082082271576, -0.3100990653038025, 0.2342047393321991, -0.05153788626194, -0.2744894027709961, -0.03468719497323036, 0.06658124923706055, 0.27802497148513794, 0.5870445966720581, 0.14500603079795837, 0.1673179566860199, -0.030436508357524872, 0.1368950605392456, -0.05560703203082085, 0.3812721371650696, -0.09376151114702225, -0.22236822545528412, 0.5127308964729309, 0.0989438146352768, -0.4337402880191803, -0.21741631627082825, -0.02035917527973652, -0.09682852774858475, -0.2593228220939636, 0.08138255774974823, -0.2699005603790283, -0.014940483495593071, 0.37943312525749207, 0.14169146120548248, -0.07761293649673462, -0.22966612875461578, -0.1584007441997528, -0.0875885933637619, -0.16140151023864746, -0.29808923602104187, -0.0982203260064125, 0.35844576358795166, 0.11973965913057327, -0.4149911403656006, -0.3605048954486847, -0.12431318312883377, -0.16322480142116547, -0.021389178931713104, 0.37610185146331787, -0.20708444714546204, 0.04706356301903725, -0.26964056491851807, -0.058536626398563385, 0.22214582562446594, -0.048772573471069336, 0.156363382935524, 0.13894972205162048, 0.04723242297768593, -0.04505540803074837, 0.5575084686279297, 0.18058447539806366, -0.15623633563518524, 0.16046634316444397, 0.05011182278394699, 0.11212988942861557, -0.15791194140911102, -0.300976425409317, 0.5219440460205078, -0.40979838371276855, 0.079121895134449, -0.3341868817806244, 0.5171594023704529, -0.06430426985025406, 0.2047121673822403, 0.3343689441680908, 0.2912311255931854, -0.1984202116727829, 0.16402164101600647, 0.6330121755599976, 0.8277626633644104, 0.14019006490707397, 0.14104661345481873, 0.7423074841499329, -0.04478848725557327, -0.09040304273366928, 0.5768280625343323, 0.11317114531993866, -0.4875541627407074, 0.10666584968566895, -0.20292486250400543, -0.30543413758277893, 0.23310694098472595, 0.15186351537704468, -0.1239454448223114, -0.021685104817152023, -0.09885013103485107, 0.4097418189048767, 0.26679471135139465, -0.01062639057636261, -0.27631083130836487, -0.16566134989261627, -0.11895601451396942, -0.00652211531996727, 0.05287967622280121, -0.5251214504241943, -0.15814325213432312, -0.36512142419815063, 0.00847146287560463, -0.02220797725021839, -0.18361534178256989, -0.0284259095788002, -0.22587208449840546, 0.04506279528141022, 0.48007598519325256, -0.5878502130508423, 0.19174924492835999, 0.15929533541202545, -0.015608936548233032, -0.346828430891037, -0.11093251407146454, -0.06943206489086151, 0.17533043026924133, -0.15014082193374634, -0.20986565947532654, -0.381976842880249, 0.3388654589653015, 0.06527947634458542, -0.15678676962852478, -0.00760960578918457, -0.046828899532556534, -0.14082272350788116, -0.2539269030094147, -0.03923854976892471, 0.23802128434181213, -0.2631189227104187, -0.11700074374675751, -0.2332713007926941, -0.06059573218226433, -0.12054269015789032, -0.02944093942642212, 0.1776789426803589, 0.0005447173025459051, 0.01304042711853981, 0.18196959793567657, 0.15438106656074524, -0.04115475341677666, -0.06017618626356125, 0.5626728534698486, 0.18864867091178894, 0.3105587363243103, 0.26676154136657715, 0.026135876774787903, -0.09321101009845734, 0.2646554708480835, 0.43704479932785034, -0.526224672794342, 0.17177575826644897, 0.11614734679460526, -0.142719104886055, -0.09367795288562775, 0.35044053196907043, -0.06581553816795349, 0.3271068036556244, -0.12833361327648163, -0.05306239426136017, -0.27289822697639465, 0.3411969542503357, -0.04207780584692955, 0.3002474904060364, -0.2621001899242401, -0.0368269719183445, 0.05631822347640991, -0.03351274132728577, -0.1439363956451416, 0.084052674472332, 0.24232074618339539, -0.19258278608322144, -0.47767266631126404, -0.07778536528348923, 0.083114393055439, 0.15272779762744904, -0.03447012975811958, 0.005704332143068314, -0.508596658706665, -0.011930787935853004, -0.037454232573509216, 0.2035379409790039, 0.14381209015846252, -0.14731134474277496, 0.1234724149107933, -0.02113369293510914, -0.3804357945919037, -0.10492592304944992, -0.12080661952495575, -0.17150631546974182, -0.11652866005897522, -0.09322932362556458, 0.36911723017692566, 0.13298755884170532, -0.266126424074173, 0.08691442012786865, -0.1710866093635559, 0.26450008153915405, 0.1452866643667221, 0.06373532861471176, 0.04026934131979942, -0.1136697381734848, -0.12270207703113556, 0.25895562767982483, 0.01260416954755783, -0.26052507758140564, 0.5132202506065369, -0.36071401834487915, -0.3177289068698883, -0.24661587178707123, 0.6039426326751709, 0.22002200782299042, -0.10873498767614365, 0.042289651930332184, 0.05186222493648529, 0.054295413196086884, -0.2933725118637085, 0.008341753855347633, 0.3620065748691559, 0.16836576163768768, 0.07968422770500183, 0.3961843252182007, 0.3050347864627838, -0.08191760629415512, 0.07811536639928818, 0.15114551782608032, -0.03421730175614357, 0.02294081635773182, 0.022141108289361, 0.6143953800201416, -0.09793192148208618, 0.07841205596923828, 0.4165043532848358, 0.09844231605529785, 0.4063203036785126, 0.2499709278345108, 0.015369497239589691, 0.4456932842731476, 0.42482200264930725, -0.0788111537694931, 0.2008179873228073, -0.04261554777622223, 0.015702439472079277, 0.14235647022724152, 0.49357086420059204, -0.05587425082921982, 0.11260087788105011, 0.7638305425643921, 0.12660260498523712, 0.0897483080625534, -0.298030287027359, -0.1383945792913437, 0.038678333163261414, -0.04172899201512337, -0.05840209126472473, -0.08549115806818008, -0.3334430754184723, -0.36532387137413025, -0.18933112919330597, -0.3462081551551819, 0.12358313798904419, -0.26300233602523804, 0.15517836809158325, -0.4477919936180115, 0.6662037968635559, 0.20661765336990356, 0.048672351986169815, -0.08896254003047943, 0.4410884976387024, 0.36198604106903076, 0.06269451975822449, -0.1430429071187973, 0.5823987126350403, 0.3293176293373108, 0.3508199155330658, -0.37357303500175476, -0.10254625231027603, -0.1375536471605301, -0.1838686168193817, 0.1246768981218338, 0.19955749809741974, 0.09577779471874237, 0.27266350388526917, 0.24631543457508087, -0.0009987633675336838, -0.017351718619465828, 0.17821545898914337, 0.3353331387042999, -0.10916051268577576, -0.24788564443588257, 0.22198255360126495, -0.3379706144332886, -0.06725136190652847, 0.09293217957019806, -0.0029857978224754333, -0.41354361176490784, -0.017029672861099243, 0.2774389386177063, -0.20019863545894623, -0.051287297159433365, 0.0032050390727818012, -0.014380722306668758, -0.2667315602302551, 0.5101759433746338, 0.059890225529670715, 0.4724583625793457, 0.02097473293542862, -0.13032276928424835, -0.3563612401485443, 0.37548843026161194, -0.21778973937034607, 0.09494286775588989, 0.3324356973171234, 0.14966005086898804, 0.0329761728644371, -0.02911953628063202, 0.26206064224243164, 0.20709450542926788, -0.025028463453054428, 0.4323686957359314, -0.30741605162620544, 0.002020839601755142, 0.34927916526794434, 0.06567884236574173, -0.1466333270072937, -0.23382353782653809, 0.19582940638065338, -0.4173712134361267, -0.11056910455226898, 0.16052190959453583, 0.021884217858314514, 0.10339702665805817, 0.06608113646507263, 0.43181943893432617, -0.0104293804615736, 0.130033940076828, 0.218244731426239, -0.06761001795530319, -0.27455660700798035, -0.20899765193462372, -0.12324254959821701, 0.2718929648399353, 0.1555340439081192, 0.4557086229324341, -0.2516755163669586, 0.2150689661502838, -0.0657658576965332, -0.049767959862947464, 0.0068623460829257965, 0.1790611445903778, -0.2423691302537918, 0.5438682436943054, -0.5492845773696899, -0.07794473320245743, 0.16378696262836456, -0.254853218793869, 0.0568847730755806, 0.21449021995067596, -0.13880948722362518, -0.46051281690597534, 0.5378769636154175, 0.05517811328172684, -0.47425487637519836, 0.07901645451784134, -0.184756338596344, 0.3659103512763977, -0.09476926922798157, -0.2403983473777771, -0.03663937374949455, 0.3571830689907074, 0.07307477295398712, 0.18862691521644592, 0.09951631724834442, 0.10057523846626282, -0.10191214829683304, -0.21682628989219666, -0.014438815414905548, -0.07122901827096939, -0.0771794468164444, -0.33745715022087097, -0.4207004904747009 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
38
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point.
[ -0.09873050451278687, 0.21576911211013794, -0.03618969768285751, 0.1980811506509781, 0.333524227142334, -0.01481415331363678, 0.6729158759117126, 0.09411288797855377, -0.26533374190330505, 0.19205276668071747, 0.3300936818122864, 0.2847849130630493, -0.18515822291374207, -0.09526480734348297, 0.24233011901378632, -0.39009249210357666, 0.1759406328201294, 0.4636603891849518, 0.08268777281045914, 0.051956385374069214, -0.05200914666056633, -0.13845153152942657, -0.2443876564502716, 0.2918313443660736, -0.39775946736335754, -0.007421715185046196, -0.26254138350486755, -0.22839495539665222, -0.19362813234329224, -0.5090425610542297, 0.3147081732749939, -0.0006441734731197357, 0.11578932404518127, 0.22048470377922058, -0.00012111614341847599, 0.05601266026496887, 0.49807292222976685, 0.05634068697690964, -0.2676819860935211, -0.12664394080638885, 0.0979178175330162, -0.3960365951061249, 0.24923843145370483, -0.34385329484939575, -0.03365839272737503, -0.8026285171508789, 0.019317006692290306, 0.022197313606739044, 0.0784241259098053, 0.25141584873199463, 0.13479824364185333, 0.13277046382427216, 0.2914690673351288, -0.1992773413658142, 0.4904194474220276, 0.34904563426971436, -0.2730594873428345, -0.08437931537628174, 0.30835914611816406, 0.04972003400325775, -0.019599631428718567, -0.20243562757968903, -0.06918785721063614, 0.15276484191417694, 0.3510465919971466, 0.30431056022644043, 0.3325365483760834, -0.22807198762893677, -0.04034123569726944, 0.42991942167282104, 0.5088967680931091, -0.15752729773521423, -0.1708115190267563, -0.12800651788711548, 0.08625254780054092, -0.0945466160774231, -0.06242186576128006, 0.23521152138710022, -0.28722482919692993, -0.07062135636806488, -0.19196544587612152, 0.1625070720911026, -0.4509162902832031, 0.36065447330474854, 0.2118663787841797, 0.08092227578163147, -0.011420260183513165, 0.22497805953025818, -0.09353531897068024, -0.2292499989271164, 0.5371080040931702, -0.350704550743103, 0.03743927180767059, 0.2259352058172226, 0.11728149652481079, 0.13557927310466766, -0.10685253888368607, -0.23853081464767456, 0.41914936900138855, -0.004981938749551773, 0.18288150429725647, -0.0639442652463913, 0.30011308193206787, 0.10840208828449249, -0.19019286334514618, 0.2092389315366745, -0.02087489515542984, -0.11744654923677444, -0.07927358150482178, 0.16554024815559387, 0.04669063165783882, 0.06182244047522545, -0.2769748866558075, -0.28441092371940613, 0.4106661081314087, -0.07095615565776825, 0.2312154918909073, 0.2673476040363312, 0.09081095457077026, 0.029430456459522247, -0.5808671116828918, -0.14972251653671265, -0.025486372411251068, 0.2121627926826477, 0.09222996234893799, -0.10611791163682938, -0.1419927328824997, 0.40518295764923096, 0.022859295830130577, -0.09561434388160706, -0.19982074201107025, 0.007037259638309479, -0.204815074801445, -0.058981917798519135, 0.1027757078409195, 0.11233054101467133, 0.12614135444164276, -0.010921702720224857, 0.05620688945055008, 0.10105051100254059, 0.23483234643936157, 0.04992668703198433, 0.17283909022808075, 0.14020125567913055, -0.18908986449241638, -0.06464658677577972, -0.0335475318133831, -0.18142585456371307, -0.21893849968910217, 0.37103670835494995, -0.07449016720056534, -0.2519073784351349, -0.42253053188323975, 0.09550812095403671, -0.2765149474143982, 0.06513562053442001, -0.05947034806013107, 0.07526081800460815, 0.23037344217300415, 0.0628441870212555, 0.04010894149541855, -0.031094513833522797, 0.24735724925994873, -0.3945893347263336, 0.18736091256141663, -0.0015771090984344482, -0.317787230014801, -0.018428582698106766, -0.14738371968269348, -0.049785587936639786, -0.07660569995641708, -0.08500565588474274, -0.25640010833740234, 0.27506139874458313, -0.22004525363445282, 0.2653540372848511, 0.6616536378860474, 0.2300475835800171, -0.027522096410393715, 0.009354528039693832, 0.02038576453924179, -0.16925497353076935, 0.20736581087112427, 0.07747575640678406, -0.16636104881763458, -0.03758307173848152, -0.31474271416664124, 0.22843427956104279, -0.17251774668693542, -0.23746348917484283, -0.0014493279159069061, -0.3701044023036957, 0.43195104598999023, 0.13115790486335754, 0.07571268081665039, -0.02569630742073059, -0.05931542068719864, -0.42420172691345215, 0.06177634745836258, -0.47538575530052185, 0.23887288570404053, 0.09565365314483643, 0.3680788278579712, -0.11749589443206787, 0.10337274521589279, -0.19879895448684692, -0.6633160710334778, 0.14799422025680542, -0.3269466757774353, 0.06849692016839981, -0.10351541638374329, -0.012728966772556305, -0.11671701818704605, 0.19938835501670837, -0.19578929245471954, 0.06805642694234848, 0.0465569943189621, 0.08328187465667725, 0.19927045702934265, -0.16044151782989502, -0.22584286332130432, -0.4588741958141327, 0.016646748408675194, -0.022931311279535294, -0.3702344298362732, 0.574325442314148, -0.04875841736793518, -0.3515617549419403, -0.33711281418800354, 0.1342283934354782, 0.05991616100072861, -0.0795552209019661, 0.030111979693174362, 0.14923520386219025, -0.08305370807647705, -0.07877576351165771, -0.4900359809398651, 0.08640272170305252, 0.03160786256194115, -0.4731898605823517, 0.2193966656923294, 0.18136528134346008, -0.009098747745156288, -0.24578702449798584, 0.06350482255220413, 0.37478429079055786, 0.08795684576034546, 0.5813252329826355, -0.12697237730026245, 0.06605575233697891, -0.016617408022284508, 0.18731757998466492, -0.06378552317619324, -0.09889911115169525, -0.04136275127530098, 0.18754832446575165, 0.21956191956996918, -0.04123951494693756, -0.08149832487106323, 0.012403614819049835, 0.2831691801548004, -0.07639138400554657, 0.048575349152088165, 0.0943501815199852, -0.26220235228538513, 0.02413002774119377, 0.20714838802814484, -0.27044668793678284, 0.0933375358581543, 0.13918133080005646, -0.07424996793270111, 0.05062666907906532, -0.2858203053474426, -0.17548485100269318, 0.19577980041503906, 0.08461980521678925, 0.5732077956199646, 0.11509599536657333, 0.2738000750541687, -0.2092379480600357, -0.2014392614364624, -0.17613211274147034, 0.08516932278871536, 0.15053798258304596, -0.23911888897418976, 0.06941138952970505, -0.09600110352039337, 0.008092593401670456, -0.06270821392536163, -0.5734024047851562, 0.05628974735736847, -0.04109854996204376, -0.1251589059829712, -0.007178496569395065, -0.14935548603534698, 0.26931899785995483, 0.09402309358119965, -0.1845419555902481, 0.2232491821050644, -0.13778197765350342, -0.23207701742649078, -0.0810118168592453, -0.13977253437042236, 0.022912874817848206, 0.1893307864665985, 0.031168906018137932, -0.09405931830406189, 0.09993671625852585, 0.03549955412745476, -0.4118800163269043, -0.4540101885795593, 0.09965114295482635, -0.11424900591373444, 0.3344694972038269, 0.5833543539047241, -0.01490733027458191, 0.07002445310354233, -0.32299086451530457, 0.4294373095035553, -0.0011495687067508698, -0.22776450216770172, 0.35176074504852295, -0.2792392075061798, 0.07885228842496872, -0.10591055452823639, -0.0940299704670906, 0.03769703581929207, -0.2489800602197647, 0.1979440599679947, 0.4887146055698395, 0.20298410952091217, 0.20317324995994568, 0.4810780882835388, 0.3484109938144684, -0.08084625750780106, 0.042980290949344635, 0.2867521047592163, 0.27254408597946167, 0.4623086750507355, -0.13022170960903168, -0.22611607611179352, -0.042150773108005524, -0.9024545550346375, 0.07996715605258942, 0.22718633711338043, 0.015799187123775482, -0.1956702023744583, -0.13246461749076843, 0.36340415477752686, -0.0211041197180748, 0.11893865466117859, 0.29441121220588684, 0.1568295657634735, 0.041589587926864624, -0.15170793235301971, -0.07371988892555237, 0.4391622841358185, 0.10085074603557587, -0.022988609969615936, -0.027629248797893524, 0.26588714122772217, -0.1881069839000702, 0.6245251893997192, 0.11906032264232635, -0.3782256841659546, 0.18522033095359802, -0.26738443970680237, -0.02698575332760811, -0.22190099954605103, 0.07073355466127396, -0.18249908089637756, 0.1632906049489975, -0.0858733057975769, -0.06857715547084808, -0.07202699035406113, -0.28158071637153625, 0.11583541333675385, 0.24489367008209229, -0.05778764933347702, -0.023054717108607292, 0.022708827629685402, -0.02644970268011093, 0.1611938774585724, -0.1319909542798996, 0.08043111115694046, -0.2733573019504547, -0.10790148377418518, -0.18916837871074677, -0.28289270401000977, 0.2439752221107483, 0.017774168401956558, -0.28275617957115173, 0.07095500081777573, 0.06768490374088287, 0.13953186571598053, 0.4566803276538849, -0.13472837209701538, 0.2383638471364975, -0.11452201008796692, 0.09296591579914093, -0.17609959840774536, 0.5438803434371948, -0.1566634476184845, -0.23141951858997345, 0.5165024995803833, 0.2314659059047699, -0.5232297778129578, -0.18866309523582458, -0.15552251040935516, 0.15359151363372803, -0.3465437591075897, 0.14943823218345642, -0.390695720911026, -0.011744440533220768, 0.33688127994537354, 0.3738783001899719, 0.004063330590724945, -0.12059996277093887, -0.1647748351097107, -0.27549034357070923, -0.08474745601415634, -0.2419993281364441, -0.08588219434022903, 0.3476136326789856, 0.09770236164331436, -0.4191312789916992, -0.3573642373085022, 0.03676377981901169, -0.1770736426115036, -0.0007152063772082329, 0.43464818596839905, -0.2874871790409088, 0.0712672770023346, -0.339415043592453, -0.020310774445533752, 0.23010224103927612, 0.13982030749320984, 0.17750787734985352, -0.06623178720474243, 0.14350739121437073, -0.0926421508193016, 0.4353048503398895, 0.08633099496364594, -0.08822686225175858, 0.07839473336935043, 0.11919800937175751, 0.1082925945520401, -0.013369440101087093, -0.07988958060741425, 0.4191327691078186, -0.3305976986885071, -0.16199982166290283, -0.3191150724887848, 0.6340939998626709, -0.010407871566712856, 0.18017961084842682, 0.26040253043174744, 0.4216442108154297, -0.189423605799675, 0.2551969289779663, 0.5969886779785156, 0.8620142340660095, 0.03783921152353287, 0.17222024500370026, 0.6916139721870422, 0.03553794324398041, 0.2889740467071533, 0.33053916692733765, 0.11083497852087021, -0.5170724391937256, 0.040055856108665466, -0.08930911868810654, -0.42948541045188904, 0.23979997634887695, 0.26571124792099, -0.24768036603927612, -0.012588768266141415, -0.24381773173809052, 0.48074644804000854, 0.1565132737159729, -0.05369754508137703, -0.20151861011981964, -0.13086768984794617, -0.0795702189207077, 0.0604366660118103, 0.01845468208193779, -0.39001980423927307, -0.14308112859725952, -0.21995031833648682, -0.14418621361255646, -0.036611758172512054, -0.04951542243361473, 0.046066321432590485, -0.34484437108039856, -0.05021296441555023, 0.5167240500450134, -0.5515483021736145, 0.06685031950473785, 0.16535066068172455, 0.055945128202438354, -0.21334095299243927, -0.11794115602970123, -0.0366186685860157, 0.24716952443122864, -0.2361062616109848, -0.12937505543231964, -0.3045612871646881, 0.267663836479187, 0.04449441283941269, -0.084087073802948, 0.053834620863199234, -0.12565995752811432, -0.06035658344626427, -0.054557815194129944, -0.029210753738880157, 0.19369754195213318, -0.21707569062709808, -0.15098504722118378, -0.11451910436153412, -0.15925605595111847, -0.12182095646858215, 0.038919489830732346, 0.12157900631427765, -0.14108340442180634, -0.13789427280426025, 0.11774913966655731, 0.07046486437320709, -0.011949002742767334, -0.05165035277605057, 0.5510171055793762, 0.3104272186756134, 0.39015719294548035, 0.25687065720558167, -0.019221210852265358, -0.19904127717018127, 0.07806725054979324, 0.572436511516571, -0.6061904430389404, 0.16831520199775696, 0.13291406631469727, -0.17899775505065918, -0.10070215165615082, 0.5450147390365601, -0.11705110967159271, 0.29163169860839844, -0.1273503452539444, 0.07248479127883911, -0.39859551191329956, 0.2515300512313843, 0.18339109420776367, 0.3132038116455078, -0.2412899136543274, -0.07183939218521118, 0.05836309492588043, -0.10336333513259888, -0.21089163422584534, 0.05641651153564453, 0.0543428435921669, 0.007362063974142075, -0.5352554321289062, -0.017298348248004913, 0.03816696256399155, 0.07228109240531921, 0.09405309706926346, 0.014677360653877258, -0.3673619329929352, -0.1302558183670044, -0.08369098603725433, 0.17340542376041412, 0.12898099422454834, -0.10588042438030243, 0.20104365050792694, -0.01679702289402485, -0.2995283007621765, -0.2105606496334076, -0.0431370884180069, -0.13081322610378265, -0.19201190769672394, -0.09902283549308777, 0.3399968147277832, 0.020730383694171906, -0.43808484077453613, -0.10245710611343384, -0.2397678792476654, 0.27413517236709595, 0.07252500206232071, 0.020698076114058495, 0.0892326757311821, -0.04558794945478439, -0.050786253064870834, 0.2219918966293335, 0.010539993643760681, -0.24015459418296814, 0.3798941969871521, -0.4209006428718567, -0.27882900834083557, -0.3206576406955719, 0.38665178418159485, 0.23733776807785034, -0.2053188979625702, 0.1342790722846985, 0.16002386808395386, 0.13355091214179993, -0.2931455373764038, 0.1127544566988945, 0.15652932226657867, -0.06778088957071304, 0.15653929114341736, 0.32400083541870117, 0.1053994745016098, -0.01716209203004837, -0.08242867887020111, 0.09631709009408951, -0.11413118243217468, 0.01369365956634283, 0.10669030249118805, 0.6419901847839355, -0.12013743817806244, 0.10073799639940262, 0.4103650748729706, -0.006850946694612503, 0.22833013534545898, -0.13624916970729828, -0.10213225334882736, 0.3618026375770569, 0.13664770126342773, -0.11503498256206512, 0.26374438405036926, 0.014405101537704468, 0.042378123849630356, 0.19450314342975616, 0.5667411088943481, -0.12465927749872208, 0.07764478772878647, 0.6018322706222534, 0.23606808483600616, 0.0012240596115589142, -0.3576302230358124, -0.1152866780757904, -0.03901246190071106, -0.002881312742829323, -0.17662063241004944, -0.11265012621879578, -0.2524796426296234, -0.3445049226284027, -0.12694361805915833, -0.3985762596130371, 0.17582833766937256, -0.08522121608257294, 0.16137801110744476, -0.3082701563835144, 0.7386056184768677, 0.1928739845752716, 0.019133590161800385, -0.09083782136440277, 0.4798518121242523, 0.33879753947257996, -0.15448176860809326, -0.1970340758562088, 0.4266253709793091, 0.32377487421035767, 0.35943061113357544, -0.3366146683692932, -0.05496539548039436, -0.08874234557151794, -0.2488773763179779, 0.040841881185770035, 0.10509869456291199, 0.21212126314640045, 0.0920436680316925, 0.2440503090620041, 0.054736629128456116, -0.1042802557349205, 0.23550651967525482, 0.23571902513504028, 0.00559626892209053, -0.19128365814685822, 0.3488583266735077, -0.2889257073402405, -0.18701064586639404, 0.05044539272785187, -0.07543238252401352, -0.3536975681781769, -0.10602642595767975, 0.34067249298095703, -0.10863041132688522, -0.001378319226205349, -0.0808868482708931, 0.04094446823000908, -0.2456536889076233, 0.44762545824050903, 0.07333926111459732, 0.5915705561637878, -0.16460011899471283, -0.06695675104856491, -0.3540521264076233, 0.36946624517440796, -0.42730265855789185, 0.06926708668470383, 0.2883572280406952, 0.272444486618042, -0.06474804133176804, 0.14074835181236267, 0.09317193925380707, 0.2419685572385788, 0.048482149839401245, 0.3780900537967682, -0.34980323910713196, -0.11154685914516449, 0.2903215289115906, 0.02750949189066887, -0.10340370982885361, -0.34408679604530334, 0.1482643187046051, -0.3978518545627594, -0.01331065222620964, 0.21306723356246948, 0.10515826940536499, 0.1991252601146698, 0.21046821773052216, 0.5235134363174438, -0.020421205088496208, 0.0953865647315979, 0.16678810119628906, -0.06463092565536499, -0.248060941696167, -0.17214246094226837, -0.18310633301734924, 0.29718518257141113, 0.044929273426532745, 0.40573960542678833, -0.18768000602722168, 0.26679468154907227, -0.1443156599998474, -0.13577261567115784, 0.1033097505569458, 0.24412904679775238, -0.22406934201717377, 0.450842946767807, -0.6143885850906372, 0.01965276710689068, 0.00964279379695654, -0.2210226058959961, 0.06379302591085434, 0.06435169279575348, -0.1437479853630066, -0.4331991672515869, 0.6617772579193115, -0.2992730736732483, -0.45785626769065857, 0.0730501040816307, -0.04487013816833496, 0.4074348211288452, -0.13942164182662964, -0.28197142481803894, -0.06147640943527222, 0.4609857201576233, 0.014608046039938927, -0.019311517477035522, 0.017254134640097618, 0.004794676788151264, 0.0918332040309906, -0.17302681505680084, 0.197340726852417, -0.09373655170202255, -0.11257486790418625, -0.41818541288375854, -0.5695379972457886 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq, thanks for the update. I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here? I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version) Below are my modifications of this class. ``` class ArrayExtensionArray(pa.ExtensionArray): def __array__(self): zero_copy_only = _is_zero_copy_only(self.storage.type) return self.to_numpy(zero_copy_only=zero_copy_only) def __getitem__(self, i): return self.storage[i] def to_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage size = 1 for i in range(self.type.ndims): size *= self.type.shape[i] storage = storage.flatten() numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only) numpy_arr = numpy_arr.reshape(len(self), *self.type.shape) return numpy_arr def to_list_of_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage shape = self.type.shape arrays = [] for dim in range(1, self.type.ndims): assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}" first_dim_offsets = np.array([off.as_py() for off in storage.offsets]) for i in range(len(storage)): storage_el = storage[i:i+1] first_dim = first_dim_offsets[i+1] - first_dim_offsets[i] # flatten storage for dim in range(self.type.ndims): storage_el = storage_el.flatten() numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only) arrays.append(numpy_arr.reshape(first_dim, *shape[1:])) return arrays def to_pylist(self): zero_copy_only = _is_zero_copy_only(self.storage.type) if self.type.shape[0] is None: return self.to_list_of_numpy(zero_copy_only=zero_copy_only) else: return self.to_numpy(zero_copy_only=zero_copy_only).tolist() ``` I ran few tests and it works as expected. Let me know what you think.
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
224
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> @lhoestq, thanks for the update. I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here? I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version) Below are my modifications of this class. ``` class ArrayExtensionArray(pa.ExtensionArray): def __array__(self): zero_copy_only = _is_zero_copy_only(self.storage.type) return self.to_numpy(zero_copy_only=zero_copy_only) def __getitem__(self, i): return self.storage[i] def to_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage size = 1 for i in range(self.type.ndims): size *= self.type.shape[i] storage = storage.flatten() numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only) numpy_arr = numpy_arr.reshape(len(self), *self.type.shape) return numpy_arr def to_list_of_numpy(self, zero_copy_only=True): storage: pa.ListArray = self.storage shape = self.type.shape arrays = [] for dim in range(1, self.type.ndims): assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}" first_dim_offsets = np.array([off.as_py() for off in storage.offsets]) for i in range(len(storage)): storage_el = storage[i:i+1] first_dim = first_dim_offsets[i+1] - first_dim_offsets[i] # flatten storage for dim in range(self.type.ndims): storage_el = storage_el.flatten() numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only) arrays.append(numpy_arr.reshape(first_dim, *shape[1:])) return arrays def to_pylist(self): zero_copy_only = _is_zero_copy_only(self.storage.type) if self.type.shape[0] is None: return self.to_list_of_numpy(zero_copy_only=zero_copy_only) else: return self.to_numpy(zero_copy_only=zero_copy_only).tolist() ``` I ran few tests and it works as expected. Let me know what you think.
[ 0.008176807314157486, 0.11728741228580475, -0.10610845685005188, 0.2801859676837921, 0.4025138020515442, -0.06431571394205093, 0.5933443903923035, 0.10925906896591187, -0.23324120044708252, 0.22073599696159363, 0.1275908648967743, 0.3022356629371643, -0.24728389084339142, -0.021196044981479645, 0.20192183554172516, -0.31352871656417847, 0.08904001861810684, 0.5067415833473206, 0.04888554662466049, -0.027318822219967842, -0.053290463984012604, -0.06954825669527054, -0.1607426106929779, 0.146854966878891, -0.2513415515422821, 0.0687444657087326, -0.24435044825077057, -0.22434481978416443, -0.17733842134475708, -0.4697863757610321, 0.2879069149494171, 0.1888696402311325, 0.028783399611711502, 0.08598380535840988, -0.00012308111763559282, 0.054141417145729065, 0.33211207389831543, -0.0007847212255001068, -0.2714823782444, -0.08199785649776459, 0.2015637755393982, -0.44006645679473877, 0.23840831220149994, -0.32550498843193054, -0.013981170952320099, -0.836249828338623, -0.04946478456258774, -0.11109092086553574, 0.07087540626525879, 0.20579135417938232, 0.10444249957799911, 0.07360948622226715, 0.2843005359172821, -0.07893636077642441, 0.46993279457092285, 0.36829137802124023, -0.28825175762176514, -0.12759119272232056, 0.39754608273506165, 0.14315767586231232, -0.040008850395679474, -0.21010887622833252, -0.13134175539016724, 0.14171776175498962, 0.3835519850254059, 0.2264854609966278, 0.21871283650398254, -0.23538613319396973, 0.07335349172353745, 0.39445942640304565, 0.5115259289741516, -0.24536475539207458, -0.19431297481060028, -0.2348000407218933, 0.08977077156305313, -0.04675515368580818, -0.08563583344221115, 0.3283030390739441, -0.22025170922279358, -0.04876062646508217, -0.35369569063186646, 0.22864103317260742, -0.5123695135116577, 0.3541976809501648, 0.19024577736854553, 0.07739943265914917, -0.014646750874817371, 0.20342886447906494, -0.10737121105194092, -0.23082120716571808, 0.5585187673568726, -0.35725054144859314, 0.03193173557519913, 0.23998990654945374, 0.06889339536428452, 0.10284450650215149, -0.0690791979432106, -0.4354410469532013, 0.36060217022895813, -0.04609603434801102, 0.1935749650001526, -0.021364722400903702, 0.2743875980377197, 0.030405107885599136, -0.10269798338413239, 0.2985353469848633, -0.0004935562610626221, -0.05969669297337532, -0.27311646938323975, 0.11011170595884323, 0.1455027163028717, 0.09483344852924347, -0.17044958472251892, -0.15998558700084686, 0.4061371684074402, -0.038215961307287216, 0.2606356143951416, 0.2152996063232422, 0.048556722700595856, 0.019086526706814766, -0.7071176171302795, -0.1580280363559723, -0.042159534990787506, 0.12784814834594727, 0.11433696746826172, 0.001504562795162201, -0.05143464356660843, 0.3788038492202759, 0.012027367949485779, -0.1303400993347168, -0.1523468792438507, -0.08060826361179352, -0.1551576405763626, 0.0050100302323699, 0.07768392562866211, 0.24271652102470398, 0.02857138402760029, 0.03733225539326668, 0.10993237048387527, 0.014573410153388977, 0.09781177341938019, 0.07485045492649078, 0.25823941826820374, 0.12244930863380432, -0.18936485052108765, -0.06657467037439346, -0.0766482800245285, -0.03259649872779846, -0.27225545048713684, 0.4397103190422058, -0.05441960692405701, -0.2422066479921341, -0.3447395861148834, 0.06494603306055069, -0.2117098867893219, 0.11843568831682205, -0.11556381732225418, 0.09895696491003036, 0.24302780628204346, 0.039920587092638016, 0.0517655573785305, -0.06574319303035736, 0.19766652584075928, -0.44576963782310486, 0.13961161673069, 0.0001106560230255127, -0.4662373960018158, 0.06175945699214935, -0.08357114344835281, -0.049766186624765396, -0.025561250746250153, -0.12010906636714935, -0.2007637768983841, 0.17289306223392487, -0.27482253313064575, 0.3207066059112549, 0.5103976130485535, 0.32857802510261536, -0.11692339181900024, 0.08306844532489777, 0.03261277824640274, -0.08533019572496414, 0.27113306522369385, 0.07905595749616623, -0.13323625922203064, 0.05368216335773468, -0.3695654273033142, 0.1610991507768631, -0.09287673979997635, -0.1600336730480194, -0.09354197978973389, -0.48824724555015564, 0.3123806118965149, 0.14473149180412292, 0.17496001720428467, 0.007329374551773071, -0.0438041016459465, -0.4492783844470978, 0.2552003562450409, -0.5342481732368469, 0.2359112799167633, 0.10789261758327484, 0.3874279856681824, -0.07322946190834045, 0.039792004972696304, -0.1910838782787323, -0.672508716583252, 0.19044333696365356, -0.4558851420879364, 0.04814668744802475, -0.03014296293258667, -0.05054737627506256, -0.15437710285186768, 0.14809691905975342, -0.17346824705600739, 0.1258009374141693, 0.05039756000041962, 0.149103581905365, 0.23414042592048645, -0.29194456338882446, -0.04079017415642738, -0.38327494263648987, -0.1340228021144867, -0.10488759726285934, -0.5120508074760437, 0.6572319269180298, 0.0724065825343132, -0.2904246151447296, -0.29729095101356506, 0.14710035920143127, 0.028032690286636353, -0.03708620369434357, -0.11880724877119064, 0.12292864918708801, -0.0658305212855339, -0.1131172776222229, -0.47026702761650085, 0.16960090398788452, -0.03390459716320038, -0.2905171811580658, 0.29762229323387146, 0.11447520554065704, -0.07829948514699936, -0.1841139942407608, 0.19075697660446167, 0.5881356000900269, 0.08519604802131653, 0.5646957159042358, -0.14793550968170166, -0.013356935232877731, -0.12367832660675049, 0.17819452285766602, -0.011322627775371075, -0.15540996193885803, -0.16187959909439087, 0.2307119071483612, 0.28572672605514526, -0.03258340060710907, -0.14715224504470825, 0.1662856489419937, 0.282997727394104, -0.057341307401657104, -0.08306094259023666, 0.0654536709189415, -0.1417270004749298, 0.06835350394248962, 0.11915154755115509, -0.10409223288297653, 0.2394605576992035, 0.19611649215221405, -0.1819210946559906, -0.009021295234560966, -0.17368842661380768, -0.16778559982776642, 0.28292131423950195, 0.16134899854660034, 0.5691131949424744, 0.14033472537994385, 0.376708447933197, -0.326477587223053, -0.2785775661468506, -0.10179732739925385, 0.014397790655493736, 0.14712968468666077, -0.2031051516532898, 0.05800455063581467, -0.10777503252029419, -0.006899584084749222, -0.1237572729587555, -0.5938736796379089, -0.02993829920887947, 0.00928349420428276, -0.07544320821762085, -0.009202461689710617, -0.19013692438602448, 0.17173559963703156, 0.19329619407653809, -0.1336839348077774, 0.23936043679714203, -0.09473756700754166, -0.18878613412380219, 0.0840676799416542, -0.13976988196372986, -0.0063821692019701, 0.22087331116199493, 0.02079806476831436, -0.09176527708768845, 0.13037550449371338, -0.025486040860414505, -0.457122266292572, -0.36359313130378723, 0.10560847818851471, -0.08762706816196442, 0.28296226263046265, 0.5301014184951782, -0.06093244254589081, 0.06966757029294968, -0.2881966233253479, 0.3887397348880768, 0.001195782795548439, -0.20870639383792877, 0.29504016041755676, -0.20564968883991241, 0.1029587984085083, -0.08822229504585266, -0.0808873251080513, -0.025119462981820107, -0.21631842851638794, 0.22041641175746918, 0.3758436441421509, 0.2948088049888611, 0.23027344048023224, 0.4909336566925049, 0.2809518277645111, -0.04083728417754173, 0.0959874764084816, 0.16386421024799347, 0.26213952898979187, 0.36901938915252686, -0.06387598812580109, -0.16033117473125458, -0.10584113001823425, -0.8136043548583984, 0.08774006366729736, 0.3370891213417053, -0.0335913747549057, -0.3418252170085907, -0.09185198694467545, 0.16716811060905457, -0.07807351648807526, 0.06882774829864502, 0.33884197473526, 0.09134280681610107, 0.05526850372552872, -0.030466357246041298, -0.04430735111236572, 0.4142763018608093, 0.15059980750083923, -0.008293330669403076, 0.01064644567668438, 0.2831355631351471, -0.19887951016426086, 0.5975483655929565, 0.09073607623577118, -0.28712621331214905, 0.10083439946174622, -0.2542865574359894, -0.054166387766599655, -0.21911436319351196, -0.01260413508862257, -0.17988243699073792, 0.1291857361793518, -0.2310938835144043, 0.059952933341264725, -0.12822338938713074, -0.305378258228302, 0.25177526473999023, 0.33722788095474243, -0.0572943277657032, -0.058436013758182526, 0.16912363469600677, 0.1370234489440918, 0.21357980370521545, -0.16073495149612427, 0.12209924310445786, -0.35600775480270386, -0.17732831835746765, -0.33377766609191895, -0.3037228584289551, 0.1418001651763916, -0.040295667946338654, -0.2624797523021698, 0.006457365117967129, 0.09194456785917282, 0.2578709125518799, 0.5154529809951782, -0.02653319016098976, 0.24619321525096893, -0.1622951328754425, 0.16181688010692596, -0.05371895432472229, 0.5656294226646423, -0.0027274712920188904, -0.27752453088760376, 0.5173032879829407, 0.17405448853969574, -0.39376142621040344, -0.35455724596977234, -0.10321743786334991, 0.08117461204528809, -0.21071790158748627, 0.05779973044991493, -0.3799523711204529, -0.172449991106987, 0.2668900191783905, 0.3965166509151459, -0.009154107421636581, -0.1572371870279312, -0.16606880724430084, -0.11688929051160812, -0.14534783363342285, -0.19576215744018555, -0.18588761985301971, 0.4336942136287689, -0.007019899785518646, -0.4450424015522003, -0.33570563793182373, -0.11893060803413391, -0.13904936611652374, -0.00025850720703601837, 0.5432816743850708, -0.20231080055236816, -0.0015573855489492416, -0.3428707420825958, -0.008045084774494171, 0.2560169994831085, 0.11394805461168289, 0.18244615197181702, 0.09794221073389053, 0.23491844534873962, -0.0910523533821106, 0.3822707235813141, 0.23728066682815552, -0.21989960968494415, 0.04489700868725777, 0.1027146726846695, 0.1267092525959015, -0.004162644036114216, -0.19367891550064087, 0.37964725494384766, -0.4180857837200165, -0.046698197722435, -0.3388865292072296, 0.6189414858818054, 0.0008020084351301193, 0.19761799275875092, 0.29698240756988525, 0.40211695432662964, -0.24340616166591644, 0.17325206100940704, 0.5898044109344482, 0.8234205842018127, 0.021046310663223267, 0.09118525683879852, 0.718323826789856, 0.06493103504180908, 0.04760407283902168, 0.3822614550590515, 0.2309386134147644, -0.44901159405708313, 0.05412719026207924, -0.09496922045946121, -0.3679797947406769, 0.2082759141921997, 0.3048763871192932, -0.10940125584602356, -0.06178705766797066, -0.069858618080616, 0.4589514136314392, 0.08709661662578583, -0.05680391564965248, -0.2477198839187622, -0.12354414165019989, -0.1430540829896927, -0.016434337943792343, -0.10084766149520874, -0.42525410652160645, -0.02559656649827957, -0.34479713439941406, -0.18401241302490234, 0.0054283589124679565, -0.07518206536769867, -0.07571491599082947, -0.4166589379310608, 0.007047184742987156, 0.5495270490646362, -0.5068942904472351, 0.06920529901981354, 0.0717681497335434, -0.12240010499954224, -0.2166784554719925, -0.11113511025905609, -0.23613812029361725, 0.27415624260902405, -0.1455589383840561, -0.22167940437793732, -0.3660666048526764, 0.2566589415073395, 0.13540849089622498, 0.012584574520587921, -0.015862174332141876, -0.10128796100616455, -0.018719373270869255, -0.14519290626049042, -0.023818768560886383, 0.4159698486328125, -0.393888920545578, -0.16200748085975647, -0.13567891716957092, -0.19298261404037476, -0.08840402960777283, -0.0010424237698316574, 0.10951913893222809, -0.10162310302257538, -0.09753838926553726, 0.13914261758327484, 0.08002053201198578, -0.04633050039410591, -0.03899750858545303, 0.646450400352478, 0.27866271138191223, 0.39943745732307434, 0.10479286313056946, 0.08500656485557556, -0.1724819839000702, 0.1371435821056366, 0.48680052161216736, -0.5715532898902893, 0.2576579749584198, 0.0907600075006485, -0.16967706382274628, -0.02901642955839634, 0.5399835109710693, -0.04421225190162659, 0.4526689946651459, -0.15689241886138916, 0.11090017855167389, -0.3084823191165924, 0.1464322805404663, 0.21145042777061462, 0.4577489495277405, -0.2875777781009674, 0.06321962177753448, 0.02018236555159092, -0.041406258940696716, -0.17268848419189453, -0.04398611932992935, 0.03558658808469772, -0.0942763090133667, -0.5580285787582397, -0.028081923723220825, 0.022301746532320976, 0.0794302225112915, 0.019279027357697487, -0.044385574758052826, -0.5251638889312744, -0.08225622773170471, 0.011079888790845871, 0.18505504727363586, 0.13980253040790558, 0.024303434416651726, 0.09043487161397934, -0.0721932053565979, -0.2565636932849884, -0.22345079481601715, -0.05487007275223732, -0.13822293281555176, -0.1830095797777176, -0.10361441969871521, 0.3470044434070587, -0.01565571129322052, -0.4039342403411865, -0.09755082428455353, -0.26940831542015076, 0.23711131513118744, 0.1720995157957077, 0.07146014273166656, 0.039560940116643906, -0.03623903542757034, -0.18818503618240356, 0.24408966302871704, -0.03038640320301056, -0.2020338773727417, 0.2280723750591278, -0.4099780321121216, -0.422000527381897, -0.2187936156988144, 0.4399961531162262, 0.23592735826969147, -0.1673678457736969, 0.005628662183880806, -0.004720481112599373, 0.1214899942278862, -0.2195076197385788, 0.09441889822483063, 0.24326500296592712, 0.0230192132294178, 0.15900574624538422, 0.4403982162475586, 0.28495344519615173, -0.15594060719013214, -0.011290550231933594, 0.12147944420576096, -0.04771893098950386, 0.05418556183576584, 0.1368531435728073, 0.670167088508606, -0.049399469047784805, 0.08553284406661987, 0.4568312466144562, -0.01836330071091652, 0.2231655716896057, -0.075039342045784, -0.1158410981297493, 0.4804646372795105, 0.005745820701122284, -0.11400346457958221, 0.18912187218666077, -0.011435957625508308, 0.05595525726675987, 0.21982312202453613, 0.4599035680294037, -0.03058697283267975, 0.03862333670258522, 0.6613844633102417, 0.07902731001377106, -0.08434544503688812, -0.3169945180416107, -0.12863598763942719, -0.07051090896129608, 0.09053777158260345, -0.05334861949086189, -0.17381061613559723, -0.2111717313528061, -0.3472500443458557, -0.10796181857585907, -0.45506298542022705, 0.2416439652442932, -0.1753721386194229, 0.2323988378047943, -0.34193769097328186, 0.5808367133140564, 0.2017829716205597, 0.03611712530255318, -0.1317172795534134, 0.44493842124938965, 0.3095203936100006, -0.01740073412656784, -0.18000313639640808, 0.3680499196052551, 0.26685869693756104, 0.40843188762664795, -0.1282459795475006, -0.15569522976875305, 0.015701068565249443, -0.2543371319770813, 0.07826222479343414, 0.05552759766578674, 0.18520861864089966, 0.0283585786819458, 0.19955532252788544, 0.04248249530792236, -0.07925404608249664, 0.2689206004142761, 0.2696080505847931, 0.007309994660317898, -0.19132418930530548, 0.34189286828041077, -0.1809462457895279, -0.19397953152656555, -0.02638048678636551, -0.20455893874168396, -0.466359406709671, -0.09440838545560837, 0.23060192167758942, -0.08285921812057495, -0.016725819557905197, 0.03321540728211403, 0.014934495091438293, -0.19093433022499084, 0.3069327771663666, 0.09631228446960449, 0.4915100336074829, -0.23890173435211182, -0.07601533830165863, -0.2282329648733139, 0.3368016183376312, -0.32844215631484985, 0.08920669555664062, 0.3115129768848419, 0.391877681016922, -0.04111772030591965, -0.004877522587776184, 0.09927157312631607, 0.12932048738002777, 0.040465667843818665, 0.4305918514728546, -0.3858339786529541, -0.0226861871778965, 0.36560600996017456, -0.03403746336698532, -0.04085627198219299, -0.2874153256416321, 0.15306724607944489, -0.358737051486969, -0.04010508954524994, 0.19569358229637146, 0.26135754585266113, 0.12650300562381744, 0.2545158863067627, 0.36846694350242615, -0.08613038063049316, -0.025106340646743774, 0.16551995277404785, -0.1269250065088272, -0.29448366165161133, -0.1134403795003891, -0.12816467881202698, 0.31014907360076904, 0.20087653398513794, 0.5762243270874023, -0.1929154396057129, 0.22459179162979126, -0.14272058010101318, -0.12438519299030304, 0.10411395132541656, 0.2011827677488327, -0.2228565365076065, 0.4451678991317749, -0.5870549082756042, 0.11539900302886963, -0.023612581193447113, -0.1626644730567932, 0.2037954032421112, 0.12548550963401794, -0.19504714012145996, -0.45925185084342957, 0.6747374534606934, -0.30882999300956726, -0.49593251943588257, 0.1302369087934494, -0.008558347821235657, 0.29611629247665405, -0.10748674720525742, -0.3079208433628082, -0.06517893075942993, 0.442390114068985, -0.04271966964006424, 0.23319140076637268, 0.03886667639017105, 0.004646655637770891, 0.09753277897834778, -0.1714746206998825, 0.14177680015563965, 0.03408431634306908, -0.14227072894573212, -0.4382564425468445, -0.573833167552948 ]
https://github.com/huggingface/datasets/issues/887
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Thanks for diving into this ! Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint). Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to. Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases. In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet): ```python from datasets import Dataset, Features, Array3D # this works matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix]]}) print(d.to_pandas()) # this should work as well matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]}) print(d.to_pandas()) ``` I'll be happy to help you on this :)
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
164
pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic) ```python def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=datasets.Features( { "pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32")) } ), homepage=_HOMEPAGE, citation=_CITATION, ) def _generate_examples(self): """ Yields examples. """ yield 1, { "pose": [np.zeros(shape=(137, 2), dtype=np.float32)] } ``` But this doesn't work - > pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> Thanks for diving into this ! Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint). Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to. Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases. In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet): ```python from datasets import Dataset, Features, Array3D # this works matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix]]}) print(d.to_pandas()) # this should work as well matrix = [[1, 0], [0, 1]] features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))}) d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]}) print(d.to_pandas()) ``` I'll be happy to help you on this :)
[ 0.08111853897571564, 0.06608685851097107, -0.07496573776006699, 0.1997891515493393, 0.5059959292411804, -0.06205584853887558, 0.6662250757217407, 0.22281499207019806, -0.235168918967247, 0.21039468050003052, 0.2033907026052475, 0.3141404092311859, -0.16791607439517975, 0.1519099920988083, 0.16147273778915405, -0.526451587677002, 0.1352107673883438, 0.4473287761211395, -0.03704545646905899, 0.08682166039943695, -0.08640149235725403, -0.1268901377916336, -0.23472999036312103, 0.19982784986495972, -0.35606077313423157, 0.04354129731655121, -0.41793254017829895, -0.13190221786499023, -0.19629210233688354, -0.339712530374527, 0.26750391721725464, 0.1394723802804947, 0.1546589434146881, 0.19404637813568115, -0.00011625656770775095, -0.020186156034469604, 0.2754313349723816, 0.0027222484350204468, -0.165328249335289, -0.15045340359210968, 0.17563632130622864, -0.4560697078704834, 0.14269708096981049, -0.37676486372947693, -0.05979666858911514, -0.7914661765098572, -0.15580222010612488, -0.05657743290066719, 0.05843942612409592, 0.1819477081298828, 0.18608972430229187, 0.19707228243350983, 0.34455549716949463, 0.007005789782851934, 0.33721327781677246, 0.266202449798584, -0.33379194140434265, -0.07435368001461029, 0.22050444781780243, -0.1364300549030304, -0.019756779074668884, -0.08120232820510864, -0.09356304258108139, 0.12538868188858032, 0.37038689851760864, 0.2559623122215271, 0.441260427236557, -0.3059553802013397, -0.038508012890815735, 0.48660212755203247, 0.5266450047492981, -0.22638341784477234, -0.14868925511837006, -0.2105610966682434, 0.03260532394051552, -0.07202227413654327, -0.11340678483247757, 0.39323940873146057, -0.2839559316635132, -0.02590702846646309, -0.16177131235599518, 0.2671584486961365, -0.4738793671131134, 0.3436037302017212, 0.01535872370004654, 0.17688918113708496, 0.06007549911737442, 0.1067783534526825, -0.07881501317024231, -0.33436816930770874, 0.6473376750946045, -0.2683770954608917, 0.16954246163368225, 0.15767645835876465, 0.12607909739017487, 0.05479898303747177, 0.0399516224861145, -0.30566906929016113, 0.26119905710220337, -0.06626882404088974, 0.2565308213233948, -0.05405573546886444, 0.3141373097896576, 0.0777813196182251, -0.09619845449924469, 0.29313623905181885, -0.19101691246032715, -0.035344723612070084, -0.19153368473052979, 0.2000768929719925, 0.14076747000217438, 0.1348167061805725, -0.09582256525754929, -0.3377196788787842, 0.3894746005535126, -0.07044327259063721, 0.31810879707336426, 0.28441518545150757, 0.05033764988183975, 0.02951063960790634, -0.7314229607582092, -0.10564504563808441, -0.07943252474069595, 0.13332264125347137, 0.06327715516090393, 0.023406531661748886, -0.06656692922115326, 0.39163845777511597, 0.004836855456233025, 0.03448837995529175, -0.1772148460149765, 0.1383274495601654, -0.2407190203666687, -0.15820053219795227, 0.05804622545838356, 0.31111201643943787, 0.032391175627708435, 0.06568589061498642, 0.16818608343601227, -0.04925691708922386, 0.047377124428749084, 0.0943843275308609, 0.19244782626628876, 0.1907958835363388, -0.21833372116088867, -0.20423611998558044, -0.04821852222084999, -0.2408757209777832, -0.2660052180290222, 0.34085074067115784, 0.12376532703638077, -0.11474891006946564, -0.2962645888328552, 0.1257820576429367, -0.25769615173339844, 0.03328225761651993, 0.01898777484893799, 0.16564029455184937, 0.12303236871957779, 0.18610873818397522, 0.06707517802715302, -0.016317937523126602, 0.2285517454147339, -0.43909046053886414, 0.1310141235589981, 0.14341934025287628, -0.3788301348686218, 0.18397845327854156, 0.09020619839429855, 0.04728267341852188, -0.02048935741186142, -0.1859837770462036, -0.19585660099983215, 0.2340257465839386, -0.1092267781496048, 0.2045663744211197, 0.4382779002189636, 0.10317063331604004, -0.05083290487527847, 0.03968987613916397, -0.10085517168045044, -0.05749116837978363, 0.18445780873298645, 0.06798049062490463, -0.23258815705776215, 0.00863839965313673, -0.3313022553920746, 0.36175429821014404, -0.046813540160655975, -0.13409215211868286, -0.11938457190990448, -0.4566428065299988, 0.5288198590278625, 0.16047048568725586, 0.23125840723514557, -0.02935771644115448, -0.0378948375582695, -0.41357478499412537, 0.21313241124153137, -0.5370698571205139, 0.20640692114830017, -0.0110488161444664, 0.3182365894317627, -0.2316180318593979, 0.10172612220048904, -0.14970794320106506, -0.6831345558166504, 0.209557443857193, -0.2615548074245453, 0.13485494256019592, -0.16272945702075958, 0.016148805618286133, -0.2137753665447235, 0.08648397028446198, -0.16145522892475128, 0.051347412168979645, 0.1555672585964203, -0.051770418882369995, 0.10157300531864166, -0.2328873872756958, -0.12568515539169312, -0.284223735332489, 0.03739747405052185, -0.07183011621236801, -0.29942265152931213, 0.606870174407959, -0.024051828309893608, -0.22567948698997498, -0.20272623002529144, 0.1907728612422943, 0.15968115627765656, -0.017494162544608116, -0.003947652876377106, 0.1641906499862671, -0.1085747629404068, -0.010828718543052673, -0.5107387900352478, 0.2201361060142517, -0.008872933685779572, -0.2927831709384918, 0.32595545053482056, 0.14843980967998505, 0.031267568469047546, -0.218618243932724, 0.14610925316810608, 0.5942309498786926, -0.20543791353702545, 0.500115156173706, -0.169674813747406, 0.10784231871366501, -0.04400952532887459, 0.1070576161146164, -0.12064110487699509, -0.1674748957157135, -0.1490989327430725, 0.23244012892246246, 0.10001012682914734, -0.05006466805934906, -0.20199742913246155, 0.16506144404411316, 0.22095249593257904, -0.0789220854640007, -0.03823809325695038, 0.03891358897089958, -0.12051611393690109, 0.08635980635881424, 0.22205284237861633, -0.0977577418088913, 0.10828225314617157, 0.20698177814483643, -0.13472358882427216, 0.08056818693876266, -0.34351179003715515, -0.13866564631462097, 0.28596577048301697, 0.19628837704658508, 0.5069097280502319, 0.030931737273931503, 0.3337843716144562, -0.24852265417575836, -0.21829861402511597, -0.07449142634868622, 0.049750082194805145, 0.13413085043430328, -0.33795061707496643, 0.13352195918560028, -0.15747058391571045, -0.0023981109261512756, 0.005832655355334282, -0.7622501850128174, -0.09216967225074768, -0.012477465905249119, -0.08174850791692734, -0.0018165446817874908, -0.2064686119556427, 0.17497968673706055, 0.1516534835100174, -0.18108825385570526, 0.09891416132450104, -0.18235018849372864, -0.22283302247524261, -0.02409180998802185, -0.11540909856557846, 0.05950586125254631, 0.1391381174325943, 0.16856583952903748, -0.019469937309622765, 0.11554770916700363, 0.12713180482387543, -0.2960381805896759, -0.3022589385509491, 0.04355090856552124, -0.2427382618188858, 0.3763852119445801, 0.43503937125205994, 0.014104939997196198, 0.03956103324890137, -0.188796728849411, 0.35453829169273376, 0.2314629852771759, -0.12808169424533844, 0.3346894085407257, -0.10325010120868683, 0.08458481729030609, -0.11869679391384125, 0.01514328271150589, 0.02811966836452484, -0.2963919937610626, 0.1846938133239746, 0.3997449576854706, 0.2637631893157959, 0.22967374324798584, 0.5827411413192749, 0.3116677403450012, 0.05216648802161217, 0.12234362959861755, 0.199958935379982, 0.20725303888320923, 0.4295160472393036, 0.03214074298739433, -0.22796960175037384, -0.18159544467926025, -0.806434154510498, 0.11232759058475494, 0.2651633024215698, -0.0003437548875808716, -0.40038174390792847, -0.11923213303089142, 0.41955187916755676, -0.06583746522665024, 0.129274383187294, 0.47662389278411865, 0.16270428895950317, -0.0051322635263204575, -0.13316455483436584, -0.07624281942844391, 0.3462708592414856, 0.2557981610298157, -0.08543967455625534, -0.019714124500751495, 0.2788517475128174, -0.08597195148468018, 0.577015221118927, -0.05451411381363869, -0.3353947401046753, 0.2743908166885376, -0.22903576493263245, -0.04861530289053917, -0.12065818160772324, -0.08301861584186554, -0.20857779681682587, -0.00003261864185333252, -0.08837040513753891, -0.10227632522583008, -0.12557858228683472, -0.306759774684906, 0.006785623729228973, 0.23127225041389465, -0.24003899097442627, -0.05070207640528679, 0.019487570971250534, 0.014085229486227036, 0.19860127568244934, -0.1047888696193695, 0.14625811576843262, -0.31060168147087097, -0.07703634351491928, -0.13766497373580933, -0.25555920600891113, 0.10499397665262222, -0.0008803717792034149, -0.014186874032020569, 0.024731433019042015, 0.06883206963539124, 0.0896674394607544, 0.39669734239578247, -0.14018599689006805, 0.3456256687641144, -0.18024808168411255, 0.12161731719970703, -0.1736607849597931, 0.6282700896263123, -0.08472513407468796, -0.19326768815517426, 0.5385674238204956, 0.10903790593147278, -0.4343966841697693, -0.27609333395957947, -0.22830893099308014, 0.02459259331226349, -0.28759244084358215, 0.11803491413593292, -0.36855196952819824, -0.14810210466384888, 0.21786338090896606, 0.3199230432510376, 0.01655590906739235, -0.19508299231529236, -0.230890691280365, -0.20401978492736816, -0.051127929240465164, -0.13201886415481567, -0.045816805213689804, 0.39670151472091675, 0.05910240858793259, -0.3044268786907196, -0.39764145016670227, -0.10712399333715439, -0.13806825876235962, 0.15466824173927307, 0.39690929651260376, -0.1583365797996521, 0.04238373413681984, -0.3037188947200775, -0.007844485342502594, 0.082022525370121, 0.07756830751895905, 0.17567509412765503, 0.0458686538040638, 0.021585527807474136, 0.02758900448679924, 0.3561811149120331, 0.23916809260845184, -0.11443419009447098, -0.0643036738038063, -0.022167660295963287, 0.12716706097126007, -0.1965865194797516, -0.08221455663442612, 0.4506603181362152, -0.36171212792396545, 0.008282270282506943, -0.26443836092948914, 0.6715795397758484, -0.09013846516609192, 0.11709471046924591, 0.2661954164505005, 0.5690857172012329, -0.1716606318950653, 0.2838432788848877, 0.6202142834663391, 1.0007251501083374, -0.02950815111398697, 0.10523141920566559, 0.7753419876098633, -0.11384783685207367, 0.06444589048624039, 0.3265841007232666, 0.2164054661989212, -0.4182456135749817, 0.1595393419265747, -0.11146103590726852, -0.3246539831161499, 0.11798853427171707, 0.12209650129079819, -0.20341047644615173, -0.07146073877811432, -0.2789859175682068, 0.29905837774276733, 0.12347792088985443, -0.04420343041419983, -0.1172315701842308, -0.20518730580806732, -0.23192599415779114, 0.06632663309574127, -0.04821895807981491, -0.3505476713180542, -0.10492263734340668, -0.3317464590072632, -0.2237372249364853, -0.028910767287015915, 0.0008952021598815918, 0.003447173163294792, -0.33387330174446106, 0.00881173089146614, 0.3812502324581146, -0.5121402144432068, 0.001597534865140915, 0.1844577044248581, -0.09207496047019958, -0.16402606666088104, -0.2030433565378189, -0.1268923431634903, 0.45988988876342773, -0.2843431830406189, -0.09143321961164474, -0.37323227524757385, 0.3492225110530853, 0.042391516268253326, -0.1033635064959526, -0.08978163450956345, -0.024545075371861458, 0.0914483517408371, -0.18662866950035095, -0.02151462435722351, 0.2234341949224472, -0.21825499832630157, -0.032379232347011566, -0.059906721115112305, 0.01572694256901741, -0.10669738054275513, 0.09592126309871674, 0.044111765921115875, -0.042853787541389465, -0.05443497747182846, 0.17282196879386902, 0.04483960568904877, -0.06784971058368683, -0.004352785646915436, 0.4437873065471649, 0.33730408549308777, 0.26047831773757935, 0.20112426578998566, -0.06190015375614166, -0.20484721660614014, 0.11338547617197037, 0.35871925950050354, -0.4849702715873718, 0.179215207695961, 0.10195591300725937, -0.2370806783437729, -0.1328747570514679, 0.49738529324531555, 0.05487336218357086, 0.22207090258598328, -0.04658062756061554, 0.14591707289218903, -0.4149119257926941, 0.11465876549482346, 0.16644929349422455, 0.2982102036476135, -0.32588621973991394, 0.08798021078109741, 0.027540622279047966, -0.010068031027913094, -0.2889706492424011, 0.050610221922397614, 0.10506551712751389, -0.009065113961696625, -0.5112299919128418, -0.12081291526556015, 0.019371449947357178, 0.08408322930335999, 0.1421370953321457, -0.06217768043279648, -0.4542085826396942, -0.17414233088493347, -0.17306147515773773, 0.14615337550640106, 0.11530070006847382, -0.11779866367578506, 0.16031475365161896, -0.1115378737449646, -0.3431861102581024, -0.2813437283039093, -0.07265019416809082, 0.021530192345380783, -0.1531999409198761, -0.12493174523115158, 0.32407882809638977, -0.011987261474132538, -0.2783166766166687, -0.2467866837978363, -0.25762102007865906, 0.1958538293838501, 0.14999906718730927, 0.04499215632677078, 0.04423590749502182, -0.04113700985908508, -0.12212901562452316, 0.2578853368759155, -0.05488012731075287, -0.2784707844257355, 0.29667091369628906, -0.33311641216278076, -0.312894344329834, -0.3269759714603424, 0.4821077287197113, 0.20513075590133667, -0.1748419553041458, 0.01028108038008213, 0.10690529644489288, 0.20022784173488617, -0.35587725043296814, 0.023939505219459534, 0.026455208659172058, 0.0195046104490757, 0.22805911302566528, 0.40765392780303955, 0.18061120808124542, -0.09155163168907166, -0.16125738620758057, 0.05983562022447586, -0.11766152083873749, 0.022384917363524437, 0.0006818629335612059, 0.5625864863395691, -0.2342287003993988, 0.1041012853384018, 0.4643886089324951, 0.08357170224189758, 0.19189733266830444, -0.10585227608680725, -0.1186736598610878, 0.2647424042224884, 0.08168015629053116, -0.08268934488296509, 0.05554218217730522, 0.03835884854197502, 0.08321709930896759, 0.03906134516000748, 0.3929712176322937, -0.08853962272405624, 0.034425895661115646, 0.5620696544647217, 0.1830461472272873, 0.10937687754631042, -0.29623836278915405, -0.11325354874134064, -0.09645187109708786, -0.001524043269455433, 0.07342185080051422, -0.22105824947357178, -0.3147691488265991, -0.36133837699890137, -0.08067731559276581, -0.4869598150253296, 0.18534883856773376, -0.09471507370471954, 0.1995818316936493, -0.2643702030181885, 0.605808675289154, 0.13354600965976715, 0.1624038815498352, -0.23956622183322906, 0.276404470205307, 0.3889528512954712, -0.14088642597198486, -0.31854745745658875, 0.3108561038970947, 0.30914661288261414, 0.38206130266189575, -0.4403640925884247, -0.12886685132980347, -0.007554199546575546, -0.27166301012039185, 0.13830788433551788, 0.03807998448610306, 0.17865687608718872, 0.2999197542667389, 0.3266955614089966, 0.11148612201213837, -0.17850467562675476, 0.2261471301317215, 0.28929322957992554, 0.0628216415643692, -0.28046658635139465, 0.3225165903568268, -0.22058412432670593, -0.05367536097764969, -0.016114670783281326, -0.2147413194179535, -0.3772149682044983, -0.12832072377204895, 0.24848361313343048, -0.07962881028652191, 0.0010217204689979553, -0.04828181862831116, 0.07473171502351761, -0.09626366198062897, 0.3985404968261719, 0.002609536051750183, 0.5584186315536499, -0.2954240143299103, 0.07281559705734253, -0.4015299379825592, 0.29601943492889404, -0.3695744276046753, -0.006360691040754318, 0.2887951731681824, 0.3542708158493042, -0.016344986855983734, 0.1101769432425499, 0.0010080263018608093, 0.29767996072769165, 0.008311686106026173, 0.42553797364234924, -0.3503299653530121, 0.08755983412265778, 0.19518227875232697, 0.00489394087344408, -0.013151637278497219, -0.2848477363586426, 0.12863512337207794, -0.4223632514476776, 0.060182638466358185, 0.1569889485836029, 0.1705658733844757, 0.1910828948020935, 0.3271721303462982, 0.4762113094329834, -0.07264291495084763, -0.007685430347919464, 0.13583990931510925, -0.06481185555458069, -0.3627670109272003, 0.006071445532143116, -0.18506552278995514, 0.22748026251792908, 0.13935726881027222, 0.42370542883872986, -0.19741198420524597, 0.11693364381790161, -0.14795982837677002, -0.09168531000614166, 0.07306182384490967, 0.19579093158245087, -0.10127483308315277, 0.34776315093040466, -0.40797269344329834, 0.1093750149011612, -0.11230243742465973, -0.12913715839385986, 0.072041817009449, 0.17944201827049255, -0.16684487462043762, -0.590004026889801, 0.7276580929756165, -0.26500099897384644, -0.553864061832428, 0.16250844299793243, -0.031157463788986206, 0.3296855390071869, -0.027208326384425163, -0.3190828561782837, -0.07868654280900955, 0.3554779589176178, -0.016446877270936966, 0.07744051516056061, 0.12848018109798431, -0.017558922991156578, 0.058482054620981216, -0.11630277335643768, 0.09963615238666534, -0.05306026339530945, -0.05590111017227173, -0.46430763602256775, -0.5050966739654541 ]
https://github.com/huggingface/datasets/issues/883
Downloading/caching only a part of a datasets' dataset.
I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger. This makes the task impossible with limited memory resources.
Hi, I want to use the validation data *only* (of natural question). I don't want to have the whole dataset cached in my machine, just the dev set. Is this possible? I can't find a way to do it in the docs. Thank you, Sapir
40
Downloading/caching only a part of a datasets' dataset. Hi, I want to use the validation data *only* (of natural question). I don't want to have the whole dataset cached in my machine, just the dev set. Is this possible? I can't find a way to do it in the docs. Thank you, Sapir I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger. This makes the task impossible with limited memory resources.
[ -0.259647399187088, 0.01766286790370941, -0.14441360533237457, 0.05602762848138809, 0.005209697410464287, 0.19323360919952393, 0.07143616676330566, 0.42445191740989685, -0.20966342091560364, 0.12258371710777283, -0.16739599406719208, -0.31124934554100037, 0.038280852138996124, 0.343101441860199, 0.2733538746833801, 0.3157152235507965, -0.044959656894207, 0.44453924894332886, -0.01358778029680252, 0.17978763580322266, 0.1321716159582138, -0.3596690595149994, 0.09004366397857666, 0.17981231212615967, -0.03431399539113045, -0.01303812675178051, 0.3524552881717682, -0.17290300130844116, -0.3025228977203369, -0.2646118700504303, 0.5076569318771362, 0.15685094892978668, 0.09876757115125656, -0.3624982535839081, -0.00012160290498286486, 0.0493057519197464, 0.015732843428850174, -0.259304404258728, -0.1948632150888443, 0.17479664087295532, -0.3646432161331177, 0.22112010419368744, -0.10162679851055145, -0.11095313727855682, -0.2629936635494232, 0.14961598813533783, 0.0997372418642044, -0.11486436426639557, 0.3868531584739685, 0.38198599219322205, 0.07266776263713837, 0.2527620494365692, -0.25827157497406006, 0.08188413828611374, -0.4386487305164337, -0.12059709429740906, -0.11136969923973083, 0.22935126721858978, 0.3401830494403839, 0.17426055669784546, 0.15087853372097015, 0.360914021730423, 0.20375925302505493, 0.33654558658599854, 0.5206018090248108, -0.10590164363384247, 0.2213975191116333, -0.529089093208313, 0.35289955139160156, 0.36347517371177673, 0.8179841637611389, -0.2111043930053711, -0.17093749344348907, 0.03815770149230957, -0.11082876473665237, -0.3244960904121399, -0.027646265923976898, 0.3498642146587372, -0.3038273751735687, 0.5577996373176575, -0.6025673151016235, -0.5060821771621704, -0.4514364004135132, 0.02111644670367241, -0.07199614495038986, -0.11113472282886505, 0.026791036128997803, -0.07933821529150009, 0.203847274184227, 0.3404901623725891, 0.4757574200630188, -0.1010633334517479, -0.3275690972805023, 0.2050730437040329, -0.155613973736763, -0.4630131423473358, -0.4531753659248352, 0.11245454847812653, 0.2769368886947632, 0.2156207263469696, -0.028126873075962067, 0.13600656390190125, 0.019645318388938904, 0.03268492594361305, 0.3324066996574402, 0.257154256105423, 0.20977813005447388, 0.3000054359436035, 0.12624244391918182, -0.283625990152359, 0.04354967549443245, -0.038378968834877014, 0.016626711934804916, 0.17939724028110504, -0.03524836525321007, 0.200589120388031, -0.19222168624401093, -0.5734282732009888, 0.02825736813247204, -0.16242223978042603, -0.026857128366827965, -0.1042124405503273, 0.011744847521185875, 0.3720725476741791, -0.23376955091953278, -0.0338173434138298, -0.4144834876060486, 0.12903687357902527, -0.02440331131219864, -0.7614021897315979, -0.13534756004810333, 0.2001846432685852, -0.15188157558441162, 0.15370240807533264, 0.30870839953422546, -0.2576305866241455, 0.25714436173439026, -0.2327064871788025, -0.053633950650691986, -0.014496289193630219, 0.38221055269241333, -0.24052032828330994, 0.3597932755947113, 0.30087172985076904, -0.10034304857254028, 0.14360114932060242, -0.0037028267979621887, 0.06776413321495056, -0.27027690410614014, 0.21407821774482727, -0.02404341846704483, -0.716057538986206, 0.13297723233699799, 0.030605558305978775, -0.29154717922210693, 0.04982537776231766, -0.018612585961818695, 0.2691911458969116, 0.10030605643987656, -0.04243631660938263, -0.028078071773052216, 0.10428294539451599, -0.09310808777809143, 0.05695699155330658, 0.35391801595687866, 0.005456253886222839, -0.34967318177223206, -0.04554520174860954, 0.07576385140419006, -0.2223428189754486, -0.07823749631643295, 0.17968925833702087, -0.35260260105133057, 0.28321173787117004, -0.03499326854944229, -0.05158992484211922, 0.6107292175292969, -0.03300853818655014, -0.3416730761528015, 0.05037806183099747, 0.03749678283929825, -0.3896384835243225, -0.10716918855905533, 0.19743941724300385, 0.13916775584220886, 0.07822434604167938, -0.5371803045272827, 0.4953879714012146, -0.004566615447402, -0.2572205662727356, -0.09021471440792084, -0.13359703123569489, 0.05097399279475212, -0.034461986273527145, 0.31878411769866943, 0.5672197341918945, 0.09345128387212753, 0.21098409593105316, -0.06543239206075668, -0.1826469749212265, 0.17790554463863373, 0.14419770240783691, 0.18083776533603668, -0.25674641132354736, -0.10360506922006607, -0.2643275260925293, -0.39348793029785156, 0.2896127998828888, 0.01900922879576683, -0.6332796216011047, 0.5450129508972168, -0.1466408669948578, -0.2126222550868988, -0.2811497747898102, 0.19851969182491302, -0.38745617866516113, -0.0683608204126358, -0.07877175509929657, 0.5183351635932922, -0.2221154421567917, -0.43320733308792114, 0.24598638713359833, -0.038842350244522095, -0.008597539737820625, -0.0347098670899868, -0.07734796404838562, -0.013626502826809883, 0.23322749137878418, -0.07802529633045197, -0.23260411620140076, -0.14388230443000793, -0.07709313929080963, 0.0010286858305335045, 0.24357178807258606, -0.18943288922309875, -0.038238584995269775, -0.057995833456516266, 0.4480161666870117, 0.11334411799907684, -0.1220167726278305, 0.0389687716960907, -0.12640756368637085, 0.03787904977798462, 0.059217289090156555, -0.2691628336906433, 0.4455896019935608, -0.04258046671748161, 0.13046714663505554, 0.040254995226860046, -0.0788118988275528, 0.20343592762947083, -0.37452375888824463, 0.014409836381673813, -0.26025861501693726, 0.05388636514544487, -0.16444475948810577, 0.3352132737636566, -0.03823940455913544, -0.21191582083702087, -0.11002927273511887, 0.14151178300380707, 0.07419019937515259, 0.018070988357067108, -0.1057828888297081, -0.16951772570610046, -0.001391347497701645, 0.18381522595882416, 0.18740645051002502, 0.3733813762664795, 0.05544303357601166, 0.3742048740386963, 0.17276079952716827, 0.08357712626457214, -0.032237131148576736, 0.05898701027035713, -0.24225394427776337, -0.18201321363449097, -0.03363671153783798, -0.3563265800476074, -0.18243010342121124, -0.17958539724349976, 0.40012240409851074, 0.12011618167161942, -0.04542306810617447, -0.1748717725276947, 0.016267677769064903, -0.42718300223350525, -0.049197968095541, -0.04826346039772034, 0.13937506079673767, -0.10468873381614685, 0.21753501892089844, 0.06364243477582932, 0.17977283895015717, -0.033022258430719376, 0.08580217510461807, -0.28279393911361694, 0.48514795303344727, -0.3380613923072815, 0.07533138990402222, -0.05370178073644638, -0.14759264886379242, -0.06960327178239822, 0.10151843726634979, 0.1213858425617218, 0.14349845051765442, 0.359132319688797, -0.0873144194483757, -0.15524853765964508, -0.3242339789867401, 0.1137348935008049, -0.020187973976135254, 0.4564114212989807, -0.04269164055585861, -0.1663057506084442, 0.5134205222129822, 0.1645127534866333, 0.11842873692512512, -0.18026264011859894, -0.22821615636348724, -0.3151457607746124, -0.17132213711738586, 0.2047235518693924, 0.22880835831165314, -0.18348371982574463, -0.22065985202789307, -0.35844680666923523, -0.15974381566047668, 0.11364912986755371, -0.10769587755203247, 0.19319266080856323, 0.22256019711494446, -0.016939790919423103, -0.23973791301250458, -0.3206496834754944, 0.04033919423818588, -0.22679786384105682, -0.3674761652946472, 0.23914183676242828, -0.04141418635845184, -0.2598356306552887, 0.17996543645858765, -0.07110513001680374, 0.03220096975564957, 0.35133665800094604, -0.3724110722541809, -0.15652337670326233, 0.06505606323480606, -0.09567414224147797, -0.17024020850658417, -0.06970469653606415, 0.2953815460205078, -0.593268632888794, 0.10543258488178253, 0.007493246346712112, -0.0587729811668396, -0.05025968700647354, 0.024557191878557205, 0.22466698288917542, 0.060523394495248795, 0.12988969683647156, 0.3504846394062042, 0.853855550289154, -0.1514459252357483, -0.16269288957118988, 0.015422094613313675, 0.08801890164613724, 0.4468539357185364, -0.03791848570108414, -0.07486934959888458, 0.28854039311408997, -0.04939115047454834, -0.28895020484924316, 0.026813000440597534, -0.1392236053943634, -0.10486835241317749, -0.3318150043487549, 0.050578225404024124, -0.011320844292640686, -0.013927435502409935, 0.0929989442229271, -0.11827021837234497, 0.08119552582502365, 0.532709538936615, 0.018741033971309662, 0.013738946989178658, -0.11024260520935059, 0.2959982752799988, 0.05838595703244209, 0.1100257933139801, 0.1178508922457695, -0.5235834121704102, -0.16305546462535858, -0.09819666296243668, 0.08885426074266434, -0.22713139653205872, -0.07141248881816864, 0.03454044833779335, 0.031684890389442444, 0.2360614389181137, 0.10143821686506271, 0.5184100270271301, -0.20110450685024261, 0.23302818834781647, -0.18854548037052155, -0.3180352449417114, 0.06453194469213486, -0.19065378606319427, 0.09452395141124725, -0.07632018625736237, 0.07637403905391693, 0.007357046008110046, -0.19364102184772491, -0.018762314692139626, -0.06994189321994781, 0.23332840204238892, -0.3665069341659546, 0.06821595877408981, 0.04726560786366463, -0.011143449693918228, 0.029032347723841667, 0.45406195521354675, 0.11341354995965958, -0.005889449268579483, 0.36451438069343567, 0.07313030958175659, -0.3548816442489624, 0.09758440405130386, 0.0919066071510315, 0.34256699681282043, 0.09172051399946213, 0.056764230132102966, 0.1430370807647705, 0.12777842581272125, 0.14619073271751404, 0.07647998631000519, 0.22140294313430786, 0.011715436354279518, -0.1909354329109192, -0.062357112765312195, 0.002301163040101528, 0.19117383658885956, 0.17072659730911255, -0.08378767967224121, -0.2795105278491974, 0.38046786189079285, -0.0915222018957138, -0.22606414556503296, 0.4861375093460083, -0.34983187913894653, -0.20198750495910645, -0.25668469071388245, -0.36476415395736694, 0.176550030708313, 0.07982183992862701, -0.08599407225847244, 0.33061832189559937, -0.25268250703811646, -0.10094302147626877, -0.23970957100391388, 0.4438512623310089, 0.8610082864761353, -0.12279355525970459, 0.20629523694515228, -0.3994809687137604, -0.20299749076366425, 0.3680362105369568, -0.5688804984092712, 0.056961461901664734, -0.21964611113071442, -0.7584604024887085, -0.2906110882759094, -0.2542027235031128, 0.18654920160770416, 0.39052021503448486, 0.24561640620231628, 0.24059836566448212, 0.14171257615089417, 0.49280858039855957, 0.12051171064376831, 0.17552700638771057, 0.10432931780815125, -0.028876353055238724, 0.07134361565113068, 0.022588569670915604, -0.12703795731067657, 0.27086493372917175, -0.15567108988761902, 0.0918058529496193, 0.0571950264275074, -0.0372973307967186, -0.3012591600418091, 0.04893692582845688, -0.46067512035369873, -0.24964384734630585, -0.18142695724964142, -0.05147140100598335, -0.013132096268236637, 0.43944650888442993, 0.5612178444862366, 0.2254854142665863, -0.2542152404785156, 0.2422563135623932, 0.06512942910194397, 0.08861152082681656, -0.24627479910850525, 0.01819102093577385, 0.001643078401684761, -0.3460482060909271, 0.14013195037841797, 0.4257400929927826, -0.09959084540605545, -0.2508589029312134, 0.03732660412788391, 0.1967254877090454, -0.08068490028381348, -0.11191724985837936, -0.16108977794647217, 0.11513476073741913, 0.3356597423553467, -0.006050031632184982, 0.048964470624923706, 0.3836348056793213, -0.34826239943504333, 0.20783007144927979, -0.1432594656944275, -0.3118983507156372, -0.06963357329368591, 0.40855100750923157, 0.2608776092529297, -0.2065868228673935, 0.24441470205783844, -0.6133481860160828, -0.07046904414892197, -0.20923328399658203, -0.021970517933368683, 0.19121284782886505, -0.16492730379104614, 0.0004838574677705765, -0.213357612490654, -0.40108418464660645, -0.340251088142395, 0.0490705706179142, 0.39173513650894165, 0.19112437963485718, -0.18818853795528412, -0.26551172137260437, -0.23197025060653687, 0.051118187606334686, -0.10822470486164093, 0.3742308020591736, -0.06214827299118042, -0.016921501606702805, -0.1252295821905136, 0.4188051223754883, -0.18443194031715393, -0.17766599357128143, -0.005334172397851944, 0.25315624475479126, -0.16740578413009644, 0.1499561071395874, -0.002215837361291051, -0.13745522499084473, -0.17547069489955902, 0.028130436316132545, -0.34563058614730835, -0.14691057801246643, -0.07462432235479355, 0.19917082786560059, -0.008558254688978195, 0.038433514535427094, 0.11710244417190552, 0.040287114679813385, -0.056836921721696854, 0.0520026870071888, 0.20149292051792145, -0.012229949235916138, 0.25753992795944214, 0.2684279978275299, 0.4537936747074127, -0.018109776079654694, -0.593792200088501, -0.009500328451395035, 0.0744519904255867, 0.22089043259620667, 0.03988828510046005, 0.4148596227169037, 0.01692504622042179, -0.05388801544904709, -0.3319835066795349, -0.16681984066963196, 0.053280092775821686, -0.14995035529136658, -0.03980543464422226, 0.11859578639268875, 0.1468970775604248, -0.023799791932106018, 0.19886602461338043, 0.8052163124084473, -0.09248758107423782, 0.22915177047252655, 0.5309453010559082, 0.11367610096931458, 0.0040290020406246185, -0.1860906034708023, 0.3704553544521332, -0.3041722774505615, -0.18236954510211945, 0.14364826679229736, 0.11347401142120361, 0.19580864906311035, 0.4399094581604004, -0.09085200726985931, 0.16776975989341736, -0.23482151329517365, 0.016801752150058746, 0.43658697605133057, -0.026141876354813576, -0.19897298514842987, 0.11531144380569458, 0.2590419352054596, 0.20690950751304626, 0.035178765654563904, -0.12562578916549683, 0.15616042912006378, 0.16701066493988037, 0.20039811730384827, -0.19346213340759277, -0.23566648364067078, -0.06925138831138611, 0.16923102736473083, -0.0888703465461731, 0.12843731045722961, -0.18442144989967346, -0.32541096210479736, 0.2570571005344391, -0.4299585819244385, -0.2986116409301758, 0.017088042572140694, 0.19217011332511902, -0.07248690724372864, -0.2084239274263382, 0.006703965365886688, 0.2563120126724243, 0.31345272064208984, 0.16231277585029602, -0.41597265005111694, 0.24703803658485413, 0.10646364092826843, -0.09724271297454834, 0.21710647642612457, 0.281716525554657, 0.1689366102218628, -0.09128733724355698, -0.13461259007453918, 0.15518085658550262, -0.2595522403717041, -0.0017357319593429565, 0.3158126771450043, 0.23927588760852814, -0.2397792935371399, -0.06781516969203949, 0.22925879061222076, 0.014197370037436485, 0.0887073427438736, -0.019853394478559494, -0.27657943964004517, 0.2951281666755676, 0.18548980355262756, 0.04110854119062424, 0.2854759395122528, 0.01725236512720585, 0.01403902005404234, 0.4403681457042694, -0.39012694358825684, 0.2003469467163086, -0.5645310878753662, 0.040173910558223724, 0.636297345161438, -0.16027870774269104, 0.1644347906112671, 0.06626324355602264, 0.056820452213287354, -0.02891051024198532, -0.09938415884971619, -0.21323004364967346, 0.13085299730300903, 0.154266357421875, -0.003908829763531685, -0.2629949152469635, 0.5772277116775513, 0.06706603616476059, 0.0950346291065216, -0.18485184013843536, 0.058033183217048645, -0.34191063046455383, 0.1647651195526123, -0.07586602866649628, 0.043541766703128815, 0.07810571044683456, 0.12365350127220154, 0.1260082870721817, 0.5432234406471252, -0.06590527296066284, -0.01624307408928871, -0.03206782042980194, 0.5045504570007324, -0.10674634575843811, 0.14570994675159454, 0.08739259839057922, 0.5286424160003662, 0.13068446516990662, -0.22847968339920044, 0.4167976677417755, 0.1157839298248291, -0.15635168552398682, 0.3952566981315613, -0.1051853746175766, 0.43802934885025024, 0.3276386260986328, 0.5421128869056702, -0.056315623223781586, 0.217107892036438, 0.09718833118677139, 0.1875048130750656, -0.035779524594545364, 0.19166609644889832, -0.43457356095314026, -0.04358635097742081, 0.1906261146068573, -0.1363944709300995, -0.5238881707191467, 0.03108794055879116, -0.15248341858386993, 0.2835087180137634, -0.024535663425922394, -0.10286832600831985, 0.2182343304157257, -0.3127632737159729, 0.04781419783830643, 0.18078725039958954, 0.42469483613967896, 0.17292416095733643, -0.25991177558898926, -0.2585413157939911, -0.37705284357070923, 0.13918836414813995, 0.42957693338394165, -0.08863165229558945, -0.2041846066713333, -0.12641721963882446, 0.30985766649246216, 0.2169162631034851, -0.21145977079868317, -0.4354211986064911, 0.09232155233621597, 0.2990780770778656, -0.3669799268245697, -0.17880898714065552, 0.2019108533859253, 0.09158109128475189, 0.020091388374567032, -0.1414799690246582, 0.44815459847450256, 0.061179038137197495, -0.36963504552841187, -0.49829989671707153, -0.35215598344802856 ]
https://github.com/huggingface/datasets/issues/880
Add SQA
I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq
## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
16
Add SQA ## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq
[ -0.06400913000106812, -0.23120743036270142, -0.20991750061511993, -0.12106956541538239, 0.09991446882486343, -0.19758301973342896, 0.033797185868024826, 0.3069656789302826, 0.1483602374792099, 0.0562702938914299, -0.16755612194538116, -0.0026326754596084356, -0.07126070559024811, 0.5443829298019409, 0.15001659095287323, -0.10455328226089478, 0.0272175595164299, 0.14283235371112823, -0.29446136951446533, 0.07118605077266693, -0.19629335403442383, 0.09148627519607544, 0.021571464836597443, 0.031229622662067413, -0.23689042031764984, -0.08445490151643753, -0.10731811076402664, -0.19233810901641846, -0.1904112845659256, -0.19726978242397308, 0.005408851429820061, 0.0722474753856659, 0.16864188015460968, 0.2730417251586914, -0.0001059325149981305, -0.13431215286254883, -0.07519964873790741, -0.09753283858299255, -0.09391957521438599, 0.0506611093878746, -0.16079619526863098, 0.0926123708486557, -0.11105121672153473, -0.07712945342063904, -0.5252550840377808, 0.2041902095079422, -0.07481016218662262, -0.3007471561431885, 0.5820877552032471, 0.26284322142601013, 0.21861299872398376, 0.0928579643368721, 0.07511748373508453, -0.21747136116027832, 0.3752230703830719, 0.004957892000675201, -0.3586769998073578, -0.0065894965082407, 0.402138352394104, -0.3480514585971832, 0.0548398457467556, 0.45303621888160706, 0.2656967341899872, -0.22763212025165558, 0.15250656008720398, 0.12550391256809235, 0.2736344039440155, 0.03347943350672722, 0.0674656331539154, 0.26949894428253174, 0.33357784152030945, -0.09275420755147934, -0.18210463225841522, -0.18861430883407593, 0.014417928643524647, 0.12352554500102997, -0.2833783030509949, 0.11862461268901825, -0.34903761744499207, 0.01677934266626835, -0.18077434599399567, -0.2453860491514206, -0.3496710956096649, 0.10179880261421204, 0.017914943397045135, 0.5167183876037598, -0.019233644008636475, -0.19486674666404724, -0.08310766518115997, -0.13312730193138123, -0.04276927188038826, -0.04725268483161926, 0.24435968697071075, 0.2530231475830078, -0.5382785201072693, -0.27205121517181396, 0.21361196041107178, 0.11504465341567993, 0.24359583854675293, 0.19212213158607483, 0.47200724482536316, -0.07239025831222534, 0.0314645878970623, -0.29650571942329407, 0.16723568737506866, 0.4781263470649719, -0.0035138726234436035, 0.042686667293310165, -0.16356170177459717, 0.11457370966672897, 0.06965671479701996, 0.018535546958446503, 0.011364154517650604, 0.43734660744667053, -0.2889097332954407, 0.033233825117349625, 0.12173575162887573, 0.0777648538351059, -0.3187231719493866, 0.20002812147140503, -0.22166013717651367, -0.08587130159139633, -0.046177253127098083, 0.30673444271087646, -0.27222171425819397, 0.09639596939086914, 0.16178585588932037, 0.15257522463798523, 0.03762378543615341, -0.12058424949645996, -0.0992913469672203, -0.13813737034797668, -0.13890649378299713, 0.3276246190071106, 0.25924548506736755, 0.07565706968307495, -0.1182410791516304, -0.11058971285820007, 0.12366770207881927, 0.06711230427026749, -0.1190185621380806, -0.12577775120735168, 0.27192944288253784, 0.006378069519996643, -0.11961762607097626, -0.24746428430080414, 0.006988499313592911, -0.18556028604507446, -0.08260871469974518, 0.20460984110832214, 0.08662526309490204, 0.08225943148136139, -0.04584447294473648, 0.2935349941253662, -0.035112179815769196, -0.3378952145576477, 0.056064411997795105, 0.38476064801216125, 0.05440711975097656, -0.07861118018627167, 0.16120384633541107, 0.07706880569458008, -0.16406835615634918, -0.06991898268461227, 0.26800423860549927, 0.16236665844917297, 0.043738868087530136, 0.017917633056640625, -0.06027142331004143, 0.29521283507347107, -0.4049223065376282, 0.1558108776807785, 0.16239942610263824, 0.49246159195899963, 0.1605459451675415, 0.4469805955886841, -0.30206191539764404, 0.04221010580658913, -0.05108404904603958, -0.1068253144621849, -0.06116541475057602, 0.2619520425796509, -0.023306764662265778, 0.22269859910011292, 0.17959202826023102, -0.09816892445087433, 0.12476252019405365, 0.2569141983985901, -0.24345126748085022, -0.03648911789059639, -0.26056376099586487, -0.32094407081604004, -0.1499195545911789, 0.5569960474967957, -0.008157022297382355, -0.09472580999135971, -0.15036344528198242, -0.2269735038280487, 0.08971963077783585, -0.2418154776096344, -0.10534586757421494, -0.2026323825120926, 0.4181382358074188, -0.18168629705905914, 0.06699077039957047, -0.5491579174995422, -0.5756067633628845, -0.14826145768165588, -0.14638811349868774, 0.27864909172058105, 0.03390641510486603, -0.4509786367416382, -0.3733327090740204, 0.13270188868045807, 0.007506366819143295, -0.03430445119738579, 0.24797013401985168, 0.18692117929458618, 0.2428167760372162, -0.050019048154354095, -0.09374663233757019, 0.15501528978347778, -0.04245246946811676, -0.1147119402885437, -0.13296261429786682, 0.19868957996368408, -0.12259874492883682, 0.0456116609275341, -0.018567446619272232, 0.31479114294052124, -0.13383769989013672, 0.1751381903886795, 0.33474043011665344, 0.15507468581199646, -0.13191689550876617, -0.2625659704208374, 0.08056128025054932, 0.4734991192817688, 0.03268860653042793, -0.052755385637283325, -0.19237597286701202, 0.49938827753067017, 0.12382861971855164, -0.09807765483856201, -0.28532835841178894, 0.4043617844581604, -0.18164759874343872, 0.2681887745857239, 0.15086738765239716, 0.03465019166469574, -0.011713605374097824, -0.08246652781963348, -0.13106995820999146, 0.14973875880241394, 0.41464468836784363, 0.13672202825546265, -0.27253594994544983, -0.06834005564451218, -0.3361949324607849, 0.3972064256668091, 0.2918212413787842, -0.2563175857067108, 0.3381394147872925, 0.09304657578468323, -0.04481170326471329, -0.09962435066699982, 0.01747143268585205, 0.1898331493139267, 0.19048577547073364, 0.26559779047966003, -0.13405756652355194, 0.13256481289863586, -0.03513087332248688, -0.13049298524856567, 0.004788704216480255, 0.07298591732978821, -0.10768236219882965, 0.35938262939453125, 0.306060254573822, 0.11291343718767166, -0.08751453459262848, -0.08116611838340759, -0.29932519793510437, -0.046839602291584015, -0.021785074844956398, 0.17937985062599182, 0.21822282671928406, -0.22646397352218628, 0.03340109810233116, -0.3110870122909546, 0.015767626464366913, 0.011647608131170273, 0.6521461009979248, -0.13621293008327484, -0.19080066680908203, 0.2219664752483368, 0.07426111400127411, 0.9107955098152161, -0.16975870728492737, -0.04776787757873535, -0.2234661728143692, -0.27869030833244324, 0.12758620083332062, 0.30619826912879944, 0.07741736620664597, -0.04612259194254875, 0.5052065849304199, -0.18181005120277405, 0.38801777362823486, -0.08808895200490952, -0.36542636156082153, 0.09200023859739304, -0.02082665264606476, 0.08689823746681213, -0.013521373271942139, 0.051956478506326675, -0.24621225893497467, -0.3117578327655792, 0.0962444543838501, -0.24409498274326324, -0.10636716336011887, -0.04038975387811661, 0.21756292879581451, -0.09077544510364532, -0.11262276768684387, -0.49637892842292786, -0.061772458255290985, -0.3034151792526245, 0.4760817885398865, 0.22979946434497833, -0.028861232101917267, -0.019428610801696777, -0.07751065492630005, 0.03436889499425888, -0.1526603251695633, 0.10680718719959259, -0.2156098484992981, 0.1638549417257309, 0.22276529669761658, -0.1240256130695343, -0.2118237316608429, -0.49431470036506653, -0.3110443353652954, -0.023798611015081406, 0.07631336897611618, -0.17100811004638672, -0.06842821091413498, -0.22005556523799896, 0.0027598105370998383, -0.1519956886768341, 0.13273866474628448, 0.45159587264060974, -0.07667917758226395, -0.20750589668750763, -0.05131297931075096, 0.2085873931646347, 0.5510805249214172, 0.06167936325073242, -0.15962964296340942, 0.13309314846992493, 0.22650274634361267, 0.03263760730624199, 0.6488927006721497, 0.05898064747452736, 0.08468757569789886, 0.2585294544696808, 0.06455842405557632, -0.11768738925457001, -0.27836546301841736, 0.07523442059755325, -0.19348692893981934, -0.15774351358413696, 0.09850548952817917, 0.47585809230804443, 0.2683967351913452, 0.044993042945861816, -0.15292096138000488, 0.1253441423177719, -0.2520807087421417, -0.19791564345359802, 0.4055434465408325, 0.03700660914182663, 0.46258750557899475, -0.08751991391181946, -0.15340277552604675, 0.007967906072735786, -0.3550322949886322, 0.09139813482761383, -0.09229034185409546, 0.025874756276607513, -0.42119598388671875, -0.5453453063964844, -0.21823547780513763, -0.2534332871437073, 0.3696666955947876, 0.45437097549438477, -0.010351062752306461, -0.07004661113023758, -0.4352988600730896, -0.08193109929561615, -0.07562670111656189, 0.17006903886795044, 0.062228962779045105, -0.35149282217025757, 0.012110013514757156, -0.2442808598279953, 0.07734363526105881, 0.1962989866733551, -0.3358929455280304, -0.3367527425289154, -0.053800251334905624, 0.3874262571334839, -0.3562622368335724, 0.058125220239162445, 0.2264222502708435, -0.04866841435432434, -0.0562436543405056, 0.008691982366144657, -0.0854228138923645, -0.1264292150735855, 0.005118370056152344, 0.23331940174102783, 0.36871516704559326, 0.036403339356184006, 0.22352290153503418, -0.03960369527339935, -0.09243981540203094, -0.036128077656030655, 0.026319719851017, 0.13687913119792938, 0.08308277279138565, 0.0011649252846837044, 0.12474344670772552, -0.1430707424879074, -0.1977384388446808, -0.048872143030166626, 0.40018150210380554, -0.20859211683273315, -0.0698709636926651, -0.15053033828735352, -0.15440568327903748, -0.02115675061941147, 0.248855859041214, 0.10119932889938354, 0.30393025279045105, 0.03486344963312149, 0.13763952255249023, -0.28290197253227234, -0.17388342320919037, -0.15080749988555908, -0.005853996612131596, 0.11366833746433258, -0.1343206912279129, 0.4686170518398285, -0.2742680311203003, -0.23761369287967682, -0.03224094212055206, 0.46829962730407715, -0.19623595476150513, 0.10280060768127441, 0.01568172127008438, 1.0317856073379517, -0.16589446365833282, 0.37110865116119385, 0.1415891945362091, -0.09747326374053955, 0.20487874746322632, -0.35030031204223633, 0.1448187232017517, -0.13106784224510193, -0.3593122959136963, -0.05615686625242233, 0.03995266929268837, -0.08056256920099258, -0.004561755806207657, -0.3912658989429474, 0.13894924521446228, 0.1756034940481186, 0.36668458580970764, 0.2946520745754242, 0.25843295454978943, 0.06965238600969315, -0.015262562781572342, -0.5002791285514832, 0.21082289516925812, 0.11168467998504639, -0.23970353603363037, -0.050277892500162125, 0.04814448952674866, -0.13714024424552917, -0.12770211696624756, -0.19424861669540405, 0.07074708491563797, -0.43007126450538635, -0.04620269685983658, 0.286147803068161, -0.10574466735124588, 0.11062406003475189, 0.21241554617881775, -0.02672819048166275, -0.06047838553786278, -0.39435115456581116, 0.010163797065615654, -0.2656231224536896, 0.22791887819766998, 0.07281959056854248, -0.029102403670549393, 0.2924785017967224, -0.20395836234092712, -0.11701775342226028, 0.22735628485679626, 0.3363114595413208, -0.47573429346084595, -0.4612278640270233, 0.07218051701784134, 0.3284933567047119, -0.1256042867898941, 0.008526617661118507, 0.1294417381286621, -0.11915706098079681, -0.1417361944913864, 0.2308952361345291, 0.060102012008428574, 0.05940782651305199, 0.10530390590429306, 0.48857131600379944, -0.17892774939537048, -0.03572969511151314, 0.11766190826892853, 0.41076236963272095, -0.03855244070291519, 0.2471323013305664, 0.3028382658958435, -0.27663710713386536, -0.4391760230064392, -0.10437704622745514, 0.2383771538734436, -0.47561579942703247, -0.029951680451631546, -0.16431261599063873, -0.3447369337081909, -0.0333019457757473, 0.5254302024841309, 0.40611928701400757, -0.09939498454332352, -0.06070919707417488, -0.05208619683980942, 0.10303912311792374, 0.6272666454315186, 0.33722826838493347, 0.14480498433113098, 0.096359021961689, -0.18211306631565094, -0.08785878866910934, 0.2447614222764969, -0.4542950987815857, -0.09256498515605927, -0.3687015175819397, 0.2434971183538437, -0.07208399474620819, -0.2631468176841736, 0.2722585201263428, 0.061475928872823715, 0.14261353015899658, -0.1043647825717926, -0.39494791626930237, -0.40382617712020874, 0.059707123786211014, 0.0971546620130539, 0.1380208134651184, -0.055252090096473694, -0.15080581605434418, -0.14379742741584778, -0.09282295405864716, -0.1315385401248932, 0.054268624633550644, -0.3340455889701843, 0.011097844690084457, -0.17889796197414398, 0.036331452429294586, -0.12402769178152084, -0.18147650361061096, 0.00995253399014473, -0.20889294147491455, -0.18226046860218048, 0.13467849791049957, -0.03924199193716049, 0.05974294990301132, -0.0656927078962326, 0.0799398124217987, 0.5429311394691467, 0.49983394145965576, -0.1578967273235321, 0.059121984988451004, 0.08367431163787842, -0.3154895007610321, -0.04431568831205368, 0.27736061811447144, -0.08318035304546356, -0.11817328631877899, 0.08423836529254913, 0.14060086011886597, 0.33858349919319153, -0.4173091650009155, -0.07553359121084213, -0.07988665997982025, -0.2025337517261505, 0.33300432562828064, 0.26379892230033875, -0.0864124745130539, -0.0999053567647934, 0.36823707818984985, 0.2149708867073059, -0.03560209274291992, -0.03854554146528244, 0.1731211543083191, 0.1937650740146637, 0.2517060339450836, 0.06414742767810822, -0.018476663157343864, -0.014470301568508148, -0.14129510521888733, -0.03342719376087189, -0.20271217823028564, 0.144878089427948, -0.0525626465678215, 0.07548604905605316, 0.22673597931861877, 0.3809484839439392, -0.008971046656370163, 0.1959056556224823, -0.105364590883255, 0.14689400792121887, 0.2529244124889374, 0.07748010009527206, 0.17939215898513794, -0.022717315703630447, -0.42151129245758057, -0.15691787004470825, 0.10768100619316101, -0.14976951479911804, 0.06964649260044098, -0.2426837980747223, -0.37097832560539246, -0.12688465416431427, -0.08962813019752502, -0.04089914262294769, 0.543521523475647, -0.163598895072937, 0.17390969395637512, -0.06868322938680649, 0.047919925302267075, 0.06702280044555664, 0.3332656919956207, -0.09288319200277328, 0.22016604244709015, 0.21919767558574677, 0.323912113904953, 0.03367210179567337, 0.4749952256679535, -0.002597622573375702, 0.2313491702079773, -0.40865880250930786, 0.37002095580101013, -0.2205611616373062, -0.15243515372276306, -0.0604495070874691, 0.24555668234825134, 0.28339821100234985, -0.04615602269768715, 0.22767066955566406, 0.25333958864212036, -0.2943525016307831, 0.25173741579055786, -0.012922871857881546, 0.03222391754388809, -0.2853599190711975, 0.11916005611419678, -0.05434948205947876, -0.046073779463768005, -0.049511589109897614, -0.06128440052270889, -0.5117422342300415, 0.18014736473560333, -0.2863975763320923, -0.29686781764030457, -0.01253526285290718, -0.07364820688962936, 0.12881293892860413, -0.18761147558689117, 0.2755156457424164, 0.23958827555179596, 0.42375215888023376, -0.05105041712522507, -0.3606438636779785, -0.046260371804237366, -0.14188474416732788, 0.14495883882045746, -0.11670392006635666, 0.15624123811721802, -0.03633388876914978, 0.21648752689361572, 0.34770292043685913, -0.11189550161361694, -0.37252408266067505, -0.38100820779800415, 0.23647011816501617, -0.40078043937683105, 0.33599957823753357, 0.1742294281721115, 0.0977543368935585, 0.17200180888175964, -0.321759432554245, -0.042754124850034714, 0.012745036743581295, 0.17850717902183533, 0.058219652622938156, 0.15629029273986816, 0.03902390971779823, -0.2107216715812683, -0.11474932730197906, 0.029792577028274536, 0.3679976165294647, -0.17523741722106934, -0.18964284658432007, 0.22728237509727478, -0.24851776659488678, -0.19828061759471893, 0.04250507801771164, 0.34403374791145325, 0.3117298185825348, -0.04153821989893913, -0.3080853819847107, 0.36481285095214844, 0.005147550255060196, 0.1454782634973526, 0.4213915765285492, -0.14115078747272491, 0.09803637862205505, 0.00034546107053756714, -0.07008852064609528, -0.07283823937177658, 0.12196193635463715, -0.04295963793992996, 0.0887335017323494, 0.06023888289928436, -0.2010687291622162, 0.3448040187358856, -0.09215932339429855, -0.21583957970142365, 0.02648099884390831, 0.043216556310653687, 0.08770866692066193, -0.15869775414466858, -0.5564061999320984, -0.09048905968666077, 0.19629402458667755, -0.012718793004751205, -0.07325611263513565, 0.6972963213920593, 0.08562912046909332, -0.14791864156723022, -0.12988533079624176, 0.16286706924438477, 0.06223722919821739, -0.1279260367155075, -0.3026590347290039, -0.5541503429412842 ]
https://github.com/huggingface/datasets/issues/880
Add SQA
@thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings: ``` import pandas as pd import ast data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t') def _parse_answer_coordinates(answer_coordinate_str): """Parses the answer_coordinates of a question. Args: answer_coordinate_str: A string representation of a Python list of tuple strings. For example: "['(1, 4)','(1, 3)', ...]" """ try: answer_coordinates = [] # make a list of strings coords = ast.literal_eval(answer_coordinate_str) # parse each string as a tuple for row_index, column_index in sorted( ast.literal_eval(coord) for coord in coords): answer_coordinates.append((row_index, column_index)) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_coordinate_str) return answer_coordinates def _parse_answer_text(answer_text): """Populates the answer_texts field of `answer` by parsing `answer_text`. Args: answer_text: A string representation of a Python list of strings. For example: "[u'test', u'hello', ...]" """ try: answer = [] for value in ast.literal_eval(answer_text): answer.append(value) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_text) return answer data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str)) data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt)) ``` Here I'm using Pandas to read in one of the TSV files (the dev set).
## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
185
Add SQA ## Adding a Dataset - **Name:** SQA (Sequential Question Answering) by Microsoft. - **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total. - **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/ - **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253 - **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71). Note 1: this dataset actually consists of 2 types of files: 1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test) 2) a folder of csv files, which contain the actual tabular data Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub. Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format. Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). @thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings: ``` import pandas as pd import ast data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t') def _parse_answer_coordinates(answer_coordinate_str): """Parses the answer_coordinates of a question. Args: answer_coordinate_str: A string representation of a Python list of tuple strings. For example: "['(1, 4)','(1, 3)', ...]" """ try: answer_coordinates = [] # make a list of strings coords = ast.literal_eval(answer_coordinate_str) # parse each string as a tuple for row_index, column_index in sorted( ast.literal_eval(coord) for coord in coords): answer_coordinates.append((row_index, column_index)) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_coordinate_str) return answer_coordinates def _parse_answer_text(answer_text): """Populates the answer_texts field of `answer` by parsing `answer_text`. Args: answer_text: A string representation of a Python list of strings. For example: "[u'test', u'hello', ...]" """ try: answer = [] for value in ast.literal_eval(answer_text): answer.append(value) except SyntaxError: raise ValueError('Unable to evaluate %s' % answer_text) return answer data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str)) data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt)) ``` Here I'm using Pandas to read in one of the TSV files (the dev set).
[ -0.06400913000106812, -0.23120743036270142, -0.20991750061511993, -0.12106956541538239, 0.09991446882486343, -0.19758301973342896, 0.033797185868024826, 0.3069656789302826, 0.1483602374792099, 0.0562702938914299, -0.16755612194538116, -0.0026326754596084356, -0.07126070559024811, 0.5443829298019409, 0.15001659095287323, -0.10455328226089478, 0.0272175595164299, 0.14283235371112823, -0.29446136951446533, 0.07118605077266693, -0.19629335403442383, 0.09148627519607544, 0.021571464836597443, 0.031229622662067413, -0.23689042031764984, -0.08445490151643753, -0.10731811076402664, -0.19233810901641846, -0.1904112845659256, -0.19726978242397308, 0.005408851429820061, 0.0722474753856659, 0.16864188015460968, 0.2730417251586914, -0.0001059325149981305, -0.13431215286254883, -0.07519964873790741, -0.09753283858299255, -0.09391957521438599, 0.0506611093878746, -0.16079619526863098, 0.0926123708486557, -0.11105121672153473, -0.07712945342063904, -0.5252550840377808, 0.2041902095079422, -0.07481016218662262, -0.3007471561431885, 0.5820877552032471, 0.26284322142601013, 0.21861299872398376, 0.0928579643368721, 0.07511748373508453, -0.21747136116027832, 0.3752230703830719, 0.004957892000675201, -0.3586769998073578, -0.0065894965082407, 0.402138352394104, -0.3480514585971832, 0.0548398457467556, 0.45303621888160706, 0.2656967341899872, -0.22763212025165558, 0.15250656008720398, 0.12550391256809235, 0.2736344039440155, 0.03347943350672722, 0.0674656331539154, 0.26949894428253174, 0.33357784152030945, -0.09275420755147934, -0.18210463225841522, -0.18861430883407593, 0.014417928643524647, 0.12352554500102997, -0.2833783030509949, 0.11862461268901825, -0.34903761744499207, 0.01677934266626835, -0.18077434599399567, -0.2453860491514206, -0.3496710956096649, 0.10179880261421204, 0.017914943397045135, 0.5167183876037598, -0.019233644008636475, -0.19486674666404724, -0.08310766518115997, -0.13312730193138123, -0.04276927188038826, -0.04725268483161926, 0.24435968697071075, 0.2530231475830078, -0.5382785201072693, -0.27205121517181396, 0.21361196041107178, 0.11504465341567993, 0.24359583854675293, 0.19212213158607483, 0.47200724482536316, -0.07239025831222534, 0.0314645878970623, -0.29650571942329407, 0.16723568737506866, 0.4781263470649719, -0.0035138726234436035, 0.042686667293310165, -0.16356170177459717, 0.11457370966672897, 0.06965671479701996, 0.018535546958446503, 0.011364154517650604, 0.43734660744667053, -0.2889097332954407, 0.033233825117349625, 0.12173575162887573, 0.0777648538351059, -0.3187231719493866, 0.20002812147140503, -0.22166013717651367, -0.08587130159139633, -0.046177253127098083, 0.30673444271087646, -0.27222171425819397, 0.09639596939086914, 0.16178585588932037, 0.15257522463798523, 0.03762378543615341, -0.12058424949645996, -0.0992913469672203, -0.13813737034797668, -0.13890649378299713, 0.3276246190071106, 0.25924548506736755, 0.07565706968307495, -0.1182410791516304, -0.11058971285820007, 0.12366770207881927, 0.06711230427026749, -0.1190185621380806, -0.12577775120735168, 0.27192944288253784, 0.006378069519996643, -0.11961762607097626, -0.24746428430080414, 0.006988499313592911, -0.18556028604507446, -0.08260871469974518, 0.20460984110832214, 0.08662526309490204, 0.08225943148136139, -0.04584447294473648, 0.2935349941253662, -0.035112179815769196, -0.3378952145576477, 0.056064411997795105, 0.38476064801216125, 0.05440711975097656, -0.07861118018627167, 0.16120384633541107, 0.07706880569458008, -0.16406835615634918, -0.06991898268461227, 0.26800423860549927, 0.16236665844917297, 0.043738868087530136, 0.017917633056640625, -0.06027142331004143, 0.29521283507347107, -0.4049223065376282, 0.1558108776807785, 0.16239942610263824, 0.49246159195899963, 0.1605459451675415, 0.4469805955886841, -0.30206191539764404, 0.04221010580658913, -0.05108404904603958, -0.1068253144621849, -0.06116541475057602, 0.2619520425796509, -0.023306764662265778, 0.22269859910011292, 0.17959202826023102, -0.09816892445087433, 0.12476252019405365, 0.2569141983985901, -0.24345126748085022, -0.03648911789059639, -0.26056376099586487, -0.32094407081604004, -0.1499195545911789, 0.5569960474967957, -0.008157022297382355, -0.09472580999135971, -0.15036344528198242, -0.2269735038280487, 0.08971963077783585, -0.2418154776096344, -0.10534586757421494, -0.2026323825120926, 0.4181382358074188, -0.18168629705905914, 0.06699077039957047, -0.5491579174995422, -0.5756067633628845, -0.14826145768165588, -0.14638811349868774, 0.27864909172058105, 0.03390641510486603, -0.4509786367416382, -0.3733327090740204, 0.13270188868045807, 0.007506366819143295, -0.03430445119738579, 0.24797013401985168, 0.18692117929458618, 0.2428167760372162, -0.050019048154354095, -0.09374663233757019, 0.15501528978347778, -0.04245246946811676, -0.1147119402885437, -0.13296261429786682, 0.19868957996368408, -0.12259874492883682, 0.0456116609275341, -0.018567446619272232, 0.31479114294052124, -0.13383769989013672, 0.1751381903886795, 0.33474043011665344, 0.15507468581199646, -0.13191689550876617, -0.2625659704208374, 0.08056128025054932, 0.4734991192817688, 0.03268860653042793, -0.052755385637283325, -0.19237597286701202, 0.49938827753067017, 0.12382861971855164, -0.09807765483856201, -0.28532835841178894, 0.4043617844581604, -0.18164759874343872, 0.2681887745857239, 0.15086738765239716, 0.03465019166469574, -0.011713605374097824, -0.08246652781963348, -0.13106995820999146, 0.14973875880241394, 0.41464468836784363, 0.13672202825546265, -0.27253594994544983, -0.06834005564451218, -0.3361949324607849, 0.3972064256668091, 0.2918212413787842, -0.2563175857067108, 0.3381394147872925, 0.09304657578468323, -0.04481170326471329, -0.09962435066699982, 0.01747143268585205, 0.1898331493139267, 0.19048577547073364, 0.26559779047966003, -0.13405756652355194, 0.13256481289863586, -0.03513087332248688, -0.13049298524856567, 0.004788704216480255, 0.07298591732978821, -0.10768236219882965, 0.35938262939453125, 0.306060254573822, 0.11291343718767166, -0.08751453459262848, -0.08116611838340759, -0.29932519793510437, -0.046839602291584015, -0.021785074844956398, 0.17937985062599182, 0.21822282671928406, -0.22646397352218628, 0.03340109810233116, -0.3110870122909546, 0.015767626464366913, 0.011647608131170273, 0.6521461009979248, -0.13621293008327484, -0.19080066680908203, 0.2219664752483368, 0.07426111400127411, 0.9107955098152161, -0.16975870728492737, -0.04776787757873535, -0.2234661728143692, -0.27869030833244324, 0.12758620083332062, 0.30619826912879944, 0.07741736620664597, -0.04612259194254875, 0.5052065849304199, -0.18181005120277405, 0.38801777362823486, -0.08808895200490952, -0.36542636156082153, 0.09200023859739304, -0.02082665264606476, 0.08689823746681213, -0.013521373271942139, 0.051956478506326675, -0.24621225893497467, -0.3117578327655792, 0.0962444543838501, -0.24409498274326324, -0.10636716336011887, -0.04038975387811661, 0.21756292879581451, -0.09077544510364532, -0.11262276768684387, -0.49637892842292786, -0.061772458255290985, -0.3034151792526245, 0.4760817885398865, 0.22979946434497833, -0.028861232101917267, -0.019428610801696777, -0.07751065492630005, 0.03436889499425888, -0.1526603251695633, 0.10680718719959259, -0.2156098484992981, 0.1638549417257309, 0.22276529669761658, -0.1240256130695343, -0.2118237316608429, -0.49431470036506653, -0.3110443353652954, -0.023798611015081406, 0.07631336897611618, -0.17100811004638672, -0.06842821091413498, -0.22005556523799896, 0.0027598105370998383, -0.1519956886768341, 0.13273866474628448, 0.45159587264060974, -0.07667917758226395, -0.20750589668750763, -0.05131297931075096, 0.2085873931646347, 0.5510805249214172, 0.06167936325073242, -0.15962964296340942, 0.13309314846992493, 0.22650274634361267, 0.03263760730624199, 0.6488927006721497, 0.05898064747452736, 0.08468757569789886, 0.2585294544696808, 0.06455842405557632, -0.11768738925457001, -0.27836546301841736, 0.07523442059755325, -0.19348692893981934, -0.15774351358413696, 0.09850548952817917, 0.47585809230804443, 0.2683967351913452, 0.044993042945861816, -0.15292096138000488, 0.1253441423177719, -0.2520807087421417, -0.19791564345359802, 0.4055434465408325, 0.03700660914182663, 0.46258750557899475, -0.08751991391181946, -0.15340277552604675, 0.007967906072735786, -0.3550322949886322, 0.09139813482761383, -0.09229034185409546, 0.025874756276607513, -0.42119598388671875, -0.5453453063964844, -0.21823547780513763, -0.2534332871437073, 0.3696666955947876, 0.45437097549438477, -0.010351062752306461, -0.07004661113023758, -0.4352988600730896, -0.08193109929561615, -0.07562670111656189, 0.17006903886795044, 0.062228962779045105, -0.35149282217025757, 0.012110013514757156, -0.2442808598279953, 0.07734363526105881, 0.1962989866733551, -0.3358929455280304, -0.3367527425289154, -0.053800251334905624, 0.3874262571334839, -0.3562622368335724, 0.058125220239162445, 0.2264222502708435, -0.04866841435432434, -0.0562436543405056, 0.008691982366144657, -0.0854228138923645, -0.1264292150735855, 0.005118370056152344, 0.23331940174102783, 0.36871516704559326, 0.036403339356184006, 0.22352290153503418, -0.03960369527339935, -0.09243981540203094, -0.036128077656030655, 0.026319719851017, 0.13687913119792938, 0.08308277279138565, 0.0011649252846837044, 0.12474344670772552, -0.1430707424879074, -0.1977384388446808, -0.048872143030166626, 0.40018150210380554, -0.20859211683273315, -0.0698709636926651, -0.15053033828735352, -0.15440568327903748, -0.02115675061941147, 0.248855859041214, 0.10119932889938354, 0.30393025279045105, 0.03486344963312149, 0.13763952255249023, -0.28290197253227234, -0.17388342320919037, -0.15080749988555908, -0.005853996612131596, 0.11366833746433258, -0.1343206912279129, 0.4686170518398285, -0.2742680311203003, -0.23761369287967682, -0.03224094212055206, 0.46829962730407715, -0.19623595476150513, 0.10280060768127441, 0.01568172127008438, 1.0317856073379517, -0.16589446365833282, 0.37110865116119385, 0.1415891945362091, -0.09747326374053955, 0.20487874746322632, -0.35030031204223633, 0.1448187232017517, -0.13106784224510193, -0.3593122959136963, -0.05615686625242233, 0.03995266929268837, -0.08056256920099258, -0.004561755806207657, -0.3912658989429474, 0.13894924521446228, 0.1756034940481186, 0.36668458580970764, 0.2946520745754242, 0.25843295454978943, 0.06965238600969315, -0.015262562781572342, -0.5002791285514832, 0.21082289516925812, 0.11168467998504639, -0.23970353603363037, -0.050277892500162125, 0.04814448952674866, -0.13714024424552917, -0.12770211696624756, -0.19424861669540405, 0.07074708491563797, -0.43007126450538635, -0.04620269685983658, 0.286147803068161, -0.10574466735124588, 0.11062406003475189, 0.21241554617881775, -0.02672819048166275, -0.06047838553786278, -0.39435115456581116, 0.010163797065615654, -0.2656231224536896, 0.22791887819766998, 0.07281959056854248, -0.029102403670549393, 0.2924785017967224, -0.20395836234092712, -0.11701775342226028, 0.22735628485679626, 0.3363114595413208, -0.47573429346084595, -0.4612278640270233, 0.07218051701784134, 0.3284933567047119, -0.1256042867898941, 0.008526617661118507, 0.1294417381286621, -0.11915706098079681, -0.1417361944913864, 0.2308952361345291, 0.060102012008428574, 0.05940782651305199, 0.10530390590429306, 0.48857131600379944, -0.17892774939537048, -0.03572969511151314, 0.11766190826892853, 0.41076236963272095, -0.03855244070291519, 0.2471323013305664, 0.3028382658958435, -0.27663710713386536, -0.4391760230064392, -0.10437704622745514, 0.2383771538734436, -0.47561579942703247, -0.029951680451631546, -0.16431261599063873, -0.3447369337081909, -0.0333019457757473, 0.5254302024841309, 0.40611928701400757, -0.09939498454332352, -0.06070919707417488, -0.05208619683980942, 0.10303912311792374, 0.6272666454315186, 0.33722826838493347, 0.14480498433113098, 0.096359021961689, -0.18211306631565094, -0.08785878866910934, 0.2447614222764969, -0.4542950987815857, -0.09256498515605927, -0.3687015175819397, 0.2434971183538437, -0.07208399474620819, -0.2631468176841736, 0.2722585201263428, 0.061475928872823715, 0.14261353015899658, -0.1043647825717926, -0.39494791626930237, -0.40382617712020874, 0.059707123786211014, 0.0971546620130539, 0.1380208134651184, -0.055252090096473694, -0.15080581605434418, -0.14379742741584778, -0.09282295405864716, -0.1315385401248932, 0.054268624633550644, -0.3340455889701843, 0.011097844690084457, -0.17889796197414398, 0.036331452429294586, -0.12402769178152084, -0.18147650361061096, 0.00995253399014473, -0.20889294147491455, -0.18226046860218048, 0.13467849791049957, -0.03924199193716049, 0.05974294990301132, -0.0656927078962326, 0.0799398124217987, 0.5429311394691467, 0.49983394145965576, -0.1578967273235321, 0.059121984988451004, 0.08367431163787842, -0.3154895007610321, -0.04431568831205368, 0.27736061811447144, -0.08318035304546356, -0.11817328631877899, 0.08423836529254913, 0.14060086011886597, 0.33858349919319153, -0.4173091650009155, -0.07553359121084213, -0.07988665997982025, -0.2025337517261505, 0.33300432562828064, 0.26379892230033875, -0.0864124745130539, -0.0999053567647934, 0.36823707818984985, 0.2149708867073059, -0.03560209274291992, -0.03854554146528244, 0.1731211543083191, 0.1937650740146637, 0.2517060339450836, 0.06414742767810822, -0.018476663157343864, -0.014470301568508148, -0.14129510521888733, -0.03342719376087189, -0.20271217823028564, 0.144878089427948, -0.0525626465678215, 0.07548604905605316, 0.22673597931861877, 0.3809484839439392, -0.008971046656370163, 0.1959056556224823, -0.105364590883255, 0.14689400792121887, 0.2529244124889374, 0.07748010009527206, 0.17939215898513794, -0.022717315703630447, -0.42151129245758057, -0.15691787004470825, 0.10768100619316101, -0.14976951479911804, 0.06964649260044098, -0.2426837980747223, -0.37097832560539246, -0.12688465416431427, -0.08962813019752502, -0.04089914262294769, 0.543521523475647, -0.163598895072937, 0.17390969395637512, -0.06868322938680649, 0.047919925302267075, 0.06702280044555664, 0.3332656919956207, -0.09288319200277328, 0.22016604244709015, 0.21919767558574677, 0.323912113904953, 0.03367210179567337, 0.4749952256679535, -0.002597622573375702, 0.2313491702079773, -0.40865880250930786, 0.37002095580101013, -0.2205611616373062, -0.15243515372276306, -0.0604495070874691, 0.24555668234825134, 0.28339821100234985, -0.04615602269768715, 0.22767066955566406, 0.25333958864212036, -0.2943525016307831, 0.25173741579055786, -0.012922871857881546, 0.03222391754388809, -0.2853599190711975, 0.11916005611419678, -0.05434948205947876, -0.046073779463768005, -0.049511589109897614, -0.06128440052270889, -0.5117422342300415, 0.18014736473560333, -0.2863975763320923, -0.29686781764030457, -0.01253526285290718, -0.07364820688962936, 0.12881293892860413, -0.18761147558689117, 0.2755156457424164, 0.23958827555179596, 0.42375215888023376, -0.05105041712522507, -0.3606438636779785, -0.046260371804237366, -0.14188474416732788, 0.14495883882045746, -0.11670392006635666, 0.15624123811721802, -0.03633388876914978, 0.21648752689361572, 0.34770292043685913, -0.11189550161361694, -0.37252408266067505, -0.38100820779800415, 0.23647011816501617, -0.40078043937683105, 0.33599957823753357, 0.1742294281721115, 0.0977543368935585, 0.17200180888175964, -0.321759432554245, -0.042754124850034714, 0.012745036743581295, 0.17850717902183533, 0.058219652622938156, 0.15629029273986816, 0.03902390971779823, -0.2107216715812683, -0.11474932730197906, 0.029792577028274536, 0.3679976165294647, -0.17523741722106934, -0.18964284658432007, 0.22728237509727478, -0.24851776659488678, -0.19828061759471893, 0.04250507801771164, 0.34403374791145325, 0.3117298185825348, -0.04153821989893913, -0.3080853819847107, 0.36481285095214844, 0.005147550255060196, 0.1454782634973526, 0.4213915765285492, -0.14115078747272491, 0.09803637862205505, 0.00034546107053756714, -0.07008852064609528, -0.07283823937177658, 0.12196193635463715, -0.04295963793992996, 0.0887335017323494, 0.06023888289928436, -0.2010687291622162, 0.3448040187358856, -0.09215932339429855, -0.21583957970142365, 0.02648099884390831, 0.043216556310653687, 0.08770866692066193, -0.15869775414466858, -0.5564061999320984, -0.09048905968666077, 0.19629402458667755, -0.012718793004751205, -0.07325611263513565, 0.6972963213920593, 0.08562912046909332, -0.14791864156723022, -0.12988533079624176, 0.16286706924438477, 0.06223722919821739, -0.1279260367155075, -0.3026590347290039, -0.5541503429412842 ]
https://github.com/huggingface/datasets/issues/879
boolq does not load
Hi ! It runs on my side without issues. I tried ```python from datasets import load_dataset load_dataset("boolq") ``` What version of datasets and tensorflow are your runnning ? Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful.
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
47
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False. Hi ! It runs on my side without issues. I tried ```python from datasets import load_dataset load_dataset("boolq") ``` What version of datasets and tensorflow are your runnning ? Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful.
[ -0.31424227356910706, -0.1296667903661728, -0.13981465995311737, 0.22436577081680298, 0.08980432897806168, 0.010667353868484497, 0.4253871440887451, 0.3031969964504242, 0.4457691013813019, -0.12459570169448853, -0.08600804209709167, 0.33098453283309937, -0.18556809425354004, 0.4824475049972534, 0.04171104356646538, -0.025414027273654938, -0.1236412301659584, 0.08377547562122345, -0.013211458921432495, -0.0677921324968338, -0.4335165321826935, 0.3662593960762024, -0.4190511703491211, 0.17288175225257874, -0.12002594023942947, -0.27644553780555725, -0.01123063638806343, 0.2354569137096405, -0.32276269793510437, -0.3402307331562042, 0.12919309735298157, 0.039989590644836426, 0.279875248670578, 0.19758495688438416, -0.0001004217192530632, 0.04742758721113205, 0.41360121965408325, 0.0912819653749466, -0.22012583911418915, -0.29046159982681274, -0.17259252071380615, -0.3197636604309082, 0.17700712382793427, -0.17048406600952148, -0.07812908291816711, -0.0545157752931118, -0.055429406464099884, 0.07697319984436035, 0.41252464056015015, 0.4600994884967804, 0.31432828307151794, 0.07579795271158218, 0.1170567125082016, -0.195151686668396, 0.1931922733783722, -0.16269831359386444, 0.15155307948589325, 0.20157016813755035, 0.04193801060318947, -0.2938961386680603, 0.15875226259231567, 0.26375865936279297, -0.18333986401557922, -0.2460293024778366, 0.01217678189277649, -0.20740282535552979, -0.10173813253641129, -0.3344746530056, 0.23517060279846191, 0.014145612716674805, 0.5186161398887634, -0.1224103793501854, -0.27338242530822754, -0.05668506771326065, 0.14293807744979858, -0.192546546459198, 0.1893986463546753, 0.09149874001741409, 0.05343374237418175, -0.06353050470352173, 0.185098797082901, -0.48960787057876587, -0.03764317184686661, -0.035420551896095276, -0.13839088380336761, 0.2759748697280884, -0.12153948843479156, 0.051884304732084274, 0.19128072261810303, -0.1711806207895279, 0.11334719508886337, 0.20802584290504456, -0.1522894948720932, 0.15849611163139343, -0.5179922580718994, 0.03580578416585922, 0.1561286747455597, -0.027178451418876648, -0.03639906272292137, 0.12962771952152252, -0.18945328891277313, 0.01872478611767292, -0.09172013401985168, 0.206809401512146, 0.004622466862201691, 0.5135241746902466, 0.38422077894210815, 0.2736546993255615, 0.15835723280906677, 0.10752850770950317, -0.2233470380306244, 0.03422937169671059, -0.5201336741447449, -0.3621048629283905, -0.13021236658096313, 0.24921655654907227, 0.23662720620632172, -0.08484761416912079, -0.35383644700050354, -0.17399470508098602, -0.3224681615829468, -0.1347561627626419, 0.3432624936103821, 0.6987858414649963, 0.04301343485713005, -0.1265624761581421, 0.05251200497150421, 0.26968860626220703, -0.3483470678329468, -0.07061170786619186, -0.28774115443229675, 0.3017657697200775, -0.03071516938507557, -0.15547437965869904, 0.29760172963142395, -0.1689213067293167, 0.35254228115081787, 0.06064029037952423, -0.24980755150318146, -0.09909288585186005, 0.2741260230541229, -0.2546374201774597, -0.3732599914073944, 0.2511187791824341, 0.004749167710542679, 0.015163147822022438, 0.20083454251289368, 0.2303851991891861, -0.04111066833138466, 0.2055433988571167, -0.21436667442321777, -0.28917503356933594, 0.041645318269729614, 0.3372689187526703, -0.022981954738497734, -0.2775765359401703, -0.14184480905532837, 0.1758449524641037, 0.11507362872362137, -0.14728303253650665, -0.26398181915283203, -0.3271437883377075, -0.10467734187841415, -0.21856893599033356, 0.3993266820907593, 0.45461440086364746, -0.39416787028312683, -0.2644500732421875, -0.38619378209114075, -0.21173951029777527, 0.005800098180770874, 0.29557815194129944, -0.13708804547786713, 0.5168118476867676, -0.20740342140197754, 0.08613309264183044, 0.2646963894367218, -0.21119363605976105, -0.18445025384426117, 0.19702577590942383, -0.014966465532779694, -0.03487459570169449, -0.2750924229621887, -0.04452843964099884, 0.12034176290035248, 0.16736498475074768, 0.13170687854290009, 0.14151424169540405, 0.2968440353870392, -0.2430087924003601, -0.14651994407176971, -0.12238732725381851, 0.07106387615203857, 0.34578073024749756, 0.23013080656528473, -0.05355318635702133, -0.05845145136117935, -0.4113750457763672, 0.06856719404459, 0.15321512520313263, -0.29916730523109436, 0.19515682756900787, 0.34040185809135437, -0.11517953872680664, 0.19680458307266235, 0.025454193353652954, -0.3794722557067871, 0.1544530987739563, -0.23398488759994507, -0.03783299773931503, -0.06209588050842285, 0.15337713062763214, -0.3266775906085968, 0.0734994187951088, -0.1862189620733261, -0.05240556225180626, 0.1931232362985611, -0.16551430523395538, -0.056979358196258545, 0.0857943594455719, -0.30884838104248047, 0.26910820603370667, -0.023538105189800262, 0.1346358358860016, -0.21373999118804932, 0.10543166100978851, -0.14657044410705566, -0.09275174140930176, 0.29689720273017883, 0.2993909418582916, 0.19807353615760803, 0.0299893356859684, -0.021200349554419518, 0.24328896403312683, 0.1288767009973526, 0.1043749451637268, -0.04127389192581177, -0.5058263540267944, 0.1112554594874382, -0.03842290863394737, 0.3070516288280487, 0.13301287591457367, 0.0742572471499443, 0.08087340742349625, 0.090094655752182, 0.27174967527389526, -0.08599025011062622, 0.1937270164489746, 0.14446821808815002, 0.18172015249729156, 0.24008560180664062, 0.029274832457304, -0.006893969140946865, -0.1292014867067337, 0.4810900092124939, -0.04004472866654396, -0.025570325553417206, 0.028518972918391228, -0.14774248003959656, 0.06914257258176804, 0.4380694627761841, 0.10779432952404022, 0.12245769798755646, 0.026605473831295967, -0.12259278446435928, 0.12353397160768509, 0.1176418736577034, 0.15315435826778412, 0.2710774540901184, 0.20761533081531525, -0.4852937161922455, -0.10210192948579788, -0.042119789868593216, -0.26934921741485596, 0.17331072688102722, -0.1938357800245285, 0.028822418302297592, 0.20616045594215393, -0.06930675357580185, -0.12480216473340988, -0.1851712167263031, -0.22500549256801605, 0.09095147252082825, 0.27746373414993286, -0.19736719131469727, -0.06494874507188797, -0.08353541046380997, -0.38968440890312195, 0.1917296051979065, -0.10835737735033035, -0.030446283519268036, -0.35120782256126404, 0.12872156500816345, -0.0296352319419384, -0.03437158092856407, 0.247625470161438, 0.06126395985484123, 0.31483203172683716, 0.10701455175876617, -0.08508245646953583, -0.13643229007720947, -0.2685343027114868, -0.22660017013549805, 0.13108448684215546, 0.18702080845832825, 0.08184836059808731, 0.25324633717536926, -0.09901341795921326, 0.08837256580591202, -0.053488679230213165, -0.22254902124404907, -0.08780564367771149, -0.09443239867687225, 0.33476412296295166, 0.1184827983379364, 0.0666113793849945, -0.056461334228515625, -0.22380100190639496, 0.35234931111335754, -0.16339366137981415, -0.021187901496887207, 0.17259442806243896, 0.17168326675891876, -0.057861607521772385, -0.2205018699169159, -0.5058778524398804, -0.5898680090904236, -0.49117597937583923, 0.09636955708265305, 0.06363265216350555, 0.19666975736618042, 0.36253073811531067, -0.02948981150984764, 0.19606167078018188, 0.07129994034767151, -0.04950743168592453, 0.005586396437138319, -0.15990762412548065, 0.2620779573917389, -0.06519842892885208, -0.2783259153366089, 0.04343928024172783, -0.08800500631332397, 0.43292832374572754, -0.25399911403656006, -0.3081475496292114, 0.003639017231762409, -0.0644264817237854, -0.09770262241363525, -0.06206071376800537, -0.1536533683538437, -0.11697816848754883, 0.06116124987602234, 0.013872163370251656, 0.06635100394487381, -0.32577064633369446, 0.22716626524925232, 0.01918339729309082, 0.19687482714653015, -0.06557745486497879, 0.3469645082950592, -0.3650504946708679, 0.607188880443573, 0.1826372593641281, 0.19847197830677032, 0.20669867098331451, 0.2602953612804413, 0.08824415504932404, 0.022590026259422302, -0.7111613750457764, 0.011996409855782986, 0.19723151624202728, -0.17378780245780945, 0.022319674491882324, -0.07429297268390656, 0.0048974622040987015, -0.2321588546037674, -0.18119469285011292, -0.17400974035263062, -0.2393471747636795, -0.05550011992454529, -0.3643980622291565, 0.022894661873579025, -0.021846098825335503, 0.36738428473472595, -0.21086367964744568, 0.002523425966501236, 0.08582764863967896, 0.1972026824951172, 0.14641167223453522, -0.09420623630285263, -0.530360996723175, -0.502421498298645, -0.34335747361183167, 0.24143356084823608, -0.26805028319358826, 0.23922158777713776, -0.13718247413635254, 0.02091943472623825, 0.10316530615091324, -0.11034729331731796, 0.4958149194717407, -0.1310853511095047, -0.11985048651695251, 0.3111155033111572, -0.08520334213972092, -0.21694356203079224, -0.15604472160339355, -0.21457436680793762, 0.24877308309078217, 0.09196073561906815, 0.44820430874824524, -0.2502593696117401, 0.018346481025218964, 0.014993580058217049, -0.18054504692554474, -0.2933080792427063, -0.498068243265152, -0.43711215257644653, -0.14740270376205444, -0.3785983622074127, -0.06842862814664841, -0.24365271627902985, 0.25051939487457275, -0.23808839917182922, -0.01734008826315403, -0.04460733383893967, -0.23534753918647766, 0.1815394014120102, 0.16367775201797485, 0.5122843384742737, -0.19213564693927765, 0.0965680480003357, 0.046317197382450104, 0.061803221702575684, 0.11009091138839722, 0.38773325085639954, -0.174592062830925, -0.2596477270126343, -0.031625982373952866, -0.019450321793556213, 0.29708331823349, -0.10348460078239441, -0.29486846923828125, 0.30717870593070984, -0.05161460489034653, 0.11024899780750275, 0.025937773287296295, 0.014743607491254807, 0.2532850503921509, 0.16619352996349335, -0.0491434670984745, -0.4161558449268341, 0.1546284556388855, -0.02642635814845562, 0.0593893826007843, 0.2063332498073578, -0.2129351645708084, -0.02973313443362713, 0.2763860821723938, -0.06480062752962112, 0.5007888674736023, -0.18125125765800476, -0.19337968528270721, 0.34079188108444214, 0.21750037372112274, 0.40389615297317505, -0.16691404581069946, 0.2915235161781311, -0.5527961254119873, -0.019655629992485046, 0.22657306492328644, -0.1374722272157669, -0.040273986756801605, -0.25862568616867065, -0.5010085105895996, 0.2584680914878845, -0.19388753175735474, 0.35484567284584045, 0.025168832391500473, 0.23960843682289124, -0.19910918176174164, 0.06860257685184479, -0.2652856111526489, 0.1974010318517685, -0.11810258030891418, 0.3159290552139282, -0.17480048537254333, -0.06731469184160233, 0.33890530467033386, -0.1213415190577507, -0.09729874134063721, 0.3927972912788391, -0.13311459124088287, 0.24919840693473816, 0.18692012131214142, -0.08594434708356857, 0.13711152970790863, 0.480241984128952, 0.036094147711992264, 0.22734516859054565, -0.13513565063476562, 0.06576337665319443, -0.0193212628364563, -0.09433344006538391, -0.11217846721410751, 0.16035377979278564, 0.2917366623878479, -0.1176794245839119, -0.35130688548088074, 0.49825793504714966, -0.05396286025643349, 0.08089640736579895, -0.2077496498823166, 0.09667707234621048, -0.019736163318157196, -0.2792845666408539, -0.05826517939567566, -0.07770644128322601, 0.08353430032730103, -0.11277313530445099, 0.19551217555999756, 0.1503966748714447, -0.04595566913485527, 0.284972608089447, -0.10047931969165802, -0.2767521142959595, -0.03683241084218025, 0.16316458582878113, -0.02026056870818138, 0.26787447929382324, 0.7444615364074707, 0.31481948494911194, -0.043407730758190155, -0.4068886637687683, -0.11198505759239197, 0.10229567438364029, -0.035489555448293686, 0.23432104289531708, 0.20252665877342224, -0.09757505357265472, 0.21757107973098755, 0.07019288837909698, 0.033248625695705414, -0.048787519335746765, -0.07802515476942062, -0.4976792335510254, -0.2899366319179535, 0.508417546749115, -0.23844240605831146, -0.07176169753074646, -0.02268386073410511, -0.023300986737012863, 0.025399750098586082, 0.1786232888698578, -0.4123269021511078, -0.004747357219457626, -0.5003215670585632, -0.13860172033309937, -0.1944635510444641, -0.29094254970550537, 0.1350516527891159, 0.18392761051654816, 0.25737759470939636, -0.09739440679550171, -0.12594297528266907, -0.28203707933425903, 0.027913134545087814, 0.018612012267112732, -0.05061604082584381, 0.134132981300354, -0.035610005259513855, -0.2192935347557068, 0.026943473145365715, 0.12454672157764435, -0.01908225007355213, -0.14182616770267487, 0.04285486042499542, 0.23098525404930115, 0.06642073392868042, 0.14982354640960693, -0.1048579290509224, 0.39251187443733215, -0.15420740842819214, -0.10917632281780243, 0.08928272873163223, 0.04046332836151123, 0.14543244242668152, 0.004116073250770569, -0.003639975329861045, -0.057022370398044586, 0.07639852911233902, 0.07887544482946396, 0.15677610039710999, -0.20100994408130646, 0.2653390169143677, -0.17365023493766785, 0.050991855561733246, 0.6181201934814453, -0.22273162007331848, 0.11171573400497437, 0.09684999287128448, 0.31018713116645813, -0.22786396741867065, 0.1903335303068161, -0.22621415555477142, -0.02693486213684082, 0.0044272541999816895, 0.13689713180065155, -0.26435649394989014, -0.18580405414104462, 0.19441908597946167, 0.18683761358261108, 0.23788361251354218, 0.12075430899858475, 0.0021418477408587933, 0.2828042805194855, -0.2137754261493683, -0.16572150588035583, 0.18048357963562012, 0.18042241036891937, 0.004254356026649475, 0.3604359030723572, -0.2713558077812195, -0.044931717216968536, 0.059424906969070435, 0.2507374584674835, 0.197316974401474, -0.3961365520954132, -0.1421319842338562, 0.390394926071167, -0.007779940962791443, -0.2976875901222229, -0.26082727313041687, 0.4449034035205841, -0.10441083461046219, -0.056758198887109756, -0.11783505976200104, 0.13538002967834473, -0.3331618309020996, -0.09494349360466003, -0.5158826112747192, -0.090194471180439, -0.045439355075359344, -0.13128884136676788, 0.025201352313160896, 0.042015381157398224, -0.1148141473531723, 0.07308024168014526, -0.16377972066402435, -0.3743667006492615, 0.20089983940124512, 0.2530694603919983, -0.24377238750457764, -0.1150776594877243, 0.39142853021621704, 0.15331947803497314, 0.31942930817604065, 0.19700616598129272, 0.08292876929044724, 0.3079622685909271, 0.538084089756012, -0.3283626139163971, -0.000004518777132034302, 0.019908564165234566, -0.13135750591754913, 0.03467598184943199, 0.3137900233268738, 0.21488042175769806, 0.3973931670188904, 0.29802265763282776, 0.2429424524307251, -0.17194008827209473, 0.19439896941184998, 0.047130756080150604, 0.16509337723255157, 0.004055546596646309, 0.6533157229423523, -0.051563046872615814, 0.010702677071094513, -0.20286224782466888, -0.049249760806560516, -0.5103918313980103, -0.08797384053468704, 0.29993146657943726, 0.22657126188278198, 0.056005626916885376, -0.2306600958108902, 0.1365998536348343, -0.3244096636772156, 0.420471727848053, 0.433409184217453, 0.46494442224502563, -0.4140830934047699, 0.1457710564136505, -0.4007869064807892, 0.046613797545433044, 0.06585988402366638, -0.002046193927526474, -0.10973786562681198, 0.031468167901039124, -0.04250127822160721, -0.08671014755964279, 0.13193970918655396, 0.03990092873573303, 0.22278913855552673, -0.17746606469154358, -0.48141738772392273, 0.1328633725643158, 0.04619314521551132, 0.16846361756324768, 0.024455580860376358, -0.13321518898010254, 0.19251616299152374, -0.4258803427219391, 0.09932834655046463, -0.037695661187171936, -0.2557370364665985, 0.18412058055400848, -0.24341103434562683, 0.24204544723033905, 0.002827208489179611, 0.2686464190483093, 0.010275419801473618, -0.024137595668435097, -0.19385820627212524, -0.3289039433002472, -0.14308612048625946, 0.01250128448009491, 0.31627869606018066, 0.20124149322509766, -0.040667422115802765, 0.21811823546886444, -0.13729465007781982, 0.16710428893566132, -0.01015365868806839, -0.17509934306144714, -0.1615089476108551, -0.04802451282739639, 0.252177357673645, -0.15830498933792114, 0.052384134382009506, 0.1459883749485016, 0.04668058827519417, 0.1564807891845703, -0.40454840660095215, -0.06978590041399002, 0.49094292521476746, -0.01894340291619301, -0.06519967317581177, -0.05440022051334381, 0.24222388863563538, 0.15311199426651, 0.024959329515695572, -0.37761765718460083, 0.024550549685955048, 0.30229243636131287, -0.02520725131034851, 0.07761722803115845, 0.30288165807724, 0.4011397659778595, 0.09646753966808319, -0.09904198348522186, -0.2832093834877014, 0.1615869104862213, 0.09360663592815399, 0.07789592444896698, 0.020555641502141953 ]
https://github.com/huggingface/datasets/issues/879
boolq does not load
hey i do the exact same commands. for me it fails i guess might be issues with caching maybe? thanks best rabeeh On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <notifications@github.com> wrote: > Hi ! It runs on my side without issues. I tried > > from datasets import load_datasetload_dataset("boolq") > > What version of datasets and tensorflow are your runnning ? > Also if you manage to get a minimal reproducible script (on google colab > for example) that would be useful. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A> > . >
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
117
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False. hey i do the exact same commands. for me it fails i guess might be issues with caching maybe? thanks best rabeeh On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <notifications@github.com> wrote: > Hi ! It runs on my side without issues. I tried > > from datasets import load_datasetload_dataset("boolq") > > What version of datasets and tensorflow are your runnning ? > Also if you manage to get a minimal reproducible script (on google colab > for example) that would be useful. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A> > . >
[ -0.31424227356910706, -0.1296667903661728, -0.13981465995311737, 0.22436577081680298, 0.08980432897806168, 0.010667353868484497, 0.4253871440887451, 0.3031969964504242, 0.4457691013813019, -0.12459570169448853, -0.08600804209709167, 0.33098453283309937, -0.18556809425354004, 0.4824475049972534, 0.04171104356646538, -0.025414027273654938, -0.1236412301659584, 0.08377547562122345, -0.013211458921432495, -0.0677921324968338, -0.4335165321826935, 0.3662593960762024, -0.4190511703491211, 0.17288175225257874, -0.12002594023942947, -0.27644553780555725, -0.01123063638806343, 0.2354569137096405, -0.32276269793510437, -0.3402307331562042, 0.12919309735298157, 0.039989590644836426, 0.279875248670578, 0.19758495688438416, -0.0001004217192530632, 0.04742758721113205, 0.41360121965408325, 0.0912819653749466, -0.22012583911418915, -0.29046159982681274, -0.17259252071380615, -0.3197636604309082, 0.17700712382793427, -0.17048406600952148, -0.07812908291816711, -0.0545157752931118, -0.055429406464099884, 0.07697319984436035, 0.41252464056015015, 0.4600994884967804, 0.31432828307151794, 0.07579795271158218, 0.1170567125082016, -0.195151686668396, 0.1931922733783722, -0.16269831359386444, 0.15155307948589325, 0.20157016813755035, 0.04193801060318947, -0.2938961386680603, 0.15875226259231567, 0.26375865936279297, -0.18333986401557922, -0.2460293024778366, 0.01217678189277649, -0.20740282535552979, -0.10173813253641129, -0.3344746530056, 0.23517060279846191, 0.014145612716674805, 0.5186161398887634, -0.1224103793501854, -0.27338242530822754, -0.05668506771326065, 0.14293807744979858, -0.192546546459198, 0.1893986463546753, 0.09149874001741409, 0.05343374237418175, -0.06353050470352173, 0.185098797082901, -0.48960787057876587, -0.03764317184686661, -0.035420551896095276, -0.13839088380336761, 0.2759748697280884, -0.12153948843479156, 0.051884304732084274, 0.19128072261810303, -0.1711806207895279, 0.11334719508886337, 0.20802584290504456, -0.1522894948720932, 0.15849611163139343, -0.5179922580718994, 0.03580578416585922, 0.1561286747455597, -0.027178451418876648, -0.03639906272292137, 0.12962771952152252, -0.18945328891277313, 0.01872478611767292, -0.09172013401985168, 0.206809401512146, 0.004622466862201691, 0.5135241746902466, 0.38422077894210815, 0.2736546993255615, 0.15835723280906677, 0.10752850770950317, -0.2233470380306244, 0.03422937169671059, -0.5201336741447449, -0.3621048629283905, -0.13021236658096313, 0.24921655654907227, 0.23662720620632172, -0.08484761416912079, -0.35383644700050354, -0.17399470508098602, -0.3224681615829468, -0.1347561627626419, 0.3432624936103821, 0.6987858414649963, 0.04301343485713005, -0.1265624761581421, 0.05251200497150421, 0.26968860626220703, -0.3483470678329468, -0.07061170786619186, -0.28774115443229675, 0.3017657697200775, -0.03071516938507557, -0.15547437965869904, 0.29760172963142395, -0.1689213067293167, 0.35254228115081787, 0.06064029037952423, -0.24980755150318146, -0.09909288585186005, 0.2741260230541229, -0.2546374201774597, -0.3732599914073944, 0.2511187791824341, 0.004749167710542679, 0.015163147822022438, 0.20083454251289368, 0.2303851991891861, -0.04111066833138466, 0.2055433988571167, -0.21436667442321777, -0.28917503356933594, 0.041645318269729614, 0.3372689187526703, -0.022981954738497734, -0.2775765359401703, -0.14184480905532837, 0.1758449524641037, 0.11507362872362137, -0.14728303253650665, -0.26398181915283203, -0.3271437883377075, -0.10467734187841415, -0.21856893599033356, 0.3993266820907593, 0.45461440086364746, -0.39416787028312683, -0.2644500732421875, -0.38619378209114075, -0.21173951029777527, 0.005800098180770874, 0.29557815194129944, -0.13708804547786713, 0.5168118476867676, -0.20740342140197754, 0.08613309264183044, 0.2646963894367218, -0.21119363605976105, -0.18445025384426117, 0.19702577590942383, -0.014966465532779694, -0.03487459570169449, -0.2750924229621887, -0.04452843964099884, 0.12034176290035248, 0.16736498475074768, 0.13170687854290009, 0.14151424169540405, 0.2968440353870392, -0.2430087924003601, -0.14651994407176971, -0.12238732725381851, 0.07106387615203857, 0.34578073024749756, 0.23013080656528473, -0.05355318635702133, -0.05845145136117935, -0.4113750457763672, 0.06856719404459, 0.15321512520313263, -0.29916730523109436, 0.19515682756900787, 0.34040185809135437, -0.11517953872680664, 0.19680458307266235, 0.025454193353652954, -0.3794722557067871, 0.1544530987739563, -0.23398488759994507, -0.03783299773931503, -0.06209588050842285, 0.15337713062763214, -0.3266775906085968, 0.0734994187951088, -0.1862189620733261, -0.05240556225180626, 0.1931232362985611, -0.16551430523395538, -0.056979358196258545, 0.0857943594455719, -0.30884838104248047, 0.26910820603370667, -0.023538105189800262, 0.1346358358860016, -0.21373999118804932, 0.10543166100978851, -0.14657044410705566, -0.09275174140930176, 0.29689720273017883, 0.2993909418582916, 0.19807353615760803, 0.0299893356859684, -0.021200349554419518, 0.24328896403312683, 0.1288767009973526, 0.1043749451637268, -0.04127389192581177, -0.5058263540267944, 0.1112554594874382, -0.03842290863394737, 0.3070516288280487, 0.13301287591457367, 0.0742572471499443, 0.08087340742349625, 0.090094655752182, 0.27174967527389526, -0.08599025011062622, 0.1937270164489746, 0.14446821808815002, 0.18172015249729156, 0.24008560180664062, 0.029274832457304, -0.006893969140946865, -0.1292014867067337, 0.4810900092124939, -0.04004472866654396, -0.025570325553417206, 0.028518972918391228, -0.14774248003959656, 0.06914257258176804, 0.4380694627761841, 0.10779432952404022, 0.12245769798755646, 0.026605473831295967, -0.12259278446435928, 0.12353397160768509, 0.1176418736577034, 0.15315435826778412, 0.2710774540901184, 0.20761533081531525, -0.4852937161922455, -0.10210192948579788, -0.042119789868593216, -0.26934921741485596, 0.17331072688102722, -0.1938357800245285, 0.028822418302297592, 0.20616045594215393, -0.06930675357580185, -0.12480216473340988, -0.1851712167263031, -0.22500549256801605, 0.09095147252082825, 0.27746373414993286, -0.19736719131469727, -0.06494874507188797, -0.08353541046380997, -0.38968440890312195, 0.1917296051979065, -0.10835737735033035, -0.030446283519268036, -0.35120782256126404, 0.12872156500816345, -0.0296352319419384, -0.03437158092856407, 0.247625470161438, 0.06126395985484123, 0.31483203172683716, 0.10701455175876617, -0.08508245646953583, -0.13643229007720947, -0.2685343027114868, -0.22660017013549805, 0.13108448684215546, 0.18702080845832825, 0.08184836059808731, 0.25324633717536926, -0.09901341795921326, 0.08837256580591202, -0.053488679230213165, -0.22254902124404907, -0.08780564367771149, -0.09443239867687225, 0.33476412296295166, 0.1184827983379364, 0.0666113793849945, -0.056461334228515625, -0.22380100190639496, 0.35234931111335754, -0.16339366137981415, -0.021187901496887207, 0.17259442806243896, 0.17168326675891876, -0.057861607521772385, -0.2205018699169159, -0.5058778524398804, -0.5898680090904236, -0.49117597937583923, 0.09636955708265305, 0.06363265216350555, 0.19666975736618042, 0.36253073811531067, -0.02948981150984764, 0.19606167078018188, 0.07129994034767151, -0.04950743168592453, 0.005586396437138319, -0.15990762412548065, 0.2620779573917389, -0.06519842892885208, -0.2783259153366089, 0.04343928024172783, -0.08800500631332397, 0.43292832374572754, -0.25399911403656006, -0.3081475496292114, 0.003639017231762409, -0.0644264817237854, -0.09770262241363525, -0.06206071376800537, -0.1536533683538437, -0.11697816848754883, 0.06116124987602234, 0.013872163370251656, 0.06635100394487381, -0.32577064633369446, 0.22716626524925232, 0.01918339729309082, 0.19687482714653015, -0.06557745486497879, 0.3469645082950592, -0.3650504946708679, 0.607188880443573, 0.1826372593641281, 0.19847197830677032, 0.20669867098331451, 0.2602953612804413, 0.08824415504932404, 0.022590026259422302, -0.7111613750457764, 0.011996409855782986, 0.19723151624202728, -0.17378780245780945, 0.022319674491882324, -0.07429297268390656, 0.0048974622040987015, -0.2321588546037674, -0.18119469285011292, -0.17400974035263062, -0.2393471747636795, -0.05550011992454529, -0.3643980622291565, 0.022894661873579025, -0.021846098825335503, 0.36738428473472595, -0.21086367964744568, 0.002523425966501236, 0.08582764863967896, 0.1972026824951172, 0.14641167223453522, -0.09420623630285263, -0.530360996723175, -0.502421498298645, -0.34335747361183167, 0.24143356084823608, -0.26805028319358826, 0.23922158777713776, -0.13718247413635254, 0.02091943472623825, 0.10316530615091324, -0.11034729331731796, 0.4958149194717407, -0.1310853511095047, -0.11985048651695251, 0.3111155033111572, -0.08520334213972092, -0.21694356203079224, -0.15604472160339355, -0.21457436680793762, 0.24877308309078217, 0.09196073561906815, 0.44820430874824524, -0.2502593696117401, 0.018346481025218964, 0.014993580058217049, -0.18054504692554474, -0.2933080792427063, -0.498068243265152, -0.43711215257644653, -0.14740270376205444, -0.3785983622074127, -0.06842862814664841, -0.24365271627902985, 0.25051939487457275, -0.23808839917182922, -0.01734008826315403, -0.04460733383893967, -0.23534753918647766, 0.1815394014120102, 0.16367775201797485, 0.5122843384742737, -0.19213564693927765, 0.0965680480003357, 0.046317197382450104, 0.061803221702575684, 0.11009091138839722, 0.38773325085639954, -0.174592062830925, -0.2596477270126343, -0.031625982373952866, -0.019450321793556213, 0.29708331823349, -0.10348460078239441, -0.29486846923828125, 0.30717870593070984, -0.05161460489034653, 0.11024899780750275, 0.025937773287296295, 0.014743607491254807, 0.2532850503921509, 0.16619352996349335, -0.0491434670984745, -0.4161558449268341, 0.1546284556388855, -0.02642635814845562, 0.0593893826007843, 0.2063332498073578, -0.2129351645708084, -0.02973313443362713, 0.2763860821723938, -0.06480062752962112, 0.5007888674736023, -0.18125125765800476, -0.19337968528270721, 0.34079188108444214, 0.21750037372112274, 0.40389615297317505, -0.16691404581069946, 0.2915235161781311, -0.5527961254119873, -0.019655629992485046, 0.22657306492328644, -0.1374722272157669, -0.040273986756801605, -0.25862568616867065, -0.5010085105895996, 0.2584680914878845, -0.19388753175735474, 0.35484567284584045, 0.025168832391500473, 0.23960843682289124, -0.19910918176174164, 0.06860257685184479, -0.2652856111526489, 0.1974010318517685, -0.11810258030891418, 0.3159290552139282, -0.17480048537254333, -0.06731469184160233, 0.33890530467033386, -0.1213415190577507, -0.09729874134063721, 0.3927972912788391, -0.13311459124088287, 0.24919840693473816, 0.18692012131214142, -0.08594434708356857, 0.13711152970790863, 0.480241984128952, 0.036094147711992264, 0.22734516859054565, -0.13513565063476562, 0.06576337665319443, -0.0193212628364563, -0.09433344006538391, -0.11217846721410751, 0.16035377979278564, 0.2917366623878479, -0.1176794245839119, -0.35130688548088074, 0.49825793504714966, -0.05396286025643349, 0.08089640736579895, -0.2077496498823166, 0.09667707234621048, -0.019736163318157196, -0.2792845666408539, -0.05826517939567566, -0.07770644128322601, 0.08353430032730103, -0.11277313530445099, 0.19551217555999756, 0.1503966748714447, -0.04595566913485527, 0.284972608089447, -0.10047931969165802, -0.2767521142959595, -0.03683241084218025, 0.16316458582878113, -0.02026056870818138, 0.26787447929382324, 0.7444615364074707, 0.31481948494911194, -0.043407730758190155, -0.4068886637687683, -0.11198505759239197, 0.10229567438364029, -0.035489555448293686, 0.23432104289531708, 0.20252665877342224, -0.09757505357265472, 0.21757107973098755, 0.07019288837909698, 0.033248625695705414, -0.048787519335746765, -0.07802515476942062, -0.4976792335510254, -0.2899366319179535, 0.508417546749115, -0.23844240605831146, -0.07176169753074646, -0.02268386073410511, -0.023300986737012863, 0.025399750098586082, 0.1786232888698578, -0.4123269021511078, -0.004747357219457626, -0.5003215670585632, -0.13860172033309937, -0.1944635510444641, -0.29094254970550537, 0.1350516527891159, 0.18392761051654816, 0.25737759470939636, -0.09739440679550171, -0.12594297528266907, -0.28203707933425903, 0.027913134545087814, 0.018612012267112732, -0.05061604082584381, 0.134132981300354, -0.035610005259513855, -0.2192935347557068, 0.026943473145365715, 0.12454672157764435, -0.01908225007355213, -0.14182616770267487, 0.04285486042499542, 0.23098525404930115, 0.06642073392868042, 0.14982354640960693, -0.1048579290509224, 0.39251187443733215, -0.15420740842819214, -0.10917632281780243, 0.08928272873163223, 0.04046332836151123, 0.14543244242668152, 0.004116073250770569, -0.003639975329861045, -0.057022370398044586, 0.07639852911233902, 0.07887544482946396, 0.15677610039710999, -0.20100994408130646, 0.2653390169143677, -0.17365023493766785, 0.050991855561733246, 0.6181201934814453, -0.22273162007331848, 0.11171573400497437, 0.09684999287128448, 0.31018713116645813, -0.22786396741867065, 0.1903335303068161, -0.22621415555477142, -0.02693486213684082, 0.0044272541999816895, 0.13689713180065155, -0.26435649394989014, -0.18580405414104462, 0.19441908597946167, 0.18683761358261108, 0.23788361251354218, 0.12075430899858475, 0.0021418477408587933, 0.2828042805194855, -0.2137754261493683, -0.16572150588035583, 0.18048357963562012, 0.18042241036891937, 0.004254356026649475, 0.3604359030723572, -0.2713558077812195, -0.044931717216968536, 0.059424906969070435, 0.2507374584674835, 0.197316974401474, -0.3961365520954132, -0.1421319842338562, 0.390394926071167, -0.007779940962791443, -0.2976875901222229, -0.26082727313041687, 0.4449034035205841, -0.10441083461046219, -0.056758198887109756, -0.11783505976200104, 0.13538002967834473, -0.3331618309020996, -0.09494349360466003, -0.5158826112747192, -0.090194471180439, -0.045439355075359344, -0.13128884136676788, 0.025201352313160896, 0.042015381157398224, -0.1148141473531723, 0.07308024168014526, -0.16377972066402435, -0.3743667006492615, 0.20089983940124512, 0.2530694603919983, -0.24377238750457764, -0.1150776594877243, 0.39142853021621704, 0.15331947803497314, 0.31942930817604065, 0.19700616598129272, 0.08292876929044724, 0.3079622685909271, 0.538084089756012, -0.3283626139163971, -0.000004518777132034302, 0.019908564165234566, -0.13135750591754913, 0.03467598184943199, 0.3137900233268738, 0.21488042175769806, 0.3973931670188904, 0.29802265763282776, 0.2429424524307251, -0.17194008827209473, 0.19439896941184998, 0.047130756080150604, 0.16509337723255157, 0.004055546596646309, 0.6533157229423523, -0.051563046872615814, 0.010702677071094513, -0.20286224782466888, -0.049249760806560516, -0.5103918313980103, -0.08797384053468704, 0.29993146657943726, 0.22657126188278198, 0.056005626916885376, -0.2306600958108902, 0.1365998536348343, -0.3244096636772156, 0.420471727848053, 0.433409184217453, 0.46494442224502563, -0.4140830934047699, 0.1457710564136505, -0.4007869064807892, 0.046613797545433044, 0.06585988402366638, -0.002046193927526474, -0.10973786562681198, 0.031468167901039124, -0.04250127822160721, -0.08671014755964279, 0.13193970918655396, 0.03990092873573303, 0.22278913855552673, -0.17746606469154358, -0.48141738772392273, 0.1328633725643158, 0.04619314521551132, 0.16846361756324768, 0.024455580860376358, -0.13321518898010254, 0.19251616299152374, -0.4258803427219391, 0.09932834655046463, -0.037695661187171936, -0.2557370364665985, 0.18412058055400848, -0.24341103434562683, 0.24204544723033905, 0.002827208489179611, 0.2686464190483093, 0.010275419801473618, -0.024137595668435097, -0.19385820627212524, -0.3289039433002472, -0.14308612048625946, 0.01250128448009491, 0.31627869606018066, 0.20124149322509766, -0.040667422115802765, 0.21811823546886444, -0.13729465007781982, 0.16710428893566132, -0.01015365868806839, -0.17509934306144714, -0.1615089476108551, -0.04802451282739639, 0.252177357673645, -0.15830498933792114, 0.052384134382009506, 0.1459883749485016, 0.04668058827519417, 0.1564807891845703, -0.40454840660095215, -0.06978590041399002, 0.49094292521476746, -0.01894340291619301, -0.06519967317581177, -0.05440022051334381, 0.24222388863563538, 0.15311199426651, 0.024959329515695572, -0.37761765718460083, 0.024550549685955048, 0.30229243636131287, -0.02520725131034851, 0.07761722803115845, 0.30288165807724, 0.4011397659778595, 0.09646753966808319, -0.09904198348522186, -0.2832093834877014, 0.1615869104862213, 0.09360663592815399, 0.07789592444896698, 0.020555641502141953 ]
https://github.com/huggingface/datasets/issues/879
boolq does not load
Could you check if it works on the master branch ? You can use `load_dataset("boolq", script_version="master")` to do so. We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881
Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
43
boolq does not load Hi I am getting these errors trying to load boolq thanks Traceback (most recent call last): File "test.py", line 5, in <module> data = AutoTask().get("boolq").get_dataset("train", n_obs=10) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset dataset = self.load_dataset(split=split) File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset return datasets.load_dataset(self.task.name, split=split) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been" FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False. Could you check if it works on the master branch ? You can use `load_dataset("boolq", script_version="master")` to do so. We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881
[ -0.31424227356910706, -0.1296667903661728, -0.13981465995311737, 0.22436577081680298, 0.08980432897806168, 0.010667353868484497, 0.4253871440887451, 0.3031969964504242, 0.4457691013813019, -0.12459570169448853, -0.08600804209709167, 0.33098453283309937, -0.18556809425354004, 0.4824475049972534, 0.04171104356646538, -0.025414027273654938, -0.1236412301659584, 0.08377547562122345, -0.013211458921432495, -0.0677921324968338, -0.4335165321826935, 0.3662593960762024, -0.4190511703491211, 0.17288175225257874, -0.12002594023942947, -0.27644553780555725, -0.01123063638806343, 0.2354569137096405, -0.32276269793510437, -0.3402307331562042, 0.12919309735298157, 0.039989590644836426, 0.279875248670578, 0.19758495688438416, -0.0001004217192530632, 0.04742758721113205, 0.41360121965408325, 0.0912819653749466, -0.22012583911418915, -0.29046159982681274, -0.17259252071380615, -0.3197636604309082, 0.17700712382793427, -0.17048406600952148, -0.07812908291816711, -0.0545157752931118, -0.055429406464099884, 0.07697319984436035, 0.41252464056015015, 0.4600994884967804, 0.31432828307151794, 0.07579795271158218, 0.1170567125082016, -0.195151686668396, 0.1931922733783722, -0.16269831359386444, 0.15155307948589325, 0.20157016813755035, 0.04193801060318947, -0.2938961386680603, 0.15875226259231567, 0.26375865936279297, -0.18333986401557922, -0.2460293024778366, 0.01217678189277649, -0.20740282535552979, -0.10173813253641129, -0.3344746530056, 0.23517060279846191, 0.014145612716674805, 0.5186161398887634, -0.1224103793501854, -0.27338242530822754, -0.05668506771326065, 0.14293807744979858, -0.192546546459198, 0.1893986463546753, 0.09149874001741409, 0.05343374237418175, -0.06353050470352173, 0.185098797082901, -0.48960787057876587, -0.03764317184686661, -0.035420551896095276, -0.13839088380336761, 0.2759748697280884, -0.12153948843479156, 0.051884304732084274, 0.19128072261810303, -0.1711806207895279, 0.11334719508886337, 0.20802584290504456, -0.1522894948720932, 0.15849611163139343, -0.5179922580718994, 0.03580578416585922, 0.1561286747455597, -0.027178451418876648, -0.03639906272292137, 0.12962771952152252, -0.18945328891277313, 0.01872478611767292, -0.09172013401985168, 0.206809401512146, 0.004622466862201691, 0.5135241746902466, 0.38422077894210815, 0.2736546993255615, 0.15835723280906677, 0.10752850770950317, -0.2233470380306244, 0.03422937169671059, -0.5201336741447449, -0.3621048629283905, -0.13021236658096313, 0.24921655654907227, 0.23662720620632172, -0.08484761416912079, -0.35383644700050354, -0.17399470508098602, -0.3224681615829468, -0.1347561627626419, 0.3432624936103821, 0.6987858414649963, 0.04301343485713005, -0.1265624761581421, 0.05251200497150421, 0.26968860626220703, -0.3483470678329468, -0.07061170786619186, -0.28774115443229675, 0.3017657697200775, -0.03071516938507557, -0.15547437965869904, 0.29760172963142395, -0.1689213067293167, 0.35254228115081787, 0.06064029037952423, -0.24980755150318146, -0.09909288585186005, 0.2741260230541229, -0.2546374201774597, -0.3732599914073944, 0.2511187791824341, 0.004749167710542679, 0.015163147822022438, 0.20083454251289368, 0.2303851991891861, -0.04111066833138466, 0.2055433988571167, -0.21436667442321777, -0.28917503356933594, 0.041645318269729614, 0.3372689187526703, -0.022981954738497734, -0.2775765359401703, -0.14184480905532837, 0.1758449524641037, 0.11507362872362137, -0.14728303253650665, -0.26398181915283203, -0.3271437883377075, -0.10467734187841415, -0.21856893599033356, 0.3993266820907593, 0.45461440086364746, -0.39416787028312683, -0.2644500732421875, -0.38619378209114075, -0.21173951029777527, 0.005800098180770874, 0.29557815194129944, -0.13708804547786713, 0.5168118476867676, -0.20740342140197754, 0.08613309264183044, 0.2646963894367218, -0.21119363605976105, -0.18445025384426117, 0.19702577590942383, -0.014966465532779694, -0.03487459570169449, -0.2750924229621887, -0.04452843964099884, 0.12034176290035248, 0.16736498475074768, 0.13170687854290009, 0.14151424169540405, 0.2968440353870392, -0.2430087924003601, -0.14651994407176971, -0.12238732725381851, 0.07106387615203857, 0.34578073024749756, 0.23013080656528473, -0.05355318635702133, -0.05845145136117935, -0.4113750457763672, 0.06856719404459, 0.15321512520313263, -0.29916730523109436, 0.19515682756900787, 0.34040185809135437, -0.11517953872680664, 0.19680458307266235, 0.025454193353652954, -0.3794722557067871, 0.1544530987739563, -0.23398488759994507, -0.03783299773931503, -0.06209588050842285, 0.15337713062763214, -0.3266775906085968, 0.0734994187951088, -0.1862189620733261, -0.05240556225180626, 0.1931232362985611, -0.16551430523395538, -0.056979358196258545, 0.0857943594455719, -0.30884838104248047, 0.26910820603370667, -0.023538105189800262, 0.1346358358860016, -0.21373999118804932, 0.10543166100978851, -0.14657044410705566, -0.09275174140930176, 0.29689720273017883, 0.2993909418582916, 0.19807353615760803, 0.0299893356859684, -0.021200349554419518, 0.24328896403312683, 0.1288767009973526, 0.1043749451637268, -0.04127389192581177, -0.5058263540267944, 0.1112554594874382, -0.03842290863394737, 0.3070516288280487, 0.13301287591457367, 0.0742572471499443, 0.08087340742349625, 0.090094655752182, 0.27174967527389526, -0.08599025011062622, 0.1937270164489746, 0.14446821808815002, 0.18172015249729156, 0.24008560180664062, 0.029274832457304, -0.006893969140946865, -0.1292014867067337, 0.4810900092124939, -0.04004472866654396, -0.025570325553417206, 0.028518972918391228, -0.14774248003959656, 0.06914257258176804, 0.4380694627761841, 0.10779432952404022, 0.12245769798755646, 0.026605473831295967, -0.12259278446435928, 0.12353397160768509, 0.1176418736577034, 0.15315435826778412, 0.2710774540901184, 0.20761533081531525, -0.4852937161922455, -0.10210192948579788, -0.042119789868593216, -0.26934921741485596, 0.17331072688102722, -0.1938357800245285, 0.028822418302297592, 0.20616045594215393, -0.06930675357580185, -0.12480216473340988, -0.1851712167263031, -0.22500549256801605, 0.09095147252082825, 0.27746373414993286, -0.19736719131469727, -0.06494874507188797, -0.08353541046380997, -0.38968440890312195, 0.1917296051979065, -0.10835737735033035, -0.030446283519268036, -0.35120782256126404, 0.12872156500816345, -0.0296352319419384, -0.03437158092856407, 0.247625470161438, 0.06126395985484123, 0.31483203172683716, 0.10701455175876617, -0.08508245646953583, -0.13643229007720947, -0.2685343027114868, -0.22660017013549805, 0.13108448684215546, 0.18702080845832825, 0.08184836059808731, 0.25324633717536926, -0.09901341795921326, 0.08837256580591202, -0.053488679230213165, -0.22254902124404907, -0.08780564367771149, -0.09443239867687225, 0.33476412296295166, 0.1184827983379364, 0.0666113793849945, -0.056461334228515625, -0.22380100190639496, 0.35234931111335754, -0.16339366137981415, -0.021187901496887207, 0.17259442806243896, 0.17168326675891876, -0.057861607521772385, -0.2205018699169159, -0.5058778524398804, -0.5898680090904236, -0.49117597937583923, 0.09636955708265305, 0.06363265216350555, 0.19666975736618042, 0.36253073811531067, -0.02948981150984764, 0.19606167078018188, 0.07129994034767151, -0.04950743168592453, 0.005586396437138319, -0.15990762412548065, 0.2620779573917389, -0.06519842892885208, -0.2783259153366089, 0.04343928024172783, -0.08800500631332397, 0.43292832374572754, -0.25399911403656006, -0.3081475496292114, 0.003639017231762409, -0.0644264817237854, -0.09770262241363525, -0.06206071376800537, -0.1536533683538437, -0.11697816848754883, 0.06116124987602234, 0.013872163370251656, 0.06635100394487381, -0.32577064633369446, 0.22716626524925232, 0.01918339729309082, 0.19687482714653015, -0.06557745486497879, 0.3469645082950592, -0.3650504946708679, 0.607188880443573, 0.1826372593641281, 0.19847197830677032, 0.20669867098331451, 0.2602953612804413, 0.08824415504932404, 0.022590026259422302, -0.7111613750457764, 0.011996409855782986, 0.19723151624202728, -0.17378780245780945, 0.022319674491882324, -0.07429297268390656, 0.0048974622040987015, -0.2321588546037674, -0.18119469285011292, -0.17400974035263062, -0.2393471747636795, -0.05550011992454529, -0.3643980622291565, 0.022894661873579025, -0.021846098825335503, 0.36738428473472595, -0.21086367964744568, 0.002523425966501236, 0.08582764863967896, 0.1972026824951172, 0.14641167223453522, -0.09420623630285263, -0.530360996723175, -0.502421498298645, -0.34335747361183167, 0.24143356084823608, -0.26805028319358826, 0.23922158777713776, -0.13718247413635254, 0.02091943472623825, 0.10316530615091324, -0.11034729331731796, 0.4958149194717407, -0.1310853511095047, -0.11985048651695251, 0.3111155033111572, -0.08520334213972092, -0.21694356203079224, -0.15604472160339355, -0.21457436680793762, 0.24877308309078217, 0.09196073561906815, 0.44820430874824524, -0.2502593696117401, 0.018346481025218964, 0.014993580058217049, -0.18054504692554474, -0.2933080792427063, -0.498068243265152, -0.43711215257644653, -0.14740270376205444, -0.3785983622074127, -0.06842862814664841, -0.24365271627902985, 0.25051939487457275, -0.23808839917182922, -0.01734008826315403, -0.04460733383893967, -0.23534753918647766, 0.1815394014120102, 0.16367775201797485, 0.5122843384742737, -0.19213564693927765, 0.0965680480003357, 0.046317197382450104, 0.061803221702575684, 0.11009091138839722, 0.38773325085639954, -0.174592062830925, -0.2596477270126343, -0.031625982373952866, -0.019450321793556213, 0.29708331823349, -0.10348460078239441, -0.29486846923828125, 0.30717870593070984, -0.05161460489034653, 0.11024899780750275, 0.025937773287296295, 0.014743607491254807, 0.2532850503921509, 0.16619352996349335, -0.0491434670984745, -0.4161558449268341, 0.1546284556388855, -0.02642635814845562, 0.0593893826007843, 0.2063332498073578, -0.2129351645708084, -0.02973313443362713, 0.2763860821723938, -0.06480062752962112, 0.5007888674736023, -0.18125125765800476, -0.19337968528270721, 0.34079188108444214, 0.21750037372112274, 0.40389615297317505, -0.16691404581069946, 0.2915235161781311, -0.5527961254119873, -0.019655629992485046, 0.22657306492328644, -0.1374722272157669, -0.040273986756801605, -0.25862568616867065, -0.5010085105895996, 0.2584680914878845, -0.19388753175735474, 0.35484567284584045, 0.025168832391500473, 0.23960843682289124, -0.19910918176174164, 0.06860257685184479, -0.2652856111526489, 0.1974010318517685, -0.11810258030891418, 0.3159290552139282, -0.17480048537254333, -0.06731469184160233, 0.33890530467033386, -0.1213415190577507, -0.09729874134063721, 0.3927972912788391, -0.13311459124088287, 0.24919840693473816, 0.18692012131214142, -0.08594434708356857, 0.13711152970790863, 0.480241984128952, 0.036094147711992264, 0.22734516859054565, -0.13513565063476562, 0.06576337665319443, -0.0193212628364563, -0.09433344006538391, -0.11217846721410751, 0.16035377979278564, 0.2917366623878479, -0.1176794245839119, -0.35130688548088074, 0.49825793504714966, -0.05396286025643349, 0.08089640736579895, -0.2077496498823166, 0.09667707234621048, -0.019736163318157196, -0.2792845666408539, -0.05826517939567566, -0.07770644128322601, 0.08353430032730103, -0.11277313530445099, 0.19551217555999756, 0.1503966748714447, -0.04595566913485527, 0.284972608089447, -0.10047931969165802, -0.2767521142959595, -0.03683241084218025, 0.16316458582878113, -0.02026056870818138, 0.26787447929382324, 0.7444615364074707, 0.31481948494911194, -0.043407730758190155, -0.4068886637687683, -0.11198505759239197, 0.10229567438364029, -0.035489555448293686, 0.23432104289531708, 0.20252665877342224, -0.09757505357265472, 0.21757107973098755, 0.07019288837909698, 0.033248625695705414, -0.048787519335746765, -0.07802515476942062, -0.4976792335510254, -0.2899366319179535, 0.508417546749115, -0.23844240605831146, -0.07176169753074646, -0.02268386073410511, -0.023300986737012863, 0.025399750098586082, 0.1786232888698578, -0.4123269021511078, -0.004747357219457626, -0.5003215670585632, -0.13860172033309937, -0.1944635510444641, -0.29094254970550537, 0.1350516527891159, 0.18392761051654816, 0.25737759470939636, -0.09739440679550171, -0.12594297528266907, -0.28203707933425903, 0.027913134545087814, 0.018612012267112732, -0.05061604082584381, 0.134132981300354, -0.035610005259513855, -0.2192935347557068, 0.026943473145365715, 0.12454672157764435, -0.01908225007355213, -0.14182616770267487, 0.04285486042499542, 0.23098525404930115, 0.06642073392868042, 0.14982354640960693, -0.1048579290509224, 0.39251187443733215, -0.15420740842819214, -0.10917632281780243, 0.08928272873163223, 0.04046332836151123, 0.14543244242668152, 0.004116073250770569, -0.003639975329861045, -0.057022370398044586, 0.07639852911233902, 0.07887544482946396, 0.15677610039710999, -0.20100994408130646, 0.2653390169143677, -0.17365023493766785, 0.050991855561733246, 0.6181201934814453, -0.22273162007331848, 0.11171573400497437, 0.09684999287128448, 0.31018713116645813, -0.22786396741867065, 0.1903335303068161, -0.22621415555477142, -0.02693486213684082, 0.0044272541999816895, 0.13689713180065155, -0.26435649394989014, -0.18580405414104462, 0.19441908597946167, 0.18683761358261108, 0.23788361251354218, 0.12075430899858475, 0.0021418477408587933, 0.2828042805194855, -0.2137754261493683, -0.16572150588035583, 0.18048357963562012, 0.18042241036891937, 0.004254356026649475, 0.3604359030723572, -0.2713558077812195, -0.044931717216968536, 0.059424906969070435, 0.2507374584674835, 0.197316974401474, -0.3961365520954132, -0.1421319842338562, 0.390394926071167, -0.007779940962791443, -0.2976875901222229, -0.26082727313041687, 0.4449034035205841, -0.10441083461046219, -0.056758198887109756, -0.11783505976200104, 0.13538002967834473, -0.3331618309020996, -0.09494349360466003, -0.5158826112747192, -0.090194471180439, -0.045439355075359344, -0.13128884136676788, 0.025201352313160896, 0.042015381157398224, -0.1148141473531723, 0.07308024168014526, -0.16377972066402435, -0.3743667006492615, 0.20089983940124512, 0.2530694603919983, -0.24377238750457764, -0.1150776594877243, 0.39142853021621704, 0.15331947803497314, 0.31942930817604065, 0.19700616598129272, 0.08292876929044724, 0.3079622685909271, 0.538084089756012, -0.3283626139163971, -0.000004518777132034302, 0.019908564165234566, -0.13135750591754913, 0.03467598184943199, 0.3137900233268738, 0.21488042175769806, 0.3973931670188904, 0.29802265763282776, 0.2429424524307251, -0.17194008827209473, 0.19439896941184998, 0.047130756080150604, 0.16509337723255157, 0.004055546596646309, 0.6533157229423523, -0.051563046872615814, 0.010702677071094513, -0.20286224782466888, -0.049249760806560516, -0.5103918313980103, -0.08797384053468704, 0.29993146657943726, 0.22657126188278198, 0.056005626916885376, -0.2306600958108902, 0.1365998536348343, -0.3244096636772156, 0.420471727848053, 0.433409184217453, 0.46494442224502563, -0.4140830934047699, 0.1457710564136505, -0.4007869064807892, 0.046613797545433044, 0.06585988402366638, -0.002046193927526474, -0.10973786562681198, 0.031468167901039124, -0.04250127822160721, -0.08671014755964279, 0.13193970918655396, 0.03990092873573303, 0.22278913855552673, -0.17746606469154358, -0.48141738772392273, 0.1328633725643158, 0.04619314521551132, 0.16846361756324768, 0.024455580860376358, -0.13321518898010254, 0.19251616299152374, -0.4258803427219391, 0.09932834655046463, -0.037695661187171936, -0.2557370364665985, 0.18412058055400848, -0.24341103434562683, 0.24204544723033905, 0.002827208489179611, 0.2686464190483093, 0.010275419801473618, -0.024137595668435097, -0.19385820627212524, -0.3289039433002472, -0.14308612048625946, 0.01250128448009491, 0.31627869606018066, 0.20124149322509766, -0.040667422115802765, 0.21811823546886444, -0.13729465007781982, 0.16710428893566132, -0.01015365868806839, -0.17509934306144714, -0.1615089476108551, -0.04802451282739639, 0.252177357673645, -0.15830498933792114, 0.052384134382009506, 0.1459883749485016, 0.04668058827519417, 0.1564807891845703, -0.40454840660095215, -0.06978590041399002, 0.49094292521476746, -0.01894340291619301, -0.06519967317581177, -0.05440022051334381, 0.24222388863563538, 0.15311199426651, 0.024959329515695572, -0.37761765718460083, 0.024550549685955048, 0.30229243636131287, -0.02520725131034851, 0.07761722803115845, 0.30288165807724, 0.4011397659778595, 0.09646753966808319, -0.09904198348522186, -0.2832093834877014, 0.1615869104862213, 0.09360663592815399, 0.07789592444896698, 0.020555641502141953 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> neat feature I dint get these clearly, can you please elaborate like how to work on these
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
18
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load > neat feature I dint get these clearly, can you please elaborate like how to work on these
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
18
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no?
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Thanks thomwolf and julien-c I'm still confusion on what you guys said, I have solved the problem as follows: 1. read the csv file using pandas from s3 2. Convert to dictionary key as column name and values as list column data 3. convert it to Dataset using `from datasets import Dataset` `train_dataset = Dataset.from_dict(train_dict)`
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
55
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Thanks thomwolf and julien-c I'm still confusion on what you guys said, I have solved the problem as follows: 1. read the csv file using pandas from s3 2. Convert to dictionary key as column name and values as list column data 3. convert it to Dataset using `from datasets import Dataset` `train_dataset = Dataset.from_dict(train_dict)`
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
We were brainstorming around your use-case. Let's keep the issue open for now, I think this is an interesting question to think about.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
23
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load We were brainstorming around your use-case. Let's keep the issue open for now, I think this is an interesting question to think about.
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> We were brainstorming around your use-case. > > Let's keep the issue open for now, I think this is an interesting question to think about. Sure thomwolf, Thanks for your concern
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
32
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load > We were brainstorming around your use-case. > > Let's keep the issue open for now, I think this is an interesting question to think about. Sure thomwolf, Thanks for your concern
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
I agree it would be cool to have that feature. Also that's good to know that pandas supports this. For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
45
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load I agree it would be cool to have that feature. Also that's good to know that pandas supports this. For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Any updates on this issue? I face a similar issue. I have many parquet files in S3 and I would like to train on them. To be honest I even face issues with only getting the last layer embedding out of them.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
42
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Any updates on this issue? I face a similar issue. I have many parquet files in S3 and I would like to train on them. To be honest I even face issues with only getting the last layer embedding out of them.
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Hi dorlavie, You can find one solution that i have mentioned above, that can help you. And there is one more solution also which is downloading files locally
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
28
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Hi dorlavie, You can find one solution that i have mentioned above, that can help you. And there is one more solution also which is downloading files locally
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
> Hi dorlavie, > You can find one solution that i have mentioned above, that can help you. > And there is one more solution also which is downloading files locally mahesh1amour, thanks for the fast reply Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB). In addition, due to security concerns I am not allowed to save the data locally
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
68
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load > Hi dorlavie, > You can find one solution that i have mentioned above, that can help you. > And there is one more solution also which is downloading files locally mahesh1amour, thanks for the fast reply Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB). In addition, due to security concerns I am not allowed to save the data locally
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset` boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html) ```python import boto3 s3 = boto3.client('s3') s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME') ``` datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html) ```python from datasets import load_dataset dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv']) ```
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
46
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load @dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset` boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html) ```python import boto3 s3 = boto3.client('s3') s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME') ``` datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html) ```python from datasets import load_dataset dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv']) ```
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
Thanks @philschmid for the suggestion. As I mentioned in the previous comment, due to security issues I can not save the data locally. I need to read it from S3 and process it directly. I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
61
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load Thanks @philschmid for the suggestion. As I mentioned in the previous comment, due to security issues I can not save the data locally. I need to read it from S3 and process it directly. I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases?
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ? Or is it the use of the `boto3` library that is not allowed in your case ?
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
37
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ? Or is it the use of the `boto3` library that is not allowed in your case ?
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@lhoestq yes you are correct. I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3. I am allowed to save the output of any model locally. It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
47
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load @lhoestq yes you are correct. I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3. I am allowed to save the output of any model locally. It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/878
Loading Data From S3 Path in Sagemaker
@dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk **sagemaker start training job** ```python pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'}) ``` **in the train.py script** ```python from datasets import load_from_disk train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN']) ``` I have created an example of how to use transformers and datasets with sagemaker. https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3 The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load
127
Loading Data From S3 Path in Sagemaker In Sagemaker Im tring to load the data set from S3 path as follows `train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv' valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv' test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv' data_files = {} data_files["train"] = train_path data_files["validation"] = valid_path data_files["test"] = test_path extension = train_path.split(".")[-1] datasets = load_dataset(extension, data_files=data_files, s3_enabled=True) print(datasets)` I getting an error of `algo-1-7plil_1 | File "main.py", line 21, in <module> algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__ algo-1-7plil_1 | **config_kwargs, algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file))) algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime algo-1-7plil_1 | return os.stat(filename).st_mtime algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv` But when im trying with pandas , it is able to load from S3 Does the datasets library support S3 path to load @dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk **sagemaker start training job** ```python pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'}) ``` **in the train.py script** ```python from datasets import load_from_disk train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN']) ``` I have created an example of how to use transformers and datasets with sagemaker. https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3 The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
[ -0.2508121728897095, -0.24077486991882324, -0.05315189063549042, 0.5038028955459595, 0.24267776310443878, 0.03797978162765503, 0.42341017723083496, 0.23022283613681793, 0.05345635488629341, 0.01227155327796936, -0.021318087354302406, 0.3855956196784973, -0.2364184409379959, 0.4087209701538086, -0.07339127361774445, 0.15194696187973022, 0.0036894753575325012, 0.11744153499603271, 0.2415752112865448, 0.16631153225898743, -0.04288287088274956, 0.2773866355419159, -0.05713615566492081, 0.1090649962425232, -0.1840185523033142, 0.013617636635899544, 0.014628244563937187, 0.35061946511268616, -0.07507744431495667, -0.5084876418113708, 0.010817242786288261, -0.019076600670814514, 0.47830137610435486, 0.3833347260951996, -0.00011392126907594502, -0.028652753680944443, 0.3157634139060974, 0.04501916468143463, -0.4229218363761902, -0.3848215341567993, -0.5591974854469299, 0.1110936626791954, 0.15265853703022003, -0.037460628896951675, -0.35072439908981323, -0.06534169614315033, -0.31168028712272644, -0.26568537950515747, 0.4028451442718506, 0.6623778343200684, 0.1782039850950241, 0.19147005677223206, -0.07310529798269272, -0.3078444004058838, 0.28212031722068787, 0.02037297561764717, 0.0018272455781698227, 0.22203244268894196, -0.27150726318359375, 0.17799793183803558, 0.29516395926475525, 0.2709994316101074, -0.40192365646362305, 0.11394485831260681, 0.5365951657295227, 0.030487246811389923, 0.3513382375240326, 0.07847271859645844, 0.1274643838405609, 0.170570969581604, 0.5800997018814087, -0.13612571358680725, -0.4543989896774292, -0.184920072555542, -0.21418306231498718, -0.2824922800064087, 0.1915266513824463, 0.08946216851472855, 0.037488680332899094, 0.028242215514183044, -0.046470727771520615, -0.04667990654706955, -0.0988200381398201, 0.2466031014919281, 0.033919498324394226, 0.44055986404418945, -0.2780033349990845, 0.06335616856813431, 0.2615087628364563, 0.07033811509609222, 0.3421868681907654, -0.11327256262302399, 0.01812388002872467, 0.046663641929626465, -0.25198519229888916, 0.16740286350250244, -0.015357695519924164, 0.2122868001461029, -0.0699789896607399, 0.19386504590511322, 0.30343103408813477, -0.07399199157953262, 0.39966386556625366, 0.24019074440002441, 0.3883313536643982, -0.16802972555160522, 0.09138292074203491, 0.0003881072625517845, -0.09941144287586212, 0.48692095279693604, 0.07859861850738525, -0.19348666071891785, -0.3133120536804199, -0.5367277264595032, 0.12409566342830658, 0.26881808042526245, 0.3971949815750122, -0.35103610157966614, -0.2658778131008148, -0.08601982146501541, -0.11921339482069016, -0.19657708704471588, 0.2694827914237976, 0.49722298979759216, -0.3471298813819885, -0.11398527771234512, -0.11797098070383072, 0.2110886424779892, -0.21435347199440002, 0.0854029580950737, -0.19831816852092743, 0.2434525340795517, -0.3190573453903198, 0.022751007229089737, 0.14868026971817017, -0.5799322128295898, 0.5168519616127014, -0.07386358082294464, 0.005126483738422394, -0.344007670879364, 0.1492902934551239, -0.21646389365196228, 0.17776164412498474, 0.18143998086452484, 0.19353212416172028, 0.2570754587650299, -0.053780946880578995, -0.07601659744977951, -0.18203341960906982, 0.0855754017829895, -0.18490475416183472, -0.4797705411911011, 0.041280463337898254, 0.2240624874830246, -0.2657833695411682, -0.16027243435382843, -0.05942114442586899, -0.18594856560230255, 0.27816784381866455, -0.09843125939369202, -0.38870009779930115, 0.0453324094414711, -0.11810210347175598, -0.22078123688697815, 0.4690741002559662, 0.3192170262336731, -0.353742778301239, 0.10859590768814087, -0.4716525971889496, 0.1138472706079483, 0.08351041376590729, 0.21051695942878723, -0.3659239113330841, 0.4489598870277405, -0.304842084646225, 0.13289391994476318, 0.5610040426254272, -0.25659337639808655, 0.006054307334125042, 0.08536148816347122, -0.042150866240262985, -0.1606776863336563, 0.13422033190727234, -0.06304187327623367, -0.13407117128372192, -0.10856417566537857, 0.01678241789340973, 0.34413963556289673, 0.03828763961791992, 0.03885236382484436, -0.1566988229751587, -0.024768991395831108, 0.12574118375778198, 0.24439804255962372, 0.1100834459066391, -0.022054336965084076, -0.03737104684114456, -0.19640235602855682, -0.05566827207803726, -0.11840124428272247, -0.043488092720508575, 0.46798014640808105, 0.2733064293861389, 0.3011098802089691, -0.0028270066250115633, 0.15165019035339355, -0.2742566764354706, 0.1333043873310089, 0.04489559680223465, -0.2772713303565979, -0.06685887277126312, 0.010664436966180801, -0.2895231544971466, 0.0034122802317142487, -0.452074259519577, 0.09890715777873993, 0.10530830919742584, 0.31380391120910645, 0.23262742161750793, -0.09711748361587524, -0.11902251839637756, -0.3059854507446289, 0.3305368423461914, -0.015122910030186176, -0.30880850553512573, 0.11353091895580292, -0.40513813495635986, -0.0548965185880661, 0.08690378069877625, 0.04399378225207329, 0.17168503999710083, 0.11763600260019302, 0.01508232019841671, 0.17877021431922913, 0.12435977905988693, 0.22744904458522797, -0.21446940302848816, 0.15621063113212585, -0.11996544152498245, 0.030692685395479202, 0.17973653972148895, -0.13345004618167877, 0.13561788201332092, 0.08357281237840652, -0.044440627098083496, 0.47719264030456543, -0.026709455996751785, 0.18944042921066284, 0.13970786333084106, 0.015092367306351662, 0.269609272480011, -0.16948813199996948, -0.02041538991034031, -0.13537141680717468, 0.04767591506242752, -0.12000207602977753, 0.11466923356056213, 0.07627464830875397, -0.07292784750461578, -0.12954869866371155, 0.3834588825702667, 0.09598328173160553, -0.010804317891597748, -0.2696373760700226, -0.229658842086792, -0.14496928453445435, 0.06536250561475754, 0.49552980065345764, 0.36652353405952454, 0.22105912864208221, 0.09654685109853745, -0.035579390823841095, -0.053980931639671326, -0.18552221357822418, 0.23793497681617737, 0.423758327960968, 0.43809640407562256, 0.355629026889801, -0.3781282603740692, -0.0747244581580162, -0.24020734429359436, -0.16073404252529144, 0.16420996189117432, 0.28225088119506836, -0.4002409279346466, 0.189003586769104, -0.059893570840358734, -0.16964039206504822, -0.29827138781547546, -0.35486459732055664, -0.10320393741130829, -0.255468487739563, -0.11922669410705566, 0.2769100069999695, -0.26685625314712524, -0.027291564270853996, 0.09603653848171234, 0.012837812304496765, -0.07400607317686081, -0.05529893934726715, -0.3418395221233368, -0.24718065559864044, -0.1704050898551941, 0.05501179024577141, 0.21830964088439941, 0.09588486701250076, 0.26589691638946533, -0.18654878437519073, 0.10830157995223999, -0.46333974599838257, -0.08259470760822296, -0.017645493149757385, -0.008097626268863678, 0.3024955689907074, 0.27422916889190674, 0.08020761609077454, 0.2997993230819702, -0.24657757580280304, 0.4653753638267517, -0.012098347768187523, 0.020435219630599022, 0.23647582530975342, -0.021338459104299545, -0.11214341968297958, -0.033395711332559586, -0.38095852732658386, 0.06997355073690414, -0.4534810781478882, -0.3755662441253662, 0.011292237788438797, 0.14405179023742676, 0.27534571290016174, 0.3328947126865387, 0.22992481291294098, -0.2099563330411911, 0.3361966013908386, -0.20963212847709656, -0.20370490849018097, 0.1267782747745514, -0.2523745000362396, -0.2639806270599365, 0.3304711580276489, -0.04501374810934067, 0.8056798577308655, -0.10353150218725204, -0.2581118941307068, -0.028181612491607666, 0.054154664278030396, -0.3135477602481842, -0.14227992296218872, -0.24673892557621002, 0.30801403522491455, 0.20880350470542908, -0.08564695715904236, -0.00781763345003128, -0.32584962248802185, 0.09111139923334122, -0.2148195207118988, 0.21225249767303467, -0.2017771303653717, 0.8904483914375305, -0.005194302648305893, 0.4429091215133667, 0.1470211148262024, -0.21184591948986053, 0.45299383997917175, -0.10638006776571274, 0.18244661390781403, -0.10482337325811386, -0.26024797558784485, -0.11808270961046219, 0.16645275056362152, -0.29006582498550415, 0.14829613268375397, -0.25939932465553284, -0.06323433667421341, -0.2945418357849121, 0.0631960779428482, -0.33353716135025024, -0.21664024889469147, 0.010892991907894611, -0.264599472284317, 0.13347743451595306, -0.1084316074848175, 0.03714147210121155, -0.0522475466132164, 0.17822802066802979, 0.19645626842975616, 0.27402541041374207, 0.17984144389629364, -0.0360957570374012, -0.2892720699310303, -0.0228563379496336, -0.30246180295944214, 0.3309331238269806, -0.044929537922143936, 0.14455991983413696, -0.17259979248046875, -0.22848141193389893, 0.10859142988920212, -0.21206353604793549, 0.5687648057937622, -0.28860849142074585, 0.07598985731601715, 0.2566814422607422, -0.18740713596343994, -0.47114652395248413, -0.26581552624702454, -0.06750313937664032, 0.2460007518529892, 0.028937578201293945, 0.408780038356781, -0.11914988607168198, -0.4835365414619446, 0.14731766283512115, -0.05674163997173309, -0.0862194374203682, -0.20473484694957733, -0.34796464443206787, -0.12316619604825974, -0.3823906183242798, -0.07729730755090714, -0.06978703290224075, 0.34709927439689636, 0.09936157613992691, -0.20500589907169342, 0.05404191464185715, 0.0844748467206955, 0.026174768805503845, -0.04633675143122673, 0.4726718068122864, 0.03306003287434578, 0.23103269934654236, 0.272346556186676, 0.3769768476486206, 0.10945357382297516, 0.3990901708602905, 0.20310203731060028, -0.46864157915115356, -0.10395289212465286, 0.03071443736553192, 0.462886244058609, -0.02347952127456665, -0.18416908383369446, 0.10565695911645889, 0.1430652141571045, 0.15447542071342468, -0.1691708117723465, 0.10934092849493027, 0.4040105938911438, 0.04353046789765358, -0.30537986755371094, -0.5429389476776123, -0.013674847781658173, 0.08267620205879211, 0.09192302823066711, -0.06263113766908646, -0.3203948736190796, -0.20804139971733093, 0.2609345316886902, 0.40158912539482117, 0.6901738047599792, -0.07239186763763428, 0.29669082164764404, 0.5587424039840698, 0.09106042981147766, 0.0016885569784790277, 0.2774413824081421, -0.10427061468362808, -0.5139326453208923, 0.19549086689949036, 0.08333753794431686, -0.18157562613487244, -0.009392812848091125, 0.23393334448337555, -0.1757296323776245, 0.20524363219738007, -0.21967899799346924, 0.0933762863278389, -0.17336437106132507, 0.1602143794298172, -0.16883496940135956, -0.05021011456847191, -0.12187576293945312, 0.0497322753071785, -0.06927302479743958, 0.0820498988032341, -0.10364209115505219, -0.20974154770374298, 0.033774081617593765, -0.23093946278095245, 0.07481423020362854, 0.27534419298171997, 0.008100444450974464, 0.03432617336511612, -0.2805512547492981, -0.19517168402671814, 0.12133719027042389, 0.24471953511238098, 0.3164100646972656, 0.03513104468584061, -0.08934548497200012, 0.10109958797693253, -0.36822986602783203, -0.2763565182685852, -0.2608575224876404, -0.09564315527677536, 0.18498720228672028, -0.2108018696308136, -0.04998045414686203, 0.12406270951032639, -0.061371538788080215, -0.376287043094635, -0.03358714282512665, -0.0350460559129715, 0.2754876911640167, -0.43170344829559326, -0.2545197308063507, -0.13191135227680206, -0.11611221730709076, -0.19192029535770416, 0.1608150750398636, 0.22877083718776703, -0.12014129757881165, 0.0152176134288311, -0.1504317969083786, -0.27451837062835693, 0.05840311944484711, 0.5248111486434937, -0.10167988389730453, 0.15216979384422302, 0.6307944059371948, 0.07103583216667175, -0.11385008692741394, -0.28942304849624634, -0.29964950680732727, 0.0183578934520483, -0.29094284772872925, 0.183390811085701, 0.24349424242973328, -0.06892146915197372, 0.24410216510295868, 0.3077547550201416, 0.17140579223632812, -0.09898438304662704, -0.050826944410800934, -0.5483641624450684, -0.028405025601387024, 0.04740966111421585, -0.15348808467388153, 0.3620045483112335, 0.1767348051071167, -0.3220784366130829, -0.08176035434007645, -0.17704470455646515, -0.29933011531829834, 0.0011030756868422031, -0.11979987472295761, 0.24056212604045868, -0.21579454839229584, -0.27803748846054077, 0.21135732531547546, 0.062096673995256424, 0.1622254103422165, -0.3558202385902405, -0.07771141082048416, -0.253376305103302, -0.06813211739063263, 0.12217020988464355, 0.14418312907218933, 0.00954202190041542, 0.13364121317863464, -0.14447636902332306, -0.33204272389411926, -0.13068439066410065, 0.06709107756614685, 0.1010916605591774, -0.0039909109473228455, 0.2840556204319, 0.09248042851686478, 0.021909475326538086, -0.14821688830852509, -0.10650113224983215, -0.19945400953292847, -0.17430110275745392, 0.008559169247746468, 0.2015717774629593, -0.18141430616378784, -0.21467269957065582, 0.04384205490350723, 0.0030674338340759277, 0.07939697057008743, 0.07924121618270874, 0.31281596422195435, -0.46475648880004883, 0.051567982882261276, 0.1602492481470108, 0.5055230855941772, 0.39061757922172546, -0.0799037516117096, 0.21403546631336212, 0.3118724524974823, 0.23815810680389404, -0.11352431774139404, -0.2740481495857239, -0.19607222080230713, -0.2340986579656601, -0.006973966956138611, -0.06986510008573532, -0.06775686889886856, 0.05826123058795929, 0.20018190145492554, -0.04572804272174835, 0.178425133228302, 0.14799995720386505, 0.12701883912086487, 0.27947327494621277, -0.3211747407913208, 0.04061420261859894, 0.2804034650325775, 0.17324446141719818, 0.14498305320739746, 0.37775808572769165, -0.1555616557598114, 0.1443805992603302, -0.275265097618103, 0.1954725831747055, -0.1280408799648285, -0.677903413772583, 0.1011463850736618, 0.04139905422925949, -0.09672148525714874, -0.08959244936704636, -0.13703247904777527, 0.32861077785491943, 0.03106106072664261, 0.0625445693731308, -0.36785224080085754, 0.08398833870887756, -0.1466529369354248, -0.08804529905319214, -0.3406411111354828, 0.0076263174414634705, -0.03255121037364006, 0.15515217185020447, 0.15166075527668, -0.034988075494766235, -0.08578868210315704, 0.08755455166101456, -0.04003530740737915, -0.043664440512657166, 0.07095429301261902, 0.3961869478225708, -0.23190248012542725, -0.4020034968852997, 0.18865327537059784, -0.12193839251995087, -0.07900051772594452, 0.00034440308809280396, 0.071505606174469, 0.5281398892402649, 0.3324434459209442, 0.1592501401901245, 0.004361086059361696, -0.04787850007414818, -0.18370777368545532, -0.053014419972896576, 0.05968456342816353, 0.16823217272758484, 0.3104562759399414, 0.4630705416202545, 0.1703823357820511, -0.1467406302690506, 0.12417155504226685, -0.14532606303691864, 0.32080772519111633, -0.030401211231946945, 0.17151999473571777, 0.17503534257411957, -0.2403031289577484, -0.20717646181583405, 0.2140195667743683, -0.5623791813850403, -0.24554647505283356, 0.37041378021240234, 0.07338903099298477, 0.05771264433860779, -0.11649575084447861, 0.05903692543506622, 0.1694280356168747, 0.5225661993026733, 0.197241872549057, 0.3079320192337036, -0.4567180275917053, -0.0008986517786979675, -0.5817425847053528, -0.012712463736534119, 0.1645321398973465, 0.2716320753097534, 0.15987274050712585, 0.18563279509544373, -0.24485689401626587, -0.07578235119581223, 0.2462041974067688, 0.2971825897693634, 0.1082024946808815, 0.23381608724594116, -0.1574128419160843, -0.13475348055362701, 0.1514982283115387, -0.12748977541923523, 0.08999030292034149, -0.1791536808013916, 0.07476449757814407, -0.04721323400735855, 0.03622914105653763, -0.27514946460723877, 0.023700594902038574, 0.0012950338423252106, -0.16671901941299438, 0.5104470252990723, -0.2578531503677368, 0.44648998975753784, -0.03210369870066643, 0.10998066514730453, -0.4661697745323181, 0.04895099997520447, -0.14958421885967255, 0.1149458959698677, 0.07384069263935089, 0.2687282860279083, -0.025266841053962708, 0.38490545749664307, -0.4096693694591522, 0.2747507095336914, -0.16085582971572876, -0.3426376283168793, -0.041493311524391174, 0.11783450096845627, 0.07679275423288345, 0.31934815645217896, 0.08215007185935974, -0.037941791117191315, 0.03487877920269966, 0.06316078454256058, -0.5235247015953064, -0.21494479477405548, 0.6017245650291443, -0.43991976976394653, -0.048564210534095764, -0.007045398466289043, 0.22706946730613708, 0.11177518963813782, -0.1416444629430771, -0.41971713304519653, 0.10787033289670944, 0.26367610692977905, 0.10843593627214432, -0.044717684388160706, 0.33933883905410767, 0.2886272370815277, 0.1458832323551178, -0.0916721522808075, 0.19398316740989685, 0.14924371242523193, -0.1321774572134018, -0.13021692633628845, -0.3663119077682495 ]
https://github.com/huggingface/datasets/issues/877
DataLoader(datasets) become more and more slowly within iterations
Hi ! Thanks for reporting. Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) It would be nice to know whether it comes from the dataloader or not
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot!
38
DataLoader(datasets) become more and more slowly within iterations Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot! Hi ! Thanks for reporting. Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) It would be nice to know whether it comes from the dataloader or not
[ -0.32416677474975586, -0.06809219717979431, -0.12075720727443695, 0.23754268884658813, -0.04798644781112671, -0.0551256462931633, 0.463410884141922, -0.01044706255197525, 0.2775005102157593, 0.13589231669902802, -0.05749434977769852, 0.4406971335411072, -0.0379495695233345, -0.03381248190999031, -0.2684330344200134, 0.012353003025054932, -0.005812138319015503, 0.1865820586681366, -0.49230512976646423, -0.12448890507221222, 0.032785795629024506, 0.013096840120851994, -0.2001439481973648, -0.22243361175060272, -0.10729154944419861, -0.12398392707109451, 0.1369377225637436, 0.13509756326675415, -0.10981158167123795, -0.4247671961784363, 0.0017360430210828781, 0.19508767127990723, 0.37131229043006897, 0.6450660824775696, -0.00011759155313484371, 0.05950555205345154, 0.03183504939079285, 0.22829082608222961, -0.2663005590438843, 0.4214519262313843, 0.046798624098300934, -0.44103965163230896, 0.1777762621641159, -0.15022119879722595, 0.3183627128601074, -0.1672295331954956, -0.36222705245018005, -0.12706699967384338, 0.036359481513500214, -0.052284110337495804, 0.11143319308757782, 0.538841724395752, -0.5062487125396729, 0.014491843990981579, -0.04278012365102768, -0.2250586897134781, -0.17129778861999512, 0.35825565457344055, 0.7214535474777222, 0.06325902789831161, -0.48669004440307617, 0.26705217361450195, 0.06604119390249252, 0.3211706280708313, 0.16954492032527924, 0.150948628783226, 0.40484362840652466, -0.2836863398551941, -0.062000423669815063, 0.30783548951148987, 0.7381130456924438, -0.035418055951595306, -0.2990173101425171, -0.09106434881687164, 0.010506822727620602, -0.1903959959745407, 0.06546337902545929, -0.38811245560646057, -0.35748955607414246, -0.13382193446159363, -0.3717275559902191, -0.026921898126602173, 0.06790991127490997, -0.04724208265542984, -0.11196961998939514, -0.06574021279811859, 0.04553530365228653, -0.13034605979919434, 0.18957817554473877, -0.23493240773677826, 0.29860925674438477, -0.19546638429164886, 0.17114371061325073, 0.14892306923866272, -0.699406623840332, -0.09027816355228424, -0.2848404347896576, 0.05218282341957092, -0.08911484479904175, -0.018169473856687546, 0.35489359498023987, 0.11027216166257858, -0.06674845516681671, 0.060080088675022125, 0.1825922131538391, 0.11781680583953857, 0.004975765943527222, -0.2424711138010025, 0.11380055546760559, 0.09381944686174393, -0.1968662291765213, 0.05885395407676697, -0.2202976942062378, -0.3105727434158325, 0.6017606854438782, -0.13016101717948914, -0.12970010936260223, 0.11861701309680939, -0.24907808005809784, -0.17236946523189545, 0.1275792419910431, -0.23051680624485016, 0.3537155091762543, 0.24711298942565918, -0.15367916226387024, 0.4567606449127197, -0.23972700536251068, -0.05037621408700943, -0.2576826214790344, -0.4324016571044922, -0.1131179928779602, -0.24187834560871124, -0.1623128354549408, 0.31754469871520996, -0.0372212752699852, -0.2119458168745041, 0.07735271751880646, 0.44992345571517944, 0.23963399231433868, 0.011468864977359772, 0.06375022232532501, -0.22986680269241333, -0.18952828645706177, -0.0006901249289512634, -0.09460993111133575, 0.3075335919857025, 0.036976587027311325, 0.11283628642559052, -0.06899825483560562, 0.2015663981437683, -0.6437551379203796, 0.07855039834976196, -0.03944399952888489, 0.1380125731229782, 0.2078980654478073, -0.19200460612773895, -0.27479735016822815, -0.06468263268470764, -0.17526763677597046, 0.08440054953098297, 0.057530105113983154, -0.36100566387176514, -0.05839528515934944, -0.08916844427585602, -0.012257176451385021, 0.34677982330322266, -0.23515373468399048, 0.02027556300163269, -0.17966143786907196, 0.034796711057424545, 0.44474104046821594, 0.4324095547199249, -0.34430015087127686, 0.6609280109405518, -0.4009300470352173, -0.27044492959976196, 0.4817548990249634, -0.21737438440322876, -0.43202072381973267, 0.7465630769729614, -0.15813124179840088, 0.2618143558502197, 0.312427818775177, 0.40266355872154236, 0.46367335319519043, -0.2787516415119171, 0.24230974912643433, 0.1920711100101471, 0.195451557636261, 0.21776430308818817, -0.1472032219171524, 0.1382669359445572, 0.23421430587768555, 0.21699115633964539, -0.08548280596733093, 0.3467285931110382, -0.021615445613861084, -0.2039886713027954, 0.4737629294395447, -0.2093397080898285, -0.0713677853345871, 0.3619624376296997, -0.15184013545513153, -0.1550886482000351, 0.14037974178791046, 0.11301670223474503, -0.5651848316192627, 0.21888065338134766, 0.017457585781812668, -0.24433746933937073, 0.3122856914997101, 0.11911517381668091, -0.17051485180854797, 0.08100377768278122, -0.27757585048675537, 0.0633908361196518, 0.03831970691680908, 0.11556056141853333, -0.10989657044410706, -0.33753108978271484, 0.005483429878950119, 0.35935527086257935, -0.05421265959739685, 0.07246489077806473, 0.11106336116790771, 0.2941328287124634, 0.4734770655632019, -0.13572843372821808, 0.22661712765693665, -0.34973418712615967, -0.0022914335131645203, -0.10507576912641525, -0.13632288575172424, 0.2549382746219635, 0.25484520196914673, 0.4663393497467041, 0.45704665780067444, 0.08390577137470245, 0.1968621462583542, 0.09204329550266266, 0.15109123289585114, -0.11825981736183167, 0.22993461787700653, -0.15048113465309143, 0.3272107243537903, 0.3399002254009247, -0.4314761757850647, 0.3046644926071167, -0.15575245022773743, -0.27258679270744324, 0.07483996450901031, 0.01287834718823433, -0.09949066489934921, 0.3636084496974945, 0.41378870606422424, 0.18912246823310852, 0.558600664138794, 0.2135506421327591, -0.16363242268562317, 0.12998156249523163, 0.08290020376443863, 0.08679214119911194, -0.23389288783073425, 0.17535147070884705, -0.26994526386260986, -0.005141420289874077, -0.1918000727891922, -0.01973024383187294, 0.44623613357543945, 0.032850611954927444, 0.18072475492954254, -0.1930123120546341, 0.21828876435756683, -0.1475970596075058, -0.019637979567050934, 0.20656517148017883, 0.2737125754356384, 0.40082597732543945, -0.0294164028018713, -0.08975806087255478, -0.31646987795829773, -0.2832615375518799, 0.0854959636926651, 0.36030659079551697, -0.09956782311201096, 0.20977719128131866, -0.250203400850296, 0.19539564847946167, -0.18948307633399963, -0.35576412081718445, -0.19919584691524506, -0.2604182958602905, -0.19258779287338257, 0.07874441891908646, 0.29646411538124084, -0.00978652760386467, 0.10028183460235596, -0.019253909587860107, 0.23097990453243256, 0.07351826876401901, -0.16929107904434204, 0.03275440260767937, -0.09568410366773605, -0.019179649651050568, 0.20258662104606628, -0.1779780387878418, 0.06359581649303436, -0.09347251802682877, 0.18409211933612823, -0.38341978192329407, 0.19687587022781372, -0.14339660108089447, 0.04453008621931076, 0.16536091268062592, -0.02526223659515381, 0.32531899213790894, -0.021857140585780144, -0.10167890787124634, 0.11566506326198578, -0.13829293847084045, -0.03162699192762375, -0.02458474040031433, -0.19355235993862152, 0.11500012129545212, 0.36581936478614807, 0.07103997468948364, -0.2702753245830536, -0.10066503286361694, -0.22871671617031097, 0.03875153139233589, 0.13283763825893402, -0.15252596139907837, -0.11260266602039337, 0.07761521637439728, 0.2564551830291748, 0.02645665593445301, -0.02348787523806095, -0.7568566799163818, 0.40948474407196045, 0.09237944334745407, 0.048086345195770264, -0.2590307295322418, -0.11156846582889557, 0.209638312458992, 0.2576955556869507, -0.4277700185775757, 0.023391958326101303, -0.13141202926635742, 0.223676860332489, -0.1926167905330658, 0.1394830346107483, -0.10263018310070038, -0.16370445489883423, -0.0642288327217102, 0.07135852426290512, -0.07321377098560333, -0.16029974818229675, -0.2642502784729004, 0.07125020027160645, -0.13423889875411987, 0.29183289408683777, -0.22330476343631744, 0.4822227358818054, 0.2165643870830536, -0.12052363157272339, 0.08851920068264008, -0.09224732965230942, 0.09819743037223816, 0.15989160537719727, -0.38915714621543884, -0.29414066672325134, -0.11473414301872253, -0.33262646198272705, 0.3235490322113037, -0.34575363993644714, 0.019070396199822426, 0.03778032213449478, -0.005387794226408005, -0.10342743992805481, -0.009618040174245834, 0.1407834142446518, -0.16080032289028168, 0.28508201241493225, -0.12760117650032043, 0.05511842668056488, -0.312248557806015, -0.13164854049682617, 0.0756109207868576, 0.16636987030506134, 0.010002188384532928, -0.34910503029823303, -0.4216746687889099, 0.16171661019325256, -0.4815860390663147, 0.05788685381412506, -0.033189333975315094, 0.5251989960670471, 0.3719901442527771, 0.08601710200309753, 0.35447514057159424, 0.07998485118150711, 0.5257922410964966, 0.20511940121650696, -0.2232927829027176, 0.0023489370942115784, -0.4758285880088806, 0.014172503724694252, -0.16973723471164703, -0.24898917973041534, 0.2695692181587219, 0.3460759222507477, 0.4094492793083191, -0.06739986687898636, -0.18728187680244446, -0.09539244323968887, 0.11432752013206482, -0.21026262640953064, -0.5684311389923096, -0.15205219388008118, 0.10213873535394669, 0.1626301258802414, 0.10562407970428467, -0.5356793403625488, 0.21435995399951935, 0.03225439041852951, -0.018900295719504356, -0.08365555852651596, -0.2037842571735382, 0.3269469439983368, 0.0747586339712143, 0.11293373256921768, 0.1472710371017456, 0.36089423298835754, 0.014742087572813034, -0.06843943893909454, 0.12551572918891907, 0.1568821668624878, -0.022057097405195236, -0.16957825422286987, 0.18080759048461914, 0.09721086174249649, 0.37124985456466675, 0.21939149498939514, -0.051893725991249084, 0.18395331501960754, -0.12597821652889252, 0.16054922342300415, -0.18193845450878143, -0.2642451524734497, 0.563888430595398, 0.030971147119998932, -0.40693989396095276, -0.17196157574653625, 0.4834611415863037, 0.09894067049026489, -0.010548919439315796, 0.34989774227142334, -0.5904155373573303, 0.014225463382899761, -0.15940460562705994, 0.14201797544956207, 0.7446195483207703, -0.12648771703243256, -0.012597370892763138, 0.06594890356063843, 0.35847318172454834, 0.05031878501176834, -0.1736753135919571, -0.029184620827436447, -0.2662470042705536, -0.42744648456573486, 0.00139654241502285, -0.34628233313560486, 0.4885747730731964, 0.15713092684745789, -0.0712064728140831, 0.16933326423168182, -0.16534651815891266, -0.026751752942800522, -0.18235667049884796, 0.16070853173732758, -0.09415525943040848, -0.4092690348625183, -0.33053216338157654, 0.05029471218585968, -0.115560382604599, 0.1641438901424408, -0.13590937852859497, -0.19621719419956207, 0.08007939159870148, 0.29779064655303955, -0.05492479354143143, -0.18548083305358887, -0.3081086575984955, -0.006029529497027397, 0.5209766626358032, -0.23941275477409363, -0.12475597858428955, 0.029319074004888535, 0.06417978554964066, -0.15904024243354797, 0.04305112361907959, 0.21728962659835815, -0.027793899178504944, 0.36008986830711365, 0.13431710004806519, -0.2849556803703308, 0.10392825305461884, -0.0048289112746715546, 0.22510287165641785, 0.3471117615699768, 0.09378628432750702, -0.22012953460216522, 0.037796750664711, 0.17099212110042572, 0.25264114141464233, -0.20161999762058258, -0.16966739296913147, 0.2142750322818756, 0.14977246522903442, -0.10010433197021484, 0.052983734756708145, 0.49443405866622925, -0.2453264594078064, 0.3979698121547699, 0.04845546558499336, -0.3939451277256012, -0.13426119089126587, 0.24392691254615784, 0.3966487944126129, -0.003528095781803131, 0.5114943981170654, 0.0457233227789402, -0.2285662293434143, -0.12651774287223816, 0.2642815411090851, 0.08481284230947495, -0.25791093707084656, 0.23708432912826538, 0.08470593392848969, 0.3823503851890564, 0.19518262147903442, 0.03654133901000023, -0.046355895698070526, -0.07958241552114487, -0.41962307691574097, -0.3935624063014984, -0.13834218680858612, -0.13418686389923096, -0.03440843150019646, 0.025478608906269073, -0.264166921377182, -0.12822392582893372, -0.09127520769834518, 0.2852676510810852, -0.19153064489364624, -0.11648862808942795, -0.08780304342508316, -0.0669839158654213, 0.12309910356998444, -0.23248353600502014, 0.09892494976520538, 0.31560754776000977, 0.03326701372861862, 0.1362626552581787, -0.03830921649932861, -0.1720198690891266, 0.09350936114788055, 0.1423202008008957, -0.053862959146499634, -0.1565544605255127, 0.08573545515537262, -0.03153932839632034, 0.11663174629211426, -0.10027194023132324, -0.05954892560839653, -0.07750054448843002, 0.03136490657925606, 0.05108867958188057, 0.3887101411819458, -0.134502112865448, -0.10911989212036133, 0.2731112241744995, 0.02565852180123329, 0.20948806405067444, 0.21662597358226776, -0.008704572916030884, 0.1175246611237526, -0.26167458295822144, -0.2864660322666168, 0.12584708631038666, 0.09324376285076141, -0.11848283559083939, 0.3263694643974304, -0.5417142510414124, 0.28818219900131226, 0.0469430647790432, 0.14059484004974365, 0.4909072518348694, -0.11220584064722061, -0.3595332205295563, -0.046978168189525604, 0.11881665140390396, -0.05513264611363411, -0.3106611967086792, -0.043538790196180344, 0.15525409579277039, -0.06717436015605927, 0.15915054082870483, -0.0264548659324646, 0.029159381985664368, 0.10337447375059128, -0.1961594521999359, -0.04102707281708717, -0.2628023624420166, -0.14731474220752716, 0.12065207958221436, 0.2635147273540497, 0.12237484753131866, 0.33780166506767273, 0.4258939027786255, -0.24132585525512695, 0.14060676097869873, 0.08709032833576202, 0.2866995632648468, 0.33311671018600464, 0.1572490632534027, -0.16726714372634888, -0.42850902676582336, -0.10220350325107574, 0.5111818313598633, -0.24317166209220886, -0.15942838788032532, 0.06122785806655884, -0.059452809393405914, 0.1479036957025528, -0.10620396584272385, -0.2463630735874176, 0.2721633315086365, -0.147335022687912, -0.2630116045475006, 0.05484079569578171, 0.0015626922249794006, -0.13661473989486694, 0.08780904114246368, -0.2911335229873657, 0.028630267828702927, -0.2513047158718109, 0.25721219182014465, 0.1657455712556839, -0.46831029653549194, -0.44428446888923645, 0.14633648097515106, -0.09041806310415268, -0.2134362757205963, 0.06121170148253441, -0.17092762887477875, 0.27526503801345825, 0.17691276967525482, 0.281159371137619, 0.21753303706645966, 0.3926662504673004, 0.08407361805438995, -0.1159084215760231, -0.31579476594924927, -0.10600000619888306, 0.133192777633667, 0.1759582906961441, -0.2666065990924835, 0.07880677282810211, 0.22366365790367126, 0.01096288487315178, -0.2197425812482834, -0.2131664901971817, -0.13890370726585388, -0.11741161346435547, -0.4200173020362854, 0.225490003824234, 0.1522701382637024, 0.20541712641716003, -0.25529566407203674, 0.010123178362846375, -0.32151079177856445, -0.2694218158721924, 0.34462425112724304, -0.4715990424156189, -0.060643188655376434, -0.004403622355312109, 0.015524577349424362, -0.4134434461593628, 0.7372546195983887, 0.44197988510131836, 0.39895883202552795, -0.3557164669036865, -0.18958643078804016, -0.4855271875858307, -0.10538437217473984, -0.24922847747802734, -0.12535516917705536, 0.3149225115776062, 0.4505525827407837, 0.09095707535743713, 0.3465806245803833, 0.4759299159049988, 0.0007374335546046495, -0.23305028676986694, 0.10604609549045563, -0.3805701732635498, 0.08595653623342514, -0.2519361972808838, 0.19735057651996613, -0.21699032187461853, -0.25610989332199097, 0.5060579180717468, 0.02612309902906418, 0.08500959724187851, 0.13274574279785156, 0.00644771009683609, 0.2202892005443573, 0.5054419040679932, 0.1820296347141266, -0.04911903291940689, 0.012755446135997772, 0.12495038658380508, -0.012006585486233234, -0.026049058884382248, -0.24672509729862213, 0.09297434985637665, 0.020972590893507004, 0.08951897919178009, -0.048032231628894806, -0.06451832503080368, 0.10162847489118576, -0.12254984676837921, 0.32722750306129456, -0.123012974858284, -0.08390854299068451, -0.10536512732505798, -0.02403799071907997, 0.09946062415838242, 0.2704181373119354, 0.024356495589017868, 0.3296840488910675, 0.33030274510383606, 0.2231873869895935, -0.3987431526184082, -0.019524672999978065, 0.1854534149169922, -0.45239052176475525, -0.2727072536945343, -0.23031622171401978, 0.201142817735672, 0.1696784347295761, 0.25932347774505615, -0.1572711169719696, 0.12485074251890182, 0.5009220838546753, -0.07689349353313446, 0.13011425733566284, 0.3328210115432739, -0.022249925881624222, 0.33033525943756104, -0.07234016060829163, 0.16942951083183289, -0.06518641859292984, -0.19604343175888062, -0.22236235439777374, -0.09461764991283417 ]
https://github.com/huggingface/datasets/issues/877
DataLoader(datasets) become more and more slowly within iterations
> Hi ! Thanks for reporting. > Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) > It would be nice to know whether it comes from the dataloader or not I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s.
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot!
64
DataLoader(datasets) become more and more slowly within iterations Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly! ``` dataset = load_from_disk(dataset_path) # around 21,000,000 lines lineloader = tqdm(DataLoader(dataset, batch_size=1)) for idx, line in enumerate(lineloader): # do some thing for each line ``` In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s. And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s. Could you please help me with this problem? Thanks a lot! > Hi ! Thanks for reporting. > Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader) > It would be nice to know whether it comes from the dataloader or not I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s.
[ -0.31665992736816406, -0.10293616354465485, -0.09790527820587158, 0.2440699189901352, -0.04994313418865204, -0.060161858797073364, 0.4438630938529968, 0.05886590853333473, 0.2712092101573944, 0.12997470796108246, -0.10633517801761627, 0.4185292422771454, -0.03315825015306473, -0.02751433290541172, -0.2983728051185608, -0.004931800067424774, 0.006710074841976166, 0.18829742074012756, -0.47686728835105896, -0.1194707378745079, 0.01796475425362587, 0.05458662658929825, -0.2014032006263733, -0.19119785726070404, -0.1009984239935875, -0.12060388177633286, 0.14090383052825928, 0.17107874155044556, -0.13374677300453186, -0.42460986971855164, -0.013866192661225796, 0.19352687895298004, 0.39524540305137634, 0.6482271552085876, -0.00011782017099903896, 0.05661815404891968, 0.026499494910240173, 0.21208597719669342, -0.2565658986568451, 0.400593638420105, 0.059772007167339325, -0.4337364435195923, 0.16833606362342834, -0.1513475775718689, 0.29309311509132385, -0.19664950668811798, -0.36132827401161194, -0.13670748472213745, 0.06310693919658661, -0.025226058438420296, 0.09394092112779617, 0.5212461948394775, -0.4703531265258789, 0.029714513570070267, -0.03370947390794754, -0.1853240579366684, -0.16927558183670044, 0.38148558139801025, 0.7359799146652222, 0.0564529225230217, -0.5058472752571106, 0.2526676058769226, 0.05179463326931, 0.3203215003013611, 0.17747041583061218, 0.15480859577655792, 0.3938533067703247, -0.2973322868347168, -0.0632716715335846, 0.3236048221588135, 0.7466250061988831, -0.02107769250869751, -0.2943340539932251, -0.06970930844545364, -0.012459774501621723, -0.21960552036762238, 0.08096005022525787, -0.34008118510246277, -0.3324061632156372, -0.13574554026126862, -0.3238389194011688, -0.03099106252193451, 0.023505955934524536, -0.04908812791109085, -0.08604619652032852, -0.06609196960926056, 0.06496445089578629, -0.11877623945474625, 0.2368849217891693, -0.26701176166534424, 0.3284734785556793, -0.196285679936409, 0.1320459395647049, 0.1515498012304306, -0.6910883784294128, -0.10199183970689774, -0.31915760040283203, 0.031995367258787155, -0.059574685990810394, 0.0018934383988380432, 0.3282824456691742, 0.13340900838375092, -0.08339577913284302, 0.05044056847691536, 0.16586045920848846, 0.12847846746444702, -0.00522247701883316, -0.20748856663703918, 0.1097571924328804, 0.1336805373430252, -0.2376725673675537, 0.028206128627061844, -0.20981882512569427, -0.34141767024993896, 0.5878218412399292, -0.15038758516311646, -0.14326211810112, 0.13015975058078766, -0.22435905039310455, -0.2226841300725937, 0.12001115828752518, -0.27054762840270996, 0.3614211678504944, 0.24293163418769836, -0.13945923745632172, 0.42874887585639954, -0.23865769803524017, -0.04815977066755295, -0.28185516595840454, -0.4302232265472412, -0.07409453392028809, -0.22630389034748077, -0.14699359238147736, 0.3179358243942261, -0.003882240504026413, -0.20840175449848175, 0.06032866984605789, 0.4574337601661682, 0.2425089031457901, -0.012821972370147705, 0.11016114056110382, -0.26861539483070374, -0.11842375248670578, -0.006319426000118256, -0.12062041461467743, 0.3061605393886566, 0.05166592448949814, 0.07608592510223389, -0.09695202857255936, 0.18325260281562805, -0.686460554599762, 0.08343730866909027, -0.06727958470582962, 0.11888763308525085, 0.20859211683273315, -0.1886487454175949, -0.25810039043426514, -0.0979587584733963, -0.236037015914917, -0.007542852312326431, 0.03474058955907822, -0.36948150396347046, -0.05334562808275223, -0.0692521333694458, 0.010637214407324791, 0.38192087411880493, -0.19733090698719025, 0.03505750000476837, -0.15826693177223206, 0.04541344568133354, 0.45445629954338074, 0.4650474488735199, -0.3375993072986603, 0.6549211740493774, -0.45231565833091736, -0.2464650422334671, 0.4832213222980499, -0.2251608818769455, -0.4284912347793579, 0.8008055686950684, -0.15401242673397064, 0.2838919758796692, 0.31930628418922424, 0.4010232388973236, 0.43096238374710083, -0.2910650074481964, 0.1836390495300293, 0.17515675723552704, 0.20736022293567657, 0.21590574085712433, -0.16109159588813782, 0.1502372771501541, 0.21004633605480194, 0.21987690031528473, -0.08667491376399994, 0.37316781282424927, 0.013805590569972992, -0.24458469450473785, 0.5300357937812805, -0.2338070571422577, -0.0645175576210022, 0.3581279516220093, -0.12760166823863983, -0.17729026079177856, 0.16328081488609314, 0.1161283478140831, -0.5292482972145081, 0.22475147247314453, -0.01825316995382309, -0.26753857731819153, 0.30403950810432434, 0.1315130740404129, -0.1732226312160492, 0.05760820955038071, -0.28934961557388306, 0.060517653822898865, 0.034424230456352234, 0.130111962556839, -0.13972727954387665, -0.3061436414718628, -0.013617772608995438, 0.34151139855384827, -0.03611376881599426, 0.050060372799634933, 0.0910872370004654, 0.25678688287734985, 0.47689926624298096, -0.10744855552911758, 0.20596718788146973, -0.38155847787857056, 0.0034206919372081757, -0.12450212985277176, -0.14312872290611267, 0.25944674015045166, 0.25451982021331787, 0.49190449714660645, 0.4801604151725769, 0.10596563667058945, 0.20992064476013184, 0.07943728566169739, 0.12122876197099686, -0.131303608417511, 0.23050260543823242, -0.1494424194097519, 0.30682387948036194, 0.3459583520889282, -0.4667884409427643, 0.3317520320415497, -0.13551634550094604, -0.2834477424621582, 0.09631799161434174, -0.0036894790828227997, -0.09473275393247604, 0.4250709116458893, 0.42211711406707764, 0.2127610146999359, 0.5241929888725281, 0.2097855657339096, -0.16578032076358795, 0.10913778841495514, 0.12474609911441803, 0.08734756708145142, -0.2630176544189453, 0.1912243664264679, -0.24784642457962036, 0.013132423162460327, -0.1887078434228897, -0.020451385527849197, 0.4574693441390991, 0.030761685222387314, 0.1961127072572708, -0.19403477013111115, 0.2421049326658249, -0.16298812627792358, -0.008556924760341644, 0.20145627856254578, 0.29799360036849976, 0.4072519838809967, -0.05146760120987892, -0.08248529583215714, -0.2856563627719879, -0.3075772821903229, 0.096685491502285, 0.3380294442176819, -0.1108182966709137, 0.2201792150735855, -0.24319949746131897, 0.18314766883850098, -0.1834973245859146, -0.32316601276397705, -0.2017689049243927, -0.2333129197359085, -0.2080877721309662, 0.1413586586713791, 0.3014656901359558, -0.024840926751494408, 0.14724083244800568, -0.02045278251171112, 0.22736577689647675, 0.04936432093381882, -0.18514889478683472, 0.03640468046069145, -0.09345000237226486, -0.03839949890971184, 0.2595829963684082, -0.17247119545936584, 0.045062772929668427, -0.11903286725282669, 0.1774962693452835, -0.3923734724521637, 0.20009487867355347, -0.1399608999490738, 0.07182042300701141, 0.17243963479995728, -0.05844210088253021, 0.3595055937767029, -0.06975401937961578, -0.09754718095064163, 0.10091283172369003, -0.11513381451368332, -0.00505056232213974, 0.012950778007507324, -0.21459698677062988, 0.11320498585700989, 0.3765968084335327, 0.053709667176008224, -0.2767660319805145, -0.12880313396453857, -0.17058533430099487, 0.034035105258226395, 0.1489662528038025, -0.12206140905618668, -0.13055916130542755, 0.06557969748973846, 0.24509523808956146, 0.05016659200191498, 0.015743205323815346, -0.76210618019104, 0.39514240622520447, 0.06771698594093323, 0.01557748019695282, -0.24871817231178284, -0.07882371544837952, 0.19259460270404816, 0.2424011528491974, -0.4438735246658325, 0.004475199617445469, -0.10685835778713226, 0.2340216338634491, -0.2126052975654602, 0.10593391209840775, -0.10010972619056702, -0.13561148941516876, -0.06007221341133118, 0.06718625128269196, -0.046825483441352844, -0.14238715171813965, -0.2593168616294861, 0.05233735963702202, -0.08204269409179688, 0.2709996998310089, -0.20039325952529907, 0.46415138244628906, 0.24662014842033386, -0.08608505129814148, 0.13531304895877838, -0.10737081617116928, 0.09270945191383362, 0.13372011482715607, -0.3944261372089386, -0.2607368230819702, -0.11743554472923279, -0.31289142370224, 0.3140818476676941, -0.35395577549934387, 0.011983363889157772, 0.0010051317512989044, 0.0014416128396987915, -0.09455306828022003, -0.02884608320891857, 0.15463057160377502, -0.1546783447265625, 0.285231351852417, -0.13614130020141602, 0.023718513548374176, -0.3096563220024109, -0.1658526062965393, 0.10997582972049713, 0.20086728036403656, 0.034529052674770355, -0.33260324597358704, -0.40729308128356934, 0.13628670573234558, -0.4540005326271057, 0.04848320037126541, -0.009009134024381638, 0.5288025736808777, 0.36691322922706604, 0.06603307276964188, 0.3438117802143097, 0.06050674989819527, 0.5548291802406311, 0.2545395791530609, -0.20801125466823578, 0.019586287438869476, -0.45895081758499146, 0.020227396860718727, -0.16294240951538086, -0.2597130537033081, 0.2689763307571411, 0.3551837205886841, 0.46446114778518677, -0.05576884374022484, -0.22315341234207153, -0.1256970763206482, 0.131010964512825, -0.17777997255325317, -0.5715378522872925, -0.1179523766040802, 0.10327982157468796, 0.1491023302078247, 0.10275831073522568, -0.5400914549827576, 0.21806494891643524, 0.008647456765174866, -0.013798918575048447, -0.07276570796966553, -0.20456093549728394, 0.31140655279159546, 0.07045696675777435, 0.13197901844978333, 0.1789391040802002, 0.35486075282096863, 0.010865582153201103, -0.02649085223674774, 0.138088196516037, 0.155692920088768, -0.02588849514722824, -0.17095977067947388, 0.165911465883255, 0.0766545832157135, 0.3214380443096161, 0.2069893628358841, -0.04952642694115639, 0.16427841782569885, -0.13356848061084747, 0.16712872684001923, -0.18984383344650269, -0.23645740747451782, 0.5697370767593384, 0.014337700791656971, -0.41167962551116943, -0.154127299785614, 0.4692334532737732, 0.08243697881698608, -0.032930850982666016, 0.3657377362251282, -0.5970937013626099, 0.03038761578500271, -0.15926864743232727, 0.11820707470178604, 0.7345689535140991, -0.1399647742509842, -0.011086121201515198, 0.06307060271501541, 0.3613537549972534, 0.04454928636550903, -0.19977886974811554, -0.024523861706256866, -0.26330578327178955, -0.49680545926094055, -0.006457749754190445, -0.3365732431411743, 0.46357694268226624, 0.17439091205596924, -0.07890424877405167, 0.15655027329921722, -0.10586432367563248, -0.08096525073051453, -0.1944638043642044, 0.23457121849060059, -0.08446266502141953, -0.4102788269519806, -0.28105393052101135, 0.038845524191856384, -0.13397550582885742, 0.14214485883712769, -0.11324235796928406, -0.2350192815065384, 0.08510003983974457, 0.329015851020813, -0.035183385014534, -0.196254700422287, -0.31244614720344543, -0.012079723179340363, 0.4914206564426422, -0.2618902027606964, -0.1324983835220337, 0.07068601250648499, 0.051562897861003876, -0.1660015732049942, 0.01566147245466709, 0.21861502528190613, -0.011865563690662384, 0.351245254278183, 0.13585597276687622, -0.2737429141998291, 0.12673678994178772, -0.024862179532647133, 0.20718050003051758, 0.2973388731479645, 0.07344640791416168, -0.21795327961444855, 0.06714530289173126, 0.15514445304870605, 0.2528368830680847, -0.18122513592243195, -0.17277568578720093, 0.16708771884441376, 0.08984100818634033, -0.07807885110378265, 0.04230731725692749, 0.48580294847488403, -0.2343536615371704, 0.40535712242126465, 0.06505518406629562, -0.4244106411933899, -0.13949273526668549, 0.2559436857700348, 0.33452144265174866, -0.04338109493255615, 0.552767276763916, 0.05423424765467644, -0.2101469337940216, -0.12251746654510498, 0.31440484523773193, 0.06252722442150116, -0.2677163779735565, 0.24836312234401703, 0.1136026605963707, 0.4252678155899048, 0.22273573279380798, 0.026056408882141113, -0.025055736303329468, -0.09711561352014542, -0.3878437280654907, -0.39766931533813477, -0.15205372869968414, -0.15830019116401672, -0.03330787643790245, 0.007874079048633575, -0.2520020604133606, -0.17516247928142548, -0.046198271214962006, 0.26507800817489624, -0.18479806184768677, -0.09129057079553604, -0.0756387934088707, -0.0717388316988945, 0.16888217628002167, -0.19443991780281067, 0.11624336242675781, 0.32306742668151855, 0.022184504196047783, 0.0959104597568512, -0.027877196669578552, -0.1538805216550827, 0.06645451486110687, 0.14953066408634186, -0.09377112239599228, -0.19926640391349792, 0.08279718458652496, -0.07998757064342499, 0.08723054826259613, -0.12433956563472748, -0.1106041967868805, -0.10671138018369675, -0.007849171757698059, 0.06477866321802139, 0.3694906532764435, -0.15744075179100037, -0.12221828103065491, 0.2708650827407837, 0.015160515904426575, 0.1746543049812317, 0.1952192634344101, -0.004496622830629349, 0.11717326939105988, -0.28721505403518677, -0.26666179299354553, 0.10802438855171204, 0.11657888442277908, -0.11886542290449142, 0.3841860592365265, -0.5312278866767883, 0.29380595684051514, 0.04723961651325226, 0.15315796434879303, 0.49387893080711365, -0.1071816086769104, -0.32216671109199524, -0.02040228806436062, 0.10874436050653458, -0.04127362370491028, -0.316440224647522, -0.04323546588420868, 0.13909532129764557, -0.07004347443580627, 0.14130595326423645, -0.020987005904316902, 0.008488722145557404, 0.12090716511011124, -0.17877426743507385, -0.03180396929383278, -0.2754972577095032, -0.18329143524169922, 0.11373680084943771, 0.2706339359283447, 0.09249921143054962, 0.31102636456489563, 0.42163291573524475, -0.2320680320262909, 0.14664489030838013, 0.0508887879550457, 0.27463698387145996, 0.3467850089073181, 0.19047527015209198, -0.19239541888237, -0.46848443150520325, -0.11911627650260925, 0.4923176169395447, -0.23875123262405396, -0.15278875827789307, 0.045761093497276306, -0.05545642226934433, 0.15305031836032867, -0.12370338290929794, -0.2178710699081421, 0.2652498185634613, -0.13031592965126038, -0.23759819567203522, 0.05648699402809143, -0.0068062543869018555, -0.14628732204437256, 0.08958713710308075, -0.28629449009895325, 0.08165057748556137, -0.2494119107723236, 0.3162231743335724, 0.1634906828403473, -0.421857088804245, -0.45520827174186707, 0.1364051103591919, -0.051442794501781464, -0.24443456530570984, 0.04372778534889221, -0.15861083567142487, 0.2364044040441513, 0.19429223239421844, 0.27664268016815186, 0.230755016207695, 0.4069313108921051, 0.09459051489830017, -0.08649892359972, -0.32399579882621765, -0.09404926002025604, 0.14226610958576202, 0.1759304702281952, -0.24219739437103271, 0.0937008261680603, 0.23886822164058685, -0.01222757063806057, -0.2029806226491928, -0.2131846398115158, -0.1822454333305359, -0.10115325450897217, -0.4517959654331207, 0.17296254634857178, 0.1904039829969406, 0.16218391060829163, -0.27385762333869934, -0.021747447550296783, -0.3191104829311371, -0.24766774475574493, 0.3361477553844452, -0.4791131913661957, -0.033463552594184875, -0.0005315114976838231, 0.01508040726184845, -0.37873637676239014, 0.7244367599487305, 0.42658907175064087, 0.37318670749664307, -0.371247798204422, -0.20312005281448364, -0.4963706135749817, -0.13565510511398315, -0.19279594719409943, -0.09296386688947678, 0.3313574492931366, 0.4202612638473511, 0.08913705497980118, 0.2848302125930786, 0.44890737533569336, -0.03679247945547104, -0.21548403799533844, 0.1458650529384613, -0.37627482414245605, 0.061019450426101685, -0.2251272350549698, 0.24610528349876404, -0.23042209446430206, -0.23883923888206482, 0.5200161933898926, -0.0023017446510493755, 0.07588396221399307, 0.16672086715698242, -0.010662466287612915, 0.23846665024757385, 0.5113664269447327, 0.1818322241306305, -0.014339549466967583, 0.035558730363845825, 0.07969274371862411, 0.005867103114724159, -0.010193567723035812, -0.21857982873916626, 0.06695989519357681, 0.02829236537218094, 0.09777380526065826, -0.044902220368385315, -0.05187797546386719, 0.07381518185138702, -0.1508278101682663, 0.3138602674007416, -0.1692913919687271, -0.08985728025436401, -0.1428133249282837, -0.04917306452989578, 0.1282467246055603, 0.25654104351997375, 0.038250699639320374, 0.3413080871105194, 0.33975785970687866, 0.21156570315361023, -0.4215073585510254, -0.01268997136503458, 0.17041462659835815, -0.4388907849788666, -0.25767943263053894, -0.18825197219848633, 0.21348419785499573, 0.13326789438724518, 0.29818195104599, -0.13074299693107605, 0.1505240797996521, 0.5181916356086731, -0.0594450905919075, 0.14137724041938782, 0.3339850902557373, -0.021269693970680237, 0.33722132444381714, -0.05309714376926422, 0.18005016446113586, -0.018349867314100266, -0.22417430579662323, -0.22409653663635254, -0.0788603201508522 ]
https://github.com/huggingface/datasets/issues/876
imdb dataset cannot be loaded
It looks like there was an issue while building the imdb dataset. Could you provide more information about your OS and the version of python and `datasets` ? Also could you try again with ```python dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload") ``` to make sure it's not a corrupted file issue ?
Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ```
51
imdb dataset cannot be loaded Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ``` It looks like there was an issue while building the imdb dataset. Could you provide more information about your OS and the version of python and `datasets` ? Also could you try again with ```python dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload") ``` to make sure it's not a corrupted file issue ?
[ -0.5215908288955688, -0.03979785740375519, -0.12092772126197815, 0.4138285517692566, 0.30875957012176514, 0.34421873092651367, 0.4162840247154236, 0.41161787509918213, 0.18930847942829132, -0.12591011822223663, -0.24593807756900787, -0.036380235105752945, -0.23879988491535187, 0.11891881376504898, -0.10061249881982803, -0.19338908791542053, -0.10938987880945206, -0.008349090814590454, 0.008231975138187408, 0.02481035143136978, -0.19548316299915314, 0.26311105489730835, -0.407417893409729, -0.007380962371826172, -0.5533475875854492, -0.20760458707809448, 0.06644148379564285, 0.24647295475006104, -0.18789274990558624, -0.3777329921722412, 0.4374704360961914, 0.033827174454927444, 0.29852232336997986, 0.42653942108154297, -0.00010842887422768399, 0.06612159311771393, 0.5560091137886047, -0.14080367982387543, -0.3377954661846161, -0.28552812337875366, -0.29108718037605286, -0.07343383133411407, 0.2554955780506134, -0.2121904194355011, -0.061039164662361145, -0.2735610604286194, -0.0876791924238205, -0.4681128263473511, 0.3000151515007019, 0.4594835042953491, 0.25512421131134033, -0.03052249178290367, 0.07603719830513, -0.14565667510032654, 0.09943002462387085, 0.1825695037841797, 0.009691992774605751, 0.30303871631622314, 0.07601161301136017, 0.01738877221941948, 0.21452279388904572, 0.041525598615407944, -0.25405168533325195, -0.03798845782876015, 0.2962741553783417, 0.027488399296998978, 0.06730075180530548, -0.467769593000412, 0.03473779559135437, 0.2485593855381012, 0.6612054109573364, -0.08360401540994644, -0.3514133095741272, -0.05729011073708534, 0.1594480723142624, -0.2821144163608551, 0.11256968975067139, 0.2813580632209778, -0.12026575207710266, 0.10454107820987701, -0.4093436002731323, -0.06622003018856049, -0.08582493662834167, 0.17703640460968018, 0.030060678720474243, -0.07027633488178253, 0.05906878411769867, 0.0750906690955162, 0.222322016954422, -0.10040879249572754, 0.3060327470302582, 0.02870650216937065, 0.011488713324069977, 0.16014766693115234, -0.2722390592098236, 0.06165464222431183, -0.30993586778640747, 0.0013539865612983704, -0.06961105763912201, 0.24964170157909393, -0.20697596669197083, -0.02108367159962654, -0.029211096465587616, 0.2595464587211609, 0.2834867238998413, 0.13758417963981628, 0.038836315274238586, 0.4064241945743561, 0.14483898878097534, 0.23831288516521454, -0.2738071084022522, -0.10596158355474472, -0.22602200508117676, -0.15017016232013702, 0.0980357825756073, 0.1302989423274994, 0.025858823210000992, -0.1813313364982605, -0.5039570927619934, -0.01794346049427986, -0.18610554933547974, 0.0018604113720357418, 0.37570080161094666, 0.39405322074890137, -0.10823416709899902, 0.17110273241996765, 0.18745753169059753, 0.3105209469795227, -0.1181693971157074, -0.06304202973842621, -0.1855240911245346, 0.2731190025806427, -0.18487629294395447, 0.07852090150117874, 0.4066709280014038, -0.14322659373283386, 0.40706202387809753, 0.013880071230232716, 0.09884469211101532, -0.20597705245018005, 0.19625841081142426, -0.3265182077884674, 0.047470975667238235, 0.30694738030433655, 0.2882388234138489, 0.17498283088207245, 0.17507986724376678, -0.022215761244297028, -0.12192597985267639, 0.04349030926823616, -0.2463381588459015, -0.4131356477737427, -0.18293163180351257, 0.2787933945655823, -0.003636609762907028, -0.05503953993320465, -0.4261492192745209, -0.02929723635315895, 0.04318893328309059, -0.188100665807724, -0.17584586143493652, -0.30514055490493774, -0.17556287348270416, -0.12360324710607529, 0.4283628463745117, 0.47422122955322266, -0.281943142414093, -0.06770172715187073, -0.35458773374557495, -0.1019601821899414, 0.20716577768325806, 0.25222331285476685, -0.30165961384773254, 0.2245970070362091, -0.3644294738769531, 0.10269328951835632, 0.3114503026008606, -0.4896247088909149, -0.1315896064043045, 0.30700966715812683, 0.1519509106874466, 0.11789873987436295, 0.05106991529464722, 0.11782167106866837, 0.32348862290382385, 0.015281599014997482, 0.23739594221115112, 0.4272213578224182, -0.03330513834953308, -0.15667873620986938, -0.06332508474588394, -0.2016085982322693, 0.1954360008239746, 0.36010250449180603, 0.30826178193092346, 0.002115212380886078, 0.0012144595384597778, 0.2097966969013214, 0.2742595076560974, 0.1175740659236908, -0.040872134268283844, 0.20631957054138184, -0.05262622609734535, 0.3531845808029175, -0.054150473326444626, -0.199060320854187, -0.44114381074905396, 0.1967228651046753, 0.2666054368019104, -0.04650985449552536, -0.15744270384311676, -0.1011870950460434, -0.2758455276489258, -0.17938853800296783, -0.2391403168439865, 0.003442389890551567, 0.18499711155891418, -0.08312585949897766, -0.013920987024903297, 0.05820149555802345, -0.4372185468673706, 0.3967025876045227, -0.10662038624286652, 0.14306983351707458, -0.34540218114852905, 0.3588089048862457, -0.17270350456237793, -0.22369566559791565, 0.1571168452501297, 0.11874464899301529, 0.1863100528717041, -0.24966663122177124, -0.04658607766032219, 0.43849632143974304, 0.3271717131137848, -0.028226107358932495, -0.07127580791711807, -0.22272951900959015, 0.1980137974023819, -0.3737984001636505, 0.1602865308523178, -0.13035063445568085, 0.05175181105732918, -0.135439932346344, -0.05916935205459595, 0.16390639543533325, -0.2817705571651459, 0.24405592679977417, 0.22803477942943573, 0.13866432011127472, 0.25115078687667847, -0.09945845603942871, -0.02112841047346592, -0.4406084418296814, 0.18278974294662476, -0.019027788192033768, 0.018330972641706467, -0.01458905078470707, -0.26297128200531006, -0.2127719521522522, 0.4115474224090576, 0.14765000343322754, -0.05337908864021301, 0.13881829380989075, -0.17170730233192444, 0.10229770094156265, -0.07619857788085938, 0.15129655599594116, 0.24948710203170776, 0.1761392503976822, -0.09010446071624756, -0.07389332354068756, 0.137101411819458, -0.1112426221370697, 0.2687685489654541, 0.0630815327167511, 0.13869847357273102, 0.3271506428718567, -0.1574338674545288, -0.04321659356355667, -0.3005731701850891, -0.36265575885772705, 0.11642976850271225, 0.26614636182785034, -0.37613317370414734, -0.07215573638677597, -0.31373196840286255, -0.17083966732025146, -0.08896251767873764, -0.32901400327682495, -0.040705952793359756, -0.32658302783966064, -0.08765673637390137, 0.3447709083557129, 0.3259417414665222, 0.1502281278371811, -0.2954142093658447, -0.1498263031244278, -0.05878908932209015, -0.047468893229961395, -0.075771264731884, -0.2140560895204544, -0.14742425084114075, 0.1250644028186798, 0.45191293954849243, 0.1995559185743332, 0.278973251581192, -0.39436060190200806, -0.0972728282213211, 0.021090209484100342, 0.15831372141838074, -0.05277419835329056, -0.1372922658920288, 0.19019316136837006, 0.11640577018260956, 0.24807564914226532, 0.11379894614219666, -0.5119876861572266, 0.33137446641921997, -0.14346015453338623, 0.07648300379514694, 0.15951856970787048, 0.07674600929021835, -0.07908865064382553, 0.014604996889829636, -0.4780644476413727, -0.48225414752960205, -0.33787867426872253, -0.08819377422332764, 0.16944313049316406, 0.0430154949426651, 0.2023380547761917, 0.1366272121667862, 0.11543102562427521, 0.31838250160217285, 0.1276841014623642, -0.029581768438220024, -0.3274247348308563, 0.32026582956314087, -0.23034074902534485, -0.16038259863853455, 0.24129518866539001, 0.10508187115192413, 0.1461462825536728, 0.008744263090193272, -0.4140421152114868, 0.09790095686912537, -0.061749622225761414, 0.15730853378772736, -0.09455373883247375, -0.14694976806640625, -0.04306161403656006, 0.06994065642356873, -0.04194459319114685, 0.047037288546562195, -0.09499786794185638, -0.037199102342128754, -0.04919819533824921, 0.16019846498966217, -0.1255301833152771, 0.5187346339225769, -0.3258310556411743, 0.5013354420661926, 0.29362285137176514, -0.20531462132930756, 0.37494969367980957, -0.192737877368927, 0.16458025574684143, -0.25010353326797485, -0.6196156740188599, -0.15460245311260223, -0.12972742319107056, -0.1464301496744156, -0.004847802221775055, -0.11204720288515091, -0.18945497274398804, -0.23245036602020264, 0.12645237147808075, -0.369600385427475, -0.15516012907028198, 0.0012163277715444565, -0.3850662112236023, 0.07587258517742157, -0.21246105432510376, 0.17716044187545776, -0.028401274234056473, -0.21887055039405823, 0.055568065494298935, 0.3343018889427185, 0.16103434562683105, -0.029078224673867226, -0.15142060816287994, -0.16636274755001068, -0.07662246376276016, 0.20004692673683167, 0.09129931032657623, 0.3703826367855072, -0.281360387802124, 0.13102534413337708, 0.09683923423290253, 0.20252692699432373, 0.721780002117157, -0.38613635301589966, 0.029387110844254494, 0.24998843669891357, -0.03606172278523445, -0.27881741523742676, -0.09031835198402405, -0.16898535192012787, 0.2853347063064575, 0.3045784831047058, 0.4047130346298218, -0.05902228131890297, -0.1351771205663681, 0.3005591928958893, 0.22683832049369812, -0.15105539560317993, -0.20415718853473663, -0.2009696662425995, -0.09616082161664963, -0.3041914999485016, -0.1563255786895752, 0.07618238776922226, 0.16811050474643707, -0.1662716567516327, -0.15483663976192474, -0.10710538923740387, -0.08600170910358429, 0.2872062921524048, 0.14290757477283478, 0.4447771906852722, 0.13645675778388977, 0.24284210801124573, 0.29425033926963806, -0.018297284841537476, 0.6086505055427551, 0.5828631520271301, -0.3432212173938751, -0.14987680315971375, -0.005440570414066315, -0.06425575166940689, 0.20229879021644592, 0.07193753868341446, -0.14820657670497894, -0.3828928470611572, -0.02344728261232376, 0.04701349139213562, 0.03672482445836067, 0.07398957759141922, 0.49982646107673645, -0.1790408492088318, -0.35525140166282654, -0.7226409912109375, 0.26654285192489624, 0.23975594341754913, 0.11217986047267914, 0.23702670633792877, 0.012427523732185364, -0.28505948185920715, 0.3875683546066284, 0.01341497153043747, 0.6175734996795654, -0.11116158962249756, -0.13543592393398285, -0.006220843642950058, 0.23965810239315033, 0.1921863704919815, -0.2774074077606201, 0.14783094823360443, -0.35724493861198425, -0.238685742020607, -0.11308258026838303, -0.17667052149772644, -0.06489216536283493, 0.11646071821451187, -0.2836248278617859, 0.25371500849723816, -0.43407225608825684, -0.19871097803115845, -0.336638480424881, 0.5193696022033691, -0.18240170180797577, -0.07923199236392975, -0.06007591634988785, 0.20072579383850098, -0.026053600013256073, 0.09329231083393097, 0.054248884320259094, 0.06647522747516632, -0.1279192417860031, 0.014065157622098923, -0.4498792290687561, 0.12065374106168747, -0.09124389290809631, 0.46744751930236816, -0.23630130290985107, -0.181773379445076, 0.14745336771011353, 0.2513224482536316, 0.18486765027046204, -0.10392159223556519, -0.061609625816345215, 0.14731773734092712, 0.19967803359031677, -0.24311469495296478, -0.07187993824481964, 0.06599133461713791, 0.5382041335105896, 0.018923722207546234, -0.20806105434894562, 0.17049413919448853, -0.019290896132588387, -0.09030525386333466, 0.21195897459983826, -0.1407051980495453, 0.23368149995803833, -0.3958044946193695, -0.3060356676578522, -0.18006527423858643, -0.016763916239142418, -0.08421799540519714, 0.15875042974948883, -0.08186812698841095, -0.03361734002828598, 0.2271251678466797, 0.1778801530599594, -0.21747320890426636, 0.006827065721154213, 0.39887717366218567, 0.0557018406689167, 0.2617914080619812, 0.6054590940475464, 0.33355945348739624, -0.18885989487171173, -0.26470261812210083, 0.14525583386421204, 0.18888117372989655, -0.3561071753501892, 0.1968366503715515, 0.07371973991394043, 0.2766791582107544, 0.17669840157032013, 0.08650540560483932, 0.14204595983028412, 0.0673733502626419, -0.13889668881893158, -0.5432533621788025, -0.24287547171115875, 0.23204956948757172, -0.15291473269462585, 0.19400927424430847, -0.14898495376110077, 0.03858812898397446, 0.036278530955314636, -0.08973768353462219, -0.30762600898742676, 0.17045629024505615, -0.3536536395549774, 0.02379595674574375, 0.033267728984355927, -0.12661439180374146, 0.1435001939535141, -0.11723360419273376, 0.20984359085559845, -0.14449793100357056, 0.042180441319942474, -0.22705838084220886, 0.006778290495276451, 0.08305850625038147, -0.07579897344112396, -0.20003704726696014, -0.24022731184959412, -0.18003739416599274, -0.24677157402038574, -0.11152326315641403, -0.1279413402080536, 0.22963449358940125, 0.10456430912017822, 0.2553446292877197, 0.10921841859817505, -0.14400792121887207, -0.15224753320217133, 0.12935905158519745, -0.07847096025943756, 0.10142026841640472, 0.0305774062871933, 0.07428332418203354, 0.12418687343597412, -0.010430090129375458, -0.2565322518348694, 0.025658994913101196, -0.03937414288520813, 0.00037457793951034546, 0.31960952281951904, -0.2303963154554367, 0.21101003885269165, 0.23620574176311493, 0.26772192120552063, 0.6366463899612427, -0.14344680309295654, 0.11936232447624207, -0.10940807312726974, 0.24583938717842102, -0.21588338911533356, 0.016018342226743698, 0.2568393349647522, 0.01816292479634285, -0.11341002583503723, 0.15554237365722656, 0.06224997714161873, 0.033484384417533875, -0.18580250442028046, 0.014724411070346832, 0.4976820945739746, -0.022680658847093582, 0.38114896416664124, 0.28720277547836304, -0.03539661318063736, -0.10429657995700836, 0.054542429745197296, 0.15433669090270996, 0.2103145718574524, 0.5497240424156189, -0.32228076457977295, 0.16401661932468414, -0.15616995096206665, 0.033100731670856476, -0.010706298053264618, -0.3065338134765625, 0.046190135180950165, 0.07371708005666733, 0.02562800794839859, -0.1397121548652649, -0.12548892199993134, 0.35160574316978455, -0.2902527153491974, -0.12007685750722885, -0.22686924040317535, 0.07492081820964813, -0.142319917678833, 0.10956396162509918, -0.17311543226242065, -0.16980892419815063, -0.3732800781726837, -0.05689816176891327, -0.08002206683158875, -0.02845115214586258, 0.10868021100759506, 0.38778793811798096, -0.16573916375637054, -0.30985039472579956, 0.08447244763374329, 0.09710132330656052, 0.17056059837341309, -0.3105944097042084, 0.1344515085220337, 0.27241742610931396, 0.12776440382003784, 0.3165697455406189, 0.14864236116409302, 0.5456300973892212, 0.3749960660934448, -0.24483072757720947, 0.011622553691267967, 0.14870679378509521, -0.15716665983200073, 0.07537505030632019, 0.2999419867992401, 0.17943203449249268, 0.3049528896808624, 0.22859324514865875, 0.268378347158432, -0.10666905343532562, 0.0680551752448082, -0.02319987490773201, 0.24831964075565338, -0.154508575797081, 0.3747861683368683, -0.1099100112915039, -0.08394120633602142, -0.3794900178909302, -0.07222630828619003, -0.3162464201450348, -0.16495801508426666, 0.3867693543434143, -0.12320768088102341, 0.0033521559089422226, 0.00405622273683548, 0.08443102985620499, -0.19057318568229675, 0.49925416707992554, 0.39441412687301636, 0.10963345319032669, -0.47552260756492615, -0.09285007417201996, -0.5908117294311523, -0.05581299215555191, -0.0984438806772232, -0.07599116861820221, 0.2061026692390442, 0.22988300025463104, -0.12043767422437668, 0.04571172222495079, 0.09333173930644989, 0.13675886392593384, -0.0401352234184742, 0.21723027527332306, -0.2901266813278198, -0.09016230702400208, -0.20901460945606232, 0.055876925587654114, -0.1663665920495987, -0.16740499436855316, 0.08281853795051575, -0.5049973726272583, 0.036049291491508484, 0.0008963886648416519, -0.37204697728157043, 0.18054097890853882, 0.3742024600505829, 0.2840797007083893, -0.09685070067644119, 0.7990046739578247, 0.06983327120542526, -0.03496450185775757, -0.26179471611976624, -0.392507404088974, -0.19677428901195526, 0.4153388440608978, 0.26451852917671204, 0.3011761009693146, -0.16916969418525696, 0.021093282848596573, -0.3125961720943451, 0.3212580680847168, -0.08245538175106049, -0.16788235306739807, -0.35405677556991577, -0.19238154590129852, -0.020094309002161026, 0.03309662267565727, 0.25038769841194153, 0.1431870460510254, -0.06786393374204636, 0.19118134677410126, -0.20780134201049805, -0.3176257610321045, 0.5762025713920593, -0.09044942259788513, -0.15536071360111237, -0.16848665475845337, 0.09653906524181366, 0.27501749992370605, 0.06615640968084335, -0.5203392505645752, 0.09408273547887802, 0.3871852159500122, -0.1895412802696228, -0.1051003485918045, 0.16406972706317902, 0.2043439894914627, 0.10316501557826996, -0.0863083079457283, -0.07620003819465637, 0.04985965043306351, -0.14770498871803284, -0.05657457932829857, 0.041075341403484344 ]
https://github.com/huggingface/datasets/issues/876
imdb dataset cannot be loaded
Hi ! I just tried in 1.8.0 and it worked fine. Can you try again ? Maybe the dataset host had some issues that are fixed now
Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ```
27
imdb dataset cannot be loaded Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ``` Hi ! I just tried in 1.8.0 and it worked fine. Can you try again ? Maybe the dataset host had some issues that are fixed now
[ -0.5215908288955688, -0.03979785740375519, -0.12092772126197815, 0.4138285517692566, 0.30875957012176514, 0.34421873092651367, 0.4162840247154236, 0.41161787509918213, 0.18930847942829132, -0.12591011822223663, -0.24593807756900787, -0.036380235105752945, -0.23879988491535187, 0.11891881376504898, -0.10061249881982803, -0.19338908791542053, -0.10938987880945206, -0.008349090814590454, 0.008231975138187408, 0.02481035143136978, -0.19548316299915314, 0.26311105489730835, -0.407417893409729, -0.007380962371826172, -0.5533475875854492, -0.20760458707809448, 0.06644148379564285, 0.24647295475006104, -0.18789274990558624, -0.3777329921722412, 0.4374704360961914, 0.033827174454927444, 0.29852232336997986, 0.42653942108154297, -0.00010842887422768399, 0.06612159311771393, 0.5560091137886047, -0.14080367982387543, -0.3377954661846161, -0.28552812337875366, -0.29108718037605286, -0.07343383133411407, 0.2554955780506134, -0.2121904194355011, -0.061039164662361145, -0.2735610604286194, -0.0876791924238205, -0.4681128263473511, 0.3000151515007019, 0.4594835042953491, 0.25512421131134033, -0.03052249178290367, 0.07603719830513, -0.14565667510032654, 0.09943002462387085, 0.1825695037841797, 0.009691992774605751, 0.30303871631622314, 0.07601161301136017, 0.01738877221941948, 0.21452279388904572, 0.041525598615407944, -0.25405168533325195, -0.03798845782876015, 0.2962741553783417, 0.027488399296998978, 0.06730075180530548, -0.467769593000412, 0.03473779559135437, 0.2485593855381012, 0.6612054109573364, -0.08360401540994644, -0.3514133095741272, -0.05729011073708534, 0.1594480723142624, -0.2821144163608551, 0.11256968975067139, 0.2813580632209778, -0.12026575207710266, 0.10454107820987701, -0.4093436002731323, -0.06622003018856049, -0.08582493662834167, 0.17703640460968018, 0.030060678720474243, -0.07027633488178253, 0.05906878411769867, 0.0750906690955162, 0.222322016954422, -0.10040879249572754, 0.3060327470302582, 0.02870650216937065, 0.011488713324069977, 0.16014766693115234, -0.2722390592098236, 0.06165464222431183, -0.30993586778640747, 0.0013539865612983704, -0.06961105763912201, 0.24964170157909393, -0.20697596669197083, -0.02108367159962654, -0.029211096465587616, 0.2595464587211609, 0.2834867238998413, 0.13758417963981628, 0.038836315274238586, 0.4064241945743561, 0.14483898878097534, 0.23831288516521454, -0.2738071084022522, -0.10596158355474472, -0.22602200508117676, -0.15017016232013702, 0.0980357825756073, 0.1302989423274994, 0.025858823210000992, -0.1813313364982605, -0.5039570927619934, -0.01794346049427986, -0.18610554933547974, 0.0018604113720357418, 0.37570080161094666, 0.39405322074890137, -0.10823416709899902, 0.17110273241996765, 0.18745753169059753, 0.3105209469795227, -0.1181693971157074, -0.06304202973842621, -0.1855240911245346, 0.2731190025806427, -0.18487629294395447, 0.07852090150117874, 0.4066709280014038, -0.14322659373283386, 0.40706202387809753, 0.013880071230232716, 0.09884469211101532, -0.20597705245018005, 0.19625841081142426, -0.3265182077884674, 0.047470975667238235, 0.30694738030433655, 0.2882388234138489, 0.17498283088207245, 0.17507986724376678, -0.022215761244297028, -0.12192597985267639, 0.04349030926823616, -0.2463381588459015, -0.4131356477737427, -0.18293163180351257, 0.2787933945655823, -0.003636609762907028, -0.05503953993320465, -0.4261492192745209, -0.02929723635315895, 0.04318893328309059, -0.188100665807724, -0.17584586143493652, -0.30514055490493774, -0.17556287348270416, -0.12360324710607529, 0.4283628463745117, 0.47422122955322266, -0.281943142414093, -0.06770172715187073, -0.35458773374557495, -0.1019601821899414, 0.20716577768325806, 0.25222331285476685, -0.30165961384773254, 0.2245970070362091, -0.3644294738769531, 0.10269328951835632, 0.3114503026008606, -0.4896247088909149, -0.1315896064043045, 0.30700966715812683, 0.1519509106874466, 0.11789873987436295, 0.05106991529464722, 0.11782167106866837, 0.32348862290382385, 0.015281599014997482, 0.23739594221115112, 0.4272213578224182, -0.03330513834953308, -0.15667873620986938, -0.06332508474588394, -0.2016085982322693, 0.1954360008239746, 0.36010250449180603, 0.30826178193092346, 0.002115212380886078, 0.0012144595384597778, 0.2097966969013214, 0.2742595076560974, 0.1175740659236908, -0.040872134268283844, 0.20631957054138184, -0.05262622609734535, 0.3531845808029175, -0.054150473326444626, -0.199060320854187, -0.44114381074905396, 0.1967228651046753, 0.2666054368019104, -0.04650985449552536, -0.15744270384311676, -0.1011870950460434, -0.2758455276489258, -0.17938853800296783, -0.2391403168439865, 0.003442389890551567, 0.18499711155891418, -0.08312585949897766, -0.013920987024903297, 0.05820149555802345, -0.4372185468673706, 0.3967025876045227, -0.10662038624286652, 0.14306983351707458, -0.34540218114852905, 0.3588089048862457, -0.17270350456237793, -0.22369566559791565, 0.1571168452501297, 0.11874464899301529, 0.1863100528717041, -0.24966663122177124, -0.04658607766032219, 0.43849632143974304, 0.3271717131137848, -0.028226107358932495, -0.07127580791711807, -0.22272951900959015, 0.1980137974023819, -0.3737984001636505, 0.1602865308523178, -0.13035063445568085, 0.05175181105732918, -0.135439932346344, -0.05916935205459595, 0.16390639543533325, -0.2817705571651459, 0.24405592679977417, 0.22803477942943573, 0.13866432011127472, 0.25115078687667847, -0.09945845603942871, -0.02112841047346592, -0.4406084418296814, 0.18278974294662476, -0.019027788192033768, 0.018330972641706467, -0.01458905078470707, -0.26297128200531006, -0.2127719521522522, 0.4115474224090576, 0.14765000343322754, -0.05337908864021301, 0.13881829380989075, -0.17170730233192444, 0.10229770094156265, -0.07619857788085938, 0.15129655599594116, 0.24948710203170776, 0.1761392503976822, -0.09010446071624756, -0.07389332354068756, 0.137101411819458, -0.1112426221370697, 0.2687685489654541, 0.0630815327167511, 0.13869847357273102, 0.3271506428718567, -0.1574338674545288, -0.04321659356355667, -0.3005731701850891, -0.36265575885772705, 0.11642976850271225, 0.26614636182785034, -0.37613317370414734, -0.07215573638677597, -0.31373196840286255, -0.17083966732025146, -0.08896251767873764, -0.32901400327682495, -0.040705952793359756, -0.32658302783966064, -0.08765673637390137, 0.3447709083557129, 0.3259417414665222, 0.1502281278371811, -0.2954142093658447, -0.1498263031244278, -0.05878908932209015, -0.047468893229961395, -0.075771264731884, -0.2140560895204544, -0.14742425084114075, 0.1250644028186798, 0.45191293954849243, 0.1995559185743332, 0.278973251581192, -0.39436060190200806, -0.0972728282213211, 0.021090209484100342, 0.15831372141838074, -0.05277419835329056, -0.1372922658920288, 0.19019316136837006, 0.11640577018260956, 0.24807564914226532, 0.11379894614219666, -0.5119876861572266, 0.33137446641921997, -0.14346015453338623, 0.07648300379514694, 0.15951856970787048, 0.07674600929021835, -0.07908865064382553, 0.014604996889829636, -0.4780644476413727, -0.48225414752960205, -0.33787867426872253, -0.08819377422332764, 0.16944313049316406, 0.0430154949426651, 0.2023380547761917, 0.1366272121667862, 0.11543102562427521, 0.31838250160217285, 0.1276841014623642, -0.029581768438220024, -0.3274247348308563, 0.32026582956314087, -0.23034074902534485, -0.16038259863853455, 0.24129518866539001, 0.10508187115192413, 0.1461462825536728, 0.008744263090193272, -0.4140421152114868, 0.09790095686912537, -0.061749622225761414, 0.15730853378772736, -0.09455373883247375, -0.14694976806640625, -0.04306161403656006, 0.06994065642356873, -0.04194459319114685, 0.047037288546562195, -0.09499786794185638, -0.037199102342128754, -0.04919819533824921, 0.16019846498966217, -0.1255301833152771, 0.5187346339225769, -0.3258310556411743, 0.5013354420661926, 0.29362285137176514, -0.20531462132930756, 0.37494969367980957, -0.192737877368927, 0.16458025574684143, -0.25010353326797485, -0.6196156740188599, -0.15460245311260223, -0.12972742319107056, -0.1464301496744156, -0.004847802221775055, -0.11204720288515091, -0.18945497274398804, -0.23245036602020264, 0.12645237147808075, -0.369600385427475, -0.15516012907028198, 0.0012163277715444565, -0.3850662112236023, 0.07587258517742157, -0.21246105432510376, 0.17716044187545776, -0.028401274234056473, -0.21887055039405823, 0.055568065494298935, 0.3343018889427185, 0.16103434562683105, -0.029078224673867226, -0.15142060816287994, -0.16636274755001068, -0.07662246376276016, 0.20004692673683167, 0.09129931032657623, 0.3703826367855072, -0.281360387802124, 0.13102534413337708, 0.09683923423290253, 0.20252692699432373, 0.721780002117157, -0.38613635301589966, 0.029387110844254494, 0.24998843669891357, -0.03606172278523445, -0.27881741523742676, -0.09031835198402405, -0.16898535192012787, 0.2853347063064575, 0.3045784831047058, 0.4047130346298218, -0.05902228131890297, -0.1351771205663681, 0.3005591928958893, 0.22683832049369812, -0.15105539560317993, -0.20415718853473663, -0.2009696662425995, -0.09616082161664963, -0.3041914999485016, -0.1563255786895752, 0.07618238776922226, 0.16811050474643707, -0.1662716567516327, -0.15483663976192474, -0.10710538923740387, -0.08600170910358429, 0.2872062921524048, 0.14290757477283478, 0.4447771906852722, 0.13645675778388977, 0.24284210801124573, 0.29425033926963806, -0.018297284841537476, 0.6086505055427551, 0.5828631520271301, -0.3432212173938751, -0.14987680315971375, -0.005440570414066315, -0.06425575166940689, 0.20229879021644592, 0.07193753868341446, -0.14820657670497894, -0.3828928470611572, -0.02344728261232376, 0.04701349139213562, 0.03672482445836067, 0.07398957759141922, 0.49982646107673645, -0.1790408492088318, -0.35525140166282654, -0.7226409912109375, 0.26654285192489624, 0.23975594341754913, 0.11217986047267914, 0.23702670633792877, 0.012427523732185364, -0.28505948185920715, 0.3875683546066284, 0.01341497153043747, 0.6175734996795654, -0.11116158962249756, -0.13543592393398285, -0.006220843642950058, 0.23965810239315033, 0.1921863704919815, -0.2774074077606201, 0.14783094823360443, -0.35724493861198425, -0.238685742020607, -0.11308258026838303, -0.17667052149772644, -0.06489216536283493, 0.11646071821451187, -0.2836248278617859, 0.25371500849723816, -0.43407225608825684, -0.19871097803115845, -0.336638480424881, 0.5193696022033691, -0.18240170180797577, -0.07923199236392975, -0.06007591634988785, 0.20072579383850098, -0.026053600013256073, 0.09329231083393097, 0.054248884320259094, 0.06647522747516632, -0.1279192417860031, 0.014065157622098923, -0.4498792290687561, 0.12065374106168747, -0.09124389290809631, 0.46744751930236816, -0.23630130290985107, -0.181773379445076, 0.14745336771011353, 0.2513224482536316, 0.18486765027046204, -0.10392159223556519, -0.061609625816345215, 0.14731773734092712, 0.19967803359031677, -0.24311469495296478, -0.07187993824481964, 0.06599133461713791, 0.5382041335105896, 0.018923722207546234, -0.20806105434894562, 0.17049413919448853, -0.019290896132588387, -0.09030525386333466, 0.21195897459983826, -0.1407051980495453, 0.23368149995803833, -0.3958044946193695, -0.3060356676578522, -0.18006527423858643, -0.016763916239142418, -0.08421799540519714, 0.15875042974948883, -0.08186812698841095, -0.03361734002828598, 0.2271251678466797, 0.1778801530599594, -0.21747320890426636, 0.006827065721154213, 0.39887717366218567, 0.0557018406689167, 0.2617914080619812, 0.6054590940475464, 0.33355945348739624, -0.18885989487171173, -0.26470261812210083, 0.14525583386421204, 0.18888117372989655, -0.3561071753501892, 0.1968366503715515, 0.07371973991394043, 0.2766791582107544, 0.17669840157032013, 0.08650540560483932, 0.14204595983028412, 0.0673733502626419, -0.13889668881893158, -0.5432533621788025, -0.24287547171115875, 0.23204956948757172, -0.15291473269462585, 0.19400927424430847, -0.14898495376110077, 0.03858812898397446, 0.036278530955314636, -0.08973768353462219, -0.30762600898742676, 0.17045629024505615, -0.3536536395549774, 0.02379595674574375, 0.033267728984355927, -0.12661439180374146, 0.1435001939535141, -0.11723360419273376, 0.20984359085559845, -0.14449793100357056, 0.042180441319942474, -0.22705838084220886, 0.006778290495276451, 0.08305850625038147, -0.07579897344112396, -0.20003704726696014, -0.24022731184959412, -0.18003739416599274, -0.24677157402038574, -0.11152326315641403, -0.1279413402080536, 0.22963449358940125, 0.10456430912017822, 0.2553446292877197, 0.10921841859817505, -0.14400792121887207, -0.15224753320217133, 0.12935905158519745, -0.07847096025943756, 0.10142026841640472, 0.0305774062871933, 0.07428332418203354, 0.12418687343597412, -0.010430090129375458, -0.2565322518348694, 0.025658994913101196, -0.03937414288520813, 0.00037457793951034546, 0.31960952281951904, -0.2303963154554367, 0.21101003885269165, 0.23620574176311493, 0.26772192120552063, 0.6366463899612427, -0.14344680309295654, 0.11936232447624207, -0.10940807312726974, 0.24583938717842102, -0.21588338911533356, 0.016018342226743698, 0.2568393349647522, 0.01816292479634285, -0.11341002583503723, 0.15554237365722656, 0.06224997714161873, 0.033484384417533875, -0.18580250442028046, 0.014724411070346832, 0.4976820945739746, -0.022680658847093582, 0.38114896416664124, 0.28720277547836304, -0.03539661318063736, -0.10429657995700836, 0.054542429745197296, 0.15433669090270996, 0.2103145718574524, 0.5497240424156189, -0.32228076457977295, 0.16401661932468414, -0.15616995096206665, 0.033100731670856476, -0.010706298053264618, -0.3065338134765625, 0.046190135180950165, 0.07371708005666733, 0.02562800794839859, -0.1397121548652649, -0.12548892199993134, 0.35160574316978455, -0.2902527153491974, -0.12007685750722885, -0.22686924040317535, 0.07492081820964813, -0.142319917678833, 0.10956396162509918, -0.17311543226242065, -0.16980892419815063, -0.3732800781726837, -0.05689816176891327, -0.08002206683158875, -0.02845115214586258, 0.10868021100759506, 0.38778793811798096, -0.16573916375637054, -0.30985039472579956, 0.08447244763374329, 0.09710132330656052, 0.17056059837341309, -0.3105944097042084, 0.1344515085220337, 0.27241742610931396, 0.12776440382003784, 0.3165697455406189, 0.14864236116409302, 0.5456300973892212, 0.3749960660934448, -0.24483072757720947, 0.011622553691267967, 0.14870679378509521, -0.15716665983200073, 0.07537505030632019, 0.2999419867992401, 0.17943203449249268, 0.3049528896808624, 0.22859324514865875, 0.268378347158432, -0.10666905343532562, 0.0680551752448082, -0.02319987490773201, 0.24831964075565338, -0.154508575797081, 0.3747861683368683, -0.1099100112915039, -0.08394120633602142, -0.3794900178909302, -0.07222630828619003, -0.3162464201450348, -0.16495801508426666, 0.3867693543434143, -0.12320768088102341, 0.0033521559089422226, 0.00405622273683548, 0.08443102985620499, -0.19057318568229675, 0.49925416707992554, 0.39441412687301636, 0.10963345319032669, -0.47552260756492615, -0.09285007417201996, -0.5908117294311523, -0.05581299215555191, -0.0984438806772232, -0.07599116861820221, 0.2061026692390442, 0.22988300025463104, -0.12043767422437668, 0.04571172222495079, 0.09333173930644989, 0.13675886392593384, -0.0401352234184742, 0.21723027527332306, -0.2901266813278198, -0.09016230702400208, -0.20901460945606232, 0.055876925587654114, -0.1663665920495987, -0.16740499436855316, 0.08281853795051575, -0.5049973726272583, 0.036049291491508484, 0.0008963886648416519, -0.37204697728157043, 0.18054097890853882, 0.3742024600505829, 0.2840797007083893, -0.09685070067644119, 0.7990046739578247, 0.06983327120542526, -0.03496450185775757, -0.26179471611976624, -0.392507404088974, -0.19677428901195526, 0.4153388440608978, 0.26451852917671204, 0.3011761009693146, -0.16916969418525696, 0.021093282848596573, -0.3125961720943451, 0.3212580680847168, -0.08245538175106049, -0.16788235306739807, -0.35405677556991577, -0.19238154590129852, -0.020094309002161026, 0.03309662267565727, 0.25038769841194153, 0.1431870460510254, -0.06786393374204636, 0.19118134677410126, -0.20780134201049805, -0.3176257610321045, 0.5762025713920593, -0.09044942259788513, -0.15536071360111237, -0.16848665475845337, 0.09653906524181366, 0.27501749992370605, 0.06615640968084335, -0.5203392505645752, 0.09408273547887802, 0.3871852159500122, -0.1895412802696228, -0.1051003485918045, 0.16406972706317902, 0.2043439894914627, 0.10316501557826996, -0.0863083079457283, -0.07620003819465637, 0.04985965043306351, -0.14770498871803284, -0.05657457932829857, 0.041075341403484344 ]
https://github.com/huggingface/datasets/issues/876
imdb dataset cannot be loaded
Ran into the same issue on a different dataset. I workedaround this by passing verification_mode='no_checks', to load_dataset method. Ref: https://github.com/huggingface/datasets/blob/871eabc7b23c27d677bc06ae2cc1ec3a2a04b10f/src/datasets/builder.py#L1141 Note that this is a hack before the root cause is solved.
Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ```
32
imdb dataset cannot be loaded Hi I am trying to load the imdb train dataset `dataset = datasets.load_dataset("imdb", split="train")` getting following errors, thanks for your help ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] >>> dataset = datasets.load_dataset("imdb", split="train") ``` Ran into the same issue on a different dataset. I workedaround this by passing verification_mode='no_checks', to load_dataset method. Ref: https://github.com/huggingface/datasets/blob/871eabc7b23c27d677bc06ae2cc1ec3a2a04b10f/src/datasets/builder.py#L1141 Note that this is a hack before the root cause is solved.
[ -0.5215908288955688, -0.03979785740375519, -0.12092772126197815, 0.4138285517692566, 0.30875957012176514, 0.34421873092651367, 0.4162840247154236, 0.41161787509918213, 0.18930847942829132, -0.12591011822223663, -0.24593807756900787, -0.036380235105752945, -0.23879988491535187, 0.11891881376504898, -0.10061249881982803, -0.19338908791542053, -0.10938987880945206, -0.008349090814590454, 0.008231975138187408, 0.02481035143136978, -0.19548316299915314, 0.26311105489730835, -0.407417893409729, -0.007380962371826172, -0.5533475875854492, -0.20760458707809448, 0.06644148379564285, 0.24647295475006104, -0.18789274990558624, -0.3777329921722412, 0.4374704360961914, 0.033827174454927444, 0.29852232336997986, 0.42653942108154297, -0.00010842887422768399, 0.06612159311771393, 0.5560091137886047, -0.14080367982387543, -0.3377954661846161, -0.28552812337875366, -0.29108718037605286, -0.07343383133411407, 0.2554955780506134, -0.2121904194355011, -0.061039164662361145, -0.2735610604286194, -0.0876791924238205, -0.4681128263473511, 0.3000151515007019, 0.4594835042953491, 0.25512421131134033, -0.03052249178290367, 0.07603719830513, -0.14565667510032654, 0.09943002462387085, 0.1825695037841797, 0.009691992774605751, 0.30303871631622314, 0.07601161301136017, 0.01738877221941948, 0.21452279388904572, 0.041525598615407944, -0.25405168533325195, -0.03798845782876015, 0.2962741553783417, 0.027488399296998978, 0.06730075180530548, -0.467769593000412, 0.03473779559135437, 0.2485593855381012, 0.6612054109573364, -0.08360401540994644, -0.3514133095741272, -0.05729011073708534, 0.1594480723142624, -0.2821144163608551, 0.11256968975067139, 0.2813580632209778, -0.12026575207710266, 0.10454107820987701, -0.4093436002731323, -0.06622003018856049, -0.08582493662834167, 0.17703640460968018, 0.030060678720474243, -0.07027633488178253, 0.05906878411769867, 0.0750906690955162, 0.222322016954422, -0.10040879249572754, 0.3060327470302582, 0.02870650216937065, 0.011488713324069977, 0.16014766693115234, -0.2722390592098236, 0.06165464222431183, -0.30993586778640747, 0.0013539865612983704, -0.06961105763912201, 0.24964170157909393, -0.20697596669197083, -0.02108367159962654, -0.029211096465587616, 0.2595464587211609, 0.2834867238998413, 0.13758417963981628, 0.038836315274238586, 0.4064241945743561, 0.14483898878097534, 0.23831288516521454, -0.2738071084022522, -0.10596158355474472, -0.22602200508117676, -0.15017016232013702, 0.0980357825756073, 0.1302989423274994, 0.025858823210000992, -0.1813313364982605, -0.5039570927619934, -0.01794346049427986, -0.18610554933547974, 0.0018604113720357418, 0.37570080161094666, 0.39405322074890137, -0.10823416709899902, 0.17110273241996765, 0.18745753169059753, 0.3105209469795227, -0.1181693971157074, -0.06304202973842621, -0.1855240911245346, 0.2731190025806427, -0.18487629294395447, 0.07852090150117874, 0.4066709280014038, -0.14322659373283386, 0.40706202387809753, 0.013880071230232716, 0.09884469211101532, -0.20597705245018005, 0.19625841081142426, -0.3265182077884674, 0.047470975667238235, 0.30694738030433655, 0.2882388234138489, 0.17498283088207245, 0.17507986724376678, -0.022215761244297028, -0.12192597985267639, 0.04349030926823616, -0.2463381588459015, -0.4131356477737427, -0.18293163180351257, 0.2787933945655823, -0.003636609762907028, -0.05503953993320465, -0.4261492192745209, -0.02929723635315895, 0.04318893328309059, -0.188100665807724, -0.17584586143493652, -0.30514055490493774, -0.17556287348270416, -0.12360324710607529, 0.4283628463745117, 0.47422122955322266, -0.281943142414093, -0.06770172715187073, -0.35458773374557495, -0.1019601821899414, 0.20716577768325806, 0.25222331285476685, -0.30165961384773254, 0.2245970070362091, -0.3644294738769531, 0.10269328951835632, 0.3114503026008606, -0.4896247088909149, -0.1315896064043045, 0.30700966715812683, 0.1519509106874466, 0.11789873987436295, 0.05106991529464722, 0.11782167106866837, 0.32348862290382385, 0.015281599014997482, 0.23739594221115112, 0.4272213578224182, -0.03330513834953308, -0.15667873620986938, -0.06332508474588394, -0.2016085982322693, 0.1954360008239746, 0.36010250449180603, 0.30826178193092346, 0.002115212380886078, 0.0012144595384597778, 0.2097966969013214, 0.2742595076560974, 0.1175740659236908, -0.040872134268283844, 0.20631957054138184, -0.05262622609734535, 0.3531845808029175, -0.054150473326444626, -0.199060320854187, -0.44114381074905396, 0.1967228651046753, 0.2666054368019104, -0.04650985449552536, -0.15744270384311676, -0.1011870950460434, -0.2758455276489258, -0.17938853800296783, -0.2391403168439865, 0.003442389890551567, 0.18499711155891418, -0.08312585949897766, -0.013920987024903297, 0.05820149555802345, -0.4372185468673706, 0.3967025876045227, -0.10662038624286652, 0.14306983351707458, -0.34540218114852905, 0.3588089048862457, -0.17270350456237793, -0.22369566559791565, 0.1571168452501297, 0.11874464899301529, 0.1863100528717041, -0.24966663122177124, -0.04658607766032219, 0.43849632143974304, 0.3271717131137848, -0.028226107358932495, -0.07127580791711807, -0.22272951900959015, 0.1980137974023819, -0.3737984001636505, 0.1602865308523178, -0.13035063445568085, 0.05175181105732918, -0.135439932346344, -0.05916935205459595, 0.16390639543533325, -0.2817705571651459, 0.24405592679977417, 0.22803477942943573, 0.13866432011127472, 0.25115078687667847, -0.09945845603942871, -0.02112841047346592, -0.4406084418296814, 0.18278974294662476, -0.019027788192033768, 0.018330972641706467, -0.01458905078470707, -0.26297128200531006, -0.2127719521522522, 0.4115474224090576, 0.14765000343322754, -0.05337908864021301, 0.13881829380989075, -0.17170730233192444, 0.10229770094156265, -0.07619857788085938, 0.15129655599594116, 0.24948710203170776, 0.1761392503976822, -0.09010446071624756, -0.07389332354068756, 0.137101411819458, -0.1112426221370697, 0.2687685489654541, 0.0630815327167511, 0.13869847357273102, 0.3271506428718567, -0.1574338674545288, -0.04321659356355667, -0.3005731701850891, -0.36265575885772705, 0.11642976850271225, 0.26614636182785034, -0.37613317370414734, -0.07215573638677597, -0.31373196840286255, -0.17083966732025146, -0.08896251767873764, -0.32901400327682495, -0.040705952793359756, -0.32658302783966064, -0.08765673637390137, 0.3447709083557129, 0.3259417414665222, 0.1502281278371811, -0.2954142093658447, -0.1498263031244278, -0.05878908932209015, -0.047468893229961395, -0.075771264731884, -0.2140560895204544, -0.14742425084114075, 0.1250644028186798, 0.45191293954849243, 0.1995559185743332, 0.278973251581192, -0.39436060190200806, -0.0972728282213211, 0.021090209484100342, 0.15831372141838074, -0.05277419835329056, -0.1372922658920288, 0.19019316136837006, 0.11640577018260956, 0.24807564914226532, 0.11379894614219666, -0.5119876861572266, 0.33137446641921997, -0.14346015453338623, 0.07648300379514694, 0.15951856970787048, 0.07674600929021835, -0.07908865064382553, 0.014604996889829636, -0.4780644476413727, -0.48225414752960205, -0.33787867426872253, -0.08819377422332764, 0.16944313049316406, 0.0430154949426651, 0.2023380547761917, 0.1366272121667862, 0.11543102562427521, 0.31838250160217285, 0.1276841014623642, -0.029581768438220024, -0.3274247348308563, 0.32026582956314087, -0.23034074902534485, -0.16038259863853455, 0.24129518866539001, 0.10508187115192413, 0.1461462825536728, 0.008744263090193272, -0.4140421152114868, 0.09790095686912537, -0.061749622225761414, 0.15730853378772736, -0.09455373883247375, -0.14694976806640625, -0.04306161403656006, 0.06994065642356873, -0.04194459319114685, 0.047037288546562195, -0.09499786794185638, -0.037199102342128754, -0.04919819533824921, 0.16019846498966217, -0.1255301833152771, 0.5187346339225769, -0.3258310556411743, 0.5013354420661926, 0.29362285137176514, -0.20531462132930756, 0.37494969367980957, -0.192737877368927, 0.16458025574684143, -0.25010353326797485, -0.6196156740188599, -0.15460245311260223, -0.12972742319107056, -0.1464301496744156, -0.004847802221775055, -0.11204720288515091, -0.18945497274398804, -0.23245036602020264, 0.12645237147808075, -0.369600385427475, -0.15516012907028198, 0.0012163277715444565, -0.3850662112236023, 0.07587258517742157, -0.21246105432510376, 0.17716044187545776, -0.028401274234056473, -0.21887055039405823, 0.055568065494298935, 0.3343018889427185, 0.16103434562683105, -0.029078224673867226, -0.15142060816287994, -0.16636274755001068, -0.07662246376276016, 0.20004692673683167, 0.09129931032657623, 0.3703826367855072, -0.281360387802124, 0.13102534413337708, 0.09683923423290253, 0.20252692699432373, 0.721780002117157, -0.38613635301589966, 0.029387110844254494, 0.24998843669891357, -0.03606172278523445, -0.27881741523742676, -0.09031835198402405, -0.16898535192012787, 0.2853347063064575, 0.3045784831047058, 0.4047130346298218, -0.05902228131890297, -0.1351771205663681, 0.3005591928958893, 0.22683832049369812, -0.15105539560317993, -0.20415718853473663, -0.2009696662425995, -0.09616082161664963, -0.3041914999485016, -0.1563255786895752, 0.07618238776922226, 0.16811050474643707, -0.1662716567516327, -0.15483663976192474, -0.10710538923740387, -0.08600170910358429, 0.2872062921524048, 0.14290757477283478, 0.4447771906852722, 0.13645675778388977, 0.24284210801124573, 0.29425033926963806, -0.018297284841537476, 0.6086505055427551, 0.5828631520271301, -0.3432212173938751, -0.14987680315971375, -0.005440570414066315, -0.06425575166940689, 0.20229879021644592, 0.07193753868341446, -0.14820657670497894, -0.3828928470611572, -0.02344728261232376, 0.04701349139213562, 0.03672482445836067, 0.07398957759141922, 0.49982646107673645, -0.1790408492088318, -0.35525140166282654, -0.7226409912109375, 0.26654285192489624, 0.23975594341754913, 0.11217986047267914, 0.23702670633792877, 0.012427523732185364, -0.28505948185920715, 0.3875683546066284, 0.01341497153043747, 0.6175734996795654, -0.11116158962249756, -0.13543592393398285, -0.006220843642950058, 0.23965810239315033, 0.1921863704919815, -0.2774074077606201, 0.14783094823360443, -0.35724493861198425, -0.238685742020607, -0.11308258026838303, -0.17667052149772644, -0.06489216536283493, 0.11646071821451187, -0.2836248278617859, 0.25371500849723816, -0.43407225608825684, -0.19871097803115845, -0.336638480424881, 0.5193696022033691, -0.18240170180797577, -0.07923199236392975, -0.06007591634988785, 0.20072579383850098, -0.026053600013256073, 0.09329231083393097, 0.054248884320259094, 0.06647522747516632, -0.1279192417860031, 0.014065157622098923, -0.4498792290687561, 0.12065374106168747, -0.09124389290809631, 0.46744751930236816, -0.23630130290985107, -0.181773379445076, 0.14745336771011353, 0.2513224482536316, 0.18486765027046204, -0.10392159223556519, -0.061609625816345215, 0.14731773734092712, 0.19967803359031677, -0.24311469495296478, -0.07187993824481964, 0.06599133461713791, 0.5382041335105896, 0.018923722207546234, -0.20806105434894562, 0.17049413919448853, -0.019290896132588387, -0.09030525386333466, 0.21195897459983826, -0.1407051980495453, 0.23368149995803833, -0.3958044946193695, -0.3060356676578522, -0.18006527423858643, -0.016763916239142418, -0.08421799540519714, 0.15875042974948883, -0.08186812698841095, -0.03361734002828598, 0.2271251678466797, 0.1778801530599594, -0.21747320890426636, 0.006827065721154213, 0.39887717366218567, 0.0557018406689167, 0.2617914080619812, 0.6054590940475464, 0.33355945348739624, -0.18885989487171173, -0.26470261812210083, 0.14525583386421204, 0.18888117372989655, -0.3561071753501892, 0.1968366503715515, 0.07371973991394043, 0.2766791582107544, 0.17669840157032013, 0.08650540560483932, 0.14204595983028412, 0.0673733502626419, -0.13889668881893158, -0.5432533621788025, -0.24287547171115875, 0.23204956948757172, -0.15291473269462585, 0.19400927424430847, -0.14898495376110077, 0.03858812898397446, 0.036278530955314636, -0.08973768353462219, -0.30762600898742676, 0.17045629024505615, -0.3536536395549774, 0.02379595674574375, 0.033267728984355927, -0.12661439180374146, 0.1435001939535141, -0.11723360419273376, 0.20984359085559845, -0.14449793100357056, 0.042180441319942474, -0.22705838084220886, 0.006778290495276451, 0.08305850625038147, -0.07579897344112396, -0.20003704726696014, -0.24022731184959412, -0.18003739416599274, -0.24677157402038574, -0.11152326315641403, -0.1279413402080536, 0.22963449358940125, 0.10456430912017822, 0.2553446292877197, 0.10921841859817505, -0.14400792121887207, -0.15224753320217133, 0.12935905158519745, -0.07847096025943756, 0.10142026841640472, 0.0305774062871933, 0.07428332418203354, 0.12418687343597412, -0.010430090129375458, -0.2565322518348694, 0.025658994913101196, -0.03937414288520813, 0.00037457793951034546, 0.31960952281951904, -0.2303963154554367, 0.21101003885269165, 0.23620574176311493, 0.26772192120552063, 0.6366463899612427, -0.14344680309295654, 0.11936232447624207, -0.10940807312726974, 0.24583938717842102, -0.21588338911533356, 0.016018342226743698, 0.2568393349647522, 0.01816292479634285, -0.11341002583503723, 0.15554237365722656, 0.06224997714161873, 0.033484384417533875, -0.18580250442028046, 0.014724411070346832, 0.4976820945739746, -0.022680658847093582, 0.38114896416664124, 0.28720277547836304, -0.03539661318063736, -0.10429657995700836, 0.054542429745197296, 0.15433669090270996, 0.2103145718574524, 0.5497240424156189, -0.32228076457977295, 0.16401661932468414, -0.15616995096206665, 0.033100731670856476, -0.010706298053264618, -0.3065338134765625, 0.046190135180950165, 0.07371708005666733, 0.02562800794839859, -0.1397121548652649, -0.12548892199993134, 0.35160574316978455, -0.2902527153491974, -0.12007685750722885, -0.22686924040317535, 0.07492081820964813, -0.142319917678833, 0.10956396162509918, -0.17311543226242065, -0.16980892419815063, -0.3732800781726837, -0.05689816176891327, -0.08002206683158875, -0.02845115214586258, 0.10868021100759506, 0.38778793811798096, -0.16573916375637054, -0.30985039472579956, 0.08447244763374329, 0.09710132330656052, 0.17056059837341309, -0.3105944097042084, 0.1344515085220337, 0.27241742610931396, 0.12776440382003784, 0.3165697455406189, 0.14864236116409302, 0.5456300973892212, 0.3749960660934448, -0.24483072757720947, 0.011622553691267967, 0.14870679378509521, -0.15716665983200073, 0.07537505030632019, 0.2999419867992401, 0.17943203449249268, 0.3049528896808624, 0.22859324514865875, 0.268378347158432, -0.10666905343532562, 0.0680551752448082, -0.02319987490773201, 0.24831964075565338, -0.154508575797081, 0.3747861683368683, -0.1099100112915039, -0.08394120633602142, -0.3794900178909302, -0.07222630828619003, -0.3162464201450348, -0.16495801508426666, 0.3867693543434143, -0.12320768088102341, 0.0033521559089422226, 0.00405622273683548, 0.08443102985620499, -0.19057318568229675, 0.49925416707992554, 0.39441412687301636, 0.10963345319032669, -0.47552260756492615, -0.09285007417201996, -0.5908117294311523, -0.05581299215555191, -0.0984438806772232, -0.07599116861820221, 0.2061026692390442, 0.22988300025463104, -0.12043767422437668, 0.04571172222495079, 0.09333173930644989, 0.13675886392593384, -0.0401352234184742, 0.21723027527332306, -0.2901266813278198, -0.09016230702400208, -0.20901460945606232, 0.055876925587654114, -0.1663665920495987, -0.16740499436855316, 0.08281853795051575, -0.5049973726272583, 0.036049291491508484, 0.0008963886648416519, -0.37204697728157043, 0.18054097890853882, 0.3742024600505829, 0.2840797007083893, -0.09685070067644119, 0.7990046739578247, 0.06983327120542526, -0.03496450185775757, -0.26179471611976624, -0.392507404088974, -0.19677428901195526, 0.4153388440608978, 0.26451852917671204, 0.3011761009693146, -0.16916969418525696, 0.021093282848596573, -0.3125961720943451, 0.3212580680847168, -0.08245538175106049, -0.16788235306739807, -0.35405677556991577, -0.19238154590129852, -0.020094309002161026, 0.03309662267565727, 0.25038769841194153, 0.1431870460510254, -0.06786393374204636, 0.19118134677410126, -0.20780134201049805, -0.3176257610321045, 0.5762025713920593, -0.09044942259788513, -0.15536071360111237, -0.16848665475845337, 0.09653906524181366, 0.27501749992370605, 0.06615640968084335, -0.5203392505645752, 0.09408273547887802, 0.3871852159500122, -0.1895412802696228, -0.1051003485918045, 0.16406972706317902, 0.2043439894914627, 0.10316501557826996, -0.0863083079457283, -0.07620003819465637, 0.04985965043306351, -0.14770498871803284, -0.05657457932829857, 0.041075341403484344 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
I see the issue happening again today - [nltk_data] Downloading package stopwords to /root/nltk_data... [nltk_data] Package stopwords is already up-to-date! Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-9-cd4bf8bea840> in <module>() 22 23 ---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train') 25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation') 26 test = load_dataset('cnn_dailymail', '3.0.0', split='test') 5 frames /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' Can someone please take a look ?
``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab
108
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error ``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab I see the issue happening again today - [nltk_data] Downloading package stopwords to /root/nltk_data... [nltk_data] Package stopwords is already up-to-date! Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602... --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-9-cd4bf8bea840> in <module>() 22 23 ---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train') 25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation') 26 test = load_dataset('cnn_dailymail', '3.0.0', split='test') 5 frames /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' Can someone please take a look ?
[ -0.2242928445339203, 0.14194601774215698, -0.022575892508029938, 0.2384321093559265, 0.38199472427368164, 0.1261650025844574, 0.6168983578681946, 0.21475985646247864, -0.023176833987236023, 0.13341309130191803, -0.16375632584095, 0.05823616683483124, -0.37595656514167786, -0.12307772785425186, 0.008583617396652699, 0.11496849358081818, -0.09640166908502579, 0.15829600393772125, -0.20510974526405334, -0.14228598773479462, -0.3901512622833252, 0.18647928535938263, -0.07681818306446075, 0.01599285751581192, -0.254440575838089, -0.20727312564849854, -0.11916949599981308, 0.47827211022377014, -0.22819197177886963, -0.34157100319862366, 0.2912243604660034, -0.19371338188648224, 0.25961312651634216, 0.6446202397346497, -0.00011036968498956412, 0.13481256365776062, 0.2574554681777954, -0.04598478600382805, -0.5990346670150757, -0.6107161045074463, -0.13449224829673767, -0.18107761442661285, 0.22242768108844757, -0.28574657440185547, -0.05457343906164169, 0.11204594373703003, 0.06253992766141891, 0.0195222869515419, 0.3589361906051636, 0.5676548480987549, 0.2382049858570099, 0.25008711218833923, -0.02146543189883232, -0.14232437312602997, -0.13942193984985352, 0.3917795419692993, -0.08329635113477707, 0.5298019647598267, -0.3784783184528351, -0.007454064209014177, 0.30099204182624817, 0.2560059428215027, -0.3467576503753662, 0.24812859296798706, 0.31058469414711, 0.09317091107368469, 0.2014937400817871, -0.3185792863368988, 0.010255808010697365, 0.05206438899040222, 0.4628160893917084, -0.3776457905769348, -0.21393230557441711, -0.02609611302614212, 0.0874805599451065, -0.45195117592811584, 0.34401413798332214, 0.3034410774707794, -0.13032948970794678, 0.0531829297542572, -0.14617440104484558, -0.14383819699287415, -0.18140968680381775, 0.4520488977432251, -0.17188316583633423, 0.21672753989696503, -0.0570032075047493, 0.03170167654752731, 0.040194299072027206, 0.05490010231733322, 0.5230493545532227, -0.20129205286502838, 0.11098386347293854, 0.16897624731063843, -0.025917161256074905, 0.06191704422235489, 0.2004220187664032, -0.1987338364124298, -0.19590267539024353, 0.1629696488380432, -0.08147267997264862, -0.27251529693603516, -0.03082117810845375, 0.04203656688332558, 0.05626033991575241, 0.1875983029603958, -0.087041936814785, 0.5960314273834229, 0.20500212907791138, 0.2587224543094635, -0.012604229152202606, -0.12888646125793457, -0.3524649739265442, -0.2497720867395401, 0.10273772478103638, 0.0556449331343174, 0.6368340849876404, 0.08087019622325897, -0.2626224160194397, -0.1706470400094986, -0.28750869631767273, 0.026670435443520546, 0.1824931502342224, 0.3770371377468109, 0.08792037516832352, -0.0015776567161083221, 0.10185271501541138, 0.2980034351348877, -0.06114015728235245, 0.3207467198371887, -0.22278910875320435, 0.21217584609985352, -0.11940519511699677, -0.03893444687128067, 0.2705807387828827, -0.2202291339635849, 0.12178418785333633, -0.1732526421546936, -0.013736896216869354, -0.006396830081939697, 0.15506115555763245, -0.17590072751045227, 0.07422474026679993, 0.507818341255188, -0.10871697962284088, 0.2788078486919403, 0.2708216905593872, 0.02655600756406784, -0.3172305226325989, 0.1326725035905838, -0.179332435131073, -0.40739578008651733, -0.08903542906045914, 0.19181963801383972, 0.04331967979669571, -0.1540219783782959, 0.0512392558157444, -0.20447443425655365, -0.151018887758255, -0.1646997481584549, -0.00492994487285614, -0.19149436056613922, -0.08781304210424423, -0.35970422625541687, 0.2943391501903534, 0.615234911441803, -0.39114269614219666, 0.00047860294580459595, -0.42503899335861206, -0.15409614145755768, 0.17082276940345764, 0.28259119391441345, -0.1810849905014038, 0.41825154423713684, -0.2191808670759201, -0.21099784970283508, 0.4664490222930908, -0.40390390157699585, -0.4069175720214844, 0.1619243323802948, -0.16908490657806396, -0.023148981854319572, 0.01432453840970993, 0.19509300589561462, -0.16376851499080658, 0.08746544271707535, 0.0317934975028038, 0.3440907597541809, -0.014082318171858788, 0.0791541114449501, -0.09520308673381805, -0.28910014033317566, 0.14944273233413696, 0.13948404788970947, 0.2537144124507904, 0.20653748512268066, 0.0017705708742141724, 0.05744437128305435, 0.03453632444143295, -0.13401508331298828, -0.019938642159104347, 0.19302953779697418, 0.4896598756313324, 0.07062538713216782, -0.3033568859100342, -0.008035760372877121, -0.5152106881141663, 0.11546466499567032, 0.05068051815032959, 0.26885953545570374, -0.24434377253055573, 0.04758088290691376, -0.28074297308921814, -0.12132126837968826, -0.251871794462204, -0.07208023965358734, 0.14134396612644196, 0.36262378096580505, 0.06021658703684807, 0.06581731140613556, -0.28758013248443604, 0.26500824093818665, 0.05553637444972992, 0.1482609361410141, -0.1362416297197342, 0.4147193133831024, -0.1979312151670456, -0.062430672347545624, -0.043607667088508606, 0.13523277640342712, 0.23459568619728088, -0.14465303719043732, -0.13017573952674866, 0.3645673394203186, -0.15087828040122986, -0.07732555270195007, 0.03983414173126221, -0.10547660291194916, 0.07364768534898758, -0.03638311102986336, 0.23429545760154724, 0.3620506525039673, 0.1599351316690445, -0.04314415529370308, -0.10023871809244156, 0.29040980339050293, 0.16195163130760193, 0.03900735452771187, 0.15386976301670074, -0.037143029272556305, 0.03958916664123535, -0.05552027374505997, 0.10829319059848785, -0.04127517342567444, 0.21163395047187805, 0.09974299371242523, 0.473999559879303, 0.02275802195072174, -0.13076439499855042, -0.3711325526237488, 0.2705957293510437, -0.13470572233200073, 0.1444207727909088, 0.15061551332473755, -0.2888505160808563, 0.09924539178609848, -0.19000329077243805, 0.14723344147205353, 0.6052939295768738, 0.11647140234708786, 0.03250417858362198, 0.1258142739534378, -0.08709027618169785, -0.07045219838619232, 0.2077789604663849, 0.08836480975151062, 0.25692591071128845, 0.21608999371528625, 0.06952682137489319, 0.062028128653764725, -0.3969854414463043, -0.2876628637313843, 0.0426684245467186, 0.41614505648612976, -0.39316245913505554, 0.059591978788375854, -0.12448327243328094, -0.21660485863685608, -0.09777338057756424, -0.5352479219436646, -0.07868994772434235, -0.315572053194046, -0.15556158125400543, 0.17356882989406586, 0.13676011562347412, 0.1662631630897522, -0.12104271352291107, -0.12622900307178497, 0.1058901846408844, -0.4859182834625244, -0.2068849503993988, -0.04847647249698639, -0.01748831197619438, 0.06513386964797974, 0.28044968843460083, -0.10328427702188492, 0.24762938916683197, -0.13129785656929016, -0.12177947908639908, -0.18639856576919556, -0.09073673188686371, -0.08353108167648315, -0.10422654449939728, 0.20843683183193207, 0.26445186138153076, 0.35428208112716675, 0.04679013043642044, -0.19472149014472961, 0.36193087697029114, -0.18281354010105133, 0.022310351952910423, 0.3297630846500397, -0.12602917850017548, -0.013416538015007973, -0.060309916734695435, -0.545813798904419, -0.5458035469055176, -0.35746338963508606, -0.11933504045009613, 0.1282772719860077, 0.1643211543560028, 0.43905332684516907, 0.14954271912574768, 0.19396384060382843, -0.10657356679439545, 0.004157481249421835, -0.027233745902776718, -0.15406766533851624, 0.4063127934932709, -0.28775230050086975, -0.24397055804729462, 0.17135322093963623, -0.04053107649087906, 0.19018881022930145, -0.1609371304512024, -0.49399393796920776, -0.2556856870651245, -0.07315199077129364, 0.038228970021009445, -0.19877156615257263, -0.05136263370513916, 0.21497158706188202, 0.09620222449302673, -0.10095467418432236, 0.15196192264556885, -0.13013990223407745, -0.04967615753412247, 0.16874730587005615, 0.020316101610660553, -0.21992817521095276, 0.5267877578735352, -0.2912869155406952, 0.5844212770462036, 0.1298200488090515, -0.09765951335430145, 0.32871416211128235, -0.20170371234416962, 0.43552130460739136, -0.210722416639328, -0.5223433971405029, -0.0787452831864357, 0.2892431616783142, -0.179004967212677, 0.18003322184085846, 0.05656064301729202, -0.2591913938522339, -0.26430073380470276, -0.044401705265045166, -0.37798425555229187, -0.07434630393981934, 0.11863824725151062, -0.017985522747039795, 0.07816524803638458, -0.05927755683660507, 0.09652139991521835, -0.15041711926460266, -0.16989415884017944, -0.12164333462715149, 0.3782086968421936, 0.019080892205238342, 0.1019873172044754, -0.028879493474960327, 0.027093347162008286, -0.31456267833709717, 0.22980692982673645, -0.052073173224925995, 0.07154726982116699, -0.21872161328792572, 0.08311580866575241, -0.02851119637489319, 0.02931087464094162, 0.36129435896873474, -0.09238756448030472, 0.011215094476938248, 0.4276464879512787, 0.07234523445367813, -0.4850645363330841, -0.09465885907411575, -0.27619972825050354, 0.1676739603281021, -0.0012728311121463776, 0.20475009083747864, -0.11704528331756592, -0.16770808398723602, 0.39387091994285583, 0.2733164131641388, -0.07975422590970993, -0.3248061537742615, -0.46824249625205994, -0.3894968628883362, -0.4203393757343292, -0.07653450220823288, -0.12504059076309204, 0.07565654069185257, 0.10526233166456223, -0.12577274441719055, -0.03646127134561539, 0.020461060106754303, 0.11456220597028732, -0.01409676019102335, 0.2421564757823944, 0.06333697587251663, 0.12614579498767853, 0.12316761165857315, 0.1575559377670288, 0.3707537353038788, 0.5872364044189453, -0.10243771970272064, -0.3017362654209137, -0.0854128748178482, 0.13888587057590485, 0.06396172940731049, 0.21510054171085358, -0.20148082077503204, -0.34293708205223083, 0.0943884402513504, 0.19149833917617798, 0.04166119545698166, -0.03606132045388222, 0.5686708688735962, -0.1586034595966339, -0.3970259726047516, -0.2941639721393585, 0.4028090238571167, -0.13274164497852325, 0.17458279430866241, 0.2641448676586151, -0.16212207078933716, -0.19398601353168488, 0.11448440700769424, -0.2864454984664917, 0.7768808603286743, -0.11218485236167908, 0.21498851478099823, 0.6759076714515686, 0.10972175002098083, 0.4076380431652069, -0.011414796113967896, 0.13721615076065063, -0.3117958903312683, -0.183533176779747, -0.15314076840877533, -0.2621162533760071, 0.09902682900428772, 0.2857245206832886, -0.15700216591358185, 0.413824200630188, -0.2599775791168213, 0.10280661284923553, -0.12730126082897186, 0.16036106646060944, -0.0852789580821991, 0.08612670004367828, -0.30970048904418945, 0.18090273439884186, 0.023454535752534866, 0.388629287481308, -0.22986692190170288, 0.10795589536428452, -0.151260644197464, -0.23455023765563965, 0.002514295279979706, 0.12334958463907242, -0.41994887590408325, 0.2769889831542969, -0.01762581244111061, -0.16460737586021423, -0.18694081902503967, 0.247104674577713, -0.07044456899166107, -0.09758026897907257, -0.11746525764465332, 0.09919750690460205, -0.1049693152308464, -0.09004196524620056, -0.1319454461336136, 0.043658383190631866, 0.29799723625183105, -0.09784180670976639, -0.2941856384277344, 0.06571660935878754, -0.14507322013378143, -0.27952080965042114, 0.22773629426956177, 0.05663696676492691, 0.2674984633922577, -0.35831218957901, -0.28081652522087097, -0.040181517601013184, -0.052198879420757294, -0.07768700271844864, 0.14193139970302582, 0.003922171890735626, 0.019713079556822777, 0.07144759595394135, -0.24350027740001678, -0.3559814691543579, -0.16121311485767365, 0.2835134267807007, -0.2098853588104248, 0.06074068695306778, 0.5739114284515381, 0.13685861229896545, -0.20890334248542786, -0.3013285994529724, 0.1953062117099762, 0.03916331008076668, -0.17534184455871582, 0.2251400500535965, 0.23657499253749847, 0.2649999260902405, -0.01255421806126833, 0.25551068782806396, 0.223735511302948, -0.06297410279512405, -0.19746553897857666, -0.30729347467422485, -0.17112968862056732, 0.028605733066797256, 0.09784002602100372, 0.2520791292190552, 0.08839934319257736, 0.06310980021953583, 0.3833882808685303, -0.2658511698246002, -0.3185986280441284, 0.011983999982476234, -0.016286665573716164, -0.06122150272130966, 0.07422418147325516, -0.059522755444049835, 0.5541496276855469, 0.012094784528017044, 0.21479737758636475, -0.33515846729278564, -0.06588700413703918, -0.28230932354927063, -0.019231576472520828, 0.12739726901054382, 0.12418413907289505, -0.11537782102823257, 0.08203507959842682, -0.2575688064098358, -0.21829088032245636, -0.12886545062065125, -0.05567943677306175, 0.2382221221923828, -0.06395955383777618, 0.14933368563652039, 0.05890906602144241, -0.07905643433332443, -0.1343446671962738, 0.060204505920410156, -0.25758522748947144, 0.0918632298707962, 0.037909865379333496, 0.14055268466472626, 0.21135547757148743, -0.13552437722682953, -0.41857194900512695, -0.049428947269916534, 0.03348517417907715, 0.026234515011310577, 0.2199244499206543, -0.18697161972522736, -0.01010364294052124, -0.007282479200512171, 0.358844518661499, 0.19042348861694336, -0.28650060296058655, 0.054069891571998596, 0.2150324583053589, 0.21829229593276978, -0.28869518637657166, 0.07968935370445251, -0.04440684989094734, 0.06192390248179436, 0.10277178883552551, 0.19136857986450195, -0.36246976256370544, 0.0646897554397583, -0.19608984887599945, 0.03154731169342995, 0.38882869482040405, -0.19769030809402466, 0.05164971575140953, 0.39983874559402466, -0.17169521749019623, 0.06772881746292114, 0.28481802344322205, 0.044519972056150436, 0.10667296499013901, 0.5403019785881042, -0.1691652536392212, 0.027433421462774277, -0.27490824460983276, -0.11549928784370422, 0.009339459240436554, -0.3157515227794647, 0.05279671773314476, 0.14991098642349243, -0.027591660618782043, -0.006131820380687714, -0.15019626915454865, 0.27253618836402893, -0.45939940214157104, 0.12138210982084274, -0.3764192759990692, 0.37778714299201965, -0.1425219476222992, 0.16254150867462158, -0.15795746445655823, 0.010523281991481781, -0.012091197073459625, 0.04461697116494179, 0.019514672458171844, -0.2471570521593094, 0.24122226238250732, 0.4903676509857178, -0.119479238986969, -0.1413525491952896, 0.3903646469116211, 0.2625903785228729, -0.1352919340133667, -0.23590224981307983, 0.30254632234573364, 0.30347418785095215, 0.12000063061714172, -0.04925680533051491, 0.48707452416419983, 0.42694225907325745, 0.40906232595443726, 0.003901938907802105, 0.2013230174779892, -0.010011626407504082, -0.18893128633499146, -0.021495796740055084, 0.08820054680109024, -0.05504578351974487, 0.5318028330802917, 0.16388483345508575, 0.2567687928676605, -0.24685357511043549, 0.18549615144729614, 0.013369720429182053, -0.01594928652048111, -0.12920913100242615, 0.6912087798118591, -0.25647926330566406, -0.10568985342979431, -0.233110249042511, 0.05443738028407097, -0.528907060623169, 0.25208422541618347, 0.35357627272605896, 0.0812644511461258, 0.10963598638772964, 0.07250581681728363, 0.0778280645608902, 0.044587142765522, 0.27820509672164917, 0.3427440822124481, 0.3053829073905945, -0.5661407113075256, 0.02439192682504654, -0.6365788578987122, 0.17119018733501434, -0.28920406103134155, -0.04344911873340607, -0.180650532245636, -0.015653878450393677, -0.13643214106559753, 0.12965939939022064, 0.12616635859012604, 0.05368420109152794, -0.053469788283109665, -0.10564669966697693, -0.28983771800994873, -0.09530408680438995, -0.06266570091247559, 0.02572353184223175, 0.015950273722410202, -0.49501925706863403, 0.024820033460855484, -0.41317978501319885, 0.0006353482604026794, 0.027058761566877365, -0.1335083246231079, 0.039698194712400436, 0.36116304993629456, 0.45333755016326904, -0.02638913132250309, 0.5661261081695557, -0.06055836379528046, -0.1965639442205429, -0.19135335087776184, -0.2649552822113037, -0.15979982912540436, 0.22946763038635254, 0.14610376954078674, 0.3851698338985443, -0.30641430616378784, -0.00876060500741005, -0.42700788378715515, 0.29012981057167053, -0.03781283274292946, -0.06739513576030731, -0.20098641514778137, 0.002369457855820656, -0.13162031769752502, 0.1983625590801239, 0.14646072685718536, -0.015197321772575378, -0.08407703042030334, 0.18836472928524017, -0.2635793685913086, -0.38849204778671265, 0.46128425002098083, -0.26340892910957336, -0.24366174638271332, 0.042876701802015305, 0.16999958455562592, -0.09318573027849197, 0.17881788313388824, -0.48398110270500183, 0.3811464011669159, 0.4383368194103241, 0.16402989625930786, -0.21903781592845917, 0.13784582912921906, 0.0010959086939692497, 0.13838428258895874, 0.0792408287525177, 0.4123993217945099, 0.007534284144639969, -0.382577508687973, -0.034081827849149704, -0.11865521967411041 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
> atal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] > > NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' > > Can someone please take a look ? 2 short-term workarounds: 1. Use this line instead `dataset = load_dataset('ccdv/cnn_dailymail', '3.0.0')`. [In a related issue](https://github.com/huggingface/datasets/issues/996#issuecomment-997343101), this person mentioned another data source copy that just works. 2. Use the same data source, but edit the urls. Instead of google drive quota problems mentioned in #996, I was getting the "can't scan this file for viruses" problem, which results in that prompted html getting downloaded instead of the files. You can get around this by: 1. Look at the traceback and find out where `cnn_dailymail.py` is on your computer. 2. Edit the `cnn_stories` and `dm_stories` url's by adding the following to the end of them `&confirm=t`. This should be around line 67. 3. You may have to remove those confirmation html files in your download directory (`~/.cache/huggingface/datasets/downloads` for me) so that they don't get in the way of the new download attempts. Either method works for me. I would've made a PR, but not sure if they want to go with the new ccdv/cnn_dailymail source or not.
``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab
199
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error ``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab > atal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] > > NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' > > Can someone please take a look ? 2 short-term workarounds: 1. Use this line instead `dataset = load_dataset('ccdv/cnn_dailymail', '3.0.0')`. [In a related issue](https://github.com/huggingface/datasets/issues/996#issuecomment-997343101), this person mentioned another data source copy that just works. 2. Use the same data source, but edit the urls. Instead of google drive quota problems mentioned in #996, I was getting the "can't scan this file for viruses" problem, which results in that prompted html getting downloaded instead of the files. You can get around this by: 1. Look at the traceback and find out where `cnn_dailymail.py` is on your computer. 2. Edit the `cnn_stories` and `dm_stories` url's by adding the following to the end of them `&confirm=t`. This should be around line 67. 3. You may have to remove those confirmation html files in your download directory (`~/.cache/huggingface/datasets/downloads` for me) so that they don't get in the way of the new download attempts. Either method works for me. I would've made a PR, but not sure if they want to go with the new ccdv/cnn_dailymail source or not.
[ -0.2242928445339203, 0.14194601774215698, -0.022575892508029938, 0.2384321093559265, 0.38199472427368164, 0.1261650025844574, 0.6168983578681946, 0.21475985646247864, -0.023176833987236023, 0.13341309130191803, -0.16375632584095, 0.05823616683483124, -0.37595656514167786, -0.12307772785425186, 0.008583617396652699, 0.11496849358081818, -0.09640166908502579, 0.15829600393772125, -0.20510974526405334, -0.14228598773479462, -0.3901512622833252, 0.18647928535938263, -0.07681818306446075, 0.01599285751581192, -0.254440575838089, -0.20727312564849854, -0.11916949599981308, 0.47827211022377014, -0.22819197177886963, -0.34157100319862366, 0.2912243604660034, -0.19371338188648224, 0.25961312651634216, 0.6446202397346497, -0.00011036968498956412, 0.13481256365776062, 0.2574554681777954, -0.04598478600382805, -0.5990346670150757, -0.6107161045074463, -0.13449224829673767, -0.18107761442661285, 0.22242768108844757, -0.28574657440185547, -0.05457343906164169, 0.11204594373703003, 0.06253992766141891, 0.0195222869515419, 0.3589361906051636, 0.5676548480987549, 0.2382049858570099, 0.25008711218833923, -0.02146543189883232, -0.14232437312602997, -0.13942193984985352, 0.3917795419692993, -0.08329635113477707, 0.5298019647598267, -0.3784783184528351, -0.007454064209014177, 0.30099204182624817, 0.2560059428215027, -0.3467576503753662, 0.24812859296798706, 0.31058469414711, 0.09317091107368469, 0.2014937400817871, -0.3185792863368988, 0.010255808010697365, 0.05206438899040222, 0.4628160893917084, -0.3776457905769348, -0.21393230557441711, -0.02609611302614212, 0.0874805599451065, -0.45195117592811584, 0.34401413798332214, 0.3034410774707794, -0.13032948970794678, 0.0531829297542572, -0.14617440104484558, -0.14383819699287415, -0.18140968680381775, 0.4520488977432251, -0.17188316583633423, 0.21672753989696503, -0.0570032075047493, 0.03170167654752731, 0.040194299072027206, 0.05490010231733322, 0.5230493545532227, -0.20129205286502838, 0.11098386347293854, 0.16897624731063843, -0.025917161256074905, 0.06191704422235489, 0.2004220187664032, -0.1987338364124298, -0.19590267539024353, 0.1629696488380432, -0.08147267997264862, -0.27251529693603516, -0.03082117810845375, 0.04203656688332558, 0.05626033991575241, 0.1875983029603958, -0.087041936814785, 0.5960314273834229, 0.20500212907791138, 0.2587224543094635, -0.012604229152202606, -0.12888646125793457, -0.3524649739265442, -0.2497720867395401, 0.10273772478103638, 0.0556449331343174, 0.6368340849876404, 0.08087019622325897, -0.2626224160194397, -0.1706470400094986, -0.28750869631767273, 0.026670435443520546, 0.1824931502342224, 0.3770371377468109, 0.08792037516832352, -0.0015776567161083221, 0.10185271501541138, 0.2980034351348877, -0.06114015728235245, 0.3207467198371887, -0.22278910875320435, 0.21217584609985352, -0.11940519511699677, -0.03893444687128067, 0.2705807387828827, -0.2202291339635849, 0.12178418785333633, -0.1732526421546936, -0.013736896216869354, -0.006396830081939697, 0.15506115555763245, -0.17590072751045227, 0.07422474026679993, 0.507818341255188, -0.10871697962284088, 0.2788078486919403, 0.2708216905593872, 0.02655600756406784, -0.3172305226325989, 0.1326725035905838, -0.179332435131073, -0.40739578008651733, -0.08903542906045914, 0.19181963801383972, 0.04331967979669571, -0.1540219783782959, 0.0512392558157444, -0.20447443425655365, -0.151018887758255, -0.1646997481584549, -0.00492994487285614, -0.19149436056613922, -0.08781304210424423, -0.35970422625541687, 0.2943391501903534, 0.615234911441803, -0.39114269614219666, 0.00047860294580459595, -0.42503899335861206, -0.15409614145755768, 0.17082276940345764, 0.28259119391441345, -0.1810849905014038, 0.41825154423713684, -0.2191808670759201, -0.21099784970283508, 0.4664490222930908, -0.40390390157699585, -0.4069175720214844, 0.1619243323802948, -0.16908490657806396, -0.023148981854319572, 0.01432453840970993, 0.19509300589561462, -0.16376851499080658, 0.08746544271707535, 0.0317934975028038, 0.3440907597541809, -0.014082318171858788, 0.0791541114449501, -0.09520308673381805, -0.28910014033317566, 0.14944273233413696, 0.13948404788970947, 0.2537144124507904, 0.20653748512268066, 0.0017705708742141724, 0.05744437128305435, 0.03453632444143295, -0.13401508331298828, -0.019938642159104347, 0.19302953779697418, 0.4896598756313324, 0.07062538713216782, -0.3033568859100342, -0.008035760372877121, -0.5152106881141663, 0.11546466499567032, 0.05068051815032959, 0.26885953545570374, -0.24434377253055573, 0.04758088290691376, -0.28074297308921814, -0.12132126837968826, -0.251871794462204, -0.07208023965358734, 0.14134396612644196, 0.36262378096580505, 0.06021658703684807, 0.06581731140613556, -0.28758013248443604, 0.26500824093818665, 0.05553637444972992, 0.1482609361410141, -0.1362416297197342, 0.4147193133831024, -0.1979312151670456, -0.062430672347545624, -0.043607667088508606, 0.13523277640342712, 0.23459568619728088, -0.14465303719043732, -0.13017573952674866, 0.3645673394203186, -0.15087828040122986, -0.07732555270195007, 0.03983414173126221, -0.10547660291194916, 0.07364768534898758, -0.03638311102986336, 0.23429545760154724, 0.3620506525039673, 0.1599351316690445, -0.04314415529370308, -0.10023871809244156, 0.29040980339050293, 0.16195163130760193, 0.03900735452771187, 0.15386976301670074, -0.037143029272556305, 0.03958916664123535, -0.05552027374505997, 0.10829319059848785, -0.04127517342567444, 0.21163395047187805, 0.09974299371242523, 0.473999559879303, 0.02275802195072174, -0.13076439499855042, -0.3711325526237488, 0.2705957293510437, -0.13470572233200073, 0.1444207727909088, 0.15061551332473755, -0.2888505160808563, 0.09924539178609848, -0.19000329077243805, 0.14723344147205353, 0.6052939295768738, 0.11647140234708786, 0.03250417858362198, 0.1258142739534378, -0.08709027618169785, -0.07045219838619232, 0.2077789604663849, 0.08836480975151062, 0.25692591071128845, 0.21608999371528625, 0.06952682137489319, 0.062028128653764725, -0.3969854414463043, -0.2876628637313843, 0.0426684245467186, 0.41614505648612976, -0.39316245913505554, 0.059591978788375854, -0.12448327243328094, -0.21660485863685608, -0.09777338057756424, -0.5352479219436646, -0.07868994772434235, -0.315572053194046, -0.15556158125400543, 0.17356882989406586, 0.13676011562347412, 0.1662631630897522, -0.12104271352291107, -0.12622900307178497, 0.1058901846408844, -0.4859182834625244, -0.2068849503993988, -0.04847647249698639, -0.01748831197619438, 0.06513386964797974, 0.28044968843460083, -0.10328427702188492, 0.24762938916683197, -0.13129785656929016, -0.12177947908639908, -0.18639856576919556, -0.09073673188686371, -0.08353108167648315, -0.10422654449939728, 0.20843683183193207, 0.26445186138153076, 0.35428208112716675, 0.04679013043642044, -0.19472149014472961, 0.36193087697029114, -0.18281354010105133, 0.022310351952910423, 0.3297630846500397, -0.12602917850017548, -0.013416538015007973, -0.060309916734695435, -0.545813798904419, -0.5458035469055176, -0.35746338963508606, -0.11933504045009613, 0.1282772719860077, 0.1643211543560028, 0.43905332684516907, 0.14954271912574768, 0.19396384060382843, -0.10657356679439545, 0.004157481249421835, -0.027233745902776718, -0.15406766533851624, 0.4063127934932709, -0.28775230050086975, -0.24397055804729462, 0.17135322093963623, -0.04053107649087906, 0.19018881022930145, -0.1609371304512024, -0.49399393796920776, -0.2556856870651245, -0.07315199077129364, 0.038228970021009445, -0.19877156615257263, -0.05136263370513916, 0.21497158706188202, 0.09620222449302673, -0.10095467418432236, 0.15196192264556885, -0.13013990223407745, -0.04967615753412247, 0.16874730587005615, 0.020316101610660553, -0.21992817521095276, 0.5267877578735352, -0.2912869155406952, 0.5844212770462036, 0.1298200488090515, -0.09765951335430145, 0.32871416211128235, -0.20170371234416962, 0.43552130460739136, -0.210722416639328, -0.5223433971405029, -0.0787452831864357, 0.2892431616783142, -0.179004967212677, 0.18003322184085846, 0.05656064301729202, -0.2591913938522339, -0.26430073380470276, -0.044401705265045166, -0.37798425555229187, -0.07434630393981934, 0.11863824725151062, -0.017985522747039795, 0.07816524803638458, -0.05927755683660507, 0.09652139991521835, -0.15041711926460266, -0.16989415884017944, -0.12164333462715149, 0.3782086968421936, 0.019080892205238342, 0.1019873172044754, -0.028879493474960327, 0.027093347162008286, -0.31456267833709717, 0.22980692982673645, -0.052073173224925995, 0.07154726982116699, -0.21872161328792572, 0.08311580866575241, -0.02851119637489319, 0.02931087464094162, 0.36129435896873474, -0.09238756448030472, 0.011215094476938248, 0.4276464879512787, 0.07234523445367813, -0.4850645363330841, -0.09465885907411575, -0.27619972825050354, 0.1676739603281021, -0.0012728311121463776, 0.20475009083747864, -0.11704528331756592, -0.16770808398723602, 0.39387091994285583, 0.2733164131641388, -0.07975422590970993, -0.3248061537742615, -0.46824249625205994, -0.3894968628883362, -0.4203393757343292, -0.07653450220823288, -0.12504059076309204, 0.07565654069185257, 0.10526233166456223, -0.12577274441719055, -0.03646127134561539, 0.020461060106754303, 0.11456220597028732, -0.01409676019102335, 0.2421564757823944, 0.06333697587251663, 0.12614579498767853, 0.12316761165857315, 0.1575559377670288, 0.3707537353038788, 0.5872364044189453, -0.10243771970272064, -0.3017362654209137, -0.0854128748178482, 0.13888587057590485, 0.06396172940731049, 0.21510054171085358, -0.20148082077503204, -0.34293708205223083, 0.0943884402513504, 0.19149833917617798, 0.04166119545698166, -0.03606132045388222, 0.5686708688735962, -0.1586034595966339, -0.3970259726047516, -0.2941639721393585, 0.4028090238571167, -0.13274164497852325, 0.17458279430866241, 0.2641448676586151, -0.16212207078933716, -0.19398601353168488, 0.11448440700769424, -0.2864454984664917, 0.7768808603286743, -0.11218485236167908, 0.21498851478099823, 0.6759076714515686, 0.10972175002098083, 0.4076380431652069, -0.011414796113967896, 0.13721615076065063, -0.3117958903312683, -0.183533176779747, -0.15314076840877533, -0.2621162533760071, 0.09902682900428772, 0.2857245206832886, -0.15700216591358185, 0.413824200630188, -0.2599775791168213, 0.10280661284923553, -0.12730126082897186, 0.16036106646060944, -0.0852789580821991, 0.08612670004367828, -0.30970048904418945, 0.18090273439884186, 0.023454535752534866, 0.388629287481308, -0.22986692190170288, 0.10795589536428452, -0.151260644197464, -0.23455023765563965, 0.002514295279979706, 0.12334958463907242, -0.41994887590408325, 0.2769889831542969, -0.01762581244111061, -0.16460737586021423, -0.18694081902503967, 0.247104674577713, -0.07044456899166107, -0.09758026897907257, -0.11746525764465332, 0.09919750690460205, -0.1049693152308464, -0.09004196524620056, -0.1319454461336136, 0.043658383190631866, 0.29799723625183105, -0.09784180670976639, -0.2941856384277344, 0.06571660935878754, -0.14507322013378143, -0.27952080965042114, 0.22773629426956177, 0.05663696676492691, 0.2674984633922577, -0.35831218957901, -0.28081652522087097, -0.040181517601013184, -0.052198879420757294, -0.07768700271844864, 0.14193139970302582, 0.003922171890735626, 0.019713079556822777, 0.07144759595394135, -0.24350027740001678, -0.3559814691543579, -0.16121311485767365, 0.2835134267807007, -0.2098853588104248, 0.06074068695306778, 0.5739114284515381, 0.13685861229896545, -0.20890334248542786, -0.3013285994529724, 0.1953062117099762, 0.03916331008076668, -0.17534184455871582, 0.2251400500535965, 0.23657499253749847, 0.2649999260902405, -0.01255421806126833, 0.25551068782806396, 0.223735511302948, -0.06297410279512405, -0.19746553897857666, -0.30729347467422485, -0.17112968862056732, 0.028605733066797256, 0.09784002602100372, 0.2520791292190552, 0.08839934319257736, 0.06310980021953583, 0.3833882808685303, -0.2658511698246002, -0.3185986280441284, 0.011983999982476234, -0.016286665573716164, -0.06122150272130966, 0.07422418147325516, -0.059522755444049835, 0.5541496276855469, 0.012094784528017044, 0.21479737758636475, -0.33515846729278564, -0.06588700413703918, -0.28230932354927063, -0.019231576472520828, 0.12739726901054382, 0.12418413907289505, -0.11537782102823257, 0.08203507959842682, -0.2575688064098358, -0.21829088032245636, -0.12886545062065125, -0.05567943677306175, 0.2382221221923828, -0.06395955383777618, 0.14933368563652039, 0.05890906602144241, -0.07905643433332443, -0.1343446671962738, 0.060204505920410156, -0.25758522748947144, 0.0918632298707962, 0.037909865379333496, 0.14055268466472626, 0.21135547757148743, -0.13552437722682953, -0.41857194900512695, -0.049428947269916534, 0.03348517417907715, 0.026234515011310577, 0.2199244499206543, -0.18697161972522736, -0.01010364294052124, -0.007282479200512171, 0.358844518661499, 0.19042348861694336, -0.28650060296058655, 0.054069891571998596, 0.2150324583053589, 0.21829229593276978, -0.28869518637657166, 0.07968935370445251, -0.04440684989094734, 0.06192390248179436, 0.10277178883552551, 0.19136857986450195, -0.36246976256370544, 0.0646897554397583, -0.19608984887599945, 0.03154731169342995, 0.38882869482040405, -0.19769030809402466, 0.05164971575140953, 0.39983874559402466, -0.17169521749019623, 0.06772881746292114, 0.28481802344322205, 0.044519972056150436, 0.10667296499013901, 0.5403019785881042, -0.1691652536392212, 0.027433421462774277, -0.27490824460983276, -0.11549928784370422, 0.009339459240436554, -0.3157515227794647, 0.05279671773314476, 0.14991098642349243, -0.027591660618782043, -0.006131820380687714, -0.15019626915454865, 0.27253618836402893, -0.45939940214157104, 0.12138210982084274, -0.3764192759990692, 0.37778714299201965, -0.1425219476222992, 0.16254150867462158, -0.15795746445655823, 0.010523281991481781, -0.012091197073459625, 0.04461697116494179, 0.019514672458171844, -0.2471570521593094, 0.24122226238250732, 0.4903676509857178, -0.119479238986969, -0.1413525491952896, 0.3903646469116211, 0.2625903785228729, -0.1352919340133667, -0.23590224981307983, 0.30254632234573364, 0.30347418785095215, 0.12000063061714172, -0.04925680533051491, 0.48707452416419983, 0.42694225907325745, 0.40906232595443726, 0.003901938907802105, 0.2013230174779892, -0.010011626407504082, -0.18893128633499146, -0.021495796740055084, 0.08820054680109024, -0.05504578351974487, 0.5318028330802917, 0.16388483345508575, 0.2567687928676605, -0.24685357511043549, 0.18549615144729614, 0.013369720429182053, -0.01594928652048111, -0.12920913100242615, 0.6912087798118591, -0.25647926330566406, -0.10568985342979431, -0.233110249042511, 0.05443738028407097, -0.528907060623169, 0.25208422541618347, 0.35357627272605896, 0.0812644511461258, 0.10963598638772964, 0.07250581681728363, 0.0778280645608902, 0.044587142765522, 0.27820509672164917, 0.3427440822124481, 0.3053829073905945, -0.5661407113075256, 0.02439192682504654, -0.6365788578987122, 0.17119018733501434, -0.28920406103134155, -0.04344911873340607, -0.180650532245636, -0.015653878450393677, -0.13643214106559753, 0.12965939939022064, 0.12616635859012604, 0.05368420109152794, -0.053469788283109665, -0.10564669966697693, -0.28983771800994873, -0.09530408680438995, -0.06266570091247559, 0.02572353184223175, 0.015950273722410202, -0.49501925706863403, 0.024820033460855484, -0.41317978501319885, 0.0006353482604026794, 0.027058761566877365, -0.1335083246231079, 0.039698194712400436, 0.36116304993629456, 0.45333755016326904, -0.02638913132250309, 0.5661261081695557, -0.06055836379528046, -0.1965639442205429, -0.19135335087776184, -0.2649552822113037, -0.15979982912540436, 0.22946763038635254, 0.14610376954078674, 0.3851698338985443, -0.30641430616378784, -0.00876060500741005, -0.42700788378715515, 0.29012981057167053, -0.03781283274292946, -0.06739513576030731, -0.20098641514778137, 0.002369457855820656, -0.13162031769752502, 0.1983625590801239, 0.14646072685718536, -0.015197321772575378, -0.08407703042030334, 0.18836472928524017, -0.2635793685913086, -0.38849204778671265, 0.46128425002098083, -0.26340892910957336, -0.24366174638271332, 0.042876701802015305, 0.16999958455562592, -0.09318573027849197, 0.17881788313388824, -0.48398110270500183, 0.3811464011669159, 0.4383368194103241, 0.16402989625930786, -0.21903781592845917, 0.13784582912921906, 0.0010959086939692497, 0.13838428258895874, 0.0792408287525177, 0.4123993217945099, 0.007534284144639969, -0.382577508687973, -0.034081827849149704, -0.11865521967411041 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
experience the same problem, ccdv/cnn_dailymail not working either. Solve this problem by installing datasets library from the master branch: python -m pip install git+https://github.com/huggingface/datasets.git@master
``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab
24
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error ``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab experience the same problem, ccdv/cnn_dailymail not working either. Solve this problem by installing datasets library from the master branch: python -m pip install git+https://github.com/huggingface/datasets.git@master
[ -0.2242928445339203, 0.14194601774215698, -0.022575892508029938, 0.2384321093559265, 0.38199472427368164, 0.1261650025844574, 0.6168983578681946, 0.21475985646247864, -0.023176833987236023, 0.13341309130191803, -0.16375632584095, 0.05823616683483124, -0.37595656514167786, -0.12307772785425186, 0.008583617396652699, 0.11496849358081818, -0.09640166908502579, 0.15829600393772125, -0.20510974526405334, -0.14228598773479462, -0.3901512622833252, 0.18647928535938263, -0.07681818306446075, 0.01599285751581192, -0.254440575838089, -0.20727312564849854, -0.11916949599981308, 0.47827211022377014, -0.22819197177886963, -0.34157100319862366, 0.2912243604660034, -0.19371338188648224, 0.25961312651634216, 0.6446202397346497, -0.00011036968498956412, 0.13481256365776062, 0.2574554681777954, -0.04598478600382805, -0.5990346670150757, -0.6107161045074463, -0.13449224829673767, -0.18107761442661285, 0.22242768108844757, -0.28574657440185547, -0.05457343906164169, 0.11204594373703003, 0.06253992766141891, 0.0195222869515419, 0.3589361906051636, 0.5676548480987549, 0.2382049858570099, 0.25008711218833923, -0.02146543189883232, -0.14232437312602997, -0.13942193984985352, 0.3917795419692993, -0.08329635113477707, 0.5298019647598267, -0.3784783184528351, -0.007454064209014177, 0.30099204182624817, 0.2560059428215027, -0.3467576503753662, 0.24812859296798706, 0.31058469414711, 0.09317091107368469, 0.2014937400817871, -0.3185792863368988, 0.010255808010697365, 0.05206438899040222, 0.4628160893917084, -0.3776457905769348, -0.21393230557441711, -0.02609611302614212, 0.0874805599451065, -0.45195117592811584, 0.34401413798332214, 0.3034410774707794, -0.13032948970794678, 0.0531829297542572, -0.14617440104484558, -0.14383819699287415, -0.18140968680381775, 0.4520488977432251, -0.17188316583633423, 0.21672753989696503, -0.0570032075047493, 0.03170167654752731, 0.040194299072027206, 0.05490010231733322, 0.5230493545532227, -0.20129205286502838, 0.11098386347293854, 0.16897624731063843, -0.025917161256074905, 0.06191704422235489, 0.2004220187664032, -0.1987338364124298, -0.19590267539024353, 0.1629696488380432, -0.08147267997264862, -0.27251529693603516, -0.03082117810845375, 0.04203656688332558, 0.05626033991575241, 0.1875983029603958, -0.087041936814785, 0.5960314273834229, 0.20500212907791138, 0.2587224543094635, -0.012604229152202606, -0.12888646125793457, -0.3524649739265442, -0.2497720867395401, 0.10273772478103638, 0.0556449331343174, 0.6368340849876404, 0.08087019622325897, -0.2626224160194397, -0.1706470400094986, -0.28750869631767273, 0.026670435443520546, 0.1824931502342224, 0.3770371377468109, 0.08792037516832352, -0.0015776567161083221, 0.10185271501541138, 0.2980034351348877, -0.06114015728235245, 0.3207467198371887, -0.22278910875320435, 0.21217584609985352, -0.11940519511699677, -0.03893444687128067, 0.2705807387828827, -0.2202291339635849, 0.12178418785333633, -0.1732526421546936, -0.013736896216869354, -0.006396830081939697, 0.15506115555763245, -0.17590072751045227, 0.07422474026679993, 0.507818341255188, -0.10871697962284088, 0.2788078486919403, 0.2708216905593872, 0.02655600756406784, -0.3172305226325989, 0.1326725035905838, -0.179332435131073, -0.40739578008651733, -0.08903542906045914, 0.19181963801383972, 0.04331967979669571, -0.1540219783782959, 0.0512392558157444, -0.20447443425655365, -0.151018887758255, -0.1646997481584549, -0.00492994487285614, -0.19149436056613922, -0.08781304210424423, -0.35970422625541687, 0.2943391501903534, 0.615234911441803, -0.39114269614219666, 0.00047860294580459595, -0.42503899335861206, -0.15409614145755768, 0.17082276940345764, 0.28259119391441345, -0.1810849905014038, 0.41825154423713684, -0.2191808670759201, -0.21099784970283508, 0.4664490222930908, -0.40390390157699585, -0.4069175720214844, 0.1619243323802948, -0.16908490657806396, -0.023148981854319572, 0.01432453840970993, 0.19509300589561462, -0.16376851499080658, 0.08746544271707535, 0.0317934975028038, 0.3440907597541809, -0.014082318171858788, 0.0791541114449501, -0.09520308673381805, -0.28910014033317566, 0.14944273233413696, 0.13948404788970947, 0.2537144124507904, 0.20653748512268066, 0.0017705708742141724, 0.05744437128305435, 0.03453632444143295, -0.13401508331298828, -0.019938642159104347, 0.19302953779697418, 0.4896598756313324, 0.07062538713216782, -0.3033568859100342, -0.008035760372877121, -0.5152106881141663, 0.11546466499567032, 0.05068051815032959, 0.26885953545570374, -0.24434377253055573, 0.04758088290691376, -0.28074297308921814, -0.12132126837968826, -0.251871794462204, -0.07208023965358734, 0.14134396612644196, 0.36262378096580505, 0.06021658703684807, 0.06581731140613556, -0.28758013248443604, 0.26500824093818665, 0.05553637444972992, 0.1482609361410141, -0.1362416297197342, 0.4147193133831024, -0.1979312151670456, -0.062430672347545624, -0.043607667088508606, 0.13523277640342712, 0.23459568619728088, -0.14465303719043732, -0.13017573952674866, 0.3645673394203186, -0.15087828040122986, -0.07732555270195007, 0.03983414173126221, -0.10547660291194916, 0.07364768534898758, -0.03638311102986336, 0.23429545760154724, 0.3620506525039673, 0.1599351316690445, -0.04314415529370308, -0.10023871809244156, 0.29040980339050293, 0.16195163130760193, 0.03900735452771187, 0.15386976301670074, -0.037143029272556305, 0.03958916664123535, -0.05552027374505997, 0.10829319059848785, -0.04127517342567444, 0.21163395047187805, 0.09974299371242523, 0.473999559879303, 0.02275802195072174, -0.13076439499855042, -0.3711325526237488, 0.2705957293510437, -0.13470572233200073, 0.1444207727909088, 0.15061551332473755, -0.2888505160808563, 0.09924539178609848, -0.19000329077243805, 0.14723344147205353, 0.6052939295768738, 0.11647140234708786, 0.03250417858362198, 0.1258142739534378, -0.08709027618169785, -0.07045219838619232, 0.2077789604663849, 0.08836480975151062, 0.25692591071128845, 0.21608999371528625, 0.06952682137489319, 0.062028128653764725, -0.3969854414463043, -0.2876628637313843, 0.0426684245467186, 0.41614505648612976, -0.39316245913505554, 0.059591978788375854, -0.12448327243328094, -0.21660485863685608, -0.09777338057756424, -0.5352479219436646, -0.07868994772434235, -0.315572053194046, -0.15556158125400543, 0.17356882989406586, 0.13676011562347412, 0.1662631630897522, -0.12104271352291107, -0.12622900307178497, 0.1058901846408844, -0.4859182834625244, -0.2068849503993988, -0.04847647249698639, -0.01748831197619438, 0.06513386964797974, 0.28044968843460083, -0.10328427702188492, 0.24762938916683197, -0.13129785656929016, -0.12177947908639908, -0.18639856576919556, -0.09073673188686371, -0.08353108167648315, -0.10422654449939728, 0.20843683183193207, 0.26445186138153076, 0.35428208112716675, 0.04679013043642044, -0.19472149014472961, 0.36193087697029114, -0.18281354010105133, 0.022310351952910423, 0.3297630846500397, -0.12602917850017548, -0.013416538015007973, -0.060309916734695435, -0.545813798904419, -0.5458035469055176, -0.35746338963508606, -0.11933504045009613, 0.1282772719860077, 0.1643211543560028, 0.43905332684516907, 0.14954271912574768, 0.19396384060382843, -0.10657356679439545, 0.004157481249421835, -0.027233745902776718, -0.15406766533851624, 0.4063127934932709, -0.28775230050086975, -0.24397055804729462, 0.17135322093963623, -0.04053107649087906, 0.19018881022930145, -0.1609371304512024, -0.49399393796920776, -0.2556856870651245, -0.07315199077129364, 0.038228970021009445, -0.19877156615257263, -0.05136263370513916, 0.21497158706188202, 0.09620222449302673, -0.10095467418432236, 0.15196192264556885, -0.13013990223407745, -0.04967615753412247, 0.16874730587005615, 0.020316101610660553, -0.21992817521095276, 0.5267877578735352, -0.2912869155406952, 0.5844212770462036, 0.1298200488090515, -0.09765951335430145, 0.32871416211128235, -0.20170371234416962, 0.43552130460739136, -0.210722416639328, -0.5223433971405029, -0.0787452831864357, 0.2892431616783142, -0.179004967212677, 0.18003322184085846, 0.05656064301729202, -0.2591913938522339, -0.26430073380470276, -0.044401705265045166, -0.37798425555229187, -0.07434630393981934, 0.11863824725151062, -0.017985522747039795, 0.07816524803638458, -0.05927755683660507, 0.09652139991521835, -0.15041711926460266, -0.16989415884017944, -0.12164333462715149, 0.3782086968421936, 0.019080892205238342, 0.1019873172044754, -0.028879493474960327, 0.027093347162008286, -0.31456267833709717, 0.22980692982673645, -0.052073173224925995, 0.07154726982116699, -0.21872161328792572, 0.08311580866575241, -0.02851119637489319, 0.02931087464094162, 0.36129435896873474, -0.09238756448030472, 0.011215094476938248, 0.4276464879512787, 0.07234523445367813, -0.4850645363330841, -0.09465885907411575, -0.27619972825050354, 0.1676739603281021, -0.0012728311121463776, 0.20475009083747864, -0.11704528331756592, -0.16770808398723602, 0.39387091994285583, 0.2733164131641388, -0.07975422590970993, -0.3248061537742615, -0.46824249625205994, -0.3894968628883362, -0.4203393757343292, -0.07653450220823288, -0.12504059076309204, 0.07565654069185257, 0.10526233166456223, -0.12577274441719055, -0.03646127134561539, 0.020461060106754303, 0.11456220597028732, -0.01409676019102335, 0.2421564757823944, 0.06333697587251663, 0.12614579498767853, 0.12316761165857315, 0.1575559377670288, 0.3707537353038788, 0.5872364044189453, -0.10243771970272064, -0.3017362654209137, -0.0854128748178482, 0.13888587057590485, 0.06396172940731049, 0.21510054171085358, -0.20148082077503204, -0.34293708205223083, 0.0943884402513504, 0.19149833917617798, 0.04166119545698166, -0.03606132045388222, 0.5686708688735962, -0.1586034595966339, -0.3970259726047516, -0.2941639721393585, 0.4028090238571167, -0.13274164497852325, 0.17458279430866241, 0.2641448676586151, -0.16212207078933716, -0.19398601353168488, 0.11448440700769424, -0.2864454984664917, 0.7768808603286743, -0.11218485236167908, 0.21498851478099823, 0.6759076714515686, 0.10972175002098083, 0.4076380431652069, -0.011414796113967896, 0.13721615076065063, -0.3117958903312683, -0.183533176779747, -0.15314076840877533, -0.2621162533760071, 0.09902682900428772, 0.2857245206832886, -0.15700216591358185, 0.413824200630188, -0.2599775791168213, 0.10280661284923553, -0.12730126082897186, 0.16036106646060944, -0.0852789580821991, 0.08612670004367828, -0.30970048904418945, 0.18090273439884186, 0.023454535752534866, 0.388629287481308, -0.22986692190170288, 0.10795589536428452, -0.151260644197464, -0.23455023765563965, 0.002514295279979706, 0.12334958463907242, -0.41994887590408325, 0.2769889831542969, -0.01762581244111061, -0.16460737586021423, -0.18694081902503967, 0.247104674577713, -0.07044456899166107, -0.09758026897907257, -0.11746525764465332, 0.09919750690460205, -0.1049693152308464, -0.09004196524620056, -0.1319454461336136, 0.043658383190631866, 0.29799723625183105, -0.09784180670976639, -0.2941856384277344, 0.06571660935878754, -0.14507322013378143, -0.27952080965042114, 0.22773629426956177, 0.05663696676492691, 0.2674984633922577, -0.35831218957901, -0.28081652522087097, -0.040181517601013184, -0.052198879420757294, -0.07768700271844864, 0.14193139970302582, 0.003922171890735626, 0.019713079556822777, 0.07144759595394135, -0.24350027740001678, -0.3559814691543579, -0.16121311485767365, 0.2835134267807007, -0.2098853588104248, 0.06074068695306778, 0.5739114284515381, 0.13685861229896545, -0.20890334248542786, -0.3013285994529724, 0.1953062117099762, 0.03916331008076668, -0.17534184455871582, 0.2251400500535965, 0.23657499253749847, 0.2649999260902405, -0.01255421806126833, 0.25551068782806396, 0.223735511302948, -0.06297410279512405, -0.19746553897857666, -0.30729347467422485, -0.17112968862056732, 0.028605733066797256, 0.09784002602100372, 0.2520791292190552, 0.08839934319257736, 0.06310980021953583, 0.3833882808685303, -0.2658511698246002, -0.3185986280441284, 0.011983999982476234, -0.016286665573716164, -0.06122150272130966, 0.07422418147325516, -0.059522755444049835, 0.5541496276855469, 0.012094784528017044, 0.21479737758636475, -0.33515846729278564, -0.06588700413703918, -0.28230932354927063, -0.019231576472520828, 0.12739726901054382, 0.12418413907289505, -0.11537782102823257, 0.08203507959842682, -0.2575688064098358, -0.21829088032245636, -0.12886545062065125, -0.05567943677306175, 0.2382221221923828, -0.06395955383777618, 0.14933368563652039, 0.05890906602144241, -0.07905643433332443, -0.1343446671962738, 0.060204505920410156, -0.25758522748947144, 0.0918632298707962, 0.037909865379333496, 0.14055268466472626, 0.21135547757148743, -0.13552437722682953, -0.41857194900512695, -0.049428947269916534, 0.03348517417907715, 0.026234515011310577, 0.2199244499206543, -0.18697161972522736, -0.01010364294052124, -0.007282479200512171, 0.358844518661499, 0.19042348861694336, -0.28650060296058655, 0.054069891571998596, 0.2150324583053589, 0.21829229593276978, -0.28869518637657166, 0.07968935370445251, -0.04440684989094734, 0.06192390248179436, 0.10277178883552551, 0.19136857986450195, -0.36246976256370544, 0.0646897554397583, -0.19608984887599945, 0.03154731169342995, 0.38882869482040405, -0.19769030809402466, 0.05164971575140953, 0.39983874559402466, -0.17169521749019623, 0.06772881746292114, 0.28481802344322205, 0.044519972056150436, 0.10667296499013901, 0.5403019785881042, -0.1691652536392212, 0.027433421462774277, -0.27490824460983276, -0.11549928784370422, 0.009339459240436554, -0.3157515227794647, 0.05279671773314476, 0.14991098642349243, -0.027591660618782043, -0.006131820380687714, -0.15019626915454865, 0.27253618836402893, -0.45939940214157104, 0.12138210982084274, -0.3764192759990692, 0.37778714299201965, -0.1425219476222992, 0.16254150867462158, -0.15795746445655823, 0.010523281991481781, -0.012091197073459625, 0.04461697116494179, 0.019514672458171844, -0.2471570521593094, 0.24122226238250732, 0.4903676509857178, -0.119479238986969, -0.1413525491952896, 0.3903646469116211, 0.2625903785228729, -0.1352919340133667, -0.23590224981307983, 0.30254632234573364, 0.30347418785095215, 0.12000063061714172, -0.04925680533051491, 0.48707452416419983, 0.42694225907325745, 0.40906232595443726, 0.003901938907802105, 0.2013230174779892, -0.010011626407504082, -0.18893128633499146, -0.021495796740055084, 0.08820054680109024, -0.05504578351974487, 0.5318028330802917, 0.16388483345508575, 0.2567687928676605, -0.24685357511043549, 0.18549615144729614, 0.013369720429182053, -0.01594928652048111, -0.12920913100242615, 0.6912087798118591, -0.25647926330566406, -0.10568985342979431, -0.233110249042511, 0.05443738028407097, -0.528907060623169, 0.25208422541618347, 0.35357627272605896, 0.0812644511461258, 0.10963598638772964, 0.07250581681728363, 0.0778280645608902, 0.044587142765522, 0.27820509672164917, 0.3427440822124481, 0.3053829073905945, -0.5661407113075256, 0.02439192682504654, -0.6365788578987122, 0.17119018733501434, -0.28920406103134155, -0.04344911873340607, -0.180650532245636, -0.015653878450393677, -0.13643214106559753, 0.12965939939022064, 0.12616635859012604, 0.05368420109152794, -0.053469788283109665, -0.10564669966697693, -0.28983771800994873, -0.09530408680438995, -0.06266570091247559, 0.02572353184223175, 0.015950273722410202, -0.49501925706863403, 0.024820033460855484, -0.41317978501319885, 0.0006353482604026794, 0.027058761566877365, -0.1335083246231079, 0.039698194712400436, 0.36116304993629456, 0.45333755016326904, -0.02638913132250309, 0.5661261081695557, -0.06055836379528046, -0.1965639442205429, -0.19135335087776184, -0.2649552822113037, -0.15979982912540436, 0.22946763038635254, 0.14610376954078674, 0.3851698338985443, -0.30641430616378784, -0.00876060500741005, -0.42700788378715515, 0.29012981057167053, -0.03781283274292946, -0.06739513576030731, -0.20098641514778137, 0.002369457855820656, -0.13162031769752502, 0.1983625590801239, 0.14646072685718536, -0.015197321772575378, -0.08407703042030334, 0.18836472928524017, -0.2635793685913086, -0.38849204778671265, 0.46128425002098083, -0.26340892910957336, -0.24366174638271332, 0.042876701802015305, 0.16999958455562592, -0.09318573027849197, 0.17881788313388824, -0.48398110270500183, 0.3811464011669159, 0.4383368194103241, 0.16402989625930786, -0.21903781592845917, 0.13784582912921906, 0.0010959086939692497, 0.13838428258895874, 0.0792408287525177, 0.4123993217945099, 0.007534284144639969, -0.382577508687973, -0.034081827849149704, -0.11865521967411041 ]
https://github.com/huggingface/datasets/issues/873
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
> > atal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] > > NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' > > Can someone please take a look ? > > 2 short-term workarounds: > > 1. Use this line instead `dataset = load_dataset('ccdv/cnn_dailymail', '3.0.0')`. [In a related issue](https://github.com/huggingface/datasets/issues/996#issuecomment-997343101), this person mentioned another data source copy that just works. > 2. Use the same data source, but edit the urls. Instead of google drive quota problems mentioned in [NotADirectoryError while loading the CNN/Dailymail dataset #996](https://github.com/huggingface/datasets/issues/996), I was getting the "can't scan this file for viruses" problem, which results in that prompted html getting downloaded instead of the files. You can get around this by: > > 1. Look at the traceback and find out where `cnn_dailymail.py` is on your computer. > 2. Edit the `cnn_stories` and `dm_stories` url's by adding the following to the end of them `&confirm=t`. This should be around line 67. > 3. You may have to remove those confirmation html files in your download directory (`~/.cache/huggingface/datasets/downloads` for me) so that they don't get in the way of the new download attempts. > > Either method works for me. I would've made a PR, but not sure if they want to go with the new ccdv/cnn_dailymail source or not. Thankyou, editing the urls helped me than the loading dataset line.
``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab
228
load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error ``` from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` Stack trace: ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-6-2e06a8332652> in <module>() 1 from datasets import load_dataset ----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0') 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 608 download_config=download_config, 609 download_mode=download_mode, --> 610 ignore_verifications=ignore_verifications, 611 ) 612 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 513 if not downloaded_from_gcs: 514 self._download_and_prepare( --> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 516 ) 517 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 568 split_dict = SplitDict(dataset_name=self.name) 569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 571 572 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` I have ran the code on Google Colab > > atal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] > > NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' > > Can someone please take a look ? > > 2 short-term workarounds: > > 1. Use this line instead `dataset = load_dataset('ccdv/cnn_dailymail', '3.0.0')`. [In a related issue](https://github.com/huggingface/datasets/issues/996#issuecomment-997343101), this person mentioned another data source copy that just works. > 2. Use the same data source, but edit the urls. Instead of google drive quota problems mentioned in [NotADirectoryError while loading the CNN/Dailymail dataset #996](https://github.com/huggingface/datasets/issues/996), I was getting the "can't scan this file for viruses" problem, which results in that prompted html getting downloaded instead of the files. You can get around this by: > > 1. Look at the traceback and find out where `cnn_dailymail.py` is on your computer. > 2. Edit the `cnn_stories` and `dm_stories` url's by adding the following to the end of them `&confirm=t`. This should be around line 67. > 3. You may have to remove those confirmation html files in your download directory (`~/.cache/huggingface/datasets/downloads` for me) so that they don't get in the way of the new download attempts. > > Either method works for me. I would've made a PR, but not sure if they want to go with the new ccdv/cnn_dailymail source or not. Thankyou, editing the urls helped me than the loading dataset line.
[ -0.2242928445339203, 0.14194601774215698, -0.022575892508029938, 0.2384321093559265, 0.38199472427368164, 0.1261650025844574, 0.6168983578681946, 0.21475985646247864, -0.023176833987236023, 0.13341309130191803, -0.16375632584095, 0.05823616683483124, -0.37595656514167786, -0.12307772785425186, 0.008583617396652699, 0.11496849358081818, -0.09640166908502579, 0.15829600393772125, -0.20510974526405334, -0.14228598773479462, -0.3901512622833252, 0.18647928535938263, -0.07681818306446075, 0.01599285751581192, -0.254440575838089, -0.20727312564849854, -0.11916949599981308, 0.47827211022377014, -0.22819197177886963, -0.34157100319862366, 0.2912243604660034, -0.19371338188648224, 0.25961312651634216, 0.6446202397346497, -0.00011036968498956412, 0.13481256365776062, 0.2574554681777954, -0.04598478600382805, -0.5990346670150757, -0.6107161045074463, -0.13449224829673767, -0.18107761442661285, 0.22242768108844757, -0.28574657440185547, -0.05457343906164169, 0.11204594373703003, 0.06253992766141891, 0.0195222869515419, 0.3589361906051636, 0.5676548480987549, 0.2382049858570099, 0.25008711218833923, -0.02146543189883232, -0.14232437312602997, -0.13942193984985352, 0.3917795419692993, -0.08329635113477707, 0.5298019647598267, -0.3784783184528351, -0.007454064209014177, 0.30099204182624817, 0.2560059428215027, -0.3467576503753662, 0.24812859296798706, 0.31058469414711, 0.09317091107368469, 0.2014937400817871, -0.3185792863368988, 0.010255808010697365, 0.05206438899040222, 0.4628160893917084, -0.3776457905769348, -0.21393230557441711, -0.02609611302614212, 0.0874805599451065, -0.45195117592811584, 0.34401413798332214, 0.3034410774707794, -0.13032948970794678, 0.0531829297542572, -0.14617440104484558, -0.14383819699287415, -0.18140968680381775, 0.4520488977432251, -0.17188316583633423, 0.21672753989696503, -0.0570032075047493, 0.03170167654752731, 0.040194299072027206, 0.05490010231733322, 0.5230493545532227, -0.20129205286502838, 0.11098386347293854, 0.16897624731063843, -0.025917161256074905, 0.06191704422235489, 0.2004220187664032, -0.1987338364124298, -0.19590267539024353, 0.1629696488380432, -0.08147267997264862, -0.27251529693603516, -0.03082117810845375, 0.04203656688332558, 0.05626033991575241, 0.1875983029603958, -0.087041936814785, 0.5960314273834229, 0.20500212907791138, 0.2587224543094635, -0.012604229152202606, -0.12888646125793457, -0.3524649739265442, -0.2497720867395401, 0.10273772478103638, 0.0556449331343174, 0.6368340849876404, 0.08087019622325897, -0.2626224160194397, -0.1706470400094986, -0.28750869631767273, 0.026670435443520546, 0.1824931502342224, 0.3770371377468109, 0.08792037516832352, -0.0015776567161083221, 0.10185271501541138, 0.2980034351348877, -0.06114015728235245, 0.3207467198371887, -0.22278910875320435, 0.21217584609985352, -0.11940519511699677, -0.03893444687128067, 0.2705807387828827, -0.2202291339635849, 0.12178418785333633, -0.1732526421546936, -0.013736896216869354, -0.006396830081939697, 0.15506115555763245, -0.17590072751045227, 0.07422474026679993, 0.507818341255188, -0.10871697962284088, 0.2788078486919403, 0.2708216905593872, 0.02655600756406784, -0.3172305226325989, 0.1326725035905838, -0.179332435131073, -0.40739578008651733, -0.08903542906045914, 0.19181963801383972, 0.04331967979669571, -0.1540219783782959, 0.0512392558157444, -0.20447443425655365, -0.151018887758255, -0.1646997481584549, -0.00492994487285614, -0.19149436056613922, -0.08781304210424423, -0.35970422625541687, 0.2943391501903534, 0.615234911441803, -0.39114269614219666, 0.00047860294580459595, -0.42503899335861206, -0.15409614145755768, 0.17082276940345764, 0.28259119391441345, -0.1810849905014038, 0.41825154423713684, -0.2191808670759201, -0.21099784970283508, 0.4664490222930908, -0.40390390157699585, -0.4069175720214844, 0.1619243323802948, -0.16908490657806396, -0.023148981854319572, 0.01432453840970993, 0.19509300589561462, -0.16376851499080658, 0.08746544271707535, 0.0317934975028038, 0.3440907597541809, -0.014082318171858788, 0.0791541114449501, -0.09520308673381805, -0.28910014033317566, 0.14944273233413696, 0.13948404788970947, 0.2537144124507904, 0.20653748512268066, 0.0017705708742141724, 0.05744437128305435, 0.03453632444143295, -0.13401508331298828, -0.019938642159104347, 0.19302953779697418, 0.4896598756313324, 0.07062538713216782, -0.3033568859100342, -0.008035760372877121, -0.5152106881141663, 0.11546466499567032, 0.05068051815032959, 0.26885953545570374, -0.24434377253055573, 0.04758088290691376, -0.28074297308921814, -0.12132126837968826, -0.251871794462204, -0.07208023965358734, 0.14134396612644196, 0.36262378096580505, 0.06021658703684807, 0.06581731140613556, -0.28758013248443604, 0.26500824093818665, 0.05553637444972992, 0.1482609361410141, -0.1362416297197342, 0.4147193133831024, -0.1979312151670456, -0.062430672347545624, -0.043607667088508606, 0.13523277640342712, 0.23459568619728088, -0.14465303719043732, -0.13017573952674866, 0.3645673394203186, -0.15087828040122986, -0.07732555270195007, 0.03983414173126221, -0.10547660291194916, 0.07364768534898758, -0.03638311102986336, 0.23429545760154724, 0.3620506525039673, 0.1599351316690445, -0.04314415529370308, -0.10023871809244156, 0.29040980339050293, 0.16195163130760193, 0.03900735452771187, 0.15386976301670074, -0.037143029272556305, 0.03958916664123535, -0.05552027374505997, 0.10829319059848785, -0.04127517342567444, 0.21163395047187805, 0.09974299371242523, 0.473999559879303, 0.02275802195072174, -0.13076439499855042, -0.3711325526237488, 0.2705957293510437, -0.13470572233200073, 0.1444207727909088, 0.15061551332473755, -0.2888505160808563, 0.09924539178609848, -0.19000329077243805, 0.14723344147205353, 0.6052939295768738, 0.11647140234708786, 0.03250417858362198, 0.1258142739534378, -0.08709027618169785, -0.07045219838619232, 0.2077789604663849, 0.08836480975151062, 0.25692591071128845, 0.21608999371528625, 0.06952682137489319, 0.062028128653764725, -0.3969854414463043, -0.2876628637313843, 0.0426684245467186, 0.41614505648612976, -0.39316245913505554, 0.059591978788375854, -0.12448327243328094, -0.21660485863685608, -0.09777338057756424, -0.5352479219436646, -0.07868994772434235, -0.315572053194046, -0.15556158125400543, 0.17356882989406586, 0.13676011562347412, 0.1662631630897522, -0.12104271352291107, -0.12622900307178497, 0.1058901846408844, -0.4859182834625244, -0.2068849503993988, -0.04847647249698639, -0.01748831197619438, 0.06513386964797974, 0.28044968843460083, -0.10328427702188492, 0.24762938916683197, -0.13129785656929016, -0.12177947908639908, -0.18639856576919556, -0.09073673188686371, -0.08353108167648315, -0.10422654449939728, 0.20843683183193207, 0.26445186138153076, 0.35428208112716675, 0.04679013043642044, -0.19472149014472961, 0.36193087697029114, -0.18281354010105133, 0.022310351952910423, 0.3297630846500397, -0.12602917850017548, -0.013416538015007973, -0.060309916734695435, -0.545813798904419, -0.5458035469055176, -0.35746338963508606, -0.11933504045009613, 0.1282772719860077, 0.1643211543560028, 0.43905332684516907, 0.14954271912574768, 0.19396384060382843, -0.10657356679439545, 0.004157481249421835, -0.027233745902776718, -0.15406766533851624, 0.4063127934932709, -0.28775230050086975, -0.24397055804729462, 0.17135322093963623, -0.04053107649087906, 0.19018881022930145, -0.1609371304512024, -0.49399393796920776, -0.2556856870651245, -0.07315199077129364, 0.038228970021009445, -0.19877156615257263, -0.05136263370513916, 0.21497158706188202, 0.09620222449302673, -0.10095467418432236, 0.15196192264556885, -0.13013990223407745, -0.04967615753412247, 0.16874730587005615, 0.020316101610660553, -0.21992817521095276, 0.5267877578735352, -0.2912869155406952, 0.5844212770462036, 0.1298200488090515, -0.09765951335430145, 0.32871416211128235, -0.20170371234416962, 0.43552130460739136, -0.210722416639328, -0.5223433971405029, -0.0787452831864357, 0.2892431616783142, -0.179004967212677, 0.18003322184085846, 0.05656064301729202, -0.2591913938522339, -0.26430073380470276, -0.044401705265045166, -0.37798425555229187, -0.07434630393981934, 0.11863824725151062, -0.017985522747039795, 0.07816524803638458, -0.05927755683660507, 0.09652139991521835, -0.15041711926460266, -0.16989415884017944, -0.12164333462715149, 0.3782086968421936, 0.019080892205238342, 0.1019873172044754, -0.028879493474960327, 0.027093347162008286, -0.31456267833709717, 0.22980692982673645, -0.052073173224925995, 0.07154726982116699, -0.21872161328792572, 0.08311580866575241, -0.02851119637489319, 0.02931087464094162, 0.36129435896873474, -0.09238756448030472, 0.011215094476938248, 0.4276464879512787, 0.07234523445367813, -0.4850645363330841, -0.09465885907411575, -0.27619972825050354, 0.1676739603281021, -0.0012728311121463776, 0.20475009083747864, -0.11704528331756592, -0.16770808398723602, 0.39387091994285583, 0.2733164131641388, -0.07975422590970993, -0.3248061537742615, -0.46824249625205994, -0.3894968628883362, -0.4203393757343292, -0.07653450220823288, -0.12504059076309204, 0.07565654069185257, 0.10526233166456223, -0.12577274441719055, -0.03646127134561539, 0.020461060106754303, 0.11456220597028732, -0.01409676019102335, 0.2421564757823944, 0.06333697587251663, 0.12614579498767853, 0.12316761165857315, 0.1575559377670288, 0.3707537353038788, 0.5872364044189453, -0.10243771970272064, -0.3017362654209137, -0.0854128748178482, 0.13888587057590485, 0.06396172940731049, 0.21510054171085358, -0.20148082077503204, -0.34293708205223083, 0.0943884402513504, 0.19149833917617798, 0.04166119545698166, -0.03606132045388222, 0.5686708688735962, -0.1586034595966339, -0.3970259726047516, -0.2941639721393585, 0.4028090238571167, -0.13274164497852325, 0.17458279430866241, 0.2641448676586151, -0.16212207078933716, -0.19398601353168488, 0.11448440700769424, -0.2864454984664917, 0.7768808603286743, -0.11218485236167908, 0.21498851478099823, 0.6759076714515686, 0.10972175002098083, 0.4076380431652069, -0.011414796113967896, 0.13721615076065063, -0.3117958903312683, -0.183533176779747, -0.15314076840877533, -0.2621162533760071, 0.09902682900428772, 0.2857245206832886, -0.15700216591358185, 0.413824200630188, -0.2599775791168213, 0.10280661284923553, -0.12730126082897186, 0.16036106646060944, -0.0852789580821991, 0.08612670004367828, -0.30970048904418945, 0.18090273439884186, 0.023454535752534866, 0.388629287481308, -0.22986692190170288, 0.10795589536428452, -0.151260644197464, -0.23455023765563965, 0.002514295279979706, 0.12334958463907242, -0.41994887590408325, 0.2769889831542969, -0.01762581244111061, -0.16460737586021423, -0.18694081902503967, 0.247104674577713, -0.07044456899166107, -0.09758026897907257, -0.11746525764465332, 0.09919750690460205, -0.1049693152308464, -0.09004196524620056, -0.1319454461336136, 0.043658383190631866, 0.29799723625183105, -0.09784180670976639, -0.2941856384277344, 0.06571660935878754, -0.14507322013378143, -0.27952080965042114, 0.22773629426956177, 0.05663696676492691, 0.2674984633922577, -0.35831218957901, -0.28081652522087097, -0.040181517601013184, -0.052198879420757294, -0.07768700271844864, 0.14193139970302582, 0.003922171890735626, 0.019713079556822777, 0.07144759595394135, -0.24350027740001678, -0.3559814691543579, -0.16121311485767365, 0.2835134267807007, -0.2098853588104248, 0.06074068695306778, 0.5739114284515381, 0.13685861229896545, -0.20890334248542786, -0.3013285994529724, 0.1953062117099762, 0.03916331008076668, -0.17534184455871582, 0.2251400500535965, 0.23657499253749847, 0.2649999260902405, -0.01255421806126833, 0.25551068782806396, 0.223735511302948, -0.06297410279512405, -0.19746553897857666, -0.30729347467422485, -0.17112968862056732, 0.028605733066797256, 0.09784002602100372, 0.2520791292190552, 0.08839934319257736, 0.06310980021953583, 0.3833882808685303, -0.2658511698246002, -0.3185986280441284, 0.011983999982476234, -0.016286665573716164, -0.06122150272130966, 0.07422418147325516, -0.059522755444049835, 0.5541496276855469, 0.012094784528017044, 0.21479737758636475, -0.33515846729278564, -0.06588700413703918, -0.28230932354927063, -0.019231576472520828, 0.12739726901054382, 0.12418413907289505, -0.11537782102823257, 0.08203507959842682, -0.2575688064098358, -0.21829088032245636, -0.12886545062065125, -0.05567943677306175, 0.2382221221923828, -0.06395955383777618, 0.14933368563652039, 0.05890906602144241, -0.07905643433332443, -0.1343446671962738, 0.060204505920410156, -0.25758522748947144, 0.0918632298707962, 0.037909865379333496, 0.14055268466472626, 0.21135547757148743, -0.13552437722682953, -0.41857194900512695, -0.049428947269916534, 0.03348517417907715, 0.026234515011310577, 0.2199244499206543, -0.18697161972522736, -0.01010364294052124, -0.007282479200512171, 0.358844518661499, 0.19042348861694336, -0.28650060296058655, 0.054069891571998596, 0.2150324583053589, 0.21829229593276978, -0.28869518637657166, 0.07968935370445251, -0.04440684989094734, 0.06192390248179436, 0.10277178883552551, 0.19136857986450195, -0.36246976256370544, 0.0646897554397583, -0.19608984887599945, 0.03154731169342995, 0.38882869482040405, -0.19769030809402466, 0.05164971575140953, 0.39983874559402466, -0.17169521749019623, 0.06772881746292114, 0.28481802344322205, 0.044519972056150436, 0.10667296499013901, 0.5403019785881042, -0.1691652536392212, 0.027433421462774277, -0.27490824460983276, -0.11549928784370422, 0.009339459240436554, -0.3157515227794647, 0.05279671773314476, 0.14991098642349243, -0.027591660618782043, -0.006131820380687714, -0.15019626915454865, 0.27253618836402893, -0.45939940214157104, 0.12138210982084274, -0.3764192759990692, 0.37778714299201965, -0.1425219476222992, 0.16254150867462158, -0.15795746445655823, 0.010523281991481781, -0.012091197073459625, 0.04461697116494179, 0.019514672458171844, -0.2471570521593094, 0.24122226238250732, 0.4903676509857178, -0.119479238986969, -0.1413525491952896, 0.3903646469116211, 0.2625903785228729, -0.1352919340133667, -0.23590224981307983, 0.30254632234573364, 0.30347418785095215, 0.12000063061714172, -0.04925680533051491, 0.48707452416419983, 0.42694225907325745, 0.40906232595443726, 0.003901938907802105, 0.2013230174779892, -0.010011626407504082, -0.18893128633499146, -0.021495796740055084, 0.08820054680109024, -0.05504578351974487, 0.5318028330802917, 0.16388483345508575, 0.2567687928676605, -0.24685357511043549, 0.18549615144729614, 0.013369720429182053, -0.01594928652048111, -0.12920913100242615, 0.6912087798118591, -0.25647926330566406, -0.10568985342979431, -0.233110249042511, 0.05443738028407097, -0.528907060623169, 0.25208422541618347, 0.35357627272605896, 0.0812644511461258, 0.10963598638772964, 0.07250581681728363, 0.0778280645608902, 0.044587142765522, 0.27820509672164917, 0.3427440822124481, 0.3053829073905945, -0.5661407113075256, 0.02439192682504654, -0.6365788578987122, 0.17119018733501434, -0.28920406103134155, -0.04344911873340607, -0.180650532245636, -0.015653878450393677, -0.13643214106559753, 0.12965939939022064, 0.12616635859012604, 0.05368420109152794, -0.053469788283109665, -0.10564669966697693, -0.28983771800994873, -0.09530408680438995, -0.06266570091247559, 0.02572353184223175, 0.015950273722410202, -0.49501925706863403, 0.024820033460855484, -0.41317978501319885, 0.0006353482604026794, 0.027058761566877365, -0.1335083246231079, 0.039698194712400436, 0.36116304993629456, 0.45333755016326904, -0.02638913132250309, 0.5661261081695557, -0.06055836379528046, -0.1965639442205429, -0.19135335087776184, -0.2649552822113037, -0.15979982912540436, 0.22946763038635254, 0.14610376954078674, 0.3851698338985443, -0.30641430616378784, -0.00876060500741005, -0.42700788378715515, 0.29012981057167053, -0.03781283274292946, -0.06739513576030731, -0.20098641514778137, 0.002369457855820656, -0.13162031769752502, 0.1983625590801239, 0.14646072685718536, -0.015197321772575378, -0.08407703042030334, 0.18836472928524017, -0.2635793685913086, -0.38849204778671265, 0.46128425002098083, -0.26340892910957336, -0.24366174638271332, 0.042876701802015305, 0.16999958455562592, -0.09318573027849197, 0.17881788313388824, -0.48398110270500183, 0.3811464011669159, 0.4383368194103241, 0.16402989625930786, -0.21903781592845917, 0.13784582912921906, 0.0010959086939692497, 0.13838428258895874, 0.0792408287525177, 0.4123993217945099, 0.007534284144639969, -0.382577508687973, -0.034081827849149704, -0.11865521967411041 ]
https://github.com/huggingface/datasets/issues/871
terminate called after throwing an instance of 'google::protobuf::FatalException'
Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side. Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.)
Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted
39
terminate called after throwing an instance of 'google::protobuf::FatalException' Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side. Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.)
[ -0.27569422125816345, -0.6896213293075562, 0.11620411276817322, 0.36866122484207153, 0.3344208598136902, -0.06122954934835434, 0.3348032236099243, 0.15361110866069794, -0.20834021270275116, 0.11798262596130371, -0.06540098786354065, -0.33246126770973206, -0.02953271195292473, 0.405820369720459, -0.18327924609184265, -0.2990668714046478, 0.018954351544380188, 0.15408867597579956, -0.4621322453022003, -0.002163846045732498, -0.2290540635585785, 0.3899801969528198, -0.2134578973054886, 0.34838831424713135, -0.11307728290557861, 0.11780641973018646, 0.08297976106405258, 0.012771662324666977, -0.09498398005962372, -0.2316046804189682, 0.22116540372371674, -0.09099584817886353, 0.1667657494544983, 0.37020254135131836, -0.00013112323358654976, -0.03679053485393524, 0.26559504866600037, 0.05706895887851715, -0.14401395618915558, 0.11046887934207916, -0.051153190433979034, 0.14617735147476196, 0.05361997336149216, 0.036151446402072906, 0.05987954139709473, -0.20494338870048523, 0.20898838341236115, 0.23126447200775146, 0.48973971605300903, 0.015162347815930843, 0.053178321570158005, 0.3063322901725769, 0.33120158314704895, 0.08169884234666824, -0.027044691145420074, -0.11656367778778076, -0.2888157367706299, -0.06281085312366486, -0.11185891926288605, -0.016078650951385498, 0.3052894175052643, 0.010991747491061687, 0.07653243094682693, -0.18105193972587585, -0.16580429673194885, -0.04648584499955177, 0.4919872581958771, -0.3176008462905884, 0.2732101380825043, 0.30266544222831726, 0.5659928321838379, -0.20894524455070496, -0.32082077860832214, 0.2825086712837219, -0.16296400129795074, -0.663364052772522, 0.02951611578464508, 0.015764208510518074, 0.03682732954621315, 0.28724405169487, -0.1765948235988617, -0.07471524178981781, -0.35607507824897766, 0.06186371669173241, -0.24832019209861755, 0.34577468037605286, -0.07240987569093704, 0.3870837092399597, 0.19090792536735535, 0.06619049608707428, -0.3279814124107361, 0.2797859013080597, -0.16431781649589539, 0.03918938338756561, -0.3566974997520447, -0.2677067518234253, -0.0797545537352562, 0.14593154191970825, 0.17029482126235962, 0.12136612087488174, -0.08848945051431656, 0.057484470307826996, 0.2507754862308502, 0.1139541044831276, 0.4480936825275421, 0.08888547122478485, -0.09092558175325394, 0.0955573245882988, 0.2637130618095398, 0.19253839552402496, -0.019996508955955505, 0.06089096888899803, 0.1707051396369934, -0.2056465446949005, 0.21660985052585602, -0.03908975422382355, 0.5442734956741333, -0.4371446371078491, -0.39809444546699524, 0.3282666504383087, -0.5851678848266602, 0.07343299686908722, 0.10951150208711624, 0.4647296965122223, -0.021874550729990005, 0.1591080129146576, 0.2288997620344162, 0.0017635244876146317, -0.21709537506103516, -0.32988259196281433, -0.03252708166837692, 0.12487754225730896, 0.013593371957540512, 0.0792466551065445, -0.09380593150854111, -0.11054563522338867, 0.018960535526275635, -0.1687665432691574, 0.05703355371952057, -0.41750574111938477, -0.03151416778564453, -0.20174172520637512, -0.21511691808700562, 0.047676458954811096, 0.023027602583169937, 0.09130154550075531, 0.06268163025379181, 0.23382337391376495, -0.10884425044059753, -0.019475840032100677, 0.2328733503818512, -0.4418901205062866, -0.11681585013866425, 0.02093476429581642, -0.3718624711036682, 0.07001035660505295, 0.0511767640709877, 0.10088978707790375, 0.011720344424247742, 0.0647246390581131, 0.011204041540622711, -0.11784480512142181, -0.6016004681587219, 0.09555993229150772, 0.21376271545886993, 0.5098161697387695, -0.2983197569847107, -0.28317177295684814, 0.0214240662753582, -0.21856050193309784, 0.13308410346508026, 0.35102468729019165, -0.10740546137094498, 0.47403791546821594, -0.16802261769771576, 0.07712756097316742, 0.4050397574901581, -0.07548561692237854, -0.40743544697761536, 0.2993322014808655, -0.10437512397766113, -0.026438159868121147, -0.23135748505592346, -0.33122676610946655, -0.21086342632770538, -0.09103010594844818, -0.4682709276676178, 0.08347668498754501, 0.004256485030055046, 0.022909579798579216, -0.32652217149734497, -0.27868279814720154, 0.20170119404792786, 0.12925918400287628, 0.08489574491977692, -0.11556433886289597, 0.043904975056648254, 0.5326946377754211, 0.0079243965446949, -0.15992587804794312, -0.0717024952173233, 0.22964413464069366, 0.37246811389923096, 0.09578599035739899, 0.0016294624656438828, -0.0008593741804361343, -0.392689973115921, 0.19199475646018982, -0.1509624719619751, 0.34991639852523804, -0.033980339765548706, 0.13163235783576965, -0.39843058586120605, 0.23843522369861603, -0.387294203042984, -0.20965676009655, 0.042325057089328766, 0.1670190691947937, -0.11352701485157013, -0.021738670766353607, -0.0022780336439609528, 0.2230873852968216, -0.3238985240459442, 0.16480889916419983, -0.19455210864543915, 0.21807801723480225, -0.12903858721256256, -0.18675276637077332, -0.09208772331476212, 0.20057335495948792, 0.12426221370697021, -0.2472160905599594, -0.08120258897542953, 0.5033462047576904, -0.4497031271457672, 0.3622530698776245, 0.12569910287857056, 0.27147215604782104, -0.1072642132639885, -0.7133015990257263, -0.14916548132896423, 0.06057986617088318, 0.04429223760962486, 0.084248386323452, 0.2721654772758484, 0.02096472680568695, 0.36870139837265015, 0.10028018057346344, 0.042244747281074524, -0.13728594779968262, 0.07694149017333984, -0.12706530094146729, -0.3090759813785553, -0.05677138268947601, 0.19608144462108612, 0.09750556945800781, -0.0979713499546051, 0.09257527440786362, -0.3171670734882355, -0.1859455406665802, 0.5001754760742188, -0.3895014822483063, 0.10555289685726166, 0.19409197568893433, 0.2213136851787567, 0.015827931463718414, -0.016770804300904274, -0.37219324707984924, 0.43212515115737915, -0.11884552985429764, -0.04471079632639885, 0.2925683259963989, -0.23492352664470673, 0.3068991005420685, 0.21098197996616364, 0.22688263654708862, -0.09908005595207214, 0.24705439805984497, 0.15113051235675812, 0.12757617235183716, -0.28354766964912415, 0.13479913771152496, -0.029208673164248466, 0.31933870911598206, -0.34931281208992004, 0.33406707644462585, -0.2501593232154846, 0.0029529258608818054, -0.0844353437423706, 0.16953693330287933, -0.23277682065963745, -0.11750303208827972, -0.07774606347084045, 0.3478623032569885, 0.2846851646900177, 0.23752298951148987, 0.13631360232830048, 0.287369042634964, 0.3123164176940918, 0.05048234015703201, 0.07764637470245361, 0.06067672744393349, -0.37155038118362427, -0.1625669300556183, 0.27890583872795105, -0.008420273661613464, 0.17553822696208954, -0.038726821541786194, -0.2875966429710388, -0.19484345614910126, -0.2629099190235138, 0.43664294481277466, -0.2573676109313965, 0.3862486183643341, 0.2549954652786255, 0.3238665759563446, 0.050805628299713135, -0.23213571310043335, 0.3769732713699341, -0.08049806207418442, -0.11127518862485886, 0.14767365157604218, 0.008018155582249165, 0.0012471700320020318, -0.13220305740833282, -0.1545509397983551, -0.0031232647597789764, -0.25350281596183777, 0.36438071727752686, -0.1252318173646927, -0.045462340116500854, 0.15976545214653015, 0.081603042781353, 0.09781500697135925, 0.03244825080037117, 0.0944976657629013, -0.2424064576625824, 0.07129383087158203, 0.10285087674856186, 0.1708688735961914, -0.10956239700317383, 0.08422139286994934, 0.16288018226623535, 0.400604784488678, 0.027005009353160858, -0.5209591388702393, -0.08058791607618332, -0.015273267403244972, -0.2542368769645691, -0.07134110480546951, 0.11670487374067307, 0.3368336260318756, 0.08288190513849258, 0.16378676891326904, 0.11311199516057968, -0.05771500989794731, 0.3626655042171478, 0.12090286612510681, 0.43644312024116516, 0.17043793201446533, 0.6243659257888794, 0.03596794232726097, 0.44714659452438354, 0.2275727093219757, -0.09470589458942413, 0.31195491552352905, 0.09369347989559174, 0.05009608343243599, -0.06400442868471146, -0.2120325267314911, 0.005693442188203335, -0.1506774127483368, -0.13624879717826843, 0.3213932514190674, -0.12736091017723083, -0.05249299108982086, -0.21991264820098877, 0.38024669885635376, -0.2665283679962158, -0.38363903760910034, -0.1950194090604782, 0.4791100025177002, 0.44697654247283936, -0.21178507804870605, -0.12934990227222443, 0.02105516940355301, 0.14872124791145325, 0.2695377767086029, 0.01648087054491043, 0.08361063152551651, -0.029999282211065292, 0.12476499378681183, -0.12714184820652008, -0.3214205205440521, 0.22026920318603516, 0.08249589055776596, 0.36956778168678284, -0.22897200286388397, -0.05238428711891174, 0.2229156345129013, -0.08946030586957932, 0.31422752141952515, -0.11100154370069504, 0.09588747471570969, -0.0223503690212965, -0.3808891475200653, -0.07128600776195526, -0.17074967920780182, -0.24586457014083862, -0.05346973240375519, 0.11161866784095764, 0.19627565145492554, -0.722766637802124, -0.14655350148677826, 0.6654102802276611, 0.014879635535180569, -0.2597118318080902, -0.030793558806180954, -0.42698127031326294, -0.4244679808616638, -0.3164510726928711, 0.026061557233333588, 0.18988463282585144, -0.022852066904306412, -0.1808914989233017, 0.10038906335830688, 0.12158529460430145, -0.37875059247016907, 0.16770294308662415, 0.24319221079349518, -0.07777479290962219, -0.2946286201477051, -0.14196349680423737, 0.15226131677627563, -0.24289727210998535, -0.20915846526622772, 0.31842535734176636, 0.23157712817192078, -0.35919466614723206, 0.30919966101646423, 0.19302643835544586, 0.12608128786087036, 0.43525785207748413, -0.23745237290859222, 0.024190358817577362, -0.3933631181716919, 0.10622502118349075, -0.07479831576347351, 0.18969698250293732, 0.6916986107826233, 0.1641761213541031, -0.37326616048812866, 0.19044619798660278, 0.4620971977710724, -0.19210736453533173, 0.0380767285823822, 0.22014179825782776, 0.3627299666404724, -0.14664588868618011, 0.23825733363628387, -0.1088862195611, 1.2690069675445557, 0.08175491541624069, -0.18399378657341003, 0.365768700838089, 0.17863111197948456, 0.25740617513656616, -0.2753501534461975, 0.2142229825258255, -0.28460755944252014, -0.2586663067340851, -0.09806373715400696, -0.03248116374015808, -0.03317335993051529, -0.11191461980342865, -0.46783098578453064, 0.32711997628211975, 0.15955817699432373, -0.13850675523281097, 0.20324459671974182, 0.27439019083976746, 0.008488005958497524, -0.0066029708832502365, -0.2490338683128357, -0.01226142980158329, -0.08384144306182861, 0.5479549169540405, -0.40077704191207886, -0.04081612825393677, 0.18848706781864166, 0.06910526007413864, -0.5751298069953918, 0.19629856944084167, -0.23015636205673218, 0.0088637201115489, 0.16889359056949615, -0.13059166073799133, 0.3103160858154297, 0.11134122312068939, 0.38878095149993896, 0.15055325627326965, -0.32235056161880493, 0.09068699181079865, -0.23857229948043823, -0.10925114154815674, -0.14395089447498322, 0.2629016637802124, 0.06363419443368912, -0.12798097729682922, -0.4963575005531311, 0.18361854553222656, -0.027569808065891266, -0.16375528275966644, 0.03909112513065338, -0.4867975115776062, -0.11434416472911835, -0.4812125563621521, -0.04990855231881142, 0.0644630640745163, -0.33225712180137634, -0.19103527069091797, -0.02412191405892372, -0.07082045078277588, -0.4919310510158539, -0.044648103415966034, 0.1353205442428589, -0.33588212728500366, -0.0327947773039341, 0.29148128628730774, -0.46473073959350586, 0.4955446422100067, 0.5175927877426147, 0.4059615731239319, 0.03450261056423187, -0.12264928221702576, -0.41053298115730286, -0.1057097539305687, -0.7558624744415283, 0.10901911556720734, -0.04629553481936455, -0.12767091393470764, 0.004685128107666969, 0.6766908168792725, 0.1893722265958786, 0.08324608206748962, 0.037535179406404495, -0.029181037098169327, -0.16488148272037506, 0.2903733551502228, 0.03593938797712326, 0.3929038643836975, 0.02639038860797882, 0.6678975820541382, -0.18166853487491608, -0.20870128273963928, -0.1348351240158081, -0.11404334753751755, -0.5952381491661072, 0.0431545227766037, 0.6293118000030518, -0.49681076407432556, 0.2551214098930359, 0.21875397861003876, 0.04709247499704361, 0.3650158643722534, -0.15304112434387207, -0.008551271632313728, 0.0009551048278808594, 0.21529258787631989, 0.14327934384346008, -0.22932210564613342, -0.04999624937772751, 0.06482316553592682, 0.11819721758365631, 0.02233278937637806, 0.19773957133293152, -0.03454742580652237, 0.10430848598480225, 0.16686014831066132, 0.4337743818759918, 0.08937609940767288, -0.3285415768623352, -0.08265776932239532, 0.1569116711616516, 0.3206034302711487, 0.42313432693481445, 0.17580828070640564, -0.022117868065834045, -0.13437700271606445, -0.009829950518906116, 0.2518426179885864, 0.5083556771278381, -0.07761061936616898, 0.35355284810066223, -0.2344876378774643, -0.17375965416431427, -0.2526755928993225, 0.406844824552536, 0.4358222484588623, -0.303058922290802, -0.07764467597007751, -0.042938537895679474, -0.017499836161732674, -0.13700705766677856, 0.060275815427303314, 0.21706414222717285, -0.07615290582180023, -0.1653430163860321, 0.5258342623710632, 0.07069168984889984, 0.09775890409946442, 0.3721161484718323, 0.2665572464466095, 0.2728871703147888, -0.15310651063919067, -0.053760867565870285, 0.27096137404441833, -0.3218218684196472, 0.2332797646522522, 0.08798898756504059, -0.01499737799167633, 0.3673684000968933, -0.10523703694343567, -0.17627927660942078, -0.007756857201457024, -0.6213697791099548, 0.5529287457466125, 0.09946101903915405, -0.41194790601730347, -0.16083361208438873, 0.09557178616523743, 0.25796788930892944, 0.16402551531791687, -0.1661912500858307, 0.3881981372833252, 0.0901007279753685, -0.3478371202945709, -0.4924356937408447, 0.5627096891403198, -0.12206920236349106, -0.3420289158821106, 0.12244603037834167, 0.0005514547228813171, -0.4981304109096527, 0.22306537628173828, -0.15280726552009583, -0.30769193172454834, -0.15389546751976013, 0.17346474528312683, -0.1786791831254959, -0.2412707358598709, -0.3105519115924835, 0.13490772247314453, 0.08298055082559586, -0.16810840368270874, 0.3439389169216156, 0.2536005973815918, -0.23037317395210266, -0.2507806420326233, 0.48169881105422974, 0.08941589295864105, -0.07687698304653168, -0.22280515730381012, 0.20029638707637787, 0.018481886014342308, 0.17358893156051636, 0.17933408915996552, -0.023288387805223465, -0.008464284241199493, 0.23011381924152374, 0.2180698812007904, -0.0970742478966713, -0.03079177439212799, -0.02143744006752968, -0.08976830542087555, 0.19069522619247437, -0.5353970527648926, 0.04914131388068199, -0.11279571056365967, 0.0020701736211776733, -0.42661476135253906, 0.23106741905212402, -0.4342004656791687, 0.2886885702610016, 0.27367478609085083, 0.001820204546675086, 0.06864479929208755, 0.15500231087207794, -0.03759685531258583, -0.10033388435840607, 0.32173952460289, 0.40345147252082825, 0.04916659742593765, -0.3347398042678833, -0.20308008790016174, -0.22732318937778473, 0.35245266556739807, 0.017470285296440125, 0.37886789441108704, 0.3489827513694763, 0.07741353660821915, -0.12551867961883545, 0.2282450944185257, 0.13925723731517792, 0.2732209861278534, -0.14632783830165863, 0.29433658719062805, -0.1593058705329895, -0.20223543047904968, -0.38956862688064575, -0.032048605382442474, -0.06848472356796265, -0.14793676137924194, 0.15286055207252502, -0.048346083611249924, -0.09997637569904327, 0.019535627216100693, -0.4915773570537567, -0.39923229813575745, -0.13820713758468628, 0.047132283449172974, 0.2893933653831482, -0.05393694341182709, -0.11066139489412308, -0.1935112327337265, -0.16310080885887146, -0.3601304888725281, -0.13715708255767822, 0.13299769163131714, -0.20413196086883545, 0.12725432217121124, -0.011605115607380867, 0.3329963982105255, -0.39214077591896057, -0.024124354124069214, 0.2137952595949173, -0.18174616992473602, -0.3372456431388855, -0.025833062827587128, -0.24926957488059998, -0.07170476764440536, 0.10516317933797836, 0.22073441743850708, 0.12198419868946075, 0.038379937410354614, -0.4720091223716736, 0.0056413207203149796, 0.6514023542404175, -0.03940119221806526, -0.10219694674015045, 0.025127451866865158, 0.030715547502040863, 0.3078191578388214, -0.1596793681383133, -0.5445818901062012, 0.0636720135807991, -0.0219525508582592, 0.07918950915336609, -0.24916231632232666, 0.16850116848945618, 0.10204415023326874, -0.03600725904107094, 0.11724081635475159, 0.3234380781650543, 0.24808341264724731, 0.08096316456794739, 0.3928496837615967, -0.046475108712911606 ]
https://github.com/huggingface/datasets/issues/871
terminate called after throwing an instance of 'google::protobuf::FatalException'
closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks
Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted
19
terminate called after throwing an instance of 'google::protobuf::FatalException' Hi I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): run_t5_base_eval.sh: line 19: 5795 Aborted closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks
[ -0.1825481355190277, -0.7557112574577332, 0.08364079892635345, 0.556731104850769, 0.33121538162231445, -0.04410426318645477, 0.22861279547214508, 0.22010211646556854, -0.3796161711215973, 0.3128046989440918, -0.010040884837508202, -0.42508357763290405, 0.0028814543038606644, 0.5060402750968933, -0.22879205644130707, -0.433233380317688, -0.07104749232530594, 0.30942362546920776, -0.3874339759349823, 0.10113975405693054, -0.22644612193107605, 0.4186720550060272, -0.21919815242290497, 0.18528321385383606, 0.00817546620965004, 0.19570976495742798, -0.05771837383508682, -0.0667143389582634, -0.35311856865882874, -0.3468535244464874, 0.01821940578520298, -0.2039843499660492, 0.05813400447368622, 0.3137003779411316, -0.0001306237536482513, -0.02842799946665764, 0.23188775777816772, -0.03663558512926102, -0.002456389367580414, 0.11101430654525757, -0.04044641926884651, 0.09543251991271973, -0.043240517377853394, 0.0571710541844368, -0.021473746746778488, -0.24902357161045074, 0.13409750163555145, 0.08242850005626678, 0.40003788471221924, 0.177814319729805, 0.05987947806715965, 0.07082817703485489, 0.5268975496292114, 0.10118761658668518, 0.13038504123687744, -0.1859428733587265, -0.2451244592666626, -0.054413843899965286, -0.08722241222858429, 0.2543940246105194, 0.25192004442214966, 0.012764985673129559, 0.23436111211776733, -0.10397371649742126, -0.15829959511756897, -0.16672125458717346, 0.46949243545532227, -0.35945072770118713, 0.3739233613014221, 0.5036093592643738, 0.4249294698238373, -0.15960773825645447, -0.23899252712726593, 0.19788041710853577, -0.046376172453165054, -0.7821176052093506, 0.021462131291627884, 0.11773853749036789, -0.031402088701725006, 0.31774118542671204, -0.1956370323896408, 0.025042502209544182, -0.3913382291793823, -0.0535505935549736, -0.34203067421913147, 0.10481541603803635, -0.15630699694156647, 0.2693473696708679, 0.3107011020183563, -0.012363050132989883, -0.3689579665660858, 0.4468308687210083, -0.2233465313911438, 0.004628952592611313, -0.3167670667171478, -0.28400543332099915, -0.08767468482255936, 0.08858726173639297, 0.34257015585899353, 0.09834201633930206, 0.029978672042489052, -0.04418698698282242, 0.36862820386886597, -0.07317826896905899, 0.44844692945480347, 0.06989604234695435, -0.1750068962574005, -0.04746181145310402, -0.030417323112487793, 0.2391151487827301, -0.08339279890060425, 0.039903514087200165, 0.08781816065311432, -0.3864678144454956, 0.033450547605752945, -0.06124453246593475, 0.5407344698905945, -0.403038889169693, -0.3742879629135132, 0.550858736038208, -0.5646084547042847, 0.13828179240226746, -0.015264187939465046, 0.3928341865539551, 0.03688877448439598, 0.3064098656177521, 0.12086175382137299, -0.025470394641160965, -0.1815388798713684, -0.4603447914123535, -0.03245871141552925, 0.05718451365828514, 0.06870466470718384, -0.03819424659013748, -0.22900183498859406, -0.19187583029270172, 0.02742471732199192, -0.11628583818674088, 0.23013576865196228, -0.4824356138706207, -0.05260875076055527, -0.3860573172569275, -0.1272221803665161, 0.05829484760761261, 0.10700884461402893, -0.0941498875617981, 0.003993958234786987, 0.12282232940196991, -0.13687781989574432, 0.10214274376630783, 0.20300832390785217, -0.34195011854171753, -0.20195811986923218, 0.04431803151965141, -0.2757994532585144, 0.24913136661052704, 0.09743934124708176, 0.2676699161529541, 0.07013963162899017, 0.1285984069108963, 0.03754807263612747, -0.297099769115448, -0.5591110587120056, 0.03337988629937172, 0.21096360683441162, 0.3538912832736969, -0.45210176706314087, -0.11013134568929672, 0.1289370357990265, -0.16270749270915985, 0.20673909783363342, 0.36241769790649414, 0.06594196707010269, 0.2911636233329773, -0.20806844532489777, 0.18429838120937347, 0.38464152812957764, 0.004162382334470749, -0.447517067193985, 0.47415417432785034, -0.17189201712608337, 0.026861855760216713, -0.08158545941114426, -0.5575348734855652, -0.07633130252361298, 0.06254057586193085, -0.3875133991241455, 0.06094060838222504, -0.050427861511707306, -0.10202760249376297, -0.3786960542201996, -0.33488377928733826, 0.28696680068969727, 0.052184756845235825, 0.09310998022556305, -0.2644414007663727, -0.028908856213092804, 0.3470969498157501, 0.10545377433300018, -0.11648041009902954, -0.05464089661836624, 0.2943660616874695, 0.1599956899881363, -0.012367136776447296, 0.05001908168196678, -0.07154244184494019, -0.059885524213314056, 0.12665575742721558, -0.18154287338256836, 0.23022878170013428, 0.18110895156860352, 0.047765471041202545, -0.4110558331012726, 0.2406519204378128, -0.19585399329662323, -0.12140531837940216, 0.08132840692996979, 0.0905066654086113, 0.0031744949519634247, 0.03350559249520302, 0.03771744295954704, 0.03733627498149872, -0.27900075912475586, 0.19658218324184418, -0.1421755999326706, 0.06883721053600311, -0.21338267624378204, -0.11222613602876663, 0.00007044896483421326, 0.22615444660186768, 0.07854638993740082, -0.1326744109392166, -0.1358357071876526, 0.40779027342796326, -0.14598029851913452, 0.17883118987083435, -0.08233366161584854, 0.07999660819768906, -0.10618562251329422, -0.6050516963005066, 0.07276435196399689, 0.0006514787673950195, -0.07936355471611023, 0.08023207634687424, 0.4008989632129669, 0.003371313214302063, 0.4482324719429016, 0.12872034311294556, 0.04078731685876846, -0.2953243553638458, 0.040761031210422516, -0.03079814463853836, -0.26582464575767517, -0.1130765974521637, 0.22729690372943878, 0.04920192062854767, 0.026459474116563797, 0.09018632769584656, -0.37225475907325745, 0.043330878019332886, 0.5868810415267944, -0.32447609305381775, -0.020451992750167847, 0.35209786891937256, 0.19123563170433044, -0.09754015505313873, -0.15231305360794067, -0.2997417747974396, 0.28989940881729126, -0.027874119579792023, 0.11707793921232224, 0.2232634425163269, -0.1730560064315796, 0.1739894300699234, 0.20378488302230835, 0.20635314285755157, -0.042458340525627136, 0.34333178400993347, 0.16077923774719238, 0.07473524659872055, -0.19427430629730225, 0.13785582780838013, -0.08421745151281357, 0.28024759888648987, -0.2942640483379364, 0.20670534670352936, -0.3464752733707428, -0.10273010283708572, -0.03601431846618652, 0.20285609364509583, -0.10977821052074432, -0.07750245183706284, -0.012180466204881668, 0.14911189675331116, 0.20925499498844147, 0.09432539343833923, 0.01596599817276001, 0.34569019079208374, 0.3015301823616028, 0.3043159544467926, 0.19304713606834412, 0.27217817306518555, -0.32974275946617126, -0.07925574481487274, 0.24361757934093475, -0.09949798882007599, 0.10182097554206848, -0.004534516483545303, -0.27795714139938354, 0.04787878692150116, -0.3190455436706543, 0.3975227475166321, -0.2260153740644455, 0.4261744022369385, 0.29105764627456665, 0.34959250688552856, 0.16240933537483215, -0.1286504566669464, 0.27136939764022827, 0.13100996613502502, -0.21495187282562256, 0.11897507309913635, 0.04337456822395325, 0.1060265600681305, -0.19288486242294312, 0.0047685205936431885, 0.07560943067073822, -0.344009131193161, 0.5978232026100159, 0.07256993651390076, 0.09807871282100677, 0.10024217516183853, 0.2643188238143921, 0.19800958037376404, 0.1320694088935852, 0.22369466722011566, -0.32748639583587646, -0.09454147517681122, 0.0702345222234726, 0.06014637276530266, -0.10190251469612122, 0.02033885195851326, 0.1251714825630188, 0.552070677280426, 0.009498407132923603, -0.6542896032333374, -0.06412336230278015, -0.039379656314849854, -0.3225173354148865, -0.05480223894119263, 0.011852459982037544, 0.21949006617069244, -0.014438796788454056, 0.16633282601833344, 0.1242133304476738, 0.008109793066978455, 0.23200324177742004, 0.10270125418901443, 0.32762983441352844, 0.13013100624084473, 0.6841679811477661, 0.14341270923614502, 0.47171133756637573, 0.3242790699005127, 0.09992095828056335, 0.22921039164066315, -0.014260655269026756, 0.1526382565498352, -0.1874096393585205, 0.02877994440495968, 0.20105747878551483, -0.1487111747264862, -0.22891797125339508, 0.3736218214035034, -0.14041686058044434, -0.03571515530347824, -0.030977407470345497, 0.29817572236061096, -0.17496132850646973, -0.3061986565589905, -0.018554436042904854, 0.4317145347595215, 0.1991913914680481, -0.3637692928314209, 0.019916504621505737, 0.09474290907382965, 0.11488869041204453, 0.10373905301094055, -0.14329302310943604, 0.05092791095376015, 0.1069006398320198, 0.12872430682182312, -0.25396156311035156, -0.4531194567680359, 0.23276865482330322, 0.1363760232925415, 0.27957528829574585, -0.21905745565891266, -0.10295623540878296, 0.20033320784568787, -0.14135994017124176, 0.2534676790237427, -0.061667174100875854, 0.004179999232292175, 0.08701889216899872, -0.2812112867832184, -0.010608579032123089, -0.1489333063364029, -0.16824711859226227, -0.08874355256557465, 0.0999072939157486, 0.06295853853225708, -0.6216031908988953, -0.0018595852889120579, 0.6708579063415527, 0.005220126360654831, -0.11654891073703766, 0.1024375706911087, -0.3825119435787201, -0.44062745571136475, -0.2710041105747223, 0.09879821538925171, 0.3051101267337799, 0.14906179904937744, -0.19043926894664764, -0.020800922065973282, 0.08589724451303482, -0.3469175398349762, 0.20354777574539185, 0.28554847836494446, -0.05506943166255951, -0.2784852385520935, -0.09096064418554306, 0.06185143068432808, -0.28085729479789734, -0.009250929579138756, 0.3237593173980713, 0.1873803287744522, -0.4014202952384949, 0.37999141216278076, 0.15892460942268372, 0.255351722240448, 0.551891565322876, -0.19939950108528137, 0.11997050791978836, -0.36126503348350525, 0.32711344957351685, -0.2000964730978012, 0.3403960168361664, 0.6970117092132568, -0.008874328806996346, -0.2793235182762146, 0.12687478959560394, 0.3541106581687927, -0.30837300419807434, 0.18612946569919586, 0.27490532398223877, 0.4879734516143799, -0.1317799687385559, 0.20135653018951416, -0.029575489461421967, 1.3459968566894531, 0.14155974984169006, -0.22120440006256104, 0.36236292123794556, 0.022095762193202972, 0.06921865791082382, -0.3213464021682739, 0.2226085066795349, -0.2752583920955658, -0.26324886083602905, -0.08015681803226471, -0.05651816353201866, -0.021767228841781616, -0.19656701385974884, -0.5029945969581604, 0.14716516435146332, 0.14615966379642487, -0.2665554881095886, 0.02576252445578575, 0.2183862030506134, -0.07239797711372375, 0.02174186334013939, -0.07877440005540848, 0.004436943680047989, -0.1270933896303177, 0.25502490997314453, -0.29891151189804077, 0.017345037311315536, 0.09295301139354706, -0.02031484991312027, -0.7395151853561401, 0.16495570540428162, -0.39726489782333374, -0.23179323971271515, 0.01925535500049591, -0.26717984676361084, 0.25111907720565796, 0.11900825798511505, 0.290944904088974, 0.2553224265575409, -0.31128737330436707, 0.05660301819443703, -0.20902931690216064, -0.22432230412960052, 0.01170626562088728, 0.198357954621315, 0.047738075256347656, -0.19792792201042175, -0.3976747989654541, 0.18282462656497955, 0.1018938347697258, 0.05944952368736267, 0.10030472278594971, -0.5291590094566345, -0.09066520631313324, -0.546636164188385, -0.051787834614515305, -0.12373806536197662, -0.16319231688976288, -0.18336917459964752, -0.022483136504888535, -0.05874679982662201, -0.4974462687969208, -0.23207783699035645, 0.12727850675582886, -0.3527323603630066, -0.0955885797739029, 0.15528836846351624, -0.2879284918308258, 0.5394784212112427, 0.4464952051639557, 0.37567752599716187, 0.018543392419815063, -0.08962038904428482, -0.24117958545684814, -0.11865085363388062, -0.5672420263290405, 0.11385244876146317, -0.129615917801857, -0.1808697134256363, -0.12571945786476135, 0.41785958409309387, 0.2591118812561035, 0.07293522357940674, 0.041893672198057175, -0.06805460155010223, -0.25882863998413086, 0.22529950737953186, -0.06789089739322662, 0.4425279498100281, -0.016238247975707054, 0.6142129302024841, -0.19677729904651642, -0.041965730488300323, -0.1338166892528534, 0.024128004908561707, -0.46636131405830383, -0.048649661242961884, 0.41352856159210205, -0.5600556135177612, 0.06436752527952194, 0.19842250645160675, 0.06502046436071396, 0.5820112228393555, -0.13168445229530334, -0.0346597321331501, -0.08891370892524719, 0.1771107017993927, 0.07840180397033691, -0.25936728715896606, 0.030579328536987305, 0.1024135947227478, -0.013814568519592285, 0.022781966254115105, 0.19826535880565643, -0.11380963027477264, 0.19058439135551453, 0.07533179968595505, 0.4522080719470978, 0.05315718054771423, -0.2297772318124771, -0.06336034089326859, 0.2922239601612091, 0.5698918700218201, 0.4143063426017761, 0.2580902576446533, -0.047366075217723846, -0.11226577311754227, 0.02351612225174904, 0.34577664732933044, 0.4345477223396301, -0.21333307027816772, 0.3456011116504669, -0.22151289880275726, -0.17937369644641876, -0.174183651804924, 0.3166126012802124, 0.4049070477485657, -0.3494214117527008, -0.06127104163169861, -0.022375095635652542, -0.017198024317622185, -0.12059780955314636, 0.07805144041776657, 0.20769643783569336, -0.14722424745559692, -0.19904419779777527, 0.4944221079349518, 0.015115704387426376, 0.09519292414188385, 0.20497170090675354, 0.24400821328163147, 0.04349718987941742, -0.008122410625219345, -0.14550425112247467, 0.3248821496963501, -0.3696913719177246, 0.17766398191452026, 0.07455464452505112, 0.06688105314970016, 0.5588192939758301, 0.03862087428569794, -0.24408778548240662, -0.035991013050079346, -0.5670958161354065, 0.5346624851226807, 0.11420342326164246, -0.3848813772201538, -0.20938344299793243, 0.28090164065361023, 0.07380802929401398, 0.22915592789649963, -0.053286999464035034, 0.3404664099216461, 0.201473668217659, -0.4261127710342407, -0.5190361738204956, 0.4846895933151245, -0.20308539271354675, -0.34809550642967224, 0.19346486032009125, 0.030553989112377167, -0.5891633033752441, 0.30823075771331787, -0.07697372138500214, -0.24848578870296478, -0.20799744129180908, 0.05307742580771446, -0.15189753472805023, -0.05506663769483566, -0.26824644207954407, 0.07076036930084229, 0.1284526139497757, -0.3370710015296936, 0.4778934121131897, 0.43002039194107056, -0.1742856651544571, -0.1102566123008728, 0.4660414457321167, 0.24973219633102417, -0.08952655643224716, -0.2848258912563324, 0.09403824806213379, 0.11769668757915497, 0.07932254672050476, 0.07231751829385757, -0.0033888258039951324, 0.19671593606472015, 0.472740113735199, 0.3561056852340698, -0.07676492631435394, -0.042094822973012924, -0.030409622937440872, 0.019708942621946335, 0.17989085614681244, -0.6338070631027222, -0.08846277743577957, -0.1270015984773636, 0.06677123159170151, -0.32115039229393005, 0.07482509315013885, -0.5564798712730408, 0.25305333733558655, 0.16314075887203217, -0.0004771410021930933, 0.05404742807149887, 0.1432606279850006, -0.03274476155638695, -0.06775543093681335, 0.2711184322834015, 0.44039061665534973, 0.0064047761261463165, -0.2855246663093567, -0.2524414658546448, -0.13230007886886597, 0.36136770248413086, -0.24007239937782288, 0.14055146276950836, 0.3154822587966919, 0.1597660332918167, -0.1240990087389946, 0.1682177484035492, 0.2631756663322449, 0.3169569671154022, -0.06290018558502197, 0.3524360656738281, -0.13351604342460632, -0.23484839498996735, -0.3311813473701477, -0.13565953075885773, -0.020817648619413376, -0.13642197847366333, 0.29711368680000305, -0.06577888876199722, -0.14630503952503204, 0.09589266777038574, -0.25507432222366333, -0.39554911851882935, -0.24899044632911682, 0.0886138528585434, 0.2972627878189087, -0.09250470995903015, -0.16019749641418457, -0.21999695897102356, -0.20320627093315125, -0.23144586384296417, -0.2321932017803192, 0.21324071288108826, -0.15350361168384552, 0.13092602789402008, -0.08005771785974503, 0.11886358261108398, -0.2190868854522705, 0.04677128791809082, 0.2452975958585739, -0.07437765598297119, -0.331563800573349, -0.021745948120951653, -0.23876386880874634, -0.02981003373861313, 0.2515653073787689, 0.2170666754245758, 0.14795759320259094, -0.01926369033753872, -0.3196558952331543, -0.08054164797067642, 0.5513913631439209, 0.021487489342689514, -0.08227416127920151, 0.052417732775211334, 0.01933249831199646, 0.3917849063873291, -0.11353624612092972, -0.6487379670143127, 0.1016545221209526, 0.026153046637773514, 0.13447552919387817, -0.25667157769203186, 0.2677624821662903, -0.11095558106899261, -0.07724866271018982, 0.04697544500231743, 0.3199745714664459, 0.2324952483177185, 0.0502796471118927, 0.33816611766815186, -0.11065758019685745 ]
https://github.com/huggingface/datasets/issues/870
[Feature Request] Add optional parameter in text loading script to preserve linebreaks
Hi ! Thanks for your message. Indeed it's a free feature we can add and that can be useful. If you want to contribute, feel free to open a PR to add it to the text dataset script :)
I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data. I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great. But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines. Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned. But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`.
39
[Feature Request] Add optional parameter in text loading script to preserve linebreaks I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data. I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great. But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines. Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned. But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`. Hi ! Thanks for your message. Indeed it's a free feature we can add and that can be useful. If you want to contribute, feel free to open a PR to add it to the text dataset script :)
[ -0.43547147512435913, 0.29508429765701294, 0.05672178044915199, -0.24413122236728668, -0.09724612534046173, -0.2072376012802124, 0.33312657475471497, 0.17588448524475098, 0.2980455756187439, 0.3277396559715271, 0.5034342408180237, 0.23918786644935608, -0.017637599259614944, 0.1306847631931305, -0.011161626316606998, -0.1541549265384674, -0.16735446453094482, 0.3164181113243103, 0.09484369307756424, 0.09435917437076569, -0.17424267530441284, 0.22894130647182465, -0.2351752072572708, -0.3131564259529114, -0.09428630769252777, 0.17584745585918427, 0.061547957360744476, -0.17628058791160583, 0.048664167523384094, -0.2417832463979721, 0.05369047820568085, 0.4617237448692322, -0.20172704756259918, -0.06298122555017471, -0.00012331244943197817, -0.15191739797592163, 0.18342632055282593, -0.1822310984134674, -0.6022974848747253, -0.1147574633359909, -0.3729272186756134, -0.291445791721344, -0.09922836720943451, -0.227468341588974, 0.062269315123558044, 0.34241071343421936, -0.045878663659095764, -0.4362993836402893, 0.28005680441856384, 0.30785632133483887, 0.0495159737765789, 0.10740701854228973, -0.5713551640510559, -0.0663224384188652, 0.526820957660675, 0.2910940945148468, -0.06296039372682571, 0.054802149534225464, 0.016209319233894348, 0.057880699634552, -0.4066483974456787, 0.3086511492729187, -0.36277422308921814, -0.23989929258823395, 0.3153907358646393, 0.03332594782114029, -0.1040525808930397, 0.019156046211719513, 0.12582308053970337, 0.6455952525138855, 0.6044312715530396, -0.522823691368103, -0.18113809823989868, -0.5374611616134644, 0.31586986780166626, -0.25997060537338257, 0.07737556099891663, 0.08975356072187424, -0.4800497889518738, 0.1028652936220169, -0.3286260962486267, -0.579975962638855, -0.27249759435653687, 0.028256196528673172, 0.05155579745769501, 0.007163599133491516, 0.08528023213148117, -0.12949958443641663, 0.21397563815116882, 0.2667272388935089, -0.11557331681251526, -0.3966219127178192, -0.16725923120975494, -0.012049580924212933, 0.18660852313041687, -0.13835099339485168, -0.1339072287082672, 0.02952469512820244, 0.2464735507965088, 0.1903958022594452, 0.2343105971813202, -0.07289303094148636, 0.16598445177078247, -0.009609006345272064, -0.14662301540374756, 0.0010833349078893661, 0.6396604180335999, -0.12632916867733002, 0.3962600827217102, -0.059876829385757446, 0.2541895806789398, -0.01475212350487709, 0.3621479868888855, -0.05533844605088234, 0.2506430149078369, 0.21686214208602905, 0.5353255867958069, 0.050784673541784286, -0.10152886062860489, -0.008451788686215878, 0.15770184993743896, -0.27382692694664, 0.02311009354889393, 0.02317708730697632, 0.25297337770462036, 0.24979105591773987, 0.0939323753118515, 0.3397790193557739, -0.024563830345869064, -0.45208486914634705, -0.011584990657866001, -0.07390663027763367, 0.06909327208995819, 0.4735105037689209, 0.4798794090747833, -0.1322537660598755, 0.018857372924685478, 0.3098442256450653, -0.32728779315948486, 0.21258202195167542, -0.25991758704185486, 0.010739641264081001, -0.062403805553913116, 0.08973097801208496, 0.05029558762907982, -0.051447417587041855, -0.2781384289264679, 0.12921732664108276, -0.14427143335342407, 0.39823001623153687, -0.2081502079963684, -0.2423778623342514, -0.012095442041754723, 0.11867791414260864, -0.17463771998882294, -0.11648501455783844, -0.11901182681322098, 0.3408356010913849, 0.23297402262687683, -0.21904109418392181, 0.3950002193450928, -0.06775368005037308, -0.41483646631240845, -0.19052501022815704, 0.1208386942744255, 0.6844412088394165, -0.5018542408943176, -0.3941885828971863, -0.24467851221561432, -0.1617775708436966, 0.19721868634223938, -0.08458507061004639, -0.2083406001329422, 0.3146699070930481, -0.09435929358005524, 0.4131854772567749, 0.5370361804962158, 0.21260276436805725, -0.21132582426071167, 0.41150256991386414, 0.1002035140991211, -0.02685059979557991, 0.302057147026062, 0.1166808158159256, 0.4532318413257599, 0.08674297481775284, -0.32385411858558655, 0.5056157112121582, 0.10820970684289932, 0.2016526609659195, 0.07918934524059296, -0.13299934566020966, 0.33309346437454224, 0.16914378106594086, -0.12615008652210236, -0.038036249577999115, -0.04639466851949692, -0.043688394129276276, 0.17351320385932922, -0.15402311086654663, 0.09815110266208649, -0.057063259184360504, 0.11341941356658936, 0.234413743019104, -0.03188107907772064, -0.09841927140951157, -0.5309474468231201, -0.14501658082008362, 0.144973486661911, -0.10539542138576508, -0.23064662516117096, -0.35729122161865234, 0.15329265594482422, 0.08999484777450562, 0.08450710028409958, 0.38194209337234497, -0.054485686123371124, 0.07624007016420364, -0.49136558175086975, 0.18557830154895782, -0.2050105631351471, 0.12585905194282532, -0.05961772799491882, 0.29734551906585693, -0.04123751074075699, 0.1600453108549118, 0.4320732653141022, -0.14158855378627777, -0.028411630541086197, 0.20375937223434448, 0.03573738411068916, 0.07576306909322739, -0.18623238801956177, 0.5891006588935852, 0.2256733626127243, 0.30132555961608887, -0.3549940288066864, -0.3149195909500122, -0.007347064092755318, 0.07858431339263916, 0.0901804268360138, 0.080440953373909, -0.1342436820268631, -0.19157084822654724, -0.2021726667881012, 0.35266566276550293, -0.1503385752439499, 0.3353113532066345, -0.11818252503871918, -0.12177810817956924, -0.2494117021560669, -0.314717173576355, -0.2909690737724304, -0.42267969250679016, 0.20189838111400604, -0.1425284892320633, 0.37981271743774414, 0.2567828297615051, -0.06510855257511139, -0.0855780616402626, 0.5796650648117065, -0.13687844574451447, 0.3069625198841095, 0.3238111138343811, 0.021142441779375076, -0.14020352065563202, 0.14884580671787262, 0.26987922191619873, 0.3828233480453491, 0.26349711418151855, -0.14876000583171844, 0.06680991500616074, -0.005977964960038662, -0.3844341039657593, 0.2802659273147583, 0.2170621007680893, -0.08574280142784119, 0.3734264373779297, 0.016543317586183548, -0.14884838461875916, -0.32343757152557373, -0.023938994854688644, 0.021003184840083122, -0.08654411137104034, -0.351774662733078, -0.11672630906105042, -0.28427982330322266, -0.2587321996688843, -0.1788250356912613, -0.23894284665584564, -0.35895296931266785, -0.24145552515983582, 0.19671767950057983, -0.1388002634048462, -0.34965452551841736, 0.18348851799964905, -0.262919545173645, 0.7408052682876587, -0.18333058059215546, -0.562178373336792, 0.026970066130161285, -0.1942993849515915, 0.08123786002397537, -0.06597843021154404, -0.013845233246684074, 0.19655485451221466, 0.2640570104122162, -0.003651769831776619, 0.09097997844219208, -0.06974828988313675, 0.1031588688492775, 0.04979698359966278, 0.03871194273233414, -0.2021925151348114, 0.49285733699798584, 0.17263074219226837, 0.3285778760910034, -0.2593168020248413, -0.17930367588996887, -0.21249307692050934, 0.041899554431438446, 0.1382410228252411, 0.1157144159078598, -0.07701069861650467, -0.37449249625205994, -0.18180355429649353, 0.018616443499922752, -0.273880273103714, -0.02736680954694748, -0.4108993411064148, 0.006127811968326569, 0.2384628802537918, 0.08895768225193024, 0.037839628756046295, -0.012854058295488358, -0.05263226479291916, 0.04658744856715202, 0.13605251908302307, 0.3777828812599182, 0.018419606611132622, 0.15043720602989197, -0.06236039847135544, -0.05686851590871811, 0.0013300739228725433, 0.38076984882354736, -0.4775207042694092, 0.2629408538341522, -0.12003529071807861, 0.49522876739501953, -0.12209801375865936, -0.0351204052567482, 0.3664514720439911, 0.1364004760980606, 0.08151831477880478, -0.22465729713439941, -0.014772428199648857, 0.2787935733795166, -0.3612312078475952, 0.048678576946258545, 0.23443397879600525, 0.5663762092590332, -0.0025380216538906097, 0.38881057500839233, -0.00683105643838644, 0.14092779159545898, 0.26641297340393066, -0.15724799036979675, 0.3855629861354828, 0.3046710789203644, -0.28006330132484436, -0.3151490390300751, 0.07951147109270096, 0.08123218268156052, 0.20620591938495636, 0.07044254243373871, 0.019344594329595566, -0.1236395612359047, -0.46142134070396423, 0.23981410264968872, -0.5338414311408997, 0.16248877346515656, -0.08308054506778717, 0.23927265405654907, -0.13540886342525482, 0.2915029525756836, -0.2403935343027115, -0.3213290870189667, -0.013779258355498314, 0.3209161162376404, 0.336584210395813, -0.07237137854099274, -0.2709949016571045, 0.3177291750907898, -0.2754431366920471, 0.11210751533508301, 0.1583699733018875, -0.053984224796295166, 0.06723153591156006, -0.16830158233642578, -0.01660938560962677, 0.23344162106513977, 0.5474968552589417, -0.12550386786460876, -0.38264763355255127, -0.16109931468963623, 0.2949235737323761, -0.08907296508550644, -0.0021833181381225586, 0.1107507199048996, 0.23316849768161774, 0.2805108428001404, -0.05547897517681122, -0.2624710500240326, -0.013529806397855282, 0.2837168574333191, 0.15789878368377686, -0.036803483963012695, -0.6033734679222107, -0.07712946832180023, 0.08219978958368301, -0.09167315065860748, 0.017950795590877533, -0.02887597121298313, 0.018479665741324425, -0.2994557321071625, 0.13003608584403992, 0.3077903687953949, -0.3788071274757385, 0.36495745182037354, -0.09372599422931671, 0.11186973750591278, -0.0028548636473715305, -0.043635088950395584, -0.217523455619812, -0.1295163780450821, -0.06255246698856354, 0.27178001403808594, -0.2432945966720581, -0.35519760847091675, -0.4424707293510437, -0.44034016132354736, 0.6828673481941223, 0.23836550116539001, -0.23976187407970428, 0.29662370681762695, -0.011126834899187088, 0.008318662643432617, -0.0566013865172863, -0.045577727258205414, -0.15434478223323822, -0.5080240368843079, -0.1981164515018463, -0.4083794951438904, 0.3745974600315094, -0.08507512509822845, -0.11844388395547867, 0.01975417509675026, -0.030966155230998993, -0.43121635913848877, 0.15094314515590668, -0.1620282530784607, 0.7613756656646729, 0.43894678354263306, 0.23393118381500244, -0.048315227031707764, -0.053029272705316544, 0.40914463996887207, 0.2154635637998581, 0.04685496538877487, -0.16809846460819244, 0.1603151261806488, -0.1227327510714531, -0.04891646280884743, 0.20176634192466736, 0.06601591408252716, -0.4209388792514801, 0.19257698953151703, 0.12530142068862915, 0.09055262804031372, -0.10945282876491547, 0.3929075002670288, -0.5889467597007751, -0.42461246252059937, 0.15153807401657104, -0.0910884290933609, -0.12652817368507385, 0.010897388681769371, 0.215164452791214, -0.19846339523792267, 0.4758717715740204, -0.26902854442596436, -0.3731585144996643, 0.1091192290186882, -0.12770193815231323, -0.10770025849342346, -0.09462718665599823, -0.16705045104026794, 0.3970535397529602, 0.4145123362541199, 0.17247852683067322, 0.3433482050895691, -0.12556684017181396, 0.048762816935777664, -0.2599713206291199, 0.14276330173015594, -0.07696636766195297, 0.10112536698579788, 0.2524683475494385, -0.015510708093643188, -0.3237214982509613, 0.06454440206289291, 0.20280009508132935, -0.46373873949050903, -0.24522948265075684, -0.39083075523376465, 0.2647168040275574, -0.49404802918434143, -0.0714084655046463, -0.05712324380874634, 0.35704222321510315, -0.18170124292373657, -0.017806321382522583, 0.057814180850982666, 0.32176879048347473, 0.018235743045806885, -0.27628493309020996, -0.12677760422229767, -0.1952645480632782, 0.32642173767089844, -0.029297545552253723, 0.0016731172800064087, 0.45284774899482727, 0.249142125248909, -0.15439561009407043, -0.2483578324317932, 0.03307428956031799, -0.02270907163619995, -0.6799125671386719, 0.20171144604682922, 0.19616417586803436, 0.17100737988948822, -0.04675529524683952, 0.20489434897899628, -0.29731547832489014, 0.2577686905860901, 0.009927917271852493, -0.2536349296569824, 0.00112219899892807, -0.0372333750128746, 0.255959689617157, 0.40142518281936646, 0.2199048101902008, -0.16783900558948517, 0.00354120135307312, 0.008589768782258034, -0.15610246360301971, -0.023953888565301895, 0.48703497648239136, -0.17659254372119904, 0.011218056082725525, 0.2093709111213684, -0.09702631831169128, -0.20562952756881714, -0.11252479255199432, 0.0031670313328504562, 0.04372172802686691, -0.03936318680644035, -0.308946430683136, 0.22350181639194489, -0.10484037548303604, 0.04511073976755142, -0.11079854518175125, -0.008543150499463081, 0.10963128507137299, -0.13151918351650238, 0.32081034779548645, 0.11527653783559799, -0.2157716602087021, 0.34837618470191956, 0.1890641301870346, 0.3747319281101227, -0.20615580677986145, 0.09693792462348938, -0.31193092465400696, 0.20905034244060516, -0.05295156314969063, 0.2815999388694763, -0.07820264250040054, 0.07849065959453583, -0.15376459062099457, 0.1794762909412384, 0.5239461660385132, 0.1282901167869568, 0.040846843272447586, -0.08445191383361816, -0.23829707503318787, 0.05136902630329132, -0.04899683594703674, 0.0801130086183548, -0.4318627119064331, 0.02195603959262371, 0.10428688675165176, 0.08637451380491257, -0.2357269823551178, -0.058928217738866806, 0.06600284576416016, -0.011379468254745007, 0.13130700588226318, 0.26729437708854675, 0.031964268535375595, -0.12378033995628357, 0.191290020942688, -0.1409003734588623, 0.40498489141464233, 0.23786087334156036, 0.16180367767810822, 0.5519505739212036, -0.004450757056474686, -0.047799136489629745, -0.19679728150367737, 0.30160585045814514, 0.018447168171405792, -0.031838275492191315, -0.06800595670938492, 0.38811013102531433, 0.19917848706245422, 0.028522446751594543, -0.12007572501897812, -0.39869654178619385, 0.1948860138654709, 0.2730500102043152, -0.24936002492904663, 0.21825772523880005, 0.192805677652359, 0.24954238533973694, 0.05288567394018173, 0.023040715605020523, -0.2613328993320465, 0.20509926974773407, -0.06620416045188904, -0.15796811878681183, -0.5553823113441467, -0.021858733147382736, -0.17794901132583618, -0.0033019743859767914, 0.03414132446050644, -0.06018853187561035, -0.030757367610931396, 0.11996462196111679, 0.08154445141553879, -0.003784880042076111, 0.3470277190208435, -0.34958067536354065, 0.2278907597064972, -0.30459141731262207, -0.17196038365364075, -0.11401385068893433, 0.3842436373233795, 0.5464942455291748, -0.042113617062568665, 0.10878350585699081, 0.14233627915382385, 0.2631817162036896, -0.03320703282952309, -0.1873614341020584, -0.0052227843552827835, 0.09349467605352402, 0.2236049324274063, 0.12160421907901764, 0.5366197824478149, 0.3224514424800873, -0.00004823971539735794, 0.023854341357946396, 0.496155709028244, 0.18963414430618286, -0.02329813316464424, -0.4056720435619354, 0.40019264817237854, 0.4818977117538452, -0.1691308319568634, -0.4080250561237335, 0.05767124891281128, 0.10501473397016525, -0.26762157678604126, 0.2647191286087036, -0.05597943067550659, -0.17017611861228943, -0.2995612621307373, 0.02011515572667122, 0.040517207235097885, 0.1210685521364212, 0.350368469953537, 0.0009225532412528992, -0.11068952083587646, -0.04199214279651642, -0.2783931493759155, -0.2308301329612732, -0.05264158919453621, -0.06326275318861008, 0.2438686043024063, -0.2401646226644516, 0.06262984871864319, 0.16710136830806732, -0.31634026765823364, 0.3353949785232544, -0.305198073387146, -0.3688960075378418, -0.10190434008836746, -0.01817205920815468, 0.16490796208381653, -0.07237943261861801, -0.16757982969284058, -0.08403737843036652, 0.07134587317705154, -0.10590360313653946, -0.13539358973503113, -0.17311802506446838, 0.2033347189426422, 0.3793598413467407, 0.31749430298805237, -0.11669284105300903, -0.1601060926914215, 0.18572524189949036, -0.11306561529636383, 0.1530613899230957, 0.06985799968242645, 0.2486238330602646, -0.23879247903823853, -0.018206700682640076, 0.21963490545749664, 0.21189682185649872, 0.02879210375249386, -0.03899889066815376, 0.05001228302717209, 0.5180226564407349, -0.03314529359340668, 0.18500253558158875, -0.18184234201908112, 0.030675964429974556, -0.11502207815647125, 0.02271924540400505, -0.10713502764701843, -0.22592270374298096, -0.18299923837184906, 0.1417902261018753, 0.07612000405788422, -0.16980043053627014, 0.2956992983818054, -0.23869365453720093, 0.019146237522363663, -0.3457774519920349, 0.44181084632873535, 0.28369882702827454, 0.043562330305576324, -0.7789451479911804, -0.17357490956783295, 0.37841448187828064, -0.05041501671075821, 0.014337942004203796, 0.5416882634162903, 0.1780787855386734, 0.21965117752552032, -0.0907413512468338, 0.28513699769973755, -0.012517247349023819, -0.3764244318008423, -0.1094915121793747, -0.38448983430862427 ]
https://github.com/huggingface/datasets/issues/866
OSCAR from Inria group
PR is already open here : #348 The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled). As soon as #863 is merged we can start computing them. This will take a bit of time though
## Adding a Dataset - **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/). - **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.* - **Paper:** *[here](https://hal.inria.fr/hal-02148693)* - **Data:** *[here](https://oscar-corpus.com/)* - **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).* I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages.
43
OSCAR from Inria group ## Adding a Dataset - **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/). - **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.* - **Paper:** *[here](https://hal.inria.fr/hal-02148693)* - **Data:** *[here](https://oscar-corpus.com/)* - **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).* I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages. PR is already open here : #348 The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled). As soon as #863 is merged we can start computing them. This will take a bit of time though
[ -0.07899966835975647, -0.0689798966050148, -0.0829852968454361, 0.061385855078697205, -0.08882272243499756, 0.09406178444623947, -0.012248802930116653, 0.2985753118991852, 0.0025459378957748413, 0.08631591498851776, -0.5969401001930237, -0.05120498314499855, -0.24507249891757965, 0.07547243684530258, 0.15065622329711914, -0.33214351534843445, 0.05202161520719528, -0.18975970149040222, -0.24470943212509155, -0.2940574884414673, -0.1997523009777069, 0.1900048553943634, 0.10844498872756958, -0.07059872150421143, 0.20795002579689026, -0.215377539396286, -0.43402716517448425, -0.11184033006429672, -0.13035428524017334, -0.1936030238866806, -0.003016119822859764, 0.20021119713783264, 0.2905135452747345, 0.6354879140853882, -0.00009606563980923966, -0.1057056337594986, -0.05947020649909973, -0.23907186090946198, 0.0947268009185791, -0.11666683852672577, 0.2534603476524353, -0.0826733335852623, -0.19837282598018646, -0.3360138237476349, -0.4045933485031128, -0.3702584505081177, -0.027756547555327415, -0.4808146059513092, 0.1629256308078766, 0.17972856760025024, 0.28068339824676514, -0.22710971534252167, -0.17511031031608582, -0.2170565277338028, -0.024889223277568817, -0.28692853450775146, -0.31929197907447815, 0.06109950691461563, 0.5420653820037842, -0.07494566589593887, 0.03867097571492195, 0.3805999755859375, 0.1031535416841507, -0.2377464920282364, -0.117909274995327, -0.0452902615070343, 0.08051485568284988, -0.3604673445224762, 0.15375468134880066, 0.33729562163352966, 0.019772224128246307, -0.34214088320732117, -0.31691861152648926, -0.17639431357383728, -0.049127738922834396, -0.02056290954351425, -0.2518905997276306, 0.3864119350910187, 0.03646421059966087, 0.2546270787715912, 0.20601880550384521, -0.24139344692230225, -0.11939491331577301, 0.1010255515575409, 0.03173423558473587, 0.597121000289917, 0.08017580211162567, -0.12375552207231522, -0.024724725633859634, 0.015380065888166428, -0.039811309427022934, -0.006700381636619568, 0.027071617543697357, 0.19046613574028015, -0.3079116940498352, -0.32504716515541077, 0.20660561323165894, -0.15933838486671448, 0.4159703552722931, -0.15098869800567627, 0.24825066328048706, 0.17402157187461853, -0.17950573563575745, 0.12143246829509735, 0.2831610143184662, -0.0899357795715332, -0.17440247535705566, -0.11565384268760681, 0.072332464158535, -0.4601130187511444, 0.08208189904689789, 0.17436394095420837, -0.1357313096523285, 0.13133162260055542, -0.2064628005027771, 0.0541563518345356, -0.07753441482782364, -0.045871756970882416, 0.08064734935760498, -0.053738370537757874, -0.2299365997314453, 0.013793941587209702, -0.09864404797554016, 0.07683828473091125, -0.02589207887649536, 0.012043729424476624, -0.09097440540790558, 0.0679464116692543, -0.10710318386554718, -0.2761724293231964, -0.20342539250850677, 0.2176356017589569, -0.3801766037940979, 0.1288456916809082, 0.1727493852376938, 0.01901126280426979, 0.011963842436671257, -0.23409835994243622, 0.23284095525741577, 0.21338531374931335, 0.36115747690200806, -0.32029440999031067, 0.16095991432666779, -0.14940117299556732, 0.21170943975448608, -0.2598242461681366, 0.050251659005880356, -0.21921077370643616, -0.4714740514755249, -0.029562853276729584, 0.04505697637796402, -0.302335262298584, -0.1582363396883011, 0.24645420908927917, -0.23152273893356323, -0.13688969612121582, -0.24492430686950684, 0.7459753155708313, 0.007385358214378357, 0.12476111948490143, -0.04919978231191635, -0.0011200383305549622, -0.36346402764320374, -0.020204059779644012, 0.08913493901491165, 0.26496726274490356, 0.1860184520483017, -0.00880473479628563, 0.04760708287358284, 0.18410837650299072, 0.12004458159208298, 0.337563157081604, -0.1249203234910965, -0.14938503503799438, 0.002036856487393379, 0.17539627850055695, 0.20104722678661346, -0.25091907382011414, 0.056665949523448944, 0.04135938733816147, 0.006092436611652374, -0.07180631905794144, 0.18880008161067963, -0.1069103553891182, 0.36488795280456543, -0.3289222717285156, 0.1453191339969635, 0.6325170993804932, -0.2468336820602417, 0.18295258283615112, -0.23722809553146362, -0.03586630895733833, -0.05154889076948166, 0.26696425676345825, 0.30473214387893677, -0.31777262687683105, 0.11109469085931778, -0.3176097869873047, 0.13686424493789673, -0.19074752926826477, 0.2715631127357483, -0.019909720867872238, 0.19887208938598633, 0.05422836169600487, 0.240592822432518, -0.4054972529411316, -0.005557544529438019, 0.032198771834373474, -0.06765781342983246, 0.5373079776763916, -0.08504526317119598, -0.34939485788345337, -0.1995297372341156, -0.2065918892621994, -0.03813401982188225, -0.02134525775909424, 0.2677493691444397, 0.3026920258998871, 0.08854316174983978, 0.02338150516152382, -0.1373601108789444, -0.0861658975481987, -0.13424840569496155, -0.30868685245513916, -0.003367587924003601, 0.36493119597435, -0.09229135513305664, -0.08110536634922028, 0.21294429898262024, 0.40555283427238464, -0.19977080821990967, -0.23720596730709076, 0.10527841001749039, 0.11529870331287384, -0.16469895839691162, 0.09172974526882172, 0.5061906576156616, 0.34475472569465637, 0.18930396437644958, -0.5001240372657776, 0.13490433990955353, 0.1144307553768158, 0.18334363400936127, -0.06493860483169556, -0.1615118682384491, 0.29667210578918457, 0.18318504095077515, -0.021967433393001556, 0.20729918777942657, -0.08915664255619049, 0.3712124824523926, -0.04402083531022072, -0.09549735486507416, -0.08472584187984467, 0.03433568775653839, -0.01430986076593399, 0.04682953283190727, 0.1122884750366211, -0.5806650519371033, 0.1995319426059723, 0.5494884848594666, 0.07855555415153503, 0.309913694858551, 0.1553821563720703, -0.0023569315671920776, -0.17784011363983154, -0.08579539507627487, 0.04356331750750542, 0.11411397159099579, 0.3094472885131836, 0.39736488461494446, 0.06152038276195526, 0.19209368526935577, -0.008789537474513054, 0.17326566576957703, -0.1201457530260086, 0.2182253897190094, 0.2752736806869507, 0.21653777360916138, 0.03975370526313782, -0.20156461000442505, -0.1670658141374588, 0.08663183450698853, 0.10498674213886261, 0.3335326015949249, 0.10441181808710098, 0.16209456324577332, -0.28095823526382446, -0.2595307230949402, -0.16249142587184906, -0.10266686975955963, -0.0025337524712085724, 0.27187806367874146, -0.2838675081729889, -0.1953328400850296, 0.2530284523963928, -0.08991166949272156, 0.30123406648635864, -0.11370740085840225, -0.02975100465118885, 0.12934225797653198, -0.4761379361152649, -0.09637092798948288, 0.24891069531440735, 0.28576332330703735, 0.02438811957836151, 0.40652793645858765, 0.10193639993667603, -0.0001942552626132965, -0.05545707046985626, -0.4803338646888733, 0.1979082226753235, -0.21938927471637726, -0.1993473768234253, -0.0839124470949173, -0.328285813331604, -0.008986007422208786, -0.25606590509414673, 0.1163565069437027, -0.19063642621040344, -0.13587507605552673, -0.023953773081302643, -0.1252659559249878, -0.030644992366433144, -0.10825192928314209, -0.6249159574508667, -0.5535085797309875, -0.39316752552986145, 0.11623665690422058, -0.08693509548902512, 0.19056354463100433, -0.22225366532802582, -0.22369089722633362, -0.05321871489286423, 0.23866786062717438, 0.18234550952911377, -0.28497248888015747, -0.05592828989028931, 0.26150262355804443, -0.386819064617157, -0.23364649713039398, -0.2682064175605774, -0.3120083808898926, 0.26690346002578735, 0.1276147961616516, -0.09025328606367111, 0.023046955466270447, -0.07228171825408936, -0.32462048530578613, 0.22940915822982788, -0.07988952100276947, 0.29515963792800903, 0.26610803604125977, -0.20857509970664978, -0.06839451193809509, -0.048003725707530975, 0.06692671775817871, 0.18937242031097412, -0.03522462397813797, -0.06917443871498108, 0.21037685871124268, 0.2413160502910614, 0.3895184397697449, -0.07555855065584183, 0.17891182005405426, 0.32576730847358704, 0.3153466582298279, 0.06768721342086792, -0.08754546195268631, -0.20064303278923035, 0.18449801206588745, 0.1857752501964569, 0.027367491275072098, 0.568168580532074, 0.24407684803009033, -0.7737678289413452, -0.23683583736419678, -0.06652098894119263, -0.2774050533771515, -0.2823319733142853, 0.22674857079982758, -0.006430104374885559, 0.16727018356323242, -0.06945084035396576, -0.33381107449531555, -0.29701995849609375, -0.08676938712596893, 0.18682873249053955, 0.017958298325538635, -0.04484231024980545, 0.13901424407958984, -0.1333758682012558, 0.16935265064239502, -0.3628244400024414, 0.19298449158668518, 0.20519022643566132, -0.07444983720779419, -0.054792702198028564, -0.137666255235672, 0.014912061393260956, -0.06476099789142609, -0.07244884967803955, -0.39271292090415955, -0.0003964565694332123, 0.12836195528507233, -0.300094336271286, 0.07540929317474365, 0.015313241630792618, -0.28246235847473145, 0.06761108338832855, 0.390034943819046, -0.06619668006896973, -0.47340452671051025, -0.22879348695278168, 0.1623782366514206, -0.009826365858316422, -0.09817028790712357, -0.19044023752212524, -0.02238381840288639, -0.49722951650619507, -0.05570024251937866, 0.10055867582559586, 0.1771858036518097, 0.1592842936515808, 0.026854248717427254, -0.02684803307056427, -0.11469264328479767, -0.05039164796471596, 0.3639604449272156, 0.10629749298095703, -0.1620108187198639, 0.35485824942588806, 0.18451938033103943, -0.10377062857151031, 0.24752525985240936, 0.2776951789855957, 0.3752758800983429, -0.2040380835533142, -0.267469197511673, 0.23031193017959595, -0.4009722173213959, 0.3091100752353668, 0.044056087732315063, 0.38943639397621155, 0.2537851333618164, -0.17593827843666077, -0.05484367907047272, -0.16680677235126495, -0.09639956802129745, -0.02525862120091915, 0.24767398834228516, -0.43727630376815796, -0.618876039981842, 0.31241413950920105, 0.1915920078754425, -0.29401975870132446, 0.32575544714927673, 0.12273624539375305, -0.4092986583709717, 0.6036084890365601, -0.008506648242473602, 1.006821870803833, -0.2064816802740097, 0.019268065690994263, -0.07574332505464554, 0.242594376206398, 0.16570016741752625, -0.32143884897232056, -0.02495608478784561, -0.04086029529571533, -0.1627236306667328, 0.10126954317092896, 0.17930977046489716, 0.005564495921134949, 0.16151392459869385, -0.26215308904647827, 0.09297408908605576, 0.08940446376800537, -0.08396171033382416, 0.08686346560716629, 0.39806535840034485, 0.04768739268183708, -0.313905268907547, -0.28404489159584045, 0.2409484088420868, -0.003707040101289749, -0.016463469713926315, 0.03756232559680939, -0.17477180063724518, -0.06271521747112274, 0.37829500436782837, -0.45764559507369995, 0.003091154620051384, 0.2986183166503906, 0.042078398168087006, -0.13181547820568085, -0.23171216249465942, 0.50970858335495, 0.055433839559555054, 0.4480830430984497, -0.1488114595413208, -0.08569390326738358, 0.06142357364296913, -0.19982975721359253, -0.19617332518100739, 0.10594188421964645, -0.17274558544158936, 0.4053303599357605, -0.09202218800783157, -0.30072030425071716, 0.2931477725505829, 0.3604835569858551, -0.1609971970319748, -0.2587643265724182, -0.05155317485332489, 0.08584935963153839, 0.06633691489696503, 0.1887255609035492, 0.3918244242668152, -0.30242082476615906, -0.03774210810661316, 0.25994208455085754, 0.23046907782554626, -0.22499555349349976, 0.17143696546554565, -0.012872204184532166, -0.13042646646499634, -0.00461849570274353, -0.01136256754398346, 0.5888927578926086, -0.19108057022094727, 0.028340019285678864, 0.2820190191268921, -0.0597928948700428, -0.2995472848415375, -0.2678394019603729, 0.17369045317173004, 0.027203738689422607, -0.06035107001662254, -0.1044188141822815, -0.24052762985229492, 0.19922740757465363, -0.0005390532314777374, 0.252238005399704, 0.14262016117572784, -0.07045400887727737, 0.0334540456533432, 0.10155289620161057, 0.1490962952375412, -0.0322876013815403, 0.018511589616537094, -0.118863545358181, 0.047874245792627335, 0.068877674639225, 0.34295549988746643, -0.5057382583618164, 0.007853536866605282, -0.20167778432369232, 0.21853357553482056, 0.05284442752599716, -0.09391038864850998, -0.06186327338218689, 0.10016311705112457, 0.11761277914047241, -0.018825706094503403, -0.12560796737670898, -0.2954028248786926, -0.137036994099617, 0.0935640037059784, -0.08994423598051071, 0.2373555451631546, 0.1993774175643921, -0.06182839348912239, -0.1603851616382599, -0.3016294240951538, 0.1719178557395935, 0.10170706361532211, 0.0034260228276252747, 0.08959350734949112, 0.3138924837112427, -0.10096078366041183, -0.045301053673028946, -0.016486074775457382, 0.059155791997909546, 0.14523865282535553, -0.034368064254522324, 0.16396719217300415, 0.03712987154722214, -0.2268972396850586, 0.19593651592731476, 0.24242845177650452, 0.051746759563684464, 0.10042178630828857, 0.23975089192390442, 0.29742467403411865, 0.1709429919719696, 0.3149261772632599, 0.19693514704704285, -0.1982327103614807, 0.014286907389760017, -0.012567911297082901, 0.05644454434514046, 0.3172784447669983, -0.3726850152015686, 0.09816932678222656, 0.12700940668582916, 0.022746358066797256, 0.38881340622901917, 0.395903617143631, 0.25131329894065857, 0.10400490462779999, 0.057098619639873505, -0.09614536166191101, 0.24205633997917175, 0.009487362578511238, 0.253791868686676, -0.10558831691741943, 0.13613691926002502, -0.025520827621221542, 0.1322353631258011, -0.036281879991292953, 0.44129037857055664, 0.11815927922725677, -0.19809702038764954, 0.4327000081539154, 0.36720308661460876, 0.00027323514223098755, 0.184795081615448, -0.025760453194379807, 0.16545090079307556, 0.2912638783454895, 0.22480079531669617, 0.11230996251106262, 0.07669971883296967, 0.4137375056743622, 0.15457049012184143, 0.060471680015325546, -0.12321152538061142, 0.3448937237262726, 0.14267446100711823, 0.1009165495634079, -0.23859833180904388, -0.1853683888912201, -0.3306390941143036, -0.004949141293764114, -0.10868237912654877, -0.16030162572860718, 0.2862163186073303, 0.012314416468143463, 0.11066216230392456, -0.0545542910695076, -0.030041009187698364, 0.013200579211115837, 0.37079498171806335, -0.14732687175273895, 0.2632618844509125, 0.37924742698669434, -0.3474469482898712, -0.1610165238380432, 0.4022830128669739, -0.07344581186771393, 0.008224636316299438, -0.33073312044143677, 0.3771049976348877, -0.01659320667386055, -0.06043948233127594, 0.001569228246808052, 0.1722233146429062, 0.16570830345153809, -0.12339919805526733, 0.16303633153438568, 0.1844748556613922, -0.17006322741508484, -0.04381614550948143, 0.18577153980731964, -0.14767016470432281, 0.12121360003948212, 0.21909686923027039, 0.21015289425849915, 0.1303417682647705, -0.12940654158592224, 0.02925349771976471, -0.5958349108695984, -0.2451610416173935, 0.2990208864212036, -0.00820320937782526, 0.012320991605520248, -0.13015803694725037, 0.12109643220901489, 0.2004072517156601, 0.44568318128585815, 0.1922936737537384, 0.204544335603714, -0.013814073987305164, -0.34606480598449707, -0.3378746807575226, 0.25690069794654846, -0.14208702743053436, 0.01488017849624157, -0.20770525932312012, 0.28836023807525635, 0.4104835093021393, 0.3200039267539978, -0.3424784541130066, 0.3709460496902466, 0.017937462776899338, 0.0065468475222587585, -0.5773763060569763, 0.17934457957744598, -0.004449807107448578, 0.15755721926689148, 0.09181354939937592, -0.08193555474281311, -0.11664943397045135, -0.16691981256008148, 0.2160651683807373, -0.23413412272930145, -0.10011279582977295, 0.0029196031391620636, 0.11204900592565536, 0.13577070832252502, 0.08029726147651672, 0.2219417691230774, -0.03081928752362728, -0.032829273492097855, 0.07140316069126129, -0.3288218677043915, -0.15407739579677582, 0.30533573031425476, 0.14694708585739136, -0.11982487142086029, -0.2654133439064026, -0.3528784513473511, 0.20711395144462585, 0.2779448330402374, -0.12278982251882553, 0.04934542253613472, -0.21143265068531036, -0.039165206253528595, 0.046624332666397095, -0.14173446595668793, -0.13020268082618713, 0.3917129635810852, -0.04728896915912628, -0.06892891228199005, -0.07542651891708374, -0.29664239287376404, 0.24506758153438568, -0.10273427516222, -0.3108028769493103, -0.36669546365737915, 0.07276570796966553, 0.25434234738349915, 0.2759602963924408, -0.25053033232688904, 0.2675189673900604, 0.26656290888786316, 0.2953966557979584, -0.08164221048355103, 0.12150628864765167, 0.06833600997924805, -0.22003395855426788, -0.2534702718257904, -0.10436369478702545, -0.011296018958091736, -0.20400983095169067, -0.34580492973327637, -0.27204009890556335 ]
https://github.com/huggingface/datasets/issues/865
Have Trouble importing `datasets`
I'm sorry, this was a problem with my environment. Now that I have identified the cause of environmental dependency, I would like to fix it and try it. Excuse me for making a noise.
I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets. I cloned the newest version of datasets (master branch), and do `pip install -e .`. Then, `import datasets` causes the error below. ``` ~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module> 116 sys.path.append(str(HF_MODULES_CACHE)) 117 --> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True) 119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")): 120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"): ~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok) 221 return 222 try: --> 223 mkdir(name, mode) 224 except OSError: 225 # Cannot rely on checking for EEXIST, since the operating system FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules' ``` The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set. (I use Python 3.8, so `exist_ok` is expected to work.) I've checked some environment variables, and they are set as below. ``` *** NameError: name 'HF_MODULES_CACHE' is not defined *** NameError: name 'hf_cache_home' is not defined *** NameError: name 'XDG_CACHE_HOME' is not defined ``` Should I set some environment variables before using this library? And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set? Thank you in advance.
34
Have Trouble importing `datasets` I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets. I cloned the newest version of datasets (master branch), and do `pip install -e .`. Then, `import datasets` causes the error below. ``` ~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module> 116 sys.path.append(str(HF_MODULES_CACHE)) 117 --> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True) 119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")): 120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"): ~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok) 221 return 222 try: --> 223 mkdir(name, mode) 224 except OSError: 225 # Cannot rely on checking for EEXIST, since the operating system FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules' ``` The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set. (I use Python 3.8, so `exist_ok` is expected to work.) I've checked some environment variables, and they are set as below. ``` *** NameError: name 'HF_MODULES_CACHE' is not defined *** NameError: name 'hf_cache_home' is not defined *** NameError: name 'XDG_CACHE_HOME' is not defined ``` Should I set some environment variables before using this library? And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set? Thank you in advance. I'm sorry, this was a problem with my environment. Now that I have identified the cause of environmental dependency, I would like to fix it and try it. Excuse me for making a noise.
[ -0.2681199610233307, 0.13085868954658508, 0.009197574108839035, 0.17224757373332977, 0.2753853499889374, 0.07383512705564499, 0.20720097422599792, 0.18338456749916077, 0.1529000997543335, -0.10359588265419006, -0.2849368751049042, -0.14241565763950348, -0.11809433251619339, -0.318189412355423, 0.03069876879453659, 0.15117068588733673, 0.263543039560318, 0.33810490369796753, -0.35533636808395386, -0.26575297117233276, -0.23653481900691986, 0.19567906856536865, 0.0699341744184494, 0.038372479379177094, -0.3075055480003357, 0.1586766242980957, -0.19232065975666046, 0.35460227727890015, -0.08741435408592224, -0.3079354763031006, 0.31280288100242615, 0.07678190618753433, 0.2757256329059601, 0.7110564708709717, -0.00012152310955571011, 0.1625320166349411, 0.1903071105480194, -0.06287124752998352, -0.41912317276000977, -0.323655903339386, -0.08901554346084595, -0.3284655809402466, 0.11002152413129807, -0.18702805042266846, 0.19901752471923828, -0.27342817187309265, 0.08014384657144547, -0.2908485233783722, 0.49904555082321167, 0.3661041259765625, 0.12878546118736267, 0.35626980662345886, 0.15865245461463928, -0.042590249329805374, 0.1484106183052063, 0.44516390562057495, -0.07815422862768173, -0.06638830900192261, -0.008593246340751648, -0.10548228025436401, 0.2778816819190979, 0.0019221010152250528, -0.18297667801380157, 0.014080715365707874, 0.41557809710502625, -0.07524868845939636, 0.03773375600576401, -0.31844252347946167, 0.059880733489990234, 0.20001670718193054, 0.727567732334137, -0.4121954143047333, -0.7552506923675537, -0.12534202635288239, -0.19179224967956543, -0.16388431191444397, 0.28456664085388184, -0.0826181098818779, 0.09837724268436432, 0.2858666777610779, 0.004053528420627117, -0.3440297245979309, -0.16610349714756012, 0.3062964081764221, -0.07754971086978912, 0.11183439940214157, 0.00830714963376522, 0.02485603094100952, 0.2521101236343384, -0.18961583077907562, 0.3435189425945282, -0.34113454818725586, 0.09488089382648468, 0.38318824768066406, -0.32095739245414734, -0.06062634289264679, 0.08679331094026566, 0.10253304243087769, -0.06632743030786514, 0.099671371281147, -0.4005201756954193, -0.022623136639595032, -0.290192186832428, 0.16021740436553955, 0.1484985053539276, 0.20439395308494568, -0.06418270617723465, 0.3525398373603821, 0.21067774295806885, -0.11759769916534424, 0.17626754939556122, -0.07521902024745941, -0.24364237487316132, -0.20415960252285004, 0.03670443221926689, -0.0733521431684494, 0.17528532445430756, -0.3583667576313019, -0.07626181095838547, 0.04999300837516785, -0.0009144730865955353, 0.06254345178604126, -0.019660092890262604, 0.3692306578159332, -0.08634881675243378, 0.17791295051574707, 0.12727056443691254, 0.33687686920166016, -0.29379794001579285, 0.11312973499298096, -0.15512481331825256, 0.3129037916660309, -0.2285296618938446, 0.023685894906520844, 0.2922729551792145, -0.0684453696012497, 0.26171278953552246, -0.12036653608083725, 0.30844390392303467, 0.24678382277488708, 0.08944635838270187, -0.21385622024536133, 0.06180592253804207, 0.6000422835350037, -0.20232559740543365, 0.4967264235019684, 0.30528736114501953, -0.2590162754058838, -0.1908973753452301, -0.05037354677915573, -0.17294564843177795, -0.23694944381713867, -0.19757533073425293, 0.09008278697729111, -0.4204050302505493, 0.05998712033033371, -0.13694840669631958, -0.4408089518547058, 0.2870683968067169, -0.24880729615688324, -0.0929095670580864, -0.27486932277679443, 0.2901179790496826, -0.17866259813308716, 0.16304254531860352, 0.7134698629379272, -0.45375555753707886, -0.0906328558921814, -0.4043838381767273, -0.08303532004356384, -0.10284038633108139, 0.3096977472305298, -0.13425329327583313, 0.1072888970375061, -0.2472752034664154, -0.14184141159057617, 0.291589617729187, -0.44253888726234436, -0.3745620846748352, -0.03541044145822525, 0.004885539412498474, 0.059154823422431946, 0.19877266883850098, -0.03954922780394554, 0.12416983395814896, -0.21758270263671875, -0.1797388792037964, 0.21305376291275024, 0.030654633417725563, -0.16234414279460907, -0.10350501537322998, -0.28063830733299255, 0.04647309333086014, 0.3110310733318329, 0.410185307264328, 0.04622409865260124, 0.057921383529901505, 0.14239639043807983, -0.0716322585940361, -0.05588165298104286, 0.1470707505941391, 0.5463573336601257, 0.4187244176864624, 0.2150305062532425, 0.12265811860561371, -0.04351913556456566, -0.2793138325214386, 0.325038880109787, 0.09441076219081879, -0.03128983825445175, -0.3206380605697632, 0.0869087278842926, -0.12552601099014282, 0.08224295824766159, -0.265886127948761, -0.06128719821572304, 0.02292080596089363, 0.013283945620059967, 0.042952585965394974, 0.004128716886043549, -0.13769939541816711, 0.5887192487716675, 0.08418639004230499, 0.29859408736228943, -0.3340807259082794, 0.49762070178985596, -0.2197430580854416, -0.02433289960026741, -0.2272535264492035, 0.213233083486557, 0.035628825426101685, -0.09588740020990372, -0.16538900136947632, 0.22771722078323364, 0.05094137415289879, 0.04039900377392769, -0.0894365981221199, 0.40679043531417847, 0.1685875952243805, -0.3530103862285614, 0.32459399104118347, 0.21885958313941956, 0.0722007006406784, 0.012581244111061096, -0.1360509991645813, -0.17286749184131622, -0.11183148622512817, 0.2684084177017212, 0.0629781112074852, 0.0753321498632431, 0.15974926948547363, -0.01826195791363716, -0.09262774139642715, -0.297341525554657, 0.27647966146469116, 0.14009179174900055, 0.5950936675071716, 0.019513260573148727, 0.2839186191558838, -0.05880969017744064, 0.06487810611724854, -0.04619566351175308, 0.050494179129600525, 0.029605114832520485, -0.24496743083000183, 0.09414130449295044, 0.23930540680885315, 0.3468308746814728, 0.5564563274383545, 0.10727827250957489, -0.1874958872795105, 0.10478652268648148, -0.17522558569908142, 0.015193019062280655, 0.023683294653892517, 0.18322890996932983, 0.14470915496349335, 0.12252495437860489, -0.11152505874633789, 0.0541960634291172, -0.12004077434539795, -0.5026330351829529, 0.06246601790189743, 0.30782750248908997, -0.5334969758987427, 0.21419711410999298, -0.3632017970085144, -0.17243117094039917, -0.17130035161972046, -0.02008974924683571, -0.22820085287094116, -0.3269524872303009, -0.1747831255197525, 0.19582049548625946, -0.05696869641542435, 0.13768230378627777, -0.0231508556753397, -0.1850917488336563, -0.16160157322883606, -0.5011031031608582, -0.1654447317123413, -0.11890409886837006, -0.061578214168548584, -0.08522887527942657, 0.14521567523479462, -0.018659193068742752, 0.11595473438501358, -0.1061147004365921, 0.10914647579193115, -0.31765809655189514, -0.3510702848434448, 0.05255822092294693, 0.050592102110385895, 0.30230411887168884, 0.1253056526184082, 0.25755560398101807, 0.19926531612873077, -0.25784754753112793, 0.13705237209796906, 0.060714684426784515, -0.07995398342609406, 0.08623731136322021, 0.030032122507691383, -0.328007310628891, -0.1532602608203888, -0.1224607452750206, -0.46668845415115356, -0.43572327494621277, -0.22885732352733612, 0.03949189558625221, 0.07015413045883179, 0.6503168344497681, 0.2038678228855133, 0.1293325126171112, 0.10877927392721176, -0.09122142940759659, -0.06349672377109528, -0.01445382833480835, 0.579163134098053, -0.21206866204738617, -0.26354655623435974, 0.012133631855249405, -0.18412603437900543, 0.27278977632522583, 0.18574263155460358, -0.29849672317504883, -0.01780741848051548, -0.13284079730510712, 0.1384146362543106, 0.018292544409632683, 0.3956168293952942, 0.4145404100418091, 0.17499299347400665, 0.09817878901958466, -0.22871261835098267, 0.013999462127685547, -0.12110229581594467, 0.17753386497497559, 0.34734442830085754, -0.1626526415348053, 0.3198258578777313, -0.2939312756061554, 0.84543377161026, 0.08068060874938965, 0.016348648816347122, 0.41637754440307617, 0.19022762775421143, 0.7380414605140686, -0.009634830057621002, -0.4733697772026062, -0.02555374801158905, -0.009458810091018677, -0.23999762535095215, -0.001080445945262909, -0.0055483486503362656, -0.18450310826301575, -0.13957864046096802, 0.17226827144622803, -0.15254521369934082, -0.15865786373615265, -0.05619905889034271, -0.07250142097473145, 0.10483965277671814, 0.12375994026660919, 0.09191114455461502, -0.23406898975372314, -0.06838378310203552, 0.11896593868732452, 0.5389796495437622, -0.1123921200633049, 0.2590025067329407, -0.4309728741645813, -0.3115486204624176, -0.10102949291467667, 0.10868681222200394, -0.14972861111164093, 0.33636149764060974, -0.11918269097805023, 0.14158529043197632, -0.17877058684825897, 0.12557761371135712, 0.4687950611114502, -0.22332090139389038, -0.31369882822036743, 0.25323382019996643, -0.026599541306495667, -0.5515049695968628, -0.278007835149765, 0.07867266237735748, 0.14611542224884033, -0.02128903940320015, 0.1174364984035492, -0.36975035071372986, -0.20674148201942444, -0.021154288202524185, 0.4966007173061371, -0.1066758930683136, -0.16650177538394928, -0.19157756865024567, -0.2636028230190277, -0.3931649327278137, -0.37317606806755066, -0.053619302809238434, -0.017494656145572662, 0.04274322837591171, 0.26922547817230225, -0.07280708104372025, -0.004815703257918358, 0.3909718990325928, 0.0288444384932518, 0.3221442401409149, -0.1840125322341919, 0.20990127325057983, 0.2420090287923813, -0.19916272163391113, 0.317775696516037, 0.5349607467651367, -0.2972736060619354, -0.3691236674785614, 0.129020094871521, 0.04338298738002777, 0.19291307032108307, 0.11768029630184174, -0.08909396082162857, -0.14913728833198547, -0.010816391557455063, -0.04722019284963608, 0.06858020275831223, 0.04971856623888016, 0.036589380353689194, 0.18124917149543762, -0.154353067278862, -0.34262004494667053, 0.452833354473114, 0.1937420517206192, 0.07214465737342834, 0.3791007101535797, 0.38844239711761475, -0.16847006976604462, 0.4540007710456848, -0.07364185899496078, 0.8807654976844788, -0.02569998800754547, 0.10924305766820908, 0.11452732980251312, -0.1691683530807495, 0.5640374422073364, -0.37052255868911743, -0.07924088090658188, -0.3676963150501251, -0.16442085802555084, -0.10515900701284409, -0.2876475155353546, 0.39115121960639954, 0.2009364664554596, -0.1806267648935318, 0.36544743180274963, -0.054288383573293686, 0.06444859504699707, 0.015721537172794342, 0.20183195173740387, 0.051467590034008026, -0.42426759004592896, -0.0983048602938652, 0.1415809541940689, -0.04290597885847092, 0.5573288202285767, -0.1223057359457016, 0.16801556944847107, -0.3432846665382385, -0.13801246881484985, -0.26111364364624023, 0.13598239421844482, -0.14278540015220642, 0.4621759057044983, 0.19321338832378387, -0.2737785875797272, 0.26123863458633423, 0.201859250664711, 0.5882258415222168, 0.2044983208179474, -0.2599532902240753, 0.07726350426673889, -0.16639110445976257, 0.01658192090690136, 0.061267200857400894, -0.039154812693595886, 0.4917526841163635, 0.05349474400281906, -0.2163822203874588, 0.060125648975372314, -0.268537312746048, -0.13037076592445374, 0.22577601671218872, -0.2135467380285263, 0.03804486244916916, -0.1937052607536316, -0.2546375095844269, 0.16744235157966614, 0.08464480936527252, 0.07278412580490112, 0.05004461854696274, 0.16309398412704468, 0.06116163358092308, 0.36795303225517273, -0.19917869567871094, -0.1089944839477539, -0.20010067522525787, 0.3990020751953125, -0.16308379173278809, -0.05307780206203461, 0.5511951446533203, 0.04856770858168602, -0.27520617842674255, -0.00918523222208023, -0.05087076872587204, 0.02941075712442398, -0.471020370721817, -0.23807740211486816, -0.188813254237175, -0.3708629012107849, 0.041384972631931305, -0.28120186924934387, 0.32648682594299316, -0.11400546878576279, -0.11132245510816574, -0.39064982533454895, -0.25035858154296875, 0.2954978346824646, -0.17868958413600922, 0.19405141472816467, -0.04877609759569168, -0.05231763795018196, 0.16568037867546082, -0.16565139591693878, -0.21810945868492126, -0.0774855837225914, -0.25161775946617126, -0.023950345814228058, 0.26360875368118286, -0.08443542569875717, 0.043690215796232224, -0.3919891119003296, 0.004298079758882523, -0.16591021418571472, -0.3986685276031494, -0.06111916899681091, -0.17351944744586945, 0.19711905717849731, 0.12147525697946548, -0.14936642348766327, 0.22293394804000854, -0.19897258281707764, 0.0006002597510814667, -0.25658535957336426, -0.00212186761200428, 0.11977095156908035, -0.11849227547645569, 0.11764448881149292, 0.14557740092277527, -0.14399901032447815, -0.3486427664756775, 0.21487857401371002, 0.1121494472026825, 0.18453440070152283, 0.07024194300174713, 0.21870309114456177, 0.03993341326713562, -0.04396979883313179, -0.512084424495697, 0.09814482182264328, -0.20633895695209503, -0.0965811237692833, 0.3869279623031616, -0.35974693298339844, 0.22604700922966003, 0.2410663664340973, 0.2113783210515976, 0.3813195824623108, -0.10316701978445053, 0.1548476219177246, 0.4258764386177063, 0.08289050310850143, -0.25610530376434326, -0.21858561038970947, 0.15946556627750397, 0.0705733597278595, 0.05811452493071556, 0.3408960998058319, 0.14016678929328918, -0.11982698738574982, 0.7606735229492188, 0.2311883568763733, 0.6941436529159546, -0.11009564995765686, 0.26432886719703674, 0.38378089666366577, -0.08340853452682495, 0.1918819695711136, 0.2336907982826233, 0.084954634308815, 0.2238955795764923, 0.360866904258728, -0.2763066291809082, 0.14869745075702667, -0.020311560481786728, 0.14991913735866547, 0.045103441923856735, -0.5368810892105103, 0.011982489377260208, -0.23427259922027588, 0.22289857268333435, -0.05013769119977951, -0.03949145972728729, 0.040002454072237015, -0.386348158121109, 0.024756373837590218, -0.06328116357326508, 0.203102245926857, -0.03348090499639511, 0.1203937977552414, 0.4617049992084503, 0.0134357288479805, -0.06660474091768265, -0.18011006712913513, 0.020031075924634933, -0.4102994203567505, 0.12398679554462433, 0.06871713697910309, -0.1802629679441452, -0.24269647896289825, 0.24134546518325806, 0.13215410709381104, -0.0655994787812233, -0.20450854301452637, 0.16770851612091064, 0.12105334550142288, -0.1471862643957138, -0.17569926381111145, 0.47644302248954773, 0.44725725054740906, 0.36503806710243225, 0.03475191071629524, 0.06564822047948837, 0.04293208569288254, -0.05830487608909607, 0.15676680207252502, 0.0065881796181201935, -0.3767543435096741, 0.2104240506887436, 0.22445669770240784, 0.09036663174629211, -0.09394484758377075, -0.327474445104599, -0.1402047574520111, -0.061064522713422775, -0.2975263297557831, 0.31514087319374084, 0.007452873513102531, -0.14360640943050385, -0.0054719410836696625, -0.0202254056930542, -0.490323007106781, 0.04249562323093414, 0.4755943715572357, 0.023723041638731956, -0.02827746793627739, -0.03990759328007698, -0.0054831597954034805, 0.010930614545941353, 0.33778315782546997, 0.5781377553939819, 0.274225115776062, -0.40899407863616943, 0.09746535122394562, -0.8250724673271179, -0.02109745889902115, -0.2424006462097168, -0.13009385764598846, 0.19279474020004272, 0.06579801440238953, 0.00013822317123413086, 0.08860723674297333, 0.2619175910949707, 0.1530325561761856, -0.06720844656229019, -0.07175211608409882, -0.32998621463775635, -0.27059996128082275, 0.010886043310165405, -0.022107457742094994, -0.06709141284227371, -0.3362776041030884, 0.014973532408475876, 0.145815908908844, -0.03699334338307381, -0.12940570712089539, -0.085834801197052, 0.2077593356370926, -0.15710175037384033, 0.4208470284938812, -0.13908293843269348, 0.31309372186660767, 0.18302950263023376, -0.1593533158302307, -0.24206489324569702, -0.27849236130714417, -0.09133895486593246, -0.0075332000851631165, 0.03567161783576012, 0.5254507064819336, -0.42021703720092773, -0.3511499762535095, -0.38881924748420715, 0.06769206374883652, 0.20718951523303986, -0.02184467203915119, -0.11916963011026382, 0.3861370086669922, -0.22010737657546997, 0.31553930044174194, 0.22223134338855743, 0.05276735872030258, -0.029280930757522583, 0.3702804446220398, -0.24898381531238556, -0.34442973136901855, 0.4452054798603058, -0.12711548805236816, -0.11873786151409149, -0.12911948561668396, 0.264762818813324, -0.042151324450969696, -0.27340322732925415, -0.4115770161151886, 0.010954037308692932, 0.14725139737129211, -0.08650530874729156, -0.3207422196865082, 0.0393427275121212, 0.1452866494655609, 0.09057886898517609, -0.05919034779071808, 0.4109853506088257, -0.1266404092311859, -0.008443498983979225, 0.16318845748901367, 0.11226308345794678 ]
https://github.com/huggingface/datasets/issues/864
Unable to download cnn_dailymail dataset
Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2
### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions.
18
Unable to download cnn_dailymail dataset ### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions. Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2
[ -0.30534887313842773, 0.234373539686203, -0.07922700047492981, 0.17067977786064148, 0.3605659604072571, 0.17380869388580322, 0.5607904195785522, 0.24365609884262085, -0.17192476987838745, 0.07515984773635864, -0.11793925613164902, 0.0767754316329956, -0.28970810770988464, -0.03775304928421974, -0.013056927360594273, -0.029159821569919586, -0.21272575855255127, 0.1067625880241394, -0.197343111038208, 0.02916382998228073, -0.10671384632587433, 0.09612719714641571, -0.15220075845718384, -0.06974956393241882, -0.29296451807022095, -0.1320360153913498, 0.036386407911777496, 0.17929908633232117, -0.3712783455848694, -0.352104514837265, 0.3593556582927704, -0.08252137899398804, 0.18734881281852722, 0.43545272946357727, -0.00011129578342661262, 0.29957902431488037, 0.3638949394226074, -0.05004113167524338, -0.46190309524536133, -0.4736372232437134, -0.1796995997428894, -0.13513189554214478, 0.04177456349134445, -0.29667919874191284, -0.0017571225762367249, 0.01226847805082798, -0.03551935404539108, 0.1481751799583435, 0.3508038818836212, 0.655796229839325, 0.27080947160720825, 0.4034878611564636, 0.35445892810821533, -0.16699038445949554, -0.22140854597091675, 0.15944260358810425, -0.07421941310167313, 0.5186956524848938, -0.40132617950439453, 0.10327672958374023, 0.20565685629844666, 0.12078392505645752, -0.1278408318758011, 0.17287315428256989, 0.050754763185977936, 0.018949707970023155, 0.13691169023513794, -0.4564383625984192, 0.12486836314201355, 0.25986379384994507, 0.41855838894844055, -0.20146441459655762, -0.2431451678276062, 0.11963777989149094, 0.14340738952159882, -0.2662431001663208, 0.1472918689250946, 0.3098777234554291, -0.16431356966495514, 0.05820044130086899, -0.27769735455513, 0.011133910156786442, -0.2915739119052887, 0.41406023502349854, -0.23036794364452362, 0.1816994547843933, 0.04030269756913185, 0.07407023012638092, 0.22286495566368103, -0.15204168856143951, 0.40154099464416504, -0.2636485695838928, 0.24718084931373596, 0.07260812819004059, -0.05233712121844292, -0.13678567111492157, 0.05456330254673958, -0.24839827418327332, 0.013720128685235977, 0.013428688049316406, -0.1899159550666809, -0.24806708097457886, 0.0034490078687667847, 0.07252193987369537, -0.003176061436533928, 0.08489489555358887, -0.23781445622444153, 0.6527371406555176, 0.1373990774154663, 0.4710143804550171, -0.11476810276508331, 0.04230189695954323, -0.23180747032165527, -0.13142135739326477, 0.13424921035766602, 0.1773545742034912, 0.5618000626564026, -0.19134870171546936, -0.4141945540904999, 0.2526678144931793, -0.5342706441879272, 0.0010658982209861279, 0.19670704007148743, 0.32258397340774536, -0.16969457268714905, 0.03549452871084213, 0.00047563016414642334, 0.10847697407007217, 0.028169022873044014, 0.08047987520694733, -0.26930472254753113, 0.28593018651008606, -0.11966116726398468, -0.09742334485054016, 0.3719027042388916, -0.3562032878398895, 0.17968778312206268, -0.022808780893683434, 0.10484888404607773, -0.13135041296482086, 0.1455950289964676, -0.2708338499069214, -0.1464383900165558, 0.4110410213470459, -0.1056433916091919, 0.13181911408901215, 0.08542674779891968, 0.04590073227882385, -0.1711769998073578, 0.11689358949661255, -0.023616865277290344, -0.39915046095848083, 0.07574128359556198, 0.24047037959098816, -0.07827357947826385, -0.3346491754055023, 0.19673386216163635, -0.21130524575710297, -0.04418925195932388, 0.009028647094964981, -0.13164350390434265, -0.2747359871864319, -0.0488872267305851, -0.19608058035373688, 0.3570636510848999, 0.6024295091629028, -0.43875330686569214, 0.030003540217876434, -0.17706841230392456, -0.2216213047504425, 0.18658378720283508, 0.2859838902950287, -0.33142897486686707, 0.2865728735923767, -0.08010349422693253, -0.20042696595191956, 0.4411742091178894, -0.40873226523399353, -0.5403163433074951, 0.20195600390434265, -0.04574475437402725, 0.07474061846733093, -0.05776660889387131, 0.05303129181265831, 0.08413752913475037, 0.07740695774555206, 0.09538155794143677, 0.49153852462768555, -0.19399018585681915, -0.027715936303138733, -0.15104623138904572, -0.3296215832233429, 0.1893860101699829, 0.3296567499637604, 0.4307677149772644, 0.14758002758026123, -0.008207857608795166, 0.10209294408559799, 0.12814758718013763, 0.07092515379190445, -0.05174054205417633, 0.16132056713104248, 0.32195234298706055, -0.035337887704372406, -0.1970410794019699, -0.07640162855386734, -0.3915070593357086, 0.10541928559541702, 0.11943988502025604, 0.19854700565338135, -0.09418076276779175, -0.05775279551744461, -0.4808584451675415, -0.11438446491956711, -0.226801797747612, 0.04082920402288437, 0.21293531358242035, 0.20927317440509796, 0.12773571908473969, 0.0437876395881176, -0.2601550221443176, 0.388875812292099, -0.050296537578105927, 0.2067394256591797, -0.15094299614429474, 0.40174931287765503, -0.29262205958366394, -0.05860050767660141, 0.0658874586224556, 0.04778182506561279, 0.25279557704925537, -0.1254136860370636, -0.10623852163553238, 0.11329270154237747, 0.010623440146446228, -0.12691064178943634, -0.06425612419843674, -0.07396619021892548, 0.0886370912194252, -0.16034165024757385, 0.03212662413716316, 0.31809675693511963, 0.07946719229221344, 0.036275386810302734, -0.012977279722690582, 0.2884828448295593, 0.16335977613925934, -0.042649589478969574, 0.11512991786003113, 0.14970484375953674, 0.23335576057434082, -0.20540432631969452, 0.0016973279416561127, -0.07416939735412598, 0.25011342763900757, -0.029403742402791977, 0.38372039794921875, -0.1167590469121933, -0.32276320457458496, -0.29469066858291626, 0.2018490433692932, -0.22361153364181519, -0.01948510855436325, 0.060100995004177094, -0.19776800274848938, 0.10458681732416153, -0.21332740783691406, 0.3237723708152771, 0.4441051483154297, 0.07967686653137207, 0.028868652880191803, 0.10611806064844131, -0.21788135170936584, -0.10609874129295349, 0.1595471054315567, 0.22822056710720062, 0.15281936526298523, 0.1916666030883789, -0.042862311005592346, 0.23197244107723236, -0.2976652979850769, -0.4345208704471588, 0.25099778175354004, 0.48847267031669617, -0.31152915954589844, -0.029125841334462166, -0.3028717637062073, -0.1064915582537651, -0.16221529245376587, -0.47308167815208435, -0.08110205829143524, -0.23605762422084808, -0.13590137660503387, 0.26146647334098816, 0.0638849139213562, 0.07232040166854858, -0.30643150210380554, -0.10445471107959747, 0.13256359100341797, -0.3229352533817291, -0.08566829562187195, 0.05517660453915596, -0.03963637351989746, 0.14762376248836517, 0.3995284140110016, -0.09697812795639038, 0.34223681688308716, -0.015431706793606281, -0.13053561747074127, -0.2630590796470642, -0.19279849529266357, -0.0004330165684223175, 0.02216840349137783, 0.24208839237689972, 0.16728989779949188, 0.4309624433517456, 0.022666193544864655, -0.1936054676771164, 0.14049187302589417, 0.058445461094379425, -0.026868684217333794, 0.22788278758525848, -0.2574723958969116, -0.10570443421602249, -0.010170770809054375, -0.48601141571998596, -0.539090096950531, -0.3269208073616028, -0.15994183719158173, -0.04828985035419464, 0.19598913192749023, 0.4237082004547119, 0.1160522848367691, 0.1385357826948166, -0.15663830935955048, 0.050006769597530365, -0.1222570613026619, -0.12485192716121674, 0.4896657466888428, -0.37414249777793884, -0.38175302743911743, 0.10499498248100281, -0.1745425909757614, 0.28570112586021423, -0.08931171149015427, -0.47788143157958984, -0.20606113970279694, -0.18404562771320343, -0.07793858647346497, -0.1294916570186615, -0.22382162511348724, 0.12385910749435425, -0.05318320170044899, -0.04480548948049545, 0.12145731598138809, -0.11700975894927979, -0.021503359079360962, 0.15819349884986877, 0.07765472680330276, -0.18861791491508484, 0.5733029842376709, 0.026938583701848984, 0.6518715023994446, 0.20295657217502594, -0.26086682081222534, 0.3176005780696869, -0.0788140520453453, 0.222096249461174, -0.04065639525651932, -0.47316113114356995, -0.046052295714616776, 0.21349862217903137, 0.034806907176971436, -0.05965249240398407, -0.2256636917591095, -0.30959489941596985, -0.2722097635269165, -0.1301358938217163, -0.3081511855125427, -0.2545180320739746, 0.0712788924574852, 0.10314086079597473, 0.20536497235298157, 0.09950444102287292, 0.19141578674316406, 0.05910308286547661, -0.16810232400894165, -0.015037545934319496, 0.43139970302581787, 0.07715824991464615, 0.06338651478290558, 0.12956228852272034, -0.059279829263687134, -0.33054816722869873, 0.09203904867172241, -0.09288469702005386, 0.3071429133415222, -0.061996202915906906, 0.1866854429244995, -0.008911751210689545, -0.07653757184743881, 0.23132887482643127, 0.06874345988035202, 0.17000123858451843, 0.27777794003486633, -0.12189110368490219, -0.3610594570636749, -0.23619981110095978, -0.35344743728637695, 0.03378695994615555, 0.21017666161060333, 0.1839328110218048, -0.3156821131706238, -0.06619321554899216, 0.6153854131698608, 0.1403869241476059, -0.05568637326359749, -0.39501050114631653, -0.20806297659873962, -0.3233419358730316, -0.4916277825832367, 0.09963865578174591, -0.12920941412448883, 0.2446267455816269, 0.0665891095995903, -0.1874728947877884, -0.03484679013490677, 0.02179262414574623, 0.18876388669013977, 0.0004602614790201187, 0.12297104299068451, 0.08193043619394302, 0.39358222484588623, 0.13864707946777344, -0.09974217414855957, 0.43611568212509155, 0.46505555510520935, 0.047985777258872986, -0.41444700956344604, -0.08821967989206314, 0.14171503484249115, -0.136832594871521, 0.16665782034397125, -0.21819478273391724, -0.2737378776073456, 0.25231730937957764, 0.24603170156478882, 0.16224415600299835, 0.13787442445755005, 0.4610218405723572, -0.24305595457553864, -0.5729034543037415, -0.361554354429245, 0.18962574005126953, -0.17972707748413086, 0.14135833084583282, 0.1366218626499176, -0.2497362643480301, 0.017225652933120728, 0.010419631376862526, -0.05256084352731705, 0.7789850234985352, 0.15485388040542603, 0.044110190123319626, 0.4680345356464386, -0.0037566646933555603, 0.30149045586586, -0.055901527404785156, 0.08382971584796906, -0.3072826564311981, -0.23212653398513794, -0.12283021211624146, -0.22825463116168976, 0.15366005897521973, 0.26825934648513794, -0.21459200978279114, 0.36661797761917114, -0.05684417113661766, 0.14512842893600464, 0.0025314316153526306, 0.3421608805656433, -0.05843214690685272, 0.06554578244686127, -0.06265765428543091, 0.20406252145767212, -0.14442914724349976, 0.4097229540348053, -0.135684534907341, -0.14900493621826172, -0.07689998298883438, -0.25968992710113525, -0.26328060030937195, 0.1581941843032837, -0.3894188106060028, 0.30091768503189087, 0.09400659799575806, -0.054163042455911636, -0.07758694887161255, -0.0720013976097107, 0.037950411438941956, 0.03878307342529297, -0.17527824640274048, 0.0844963937997818, -0.12885794043540955, -0.2365465760231018, -0.05951695889234543, -0.10941417515277863, 0.4144063889980316, -0.2647612690925598, -0.24289792776107788, 0.09646953642368317, 0.04928144812583923, -0.2107221782207489, 0.10666286945343018, 0.011268332600593567, 0.20416109263896942, -0.3407520055770874, -0.2518101930618286, -0.032780736684799194, -0.1775394231081009, -0.12553027272224426, 0.18620416522026062, 0.03604463115334511, -0.03649802878499031, 0.28305020928382874, -0.06208215281367302, -0.1947600245475769, -0.15069794654846191, 0.35120895504951477, -0.10675831884145737, -0.12338752299547195, 0.43479105830192566, 0.07205459475517273, -0.3199334144592285, -0.2920495867729187, 0.07938224822282791, -0.04652655869722366, -0.41478443145751953, 0.08965157717466354, 0.048641759902238846, 0.3403029441833496, 0.06553754955530167, 0.10395900905132294, 0.1910337209701538, 0.04465154558420181, -0.026322778314352036, -0.5710039138793945, -0.22138123214244843, -0.03546188771724701, 0.03544120118021965, 0.22890020906925201, -0.0949723869562149, 0.326206773519516, 0.20343971252441406, -0.0655391588807106, -0.3433675765991211, 0.13649390637874603, -0.09542136639356613, -0.04529314488172531, 0.1359449177980423, -0.1490374505519867, 0.4430602490901947, 0.10090398788452148, 0.19788849353790283, 0.02786439284682274, -0.11768366396427155, -0.2749330401420593, -0.12826865911483765, 0.11908882111310959, 0.16798579692840576, -0.12618322670459747, 0.04200262948870659, -0.19966112077236176, -0.342523992061615, 0.16670821607112885, 0.023325666785240173, 0.1777891218662262, -0.018748782575130463, 0.04774297773838043, 0.15270578861236572, 0.05769680067896843, -0.15243446826934814, 0.01975134201347828, -0.09334047138690948, 0.3424442410469055, 0.2201879918575287, 0.25267302989959717, 0.10924811661243439, -0.028304055333137512, -0.43533629179000854, -0.08897722512483597, 0.021520517766475677, -0.1089896485209465, 0.3970862627029419, -0.22670702636241913, -0.08440740406513214, 0.11683902889490128, 0.22189821302890778, 0.3427521288394928, -0.244550421833992, 0.04737754911184311, 0.31644997000694275, 0.2502192556858063, -0.29429253935813904, -0.0744643434882164, 0.16612406075000763, 0.11073078960180283, 0.11224222183227539, 0.07781361043453217, -0.25467222929000854, 0.0717095285654068, 0.02375229448080063, 0.1373419165611267, 0.39213719964027405, -0.0400032177567482, 0.12505485117435455, 0.38770073652267456, -0.1304769515991211, -0.006714660674333572, 0.19588413834571838, -0.012120641767978668, 0.07087179273366928, 0.4315575957298279, -0.29081210494041443, -0.011964881792664528, -0.17292296886444092, -0.07347902655601501, 0.226863294839859, -0.25989797711372375, -0.003941159695386887, 0.22692033648490906, -0.11886082589626312, 0.08530661463737488, -0.019769534468650818, 0.10144543647766113, -0.020962689071893692, 0.12613850831985474, -0.48664724826812744, 0.3916063904762268, -0.0998360887169838, 0.3023134469985962, -0.2309095412492752, -0.132982075214386, -0.22922202944755554, 0.14528223872184753, 0.10430397838354111, -0.1691761016845703, 0.22735252976417542, 0.3998035192489624, -0.27768510580062866, -0.15504135191440582, 0.07528385519981384, 0.3108185827732086, -0.08133294433355331, -0.27611517906188965, 0.18228566646575928, 0.36673504114151, -0.03441409021615982, -0.002069469541311264, 0.4475145637989044, 0.3937959372997284, 0.2824234366416931, 0.047415122389793396, 0.23717688024044037, 0.1083739846944809, -0.1588352769613266, 0.09912925958633423, 0.11139846593141556, 0.22683162987232208, 0.3477748930454254, 0.3200226128101349, 0.22533266246318817, -0.2515418231487274, 0.04801790043711662, -0.09312425553798676, -0.08263923227787018, -0.23183362185955048, 0.5614548921585083, 0.04967566952109337, 0.039759278297424316, -0.2407839000225067, -0.05366983264684677, -0.4856574833393097, -0.03480774164199829, 0.33260950446128845, 0.11337199062108994, 0.0982409194111824, -0.10428478568792343, 0.06438905000686646, -0.09752987325191498, 0.31203627586364746, 0.3321332633495331, 0.2571239471435547, -0.6201796531677246, 0.004288658499717712, -0.6339928507804871, 0.17016355693340302, -0.19856660068035126, 0.07438547164201736, -0.01663624867796898, 0.04120267182588577, -0.23117434978485107, 0.3115764260292053, 0.21938017010688782, 0.03954540565609932, 0.01164532545953989, 0.2519501745700836, -0.19945189356803894, -0.029427941888570786, 0.16616091132164001, -0.14328205585479736, 0.08303223550319672, -0.42404645681381226, 0.09940489381551743, -0.4774453043937683, 0.017368502914905548, -0.04437781125307083, -0.3066774010658264, -0.03532961755990982, 0.25298011302948, 0.4154704213142395, 0.05414952337741852, 0.7115380764007568, -0.08033827692270279, -0.21797949075698853, -0.20730820298194885, -0.015670979395508766, -0.23900440335273743, 0.15519210696220398, 0.14667800068855286, 0.3737410306930542, -0.02411266788840294, -0.18986032903194427, -0.417525053024292, 0.35087043046951294, -0.1077159196138382, -0.17652124166488647, -0.21676738560199738, -0.017920253798365593, -0.19246461987495422, 0.2424512356519699, 0.050991591066122055, 0.08500178903341293, -0.07306981086730957, 0.17927873134613037, -0.35764724016189575, -0.4977721869945526, 0.6089876294136047, -0.23517635464668274, -0.2108122557401657, -0.21934504806995392, 0.123955138027668, -0.11723675578832626, 0.11336281895637512, -0.49773067235946655, 0.32110482454299927, 0.32384759187698364, -0.012921072542667389, -0.10956747829914093, 0.20090211927890778, 0.2233957052230835, 0.20485402643680573, 0.0640876442193985, 0.39137670397758484, 0.15037274360656738, -0.3911636471748352, -0.05759172514081001, -0.20363302528858185 ]
https://github.com/huggingface/datasets/issues/864
Unable to download cnn_dailymail dataset
I couldn't reproduce unfortunately. I tried ```python from datasets import load_dataset load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload") ``` and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9) Maybe there was an issue with the google drive download link of the dataset ? Are you still having the issue ? If so could your give me more info about your python and requests version ?
### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions.
66
Unable to download cnn_dailymail dataset ### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions. I couldn't reproduce unfortunately. I tried ```python from datasets import load_dataset load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload") ``` and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9) Maybe there was an issue with the google drive download link of the dataset ? Are you still having the issue ? If so could your give me more info about your python and requests version ?
[ -0.30534887313842773, 0.234373539686203, -0.07922700047492981, 0.17067977786064148, 0.3605659604072571, 0.17380869388580322, 0.5607904195785522, 0.24365609884262085, -0.17192476987838745, 0.07515984773635864, -0.11793925613164902, 0.0767754316329956, -0.28970810770988464, -0.03775304928421974, -0.013056927360594273, -0.029159821569919586, -0.21272575855255127, 0.1067625880241394, -0.197343111038208, 0.02916382998228073, -0.10671384632587433, 0.09612719714641571, -0.15220075845718384, -0.06974956393241882, -0.29296451807022095, -0.1320360153913498, 0.036386407911777496, 0.17929908633232117, -0.3712783455848694, -0.352104514837265, 0.3593556582927704, -0.08252137899398804, 0.18734881281852722, 0.43545272946357727, -0.00011129578342661262, 0.29957902431488037, 0.3638949394226074, -0.05004113167524338, -0.46190309524536133, -0.4736372232437134, -0.1796995997428894, -0.13513189554214478, 0.04177456349134445, -0.29667919874191284, -0.0017571225762367249, 0.01226847805082798, -0.03551935404539108, 0.1481751799583435, 0.3508038818836212, 0.655796229839325, 0.27080947160720825, 0.4034878611564636, 0.35445892810821533, -0.16699038445949554, -0.22140854597091675, 0.15944260358810425, -0.07421941310167313, 0.5186956524848938, -0.40132617950439453, 0.10327672958374023, 0.20565685629844666, 0.12078392505645752, -0.1278408318758011, 0.17287315428256989, 0.050754763185977936, 0.018949707970023155, 0.13691169023513794, -0.4564383625984192, 0.12486836314201355, 0.25986379384994507, 0.41855838894844055, -0.20146441459655762, -0.2431451678276062, 0.11963777989149094, 0.14340738952159882, -0.2662431001663208, 0.1472918689250946, 0.3098777234554291, -0.16431356966495514, 0.05820044130086899, -0.27769735455513, 0.011133910156786442, -0.2915739119052887, 0.41406023502349854, -0.23036794364452362, 0.1816994547843933, 0.04030269756913185, 0.07407023012638092, 0.22286495566368103, -0.15204168856143951, 0.40154099464416504, -0.2636485695838928, 0.24718084931373596, 0.07260812819004059, -0.05233712121844292, -0.13678567111492157, 0.05456330254673958, -0.24839827418327332, 0.013720128685235977, 0.013428688049316406, -0.1899159550666809, -0.24806708097457886, 0.0034490078687667847, 0.07252193987369537, -0.003176061436533928, 0.08489489555358887, -0.23781445622444153, 0.6527371406555176, 0.1373990774154663, 0.4710143804550171, -0.11476810276508331, 0.04230189695954323, -0.23180747032165527, -0.13142135739326477, 0.13424921035766602, 0.1773545742034912, 0.5618000626564026, -0.19134870171546936, -0.4141945540904999, 0.2526678144931793, -0.5342706441879272, 0.0010658982209861279, 0.19670704007148743, 0.32258397340774536, -0.16969457268714905, 0.03549452871084213, 0.00047563016414642334, 0.10847697407007217, 0.028169022873044014, 0.08047987520694733, -0.26930472254753113, 0.28593018651008606, -0.11966116726398468, -0.09742334485054016, 0.3719027042388916, -0.3562032878398895, 0.17968778312206268, -0.022808780893683434, 0.10484888404607773, -0.13135041296482086, 0.1455950289964676, -0.2708338499069214, -0.1464383900165558, 0.4110410213470459, -0.1056433916091919, 0.13181911408901215, 0.08542674779891968, 0.04590073227882385, -0.1711769998073578, 0.11689358949661255, -0.023616865277290344, -0.39915046095848083, 0.07574128359556198, 0.24047037959098816, -0.07827357947826385, -0.3346491754055023, 0.19673386216163635, -0.21130524575710297, -0.04418925195932388, 0.009028647094964981, -0.13164350390434265, -0.2747359871864319, -0.0488872267305851, -0.19608058035373688, 0.3570636510848999, 0.6024295091629028, -0.43875330686569214, 0.030003540217876434, -0.17706841230392456, -0.2216213047504425, 0.18658378720283508, 0.2859838902950287, -0.33142897486686707, 0.2865728735923767, -0.08010349422693253, -0.20042696595191956, 0.4411742091178894, -0.40873226523399353, -0.5403163433074951, 0.20195600390434265, -0.04574475437402725, 0.07474061846733093, -0.05776660889387131, 0.05303129181265831, 0.08413752913475037, 0.07740695774555206, 0.09538155794143677, 0.49153852462768555, -0.19399018585681915, -0.027715936303138733, -0.15104623138904572, -0.3296215832233429, 0.1893860101699829, 0.3296567499637604, 0.4307677149772644, 0.14758002758026123, -0.008207857608795166, 0.10209294408559799, 0.12814758718013763, 0.07092515379190445, -0.05174054205417633, 0.16132056713104248, 0.32195234298706055, -0.035337887704372406, -0.1970410794019699, -0.07640162855386734, -0.3915070593357086, 0.10541928559541702, 0.11943988502025604, 0.19854700565338135, -0.09418076276779175, -0.05775279551744461, -0.4808584451675415, -0.11438446491956711, -0.226801797747612, 0.04082920402288437, 0.21293531358242035, 0.20927317440509796, 0.12773571908473969, 0.0437876395881176, -0.2601550221443176, 0.388875812292099, -0.050296537578105927, 0.2067394256591797, -0.15094299614429474, 0.40174931287765503, -0.29262205958366394, -0.05860050767660141, 0.0658874586224556, 0.04778182506561279, 0.25279557704925537, -0.1254136860370636, -0.10623852163553238, 0.11329270154237747, 0.010623440146446228, -0.12691064178943634, -0.06425612419843674, -0.07396619021892548, 0.0886370912194252, -0.16034165024757385, 0.03212662413716316, 0.31809675693511963, 0.07946719229221344, 0.036275386810302734, -0.012977279722690582, 0.2884828448295593, 0.16335977613925934, -0.042649589478969574, 0.11512991786003113, 0.14970484375953674, 0.23335576057434082, -0.20540432631969452, 0.0016973279416561127, -0.07416939735412598, 0.25011342763900757, -0.029403742402791977, 0.38372039794921875, -0.1167590469121933, -0.32276320457458496, -0.29469066858291626, 0.2018490433692932, -0.22361153364181519, -0.01948510855436325, 0.060100995004177094, -0.19776800274848938, 0.10458681732416153, -0.21332740783691406, 0.3237723708152771, 0.4441051483154297, 0.07967686653137207, 0.028868652880191803, 0.10611806064844131, -0.21788135170936584, -0.10609874129295349, 0.1595471054315567, 0.22822056710720062, 0.15281936526298523, 0.1916666030883789, -0.042862311005592346, 0.23197244107723236, -0.2976652979850769, -0.4345208704471588, 0.25099778175354004, 0.48847267031669617, -0.31152915954589844, -0.029125841334462166, -0.3028717637062073, -0.1064915582537651, -0.16221529245376587, -0.47308167815208435, -0.08110205829143524, -0.23605762422084808, -0.13590137660503387, 0.26146647334098816, 0.0638849139213562, 0.07232040166854858, -0.30643150210380554, -0.10445471107959747, 0.13256359100341797, -0.3229352533817291, -0.08566829562187195, 0.05517660453915596, -0.03963637351989746, 0.14762376248836517, 0.3995284140110016, -0.09697812795639038, 0.34223681688308716, -0.015431706793606281, -0.13053561747074127, -0.2630590796470642, -0.19279849529266357, -0.0004330165684223175, 0.02216840349137783, 0.24208839237689972, 0.16728989779949188, 0.4309624433517456, 0.022666193544864655, -0.1936054676771164, 0.14049187302589417, 0.058445461094379425, -0.026868684217333794, 0.22788278758525848, -0.2574723958969116, -0.10570443421602249, -0.010170770809054375, -0.48601141571998596, -0.539090096950531, -0.3269208073616028, -0.15994183719158173, -0.04828985035419464, 0.19598913192749023, 0.4237082004547119, 0.1160522848367691, 0.1385357826948166, -0.15663830935955048, 0.050006769597530365, -0.1222570613026619, -0.12485192716121674, 0.4896657466888428, -0.37414249777793884, -0.38175302743911743, 0.10499498248100281, -0.1745425909757614, 0.28570112586021423, -0.08931171149015427, -0.47788143157958984, -0.20606113970279694, -0.18404562771320343, -0.07793858647346497, -0.1294916570186615, -0.22382162511348724, 0.12385910749435425, -0.05318320170044899, -0.04480548948049545, 0.12145731598138809, -0.11700975894927979, -0.021503359079360962, 0.15819349884986877, 0.07765472680330276, -0.18861791491508484, 0.5733029842376709, 0.026938583701848984, 0.6518715023994446, 0.20295657217502594, -0.26086682081222534, 0.3176005780696869, -0.0788140520453453, 0.222096249461174, -0.04065639525651932, -0.47316113114356995, -0.046052295714616776, 0.21349862217903137, 0.034806907176971436, -0.05965249240398407, -0.2256636917591095, -0.30959489941596985, -0.2722097635269165, -0.1301358938217163, -0.3081511855125427, -0.2545180320739746, 0.0712788924574852, 0.10314086079597473, 0.20536497235298157, 0.09950444102287292, 0.19141578674316406, 0.05910308286547661, -0.16810232400894165, -0.015037545934319496, 0.43139970302581787, 0.07715824991464615, 0.06338651478290558, 0.12956228852272034, -0.059279829263687134, -0.33054816722869873, 0.09203904867172241, -0.09288469702005386, 0.3071429133415222, -0.061996202915906906, 0.1866854429244995, -0.008911751210689545, -0.07653757184743881, 0.23132887482643127, 0.06874345988035202, 0.17000123858451843, 0.27777794003486633, -0.12189110368490219, -0.3610594570636749, -0.23619981110095978, -0.35344743728637695, 0.03378695994615555, 0.21017666161060333, 0.1839328110218048, -0.3156821131706238, -0.06619321554899216, 0.6153854131698608, 0.1403869241476059, -0.05568637326359749, -0.39501050114631653, -0.20806297659873962, -0.3233419358730316, -0.4916277825832367, 0.09963865578174591, -0.12920941412448883, 0.2446267455816269, 0.0665891095995903, -0.1874728947877884, -0.03484679013490677, 0.02179262414574623, 0.18876388669013977, 0.0004602614790201187, 0.12297104299068451, 0.08193043619394302, 0.39358222484588623, 0.13864707946777344, -0.09974217414855957, 0.43611568212509155, 0.46505555510520935, 0.047985777258872986, -0.41444700956344604, -0.08821967989206314, 0.14171503484249115, -0.136832594871521, 0.16665782034397125, -0.21819478273391724, -0.2737378776073456, 0.25231730937957764, 0.24603170156478882, 0.16224415600299835, 0.13787442445755005, 0.4610218405723572, -0.24305595457553864, -0.5729034543037415, -0.361554354429245, 0.18962574005126953, -0.17972707748413086, 0.14135833084583282, 0.1366218626499176, -0.2497362643480301, 0.017225652933120728, 0.010419631376862526, -0.05256084352731705, 0.7789850234985352, 0.15485388040542603, 0.044110190123319626, 0.4680345356464386, -0.0037566646933555603, 0.30149045586586, -0.055901527404785156, 0.08382971584796906, -0.3072826564311981, -0.23212653398513794, -0.12283021211624146, -0.22825463116168976, 0.15366005897521973, 0.26825934648513794, -0.21459200978279114, 0.36661797761917114, -0.05684417113661766, 0.14512842893600464, 0.0025314316153526306, 0.3421608805656433, -0.05843214690685272, 0.06554578244686127, -0.06265765428543091, 0.20406252145767212, -0.14442914724349976, 0.4097229540348053, -0.135684534907341, -0.14900493621826172, -0.07689998298883438, -0.25968992710113525, -0.26328060030937195, 0.1581941843032837, -0.3894188106060028, 0.30091768503189087, 0.09400659799575806, -0.054163042455911636, -0.07758694887161255, -0.0720013976097107, 0.037950411438941956, 0.03878307342529297, -0.17527824640274048, 0.0844963937997818, -0.12885794043540955, -0.2365465760231018, -0.05951695889234543, -0.10941417515277863, 0.4144063889980316, -0.2647612690925598, -0.24289792776107788, 0.09646953642368317, 0.04928144812583923, -0.2107221782207489, 0.10666286945343018, 0.011268332600593567, 0.20416109263896942, -0.3407520055770874, -0.2518101930618286, -0.032780736684799194, -0.1775394231081009, -0.12553027272224426, 0.18620416522026062, 0.03604463115334511, -0.03649802878499031, 0.28305020928382874, -0.06208215281367302, -0.1947600245475769, -0.15069794654846191, 0.35120895504951477, -0.10675831884145737, -0.12338752299547195, 0.43479105830192566, 0.07205459475517273, -0.3199334144592285, -0.2920495867729187, 0.07938224822282791, -0.04652655869722366, -0.41478443145751953, 0.08965157717466354, 0.048641759902238846, 0.3403029441833496, 0.06553754955530167, 0.10395900905132294, 0.1910337209701538, 0.04465154558420181, -0.026322778314352036, -0.5710039138793945, -0.22138123214244843, -0.03546188771724701, 0.03544120118021965, 0.22890020906925201, -0.0949723869562149, 0.326206773519516, 0.20343971252441406, -0.0655391588807106, -0.3433675765991211, 0.13649390637874603, -0.09542136639356613, -0.04529314488172531, 0.1359449177980423, -0.1490374505519867, 0.4430602490901947, 0.10090398788452148, 0.19788849353790283, 0.02786439284682274, -0.11768366396427155, -0.2749330401420593, -0.12826865911483765, 0.11908882111310959, 0.16798579692840576, -0.12618322670459747, 0.04200262948870659, -0.19966112077236176, -0.342523992061615, 0.16670821607112885, 0.023325666785240173, 0.1777891218662262, -0.018748782575130463, 0.04774297773838043, 0.15270578861236572, 0.05769680067896843, -0.15243446826934814, 0.01975134201347828, -0.09334047138690948, 0.3424442410469055, 0.2201879918575287, 0.25267302989959717, 0.10924811661243439, -0.028304055333137512, -0.43533629179000854, -0.08897722512483597, 0.021520517766475677, -0.1089896485209465, 0.3970862627029419, -0.22670702636241913, -0.08440740406513214, 0.11683902889490128, 0.22189821302890778, 0.3427521288394928, -0.244550421833992, 0.04737754911184311, 0.31644997000694275, 0.2502192556858063, -0.29429253935813904, -0.0744643434882164, 0.16612406075000763, 0.11073078960180283, 0.11224222183227539, 0.07781361043453217, -0.25467222929000854, 0.0717095285654068, 0.02375229448080063, 0.1373419165611267, 0.39213719964027405, -0.0400032177567482, 0.12505485117435455, 0.38770073652267456, -0.1304769515991211, -0.006714660674333572, 0.19588413834571838, -0.012120641767978668, 0.07087179273366928, 0.4315575957298279, -0.29081210494041443, -0.011964881792664528, -0.17292296886444092, -0.07347902655601501, 0.226863294839859, -0.25989797711372375, -0.003941159695386887, 0.22692033648490906, -0.11886082589626312, 0.08530661463737488, -0.019769534468650818, 0.10144543647766113, -0.020962689071893692, 0.12613850831985474, -0.48664724826812744, 0.3916063904762268, -0.0998360887169838, 0.3023134469985962, -0.2309095412492752, -0.132982075214386, -0.22922202944755554, 0.14528223872184753, 0.10430397838354111, -0.1691761016845703, 0.22735252976417542, 0.3998035192489624, -0.27768510580062866, -0.15504135191440582, 0.07528385519981384, 0.3108185827732086, -0.08133294433355331, -0.27611517906188965, 0.18228566646575928, 0.36673504114151, -0.03441409021615982, -0.002069469541311264, 0.4475145637989044, 0.3937959372997284, 0.2824234366416931, 0.047415122389793396, 0.23717688024044037, 0.1083739846944809, -0.1588352769613266, 0.09912925958633423, 0.11139846593141556, 0.22683162987232208, 0.3477748930454254, 0.3200226128101349, 0.22533266246318817, -0.2515418231487274, 0.04801790043711662, -0.09312425553798676, -0.08263923227787018, -0.23183362185955048, 0.5614548921585083, 0.04967566952109337, 0.039759278297424316, -0.2407839000225067, -0.05366983264684677, -0.4856574833393097, -0.03480774164199829, 0.33260950446128845, 0.11337199062108994, 0.0982409194111824, -0.10428478568792343, 0.06438905000686646, -0.09752987325191498, 0.31203627586364746, 0.3321332633495331, 0.2571239471435547, -0.6201796531677246, 0.004288658499717712, -0.6339928507804871, 0.17016355693340302, -0.19856660068035126, 0.07438547164201736, -0.01663624867796898, 0.04120267182588577, -0.23117434978485107, 0.3115764260292053, 0.21938017010688782, 0.03954540565609932, 0.01164532545953989, 0.2519501745700836, -0.19945189356803894, -0.029427941888570786, 0.16616091132164001, -0.14328205585479736, 0.08303223550319672, -0.42404645681381226, 0.09940489381551743, -0.4774453043937683, 0.017368502914905548, -0.04437781125307083, -0.3066774010658264, -0.03532961755990982, 0.25298011302948, 0.4154704213142395, 0.05414952337741852, 0.7115380764007568, -0.08033827692270279, -0.21797949075698853, -0.20730820298194885, -0.015670979395508766, -0.23900440335273743, 0.15519210696220398, 0.14667800068855286, 0.3737410306930542, -0.02411266788840294, -0.18986032903194427, -0.417525053024292, 0.35087043046951294, -0.1077159196138382, -0.17652124166488647, -0.21676738560199738, -0.017920253798365593, -0.19246461987495422, 0.2424512356519699, 0.050991591066122055, 0.08500178903341293, -0.07306981086730957, 0.17927873134613037, -0.35764724016189575, -0.4977721869945526, 0.6089876294136047, -0.23517635464668274, -0.2108122557401657, -0.21934504806995392, 0.123955138027668, -0.11723675578832626, 0.11336281895637512, -0.49773067235946655, 0.32110482454299927, 0.32384759187698364, -0.012921072542667389, -0.10956747829914093, 0.20090211927890778, 0.2233957052230835, 0.20485402643680573, 0.0640876442193985, 0.39137670397758484, 0.15037274360656738, -0.3911636471748352, -0.05759172514081001, -0.20363302528858185 ]
https://github.com/huggingface/datasets/issues/864
Unable to download cnn_dailymail dataset
No, It's working fine now. Very strange. Here are my python and request versions requests 2.24.0 Python 3.8.2
### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions.
18
Unable to download cnn_dailymail dataset ### Script to reproduce the error ``` from datasets import load_dataset train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") ``` ### Error ``` --------------------------------------------------------------------------- NotADirectoryError Traceback (most recent call last) <ipython-input-8-47c39c228935> in <module>() 1 from datasets import load_dataset 2 ----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%') 4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]") 5 frames /usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs) 609 download_config=download_config, 610 download_mode=download_mode, --> 611 ignore_verifications=ignore_verifications, 612 ) 613 /usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 469 if not downloaded_from_gcs: 470 self._download_and_prepare( --> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 472 ) 473 # Sync info /usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 524 split_dict = SplitDict(dataset_name=self.name) 525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 527 528 # Checksums verification /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager) 252 def _split_generators(self, dl_manager): 253 dl_paths = dl_manager.download_and_extract(_DL_URLS) --> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN) 255 # Generate shared vocabulary 256 /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split) 153 else: 154 logging.fatal("Unsupported split: %s", split) --> 155 cnn = _find_files(dl_paths, "cnn", urls) 156 dm = _find_files(dl_paths, "dm", urls) 157 return cnn + dm /root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict) 132 else: 133 logging.fatal("Unsupported publisher: %s", publisher) --> 134 files = sorted(os.listdir(top_dir)) 135 136 ret_files = [] NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` Thanks for any suggestions. No, It's working fine now. Very strange. Here are my python and request versions requests 2.24.0 Python 3.8.2
[ -0.30534887313842773, 0.234373539686203, -0.07922700047492981, 0.17067977786064148, 0.3605659604072571, 0.17380869388580322, 0.5607904195785522, 0.24365609884262085, -0.17192476987838745, 0.07515984773635864, -0.11793925613164902, 0.0767754316329956, -0.28970810770988464, -0.03775304928421974, -0.013056927360594273, -0.029159821569919586, -0.21272575855255127, 0.1067625880241394, -0.197343111038208, 0.02916382998228073, -0.10671384632587433, 0.09612719714641571, -0.15220075845718384, -0.06974956393241882, -0.29296451807022095, -0.1320360153913498, 0.036386407911777496, 0.17929908633232117, -0.3712783455848694, -0.352104514837265, 0.3593556582927704, -0.08252137899398804, 0.18734881281852722, 0.43545272946357727, -0.00011129578342661262, 0.29957902431488037, 0.3638949394226074, -0.05004113167524338, -0.46190309524536133, -0.4736372232437134, -0.1796995997428894, -0.13513189554214478, 0.04177456349134445, -0.29667919874191284, -0.0017571225762367249, 0.01226847805082798, -0.03551935404539108, 0.1481751799583435, 0.3508038818836212, 0.655796229839325, 0.27080947160720825, 0.4034878611564636, 0.35445892810821533, -0.16699038445949554, -0.22140854597091675, 0.15944260358810425, -0.07421941310167313, 0.5186956524848938, -0.40132617950439453, 0.10327672958374023, 0.20565685629844666, 0.12078392505645752, -0.1278408318758011, 0.17287315428256989, 0.050754763185977936, 0.018949707970023155, 0.13691169023513794, -0.4564383625984192, 0.12486836314201355, 0.25986379384994507, 0.41855838894844055, -0.20146441459655762, -0.2431451678276062, 0.11963777989149094, 0.14340738952159882, -0.2662431001663208, 0.1472918689250946, 0.3098777234554291, -0.16431356966495514, 0.05820044130086899, -0.27769735455513, 0.011133910156786442, -0.2915739119052887, 0.41406023502349854, -0.23036794364452362, 0.1816994547843933, 0.04030269756913185, 0.07407023012638092, 0.22286495566368103, -0.15204168856143951, 0.40154099464416504, -0.2636485695838928, 0.24718084931373596, 0.07260812819004059, -0.05233712121844292, -0.13678567111492157, 0.05456330254673958, -0.24839827418327332, 0.013720128685235977, 0.013428688049316406, -0.1899159550666809, -0.24806708097457886, 0.0034490078687667847, 0.07252193987369537, -0.003176061436533928, 0.08489489555358887, -0.23781445622444153, 0.6527371406555176, 0.1373990774154663, 0.4710143804550171, -0.11476810276508331, 0.04230189695954323, -0.23180747032165527, -0.13142135739326477, 0.13424921035766602, 0.1773545742034912, 0.5618000626564026, -0.19134870171546936, -0.4141945540904999, 0.2526678144931793, -0.5342706441879272, 0.0010658982209861279, 0.19670704007148743, 0.32258397340774536, -0.16969457268714905, 0.03549452871084213, 0.00047563016414642334, 0.10847697407007217, 0.028169022873044014, 0.08047987520694733, -0.26930472254753113, 0.28593018651008606, -0.11966116726398468, -0.09742334485054016, 0.3719027042388916, -0.3562032878398895, 0.17968778312206268, -0.022808780893683434, 0.10484888404607773, -0.13135041296482086, 0.1455950289964676, -0.2708338499069214, -0.1464383900165558, 0.4110410213470459, -0.1056433916091919, 0.13181911408901215, 0.08542674779891968, 0.04590073227882385, -0.1711769998073578, 0.11689358949661255, -0.023616865277290344, -0.39915046095848083, 0.07574128359556198, 0.24047037959098816, -0.07827357947826385, -0.3346491754055023, 0.19673386216163635, -0.21130524575710297, -0.04418925195932388, 0.009028647094964981, -0.13164350390434265, -0.2747359871864319, -0.0488872267305851, -0.19608058035373688, 0.3570636510848999, 0.6024295091629028, -0.43875330686569214, 0.030003540217876434, -0.17706841230392456, -0.2216213047504425, 0.18658378720283508, 0.2859838902950287, -0.33142897486686707, 0.2865728735923767, -0.08010349422693253, -0.20042696595191956, 0.4411742091178894, -0.40873226523399353, -0.5403163433074951, 0.20195600390434265, -0.04574475437402725, 0.07474061846733093, -0.05776660889387131, 0.05303129181265831, 0.08413752913475037, 0.07740695774555206, 0.09538155794143677, 0.49153852462768555, -0.19399018585681915, -0.027715936303138733, -0.15104623138904572, -0.3296215832233429, 0.1893860101699829, 0.3296567499637604, 0.4307677149772644, 0.14758002758026123, -0.008207857608795166, 0.10209294408559799, 0.12814758718013763, 0.07092515379190445, -0.05174054205417633, 0.16132056713104248, 0.32195234298706055, -0.035337887704372406, -0.1970410794019699, -0.07640162855386734, -0.3915070593357086, 0.10541928559541702, 0.11943988502025604, 0.19854700565338135, -0.09418076276779175, -0.05775279551744461, -0.4808584451675415, -0.11438446491956711, -0.226801797747612, 0.04082920402288437, 0.21293531358242035, 0.20927317440509796, 0.12773571908473969, 0.0437876395881176, -0.2601550221443176, 0.388875812292099, -0.050296537578105927, 0.2067394256591797, -0.15094299614429474, 0.40174931287765503, -0.29262205958366394, -0.05860050767660141, 0.0658874586224556, 0.04778182506561279, 0.25279557704925537, -0.1254136860370636, -0.10623852163553238, 0.11329270154237747, 0.010623440146446228, -0.12691064178943634, -0.06425612419843674, -0.07396619021892548, 0.0886370912194252, -0.16034165024757385, 0.03212662413716316, 0.31809675693511963, 0.07946719229221344, 0.036275386810302734, -0.012977279722690582, 0.2884828448295593, 0.16335977613925934, -0.042649589478969574, 0.11512991786003113, 0.14970484375953674, 0.23335576057434082, -0.20540432631969452, 0.0016973279416561127, -0.07416939735412598, 0.25011342763900757, -0.029403742402791977, 0.38372039794921875, -0.1167590469121933, -0.32276320457458496, -0.29469066858291626, 0.2018490433692932, -0.22361153364181519, -0.01948510855436325, 0.060100995004177094, -0.19776800274848938, 0.10458681732416153, -0.21332740783691406, 0.3237723708152771, 0.4441051483154297, 0.07967686653137207, 0.028868652880191803, 0.10611806064844131, -0.21788135170936584, -0.10609874129295349, 0.1595471054315567, 0.22822056710720062, 0.15281936526298523, 0.1916666030883789, -0.042862311005592346, 0.23197244107723236, -0.2976652979850769, -0.4345208704471588, 0.25099778175354004, 0.48847267031669617, -0.31152915954589844, -0.029125841334462166, -0.3028717637062073, -0.1064915582537651, -0.16221529245376587, -0.47308167815208435, -0.08110205829143524, -0.23605762422084808, -0.13590137660503387, 0.26146647334098816, 0.0638849139213562, 0.07232040166854858, -0.30643150210380554, -0.10445471107959747, 0.13256359100341797, -0.3229352533817291, -0.08566829562187195, 0.05517660453915596, -0.03963637351989746, 0.14762376248836517, 0.3995284140110016, -0.09697812795639038, 0.34223681688308716, -0.015431706793606281, -0.13053561747074127, -0.2630590796470642, -0.19279849529266357, -0.0004330165684223175, 0.02216840349137783, 0.24208839237689972, 0.16728989779949188, 0.4309624433517456, 0.022666193544864655, -0.1936054676771164, 0.14049187302589417, 0.058445461094379425, -0.026868684217333794, 0.22788278758525848, -0.2574723958969116, -0.10570443421602249, -0.010170770809054375, -0.48601141571998596, -0.539090096950531, -0.3269208073616028, -0.15994183719158173, -0.04828985035419464, 0.19598913192749023, 0.4237082004547119, 0.1160522848367691, 0.1385357826948166, -0.15663830935955048, 0.050006769597530365, -0.1222570613026619, -0.12485192716121674, 0.4896657466888428, -0.37414249777793884, -0.38175302743911743, 0.10499498248100281, -0.1745425909757614, 0.28570112586021423, -0.08931171149015427, -0.47788143157958984, -0.20606113970279694, -0.18404562771320343, -0.07793858647346497, -0.1294916570186615, -0.22382162511348724, 0.12385910749435425, -0.05318320170044899, -0.04480548948049545, 0.12145731598138809, -0.11700975894927979, -0.021503359079360962, 0.15819349884986877, 0.07765472680330276, -0.18861791491508484, 0.5733029842376709, 0.026938583701848984, 0.6518715023994446, 0.20295657217502594, -0.26086682081222534, 0.3176005780696869, -0.0788140520453453, 0.222096249461174, -0.04065639525651932, -0.47316113114356995, -0.046052295714616776, 0.21349862217903137, 0.034806907176971436, -0.05965249240398407, -0.2256636917591095, -0.30959489941596985, -0.2722097635269165, -0.1301358938217163, -0.3081511855125427, -0.2545180320739746, 0.0712788924574852, 0.10314086079597473, 0.20536497235298157, 0.09950444102287292, 0.19141578674316406, 0.05910308286547661, -0.16810232400894165, -0.015037545934319496, 0.43139970302581787, 0.07715824991464615, 0.06338651478290558, 0.12956228852272034, -0.059279829263687134, -0.33054816722869873, 0.09203904867172241, -0.09288469702005386, 0.3071429133415222, -0.061996202915906906, 0.1866854429244995, -0.008911751210689545, -0.07653757184743881, 0.23132887482643127, 0.06874345988035202, 0.17000123858451843, 0.27777794003486633, -0.12189110368490219, -0.3610594570636749, -0.23619981110095978, -0.35344743728637695, 0.03378695994615555, 0.21017666161060333, 0.1839328110218048, -0.3156821131706238, -0.06619321554899216, 0.6153854131698608, 0.1403869241476059, -0.05568637326359749, -0.39501050114631653, -0.20806297659873962, -0.3233419358730316, -0.4916277825832367, 0.09963865578174591, -0.12920941412448883, 0.2446267455816269, 0.0665891095995903, -0.1874728947877884, -0.03484679013490677, 0.02179262414574623, 0.18876388669013977, 0.0004602614790201187, 0.12297104299068451, 0.08193043619394302, 0.39358222484588623, 0.13864707946777344, -0.09974217414855957, 0.43611568212509155, 0.46505555510520935, 0.047985777258872986, -0.41444700956344604, -0.08821967989206314, 0.14171503484249115, -0.136832594871521, 0.16665782034397125, -0.21819478273391724, -0.2737378776073456, 0.25231730937957764, 0.24603170156478882, 0.16224415600299835, 0.13787442445755005, 0.4610218405723572, -0.24305595457553864, -0.5729034543037415, -0.361554354429245, 0.18962574005126953, -0.17972707748413086, 0.14135833084583282, 0.1366218626499176, -0.2497362643480301, 0.017225652933120728, 0.010419631376862526, -0.05256084352731705, 0.7789850234985352, 0.15485388040542603, 0.044110190123319626, 0.4680345356464386, -0.0037566646933555603, 0.30149045586586, -0.055901527404785156, 0.08382971584796906, -0.3072826564311981, -0.23212653398513794, -0.12283021211624146, -0.22825463116168976, 0.15366005897521973, 0.26825934648513794, -0.21459200978279114, 0.36661797761917114, -0.05684417113661766, 0.14512842893600464, 0.0025314316153526306, 0.3421608805656433, -0.05843214690685272, 0.06554578244686127, -0.06265765428543091, 0.20406252145767212, -0.14442914724349976, 0.4097229540348053, -0.135684534907341, -0.14900493621826172, -0.07689998298883438, -0.25968992710113525, -0.26328060030937195, 0.1581941843032837, -0.3894188106060028, 0.30091768503189087, 0.09400659799575806, -0.054163042455911636, -0.07758694887161255, -0.0720013976097107, 0.037950411438941956, 0.03878307342529297, -0.17527824640274048, 0.0844963937997818, -0.12885794043540955, -0.2365465760231018, -0.05951695889234543, -0.10941417515277863, 0.4144063889980316, -0.2647612690925598, -0.24289792776107788, 0.09646953642368317, 0.04928144812583923, -0.2107221782207489, 0.10666286945343018, 0.011268332600593567, 0.20416109263896942, -0.3407520055770874, -0.2518101930618286, -0.032780736684799194, -0.1775394231081009, -0.12553027272224426, 0.18620416522026062, 0.03604463115334511, -0.03649802878499031, 0.28305020928382874, -0.06208215281367302, -0.1947600245475769, -0.15069794654846191, 0.35120895504951477, -0.10675831884145737, -0.12338752299547195, 0.43479105830192566, 0.07205459475517273, -0.3199334144592285, -0.2920495867729187, 0.07938224822282791, -0.04652655869722366, -0.41478443145751953, 0.08965157717466354, 0.048641759902238846, 0.3403029441833496, 0.06553754955530167, 0.10395900905132294, 0.1910337209701538, 0.04465154558420181, -0.026322778314352036, -0.5710039138793945, -0.22138123214244843, -0.03546188771724701, 0.03544120118021965, 0.22890020906925201, -0.0949723869562149, 0.326206773519516, 0.20343971252441406, -0.0655391588807106, -0.3433675765991211, 0.13649390637874603, -0.09542136639356613, -0.04529314488172531, 0.1359449177980423, -0.1490374505519867, 0.4430602490901947, 0.10090398788452148, 0.19788849353790283, 0.02786439284682274, -0.11768366396427155, -0.2749330401420593, -0.12826865911483765, 0.11908882111310959, 0.16798579692840576, -0.12618322670459747, 0.04200262948870659, -0.19966112077236176, -0.342523992061615, 0.16670821607112885, 0.023325666785240173, 0.1777891218662262, -0.018748782575130463, 0.04774297773838043, 0.15270578861236572, 0.05769680067896843, -0.15243446826934814, 0.01975134201347828, -0.09334047138690948, 0.3424442410469055, 0.2201879918575287, 0.25267302989959717, 0.10924811661243439, -0.028304055333137512, -0.43533629179000854, -0.08897722512483597, 0.021520517766475677, -0.1089896485209465, 0.3970862627029419, -0.22670702636241913, -0.08440740406513214, 0.11683902889490128, 0.22189821302890778, 0.3427521288394928, -0.244550421833992, 0.04737754911184311, 0.31644997000694275, 0.2502192556858063, -0.29429253935813904, -0.0744643434882164, 0.16612406075000763, 0.11073078960180283, 0.11224222183227539, 0.07781361043453217, -0.25467222929000854, 0.0717095285654068, 0.02375229448080063, 0.1373419165611267, 0.39213719964027405, -0.0400032177567482, 0.12505485117435455, 0.38770073652267456, -0.1304769515991211, -0.006714660674333572, 0.19588413834571838, -0.012120641767978668, 0.07087179273366928, 0.4315575957298279, -0.29081210494041443, -0.011964881792664528, -0.17292296886444092, -0.07347902655601501, 0.226863294839859, -0.25989797711372375, -0.003941159695386887, 0.22692033648490906, -0.11886082589626312, 0.08530661463737488, -0.019769534468650818, 0.10144543647766113, -0.020962689071893692, 0.12613850831985474, -0.48664724826812744, 0.3916063904762268, -0.0998360887169838, 0.3023134469985962, -0.2309095412492752, -0.132982075214386, -0.22922202944755554, 0.14528223872184753, 0.10430397838354111, -0.1691761016845703, 0.22735252976417542, 0.3998035192489624, -0.27768510580062866, -0.15504135191440582, 0.07528385519981384, 0.3108185827732086, -0.08133294433355331, -0.27611517906188965, 0.18228566646575928, 0.36673504114151, -0.03441409021615982, -0.002069469541311264, 0.4475145637989044, 0.3937959372997284, 0.2824234366416931, 0.047415122389793396, 0.23717688024044037, 0.1083739846944809, -0.1588352769613266, 0.09912925958633423, 0.11139846593141556, 0.22683162987232208, 0.3477748930454254, 0.3200226128101349, 0.22533266246318817, -0.2515418231487274, 0.04801790043711662, -0.09312425553798676, -0.08263923227787018, -0.23183362185955048, 0.5614548921585083, 0.04967566952109337, 0.039759278297424316, -0.2407839000225067, -0.05366983264684677, -0.4856574833393097, -0.03480774164199829, 0.33260950446128845, 0.11337199062108994, 0.0982409194111824, -0.10428478568792343, 0.06438905000686646, -0.09752987325191498, 0.31203627586364746, 0.3321332633495331, 0.2571239471435547, -0.6201796531677246, 0.004288658499717712, -0.6339928507804871, 0.17016355693340302, -0.19856660068035126, 0.07438547164201736, -0.01663624867796898, 0.04120267182588577, -0.23117434978485107, 0.3115764260292053, 0.21938017010688782, 0.03954540565609932, 0.01164532545953989, 0.2519501745700836, -0.19945189356803894, -0.029427941888570786, 0.16616091132164001, -0.14328205585479736, 0.08303223550319672, -0.42404645681381226, 0.09940489381551743, -0.4774453043937683, 0.017368502914905548, -0.04437781125307083, -0.3066774010658264, -0.03532961755990982, 0.25298011302948, 0.4154704213142395, 0.05414952337741852, 0.7115380764007568, -0.08033827692270279, -0.21797949075698853, -0.20730820298194885, -0.015670979395508766, -0.23900440335273743, 0.15519210696220398, 0.14667800068855286, 0.3737410306930542, -0.02411266788840294, -0.18986032903194427, -0.417525053024292, 0.35087043046951294, -0.1077159196138382, -0.17652124166488647, -0.21676738560199738, -0.017920253798365593, -0.19246461987495422, 0.2424512356519699, 0.050991591066122055, 0.08500178903341293, -0.07306981086730957, 0.17927873134613037, -0.35764724016189575, -0.4977721869945526, 0.6089876294136047, -0.23517635464668274, -0.2108122557401657, -0.21934504806995392, 0.123955138027668, -0.11723675578832626, 0.11336281895637512, -0.49773067235946655, 0.32110482454299927, 0.32384759187698364, -0.012921072542667389, -0.10956747829914093, 0.20090211927890778, 0.2233957052230835, 0.20485402643680573, 0.0640876442193985, 0.39137670397758484, 0.15037274360656738, -0.3911636471748352, -0.05759172514081001, -0.20363302528858185 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space. I'm sure we can optimize that though What do you think @sgugger ?
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
58
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space. I'm sure we can optimize that though What do you think @sgugger ?
[ -0.14323408901691437, -0.3876415193080902, 0.11331367492675781, 0.32277387380599976, 0.5927136540412903, -0.19819116592407227, 0.2874230146408081, 0.3909299969673157, -0.3091713488101959, 0.1720580756664276, -0.033927880227565765, -0.17978857457637787, -0.3273915946483612, 0.18979477882385254, 0.1685713827610016, -0.06555424630641937, 0.1466006636619568, 0.11617885529994965, -0.037317946553230286, -0.2512279748916626, 0.012230444699525833, 0.03315393626689911, 0.20524446666240692, 0.2363263964653015, -0.5892033576965332, 0.11623252183198929, -0.09766068309545517, 0.022522766143083572, -0.45221686363220215, -0.09203153103590012, 0.06886208057403564, -0.31219086050987244, 0.18920092284679413, 0.5060112476348877, -0.00012865501048509032, -0.08017739653587341, 0.14244410395622253, -0.06957510113716125, 0.020570196211338043, 0.20909076929092407, 0.214476078748703, -0.06325742602348328, -0.21338880062103271, 0.10531804710626602, 0.21523869037628174, -0.11431072652339935, -0.07098273932933807, -0.03404077887535095, 0.36685115098953247, 0.18402457237243652, 0.06569911539554596, 0.13553915917873383, 0.014896955341100693, 0.10366841405630112, 0.24296635389328003, 0.3396819829940796, -0.03718039393424988, -0.010055510327219963, 0.2122919261455536, -0.19895657896995544, 0.014839984476566315, 0.1700541377067566, 0.09839832782745361, -0.1982293725013733, 0.32845795154571533, 0.2113911509513855, -0.0749179944396019, -0.4113592803478241, 0.21207302808761597, 0.38835251331329346, -0.0406981036067009, -0.3539566397666931, -0.3082948625087738, -0.39727067947387695, 0.2411760687828064, -0.5351736545562744, 0.093332938849926, 0.18175196647644043, -0.12999315559864044, 0.05718933418393135, -0.2757265269756317, -0.41475701332092285, -0.2204078733921051, -0.09753817319869995, -0.2143559753894806, 0.04973898455500603, -0.22842790186405182, -0.09450767189264297, -0.024709049612283707, -0.1514885574579239, -0.36791035532951355, -0.026124905794858932, -0.007287558168172836, 0.19921638071537018, -0.0928647369146347, -0.32427284121513367, -0.11265601962804794, -0.32815608382225037, 0.2717486619949341, -0.4419613480567932, -0.24123306572437286, -0.4030226767063141, -0.12958286702632904, -0.41893213987350464, 0.39931437373161316, 0.45951607823371887, -0.3760157525539398, 0.1799374669790268, 0.12998390197753906, 0.014497693628072739, -0.13884542882442474, -0.05276091396808624, -0.16345447301864624, 0.1329074651002884, 0.07106596231460571, -0.4047503173351288, 0.03130284324288368, -0.22905266284942627, -0.10030411928892136, 0.4591180980205536, -0.37845054268836975, 0.22263091802597046, 0.05107729509472847, 0.3274950385093689, -0.07608035951852798, 0.10531914979219437, 0.010906986892223358, 0.05134668946266174, -0.4180234968662262, -0.017793959006667137, -0.06112901121377945, 0.07422015815973282, -0.2151128202676773, 0.18698714673519135, -0.028843561187386513, 0.10445171594619751, 0.02135292999446392, -0.01798081025481224, 0.3231276869773865, -0.0993402749300003, 0.039501555263996124, -0.25104737281799316, 0.17269717156887054, 0.16851408779621124, -0.2115900218486786, 0.44027435779571533, -0.03286958858370781, 0.057306595146656036, -0.05733345448970795, 0.07319375872612, -0.20251178741455078, -0.46135804057121277, -0.05754169076681137, 0.09549764543771744, -0.03240375965833664, 0.3140632212162018, -0.061952508985996246, 0.32786646485328674, 0.4565286934375763, 0.019854549318552017, 0.025028757750988007, -0.22849540412425995, -0.22651399672031403, 0.009115063585340977, 0.39956849813461304, 0.39022380113601685, -0.48463597893714905, -0.1758754998445511, -0.20547260344028473, 0.31228286027908325, 0.389499306678772, 0.5888671875, 0.007783711422234774, 0.5783097743988037, -0.2811872661113739, 0.23579289019107819, -0.2949526309967041, 0.254640132188797, -0.430869996547699, 0.3521904945373535, -0.057878535240888596, -0.054547443985939026, 0.08772987127304077, -0.058738917112350464, 0.18249039351940155, 0.020896993577480316, 0.38239529728889465, 0.033304717391729355, -0.15172365307807922, 0.027262600138783455, -0.3604696989059448, -0.40166473388671875, -0.2655516266822815, 0.01435871422290802, 0.17248043417930603, -0.15729975700378418, -0.33285462856292725, 0.5829178094863892, 0.12978464365005493, -0.10001054406166077, 0.15983468294143677, 0.31747138500213623, 0.08704085648059845, -0.03831534832715988, 0.05242673307657242, -0.07932321727275848, -0.10971581190824509, -0.008805572986602783, -0.30794084072113037, 0.2040722817182541, 0.10638901591300964, -0.2711716890335083, -0.04571344703435898, 0.03201046586036682, 0.07850836217403412, -0.2064710259437561, -0.0180335845798254, -0.19579404592514038, -0.11084631085395813, 0.010616336017847061, -0.07332614064216614, -0.10524924844503403, -0.08429473638534546, 0.0720168948173523, -0.43796271085739136, -0.04577646404504776, -0.02314320020377636, -0.1467808336019516, -0.09454411268234253, 0.36057567596435547, -0.11254025250673294, 0.025117287412285805, -0.07087213546037674, 0.15945139527320862, 0.13058941066265106, 0.06702989339828491, -0.09692763537168503, 0.23770016431808472, 0.2820757329463959, 0.08177225291728973, 0.10236992686986923, 0.18416233360767365, 0.042205505073070526, -0.05243877321481705, -0.11789373308420181, 0.21369357407093048, 0.208841934800148, 0.14766177535057068, 0.24194900691509247, -0.21807248890399933, -0.10305590182542801, 0.11847662925720215, -0.0443924181163311, -0.2775185704231262, 0.3078269362449646, 0.06344418227672577, 0.28979915380477905, 0.19365346431732178, -0.19925567507743835, -0.0915350541472435, 0.28854382038116455, -0.18789954483509064, 0.024126920849084854, 0.43127772212028503, -0.3436954617500305, -0.11970652639865875, -0.1063293069601059, -0.2838626205921173, 0.28307318687438965, 0.08036307245492935, 0.12330976128578186, 0.10929146409034729, 0.14201276004314423, -0.07463853806257248, 0.21126925945281982, 0.27533358335494995, -0.19407115876674652, 0.16109421849250793, 0.13465151190757751, 0.059217143803834915, -0.19896987080574036, 0.08614763617515564, -0.19647860527038574, 0.3385744094848633, -0.4070678949356079, 0.3386438190937042, 0.05772748589515686, 0.013776227831840515, -0.3941373825073242, -0.2747449278831482, -0.18092520534992218, 0.026437805965542793, 0.19267390668392181, -0.2345575988292694, -0.11104294657707214, -0.05266366899013519, 0.3810810446739197, 0.29899922013282776, 0.15778590738773346, 0.2653695344924927, 0.018649302423000336, 0.18218834698200226, -0.33868810534477234, -0.029487326741218567, 0.19135013222694397, -0.18691684305667877, 0.15184655785560608, 0.09830164164304733, -0.22984224557876587, -0.056488342583179474, -0.32369500398635864, 0.21553517878055573, -0.17991723120212555, 0.27948200702667236, 0.20249658823013306, 0.13636468350887299, -0.43555086851119995, 0.09460467100143433, 0.019780538976192474, -0.0027538444846868515, -0.1579779088497162, -0.01417982392013073, -0.12343191355466843, 0.12773233652114868, -0.0837785005569458, -0.2641696631908417, -0.06016560643911362, 0.01954752206802368, 0.325442373752594, -0.009844671934843063, 0.036010146141052246, 0.21165478229522705, 0.15858228504657745, 0.10042478144168854, -0.05141447111964226, -0.1972811073064804, -0.0010391783434897661, -0.18542757630348206, 0.2125999480485916, 0.006226280238479376, -0.1962723582983017, -0.35622692108154297, -0.05312502011656761, 0.025586159899830818, -0.15690308809280396, -0.5457936525344849, 0.051839444786310196, -0.4050367474555969, -0.30023160576820374, -0.23347091674804688, 0.37850669026374817, 0.11567369848489761, -0.10777009278535843, 0.08498283475637436, 0.09842269867658615, 0.11341901123523712, -0.0752597227692604, -0.24577566981315613, 0.23017409443855286, -0.41631191968917847, 0.35236427187919617, -0.07925805449485779, 0.878788411617279, 0.3173364996910095, -0.009972143918275833, -0.0350925475358963, -0.03264185041189194, 0.39918655157089233, -0.4704626500606537, -0.1981319636106491, 0.2872302234172821, -0.05922245979309082, -0.3348690867424011, 0.3239845633506775, 0.12259064614772797, 0.4575768709182739, 0.21334028244018555, 0.06128551438450813, 0.2808784544467926, -0.37454259395599365, 0.4108823239803314, 0.13387617468833923, 0.17688220739364624, 0.0014611147344112396, 0.13073194026947021, 0.016293592751026154, -0.3149765431880951, 0.06310713291168213, -0.053852424025535583, 0.2175050973892212, 0.016628174111247063, 0.018032539635896683, -0.3413486182689667, -0.6975660920143127, -0.045571088790893555, 0.13274593651294708, 0.07291524112224579, 0.1507202535867691, -0.12371458113193512, 0.18995919823646545, 0.04684378579258919, 0.7578899264335632, 0.28132352232933044, -0.1726810783147812, 0.005550570785999298, -0.06816738843917847, -0.15127432346343994, 0.04701577499508858, -0.3141692578792572, -0.03363000601530075, 0.5655527114868164, 0.6516926288604736, -0.34515100717544556, -0.06195886805653572, 0.11781404167413712, 0.3456682562828064, -0.12289722263813019, 0.006776417605578899, -0.4224221706390381, 0.0064464956521987915, -0.23933924734592438, 0.24437305331230164, 0.06831591576337814, 0.06791795045137405, -0.07804030925035477, -0.08286137133836746, 0.05857391655445099, -0.08317078649997711, 0.3588629961013794, 0.24068553745746613, 0.3210001289844513, -0.2953755259513855, 0.380635142326355, -0.037977658212184906, 0.11557334661483765, 0.3630250096321106, 0.1936296969652176, -0.16702671349048615, -0.2968229353427887, 0.2599288821220398, -0.1010313406586647, 0.33703771233558655, 0.5717674493789673, -0.034076809883117676, 0.17664960026741028, 0.13560807704925537, 0.45587241649627686, -0.47328320145606995, 0.511218249797821, 0.49023333191871643, 0.012883939780294895, -0.5175440907478333, -0.22638224065303802, 0.3698659837245941, 0.08313651382923126, 0.1231706291437149, 0.16517788171768188, 0.30953434109687805, -0.3091196119785309, 0.29118746519088745, -0.0016349628567695618, 1.180363416671753, -0.19709481298923492, 0.5995182991027832, 0.11639592796564102, 0.2842215299606323, 0.5852833390235901, -0.2833365797996521, 0.19256959855556488, -0.37457916140556335, -0.06227158010005951, 0.1641654670238495, 0.034252528101205826, -0.14420312643051147, 0.029732581228017807, -0.10812871158123016, 0.1598673015832901, -0.11288224905729294, 0.25990504026412964, -0.2608390152454376, 0.32574325799942017, 0.06136753410100937, -0.3731701076030731, -0.2392233908176422, -0.052799683064222336, 0.012012530118227005, 0.04643265902996063, -0.15489652752876282, 0.09053723514080048, -0.029699424281716347, -0.30426573753356934, -0.2594526410102844, -0.1731947958469391, -0.02603469230234623, -0.038991574198007584, 0.19949853420257568, -0.33626240491867065, 0.3272382616996765, -0.030260775238275528, 0.25607872009277344, 0.6596658825874329, -0.22985145449638367, 0.05390671640634537, -0.18086332082748413, 0.035585176199674606, -0.018596574664115906, -0.08476666361093521, 0.0327785387635231, 0.053750358521938324, 0.07088076323270798, -0.046153612434864044, 0.013614037074148655, 0.28960907459259033, -0.3708905875682831, -0.18656976521015167, 0.5945252776145935, -0.4801499843597412, 0.014086376875638962, -0.10681338608264923, -0.051003336906433105, -0.14020942151546478, 0.005573677830398083, 0.17236623167991638, -0.25375136733055115, 0.07292254269123077, 0.04336218163371086, -0.36646345257759094, -0.2403923124074936, 0.1738371104001999, 0.280349999666214, -0.0036441832780838013, 0.737903356552124, 0.2823021411895752, -0.07195605337619781, -0.08893901854753494, 0.42876681685447693, 0.5030832290649414, -0.44448980689048767, 0.2955853044986725, 0.17805467545986176, -0.03754275292158127, -0.0009510908857919276, 0.1282505989074707, 0.23796656727790833, -0.30743667483329773, -0.16236571967601776, -0.04940933734178543, -0.4165504574775696, 0.04729963093996048, -0.04313724860548973, 0.13121379911899567, 0.14369669556617737, 0.34834757447242737, -0.09295886754989624, 0.15673765540122986, -0.1273813545703888, 0.05358061194419861, -0.016882333904504776, 0.03947747126221657, -0.2568359375, -0.05483941733837128, 0.1413847804069519, -0.1418835073709488, -0.0923595204949379, 0.20897850394248962, -0.019302144646644592, -0.07351493835449219, -0.27627766132354736, 0.17426030337810516, 0.01807514578104019, -0.09714924544095993, 0.1658903807401657, 0.13175079226493835, -0.18459545075893402, -0.255717009305954, 0.36548590660095215, 0.10424307733774185, 0.17103704810142517, -0.22664101421833038, 0.120852530002594, -0.06821445375680923, -0.14818091690540314, 0.01643526367843151, 0.25396859645843506, 0.33334505558013916, 0.06427327543497086, 0.17042051255702972, 0.2489984631538391, -0.0927019864320755, -0.058030080050230026, 0.25915712118148804, 0.2553396224975586, 0.06522601842880249, 0.11809080839157104, -0.22245405614376068, -0.07116860151290894, 0.040091466158628464, 0.168808713555336, 0.4920588731765747, -0.2982496917247772, -0.24906523525714874, 0.4635602533817291, 0.07086998224258423, -0.03735596686601639, -0.07727696001529694, -0.14337922632694244, -0.23362289369106293, -0.20461629331111908, 0.31979629397392273, -0.037534646689891815, 0.06520284712314606, -0.13475172221660614, 0.1632537543773651, -0.12336834520101547, 0.16002467274665833, -0.029236681759357452, 0.5991116762161255, 0.0031000226736068726, 0.11949510872364044, 0.21877732872962952, 0.10102944076061249, 0.23897740244865417, 0.6983110308647156, 0.17851226031780243, 0.19252754747867584, -0.3714151680469513, 0.10881438106298447, -0.19278240203857422, -0.49047157168388367, -0.4612637162208557, 0.18449898064136505, -0.14478763937950134, 0.2918325960636139, -0.1545116901397705, 0.5883194208145142, -0.07621966302394867, -0.24932168424129486, -0.15469211339950562, -0.010358862578868866, -0.28984129428863525, -0.11912189424037933, 0.19235439598560333, -0.1257757544517517, 0.1729232221841812, 0.25961998105049133, -0.12387806177139282, 0.010251853615045547, -0.0933724045753479, 0.07947716861963272, -0.10361507534980774, 0.04939722269773483, -0.18209978938102722, 0.18392279744148254, 0.11368992179632187, -0.28769543766975403, 0.2269536852836609, -0.08069363236427307, 0.03670996055006981, -0.21044254302978516, 0.29473090171813965, 0.47531047463417053, 0.38731902837753296, -0.22409003973007202, 0.16996103525161743, 0.1405055671930313, 0.086448535323143, -0.06932347267866135, 0.16387277841567993, 0.32892322540283203, 0.120653435587883, 0.014166828244924545, -0.08465512096881866, -0.12283980846405029, -0.15791067481040955, 0.24468772113323212, 0.10136841237545013, -0.14892372488975525, 0.22849634289741516, -0.1582212746143341, -0.13193431496620178, -0.2944994270801544, 0.027095355093479156, -0.7009482383728027, 0.5352683663368225, 0.476495623588562, 0.025295518338680267, 0.12345121055841446, -0.09153246879577637, -0.009524945169687271, -0.1323712170124054, 0.5158675909042358, 0.4690687954425812, -0.013955488801002502, -0.3866829574108124, 0.03083556890487671, -0.29776525497436523, 0.27263596653938293, -0.2909192144870758, 0.314070463180542, -0.130875363945961, -0.07553210854530334, 0.020876780152320862, -0.13940362632274628, -0.08279836177825928, -0.2343415915966034, -0.6251958012580872, 0.1800919473171234, -0.14074599742889404, -0.17198389768600464, -0.22635112702846527, 0.08639901131391525, -0.06056923419237137, -0.25729966163635254, 0.44576936960220337, -0.04614199325442314, -0.17050856351852417, 0.029392190277576447, 0.22795569896697998, -0.21688881516456604, 0.173821359872818, 0.25718048214912415, 0.2815205752849579, 0.04944850504398346, 0.06352139264345169, -0.22895978391170502, -0.29117608070373535, 0.13921168446540833, -0.07182051986455917, 0.12638689577579498, 0.24615170061588287, 0.29430466890335083, -0.3145045042037964, -0.26485538482666016, -0.3899097442626953, 0.09292829781770706, 0.3281577229499817, -0.22421042621135712, -0.24435770511627197, 0.10151614993810654, -0.11490178853273392, 0.03442046791315079, 0.013565036468207836, 0.47776952385902405, -0.12092791497707367, -0.04707027226686478, -0.36058467626571655, -0.24391010403633118, 0.4634326100349426, -0.3155980408191681, -0.41590017080307007, -0.26190057396888733, 0.07823505252599716, 0.30398011207580566, -0.29663562774658203, -0.7923547029495239, 0.10156483203172684, 0.15911558270454407, 0.025392629206180573, -0.44674152135849, 0.13508939743041992, -0.11592499911785126, -0.13370825350284576, -0.18707275390625, 0.7428531646728516, 0.04272349551320076, -0.19075636565685272, 0.42486342787742615, -0.26028621196746826 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
First I think we should disable padding in the dataset processing and let the data collator do it. Then I'm wondering if you need attention_mask and token_type_ids at this point ? Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like: - input_ids: uint16 or uint32 - token_type_ids: uint8 or bool - attention_mask: bool - special_tokens_mask: bool Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
90
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` First I think we should disable padding in the dataset processing and let the data collator do it. Then I'm wondering if you need attention_mask and token_type_ids at this point ? Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like: - input_ids: uint16 or uint32 - token_type_ids: uint8 or bool - attention_mask: bool - special_tokens_mask: bool Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo
[ -0.2299044281244278, -0.3667338490486145, 0.12432366609573364, 0.2771851718425751, 0.6030985116958618, -0.16952762007713318, 0.31214550137519836, 0.37343552708625793, -0.259917289018631, 0.15220700204372406, -0.0589236319065094, -0.13221915066242218, -0.28685125708580017, 0.24878709018230438, 0.12459994852542877, -0.11734773218631744, 0.10137557238340378, 0.1097864955663681, -0.08228951692581177, -0.25804397463798523, -0.038241032510995865, -0.0007749907672405243, 0.25066477060317993, 0.22081652283668518, -0.566843569278717, 0.06288553774356842, -0.04071512818336487, 0.06896042823791504, -0.4490857422351837, -0.06936457008123398, 0.05819123238325119, -0.2989962100982666, 0.2023250162601471, 0.5197610855102539, -0.00012487720232456923, -0.050877392292022705, 0.18901817500591278, -0.07571528106927872, -0.0064580803737044334, 0.1778799295425415, 0.15704703330993652, -0.09956381469964981, -0.15016238391399384, 0.09196221083402634, 0.2281862199306488, -0.07618602365255356, -0.042635053396224976, -0.06385663151741028, 0.3386055529117584, 0.22242973744869232, 0.09239616990089417, 0.13211719691753387, 0.08140702545642853, 0.08444010466337204, 0.20957183837890625, 0.32884931564331055, -0.052218273282051086, 0.014561425894498825, 0.20903146266937256, -0.15241341292858124, -0.02140173316001892, 0.18111474812030792, 0.11391067504882812, -0.16994789242744446, 0.2978737950325012, 0.21826982498168945, -0.11498522013425827, -0.41215020418167114, 0.17696493864059448, 0.42692044377326965, -0.058446697890758514, -0.376487672328949, -0.3386246860027313, -0.4122278690338135, 0.20500798523426056, -0.5156779289245605, 0.04918724298477173, 0.1984967142343521, -0.1357269287109375, 0.07472071051597595, -0.27385634183883667, -0.4056915044784546, -0.23554004728794098, -0.06131495535373688, -0.19544941186904907, 0.040693920105695724, -0.21222223341464996, -0.08656265586614609, 0.016696494072675705, -0.11476674675941467, -0.361300528049469, -0.005836080759763718, -0.014601897448301315, 0.24445560574531555, -0.09029465913772583, -0.30053848028182983, -0.09071945399045944, -0.3367125689983368, 0.2940713167190552, -0.5009036064147949, -0.1907382309436798, -0.39960557222366333, -0.19794324040412903, -0.36449283361434937, 0.3797663450241089, 0.4768550395965576, -0.37754082679748535, 0.20856428146362305, 0.163592129945755, 0.06162956357002258, -0.10255219787359238, -0.04618315398693085, -0.10709851235151291, 0.10278332233428955, 0.03217218443751335, -0.3345993161201477, 0.0909971222281456, -0.26711341738700867, -0.12784406542778015, 0.40310126543045044, -0.3146027624607086, 0.22814659774303436, 0.041138604283332825, 0.3260875344276428, -0.08707275986671448, 0.16516244411468506, 0.0686945989727974, 0.0581924244761467, -0.4440340995788574, -0.025673171505331993, -0.09422162175178528, 0.08865480124950409, -0.18564188480377197, 0.1809191107749939, 0.01178671419620514, 0.06433811783790588, 0.036657072603702545, 0.009292389266192913, 0.26647263765335083, -0.024775026366114616, 0.08059553802013397, -0.2521764636039734, 0.1330580860376358, 0.169172465801239, -0.18632429838180542, 0.4540972113609314, 0.0054918453097343445, 0.051755473017692566, -0.03620736673474312, 0.04538340866565704, -0.2103351652622223, -0.49310243129730225, -0.0973965972661972, 0.12525999546051025, -0.038967445492744446, 0.29607313871383667, -0.07943620532751083, 0.35037821531295776, 0.44868412613868713, 0.016284789890050888, 0.015042237937450409, -0.19292189180850983, -0.2002844661474228, -0.012583854608237743, 0.3824048638343811, 0.41930997371673584, -0.544230580329895, -0.1573409140110016, -0.23858965933322906, 0.2531917095184326, 0.38892662525177, 0.6155256032943726, -0.005607550963759422, 0.55173659324646, -0.23533938825130463, 0.16427873075008392, -0.285204142332077, 0.26837843656539917, -0.42224666476249695, 0.3572137653827667, -0.052504461258649826, -0.038830772042274475, 0.10613705217838287, -0.0538562573492527, 0.1744455099105835, 0.01278314646333456, 0.3944092392921448, 0.023888416588306427, -0.2038850635290146, 0.0473412349820137, -0.38134539127349854, -0.4033682346343994, -0.2660675644874573, 0.08000165224075317, 0.15811380743980408, -0.1353045105934143, -0.27350544929504395, 0.551450252532959, 0.11555200070142746, -0.14552995562553406, 0.13550040125846863, 0.3262096047401428, 0.11132378876209259, -0.0687132328748703, 0.019379040226340294, -0.053241483867168427, -0.2125866413116455, 0.03442015498876572, -0.2865602672100067, 0.24896270036697388, 0.0793810784816742, -0.27216312289237976, -0.05735213682055473, -0.019542137160897255, 0.08133337646722794, -0.20654110610485077, 0.01242150366306305, -0.2158958613872528, -0.09159256517887115, 0.031171228736639023, -0.047938406467437744, -0.045713067054748535, -0.10297965258359909, 0.048843711614608765, -0.5028931498527527, -0.04539304971694946, -0.008149759843945503, -0.18823854625225067, -0.03242010250687599, 0.32905247807502747, -0.09951501339673996, 0.04230741038918495, -0.10003799945116043, 0.18438807129859924, 0.12575122714042664, 0.08205430954694748, -0.06106655299663544, 0.2300110012292862, 0.2973824441432953, 0.1116478443145752, 0.09347335994243622, 0.20555619895458221, 0.0610833540558815, -0.05170908570289612, -0.1138148084282875, 0.22680580615997314, 0.18315693736076355, 0.1398506462574005, 0.26763904094696045, -0.24796444177627563, -0.08639980107545853, 0.12647388875484467, -0.027257757261395454, -0.2584274411201477, 0.31181204319000244, 0.060129765421152115, 0.3070540726184845, 0.14627735316753387, -0.2055971771478653, -0.06560730189085007, 0.3099733889102936, -0.1693718135356903, 0.050930071622133255, 0.4050943851470947, -0.30191001296043396, -0.04691152647137642, -0.07793793082237244, -0.24463853240013123, 0.31695881485939026, 0.10275633633136749, 0.09096910059452057, 0.1304178535938263, 0.07606903463602066, -0.08735150843858719, 0.14894862473011017, 0.27381396293640137, -0.155052050948143, 0.15036852657794952, 0.1463555097579956, -0.012309125624597073, -0.22403192520141602, 0.06603224575519562, -0.21908149123191833, 0.37895169854164124, -0.3892233967781067, 0.33027908205986023, 0.09087131172418594, 0.01977004110813141, -0.4125823378562927, -0.28434813022613525, -0.2321334183216095, 0.0014973897486925125, 0.16708868741989136, -0.18489830195903778, -0.12686440348625183, -0.06847380846738815, 0.34205248951911926, 0.23278117179870605, 0.17256636917591095, 0.296061247587204, -0.013493452221155167, 0.11166230589151382, -0.3305935561656952, 0.0019322186708450317, 0.1982806771993637, -0.1490033119916916, 0.15948638319969177, 0.10087289661169052, -0.26571691036224365, -0.017806826159358025, -0.31818878650665283, 0.164290189743042, -0.19826039671897888, 0.2966388463973999, 0.2247881442308426, 0.1824064999818802, -0.3565531373023987, 0.037892285734415054, 0.05568564310669899, -0.008080512285232544, -0.13186539709568024, -0.030173465609550476, -0.171773761510849, 0.17189282178878784, -0.097263865172863, -0.3041324019432068, -0.11803039163351059, -0.07441007345914841, 0.3672357201576233, -0.010540654882788658, 0.014780130237340927, 0.20397914946079254, 0.18892858922481537, 0.117123544216156, 0.02481352910399437, -0.16790522634983063, -0.012931881472468376, -0.13661283254623413, 0.21705925464630127, -0.002062590792775154, -0.21715272963047028, -0.37311965227127075, -0.03924531117081642, 0.02912013605237007, -0.18788081407546997, -0.5029157400131226, 0.02552391216158867, -0.456364244222641, -0.27195003628730774, -0.2287577986717224, 0.42562589049339294, 0.085024394094944, -0.10879560559988022, 0.07852505147457123, 0.08286211639642715, 0.13547362387180328, -0.0338127538561821, -0.2376573085784912, 0.21065843105316162, -0.40130650997161865, 0.4056989848613739, -0.10353545844554901, 0.8882101774215698, 0.3483368158340454, -0.09707772731781006, -0.0007675811648368835, 0.0034508146345615387, 0.3610592782497406, -0.45323988795280457, -0.2227274775505066, 0.29966235160827637, -0.09419238567352295, -0.32641541957855225, 0.26619166135787964, 0.09622351080179214, 0.4384841024875641, 0.16951295733451843, 0.05313770845532417, 0.24638381600379944, -0.36610472202301025, 0.4002578556537628, 0.16994737088680267, 0.16834266483783722, -0.03986246511340141, 0.0964050367474556, -0.005764994770288467, -0.3088209629058838, 0.08137299120426178, -0.036756351590156555, 0.19082775712013245, 0.029093332588672638, 0.1177988350391388, -0.34157314896583557, -0.7532610893249512, -0.008953884243965149, 0.1532118022441864, 0.07261441648006439, 0.14563697576522827, -0.14994066953659058, 0.13208158314228058, 0.07809276133775711, 0.7480292916297913, 0.22800137102603912, -0.18668703734874725, -0.024370666593313217, -0.04196779057383537, -0.15490314364433289, 0.04670487716794014, -0.348808616399765, -0.07221197336912155, 0.6041026711463928, 0.6499786972999573, -0.4103456735610962, -0.043278880417346954, 0.11843734979629517, 0.31929829716682434, -0.11545298248529434, 0.017846938222646713, -0.45341289043426514, -0.027015164494514465, -0.2239370346069336, 0.21070483326911926, 0.06875849515199661, 0.052345629781484604, -0.1507505178451538, -0.08437208086252213, 0.08289772272109985, -0.09235301613807678, 0.30558961629867554, 0.3103860020637512, 0.2941119968891144, -0.30238309502601624, 0.3669600784778595, -0.0416957288980484, 0.14072313904762268, 0.365006685256958, 0.327288419008255, -0.20096474885940552, -0.3620549440383911, 0.25551432371139526, -0.11603591591119766, 0.3236401677131653, 0.5161669254302979, 0.005391182377934456, 0.16001057624816895, 0.1557784378528595, 0.4575164318084717, -0.4653673768043518, 0.5355374813079834, 0.48636096715927124, -0.017737194895744324, -0.5349087715148926, -0.21123754978179932, 0.4121991991996765, 0.07217863202095032, 0.13784253597259521, 0.19062474370002747, 0.2771162986755371, -0.33343493938446045, 0.28111743927001953, 0.012166611850261688, 1.101287603378296, -0.2145242542028427, 0.5295493006706238, 0.11700409650802612, 0.26623106002807617, 0.6018495559692383, -0.22904005646705627, 0.16645678877830505, -0.3895484209060669, -0.10805503278970718, 0.1780196577310562, 0.0635722428560257, -0.12019862979650497, 0.022074799984693527, -0.18034717440605164, 0.21077024936676025, -0.09395124018192291, 0.19792617857456207, -0.23492659628391266, 0.41427093744277954, 0.0643140971660614, -0.3886004686355591, -0.25650694966316223, -0.033081598579883575, -0.03087637573480606, 0.013263721019029617, -0.1502639651298523, 0.045715976506471634, -0.03002345934510231, -0.3175835609436035, -0.26702648401260376, -0.17951899766921997, -0.12079882621765137, -0.02508113533258438, 0.1849127858877182, -0.3685483932495117, 0.32847219705581665, -0.06861899793148041, 0.29671818017959595, 0.5942739248275757, -0.2410956621170044, 0.03162956237792969, -0.17640617489814758, 0.0335872620344162, -0.016000986099243164, -0.06868363171815872, 0.046145062893629074, 0.057219356298446655, 0.02986166626214981, -0.012480862438678741, -0.0008998429402709007, 0.3430386185646057, -0.37579482793807983, -0.24486516416072845, 0.45033591985702515, -0.5107023119926453, 0.024990621954202652, -0.15064933896064758, -0.06124991923570633, -0.13850454986095428, 0.031661875545978546, 0.18083606660366058, -0.2773391008377075, 0.025035716593265533, 0.02202373370528221, -0.342932790517807, -0.26327434182167053, 0.17846693098545074, 0.2554321885108948, 0.03768545389175415, 0.6541033983230591, 0.3423449695110321, -0.06585197150707245, -0.06430904567241669, 0.3937622606754303, 0.536449670791626, -0.5111451148986816, 0.29032132029533386, 0.19365763664245605, -0.050479456782341, 0.005552484653890133, 0.18929395079612732, 0.21491287648677826, -0.2882864773273468, -0.17830584943294525, -0.032188836485147476, -0.42613786458969116, 0.09593472629785538, -0.06646372377872467, 0.15802133083343506, 0.14050611853599548, 0.3553335666656494, -0.07148582488298416, 0.2126518189907074, -0.1578660011291504, 0.023569932207465172, -0.01056971400976181, 0.0625280886888504, -0.19941049814224243, -0.049463845789432526, 0.17447301745414734, -0.11048239469528198, -0.05720304697751999, 0.20218175649642944, -0.03924684599041939, -0.10360979288816452, -0.24206413328647614, 0.14506281912326813, 0.012896642088890076, -0.06298055499792099, 0.13440126180648804, 0.10398781299591064, -0.16123728454113007, -0.23281511664390564, 0.40761837363243103, 0.07818610221147537, 0.11338736116886139, -0.11918492615222931, 0.09421416372060776, -0.09241314977407455, -0.08308733999729156, 0.006390402093529701, 0.17686522006988525, 0.3059254288673401, 0.07717175036668777, 0.17202860116958618, 0.2513032555580139, -0.08411005884408951, 0.016457198187708855, 0.22191795706748962, 0.19591137766838074, 0.10826076567173004, 0.11133786290884018, -0.22978051006793976, -0.08654208481311798, 0.021638259291648865, 0.23154202103614807, 0.4675869643688202, -0.24868349730968475, -0.2054346650838852, 0.4337887465953827, 0.11260680854320526, -0.041276752948760986, -0.07546429336071014, -0.10492463409900665, -0.21652474999427795, -0.09062598645687103, 0.35249337553977966, -0.05577222630381584, 0.05193471908569336, -0.11454032361507416, 0.14571994543075562, -0.12388526648283005, 0.16272762417793274, -0.053548045456409454, 0.641691267490387, -0.0037554800510406494, 0.09960949420928955, 0.21069644391536713, 0.05253438651561737, 0.2626219093799591, 0.677208662033081, 0.18488135933876038, 0.1508556753396988, -0.42155277729034424, 0.08044295012950897, -0.1494600772857666, -0.5071749687194824, -0.48762136697769165, 0.10390301048755646, -0.17185929417610168, 0.30666258931159973, -0.14844809472560883, 0.5831759572029114, -0.09195514768362045, -0.22201405465602875, -0.1316651850938797, -0.035440731793642044, -0.2864600718021393, -0.09657759964466095, 0.16605670750141144, -0.13353131711483002, 0.13584625720977783, 0.21861276030540466, -0.1328597068786621, 0.04462534934282303, -0.036138907074928284, 0.08609393239021301, -0.07282435894012451, 0.055288977921009064, -0.21371331810951233, 0.1781376600265503, 0.1519743949174881, -0.23927459120750427, 0.2329532951116562, 0.0016599074006080627, -0.010798640549182892, -0.2549521028995514, 0.31913456320762634, 0.48273131251335144, 0.3858775496482849, -0.24473273754119873, 0.2269488424062729, 0.19338808953762054, 0.04814527928829193, -0.06902705132961273, 0.13357317447662354, 0.31054699420928955, 0.10577502846717834, 0.06401774287223816, -0.03371661156415939, -0.13936227560043335, -0.16205011308193207, 0.14746232330799103, 0.08714869618415833, -0.12557053565979004, 0.26179206371307373, -0.1687382310628891, -0.1373266875743866, -0.275339275598526, 0.010097645223140717, -0.729705274105072, 0.5182320475578308, 0.4826716482639313, -0.036539457738399506, 0.10117051750421524, -0.09451434016227722, 0.004882492125034332, -0.12106671929359436, 0.5459297299385071, 0.4561131000518799, 0.043830499053001404, -0.42085009813308716, 0.022986233234405518, -0.27339375019073486, 0.28507983684539795, -0.34833115339279175, 0.22945654392242432, -0.15127232670783997, -0.07497970014810562, 0.03982418775558472, -0.08093439787626266, -0.05868053436279297, -0.23288650810718536, -0.6350175738334656, 0.21645039319992065, -0.13537587225437164, -0.2508300840854645, -0.31143802404403687, -0.0002751406282186508, -0.07198317348957062, -0.27021679282188416, 0.4331163167953491, 0.003006119281053543, -0.11676836758852005, 0.014451947994530201, 0.2491120994091034, -0.1884370595216751, 0.1153702661395073, 0.22295702993869781, 0.3003041744232178, 0.05881021171808243, 0.002534329891204834, -0.22317533195018768, -0.2673760950565338, 0.1154303327202797, -0.11285049468278885, 0.10925154387950897, 0.2529754042625427, 0.38211125135421753, -0.28191959857940674, -0.28460896015167236, -0.44402387738227844, 0.16056695580482483, 0.35048598051071167, -0.18554702401161194, -0.25078919529914856, 0.13370445370674133, -0.10081237554550171, -0.0683622881770134, 0.034064602106809616, 0.49430373311042786, -0.08249266445636749, -0.041653603315353394, -0.3408874273300171, -0.2351452112197876, 0.46027565002441406, -0.3019509017467499, -0.3991841971874237, -0.23789656162261963, 0.06698460876941681, 0.2551594376564026, -0.252552330493927, -0.8035465478897095, 0.10776522010564804, 0.1308984011411667, -0.009747941046953201, -0.46519699692726135, 0.13870154321193695, -0.07489056885242462, -0.14063671231269836, -0.19191238284111023, 0.6681410074234009, 0.0604235902428627, -0.15831197798252106, 0.42592012882232666, -0.2587262988090515 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
> First I think we should disable padding in the dataset processing and let the data collator do it. No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching. For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script.
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
91
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` > First I think we should disable padding in the dataset processing and let the data collator do it. No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching. For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script.
[ -0.24492263793945312, -0.43948718905448914, 0.11735688149929047, 0.31894439458847046, 0.5710245966911316, -0.17657697200775146, 0.25659218430519104, 0.4291749596595764, -0.3390789031982422, 0.15733610093593597, -0.06757273524999619, -0.20117267966270447, -0.3087228238582611, 0.1915091574192047, 0.1266339272260666, -0.147889643907547, 0.06981915235519409, 0.17317399382591248, -0.12523500621318817, -0.22146859765052795, -0.000315248966217041, 0.03496945649385452, 0.24222685396671295, 0.17850041389465332, -0.577836275100708, 0.07625632733106613, -0.07158119976520538, 0.011026456952095032, -0.34619444608688354, -0.03485169634222984, 0.09941340982913971, -0.2865828275680542, 0.20106714963912964, 0.5267561078071594, -0.00012657494517043233, -0.04113135486841202, 0.15176016092300415, -0.08266899734735489, 0.04613993316888809, 0.19516874849796295, 0.19750195741653442, -0.08568200469017029, -0.16362056136131287, 0.07720551639795303, 0.18405279517173767, -0.08896473795175552, -0.025129595771431923, -0.0035938024520874023, 0.37038350105285645, 0.2273513674736023, 0.08147545903921127, 0.22125492990016937, -0.023742366582155228, 0.07111702114343643, 0.27842843532562256, 0.2887704372406006, -0.08184055984020233, -0.05091991648077965, 0.2467287927865982, -0.21629981696605682, -0.07551831752061844, 0.11387190222740173, 0.0970577746629715, -0.13825654983520508, 0.2942579388618469, 0.24187599122524261, -0.09015994518995285, -0.4337412416934967, 0.22686347365379333, 0.4442625045776367, -0.003812730312347412, -0.3651984930038452, -0.3235093653202057, -0.41262683272361755, 0.20021818578243256, -0.46952933073043823, 0.09317176789045334, 0.15728352963924408, -0.17085684835910797, 0.07144788652658463, -0.3042105734348297, -0.33769428730010986, -0.2605009973049164, -0.06026993691921234, -0.18918316066265106, 0.007233902812004089, -0.20470687747001648, -0.12976506352424622, 0.025829950347542763, -0.08980976790189743, -0.28137925267219543, 0.008646453730762005, -0.005477845668792725, 0.23293033242225647, -0.08753441274166107, -0.2953803539276123, -0.08205700665712357, -0.3209124505519867, 0.2784365713596344, -0.48080408573150635, -0.19114701449871063, -0.4234406352043152, -0.12176280468702316, -0.4122723639011383, 0.4198235869407654, 0.4721466302871704, -0.4405254125595093, 0.14792262017726898, 0.18130256235599518, 0.014089489355683327, -0.11942051351070404, -0.04084102809429169, -0.1277308613061905, 0.08682908117771149, 0.09282845258712769, -0.40297731757164, 0.03930062800645828, -0.2354258894920349, -0.047266777604818344, 0.3343815207481384, -0.2421361207962036, 0.16467712819576263, -0.014944522641599178, 0.3203732967376709, -0.09538573771715164, 0.20728367567062378, 0.09156323969364166, 0.01097157597541809, -0.433485746383667, 0.028075434267520905, -0.09207616746425629, 0.07048114389181137, -0.23146070539951324, 0.18550559878349304, 0.056262288242578506, 0.0775647982954979, -0.013214410282671452, -0.0600125789642334, 0.3360013961791992, -0.060656916350126266, 0.03153549134731293, -0.24499472975730896, 0.1417846381664276, 0.2185816764831543, -0.1720946729183197, 0.38733169436454773, -0.03725936636328697, 0.1247834712266922, -0.06762484461069107, 0.10889700055122375, -0.17172059416770935, -0.5269578695297241, -0.055834993720054626, 0.09924942255020142, -0.06328466534614563, 0.2949824929237366, -0.10479786247015, 0.39643263816833496, 0.4608321487903595, -0.03424621373414993, -0.03376515954732895, -0.20151980221271515, -0.2432103306055069, -0.026337936520576477, 0.4121338427066803, 0.4938141107559204, -0.5112317800521851, -0.15737608075141907, -0.24003100395202637, 0.25836873054504395, 0.3261882960796356, 0.6362031698226929, -0.055986929684877396, 0.6048203110694885, -0.2477887123823166, 0.12495765089988708, -0.3070099949836731, 0.2827395498752594, -0.41845616698265076, 0.37414467334747314, -0.04610053822398186, -0.04736975580453873, 0.1415729969739914, -0.05004265904426575, 0.21294789016246796, -0.00242768507450819, 0.32168227434158325, 0.04870867729187012, -0.2102934867143631, 0.10447026044130325, -0.36380821466445923, -0.43176427483558655, -0.27979958057403564, 0.09064815938472748, 0.1936856508255005, -0.11616786569356918, -0.3184911906719208, 0.6250890493392944, 0.056241102516651154, -0.10044564306735992, 0.16123883426189423, 0.35033613443374634, 0.015347059816122055, -0.0499005988240242, 0.04808971658349037, -0.06072573736310005, -0.26620084047317505, 0.017564181238412857, -0.3042600154876709, 0.2425422966480255, 0.1202823743224144, -0.2763027846813202, -0.020357919856905937, -0.061713844537734985, 0.14198704063892365, -0.16040484607219696, 0.0006387233734130859, -0.18665963411331177, -0.084015391767025, -0.02311142534017563, -0.058522362262010574, -0.04717819392681122, 0.01135542057454586, 0.02368544228374958, -0.4993106722831726, -0.014662514440715313, 0.007761526852846146, -0.18259574472904205, -0.035643115639686584, 0.3575805723667145, -0.1342761218547821, 0.038988955318927765, -0.12328355759382248, 0.16634193062782288, 0.0892147347331047, 0.1377289593219757, -0.07223784923553467, 0.31331104040145874, 0.2954530119895935, 0.0509738065302372, 0.0841752365231514, 0.24687667191028595, 0.059544116258621216, -0.074777752161026, -0.14488962292671204, 0.15931446850299835, 0.16430449485778809, 0.1164805218577385, 0.29383528232574463, -0.249812051653862, -0.14975960552692413, 0.06342491507530212, -0.03764887899160385, -0.21555471420288086, 0.29238390922546387, 0.04138007014989853, 0.30771952867507935, 0.20180541276931763, -0.17229297757148743, -0.07771042734384537, 0.33626386523246765, -0.20027762651443481, 0.02669619768857956, 0.4785175621509552, -0.27614521980285645, -0.09273641556501389, -0.1404372602701187, -0.229194775223732, 0.3158213198184967, 0.09738564491271973, 0.08086864650249481, 0.11552391201257706, 0.13170766830444336, -0.0829710140824318, 0.17523716390132904, 0.330427348613739, -0.17654559016227722, 0.18969544768333435, 0.12552689015865326, 0.10038741677999496, -0.18470558524131775, 0.031619589775800705, -0.24091540277004242, 0.3497816026210785, -0.38094642758369446, 0.2891235947608948, 0.09350884705781937, 0.019760068506002426, -0.4174821078777313, -0.214610755443573, -0.20945720374584198, 0.05369289964437485, 0.2030448317527771, -0.18450619280338287, -0.1346837431192398, -0.052590638399124146, 0.40986233949661255, 0.2963763475418091, 0.13963191211223602, 0.2047361135482788, -0.03466834872961044, 0.12420358508825302, -0.3263193368911743, -0.007629813626408577, 0.16082331538200378, -0.14000222086906433, 0.11287400126457214, 0.08294272422790527, -0.202144056558609, 0.0533423125743866, -0.32327109575271606, 0.17986787855625153, -0.1953161060810089, 0.23582002520561218, 0.18651264905929565, 0.21585482358932495, -0.3509802222251892, 0.03461017459630966, -0.018025031313300133, -0.08354106545448303, -0.09088674187660217, 0.0012709405273199081, -0.14161416888237, 0.11930281668901443, -0.09180733561515808, -0.36325424909591675, -0.08064667880535126, -0.09250131994485855, 0.33618468046188354, -0.05783512443304062, 0.012479521334171295, 0.1788608729839325, 0.22010265290737152, 0.11980374902486801, -0.0008884593844413757, -0.150271475315094, 0.06517205387353897, -0.09148513525724411, 0.20970110595226288, 0.022297026589512825, -0.22807155549526215, -0.38840994238853455, -0.049505189061164856, 0.003449760377407074, -0.15079529583454132, -0.5319608449935913, 0.04284454137086868, -0.4780923128128052, -0.2615790069103241, -0.25814366340637207, 0.4361437261104584, 0.17855030298233032, -0.055623020976781845, 0.0651726946234703, 0.09482698887586594, 0.08552882075309753, -0.06538023799657822, -0.2383454442024231, 0.16570021212100983, -0.409030944108963, 0.3104109466075897, -0.1278923898935318, 0.8918740153312683, 0.28183186054229736, -0.030153613537549973, -0.023294351994991302, -0.022820794954895973, 0.3791375160217285, -0.42292776703834534, -0.1471819132566452, 0.2681608498096466, -0.08133944869041443, -0.3361058235168457, 0.3171371817588806, 0.13550812005996704, 0.4041449725627899, 0.12335965037345886, 0.058014873415231705, 0.229585200548172, -0.363852322101593, 0.4420795440673828, 0.18022747337818146, 0.16802683472633362, -0.04285261407494545, 0.08005902916193008, 0.018766451627016068, -0.3227302134037018, 0.0402568094432354, -0.05411189794540405, 0.2084043025970459, 0.0055820331908762455, 0.14339354634284973, -0.311424195766449, -0.7348173260688782, -0.06941789388656616, 0.15143172442913055, 0.004125653766095638, 0.12986794114112854, -0.14831218123435974, 0.1331443339586258, 0.05917726829648018, 0.7799108028411865, 0.24423517286777496, -0.1808483600616455, -0.017140137031674385, -0.11898399889469147, -0.1900436133146286, 0.07657505571842194, -0.3629525303840637, -0.10968263447284698, 0.577189028263092, 0.6488322019577026, -0.3822694718837738, -0.05976984277367592, 0.09835118055343628, 0.33697617053985596, -0.10647469758987427, -0.002854466438293457, -0.42412981390953064, -0.048236504197120667, -0.2051328718662262, 0.20689496397972107, 0.12536801397800446, 0.04270467907190323, -0.15018241107463837, -0.06684128940105438, 0.10602885484695435, -0.05461797118186951, 0.2829445004463196, 0.3270205855369568, 0.29137730598449707, -0.30868393182754517, 0.3943774402141571, -0.03212910145521164, 0.04072326421737671, 0.33708101511001587, 0.2501645088195801, -0.22707036137580872, -0.3491237461566925, 0.2843482792377472, -0.060472987592220306, 0.29917049407958984, 0.5100075006484985, -0.028036322444677353, 0.10720865428447723, 0.13043007254600525, 0.47839146852493286, -0.42163175344467163, 0.4475492835044861, 0.477914422750473, -0.04559873044490814, -0.4816349446773529, -0.2087477445602417, 0.4050309360027313, 0.09200742840766907, 0.14929421246051788, 0.16798922419548035, 0.2624354958534241, -0.3083885908126831, 0.3386712074279785, -0.027618885040283203, 1.1405245065689087, -0.2570123076438904, 0.6073177456855774, 0.10812637954950333, 0.2599497437477112, 0.6181570291519165, -0.2622876763343811, 0.17685575783252716, -0.35453978180885315, -0.15690095722675323, 0.19055356085300446, 0.054593127220869064, -0.14651820063591003, 0.09669707715511322, -0.204716295003891, 0.20351245999336243, -0.09373671561479568, 0.1888560950756073, -0.22858819365501404, 0.36552876234054565, 0.12256771326065063, -0.4232098162174225, -0.26642927527427673, -0.045993201434612274, -0.05118443816900253, 0.06399579346179962, -0.1379387080669403, 0.07546861469745636, -0.01813933625817299, -0.29613935947418213, -0.2930021584033966, -0.15322396159172058, -0.07355330884456635, -0.09203395992517471, 0.24863585829734802, -0.2898266315460205, 0.35937443375587463, 0.011405911296606064, 0.22156257927417755, 0.6132363080978394, -0.26595890522003174, 0.06433982402086258, -0.16606175899505615, 0.0261284951120615, -0.023176636546850204, -0.020789191126823425, 0.048474639654159546, 0.0487469807267189, 0.021407373249530792, -0.040928520262241364, -0.015656067058444023, 0.3132302761077881, -0.34161171317100525, -0.21260695159435272, 0.4788936376571655, -0.49089470505714417, 0.034522105008363724, -0.09679251909255981, -0.10157105326652527, -0.13028421998023987, 0.03218286484479904, 0.1376827210187912, -0.28994178771972656, 0.09583958238363266, 0.027760935947299004, -0.3693692982196808, -0.24275873601436615, 0.2325761914253235, 0.28116875886917114, 0.005573540925979614, 0.63094162940979, 0.31983646750450134, -0.05060408636927605, -0.09400109946727753, 0.3591878116130829, 0.4548470377922058, -0.5871472954750061, 0.3231057822704315, 0.18270562589168549, -0.07760965824127197, 0.04166307672858238, 0.18620283901691437, 0.24718834459781647, -0.26867321133613586, -0.17928120493888855, 0.004179693758487701, -0.4433615803718567, 0.0834011659026146, 0.054179176688194275, 0.1633240133523941, 0.19131037592887878, 0.33799925446510315, 0.011527309194207191, 0.20288877189159393, -0.14761662483215332, 0.01849856600165367, -0.015875134617090225, 0.05651746317744255, -0.18893176317214966, -0.08430732041597366, 0.214250385761261, -0.11004731059074402, -0.07873682677745819, 0.24632146954536438, -0.03654829412698746, -0.1003577783703804, -0.2585126459598541, 0.16443279385566711, 0.0116172069683671, -0.09327583760023117, 0.07466048747301102, 0.1224256306886673, -0.18589240312576294, -0.2925646901130676, 0.42653363943099976, 0.10714937001466751, 0.10571007430553436, -0.1591506451368332, 0.1500166654586792, -0.11145967990159988, -0.14536356925964355, 0.02557612583041191, 0.20136621594429016, 0.2704308032989502, 0.08757498860359192, 0.1692485809326172, 0.23382611572742462, -0.10961394011974335, -0.01592223159968853, 0.22439983487129211, 0.284862220287323, 0.15566138923168182, 0.10207604616880417, -0.17079679667949677, -0.10299889743328094, -0.0018233736045658588, 0.2042330503463745, 0.46920183300971985, -0.2532438635826111, -0.225934237241745, 0.4052748680114746, 0.09929000586271286, -0.052645597606897354, -0.09935232996940613, -0.13449622690677643, -0.18870501220226288, -0.10916212201118469, 0.3316677212715149, -0.08643430471420288, 0.045481279492378235, -0.049516767263412476, 0.1529034972190857, -0.06073145940899849, 0.1428849697113037, -0.021119579672813416, 0.6312292218208313, -0.005785778164863586, 0.08527102321386337, 0.15758876502513885, 0.06308725476264954, 0.2630428075790405, 0.611805260181427, 0.24052494764328003, 0.1666039228439331, -0.49177131056785583, 0.08646153658628464, -0.18387573957443237, -0.5297766923904419, -0.44317835569381714, 0.1267949938774109, -0.10188235342502594, 0.3069048523902893, -0.15979567170143127, 0.529990553855896, -0.08972582966089249, -0.2319505661725998, -0.16531676054000854, -0.058348316699266434, -0.23865851759910583, -0.10734212398529053, 0.3041745722293854, -0.09967061132192612, 0.18220928311347961, 0.23354849219322205, -0.11556687951087952, 0.031736016273498535, -0.011983349919319153, 0.12589193880558014, -0.07497365772724152, 0.12504693865776062, -0.22414052486419678, 0.15383243560791016, 0.1388193815946579, -0.2075570970773697, 0.23489435017108917, -0.02609500288963318, 0.019563063979148865, -0.260503351688385, 0.3408120274543762, 0.447200745344162, 0.3692033886909485, -0.2102327048778534, 0.22857458889484406, 0.1935969591140747, 0.06889475882053375, -0.046760909259319305, 0.1994188129901886, 0.28606116771698, 0.1885346621274948, 0.04347822442650795, -0.05069538950920105, -0.14867420494556427, -0.11822624504566193, 0.14324943721294403, 0.07859958708286285, -0.17583812773227692, 0.25103893876075745, -0.11437167227268219, -0.2028602957725525, -0.27504777908325195, 0.02619647979736328, -0.6956100463867188, 0.5344948172569275, 0.4925577640533447, -0.04805445298552513, 0.10111378878355026, -0.047488171607255936, -0.003114357590675354, -0.05629095807671547, 0.5935714244842529, 0.48527055978775024, 0.07553327083587646, -0.3850584626197815, 0.049232691526412964, -0.2965467572212219, 0.29271525144577026, -0.3322431743144989, 0.3192039430141449, -0.0713101327419281, -0.10959960520267487, -0.014767743647098541, -0.08699697256088257, -0.07450871169567108, -0.2496882975101471, -0.6370699405670166, 0.15847080945968628, -0.1358509361743927, -0.2381407469511032, -0.251537561416626, 0.026977814733982086, -0.04756273329257965, -0.3367347717285156, 0.38730475306510925, 0.0477779358625412, -0.10690900683403015, -0.032337576150894165, 0.21245357394218445, -0.18921394646167755, 0.17318257689476013, 0.19584408402442932, 0.2702769339084625, 0.020277105271816254, 0.01692333072423935, -0.17433789372444153, -0.32299917936325073, 0.13474735617637634, -0.09191038459539413, 0.05750717967748642, 0.2862856686115265, 0.30369293689727783, -0.3394981622695923, -0.2640426754951477, -0.4243772625923157, 0.053734805434942245, 0.328654408454895, -0.16400137543678284, -0.18378448486328125, 0.0568167045712471, -0.08630601316690445, -0.03455460071563721, 0.0583428330719471, 0.5320752263069153, -0.1458188146352768, -0.08057434111833572, -0.37624526023864746, -0.2100282460451126, 0.4452857971191406, -0.3400379419326782, -0.43820077180862427, -0.22180475294589996, 0.03611842542886734, 0.1998680979013443, -0.2338714301586151, -0.7568826079368591, 0.1211128905415535, 0.12666167318820953, 0.01930473931133747, -0.4797685146331787, 0.1573765128850937, -0.13839299976825714, -0.16036772727966309, -0.160221666097641, 0.7219983339309692, 0.08236055076122284, -0.17499399185180664, 0.4088823199272156, -0.27129942178726196 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
Oh yes right.. Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ?
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
25
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` Oh yes right.. Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ?
[ -0.15845932066440582, -0.3227502703666687, 0.11426497995853424, 0.2783164083957672, 0.6050806641578674, -0.08939430117607117, 0.36650553345680237, 0.37571385502815247, -0.25044023990631104, 0.16443245112895966, -0.061065882444381714, -0.08094045519828796, -0.37371861934661865, 0.1472703218460083, 0.14738129079341888, 0.03244028240442276, 0.1391410529613495, 0.1354866325855255, -0.077373206615448, -0.2471374273300171, 0.01947721093893051, -0.03092789463698864, 0.24246658384799957, 0.19485235214233398, -0.5476981997489929, 0.09979335218667984, -0.03192382678389549, -0.030726097524166107, -0.4810982346534729, -0.12518246471881866, 0.10056748986244202, -0.24837574362754822, 0.12872405350208282, 0.42408767342567444, -0.0001295393449254334, -0.018198445439338684, 0.14128378033638, -0.0814448893070221, 0.051007140427827835, 0.19264644384384155, 0.0713474452495575, -0.07788296043872833, -0.15978410840034485, 0.08114085346460342, 0.20664522051811218, -0.10239450633525848, 0.03540366515517235, -0.07941857725381851, 0.3247146010398865, 0.1447516530752182, 0.06381922960281372, 0.1143503189086914, -0.03489043936133385, 0.07471129298210144, 0.31874361634254456, 0.27705156803131104, -0.07556401193141937, 0.005522429943084717, 0.18703892827033997, -0.2282138168811798, -0.07464871555566788, 0.235630065202713, 0.07751692831516266, -0.20151133835315704, 0.3477507531642914, 0.25552210211753845, -0.011826947331428528, -0.39131176471710205, 0.2150571346282959, 0.3343566656112671, -0.005938529968261719, -0.36918914318084717, -0.28155067563056946, -0.47592347860336304, 0.1507342904806137, -0.39836961030960083, 0.06763363629579544, 0.1264641135931015, -0.09996721148490906, 0.11645087599754333, -0.3256668448448181, -0.46263203024864197, -0.21519461274147034, -0.042148932814598083, -0.19259780645370483, 0.04990103468298912, -0.2066258043050766, -0.11627054959535599, -0.060906510800123215, -0.12378449738025665, -0.2689935266971588, -0.07285559922456741, 0.018145300447940826, 0.24703076481819153, 0.03554108738899231, -0.3357769548892975, -0.048622921109199524, -0.4003134071826935, 0.3179064691066742, -0.5198042392730713, -0.1670585721731186, -0.38401469588279724, -0.2822940945625305, -0.30929845571517944, 0.4190121293067932, 0.40082672238349915, -0.3786325752735138, 0.28642377257347107, 0.14743605256080627, 0.01439022459089756, -0.09818796813488007, -0.08723621815443039, -0.15845580399036407, 0.15296702086925507, 0.08890333771705627, -0.36633336544036865, 0.07947404682636261, -0.24285255372524261, -0.11945009231567383, 0.4220164120197296, -0.3422699272632599, 0.23827607929706573, 0.021172575652599335, 0.32712289690971375, -0.10955040901899338, 0.08152341842651367, -0.01869903691112995, 0.042827457189559937, -0.3623219132423401, 0.06961663067340851, -0.057544007897377014, -0.008136250078678131, -0.16749252378940582, 0.1830437034368515, -0.004352174699306488, 0.08699049055576324, 0.09235456585884094, -0.06373849511146545, 0.2453146129846573, -0.026941588148474693, 0.07498814910650253, -0.23835575580596924, 0.21998482942581177, 0.15903007984161377, -0.21992024779319763, 0.44608867168426514, -0.03568822517991066, 0.027039840817451477, -0.06633780896663666, 0.1065039187669754, -0.2845108211040497, -0.5047077536582947, -0.044839195907115936, 0.08486653119325638, 0.013394054025411606, 0.2874855697154999, -0.10682947188615799, 0.3798874318599701, 0.4936860501766205, -0.06471148878335953, 0.04655797407031059, -0.16420744359493256, -0.31961551308631897, -0.012098281644284725, 0.3641356825828552, 0.3811831474304199, -0.48375895619392395, -0.19461193680763245, -0.16948623955249786, 0.24518898129463196, 0.28414419293403625, 0.6231353282928467, -0.05819924548268318, 0.5801360011100769, -0.2897653579711914, 0.2861122488975525, -0.26038244366645813, 0.22891533374786377, -0.4580262303352356, 0.3011760413646698, -0.023180998861789703, -0.010197862982749939, 0.03772995248436928, -0.10350204259157181, 0.27807509899139404, -0.01870894990861416, 0.4887706935405731, -0.04056746885180473, -0.19372598826885223, 0.04839025437831879, -0.3471642732620239, -0.3909624516963959, -0.22330127656459808, -0.030192263424396515, 0.1755295842885971, -0.1729312539100647, -0.26788759231567383, 0.5790897011756897, 0.17351090908050537, -0.06456655263900757, 0.22494858503341675, 0.3249577283859253, 0.12686793506145477, -0.0376044362783432, 0.03773489221930504, -0.10639770328998566, -0.18409666419029236, 0.0007459484040737152, -0.26248520612716675, 0.1973663866519928, 0.06052915006875992, -0.33663350343704224, -0.02790277823805809, -0.030360566452145576, 0.05222756415605545, -0.14900502562522888, -0.009615901857614517, -0.24329495429992676, -0.1688453108072281, 0.1220780611038208, -0.048676230013370514, -0.15872567892074585, -0.07926435768604279, 0.05638975277543068, -0.37615907192230225, -0.005961723625659943, 0.028797978535294533, -0.16117671132087708, -0.09674254059791565, 0.32955461740493774, -0.17232218384742737, -0.004966272972524166, -0.07971654087305069, 0.13598378002643585, 0.11034238338470459, 0.10882644355297089, -0.16414868831634521, 0.3137361407279968, 0.3106912076473236, 0.09417310357093811, 0.04822538048028946, 0.21865910291671753, 0.012098434381186962, -0.09836706519126892, -0.1908929944038391, 0.18030327558517456, 0.20872418582439423, 0.0652376189827919, 0.17506994307041168, -0.27778345346450806, -0.07792093604803085, 0.11876414716243744, -0.0812474936246872, -0.3290863633155823, 0.25859278440475464, 0.04744454473257065, 0.2946566939353943, 0.19832132756710052, -0.14921803772449493, -0.07549554854631424, 0.31657132506370544, -0.16172267496585846, 0.037167441099882126, 0.3789631724357605, -0.32507646083831787, -0.0943504273891449, -0.004581214860081673, -0.31058984994888306, 0.29050785303115845, 0.046288251876831055, 0.13456767797470093, 0.09405571222305298, 0.11507226526737213, -0.06172584369778633, 0.18565905094146729, 0.21066083014011383, -0.12620297074317932, 0.2095308005809784, 0.19208265841007233, -0.0009267581626772881, -0.2589704692363739, 0.13656094670295715, -0.15726612508296967, 0.28989869356155396, -0.35947945713996887, 0.22821448743343353, 0.07559344917535782, 0.026527628302574158, -0.38851791620254517, -0.22840796411037445, -0.15282028913497925, 0.03312499821186066, 0.2542637884616852, -0.15180063247680664, -0.15186068415641785, -0.015899693593382835, 0.30296409130096436, 0.3114878833293915, 0.2414969950914383, 0.20743945240974426, 0.015308178961277008, 0.1233329102396965, -0.2894178032875061, -0.03158880025148392, 0.15724779665470123, -0.23570896685123444, 0.12228989601135254, 0.11271945387125015, -0.29937344789505005, -0.0817454531788826, -0.29532867670059204, 0.20148061215877533, -0.1648559272289276, 0.19610440731048584, 0.24428769946098328, 0.12523210048675537, -0.3874123692512512, 0.10482057929039001, 0.012835731729865074, 0.0034780465066432953, -0.13483355939388275, -0.11365977674722672, -0.07705450057983398, 0.14890925586223602, -0.08062169700860977, -0.27523013949394226, -0.07245716452598572, -0.0015946272760629654, 0.39678066968917847, -0.03822466731071472, 0.0059395767748355865, 0.19843803346157074, 0.20222841203212738, 0.09550756961107254, -0.0675060972571373, -0.19601251184940338, -0.0069532934576272964, -0.22214621305465698, 0.2693294584751129, -0.020077316090464592, -0.18035157024860382, -0.3509811758995056, -0.036772243678569794, -0.039158325642347336, -0.1439627856016159, -0.5498436689376831, 0.10428030788898468, -0.3475673794746399, -0.21242940425872803, -0.18695656955242157, 0.3236689269542694, 0.16212575137615204, -0.027823464944958687, 0.09540148824453354, 0.07705438882112503, 0.07411384582519531, -0.04607764631509781, -0.15300267934799194, 0.2259283810853958, -0.3670664131641388, 0.30846282839775085, -0.0015536732971668243, 0.8413870930671692, 0.2584565281867981, 0.059178609400987625, 0.017511751502752304, -0.036413781344890594, 0.4315394163131714, -0.42160627245903015, -0.19537147879600525, 0.25334951281547546, -0.12667256593704224, -0.38544660806655884, 0.30039602518081665, 0.15153172612190247, 0.3678124248981476, 0.24889922142028809, 0.02202320471405983, 0.3477153778076172, -0.3686494529247284, 0.4326389729976654, 0.008607923984527588, 0.12010543048381805, 0.03945624455809593, 0.1065802201628685, -0.027605697512626648, -0.3450218439102173, 0.12100984156131744, -0.11881010234355927, 0.24717462062835693, -0.013874391093850136, 0.07469972968101501, -0.21143171191215515, -0.805539071559906, -0.07938580214977264, 0.1710190623998642, 0.018114062026143074, 0.10243107378482819, -0.07023551315069199, 0.1438986361026764, 0.10945797711610794, 0.7522367835044861, 0.14853231608867645, -0.1466355174779892, -0.0731033980846405, -0.03209185600280762, -0.14796453714370728, -0.007331933826208115, -0.31750157475471497, -0.008026454597711563, 0.5544764995574951, 0.8051596283912659, -0.3837492763996124, -0.014598908834159374, 0.012789505533874035, 0.27126121520996094, -0.16306334733963013, 0.04659537598490715, -0.37828895449638367, 0.03348279744386673, -0.1805645227432251, 0.16466593742370605, 0.1506464034318924, 0.04843413457274437, -0.03649533540010452, -0.1383148580789566, 0.0361429825425148, -0.046269796788692474, 0.327237606048584, 0.18011607229709625, 0.3079211115837097, -0.2690178155899048, 0.3792639672756195, 0.02272825315594673, 0.14553797245025635, 0.36325085163116455, 0.27829161286354065, -0.2656796872615814, -0.3319878578186035, 0.20269271731376648, -0.17059282958507538, 0.3661509156227112, 0.5202797651290894, -0.019919034093618393, 0.16466988623142242, 0.14098674058914185, 0.38794761896133423, -0.5066107511520386, 0.5397728085517883, 0.5001416206359863, -0.015558518469333649, -0.5173013210296631, -0.26052236557006836, 0.32421016693115234, 0.08901073038578033, 0.10869883000850677, 0.2183578461408615, 0.17541088163852692, -0.4198828935623169, 0.38007527589797974, 0.05823902040719986, 1.0927499532699585, -0.28207314014434814, 0.6457761526107788, 0.08569358289241791, 0.34744226932525635, 0.6195511221885681, -0.3919827938079834, 0.16632302105426788, -0.3371162414550781, -0.16507785022258759, 0.12396538257598877, 0.08796034753322601, -0.1708422601222992, 0.05176515504717827, -0.1440126597881317, 0.19059014320373535, -0.031578198075294495, 0.3619603216648102, -0.26509079337120056, 0.25765982270240784, 0.1245746985077858, -0.3357914388179779, -0.21875779330730438, -0.06758960336446762, 0.08155032247304916, 0.0012558810412883759, -0.1550392508506775, 0.06623058021068573, 0.013988632708787918, -0.3324241638183594, -0.27324485778808594, -0.18586981296539307, -0.10230982303619385, 0.03341328352689743, 0.26064813137054443, -0.21934756636619568, 0.26652368903160095, 0.014916636049747467, 0.19572441279888153, 0.6118077635765076, -0.27479809522628784, -0.007397007197141647, -0.14161038398742676, 0.03222506493330002, -0.05541367828845978, -0.10506703704595566, 0.02784564159810543, 0.12154055386781693, 0.10151999443769455, 0.010179329663515091, -0.05177794396877289, 0.24963979423046112, -0.4359840452671051, -0.17438198626041412, 0.5185427069664001, -0.5724608898162842, -0.06095265597105026, -0.16614872217178345, -0.05538226664066315, -0.10673516988754272, 0.0033898428082466125, 0.12298481166362762, -0.23769083619117737, 0.07196008414030075, 0.048156529664993286, -0.3586067855358124, -0.19368034601211548, 0.3084656596183777, 0.19192296266555786, 0.050071150064468384, 0.6962028741836548, 0.18188489973545074, -0.06953021883964539, -0.046462614089250565, 0.4055938720703125, 0.5893693566322327, -0.3776433765888214, 0.2560916841030121, 0.14960120618343353, -0.09497835487127304, -0.10040973126888275, 0.19209706783294678, 0.24291129410266876, -0.259929895401001, -0.17910678684711456, -0.049426306039094925, -0.46657976508140564, 0.0721069872379303, 0.0032246336340904236, 0.1664884090423584, 0.1396554708480835, 0.32373276352882385, -0.06663552671670914, 0.1534448117017746, -0.124823659658432, 0.09316089004278183, -0.023892054334282875, 0.10163792222738266, -0.28985679149627686, 0.002201467752456665, 0.17091497778892517, -0.16633711755275726, -0.09852796047925949, 0.26966652274131775, 0.014739541336894035, -0.06437405943870544, -0.2574068307876587, 0.1716156303882599, 0.05130871385335922, -0.04145193099975586, 0.1521836817264557, 0.07730475813150406, -0.12617093324661255, -0.309664249420166, 0.3914383351802826, 0.191675066947937, 0.1403506100177765, -0.22744788229465485, 0.14552707970142365, -0.0863010361790657, -0.1304279863834381, 0.041222117841243744, 0.1899661123752594, 0.3233475685119629, -0.03048945590853691, 0.16294369101524353, 0.18363916873931885, -0.07683698832988739, 0.07090837508440018, 0.26805219054222107, 0.28614914417266846, 0.04537314921617508, 0.12840919196605682, -0.2139103263616562, -0.06523901224136353, 0.06217359006404877, 0.2593591511249542, 0.45853593945503235, -0.32025036215782166, -0.22362789511680603, 0.46945518255233765, 0.08028651028871536, -0.04138008505105972, -0.13148720562458038, -0.08762386441230774, -0.15020956099033356, -0.12259812653064728, 0.2824834883213043, -0.0133889801800251, -0.018329322338104248, -0.13053791224956512, 0.16199928522109985, -0.15487949550151825, 0.1399540901184082, -0.048020023852586746, 0.565748929977417, 0.0044326744973659515, 0.07019918411970139, 0.21652257442474365, 0.08751855790615082, 0.28339338302612305, 0.6908548474311829, 0.24691998958587646, 0.1544187366962433, -0.3074212074279785, 0.08460310101509094, -0.23200803995132446, -0.4808974862098694, -0.3943101763725281, 0.26587265729904175, -0.11994145810604095, 0.32731661200523376, -0.13214649260044098, 0.5771369934082031, -0.048140544444322586, -0.23531125485897064, -0.10172668099403381, 0.0392376184463501, -0.3232102394104004, -0.17485962808132172, 0.24539241194725037, -0.11985966563224792, 0.16957001388072968, 0.26949542760849, -0.15149854123592377, 0.024942096322774887, 0.06072724983096123, 0.057838939130306244, -0.06961476802825928, 0.08195329457521439, -0.15156662464141846, 0.1433766782283783, 0.17246121168136597, -0.2777453064918518, 0.2601987421512604, -0.18491648137569427, 0.0236288383603096, -0.2479349970817566, 0.3573225140571594, 0.46144217252731323, 0.4569037854671478, -0.22038643062114716, 0.19613033533096313, 0.13989700376987457, 0.05031569302082062, -0.06493733078241348, 0.20285369455814362, 0.30664288997650146, 0.047439176589250565, 0.051334742456674576, -0.08069884777069092, -0.10919724404811859, -0.0626925379037857, 0.23264764249324799, 0.03531937673687935, -0.07470346987247467, 0.17305117845535278, -0.10697430372238159, -0.1755288541316986, -0.17655853927135468, -0.023872703313827515, -0.6561955213546753, 0.47989168763160706, 0.5330017805099487, -0.06577438116073608, 0.23129385709762573, -0.06007814779877663, -0.009170066565275192, -0.10389454662799835, 0.4950026869773865, 0.4832199811935425, -0.08379875868558884, -0.4275386333465576, 0.025752246379852295, -0.27841508388519287, 0.3173956573009491, -0.3863588869571686, 0.2983150780200958, -0.13070186972618103, -0.08447684347629547, 0.021828025579452515, -0.11505161225795746, -0.15748731791973114, -0.2555806338787079, -0.6535040140151978, 0.16229504346847534, -0.10247883200645447, -0.213443323969841, -0.24218012392520905, 0.0815429836511612, -0.028433803468942642, -0.31125566363334656, 0.4596818685531616, -0.03519527241587639, -0.15141069889068604, 0.013302961364388466, 0.3289446234703064, -0.2615922689437866, 0.13399195671081543, 0.2557196617126465, 0.25014904141426086, 0.00006800144910812378, 0.008156590163707733, -0.19909685850143433, -0.2667863070964813, 0.08872447162866592, -0.08466818183660507, 0.12751871347427368, 0.2306876927614212, 0.2665815055370331, -0.38576292991638184, -0.2505602538585663, -0.40743231773376465, 0.11251913011074066, 0.3654775023460388, -0.1307969093322754, -0.24755270779132843, 0.14535576105117798, -0.15004894137382507, -0.02369863912463188, -0.020541129633784294, 0.45203760266304016, -0.1429160237312317, -0.04499881714582443, -0.2473851889371872, -0.251876562833786, 0.46711087226867676, -0.3677017390727997, -0.4063574969768524, -0.2025918960571289, 0.029903262853622437, 0.38526400923728943, -0.27892476320266724, -0.8607031106948853, 0.10423003882169724, 0.22063115239143372, 0.01569037139415741, -0.5150164365768433, 0.03254535049200058, -0.0204755961894989, -0.10859368741512299, -0.26271170377731323, 0.8137921094894409, 0.07515937089920044, -0.1930018812417984, 0.43237748742103577, -0.32102763652801514 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ). If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however!
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
55
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ). If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however!
[ -0.2022945135831833, -0.2920217514038086, 0.11891691386699677, 0.23009589314460754, 0.6037493348121643, -0.17225304245948792, 0.3156900107860565, 0.3898852467536926, -0.26586484909057617, 0.18251648545265198, -0.032922692596912384, -0.14777888357639313, -0.34277376532554626, 0.2524911165237427, 0.11079272627830505, -0.0713132843375206, 0.10648047924041748, 0.1568872183561325, -0.043426208198070526, -0.22820329666137695, 0.054199546575546265, 0.01827675849199295, 0.24269135296344757, 0.22361722588539124, -0.5773252844810486, 0.09311670064926147, -0.0897393673658371, 0.02896224707365036, -0.49840247631073, -0.10516205430030823, 0.02006852813065052, -0.27742186188697815, 0.2171359360218048, 0.4887029826641083, -0.00012551412510219961, -0.0723908394575119, 0.13901197910308838, -0.06831974536180496, 0.004203466698527336, 0.15632648766040802, 0.20380988717079163, -0.0963018611073494, -0.14367207884788513, 0.12506675720214844, 0.23837199807167053, -0.10818301141262054, -0.04342149198055267, -0.000036519020795822144, 0.3469852805137634, 0.1695786416530609, 0.08500698208808899, 0.1917707771062851, 0.09783995151519775, 0.051331911236047745, 0.21680065989494324, 0.24415042996406555, -0.0491970032453537, 0.04927147179841995, 0.21340517699718475, -0.24368953704833984, -0.0475991889834404, 0.17664988338947296, 0.11953955888748169, -0.14370596408843994, 0.30661457777023315, 0.1922549307346344, -0.07949090749025345, -0.4115465581417084, 0.17000076174736023, 0.4091199040412903, -0.03981102257966995, -0.3814210891723633, -0.2852917015552521, -0.3907470703125, 0.22809642553329468, -0.5098487734794617, 0.03614329546689987, 0.16512122750282288, -0.11532166600227356, 0.09479387104511261, -0.2568562924861908, -0.39151594042778015, -0.22160735726356506, -0.06956887245178223, -0.27675753831863403, 0.06751492619514465, -0.21888959407806396, -0.09888806194067001, -0.0032572485506534576, -0.09550559520721436, -0.37004145979881287, 0.012171107344329357, -0.04981706663966179, 0.19204522669315338, -0.10572776198387146, -0.3005862832069397, -0.09351060539484024, -0.3335508406162262, 0.2913611829280853, -0.49245989322662354, -0.20839275419712067, -0.40833333134651184, -0.17433027923107147, -0.36485472321510315, 0.407027930021286, 0.49134305119514465, -0.40736696124076843, 0.158803328871727, 0.15240947902202606, 0.03694413974881172, -0.16341577470302582, -0.08123474568128586, -0.15959984064102173, 0.1207202821969986, 0.01614271104335785, -0.37205812335014343, 0.06394898891448975, -0.24560847878456116, -0.1266845464706421, 0.3839031755924225, -0.35109102725982666, 0.23774100840091705, 0.05505077540874481, 0.3134864270687103, -0.06506431847810745, 0.16138261556625366, 0.03475718945264816, 0.04110604524612427, -0.4139356017112732, -0.049407269805669785, -0.07163222879171371, 0.05958404392004013, -0.16052848100662231, 0.19141171872615814, -0.01871052384376526, 0.10060647130012512, 0.044896386563777924, -0.02848922833800316, 0.3421199321746826, -0.07398436963558197, 0.07217194139957428, -0.2557466924190521, 0.10209773480892181, 0.17472003400325775, -0.1739894300699234, 0.4763534367084503, 0.011204035952687263, 0.010973647236824036, -0.012226417660713196, 0.031818438321352005, -0.161182701587677, -0.5222704410552979, -0.09531177580356598, 0.12089678645133972, -0.013668105006217957, 0.2884064316749573, -0.04817027598619461, 0.3760945796966553, 0.39581698179244995, 0.002284139394760132, -0.02702329307794571, -0.21761609613895416, -0.18829560279846191, -0.0019312063232064247, 0.40341493487358093, 0.3783379793167114, -0.5633427500724792, -0.15488439798355103, -0.2199617326259613, 0.2848357558250427, 0.36995649337768555, 0.6364399194717407, -0.04722590371966362, 0.5527013540267944, -0.24902915954589844, 0.21005938947200775, -0.3150477111339569, 0.2535915672779083, -0.41380226612091064, 0.34805119037628174, -0.1281874179840088, -0.072096087038517, 0.037930965423583984, -0.09203550964593887, 0.24727323651313782, 0.025331096723675728, 0.4554363489151001, 0.04244294762611389, -0.18594828248023987, 0.04855045676231384, -0.3573649525642395, -0.37546205520629883, -0.2417561262845993, 0.027665667235851288, 0.1375678926706314, -0.14340847730636597, -0.29869672656059265, 0.5591664910316467, 0.12244096398353577, -0.12350545823574066, 0.17123988270759583, 0.30222809314727783, 0.15040476620197296, -0.045757487416267395, 0.034705717116594315, -0.02409333921968937, -0.10813801735639572, -0.0064384303987026215, -0.22654560208320618, 0.2554837465286255, 0.07551254332065582, -0.3105175495147705, -0.0878991112112999, -0.00965175312012434, 0.10225999355316162, -0.19118793308734894, 0.016962263733148575, -0.22157368063926697, -0.13107651472091675, 0.08137433230876923, -0.08264674246311188, -0.12175367027521133, -0.11199018359184265, 0.09574025869369507, -0.40776070952415466, -0.06689096987247467, -0.03756625950336456, -0.15568222105503082, -0.04472442716360092, 0.33140847086906433, -0.10876903682947159, 0.022935256361961365, -0.09088157117366791, 0.2122025191783905, 0.05968943610787392, 0.08225122839212418, -0.08399457484483719, 0.23291870951652527, 0.2856229543685913, 0.1345304250717163, 0.10351786017417908, 0.1799340397119522, 0.06480855494737625, -0.08361205458641052, -0.06585628539323807, 0.23750048875808716, 0.23147255182266235, 0.11277125775814056, 0.25467532873153687, -0.20774030685424805, -0.051037758588790894, 0.12238866090774536, -0.03031901642680168, -0.26494300365448, 0.2836707532405853, 0.049578942358493805, 0.25899723172187805, 0.15139076113700867, -0.19058577716350555, -0.04249540716409683, 0.2515277564525604, -0.16787712275981903, 0.02478945627808571, 0.37357333302497864, -0.36900031566619873, -0.07845902442932129, -0.05794929713010788, -0.23197361826896667, 0.29782015085220337, 0.08521624654531479, 0.13627661764621735, 0.12015265226364136, 0.09701120108366013, -0.09164798259735107, 0.15547192096710205, 0.2827511429786682, -0.13166841864585876, 0.1620890349149704, 0.22255070507526398, 0.0028682826086878777, -0.2590217590332031, 0.029704157263040543, -0.2065397948026657, 0.3683236539363861, -0.3679232895374298, 0.29502660036087036, 0.056673601269721985, 0.04821089655160904, -0.37584012746810913, -0.2766401171684265, -0.2192476987838745, 0.005714822560548782, 0.20627707242965698, -0.16684572398662567, -0.11793182790279388, -0.09319274872541428, 0.38344165682792664, 0.2632869482040405, 0.15438561141490936, 0.32532352209091187, 0.03473158925771713, 0.09007976949214935, -0.3657520115375519, -0.005399549379944801, 0.1525135189294815, -0.1867828667163849, 0.11739114671945572, 0.1443028301000595, -0.2773665189743042, -0.05153529345989227, -0.30021512508392334, 0.18422426283359528, -0.1805003583431244, 0.2566882371902466, 0.22567839920520782, 0.15754035115242004, -0.42161238193511963, 0.034479688853025436, 0.03245288133621216, -0.024877652525901794, -0.12833337485790253, -0.05363941937685013, -0.14091284573078156, 0.15736210346221924, -0.07453523576259613, -0.2841406762599945, -0.14794641733169556, -0.051750168204307556, 0.36194610595703125, -0.026467204093933105, -0.02969127893447876, 0.1829233467578888, 0.16236799955368042, 0.09227833151817322, 0.015093211084604263, -0.21459709107875824, 0.025105886161327362, -0.14104145765304565, 0.1920466423034668, 0.013445772230625153, -0.18893064558506012, -0.3331332206726074, -0.016880298033356667, 0.0008042119443416595, -0.15680107474327087, -0.5277715921401978, 0.053935106843709946, -0.43436622619628906, -0.29760661721229553, -0.2196911871433258, 0.3476227819919586, 0.08654030412435532, -0.08606915175914764, 0.046407051384449005, 0.12699902057647705, 0.1192760020494461, -0.07789751142263412, -0.22581782937049866, 0.21652087569236755, -0.43359559774398804, 0.4292580783367157, -0.03455197811126709, 0.8483141660690308, 0.22673021256923676, -0.05506523326039314, 0.010446492582559586, -0.020999347791075706, 0.39379021525382996, -0.47362324595451355, -0.21246619522571564, 0.32886141538619995, -0.12320965528488159, -0.3801845908164978, 0.28005725145339966, 0.12273119390010834, 0.45079275965690613, 0.17596444487571716, 0.04817936196923256, 0.2780032753944397, -0.3748354911804199, 0.3768453001976013, 0.13538339734077454, 0.19445648789405823, 0.006274484097957611, 0.0723598524928093, 0.04276891425251961, -0.3326546549797058, 0.07351267337799072, -0.023174822330474854, 0.16629678010940552, -0.009678171016275883, 0.03377579525113106, -0.2803366780281067, -0.7721145153045654, -0.012238636612892151, 0.08970620483160019, 0.09981304407119751, 0.17311790585517883, -0.14087557792663574, 0.16403520107269287, 0.03090236522257328, 0.8085676431655884, 0.3027651607990265, -0.19471314549446106, -0.02752315253019333, -0.06874079257249832, -0.17786255478858948, 0.0168134942650795, -0.3545094430446625, -0.035879384726285934, 0.5801975727081299, 0.6342157125473022, -0.36626124382019043, -0.049497779458761215, 0.11199506372213364, 0.3816511631011963, -0.11014330387115479, 0.039192114025354385, -0.3996424376964569, -0.019507037475705147, -0.2422991245985031, 0.21025267243385315, 0.07610929012298584, 0.07976020127534866, -0.11548639833927155, -0.08313894271850586, 0.10094141960144043, -0.12104358524084091, 0.3523440361022949, 0.2720107436180115, 0.3041646182537079, -0.2905326187610626, 0.3746730089187622, -0.04268736392259598, 0.11385690420866013, 0.38927459716796875, 0.18023733794689178, -0.16902071237564087, -0.3310915231704712, 0.2556261122226715, -0.06774706393480301, 0.33502647280693054, 0.5346245765686035, -0.016122493892908096, 0.21186870336532593, 0.07860754430294037, 0.4518141746520996, -0.41366487741470337, 0.5587214231491089, 0.49527278542518616, -0.040275197476148605, -0.5326899886131287, -0.16209378838539124, 0.33843541145324707, 0.07385203242301941, 0.1286017745733261, 0.19667470455169678, 0.26280850172042847, -0.30214399099349976, 0.3217560052871704, -0.04300617426633835, 1.1316548585891724, -0.27810102701187134, 0.593957781791687, 0.06346255540847778, 0.26034003496170044, 0.6253474354743958, -0.32046788930892944, 0.1985352486371994, -0.3777291774749756, -0.11131488531827927, 0.16107237339019775, 0.08449292182922363, -0.1474877893924713, 0.06473743915557861, -0.16991765797138214, 0.19658106565475464, -0.10714509338140488, 0.26277264952659607, -0.24707691371440887, 0.3641863167285919, 0.03575883060693741, -0.3776300251483917, -0.26143258810043335, -0.03298552706837654, 0.000642433762550354, 0.028985049575567245, -0.17432308197021484, 0.08738525211811066, 0.062100742012262344, -0.2995588183403015, -0.27480149269104004, -0.19611018896102905, -0.08265366405248642, -0.01171102374792099, 0.20529009401798248, -0.33774346113204956, 0.2742098271846771, -0.06745587289333344, 0.2621939778327942, 0.6511213779449463, -0.20989038050174713, 0.09593768417835236, -0.19487890601158142, 0.06248220056295395, -0.020391279831528664, -0.08507271111011505, 0.002480721101164818, 0.07703670114278793, 0.05032529681921005, 0.003278791904449463, -0.01203241664916277, 0.290637731552124, -0.39919936656951904, -0.17370213568210602, 0.5477042198181152, -0.4731482267379761, 0.05589533969759941, -0.09999758005142212, -0.04652557522058487, -0.1736384779214859, 0.026104196906089783, 0.14464348554611206, -0.28540927171707153, 0.036547329276800156, 0.03923305124044418, -0.37620508670806885, -0.23543138802051544, 0.22426190972328186, 0.217813640832901, 0.033670999109745026, 0.6945819854736328, 0.307714581489563, -0.029619334265589714, -0.07772988080978394, 0.3860267698764801, 0.5473819375038147, -0.43388429284095764, 0.3099583387374878, 0.18258634209632874, -0.044123150408267975, 0.05022623389959335, 0.20611289143562317, 0.2624818682670593, -0.30007049441337585, -0.1796596646308899, -0.07247057557106018, -0.41859006881713867, 0.06418544799089432, -0.043760765343904495, 0.14171527326107025, 0.19785350561141968, 0.4324563145637512, -0.10585018247365952, 0.18310175836086273, -0.15128694474697113, 0.09846647828817368, -0.048773933202028275, 0.09889941662549973, -0.2720244824886322, -0.06358836591243744, 0.15789790451526642, -0.11146223545074463, -0.056609250605106354, 0.25503331422805786, 0.004463091492652893, -0.10425490140914917, -0.2301461100578308, 0.16267898678779602, 0.03168804198503494, -0.03729204088449478, 0.14045989513397217, 0.1088927835226059, -0.1670829802751541, -0.2456863522529602, 0.3883175253868103, 0.1442987620830536, 0.13131414353847504, -0.22012034058570862, 0.13693867623806, -0.07150008529424667, -0.09515953809022903, -0.03186250478029251, 0.20921385288238525, 0.2916561961174011, 0.11461975425481796, 0.15344220399856567, 0.2614182233810425, -0.07020331174135208, -0.01236644946038723, 0.22075986862182617, 0.22435612976551056, 0.07912461459636688, 0.06227336823940277, -0.1821436882019043, -0.1318071335554123, -0.01427536178380251, 0.270762175321579, 0.48819324374198914, -0.25871628522872925, -0.22578051686286926, 0.5012185573577881, 0.1117134764790535, -0.02460242062807083, -0.09118340909481049, -0.11671614646911621, -0.20402365922927856, -0.12402285635471344, 0.31775200366973877, -0.020763643085956573, 0.035247839987277985, -0.11541707813739777, 0.1799299716949463, -0.08691941946744919, 0.1717032939195633, -0.05115269497036934, 0.543449878692627, -0.040445584803819656, 0.0851743221282959, 0.18273049592971802, 0.022499214857816696, 0.28413888812065125, 0.6910936832427979, 0.18078085780143738, 0.15452143549919128, -0.35040590167045593, 0.12105400860309601, -0.19194015860557556, -0.5043104887008667, -0.4453708827495575, 0.13663215935230255, -0.08864198625087738, 0.280123233795166, -0.14453068375587463, 0.5805773735046387, -0.10936517268419266, -0.2709636688232422, -0.11861468851566315, 0.008828915655612946, -0.25982341170310974, -0.11745825409889221, 0.19252927601337433, -0.15761691331863403, 0.13528336584568024, 0.26443126797676086, -0.09904205799102783, 0.04622795805335045, -0.09537743031978607, 0.05629029870033264, -0.09683379530906677, -0.028759678825736046, -0.20808932185173035, 0.17802435159683228, 0.12505537271499634, -0.24289719760417938, 0.20513540506362915, -0.07109645009040833, 0.052545174956321716, -0.2004515528678894, 0.3062065839767456, 0.4847804009914398, 0.4154980778694153, -0.2384960949420929, 0.19547541439533234, 0.1275561898946762, 0.06699153780937195, -0.06420549005270004, 0.113627128303051, 0.3247194290161133, 0.10532104969024658, 0.034053459763526917, -0.04335760325193405, -0.14348788559436798, -0.1536736935377121, 0.20623891055583954, 0.07566775381565094, -0.16363070905208588, 0.19700971245765686, -0.10184526443481445, -0.14985746145248413, -0.2699942886829376, 0.026094630360603333, -0.7529439926147461, 0.5340988636016846, 0.4614875018596649, -0.06101115792989731, 0.12806278467178345, -0.08698240667581558, 0.003448551520705223, -0.11105774343013763, 0.47452864050865173, 0.4845038652420044, -0.0024140849709510803, -0.4102848470211029, -0.040722448378801346, -0.30338048934936523, 0.29303619265556335, -0.36885741353034973, 0.2744469940662384, -0.17348307371139526, -0.08225991576910019, 0.05684363469481468, -0.11731559038162231, -0.09123542904853821, -0.19002048671245575, -0.7031130790710449, 0.1316700428724289, -0.155922070145607, -0.19537042081356049, -0.23844163119792938, 0.03132358938455582, -0.056542880833148956, -0.2429545819759369, 0.43892157077789307, 0.03335979953408241, -0.12271974235773087, -0.005575316026806831, 0.23590070009231567, -0.2267875224351883, 0.10968572646379471, 0.24169501662254333, 0.2818455994129181, 0.029361583292484283, 0.05563241243362427, -0.19805891811847687, -0.2926271855831146, 0.09762287139892578, -0.11604106426239014, 0.12692251801490784, 0.24777300655841827, 0.28430047631263733, -0.2559836506843567, -0.28099265694618225, -0.43146613240242004, 0.1640499085187912, 0.3631737232208252, -0.1304231584072113, -0.2610962688922882, 0.12254559248685837, -0.10379795730113983, -0.01572723686695099, 0.0005371524021029472, 0.516520619392395, -0.10232062637805939, -0.0567014217376709, -0.36439400911331177, -0.2662370800971985, 0.49034133553504944, -0.32958105206489563, -0.4211166203022003, -0.23799197375774384, 0.05147886276245117, 0.3020358383655548, -0.2552240490913391, -0.7636174559593201, 0.08470474928617477, 0.1540558785200119, 0.014821871183812618, -0.5005553364753723, 0.1322123110294342, -0.05908175930380821, -0.15006056427955627, -0.20532841980457306, 0.6773771047592163, 0.07866935431957245, -0.20401149988174438, 0.3991594910621643, -0.25190773606300354 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
> Hey guys, > > I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. > > I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? > > I've used the following CMD: > `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` It's actually because of the parameter 'preprocessing_num_worker' when using TPU. I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ). So I think that's maybe where the problem came from. Is there any possibility that all of the cores share the same preprocess dataset? @sgugger @RammMaschine
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
273
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` > Hey guys, > > I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. > > I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? > > I've used the following CMD: > `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` It's actually because of the parameter 'preprocessing_num_worker' when using TPU. I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ). So I think that's maybe where the problem came from. Is there any possibility that all of the cores share the same preprocess dataset? @sgugger @RammMaschine
[ -0.12765134871006012, -0.42183685302734375, 0.10686734318733215, 0.29435792565345764, 0.6427581310272217, -0.1283719539642334, 0.3398813307285309, 0.4012148976325989, -0.2470449060201645, 0.15496280789375305, -0.03813444823026657, -0.12182974070310593, -0.29877135157585144, 0.27047720551490784, 0.14445669949054718, -0.08485892415046692, 0.08005914092063904, 0.15673495829105377, -0.043232232332229614, -0.3624182343482971, 0.01780109852552414, 0.011926618404686451, 0.26498502492904663, 0.24879494309425354, -0.5399370193481445, 0.1164369136095047, -0.08904089778661728, 0.08788757026195526, -0.477892130613327, -0.04612014442682266, 0.038847632706165314, -0.37018632888793945, 0.16013874113559723, 0.5560235381126404, -0.00012619771587196738, -0.05793139338493347, 0.19799986481666565, -0.10434254258871078, 0.043037887662649155, 0.1906145066022873, 0.040132999420166016, 0.01644805073738098, -0.15229305624961853, 0.11741798371076584, 0.16336995363235474, -0.07498010247945786, -0.05051440745592117, -0.03680197149515152, 0.3213074803352356, 0.2368452250957489, 0.08800908923149109, 0.01911623775959015, 0.05100780352950096, 0.052715715020895004, 0.244349867105484, 0.2661501169204712, -0.03266434371471405, 0.041011471301317215, 0.11234323680400848, -0.05852128565311432, 0.03811485692858696, 0.16591085493564606, 0.17895491421222687, -0.07142682373523712, 0.3485540449619293, 0.2815021872520447, -0.06265939027070999, -0.43815332651138306, 0.17571094632148743, 0.4649783968925476, -0.03414563089609146, -0.3490569591522217, -0.33146926760673523, -0.3132908046245575, 0.2559036910533905, -0.5074096322059631, 0.0019551217555999756, 0.33795884251594543, -0.0914493054151535, 0.078647181391716, -0.2632102966308594, -0.43742501735687256, -0.2496212124824524, -0.11104722321033478, -0.22812367975711823, -0.01597597450017929, -0.233890101313591, -0.09319557994604111, -0.03966810926795006, -0.0589146688580513, -0.4165319502353668, -0.07057106494903564, -0.08168502151966095, 0.22012174129486084, -0.03197183087468147, -0.26546740531921387, -0.10904946178197861, -0.22945013642311096, 0.24098840355873108, -0.5617984533309937, -0.07861269265413284, -0.45660465955734253, -0.2560957074165344, -0.34591200947761536, 0.35465705394744873, 0.4483872950077057, -0.457966148853302, 0.18585897982120514, 0.14453521370887756, 0.08264641463756561, -0.21176664531230927, -0.0605408176779747, -0.1389768272638321, 0.12248500436544418, 0.010262914001941681, -0.46551722288131714, 0.059199780225753784, -0.29680225253105164, -0.1397831290960312, 0.32308655977249146, -0.35380861163139343, 0.2023715227842331, 0.04999518394470215, 0.34388068318367004, -0.10232625156641006, 0.041926074773073196, 0.051512449979782104, 0.08876794576644897, -0.4091443717479706, -0.015163368545472622, -0.11641650646924973, 0.11811622977256775, -0.1676016002893448, 0.2057824581861496, -0.05782631039619446, -0.004961434751749039, 0.04983137547969818, 0.008466319181025028, 0.25334882736206055, -0.04281251132488251, 0.0828230157494545, -0.24643008410930634, 0.2176024466753006, 0.15047746896743774, -0.16833233833312988, 0.4425066411495209, -0.038049932569265366, 0.12250173091888428, -0.0019260123372077942, 0.12407147884368896, -0.20612406730651855, -0.46670717000961304, -0.08318816870450974, 0.11856330931186676, -0.055381543934345245, 0.2808889150619507, -0.03173264116048813, 0.31544965505599976, 0.45043087005615234, -0.00023762136697769165, 0.017098329961299896, -0.17765069007873535, -0.23505674302577972, -0.0263189859688282, 0.3950234353542328, 0.32666850090026855, -0.5285285115242004, -0.14838865399360657, -0.2407326102256775, 0.27789539098739624, 0.4014597535133362, 0.6155526041984558, -0.0071395752020180225, 0.5933489203453064, -0.2661557197570801, 0.1274462342262268, -0.3081246614456177, 0.27419722080230713, -0.3772042691707611, 0.37440794706344604, -0.09028111398220062, -0.09579282999038696, 0.08434902131557465, -0.047015342861413956, 0.07162578403949738, 0.07653530687093735, 0.39449024200439453, 0.001077212393283844, -0.14265823364257812, -0.005901968106627464, -0.3934575021266937, -0.37250345945358276, -0.32022762298583984, -0.029391610994935036, 0.12249688804149628, -0.05891328305006027, -0.2856299579143524, 0.5653205513954163, 0.15823118388652802, -0.13085080683231354, 0.19142189621925354, 0.2992985248565674, 0.1277526319026947, -0.08982822299003601, -0.005090690683573484, 0.029559340327978134, -0.08247127383947372, 0.03318730741739273, -0.417471706867218, 0.19057400524616241, 0.12402188777923584, -0.25310590863227844, -0.044730715453624725, -0.0687905102968216, 0.028263714164495468, -0.2317643165588379, -0.019276052713394165, -0.15465448796749115, -0.04460102319717407, 0.015429943799972534, -0.024827616289258003, -0.12528975307941437, -0.07365356385707855, 0.01064726710319519, -0.5096873641014099, -0.02417658269405365, 0.000280577689409256, -0.16509151458740234, -0.03974468261003494, 0.3676857650279999, -0.14054706692695618, 0.05624880641698837, -0.08055337518453598, 0.13065025210380554, 0.12841679155826569, 0.07485900074243546, -0.06344765424728394, 0.14557456970214844, 0.303992360830307, 0.12245418131351471, 0.1135459616780281, 0.22187165915966034, 0.11840358376502991, -0.07869241386651993, -0.19110426306724548, 0.20721745491027832, 0.24887020885944366, 0.08002456277608871, 0.2820250988006592, -0.22144894301891327, -0.08948362618684769, 0.09871535003185272, -0.053289398550987244, -0.29985761642456055, 0.251792848110199, 0.12368345260620117, 0.2842860519886017, 0.1805293709039688, -0.18565449118614197, -0.13701921701431274, 0.3239436745643616, -0.19516786932945251, -0.03961461782455444, 0.424570232629776, -0.30881237983703613, -0.07585947215557098, -0.08753315359354019, -0.2740563750267029, 0.31538569927215576, 0.11011487990617752, 0.13389699161052704, 0.11876758188009262, 0.138858363032341, -0.09747009724378586, 0.13220976293087006, 0.2498321682214737, -0.12623795866966248, 0.1747722625732422, 0.23923806846141815, -0.07983451336622238, -0.17433896660804749, 0.12911787629127502, -0.1983766406774521, 0.3336583971977234, -0.4030175507068634, 0.31301385164260864, 0.12049877643585205, 0.1127064898610115, -0.4343591034412384, -0.2917586863040924, -0.15307146310806274, 0.03251372277736664, 0.1591103971004486, -0.2382531762123108, -0.07506228983402252, -0.13524936139583588, 0.34651681780815125, 0.19349032640457153, 0.1789177656173706, 0.26438000798225403, 0.05685541778802872, 0.160431370139122, -0.3675190806388855, 0.014615301042795181, 0.12297680974006653, -0.12049250304698944, 0.10667772591114044, 0.09525752067565918, -0.2957555055618286, -0.03500001132488251, -0.2590642273426056, 0.19338922202587128, -0.2113824337720871, 0.29097867012023926, 0.1516249030828476, 0.11462084949016571, -0.36817872524261475, 0.06806338578462601, 0.08829901367425919, -0.032285645604133606, -0.14985765516757965, -0.04419383406639099, -0.14867454767227173, 0.22811034321784973, -0.08747240900993347, -0.3000982999801636, -0.09413745999336243, -0.03129049763083458, 0.41484761238098145, 0.08378422260284424, -0.010026991367340088, 0.21772393584251404, 0.1786600947380066, 0.12722648680210114, 0.01977343112230301, -0.1597076654434204, -0.0354674831032753, -0.19113999605178833, 0.19124823808670044, -0.014475498348474503, -0.2573115825653076, -0.3347420394420624, -0.11446027457714081, 0.10400790721178055, -0.20104831457138062, -0.5380890965461731, 0.03518461808562279, -0.47932368516921997, -0.2589475214481354, -0.21663016080856323, 0.3814694583415985, 0.03449312597513199, -0.16141898930072784, 0.04667629301548004, 0.0747114047408104, 0.1408395767211914, -0.005468882620334625, -0.23776134848594666, 0.20273004472255707, -0.4108915328979492, 0.3287275433540344, -0.18221060931682587, 0.8339406251907349, 0.34651240706443787, -0.05551081523299217, -0.06442713737487793, -0.08094913512468338, 0.40206435322761536, -0.4588724672794342, -0.16531714797019958, 0.30643078684806824, -0.12174224853515625, -0.3759500980377197, 0.29502636194229126, 0.15795952081680298, 0.49085691571235657, 0.16500625014305115, 0.11033377051353455, 0.24989619851112366, -0.32438352704048157, 0.3450455963611603, 0.11858637630939484, 0.1294509470462799, -0.008999994024634361, 0.07198549062013626, 0.047803301364183426, -0.3362255394458771, 0.054372359067201614, -0.047670260071754456, 0.23885652422904968, 0.0033360859379172325, 0.15451036393642426, -0.33031925559043884, -0.6893529891967773, -0.019804343581199646, 0.13923126459121704, -0.024852357804775238, 0.14534880220890045, -0.13204923272132874, 0.21013522148132324, 0.05166347697377205, 0.7545104622840881, 0.24754196405410767, -0.09894223511219025, 0.023929741233587265, -0.05054497346282005, -0.14982247352600098, 0.012249831110239029, -0.3787526786327362, -0.027988892048597336, 0.5659729838371277, 0.5356940031051636, -0.31869685649871826, -0.002276821993291378, 0.16696763038635254, 0.36245304346084595, -0.1111404150724411, -0.0095176687464118, -0.4973679184913635, -0.027031777426600456, -0.18537506461143494, 0.1172206699848175, 0.05611526221036911, 0.05750862881541252, -0.17319649457931519, -0.14514076709747314, 0.08876587450504303, -0.06957617402076721, 0.3130292296409607, 0.20919093489646912, 0.3291224241256714, -0.22852951288223267, 0.38006818294525146, -0.017979763448238373, 0.12455883622169495, 0.3865334093570709, 0.3226422667503357, -0.18847666680812836, -0.2584010362625122, 0.19593489170074463, -0.2028002142906189, 0.32529884576797485, 0.47459086775779724, -0.018388420343399048, 0.14065249264240265, 0.17058682441711426, 0.4246019721031189, -0.3947393596172333, 0.4877219796180725, 0.5528477430343628, -0.05661657080054283, -0.5213482975959778, -0.27789396047592163, 0.4880213141441345, 0.10943582653999329, 0.13180063664913177, 0.250779926776886, 0.21391309797763824, -0.2760676443576813, 0.2151191234588623, -0.06300947815179825, 1.057248830795288, -0.19799108803272247, 0.5809544920921326, 0.13326093554496765, 0.24431534111499786, 0.5600247383117676, -0.16340866684913635, 0.1860704869031906, -0.3717602491378784, -0.06836623698472977, 0.1798359900712967, 0.02339981123805046, -0.15145328640937805, 0.07235501706600189, -0.2003835290670395, 0.1706082820892334, -0.17337670922279358, 0.2452857941389084, -0.2034243643283844, 0.3449353575706482, 0.10532564669847488, -0.29194170236587524, -0.28845590353012085, -0.055659085512161255, 0.039977990090847015, 0.07363487035036087, -0.1359114646911621, 0.010236049070954323, -0.045181822031736374, -0.2965846061706543, -0.2285732924938202, -0.1514570415019989, -0.06160668656229973, -0.01802295446395874, 0.1356380134820938, -0.41556042432785034, 0.28528308868408203, -0.006104726344347, 0.20187650620937347, 0.6037309765815735, -0.25524309277534485, 0.08157061785459518, -0.16471055150032043, 0.055499982088804245, -0.06094759702682495, -0.06295884400606155, 0.018357645720243454, 0.03955352306365967, -0.011247016489505768, 0.008124586194753647, -0.031151238828897476, 0.33030885457992554, -0.3478432595729828, -0.14184871315956116, 0.46472716331481934, -0.49788209795951843, -0.00722234882414341, -0.08025744557380676, -0.11551178991794586, -0.12495653331279755, 0.01960493065416813, 0.1544743925333023, -0.31144917011260986, 0.0475618802011013, 0.11618542671203613, -0.46667757630348206, -0.2527616322040558, 0.2053712159395218, 0.3127789795398712, 0.11112701892852783, 0.7269273996353149, 0.23975999653339386, -0.0011833123862743378, -0.06012348830699921, 0.3727792203426361, 0.543868362903595, -0.43714362382888794, 0.31849685311317444, 0.26219579577445984, 0.048870205879211426, 0.02911069057881832, 0.16723312437534332, 0.20235474407672882, -0.23200857639312744, -0.19165323674678802, -0.011576466262340546, -0.3460533320903778, 0.028032977133989334, -0.07239660620689392, 0.15604126453399658, 0.11692479997873306, 0.43595045804977417, 0.03574363887310028, 0.1918996274471283, -0.14148442447185516, 0.07000522315502167, -0.004681635648012161, 0.021400995552539825, -0.23107650876045227, -0.002691660076379776, 0.1514332890510559, -0.08144330978393555, -0.06478787958621979, 0.16670238971710205, 0.002032307907938957, -0.09801852703094482, -0.2285376787185669, 0.15361417829990387, 0.03983720391988754, -0.03858105093240738, 0.16803637146949768, 0.14964157342910767, -0.1911124587059021, -0.20046274363994598, 0.39766591787338257, 0.14277660846710205, 0.16909217834472656, -0.14834892749786377, 0.1470242738723755, -0.11660280078649521, -0.09888048470020294, -0.05954567342996597, 0.18671396374702454, 0.31831926107406616, 0.061132293194532394, 0.13013410568237305, 0.30523884296417236, -0.07367116957902908, -0.027299342676997185, 0.12900497019290924, 0.13684722781181335, 0.11285624653100967, 0.05383392423391342, -0.25439226627349854, -0.004886064678430557, -0.03556506335735321, 0.2974042296409607, 0.4269481897354126, -0.23302939534187317, -0.14788588881492615, 0.36773812770843506, 0.09279369562864304, -0.07726475596427917, -0.0211793202906847, -0.18285033106803894, -0.2182418256998062, -0.12030531466007233, 0.32246652245521545, -0.04300256446003914, 0.07321247458457947, -0.19276176393032074, 0.12278831750154495, -0.1977941244840622, 0.1827685534954071, -0.010510160587728024, 0.6458748579025269, -0.025440063327550888, 0.12013852596282959, 0.24805811047554016, 0.08986221253871918, 0.21716725826263428, 0.6840230226516724, 0.21063023805618286, 0.1559528410434723, -0.4127490818500519, 0.04597755894064903, -0.14763924479484558, -0.5137034058570862, -0.4766753315925598, 0.180759996175766, -0.13855759799480438, 0.25104501843452454, -0.14363183081150055, 0.5851089358329773, -0.09250274300575256, -0.22861389815807343, -0.15870924293994904, -0.02250267192721367, -0.22477945685386658, -0.12098538875579834, 0.19576050341129303, -0.17298448085784912, 0.17100442945957184, 0.2518327832221985, -0.08500149846076965, 0.10183746367692947, -0.015003368258476257, 0.0656476840376854, -0.0919596254825592, 0.062072381377220154, -0.12430139631032944, 0.15268170833587646, 0.09159351140260696, -0.2555818557739258, 0.20834513008594513, -0.03742469847202301, 0.062365733087062836, -0.1423092931509018, 0.3047383725643158, 0.5044112801551819, 0.40202727913856506, -0.1960878223180771, 0.19831494987010956, 0.12141723930835724, 0.032037511467933655, -0.07649630308151245, 0.16601422429084778, 0.34224626421928406, 0.030787942931056023, 0.05747169628739357, -0.03577359765768051, -0.13747760653495789, -0.01074155792593956, 0.20754162967205048, 0.15935413539409637, -0.20303772389888763, 0.30926913022994995, -0.1445062756538391, -0.1366320252418518, -0.3324797451496124, 0.027776964008808136, -0.7808369994163513, 0.6018414497375488, 0.3939930498600006, -0.03829390928149223, 0.07517039775848389, -0.057583779096603394, -0.005817478522658348, -0.17737898230552673, 0.5535485744476318, 0.4052789509296417, 0.052797891199588776, -0.40221402049064636, 0.0409855991601944, -0.2695581614971161, 0.2878919541835785, -0.4112739861011505, 0.2815776467323303, -0.24197295308113098, -0.01981041021645069, -0.00625184178352356, -0.1268976330757141, -0.03191019594669342, -0.27954837679862976, -0.7357229590415955, 0.13752195239067078, -0.11831474304199219, -0.24833543598651886, -0.2567409873008728, 0.08276019245386124, -0.06333062052726746, -0.26464101672172546, 0.39992204308509827, -0.038402147591114044, -0.11065150797367096, 0.031981211155653, 0.17884714901447296, -0.23643885552883148, 0.17929963767528534, 0.2317095249891281, 0.31243211030960083, 0.13296854496002197, -0.010536348447203636, -0.22968095541000366, -0.29056257009506226, 0.09333277493715286, -0.11130180209875107, 0.1991884708404541, 0.23459389805793762, 0.3189929127693176, -0.21726934611797333, -0.33258378505706787, -0.42544353008270264, 0.23879197239875793, 0.3529765009880066, -0.14538699388504028, -0.21797612309455872, 0.09195388853549957, -0.07556256651878357, -0.07706120610237122, 0.045381005853414536, 0.4668252766132355, -0.17069682478904724, -0.10043194890022278, -0.32696154713630676, -0.25579267740249634, 0.5335487127304077, -0.3489525616168976, -0.3766443431377411, -0.2509147822856903, 0.06261567771434784, 0.22685587406158447, -0.3144398033618927, -0.7230033874511719, 0.19282561540603638, 0.20914997160434723, -0.030504338443279266, -0.4149523973464966, 0.09812870621681213, -0.11217853426933289, -0.1236163079738617, -0.19593939185142517, 0.6790006160736084, 0.05300649255514145, -0.2023356556892395, 0.3828851878643036, -0.27437010407447815 ]
https://github.com/huggingface/datasets/issues/861
Possible Bug: Small training/dataset file creates gigantic output
Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
34
Possible Bug: Small training/dataset file creates gigantic output Hey guys, I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely. I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug? I've used the following CMD: `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug` Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5. Feel free to update your Datasets version ```shell pip install -U datasets ``` and see if it better suits your needs.
[ -0.23383374512195587, -0.36427193880081177, 0.10987389087677002, 0.32716691493988037, 0.5802890658378601, -0.12271161377429962, 0.2948497533798218, 0.40527772903442383, -0.1822131723165512, 0.17751652002334595, -0.048290930688381195, -0.12470787018537521, -0.3384365141391754, 0.22990335524082184, 0.09760401397943497, -0.06416907161474228, 0.12377583235502243, 0.1533719003200531, -0.10449342429637909, -0.23815859854221344, 0.01907559484243393, 0.0444057434797287, 0.240727499127388, 0.24856573343276978, -0.5509333610534668, 0.09611359983682632, -0.05304454267024994, 0.06571179628372192, -0.46004518866539, -0.06493484973907471, 0.09303618222475052, -0.3468027114868164, 0.21847787499427795, 0.5662025809288025, -0.00012736079224850982, -0.04247801750898361, 0.1586664319038391, -0.03712589666247368, -0.03626912087202072, 0.15158867835998535, 0.12113247066736221, -0.05922398716211319, -0.1560094952583313, 0.1039411798119545, 0.2607806324958801, -0.08814094215631485, -0.034813910722732544, -0.06934107840061188, 0.33287012577056885, 0.25467950105667114, 0.08414505422115326, 0.16870684921741486, 0.05308554694056511, 0.0208146832883358, 0.22352075576782227, 0.27789562940597534, -0.039204809814691544, 0.02365783229470253, 0.18847951292991638, -0.19350862503051758, -0.03420852869749069, 0.2210816890001297, 0.11080825328826904, -0.11288037896156311, 0.33156734704971313, 0.19343212246894836, -0.057335518300533295, -0.3944152891635895, 0.24101144075393677, 0.37533560395240784, 0.04061024263501167, -0.40692153573036194, -0.2597792148590088, -0.4071705639362335, 0.2153959721326828, -0.4601972699165344, 0.0786265954375267, 0.1565636843442917, -0.17457805573940277, 0.0869326964020729, -0.2822413146495819, -0.4332433342933655, -0.26240813732147217, -0.0644187331199646, -0.19523482024669647, -0.020499825477600098, -0.2531406879425049, -0.08779998868703842, 0.0316852405667305, -0.05133594572544098, -0.3014715015888214, 0.001802707090973854, -0.013100020587444305, 0.17729982733726501, -0.09295661747455597, -0.2810671329498291, -0.08400822430849075, -0.31322330236434937, 0.2787926495075226, -0.5234859585762024, -0.1843096911907196, -0.4352836608886719, -0.2017563134431839, -0.35466551780700684, 0.4170534014701843, 0.4720199406147003, -0.39601758122444153, 0.17024889588356018, 0.1665721833705902, 0.05489582568407059, -0.15367190539836884, -0.07587319612503052, -0.15475046634674072, 0.07043714076280594, 0.07072226703166962, -0.4381207525730133, 0.12996163964271545, -0.27950921654701233, -0.17100146412849426, 0.38962486386299133, -0.2968328893184662, 0.20341196656227112, 0.0244191475212574, 0.3456146717071533, -0.057138074189424515, 0.1504266858100891, 0.07535737007856369, 0.029503395780920982, -0.4357023239135742, -0.014029501006007195, -0.08743371814489365, 0.06906090676784515, -0.1871558576822281, 0.1723109632730484, -0.004425413906574249, 0.04446500539779663, 0.09751583635807037, -0.030993029475212097, 0.2879880666732788, -0.06148065626621246, 0.06585502624511719, -0.27317875623703003, 0.10983750224113464, 0.19492042064666748, -0.1669238805770874, 0.48971012234687805, -0.0056190043687820435, 0.04675768315792084, 0.004175998270511627, 0.08907175064086914, -0.21380645036697388, -0.5087091326713562, -0.13343723118305206, 0.10733902454376221, -0.02253768965601921, 0.2703319787979126, -0.11418574303388596, 0.3702562749385834, 0.4396837651729584, -0.044038474559783936, -0.0226350799202919, -0.19449444115161896, -0.22295646369457245, -0.012611210346221924, 0.37541747093200684, 0.42369168996810913, -0.557384729385376, -0.13744740188121796, -0.2831023633480072, 0.27604904770851135, 0.31704041361808777, 0.6052902340888977, -0.036657486110925674, 0.5938888192176819, -0.2681001126766205, 0.13695944845676422, -0.2820638418197632, 0.28305599093437195, -0.4317551255226135, 0.3631533086299896, -0.05580204725265503, -0.08128315210342407, 0.06759412586688995, -0.050930626690387726, 0.16017268598079681, 0.04949523136019707, 0.4206697940826416, 0.010538646019995213, -0.19102409482002258, 0.02782939188182354, -0.3491925895214081, -0.3933975100517273, -0.30291318893432617, 0.03914899751543999, 0.2074752300977707, -0.14268004894256592, -0.24288544058799744, 0.5842384696006775, 0.14932319521903992, -0.11760081350803375, 0.14436201751232147, 0.40345853567123413, 0.10615174472332001, -0.04899348318576813, 0.03099026158452034, -0.1546383500099182, -0.15219521522521973, 0.01776035875082016, -0.24668428301811218, 0.18081016838550568, 0.09171172231435776, -0.23610690236091614, -0.09856574982404709, -0.018347345292568207, 0.0784696638584137, -0.18599018454551697, -0.0025020986795425415, -0.1868596374988556, -0.1341235488653183, 0.0562630333006382, -0.05349550396203995, -0.08289018273353577, -0.11116928607225418, 0.055769581347703934, -0.4824645221233368, -0.02163608931005001, -0.04383550584316254, -0.18780680000782013, -0.05888572335243225, 0.30471014976501465, -0.15678152441978455, 0.04964650794863701, -0.10764773190021515, 0.20035117864608765, 0.06552475690841675, 0.09014607220888138, -0.010424863547086716, 0.18493202328681946, 0.26473939418792725, 0.09367552399635315, 0.13310988247394562, 0.19938181340694427, 0.08280175924301147, -0.06784327328205109, -0.14168131351470947, 0.1253068447113037, 0.19425083696842194, 0.13099122047424316, 0.23536865413188934, -0.23874038457870483, -0.0969010591506958, 0.15268191695213318, -0.006746474653482437, -0.2505147457122803, 0.2871018350124359, 0.04823005944490433, 0.25503870844841003, 0.15771318972110748, -0.18244865536689758, -0.09407056123018265, 0.34346362948417664, -0.16660065948963165, 0.05573578178882599, 0.4261437952518463, -0.3578204810619354, -0.09155216068029404, -0.04630754888057709, -0.18885889649391174, 0.37290626764297485, 0.0803319588303566, 0.1341005563735962, 0.10677868872880936, 0.06447135657072067, -0.0672612115740776, 0.14993061125278473, 0.28745126724243164, -0.11757908016443253, 0.1728917360305786, 0.18844901025295258, -0.029574062675237656, -0.2551502287387848, 0.05470236763358116, -0.2172524333000183, 0.3717317581176758, -0.3848314583301544, 0.33060961961746216, 0.09466477483510971, 0.032725878059864044, -0.403164803981781, -0.20521487295627594, -0.17555463314056396, 0.012751854956150055, 0.1642492115497589, -0.15788991749286652, -0.08293114602565765, -0.09995539486408234, 0.3912375867366791, 0.20137612521648407, 0.19629891216754913, 0.31086933612823486, 0.033097364008426666, 0.13830171525478363, -0.3434258699417114, -0.004556283354759216, 0.16630414128303528, -0.16330021619796753, 0.13639037311077118, 0.11262708157300949, -0.26671671867370605, -0.06242606043815613, -0.24029791355133057, 0.12603673338890076, -0.19230405986309052, 0.2783963084220886, 0.21132734417915344, 0.2293054610490799, -0.3828122019767761, 0.0926501601934433, 0.04352344200015068, -0.01965922862291336, -0.1070588007569313, -0.04210992529988289, -0.11869890987873077, 0.13879431784152985, -0.09324413537979126, -0.3279579281806946, -0.12229268997907639, -0.053182221949100494, 0.36853134632110596, -0.00018643587827682495, -0.008169569075107574, 0.23165956139564514, 0.2695367634296417, 0.13289494812488556, 0.01961384154856205, -0.15548773109912872, 0.008382347412407398, -0.18464739620685577, 0.18035894632339478, 0.04609730839729309, -0.1881253570318222, -0.2821447253227234, 0.04195331037044525, -0.0011375658214092255, -0.17772261798381805, -0.5618308782577515, 0.018451135605573654, -0.46126455068588257, -0.2686643600463867, -0.225104421377182, 0.4086786210536957, 0.10598626732826233, -0.05961737409234047, 0.059523820877075195, 0.08672022074460983, 0.07464082539081573, -0.09340377897024155, -0.2141726016998291, 0.22364866733551025, -0.4218254089355469, 0.4128447473049164, -0.03766511008143425, 0.8130555748939514, 0.30642980337142944, -0.06881405413150787, -0.006847865879535675, -0.008248602971434593, 0.45847904682159424, -0.455973356962204, -0.22102782130241394, 0.27778419852256775, -0.14318370819091797, -0.3980739116668701, 0.27017927169799805, 0.1300346404314041, 0.4550912082195282, 0.151555135846138, 0.04780586436390877, 0.2745587229728699, -0.3100077509880066, 0.35273903608322144, 0.11914657801389694, 0.17237886786460876, 0.0011767204850912094, 0.09655383974313736, 0.03634045645594597, -0.29528942704200745, 0.04452041536569595, -0.018202483654022217, 0.16531497240066528, 0.014881863258779049, 0.08541041612625122, -0.3076311945915222, -0.7416733503341675, -0.03371380269527435, 0.06533045321702957, 0.016119694337248802, 0.13235369324684143, -0.08564655482769012, 0.18222951889038086, 0.050086114555597305, 0.7840266823768616, 0.24174606800079346, -0.1469581127166748, -0.06311996281147003, -0.009090699255466461, -0.22430317103862762, 0.05024084076285362, -0.3604033887386322, -0.007772745564579964, 0.5267219543457031, 0.6359657049179077, -0.33792513608932495, -0.04497014731168747, 0.1372143030166626, 0.3818015158176422, -0.10958147794008255, 0.03511853143572807, -0.4170677959918976, -0.07145759463310242, -0.22452935576438904, 0.17310932278633118, 0.08257218450307846, 0.03987814113497734, -0.11766594648361206, -0.1058456301689148, 0.11361659318208694, -0.06077471002936363, 0.3254382610321045, 0.2567201554775238, 0.31784704327583313, -0.30108219385147095, 0.34174245595932007, -0.04628175497055054, 0.12646180391311646, 0.39700692892074585, 0.2715195119380951, -0.2576504051685333, -0.276901513338089, 0.23497724533081055, -0.10838636010885239, 0.30798131227493286, 0.5227627754211426, -0.06462793797254562, 0.1311265081167221, 0.15538151562213898, 0.4302617907524109, -0.4125349223613739, 0.5151004195213318, 0.552708625793457, 0.0177973210811615, -0.4765745997428894, -0.24693605303764343, 0.4360097646713257, 0.10928331315517426, 0.1275288611650467, 0.21052680909633636, 0.2606106400489807, -0.30308210849761963, 0.27011674642562866, -0.09461966902017593, 1.0859618186950684, -0.24211503565311432, 0.5881165862083435, 0.12128197401762009, 0.2371952086687088, 0.5970581769943237, -0.24199151992797852, 0.15632511675357819, -0.33798760175704956, -0.1313246637582779, 0.15050695836544037, 0.05532073602080345, -0.13177773356437683, 0.039905402809381485, -0.16741682589054108, 0.22309795022010803, -0.08007616549730301, 0.19450800120830536, -0.21922017633914948, 0.35412922501564026, 0.05051790922880173, -0.32074031233787537, -0.275477796792984, -0.03204736113548279, -0.03030458092689514, 0.05071510374546051, -0.16878807544708252, 0.05879423767328262, 0.04056532308459282, -0.2991408705711365, -0.3170071542263031, -0.19163143634796143, -0.06585287302732468, 0.015036677941679955, 0.14939400553703308, -0.350822389125824, 0.29593855142593384, 0.051182523369789124, 0.24715149402618408, 0.6219081878662109, -0.2682355046272278, 0.05888349190354347, -0.2696530520915985, 0.043997131288051605, -0.0632774606347084, -0.04633322358131409, -0.008112965151667595, 0.06764601171016693, 0.0005964264273643494, 0.008546940982341766, -0.0352824404835701, 0.28030771017074585, -0.3483642041683197, -0.1616436392068863, 0.4436454176902771, -0.46761569380760193, -0.023443004116415977, -0.1549752652645111, -0.11210876703262329, -0.1517966240644455, 0.023319924250245094, 0.17970818281173706, -0.2624875605106354, 0.0978788360953331, 0.011711705476045609, -0.3891352713108063, -0.23711158335208893, 0.2602456212043762, 0.23946979641914368, 0.09086406230926514, 0.6803625822067261, 0.3069349229335785, -0.04329276084899902, -0.07546315342187881, 0.3743823170661926, 0.47306641936302185, -0.44972339272499084, 0.3170531690120697, 0.18601661920547485, -0.03463108092546463, 0.03341209143400192, 0.12536822259426117, 0.24583543837070465, -0.3215659558773041, -0.19628478586673737, -0.042849257588386536, -0.40258485078811646, 0.09233316779136658, -0.04289210960268974, 0.15593107044696808, 0.17858436703681946, 0.2970407009124756, -0.013736153021454811, 0.14017891883850098, -0.13736188411712646, 0.12333314120769501, -0.023105047643184662, 0.068760946393013, -0.19335734844207764, -0.05873586982488632, 0.22722415626049042, -0.16368645429611206, -0.0683896616101265, 0.2042645364999771, 0.014268810860812664, -0.10045175999403, -0.19867907464504242, 0.1495773196220398, 0.0027415771037340164, -0.023297669366002083, 0.13062557578086853, 0.05382353812456131, -0.15016566216945648, -0.24430659413337708, 0.42138856649398804, 0.17243331670761108, 0.14141376316547394, -0.1392630934715271, 0.10989781469106674, -0.10065145045518875, -0.06340111792087555, -0.014084286987781525, 0.14695492386817932, 0.26052576303482056, 0.054086171090602875, 0.15882784128189087, 0.3157697916030884, -0.08776151388883591, -0.10940862447023392, 0.19934627413749695, 0.1971246302127838, 0.10858482122421265, 0.09518806636333466, -0.26547926664352417, -0.08092676103115082, 0.03787238523364067, 0.2864854037761688, 0.47138673067092896, -0.28420451283454895, -0.17165200412273407, 0.38519352674484253, 0.10270001739263535, -0.04775310307741165, -0.1189640536904335, -0.13358421623706818, -0.209461972117424, -0.1395508497953415, 0.29144734144210815, -0.05267123878002167, 0.020576924085617065, -0.11722162365913391, 0.18525469303131104, -0.10636596381664276, 0.15240320563316345, -0.020612379536032677, 0.6539329290390015, 0.015221212059259415, 0.06705252081155777, 0.1786472499370575, 0.06885935366153717, 0.2759259343147278, 0.8238028287887573, 0.1972067952156067, 0.16809453070163727, -0.3683777153491974, 0.07338373363018036, -0.21121591329574585, -0.4943943917751312, -0.4449979066848755, 0.1355961114168167, -0.14875197410583496, 0.2809886336326599, -0.16614264249801636, 0.5747615098953247, -0.13521911203861237, -0.25401657819747925, -0.14531442523002625, -0.07836584746837616, -0.2735462486743927, -0.14236348867416382, 0.23453760147094727, -0.14494895935058594, 0.1949319839477539, 0.24629679322242737, -0.12182354927062988, 0.010503970086574554, -0.02235729992389679, 0.07338206470012665, -0.1523851603269577, 0.028517812490463257, -0.1688959002494812, 0.18493613600730896, 0.07989439368247986, -0.22073446214199066, 0.21220289170742035, -0.059928178787231445, 0.010017864406108856, -0.2495434582233429, 0.33577072620391846, 0.4979713261127472, 0.38482701778411865, -0.23730957508087158, 0.22710217535495758, 0.1799069195985794, 0.016918545588850975, -0.08358117192983627, 0.08126065135002136, 0.27905863523483276, 0.10573723912239075, 0.03131875395774841, -0.038733579218387604, -0.1393173187971115, -0.06495566666126251, 0.1780901402235031, 0.1297256350517273, -0.22380846738815308, 0.20880058407783508, -0.17843815684318542, -0.17542076110839844, -0.24956628680229187, 0.028815031051635742, -0.7493741512298584, 0.5085187554359436, 0.5131715536117554, -0.03139643371105194, 0.11460111290216446, -0.07970617711544037, -0.006854387931525707, -0.15094150602817535, 0.5040619373321533, 0.4640612006187439, -0.010311029851436615, -0.39560502767562866, 0.021150991320610046, -0.31626975536346436, 0.25241291522979736, -0.3745409846305847, 0.3190288543701172, -0.14068074524402618, -0.08349274843931198, -0.008290313184261322, -0.14625763893127441, -0.011483058333396912, -0.2426196038722992, -0.6652171015739441, 0.17915907502174377, -0.1702086627483368, -0.25478172302246094, -0.2493761032819748, 0.022389741614460945, -0.018474068492650986, -0.28225570917129517, 0.41832607984542847, -0.0032187364995479584, -0.13225311040878296, -0.01182333379983902, 0.26949137449264526, -0.21865859627723694, 0.18531064689159393, 0.26657766103744507, 0.23033371567726135, 0.03517945855855942, 0.03517506271600723, -0.2640860378742218, -0.3061714768409729, 0.10127374529838562, -0.06812586635351181, 0.1514074206352234, 0.2569338381290436, 0.3529641628265381, -0.34323036670684814, -0.24584071338176727, -0.39242586493492126, 0.16208848357200623, 0.3589940667152405, -0.13166719675064087, -0.2357916533946991, 0.07621771842241287, -0.1069595217704773, -0.014140690676867962, 0.06052510812878609, 0.4861750900745392, -0.12844747304916382, -0.08054459095001221, -0.37277746200561523, -0.2169012427330017, 0.4692785441875458, -0.22482866048812866, -0.4343777894973755, -0.23054057359695435, 0.04101886600255966, 0.2724098861217499, -0.2714163064956665, -0.8018820285797119, 0.13166871666908264, 0.16681131720542908, -0.005734678357839584, -0.5056572556495667, 0.13500818610191345, -0.087055504322052, -0.12997345626354218, -0.16990725696086884, 0.7421053647994995, 0.08223260939121246, -0.21329276263713837, 0.45425036549568176, -0.25828662514686584 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
20
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error). I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though) Should we consider replacing the old urls with these ones even though it's not the exact same data ?
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
59
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error). I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though) Should we consider replacing the old urls with these ones even though it's not the exact same data ?
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ...
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
20
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ...
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this.
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
38
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this.
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
20
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much.
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
22
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much.
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
Hi I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
46
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz Hi I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/854
wmt16 does not download
It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen.
Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
27
wmt16 does not download Hi, I appreciate your help with the following error, thanks >>> from datasets import load_dataset >>> dataset = load_dataset("wmt16", "ro-en", split="train") Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset ignore_verifications=ignore_verifications, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract return self.extract(self.download(url_or_urls)) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download num_proc=download_config.num_proc, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp> mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar] File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested return function(data_struct) File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path use_etag=download_config.use_etag, File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen.
[ -0.44495534896850586, -0.4224759042263031, -0.08150408416986465, 0.4179416298866272, 0.5046890377998352, 0.12449761480093002, 0.12814542651176453, 0.21399663388729095, 0.27867069840431213, 0.001354418694972992, 0.07271354645490646, -0.11046122759580612, -0.23516185581684113, 0.09720755368471146, 0.28374841809272766, -0.04058123379945755, -0.12386248260736465, -0.0028830692172050476, -0.4859330952167511, 0.03903823345899582, -0.23671385645866394, 0.11676354706287384, -0.11184500902891159, -0.06525959074497223, -0.34886977076530457, -0.06710714846849442, -0.13945287466049194, 0.058442916721105576, -0.3605150878429413, -0.28843116760253906, 0.35916757583618164, 0.048493243753910065, 0.21956169605255127, 0.4216260612010956, -0.00010458742326591164, -0.03442543372511864, 0.2609165906906128, -0.11033199727535248, -0.16430585086345673, -0.39196836948394775, -0.34350159764289856, -0.19825930893421173, -0.08634135127067566, -0.08919829875230789, -0.018449943512678146, -0.1176215335726738, -0.11299438774585724, -0.34251540899276733, 0.25243979692459106, 0.354020893573761, 0.3467802107334137, 0.2697254419326782, 0.35456687211990356, -0.19142939150333405, 0.13827654719352722, 0.16998006403446198, 0.05550364404916763, 0.12840323150157928, -0.0070463865995407104, -0.1400786191225052, 0.11668391525745392, 0.1394856870174408, -0.03723456710577011, 0.2416529655456543, 0.1042877584695816, -0.15864473581314087, 0.030769672244787216, -0.2549283504486084, 0.2687591314315796, 0.13920505344867706, 0.3950156271457672, -0.115742988884449, -0.1314081996679306, 0.15134114027023315, 0.06506224721670151, -0.5738536715507507, 0.22009479999542236, 0.5009623765945435, -0.18637293577194214, 0.19216127693653107, -0.27147671580314636, -0.08709496259689331, 0.023812249302864075, 0.14130637049674988, -0.21970263123512268, 0.2921695411205292, -0.21355020999908447, 0.018389657139778137, 0.18490074574947357, -0.10170947015285492, 0.08809234201908112, -0.013901956379413605, 0.14508429169654846, 0.2526484429836273, -0.2700492739677429, 0.12618181109428406, -0.11457666009664536, 0.12925730645656586, 0.08065464347600937, 0.008612636476755142, -0.2520148754119873, -0.15072214603424072, 0.28814664483070374, -0.025947242975234985, 0.02690029703080654, 0.18884079158306122, -0.21948784589767456, 0.08349000662565231, 0.08342508971691132, 0.19543147087097168, -0.036961570382118225, -0.05462561547756195, -0.314523309469223, -0.2925897538661957, 0.032647814601659775, -0.09371143579483032, 0.11518846452236176, 0.06857447326183319, -0.2826317250728607, 0.016139399260282516, 0.004990510642528534, -0.17792049050331116, 0.0023903846740722656, 0.3310001492500305, -0.21501579880714417, 0.14857620000839233, 0.2978156805038452, 0.060011737048625946, -0.09709299355745316, -0.10614902526140213, -0.2628639340400696, -0.08037827908992767, -0.198322594165802, -0.056407488882541656, 0.30514994263648987, -0.09215453267097473, 0.3761104345321655, 0.022963274270296097, -0.1797797530889511, -0.18026843667030334, 0.019973358139395714, -0.1830586940050125, 0.11124526709318161, 0.4338178336620331, 0.06936880946159363, 0.23757435381412506, 0.07188089191913605, 0.254779577255249, -0.0013332590460777283, 0.22461891174316406, -0.046248115599155426, -0.4587908983230591, 0.12388341128826141, 0.37031328678131104, -0.10371363162994385, -0.11541947722434998, 0.024828851222991943, -0.1448107659816742, 0.07044915854930878, 0.2599562704563141, -0.1440330147743225, -0.20330168306827545, -0.16531680524349213, -0.21906189620494843, 0.5277349352836609, 0.39396387338638306, 0.034241270273923874, -0.042103417217731476, -0.40675124526023865, -0.24531933665275574, 0.3608444929122925, 0.28235796093940735, 0.0014635419938713312, 0.1401396095752716, -0.3047563135623932, 0.09743177890777588, 0.25193995237350464, -0.21481536328792572, -0.2565927505493164, 0.21181568503379822, -0.213118776679039, -0.024679698050022125, -0.05190160125494003, 0.09100441634654999, 0.010645351372659206, 0.014503207057714462, 0.26708555221557617, 0.1857897788286209, -0.33121204376220703, 0.024992553517222404, -0.19709795713424683, -0.31133368611335754, 0.44620078802108765, 0.2143394500017166, 0.24833375215530396, -0.07072141021490097, 0.015700973570346832, 0.11446703225374222, 0.3708970546722412, 0.25805941224098206, 0.07927054166793823, -0.03383294492959976, 0.21253077685832977, 0.007951349020004272, -0.20151765644550323, -0.10891404002904892, -0.2836970388889313, 0.10329075902700424, 0.24510163068771362, -0.07786542177200317, 0.05089641362428665, -0.007236422970890999, -0.4273624122142792, 0.04138157516717911, -0.1689581274986267, -0.1493409126996994, 0.1657439023256302, -0.07612413167953491, 0.1448940485715866, -0.04929523169994354, -0.07642529904842377, -0.05188173055648804, -0.23853656649589539, 0.07050979882478714, 0.10587960481643677, -0.020406287163496017, -0.3056633770465851, -0.009124194271862507, 0.2450968325138092, -0.05811942368745804, 0.13310962915420532, -0.037236787378787994, -0.13541856408119202, 0.2523598074913025, 0.12333005666732788, 0.25280359387397766, -0.08029275387525558, 0.02518254518508911, 0.15238142013549805, -0.45250585675239563, 0.04305974021553993, 0.04194408655166626, 0.10440730303525925, -0.15762358903884888, 0.2183505892753601, -0.03144228458404541, -0.0910329818725586, 0.04189503937959671, 0.1744564026594162, 0.1563682109117508, 0.14778383076190948, -0.02493627555668354, 0.0901830792427063, -0.13318295776844025, 0.3215942978858948, -0.0938105583190918, 0.2526184022426605, -0.06541844457387924, -0.06491858512163162, -0.11715684086084366, 0.4020735025405884, 0.1520848423242569, 0.08961864560842514, 0.044231101870536804, -0.30259785056114197, 0.028502650558948517, -0.21578237414360046, 0.31147944927215576, 0.4959132671356201, 0.14464977383613586, 0.1639532893896103, 0.11994926631450653, 0.15693841874599457, -0.28165403008461, 0.4310476779937744, -0.04010220617055893, 0.23515237867832184, 0.252200722694397, -0.19616416096687317, -0.05639978125691414, -0.21671462059020996, 0.27789750695228577, 0.01757635734975338, 0.2078113555908203, -0.15782691538333893, -0.24261844158172607, -0.25481924414634705, -0.06735080480575562, -0.4623289108276367, -0.5436558127403259, -0.21787506341934204, -0.1321285516023636, -0.23829974234104156, 0.02403370849788189, -0.036704033613204956, 0.14264193177223206, -0.04206359013915062, -0.10259921848773956, 0.08179419487714767, 0.1268719732761383, 0.0026956461369991302, -0.05342746526002884, -0.06353942304849625, 0.18412503600120544, 0.2524007558822632, -0.35358473658561707, 0.5754958987236023, -0.3072551488876343, 0.029986992478370667, -0.24281644821166992, -0.13332340121269226, -0.024387814104557037, -0.03700617700815201, 0.08675023913383484, 0.37037283182144165, 0.37814944982528687, 0.2589348554611206, -0.035577163100242615, 0.36938348412513733, -0.28275108337402344, -0.06277571618556976, -0.12146694958209991, 0.12257356196641922, 0.03744419664144516, -0.2173156440258026, -0.5624720454216003, -0.459829717874527, -0.41101938486099243, -0.09170219302177429, 0.030459638684988022, 0.15629670023918152, 0.15120218694210052, 0.07255681604146957, 0.038223713636398315, 0.1439448744058609, -0.05548945069313049, -0.3277631998062134, -0.3739015758037567, 0.3905152976512909, -0.2670377492904663, -0.4456060528755188, 0.29869526624679565, 0.059883132576942444, 0.4613805413246155, 0.20469141006469727, -0.41128009557724, 0.39088645577430725, -0.11904464662075043, -0.06690990179777145, 0.047383226454257965, 0.1677638590335846, 0.15660110116004944, -0.04198865592479706, -0.1558276116847992, -0.12715113162994385, -0.11226548254489899, -0.1918482482433319, -0.19831934571266174, 0.5375466346740723, -0.1967829465866089, 0.33707237243652344, 0.06683145463466644, 0.7139239311218262, 0.1417638659477234, -0.16782906651496887, 0.20050205290317535, -0.10505983978509903, 0.10603171586990356, 0.1251528263092041, -0.4757871627807617, 0.10092738270759583, -0.13385805487632751, 0.17134074866771698, 0.19571956992149353, 0.007804675027728081, 0.12253539264202118, -0.2567455768585205, 0.00969839096069336, -0.26432064175605774, -0.24601075053215027, 0.06228715181350708, 0.09642206132411957, 0.49882417917251587, 0.17762744426727295, 0.0379239022731781, -0.0200702715665102, -0.017366919666528702, -0.013075003400444984, 0.3110692501068115, 0.15995478630065918, 0.13066595792770386, 0.1260276436805725, -0.0890350267291069, -0.3551560640335083, 0.06514451652765274, -0.00901823304593563, 0.44832539558410645, -0.0488913431763649, -0.18618091940879822, -0.0250152125954628, -0.022949835285544395, 0.5050641894340515, 0.13520395755767822, 0.2418668568134308, -0.09906978905200958, -0.11321486532688141, -0.38819512724876404, -0.008824001997709274, -0.047799453139305115, -0.0792359709739685, 0.17921040952205658, 0.03375902399420738, -0.21138903498649597, -0.18056651949882507, 0.33637410402297974, 0.19658634066581726, -0.240535706281662, -0.34527114033699036, -0.2148286998271942, -0.3769052028656006, -0.3758884370326996, -0.06329923123121262, 0.01560249738395214, 0.23703619837760925, -0.2710610628128052, -0.05457567051053047, 0.012776270508766174, -0.0314769446849823, 0.0812898799777031, -0.06278878450393677, 0.20749691128730774, 0.01705029420554638, 0.3276122212409973, 0.2472563236951828, 0.24834439158439636, 0.30237552523612976, 0.4499736428260803, -0.07906603813171387, 0.03008955717086792, -0.0450308620929718, -0.03183877840638161, 0.16858413815498352, 0.08830809593200684, -0.12882405519485474, 0.031317003071308136, 0.33650800585746765, 0.17979148030281067, -0.5687059164047241, 0.11871103942394257, 0.4142957925796509, -0.04427729919552803, -0.22489182651042938, -0.2964840531349182, 0.18441259860992432, 0.023435883224010468, 0.19805775582790375, 0.22401279211044312, 0.08460892736911774, -0.10260046273469925, -0.372905969619751, 0.07411026954650879, 0.7303836941719055, 0.004098329693078995, -0.006337583065032959, 0.05413919687271118, -0.24579864740371704, 0.04931670054793358, 0.1965431421995163, 0.059594716876745224, -0.20256516337394714, 0.0823463425040245, 0.07154674082994461, -0.17535783350467682, 0.08994638919830322, 0.16388754546642303, -0.20382338762283325, 0.1945638507604599, -0.09039496630430222, 0.3699934482574463, 0.12374810874462128, 0.2732432186603546, -0.2995004951953888, -0.0765022337436676, -0.1843225210905075, 0.24962010979652405, -0.15795011818408966, 0.5097194910049438, -0.23378771543502808, -0.021878711879253387, 0.2522152066230774, -0.33801454305648804, -0.3348367214202881, -0.019452091306447983, -0.6515517234802246, 0.15432807803153992, -0.20695966482162476, 0.05444236099720001, 0.2665856182575226, 0.07173974812030792, 0.0452239029109478, 0.3972821831703186, -0.109975665807724, 0.1481291949748993, -0.21824628114700317, -0.18376445770263672, -0.14994420111179352, 0.10437082499265671, 0.03882094845175743, -0.2055918574333191, -0.242231547832489, -0.03048183023929596, -0.029319029301404953, 0.10185924172401428, 0.1618238389492035, -0.0849093496799469, 0.2629014849662781, -0.15889358520507812, -0.1314069926738739, -0.05291448533535004, -0.08087560534477234, -0.1313951462507248, 0.2391679286956787, 0.08143305778503418, -0.10590009391307831, 0.359803169965744, 0.12048648297786713, -0.03579337149858475, -0.1756918877363205, 0.4182897210121155, -0.12139401584863663, 0.013303186744451523, 0.4005339443683624, 0.28168368339538574, -0.18477213382720947, -0.4077313244342804, 0.0011175572872161865, -0.22806736826896667, -0.254761666059494, 0.21384026110172272, 0.15723590552806854, 0.2700098156929016, -0.049014586955308914, 0.11238644272089005, 0.28171220421791077, -0.2257382571697235, 0.15325094759464264, -0.43748903274536133, -0.3613280951976776, -0.04511760175228119, -0.08016349375247955, 0.1647500842809677, -0.08392930030822754, 0.30074968934059143, 0.1840866655111313, 0.31498920917510986, -0.39822155237197876, 0.18447881937026978, -0.05545063316822052, 0.041032824665308, 0.40864142775535583, -0.15233063697814941, 0.2701258659362793, -0.00010320264846086502, 0.20066945254802704, 0.03595685586333275, -0.35350653529167175, -0.28277483582496643, -0.17894583940505981, 0.0797092393040657, 0.06451521068811417, -0.3131316900253296, 0.23155757784843445, -0.2747564911842346, -0.15286485850811005, 0.17869748175144196, 0.04738586023449898, 0.10094963759183884, -0.04881114512681961, 0.15223254263401031, 0.04107123240828514, 0.08859637379646301, -0.21284495294094086, 0.07007388770580292, -0.051900818943977356, 0.33344408869743347, 0.08323982357978821, -0.06848615407943726, 0.3025779724121094, -0.15398019552230835, -0.0999629944562912, -0.21939262747764587, 0.16003191471099854, -0.20814579725265503, 0.3932884931564331, -0.18479974567890167, -0.011456824839115143, 0.11406190693378448, 0.30094632506370544, 0.33540353178977966, -0.04499496519565582, 0.1436927765607834, 0.137220561504364, 0.351652592420578, -0.40804919600486755, 0.1773460954427719, -0.1444799304008484, 0.01485923957079649, -0.07027899473905563, 0.0008022859692573547, 0.022221539169549942, 0.03711555153131485, -0.15406277775764465, 0.20903277397155762, 0.4429776668548584, -0.2516425848007202, 0.10131324827671051, 0.20702411234378815, -0.14431661367416382, 0.1512601375579834, 0.05373375490307808, 0.01452699489891529, 0.051146700978279114, 0.35693079233169556, -0.35072073340415955, 0.31971633434295654, -0.12006466835737228, 0.03910642862319946, 0.10245838016271591, -0.29433301091194153, -0.04932012781500816, 0.26261210441589355, -0.2538186013698578, -0.039840273559093475, -0.1569649577140808, 0.29417839646339417, -0.11784788221120834, 0.014435607939958572, -0.15741410851478577, 0.26341530680656433, -0.07960273325443268, -0.02667105570435524, -0.22451968491077423, -0.16672220826148987, -0.2416517585515976, -0.008191345259547234, 0.14872413873672485, -0.17941085994243622, 0.2924163341522217, 0.2659938931465149, -0.021894313395023346, -0.5418662428855896, -0.1938096582889557, 0.16151678562164307, -0.06607098132371902, -0.36610615253448486, 0.0962025597691536, 0.42628413438796997, -0.10736541450023651, 0.16737493872642517, 0.47673773765563965, 0.3966050446033478, 0.3219347894191742, -0.14238545298576355, 0.08706597983837128, 0.05768789350986481, -0.10058937966823578, -0.1879337579011917, 0.20519031584262848, 0.0790674090385437, -0.04851880297064781, 0.20979416370391846, 0.27238738536834717, -0.23740734159946442, -0.19492186605930328, 0.023563362658023834, -0.13386306166648865, -0.0635165125131607, 0.279386430978775, -0.13691255450248718, 0.043059222400188446, -0.43184226751327515, 0.2305634617805481, -0.2953835129737854, 0.3097432553768158, 0.5763674378395081, -0.05164416506886482, 0.16799193620681763, -0.2874496579170227, 0.11438573896884918, -0.004496777430176735, 0.6133634448051453, 0.2889217138290405, 0.0559174008667469, -0.40342557430267334, -0.43118512630462646, -0.7414613962173462, 0.010679401457309723, 0.07478418946266174, 0.0936226174235344, -0.17253069579601288, 0.08811341971158981, -0.05380267649888992, 0.06516814231872559, 0.2490343153476715, 0.08209260553121567, 0.19772067666053772, 0.02791832573711872, -0.05663388594985008, -0.055285047739744186, -0.20027466118335724, -0.01439676620066166, 0.13614560663700104, -0.3531440794467926, 0.15829509496688843, -0.3870319724082947, 0.12981835007667542, -0.4399927258491516, 0.2706383168697357, -0.04877719283103943, 0.2809255123138428, 0.2876270115375519, 0.15053394436836243, 0.3705017864704132, -0.09074723720550537, -0.054611027240753174, -0.1950244903564453, -0.06907957047224045, -0.15042729675769806, 0.15007233619689941, 0.2182556688785553, 0.17057830095291138, -0.0018085502088069916, -0.3095676898956299, -0.4495084583759308, 0.08449063450098038, 0.003159940242767334, -0.037230201065540314, -0.1925242692232132, 0.043613702058792114, -0.10814853757619858, -0.10061386972665787, 0.3356003165245056, 0.2299157977104187, -0.14369703829288483, 0.0228846687823534, -0.34513163566589355, -0.38486555218696594, 0.4460466504096985, -0.1559344232082367, -0.21605347096920013, -0.28208836913108826, 0.09340786188840866, -0.05358307808637619, -0.009808935225009918, -0.48511528968811035, 0.30327412486076355, 0.25332239270210266, -0.08076270669698715, -0.20001335442066193, 0.4165598154067993, -0.11242027580738068, -0.035013675689697266, 0.07450522482395172, 0.42599350214004517, 0.05312410742044449, -0.2661994993686676, -0.20818506181240082, -0.17933616042137146 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns. Currently to add more columns to a dataset, one must use `map`. What you can do is somehting like this: ```python # suppose you have datasets d1, d2, d3 def add_columns(example, index): example.update(d2[index]) example.update(d3[index]) return example full_dataset = d1.map(add_columns, with_indices=True) ```
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
58
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns. Currently to add more columns to a dataset, one must use `map`. What you can do is somehting like this: ```python # suppose you have datasets d1, d2, d3 def add_columns(example, index): example.update(d2[index]) example.update(d3[index]) return example full_dataset = d1.map(add_columns, with_indices=True) ```
[ -0.42260852456092834, -0.08625990152359009, -0.1545988768339157, 0.07816195487976074, 0.1073092594742775, 0.4110482335090637, 0.31150761246681213, 0.4648502767086029, 0.11830130219459534, 0.17059622704982758, -0.1758234202861786, 0.3464902341365814, -0.07507313787937164, 0.5408214330673218, -0.21959750354290009, -0.2845950722694397, 0.15833596885204315, 0.5231659412384033, -0.5183836221694946, 0.07941950857639313, -0.4363372325897217, -0.11400225758552551, -0.3252286911010742, -0.35195279121398926, -0.3305090069770813, 0.22723093628883362, -0.3263254463672638, 0.04968954622745514, -0.24203185737133026, -0.2773003578186035, 0.18457894027233124, 0.15656225383281708, 0.17375360429286957, 0.18706797063350677, -0.0001018656330415979, -0.006545983254909515, -0.014074750244617462, -0.09879238158464432, -0.23881186544895172, -0.2386990338563919, -0.42746594548225403, -0.5326141715049744, 0.019135328009724617, -0.18558141589164734, 0.007086504250764847, -0.5496053695678711, -0.15158191323280334, -0.19522573053836823, -0.03632776439189911, 0.26912614703178406, 0.2765330672264099, -0.0024140141904354095, 0.14384232461452484, -0.2205384075641632, -0.03270885348320007, 0.04778418317437172, -0.14886847138404846, -0.23833659291267395, -0.10288497805595398, -0.030481863766908646, 0.2678527534008026, 0.09248121082782745, -0.0786663144826889, -0.09554734826087952, 0.023015320301055908, 0.24294915795326233, 0.32892146706581116, -0.46374157071113586, 0.2783740758895874, 0.35957643389701843, 0.5390434861183167, -0.17612674832344055, -0.3088948428630829, -0.01077636331319809, 0.27301082015037537, -0.22511310875415802, -0.11531802266836166, 0.17224058508872986, 0.18411456048488617, 0.10558143258094788, 0.005163006484508514, -0.0969100296497345, -0.23844990134239197, 0.35309386253356934, -0.12394743412733078, 0.5723183751106262, 0.09375789016485214, 0.12462925910949707, 0.1647106111049652, -0.23234359920024872, 0.2123437225818634, -0.2305597960948944, -0.02638879045844078, 0.3826233148574829, -0.5797168612480164, -0.08497429639101028, -0.1941436529159546, -0.24028542637825012, 0.18601086735725403, 0.09343461692333221, 0.012748736888170242, -0.023026898503303528, -0.11488787084817886, 0.21610307693481445, 0.10359694063663483, 0.14304505288600922, 0.11781547963619232, 0.38452428579330444, -0.11298638582229614, -0.2188611924648285, 0.3609628975391388, -0.035208866000175476, -0.30746960639953613, -0.42766594886779785, -0.09287574887275696, -0.01259797066450119, 0.08282171934843063, 0.24912402033805847, 0.09112880378961563, -0.1014137864112854, -0.11310432851314545, -0.027137478813529015, -0.024538803845643997, 0.05415204167366028, 0.10440358519554138, 0.709276020526886, -0.04964060336351395, 0.2461359202861786, 0.22598087787628174, 0.01678517460823059, -0.200280100107193, 0.3086332082748413, 0.10939186811447144, -0.047717057168483734, 0.11334678530693054, -0.20247423648834229, -0.04651438444852829, 0.35169318318367004, 0.13280078768730164, 0.17540650069713593, 0.005613543093204498, -0.24705281853675842, 0.18151210248470306, 0.21985533833503723, 0.1323293000459671, -0.04526250809431076, 0.13458777964115143, -0.19552646577358246, 0.017967060208320618, 0.30991607904434204, -0.1724100410938263, -0.08890143781900406, -0.5252349972724915, 0.20822769403457642, -0.04232413321733475, -0.07005171477794647, -0.3134087324142456, 0.36233675479888916, -0.07714948803186417, 0.053949352353811264, 0.11553508043289185, -0.047466084361076355, 0.06217801198363304, -0.1661248803138733, 0.20095735788345337, 0.11134417355060577, -0.2669384181499481, 0.008026428520679474, 0.15360280871391296, -0.15894484519958496, 0.14459969103336334, -0.06001434847712517, 0.11772693693637848, -0.23453888297080994, -0.006772479973733425, 0.005962163209915161, 0.36253786087036133, -0.32988953590393066, -0.09269825369119644, -0.03210771828889847, -0.11978273093700409, -0.00595645047724247, 0.24581775069236755, 0.09696301817893982, 0.18389764428138733, 0.28392326831817627, 0.2015564739704132, 0.04820330813527107, 0.03500739112496376, -0.009960068389773369, 0.015167858451604843, -0.12045525014400482, 0.4265732765197754, 0.2494766265153885, -0.04320025071501732, 0.27666935324668884, -0.01500481367111206, -0.45884567499160767, 0.33010607957839966, -0.3999512493610382, 0.2924724221229553, 0.1318640261888504, 0.12673534452915192, -0.20352180302143097, 0.0067227683030068874, -0.117715984582901, -0.5746801495552063, 0.05195189267396927, 0.2862965762615204, 0.2127358317375183, 0.07857885956764221, -0.12868642807006836, -0.10281269252300262, -0.19287501275539398, 0.009984694421291351, 0.09415233135223389, 0.18350236117839813, 0.0413176454603672, 0.051945168524980545, -0.249330535531044, -0.38106054067611694, 0.3606596291065216, 0.09509700536727905, -0.043297719210386276, -0.15084831416606903, 0.21309955418109894, 0.18898846209049225, 0.029141675680875778, -0.016535697504878044, 0.27189746499061584, 0.09437370300292969, -0.11734610795974731, 0.16463524103164673, 0.3794598877429962, -0.34524762630462646, 0.008248627185821533, 0.04714765399694443, 0.2545304298400879, 0.12269646674394608, 0.272169291973114, -0.17936356365680695, -0.37590137124061584, 0.11367423832416534, 0.09211332350969315, -0.08164548128843307, 0.47657185792922974, -0.28746429085731506, 0.2087196409702301, -0.09565822780132294, 0.17428763210773468, 0.2577314078807831, -0.04659324139356613, -0.22392845153808594, -0.35435235500335693, -0.01636030152440071, 0.22914241254329681, -0.19165927171707153, -0.023656168952584267, -0.06878211349248886, 0.12394751608371735, 0.2656055688858032, 0.021464388817548752, -0.10228294879198074, -0.09435810893774033, -0.11679289489984512, 0.12439823895692825, 0.22679486870765686, 0.1167612373828888, 0.26449334621429443, 0.39999985694885254, -0.10860444605350494, 0.2540387511253357, -0.2752257287502289, 0.07468205690383911, 0.09163323044776917, 0.03731729835271835, -0.07771145552396774, 0.448142409324646, 0.22262822091579437, -0.07543548941612244, -0.018562976270914078, -0.22968925535678864, 0.11009444296360016, 0.50239497423172, -0.09482447057962418, -0.13744637370109558, -0.24187733232975006, -0.013236815109848976, 0.0900166779756546, -0.3467954099178314, 0.02283015102148056, -0.24789951741695404, -0.17961904406547546, 0.127263605594635, -0.1465994417667389, 0.3609492778778076, -0.3012215495109558, 0.13020029664039612, -0.04144136607646942, -0.023027682676911354, -0.03227115049958229, 0.07153395563364029, 0.1925763189792633, 0.1740308403968811, -0.1611602008342743, -0.0809796154499054, -0.09695017337799072, -0.11955142021179199, 0.2034377157688141, -0.11111346632242203, 0.029660649597644806, 0.020912211388349533, -0.12713320553302765, -0.4854324758052826, 0.018590740859508514, 0.07764925807714462, -0.2564777135848999, -0.17582060396671295, 0.1687876284122467, 0.32613080739974976, 0.06324004381895065, 0.1794683188199997, 0.016681844368577003, 0.01851622946560383, -0.17753975093364716, -0.20748525857925415, -0.23331575095653534, -0.41390272974967957, 0.15589937567710876, 0.20399895310401917, 0.2865820825099945, -0.03890088573098183, 0.4930993914604187, -0.061250559985637665, 0.03926767408847809, -0.05907207727432251, -0.12559349834918976, -0.3367058038711548, 0.48718488216400146, -0.13942638039588928, -0.053191889077425, 0.1305379569530487, -0.2593686580657959, 0.12993401288986206, 0.2810857892036438, 0.09498859941959381, -0.21024814248085022, -0.03937644511461258, 0.14960138499736786, -0.3974594473838806, 0.26912644505500793, 0.42526742815971375, 0.3284217119216919, -0.10309099406003952, 0.01820869743824005, -0.008902601897716522, 0.08230388909578323, 0.2164364755153656, -0.22021815180778503, -0.2070922553539276, 0.15236645936965942, -0.02588116005063057, -0.1935560256242752, 0.4212956130504608, 0.08821958303451538, 0.1785867065191269, -0.2154989093542099, 0.3437778055667877, 0.06876444816589355, -0.29700708389282227, -0.2422594279050827, 0.09271293133497238, 0.4133455157279968, -0.1866029053926468, 0.05524839088320732, 0.09856221824884415, -0.16638535261154175, 0.021599039435386658, -0.1545240879058838, -0.023114774376153946, 0.20276939868927002, -0.3458366096019745, 0.2905592918395996, -0.31374040246009827, -0.028523098677396774, -0.4044005870819092, 0.08560515940189362, -0.16310524940490723, 0.1187715157866478, -0.033052437007427216, -0.22745496034622192, -0.26301243901252747, -0.24441039562225342, -0.49034571647644043, 0.3173391819000244, 0.15523210167884827, 0.27176856994628906, 0.29129281640052795, -0.022843027487397194, -0.21718983352184296, -0.016447490081191063, 0.6867677569389343, -0.36891844868659973, -0.6013421416282654, 0.3722732961177826, -0.007272802293300629, -0.5260195136070251, 0.04125699773430824, -0.16014936566352844, 0.11852293461561203, -0.18681782484054565, 0.6114795207977295, -0.11216120421886444, -0.1128566712141037, 0.5385576486587524, 0.1910727173089981, -0.003090154379606247, -0.06476469337940216, -0.02752435952425003, 0.14650839567184448, -0.09473069757223129, -0.3211618661880493, -0.13061870634555817, 0.540740430355072, -0.12056887149810791, -0.14923813939094543, -0.23907242715358734, -0.3590196967124939, 0.11346569657325745, 0.16854403913021088, 0.1686149537563324, 0.32368984818458557, -0.05598493665456772, 0.11642538756132126, -0.2771926820278168, 0.31409886479377747, 0.22331219911575317, -0.1735614389181137, -0.4095316529273987, -0.06743766367435455, -0.12441381812095642, 0.3769439160823822, -0.19982150197029114, 0.07152727246284485, 0.22748300433158875, -0.26818159222602844, 0.09857839345932007, -0.13852007687091827, 0.06787365674972534, 0.24223105609416962, 0.08686217665672302, -0.4898301064968109, -0.41833701729774475, 0.296690970659256, 0.19768410921096802, 0.0894351452589035, 0.437785267829895, 0.10152305662631989, -0.25740766525268555, -0.000023817643523216248, -0.10518164187669754, 0.6077117323875427, 0.11932133138179779, 0.08892744779586792, 0.04941188544034958, -0.18169698119163513, 0.4047289788722992, 0.021520331501960754, 0.3728572726249695, -0.18717411160469055, -0.24106819927692413, -0.17818287014961243, -0.015463624149560928, 0.1891343593597412, 0.08286754041910172, -0.4538230895996094, 0.0597166009247303, -0.43983912467956543, 0.1877657026052475, -0.044106483459472656, 0.09644974768161774, -0.023520229384303093, -0.5262396335601807, -0.3846258521080017, 0.14813624322414398, 0.04334280639886856, -0.37316828966140747, -0.06815607845783234, 0.04626738280057907, -0.10160453617572784, 0.09218524396419525, -0.1371256411075592, -0.009337199851870537, 0.1608576625585556, 0.025058258324861526, 0.10020507127046585, -0.342258095741272, -0.11596359312534332, 0.02100987732410431, 0.05216222256422043, 0.016562016680836678, -0.01973153091967106, -0.19123202562332153, -0.018438801169395447, 0.061167750507593155, -0.0232266653329134, -0.16520828008651733, -0.0057614874094724655, 0.2311614751815796, -0.30754101276397705, 0.3474167585372925, 0.1665048450231552, -0.31172770261764526, 0.06027995049953461, 0.11855766922235489, -0.12376776337623596, -0.17873124778270721, -0.051719918847084045, 0.23534543812274933, 0.21438807249069214, -0.26927420496940613, 0.1917436271905899, 0.06254684180021286, -0.23331986367702484, 0.0978008508682251, -0.18853552639484406, -0.2763432264328003, -0.16054798662662506, 0.5698914527893066, 0.06576713174581528, 0.10761401057243347, 0.24774275720119476, 0.11600333452224731, -0.09715904295444489, -0.16627216339111328, 0.11735162883996964, 0.3057338297367096, -0.110313281416893, 0.10177633911371231, 0.16779814660549164, -0.1101812943816185, -0.18013805150985718, 0.19382944703102112, -0.027738526463508606, 0.4791874587535858, -0.16449427604675293, -0.24718382954597473, -0.49671098589897156, 0.17976757884025574, 0.3701283037662506, 0.17145591974258423, -0.023922108113765717, 0.1592523455619812, -0.1517132669687271, -0.07942981272935867, -0.3608301877975464, -0.1363077461719513, -0.0717429369688034, 0.04626559838652611, 0.28365758061408997, -0.04063049703836441, -0.0685030072927475, -0.07537639141082764, 0.305410772562027, -0.007498510181903839, -0.01631748303771019, -0.32891133427619934, -0.16387754678726196, 0.002893313765525818, 0.18145927786827087, -0.25915735960006714, 0.027262050658464432, -0.0729447528719902, -0.4046710729598999, -0.2934727668762207, 0.053236622363328934, 0.4485883414745331, -0.28276288509368896, 0.09783917665481567, -0.0520513616502285, -0.1574316918849945, -0.05961407348513603, -0.07696636021137238, 0.050206899642944336, -0.1973647028207779, -0.09686364978551865, 0.2935681939125061, 0.05627632141113281, 0.004974305629730225, -0.1948283463716507, 0.18380092084407806, 0.026965148746967316, -0.046893149614334106, 0.04761523753404617, -0.060211725533008575, 0.06729529798030853, 0.2579358220100403, 0.30721110105514526, 0.1623544842004776, 0.06285552680492401, 0.2926854193210602, 0.21246951818466187, 0.32093122601509094, -0.277473509311676, -0.36939308047294617, 0.06050480157136917, 0.38781988620758057, 0.4583674669265747, 0.11085119098424911, -0.31411123275756836, -0.24797719717025757, 0.08075247704982758, 0.007926015183329582, 0.024209976196289062, -0.09276141971349716, 0.37253838777542114, 0.5311435461044312, 0.07326236367225647, 0.013472724705934525, 0.05446559935808182, 0.16999010741710663, 0.1813460886478424, 0.15948958694934845, -0.05799438804388046, 0.050751905888319016, 0.39659005403518677, -0.19467118382453918, -0.12404587119817734, -0.21430446207523346, 0.023270387202501297, 0.11073575168848038, -0.14145684242248535, 0.08607463538646698, 0.19042330980300903, -0.10143090039491653, -0.01677469164133072, 0.00043597910553216934, -0.01184108853340149, 0.07469290494918823, -0.056102603673934937, -0.12049899995326996, -0.021017611026763916, -0.20383092761039734, -0.07726363092660904, 0.005263980478048325, 0.12869301438331604, -0.28360098600387573, 0.4928387403488159, -0.19139494001865387, 0.07045590877532959, -0.1502915769815445, 0.449029803276062, 0.3303476870059967, 0.06698848307132721, 0.0462755523622036, -0.09220601618289948, 0.39987123012542725, 0.010163623839616776, 0.07211059331893921, 0.20763996243476868, 0.32302770018577576, 0.18803192675113678, 0.2334592193365097, 0.08115867525339127, -0.14555534720420837, -0.14382363855838776, 0.08951171487569809, 0.006291495636105537, 0.08219163864850998, -0.12053924798965454, 0.12355928122997284, 0.3070298433303833, -0.21967895328998566, 0.15585747361183167, -0.13000459969043732, 0.09158283472061157, -0.5912759304046631, 0.08052347600460052, 0.19168420135974884, -0.34693819284439087, 0.028124161064624786, 0.04223513603210449, -0.06976954638957977, -0.2851136028766632, 0.061948664486408234, 0.049580927938222885, -0.03674007207155228, 0.08491948246955872, 0.17849841713905334, 0.08298040926456451, 0.40640631318092346, -0.1365164816379547, -0.013744592666625977, -0.2608766257762909, -0.05082441121339798, -0.13326279819011688, -0.13481402397155762, 0.03577370196580887, -0.18659743666648865, -0.12009768187999725, 0.13287736475467682, 0.08758269995450974, -0.04220392554998398, 0.3020153045654297, 0.2018319070339203, 0.10865931212902069, 0.20690453052520752, -0.1476815640926361, 0.007172349840402603, 0.2105502337217331, -0.05379503220319748, 0.03185956925153732, -0.33544790744781494, 0.3440540134906769, 0.268754780292511, 0.13239777088165283, 0.0037177633494138718, 0.1429707407951355, -0.12609700858592987, -0.18467174470424652, 0.2557796537876129, 0.11762109398841858, 0.11471520364284515, -0.200140118598938, 0.30360767245292664, -0.36005157232284546, -0.1929204761981964, -0.36871054768562317, 0.3780512809753418, 0.11650575697422028, 0.20294879376888275, -0.31304147839546204, -0.17150215804576874, 0.11055272817611694, -0.012434473261237144, 0.07063353806734085, 0.2122294008731842, -0.14439453184604645, 0.4930889308452606, 0.22225895524024963, -0.21379463374614716, -0.19793690741062164, -0.06253296881914139, 0.030031559988856316, 0.01593582145869732, 0.09250366687774658, -0.20833098888397217, 0.06623181700706482, 0.04416988044977188, -0.4783130884170532, -0.25268444418907166, -0.0952865332365036, 0.30186089873313904, 0.09106110781431198, -0.09330663830041885, -0.09939920902252197, 0.27572131156921387, -0.060904406011104584, -0.30300039052963257, 0.3159584105014801, -0.21515190601348877, 0.05173547938466072, -0.09205149114131927, 0.016708429902791977, -0.015443388372659683, -0.1852020025253296, -0.08377701789140701, -0.38801634311676025 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
That's not really difficult to add, though, no? I think it can be done without copy. Maybe let's add it to the roadmap?
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
23
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) That's not really difficult to add, though, no? I think it can be done without copy. Maybe let's add it to the roadmap?
[ -0.5632333755493164, 0.15662434697151184, -0.1052776426076889, -0.08301137387752533, 0.08748169988393784, 0.1624974012374878, 0.302823543548584, 0.4194333851337433, -0.22494220733642578, 0.38689666986465454, -0.15374921262264252, 0.2858174741268158, -0.13368584215641022, 0.4265959858894348, -0.3774040639400482, -0.11378920078277588, 0.1690780520439148, 0.6831742525100708, -0.487161248922348, -0.0461215078830719, -0.27696001529693604, 0.06183304637670517, -0.19137164950370789, -0.35436034202575684, -0.5695509910583496, 0.2912067472934723, -0.18520474433898926, 0.1471567451953888, -0.3962181806564331, -0.1970464289188385, 0.29274481534957886, 0.33680498600006104, -0.043901246041059494, 0.10875170677900314, -0.00011235835700063035, 0.02002759277820587, 0.013376574963331223, -0.15886512398719788, -0.22398105263710022, -0.2859131693840027, -0.462848037481308, -0.30973225831985474, -0.05738847702741623, -0.05910222604870796, 0.10346866399049759, -0.1293450891971588, 0.0893108993768692, -0.2339220643043518, 0.035149917006492615, 0.12969321012496948, 0.18864849209785461, -0.04604661092162132, -0.14946220815181732, -0.3029181957244873, 0.03526448830962181, 0.38725751638412476, -0.15969212353229523, -0.11194398999214172, 0.036841921508312225, 0.05101190507411957, 0.14739662408828735, 0.19671353697776794, 0.08474965393543243, -0.10486885905265808, -0.031223244965076447, 0.1278534084558487, 0.2851846218109131, -0.573803186416626, 0.18949314951896667, 0.43732619285583496, 0.38581785559654236, -0.20702365040779114, -0.2310137301683426, -0.1063774973154068, 0.1256219893693924, -0.037895023822784424, -0.008513033390045166, 0.24868744611740112, 0.0003848336637020111, 0.2998107671737671, -0.12661877274513245, -0.3214486837387085, -0.3337572515010834, 0.21925348043441772, 0.0035819634795188904, 0.509590208530426, 0.18211029469966888, 0.12831860780715942, 0.2479759007692337, -0.08961933106184006, 0.15146520733833313, -0.11211124062538147, -0.1872597187757492, 0.33190909028053284, -0.346657931804657, -0.10949315130710602, -0.4235302209854126, -0.3127010464668274, 0.3242368996143341, 0.36474907398223877, 0.20443572103977203, -0.05147179216146469, -0.2810693085193634, 0.22247257828712463, 0.13684235513210297, -0.028180453926324844, 0.26270604133605957, 0.22462788224220276, 0.10049314051866531, -0.47475799918174744, 0.4068491756916046, 0.14193513989448547, -0.25410225987434387, -0.6352841258049011, -0.3118085563182831, -0.0495491549372673, 0.03981076180934906, 0.12757226824760437, -0.0244063138961792, -0.27631065249443054, -0.08802881836891174, 0.05476804077625275, -0.19945301115512848, -0.0870603695511818, 0.18451394140720367, 0.5468416213989258, -0.02919488027691841, 0.1838519424200058, 0.16136780381202698, -0.20349560678005219, -0.12286386638879776, 0.11373534798622131, 0.26573511958122253, 0.1090385913848877, 0.09325432777404785, -0.3103022277355194, -0.053434886038303375, 0.10103064775466919, 0.4630502462387085, 0.2935292720794678, 0.0899410992860794, -0.11257919669151306, 0.15728065371513367, 0.268084853887558, 0.15086455643177032, -0.1060417890548706, 0.07118808478116989, -0.21595874428749084, -0.12776099145412445, 0.31485652923583984, -0.23880720138549805, -0.07895243167877197, -0.6027960777282715, 0.1250678300857544, -0.19088342785835266, -0.128721222281456, -0.27355265617370605, 0.4014892876148224, -0.10886562615633011, 0.01529470831155777, 0.14862100780010223, 0.15040674805641174, 0.12078937888145447, -0.12747134268283844, 0.12867611646652222, 0.13869823515415192, -0.22286449372768402, -0.12536582350730896, 0.14949901401996613, -0.376016229391098, -0.025756411254405975, -0.05345546081662178, -0.09177687019109726, -0.39196640253067017, -0.10962230712175369, 0.23801816999912262, 0.5789760947227478, -0.3724949061870575, -0.046144768595695496, -0.02297881804406643, -0.35799556970596313, -0.17800283432006836, 0.31346020102500916, 0.2745227515697479, 0.18281520903110504, 0.09056790173053741, 0.08839017897844315, 0.2852325439453125, -0.10220278799533844, 0.03735131770372391, 0.04200403019785881, -0.2569617033004761, 0.2918100953102112, 0.2295568734407425, -0.02377552166581154, 0.15687957406044006, 0.25780999660491943, -0.5314163565635681, 0.25313660502433777, -0.47441908717155457, 0.19220559298992157, 0.06557577848434448, 0.4364444613456726, -0.4588056802749634, -0.027983129024505615, 0.05105573683977127, -0.4954921007156372, 0.06990713626146317, 0.12608066201210022, 0.2886127233505249, 0.1175457313656807, -0.36347681283950806, 0.08634927123785019, -0.1281978189945221, -0.03322214260697365, 0.04901103302836418, 0.06382712721824646, -0.017297640442848206, -0.0022057760506868362, -0.09523969888687134, -0.3850867748260498, 0.47186553478240967, 0.10254526138305664, -0.09259608387947083, -0.14657457172870636, 0.22575165331363678, 0.04525640606880188, 0.12248378992080688, -0.07220523804426193, 0.2096068561077118, -0.06795191019773483, -0.265065997838974, 0.2195996642112732, 0.570452094078064, -0.4314963221549988, 0.14670926332473755, 0.2623595595359802, 0.10931450873613358, 0.2668367922306061, -0.15547004342079163, -0.18487077951431274, -0.5273682475090027, -0.02569306269288063, -0.04297232627868652, -0.01765480637550354, 0.5327885746955872, -0.3147452473640442, 0.0307157039642334, 0.04390382766723633, 0.22748331725597382, 0.313850998878479, -0.01380239799618721, -0.3958475887775421, -0.3787466287612915, -0.07295697927474976, 0.4171089828014374, 0.01607261598110199, 0.18493200838565826, -0.18930280208587646, 0.12077249586582184, 0.34476590156555176, 0.007802780717611313, -0.01848362386226654, -0.007863249629735947, -0.14707008004188538, 0.11438170820474625, 0.29316723346710205, 0.027650441974401474, 0.32052376866340637, 0.3793955147266388, -0.1209532767534256, 0.1799788922071457, -0.24841898679733276, -0.046822670847177505, 0.14093750715255737, -0.013997159898281097, 0.2253260612487793, 0.33007875084877014, 0.34144869446754456, -0.0892065167427063, -0.27006441354751587, -0.3984593451023102, 0.004603538662195206, 0.2516729235649109, -0.13100214302539825, -0.22524003684520721, -0.25230956077575684, 0.009898651391267776, 0.00928072351962328, -0.2826520800590515, -0.24171984195709229, -0.24305272102355957, 0.12820586562156677, 0.1327521800994873, -0.05080801993608475, 0.570241391658783, -0.24933475255966187, 0.5388230085372925, -0.2218422293663025, -0.03556089103221893, -0.12668678164482117, 0.13609017431735992, 0.20553433895111084, 0.09191569685935974, -0.11814650148153305, -0.30788856744766235, 0.0967736765742302, -0.1567496508359909, 0.21576251089572906, -0.21931159496307373, -0.27200183272361755, 0.09246601164340973, 0.09821845591068268, -0.5494917631149292, 0.15956592559814453, 0.0025912001729011536, -0.13035637140274048, -0.08010413497686386, 0.027919339016079903, 0.3592706322669983, -0.28823429346084595, -0.0033147502690553665, -0.22001448273658752, 0.02601476013660431, -0.4219440817832947, 0.059749722480773926, -0.23981253802776337, -0.355292946100235, 0.26299789547920227, 0.3009650707244873, 0.2693174481391907, 0.1727234423160553, 0.5507323145866394, -0.19921083748340607, -0.061037007719278336, -0.19949446618556976, -0.0663796216249466, -0.4897850453853607, 0.5394619703292847, -0.0980459675192833, 0.015326542779803276, 0.08745187520980835, -0.12524208426475525, 0.07777602970600128, 0.44685494899749756, -0.07994893193244934, -0.33764946460723877, 0.1285671591758728, 0.36396071314811707, -0.334634929895401, 0.11786329746246338, 0.4186065196990967, 0.46377697587013245, -0.04785493016242981, -0.1099586933851242, 0.19229066371917725, 0.2692982852458954, 0.1375143676996231, -0.27307164669036865, -0.21735891699790955, -0.12119292467832565, 0.3359740972518921, 0.07648280262947083, 0.29604652523994446, -0.02742307260632515, 0.2046489268541336, -0.2270861566066742, 0.5847336649894714, 0.27450430393218994, -0.023041415959596634, -0.0014798871707171202, 0.3178345859050751, 0.3991069793701172, -0.23026417195796967, 0.11859828233718872, 0.08651837706565857, -0.34384045004844666, 0.06547217071056366, -0.0959145575761795, -0.017902245745062828, 0.1758672297000885, -0.2882627844810486, 0.17323660850524902, -0.275052011013031, -0.17692309617996216, -0.3953578770160675, 0.053645841777324677, -0.08321206271648407, 0.16007916629314423, 0.063959039747715, -0.10554472357034683, -0.2958194315433502, -0.1693476289510727, -0.35202962160110474, 0.2836630940437317, 0.2666341960430145, 0.08055969327688217, 0.3079218864440918, -0.03871314972639084, -0.2518894672393799, -0.042143795639276505, 0.833867073059082, -0.3788592517375946, -0.43784844875335693, 0.22426633536815643, 0.11276629567146301, -0.1577359288930893, 0.09709541499614716, 0.10579358041286469, 0.16321079432964325, -0.07594169676303864, 0.5961182117462158, -0.10549512505531311, -0.15911872684955597, 0.5606842041015625, -0.031605012714862823, -0.08540414273738861, 0.048469383269548416, 0.02778993919491768, 0.03599280118942261, -0.1967291384935379, -0.43208664655685425, -0.05556701868772507, 0.33869776129722595, -0.13583442568778992, -0.19203215837478638, -0.30729803442955017, -0.3666203022003174, 0.0244281142950058, 0.2055244743824005, 0.1794954538345337, 0.0950460284948349, -0.08200648427009583, 0.04141939431428909, -0.29576170444488525, 0.5316928029060364, 0.3902166783809662, -0.18229234218597412, -0.583804726600647, 0.024676337838172913, -0.17632266879081726, 0.4705660045146942, 0.1444324553012848, 0.05014185607433319, 0.06794706732034683, -0.17172622680664062, -0.08216926455497742, -0.04841248318552971, 0.18314944207668304, 0.0039010848850011826, -0.1674984246492386, -0.5671284198760986, -0.10952138900756836, 0.3092723488807678, 0.278361976146698, 0.0711732804775238, 0.48194068670272827, -0.05834466218948364, -0.30449378490448, -0.1575208604335785, 0.0009394660592079163, 0.885059118270874, 0.1260218322277069, 0.3311334252357483, -0.22621887922286987, 0.003226403146982193, 0.5197995901107788, 0.04783390462398529, 0.20477065443992615, -0.14813369512557983, -0.12419380247592926, -0.26468992233276367, -0.1712023913860321, 0.2445560097694397, 0.2108682245016098, -0.3462064564228058, -0.015808356925845146, -0.15705955028533936, 0.24304278194904327, -0.08859900385141373, 0.1055438369512558, -0.1538318395614624, -0.4903741776943207, -0.021616492420434952, 0.04882489889860153, -0.024536632001399994, -0.30438145995140076, -0.146136075258255, -0.17618606984615326, -0.12799356877803802, -0.0854797214269638, -0.1804279088973999, 0.04232606291770935, -0.10566110908985138, 0.07118749618530273, 0.31749776005744934, -0.3614901900291443, -0.254359632730484, 0.02930714562535286, 0.14807170629501343, -0.006447367370128632, -0.07093043625354767, 0.0422559417784214, 0.06230252981185913, 0.12890544533729553, 0.031026696786284447, -0.05374477431178093, 0.13553133606910706, 0.13844522833824158, -0.08615118265151978, 0.20909708738327026, 0.1216166615486145, -0.4662896990776062, -0.04729489982128143, 0.019788455218076706, -0.18855753540992737, 0.31847086548805237, 0.049644265323877335, 0.26596730947494507, 0.008174747228622437, -0.24573510885238647, 0.06976646184921265, 0.16110166907310486, -0.1090482771396637, -0.013690270483493805, -0.09451672434806824, -0.22268642485141754, -0.11028662323951721, 0.5008258819580078, -0.016382481902837753, -0.0746425986289978, 0.007093831896781921, -0.029204735532402992, -0.04975459724664688, -0.1372649222612381, 0.19129091501235962, 0.17724528908729553, -0.4085429012775421, 0.037879567593336105, 0.013166123069822788, -0.3252483010292053, -0.22657090425491333, 0.4109407067298889, 0.1060938835144043, 0.47808128595352173, -0.008521806448698044, -0.23974573612213135, -0.39051270484924316, 0.06926442682743073, 0.1329522281885147, 0.31093817949295044, -0.047952283173799515, 0.32630300521850586, -0.1558869481086731, -0.25240999460220337, -0.3186053931713104, -0.1857457160949707, 0.050137683749198914, -0.04102753847837448, -0.03468773514032364, 0.1839318871498108, -0.11585944145917892, -0.16396841406822205, 0.20497827231884003, 0.15772122144699097, -0.09853031486272812, -0.19688472151756287, -0.134030282497406, 0.14853951334953308, 0.10730616748332977, -0.28401321172714233, 0.15006735920906067, -0.04324749484658241, -0.4669210612773895, -0.2316417247056961, 0.07554847002029419, 0.32191693782806396, -0.2924266457557678, -0.07703159004449844, -0.03387618437409401, -0.14703229069709778, 0.25085651874542236, -0.10522076487541199, 0.1271604299545288, 0.22978301346302032, -0.14854305982589722, 0.3913182318210602, -0.04529261589050293, -0.09812332689762115, 0.08126752078533173, 0.1626686155796051, 0.11880740523338318, 0.16189047694206238, -0.1216428354382515, -0.11066034436225891, -0.06313374638557434, 0.05542256683111191, 0.40068385004997253, 0.020576391369104385, -0.11960010975599289, 0.2616111636161804, 0.22047653794288635, 0.2098541259765625, -0.18238790333271027, -0.3811213970184326, 0.14064092934131622, 0.2541769742965698, 0.34222084283828735, 0.16120392084121704, -0.051761195063591, -0.07104267925024033, 0.210688516497612, 0.06981860846281052, 0.29647088050842285, -0.22021692991256714, 0.33699196577072144, 0.2586955428123474, 0.007161024957895279, 0.13034825026988983, -0.0890476405620575, 0.33427613973617554, 0.46240469813346863, -0.006999403238296509, -0.22914394736289978, 0.17349445819854736, 0.49458807706832886, -0.18359096348285675, 0.11206737160682678, -0.17381443083286285, 0.026486344635486603, 0.24521717429161072, 0.05254155397415161, 0.3209809958934784, 0.30819791555404663, -0.11449950188398361, -0.08156685531139374, -0.01597345434129238, 0.009527528658509254, 0.15921133756637573, 0.07785492390394211, -0.05032823234796524, -0.21304851770401, -0.2653897702693939, -0.230909064412117, 0.08901138603687286, 0.15502288937568665, -0.3399500846862793, 0.5834513306617737, -0.09750145673751831, 0.14914223551750183, -0.11842970550060272, 0.5540011525154114, 0.18605530261993408, 0.08966422826051712, 0.047076139599084854, 0.07833383977413177, 0.3469666540622711, -0.22844663262367249, 0.2433459460735321, 0.4025321304798126, 0.28545433282852173, 0.2740371823310852, 0.28119152784347534, 0.03061588481068611, -0.1462976336479187, -0.23659725487232208, -0.02836882323026657, -0.11632540822029114, 0.1971513330936432, -0.3016257882118225, 0.21505072712898254, 0.21736864745616913, -0.07160405069589615, 0.2614806294441223, -0.07889942824840546, -0.04564407095313072, -0.42728686332702637, -0.01933898776769638, 0.03384688124060631, -0.28404128551483154, 0.14520463347434998, -0.04068879038095474, -0.00887315347790718, -0.3922977149486542, 0.11603379249572754, -0.07907181978225708, -0.09836005419492722, 0.02478117123246193, 0.07877420634031296, 0.24139519035816193, 0.30606165528297424, -0.123044952750206, 0.12788137793540955, -0.018688205629587173, -0.19878587126731873, -0.260222852230072, 0.04228021204471588, 0.09911800920963287, -0.13053743541240692, -0.17376719415187836, 0.18834488093852997, 0.23803368210792542, 0.07598428428173065, 0.4585738182067871, 0.22357112169265747, 0.39613887667655945, 0.16712138056755066, -0.17096199095249176, 0.07796038687229156, 0.4045493006706238, -0.2439548373222351, 0.05886349827051163, -0.2913272976875305, 0.3434562385082245, 0.26000070571899414, 0.06568782776594162, -0.060364730656147, 0.033598996698856354, -0.10451430082321167, -0.12723326683044434, 0.26583823561668396, 0.14401480555534363, 0.05299820750951767, -0.34524789452552795, 0.17615623772144318, -0.11529767513275146, -0.2272218018770218, -0.46544742584228516, 0.1702621430158615, 0.10337759554386139, 0.17340247333049774, -0.4425382912158966, -0.22234784066677094, 0.048670172691345215, -0.13155430555343628, 0.15970517694950104, 0.1992395520210266, -0.37816035747528076, 0.5593161582946777, -0.007579300552606583, -0.12051146477460861, -0.2674335241317749, -0.20302420854568481, 0.10233564674854279, -0.02592911198735237, 0.033386558294296265, -0.20701412856578827, 0.1993536502122879, 0.04696250706911087, -0.278286337852478, -0.16760538518428802, -0.0560251921415329, 0.4199969470500946, 0.20593446493148804, -0.19585156440734863, -0.061831749975681305, 0.30069518089294434, 0.14442315697669983, -0.22987283766269684, 0.4396011531352997, -0.1456960290670395, -0.07543361932039261, -0.12326346337795258, 0.04330385848879814, -0.017035286873579025, -0.21580393612384796, -0.03516915440559387, -0.5163923501968384 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Actually it's doable but requires to update the `Dataset._data_files` schema to support this. I'm re-opening this since we may want to add this in the future
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
26
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Actually it's doable but requires to update the `Dataset._data_files` schema to support this. I'm re-opening this since we may want to add this in the future
[ -0.6200821399688721, 0.11323957145214081, -0.14977407455444336, 0.11423549056053162, 0.125723734498024, 0.2032431960105896, 0.39566540718078613, 0.3959009051322937, -0.003955094143748283, 0.24560546875, -0.20390000939369202, 0.38265034556388855, -0.07559129595756531, 0.5006217956542969, -0.4717246890068054, -0.07975742220878601, 0.1835414171218872, 0.7113131284713745, -0.542426347732544, -0.011765100061893463, -0.23666544258594513, 0.011350317858159542, -0.33966171741485596, -0.3187689185142517, -0.5360075235366821, 0.23119042813777924, -0.061060450971126556, 0.0987926721572876, -0.3007904887199402, -0.2530788779258728, 0.3102923631668091, 0.3644457459449768, 0.05710957944393158, 0.13876910507678986, -0.00010693980584619567, 0.07275448739528656, -0.08741095662117004, -0.1837271749973297, -0.26889532804489136, -0.26932913064956665, -0.5620735287666321, -0.2944662868976593, -0.07573454082012177, -0.05767373740673065, -0.040684256702661514, -0.38943246006965637, 0.024006586521863937, -0.3615788519382477, -0.040568992495536804, 0.1573857069015503, 0.2330460548400879, -0.019053872674703598, -0.12945078313350677, -0.2183724343776703, -0.020102180540561676, 0.3183128833770752, -0.07680510729551315, -0.1730322688817978, -0.12439090013504028, -0.020679615437984467, -0.010413900017738342, 0.18712805211544037, 0.14813916385173798, -0.12689150869846344, 0.04448123276233673, 0.14187532663345337, 0.33912864327430725, -0.4659825265407562, 0.16331635415554047, 0.4161894917488098, 0.46591946482658386, -0.1859806478023529, -0.20178498327732086, -0.03571400046348572, 0.09924422204494476, -0.1593412160873413, 0.06399838626384735, 0.2853878438472748, 0.13687260448932648, 0.30583545565605164, -0.010841356590390205, -0.10340426862239838, -0.3154926896095276, 0.2407754808664322, -0.24593982100486755, 0.5976777076721191, 0.13537701964378357, 0.09290581941604614, 0.08293477445840836, -0.23026423156261444, 0.16422128677368164, -0.18721500039100647, -0.18418337404727936, 0.32171374559402466, -0.5415162444114685, -0.11994291841983795, -0.3733862340450287, -0.13508561253547668, 0.3298957943916321, 0.24631907045841217, 0.20447681844234467, 0.04055073484778404, -0.19249415397644043, 0.24526244401931763, 0.2398509383201599, 0.024579446762800217, 0.4051344394683838, 0.13686498999595642, 0.04347263276576996, -0.2887258529663086, 0.21904289722442627, 0.09508900344371796, -0.30772486329078674, -0.6520448327064514, -0.32479116320610046, 0.025201423093676567, 0.038982801139354706, 0.1931319534778595, -0.10303200781345367, -0.14355196058750153, -0.09164325892925262, 0.10843323171138763, 0.055991653352975845, -0.08601196855306625, 0.22217753529548645, 0.7616552710533142, -0.053454603999853134, 0.19213812053203583, 0.17340661585330963, -0.2751089334487915, -0.1755376160144806, 0.18712155520915985, 0.11602143943309784, 0.017479073256254196, 0.1904693990945816, -0.1842019110918045, -0.04497126489877701, 0.3144835829734802, 0.3391456604003906, 0.18271267414093018, 0.15337397158145905, -0.22094696760177612, 0.21494707465171814, 0.2782844603061676, 0.0714065432548523, -0.09486725181341171, 0.05624137818813324, -0.16822147369384766, -0.014185912907123566, 0.31454649567604065, -0.12276088446378708, 0.03539014980196953, -0.48917025327682495, 0.2089894711971283, -0.20081287622451782, -0.046364590525627136, -0.24995297193527222, 0.33363568782806396, -0.10402952879667282, -0.05009105056524277, 0.029179498553276062, -0.017505038529634476, 0.07481934130191803, -0.11277469992637634, 0.1682959347963333, 0.1064419150352478, -0.28142020106315613, -0.06913553178310394, 0.18472228944301605, -0.4150509536266327, -0.07116956263780594, -0.01347590982913971, -0.036034904420375824, -0.3152643144130707, -0.14208976924419403, 0.24415476620197296, 0.43692445755004883, -0.41757291555404663, -0.09724915027618408, -0.02969968318939209, -0.22387759387493134, -0.12852728366851807, 0.2407664656639099, 0.12322352081537247, 0.16265764832496643, 0.12466363608837128, 0.12263432890176773, 0.16225171089172363, 0.034325312823057175, 0.008794670924544334, -0.04358427971601486, -0.23906317353248596, 0.3819730281829834, 0.16399052739143372, -0.07838833332061768, 0.12246771156787872, 0.13113172352313995, -0.48377782106399536, 0.48675537109375, -0.3978930115699768, 0.29677048325538635, 0.14093032479286194, 0.20175081491470337, -0.42657142877578735, -0.01405140571296215, -0.08382569253444672, -0.5214072465896606, 0.0832032784819603, 0.08629707992076874, 0.2248173952102661, 0.06638433039188385, -0.28905630111694336, 0.034898221492767334, -0.2273230105638504, -0.06026037409901619, 0.056495301425457, 0.20552697777748108, -0.004535086452960968, -0.12166804075241089, -0.15377019345760345, -0.351880818605423, 0.37662777304649353, 0.15874919295310974, -0.11544771492481232, -0.11709904670715332, 0.26998093724250793, 0.17689815163612366, 0.13533034920692444, -0.055209968239068985, 0.22024813294410706, -0.008487507700920105, -0.14993146061897278, 0.25185805559158325, 0.5035149455070496, -0.2917836904525757, 0.06239998713135719, 0.2550007402896881, 0.20711252093315125, 0.0982295572757721, 0.008117977529764175, -0.16664648056030273, -0.44257470965385437, 0.05847471207380295, 0.044883303344249725, -0.10633889585733414, 0.6201361417770386, -0.3699854612350464, 0.03146872669458389, -0.014405831694602966, 0.17930102348327637, 0.38348275423049927, -0.0434761643409729, -0.4043266475200653, -0.35002243518829346, -0.042791690677404404, 0.35111844539642334, -0.1354757696390152, 0.2653810381889343, -0.18877984583377838, 0.1107143834233284, 0.28042536973953247, 0.07044854760169983, -0.08747755736112595, -0.20532801747322083, -0.20894783735275269, 0.12777996063232422, 0.3520624041557312, 0.10632090270519257, 0.3652787208557129, 0.3536136746406555, -0.10555948317050934, 0.16053704917430878, -0.2328379601240158, -0.03678857535123825, 0.16005010902881622, -0.1095191091299057, 0.12940767407417297, 0.5694358944892883, 0.3345155715942383, -0.1547618955373764, -0.20279496908187866, -0.3446967899799347, 0.05457913130521774, 0.32103660702705383, -0.16447076201438904, -0.12371677905321121, -0.33769285678863525, -0.028966384008526802, -0.020555779337882996, -0.22820957005023956, -0.1973009556531906, -0.17475025355815887, 0.009784752503037453, 0.120201975107193, -0.08332933485507965, 0.5366843938827515, -0.2834310829639435, 0.36714255809783936, -0.14752979576587677, 0.04558853060007095, -0.08101923763751984, 0.11552862077951431, 0.15028581023216248, 0.15372182428836823, -0.09493158757686615, -0.06008695065975189, -0.05424143373966217, -0.15207956731319427, 0.16897426545619965, -0.20864823460578918, -0.022829242050647736, 0.07508081942796707, 0.09566245228052139, -0.491703599691391, 0.13739250600337982, 0.05813651531934738, -0.16525058448314667, -0.03151347488164902, 0.11853187531232834, 0.408956915140152, -0.10360806435346603, -0.002643318846821785, -0.1406339704990387, 0.11247839033603668, -0.3971734941005707, -0.03000658005475998, -0.21586020290851593, -0.37241095304489136, 0.21062631905078888, 0.19469578564167023, 0.2574149966239929, 0.13287653028964996, 0.4780386984348297, -0.19409628212451935, -0.09097443521022797, -0.16977161169052124, -0.030955949798226357, -0.4245986044406891, 0.46168026328086853, -0.029840677976608276, -0.03710770234465599, 0.16072209179401398, -0.16197681427001953, 0.16649045050144196, 0.45153725147247314, 0.07630734145641327, -0.2016095668077469, 0.11022266000509262, 0.2375047206878662, -0.36465203762054443, 0.01019035093486309, 0.3265553116798401, 0.39198291301727295, -0.08777175098657608, -0.12093038856983185, 0.1506010740995407, 0.30272430181503296, 0.00879247672855854, -0.25494834780693054, -0.2459113597869873, -0.18723633885383606, 0.2631949782371521, -0.12496478855609894, 0.32773450016975403, -0.10826525092124939, 0.12555252015590668, -0.1994955986738205, 0.4069361984729767, 0.3109946548938751, -0.027698319405317307, -0.11799360066652298, 0.25705963373184204, 0.37704604864120483, -0.08900335431098938, 0.1365223228931427, 0.16336266696453094, -0.22395092248916626, 0.08213311433792114, -0.15823405981063843, -0.10310187190771103, 0.16203932464122772, -0.35062432289123535, 0.23188382387161255, -0.26720523834228516, -0.11964912712574005, -0.27701109647750854, 0.10287077724933624, -0.13441628217697144, 0.20837977528572083, 0.02268412709236145, -0.10448512434959412, -0.21230429410934448, -0.12702855467796326, -0.26558318734169006, 0.24737219512462616, 0.11321242898702621, 0.2012472301721573, 0.3306742310523987, -0.052023015916347504, -0.21966217458248138, -0.0646098181605339, 0.804314374923706, -0.1964743584394455, -0.26497942209243774, 0.2764643132686615, 0.18324218690395355, -0.28160008788108826, 0.05887151136994362, -0.0003238171339035034, 0.14112946391105652, -0.15001234412193298, 0.6463125348091125, -0.10536081343889236, -0.23497110605239868, 0.33379891514778137, 0.03567328304052353, -0.026949996128678322, 0.049650128930807114, 0.031354647129774094, 0.09736702591180801, -0.1070190891623497, -0.35965803265571594, 0.026088891550898552, 0.4266491234302521, -0.21644499897956848, -0.11249031126499176, -0.2984730899333954, -0.33051517605781555, 0.09207044541835785, 0.20179717242717743, 0.2636721730232239, 0.023803915828466415, -0.18545246124267578, 0.08432555198669434, -0.10850906372070312, 0.5909473896026611, 0.27342820167541504, -0.0902700275182724, -0.5555428266525269, 0.0161084346473217, -0.21247971057891846, 0.3017393946647644, 0.044583432376384735, -0.049289580434560776, 0.09134770184755325, -0.23183006048202515, -0.08637529611587524, -0.06275451183319092, 0.22125355899333954, 0.07315131276845932, -0.03942851349711418, -0.5384455919265747, -0.19156992435455322, 0.26793229579925537, 0.22781075537204742, -0.0005601048469543457, 0.33810070157051086, -0.06643079221248627, -0.37694117426872253, -0.05789322033524513, 0.0016404613852500916, 0.7042245864868164, 0.1960831582546234, 0.28021207451820374, -0.0452645868062973, -0.07345360517501831, 0.42300665378570557, -0.11596201360225677, 0.30174511671066284, -0.3229171633720398, -0.1712745577096939, -0.23382198810577393, -0.11164681613445282, 0.2787317931652069, 0.3182135820388794, -0.3091917037963867, -0.022729652002453804, -0.3546565771102905, 0.2063692808151245, -0.09920802712440491, 0.06840221583843231, -0.1414729356765747, -0.399726539850235, -0.22924382984638214, 0.09329064190387726, -0.04623971879482269, -0.3588959276676178, -0.22430139780044556, -0.11414621025323868, -0.09443673491477966, 0.03630279004573822, -0.11645887792110443, -0.0166982002556324, -0.04164357855916023, 0.05355771631002426, 0.14204661548137665, -0.2721468210220337, -0.16935421526432037, 0.1830165982246399, -0.019153304398059845, -0.016107656061649323, -0.08318180590867996, -0.03625660017132759, 0.07230409979820251, 0.16167402267456055, -0.019931048154830933, -0.07012201845645905, 0.03580368310213089, 0.1406973898410797, -0.1232454776763916, 0.08439513295888901, 0.11656303703784943, -0.22216075658798218, 0.0868038535118103, 0.13015908002853394, -0.2665664553642273, 0.07718702405691147, 0.019735222682356834, 0.09161631762981415, 0.12812860310077667, -0.16989824175834656, 0.1342814713716507, 0.16714748740196228, -0.12864798307418823, -0.016501903533935547, -0.16499486565589905, -0.26159656047821045, -0.11773180961608887, 0.608930766582489, 0.01956978440284729, -0.0570773184299469, 0.062119223177433014, 0.05038980767130852, -0.11098574101924896, -0.22989130020141602, 0.2489147186279297, 0.22282803058624268, -0.3753678500652313, 0.1541321575641632, 0.16785363852977753, -0.20250019431114197, -0.180757075548172, 0.3313978314399719, 0.060708824545145035, 0.4667711853981018, 0.021350596100091934, -0.3434012234210968, -0.38061803579330444, 0.10426417738199234, 0.11552096903324127, 0.278245747089386, -0.027831872925162315, 0.2225756049156189, -0.18138638138771057, -0.3636711835861206, -0.3565866947174072, -0.08493953943252563, -0.0004002135246992111, -0.01243184506893158, 0.0026941560208797455, 0.10505757480859756, -0.149223193526268, -0.09496854245662689, 0.27961239218711853, 0.040089674293994904, -0.11534032225608826, -0.27591562271118164, -0.0686294287443161, 0.08151517808437347, 0.14143702387809753, -0.24600200355052948, 0.1420937329530716, 0.020480573177337646, -0.404254287481308, -0.3431595265865326, 0.06983977556228638, 0.44843459129333496, -0.23183442652225494, 0.10610220581293106, 0.022323139011859894, -0.01609058678150177, 0.09746067225933075, -0.11487135291099548, 0.1849149763584137, -0.12001024186611176, -0.1341986060142517, 0.3616339862346649, -0.09783322364091873, -0.038858477026224136, -0.002223661635071039, 0.18700659275054932, 0.09688127040863037, 0.07984048128128052, -0.09282445162534714, -0.07402196526527405, -0.01724812760949135, 0.17595124244689941, 0.434010773897171, 0.15336742997169495, -0.06402657181024551, 0.24201329052448273, 0.10946323722600937, 0.3031441271305084, -0.21272706985473633, -0.35323604941368103, 0.22204864025115967, 0.35889533162117004, 0.3141609728336334, 0.05581797659397125, -0.09080352634191513, -0.2506696581840515, 0.06781117618083954, 0.05019798129796982, 0.20477738976478577, -0.16987234354019165, 0.38346996903419495, 0.4358234107494354, -0.029430773109197617, 0.12614504992961884, -0.013649405911564827, 0.27239638566970825, 0.4389002025127411, 0.31031298637390137, -0.11436294764280319, 0.13300906121730804, 0.5196548700332642, -0.21225985884666443, -0.17847737669944763, -0.27290043234825134, -0.06400075554847717, 0.2034425139427185, -0.06554339826107025, 0.07500192523002625, 0.2460419088602066, -0.12401015311479568, -0.069960817694664, -0.06582970172166824, 0.061935462057590485, 0.06396424770355225, -0.08222188800573349, -0.11665497720241547, -0.22605173289775848, -0.29816901683807373, -0.15493640303611755, -0.002258662134408951, 0.09141647815704346, -0.16445623338222504, 0.40760985016822815, -0.1368979811668396, 0.0725942999124527, -0.17497649788856506, 0.5676489472389221, 0.30372339487075806, 0.01450878381729126, 0.08085060119628906, -0.027164211496710777, 0.42705488204956055, -0.06632436811923981, 0.30737197399139404, 0.22127118706703186, 0.2742753028869629, 0.2930241823196411, 0.2621850371360779, -0.11285378783941269, -0.2860125005245209, -0.11866788566112518, -0.1190197765827179, -0.1276029646396637, 0.19036632776260376, -0.20013590157032013, 0.2976948022842407, 0.2840931713581085, -0.13696832954883575, 0.19182327389717102, -0.11676579713821411, 0.057209160178899765, -0.49396389722824097, -0.061162807047367096, 0.019601358100771904, -0.30986282229423523, 0.18193447589874268, -0.06790142506361008, 0.051944226026535034, -0.4709720313549042, 0.06412491202354431, 0.11470017582178116, 0.05749226361513138, 0.03108052909374237, 0.13732123374938965, 0.1497323364019394, 0.26654309034347534, -0.19257844984531403, 0.07497859746217728, -0.10779830068349838, -0.1571921408176422, -0.3030639886856079, -0.012172028422355652, 0.18112322688102722, -0.12737980484962463, -0.21982133388519287, 0.14202232658863068, 0.16405647993087769, -0.018631715327501297, 0.3866998553276062, 0.30288511514663696, 0.4080852270126343, 0.17490121722221375, -0.20606940984725952, 0.08165659010410309, 0.21374934911727905, -0.15755131840705872, 0.026162683963775635, -0.3309252858161926, 0.2674063444137573, 0.3030884563922882, 0.15886297821998596, 0.015621740370988846, 0.05745688080787659, -0.037379007786512375, -0.23598626255989075, 0.19221100211143494, 0.1937490850687027, 0.16853591799736023, -0.23420774936676025, 0.24914470314979553, -0.2890506088733673, -0.16454599797725677, -0.46676790714263916, 0.2209828794002533, 0.08362308144569397, 0.2395300567150116, -0.3569457232952118, -0.1498156189918518, 0.08172935247421265, -0.12760664522647858, 0.09640680253505707, 0.3045405447483063, -0.3017324209213257, 0.5580828189849854, 0.11149638146162033, -0.1556447148323059, -0.26879003643989563, -0.10301006585359573, 0.053499821573495865, -0.064402736723423, 0.005962945520877838, -0.19045770168304443, 0.16490063071250916, 0.06151113659143448, -0.3933854103088379, -0.24259190261363983, 0.009496927261352539, 0.2682804465293884, 0.16111914813518524, -0.08598242700099945, -0.11583145707845688, 0.3000069856643677, 0.07288776338100433, -0.3006666600704193, 0.1787552833557129, -0.2094934731721878, -0.07936909794807434, -0.12681536376476288, 0.010036095976829529, 0.011526698246598244, -0.25177064538002014, -0.10315055400133133, -0.4564322829246521 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows.
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
40
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows.
[ -0.3484046757221222, -0.03517331928014755, -0.12199385464191437, 0.06049656122922897, 0.17259812355041504, 0.09185522049665451, 0.3840518891811371, 0.3609429895877838, 0.016933158040046692, 0.36198168992996216, 0.0030057141557335854, 0.4973304271697998, -0.15670990943908691, 0.5172736644744873, -0.35656997561454773, -0.16618958115577698, 0.17760008573532104, 0.723804235458374, -0.4239698350429535, 0.011939644813537598, -0.2513483762741089, 0.0003015883266925812, -0.40318763256073, -0.17890362441539764, -0.3692488968372345, 0.23985140025615692, -0.06263653934001923, -0.1479698121547699, -0.15306244790554047, -0.31122952699661255, 0.3284265995025635, 0.08787081390619278, 0.19522400200366974, 0.012288928031921387, -0.00011919983080588281, -0.010859254747629166, 0.04155346006155014, -0.11257904022932053, -0.245366171002388, -0.32215696573257446, -0.4053148031234741, -0.49797776341438293, 0.22715722024440765, -0.03784343600273132, -0.039065878838300705, -0.5209635496139526, -0.13104376196861267, -0.43877238035202026, -0.0303991436958313, 0.25198033452033997, 0.17729294300079346, -0.0298097413033247, -0.07088854908943176, -0.0822860449552536, 0.00693444162607193, 0.29281914234161377, -0.2658262252807617, -0.27998360991477966, -0.10531012713909149, -0.19822724163532257, 0.12269443273544312, 0.2715041935443878, 0.1151823103427887, -0.059090059250593185, 0.12439648061990738, 0.19270092248916626, 0.40568670630455017, -0.5003894567489624, 0.1288585662841797, 0.3248571753501892, 0.5749337673187256, -0.2733677923679352, -0.15512505173683167, -0.09962671995162964, 0.4653519093990326, -0.07417304068803787, -0.0730670765042305, 0.16299520432949066, 0.05002133175730705, 0.19060556590557098, 0.13513065874576569, -0.10572227090597153, -0.3829076290130615, 0.3393298387527466, -0.07983893156051636, 0.5351181030273438, 0.05467354506254196, 0.1881549209356308, 0.2290104776620865, -0.10053566098213196, 0.27346479892730713, -0.022001631557941437, -0.08822935819625854, 0.4876594543457031, -0.7353643774986267, -0.0565519854426384, -0.1842576265335083, -0.1495024859905243, 0.07951422780752182, 0.2421562671661377, 0.22451691329479218, 0.09265099465847015, 0.02139291912317276, 0.09125149250030518, 0.23509864509105682, 0.22462759912014008, 0.350942462682724, 0.3787026107311249, -0.032511018216609955, -0.2437988966703415, 0.35974371433258057, 0.0425390861928463, -0.3643558621406555, -0.5424804091453552, 0.0170123390853405, 0.018189314752817154, 0.22619758546352386, 0.12265053391456604, 0.023937096819281578, -0.22093138098716736, -0.11896519362926483, 0.08707166463136673, 0.05089593306183815, 0.02518816664814949, 0.14603646099567413, 0.9004566669464111, 0.012082397937774658, 0.3414289951324463, 0.22950498759746552, 0.013757404871284962, -0.11397846043109894, 0.05691695213317871, 0.1438235640525818, -0.05562475323677063, 0.20488739013671875, -0.09138999879360199, -0.2196100950241089, 0.3884478211402893, 0.2302769422531128, 0.0550040677189827, 0.1491926908493042, -0.20470625162124634, 0.3219250738620758, 0.2805391848087311, -0.09680650383234024, -0.12616567313671112, 0.2055714726448059, 0.06237007677555084, -0.055790774524211884, 0.47118234634399414, -0.2314353883266449, -0.10007259249687195, -0.46516844630241394, 0.09417742490768433, -0.10469771176576614, 0.01532767340540886, -0.19062259793281555, 0.29599833488464355, -0.18595284223556519, -0.04350768402218819, 0.1876230239868164, -0.03578543663024902, 0.29721465706825256, -0.1553346812725067, 0.16128382086753845, 0.004932478070259094, -0.34096968173980713, -0.1471395492553711, 0.09101376682519913, -0.38763192296028137, 0.053461551666259766, -0.21096168458461761, -0.13836394250392914, -0.35262203216552734, 0.0315910279750824, 0.07572793960571289, 0.5826779007911682, -0.34467414021492004, -0.05540962517261505, -0.08609920740127563, -0.2328723967075348, -0.11882124841213226, 0.25108304619789124, 0.08483605831861496, 0.15635377168655396, 0.3511505424976349, 0.05672529339790344, 0.11574394255876541, 0.15500013530254364, 0.06018388271331787, -0.031086331233382225, -0.29495733976364136, 0.36114925146102905, 0.08459416031837463, -0.18387523293495178, 0.1872299611568451, 0.1451580971479416, -0.6566545963287354, 0.4483216404914856, -0.28731173276901245, 0.25046858191490173, 0.06725712865591049, 0.2859601676464081, -0.38218677043914795, 0.17607943713665009, 0.011500656604766846, -0.5103505849838257, 0.009330205619335175, 0.07092281430959702, 0.09391241520643234, -0.12795515358448029, -0.1896887868642807, 0.08810605853796005, -0.050162702798843384, -0.002047169953584671, 0.1332368403673172, 0.07466527074575424, -0.15375618636608124, -0.013752615079283714, -0.0632728785276413, -0.5141733288764954, 0.26573580503463745, 0.03697321563959122, -0.05854357033967972, 0.07478183507919312, 0.12933024764060974, 0.39897385239601135, 0.010472916066646576, -0.0507492795586586, 0.25130292773246765, -0.03050733357667923, 0.0026414853055030107, 0.10379073768854141, 0.48192012310028076, -0.26604560017585754, 0.05952461063861847, 0.07924066483974457, 0.10765035450458527, -0.0076675135642290115, 0.15808533132076263, -0.022120384499430656, -0.4409917891025543, 0.12428061664104462, 0.07623150199651718, -0.041299544274806976, 0.6403231620788574, -0.35759884119033813, 0.3346843123435974, -0.11004357784986496, 0.18086864054203033, 0.16153515875339508, 0.023188766092061996, -0.42582497000694275, -0.4088204801082611, -0.012621831148862839, 0.04843923822045326, -0.0436069592833519, 0.05585019662976265, -0.14315122365951538, 0.17098823189735413, 0.11257369071245193, 0.12620005011558533, 0.05190799757838249, 0.0012857988476753235, -0.15228188037872314, 0.12397926300764084, 0.3801654875278473, 0.1782369166612625, 0.3607857823371887, 0.2986896336078644, -0.25550949573516846, 0.07940255105495453, -0.26339587569236755, 0.0075087957084178925, 0.179502472281456, -0.10098810493946075, 0.1762392520904541, 0.42633864283561707, 0.3166387677192688, -0.24781636893749237, -0.040193893015384674, -0.2858068645000458, -0.08062011748552322, 0.3229049742221832, -0.19344878196716309, -0.05636923015117645, -0.2910398542881012, 0.04930063337087631, -0.050006717443466187, -0.2946993410587311, -0.02117125317454338, -0.11205487698316574, -0.15543119609355927, -0.03641539439558983, -0.01933172717690468, 0.3741745948791504, -0.4930715262889862, 0.35591715574264526, -0.246977761387825, -0.13393832743167877, -0.13795337080955505, 0.009016945958137512, 0.1622430831193924, 0.047249969094991684, -0.3723032772541046, -0.013980725780129433, -0.18441571295261383, 0.1461019068956375, 0.30583322048187256, -0.09483824670314789, 0.10299066454172134, 0.008904337882995605, 0.037064939737319946, -0.5876752734184265, 0.10670188069343567, 0.026941493153572083, -0.20696207880973816, -0.04093101993203163, 0.11772654205560684, 0.23388192057609558, 0.11255612969398499, 0.2097989171743393, -0.010964144952595234, 0.14048855006694794, -0.2592790424823761, 0.003588639199733734, -0.2987799644470215, -0.2682057321071625, 0.2431945502758026, 0.1682780534029007, 0.25701189041137695, -0.025056272745132446, 0.5799676775932312, -0.08925683051347733, -0.1376330405473709, -0.18500807881355286, -0.008203040808439255, -0.2557288706302643, 0.4852348268032074, 0.11048728972673416, 0.10256873071193695, 0.09954409301280975, -0.08627000451087952, 0.04671930521726608, 0.4133331775665283, 0.05340777337551117, -0.14455793797969818, 0.05279148370027542, 0.21727079153060913, -0.5132226943969727, 0.16163362562656403, 0.47023552656173706, 0.5106544494628906, -0.031023290008306503, -0.04330921173095703, 0.18094688653945923, 0.21718302369117737, 0.08770536631345749, -0.21572408080101013, -0.19195514917373657, -0.0750129297375679, 0.04241132363677025, -0.17686395347118378, 0.37415146827697754, 0.04405517503619194, 0.15846583247184753, -0.26322293281555176, 0.4001310169696808, 0.22654059529304504, -0.12075401842594147, -0.23254570364952087, 0.14977608621120453, 0.43596285581588745, -0.2546743154525757, 0.07109513878822327, -0.06240243464708328, -0.2544454336166382, -0.038476377725601196, -0.0993884950876236, -0.036939021199941635, 0.26893147826194763, -0.4602845311164856, 0.3100157082080841, -0.3693743944168091, 0.05723414570093155, -0.36779454350471497, 0.07366232573986053, -0.16515107452869415, 0.08350718021392822, -0.0003395378589630127, -0.16917027533054352, -0.06507473438978195, -0.3578392267227173, -0.3593352437019348, 0.25743842124938965, 0.06951700150966644, 0.3801536560058594, 0.3835254907608032, -0.1553504317998886, -0.020475313067436218, -0.0836837887763977, 0.5714022517204285, -0.15620523691177368, -0.4705404043197632, 0.2725012004375458, 0.22940033674240112, -0.3887179493904114, 0.054818134754896164, -0.09529944509267807, 0.1669650375843048, -0.5454450845718384, 0.5598384141921997, -0.07030883431434631, -0.21775390207767487, 0.4023014008998871, 0.11583039164543152, 0.09911857545375824, 0.025843314826488495, -0.06983761489391327, 0.3210979104042053, -0.08308596909046173, -0.266103059053421, -0.1717466413974762, 0.38209766149520874, -0.11906732618808746, -0.09104441851377487, -0.39857861399650574, -0.4091421365737915, -0.08848260343074799, 0.22395655512809753, 0.38772085309028625, -0.06405569612979889, -0.25568315386772156, 0.27028053998947144, -0.33327051997184753, 0.35187286138534546, 0.13044454157352448, 0.035007596015930176, -0.523651659488678, -0.046871088445186615, -0.11965613067150116, 0.4337218105792999, -0.02207997441291809, -0.22081157565116882, 0.2770228981971741, -0.269449919462204, 0.1267731785774231, 0.05215603485703468, -0.13384369015693665, 0.16651807725429535, -0.009745377115905285, -0.431581050157547, -0.2191573828458786, 0.34863460063934326, 0.13536988198757172, 0.00842399150133133, 0.6973351836204529, 0.08338651806116104, -0.25659283995628357, -0.02528439275920391, -0.07337630540132523, 0.7857358455657959, 0.3151412606239319, 0.12898027896881104, 0.11360399425029755, -0.17760825157165527, 0.335287868976593, -0.052992939949035645, 0.34110212326049805, -0.27411648631095886, 0.057081449776887894, -0.24209293723106384, -0.08343786001205444, 0.4021308720111847, 0.18420349061489105, -0.3846096992492676, -0.0006988889072090387, -0.47041624784469604, 0.043435826897621155, -0.09100911766290665, -0.034900955855846405, -0.06108470261096954, -0.43375977873802185, -0.35398435592651367, 0.019238997250795364, -0.08363805711269379, -0.21316778659820557, -0.14750948548316956, -0.06586121022701263, -0.09817461669445038, 0.015809711068868637, -0.12657923996448517, 0.022488106042146683, -0.12427375465631485, 0.026780076324939728, 0.20640479028224945, -0.496812641620636, -0.1666461080312729, 0.07488574832677841, -0.19509463012218475, -0.07765688002109528, -0.10205386579036713, -0.14429903030395508, 0.21816480159759521, 0.154726043343544, 0.0675879418849945, -0.10689382255077362, -0.09027094393968582, 0.1711311936378479, -0.4106581211090088, 0.295350581407547, 0.07859848439693451, -0.35632920265197754, 0.21576610207557678, 0.13516178727149963, -0.21140550076961517, 0.017546113580465317, -0.047607723623514175, 0.17755016684532166, 0.19619090855121613, -0.13086256384849548, 0.11189991235733032, 0.2456720620393753, -0.051311343908309937, 0.05921958014369011, -0.07758189737796783, -0.41959840059280396, -0.12934303283691406, 0.5261604189872742, 0.043989911675453186, 0.07120425254106522, 0.15827305614948273, -0.04396952688694, -0.11548442393541336, -0.19957777857780457, 0.21845954656600952, 0.3122897148132324, -0.48854860663414, 0.10142914950847626, 0.3493882417678833, -0.1719629019498825, -0.11156193912029266, 0.2508728802204132, -0.10027928650379181, 0.5149896740913391, -0.3174560070037842, -0.3425138592720032, -0.2884974777698517, 0.14098477363586426, 0.2614496052265167, 0.14165180921554565, -0.19290250539779663, 0.055760327726602554, -0.05285034328699112, -0.3349054157733917, -0.24675583839416504, -0.2235088050365448, 0.10847965627908707, 0.03673769161105156, -0.05511496216058731, 0.17018412053585052, -0.031522687524557114, -0.13214853405952454, 0.21102111041545868, -0.05664826184511185, 0.04683399572968483, -0.21089768409729004, -0.026965752243995667, 0.1197662502527237, 0.037940606474876404, -0.19670438766479492, -0.02568972483277321, -0.21141408383846283, -0.4215814173221588, -0.3005753755569458, -0.05777372047305107, 0.39006921648979187, -0.2933141589164734, 0.19273000955581665, 0.007389191538095474, -0.12622177600860596, 0.05843782424926758, -0.13330458104610443, 0.10637805610895157, -0.2697782516479492, -0.12907348573207855, 0.31155842542648315, -0.014695151709020138, -0.023992221802473068, -0.11534955352544785, 0.14202828705310822, -0.08041723072528839, 0.15084655582904816, -0.10094215720891953, -0.01789848506450653, 0.106081023812294, 0.0043390667997300625, 0.21452802419662476, 0.19858011603355408, 0.06958986073732376, 0.13785549998283386, 0.11965471506118774, 0.19444836676120758, -0.25508958101272583, -0.32998350262641907, -0.1221533715724945, 0.4712205231189728, 0.2662368416786194, 0.08894642442464828, -0.30715107917785645, -0.17146827280521393, 0.2530725598335266, -0.035003162920475006, -0.006106949411332607, -0.3235415816307068, 0.38579702377319336, 0.5572221279144287, 0.1179557591676712, 0.059588473290205, 0.039697807282209396, 0.14062288403511047, 0.3361613154411316, 0.13380058109760284, -0.19475966691970825, 0.011188280768692493, 0.6011145114898682, -0.19567981362342834, -0.3244706988334656, -0.22755132615566254, -0.17713281512260437, 0.05764055252075195, -0.35207733511924744, 0.025901872664690018, 0.253410279750824, 0.04751112312078476, 0.0037974799051880836, 0.03821210190653801, 0.00471748411655426, -0.049100760370492935, -0.033311568200588226, -0.1532091647386551, -0.13394075632095337, -0.18074467778205872, -0.03900929540395737, -0.1634121984243393, -0.008155141025781631, -0.03645075857639313, 0.5291030406951904, -0.012298479676246643, 0.12848404049873352, -0.2611062526702881, 0.6372092366218567, 0.4024968445301056, 0.2966770529747009, 0.1472109705209732, -0.07210923731327057, 0.251096248626709, 0.12263715267181396, 0.1405630260705948, 0.10094226896762848, 0.22811752557754517, 0.35083991289138794, 0.19492857158184052, -0.010588373057544231, -0.18408003449440002, -0.152350515127182, 0.11539974808692932, -0.05421609431505203, 0.26886188983917236, -0.15540820360183716, 0.03732072934508324, 0.2149941325187683, -0.12380959093570709, 0.19230756163597107, -0.26102447509765625, 0.04077042639255524, -0.5898844003677368, 0.2387278974056244, 0.05487435683608055, -0.34070727229118347, 0.04479394108057022, 0.1309804916381836, 0.10031496733427048, -0.24785269796848297, 0.10445429384708405, 0.12096024304628372, -0.22258281707763672, -0.08952084928750992, 0.08419744670391083, 0.1150960624217987, 0.3001421093940735, -0.3738725781440735, 0.19101068377494812, -0.17730192840099335, -0.04354775696992874, -0.17618437111377716, -0.12033762782812119, 0.029822107404470444, -0.28082215785980225, -0.034840069711208344, 0.15664906799793243, 0.15484528243541718, -0.014283217489719391, 0.4911928176879883, 0.35643142461776733, 0.27080804109573364, 0.11973203718662262, -0.17299917340278625, 0.11041370034217834, 0.19084644317626953, 0.00025330111384391785, 0.011730644851922989, -0.42893075942993164, 0.3420019745826721, 0.27951234579086304, 0.05352120101451874, 0.06456157565116882, 0.0777079164981842, 0.004103850573301315, -0.17863036692142487, 0.41604378819465637, -0.009112641215324402, 0.022723063826560974, -0.0563519150018692, 0.38881075382232666, -0.31067216396331787, -0.12445412576198578, -0.2836526036262512, 0.38059282302856445, 0.12529005110263824, 0.07766657322645187, -0.3122366964817047, -0.17566253244876862, 0.06847493350505829, -0.10565581917762756, 0.041050828993320465, 0.382281631231308, -0.03771928697824478, 0.5629078149795532, 0.28324517607688904, -0.16166505217552185, -0.33426737785339355, -0.228357195854187, 0.11901364475488663, -0.050876274704933167, 0.004864796996116638, -0.1859394907951355, 0.04428212344646454, 0.0811174064874649, -0.40084290504455566, -0.09347604215145111, 0.19428163766860962, 0.2948789596557617, 0.04563882201910019, -0.3090929090976715, -0.11783464252948761, 0.20985636115074158, 0.11424003541469574, -0.2594253420829773, 0.16079048812389374, -0.13148783147335052, 0.12610872089862823, -0.06999829411506653, 0.14057260751724243, -0.05467594414949417, 0.07123170793056488, -0.19711966812610626, -0.476925253868103 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help ! Here is a few things about the current implementation: - A dataset object is a wrapper of one `pyarrow.Table` that contains the data - Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc. Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :) However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0). Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0. I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support.
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
230
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help ! Here is a few things about the current implementation: - A dataset object is a wrapper of one `pyarrow.Table` that contains the data - Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc. Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :) However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0). Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0. I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support.
[ -0.5330204963684082, 0.30334603786468506, -0.030163822695612907, 0.06750229001045227, -0.06257488578557968, -0.05822209268808365, 0.20944693684577942, 0.42557066679000854, -0.07458490133285522, 0.18278056383132935, -0.18690858781337738, 0.7275901436805725, -0.1599380075931549, 0.5724495053291321, -0.21956470608711243, -0.25871843099594116, 0.16445830464363098, 0.6102409362792969, -0.5832626819610596, 0.256436824798584, -0.25909024477005005, -0.10352741181850433, -0.39087897539138794, -0.20353151857852936, -0.47958603501319885, 0.20167779922485352, -0.2737208306789398, -0.04901526868343353, -0.2796461880207062, -0.3253386616706848, 0.31250816583633423, 0.23971620202064514, 0.15026549994945526, 0.20055118203163147, -0.00011996712419204414, 0.13694386184215546, -0.1574167162179947, -0.14259935915470123, -0.2051132619380951, -0.34256434440612793, -0.20794060826301575, -0.42376527190208435, 0.11098512262105942, 0.021435923874378204, 0.050926558673381805, -0.3994387984275818, 0.011584548279643059, -0.2094818353652954, -0.08471792936325073, 0.010630755685269833, 0.10653835535049438, 0.203095942735672, 0.14042474329471588, -0.03211062401533127, 0.18002749979496002, 0.2532162070274353, -0.27826088666915894, -0.016741763800382614, 0.15306955575942993, -0.278954416513443, -0.06802145391702652, 0.04278416186571121, 0.07802104949951172, -0.1596897840499878, -0.11548841744661331, 0.2264118790626526, -0.017162516713142395, -0.47590622305870056, 0.009977912530303001, 0.3201737701892853, 0.5716281533241272, -0.46084919571876526, -0.36778339743614197, -0.2338833510875702, 0.25345519185066223, -0.22183763980865479, 0.00012700259685516357, 0.37506359815597534, 0.01677072048187256, 0.2371690571308136, 0.1775348037481308, -0.057286158204078674, -0.3395475447177887, 0.24117159843444824, -0.01903582364320755, 0.4345144033432007, 0.1910940557718277, 0.2638528347015381, 0.23803122341632843, 0.06643448024988174, 0.1477772295475006, -0.04721876233816147, 0.009313475340604782, 0.384312242269516, -0.5604686141014099, -0.057488102465867996, -0.09188049286603928, -0.23312300443649292, 0.3174956738948822, 0.3900787830352783, 0.15426203608512878, 0.17872989177703857, -0.21723896265029907, 0.1800461709499359, 0.3443220257759094, 0.08064834773540497, 0.12062501907348633, 0.10886488109827042, 0.0886458307504654, -0.35766568779945374, 0.22691386938095093, 0.16562974452972412, -0.2526623010635376, -0.463550865650177, -0.19712723791599274, 0.008335351943969727, 0.08765578269958496, 0.32389533519744873, 0.03593596816062927, -0.18493077158927917, -0.14398282766342163, -0.025347154587507248, -0.03682940825819969, -0.015486478805541992, 0.047319114208221436, 0.6687628030776978, -0.0877523273229599, 0.35472702980041504, 0.058144621551036835, -0.2263713777065277, 0.024189671501517296, 0.15497563779354095, -0.11721460521221161, 0.018361521884799004, 0.282097727060318, -0.21734406054019928, -0.17620424926280975, 0.3253812789916992, 0.21790273487567902, 0.3356548547744751, 0.14472506940364838, -0.3521079123020172, 0.20805832743644714, 0.2606726586818695, 0.02591923251748085, -0.23906053602695465, 0.17450255155563354, -0.255428671836853, -0.1124650314450264, 0.5075584650039673, -0.08099865168333054, -0.16471797227859497, -0.5950244069099426, -0.04522699490189552, -0.27248746156692505, 0.03835467994213104, -0.4368537366390228, 0.4114598035812378, -0.12371743470430374, -0.11929783225059509, -0.050704292953014374, -0.07701409608125687, 0.18899181485176086, -0.367318332195282, 0.19486723840236664, 0.1620841771364212, -0.47985023260116577, 0.06677287817001343, 0.27553024888038635, -0.2665073871612549, 0.16133326292037964, -0.09319882094860077, -0.13690884411334991, -0.17831888794898987, -0.025108933448791504, 0.4001131057739258, 0.3169252574443817, -0.1422618180513382, -0.12864428758621216, -0.22779196500778198, -0.16533248126506805, 0.09837298840284348, 0.2961517870426178, 0.14049074053764343, 0.022777408361434937, 0.28623566031455994, 0.030266564339399338, 0.1991991549730301, 0.0826268121600151, 0.030240891501307487, -0.02661292999982834, -0.27150842547416687, 0.433552086353302, 0.23053716123104095, -0.002621334046125412, 0.016592830419540405, 0.20312651991844177, -0.8441980481147766, 0.46413442492485046, -0.3334346413612366, 0.3690650761127472, -0.12392082810401917, 0.2949066460132599, -0.22969619929790497, -0.0010061233770102262, -0.22396612167358398, -0.5165889263153076, 0.2283264398574829, 0.009054858237504959, 0.30676913261413574, -0.08041098713874817, -0.22153696417808533, 0.2335236668586731, -0.002000119537115097, -0.07993930578231812, 0.08084821701049805, -0.016499977558851242, -0.05487555265426636, 0.16996316611766815, -0.16567061841487885, -0.48165422677993774, 0.23820221424102783, 0.10831494629383087, -0.07152847945690155, -0.07733945548534393, 0.3713359236717224, 0.15702494978904724, -0.08708704262971878, -0.17436912655830383, 0.361518919467926, -0.018146783113479614, -0.02060532383620739, 0.3296247720718384, 0.46353334188461304, -0.13774925470352173, -0.16791905462741852, 0.10019849240779877, 0.1087241992354393, -0.02094283141195774, 0.052941251546144485, -0.027797548100352287, -0.624505341053009, 0.18701964616775513, 0.05022897571325302, 0.09454892575740814, 0.7123305797576904, -0.30656179785728455, 0.07651661336421967, 0.015487268567085266, 0.05442193150520325, 0.20535512268543243, 0.048710618168115616, -0.23585636913776398, -0.204067662358284, -0.06400375068187714, 0.4038099944591522, -0.1281862109899521, 0.16969610750675201, -0.559810221195221, 0.18756908178329468, 0.331805020570755, 0.05768141523003578, 0.06055305525660515, -0.02586771547794342, -0.06261690706014633, -0.010134430602192879, 0.21753425896167755, -0.044055819511413574, 0.44754987955093384, 0.28909432888031006, -0.02747144177556038, 0.03435489535331726, -0.3288680911064148, 0.030277889221906662, 0.12461809068918228, -0.11248910427093506, 0.1410583257675171, 0.48018068075180054, 0.3467618227005005, -0.0932764932513237, -0.0006991922855377197, -0.27006417512893677, 0.1327156275510788, 0.27615487575531006, -0.26118022203445435, -0.16467781364917755, -0.5461024641990662, 0.10187197476625443, -0.14799998700618744, -0.4510299563407898, -0.0061001256108284, -0.06524921953678131, -0.008342288434505463, 0.1660645604133606, -0.12945377826690674, 0.39923954010009766, -0.3121037781238556, 0.31034526228904724, -0.45500320196151733, 0.009177793748676777, -0.13864782452583313, -0.07531770318746567, 0.07938387989997864, 0.023025698959827423, 0.006654164753854275, -0.1259334534406662, -0.1096000224351883, 0.0941341370344162, 0.10091019421815872, -0.11673719435930252, -0.09248043596744537, 0.0472542829811573, -0.11761429905891418, -0.25933876633644104, 0.15836173295974731, -0.08502523601055145, -0.18460121750831604, -0.16187115013599396, 0.05966917425394058, 0.2899073362350464, -0.17023363709449768, 0.1635431945323944, -0.04806086793541908, 0.14157700538635254, -0.2636123299598694, -0.15413859486579895, -0.3244241774082184, -0.2585848867893219, 0.4762250781059265, 0.081650510430336, 0.2547368109226227, 0.029736075550317764, 0.4941404461860657, -0.0699385404586792, 0.0058190831914544106, -0.056587301194667816, 0.06859705597162247, -0.24809983372688293, 0.4400031864643097, -0.07902539521455765, -0.1334136724472046, 0.05097426846623421, -0.26915624737739563, 0.030182555317878723, 0.396906316280365, 0.0643414556980133, -0.04428630694746971, -0.003954732790589333, 0.581007719039917, -0.2796827554702759, 0.22663575410842896, 0.4895675480365753, 0.5526222586631775, 0.0019503869116306305, -0.036597490310668945, -0.001903565600514412, 0.1531601846218109, 0.21481576561927795, -0.35286736488342285, -0.04443956911563873, -0.2058761715888977, 0.2725045382976532, 0.22328326106071472, 0.0741393119096756, -0.05531874671578407, 0.4579606056213379, -0.22359222173690796, 0.4109129309654236, 0.1331118643283844, -0.10935889184474945, -0.11760028451681137, -0.1932198405265808, 0.47282904386520386, -0.2240561991930008, 0.02942555770277977, -0.03826172649860382, -0.28821349143981934, 0.07382291555404663, -0.3293464183807373, 0.0006596334278583527, 0.38741427659988403, -0.2322068214416504, 0.16984346508979797, -0.24076248705387115, -0.14992333948612213, -0.3715642988681793, 0.11804751306772232, -0.2668708562850952, 0.006067939102649689, 0.10967094451189041, -0.20999176800251007, -0.18682171404361725, -0.4137236773967743, -0.43798214197158813, 0.2904355525970459, 0.23372061550617218, 0.1537482738494873, 0.4324120283126831, -0.29063594341278076, -0.036441683769226074, -0.1638883352279663, 0.8776171207427979, -0.047125302255153656, -0.4652526378631592, 0.30306363105773926, 0.07659109681844711, -0.3506370186805725, 0.04727001115679741, 0.04817407950758934, 0.3198091685771942, -0.34622180461883545, 0.31920325756073, -0.2881578803062439, -0.22756551206111908, 0.39362820982933044, 0.19903431832790375, 0.08159239590167999, 0.08937197923660278, -0.13402380049228668, 0.079969622194767, -0.05849596858024597, -0.26852262020111084, -0.08787975460290909, 0.4243321418762207, -0.30545541644096375, -0.04231978952884674, -0.30290964245796204, -0.22516611218452454, -0.06799463927745819, 0.24959887564182281, 0.3446759879589081, 0.014223066158592701, 0.055949922651052475, -0.038429439067840576, -0.093084916472435, 0.5758819580078125, 0.36566296219825745, -0.12642526626586914, -0.3438643515110016, -0.042365267872810364, -0.07917294651269913, 0.4678761661052704, -0.10071896016597748, 0.08412628620862961, 0.3410399556159973, -0.28840547800064087, -0.04565000534057617, -0.1305132508277893, -0.07454503327608109, 0.029849041253328323, -0.01392459962517023, -0.4618701636791229, -0.25576382875442505, 0.36745011806488037, 0.1260504126548767, -0.0256790891289711, 0.4639911949634552, 0.08298049122095108, -0.19042769074440002, 0.020783931016921997, 0.009859465062618256, 0.896676242351532, 0.05962332338094711, 0.27570003271102905, 0.2567472457885742, -0.29812049865722656, 0.35580629110336304, -0.18126042187213898, 0.3097746968269348, -0.3066490888595581, -0.02955559641122818, -0.260418564081192, -0.1996922791004181, 0.34073325991630554, 0.2249898612499237, -0.37197789549827576, -0.06442941725254059, -0.3056958317756653, -0.2230791449546814, 0.017306482419371605, 0.08089525997638702, -0.023419050499796867, -0.44179582595825195, -0.18499460816383362, -0.06379856914281845, -0.10601390898227692, -0.3592424988746643, -0.16936492919921875, -0.04108696058392525, -0.1509801596403122, 0.09852083027362823, -0.24366246163845062, 0.09951185435056686, -0.02471046894788742, 0.1652131825685501, 0.33168864250183105, -0.3736480474472046, 0.033936139196157455, 0.220798522233963, -0.2576709985733032, -0.2243202179670334, -0.013242674991488457, -0.0969540923833847, 0.1727023422718048, 0.10695064067840576, 0.19696304202079773, -0.15761101245880127, 0.20149584114551544, 0.14748111367225647, -0.4610094428062439, 0.1778365969657898, -0.00691999401897192, -0.4613775610923767, 0.14203378558158875, 0.20879724621772766, -0.0012905076146125793, 0.04770496487617493, -0.002193042542785406, 0.39764127135276794, 0.2397095263004303, -0.2630530297756195, 0.015645131468772888, 0.3175116181373596, -0.08653418719768524, 0.29005613923072815, -0.32615727186203003, -0.2962743043899536, -0.18087948858737946, 0.47144633531570435, 0.030673516914248466, 0.3516022562980652, 0.2016853392124176, 0.2436855584383011, -0.16987521946430206, -0.10799951106309891, 0.04979277402162552, 0.3055420517921448, -0.395081102848053, -0.04739931598305702, 0.20836839079856873, -0.06494223326444626, -0.1075996682047844, 0.29531434178352356, -0.011464443057775497, 0.4027717113494873, -0.2436492145061493, -0.24601145088672638, -0.3364080488681793, 0.24800187349319458, 0.3166215717792511, 0.1127137765288353, 0.22145244479179382, 0.27416402101516724, 0.1236608624458313, -0.06522206217050552, -0.20847254991531372, -0.04214105010032654, 0.005393093451857567, 0.06776414066553116, 0.0958334356546402, 0.10079699754714966, -0.1477748602628708, -0.1431112289428711, 0.13756096363067627, -0.025218181312084198, 0.016736723482608795, -0.12084407359361649, -0.10744455456733704, 0.12390830367803574, 0.09086599946022034, -0.21394528448581696, -0.09857501089572906, -0.14876213669776917, -0.30237388610839844, -0.3176001310348511, 0.057412344962358475, 0.4234732389450073, -0.3227654695510864, 0.18676769733428955, 0.18931713700294495, 0.010110955685377121, -0.051512785255908966, 0.07075183838605881, 0.13033853471279144, -0.10487610101699829, -0.05624547228217125, 0.4097558557987213, -0.06040966510772705, -0.08422830700874329, -0.13493455946445465, 0.09766265004873276, 0.03293551504611969, -0.057347945868968964, 0.01103316992521286, -0.1591789573431015, -0.1203739196062088, -0.18424676358699799, 0.38841328024864197, 0.1567457616329193, 0.24980062246322632, 0.19566397368907928, 0.3727385103702545, 0.13252022862434387, -0.32042166590690613, -0.29836374521255493, 0.00819406844675541, 0.27535247802734375, 0.2538132965564728, 0.04341718554496765, -0.12070374190807343, 0.05668516457080841, -0.07819125056266785, -0.04798515513539314, -0.022124122828245163, 0.03592551127076149, 0.25580543279647827, 0.3084743320941925, 0.07048024237155914, 0.07202385365962982, 0.0009232033044099808, 0.10664890706539154, 0.2689951956272125, -0.06864830106496811, -0.264777809381485, 0.2673962414264679, 0.2540489435195923, -0.22514775395393372, -0.14450818300247192, -0.35737597942352295, -0.0025073736906051636, 0.20049433410167694, 0.0413186252117157, 0.06454888731241226, 0.14556272327899933, 0.4730021357536316, -0.008635691367089748, -0.11924944072961807, 0.03738296031951904, 0.21186783909797668, 0.013072380796074867, -0.12054850161075592, -0.3114871680736542, -0.3096056878566742, 0.015065222978591919, 0.05577503517270088, -0.04598398134112358, -0.19405727088451385, 0.6482999324798584, -0.06100265681743622, 0.06689322739839554, -0.2883146107196808, 0.5695887207984924, 0.3132677674293518, 0.1505686491727829, 0.08334258198738098, -0.07363411039113998, 0.3232864737510681, -0.12680624425411224, -0.01768244057893753, 0.11624176055192947, 0.4105454981327057, 0.23407234251499176, 0.07170030474662781, -0.13173678517341614, -0.1633085310459137, -0.09184391051530838, -0.1385728418827057, -0.06357188522815704, 0.14023824036121368, -0.05254602059721947, 0.32715269923210144, 0.15707695484161377, -0.017753450199961662, -0.016492236405611038, 0.13229931890964508, 0.31119605898857117, -0.549384593963623, -0.06833731383085251, 0.10636691749095917, -0.4318336844444275, 0.3776520788669586, 0.048013363033533096, 0.0639217272400856, -0.14424899220466614, 0.14440733194351196, 0.012583164498209953, -0.17129865288734436, -0.06714802235364914, 0.033333659172058105, 0.3119400143623352, 0.35725995898246765, -0.0917431116104126, 0.2588999271392822, -0.25079646706581116, -0.03641141578555107, -0.24577833712100983, -0.05832437425851822, 0.03264462575316429, -0.3628959655761719, -0.11463502794504166, 0.19665350019931793, 0.31551656126976013, 0.06403262168169022, 0.23176205158233643, 0.24202238023281097, 0.34509024024009705, 0.41100049018859863, -0.23254650831222534, 0.12463855743408203, 0.16206499934196472, -0.06968467682600021, -0.03616403788328171, -0.35529008507728577, 0.3243926167488098, 0.41096916794776917, -0.014768797904253006, -0.1718633472919464, 0.13300298154354095, 0.14790542423725128, 0.029481230303645134, 0.503077507019043, 0.0799616351723671, 0.2476205676794052, -0.15212589502334595, 0.19690676033496857, -0.3423464894294739, -0.14396297931671143, -0.38802722096443176, 0.2662149965763092, 0.0031733661890029907, 0.10380765795707703, -0.32139116525650024, 0.0565839521586895, 0.011689914390444756, -0.011398104019463062, 0.09058983623981476, 0.5292709469795227, 0.03206489235162735, 0.2856718599796295, 0.23152092099189758, -0.30145999789237976, -0.20426896214485168, -0.05371847003698349, 0.09425534307956696, -0.044644832611083984, -0.11672508716583252, -0.06065052002668381, 0.0480538010597229, -0.06290079653263092, -0.36543673276901245, -0.26245543360710144, -0.09960684180259705, 0.09685550630092621, 0.04323846846818924, -0.28772857785224915, -0.1671687811613083, 0.24555137753486633, 0.1739555299282074, -0.2317967414855957, 0.21708764135837555, -0.18213261663913727, -0.06757422536611557, -0.2149738371372223, 0.2838035225868225, -0.16064253449440002, -0.22837316989898682, -0.14636819064617157, -0.5240388512611389 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
@lhoestq, we have two Pull Requests to implement: - Dataset.add_item: #1870 - Dataset.add_column: #2145 which add a single row or column, repectively. The request here is to implement the concatenation of *multiple* rows/columns. Am I right? We should agree on the API: - `concatenate_datasets` with `axis`? - other Dataset method name?
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
51
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) @lhoestq, we have two Pull Requests to implement: - Dataset.add_item: #1870 - Dataset.add_column: #2145 which add a single row or column, repectively. The request here is to implement the concatenation of *multiple* rows/columns. Am I right? We should agree on the API: - `concatenate_datasets` with `axis`? - other Dataset method name?
[ -0.26593783497810364, -0.09517187625169754, -0.0820605531334877, 0.0408308170735836, -0.2382575124502182, 0.10751894861459732, 0.29300248622894287, 0.25326329469680786, 0.07052086293697357, 0.16365543007850647, -0.004881374072283506, 0.3495402932167053, -0.027493875473737717, 0.506087064743042, -0.02207985520362854, -0.0006611719727516174, 0.29386135935783386, 0.5536043047904968, -0.258451372385025, 0.0008193664252758026, -0.5191208124160767, 0.061234258115291595, -0.4006462097167969, -0.20113544166088104, -0.15115909278392792, 0.17109011113643646, -0.42366355657577515, -0.09227956086397171, -0.35382208228111267, -0.0868462398648262, 0.3892126977443695, 0.18713560700416565, 0.024768274277448654, 0.2834435701370239, -0.00011846955749206245, -0.012050341814756393, 0.00873691588640213, -0.12220020592212677, 0.031464312225580215, -0.2648957371711731, -0.48813241720199585, -0.5036522746086121, 0.08924991637468338, -0.17697195708751678, 0.13514438271522522, -0.4490814507007599, 0.11389289796352386, -0.30926182866096497, 0.04005051404237747, 0.17618416249752045, 0.10283974558115005, -0.21886126697063446, 0.0002188161015510559, -0.10637365281581879, 0.021072454750537872, 0.33904916048049927, -0.04241928085684776, -0.2795719504356384, 0.1721026450395584, 0.11126799881458282, 0.08024436980485916, 0.012746498920023441, 0.18220369517803192, -0.04792076721787453, 0.1250523030757904, 0.1816176474094391, 0.08067899197340012, -0.4402329623699188, 0.18589302897453308, 0.21435245871543884, 0.738568127155304, -0.15965977311134338, -0.19482359290122986, 0.1284778118133545, 0.3589211404323578, -0.033519938588142395, -0.13782057166099548, 0.3503245711326599, 0.08048799633979797, 0.01624806597828865, -0.10921075195074081, -0.3514396548271179, -0.2742879390716553, 0.4549538493156433, -0.24899916350841522, 0.41600435972213745, 0.05179630592465401, 0.2449573576450348, -0.14352719485759735, -0.27319467067718506, 0.15686291456222534, -0.25877371430397034, -0.013394244015216827, 0.39348119497299194, -0.776280403137207, -0.06545513868331909, -0.0358731746673584, -0.17217612266540527, 0.3520599603652954, 0.28765177726745605, 0.2437448352575302, 0.012642478570342064, -0.1284734606742859, 0.17597903311252594, 0.1850312501192093, 0.10463845729827881, 0.3357362151145935, 0.17963865399360657, 0.037242770195007324, -0.07985768467187881, 0.3408166170120239, 0.11167823523283005, -0.3545677363872528, -0.22872397303581238, -0.2912500500679016, -0.003348216414451599, 0.10975715517997742, 0.21961572766304016, -0.05718196928501129, -0.17502005398273468, -0.49876055121421814, -0.27617347240448, -0.04220268875360489, -0.27245885133743286, 0.3980248272418976, 0.703944981098175, 0.0774432122707367, 0.15475159883499146, 0.46074795722961426, -0.026079654693603516, -0.13667666912078857, 0.33829718828201294, 0.06476417183876038, 0.12971027195453644, 0.14350928366184235, -0.3264363706111908, -0.16158078610897064, 0.36666741967201233, 0.2250950187444687, -0.009887665510177612, 0.24468004703521729, -0.20903824269771576, -0.02384813129901886, 0.2617446780204773, 0.10085110366344452, -0.25307852029800415, 0.03685670346021652, -0.1425589770078659, -0.14163359999656677, 0.5437421202659607, -0.4550882577896118, -0.06203387305140495, -0.36322730779647827, 0.09478665143251419, 0.11421993374824524, 0.0765891820192337, -0.398735374212265, 0.5860465168952942, 0.041075874119997025, -0.06140588968992233, 0.20560234785079956, 0.06568334996700287, 0.28461137413978577, -0.21947842836380005, 0.16270582377910614, 0.11275526136159897, -0.36279577016830444, -0.07645907998085022, -0.07115444540977478, -0.11910432577133179, 0.09069758653640747, 0.11035734415054321, -0.3048972487449646, -0.015397496521472931, -0.14552752673625946, 0.36767858266830444, 0.7453734278678894, -0.5776739716529846, 0.06772539764642715, -0.017983969300985336, -0.1502818465232849, -0.23754753172397614, 0.3531588613986969, -0.03432217985391617, 0.2178143858909607, 0.2114296853542328, 0.4623914957046509, -0.034803327172994614, -0.10179165005683899, -0.16770431399345398, 0.15605512261390686, -0.40271905064582825, 0.2917555570602417, 0.07371239364147186, -0.0802060067653656, 0.09350915253162384, 0.10632205009460449, -0.5713728666305542, 0.3373342752456665, -0.29977113008499146, 0.11355329304933548, -0.16648507118225098, 0.18330565094947815, -0.42577141523361206, -0.0045941052958369255, -0.08610308170318604, -0.7237887382507324, -0.13075819611549377, 0.05305461585521698, 0.20055954158306122, 0.21886609494686127, -0.25946420431137085, 0.051768772304058075, -0.22079792618751526, 0.008627954870462418, 0.20655812323093414, 0.05006612092256546, 0.16799518465995789, -0.0919821560382843, -0.2912176847457886, -0.5517225861549377, 0.28898319602012634, 0.06755001842975616, 0.058534443378448486, -0.28958243131637573, 0.21759991347789764, 0.23404456675052643, 0.10961449891328812, -0.03634006902575493, 0.12333261966705322, 0.07666504383087158, -0.2965348958969116, 0.3771734833717346, 0.45475104451179504, -0.24958102405071259, -0.10067489743232727, 0.22629523277282715, 0.2702121138572693, 0.2350306212902069, 0.4021570682525635, 0.03610562905669212, -0.6281509399414062, 0.2069537192583084, -0.1773710548877716, -0.019584812223911285, 0.2576199471950531, -0.18272046744823456, 0.03365723788738251, -0.11275990307331085, 0.009082332253456116, 0.1381789594888687, 0.15898765623569489, -0.4199894964694977, -0.24422132968902588, 0.06356991082429886, 0.40598922967910767, -0.031737275421619415, 0.03876284882426262, -0.24678011238574982, 0.043440449982881546, 0.5327414870262146, -0.1416109949350357, -0.02195112407207489, 0.145393505692482, 0.07748492062091827, -0.1550808548927307, 0.2595832645893097, 0.17130912840366364, 0.5673297047615051, 0.16902270913124084, -0.172348290681839, 0.05359022319316864, 0.06606972962617874, -0.05084100738167763, 0.14771424233913422, 0.09795521199703217, 0.12576927244663239, 0.2814124524593353, 0.4114007353782654, -0.10377033054828644, -0.06347901374101639, -0.35522225499153137, 0.3785521388053894, 0.1729941964149475, 0.008406952023506165, -0.16155046224594116, -0.247861847281456, 0.027167797088623047, -0.10617225617170334, -0.34472280740737915, -0.05361462011933327, -0.27098536491394043, -0.1538494974374771, -0.22575047612190247, 0.018999401479959488, 0.43020570278167725, -0.3312758505344391, 0.5477537512779236, -0.3603268265724182, -0.06783193349838257, -0.06291235983371735, 0.2237071692943573, 0.14455470442771912, 0.03307558596134186, -0.2828634977340698, -0.22020895779132843, 0.16126079857349396, -0.2060234695672989, 0.317912757396698, -0.1629028618335724, -0.18113923072814941, 0.19741085171699524, -0.1518646478652954, -0.5007157921791077, 0.3635140359401703, -0.08279381692409515, -0.14280182123184204, -0.1541326940059662, 0.05812627449631691, 0.335432767868042, -0.15428271889686584, -0.04681330919265747, -0.01960928738117218, 0.12233500182628632, -0.32681742310523987, -0.18042650818824768, -0.22629320621490479, -0.2809426784515381, 0.23001162707805634, 0.11760003864765167, 0.2725909948348999, -0.1568996012210846, -0.012717625126242638, -0.0007028109394013882, 0.16914723813533783, -0.1735595464706421, -0.17792682349681854, -0.40137556195259094, 0.2534334659576416, 0.022535735741257668, -0.0000553131103515625, 0.08472158014774323, 0.0013698935508728027, 0.1821194291114807, 0.5443748235702515, 0.044885002076625824, -0.515465497970581, 0.0607241690158844, 0.4005959630012512, -0.18208356201648712, 0.05265910178422928, 0.6426966190338135, 0.3233400881290436, -0.040367089211940765, -0.06730019301176071, -0.20639441907405853, 0.2793900668621063, 0.4032500982284546, -0.3642905354499817, 0.2013048529624939, 0.27513012290000916, 0.09296876192092896, 0.06225588917732239, 0.5054621696472168, 0.039362747222185135, 0.2922307550907135, -0.07761810719966888, 0.19920553267002106, 0.1672184020280838, -0.1365303248167038, -0.1519123911857605, 0.11843731999397278, 0.3083663582801819, -0.04675242304801941, -0.03858407214283943, -0.09227025508880615, -0.326947420835495, 0.15839359164237976, -0.23372837901115417, 0.04200705513358116, 0.10478565096855164, -0.4960404634475708, 0.44815319776535034, -0.29916244745254517, -0.1178070604801178, -0.3616158664226532, 0.16856271028518677, -0.2411232441663742, 0.34342846274375916, 0.008373543620109558, -0.15590299665927887, -0.14632008969783783, -0.21153193712234497, -0.5169851183891296, 0.6049099564552307, 0.13319481909275055, 0.46926572918891907, 0.25551390647888184, 0.08060240000486374, -0.0036339983344078064, -0.24869801104068756, 0.68287193775177, -0.1374824494123459, -0.7627075910568237, 0.18823926150798798, 0.15651355683803558, 0.07625371962785721, 0.07386590540409088, -0.08900943398475647, 0.20125509798526764, 0.08607693761587143, 0.568938136100769, -0.45527276396751404, -0.1842132806777954, 0.39028453826904297, -0.09375003725290298, 0.13547459244728088, -0.024196691811084747, 0.03892193362116814, -0.22805356979370117, -0.020322522148489952, -0.5453960299491882, -0.03476263955235481, 0.36509931087493896, 0.09494680911302567, -0.006566356867551804, -0.09063078463077545, -0.39018216729164124, 0.08621785044670105, 0.012913839891552925, 0.015607746317982674, 0.13196173310279846, -0.1676279753446579, -0.024961762130260468, -0.18801233172416687, 0.5056000351905823, 0.3024643659591675, -0.07286976277828217, -0.5819800496101379, 0.06695802509784698, -0.3535192906856537, 0.3753158748149872, -0.034073829650878906, 0.09153877198696136, 0.42779454588890076, -0.23315364122390747, -0.0033343061804771423, -0.01822774112224579, -0.0767425075173378, 0.3826945126056671, -0.04693586379289627, -0.5235781669616699, -0.414722204208374, 0.2101317048072815, 0.2485020011663437, -0.016555100679397583, 0.49876561760902405, 0.2634548246860504, -0.3296017050743103, -0.201748326420784, -0.012910380959510803, 0.9365916848182678, 0.1939230114221573, 0.18094134330749512, -0.004417184740304947, -0.39747220277786255, 0.5606544613838196, -0.23243694007396698, 0.392220675945282, -0.1786492019891739, 0.030049223452806473, -0.32815229892730713, -0.18854619562625885, 0.4826352298259735, 0.1770554780960083, -0.45715850591659546, 0.16328494250774384, -0.23889678716659546, 0.18455584347248077, -0.08811140805482864, -0.03141997754573822, -0.006057547405362129, -0.4417264759540558, -0.33298733830451965, 0.06668439507484436, -0.28736019134521484, -0.3360757827758789, -0.3041711449623108, -0.07941626757383347, -0.044330108910799026, -0.06425304710865021, -0.3397367298603058, -0.13882210850715637, 0.11101015657186508, 0.15226201713085175, 0.13475407660007477, -0.6152998805046082, -0.06190062686800957, -0.08270666003227234, -0.13498370349407196, -0.2727528214454651, 0.15391211211681366, -0.15075410902500153, 0.03381558880209923, 0.0909772515296936, -0.004652315750718117, -0.2258453071117401, 0.25384724140167236, 0.08826566487550735, -0.18790528178215027, 0.3396710753440857, 0.1121063157916069, -0.4694492816925049, -0.1654672771692276, 0.3670760989189148, -0.1243225634098053, -0.09133993834257126, -0.080234095454216, 0.4779295325279236, 0.273166686296463, -0.10572373867034912, 0.028695814311504364, 0.3009195327758789, -0.002481236355379224, 0.2158421277999878, -0.3237309455871582, -0.13054336607456207, -0.09941405057907104, 0.32089507579803467, 0.13218070566654205, -0.17055395245552063, 0.16590112447738647, -0.04406838119029999, -0.11695484817028046, -0.05414185672998428, 0.31380119919776917, 0.26106223464012146, -0.3240877091884613, 0.003710455261170864, 0.05745173618197441, -0.08410674333572388, 0.03617337718605995, 0.38601458072662354, -0.08119204640388489, 0.4857616424560547, -0.04531549662351608, -0.27221718430519104, -0.1927318274974823, 0.17526520788669586, 0.2161034345626831, 0.11993773281574249, 0.09926880151033401, 0.025799278169870377, 0.08731169253587723, -0.09039167314767838, -0.20350955426692963, -0.1518654078245163, -0.22553177177906036, 0.0990365743637085, 0.034471411257982254, 0.10196151584386826, -0.13220903277397156, 0.043380338698625565, 0.11760227382183075, -0.030901409685611725, -0.03627443686127663, -0.0832623541355133, 0.01340104267001152, 0.1989130824804306, 0.2718922793865204, -0.08293841034173965, 0.1289585530757904, -0.14536894857883453, -0.4257694482803345, -0.11303748190402985, 0.12396743893623352, 0.17967399954795837, -0.21576739847660065, 0.10306018590927124, 0.1339566707611084, -0.06093335896730423, -0.13703837990760803, 0.020814020186662674, 0.3245588541030884, 0.07075102627277374, -0.23782853782176971, 0.3518878221511841, 0.029448501765727997, -0.052232809364795685, -0.28711754083633423, 0.3617918789386749, 0.23777984082698822, 0.19157785177230835, -0.039392225444316864, -0.14103007316589355, 0.10228711366653442, -0.04102908447384834, 0.2688399851322174, 0.3218468427658081, -0.15696591138839722, 0.1806853860616684, -0.03666430339217186, 0.0841388925909996, -0.16167683899402618, -0.3302041292190552, 0.11165325343608856, 0.48736563324928284, 0.1295972764492035, 0.10546299815177917, -0.3884117007255554, -0.002156652510166168, 0.09172208607196808, 0.005239283666014671, 0.28831079602241516, -0.2763764262199402, 0.3092470169067383, 0.14307105541229248, -0.09110429883003235, 0.14552725851535797, 0.13068591058254242, 0.30280801653862, 0.06554345786571503, 0.029153931885957718, -0.02924070507287979, 0.024199355393648148, 0.6329200267791748, -0.3214024305343628, 0.33079904317855835, -0.1272870898246765, -0.06668862700462341, 0.2555523216724396, -0.025782838463783264, 0.15827308595180511, 0.3990778625011444, -0.19103014469146729, -0.07080098986625671, 0.009881770238280296, -0.061714209616184235, 0.15844035148620605, -0.09086859971284866, 0.015438808128237724, -0.19807328283786774, -0.15927612781524658, -0.05269584059715271, -0.057569146156311035, 0.044972874224185944, 0.06798678636550903, 0.46515941619873047, -0.010676063597202301, 0.05339117348194122, -0.15824632346630096, 0.41887959837913513, 0.09250818192958832, 0.16021665930747986, 0.011797178536653519, 0.10064844787120819, 0.4103652834892273, -0.15884973108768463, 0.27220243215560913, 0.1824040561914444, 0.06969094276428223, 0.16286811232566833, 0.4065340757369995, 0.03449802100658417, -0.22438257932662964, -0.03645545616745949, 0.04983554035425186, 0.010300976224243641, 0.14318722486495972, -0.21743552386760712, 0.07596191763877869, 0.17735780775547028, -0.00047112442553043365, 0.49572333693504333, -0.007762502878904343, -0.06013955548405647, -0.7930127382278442, 0.4609392583370209, -0.20922601222991943, -0.4095275104045868, 0.21614886820316315, 0.16525404155254364, -0.0257304348051548, -0.15910173952579498, -0.09524387121200562, 0.16305112838745117, -0.08591407537460327, -0.13666807115077972, 0.060592591762542725, 0.08560225367546082, 0.2372966706752777, -0.11112146079540253, 0.13979655504226685, -0.1057884618639946, -0.2706924080848694, -0.1531239151954651, -0.10155872255563736, 0.21892490983009338, -0.387680321931839, -0.137024387717247, 0.13947971165180206, 0.3020132780075073, -0.10610631108283997, 0.2027367204427719, 0.11052908003330231, 0.06593593209981918, 0.1947050839662552, -0.09488659352064133, 0.07330602407455444, 0.3137877583503723, -0.16034035384655, 0.002822907641530037, -0.2452966868877411, 0.21662627160549164, 0.22228670120239258, -0.07235419750213623, -0.21092620491981506, 0.042626671493053436, 0.23660844564437866, -0.310065358877182, 0.16151541471481323, 0.13290509581565857, 0.1775902807712555, -0.2898866534233093, 0.2474561631679535, -0.0665624737739563, -0.05180475115776062, -0.5047511458396912, 0.38558024168014526, -0.21739527583122253, 0.016994833946228027, -0.2887919545173645, -0.1012297123670578, 0.14278221130371094, -0.07874127477407455, -0.05396413430571556, 0.25237637758255005, -0.1317422240972519, 0.3597709536552429, 0.09791750460863113, -0.4467118978500366, 0.05432415381073952, 0.0797116756439209, 0.14064565300941467, -0.007527487352490425, -0.007246717810630798, -0.05959632247686386, 0.0752679705619812, -0.049971215426921844, -0.2651262581348419, -0.2647547721862793, 0.060716092586517334, 0.06972600519657135, -0.01226404495537281, -0.2821730971336365, -0.3014073669910431, 0.45390915870666504, 0.041973695158958435, -0.40509068965911865, 0.38522809743881226, -0.028943531215190887, -0.2723312973976135, -0.25895267724990845, 0.14567196369171143, -0.021031640470027924, -0.11971158534288406, -0.10887566208839417, -0.21658985316753387 ]
https://github.com/huggingface/datasets/issues/853
concatenate_datasets support axis=0 or 1 ?
For the API, I like `concatenate_datasets` with `axis` personally :) From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns). Regarding what we need to implement: The axis=0 is already supported and is the current behavior of `concatenate_datasets`. Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library). To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally. I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column. Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ? `axis` could also be an argument of `ConcatenationTable.from_tables`
I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
158
concatenate_datasets support axis=0 or 1 ? I want to achieve the following result ![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png) For the API, I like `concatenate_datasets` with `axis` personally :) From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns). Regarding what we need to implement: The axis=0 is already supported and is the current behavior of `concatenate_datasets`. Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library). To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally. I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column. Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ? `axis` could also be an argument of `ConcatenationTable.from_tables`
[ -0.3482716679573059, 0.064576655626297, -0.08929747343063354, 0.14640745520591736, -0.004705701023340225, 0.06871242076158524, 0.17819425463676453, 0.4301658570766449, -0.055001869797706604, 0.16881991922855377, -0.040702976286411285, 0.5322625637054443, -0.17968854308128357, 0.44571763277053833, -0.17664887011051178, -0.12986892461776733, 0.26697197556495667, 0.6772682666778564, -0.5987268686294556, 0.15211430191993713, -0.2508705258369446, 0.09974373877048492, -0.3959633708000183, -0.3213891386985779, -0.24887722730636597, 0.19814585149288177, -0.3766765296459198, -0.18627837300300598, -0.3892166316509247, -0.2522886097431183, 0.4810889959335327, 0.41998055577278137, 0.1927003264427185, 0.24351975321769714, -0.00011308753164485097, 0.1142905205488205, -0.15810391306877136, -0.14430484175682068, -0.1761360764503479, -0.45647144317626953, -0.3388723134994507, -0.4732194244861603, 0.055009208619594574, -0.038194671273231506, -0.007904382422566414, -0.43937763571739197, -0.09832790493965149, -0.4240879416465759, -0.1667996197938919, 0.06781773269176483, 0.19138361513614655, -0.19836245477199554, -0.046788498759269714, -0.14681176841259003, 0.034169867634773254, 0.29060134291648865, -0.28976279497146606, -0.3481403589248657, 0.027352288365364075, -0.008638160303235054, 0.11546269804239273, -0.025833595544099808, -0.06897016614675522, -0.15571202337741852, 0.2706196904182434, 0.08088207244873047, 0.1776648759841919, -0.4447636008262634, 0.09396084398031235, 0.34371986985206604, 0.6369030475616455, -0.40481773018836975, -0.22292566299438477, -0.060525763779878616, 0.2747727334499359, -0.12325860559940338, -0.036623746156692505, 0.2869488298892975, 0.20618541538715363, 0.11650922894477844, 0.03601662442088127, -0.12165861576795578, -0.41846245527267456, 0.4105968475341797, -0.06517676264047623, 0.5333596467971802, 0.0679955929517746, 0.16430023312568665, 0.20928043127059937, -0.16215762495994568, 0.17805206775665283, -0.3050980269908905, -0.1483658254146576, 0.43829119205474854, -0.5985080599784851, -0.04615720361471176, 0.028652053326368332, -0.14689376950263977, 0.22120246291160583, 0.24968788027763367, 0.2240440845489502, 0.07739780098199844, -0.2034948468208313, 0.12449292838573456, 0.3155551850795746, 0.24423633515834808, 0.32593804597854614, 0.15828679502010345, 0.058802876621484756, -0.057661738246679306, 0.42826423048973083, 0.0426718108355999, -0.39031219482421875, -0.2664998471736908, -0.33736011385917664, -0.07565711438655853, 0.20003651082515717, 0.15807949006557465, 0.0427088662981987, -0.07012134790420532, -0.16353240609169006, 0.071854367852211, 0.17990784347057343, -0.03880477696657181, 0.14718091487884521, 0.8159404397010803, 0.1902589201927185, 0.1429036557674408, 0.2227550446987152, -0.04968283697962761, -0.07192248851060867, 0.20154865086078644, 0.053434211760759354, -0.015657156705856323, 0.25490057468414307, -0.2117115557193756, -0.29642102122306824, 0.3922959864139557, 0.3107229471206665, 0.20159180462360382, 0.15246637165546417, -0.23578312993049622, 0.2729088366031647, 0.21592652797698975, -0.023363925516605377, -0.17136181890964508, 0.10854986310005188, -0.18956409394741058, -0.1724313199520111, 0.5275695323944092, -0.12466859072446823, -0.04346173256635666, -0.4908123016357422, 0.0946800708770752, -0.27028194069862366, 0.1111801341176033, -0.32447800040245056, 0.5614662170410156, -0.24497342109680176, -0.1677209883928299, 0.06884051114320755, 0.03362394869327545, 0.16032305359840393, -0.18577702343463898, 0.22263272106647491, 0.14580179750919342, -0.3933652937412262, -0.015885669738054276, 0.23947660624980927, -0.2605881989002228, -0.05690600723028183, -0.1669490486383438, -0.10671376436948776, -0.1044219508767128, -0.021545931696891785, 0.15863241255283356, 0.38997092843055725, -0.2733120024204254, -0.12560570240020752, -0.09995263814926147, -0.1640661358833313, 0.010330336168408394, 0.13732481002807617, 0.18625058233737946, 0.28452008962631226, 0.15114253759384155, 0.2225954532623291, 0.18191944062709808, 0.04888659343123436, 0.08804122358560562, -0.040917880833148956, -0.27202385663986206, 0.4463222622871399, 0.17541265487670898, -0.23218385875225067, 0.1784433275461197, 0.015566565096378326, -0.4601057767868042, 0.3236851096153259, -0.3310925364494324, 0.2429713010787964, -0.07844420522451401, 0.2711414098739624, -0.32075679302215576, 0.02825044095516205, -0.07094432413578033, -0.565290093421936, 0.058675721287727356, 0.09972935914993286, 0.3890398442745209, 0.1061437726020813, -0.24580888450145721, 0.3670017123222351, -0.08090966939926147, -0.052216436713933945, 0.2115105390548706, 0.10095760226249695, -0.10200217366218567, 0.0345257930457592, -0.15552888810634613, -0.4602501690387726, 0.31701985001564026, 0.0911790207028389, 0.012088023126125336, -0.3484279215335846, 0.23834328353405, 0.29126083850860596, 0.12227987498044968, -0.04433143511414528, 0.3409976661205292, -0.002897590398788452, -0.17610473930835724, 0.2134353220462799, 0.4273329973220825, -0.2389497309923172, -0.17554546892642975, 0.08122764527797699, 0.4070700407028198, 0.1399204283952713, 0.3254656195640564, 0.013352559879422188, -0.6059425473213196, 0.16566559672355652, -0.005250412970781326, 0.045385267585515976, 0.7022059559822083, -0.3599381446838379, 0.1289960891008377, 0.004801560193300247, 0.15238502621650696, 0.22261539101600647, 0.12105274200439453, -0.4439997673034668, -0.35519757866859436, 0.024179136380553246, 0.3818521201610565, -0.34552690386772156, 0.0015526767820119858, -0.13294939696788788, 0.16720962524414062, 0.2806376814842224, -0.036434922367334366, 0.02201402559876442, -0.01073414832353592, 0.01833127811551094, 0.000722397118806839, 0.34178391098976135, 0.17399093508720398, 0.48831743001937866, 0.2531154751777649, -0.1698945015668869, 0.13818977773189545, -0.22801636159420013, 0.034569840878248215, 0.24518579244613647, 0.0025359615683555603, -0.03275810554623604, 0.1938694417476654, 0.29840394854545593, -0.05170423164963722, 0.02571757882833481, -0.5200487375259399, 0.05461450666189194, 0.45406028628349304, -0.11751405894756317, -0.12325938045978546, -0.41122785210609436, -0.014678021892905235, 0.013185666874051094, -0.5087945461273193, -0.060551200062036514, -0.10072051733732224, -0.028961166739463806, -0.03681096062064171, -0.12295712530612946, 0.3387329578399658, -0.2723272442817688, 0.49349647760391235, -0.559095025062561, -0.02552574686706066, -0.019911184906959534, 0.034675054252147675, 0.10998179018497467, 0.04778144881129265, -0.03143363445997238, 0.02570882998406887, 0.030616283416748047, -0.0037530921399593353, 0.25191110372543335, 0.05221729725599289, -0.1747588813304901, 0.11484140157699585, -0.000491563230752945, -0.5256104469299316, 0.17325147986412048, -0.03416156768798828, -0.10929261893033981, -0.06812998652458191, 0.05089607089757919, 0.1972896009683609, -0.02476441115140915, 0.173823282122612, -0.21291643381118774, -0.124423086643219, -0.4129622280597687, 0.010056808590888977, -0.1492169052362442, -0.2941407561302185, 0.3062922954559326, 0.2049195021390915, 0.2767918109893799, -0.06605543941259384, 0.3649311661720276, 0.028578974306583405, 0.11799807846546173, 0.024803591892123222, 0.041242510080337524, -0.39842653274536133, 0.3619609475135803, -0.016221454367041588, 0.004075087606906891, 0.16384005546569824, -0.12924398481845856, 0.23177886009216309, 0.37390124797821045, -0.034932464361190796, -0.12870550155639648, 0.09039603173732758, 0.3210226893424988, -0.20324133336544037, 0.11636407673358917, 0.5452887415885925, 0.49649935960769653, 0.03897808492183685, -0.08050704002380371, -0.14513517916202545, 0.21955606341362, 0.11373042315244675, -0.40979424118995667, -0.039815083146095276, 0.08305329084396362, 0.26097527146339417, -0.18431995809078217, 0.3280726969242096, -0.05825966224074364, 0.348760187625885, -0.038539476692676544, 0.4031776189804077, 0.09680798649787903, -0.06857481598854065, -0.2857967019081116, 0.12261128425598145, 0.3362405300140381, -0.10621635615825653, 0.11775124818086624, -0.19360923767089844, -0.42141640186309814, 0.060600895434617996, -0.17847445607185364, -0.05469292402267456, 0.2122347056865692, -0.4524729251861572, 0.19120612740516663, -0.307518869638443, -0.05933592468500137, -0.42675164341926575, 0.0754697397351265, -0.23270708322525024, 0.27205100655555725, -0.03615628927946091, -0.2596203684806824, -0.2545236051082611, -0.4336673319339752, -0.3955095708370209, 0.35015377402305603, 0.11188193410634995, 0.40406185388565063, 0.4325251877307892, -0.052638940513134, -0.12013968825340271, -0.20494048297405243, 0.4980344772338867, -0.07401668280363083, -0.5626014471054077, 0.3075752556324005, 0.014436602592468262, -0.28543996810913086, 0.012246418744325638, 0.05235302820801735, 0.2708073854446411, -0.11333554983139038, 0.3593369126319885, -0.25297826528549194, -0.22392450273036957, 0.329135000705719, 0.07820013165473938, 0.19015702605247498, -0.03620949015021324, -0.10001647472381592, 0.04838257282972336, -0.08916769921779633, -0.4129231572151184, -0.17945048213005066, 0.40767335891723633, -0.18073391914367676, -0.17602871358394623, -0.17473219335079193, -0.3464694619178772, 0.073598712682724, 0.1782965064048767, 0.28684961795806885, 0.04546196758747101, -0.03560418263077736, 0.03902420401573181, -0.25274625420570374, 0.46407532691955566, 0.27572566270828247, 0.0017459280788898468, -0.4743175506591797, 0.16030314564704895, -0.11890058219432831, 0.14703212678432465, 0.01560869812965393, 0.06552744656801224, 0.3621346652507782, -0.25860482454299927, -0.05467885732650757, -0.04497649520635605, -0.17119280993938446, 0.060506366193294525, -0.07008139044046402, -0.6451609134674072, -0.4660744369029999, 0.2414061427116394, 0.1642182320356369, 0.00814647227525711, 0.726425290107727, 0.03910530358552933, -0.32686248421669006, -0.057517826557159424, 0.01297830045223236, 0.8818546533584595, 0.2684468626976013, 0.1046687513589859, 0.1382029950618744, -0.24164120852947235, 0.4139752686023712, -0.2139509916305542, 0.3939239978790283, -0.34274962544441223, -0.11264392733573914, -0.2992991805076599, -0.1103009432554245, 0.40378338098526, 0.15060484409332275, -0.48778414726257324, -0.011433502659201622, -0.2502492666244507, 0.1278437227010727, -0.11708727478981018, 0.034828007221221924, -0.07093755900859833, -0.5233114361763, -0.4722076654434204, 0.05725834518671036, -0.10929833352565765, -0.4260680675506592, -0.3047957420349121, -0.03532479330897331, -0.0910700187087059, 0.035172395408153534, -0.23065847158432007, -0.004414131864905357, 0.05216421186923981, 0.0739053338766098, 0.24635688960552216, -0.20353800058364868, -0.023877516388893127, 0.08806124329566956, -0.08048291504383087, -0.14437620341777802, -0.11690913140773773, -0.19407452642917633, -0.0046437084674835205, 0.14778076112270355, 0.06055782735347748, -0.20754529535770416, 0.2673375904560089, 0.1429784893989563, -0.25557950139045715, 0.18827834725379944, 0.15702761709690094, -0.3402671217918396, 0.15182539820671082, 0.1354852020740509, -0.07060509920120239, 0.06969703733921051, -0.03065936081111431, 0.4619449973106384, 0.28313037753105164, -0.09586569666862488, 0.10219378769397736, 0.40889739990234375, -0.16896185278892517, 0.10025457292795181, -0.13083384931087494, -0.28352710604667664, -0.18443267047405243, 0.4703075885772705, 0.13271859288215637, -0.009724104776978493, -0.08303947746753693, 0.167236790060997, -0.12612920999526978, -0.14172658324241638, 0.22277823090553284, 0.33760160207748413, -0.3897216320037842, -0.028674840927124023, 0.16792108118534088, -0.10506359487771988, -0.04284779354929924, 0.27436065673828125, -0.12650057673454285, 0.48673760890960693, -0.18585751950740814, -0.21885059773921967, -0.19026809930801392, 0.19723303616046906, 0.21496236324310303, 0.23642559349536896, -0.027867617085576057, 0.10713253915309906, -0.04757025092840195, -0.2605210840702057, -0.2654896378517151, -0.2106078863143921, 0.045184552669525146, -0.07540638744831085, -0.028661157935857773, 0.19149431586265564, -0.20677846670150757, -0.21421869099140167, 0.15419453382492065, -0.012800496071577072, -0.1399383395910263, -0.15168115496635437, -0.13256050646305084, 0.1478935033082962, 0.10648664087057114, -0.16860218346118927, -0.10289045423269272, -0.22503721714019775, -0.5166934728622437, -0.3138570785522461, 0.10470125079154968, 0.27572959661483765, -0.34351998567581177, 0.11254437267780304, 0.19326584041118622, 0.08497854322195053, 0.009506098926067352, -0.05325855314731598, 0.22939233481884003, -0.07559072971343994, -0.024602685123682022, 0.2878013253211975, -0.13293994963169098, -0.05550824850797653, -0.27684715390205383, 0.3551456928253174, -0.023392722010612488, 0.1009763851761818, 0.06358134001493454, -0.08526356518268585, 0.2157888412475586, 0.23389296233654022, 0.19222761690616608, 0.18681839108467102, 0.20350080728530884, 0.14370766282081604, 0.11896958202123642, 0.18746943771839142, -0.08677734434604645, -0.39051690697669983, 0.17522373795509338, 0.4561106562614441, 0.22356641292572021, 0.05877842754125595, -0.2400042712688446, -0.02984139695763588, 0.05760941654443741, -0.04081319272518158, 0.1074296236038208, -0.18977075815200806, 0.586126983165741, 0.26048755645751953, -0.02980414777994156, 0.176300510764122, -0.19011260569095612, 0.08194383978843689, 0.24925202131271362, 0.12696388363838196, -0.21051353216171265, 0.2456100583076477, 0.5388047695159912, -0.22312119603157043, -0.08106739073991776, -0.30954188108444214, -0.19119076430797577, 0.15024332702159882, -0.018662206828594208, 0.12905484437942505, 0.29908132553100586, -0.023824967443943024, -0.26189756393432617, -0.01792731136083603, -0.09798571467399597, 0.031188353896141052, -0.029009297490119934, 0.09151715040206909, -0.25884342193603516, -0.2457708716392517, -0.05791345238685608, -0.06269875168800354, 0.06637389212846756, 0.011423863470554352, 0.37817883491516113, -0.0919896811246872, 0.08408928662538528, -0.3125247657299042, 0.6007602214813232, 0.27330297231674194, 0.17193534970283508, 0.16911354660987854, 0.0040532443672418594, 0.3385767936706543, -0.01789908856153488, 0.09602078050374985, 0.08800582587718964, 0.17075394093990326, 0.4111481308937073, 0.24530045688152313, -0.003423849120736122, -0.25914543867111206, -0.09201207756996155, -0.01224175002425909, 0.08984538167715073, 0.2527465224266052, -0.047232773154973984, 0.13047830760478973, 0.2112453281879425, -0.038847118616104126, 0.24799586832523346, -0.0010520704090595245, 0.1945606768131256, -0.5377143025398254, 0.3259517550468445, -0.0153193399310112, -0.247626394033432, 0.18761911988258362, -0.002563871443271637, 0.013593293726444244, -0.38846448063850403, 0.015428809449076653, -0.0024480358697474003, -0.20507824420928955, -0.1724730134010315, 0.06930370628833771, 0.22104933857917786, 0.17488332092761993, -0.27893173694610596, 0.23015275597572327, -0.1784123033285141, -0.1908659040927887, -0.1957608014345169, -0.11202364414930344, 0.18471285700798035, -0.12099506705999374, -0.12332795560359955, 0.15358644723892212, 0.20164884626865387, -0.05568196624517441, 0.24471813440322876, 0.18073348701000214, 0.24826589226722717, 0.18569019436836243, -0.18907850980758667, 0.179385706782341, 0.11569175124168396, -0.11455376446247101, -0.05935158580541611, -0.2988680899143219, 0.03197106719017029, 0.18624170124530792, -0.004052300006151199, -0.08160603791475296, 0.1817113757133484, -0.05420050024986267, -0.2327187955379486, 0.3671847879886627, 0.1295994371175766, 0.11324404925107956, -0.14264678955078125, 0.2120761126279831, -0.26437070965766907, -0.060060661286115646, -0.44515299797058105, 0.3055155575275421, -0.027590129524469376, 0.18046241998672485, -0.21977116167545319, -0.18250618875026703, 0.1628464013338089, -0.16112498939037323, 0.11217266321182251, 0.5696964263916016, -0.2790893316268921, 0.48840048909187317, 0.10811465233564377, -0.13158372044563293, -0.24704347550868988, -0.05657386779785156, 0.22728776931762695, 0.04928378015756607, -0.014837212860584259, 0.062311381101608276, -0.009503364562988281, -0.0775153860449791, -0.2625732123851776, -0.13718007504940033, -0.04124067723751068, 0.13458827137947083, -0.06384536623954773, -0.23943987488746643, -0.197496235370636, 0.2346859872341156, 0.021534578874707222, -0.2805646061897278, 0.2788974940776825, -0.11555472016334534, -0.0043692030012607574, -0.20567747950553894, 0.10868415981531143, -0.016339387744665146, -0.2483724057674408, 0.006475165486335754, -0.41425490379333496 ]
https://github.com/huggingface/datasets/issues/849
Load amazon dataset
Thanks for reporting ! We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls. Also I think the bullet points formatting has been fixed
Hi, I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset. Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews") ``` How it is when I tried (the error generated does point me to the right direction though) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews", 'Books_v1_00') ``` Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it?
34
Load amazon dataset Hi, I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset. Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews") ``` How it is when I tried (the error generated does point me to the right direction though) ``` from datasets import load_dataset dataset = load_dataset("amazon_us_reviews", 'Books_v1_00') ``` Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it? Thanks for reporting ! We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls. Also I think the bullet points formatting has been fixed
[ -0.07893185317516327, -0.18927478790283203, -0.21114906668663025, 0.5182408690452576, 0.17753298580646515, 0.281218558549881, 0.2807130813598633, 0.10958196222782135, 0.10753488540649414, -0.2891579270362854, -0.1656709462404251, 0.1336095780134201, 0.3731781542301178, 0.3808049261569977, 0.11738370358943939, -0.07864312827587128, -0.011468134820461273, 0.012094631791114807, -0.01041083037853241, 0.037248700857162476, -0.05193369835615158, 0.3416517674922943, -0.47778254747390747, -0.1001213788986206, 0.0012968636583536863, -0.1514364629983902, 0.016140444204211235, 0.0154879130423069, -0.038507357239723206, -0.3352607786655426, 0.2822164297103882, 0.12289413809776306, 0.2670380473136902, 0.41271331906318665, -0.00012002900621155277, -0.17792579531669617, 0.4665372371673584, -0.10208544880151749, -0.2560851275920868, -0.273733913898468, -0.20822376012802124, -0.3046475350856781, 0.45946452021598816, -0.3098631203174591, -0.07138261198997498, -0.5172997117042542, -0.354637086391449, -0.2628709077835083, 0.3239263892173767, 0.2284376174211502, 0.19254525005817413, 0.10572677105665207, -0.04502486065030098, -0.11685941368341446, 0.047338876873254776, 0.22599688172340393, 0.13230711221694946, 0.10224717855453491, 0.2680191099643707, 0.15178541839122772, -0.030303731560707092, 0.23126046359539032, 0.05320676416158676, 0.2929937243461609, 0.3227803707122803, -0.09372363239526749, -0.16267016530036926, -0.14744356274604797, 0.42556533217430115, 0.21476200222969055, 1.3290979862213135, -0.25341421365737915, -0.2807650566101074, -0.1864217072725296, -0.23020055890083313, -0.16890917718410492, -0.016869492828845978, 0.3455491065979004, -0.00772674148902297, 0.04363759979605675, -0.23355670273303986, -0.22316446900367737, -0.18693143129348755, 0.37018752098083496, 0.05927848815917969, 0.06306552141904831, -0.3054240345954895, 0.13807401061058044, -0.176388218998909, -0.13288478553295135, 0.15719853341579437, -0.1911984384059906, 0.031706731766462326, 0.17970271408557892, -0.5834522247314453, 0.08735151588916779, 0.08084540069103241, 0.15401828289031982, 0.06331827491521835, 0.44267261028289795, 0.30572113394737244, 0.2691637873649597, -0.021579517051577568, 0.13933923840522766, 0.594741702079773, 0.2712327837944031, 0.32165151834487915, 0.015435225330293179, -0.05278327316045761, 0.30217570066452026, -0.03819913789629936, -0.1961115002632141, -0.00548770185559988, -0.11516060680150986, 0.09778203070163727, -0.2972753345966339, 0.23794884979724884, -0.5695008039474487, -0.20490552484989166, -0.09278372675180435, -0.2847168445587158, -0.3555091321468353, 0.009845772758126259, 0.48031359910964966, -0.10182049870491028, 0.10478310286998749, 0.20564255118370056, 0.29120296239852905, -0.11137480288743973, -0.12135577201843262, -0.12416058033704758, -0.019955933094024658, -0.20608852803707123, 0.0916362777352333, -0.03046077862381935, -0.0041037797927856445, 0.3585401475429535, 0.0954124927520752, -0.0014445483684539795, -0.36148297786712646, 0.3334644138813019, -0.10395193099975586, 0.08918046951293945, 0.06433013081550598, 0.427068293094635, 0.23818807303905487, 0.14386163651943207, 0.12213768064975739, -0.2038879692554474, 0.2703428268432617, -0.34343698620796204, -0.21650747954845428, -0.1839887648820877, 0.12854622304439545, -0.30122870206832886, -0.30059152841567993, -0.5243891477584839, 0.12058049440383911, 0.15043321251869202, -0.11283828318119049, -0.048566631972789764, 0.1281508207321167, -0.104720339179039, -0.13020722568035126, 0.09235377609729767, 0.46874427795410156, -0.4306240677833557, -0.26465746760368347, -0.31251242756843567, -0.10042689740657806, 0.21457888185977936, 0.22394144535064697, -0.3063051402568817, 0.3549635708332062, -0.17311762273311615, 0.03512279689311981, 0.5592147707939148, -0.3355656862258911, -0.10341428965330124, 0.4995972216129303, 0.21641550958156586, -0.03550480306148529, 0.09619555622339249, -0.2372707724571228, -0.11261722445487976, 0.17772696912288666, 0.122291699051857, 0.21518462896347046, 0.34390273690223694, 0.12761083245277405, -0.20763982832431793, -0.20627428591251373, 0.2997554540634155, 0.15476661920547485, -0.12665244936943054, -0.0012367293238639832, -0.023607924580574036, -0.10266897827386856, 0.3608761429786682, -0.04641737416386604, -0.13416166603565216, 0.30279314517974854, -0.0695771872997284, 0.27145421504974365, 0.1779065579175949, 0.131605863571167, -0.44662564992904663, -0.0358646921813488, 0.0004682876169681549, 0.14816279709339142, 0.16830094158649445, -0.1922745406627655, -0.5272642970085144, 0.009098304435610771, -0.19910012185573578, -0.16103902459144592, 0.07774263620376587, 0.03208085522055626, 0.041266459971666336, -0.03356765955686569, -0.019956253468990326, -0.0856473445892334, 0.016385288909077644, 0.028304319828748703, -0.40793877840042114, 0.1658412218093872, 0.08335300534963608, 0.06145644560456276, 0.2739596366882324, 0.09935691207647324, 0.262264221906662, -0.011711004190146923, -0.16454121470451355, 0.26227042078971863, 0.0659870058298111, 0.6024622917175293, 0.15126994252204895, 0.3022494614124298, 0.07526705414056778, 0.05557829514145851, 0.2502044141292572, 0.27780061960220337, 0.3070845305919647, -0.142214834690094, -0.373763769865036, 0.37832754850387573, 0.0334414541721344, 0.48754218220710754, 0.14828526973724365, -0.16680823266506195, 0.2705939710140228, 0.013627436012029648, -0.055631235241889954, -0.2422354370355606, 0.26209717988967896, 0.07890366017818451, 0.6111761331558228, -0.13335858285427094, -0.12793682515621185, 0.27833083271980286, 0.14410237967967987, -0.055679768323898315, 0.07392009347677231, 0.08673162758350372, -0.24029752612113953, -0.45288217067718506, 0.5009839534759521, -0.021504998207092285, 0.21616216003894806, 0.24348238110542297, 0.09838983416557312, 0.10768875479698181, 0.27695441246032715, -0.2266348898410797, 0.3021547198295593, 0.31795555353164673, 0.21200957894325256, -0.1057114377617836, 0.17328430712223053, -0.16693943738937378, -0.1414022594690323, -0.15378166735172272, 0.04712273180484772, 0.2280314415693283, -0.5924046039581299, 0.03425103425979614, -0.3620113432407379, -0.4074660539627075, -0.3450546860694885, -0.1314956396818161, 0.08168614655733109, -0.3198183476924896, -0.29206836223602295, -0.048550110310316086, -0.04713033139705658, 0.017613455653190613, -0.1387416422367096, 0.050732895731925964, -0.19046537578105927, 0.05407422035932541, -0.20684278011322021, -0.203069806098938, -0.16522732377052307, 0.05971468612551689, 0.4737497866153717, 0.24715706706047058, 0.3921639323234558, -0.1970733404159546, 0.09266268461942673, 0.047743283212184906, -0.26602330803871155, 0.20057648420333862, 0.19711725413799286, 0.17514275014400482, -0.13499096035957336, 0.055998172610998154, 0.1437903493642807, 0.1499384641647339, 0.18420077860355377, 0.11996975541114807, 0.1417253166437149, -0.04643053933978081, -0.1063113734126091, -0.1500598043203354, 0.18083924055099487, -0.5233332514762878, -0.19488108158111572, -0.30314621329307556, -0.05375880002975464, 0.20072773098945618, 0.29918015003204346, -0.18567301332950592, -0.07156027853488922, 0.15590253472328186, 0.33989417552948, 0.29628950357437134, -0.3032110631465912, -0.4763088822364807, 0.16137897968292236, -0.2892206311225891, -0.2750646770000458, 0.15899525582790375, 0.31776750087738037, 0.24217383563518524, 0.06120283156633377, -0.22679640352725983, -0.04130508750677109, -0.08516141027212143, -0.11120383441448212, -0.07248823344707489, 0.16722095012664795, 0.261726975440979, 0.03640339523553848, -0.10519573837518692, 0.005417294800281525, -0.24164444208145142, -0.07168509811162949, -0.18962237238883972, 0.028164103627204895, -0.03548140078783035, 0.12036357820034027, -0.15633083879947662, 0.56620854139328, 0.2551558017730713, -0.05454085394740105, 0.3984052240848541, -0.10349304229021072, 0.17999304831027985, -0.04993877559900284, -0.01581326313316822, -0.330851674079895, -0.11661073565483093, 0.004271024838089943, 0.46259230375289917, 0.1697825789451599, -0.29652661085128784, -0.24136489629745483, -0.151350736618042, -0.8929019570350647, -0.10867959260940552, 0.13848549127578735, -0.13246484100818634, 0.2511937916278839, 0.11885896325111389, 0.07735668867826462, -0.0727129802107811, -0.1014694795012474, -0.02338237687945366, 0.08853404223918915, -0.0062202513217926025, -0.16642305254936218, -0.4538200795650482, -0.10159887373447418, -0.14194542169570923, 0.5074071884155273, -0.2162260264158249, 0.11969925463199615, 0.05323046073317528, -0.09100879728794098, 0.16579818725585938, -0.20878280699253082, 0.4329097270965576, -0.35003799200057983, -0.10274167358875275, 0.1852794587612152, 0.007839802652597427, -0.3345588147640228, 0.0840522050857544, -0.2710380554199219, 0.4508853852748871, 0.10220006108283997, 0.04431900382041931, -0.17062312364578247, -0.275669127702713, -0.10510686039924622, 0.3202064037322998, -0.27724045515060425, -0.2040269821882248, -0.06636528670787811, -0.20641574263572693, -0.3689185380935669, -0.3099527060985565, -0.2958851158618927, 0.1530737727880478, -0.044387511909008026, -0.0725073516368866, -0.08553843945264816, 0.06186641752719879, 0.0961780771613121, 0.22133615612983704, 0.4586624205112457, -0.19387811422348022, -0.07722075283527374, 0.10812048614025116, -0.13094304502010345, 0.44800835847854614, 0.7521957159042358, -0.008867040276527405, -0.42999207973480225, -0.010897904634475708, -0.15888941287994385, 0.12219363451004028, 0.19904005527496338, 0.07108376920223236, 0.10923361778259277, 0.008538205176591873, -0.06517690420150757, -0.19209221005439758, -0.21468399465084076, 0.10328441113233566, 0.1821846216917038, -0.10441652685403824, -0.699398398399353, 0.6753960251808167, 0.07559046149253845, -0.19756095111370087, 0.2609325349330902, -0.002987399697303772, -0.21408846974372864, 0.27616965770721436, 0.010066576302051544, 1.1095733642578125, 0.1581321507692337, -0.014588285237550735, 0.1266874223947525, -0.25985968112945557, 0.2006959468126297, -0.13675269484519958, -0.12122701108455658, -0.4516957104206085, 0.36733096837997437, -0.07364747673273087, -0.11843574047088623, 0.1955992579460144, 0.25018560886383057, -0.1443829983472824, 0.3782745599746704, -0.29103052616119385, -0.0442526675760746, -0.020512932911515236, 0.4625365138053894, -0.03875884413719177, -0.2825287878513336, -0.607140839099884, 0.08993488550186157, -0.051019370555877686, 0.14471498131752014, -0.2772301733493805, 0.08909240365028381, -0.24818046391010284, -0.09136579930782318, -0.3456156849861145, 0.024512622505426407, -0.08537055552005768, 0.093159019947052, -0.17416620254516602, -0.4508795738220215, 0.12987874448299408, 0.3845648169517517, -0.2622562050819397, -0.09012557566165924, -0.4244489371776581, 0.11901840567588806, -0.09721801429986954, 0.030119692906737328, 0.03566497564315796, 0.02103419229388237, 0.3715478181838989, -0.16168974339962006, -0.30180174112319946, 0.008000034838914871, 0.08547446876764297, 0.06253981590270996, -0.16890199482440948, 0.058868408203125, -0.003178481012582779, -0.5724698901176453, -0.5873058438301086, 0.12211998552083969, 0.042256902903318405, -0.12122797966003418, 0.09230348467826843, 0.18281087279319763, -0.11426035314798355, 0.21094200015068054, 0.2463112473487854, 0.036930717527866364, -0.07885098457336426, 0.43329867720603943, 0.31019800901412964, -0.024495992809534073, 0.46687430143356323, 0.2951885759830475, -0.14600858092308044, -0.19635173678398132, 0.19239541888237, 0.19575072824954987, -0.2520180344581604, 0.05094446614384651, -0.03689250722527504, 0.3241746425628662, -0.20706874132156372, 0.1904633641242981, 0.018821004778146744, 0.27948588132858276, -0.022012030705809593, -0.46686333417892456, 0.2508153021335602, 0.25374799966812134, 0.1930425614118576, -0.011374760419130325, -0.1099512055516243, -0.32844215631484985, 0.15923666954040527, 0.0505196712911129, -0.2618047595024109, 0.3210797905921936, -0.06956993788480759, 0.07813704013824463, 0.1321980357170105, 0.14430385828018188, 0.14517541229724884, -0.2790774405002594, -0.011959075927734375, -0.12672889232635498, -0.11002170294523239, -0.19817987084388733, -0.13543568551540375, 0.21279343962669373, 0.10159722715616226, -0.2201015204191208, -0.011580174788832664, 0.008608527481555939, 0.11618649959564209, -0.1793663650751114, 0.056273337453603745, -0.0937526673078537, 0.09997782856225967, 0.0836094543337822, 0.39077630639076233, 0.06698192656040192, -0.611553966999054, 0.07217241823673248, -0.041091062128543854, 0.19883334636688232, 0.2410690188407898, -0.04403596371412277, 0.3422813415527344, -0.022105693817138672, -0.025791160762310028, -0.030673839151859283, 0.2908679246902466, 0.22021737694740295, 0.19475442171096802, -0.08182176947593689, 0.25368860363960266, 0.24077333509922028, 0.3208608329296112, 0.525814414024353, -0.1758221536874771, 0.16463200747966766, -0.021572742611169815, 0.14280451834201813, -0.24381539225578308, 0.038911186158657074, -0.1467020958662033, -0.23760628700256348, -0.1835082471370697, 0.003874838352203369, 0.18297933042049408, 0.33259114623069763, 0.11302295327186584, -0.1203252524137497, 0.4508990943431854, -0.2245202511548996, 0.4222688674926758, 0.05903744697570801, -0.16899657249450684, 0.14591805636882782, 0.17626968026161194, 0.1485862284898758, -0.0028412044048309326, 0.018363676965236664, 0.06895706802606583, 0.5400501489639282, 0.44558560848236084, 0.15968963503837585, -0.223079651594162, -0.5270541906356812, 0.3603378236293793, 0.1754482388496399, 0.31990939378738403, 0.29287514090538025, 0.027170706540346146, 0.443574458360672, 0.14760076999664307, 0.09135567396879196, -0.06707479059696198, 0.002086244523525238, -0.0573350265622139, -0.20274987816810608, -0.15161141753196716, -0.290940523147583, -0.108612559735775, -0.13459940254688263, -0.20566347241401672, -0.4516635537147522, 0.054415181279182434, -0.12400481104850769, -0.13232029974460602, -0.5200746059417725, 0.057500191032886505, -0.03456011414527893, 0.1957114338874817, -0.1927078664302826, 0.07742703706026077, 0.1688811480998993, -0.01962631195783615, 0.07767283916473389, 0.2913627028465271, 0.5396183729171753, 0.1511482298374176, -0.10226231813430786, -0.048647645860910416, 0.07756717503070831, -0.12858204543590546, 0.08925209939479828, 0.13909411430358887, 0.21737241744995117, 0.08145759999752045, 0.1464356929063797, 0.11715392768383026, -0.16444377601146698, 0.3667304217815399, 0.13738149404525757, -0.021610591560602188, -0.28276917338371277, 0.2542513310909271, -0.3644188642501831, -0.37065771222114563, -0.2655564248561859, -0.17614948749542236, -0.4030532240867615, -0.03311702609062195, 0.24070723354816437, -0.11020653694868088, -0.16534703969955444, -0.19964265823364258, 0.0526958703994751, 0.06689666211605072, 0.6728177070617676, 0.03926856443285942, 0.3681768476963043, -0.06547676771879196, -0.06278740614652634, -0.6017755270004272, -0.015145458281040192, -0.05107472464442253, -0.13547945022583008, 0.10724098235368729, 0.19309672713279724, 0.10500812530517578, 0.26108455657958984, 0.17389002442359924, -0.134333997964859, 0.10250764340162277, 0.044739995151758194, -0.4506540894508362, 0.017667926847934723, 0.019241932779550552, 0.06958357989788055, -0.1925380975008011, -0.2314058542251587, 0.046073444187641144, -0.20327575504779816, -0.10236047208309174, -0.37475907802581787, -0.23164211213588715, 0.09567975997924805, 0.08540651202201843, 0.6618384122848511, -0.04716120660305023, 0.5717570781707764, -0.2162524163722992, -0.0034671295434236526, -0.047865938395261765, -0.24187913537025452, -0.005112518556416035, 0.6518109440803528, 0.055223289877176285, 0.00824529305100441, -0.1022312343120575, -0.20839695632457733, -0.09361672401428223, 0.10190049558877945, -0.26535651087760925, -0.24192553758621216, -0.04901818186044693, -0.22475619614124298, -0.006589625030755997, -0.2708666920661926, 0.06714002043008804, 0.23266926407814026, -0.07411403954029083, 0.060539618134498596, -0.14629341661930084, -0.10811179131269455, 0.40869778394699097, -0.04875599965453148, -0.011341683566570282, 0.007806607522070408, 0.1532592475414276, 0.08716771751642227, -0.18029654026031494, -0.6323313117027283, 0.16976222395896912, 0.5076560974121094, -0.015482861548662186, 0.15486642718315125, 0.46291854977607727, 0.01573449932038784, 0.030773211270570755, -0.17765964567661285, 0.30217400193214417, 0.015830138698220253, -0.22558659315109253, -0.34377142786979675, -0.29726654291152954 ]
https://github.com/huggingface/datasets/issues/848
Error when concatenate_datasets
As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks!
172
Error when concatenate_datasets Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks! As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
[ -0.09118998795747757, -0.14831307530403137, -0.04474868252873421, 0.6809356808662415, 0.10687590390443802, 0.2218790352344513, 0.31290537118911743, 0.22910863161087036, -0.12348346412181854, 0.12460452318191528, -0.10832248628139496, 0.2736024856567383, -0.08168966323137283, -0.12340901046991348, -0.3013661205768585, -0.09740161895751953, 0.19849273562431335, 0.14857077598571777, -0.505952000617981, -0.0316757895052433, -0.3506389260292053, 0.1602458655834198, -0.33587777614593506, 0.03986705094575882, -0.40978461503982544, 0.049245577305555344, -0.13179044425487518, 0.27618223428726196, -0.031203707680106163, -0.1838647723197937, 0.45858684182167053, -0.3488868474960327, 0.18642623722553253, 0.5364494323730469, -0.0001176378718810156, 0.17008621990680695, 0.2740952670574188, -0.17238233983516693, -0.37838396430015564, -0.25671952962875366, -0.3621295988559723, -0.10041487962007523, -0.0029403306543827057, -0.123458132147789, 0.20765095949172974, -0.14812079071998596, -0.25838547945022583, -0.5043877363204956, 0.3307151198387146, 0.2264484167098999, 0.11047933250665665, 0.3941428065299988, 0.09120556712150574, -0.09805992245674133, 0.037884946912527084, 0.15339818596839905, 0.06594538688659668, 0.4203861653804779, -0.18985885381698608, -0.06170951575040817, 0.21082961559295654, 0.0670611709356308, -0.12466702610254288, 0.1450287401676178, 0.07803715020418167, 0.30991077423095703, 0.15759976208209991, -0.3968752324581146, -0.1252780556678772, 0.1079113632440567, 0.5253136157989502, -0.3321698009967804, -0.31784698367118835, -0.086159348487854, 0.138819620013237, -0.39952293038368225, 0.21788835525512695, 0.2979131042957306, -0.14709052443504333, 0.11746253073215485, -0.09073880314826965, 0.07714599370956421, -0.2191736400127411, 0.1846294105052948, -0.1806517243385315, 0.11452028155326843, -0.16109685599803925, 0.2407016158103943, 0.13817080855369568, -0.07304102182388306, 0.5286439657211304, -0.35718539357185364, -0.12692509591579437, 0.15919555723667145, -0.34229713678359985, 0.03218774497509003, -0.1896209716796875, -0.704596996307373, 0.08900981396436691, 0.055821001529693604, 0.10370127856731415, -0.22045859694480896, 0.07736998051404953, 0.28189218044281006, 0.4017779231071472, 0.14928913116455078, -0.03738193213939667, 0.5497031211853027, -0.02027604728937149, -0.06169690564274788, 0.19937025010585785, 0.009052503854036331, -0.2867644727230072, -0.2114095538854599, 0.11543002724647522, -0.16468876600265503, 0.08365539461374283, -0.0013335570693016052, -0.4971267282962799, -0.15189290046691895, -0.12786069512367249, -0.14049364626407623, 0.19656047224998474, 0.030194450169801712, 0.12390024960041046, 0.5308153033256531, 0.13073831796646118, 0.4409761428833008, 0.21734872460365295, 0.017421450465917587, -0.22650901973247528, 0.022213896736502647, -0.0451168455183506, 0.2104356586933136, 0.10341404378414154, 0.004444369114935398, 0.08212251216173172, 0.17758668959140778, 0.10875631123781204, 0.00645078718662262, 0.07688532769680023, -0.4948594272136688, 0.05832662060856819, 0.31147003173828125, 0.02116454765200615, 0.07500403374433517, 0.27387458086013794, -0.050314296036958694, -0.14390289783477783, 0.3170154094696045, -0.4437071681022644, -0.2742713689804077, -0.5135645270347595, 0.0968814268708229, 0.09895562380552292, 0.2329154908657074, -0.3203630745410919, -0.1113315224647522, 0.6928233504295349, 0.10456658899784088, -0.06835778802633286, -0.06628894060850143, -0.19841518998146057, -0.3195582628250122, 0.3204248249530792, 0.20071232318878174, -0.21646752953529358, -0.03304483741521835, -0.018493052572011948, -0.06779734790325165, 0.3604026138782501, 0.5054666996002197, -0.3153640329837799, 0.1992005556821823, -0.38550201058387756, -0.0331823006272316, 0.3084052801132202, -0.43667712807655334, -0.1402202546596527, 0.21540261805057526, 0.003216080367565155, -0.07358656823635101, 0.23761212825775146, 0.008283308707177639, 0.1314232051372528, 0.14721594750881195, 0.8280868530273438, 0.3132546544075012, 0.06390053033828735, -0.17818716168403625, -0.09761250019073486, -0.13833585381507874, 0.2659767270088196, 0.10001018643379211, -0.23239432275295258, 0.035079583525657654, -0.13629895448684692, -0.417792409658432, 0.32372158765792847, -0.1016949713230133, 0.03967732936143875, 0.3689121603965759, 0.03515496104955673, -0.34318065643310547, -0.1154860183596611, 0.046180181205272675, -0.19547304511070251, 0.048352599143981934, 0.037961818277835846, -0.08521445095539093, -0.29980039596557617, 0.09154406189918518, -0.1228940337896347, 0.0769214928150177, -0.07233579456806183, 0.04985460638999939, 0.01761196181178093, 0.23527809977531433, -0.1725989729166031, -0.24803175032138824, -0.16533178091049194, 0.4237138032913208, -0.2777824103832245, -0.026918603107333183, -0.20736032724380493, 0.5686870813369751, -0.06451746076345444, -0.032097820192575455, -0.17634646594524384, -0.039373792707920074, 0.05893408879637718, 0.11640211194753647, -0.05410102754831314, 0.5149714350700378, 0.05206615850329399, -0.16847704350948334, 0.025942597538232803, -0.20578257739543915, 0.2290221005678177, -0.07725007086992264, 0.13991113007068634, -0.12018468976020813, 0.13092762231826782, -0.09698869287967682, 0.07233180105686188, 0.4227219223976135, -0.13237038254737854, 0.2828260660171509, -0.021570760756731033, 0.09008992463350296, 0.1695277988910675, 0.14529792964458466, -0.058325983583927155, -0.4177127182483673, -0.07452182471752167, 0.16754253208637238, 0.21888191998004913, 0.250417023897171, -0.46558061242103577, -0.23471489548683167, 0.3388250172138214, 0.024676986038684845, 0.042208269238471985, 0.1224694550037384, -0.39127078652381897, -0.04060984402894974, -0.028423195704817772, 0.34918469190597534, 0.7707192301750183, 0.12764403223991394, 0.03345945104956627, -0.12033649533987045, -0.035924285650253296, 0.007695436477661133, 0.34991568326950073, 0.06371068209409714, 0.34637853503227234, 0.3114226162433624, -0.01736682467162609, 0.06899513304233551, -0.016655761748552322, -0.08799303323030472, 0.0875866487622261, 0.06227593123912811, -0.40368127822875977, 0.05286358296871185, -0.18998661637306213, -0.05431290715932846, -0.3040483593940735, -0.24631907045841217, -0.10401211678981781, -0.21191439032554626, -0.4094063639640808, 0.22741243243217468, -0.05454447865486145, 0.19563467800617218, -0.19338640570640564, 0.05452129244804382, 0.15092800557613373, -0.0917489156126976, 0.0003249049186706543, 0.00944206677377224, -0.20656812191009521, -0.03260399401187897, 0.22103749215602875, -0.10533905774354935, 0.03628276288509369, -0.1857272833585739, 0.030104808509349823, -0.11809166520833969, 0.11544712632894516, 0.0138300321996212, -0.07582829892635345, 0.19631463289260864, 0.05167757719755173, 0.20550322532653809, -0.04730844497680664, -0.6516989469528198, 0.13523724675178528, 0.5362829566001892, -0.2745610475540161, 0.379995733499527, 0.14905348420143127, -0.09476038068532944, -0.10532231628894806, -0.2667202055454254, -0.4566354751586914, -0.3636389672756195, -0.06515006721019745, -0.14521272480487823, 0.24174226820468903, 0.28566262125968933, 0.23686927556991577, 0.009170012548565865, 0.1459449678659439, 0.15381881594657898, -0.0961047112941742, -0.2391645759344101, 0.47656455636024475, 0.044128965586423874, -0.17645946145057678, -0.14542901515960693, -0.06851339340209961, 0.29392024874687195, 0.2050095796585083, -0.37040746212005615, 0.11824225634336472, -0.08392997831106186, 0.07217459380626678, -0.37244343757629395, 0.08169099688529968, 0.09550519287586212, 0.30712655186653137, -0.04956882447004318, -0.10565388202667236, -0.1409311592578888, 0.12135224044322968, 0.05091847479343414, 0.36418449878692627, -0.02699051797389984, 0.3982565104961395, -0.0897529125213623, 0.4547501802444458, 0.26242750883102417, -0.16175667941570282, 0.21309293806552887, 0.17499089241027832, 0.5188267827033997, 0.009832926094532013, -0.4894420802593231, -0.30854862928390503, -0.10530933737754822, -0.02227766253054142, -0.14535798132419586, -0.1314471960067749, -0.21356752514839172, -0.17157280445098877, 0.16775386035442352, -0.20210421085357666, -0.09774474799633026, 0.09347138553857803, -0.48903781175613403, 0.2789088189601898, -0.26716262102127075, -0.017227672040462494, -0.22554194927215576, 0.236805260181427, -0.3388526439666748, -0.0028132274746894836, 0.15307387709617615, -0.10816973447799683, -0.07584161311388016, -0.05322445556521416, -0.167122483253479, 0.28892940282821655, 0.0708022341132164, 0.6286578178405762, 0.08713383972644806, -0.3619210422039032, -0.14135755598545074, 0.10619191825389862, 0.6050750017166138, 0.37314245104789734, -0.3529825210571289, 0.3440542221069336, 0.14444401860237122, -0.5278425216674805, -0.13232392072677612, -0.14307273924350739, 0.2472812384366989, -0.08006063103675842, 0.619235098361969, -0.281061053276062, -0.21028663218021393, 0.0483550950884819, 0.3565574288368225, -0.05513589829206467, -0.07017538696527481, -0.3375284671783447, -0.09485523402690887, -0.26575616002082825, -0.17509812116622925, -0.008599333465099335, 0.3727571368217468, -0.11776193231344223, -0.03078288771212101, -0.10241588950157166, -0.20328399538993835, 0.09420547634363174, -0.061563462018966675, 0.5736798644065857, -0.10580777376890182, 0.3382009267807007, -0.040429309010505676, 0.272807240486145, 0.7298616766929626, 0.389646977186203, 0.04856513440608978, -0.27660244703292847, 0.20844045281410217, 0.06652850657701492, 0.35249507427215576, 0.0325586199760437, -0.07743827998638153, 0.027674224227666855, -0.1396046280860901, 0.10973210632801056, -0.06651552021503448, 0.08004742115736008, 0.3577902913093567, -0.021420270204544067, -0.6502230167388916, -0.24151131510734558, 0.34916844964027405, 0.21812990307807922, -0.04460638016462326, 0.48575595021247864, -0.18558849394321442, -0.461042195558548, 0.13228175044059753, 0.0488300658762455, 0.917633056640625, 0.07885561883449554, 0.3388040065765381, 0.18194296956062317, -0.2325962334871292, 0.2211383432149887, 0.16566038131713867, 0.16699159145355225, -0.25195640325546265, -0.2050485908985138, -0.11600623279809952, -0.39287805557250977, -0.04028753191232681, 0.12299125641584396, -0.2947123646736145, 0.14197702705860138, -0.4592791795730591, 0.11786539852619171, -0.12656357884407043, -0.013210020959377289, -0.16528983414173126, -0.21604980528354645, -0.16198156774044037, 0.01307346299290657, -0.031264834105968475, -0.15887153148651123, -0.01415934506803751, -0.24843163788318634, -0.31445077061653137, -0.09130441397428513, -0.15309804677963257, 0.2241208553314209, -0.2308596521615982, 0.7114478945732117, -0.06415915489196777, -0.2984423041343689, -0.20776544511318207, 0.1909828931093216, 0.11604185402393341, -0.20210613310337067, 0.062431372702121735, -0.10678166151046753, -0.0023862645030021667, 0.043608225882053375, -0.030229466035962105, -0.12061461061239243, 0.1903313845396042, 0.10352391749620438, -0.23951773345470428, 0.11216206848621368, -0.05872468650341034, -0.33592689037323, 0.049803152680397034, 0.33672797679901123, 0.07348043471574783, -0.18480117619037628, -0.19937343895435333, 0.2047349512577057, 0.0342361144721508, -0.08933021128177643, 0.09722235798835754, 0.16332843899726868, -0.13733552396297455, 0.11539626121520996, -0.2287459522485733, -0.34221526980400085, -0.036611463874578476, 0.5363500714302063, 0.33104872703552246, 0.1768987476825714, 0.5639303922653198, -0.2513001561164856, -0.011510975658893585, -0.12108968198299408, 0.357509583234787, -0.04845568165183067, -0.11711761355400085, 0.2420291304588318, 0.04649202525615692, 0.031642720103263855, -0.16861727833747864, 0.08653509616851807, 0.42987507581710815, 0.20808836817741394, -0.11150620877742767, -0.3559648096561432, -0.5394132137298584, 0.38487517833709717, -0.13385288417339325, 0.22954893112182617, -0.09436825662851334, 0.018809154629707336, -0.21780186891555786, -0.1428946703672409, -0.2319715917110443, 0.0040236543864011765, -0.25923094153404236, 0.04605785757303238, 0.14327391982078552, -0.054220862686634064, 0.13752438127994537, -0.0019390168599784374, 0.11710256338119507, -0.053086377680301666, -0.055987246334552765, -0.10222407430410385, 0.1451754868030548, 0.14760708808898926, 0.10748907178640366, -0.2296527624130249, -0.10949612408876419, -0.35541021823883057, -0.09644201397895813, -0.14278602600097656, -0.1945216804742813, 0.14739644527435303, -0.06960684061050415, 0.09598856419324875, 0.028426166623830795, 0.16976282000541687, -0.0842253640294075, 0.17736756801605225, -0.007818445563316345, 0.12234117835760117, -0.16525699198246002, 0.32268574833869934, -0.10201903432607651, -0.10350240767002106, -0.5782657265663147, 0.008041702210903168, -0.11383886635303497, -0.11873959749937057, 0.19466179609298706, -0.2355368584394455, -0.18246735632419586, -0.06589577347040176, 0.16938915848731995, 0.42387622594833374, -0.24219490587711334, 0.053866252303123474, 0.0671154260635376, 0.11560924351215363, -0.1454007923603058, -0.23784667253494263, -0.43772926926612854, -0.16793864965438843, -0.2898411452770233, 0.017973870038986206, 0.02646521106362343, 0.02143530547618866, -0.14763297140598297, 0.047171451151371, 0.25700297951698303, -0.03312656655907631, 0.3051678240299225, 0.4617430567741394, 0.12236987054347992, 0.04979511350393295, 0.13226613402366638, 0.24849914014339447, 0.38216960430145264, 0.30370962619781494, -0.1484190821647644, 0.22876140475273132, 0.1643528938293457, -0.21518635749816895, 0.00031509995460510254, -0.29520198702812195, 0.008264228701591492, 0.2186151146888733, -0.15525168180465698, -0.11986859887838364, -0.019283883273601532, 0.11784551292657852, -0.301882803440094, -0.2792961001396179, -0.15895196795463562, 0.17228610813617706, -0.09790370613336563, -0.03844452649354935, -0.09086595475673676, -0.16824695467948914, -0.057713668793439865, -0.13062264025211334, 0.15837666392326355, -0.14639057219028473, 0.3186441659927368, 0.14996907114982605, -0.22768382728099823, -0.14260993897914886, 0.2273935079574585, 0.6780189275741577, -0.06400582939386368, -0.353202223777771, 0.1663103997707367, 0.47717756032943726, 0.076700359582901, 0.10966125130653381, 0.2268029898405075, 0.6265039443969727, 0.6114813685417175, 0.06252643465995789, -0.09975461661815643, 0.21632862091064453, -0.18718451261520386, 0.1355878710746765, 0.16797204315662384, 0.027832206338644028, -0.20908479392528534, 0.20760579407215118, 0.1935126632452011, -0.04559485241770744, 0.16156135499477386, 0.14688575267791748, 0.21995975077152252, -0.30955711007118225, 0.19475355744361877, -0.3178146481513977, -0.20080164074897766, 0.08132220059633255, 0.019271641969680786, -0.3569810688495636, 0.04972238466143608, 0.6105668544769287, 0.08520599454641342, 0.12317431718111038, 0.3197077214717865, 0.02370612323284149, 0.02342318929731846, 0.39119359850883484, 0.4590098261833191, 0.14059805870056152, -0.45429179072380066, -0.19318875670433044, -0.3783901333808899, -0.053324468433856964, 0.24002225697040558, 0.09847700595855713, -0.12065140902996063, 0.28327491879463196, 0.25636282563209534, -0.005638137459754944, 0.15366260707378387, 0.2694151997566223, -0.08837760239839554, -0.0958835631608963, -0.43449145555496216, -0.13295167684555054, 0.12469340860843658, -0.019477026537060738, 0.022135473787784576, -0.5010997653007507, 0.17182201147079468, 0.17362549901008606, 0.011649053543806076, -0.01225561648607254, 0.21229258179664612, 0.2748069763183594, 0.5003048777580261, 0.37911349534988403, 0.15555605292320251, 0.4756852984428406, -0.026323040947318077, -0.16170918941497803, 0.025298230350017548, -0.667995274066925, -0.1731608659029007, 0.15679486095905304, 0.003010362386703491, 0.23588287830352783, -0.33289340138435364, -0.05051523074507713, -0.18134142458438873, 0.22132346034049988, -0.11841887980699539, -0.23708640038967133, -0.16636250913143158, -0.015735814347863197, 0.04363034665584564, -0.229695662856102, 0.13400188088417053, 0.11973552405834198, 0.02352803200483322, 0.4017443060874939, -0.09754088521003723, -0.2917836606502533, 0.4567212760448456, -0.07646892964839935, -0.1883578896522522, -0.019035443663597107, 0.09826670587062836, 0.08955354243516922, 0.28539711236953735, -0.5559757351875305, -0.05513163283467293, 0.4927319884300232, -0.1836724579334259, -0.43198543787002563, 0.07861946523189545, 0.0816735327243805, 0.04354558512568474, -0.017398212105035782, 0.6414552927017212, -0.2835344970226288, -0.5346693992614746, -0.024919969961047173, -0.20456376671791077 ]
https://github.com/huggingface/datasets/issues/848
Error when concatenate_datasets
> As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. > > The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. > > Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets. `dataset.flatten_indices()` solved my problem, thanks so much!
Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks!
184
Error when concatenate_datasets Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks! > As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory. > > The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test. > > Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets. `dataset.flatten_indices()` solved my problem, thanks so much!
[ -0.09118998795747757, -0.14831307530403137, -0.04474868252873421, 0.6809356808662415, 0.10687590390443802, 0.2218790352344513, 0.31290537118911743, 0.22910863161087036, -0.12348346412181854, 0.12460452318191528, -0.10832248628139496, 0.2736024856567383, -0.08168966323137283, -0.12340901046991348, -0.3013661205768585, -0.09740161895751953, 0.19849273562431335, 0.14857077598571777, -0.505952000617981, -0.0316757895052433, -0.3506389260292053, 0.1602458655834198, -0.33587777614593506, 0.03986705094575882, -0.40978461503982544, 0.049245577305555344, -0.13179044425487518, 0.27618223428726196, -0.031203707680106163, -0.1838647723197937, 0.45858684182167053, -0.3488868474960327, 0.18642623722553253, 0.5364494323730469, -0.0001176378718810156, 0.17008621990680695, 0.2740952670574188, -0.17238233983516693, -0.37838396430015564, -0.25671952962875366, -0.3621295988559723, -0.10041487962007523, -0.0029403306543827057, -0.123458132147789, 0.20765095949172974, -0.14812079071998596, -0.25838547945022583, -0.5043877363204956, 0.3307151198387146, 0.2264484167098999, 0.11047933250665665, 0.3941428065299988, 0.09120556712150574, -0.09805992245674133, 0.037884946912527084, 0.15339818596839905, 0.06594538688659668, 0.4203861653804779, -0.18985885381698608, -0.06170951575040817, 0.21082961559295654, 0.0670611709356308, -0.12466702610254288, 0.1450287401676178, 0.07803715020418167, 0.30991077423095703, 0.15759976208209991, -0.3968752324581146, -0.1252780556678772, 0.1079113632440567, 0.5253136157989502, -0.3321698009967804, -0.31784698367118835, -0.086159348487854, 0.138819620013237, -0.39952293038368225, 0.21788835525512695, 0.2979131042957306, -0.14709052443504333, 0.11746253073215485, -0.09073880314826965, 0.07714599370956421, -0.2191736400127411, 0.1846294105052948, -0.1806517243385315, 0.11452028155326843, -0.16109685599803925, 0.2407016158103943, 0.13817080855369568, -0.07304102182388306, 0.5286439657211304, -0.35718539357185364, -0.12692509591579437, 0.15919555723667145, -0.34229713678359985, 0.03218774497509003, -0.1896209716796875, -0.704596996307373, 0.08900981396436691, 0.055821001529693604, 0.10370127856731415, -0.22045859694480896, 0.07736998051404953, 0.28189218044281006, 0.4017779231071472, 0.14928913116455078, -0.03738193213939667, 0.5497031211853027, -0.02027604728937149, -0.06169690564274788, 0.19937025010585785, 0.009052503854036331, -0.2867644727230072, -0.2114095538854599, 0.11543002724647522, -0.16468876600265503, 0.08365539461374283, -0.0013335570693016052, -0.4971267282962799, -0.15189290046691895, -0.12786069512367249, -0.14049364626407623, 0.19656047224998474, 0.030194450169801712, 0.12390024960041046, 0.5308153033256531, 0.13073831796646118, 0.4409761428833008, 0.21734872460365295, 0.017421450465917587, -0.22650901973247528, 0.022213896736502647, -0.0451168455183506, 0.2104356586933136, 0.10341404378414154, 0.004444369114935398, 0.08212251216173172, 0.17758668959140778, 0.10875631123781204, 0.00645078718662262, 0.07688532769680023, -0.4948594272136688, 0.05832662060856819, 0.31147003173828125, 0.02116454765200615, 0.07500403374433517, 0.27387458086013794, -0.050314296036958694, -0.14390289783477783, 0.3170154094696045, -0.4437071681022644, -0.2742713689804077, -0.5135645270347595, 0.0968814268708229, 0.09895562380552292, 0.2329154908657074, -0.3203630745410919, -0.1113315224647522, 0.6928233504295349, 0.10456658899784088, -0.06835778802633286, -0.06628894060850143, -0.19841518998146057, -0.3195582628250122, 0.3204248249530792, 0.20071232318878174, -0.21646752953529358, -0.03304483741521835, -0.018493052572011948, -0.06779734790325165, 0.3604026138782501, 0.5054666996002197, -0.3153640329837799, 0.1992005556821823, -0.38550201058387756, -0.0331823006272316, 0.3084052801132202, -0.43667712807655334, -0.1402202546596527, 0.21540261805057526, 0.003216080367565155, -0.07358656823635101, 0.23761212825775146, 0.008283308707177639, 0.1314232051372528, 0.14721594750881195, 0.8280868530273438, 0.3132546544075012, 0.06390053033828735, -0.17818716168403625, -0.09761250019073486, -0.13833585381507874, 0.2659767270088196, 0.10001018643379211, -0.23239432275295258, 0.035079583525657654, -0.13629895448684692, -0.417792409658432, 0.32372158765792847, -0.1016949713230133, 0.03967732936143875, 0.3689121603965759, 0.03515496104955673, -0.34318065643310547, -0.1154860183596611, 0.046180181205272675, -0.19547304511070251, 0.048352599143981934, 0.037961818277835846, -0.08521445095539093, -0.29980039596557617, 0.09154406189918518, -0.1228940337896347, 0.0769214928150177, -0.07233579456806183, 0.04985460638999939, 0.01761196181178093, 0.23527809977531433, -0.1725989729166031, -0.24803175032138824, -0.16533178091049194, 0.4237138032913208, -0.2777824103832245, -0.026918603107333183, -0.20736032724380493, 0.5686870813369751, -0.06451746076345444, -0.032097820192575455, -0.17634646594524384, -0.039373792707920074, 0.05893408879637718, 0.11640211194753647, -0.05410102754831314, 0.5149714350700378, 0.05206615850329399, -0.16847704350948334, 0.025942597538232803, -0.20578257739543915, 0.2290221005678177, -0.07725007086992264, 0.13991113007068634, -0.12018468976020813, 0.13092762231826782, -0.09698869287967682, 0.07233180105686188, 0.4227219223976135, -0.13237038254737854, 0.2828260660171509, -0.021570760756731033, 0.09008992463350296, 0.1695277988910675, 0.14529792964458466, -0.058325983583927155, -0.4177127182483673, -0.07452182471752167, 0.16754253208637238, 0.21888191998004913, 0.250417023897171, -0.46558061242103577, -0.23471489548683167, 0.3388250172138214, 0.024676986038684845, 0.042208269238471985, 0.1224694550037384, -0.39127078652381897, -0.04060984402894974, -0.028423195704817772, 0.34918469190597534, 0.7707192301750183, 0.12764403223991394, 0.03345945104956627, -0.12033649533987045, -0.035924285650253296, 0.007695436477661133, 0.34991568326950073, 0.06371068209409714, 0.34637853503227234, 0.3114226162433624, -0.01736682467162609, 0.06899513304233551, -0.016655761748552322, -0.08799303323030472, 0.0875866487622261, 0.06227593123912811, -0.40368127822875977, 0.05286358296871185, -0.18998661637306213, -0.05431290715932846, -0.3040483593940735, -0.24631907045841217, -0.10401211678981781, -0.21191439032554626, -0.4094063639640808, 0.22741243243217468, -0.05454447865486145, 0.19563467800617218, -0.19338640570640564, 0.05452129244804382, 0.15092800557613373, -0.0917489156126976, 0.0003249049186706543, 0.00944206677377224, -0.20656812191009521, -0.03260399401187897, 0.22103749215602875, -0.10533905774354935, 0.03628276288509369, -0.1857272833585739, 0.030104808509349823, -0.11809166520833969, 0.11544712632894516, 0.0138300321996212, -0.07582829892635345, 0.19631463289260864, 0.05167757719755173, 0.20550322532653809, -0.04730844497680664, -0.6516989469528198, 0.13523724675178528, 0.5362829566001892, -0.2745610475540161, 0.379995733499527, 0.14905348420143127, -0.09476038068532944, -0.10532231628894806, -0.2667202055454254, -0.4566354751586914, -0.3636389672756195, -0.06515006721019745, -0.14521272480487823, 0.24174226820468903, 0.28566262125968933, 0.23686927556991577, 0.009170012548565865, 0.1459449678659439, 0.15381881594657898, -0.0961047112941742, -0.2391645759344101, 0.47656455636024475, 0.044128965586423874, -0.17645946145057678, -0.14542901515960693, -0.06851339340209961, 0.29392024874687195, 0.2050095796585083, -0.37040746212005615, 0.11824225634336472, -0.08392997831106186, 0.07217459380626678, -0.37244343757629395, 0.08169099688529968, 0.09550519287586212, 0.30712655186653137, -0.04956882447004318, -0.10565388202667236, -0.1409311592578888, 0.12135224044322968, 0.05091847479343414, 0.36418449878692627, -0.02699051797389984, 0.3982565104961395, -0.0897529125213623, 0.4547501802444458, 0.26242750883102417, -0.16175667941570282, 0.21309293806552887, 0.17499089241027832, 0.5188267827033997, 0.009832926094532013, -0.4894420802593231, -0.30854862928390503, -0.10530933737754822, -0.02227766253054142, -0.14535798132419586, -0.1314471960067749, -0.21356752514839172, -0.17157280445098877, 0.16775386035442352, -0.20210421085357666, -0.09774474799633026, 0.09347138553857803, -0.48903781175613403, 0.2789088189601898, -0.26716262102127075, -0.017227672040462494, -0.22554194927215576, 0.236805260181427, -0.3388526439666748, -0.0028132274746894836, 0.15307387709617615, -0.10816973447799683, -0.07584161311388016, -0.05322445556521416, -0.167122483253479, 0.28892940282821655, 0.0708022341132164, 0.6286578178405762, 0.08713383972644806, -0.3619210422039032, -0.14135755598545074, 0.10619191825389862, 0.6050750017166138, 0.37314245104789734, -0.3529825210571289, 0.3440542221069336, 0.14444401860237122, -0.5278425216674805, -0.13232392072677612, -0.14307273924350739, 0.2472812384366989, -0.08006063103675842, 0.619235098361969, -0.281061053276062, -0.21028663218021393, 0.0483550950884819, 0.3565574288368225, -0.05513589829206467, -0.07017538696527481, -0.3375284671783447, -0.09485523402690887, -0.26575616002082825, -0.17509812116622925, -0.008599333465099335, 0.3727571368217468, -0.11776193231344223, -0.03078288771212101, -0.10241588950157166, -0.20328399538993835, 0.09420547634363174, -0.061563462018966675, 0.5736798644065857, -0.10580777376890182, 0.3382009267807007, -0.040429309010505676, 0.272807240486145, 0.7298616766929626, 0.389646977186203, 0.04856513440608978, -0.27660244703292847, 0.20844045281410217, 0.06652850657701492, 0.35249507427215576, 0.0325586199760437, -0.07743827998638153, 0.027674224227666855, -0.1396046280860901, 0.10973210632801056, -0.06651552021503448, 0.08004742115736008, 0.3577902913093567, -0.021420270204544067, -0.6502230167388916, -0.24151131510734558, 0.34916844964027405, 0.21812990307807922, -0.04460638016462326, 0.48575595021247864, -0.18558849394321442, -0.461042195558548, 0.13228175044059753, 0.0488300658762455, 0.917633056640625, 0.07885561883449554, 0.3388040065765381, 0.18194296956062317, -0.2325962334871292, 0.2211383432149887, 0.16566038131713867, 0.16699159145355225, -0.25195640325546265, -0.2050485908985138, -0.11600623279809952, -0.39287805557250977, -0.04028753191232681, 0.12299125641584396, -0.2947123646736145, 0.14197702705860138, -0.4592791795730591, 0.11786539852619171, -0.12656357884407043, -0.013210020959377289, -0.16528983414173126, -0.21604980528354645, -0.16198156774044037, 0.01307346299290657, -0.031264834105968475, -0.15887153148651123, -0.01415934506803751, -0.24843163788318634, -0.31445077061653137, -0.09130441397428513, -0.15309804677963257, 0.2241208553314209, -0.2308596521615982, 0.7114478945732117, -0.06415915489196777, -0.2984423041343689, -0.20776544511318207, 0.1909828931093216, 0.11604185402393341, -0.20210613310337067, 0.062431372702121735, -0.10678166151046753, -0.0023862645030021667, 0.043608225882053375, -0.030229466035962105, -0.12061461061239243, 0.1903313845396042, 0.10352391749620438, -0.23951773345470428, 0.11216206848621368, -0.05872468650341034, -0.33592689037323, 0.049803152680397034, 0.33672797679901123, 0.07348043471574783, -0.18480117619037628, -0.19937343895435333, 0.2047349512577057, 0.0342361144721508, -0.08933021128177643, 0.09722235798835754, 0.16332843899726868, -0.13733552396297455, 0.11539626121520996, -0.2287459522485733, -0.34221526980400085, -0.036611463874578476, 0.5363500714302063, 0.33104872703552246, 0.1768987476825714, 0.5639303922653198, -0.2513001561164856, -0.011510975658893585, -0.12108968198299408, 0.357509583234787, -0.04845568165183067, -0.11711761355400085, 0.2420291304588318, 0.04649202525615692, 0.031642720103263855, -0.16861727833747864, 0.08653509616851807, 0.42987507581710815, 0.20808836817741394, -0.11150620877742767, -0.3559648096561432, -0.5394132137298584, 0.38487517833709717, -0.13385288417339325, 0.22954893112182617, -0.09436825662851334, 0.018809154629707336, -0.21780186891555786, -0.1428946703672409, -0.2319715917110443, 0.0040236543864011765, -0.25923094153404236, 0.04605785757303238, 0.14327391982078552, -0.054220862686634064, 0.13752438127994537, -0.0019390168599784374, 0.11710256338119507, -0.053086377680301666, -0.055987246334552765, -0.10222407430410385, 0.1451754868030548, 0.14760708808898926, 0.10748907178640366, -0.2296527624130249, -0.10949612408876419, -0.35541021823883057, -0.09644201397895813, -0.14278602600097656, -0.1945216804742813, 0.14739644527435303, -0.06960684061050415, 0.09598856419324875, 0.028426166623830795, 0.16976282000541687, -0.0842253640294075, 0.17736756801605225, -0.007818445563316345, 0.12234117835760117, -0.16525699198246002, 0.32268574833869934, -0.10201903432607651, -0.10350240767002106, -0.5782657265663147, 0.008041702210903168, -0.11383886635303497, -0.11873959749937057, 0.19466179609298706, -0.2355368584394455, -0.18246735632419586, -0.06589577347040176, 0.16938915848731995, 0.42387622594833374, -0.24219490587711334, 0.053866252303123474, 0.0671154260635376, 0.11560924351215363, -0.1454007923603058, -0.23784667253494263, -0.43772926926612854, -0.16793864965438843, -0.2898411452770233, 0.017973870038986206, 0.02646521106362343, 0.02143530547618866, -0.14763297140598297, 0.047171451151371, 0.25700297951698303, -0.03312656655907631, 0.3051678240299225, 0.4617430567741394, 0.12236987054347992, 0.04979511350393295, 0.13226613402366638, 0.24849914014339447, 0.38216960430145264, 0.30370962619781494, -0.1484190821647644, 0.22876140475273132, 0.1643528938293457, -0.21518635749816895, 0.00031509995460510254, -0.29520198702812195, 0.008264228701591492, 0.2186151146888733, -0.15525168180465698, -0.11986859887838364, -0.019283883273601532, 0.11784551292657852, -0.301882803440094, -0.2792961001396179, -0.15895196795463562, 0.17228610813617706, -0.09790370613336563, -0.03844452649354935, -0.09086595475673676, -0.16824695467948914, -0.057713668793439865, -0.13062264025211334, 0.15837666392326355, -0.14639057219028473, 0.3186441659927368, 0.14996907114982605, -0.22768382728099823, -0.14260993897914886, 0.2273935079574585, 0.6780189275741577, -0.06400582939386368, -0.353202223777771, 0.1663103997707367, 0.47717756032943726, 0.076700359582901, 0.10966125130653381, 0.2268029898405075, 0.6265039443969727, 0.6114813685417175, 0.06252643465995789, -0.09975461661815643, 0.21632862091064453, -0.18718451261520386, 0.1355878710746765, 0.16797204315662384, 0.027832206338644028, -0.20908479392528534, 0.20760579407215118, 0.1935126632452011, -0.04559485241770744, 0.16156135499477386, 0.14688575267791748, 0.21995975077152252, -0.30955711007118225, 0.19475355744361877, -0.3178146481513977, -0.20080164074897766, 0.08132220059633255, 0.019271641969680786, -0.3569810688495636, 0.04972238466143608, 0.6105668544769287, 0.08520599454641342, 0.12317431718111038, 0.3197077214717865, 0.02370612323284149, 0.02342318929731846, 0.39119359850883484, 0.4590098261833191, 0.14059805870056152, -0.45429179072380066, -0.19318875670433044, -0.3783901333808899, -0.053324468433856964, 0.24002225697040558, 0.09847700595855713, -0.12065140902996063, 0.28327491879463196, 0.25636282563209534, -0.005638137459754944, 0.15366260707378387, 0.2694151997566223, -0.08837760239839554, -0.0958835631608963, -0.43449145555496216, -0.13295167684555054, 0.12469340860843658, -0.019477026537060738, 0.022135473787784576, -0.5010997653007507, 0.17182201147079468, 0.17362549901008606, 0.011649053543806076, -0.01225561648607254, 0.21229258179664612, 0.2748069763183594, 0.5003048777580261, 0.37911349534988403, 0.15555605292320251, 0.4756852984428406, -0.026323040947318077, -0.16170918941497803, 0.025298230350017548, -0.667995274066925, -0.1731608659029007, 0.15679486095905304, 0.003010362386703491, 0.23588287830352783, -0.33289340138435364, -0.05051523074507713, -0.18134142458438873, 0.22132346034049988, -0.11841887980699539, -0.23708640038967133, -0.16636250913143158, -0.015735814347863197, 0.04363034665584564, -0.229695662856102, 0.13400188088417053, 0.11973552405834198, 0.02352803200483322, 0.4017443060874939, -0.09754088521003723, -0.2917836606502533, 0.4567212760448456, -0.07646892964839935, -0.1883578896522522, -0.019035443663597107, 0.09826670587062836, 0.08955354243516922, 0.28539711236953735, -0.5559757351875305, -0.05513163283467293, 0.4927319884300232, -0.1836724579334259, -0.43198543787002563, 0.07861946523189545, 0.0816735327243805, 0.04354558512568474, -0.017398212105035782, 0.6414552927017212, -0.2835344970226288, -0.5346693992614746, -0.024919969961047173, -0.20456376671791077 ]
https://github.com/huggingface/datasets/issues/848
Error when concatenate_datasets
@lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it)
Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks!
31
Error when concatenate_datasets Hello, when I concatenate two dataset loading from disk, I encountered a problem: ``` test_dataset = load_from_disk('data/test_dataset') trn_dataset = load_from_disk('data/train_dataset') train_dataset = concatenate_datasets([trn_dataset, test_dataset]) ``` And it reported ValueError blow: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-38-74fa525512ca> in <module> ----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset]) /opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split) 2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format( 2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]], -> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]], 2550 ) 2551 ) ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error: ``` trn_dataset._data_files # output [{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}] test_dataset._data_files # output [{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}] print([not dset._data_files for dset in [trn_dataset, test_dataset]]) # [False, False] # And I tested the code the same as arrow_dataset, but nothing happened dsets = [trn_dataset, test_dataset] dsets_in_memory = [not dset._data_files for dset in dsets] if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory): raise ValueError( "Datasets should ALL come from memory, or should ALL come from disk.\n" "However datasets {} come from memory and datasets {} come from disk.".format( [i for i in range(len(dsets)) if dsets_in_memory[i]], [i for i in range(len(dsets)) if not dsets_in_memory[i]], ) ) ``` Any suggestions would be greatly appreciated! Thanks! @lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it)
[ -0.09118998795747757, -0.14831307530403137, -0.04474868252873421, 0.6809356808662415, 0.10687590390443802, 0.2218790352344513, 0.31290537118911743, 0.22910863161087036, -0.12348346412181854, 0.12460452318191528, -0.10832248628139496, 0.2736024856567383, -0.08168966323137283, -0.12340901046991348, -0.3013661205768585, -0.09740161895751953, 0.19849273562431335, 0.14857077598571777, -0.505952000617981, -0.0316757895052433, -0.3506389260292053, 0.1602458655834198, -0.33587777614593506, 0.03986705094575882, -0.40978461503982544, 0.049245577305555344, -0.13179044425487518, 0.27618223428726196, -0.031203707680106163, -0.1838647723197937, 0.45858684182167053, -0.3488868474960327, 0.18642623722553253, 0.5364494323730469, -0.0001176378718810156, 0.17008621990680695, 0.2740952670574188, -0.17238233983516693, -0.37838396430015564, -0.25671952962875366, -0.3621295988559723, -0.10041487962007523, -0.0029403306543827057, -0.123458132147789, 0.20765095949172974, -0.14812079071998596, -0.25838547945022583, -0.5043877363204956, 0.3307151198387146, 0.2264484167098999, 0.11047933250665665, 0.3941428065299988, 0.09120556712150574, -0.09805992245674133, 0.037884946912527084, 0.15339818596839905, 0.06594538688659668, 0.4203861653804779, -0.18985885381698608, -0.06170951575040817, 0.21082961559295654, 0.0670611709356308, -0.12466702610254288, 0.1450287401676178, 0.07803715020418167, 0.30991077423095703, 0.15759976208209991, -0.3968752324581146, -0.1252780556678772, 0.1079113632440567, 0.5253136157989502, -0.3321698009967804, -0.31784698367118835, -0.086159348487854, 0.138819620013237, -0.39952293038368225, 0.21788835525512695, 0.2979131042957306, -0.14709052443504333, 0.11746253073215485, -0.09073880314826965, 0.07714599370956421, -0.2191736400127411, 0.1846294105052948, -0.1806517243385315, 0.11452028155326843, -0.16109685599803925, 0.2407016158103943, 0.13817080855369568, -0.07304102182388306, 0.5286439657211304, -0.35718539357185364, -0.12692509591579437, 0.15919555723667145, -0.34229713678359985, 0.03218774497509003, -0.1896209716796875, -0.704596996307373, 0.08900981396436691, 0.055821001529693604, 0.10370127856731415, -0.22045859694480896, 0.07736998051404953, 0.28189218044281006, 0.4017779231071472, 0.14928913116455078, -0.03738193213939667, 0.5497031211853027, -0.02027604728937149, -0.06169690564274788, 0.19937025010585785, 0.009052503854036331, -0.2867644727230072, -0.2114095538854599, 0.11543002724647522, -0.16468876600265503, 0.08365539461374283, -0.0013335570693016052, -0.4971267282962799, -0.15189290046691895, -0.12786069512367249, -0.14049364626407623, 0.19656047224998474, 0.030194450169801712, 0.12390024960041046, 0.5308153033256531, 0.13073831796646118, 0.4409761428833008, 0.21734872460365295, 0.017421450465917587, -0.22650901973247528, 0.022213896736502647, -0.0451168455183506, 0.2104356586933136, 0.10341404378414154, 0.004444369114935398, 0.08212251216173172, 0.17758668959140778, 0.10875631123781204, 0.00645078718662262, 0.07688532769680023, -0.4948594272136688, 0.05832662060856819, 0.31147003173828125, 0.02116454765200615, 0.07500403374433517, 0.27387458086013794, -0.050314296036958694, -0.14390289783477783, 0.3170154094696045, -0.4437071681022644, -0.2742713689804077, -0.5135645270347595, 0.0968814268708229, 0.09895562380552292, 0.2329154908657074, -0.3203630745410919, -0.1113315224647522, 0.6928233504295349, 0.10456658899784088, -0.06835778802633286, -0.06628894060850143, -0.19841518998146057, -0.3195582628250122, 0.3204248249530792, 0.20071232318878174, -0.21646752953529358, -0.03304483741521835, -0.018493052572011948, -0.06779734790325165, 0.3604026138782501, 0.5054666996002197, -0.3153640329837799, 0.1992005556821823, -0.38550201058387756, -0.0331823006272316, 0.3084052801132202, -0.43667712807655334, -0.1402202546596527, 0.21540261805057526, 0.003216080367565155, -0.07358656823635101, 0.23761212825775146, 0.008283308707177639, 0.1314232051372528, 0.14721594750881195, 0.8280868530273438, 0.3132546544075012, 0.06390053033828735, -0.17818716168403625, -0.09761250019073486, -0.13833585381507874, 0.2659767270088196, 0.10001018643379211, -0.23239432275295258, 0.035079583525657654, -0.13629895448684692, -0.417792409658432, 0.32372158765792847, -0.1016949713230133, 0.03967732936143875, 0.3689121603965759, 0.03515496104955673, -0.34318065643310547, -0.1154860183596611, 0.046180181205272675, -0.19547304511070251, 0.048352599143981934, 0.037961818277835846, -0.08521445095539093, -0.29980039596557617, 0.09154406189918518, -0.1228940337896347, 0.0769214928150177, -0.07233579456806183, 0.04985460638999939, 0.01761196181178093, 0.23527809977531433, -0.1725989729166031, -0.24803175032138824, -0.16533178091049194, 0.4237138032913208, -0.2777824103832245, -0.026918603107333183, -0.20736032724380493, 0.5686870813369751, -0.06451746076345444, -0.032097820192575455, -0.17634646594524384, -0.039373792707920074, 0.05893408879637718, 0.11640211194753647, -0.05410102754831314, 0.5149714350700378, 0.05206615850329399, -0.16847704350948334, 0.025942597538232803, -0.20578257739543915, 0.2290221005678177, -0.07725007086992264, 0.13991113007068634, -0.12018468976020813, 0.13092762231826782, -0.09698869287967682, 0.07233180105686188, 0.4227219223976135, -0.13237038254737854, 0.2828260660171509, -0.021570760756731033, 0.09008992463350296, 0.1695277988910675, 0.14529792964458466, -0.058325983583927155, -0.4177127182483673, -0.07452182471752167, 0.16754253208637238, 0.21888191998004913, 0.250417023897171, -0.46558061242103577, -0.23471489548683167, 0.3388250172138214, 0.024676986038684845, 0.042208269238471985, 0.1224694550037384, -0.39127078652381897, -0.04060984402894974, -0.028423195704817772, 0.34918469190597534, 0.7707192301750183, 0.12764403223991394, 0.03345945104956627, -0.12033649533987045, -0.035924285650253296, 0.007695436477661133, 0.34991568326950073, 0.06371068209409714, 0.34637853503227234, 0.3114226162433624, -0.01736682467162609, 0.06899513304233551, -0.016655761748552322, -0.08799303323030472, 0.0875866487622261, 0.06227593123912811, -0.40368127822875977, 0.05286358296871185, -0.18998661637306213, -0.05431290715932846, -0.3040483593940735, -0.24631907045841217, -0.10401211678981781, -0.21191439032554626, -0.4094063639640808, 0.22741243243217468, -0.05454447865486145, 0.19563467800617218, -0.19338640570640564, 0.05452129244804382, 0.15092800557613373, -0.0917489156126976, 0.0003249049186706543, 0.00944206677377224, -0.20656812191009521, -0.03260399401187897, 0.22103749215602875, -0.10533905774354935, 0.03628276288509369, -0.1857272833585739, 0.030104808509349823, -0.11809166520833969, 0.11544712632894516, 0.0138300321996212, -0.07582829892635345, 0.19631463289260864, 0.05167757719755173, 0.20550322532653809, -0.04730844497680664, -0.6516989469528198, 0.13523724675178528, 0.5362829566001892, -0.2745610475540161, 0.379995733499527, 0.14905348420143127, -0.09476038068532944, -0.10532231628894806, -0.2667202055454254, -0.4566354751586914, -0.3636389672756195, -0.06515006721019745, -0.14521272480487823, 0.24174226820468903, 0.28566262125968933, 0.23686927556991577, 0.009170012548565865, 0.1459449678659439, 0.15381881594657898, -0.0961047112941742, -0.2391645759344101, 0.47656455636024475, 0.044128965586423874, -0.17645946145057678, -0.14542901515960693, -0.06851339340209961, 0.29392024874687195, 0.2050095796585083, -0.37040746212005615, 0.11824225634336472, -0.08392997831106186, 0.07217459380626678, -0.37244343757629395, 0.08169099688529968, 0.09550519287586212, 0.30712655186653137, -0.04956882447004318, -0.10565388202667236, -0.1409311592578888, 0.12135224044322968, 0.05091847479343414, 0.36418449878692627, -0.02699051797389984, 0.3982565104961395, -0.0897529125213623, 0.4547501802444458, 0.26242750883102417, -0.16175667941570282, 0.21309293806552887, 0.17499089241027832, 0.5188267827033997, 0.009832926094532013, -0.4894420802593231, -0.30854862928390503, -0.10530933737754822, -0.02227766253054142, -0.14535798132419586, -0.1314471960067749, -0.21356752514839172, -0.17157280445098877, 0.16775386035442352, -0.20210421085357666, -0.09774474799633026, 0.09347138553857803, -0.48903781175613403, 0.2789088189601898, -0.26716262102127075, -0.017227672040462494, -0.22554194927215576, 0.236805260181427, -0.3388526439666748, -0.0028132274746894836, 0.15307387709617615, -0.10816973447799683, -0.07584161311388016, -0.05322445556521416, -0.167122483253479, 0.28892940282821655, 0.0708022341132164, 0.6286578178405762, 0.08713383972644806, -0.3619210422039032, -0.14135755598545074, 0.10619191825389862, 0.6050750017166138, 0.37314245104789734, -0.3529825210571289, 0.3440542221069336, 0.14444401860237122, -0.5278425216674805, -0.13232392072677612, -0.14307273924350739, 0.2472812384366989, -0.08006063103675842, 0.619235098361969, -0.281061053276062, -0.21028663218021393, 0.0483550950884819, 0.3565574288368225, -0.05513589829206467, -0.07017538696527481, -0.3375284671783447, -0.09485523402690887, -0.26575616002082825, -0.17509812116622925, -0.008599333465099335, 0.3727571368217468, -0.11776193231344223, -0.03078288771212101, -0.10241588950157166, -0.20328399538993835, 0.09420547634363174, -0.061563462018966675, 0.5736798644065857, -0.10580777376890182, 0.3382009267807007, -0.040429309010505676, 0.272807240486145, 0.7298616766929626, 0.389646977186203, 0.04856513440608978, -0.27660244703292847, 0.20844045281410217, 0.06652850657701492, 0.35249507427215576, 0.0325586199760437, -0.07743827998638153, 0.027674224227666855, -0.1396046280860901, 0.10973210632801056, -0.06651552021503448, 0.08004742115736008, 0.3577902913093567, -0.021420270204544067, -0.6502230167388916, -0.24151131510734558, 0.34916844964027405, 0.21812990307807922, -0.04460638016462326, 0.48575595021247864, -0.18558849394321442, -0.461042195558548, 0.13228175044059753, 0.0488300658762455, 0.917633056640625, 0.07885561883449554, 0.3388040065765381, 0.18194296956062317, -0.2325962334871292, 0.2211383432149887, 0.16566038131713867, 0.16699159145355225, -0.25195640325546265, -0.2050485908985138, -0.11600623279809952, -0.39287805557250977, -0.04028753191232681, 0.12299125641584396, -0.2947123646736145, 0.14197702705860138, -0.4592791795730591, 0.11786539852619171, -0.12656357884407043, -0.013210020959377289, -0.16528983414173126, -0.21604980528354645, -0.16198156774044037, 0.01307346299290657, -0.031264834105968475, -0.15887153148651123, -0.01415934506803751, -0.24843163788318634, -0.31445077061653137, -0.09130441397428513, -0.15309804677963257, 0.2241208553314209, -0.2308596521615982, 0.7114478945732117, -0.06415915489196777, -0.2984423041343689, -0.20776544511318207, 0.1909828931093216, 0.11604185402393341, -0.20210613310337067, 0.062431372702121735, -0.10678166151046753, -0.0023862645030021667, 0.043608225882053375, -0.030229466035962105, -0.12061461061239243, 0.1903313845396042, 0.10352391749620438, -0.23951773345470428, 0.11216206848621368, -0.05872468650341034, -0.33592689037323, 0.049803152680397034, 0.33672797679901123, 0.07348043471574783, -0.18480117619037628, -0.19937343895435333, 0.2047349512577057, 0.0342361144721508, -0.08933021128177643, 0.09722235798835754, 0.16332843899726868, -0.13733552396297455, 0.11539626121520996, -0.2287459522485733, -0.34221526980400085, -0.036611463874578476, 0.5363500714302063, 0.33104872703552246, 0.1768987476825714, 0.5639303922653198, -0.2513001561164856, -0.011510975658893585, -0.12108968198299408, 0.357509583234787, -0.04845568165183067, -0.11711761355400085, 0.2420291304588318, 0.04649202525615692, 0.031642720103263855, -0.16861727833747864, 0.08653509616851807, 0.42987507581710815, 0.20808836817741394, -0.11150620877742767, -0.3559648096561432, -0.5394132137298584, 0.38487517833709717, -0.13385288417339325, 0.22954893112182617, -0.09436825662851334, 0.018809154629707336, -0.21780186891555786, -0.1428946703672409, -0.2319715917110443, 0.0040236543864011765, -0.25923094153404236, 0.04605785757303238, 0.14327391982078552, -0.054220862686634064, 0.13752438127994537, -0.0019390168599784374, 0.11710256338119507, -0.053086377680301666, -0.055987246334552765, -0.10222407430410385, 0.1451754868030548, 0.14760708808898926, 0.10748907178640366, -0.2296527624130249, -0.10949612408876419, -0.35541021823883057, -0.09644201397895813, -0.14278602600097656, -0.1945216804742813, 0.14739644527435303, -0.06960684061050415, 0.09598856419324875, 0.028426166623830795, 0.16976282000541687, -0.0842253640294075, 0.17736756801605225, -0.007818445563316345, 0.12234117835760117, -0.16525699198246002, 0.32268574833869934, -0.10201903432607651, -0.10350240767002106, -0.5782657265663147, 0.008041702210903168, -0.11383886635303497, -0.11873959749937057, 0.19466179609298706, -0.2355368584394455, -0.18246735632419586, -0.06589577347040176, 0.16938915848731995, 0.42387622594833374, -0.24219490587711334, 0.053866252303123474, 0.0671154260635376, 0.11560924351215363, -0.1454007923603058, -0.23784667253494263, -0.43772926926612854, -0.16793864965438843, -0.2898411452770233, 0.017973870038986206, 0.02646521106362343, 0.02143530547618866, -0.14763297140598297, 0.047171451151371, 0.25700297951698303, -0.03312656655907631, 0.3051678240299225, 0.4617430567741394, 0.12236987054347992, 0.04979511350393295, 0.13226613402366638, 0.24849914014339447, 0.38216960430145264, 0.30370962619781494, -0.1484190821647644, 0.22876140475273132, 0.1643528938293457, -0.21518635749816895, 0.00031509995460510254, -0.29520198702812195, 0.008264228701591492, 0.2186151146888733, -0.15525168180465698, -0.11986859887838364, -0.019283883273601532, 0.11784551292657852, -0.301882803440094, -0.2792961001396179, -0.15895196795463562, 0.17228610813617706, -0.09790370613336563, -0.03844452649354935, -0.09086595475673676, -0.16824695467948914, -0.057713668793439865, -0.13062264025211334, 0.15837666392326355, -0.14639057219028473, 0.3186441659927368, 0.14996907114982605, -0.22768382728099823, -0.14260993897914886, 0.2273935079574585, 0.6780189275741577, -0.06400582939386368, -0.353202223777771, 0.1663103997707367, 0.47717756032943726, 0.076700359582901, 0.10966125130653381, 0.2268029898405075, 0.6265039443969727, 0.6114813685417175, 0.06252643465995789, -0.09975461661815643, 0.21632862091064453, -0.18718451261520386, 0.1355878710746765, 0.16797204315662384, 0.027832206338644028, -0.20908479392528534, 0.20760579407215118, 0.1935126632452011, -0.04559485241770744, 0.16156135499477386, 0.14688575267791748, 0.21995975077152252, -0.30955711007118225, 0.19475355744361877, -0.3178146481513977, -0.20080164074897766, 0.08132220059633255, 0.019271641969680786, -0.3569810688495636, 0.04972238466143608, 0.6105668544769287, 0.08520599454641342, 0.12317431718111038, 0.3197077214717865, 0.02370612323284149, 0.02342318929731846, 0.39119359850883484, 0.4590098261833191, 0.14059805870056152, -0.45429179072380066, -0.19318875670433044, -0.3783901333808899, -0.053324468433856964, 0.24002225697040558, 0.09847700595855713, -0.12065140902996063, 0.28327491879463196, 0.25636282563209534, -0.005638137459754944, 0.15366260707378387, 0.2694151997566223, -0.08837760239839554, -0.0958835631608963, -0.43449145555496216, -0.13295167684555054, 0.12469340860843658, -0.019477026537060738, 0.022135473787784576, -0.5010997653007507, 0.17182201147079468, 0.17362549901008606, 0.011649053543806076, -0.01225561648607254, 0.21229258179664612, 0.2748069763183594, 0.5003048777580261, 0.37911349534988403, 0.15555605292320251, 0.4756852984428406, -0.026323040947318077, -0.16170918941497803, 0.025298230350017548, -0.667995274066925, -0.1731608659029007, 0.15679486095905304, 0.003010362386703491, 0.23588287830352783, -0.33289340138435364, -0.05051523074507713, -0.18134142458438873, 0.22132346034049988, -0.11841887980699539, -0.23708640038967133, -0.16636250913143158, -0.015735814347863197, 0.04363034665584564, -0.229695662856102, 0.13400188088417053, 0.11973552405834198, 0.02352803200483322, 0.4017443060874939, -0.09754088521003723, -0.2917836606502533, 0.4567212760448456, -0.07646892964839935, -0.1883578896522522, -0.019035443663597107, 0.09826670587062836, 0.08955354243516922, 0.28539711236953735, -0.5559757351875305, -0.05513163283467293, 0.4927319884300232, -0.1836724579334259, -0.43198543787002563, 0.07861946523189545, 0.0816735327243805, 0.04354558512568474, -0.017398212105035782, 0.6414552927017212, -0.2835344970226288, -0.5346693992614746, -0.024919969961047173, -0.20456376671791077 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
It looks like an issue with wandb/tqdm here. We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility. Could you make a minimal script to reproduce or a google colab ?
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
46
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` It looks like an issue with wandb/tqdm here. We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility. Could you make a minimal script to reproduce or a google colab ?
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
hi facing the same issue here - `AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit stream.write(msg) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__ return_token_type_ids=True File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus **kwargs, File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies "Truncation was not explicitly activated but `max_length` is provided a specific value, " File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log self.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle self.callHandlers(record) File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers hdlr.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle self.emit(record) File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit self.handleError(record) File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError sys.stderr.write('--- Logging error ---\n') File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process`
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
293
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` hi facing the same issue here - `AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit stream.write(msg) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__ return_token_type_ids=True File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus **kwargs, File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies "Truncation was not explicitly activated but `max_length` is provided a specific value, " File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log self.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle self.callHandlers(record) File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers hdlr.handle(record) File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle self.emit(record) File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit self.handleError(record) File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError sys.stderr.write('--- Logging error ---\n') File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process`
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
It looks like this warning : "Truncation was not explicitly activated but max_length is provided a specific value, " is not handled well by wandb. The error occurs when calling the tokenizer. Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ? Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ?
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
80
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` It looks like this warning : "Truncation was not explicitly activated but max_length is provided a specific value, " is not handled well by wandb. The error occurs when calling the tokenizer. Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ? Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ?
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
I'm having a similar issue but when I try to do multiprocessing with the `DataLoader` Code to reproduce: ``` from datasets import load_dataset book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]') book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000) book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"]) from transformers import DataCollatorForWholeWordMask from transformers import Trainer, TrainingArguments data_collator = DataCollatorForWholeWordMask( tokenizer=tokenizer, mlm=True, mlm_probability=0.15) training_args = TrainingArguments( output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared", overwrite_output_dir=True, num_train_epochs=1, per_device_train_batch_size=64, save_steps=50, save_total_limit=2, logging_first_step=True, warmup_steps=100, logging_steps=50, gradient_accumulation_steps=1, fp16=True, **dataloader_num_workers=10**, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=book_corpus, tokenizer=tokenizer) trainer.train() ``` ``` --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <timed eval> in <module> ~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial) 869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control) 870 --> 871 for step, inputs in enumerate(epoch_iterator): 872 873 # Skip past any already trained steps if resuming training ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self) 433 if self._sampler_iter is None: 434 self._reset() --> 435 data = self._next_data() 436 self._num_yielded += 1 437 if self._dataset_kind == _DatasetKind.Iterable and \ ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self) 1083 else: 1084 del self._task_info[idx] -> 1085 return self._process_data(data) 1086 1087 def _try_put_index(self): ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data) 1109 self._try_put_index() 1110 if isinstance(data, ExceptionWrapper): -> 1111 data.reraise() 1112 return data 1113 ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self) 426 # have message field 427 raise self.exc_type(message=msg) --> 428 raise self.exc_type(msg) 429 430 AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__ format_kwargs=self._format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem format_kwargs=format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg _showwarnmsg_impl(msg) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl file.write(text) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process ``` As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py`
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
383
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` I'm having a similar issue but when I try to do multiprocessing with the `DataLoader` Code to reproduce: ``` from datasets import load_dataset book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]') book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000) book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"]) from transformers import DataCollatorForWholeWordMask from transformers import Trainer, TrainingArguments data_collator = DataCollatorForWholeWordMask( tokenizer=tokenizer, mlm=True, mlm_probability=0.15) training_args = TrainingArguments( output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared", overwrite_output_dir=True, num_train_epochs=1, per_device_train_batch_size=64, save_steps=50, save_total_limit=2, logging_first_step=True, warmup_steps=100, logging_steps=50, gradient_accumulation_steps=1, fp16=True, **dataloader_num_workers=10**, ) trainer = Trainer( model=model, args=training_args, data_collator=data_collator, train_dataset=book_corpus, tokenizer=tokenizer) trainer.train() ``` ``` --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <timed eval> in <module> ~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial) 869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control) 870 --> 871 for step, inputs in enumerate(epoch_iterator): 872 873 # Skip past any already trained steps if resuming training ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self) 433 if self._sampler_iter is None: 434 self._reset() --> 435 data = self._next_data() 436 self._num_yielded += 1 437 if self._dataset_kind == _DatasetKind.Iterable and \ ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self) 1083 else: 1084 del self._task_info[idx] -> 1085 return self._process_data(data) 1086 1087 def _try_put_index(self): ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data) 1109 self._try_put_index() 1110 if isinstance(data, ExceptionWrapper): -> 1111 data.reraise() 1112 return data 1113 ~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self) 426 # have message field 427 raise self.exc_type(message=msg) --> 428 raise self.exc_type(msg) 429 430 AssertionError: Caught AssertionError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__ format_kwargs=self._format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem format_kwargs=format_kwargs, File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs v = map_nested(command, v, **map_nested_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested return function(data_struct) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command return torch.tensor(x, **format_kwargs) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg _showwarnmsg_impl(msg) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl file.write(text) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write cb(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback self._backend.interface.publish_output(name, data) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output self._publish_output(o) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output self._publish(rec) File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish if self._process and not self._process.is_alive(): File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process ``` As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py`
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()`
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
29
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()`
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
Yep this time this is a warning from pytorch that causes wandb to not work properly. Could this by a wandb issue ?
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
23
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` Yep this time this is a warning from pytorch that causes wandb to not work properly. Could this by a wandb issue ?
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
Hi @timothyjlaurent @gaceladri If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ? This issue might be related to https://github.com/huggingface/transformers/issues/9623
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
30
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` Hi @timothyjlaurent @gaceladri If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ? This issue might be related to https://github.com/huggingface/transformers/issues/9623
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/847
multiprocessing in dataset map "can only test a child process"
I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well.
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ```
45
multiprocessing in dataset map "can only test a child process" Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook. ``` def tokenizer_fn(example): return tokenizer.batch_encode_plus(example['text']) ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text']) ``` ``` --------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper out = func(self, *args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single for i in pbar: File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__ for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs): File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__ self.close() File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close super(tqdm_notebook, self).close(*args, **kwargs) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close fp_write('') File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write self.fp.write(_unicode(s)) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write cb(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback self._backend.interface.publish_output(name, data) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output self._publish_output(o) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output self._publish(rec) File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish if self._process and not self._process.is_alive(): File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive assert self._parent_pid == os.getpid(), 'can only test a child process' AssertionError: can only test a child process """ ``` I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well.
[ -0.3957001268863678, 0.015629053115844727, -0.15386858582496643, -0.1850300133228302, 0.14179766178131104, -0.05785658583045006, 0.5068987607955933, 0.34002596139907837, -0.0834042951464653, 0.16817738115787506, -0.018427150323987007, 0.33706289529800415, 0.047501418739557266, 0.09183360636234283, -0.22644323110580444, 0.10214696824550629, -0.012360401451587677, 0.09469196945428848, 0.12901100516319275, 0.047363802790641785, -0.17530934512615204, 0.10407606512308121, -0.23025090992450714, 0.2859587073326111, -0.4516959488391876, -0.28573060035705566, -0.016321465373039246, -0.062316395342350006, -0.26432377099990845, -0.4696434736251831, -0.14911316335201263, 0.2851141691207886, -0.18611133098602295, 0.6030861735343933, -0.00010445585940033197, 0.09367270767688751, 0.26277390122413635, 0.04464969038963318, -0.054140571504831314, -0.03007027506828308, 0.09513210505247116, -0.05158625543117523, -0.030999796465039253, -0.403597891330719, -0.004478933289647102, -0.26743099093437195, 0.17791348695755005, -0.4431340992450714, 0.2878314256668091, 0.318961501121521, 0.2665320336818695, 0.5655274391174316, -0.2092227041721344, -0.004720880649983883, -0.2012014091014862, -0.07836242020130157, -0.03572062402963638, -0.16255426406860352, 0.2167164534330368, -0.24030068516731262, -0.35679319500923157, 0.24917428195476532, -0.043028537184000015, 0.17431415617465973, -0.3290867209434509, 0.0007868567481637001, 0.2776491045951843, -0.2374248504638672, 0.31723344326019287, 0.0792357549071312, 0.15078456699848175, -0.267402321100235, -0.3465929925441742, -0.18201062083244324, -0.26756614446640015, -0.1380906105041504, -0.08961725980043411, 0.08661134541034698, -0.30903202295303345, 0.023794403299689293, -0.23142878711223602, 0.06736157834529877, -0.006942331790924072, -0.09713439643383026, -0.2097461223602295, 0.6421575546264648, 0.020410088822245598, 0.2258116602897644, -0.058426108211278915, 0.042158059775829315, 0.13218434154987335, -0.12365123629570007, 0.15500083565711975, -0.028319310396909714, -0.17675946652889252, -0.13390129804611206, 0.17326973378658295, -0.36081820726394653, 0.19349405169487, -0.051814004778862, -0.27026766538619995, 0.15695223212242126, 0.12108993530273438, 0.16579090058803558, 0.16127808392047882, 0.05051350221037865, 0.15591078996658325, 0.27964845299720764, 0.29253947734832764, -0.19699527323246002, -0.3908062279224396, -0.012185875326395035, 0.027629390358924866, -0.2749153673648834, 0.19010795652866364, 0.1587807536125183, 0.1859901249408722, 0.020387154072523117, -0.31689444184303284, -0.06742870807647705, -0.1310209035873413, -0.0011091968044638634, 0.010948831215500832, 0.4655700922012329, -0.06257700175046921, 0.21011966466903687, -0.18698552250862122, 0.2766141891479492, -0.19551853835582733, -0.13356536626815796, -0.2674529552459717, 0.1599748581647873, -0.10524120926856995, -0.09127561748027802, 0.08648791909217834, 0.22847813367843628, 0.3958969712257385, 0.05742284655570984, 0.07328175753355026, -0.08521466702222824, 0.43254125118255615, -0.21963398158550262, 0.2467173933982849, 0.05578397959470749, 0.068621426820755, 0.13591504096984863, 0.26744014024734497, -0.3098890781402588, -0.17976902425289154, -0.07488957792520523, 0.008568841964006424, -0.18837104737758636, -0.006065277382731438, 0.29343345761299133, 0.02347000315785408, 0.029438521713018417, -0.15538159012794495, 0.1325114667415619, 0.236322820186615, 0.041706111282110214, 0.008472107350826263, -0.18361563980579376, -0.2125665545463562, -0.16116313636302948, 0.16596412658691406, 0.23320382833480835, -0.12463605403900146, -0.02273297682404518, 0.020911533385515213, -0.1451626569032669, 0.27473729848861694, 0.22738689184188843, -0.0913357138633728, 0.6480851173400879, -0.17300432920455933, 0.5878827571868896, 0.1861092746257782, -0.531004011631012, -0.19015413522720337, 0.20922277867794037, -0.317712664604187, -0.01119428500533104, 0.13179104030132294, -0.16867880523204803, 0.38516145944595337, 0.08028717339038849, 0.18988029658794403, 0.24644838273525238, -0.11047665774822235, 0.2880238890647888, -0.286067396402359, -0.009603166952729225, 0.08494792878627777, -0.0719696432352066, 0.2393060326576233, -0.27047985792160034, -0.04241018742322922, -0.1621231883764267, 0.2372235357761383, -0.1482037603855133, 0.2230832278728485, -0.04438544064760208, 0.06252716481685638, 0.08184320479631424, -0.03920070081949234, -0.1215573251247406, 0.07880957424640656, 0.21578451991081238, 0.043368883430957794, 0.041813597083091736, -0.19059397280216217, -0.19841206073760986, -0.09637251496315002, 0.27606603503227234, -0.2941962778568268, -0.34307387471199036, 0.35051363706588745, 0.35717934370040894, -0.01985139027237892, -0.022445663809776306, -0.07541365921497345, 0.12011946737766266, 0.15308238565921783, 0.006208626553416252, 0.07150082290172577, -0.07855203002691269, -0.19910244643688202, -0.19746582210063934, -0.011525018140673637, 0.07268422096967697, 0.16009637713432312, 0.0034866181667894125, -0.07843587547540665, 0.4022410809993744, 0.23859165608882904, 0.10093694180250168, 0.2098904252052307, -0.17762361466884613, -0.09642884135246277, 0.007138241082429886, -0.07284047454595566, 0.11153094470500946, 0.038829971104860306, -0.02649489790201187, 0.14443069696426392, 0.49329185485839844, 0.23656025528907776, 0.19323855638504028, 0.22395001351833344, -0.01013590395450592, 0.23882317543029785, -0.106911301612854, -0.06092759966850281, -0.1341271698474884, 0.05779850110411644, 0.0031344424933195114, 0.11195504665374756, -0.1359224021434784, -0.2041953206062317, 0.17889851331710815, 0.3149350881576538, -0.08562859892845154, 0.13529831171035767, -0.1058833971619606, -0.0881044790148735, -0.192952960729599, 0.0814024955034256, 0.1926790326833725, 0.39432722330093384, 0.2004813402891159, 0.18566592037677765, -0.038640834391117096, -0.07745910435914993, -0.07346811890602112, 0.140677347779274, 0.0299726240336895, 0.19263677299022675, 0.27649998664855957, 0.24750301241874695, -0.21726872026920319, -0.3548969328403473, -0.24354586005210876, 0.17687928676605225, 0.11483468860387802, -0.13909906148910522, 0.02997700683772564, -0.317542165517807, 0.09187876433134079, -0.03234433755278587, -0.06651964783668518, 0.20711718499660492, -0.34884727001190186, 0.10942059755325317, 0.18526768684387207, -0.16941837966442108, 0.3220190703868866, -0.11713816225528717, 0.08989787101745605, -0.013482926413416862, -0.02175120823085308, -0.09880950301885605, -0.14744172990322113, -0.12541791796684265, 0.1327667087316513, 0.1662154644727707, 0.14497612416744232, 0.4963168501853943, 0.0013359542936086655, -0.2189732939004898, -0.5480387806892395, -0.24517208337783813, 0.09712927043437958, -0.16339999437332153, 0.19549082219600677, 0.27789536118507385, 0.04275635629892349, -0.02506876550614834, -0.3409392237663269, 0.3002496659755707, -0.4462933838367462, -0.3732336759567261, -0.2133505642414093, 0.09489824622869492, -0.17220374941825867, -0.0335690975189209, -0.37645164132118225, -0.32362350821495056, -0.18133659660816193, 0.3523521423339844, -0.09314940869808197, 0.17161111533641815, -0.15545731782913208, -0.10545162111520767, 0.1455911099910736, -0.020367320626974106, 0.11214224994182587, -0.21872790157794952, -0.14481595158576965, -0.019447151571512222, -0.1510414034128189, -0.2830694913864136, -0.1560443937778473, -0.14090576767921448, 0.4374367594718933, -0.103408083319664, -0.17841830849647522, -0.04075076803565025, -0.1612139195203781, 0.436710387468338, 0.024229608476161957, -0.04900391399860382, 0.3442158102989197, 0.26968997716903687, -0.3481394648551941, -0.08738243579864502, -0.16058748960494995, 0.04964330792427063, -0.29821863770484924, -0.110307477414608, -0.18568524718284607, 0.4214317202568054, 0.20780262351036072, 0.5972418189048767, 0.028514735400676727, -0.06138884648680687, 0.13243204355239868, -0.4377174377441406, -0.017274964600801468, -0.03371964395046234, -0.4259907007217407, 0.16263028979301453, -0.26678475737571716, -0.10148623585700989, 0.1350761353969574, -0.16772937774658203, -0.11508718878030777, 0.15140697360038757, 0.0009906962513923645, -0.3835219144821167, -0.20996621251106262, 0.0377301424741745, -0.19257761538028717, 0.08604343235492706, 0.06033092364668846, 0.014109134674072266, -0.4112588167190552, 0.22607234120368958, -0.07219287008047104, -0.021836213767528534, -0.12374482303857803, -0.339827299118042, -0.34644314646720886, 0.017571749165654182, -0.6085759997367859, 0.3544568717479706, 0.13185980916023254, 0.48514848947525024, 0.13677923381328583, 0.005299728363752365, 0.04146586358547211, -0.28254905343055725, 0.6524975895881653, -0.21519772708415985, 0.07490061968564987, 0.18368104100227356, -0.32771360874176025, -0.2910262942314148, -0.04365966469049454, -0.355753093957901, 0.4460592269897461, 0.31725335121154785, 0.4865557551383972, -0.19183321297168732, -0.3518015444278717, 0.12243136763572693, -0.01995154097676277, 0.03347579762339592, 0.011867689900100231, -0.28859785199165344, -0.3060876131057739, -0.40887200832366943, 0.3470337986946106, 0.0887138843536377, 0.18136291205883026, -0.06995078176259995, -0.12458670139312744, -0.1805429309606552, -0.03529427573084831, 0.1069817990064621, 0.18738219141960144, -0.061682358384132385, -0.15728309750556946, 0.14087288081645966, -0.021911252290010452, 0.21164506673812866, 0.23550495505332947, 0.05006078630685806, -0.09510476887226105, -0.1150437593460083, 0.09402047842741013, 0.020833104848861694, 0.41146567463874817, 0.24165350198745728, -0.16855791211128235, 0.36997437477111816, -0.1364516317844391, 0.2886340022087097, -0.11083651334047318, 0.4739767611026764, 0.5543159246444702, 0.1899578869342804, -0.10460633039474487, -0.10713493824005127, 0.03848094865679741, 0.14150013029575348, -0.1566075086593628, 0.306225061416626, -0.2532047629356384, -0.22881464660167694, 0.14763318002223969, 0.17791622877120972, 0.577025294303894, -0.09325045347213745, 0.08757589757442474, 0.06928277015686035, -0.03396588936448097, 0.06642576307058334, -0.3225959539413452, 0.12474279850721359, -0.2881052494049072, -0.12236826121807098, 0.06375078111886978, -0.04897737875580788, 0.16195854544639587, 0.18762391805648804, -0.32566848397254944, 0.13548661768436432, 0.27918481826782227, 0.1854790896177292, 0.024483073502779007, 0.43164995312690735, 0.007525824010372162, -0.230082705616951, -0.023364096879959106, 0.22795212268829346, 0.17968261241912842, -0.05628730729222298, -0.02793000265955925, 0.10048077255487442, -0.06918410211801529, -0.3762969374656677, -0.1939992755651474, 0.02087286487221718, -0.4312959611415863, 0.39423102140426636, 0.023780457675457, 0.059465423226356506, 0.02813388779759407, 0.14587131142616272, 0.14479678869247437, 0.2050364464521408, 0.010779181495308876, 0.1170278936624527, 0.09324776381254196, 0.09103889018297195, 0.08385539799928665, -0.2934495806694031, 0.2623492181301117, -0.12499137222766876, -0.4529617428779602, 0.05692703276872635, -0.07048999518156052, -0.25043362379074097, 0.024405136704444885, 0.10592292994260788, 0.2930750846862793, -0.2247791737318039, 0.04231831431388855, -0.04646497964859009, -0.23834946751594543, -0.39656269550323486, 0.20394444465637207, -0.1147942990064621, -0.1983674168586731, 0.2978394031524658, -0.1070738285779953, -0.30556410551071167, -0.028058961033821106, 0.28361961245536804, 0.02998524159193039, 0.15216533839702606, 0.5996185541152954, -0.07733064144849777, -0.11564120650291443, -0.4316452443599701, 0.09796059876680374, 0.31893447041511536, 0.14947524666786194, 0.24773992598056793, -0.18954472243785858, -0.24317923188209534, 0.07211896777153015, 0.18855062127113342, 0.03789219632744789, 0.1453275978565216, -0.240258127450943, -0.29218757152557373, -0.4588642418384552, 0.004602454602718353, -0.17038986086845398, 0.2114722579717636, 0.19438937306404114, 0.4413281977176666, -0.13522396981716156, 0.23665443062782288, -0.4279208481311798, -0.03729638457298279, -0.46850425004959106, 0.24837233126163483, -0.04784034192562103, -0.09035006910562515, 0.045087527483701706, 0.051390767097473145, 0.30589282512664795, 0.2208818793296814, -0.05766119062900543, -0.38705915212631226, -0.0921495109796524, 0.09315277636051178, 0.10928061604499817, 0.014330470003187656, 0.19763866066932678, 0.21313230693340302, -0.22416093945503235, -0.263784795999527, 0.10435900092124939, 0.12850898504257202, -0.08723379671573639, 0.07877606153488159, 0.18168306350708008, 0.03261423856019974, -0.025690719485282898, -0.33613017201423645, -0.05618585646152496, 0.032077543437480927, -0.06676062941551208, 0.33044299483299255, 0.031325098127126694, -0.05450856685638428, 0.09978055208921432, 0.05938146263360977, 0.28283023834228516, 0.22852462530136108, 0.03065294586122036, -0.10304811596870422, -0.34916451573371887, -0.002898587379604578, 0.384674996137619, 0.24404488503932953, -0.24257667362689972, -0.09391723573207855, 0.21903449296951294, 0.3167303502559662, -0.2319251298904419, -0.07277514785528183, 0.2596983313560486, -0.3800114393234253, 0.37908193469047546, 0.226114422082901, 0.007206734269857407, 0.18527057766914368, 0.11054456979036331, 0.005097756162285805, 0.22658340632915497, -0.39736777544021606, -0.011979343369603157, 0.0900445356965065, -0.14106988906860352, 0.19856248795986176, 0.44924142956733704, 0.07346692681312561, 0.24628975987434387, 0.34100645780563354, 0.014755651354789734, 0.5114736557006836, -0.12468590587377548, 0.07249385863542557, 0.05890906602144241, -0.04156816005706787, 0.3311863839626312, -0.0005666911602020264, -0.034797683358192444, 0.008965551853179932, -0.08801206946372986, 0.3054788112640381, -0.3336261808872223, -0.05286746472120285, -0.21244415640830994, 0.36878880858421326, -0.19148319959640503, -0.38564011454582214, -0.23804724216461182, -0.08182966709136963, -0.14134982228279114, -0.07851631939411163, -0.019069697707891464, 0.19731353223323822, 0.0451895035803318, -0.08204211294651031, 0.013134241104125977, -0.22125357389450073, -0.019215192645788193, -0.07835831493139267, 0.13081972301006317, -0.26260054111480713, 0.20014981925487518, 0.13146992027759552, 0.14044225215911865, -0.16711124777793884, 0.6095544695854187, 0.5709317326545715, 0.3046993017196655, -0.19885887205600739, -0.12603242695331573, -0.3344714045524597, -0.13865427672863007, -0.20023486018180847, 0.2863619327545166, 0.00031667202711105347, -0.17479915916919708, 0.2625155448913574, 0.27722442150115967, -0.2658778727054596, -0.15649738907814026, 0.41903483867645264, -0.17714495956897736, 0.1225866824388504, 0.16750869154930115, 0.13536086678504944, -0.22696620225906372, 0.07329615950584412, 0.10387053340673447, -0.3389841616153717, -0.03455638140439987, 0.2996349334716797, -0.235795259475708, 0.3266509473323822, -0.1310752034187317, 0.16378472745418549, 0.04630345478653908, 0.4507511556148529, 0.05032290145754814, 0.17392998933792114, -0.31428468227386475, -0.13315287232398987, -0.5782245397567749, 0.21442539989948273, -0.16886559128761292, -0.36480388045310974, -0.1931370496749878, 0.15718403458595276, 0.10294921696186066, 0.10655514150857925, 0.2409302145242691, 0.07789526879787445, -0.10901741683483124, 0.21871022880077362, -0.3619214594364166, 0.08695381879806519, 0.17559510469436646, 0.0519847497344017, 0.20431861281394958, -0.433559387922287, 0.20952382683753967, -0.0014670491218566895, 0.2383015751838684, -0.014497421681880951, 0.03477711230516434, 0.18142010271549225, -0.34012502431869507, 0.27462947368621826, 0.10931303352117538, 0.5257288217544556, -0.438383549451828, 0.09104418009519577, -0.1269075572490692, 0.16063082218170166, -0.441928893327713, 0.05747251212596893, 0.24140971899032593, 0.18923576176166534, 0.08728466182947159, -0.031147319823503494, -0.1315663754940033, 0.1188574954867363, 0.23625539243221283, -0.09222321212291718, -0.013923194259405136, 0.3029531240463257, 0.10600648075342178, 0.07488621771335602, -0.10648839175701141, 0.3399721384048462, -0.022549748420715332, 0.27317798137664795, -0.49031180143356323, -0.4749886989593506, 0.3061771094799042, -0.5121244192123413, -0.49216562509536743, -0.38598841428756714, 0.2887360155582428, -0.09396830946207047, 0.09359277784824371, -0.34497636556625366, -0.01123686134815216, 0.2883766293525696, 0.10603543370962143, -0.5911830067634583, 0.18089617788791656, 0.08866037428379059, -0.04504234343767166, -0.08898366242647171, 0.32493603229522705, 0.007714945822954178, -0.1511937528848648, -0.02118113450706005, -0.10206110775470734 ]
https://github.com/huggingface/datasets/issues/846
Add HoVer multi-hop fact verification dataset
Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies?
## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
23
Add HoVer multi-hop fact verification dataset ## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies?
[ -0.2272987812757492, -0.08233179152011871, 0.0003387872129678726, 0.14993596076965332, -0.405950665473938, -0.03459998965263367, 0.19197611510753632, 0.10570205748081207, 0.09617850184440613, -0.1447628289461136, -0.047181397676467896, -0.10354670882225037, -0.26353150606155396, 0.23446668684482574, 0.2132851779460907, -0.05957353860139847, -0.15929153561592102, -0.19479051232337952, 0.11156027019023895, 0.009325176477432251, -0.01195550337433815, 0.013074765913188457, -0.201561838388443, 0.00450550764799118, -0.5718674659729004, 0.03307525813579559, -0.2534199655056, -0.1548033356666565, 0.08582950383424759, -0.3601926267147064, 0.20603764057159424, 0.6282490491867065, 0.11204752326011658, 0.51962810754776, -0.00011653685214696452, -0.32256466150283813, 0.16292521357536316, 0.053223900496959686, -0.22201089560985565, -0.08756609261035919, -0.23451337218284607, 0.008584089577198029, 0.09813104569911957, -0.1646174043416977, 0.0027161799371242523, 0.00036910828202962875, -0.34506672620773315, 0.016951628029346466, 0.2611081600189209, 0.14500261843204498, 0.17915397882461548, 0.20807917416095734, -0.10051943361759186, 0.0022978701163083315, 0.22886955738067627, -0.05324655771255493, 0.024070633575320244, 0.5337887406349182, 0.12783324718475342, 0.008216366171836853, -0.3305611312389374, 0.2556033730506897, -0.04823433980345726, 0.09524030983448029, 0.029668940231204033, -0.2165825366973877, 0.20728224515914917, -0.02487969398498535, -0.18476834893226624, 0.6821913123130798, 0.11132007092237473, -0.1358935832977295, -0.36268413066864014, -0.1780870258808136, 0.1415119469165802, 0.19105559587478638, 0.010854721069335938, 0.083778515458107, -0.3718937635421753, 0.25232288241386414, -0.20557336509227753, -0.43190717697143555, -0.05092213302850723, 0.06195897236466408, 0.3457696735858917, 0.17885741591453552, -0.013749402947723866, 0.15113705396652222, 0.28332170844078064, 0.1685573160648346, 0.17218738794326782, -0.39325574040412903, 0.16341690719127655, -0.06128073111176491, -0.24622057378292084, -0.3360617458820343, 0.3016603887081146, 0.43684878945350647, 0.3293214738368988, 0.4084152579307556, 0.19782237708568573, 0.14902257919311523, -0.3179818391799927, 0.008550919592380524, 0.10675048828125, -0.13599614799022675, -0.36585548520088196, -0.45722663402557373, 0.3480316400527954, 0.04107747972011566, 0.17149733006954193, 0.08781782537698746, 0.08929426968097687, 0.28671786189079285, -0.31376245617866516, 0.10963797569274902, 0.12906670570373535, -0.21296057105064392, -0.14750368893146515, 0.11708799004554749, -0.47807371616363525, -0.4129665493965149, 0.12778955698013306, -0.10385391861200333, -0.05013376101851463, 0.3127093017101288, 0.23552609980106354, 0.16940937936306, 0.16469156742095947, -0.3821559548377991, -0.10320153832435608, 0.3580860495567322, -0.08517344295978546, 0.17193248867988586, 0.2503605782985687, 0.137854665517807, -0.1598968356847763, -0.007886301726102829, 0.24751725792884827, 0.11924406886100769, 0.15884801745414734, -0.29289233684539795, -0.09502831846475601, -0.2073488086462021, -0.22179803252220154, -0.08616288006305695, 0.04052027314901352, -0.17739643156528473, -0.05801040679216385, 0.12054949253797531, 0.12899774312973022, -0.2766110599040985, -0.09559556841850281, 0.11327062547206879, -0.5047515630722046, -0.0760265663266182, -0.4323449432849884, 0.582062304019928, -0.08950386196374893, 0.23449069261550903, -0.0069963932037353516, 0.16987712681293488, 0.028358597308397293, -0.042443178594112396, 0.07306189835071564, 0.4558427333831787, 0.06934337317943573, -0.06326663494110107, -0.1861066073179245, -0.020326979458332062, -0.14980745315551758, -0.14191533625125885, -0.04073703661561012, 0.34620362520217896, -0.1862294226884842, 0.07489338517189026, 0.11253054440021515, -0.4129199683666229, -0.07666724920272827, 0.2678285241127014, -0.36458253860473633, 0.07790201902389526, 0.3461769223213196, 0.16960091888904572, 0.015096760354936123, -0.3515821695327759, -0.24335485696792603, 0.5789188146591187, -0.01914435811340809, 0.0034194719046354294, -0.4578883647918701, -0.09630203992128372, 0.012938058003783226, 0.22650407254695892, 0.07874707877635956, -0.3378920257091522, -0.05352777987718582, 0.30430829524993896, 0.3111547529697418, -0.039329130202531815, 0.22383244335651398, -0.058061517775058746, 0.2108476310968399, -0.6122568845748901, -0.027799323201179504, -0.1950298249721527, -0.16230785846710205, -0.08379392325878143, 0.2959185838699341, 0.4300272464752197, 0.3091980218887329, -0.13488182425498962, -0.1295536905527115, -0.09975920617580414, -0.2761283218860626, -0.4181808531284332, 0.1464831829071045, 0.3087127208709717, 0.1575440764427185, 0.061832498759031296, -0.05198153480887413, -0.03817825764417648, 0.08857348561286926, 0.016005264595150948, 0.1007428765296936, 0.4683503210544586, -0.011654870584607124, 0.09498536586761475, 0.008957568556070328, 0.37448859214782715, -0.14418724179267883, -0.27359554171562195, 0.04916739836335182, 0.4318179786205292, -0.25931882858276367, -0.06927406787872314, 0.7123370170593262, 0.25893455743789673, 0.31654518842697144, -0.43103301525115967, 0.21043992042541504, -0.016711972653865814, 0.12576048076152802, -0.14464999735355377, -0.2468675971031189, 0.34539830684661865, 0.1053263396024704, 0.15792037546634674, -0.06184791773557663, 0.1428496092557907, 0.07961384207010269, -0.14160901308059692, -0.28808942437171936, -0.017371542751789093, 0.44001147150993347, 0.012646366842091084, 0.227901890873909, -0.2999403774738312, -0.0706615075469017, 0.27266058325767517, -0.08128641545772552, 0.03993959352374077, 0.2333284616470337, 0.16114765405654907, -0.04334352910518646, -0.28643304109573364, -0.029445001855492592, 0.16462212800979614, 0.33580684661865234, 0.17401860654354095, 0.28495660424232483, -0.06597593426704407, 0.06293022632598877, -0.09057130664587021, 0.209753155708313, -0.19039739668369293, -0.21696871519088745, 0.04363367706537247, 0.062460243701934814, 0.025450818240642548, -0.13613900542259216, -0.49845191836357117, 0.23666563630104065, 0.3610857427120209, -0.15825781226158142, -0.11052396893501282, -0.16880959272384644, -0.30750757455825806, -0.19222721457481384, -0.34181535243988037, -0.21884340047836304, -0.43178319931030273, 0.009506989270448685, 0.0510064959526062, 0.2749844789505005, 0.3618485927581787, 0.2475440502166748, 0.48541730642318726, -0.04822998493909836, 0.4010952413082123, -0.10884061455726624, -0.15639728307724, -0.03411208838224411, 0.14466358721256256, 0.2256753146648407, 0.1414288878440857, 0.47246161103248596, 0.07367169111967087, 0.1783834993839264, -0.23519229888916016, -0.35865190625190735, 0.21056422591209412, -0.01597648113965988, 0.22866998612880707, 0.23411132395267487, 0.049962855875492096, 0.20003949105739594, 0.21427805721759796, 0.1577642560005188, 0.0015252046287059784, -0.14171241223812103, 0.1305214762687683, -0.13217425346374512, 0.009781182743608952, -0.10546907782554626, 0.18493762612342834, -0.2513532340526581, -0.115351602435112, 0.37718474864959717, 0.028877530246973038, -0.08702842891216278, 0.0213877372443676, -0.11460496485233307, 0.32486841082572937, -0.19242092967033386, 0.02945060096681118, -0.2875552177429199, -0.5863479971885681, -0.023505840450525284, -0.08175158500671387, -0.025593947619199753, -0.39165812730789185, -0.3142074942588806, 0.15211176872253418, -0.13754704594612122, -0.525384247303009, -0.339983731508255, 0.002222783863544464, 0.2595577836036682, 0.1521727591753006, 0.0431392565369606, 0.24126267433166504, -0.10674434155225754, -0.10256893187761307, 0.04142621159553528, 0.0672292709350586, 0.0882847011089325, -0.16837427020072937, 0.349638432264328, 0.22705337405204773, -0.11187753826379776, 0.5127782821655273, 0.40724533796310425, 0.10616904497146606, 0.06392653286457062, 0.22012807428836823, -0.06864272803068161, 0.07772938162088394, 0.18956634402275085, -0.5597395300865173, 0.4821091294288635, -0.031890735030174255, -0.0508245974779129, -0.03699542582035065, -0.13150513172149658, 0.2448635846376419, -0.29710686206817627, 0.07029983401298523, -0.06702353805303574, -0.2937931716442108, 0.12640082836151123, -0.3778008818626404, 0.12396810948848724, 0.10893799364566803, -0.32090622186660767, -0.12429347634315491, -0.21897590160369873, 0.14180362224578857, 0.29422926902770996, 0.22773906588554382, -0.2954150438308716, -0.06687602400779724, -0.095034159719944, -0.3934742510318756, 0.38944023847579956, 0.06615769118070602, -0.09003367274999619, 0.11268803477287292, -0.004427455365657806, -0.003952674567699432, 0.09221488982439041, 0.4180677533149719, -0.5143921375274658, 0.13533341884613037, 0.11679206788539886, 0.03368828445672989, -0.5341299772262573, 0.03393903747200966, -0.4302000403404236, -0.06276462227106094, 0.17732349038124084, 0.04358736798167229, -0.45583170652389526, -0.13319970667362213, 0.7585169076919556, 0.044862959533929825, 0.0005281306803226471, -0.33609065413475037, 0.11096188426017761, 0.06611822545528412, -0.2460401952266693, 0.05610714852809906, -0.009907226078212261, 0.020870115607976913, -0.0661032423377037, 0.03467448428273201, 0.2253529131412506, 0.11616932600736618, 0.392164409160614, 0.02355062961578369, -0.13760831952095032, 0.2696409523487091, 0.08502641320228577, -0.2122834026813507, -0.30363568663597107, 0.17364004254341125, 0.15384583175182343, -0.010286130011081696, -0.08469398319721222, 0.07962936908006668, -0.03789300471544266, 0.2571399509906769, 0.37858060002326965, 0.059766992926597595, 0.368581622838974, 0.07229018211364746, 0.2682341933250427, -0.2171766757965088, 0.17673850059509277, -0.11007800698280334, 0.0010995054617524147, 0.0037902286276221275, -0.1943552941083908, 0.4577752947807312, 0.08860905468463898, -0.17856670916080475, -0.18373510241508484, -0.10823845863342285, -0.023682964965701103, -0.0018279878422617912, 0.053235121071338654, 1.2627149820327759, 0.24548660218715668, -0.013365659862756729, 0.2612294554710388, 0.18886353075504303, 0.4842991232872009, -0.49831801652908325, -0.27378565073013306, -0.18676142394542694, -0.029472868889570236, -0.16516917943954468, -0.3271547853946686, -0.004653602838516235, 0.19266466796398163, -0.3592124283313751, -0.11460565030574799, 0.12746909260749817, 0.021014008671045303, 0.04435693472623825, 0.5635525584220886, -0.08758124709129333, -0.28357604146003723, 0.24533487856388092, 0.16947714984416962, -0.2909671664237976, 0.09915176033973694, -0.13856422901153564, -0.19205321371555328, -0.14448273181915283, -0.20572596788406372, -0.4938209056854248, -0.13060589134693146, -0.10884437710046768, 0.11455201357603073, -0.23448941111564636, -0.3886842727661133, -0.05012599006295204, -0.5567728877067566, 0.12958653271198273, 0.02992231957614422, -0.20186597108840942, -0.11303864419460297, -0.15472975373268127, -0.08670327812433243, 0.041350480169057846, -0.2835639715194702, 0.2741183936595917, 0.015172384679317474, -0.44937363266944885, 0.14591339230537415, 0.03399331495165825, -0.13737919926643372, 0.44558387994766235, -0.042631201446056366, 0.36110562086105347, 0.07611844688653946, 0.21143856644630432, 0.4344061613082886, -0.2108476310968399, -0.1954820156097412, 0.1394939124584198, 0.3742077350616455, -0.30207470059394836, 0.1498735398054123, 0.07832708954811096, 0.04749856889247894, -0.14047986268997192, 0.30553072690963745, 0.27632543444633484, -0.126775860786438, 0.12180358171463013, 0.1743711680173874, -0.1480485498905182, -0.2686433792114258, 0.4009830951690674, 0.0840240940451622, -0.48703235387802124, 0.03705346956849098, -0.17439453303813934, -0.19998699426651, -0.23733006417751312, 0.23777565360069275, 0.4147130846977234, 0.46526336669921875, 0.04487885907292366, -0.5292443037033081, 0.00942905806005001, 0.251182496547699, -0.343912810087204, -0.044637639075517654, -0.5093994140625, 0.621228814125061, 0.25255441665649414, 0.23083211481571198, -0.3422256112098694, 0.2347230315208435, -0.13923805952072144, -0.1107172816991806, 0.43953755497932434, -0.25617387890815735, 0.12689624726772308, 0.0996730625629425, 0.09840753674507141, 0.12351198494434357, -0.10386238992214203, -0.1879122257232666, -0.2445531040430069, 0.1251426637172699, 0.052608512341976166, -0.06739787012338638, 0.16349194943904877, 0.04727575182914734, -0.040086161345243454, -0.024208828806877136, -0.09849300980567932, -0.10405657440423965, 0.035375576466321945, 0.08727345615625381, -0.053979698568582535, -0.04680969566106796, -0.24685363471508026, -0.05261022597551346, 0.159573033452034, 0.1853945404291153, 0.008584681898355484, 0.058954041451215744, -0.029449108988046646, -0.08784876018762589, -0.06073169782757759, 0.2267068326473236, 0.02597241848707199, 0.06329990178346634, -0.0865548774600029, -0.00827738642692566, -0.07001002132892609, 0.4451742470264435, 0.4849710166454315, 0.23257599771022797, -0.11891722679138184, 0.10473395884037018, -0.11956606060266495, 0.18046137690544128, -0.3028199076652527, 0.29735153913497925, 0.17521671950817108, 0.17315897345542908, 0.18615561723709106, 0.4783845841884613, -0.03839141130447388, 0.03649124503135681, 0.18090134859085083, -0.05253218114376068, 0.23584270477294922, -0.2555922269821167, -0.11474849283695221, -0.1154722273349762, -0.2953895032405853, 0.11075401306152344, 0.2694615125656128, 0.1786249876022339, 0.1760023534297943, -0.12216697633266449, 0.006034672260284424, 0.054935600608587265, 0.09069408476352692, 0.08944626152515411, 0.26725542545318604, -0.21296559274196625, 0.4202236235141754, 0.25888410210609436, 0.04998075217008591, -0.09941939264535904, 0.08527402579784393, 0.6111459136009216, -0.23405559360980988, -0.03399764001369476, -0.3608173429965973, 0.22456397116184235, 0.02370893955230713, 0.11854124069213867, 0.014039237052202225, -0.20337490737438202, -0.36637356877326965, -0.3091670274734497, -0.07432879507541656, -0.1315101832151413, 0.44068247079849243, 0.11552616953849792, 0.21829994022846222, -0.2886616587638855, -0.3951529860496521, 0.08449438959360123, 0.2169124037027359, -0.3521040081977844, 0.04413142800331116, 0.4230365753173828, 0.052384234964847565, 0.011110782623291016, 0.6570653319358826, 0.1866723746061325, -0.13374394178390503, -0.3192814886569977, 0.12013120949268341, -0.335785835981369, 0.03000909648835659, -0.027610886842012405, 0.17264507710933685, 0.5718493461608887, -0.09832997620105743, 0.19776161015033722, 0.04983516037464142, -0.2692708969116211, 0.4436641037464142, 0.2408139854669571, 0.03716031461954117, -0.5864859819412231, 0.05415599048137665, 0.038103148341178894, 0.1615026891231537, -0.17078004777431488, -0.007886148989200592, -0.36888232827186584, -0.14261071383953094, 0.049899738281965256, -0.2634570896625519, -0.08250220865011215, -0.16834057867527008, 0.0525500550866127, -0.13410156965255737, 0.2285890430212021, 0.4410328269004822, -0.00961998850107193, -0.38682830333709717, -0.2921026349067688, -0.6059033274650574, 0.09895512461662292, 0.026780912652611732, -0.20236004889011383, -0.43421047925949097, 0.2664535939693451, 0.17983439564704895, 0.7058997750282288, 0.18088851869106293, -0.26683443784713745, 0.14243455231189728, 0.16243982315063477, -0.3843020796775818, 0.16875676810741425, 0.09060467034578323, -0.12432074546813965, 0.18928582966327667, 0.1048797145485878, -0.017544839531183243, 0.3335634171962738, 0.05617242306470871, -0.017239674925804138, -0.5416661500930786, 0.32254114747047424, 0.299349844455719, 0.3092266917228699, -0.02279321290552616, 0.495872437953949, 0.0934571847319603, -0.17227356135845184, -0.06671974062919617, 0.09590233862400055, 0.10080739110708237, 0.5742009282112122, -0.01603517308831215, 0.19342130422592163, -0.011890276335179806, -0.05376968905329704, -0.09877261519432068, -0.24745550751686096, -0.09659861028194427, 0.0109383724629879, -0.44214680790901184, 0.005992066115140915, -0.049869976937770844, 0.3267239034175873, 0.001891782507300377, 0.14540396630764008, -0.05504952371120453, 0.3461008071899414, -0.05505911260843277, -0.19852684438228607, 0.3473352789878845, 0.1576502025127411, -0.004853079095482826, -0.27757182717323303, 0.3810518980026245, -0.8294070959091187, -0.1915794312953949, -0.5885875821113586, -0.31442245841026306, 0.36457085609436035, 0.09715032577514648, -0.07419528812170029, 0.1580604463815689, -0.21043124794960022, 0.027230020612478256, 0.03018857166171074, 0.3414421081542969, -0.19166028499603271, -0.1499207466840744, -0.07010092586278915, -0.042963944375514984 ]
https://github.com/huggingface/datasets/issues/846
Add HoVer multi-hop fact verification dataset
Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md
## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
39
Add HoVer multi-hop fact verification dataset ## Adding a Dataset - **Name:** HoVer - **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples - **Paper:** https://arxiv.org/abs/2011.03088 - **Data:** https://hover-nlp.github.io/ - **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding) Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html). Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md
[ -0.2867434024810791, -0.2775806188583374, -0.08202391862869263, 0.02296840399503708, -0.27908575534820557, -0.12419378012418747, 0.1645181030035019, 0.11470882594585419, 0.0981631726026535, 0.14873339235782623, -0.09630350023508072, 0.05982736498117447, -0.09502272307872772, 0.2981516718864441, 0.21229374408721924, -0.10315406322479248, -0.13134855031967163, -0.04846000671386719, -0.0788758397102356, 0.038844719529151917, 0.03364141285419464, 0.13237665593624115, -0.10980144143104553, -0.05148597061634064, -0.39513257145881653, -0.011697350069880486, -0.1528685986995697, -0.14219224452972412, 0.17676642537117004, -0.347091943025589, 0.07900303602218628, 0.45573124289512634, -0.03801485896110535, 0.3522496521472931, -0.00010600549285300076, -0.1624501645565033, 0.13360171020030975, 0.04366905987262726, -0.24592669308185577, 0.08309129625558853, -0.08094750344753265, 0.07289978116750717, 0.14751175045967102, -0.0974186360836029, -0.1465436816215515, -0.04169657826423645, -0.23588941991329193, 0.13735783100128174, 0.35291212797164917, 0.15120577812194824, 0.2692037522792816, 0.37448734045028687, -0.09097041189670563, -0.17688219249248505, 0.14661502838134766, -0.11516676843166351, 0.03396373987197876, 0.47478410601615906, 0.059979185461997986, -0.01175575703382492, -0.44768303632736206, 0.40650519728660583, 0.0009208302944898605, 0.16964854300022125, -0.11792782694101334, -0.10645249485969543, 0.15292733907699585, -0.07464323937892914, -0.04373074322938919, 0.6290504336357117, -0.1349586844444275, -0.14677613973617554, -0.3264870345592499, -0.24911096692085266, 0.042811594903469086, 0.13434694707393646, 0.04430080205202103, 0.14908061921596527, -0.2735670506954193, 0.20224982500076294, -0.21493282914161682, -0.09401164948940277, -0.029870402067899704, 0.05262286216020584, 0.21327894926071167, 0.16905876994132996, -0.10910829901695251, -0.02343600243330002, 0.3585715889930725, 0.15951697528362274, -0.035753339529037476, -0.24319636821746826, 0.16877195239067078, -0.18600308895111084, -0.06060033664107323, -0.2975717782974243, 0.28984078764915466, 0.3649701774120331, 0.3671048581600189, 0.30126291513442993, 0.2652045786380768, 0.15825054049491882, -0.2483096718788147, 0.09415386617183685, -0.06874702870845795, -0.09530887007713318, -0.28748589754104614, -0.5833559632301331, 0.3475053310394287, 0.23141588270664215, 0.12969902157783508, 0.07800988852977753, 0.17832085490226746, 0.2515966296195984, -0.3900650441646576, 0.08369405567646027, -0.1611858457326889, -0.1440848857164383, -0.18613353371620178, 0.10619622468948364, -0.3253612518310547, -0.12504521012306213, 0.054886650294065475, 0.07113814353942871, -0.10081826895475388, 0.33134326338768005, 0.18492728471755981, 0.09176724404096603, 0.08346866071224213, -0.30772969126701355, -0.21070578694343567, 0.3382159173488617, -0.03270116448402405, 0.1933872252702713, 0.24911649525165558, 0.08625063300132751, 0.18021343648433685, 0.11435390263795853, 0.2216908186674118, 0.03045901656150818, 0.1632222831249237, -0.265165239572525, 0.0008841827511787415, -0.07099641859531403, -0.09510614722967148, -0.22645467519760132, 0.07638545334339142, -0.18936188519001007, -0.12720759212970734, -0.10043186694383621, 0.10269217193126678, -0.1465357542037964, -0.10665968060493469, 0.21350498497486115, -0.38865506649017334, -0.1913701891899109, -0.26060208678245544, 0.4759398400783539, -0.1730583906173706, 0.2680043876171112, 0.0965697169303894, 0.23440106213092804, 0.11718504130840302, 0.008359123021364212, 0.16052895784378052, 0.3687472343444824, 0.12127828598022461, -0.25068968534469604, 0.033129479736089706, -0.08584791421890259, -0.17671462893486023, -0.07078613340854645, -0.048602957278490067, 0.21609550714492798, -0.21606342494487762, 0.1856979876756668, -0.03790832310914993, -0.31637856364250183, -0.11670903861522675, 0.07206020504236221, -0.3015662431716919, 0.0878666341304779, 0.268044650554657, 0.08022641390562057, 0.05434185639023781, -0.10529696941375732, -0.16612465679645538, 0.5198560953140259, 0.09676813334226608, 0.19076701998710632, -0.3441920578479767, -0.16779373586177826, -0.23221929371356964, 0.1796373724937439, -0.013558227568864822, -0.32028448581695557, 0.011876322329044342, 0.2393244057893753, 0.3109693229198456, -0.09908893704414368, 0.13303697109222412, 0.07124130427837372, 0.10444959998130798, -0.4205803871154785, -0.10689310729503632, -0.21722492575645447, -0.08728566020727158, -0.11557397991418839, 0.052144743502140045, 0.4067136347293854, 0.16214820742607117, -0.22236867249011993, -0.21389159560203552, -0.060382306575775146, -0.12633870542049408, -0.4186023771762848, 0.31507253646850586, 0.4057450294494629, 0.1784081906080246, 0.13477525115013123, 0.07227623462677002, -0.05472718924283981, 0.088334821164608, 0.11203699558973312, 0.10673198103904724, 0.28691917657852173, -0.04644782841205597, -0.05715527385473251, 0.23285406827926636, 0.22362270951271057, -0.1332378387451172, -0.20888866484165192, 0.10522350668907166, 0.46356692910194397, -0.2398422211408615, 0.1055542528629303, 0.5500935316085815, 0.32640451192855835, 0.17263081669807434, -0.313143789768219, 0.10958712548017502, 0.07894378900527954, 0.06649526208639145, 0.0865846648812294, -0.3467361032962799, 0.42701685428619385, 0.28281480073928833, 0.0556458942592144, 0.09295983612537384, 0.12657327950000763, 0.20599330961704254, -0.11934584379196167, -0.20361486077308655, -0.17944613099098206, 0.36337167024612427, -0.02553657814860344, 0.238350972533226, -0.20116521418094635, -0.1728341281414032, 0.269005686044693, 0.09631411731243134, 0.1139984130859375, 0.3939312696456909, 0.15792059898376465, -0.30277013778686523, -0.374329537153244, 0.08895739912986755, 0.03222128376364708, 0.009488366544246674, 0.29326629638671875, 0.3736002445220947, -0.1231614276766777, -0.06324836611747742, -0.23459352552890778, 0.2791769206523895, -0.21511800587177277, -0.2966950535774231, 0.10722294449806213, 0.17573784291744232, -0.07948627322912216, -0.4073750972747803, -0.4114876985549927, -0.03747473657131195, 0.08194271475076675, -0.06280434876680374, -0.0727672129869461, -0.18208353221416473, -0.3367844521999359, -0.107310451567173, -0.20509299635887146, -0.20287348330020905, -0.37386858463287354, 0.16554516553878784, 0.1847129464149475, 0.07968120276927948, 0.31504541635513306, 0.1682981699705124, 0.5256706476211548, 0.04839770495891571, 0.4300486743450165, -0.11322224140167236, -0.1184881180524826, -0.04630888253450394, 0.2272655963897705, -0.03511523827910423, 0.13833174109458923, 0.4301140010356903, 0.032306008040905, 0.1055169627070427, -0.1346317082643509, -0.33817678689956665, 0.32743918895721436, 0.01897900179028511, 0.07846580445766449, 0.2499455213546753, 0.05619223415851593, 0.23569785058498383, 0.15940171480178833, 0.1428951919078827, -0.15699690580368042, -0.1630941480398178, 0.14788906276226044, -0.12655429542064667, 0.06575486809015274, -0.22589664161205292, 0.17274346947669983, -0.13133753836154938, -0.1951170265674591, 0.4276384115219116, 0.04110993817448616, -0.0647481381893158, 0.19866301119327545, -0.02874656394124031, 0.3513505458831787, -0.3559436500072479, 0.23933333158493042, -0.2662968933582306, -0.558060348033905, 0.04628793150186539, -0.23788928985595703, -0.07499732077121735, -0.4700535237789154, -0.3998808264732361, 0.1343470960855484, -0.12884736061096191, -0.4724074602127075, -0.49221447110176086, -0.20500701665878296, 0.23396092653274536, 0.13178351521492004, 0.0074964165687561035, 0.3199826180934906, -0.11777596920728683, -0.28656983375549316, -0.013559233397245407, 0.07797031104564667, 0.1763719618320465, -0.2182675302028656, 0.1791597306728363, 0.06883464753627777, -0.179509699344635, 0.5941289067268372, 0.3341060280799866, 0.051002468913793564, -0.06257806718349457, 0.2247600555419922, -0.16150227189064026, 0.03837607428431511, 0.1382565200328827, -0.2809801995754242, 0.25560644268989563, -0.0379052609205246, 0.11966274678707123, 0.15818220376968384, -0.14702656865119934, 0.24902229011058807, -0.2720152735710144, -0.009146109223365784, -0.18863648176193237, -0.3408610224723816, 0.08591056615114212, -0.19386914372444153, 0.119676873087883, -0.05849028378725052, -0.23997414112091064, -0.015159240923821926, -0.12194245308637619, 0.25620973110198975, 0.11717890202999115, 0.16710510849952698, -0.2866935133934021, -0.0003818124532699585, -0.06842031329870224, -0.3204258680343628, 0.378792405128479, 0.11809587478637695, -0.16017447412014008, 0.10362324118614197, -0.18998485803604126, -0.06983324885368347, 0.022060446441173553, 0.2806839346885681, -0.3590143024921417, 0.16857880353927612, -0.0736781507730484, -0.1262991726398468, -0.4930107295513153, 0.17246538400650024, -0.6214960217475891, -0.23099415004253387, 0.22845572233200073, 0.09479937702417374, -0.5830439329147339, -0.13534367084503174, 0.6615108251571655, -0.03213122859597206, 0.0462496317923069, -0.1048673614859581, 0.03951864317059517, 0.032098084688186646, -0.21985377371311188, 0.1494940221309662, -0.023657822981476784, -0.08905459940433502, -0.06537759304046631, -0.05963495373725891, 0.15297599136829376, -0.04614724591374397, 0.14300969243049622, 0.2116665095090866, -0.08762326091527939, 0.24342168867588043, -0.10068871080875397, -0.21093904972076416, -0.13484521210193634, 0.07491318881511688, 0.07121815532445908, 0.08368401229381561, -0.030553407967090607, -0.12035389989614487, 0.02641221508383751, 0.058853596448898315, 0.3391491174697876, 0.05643617734313011, 0.47600844502449036, 0.03574557974934578, 0.3672851324081421, -0.227615624666214, 0.2897329032421112, -0.07221197336912155, -0.045416392385959625, 0.2744019329547882, 0.00042595528066158295, 0.5121608972549438, 0.0745411217212677, -0.10955683141946793, -0.22213128209114075, -0.07299220561981201, -0.10392305999994278, 0.038048695772886276, 0.13246046006679535, 1.1257494688034058, 0.3289623260498047, 0.03779274597764015, 0.3225512206554413, 0.1011454313993454, 0.4174519181251526, -0.3723428249359131, -0.0780910924077034, -0.11759625375270844, -0.11190096288919449, -0.07548625767230988, -0.1083519458770752, -0.06850562244653702, 0.08305256068706512, -0.41197794675827026, -0.09018664062023163, 0.09353797137737274, -0.037863072007894516, 0.005759339779615402, 0.35823696851730347, -0.2234947681427002, -0.3446010947227478, 0.005432278849184513, 0.25272876024246216, -0.259734570980072, 0.12202322483062744, -0.05104091390967369, -0.11565762758255005, -0.04209040477871895, -0.21229015290737152, -0.35576391220092773, -0.07914230972528458, -0.11584878712892532, 0.01639852486550808, -0.11871057748794556, -0.2603161931037903, -0.39319509267807007, -0.4722172021865845, 0.1464756727218628, 0.1668834388256073, -0.23644116520881653, -0.03383595123887062, -0.2105509638786316, -0.1473633050918579, 0.06039796024560928, -0.13468149304389954, 0.1946256011724472, -0.024294767528772354, -0.33633264899253845, 0.0735558494925499, 0.051482170820236206, -0.08995745331048965, 0.4749714136123657, -0.12144595384597778, 0.10727117955684662, 0.13458871841430664, 0.353814959526062, 0.26687055826187134, -0.3107759654521942, -0.2847300171852112, 0.2133522778749466, 0.2541809380054474, -0.2631846070289612, 0.07717441767454147, 0.0967085212469101, -0.0011073946952819824, -0.25682365894317627, 0.4368760883808136, -0.0553014799952507, -0.026105687022209167, 0.010699616745114326, 0.2215568870306015, -0.19901128113269806, -0.3756072223186493, 0.09229741245508194, 0.04635607823729515, -0.440669447183609, 0.24394254386425018, -0.2361661195755005, -0.3502997159957886, -0.24190250039100647, 0.36630573868751526, 0.3758278489112854, 0.40895161032676697, -0.02477709762752056, -0.4372682571411133, -0.06497583538293839, 0.3385906219482422, -0.2752913236618042, 0.09091021120548248, -0.23209121823310852, 0.5329757928848267, 0.21944670379161835, 0.17241761088371277, -0.4702298939228058, 0.06673850119113922, -0.34355902671813965, -0.06251522153615952, 0.28466182947158813, -0.3762764036655426, 0.2563639283180237, 0.20987313985824585, 0.22851842641830444, 0.1995832622051239, -0.04185787960886955, -0.3190552890300751, -0.21921175718307495, 0.041325345635414124, -0.0831858366727829, 0.05825291574001312, 0.12923195958137512, 0.2694723606109619, -0.02349315583705902, -0.18862119317054749, 0.11123068630695343, -0.14885163307189941, 0.06500711292028427, 0.1702757328748703, -0.1654927134513855, 0.07774868607521057, -0.06856990605592728, -0.24595189094543457, 0.056808341294527054, 0.06793446838855743, -0.000695791095495224, -0.011313255876302719, -0.18983444571495056, -0.17948830127716064, 0.09086351096630096, 0.30383363366127014, 0.159219890832901, 0.01417812705039978, -0.03174557536840439, 0.1759512722492218, -0.27168703079223633, 0.3827175498008728, 0.46696463227272034, 0.16052478551864624, -0.036592092365026474, 0.06632690876722336, -0.12336530536413193, 0.3364463448524475, -0.3178904950618744, 0.23930352926254272, 0.029143108054995537, 0.019066551700234413, 0.41455379128456116, 0.4714476466178894, -0.07471565902233124, -0.10812737047672272, 0.23668161034584045, 0.06671112030744553, 0.1551905870437622, -0.24020813405513763, -0.23825828731060028, -0.08767127990722656, -0.08592698723077774, 0.04755028337240219, 0.19451631605625153, 0.11225020885467529, 0.47464826703071594, -0.23542456328868866, 0.03761301189661026, 0.1002873033285141, 0.04060015827417374, 0.1428983211517334, 0.32799115777015686, -0.04091091826558113, 0.2567058205604553, 0.25847965478897095, 0.045537739992141724, -0.02063819020986557, 0.038193125277757645, 0.5978508591651917, -0.19811895489692688, -0.007181152235716581, -0.4543904662132263, 0.2818243205547333, 0.10271253436803818, -0.02863122895359993, -0.14559385180473328, -0.19282293319702148, -0.4093616306781769, -0.23678314685821533, 0.10667683184146881, 0.030399587005376816, 0.4083538055419922, 0.052001699805259705, 0.23067128658294678, -0.3958832621574402, -0.3982170820236206, 0.19733548164367676, 0.29465851187705994, -0.31104764342308044, 0.002607913687825203, 0.5717425346374512, 0.05187271535396576, -0.05037601664662361, 0.717204213142395, 0.213889017701149, -0.22270679473876953, -0.2931579053401947, 0.09568348526954651, -0.3083191514015198, -0.07133713364601135, -0.20465028285980225, 0.00467870756983757, 0.487271249294281, -0.06673535704612732, 0.27899599075317383, 0.21490533649921417, -0.3893034756183624, 0.36184296011924744, -0.007520955055952072, 0.0917416363954544, -0.3114086389541626, -0.0006605684757232666, 0.16266115009784698, 0.2265353798866272, -0.23342019319534302, -0.08828247338533401, -0.4648963510990143, -0.12270767986774445, -0.10918664932250977, -0.2664310336112976, -0.028084080666303635, -0.1699662208557129, 0.12033766508102417, -0.03696069493889809, 0.3108155131340027, 0.42836055159568787, 0.015427526086568832, -0.11311044543981552, -0.30412834882736206, -0.3745429515838623, 0.0971510037779808, 0.0803198367357254, -0.21857157349586487, -0.4832022488117218, 0.3267866373062134, 0.0939989984035492, 0.5921636819839478, 0.04176674783229828, -0.24118544161319733, 0.21612673997879028, 0.037069231271743774, -0.3163022994995117, 0.20479607582092285, 0.00881066545844078, -0.15555955469608307, 0.3016017973423004, 0.04751734435558319, 0.011361315846443176, 0.1880793571472168, 0.2030012011528015, 0.1140051782131195, -0.35349240899086, 0.1826295405626297, 0.031319670379161835, 0.30124711990356445, 0.059401735663414, 0.2661760747432709, -0.17056035995483398, -0.2438611537218094, -0.0775655061006546, 0.08248972147703171, -0.044426195323467255, 0.32493481040000916, 0.026493467390537262, 0.26930785179138184, 0.10180205851793289, -0.07905015349388123, 0.014531197026371956, -0.05392292141914368, 0.10408788919448853, -0.04908613860607147, -0.2996731698513031, 0.025136573240160942, -0.04130824655294418, 0.17293860018253326, -0.0592397004365921, 0.2082289755344391, -0.0681929886341095, 0.16409793496131897, -0.05089826509356499, -0.5344409942626953, 0.19760680198669434, 0.13055379688739777, 0.021102041006088257, -0.2160773128271103, 0.45181795954704285, -0.6408714056015015, -0.18281592428684235, -0.4566703736782074, -0.1273539960384369, 0.2505473494529724, 0.19492271542549133, -0.16032469272613525, 0.18374879658222198, -0.18858209252357483, 0.0023341551423072815, -0.038471926003694534, 0.3554104268550873, 0.11568042635917664, -0.11338737607002258, -0.1092250794172287, -0.12697672843933105 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
Thanks for reporting ! That's a bug indeed If you want to contribute, feel free to fix this issue and open a PR :)
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
24
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 Thanks for reporting ! That's a bug indeed If you want to contribute, feel free to fix this issue and open a PR :)
[ -0.023709522560238838, 0.1297205090522766, 0.1280904859304428, 0.04222871735692024, 0.18126806616783142, -0.06104777753353119, 0.4962114691734314, 0.054330356419086456, -0.0781165063381195, 0.10937342792749405, 0.09238967299461365, 0.2173018902540207, -0.21500250697135925, -0.05732141435146332, -0.3110676407814026, -0.20985594391822815, -0.1186010017991066, 0.25478166341781616, 0.09802429378032684, -0.06322337687015533, -0.5826330184936523, 0.09489940851926804, -0.506120502948761, -0.21543322503566742, -0.35657718777656555, 0.030672069638967514, -0.13785800337791443, 0.09745785593986511, -0.19159534573554993, -0.4349968135356903, 0.38867002725601196, 0.2518528699874878, -0.050447557121515274, 0.4357788860797882, -0.00012166210217401385, 0.010391496121883392, 0.10381893813610077, -0.213018000125885, 0.08527706563472748, -0.265713095664978, -0.32003676891326904, 0.20579537749290466, -0.10553764551877975, -0.2700330317020416, -0.018702687695622444, -0.08969861268997192, -0.3070334792137146, -0.21268893778324127, 0.24210873246192932, 0.4283302128314972, 0.10786854475736618, 0.19453036785125732, -0.0735885426402092, -0.355061799287796, 0.08136072754859924, -0.3017670512199402, -0.14563247561454773, 0.4351501762866974, -0.41422516107559204, 0.037776097655296326, -0.10576296597719193, 0.024391159415245056, 0.03829139471054077, 0.2849424481391907, 0.4474446475505829, 0.10520695149898529, 0.1581568568944931, 0.038551125675439835, 0.10761099308729172, 0.3610636591911316, -0.047451235353946686, -0.2185910940170288, -0.2287299931049347, 0.03382469713687897, 0.12877701222896576, -0.7086323499679565, 0.06480885297060013, -0.2146536409854889, -0.13730791211128235, 0.018390493467450142, -0.1703183501958847, -0.22195781767368317, -0.33506834506988525, 0.19995556771755219, 0.009900979697704315, -0.055612191557884216, -0.10812181979417801, -0.011257529258728027, 0.5676794648170471, -0.09508886933326721, 0.15746590495109558, -0.22509878873825073, 0.05350527539849281, 0.05745764821767807, -0.20620472729206085, -0.10973729193210602, 0.12055987864732742, 0.012040846049785614, 0.05499250441789627, -0.41865074634552, 0.2580145299434662, 0.027716705575585365, -0.04271255433559418, 0.00721181184053421, 0.011345166712999344, 0.4146571457386017, 0.007568575441837311, 0.04219500347971916, 0.09753932803869247, 0.19130966067314148, 0.05828355625271797, 0.042094647884368896, 0.10644909739494324, -0.2987894117832184, 0.44366610050201416, 0.14264580607414246, 0.04994586110115051, -0.06508889049291611, -0.0797339379787445, -0.0866110548377037, -0.36781176924705505, -0.18217866122722626, 0.123251773416996, 0.16149982810020447, 0.17913852632045746, 0.3282143175601959, -0.22573642432689667, 0.30174678564071655, -0.021272582933306694, -0.09194086492061615, -0.146650031208992, 0.10267952084541321, -0.4289892613887787, 0.2630154490470886, 0.30888831615448, -0.23184239864349365, 0.3388223648071289, 0.32156601548194885, 0.33968037366867065, 0.06683792918920517, 0.09257760643959045, -0.2689790725708008, 0.14356929063796997, -0.11732614040374756, -0.05884969234466553, -0.19882486760616302, 0.15357549488544464, 0.2831665873527527, -0.13062621653079987, 0.15880462527275085, -0.2481675148010254, -0.22226691246032715, 0.2047494649887085, 0.07872894406318665, -0.2645999789237976, -0.05046301335096359, -0.43245676159858704, 0.12345364689826965, 0.23070120811462402, -0.04015661031007767, -0.16695937514305115, -0.21251466870307922, -0.5594498515129089, -0.190961554646492, 0.24430301785469055, 0.1580374389886856, -0.6430360674858093, 0.008755877614021301, -0.32775023579597473, 0.33203163743019104, -0.004907853901386261, 0.023063715547323227, -0.18675284087657928, 0.5240610837936401, -0.14465796947479248, 0.0781479924917221, 0.1206863671541214, -0.3428068161010742, -0.3460646867752075, -0.300277978181839, 0.2792721390724182, -0.06984356045722961, -0.009437017142772675, -0.09234993159770966, 0.11013742536306381, -0.09581603109836578, 0.27269238233566284, -0.2665002942085266, 0.21598301827907562, 0.04858609288930893, -0.16728080809116364, -0.13602857291698456, -0.09628444910049438, -0.048896268010139465, 0.0996154323220253, -0.08444864302873611, -0.08175414055585861, 0.23191183805465698, -0.23567792773246765, -0.2796458899974823, -0.017230236902832985, 0.19538910686969757, 0.18523401021957397, -0.36433929204940796, 0.20124712586402893, -0.033185482025146484, -0.01303890347480774, 0.2165411412715912, -0.03415045887231827, 0.3013232946395874, 0.15700840950012207, -0.05863642320036888, -0.4141349196434021, -0.15402238070964813, -0.1648738980293274, -0.13675904273986816, 0.020873799920082092, 0.05258100852370262, 0.07986167073249817, 0.07176147401332855, -0.26324403285980225, -0.6167683005332947, -0.206376850605011, -0.07479608058929443, -0.12053580582141876, 0.1412699967622757, 0.009512452408671379, -0.11139049381017685, 0.23246628046035767, 0.47104141116142273, 0.18146079778671265, 0.13292115926742554, -0.1492081582546234, 0.3699564039707184, 0.06966645270586014, -0.06898950040340424, 0.16759097576141357, 0.23833836615085602, -0.021451754495501518, -0.36036521196365356, 0.15818707644939423, 0.013030437752604485, 0.04146373271942139, -0.058094922453165054, 0.037345729768276215, 0.45918935537338257, 0.16492709517478943, 0.21143262088298798, -0.14927631616592407, -0.09834370762109756, 0.056031741201877594, -0.08913049846887589, -0.02035956270992756, -0.425258070230484, 0.05934765562415123, 0.046240538358688354, 0.1611887663602829, -0.07801321893930435, 0.17070750892162323, -0.15227293968200684, 0.6477604508399963, 0.2304108738899231, 0.32870903611183167, 0.22884976863861084, 0.02774815633893013, -0.1844196319580078, -0.28817018866539, -0.26125600934028625, 0.6102737784385681, 0.11984740942716599, -0.11686182022094727, 0.3002784550189972, -0.005848677828907967, -0.14544141292572021, 0.14834553003311157, 0.2962322235107422, -0.15198802947998047, -0.026105791330337524, 0.23582503199577332, 0.033682454377412796, -0.032341767102479935, 0.01763688027858734, -0.03645166754722595, 0.22144575417041779, -0.43147116899490356, 0.1298578977584839, -0.30409038066864014, 0.14820128679275513, 0.008921515196561813, -0.4882214367389679, -0.07187876105308533, -0.2311621755361557, 0.06930036842823029, -0.06749428808689117, 0.09230034053325653, 0.5150327682495117, 0.11938756704330444, 0.7285957336425781, 0.21809285879135132, -0.06839911639690399, -0.03949654847383499, -0.3551558256149292, -0.09895827621221542, 0.013084549456834793, -0.2014216184616089, -0.10847436636686325, 0.24356326460838318, -0.1952926367521286, -0.18023361265659332, 0.18806827068328857, -0.3187430202960968, 0.028164256364107132, -0.08427245169878006, 0.3037755489349365, 0.5219171047210693, -0.11949455738067627, -0.15227080881595612, 0.14338484406471252, 0.2648014426231384, 0.017820464447140694, 0.20428067445755005, 0.06699708849191666, -0.20798878371715546, 0.02985546924173832, -0.08942712843418121, -0.2768164873123169, 0.32833513617515564, -0.14721520245075226, -0.1486424058675766, 0.016293391585350037, -0.016228221356868744, -0.03957803547382355, 0.3637634217739105, 0.27278536558151245, 0.10338426381349564, -0.25505778193473816, -0.14828096330165863, -0.6655892133712769, 0.4515164792537689, -0.291075199842453, -0.13594579696655273, 0.08903555572032928, -0.23817779123783112, 0.5470308065414429, 0.0908273309469223, -0.20573575794696808, -0.5882259607315063, 0.07144278287887573, 0.2592981457710266, -0.04184317588806152, 0.09595862030982971, 0.15918073058128357, 0.08619051426649094, 0.008000170812010765, -0.16784334182739258, -0.18757431209087372, 0.18884684145450592, -0.3293331563472748, 0.19423618912696838, 0.15932732820510864, 0.2722420394420624, 0.1339792013168335, 0.8989216089248657, 0.27251771092414856, -0.2730579972267151, 0.4387989640235901, -0.06690184772014618, 0.3824108839035034, -0.39495977759361267, -0.3603944182395935, -0.13869133591651917, 0.18520663678646088, 0.08973366767168045, 0.23085719347000122, -0.08898323029279709, 0.3890799582004547, -0.07274721562862396, -0.25142693519592285, -0.09153515100479126, -0.33950725197792053, -0.03381560742855072, -0.05504070967435837, 0.5190788507461548, 0.053327154368162155, 0.3071939945220947, -0.37143152952194214, -0.20847290754318237, -0.11860892176628113, -0.1633489578962326, 0.06695335358381271, -0.16058912873268127, 0.2298692911863327, 0.36106905341148376, -0.45541495084762573, 0.44172388315200806, 0.08631829172372818, 0.10257028788328171, 0.06857171654701233, 0.4200751483440399, -0.12461921572685242, 0.020734019577503204, 0.21039819717407227, -0.41056856513023376, 0.0395163968205452, 0.008010737597942352, 0.13481785356998444, -0.4824215769767761, 0.13232730329036713, -0.059830695390701294, 0.0011062822304666042, 0.2754397392272949, 0.607590913772583, -0.17602048814296722, 0.04781665652990341, 0.30298417806625366, -0.10431160777807236, -0.07967541366815567, -0.29139214754104614, -0.3373187482357025, -0.18932795524597168, -0.042068421840667725, -0.04335661977529526, 0.02020219899713993, 0.24832384288311005, -0.010846853256225586, 0.22800226509571075, 0.16027630865573883, -0.34737688302993774, 0.1340128779411316, 0.26775529980659485, 0.17266178131103516, -0.14011673629283905, 0.10126820206642151, 0.17393888533115387, -0.6338845491409302, 0.5574403405189514, 0.2815368175506592, -0.3978591859340668, -0.6123658418655396, -0.0742354691028595, -0.06958726048469543, 0.38276389241218567, 0.14465443789958954, -0.25135958194732666, 0.04058561846613884, -0.2011120319366455, 0.08785725384950638, -0.18284112215042114, 0.32733866572380066, 0.4565599858760834, -0.10594399273395538, -0.1726168543100357, -0.5024937391281128, 0.4625493586063385, 0.08614867925643921, 0.014351144433021545, 0.05128859728574753, 0.27182096242904663, -0.34369534254074097, 0.2686660885810852, 0.07710540294647217, 0.5343251824378967, 0.35869061946868896, 0.043340519070625305, 0.24175751209259033, 0.22444866597652435, 0.2928487956523895, 0.29805469512939453, 0.06085902452468872, -0.15278705954551697, -0.018655460327863693, -0.02192346751689911, -0.13156495988368988, 0.14383399486541748, 0.1072164848446846, -0.2754090428352356, 0.5928207635879517, -0.21265774965286255, -0.18614603579044342, 0.0355655774474144, -0.10290859639644623, 0.11435915529727936, -0.2550804316997528, -0.05738314986228943, 0.09818001091480255, 0.016751933842897415, -0.11909568309783936, -0.03213271126151085, 0.06320611387491226, 0.16722668707370758, -0.26520735025405884, -0.2593880295753479, 0.0015919804573059082, 0.06191385164856911, -0.1357499659061432, 0.07500849664211273, 0.020769618451595306, 0.30085036158561707, 0.1344202607870102, 0.6360822319984436, 0.26683059334754944, -0.1996304988861084, 0.13435089588165283, -0.10559756308794022, 0.05450053885579109, 0.028887957334518433, 0.036678802222013474, -0.17490005493164062, -0.06650985777378082, -0.28718170523643494, 0.1855510175228119, 0.10309669375419617, -0.262702614068985, -0.38000887632369995, -0.2893657088279724, 0.060256220400333405, -0.17842087149620056, 0.11856119334697723, -0.18474894762039185, 0.13003787398338318, -0.25661027431488037, 0.084628626704216, -0.14471204578876495, 0.028833389282226562, 0.15877629816532135, -0.3751528561115265, -0.24574783444404602, 0.07850414514541626, 0.39845967292785645, -0.16688036918640137, 0.18267861008644104, 0.5197709798812866, -0.13842223584651947, 0.06914861500263214, -0.07186003774404526, 0.10677563399076462, 0.06123330816626549, -0.16138947010040283, 0.3675588071346283, 0.27184969186782837, 0.2357189804315567, 0.11651121824979782, 0.7036586403846741, 0.08347399532794952, -0.20884102582931519, 0.1764172613620758, -0.1835191398859024, 0.12199173122644424, -0.17457841336727142, 0.04518397897481918, 0.07576101273298264, 0.03434768319129944, 0.18044213950634003, -0.07175715267658234, 0.0012456271797418594, -0.1992887258529663, 0.22009025514125824, -0.06264407187700272, -0.108451709151268, -0.07904278486967087, -0.15889674425125122, 0.24696718156337738, 0.04277942702174187, -0.023921912536025047, 0.32280874252319336, -0.23350052535533905, -0.13345476984977722, -0.42771005630493164, 0.13141894340515137, 0.055530887097120285, -0.10273874551057816, 0.030966416001319885, -0.01703646406531334, -0.23949208855628967, -0.19012632966041565, -0.04798316955566406, 0.4341011047363281, 0.01972271502017975, 0.42651715874671936, 0.05940268188714981, 0.24946603178977966, 0.12842872738838196, -0.04009023308753967, 0.17990408837795258, 0.3275188207626343, 0.02598174288868904, 0.3166769742965698, -0.0752788633108139, -0.10056555271148682, -0.04952973127365112, 0.07808145135641098, 0.3835347294807434, -0.092829130589962, 0.17345327138900757, 0.03980613499879837, 0.012974224984645844, 0.14885790646076202, 0.3509463667869568, 0.08707746863365173, -0.4218040406703949, -0.3142797648906708, -0.06610120087862015, 0.07020414620637894, -0.4328532814979553, 0.004368436988443136, 0.01720278523862362, 0.4553103744983673, 0.09439393877983093, 0.25886476039886475, 0.1548333466053009, -0.18706071376800537, -0.09213466942310333, -0.025204051285982132, 0.16093939542770386, -0.2590939998626709, 0.2921094596385956, 0.05739684775471687, -0.15573929250240326, 0.1425217241048813, 0.5906168222427368, 0.19239667057991028, 0.26868289709091187, 0.6254938244819641, -0.1610739827156067, 0.5122525691986084, -0.2839604914188385, -0.15045104920864105, -0.20189803838729858, -0.21132296323776245, 0.1975492388010025, 0.266629159450531, 0.14872142672538757, 0.12882588803768158, -0.11324891448020935, 0.5228834748268127, -0.012800865806639194, -0.01695900224149227, -0.4258067011833191, -0.06856170296669006, 0.012879589572548866, -0.20933479070663452, -0.371913343667984, -0.27582138776779175, 0.015103712677955627, -0.012663763016462326, -0.03852193430066109, 0.04340756684541702, 0.18110351264476776, -0.044586531817913055, -0.05940878391265869, -0.08480263501405716, -0.12122715264558792, 0.14523476362228394, 0.1957993507385254, -0.0145120769739151, 0.1591162532567978, 0.31561487913131714, 0.12717674672603607, 0.17706841230392456, 0.4339846074581146, 0.24795660376548767, 0.21803349256515503, -0.045214422047138214, -0.2701665461063385, -0.054087910801172256, 0.011694638058543205, 0.15860295295715332, 0.1665060967206955, 0.2535257041454315, 0.30108973383903503, 0.2748166024684906, 0.060184575617313385, -0.14291249215602875, 0.5313390493392944, -0.15504465997219086, 0.688114583492279, -0.5048013925552368, 0.5134903788566589, 0.050823234021663666, 0.1847127079963684, 0.24510902166366577, 0.0496634766459465, -0.17784662544727325, 0.156032994389534, 0.23199258744716644, 0.197245791554451, -0.14771294593811035, -0.32739272713661194, 0.045955464243888855, -0.12393800914287567, 0.4184468388557434, 0.34657391905784607, -0.15921145677566528, -0.6492040753364563, -0.03261016309261322, -0.6483086347579956, 0.05203378200531006, -0.11404085159301758, 0.27211427688598633, 0.052223943173885345, -0.06350334733724594, -0.10889198631048203, 0.44491052627563477, 0.15978117287158966, -0.21901297569274902, -0.3276512622833252, 0.03758583962917328, -0.4445095956325531, -0.09340904653072357, -0.23963086307048798, -0.47279420495033264, 0.19050076603889465, -0.28254494071006775, -0.22040654718875885, -0.16203448176383972, 0.021777890622615814, -0.0148908831179142, -0.18549105525016785, 0.3216649293899536, 0.3808983266353607, 0.4474574029445648, 0.17736342549324036, 0.3423071503639221, 0.05421043187379837, 0.02949429117143154, -0.08184804022312164, 0.01039591059088707, -0.14003121852874756, -0.01831192523241043, -0.06837354600429535, 0.09400961548089981, -0.39029252529144287, -0.23142178356647491, -0.3763728439807892, 0.13938556611537933, 0.14529916644096375, -0.2436530441045761, -0.40691977739334106, 0.15137745440006256, 0.08006734400987625, -0.17851166427135468, -0.11122576147317886, 0.13069216907024384, -0.1412382572889328, 0.4892009496688843, -0.15563207864761353, 0.03895731270313263, 0.5096232891082764, -0.36196911334991455, -0.307829886674881, -0.09886874258518219, 0.27565503120422363, -0.10142836719751358, -0.341237336397171, -0.7951288223266602, 0.1672394573688507, 0.5032976865768433, 0.18593233823776245, -0.10840804874897003, 0.1340210884809494, -0.2913137674331665, 0.18695801496505737, 0.09370920062065125, 0.22663244605064392, -0.061869338154792786, -0.29603850841522217, 0.09382924437522888, -0.19181311130523682 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem.
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
27
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem.
[ -0.04754047095775604, 0.12642599642276764, 0.10102434456348419, 0.07860185950994492, 0.10257865488529205, -0.11232970654964447, 0.3708125352859497, 0.006237728521227837, -0.0859040692448616, 0.09649969637393951, 0.07316944003105164, 0.32716280221939087, -0.16986171901226044, -0.030479809269309044, -0.3144397437572479, -0.22135034203529358, -0.05078259855508804, 0.2818048596382141, 0.06397804617881775, -0.08646216988563538, -0.525519847869873, 0.15297292172908783, -0.42102062702178955, -0.19245393574237823, -0.25001561641693115, 0.0579412467777729, -0.052520476281642914, 0.10600420832633972, -0.2861154079437256, -0.516274631023407, 0.43732950091362, 0.264101505279541, -0.04466589540243149, 0.5172581672668457, -0.00012442890147212893, -0.009829360991716385, 0.09570927917957306, -0.19252565503120422, 0.08837093412876129, -0.2875189781188965, -0.3482614755630493, 0.150469109416008, -0.06922285258769989, -0.21166017651557922, -0.0044016651809215546, -0.011811933480203152, -0.27812549471855164, -0.17515139281749725, 0.30803778767585754, 0.3524618148803711, 0.08745980262756348, 0.20121799409389496, 0.06530746817588806, -0.34205329418182373, 0.1931595355272293, -0.3299062252044678, -0.1392868608236313, 0.3961021304130554, -0.27092406153678894, 0.05648241937160492, -0.0680728480219841, 0.03196358308196068, 0.00565817765891552, 0.26955610513687134, 0.4815793037414551, 0.091368168592453, 0.10961174219846725, -0.005541414022445679, 0.09208798408508301, 0.40919411182403564, -0.08030091971158981, -0.26747384667396545, -0.3128249943256378, 0.03694191575050354, 0.03140723332762718, -0.6414816379547119, 0.07907182723283768, -0.3048745095729828, -0.14374187588691711, -0.008725956082344055, -0.1705687791109085, -0.20990045368671417, -0.34008774161338806, 0.23574160039424896, 0.07957473397254944, 0.017417244613170624, -0.10470324754714966, -0.0014914274215698242, 0.54781174659729, -0.156669482588768, 0.2536183297634125, -0.20717433094978333, 0.08182168751955032, 0.07935795933008194, -0.1765010505914688, -0.09849411249160767, 0.09035004675388336, 0.05293697863817215, 0.0696580782532692, -0.44325828552246094, 0.24922066926956177, 0.03126000240445137, -0.04594552144408226, 0.024331212043762207, -0.055870626121759415, 0.46400895714759827, 0.027809571474790573, 0.1170429214835167, 0.04769759625196457, 0.24041882157325745, 0.10346207022666931, 0.07060955464839935, 0.10227551311254501, -0.2756897509098053, 0.3526836633682251, 0.1294335126876831, -0.008399438112974167, -0.09592817723751068, -0.1331212967634201, -0.05681969225406647, -0.34270456433296204, -0.18304163217544556, 0.1160183772444725, 0.15686863660812378, 0.1579166054725647, 0.3257535696029663, -0.22007842361927032, 0.3330320119857788, -0.04093093425035477, 0.015213887207210064, -0.08345895260572433, 0.10748344659805298, -0.3994547724723816, 0.19893001019954681, 0.3128276765346527, -0.22427701950073242, 0.3718514144420624, 0.2852115035057068, 0.32547658681869507, 0.17210140824317932, 0.1374448835849762, -0.21682283282279968, 0.13654759526252747, -0.10478201508522034, -0.0621742382645607, -0.14102387428283691, 0.1644817739725113, 0.30252695083618164, -0.13877075910568237, 0.17543897032737732, -0.22231993079185486, -0.19106419384479523, 0.17179130017757416, 0.06801360100507736, -0.26132702827453613, -0.11207841336727142, -0.4240529239177704, 0.05283169820904732, 0.22432851791381836, -0.15296471118927002, -0.17276844382286072, -0.2411653846502304, -0.4576372504234314, -0.15937329828739166, 0.2582944631576538, 0.13981413841247559, -0.6280491948127747, 0.014894910156726837, -0.3402605950832367, 0.3336734175682068, 0.03147607296705246, 0.03711642324924469, -0.14158441126346588, 0.4862437844276428, -0.07575420290231705, 0.06252270936965942, 0.17222747206687927, -0.47906526923179626, -0.40994468331336975, -0.2716499865055084, 0.3522036075592041, -0.08145575225353241, 0.06348754465579987, -0.12951938807964325, 0.1314164102077484, -0.08891042321920395, 0.22827628254890442, -0.2969481945037842, 0.21833442151546478, 0.04933861643075943, -0.2032233625650406, -0.2176334112882614, -0.19495412707328796, -0.06155577301979065, 0.14589443802833557, -0.18382081389427185, -0.10193876177072525, 0.26843398809432983, -0.24211472272872925, -0.25141429901123047, -0.006848803721368313, 0.17279230058193207, 0.23943278193473816, -0.23199115693569183, 0.20608611404895782, -0.043392688035964966, -0.026494957506656647, 0.227880597114563, -0.14406484365463257, 0.2700972557067871, 0.09719501435756683, -0.08908029645681381, -0.4775104820728302, -0.1666536033153534, -0.16909660398960114, -0.1864432543516159, 0.02011125162243843, 0.09318726509809494, 0.18288001418113708, -0.00678081251680851, -0.26327937841415405, -0.637312650680542, -0.13531926274299622, -0.012235322035849094, -0.18095663189888, 0.08172953128814697, -0.06531618535518646, -0.15089605748653412, 0.22518488764762878, 0.4985402226448059, 0.1647062599658966, 0.09327590465545654, -0.10046182572841644, 0.3833453953266144, 0.032517146319150925, -0.048769980669021606, 0.19084754586219788, 0.1934940665960312, -0.05054039508104324, -0.3579321801662445, 0.155334010720253, 0.07825307548046112, 0.05307212471961975, 0.050501830875873566, -0.007135309278964996, 0.3536439538002014, 0.16203652322292328, 0.26356756687164307, -0.052743587642908096, -0.17158713936805725, 0.06012523174285889, -0.08593446016311646, -0.04069038853049278, -0.45680996775627136, 0.14553207159042358, 0.03037746623158455, 0.22304312884807587, -0.10370025038719177, 0.2699281573295593, -0.09825979918241501, 0.5954117178916931, 0.19170421361923218, 0.29431799054145813, 0.19945520162582397, 0.049872986972332, -0.16641005873680115, -0.23267969489097595, -0.19592030346393585, 0.5780512094497681, 0.15628954768180847, -0.0870838612318039, 0.25075310468673706, -0.04616408795118332, -0.10743989050388336, 0.1028243750333786, 0.2760704755783081, -0.22598804533481598, 0.022333640605211258, 0.22490930557250977, 0.07468671351671219, 0.004551853984594345, 0.04071396216750145, -0.07844622433185577, 0.2430475950241089, -0.43029266595840454, 0.1707729548215866, -0.28520047664642334, 0.11545776575803757, -0.03652113303542137, -0.5909368991851807, -0.06897871196269989, -0.2016042321920395, 0.09844739735126495, -0.06954136490821838, 0.09410001337528229, 0.5627201199531555, 0.1588648557662964, 0.6345854997634888, 0.14558064937591553, -0.13737139105796814, -0.007717438042163849, -0.34561771154403687, -0.14249297976493835, -0.015679482370615005, -0.17276054620742798, -0.07909317314624786, 0.2614360451698303, -0.26171746850013733, -0.20886926352977753, 0.21035638451576233, -0.4115680754184723, 0.0435672253370285, -0.09284095466136932, 0.3466615676879883, 0.5264643430709839, -0.13401758670806885, -0.1735846996307373, 0.10425212979316711, 0.26671308279037476, -0.01650223508477211, 0.19171668589115143, -0.007553198374807835, -0.21391284465789795, -0.027662020176649094, -0.004232902079820633, -0.37139981985092163, 0.3031691610813141, -0.18563027679920197, -0.1432875096797943, 0.052524711936712265, -0.016999728977680206, -0.15072230994701385, 0.3766863942146301, 0.32469743490219116, 0.019561488181352615, -0.17916427552700043, -0.09495335072278976, -0.6065407395362854, 0.4005814492702484, -0.25125324726104736, -0.11877046525478363, 0.09931761026382446, -0.24350006878376007, 0.5438967943191528, 0.08906102180480957, -0.1721714437007904, -0.628764271736145, 0.018984436988830566, 0.16713853180408478, 0.013157635927200317, 0.15370573103427887, 0.18174630403518677, 0.13932834565639496, 0.00571177713572979, -0.20125490427017212, -0.1687321811914444, 0.1920137107372284, -0.4219176173210144, 0.19104889035224915, 0.16832542419433594, 0.2982524037361145, 0.08290617167949677, 0.9984368085861206, 0.29494762420654297, -0.23060189187526703, 0.417667031288147, -0.026131922379136086, 0.38269028067588806, -0.413040429353714, -0.31214824318885803, -0.16413168609142303, 0.23994269967079163, 0.14657901227474213, 0.24201571941375732, -0.06129605323076248, 0.43898603320121765, -0.09266776591539383, -0.17209553718566895, -0.16637544333934784, -0.3272832930088043, -0.010457390919327736, 0.02010541595518589, 0.532136082649231, 0.08347509801387787, 0.28330695629119873, -0.32683485746383667, -0.25000277161598206, -0.10580089688301086, -0.16183193027973175, -0.03335770219564438, -0.07446078211069107, 0.2539101541042328, 0.27202343940734863, -0.4521152973175049, 0.5129061937332153, 0.0967227891087532, 0.1286410391330719, 0.014480281621217728, 0.3394739627838135, -0.09009946882724762, -0.017288006842136383, 0.1277972161769867, -0.4057282507419586, 0.02494329959154129, -0.048157673329114914, 0.16097889840602875, -0.4846990406513214, 0.12155422568321228, -0.08867024630308151, -0.030744481831789017, 0.3386249840259552, 0.5947794914245605, -0.29766029119491577, 0.0695524737238884, 0.3657418489456177, -0.08622737228870392, -0.014918886125087738, -0.2503313720226288, -0.3436198830604553, -0.15209168195724487, -0.154043510556221, -0.11983045190572739, -0.004340164363384247, 0.22295276820659637, 0.052117593586444855, 0.19286704063415527, 0.15072417259216309, -0.33603435754776, 0.15297624468803406, 0.3328761160373688, 0.16395163536071777, -0.14907172322273254, 0.08321581780910492, 0.14564386010169983, -0.6445592641830444, 0.5847185850143433, 0.3334153890609741, -0.5383551120758057, -0.6002216339111328, -0.1116999015212059, -0.03578285127878189, 0.25272631645202637, 0.18089942634105682, -0.21768184006214142, 0.038087598979473114, -0.1042935699224472, 0.10296966135501862, -0.08309494704008102, 0.34791773557662964, 0.4639822244644165, -0.08744864165782928, -0.1575489491224289, -0.5294523239135742, 0.4799647331237793, 0.1455225646495819, -0.022885173559188843, -0.0147877037525177, 0.36565864086151123, -0.32127106189727783, 0.32339489459991455, 0.07118646055459976, 0.5845328569412231, 0.3510918617248535, 0.0616561658680439, 0.22660312056541443, 0.18070684373378754, 0.3489796817302704, 0.3082764744758606, 0.047137852758169174, -0.1556602120399475, 0.09706909954547882, -0.0514415018260479, -0.07078246027231216, 0.14444434642791748, 0.09549765288829803, -0.31300267577171326, 0.661570131778717, -0.08015772700309753, -0.17533081769943237, 0.04593493789434433, -0.14209014177322388, 0.06930140405893326, -0.23097215592861176, -0.09232070297002792, 0.08704493939876556, 0.11096754670143127, -0.06411957740783691, -0.06262889504432678, 0.0776708796620369, 0.0323697067797184, -0.3183475732803345, -0.30150771141052246, -0.05157056450843811, -0.04573989287018776, -0.1608877331018448, 0.10070547461509705, -0.12193049490451813, 0.24818822741508484, 0.07426239550113678, 0.6118416786193848, 0.2196638435125351, -0.2011515349149704, 0.1219271570444107, -0.08034911006689072, -0.036366116255521774, 0.0418832004070282, 0.053952232003211975, -0.18730299174785614, -0.0847092717885971, -0.19977852702140808, 0.16233140230178833, 0.07494590431451797, -0.20910698175430298, -0.28461146354675293, -0.23934827744960785, 0.2234266698360443, -0.17724807560443878, 0.06481665372848511, -0.22254341840744019, 0.11366315186023712, -0.22108350694179535, 0.07603577524423599, -0.192201629281044, 0.037054743617773056, 0.13925614953041077, -0.3807075023651123, -0.23177409172058105, 0.0547252893447876, 0.3735404312610626, -0.17372891306877136, 0.14045803248882294, 0.5156522989273071, -0.1712532788515091, 0.06943925470113754, -0.033101268112659454, 0.04738745838403702, 0.05797997862100601, -0.2230149805545807, 0.22848889231681824, 0.29582348465919495, 0.12869812548160553, 0.16651412844657898, 0.6771205067634583, 0.19222484529018402, -0.20875325798988342, 0.15401354432106018, -0.20433472096920013, 0.14628158509731293, -0.12068003416061401, 0.09320046007633209, 0.08072350174188614, 0.05456109344959259, 0.07112477719783783, -0.08743813633918762, -0.0012557581067085266, -0.19295012950897217, 0.1930588185787201, -0.012172218412160873, -0.0783281996846199, -0.029033217579126358, -0.11466652899980545, 0.26024454832077026, 0.005525338463485241, -0.041712790727615356, 0.2775157690048218, -0.2428809404373169, -0.12582668662071228, -0.3876551389694214, 0.12837955355644226, 0.07455433905124664, -0.12106632441282272, -0.00043557584285736084, 0.04855723679065704, -0.1436316817998886, -0.1750057190656662, -0.011915783397853374, 0.37090590596199036, 0.036019496619701385, 0.3890734612941742, 0.00018628686666488647, 0.26782724261283875, 0.13566775619983673, -0.0006350502371788025, 0.14316204190254211, 0.34064847230911255, 0.047209080308675766, 0.2938128113746643, -0.05057654157280922, -0.11085061728954315, 0.09562921524047852, 0.060414791107177734, 0.5085902214050293, -0.09176666289567947, 0.137883260846138, 0.006650980561971664, 0.04124411568045616, 0.16179995238780975, 0.3347974121570587, 0.20611104369163513, -0.3880259692668915, -0.3362267017364502, 0.043318971991539, 0.062381111085414886, -0.4144813120365143, -0.017559947445988655, -0.031129229813814163, 0.36788129806518555, 0.08294150233268738, 0.24160489439964294, 0.18162493407726288, -0.20283165574073792, -0.025403127074241638, 0.04753077030181885, 0.21928535401821136, -0.2425733059644699, 0.31681379675865173, 0.1429431140422821, -0.1601439118385315, 0.17095766961574554, 0.5377204418182373, 0.1467389613389969, 0.30654340982437134, 0.5560681223869324, -0.17498183250427246, 0.5516895651817322, -0.36673370003700256, -0.0827363133430481, -0.20972642302513123, -0.22436659038066864, 0.11761966347694397, 0.18641209602355957, 0.2387370765209198, 0.1637250781059265, -0.008943244814872742, 0.5908869504928589, -0.0506693497300148, 0.017123883590102196, -0.4279114902019501, -0.07627607882022858, 0.07436513900756836, -0.2974327504634857, -0.34140634536743164, -0.25984057784080505, 0.005044884979724884, -0.018773509189486504, -0.09423260390758514, 0.04296141862869263, 0.1572694182395935, -0.025623299181461334, -0.09842030704021454, -0.16964127123355865, -0.19141113758087158, 0.13197503983974457, 0.10118795931339264, 0.0063188336789608, 0.2313847839832306, 0.3034430146217346, 0.06412772834300995, 0.14335228502750397, 0.5091142058372498, 0.3321651816368103, 0.27707475423812866, -0.08550973236560822, -0.23390139639377594, -0.11356128752231598, 0.054075583815574646, 0.09892510622739792, 0.14395901560783386, 0.2108801305294037, 0.2965939939022064, 0.2634873390197754, 0.0378996878862381, -0.1765950322151184, 0.46620872616767883, -0.21522562205791473, 0.6183244585990906, -0.41492798924446106, 0.5195438861846924, -0.012451261281967163, 0.22822141647338867, 0.2758104205131531, 0.1006530150771141, -0.3554704189300537, 0.2301417589187622, 0.13340574502944946, 0.21268600225448608, -0.12032465636730194, -0.31358420848846436, 0.03475584089756012, -0.12345576286315918, 0.4652172327041626, 0.3406948149204254, -0.0994323268532753, -0.6055418252944946, -0.035982873290777206, -0.6710893511772156, -0.021081171929836273, -0.18030816316604614, 0.2058192491531372, -0.028906889259815216, -0.11196818202733994, -0.12118207663297653, 0.47660672664642334, 0.16998250782489777, -0.24359580874443054, -0.28859958052635193, 0.09123750030994415, -0.4174425005912781, -0.08376064896583557, -0.15031777322292328, -0.492409884929657, 0.21416401863098145, -0.27059826254844666, -0.22169889509677887, -0.18429028987884521, -0.02476586028933525, 0.014156208373606205, -0.20340238511562347, 0.34160909056663513, 0.29444485902786255, 0.4395039677619934, 0.20007328689098358, 0.43762654066085815, 0.0445019006729126, 0.03437965363264084, -0.06624321639537811, 0.014865929260849953, -0.1716548055410385, 0.031192854046821594, -0.04188326373696327, 0.08173266798257828, -0.44283923506736755, -0.353429913520813, -0.3720618486404419, 0.12896637618541718, 0.10013444721698761, -0.23652289807796478, -0.3508349061012268, 0.14142653346061707, 0.11279190331697464, -0.1639038324356079, -0.14110276103019714, 0.1018550917506218, -0.09694017469882965, 0.4392129182815552, -0.23688609898090363, -0.038734883069992065, 0.5047755241394043, -0.3888804316520691, -0.24666303396224976, -0.14575770497322083, 0.20972123742103577, -0.06878884881734848, -0.3297354578971863, -0.8442140221595764, 0.24206587672233582, 0.4301359951496124, 0.2046891450881958, -0.1272212117910385, 0.11775746941566467, -0.29996028542518616, 0.16083896160125732, 0.056592363864183426, 0.36997678875923157, -0.004196420311927795, -0.2681497037410736, 0.08670675754547119, -0.19394508004188538 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
Hello everyone, I think the problem is not solved: ``` from datasets import load_metric metric=load_metric('bertscore') metric.compute( predictions=predictions, references=references, lang='fr', rescale_with_baseline=True ) TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer' ``` This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10`
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
42
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 Hello everyone, I think the problem is not solved: ``` from datasets import load_metric metric=load_metric('bertscore') metric.compute( predictions=predictions, references=references, lang='fr', rescale_with_baseline=True ) TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer' ``` This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10`
[ 0.013992134481668472, 0.040696293115615845, 0.09277060627937317, 0.0760168582201004, 0.15786132216453552, -0.04843154549598694, 0.45957499742507935, 0.04065268486738205, -0.07028178870677948, 0.09882179647684097, 0.057241156697273254, 0.2482234388589859, -0.24298296868801117, -0.09125839918851852, -0.31373509764671326, -0.2044164538383484, -0.12348689883947372, 0.2484203726053238, 0.12505830824375153, -0.06822149455547333, -0.6134796738624573, 0.114974744617939, -0.5267378687858582, -0.2245674580335617, -0.3061109483242035, -0.007344553247094154, -0.1297491192817688, 0.09400132298469543, -0.16751089692115784, -0.44306057691574097, 0.3566364347934723, 0.25937458872795105, -0.027315229177474976, 0.5043873190879822, -0.00012365188740659505, 0.015139877796173096, 0.06505385786294937, -0.22124436497688293, 0.10060626268386841, -0.2754281163215637, -0.30035480856895447, 0.20567816495895386, -0.10892579704523087, -0.30845150351524353, -0.056706562638282776, -0.09749403595924377, -0.32915499806404114, -0.2222905457019806, 0.2909586429595947, 0.4247179925441742, 0.09974420815706253, 0.16781611740589142, -0.07012420892715454, -0.3143262267112732, 0.07073401659727097, -0.30410873889923096, -0.1328687220811844, 0.4761046767234802, -0.3822273313999176, 0.09051620960235596, -0.04759868234395981, 0.015107668936252594, 0.0084917601197958, 0.2755852937698364, 0.46190664172172546, 0.06103869900107384, 0.16856393218040466, 0.029028866440057755, 0.10671801120042801, 0.3407551348209381, -0.06263629347085953, -0.1964440941810608, -0.18969056010246277, 0.08913972228765488, 0.10159382224082947, -0.7081444263458252, 0.07329190522432327, -0.24685275554656982, -0.10262419283390045, 0.015016049146652222, -0.1463928520679474, -0.23107849061489105, -0.3840641677379608, 0.20575863122940063, 0.09648305177688599, -0.022437244653701782, -0.09366118162870407, -0.01037750393152237, 0.5541226863861084, -0.13319964706897736, 0.21339251101016998, -0.28670966625213623, 0.0761621817946434, 0.07395657896995544, -0.21884898841381073, -0.07749037444591522, 0.11129772663116455, -0.014222465455532074, 0.03712646663188934, -0.47027599811553955, 0.28075650334358215, 0.05194372311234474, 0.01809072494506836, 0.016400769352912903, -0.08857958018779755, 0.415830135345459, 0.031035911291837692, 0.06493417918682098, 0.08250100165605545, 0.21682028472423553, -0.0032392553985118866, 0.05643562227487564, 0.058280810713768005, -0.3148384392261505, 0.4590701758861542, 0.20776423811912537, 0.07014183700084686, -0.0728391706943512, -0.042989540845155716, -0.10284038633108139, -0.4027307629585266, -0.19581007957458496, 0.14907144010066986, 0.17959940433502197, 0.1914665251970291, 0.31299227476119995, -0.1987803876399994, 0.27537989616394043, -0.012533478438854218, -0.06015193462371826, -0.12334872782230377, 0.14538267254829407, -0.38491731882095337, 0.261861115694046, 0.2926679253578186, -0.2601505517959595, 0.3255077004432678, 0.3089483082294464, 0.3424108624458313, -0.0041425712406635284, 0.07343968003988266, -0.2821103632450104, 0.10133788734674454, -0.18573808670043945, -0.05333804339170456, -0.22540923953056335, 0.17369654774665833, 0.29828256368637085, -0.1498626172542572, 0.17967019975185394, -0.26924341917037964, -0.2601082921028137, 0.21539555490016937, 0.0630151554942131, -0.2491660863161087, -0.06888607144355774, -0.4689846932888031, 0.13056986033916473, 0.23723894357681274, 0.0045827217400074005, -0.1681930422782898, -0.16901037096977234, -0.5841547846794128, -0.18673032522201538, 0.22472484409809113, 0.14870616793632507, -0.6226092576980591, 0.010387122631072998, -0.2680078148841858, 0.3499620854854584, 0.029298335313796997, 0.02066722698509693, -0.18416152894496918, 0.556742250919342, -0.13641127943992615, 0.048374295234680176, 0.1785372495651245, -0.40736594796180725, -0.34322354197502136, -0.30219876766204834, 0.3096628189086914, -0.10789019614458084, 0.04893624410033226, -0.1057819277048111, 0.11858146637678146, -0.0633808970451355, 0.2802255153656006, -0.2763059735298157, 0.26933735609054565, 0.04976490139961243, -0.17411325871944427, -0.15045654773712158, -0.10334920883178711, -0.05549997091293335, 0.10727809369564056, -0.09305138140916824, -0.06821083277463913, 0.24829213321208954, -0.24341875314712524, -0.26984989643096924, -0.046570785343647, 0.21163220703601837, 0.19406332075595856, -0.3016178607940674, 0.19667720794677734, 0.006673295050859451, -0.045915327966213226, 0.2049427032470703, -0.08563114702701569, 0.3094465434551239, 0.11927099525928497, -0.06333433091640472, -0.4761704206466675, -0.1659838855266571, -0.18617424368858337, -0.115309938788414, 0.012197323143482208, 0.0760243609547615, 0.12357379496097565, 0.07233954966068268, -0.25528189539909363, -0.6563643217086792, -0.24433642625808716, -0.06645436584949493, -0.1146554946899414, 0.15613405406475067, -0.005522394552826881, -0.14333543181419373, 0.2601359188556671, 0.46008846163749695, 0.2633839249610901, 0.09927874058485031, -0.17471235990524292, 0.35264042019844055, 0.037251897156238556, -0.05510300397872925, 0.1486091911792755, 0.2489788681268692, -0.025442177429795265, -0.412757933139801, 0.17626464366912842, 0.022823847830295563, 0.05186064913868904, -0.04106714203953743, 0.11398322880268097, 0.4497625231742859, 0.16841569542884827, 0.24452707171440125, -0.1405307501554489, -0.1373331993818283, 0.03153512626886368, -0.09211025387048721, 0.028469355776906013, -0.4044124186038971, 0.10032199323177338, 0.06902188062667847, 0.19015687704086304, -0.059213005006313324, 0.22482812404632568, -0.1967792510986328, 0.7020142674446106, 0.2295793890953064, 0.3146529197692871, 0.20030120015144348, 0.06124328076839447, -0.17370924353599548, -0.30645790696144104, -0.27583956718444824, 0.5699105262756348, 0.12267857789993286, -0.13191813230514526, 0.3084487318992615, 0.05091603100299835, -0.10449463129043579, 0.1528824269771576, 0.29514238238334656, -0.11052937060594559, 0.011959511786699295, 0.18535295128822327, 0.04845218360424042, 0.002255946397781372, -0.010293787345290184, -0.0005141273140907288, 0.2762991189956665, -0.4457089602947235, 0.10123229026794434, -0.2893078923225403, 0.1160954162478447, 0.0153845539316535, -0.44704118371009827, -0.050086673349142075, -0.217588409781456, 0.022283658385276794, -0.1053769588470459, 0.16900208592414856, 0.5220659971237183, 0.1414775252342224, 0.7223029136657715, 0.22660358250141144, -0.12144220620393753, -0.04680053889751434, -0.3608560264110565, -0.06964840739965439, -0.014793245121836662, -0.16471636295318604, -0.08898407220840454, 0.20913778245449066, -0.21669501066207886, -0.19473181664943695, 0.23748578131198883, -0.3260771334171295, 0.033106107264757156, -0.04158605635166168, 0.27375689148902893, 0.4932180941104889, -0.11447247862815857, -0.1439746618270874, 0.1149255633354187, 0.26831740140914917, -0.019764065742492676, 0.21430166065692902, 0.07479619234800339, -0.2519962191581726, 0.025339165702462196, -0.05089612677693367, -0.3107782006263733, 0.3045138716697693, -0.18278031051158905, -0.19885899126529694, 0.010752882808446884, 0.022668637335300446, -0.04329868406057358, 0.3582715690135956, 0.3304137587547302, 0.12296709418296814, -0.20948438346385956, -0.11472482234239578, -0.6629095077514648, 0.43826743960380554, -0.29819318652153015, -0.11302350461483002, 0.12291191518306732, -0.2544560432434082, 0.5852692723274231, 0.039029207080602646, -0.2036919891834259, -0.6184412240982056, 0.03932696953415871, 0.2566472887992859, -0.080966517329216, 0.07439350336790085, 0.09192568063735962, 0.07799674570560455, 0.008605172857642174, -0.14525434374809265, -0.20450760424137115, 0.22253045439720154, -0.3108864426612854, 0.1650233119726181, 0.24360531568527222, 0.3170931935310364, 0.15397100150585175, 0.9103386402130127, 0.2706151306629181, -0.2894457280635834, 0.4798101782798767, -0.059398531913757324, 0.314359188079834, -0.355413019657135, -0.36912208795547485, -0.16725307703018188, 0.2391473352909088, 0.13401047885417938, 0.24403175711631775, -0.11024396866559982, 0.4330882728099823, -0.07250624150037766, -0.3233253061771393, -0.1608932912349701, -0.3306836187839508, -0.05127947777509689, -0.05709782987833023, 0.5392926335334778, -0.0012502875179052353, 0.22852307558059692, -0.3670794665813446, -0.20145630836486816, -0.09002004563808441, -0.12140625715255737, 0.030716270208358765, -0.11893682181835175, 0.20836351811885834, 0.40518447756767273, -0.4139281213283539, 0.498867392539978, 0.06697779148817062, 0.10792983323335648, 0.021499942988157272, 0.4737037718296051, -0.08933767676353455, 0.03361353278160095, 0.16861054301261902, -0.3760928809642792, 0.08614684641361237, 0.01065891608595848, 0.10862122476100922, -0.43804383277893066, 0.15279453992843628, -0.040088873356580734, 0.02074078842997551, 0.3356544077396393, 0.6264055967330933, -0.18394002318382263, 0.032359521836042404, 0.24448460340499878, -0.12188567221164703, -0.10410416126251221, -0.32338836789131165, -0.328116774559021, -0.22280585765838623, -0.08939041942358017, -0.05042403191328049, 0.03128206729888916, 0.315329372882843, 0.023515760898590088, 0.18316592276096344, 0.148830384016037, -0.40037474036216736, 0.1612766534090042, 0.2591053545475006, 0.16271144151687622, -0.08948401361703873, 0.05779458209872246, 0.16748227179050446, -0.6602152585983276, 0.515083372592926, 0.3028129041194916, -0.4229426980018616, -0.6607757210731506, -0.12094255536794662, -0.05457553267478943, 0.40598106384277344, 0.09570814669132233, -0.25977614521980286, 0.12474840879440308, -0.17594857513904572, 0.09407828748226166, -0.09821446985006332, 0.3145962953567505, 0.423168808221817, -0.10081806778907776, -0.16939346492290497, -0.5441932678222656, 0.4014715850353241, 0.06402280926704407, 0.017891183495521545, 0.034311361610889435, 0.26805877685546875, -0.34831592440605164, 0.2627156376838684, 0.08030804991722107, 0.5774642825126648, 0.3167763948440552, -0.019489016383886337, 0.23539212346076965, 0.20793713629245758, 0.300933837890625, 0.32546287775039673, 0.016854017972946167, -0.13577643036842346, 0.025888897478580475, -0.025200258940458298, -0.12510091066360474, 0.17697003483772278, 0.12607277929782867, -0.3157382607460022, 0.6133507490158081, -0.2259569764137268, -0.2325957715511322, -0.010540802031755447, -0.043659936636686325, 0.14953042566776276, -0.22350934147834778, -0.12704020738601685, 0.07963424175977707, -0.022154390811920166, -0.08843442797660828, -0.016591690480709076, 0.05266565829515457, 0.16085267066955566, -0.29368722438812256, -0.23730547726154327, -0.04119953140616417, 0.012837782502174377, -0.11231212317943573, 0.05195815861225128, 0.012661024928092957, 0.31482934951782227, 0.18244753777980804, 0.6069732308387756, 0.24932537972927094, -0.16227315366268158, 0.09220436215400696, -0.11786568909883499, -0.012797155417501926, 0.0018349953461438417, 0.06109754741191864, -0.20825432240962982, -0.09533913433551788, -0.333528608083725, 0.20350515842437744, 0.14014273881912231, -0.29495859146118164, -0.3115858733654022, -0.297853946685791, 0.10019401460886002, -0.15115667879581451, 0.05816559121012688, -0.19856321811676025, 0.05896724388003349, -0.2253696322441101, 0.07929479330778122, -0.15274767577648163, -0.0013030398404225707, 0.14583352208137512, -0.36120885610580444, -0.2589077949523926, 0.09286357462406158, 0.3415713906288147, -0.17359629273414612, 0.20141583681106567, 0.5621206760406494, -0.1293611377477646, 0.07186922430992126, -0.06169523298740387, 0.10201144963502884, 0.013544955290853977, -0.15096420049667358, 0.33954232931137085, 0.30969884991645813, 0.2640448212623596, 0.1182970181107521, 0.6846893429756165, 0.1009591817855835, -0.13953328132629395, 0.19830982387065887, -0.18399718403816223, 0.09121835976839066, -0.20216511189937592, 0.04574035108089447, 0.08305326104164124, 0.020878557115793228, 0.167059987783432, -0.04621899127960205, 0.06037602573633194, -0.18368518352508545, 0.23243024945259094, -0.1228199154138565, -0.13924849033355713, -0.04239247739315033, -0.17068809270858765, 0.21012504398822784, 0.07354144752025604, -0.03690826892852783, 0.296525776386261, -0.22183667123317719, -0.12504835426807404, -0.4624554216861725, 0.13674241304397583, 0.06818502396345139, -0.09256280958652496, 0.005986539646983147, -0.038207799196243286, -0.21278223395347595, -0.1412302553653717, -0.08439026772975922, 0.420598566532135, 0.02777194231748581, 0.4663689136505127, 0.08058139681816101, 0.26607370376586914, 0.059221819043159485, -0.017318397760391235, 0.13760749995708466, 0.3475300073623657, 0.07433418929576874, 0.28015628457069397, -0.03331926092505455, -0.10433339327573776, -0.10889382660388947, 0.01234482228755951, 0.45507848262786865, -0.14004281163215637, 0.1288691908121109, 0.08338753879070282, 0.028018031269311905, 0.14374886453151703, 0.25974324345588684, 0.060450002551078796, -0.4357893168926239, -0.2595280706882477, -0.05624312162399292, 0.03865200653672218, -0.4195452928543091, -0.00011991869541816413, -0.007430495694279671, 0.3897439241409302, 0.08657883107662201, 0.2663344442844391, 0.14773033559322357, -0.14255547523498535, -0.11657409369945526, -0.04690714552998543, 0.16509844362735748, -0.2278246134519577, 0.3007052540779114, 0.046049460768699646, -0.13212072849273682, 0.14930139482021332, 0.5626958012580872, 0.2178756147623062, 0.22595468163490295, 0.5427414178848267, -0.20354804396629333, 0.5215114951133728, -0.3308876156806946, -0.12117883563041687, -0.15704917907714844, -0.22857671976089478, 0.18660511076450348, 0.2842146158218384, 0.15558141469955444, 0.14489683508872986, -0.12073786556720734, 0.5115416049957275, 0.04092637076973915, 0.03164580836892128, -0.37187862396240234, -0.020367350429296494, 0.07844420522451401, -0.21428410708904266, -0.3626483082771301, -0.2173563539981842, -0.02061516046524048, -0.03371412307024002, -0.01535182073712349, 0.018039897084236145, 0.1275290846824646, 0.02077220007777214, -0.05638398230075836, -0.04069554805755615, -0.14775297045707703, 0.18017297983169556, 0.20928405225276947, -0.013768453150987625, 0.17708934843540192, 0.32633283734321594, 0.15095606446266174, 0.19397220015525818, 0.44272729754447937, 0.22957082092761993, 0.24125327169895172, -0.06016465649008751, -0.2420242726802826, -0.03854230046272278, 0.02497662417590618, 0.16570644080638885, 0.144742950797081, 0.21920742094516754, 0.32298290729522705, 0.2372627705335617, 0.0401298850774765, -0.14707964658737183, 0.5082957744598389, -0.13725584745407104, 0.6505018472671509, -0.43171533942222595, 0.5439695119857788, 0.06322824954986572, 0.19063708186149597, 0.20602840185165405, 0.13211950659751892, -0.24254122376441956, 0.13806097209453583, 0.21129991114139557, 0.21430644392967224, -0.13418108224868774, -0.3158293664455414, 0.03223218396306038, -0.15167437493801117, 0.41942107677459717, 0.32951849699020386, -0.05758559703826904, -0.6801506280899048, -0.023964397609233856, -0.6489638090133667, 0.020791493356227875, -0.08960844576358795, 0.18073850870132446, 0.07316266000270844, -0.0933542475104332, -0.15654075145721436, 0.4147490859031677, 0.15582376718521118, -0.2584224343299866, -0.2880348265171051, 0.056897424161434174, -0.4772016108036041, -0.06263896822929382, -0.20283721387386322, -0.4374270737171173, 0.1991521567106247, -0.2851335108280182, -0.22481711208820343, -0.13061809539794922, -0.0007867030799388885, -0.05129548907279968, -0.19945351779460907, 0.309157133102417, 0.40737685561180115, 0.442470520734787, 0.12556779384613037, 0.3649841547012329, 0.03418291360139847, 0.054356589913368225, -0.011363517493009567, 0.016852060332894325, -0.10586083680391312, -0.011144906282424927, -0.019259151071310043, 0.04638618975877762, -0.41782525181770325, -0.2572524845600128, -0.3420441746711731, 0.10455938428640366, 0.08249227702617645, -0.30394670367240906, -0.3829139471054077, 0.14562824368476868, 0.0989883616566658, -0.17602932453155518, -0.08648129552602768, 0.1349320113658905, -0.12080079317092896, 0.45231136679649353, -0.2053818553686142, 0.09305468201637268, 0.5157272815704346, -0.3611713945865631, -0.30024293065071106, -0.05224129185080528, 0.30671557784080505, -0.10053893178701401, -0.3011503219604492, -0.753225564956665, 0.1969093382358551, 0.5441914796829224, 0.17015010118484497, -0.06422664225101471, 0.18284912407398224, -0.26942816376686096, 0.22873516380786896, 0.09707680344581604, 0.11868941783905029, -0.08396073430776596, -0.24567022919654846, 0.02672109380364418, -0.19847232103347778 ]
https://github.com/huggingface/datasets/issues/843
use_custom_baseline still produces errors for bertscore
Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :) In the meantime please use an older version of `bert_score`
`metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
30
use_custom_baseline still produces errors for bertscore `metric = load_metric('bertscore')` `a1 = "random sentences"` `b1 = "random sentences"` `metric.compute(predictions = [a1], references = [b1], lang = 'en')` `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'` Adding 'use_custom_baseline = False' as an argument produces this error `Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute output = self._compute(predictions=predictions, references=references, **kwargs) TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'` This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :) In the meantime please use an older version of `bert_score`
[ -0.06539879739284515, 0.10557118058204651, 0.12522710859775543, 0.0791325569152832, 0.17582038044929504, -0.10428132116794586, 0.42146918177604675, 0.01866084337234497, -0.06677284836769104, 0.1184607595205307, 0.030669327825307846, 0.23698483407497406, -0.1979217231273651, 0.03047849051654339, -0.30292075872421265, -0.20307347178459167, -0.10653854161500931, 0.22900334000587463, 0.06023142486810684, -0.0018440298736095428, -0.5456942319869995, 0.12404243648052216, -0.4763628840446472, -0.17734284698963165, -0.3232957720756531, 0.016603944823145866, -0.09317806363105774, 0.09635896980762482, -0.19384260475635529, -0.4644751250743866, 0.3707923889160156, 0.2937931716442108, -0.07834350317716599, 0.42738813161849976, -0.00012025808973703533, -0.01731448993086815, 0.09065956622362137, -0.1919964998960495, 0.082398921251297, -0.3026841878890991, -0.30792784690856934, 0.25077298283576965, -0.07567620277404785, -0.18813684582710266, -0.056803785264492035, -0.0254872627556324, -0.2771303355693817, -0.22930048406124115, 0.2610580325126648, 0.3748819828033447, 0.11891965568065643, 0.248761385679245, -0.014195673167705536, -0.39661169052124023, 0.13915465772151947, -0.2856467366218567, -0.11702390760183334, 0.4653153121471405, -0.41632166504859924, 0.0323893278837204, -0.1525924801826477, 0.06557497382164001, 0.06915070116519928, 0.21318840980529785, 0.4943489134311676, 0.10906323045492172, 0.04121628403663635, 0.05744800716638565, 0.12847191095352173, 0.3740677833557129, -0.05006859451532364, -0.25809288024902344, -0.2682221829891205, -0.03490455821156502, 0.15126143395900726, -0.6960834860801697, 0.08812669664621353, -0.2988954186439514, -0.054467394948005676, 0.010244090110063553, -0.2133377492427826, -0.14946246147155762, -0.3620051145553589, 0.18466001749038696, 0.05407045781612396, -0.11905667185783386, -0.17376060783863068, -0.006160140037536621, 0.6393913626670837, -0.12622633576393127, 0.031247012317180634, -0.16025318205356598, -0.008180137723684311, 0.07033994048833847, -0.22269205749034882, -0.11428249627351761, 0.11058816313743591, -0.020159661769866943, 0.09195142984390259, -0.36007362604141235, 0.27251389622688293, 0.030992068350315094, -0.07682978361845016, 0.0010997168719768524, 0.03041442669928074, 0.43421247601509094, 0.08726683259010315, -0.056413616985082626, 0.12684983015060425, 0.2700207233428955, 0.11539436876773834, 0.025865279138088226, 0.09556210786104202, -0.24232259392738342, 0.3633946180343628, 0.11548284441232681, 0.0006461460143327713, -0.10701140761375427, -0.1145094707608223, -0.048915911465883255, -0.28706440329551697, -0.1943376064300537, 0.17141078412532806, 0.2480601668357849, 0.17659811675548553, 0.2997080981731415, -0.25215309858322144, 0.27255553007125854, 0.00303787924349308, -0.06812509894371033, -0.14189313352108002, 0.08718942105770111, -0.35222434997558594, 0.2969468832015991, 0.31737279891967773, -0.2396325170993805, 0.3552742898464203, 0.2791149616241455, 0.3951643109321594, 0.08374658226966858, 0.05328553169965744, -0.2689545750617981, 0.15192657709121704, -0.16231288015842438, -0.08429275453090668, -0.20845867693424225, 0.13955330848693848, 0.27673035860061646, -0.14741559326648712, 0.10423629730939865, -0.20272129774093628, -0.25498345494270325, 0.21483872830867767, 0.0910429134964943, -0.2995556592941284, -0.09008996188640594, -0.4372725188732147, 0.16943451762199402, 0.13587677478790283, -0.09420552104711533, -0.12959328293800354, -0.17120718955993652, -0.5282447338104248, -0.1445283591747284, 0.30292508006095886, 0.21831417083740234, -0.5863322019577026, -0.0307365283370018, -0.26817405223846436, 0.2509891092777252, -0.05773109942674637, 0.046166762709617615, -0.11692548543214798, 0.46355655789375305, -0.09589127451181412, 0.09203651547431946, 0.0361049622297287, -0.3284223675727844, -0.39024925231933594, -0.3276278078556061, 0.3103570342063904, -0.057713769376277924, 0.027414187788963318, -0.09317395091056824, 0.03158501163125038, -0.09970111399888992, 0.20246689021587372, -0.2675185799598694, 0.1949838250875473, 0.06001622974872589, -0.14903207123279572, -0.16512076556682587, -0.16751441359519958, -0.013896686024963856, 0.08078473806381226, -0.1848618984222412, -0.07771829515695572, 0.30400779843330383, -0.23771411180496216, -0.28871703147888184, -0.025066766887903214, 0.1667809933423996, 0.16230349242687225, -0.29541224241256714, 0.17811132967472076, -0.04086931049823761, -0.06516768783330917, 0.23095062375068665, -0.08470383286476135, 0.28369927406311035, 0.1728590875864029, -0.09250201284885406, -0.46059200167655945, -0.11439541727304459, -0.16281580924987793, -0.15447810292243958, 0.033717960119247437, 0.020306997001171112, 0.14307402074337006, 0.11133824288845062, -0.287396639585495, -0.614347517490387, -0.20770511031150818, -0.05512517690658569, -0.18739697337150574, 0.09403550624847412, 0.028774302452802658, -0.1254122406244278, 0.2686022222042084, 0.5271700620651245, 0.1975506842136383, 0.13447284698486328, -0.12806689739227295, 0.40880706906318665, 0.04642125591635704, -0.04314495623111725, 0.13157150149345398, 0.21978774666786194, 0.015162168070673943, -0.3446042239665985, 0.08245696127414703, 0.03675159066915512, 0.016955498605966568, 0.004633493721485138, -0.047111958265304565, 0.4674701690673828, 0.08544756472110748, 0.21559354662895203, -0.06561967730522156, -0.13018634915351868, 0.014337403699755669, -0.025711193680763245, -0.003230603411793709, -0.44695690274238586, 0.10621941834688187, -0.015632502734661102, 0.17461885511875153, -0.10733355581760406, 0.1675824075937271, -0.14943653345108032, 0.5737676024436951, 0.16850979626178741, 0.3206826448440552, 0.27105849981307983, 0.026110075414180756, -0.20362454652786255, -0.21021616458892822, -0.3017735183238983, 0.5065487623214722, 0.12656480073928833, -0.11329914629459381, 0.29864606261253357, 0.008594794198870659, -0.12548932433128357, 0.1335161030292511, 0.24801363050937653, -0.11313708871603012, -0.016001582145690918, 0.2157009243965149, 0.047516707330942154, -0.05095868557691574, 0.009091921150684357, -0.11270032823085785, 0.2533237636089325, -0.42978665232658386, 0.11043558269739151, -0.31325483322143555, 0.06756404787302017, -0.0020464006811380386, -0.4873185157775879, -0.15345966815948486, -0.2266823947429657, 0.1109817624092102, -0.02189735695719719, 0.050607506185770035, 0.49098795652389526, 0.17217013239860535, 0.6954314112663269, 0.17584648728370667, -0.020131880417466164, -0.039287641644477844, -0.4039439857006073, -0.08064163476228714, 0.023544348776340485, -0.16378438472747803, -0.13261522352695465, 0.2936667501926422, -0.20230913162231445, -0.20844130218029022, 0.16529850661754608, -0.3238096535205841, 0.061086930334568024, -0.09886804223060608, 0.302675724029541, 0.5101526975631714, -0.1756211668252945, -0.24815982580184937, 0.1170613020658493, 0.2749006450176239, -0.03807497024536133, 0.20955970883369446, 0.06981544941663742, -0.21606522798538208, 0.06698750704526901, -0.037815310060977936, -0.2673085331916809, 0.3557491898536682, -0.1256711781024933, 0.03742089495062828, 0.012987252324819565, 0.00831371545791626, 0.034192707389593124, 0.3668736517429352, 0.37273600697517395, 0.049980346113443375, -0.16623447835445404, -0.17617486417293549, -0.6425841450691223, 0.3792102038860321, -0.30968010425567627, -0.17140215635299683, 0.028500434011220932, -0.19411584734916687, 0.460435688495636, 0.013892298564314842, -0.16286364197731018, -0.6429678201675415, 0.03388549014925957, 0.22017037868499756, -0.02028825879096985, 0.10863260924816132, 0.12794773280620575, 0.07019256055355072, -0.031032530590891838, -0.1363002359867096, -0.1708538681268692, 0.21753443777561188, -0.40942659974098206, 0.1471414566040039, 0.1625189185142517, 0.23548054695129395, 0.1228955090045929, 0.8513764142990112, 0.28580212593078613, -0.17237217724323273, 0.413763165473938, -0.06929171085357666, 0.40692490339279175, -0.43157413601875305, -0.30844271183013916, -0.07795143872499466, 0.15194837749004364, 0.17010796070098877, 0.25659114122390747, -0.07206719368696213, 0.4978990852832794, -0.07735207676887512, -0.27300772070884705, -0.07253561168909073, -0.34796616435050964, -0.006715107709169388, 0.011999472975730896, 0.4621521830558777, 0.053111616522073746, 0.3101488947868347, -0.3184790313243866, -0.2585998475551605, -0.08009091019630432, -0.19238723814487457, 0.05936003103852272, -0.16210250556468964, 0.25389453768730164, 0.30430787801742554, -0.5376893877983093, 0.4907960891723633, 0.1324538141489029, 0.08417879045009613, 0.011516068130731583, 0.3476768434047699, -0.11148244142532349, -0.0016949023120105267, 0.16122475266456604, -0.3205762803554535, 0.0519813597202301, 0.007848871871829033, 0.08938421308994293, -0.4751473665237427, 0.19583357870578766, -0.09154842793941498, -0.04505994915962219, 0.28463536500930786, 0.6144074201583862, -0.25904133915901184, 0.020902074873447418, 0.33845028281211853, -0.08822114765644073, -0.052039194852113724, -0.28903892636299133, -0.31441253423690796, -0.15843382477760315, -0.08574223518371582, -0.06953861564397812, 0.033475831151008606, 0.25946494936943054, 0.009892236441373825, 0.2843877971172333, 0.14270813763141632, -0.351761132478714, 0.1875329464673996, 0.31935590505599976, 0.1910390555858612, -0.09498456865549088, 0.09764528274536133, 0.2399771362543106, -0.610217809677124, 0.5049685835838318, 0.30009034276008606, -0.4140450954437256, -0.6082895994186401, -0.07208172976970673, -0.023780588060617447, 0.34447216987609863, 0.16109028458595276, -0.23459094762802124, 0.09682328253984451, -0.1430870145559311, 0.1310018002986908, -0.2406669557094574, 0.3252989947795868, 0.42481184005737305, -0.1367211937904358, -0.14812833070755005, -0.4227297306060791, 0.5183262228965759, 0.1018853485584259, 0.007188983261585236, -0.0038973428308963776, 0.38278770446777344, -0.3182099759578705, 0.2791956067085266, 0.08468526601791382, 0.49010562896728516, 0.2753664255142212, 0.024534640833735466, 0.29004332423210144, 0.18308477103710175, 0.37430065870285034, 0.3055673837661743, 0.033565569669008255, -0.1801936775445938, -0.022512666881084442, 0.03625170886516571, -0.029474478214979172, 0.12545615434646606, 0.07170876860618591, -0.2818479835987091, 0.6017310619354248, -0.13074219226837158, -0.16391630470752716, -0.005362657830119133, -0.06501734256744385, 0.07588719576597214, -0.3066627085208893, -0.13378538191318512, 0.10889391601085663, 0.03499164059758186, -0.11305350065231323, -0.003209967166185379, 0.10666664689779282, 0.15199197828769684, -0.287434458732605, -0.28905174136161804, -0.021241841837763786, 0.07005810737609863, -0.18932251632213593, 0.10211741924285889, -0.034168791025877, 0.3054371774196625, 0.10749249905347824, 0.6377580165863037, 0.2460402399301529, -0.20747686922550201, 0.12625958025455475, -0.1689184308052063, 0.03389892354607582, 0.014784320257604122, 0.0716976597905159, -0.19784031808376312, -0.09631690382957458, -0.25597184896469116, 0.1424473524093628, 0.1260790079832077, -0.19262166321277618, -0.3124898076057434, -0.3262650966644287, 0.07658077031373978, -0.14884649217128754, 0.13704855740070343, -0.24899309873580933, 0.14251168072223663, -0.24601615965366364, 0.09488032758235931, -0.14825160801410675, 0.04636631906032562, 0.05531122162938118, -0.33520323038101196, -0.20872901380062103, 0.05803251266479492, 0.4250165820121765, -0.25542014837265015, 0.14692422747612, 0.49830883741378784, -0.08734352141618729, 0.04718540608882904, -0.06362348794937134, 0.11860237270593643, 0.16833636164665222, -0.2462567687034607, 0.2997986674308777, 0.3104071617126465, 0.15275131165981293, 0.09157179296016693, 0.7438474297523499, 0.12667523324489594, -0.2194366157054901, 0.20817707479000092, -0.1710684597492218, 0.09632670134305954, -0.12485265731811523, 0.11016412079334259, 0.08008389919996262, 0.08510448783636093, 0.13069337606430054, -0.11251742392778397, 0.04724392294883728, -0.2121935933828354, 0.2070273458957672, -0.11349373310804367, -0.1501970887184143, -0.04655914008617401, -0.17637982964515686, 0.29958757758140564, 0.02897137776017189, -0.003154236823320389, 0.3445778489112854, -0.20781323313713074, -0.13466879725456238, -0.4393577575683594, 0.10654520243406296, 0.007474595680832863, -0.09470007568597794, -0.0095292329788208, 0.05014834553003311, -0.22357596457004547, -0.2341238558292389, -0.019377633929252625, 0.41338545083999634, 0.06120481342077255, 0.4334384500980377, 0.026465464383363724, 0.2277652621269226, 0.11732746660709381, -0.047347597777843475, 0.2234376221895218, 0.34633082151412964, -0.01254769042134285, 0.2922859489917755, -0.1184534952044487, -0.11452288180589676, 0.011573213152587414, 0.11527922749519348, 0.43611079454421997, -0.15342214703559875, 0.13952700793743134, 0.05498519539833069, -0.053112469613552094, 0.16157133877277374, 0.3761330544948578, 0.06714659929275513, -0.35525229573249817, -0.3730354309082031, -0.03901507705450058, 0.06750050187110901, -0.41214272379875183, 0.014147579669952393, -0.06198807433247566, 0.38270464539527893, 0.0940743088722229, 0.28495097160339355, 0.12636461853981018, -0.1524023413658142, -0.08321014046669006, -0.006397675722837448, 0.13208048045635223, -0.1703874170780182, 0.23631642758846283, 0.03568439185619354, -0.10924568772315979, 0.10197818279266357, 0.5675439238548279, 0.1736684888601303, 0.37193751335144043, 0.4825723171234131, -0.21718138456344604, 0.47978755831718445, -0.42712974548339844, -0.03665376082062721, -0.16330665349960327, -0.2361469864845276, 0.19922654330730438, 0.28941142559051514, 0.16960439085960388, 0.09400229156017303, -0.13540366291999817, 0.6976346969604492, -0.056467849761247635, -0.04131067544221878, -0.3993128836154938, -0.04706105962395668, 0.05995146930217743, -0.2644568383693695, -0.3217131495475769, -0.27623045444488525, -0.009479314088821411, -0.000055029988288879395, -0.0773513913154602, 0.0037151984870433807, 0.1688002049922943, -0.030158281326293945, -0.017636798322200775, -0.1436503380537033, -0.19626283645629883, 0.12652716040611267, 0.20204126834869385, 0.020498935133218765, 0.18886063992977142, 0.36939698457717896, 0.15877868235111237, 0.2183808982372284, 0.48891788721084595, 0.2557504177093506, 0.14600464701652527, -0.024648282676935196, -0.19747000932693481, -0.12070594727993011, 0.04642882198095322, 0.16156935691833496, 0.15371450781822205, 0.2954895496368408, 0.2286319136619568, 0.32177621126174927, 0.05557337403297424, -0.14090918004512787, 0.45955970883369446, -0.12892821431159973, 0.6855302453041077, -0.4920084774494171, 0.4960343837738037, 0.02060319483280182, 0.214334636926651, 0.2529295086860657, 0.024840041995048523, -0.21068906784057617, 0.2555232644081116, 0.10160396993160248, 0.20239126682281494, -0.13192221522331238, -0.2983579933643341, 0.057016707956790924, -0.04941742494702339, 0.4805615246295929, 0.2433171272277832, -0.1569366753101349, -0.6128853559494019, -0.05597562715411186, -0.7017799019813538, 0.016539007425308228, -0.032236162573099136, 0.29553425312042236, 0.061719104647636414, -0.12609797716140747, -0.1343746781349182, 0.49022042751312256, 0.13866263628005981, -0.23640303313732147, -0.3039497435092926, 0.008761081844568253, -0.38117945194244385, -0.0606721006333828, -0.19996200501918793, -0.4957593083381653, 0.19418945908546448, -0.2205464243888855, -0.19015191495418549, -0.13695578277111053, -0.003914620727300644, -0.0027139130979776382, -0.15563687682151794, 0.19154733419418335, 0.3085133731365204, 0.41049107909202576, 0.1946672946214676, 0.30230069160461426, 0.021182730793952942, 0.007380297407507896, -0.06170166656374931, -0.001275284681469202, -0.127500519156456, -0.00745970755815506, -0.08715026080608368, 0.08972522616386414, -0.35118716955184937, -0.26277902722358704, -0.3653204143047333, 0.18327367305755615, 0.1086655855178833, -0.23780204355716705, -0.45092958211898804, 0.14493662118911743, 0.11939004808664322, -0.20260153710842133, -0.16608043015003204, 0.13672631978988647, -0.12088438868522644, 0.5144055485725403, -0.19655448198318481, 0.021710554137825966, 0.5324777960777283, -0.416659414768219, -0.22755427658557892, -0.05428605526685715, 0.25497281551361084, -0.03970666974782944, -0.3813862204551697, -0.8497496247291565, 0.2573448717594147, 0.4507561922073364, 0.22043955326080322, -0.12652479112148285, 0.08519068360328674, -0.3977722227573395, 0.14674605429172516, 0.059475746005773544, 0.3238847851753235, 0.010037114843726158, -0.2801130712032318, 0.1192416399717331, -0.18221791088581085 ]
https://github.com/huggingface/datasets/issues/842
How to enable `.map()` pre-processing pipelines to support multi-node parallelism?
Right now multiprocessing only runs on single node. However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos). If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :)
Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks!
76
How to enable `.map()` pre-processing pipelines to support multi-node parallelism? Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks! Right now multiprocessing only runs on single node. However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos). If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :)
[ -0.336905300617218, -0.3196837902069092, -0.16863508522510529, -0.07855021953582764, -0.13222859799861908, 0.03346530348062515, 0.050794437527656555, -0.04478222504258156, 0.23892077803611755, 0.23582947254180908, 0.2544304132461548, 0.5422922372817993, -0.15785185992717743, 0.3227918744087219, 0.008817395195364952, -0.40161269903182983, 0.03599731624126434, -0.03694373369216919, -0.006383337080478668, 0.26831698417663574, -0.08243680000305176, 0.033071599900722504, -0.37410968542099, 0.04205870255827904, -0.09994995594024658, -0.15511810779571533, -0.1367376297712326, -0.029817402362823486, -0.04368451237678528, -0.29584866762161255, -0.2203303426504135, 0.3011390268802643, 0.03129035234451294, 0.35206839442253113, -0.0001225285668624565, 0.002004668116569519, 0.2021491527557373, 0.13646197319030762, 0.2638629376888275, -0.20304660499095917, -0.2922291159629822, -0.11166049540042877, 0.2072140872478485, -0.14126327633857727, -0.05725034326314926, 0.12940050661563873, 0.22968992590904236, -0.487868994474411, 0.060624100267887115, -0.19149619340896606, 0.06735699623823166, 0.33362820744514465, 0.07117977738380432, 0.22398175299167633, -0.5225391387939453, 0.16761714220046997, -0.05759907141327858, -0.10182593762874603, 0.6528369188308716, -0.3768671751022339, -0.11623721569776535, -0.0478886254131794, 0.05052575469017029, 0.1481444239616394, 0.017873305827379227, -0.21977458894252777, 0.5481138229370117, -0.6776022911071777, -0.13639214634895325, 0.19811579585075378, -0.09676765650510788, 0.09110560268163681, -0.29663920402526855, -0.0853988379240036, -0.3229729235172272, -0.23324726521968842, -0.17758426070213318, -0.00012187473475933075, 0.003138745203614235, -0.11749549210071564, -0.5662782192230225, -0.41025495529174805, 0.07052873075008392, 0.29572921991348267, 0.1834559142589569, 0.6211113929748535, 0.22724272310733795, 0.2678334712982178, 0.37022000551223755, 0.13261482119560242, 0.039092957973480225, 0.020360412076115608, 0.3610497713088989, 0.25009995698928833, -0.33387038111686707, 0.06370480358600616, 0.058984190225601196, -0.16922014951705933, -0.21339067816734314, -0.25818461179733276, 0.21639247238636017, 0.29935282468795776, -0.26645320653915405, 0.44578489661216736, 0.15773163735866547, -0.1810769885778427, 0.08756368607282639, 0.36153388023376465, 0.12244287878274918, -0.24128566682338715, -0.09811954200267792, 0.07406280189752579, -0.03646961599588394, -0.48291686177253723, -0.4006953239440918, 0.3822459578514099, -0.30583280324935913, 0.3852480351924896, 0.3548591732978821, -0.3782682418823242, -0.14104872941970825, -0.24023514986038208, 0.3023350238800049, -0.21192342042922974, 0.4422476589679718, 0.39821484684944153, 0.06317387521266937, 0.2084142118692398, -0.1993979662656784, -0.2483128011226654, 0.06380777060985565, -0.025891151279211044, -0.14083650708198547, 0.15869691967964172, -0.02598234824836254, 0.015085281804203987, 0.02095162868499756, -0.11330340057611465, 0.10742007941007614, -0.07295640558004379, 0.41149193048477173, 0.09061931073665619, 0.08630667626857758, 0.33434292674064636, 0.03641710802912712, -0.012797020375728607, 0.03998827934265137, 0.6484883427619934, -0.18378612399101257, 0.2720237374305725, -0.4591769576072693, -0.3027990758419037, 0.2662394642829895, -0.061308231204748154, 0.2564393877983093, 0.09698992967605591, -0.34695276618003845, 0.18637312948703766, 0.3003368079662323, -0.285177081823349, 0.26932409405708313, -0.1820218861103058, -0.6244845390319824, -0.17001482844352722, 0.3108026683330536, 0.020038865506649017, 0.18187068402767181, -0.023772556334733963, -0.15023069083690643, -0.06579168140888214, 0.27365654706954956, 0.04461931809782982, -0.29552707076072693, 0.1507146656513214, 0.11665450036525726, 0.3167732357978821, 0.06567039340734482, -0.35265228152275085, 0.42365890741348267, 0.3865177631378174, -0.3203392028808594, 0.023529043421149254, -0.20477569103240967, 0.014123509638011456, -0.15350209176540375, 0.16017062962055206, -0.04343769699335098, 0.2964763641357422, -0.021105388179421425, 0.08390592783689499, -0.1153801679611206, -0.22371919453144073, 0.15039944648742676, 0.01880917325615883, 0.22965165972709656, 0.16365274786949158, -0.029227755963802338, -0.4754522442817688, 0.3516526520252228, -0.005084000527858734, 0.3887656629085541, 0.03532251715660095, -0.20260809361934662, 0.15787717700004578, -0.15698781609535217, -0.29686838388442993, 0.27424103021621704, 0.22676023840904236, -0.38455578684806824, -0.2667269706726074, 0.19440129399299622, -0.028135577216744423, 0.6583572626113892, -0.0203723032027483, 0.013235196471214294, -0.013306859880685806, 0.021838054060935974, -0.15586227178573608, -0.13862209022045135, -0.27706554532051086, -0.13141033053398132, 0.166105255484581, 0.16532094776630402, -0.012366211041808128, -0.11401388049125671, 0.24908576905727386, 0.007622921839356422, 0.1042492687702179, -0.37743842601776123, 0.0114937424659729, 0.04094948619604111, -0.09347045421600342, 0.05812714993953705, 0.2879984676837921, 0.13923926651477814, 0.3358108401298523, 0.21576938033103943, 0.33590197563171387, 0.38639378547668457, -0.10827955603599548, -0.006181968376040459, -0.10448804497718811, -0.13608409464359283, -0.25290045142173767, 0.46676358580589294, 0.2141510546207428, -0.04216351732611656, 0.26366135478019714, 0.059815913438797, 0.1984935700893402, -0.07910372316837311, 0.19464994966983795, -0.12600891292095184, 0.1594267189502716, 0.12352767586708069, 0.001430930569767952, -0.19641898572444916, -0.1850951910018921, -0.25231361389160156, -0.03650911897420883, -0.19162482023239136, 0.0773276686668396, -0.12367581576108932, -0.17944371700286865, 0.09059975296258926, 0.1549220085144043, 0.2646667957305908, -0.28786131739616394, 0.2626064419746399, -0.10829586535692215, 0.3512685298919678, 0.0805044025182724, 0.060042042285203934, -0.05564697086811066, -0.021964453160762787, 0.141363263130188, 0.45991426706314087, -0.1237834021449089, 0.06150209903717041, -0.03944931924343109, 0.15517273545265198, -0.16665303707122803, 0.38324686884880066, -0.14526058733463287, -0.08250284194946289, 0.3208308219909668, -0.25540807843208313, 0.011730886995792389, 0.08006801456212997, -0.40019306540489197, 0.028389262035489082, 0.05669602006673813, 0.09593893587589264, 0.20105120539665222, -0.1413591057062149, 0.235178604722023, 0.27164021134376526, 0.15440833568572998, -0.1668894737958908, -0.29728901386260986, 0.15662232041358948, -0.07173620164394379, 0.31082019209861755, -0.020900225266814232, 0.0974181517958641, 0.05601617321372032, -0.15439490973949432, 0.31625431776046753, -0.1721544861793518, -0.16251419484615326, -0.10710278153419495, -0.10855992138385773, 0.11131836473941803, -0.12708131968975067, -0.04579567909240723, -0.16871775686740875, 0.03151923418045044, -0.19784130156040192, 0.19658705592155457, -0.2807559370994568, -0.07752525806427002, -0.13190096616744995, 0.04245806857943535, -0.31487956643104553, -0.2894269526004791, -0.01617971807718277, -0.3274705410003662, -0.2385781854391098, 0.5306854248046875, -0.1135026216506958, 0.267840713262558, -0.3076750636100769, 0.060795653611421585, -0.2777208685874939, -0.27997493743896484, -0.2050078809261322, 0.30629339814186096, -0.42661333084106445, 0.0779459998011589, -0.28613317012786865, 0.04203788936138153, 0.08885744214057922, 0.10369181632995605, 0.3386375308036804, 0.4227601885795593, 0.11035886406898499, 0.20119734108448029, 0.13110552728176117, 0.1691943109035492, 0.07405208796262741, 0.01068870723247528, 0.4992431700229645, 0.0048931073397397995, 0.154952272772789, 0.09849368780851364, 0.14534345269203186, 0.20187288522720337, 0.3149354159832001, -0.023479171097278595, 0.3149954676628113, -0.05447201430797577, 0.00262310728430748, 0.6437374949455261, 0.18635572493076324, -0.042093221098184586, 0.1919642835855484, 0.0683293268084526, -0.3384122848510742, 0.11024520546197891, -0.19586703181266785, -0.08229820430278778, -0.29244089126586914, -0.248164564371109, 0.027649834752082825, -0.0030350424349308014, -0.4998774230480194, -0.29212695360183716, 0.056372035294771194, -0.3272612690925598, 0.008357115089893341, -0.13885441422462463, -0.22006633877754211, 0.7672846913337708, -0.2289755493402481, -0.34859800338745117, -0.24881406128406525, 0.3278869092464447, -0.20510190725326538, 0.1145917996764183, 0.48506906628608704, -0.1215670183300972, -0.24255724251270294, -0.2685329020023346, -0.16038894653320312, 0.15943248569965363, 0.24814313650131226, 0.2303040623664856, -0.14448222517967224, 0.09740286320447922, 0.26356041431427, -0.0855029970407486, 0.3454561233520508, -0.45746222138404846, -0.23197151720523834, -0.024531332775950432, -0.5518503785133362, 0.15443210303783417, -0.05781775712966919, 0.1378307044506073, 0.4147222638130188, 0.49712198972702026, 0.06219984591007233, 0.19708538055419922, -0.0779511108994484, -0.23831182718276978, -0.3341006934642792, -0.013030476868152618, -0.23947733640670776, -0.11399906873703003, 0.18756696581840515, 0.01870904676616192, 0.13723677396774292, 0.09224183112382889, 0.044407039880752563, -0.08252062648534775, -0.053653307259082794, 0.2551802098751068, 0.09136456251144409, -0.11720804870128632, 0.07858124375343323, -0.2555147707462311, -0.11665967106819153, -0.038508303463459015, 0.33230265974998474, -0.2792896330356598, 0.2440057396888733, -0.0023076459765434265, -0.2696371078491211, 0.11860430240631104, 0.018682535737752914, 0.057573821395635605, 0.5479558706283569, -0.006347641348838806, 0.0025868373923003674, 0.24687761068344116, 0.36626291275024414, -0.0753515362739563, -0.4279352128505707, -0.15153272449970245, 0.2849557399749756, 0.18963095545768738, -0.08073380589485168, -0.19947901368141174, 0.23322534561157227, 0.31736454367637634, -0.13350480794906616, 0.5590896606445312, -0.7157689929008484, -0.15146173536777496, -0.0580991692841053, 0.11863571405410767, 0.41467347741127014, -0.3008105754852295, -0.1821461021900177, -0.5093061923980713, -0.054203081876039505, 0.040504924952983856, -0.6150125861167908, 0.44201868772506714, -0.009268220514059067, -0.14476843178272247, -0.10183034092187881, -0.020613055676221848, 0.5045961141586304, 0.5729448199272156, -0.02957160584628582, 0.1001841202378273, 0.33524036407470703, -0.4507005512714386, -0.12393580377101898, 0.09449504315853119, 0.554297685623169, -0.1666269302368164, 0.5189484357833862, -0.01400876883417368, 0.10694350302219391, 0.13525909185409546, -0.04730314761400223, -0.12906016409397125, 0.1321745365858078, 0.07076547294855118, -0.2802148163318634, -0.227474182844162, -0.2805256247520447, 0.03181573003530502, 0.026672985404729843, 0.2813255190849304, 0.4023774266242981, 0.41766560077667236, -0.11050312221050262, -0.056822020560503006, -0.1543670892715454, -0.17126962542533875, 0.24997290968894958, -0.11613809317350388, -0.4350849986076355, -0.11700853705406189, -0.20855911076068878, -0.07014936953783035, -0.35502326488494873, -0.011020004749298096, -0.08483265340328217, -0.5259230136871338, -0.21727460622787476, 0.4013301134109497, 0.17043298482894897, 0.5439362525939941, 0.04140793904662132, 0.35896962881088257, -0.027284523472189903, 0.04842892661690712, 0.024372609332203865, 0.2353883683681488, -0.38883745670318604, 0.42021819949150085, -0.4228859841823578, -0.1100679486989975, 0.1594160795211792, 0.2093493491411209, 0.06896621733903885, 0.0010662302374839783, -0.347027987241745, 0.40525004267692566, -0.16678783297538757, -0.0888366848230362, -0.3233778178691864, -0.12960262596607208, 0.6013836860656738, 0.02673015370965004, 0.31273794174194336, -0.07067424058914185, 0.10875522345304489, -0.12040586769580841, -0.12224791944026947, 0.32779741287231445, -0.26916438341140747, -0.20200996100902557, -0.1639290452003479, 0.010207220911979675, -0.44684380292892456, 0.038955774158239365, 0.2557685077190399, 0.17916478216648102, 0.3046796917915344, 0.5270442366600037, -0.10955704748630524, 0.09723202884197235, 0.13797761499881744, 0.1390131711959839, 0.22242675721645355, 0.06520587205886841, -0.2121955156326294, 0.015198865905404091, -0.09292002767324448, 0.07561267912387848, -0.08609985560178757, -0.037770826369524, 0.250655859708786, 0.17672216892242432, 0.19256597757339478, -0.10691488534212112, 0.39037349820137024, -0.16862852871418, -0.20948044955730438, -0.17312361299991608, -0.0312538743019104, 0.030948899686336517, -0.10182160139083862, 0.20185180008411407, 0.23338647186756134, -0.04857414960861206, -0.39153921604156494, 0.3528504967689514, 0.10575953125953674, -0.10729087889194489, -0.110540010035038, 0.15567252039909363, 0.2883763015270233, -0.14423632621765137, -0.08509428054094315, -0.26781004667282104, 0.2005625069141388, -0.05082179605960846, 0.36494120955467224, 0.15074867010116577, -0.04746686667203903, -0.4286779463291168, 0.36986926198005676, 0.11836092174053192, 0.061065707355737686, 0.3107888698577881, -0.034730613231658936, 0.002482593059539795, -0.0003462117165327072, -0.04976144805550575, 0.3888871371746063, 0.22132758796215057, 0.2612660229206085, 0.20909301936626434, 0.4744568169116974, 0.1417667418718338, -0.10240602493286133, 0.15064802765846252, -0.23023422062397003, -0.38462066650390625, 0.14839965105056763, -0.0840587168931961, 0.11187629401683807, 0.06535355746746063, 0.12068909406661987, 0.14893165230751038, -0.16945862770080566, -0.02625088393688202, 0.04636964574456215, 0.6140065789222717, 0.47061288356781006, -0.02345559373497963, 0.2348853349685669, -0.2129795104265213, -0.3037589192390442, -0.08549197018146515, 0.06868255138397217, 0.20773598551750183, -0.17160600423812866, 0.2382114827632904, -0.24560602009296417, -0.3759760856628418, -0.010618777014315128, 0.41443273425102234, -0.14197200536727905, -0.18816159665584564, -0.32130855321884155, 0.0009073615074157715, -0.0316229909658432, -0.10634560883045197, 0.1898760199546814, 0.15175902843475342, 1.0623278617858887, 0.06338384747505188, 0.0991475060582161, -0.06413749605417252, 0.051511190831661224, -0.0943845734000206, 0.22049987316131592, -0.07403448224067688, 0.2023746818304062, -0.2133176475763321, -0.37482404708862305, -0.12492340803146362, 0.1434619426727295, 0.007096879184246063, 0.10840093344449997, -0.13208003342151642, 0.13156722486019135, -0.2157430350780487, 0.1091264933347702, 0.07462982088327408, 0.2510555684566498, 0.12449462711811066, -0.01633324846625328, -0.0062671806663274765, -0.046838775277137756, -0.04489130154252052, 0.21598494052886963, 0.0012288577854633331, 0.567650556564331, -0.04603022336959839, 0.2820242941379547, 0.08422426134347916, 0.06187205761671066, 0.14704735577106476, 0.006116613745689392, -0.2501155734062195, 0.12268710881471634, 0.21147142350673676, -0.46491771936416626, -0.21612083911895752, -0.020547695457935333, -0.04451277479529381, -0.16392627358436584, 0.24743950366973877, 0.3628328740596771, 0.16254648566246033, -0.23491594195365906, -0.2758198380470276, -0.19813573360443115, 0.05299513787031174, -0.3341670334339142, 0.177206352353096, -0.10684239864349365, 0.028718376532197, 0.06042076647281647, 0.1646992713212967, 0.2909303307533264, -0.6244516968727112, -0.010124195367097855, 0.6283119916915894, -0.06897293031215668, 0.31959205865859985, -0.15019746124744415, 0.0043782806023955345, 0.22913214564323425, -0.027565430849790573, 0.2200336456298828, 0.10528286546468735, -0.18012303113937378, -0.03748563304543495, -0.05839711055159569, 0.0808417797088623, -0.09907236695289612, 0.18111900985240936, 0.0638207197189331, 0.22936464846134186, -0.1535033881664276, 0.26008379459381104, -0.18091219663619995, 0.08719795197248459, -0.14134065806865692, 0.061400752514600754, -0.16814611852169037, 0.2067478895187378, -0.5416620373725891, -0.22017766535282135, -0.11807011812925339, -0.25116071105003357, -0.27175381779670715, -0.2261435091495514, -0.12668760120868683, -0.17362390458583832, -0.16965822875499725, 0.012438352219760418, 0.29038673639297485, 0.3010913133621216, 0.150792196393013, -0.20555883646011353, -0.21488377451896667, 0.06198424845933914, -0.11203733086585999, -0.4172700345516205, 0.02035633474588394, -0.5614667534828186, -0.12289512157440186, 0.06367310136556625, 0.2879079282283783, -0.23662617802619934, -0.4211462140083313, 0.21185067296028137, 0.02560633420944214, -0.091933473944664, 0.2861265242099762, -0.30227890610694885, -0.2326250821352005, -0.21413572132587433, 0.020547978579998016, 0.03492030128836632, 0.11821582913398743, -0.10459800064563751, -0.27015894651412964 ]
https://github.com/huggingface/datasets/issues/842
How to enable `.map()` pre-processing pipelines to support multi-node parallelism?
Curious to hear if anything on that side changed or if you suggestions to do it changed @lhoestq :) For our use-case, we are entering the regime where trading a few more instances to save a few days would be nice :)
Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks!
42
How to enable `.map()` pre-processing pipelines to support multi-node parallelism? Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks! Curious to hear if anything on that side changed or if you suggestions to do it changed @lhoestq :) For our use-case, we are entering the regime where trading a few more instances to save a few days would be nice :)
[ -0.2867453694343567, -0.47127145528793335, -0.177335724234581, -0.06702575087547302, -0.10848595201969147, 0.041633524000644684, 0.049589551985263824, -0.05318645015358925, 0.2369060516357422, 0.18832364678382874, 0.3082182705402374, 0.5195040702819824, -0.10673191398382187, 0.31767091155052185, -0.060745373368263245, -0.36628127098083496, 0.011278495192527771, 0.002324819564819336, 0.07424459606409073, 0.23133067786693573, -0.016882825642824173, -0.0249327402561903, -0.4206136465072632, -0.06075665354728699, -0.0988505408167839, -0.1148383691906929, -0.05135234445333481, -0.06942275911569595, -0.02666362188756466, -0.3273293375968933, -0.2582983374595642, 0.22493787109851837, -0.006860597990453243, 0.2594873607158661, -0.00012132470146752894, -0.0010817721486091614, 0.2648949921131134, 0.14994187653064728, 0.2701054811477661, -0.15026400983333588, -0.3107345700263977, -0.021199017763137817, 0.19844453036785126, -0.12228831648826599, -0.1459168791770935, 0.07515854388475418, 0.22972999513149261, -0.5392282605171204, 0.1480240672826767, -0.22849656641483307, 0.07770971953868866, 0.36127448081970215, 0.08819472789764404, 0.19993603229522705, -0.5905115008354187, 0.18532314896583557, -0.07589097321033478, -0.1286230832338333, 0.5641814470291138, -0.4024422764778137, -0.1127367839217186, -0.04373473301529884, 0.07662466168403625, 0.13611115515232086, 0.07027249038219452, -0.28622084856033325, 0.5359344482421875, -0.710787296295166, -0.06115490198135376, 0.21140646934509277, -0.0667593702673912, 0.13828420639038086, -0.22508804500102997, -0.07650642096996307, -0.2792096436023712, -0.19155479967594147, -0.17832225561141968, -0.04053162783384323, -0.018716812133789062, -0.06082771345973015, -0.5409021377563477, -0.36096030473709106, 0.001981109380722046, 0.27916157245635986, 0.17145705223083496, 0.5832580924034119, 0.22135469317436218, 0.25634506344795227, 0.3308357298374176, 0.14633312821388245, 0.08532458543777466, -0.033120669424533844, 0.3177490532398224, 0.29654306173324585, -0.2672310769557953, 0.06463311612606049, 0.09913254529237747, -0.20638388395309448, -0.2583104968070984, -0.25302428007125854, 0.287036657333374, 0.3401627540588379, -0.20603251457214355, 0.41388970613479614, 0.06942643225193024, -0.16453850269317627, 0.1317097246646881, 0.4274830222129822, 0.07350553572177887, -0.2681892216205597, -0.06690727174282074, 0.04341760650277138, -0.06266622245311737, -0.3818971812725067, -0.39070549607276917, 0.3530382812023163, -0.34533870220184326, 0.3281991481781006, 0.2800632119178772, -0.2824769616127014, -0.23252108693122864, -0.25176796317100525, 0.2912270426750183, -0.22419098019599915, 0.3601415157318115, 0.38130101561546326, 0.052674755454063416, 0.13089412450790405, -0.17352114617824554, -0.18827807903289795, 0.050365544855594635, -0.00760180689394474, -0.12634186446666718, 0.1768457293510437, -0.027673697099089622, 0.04997865855693817, 0.06525498628616333, -0.12912075221538544, 0.06998373568058014, 0.00030460208654403687, 0.3826802670955658, 0.1174420714378357, 0.14061790704727173, 0.3385818302631378, 0.03229798749089241, -0.05006883293390274, -0.04855269566178322, 0.6676813364028931, -0.14257821440696716, 0.22935333847999573, -0.4205262362957001, -0.3388122618198395, 0.2657631039619446, -0.020424991846084595, 0.17874960601329803, 0.06243470311164856, -0.2808190584182739, 0.2170906960964203, 0.34588906168937683, -0.2535526752471924, 0.25938498973846436, -0.16896690428256989, -0.6554518938064575, -0.20632204413414001, 0.2638571560382843, -0.003506675362586975, 0.1939394325017929, 0.03996824473142624, -0.12333232164382935, -0.10365387797355652, 0.22882980108261108, -0.01814042031764984, -0.33283698558807373, 0.07316059619188309, 0.1187036782503128, 0.3381788730621338, 0.0268990620970726, -0.4045866131782532, 0.4505745470523834, 0.3978339731693268, -0.318857342004776, 0.08811458200216293, -0.11088038235902786, -0.08526311814785004, -0.13204817473888397, 0.10011032223701477, 0.04850010201334953, 0.3294781446456909, -0.061980053782463074, 0.0809130147099495, -0.1338750571012497, -0.16664165258407593, 0.14270517230033875, 0.009831290692090988, 0.24922902882099152, 0.10336264222860336, 0.013902708888053894, -0.361159086227417, 0.30338937044143677, 0.009548313915729523, 0.4360205829143524, 0.011207781732082367, -0.2798815369606018, 0.03894779831171036, -0.140693798661232, -0.21527200937271118, 0.21604201197624207, 0.2609172463417053, -0.3720189034938812, -0.2732022702693939, 0.2773621082305908, -0.03438746556639671, 0.6774815917015076, -0.013513889163732529, -0.0030501671135425568, -0.04052293673157692, 0.04833073914051056, -0.21376237273216248, -0.1614055186510086, -0.3037048578262329, -0.09953124821186066, 0.1665937453508377, 0.24737770855426788, -0.0493871234357357, -0.0887170135974884, 0.18071827292442322, -0.02576545812189579, 0.1526707112789154, -0.40495386719703674, 0.004214711487293243, 0.06154431030154228, -0.09891641139984131, 0.053113795816898346, 0.29194942116737366, 0.15742236375808716, 0.37661880254745483, 0.1281789392232895, 0.3022051155567169, 0.4459131360054016, -0.16384512186050415, 0.003468042239546776, -0.11149212718009949, -0.1365819275379181, -0.3565990626811981, 0.47175776958465576, 0.17608529329299927, 0.08954647183418274, 0.22099816799163818, 0.0543384850025177, 0.15203754603862762, -0.15455034375190735, 0.18080969154834747, -0.15872862935066223, 0.1092555969953537, 0.08075858652591705, -0.040893856436014175, -0.1398473083972931, -0.09759664535522461, -0.14792318642139435, 0.020248375833034515, -0.19028298556804657, 0.08007657527923584, -0.1920502483844757, -0.21668264269828796, 0.02751811593770981, 0.08835216611623764, 0.24233518540859222, -0.2755049467086792, 0.2564637064933777, -0.09822223335504532, 0.3676666021347046, 0.1064196527004242, 0.07235130667686462, -0.07003796100616455, 0.021681927144527435, 0.1409512162208557, 0.6335786581039429, -0.039629705250263214, 0.07748616486787796, -0.05595298483967781, 0.14888274669647217, -0.13786281645298004, 0.38652437925338745, -0.14679063856601715, -0.06382978707551956, 0.20530946552753448, -0.1891823261976242, -0.0024074316024780273, 0.07590873539447784, -0.3651195466518402, 0.05661042034626007, 0.07755967974662781, 0.039985645562410355, 0.2233085036277771, -0.0947910025715828, 0.09921009838581085, 0.2451663613319397, 0.11498412489891052, -0.18025578558444977, -0.2774648070335388, 0.0730883926153183, -0.04944334924221039, 0.25245049595832825, -0.001051194965839386, 0.09796269237995148, 0.005202984903007746, -0.10992398858070374, 0.4178968071937561, -0.24136127531528473, -0.09553017467260361, -0.13014420866966248, -0.07162459194660187, 0.1044650673866272, -0.2189425677061081, -0.06163997948169708, -0.1732678860425949, 0.025172941386699677, -0.1565643697977066, 0.18698644638061523, -0.23324871063232422, -0.11080045998096466, -0.15654447674751282, -0.016529371961951256, -0.3748324513435364, -0.32084232568740845, -0.008868977427482605, -0.3474258780479431, -0.265699565410614, 0.5253130793571472, -0.08687426149845123, 0.19025883078575134, -0.23130978643894196, 0.06130245700478554, -0.27109965682029724, -0.19620707631111145, -0.18786481022834778, 0.2349582314491272, -0.3614455759525299, 0.03224369138479233, -0.3591165542602539, 0.016545824706554413, 0.054296378046274185, 0.11942800879478455, 0.3072527050971985, 0.4077911972999573, 0.14854581654071808, 0.19488929212093353, 0.1083880141377449, 0.0661565363407135, 0.017962822690606117, -0.09315723925828934, 0.5231785178184509, 0.0011054673232138157, 0.14525480568408966, 0.04154888540506363, 0.19390754401683807, 0.21957527101039886, 0.3027433156967163, 0.06645838916301727, 0.3198277950286865, -0.09883547574281693, 0.08436867594718933, 0.5876272320747375, 0.21184983849525452, -0.12777358293533325, 0.17096804082393646, 0.07420685887336731, -0.3560400903224945, 0.09200549125671387, -0.16461028158664703, -0.12298904359340668, -0.27615898847579956, -0.20395608246326447, -0.008137069642543793, -0.040687184780836105, -0.5240263938903809, -0.3561229705810547, 0.054953884333372116, -0.2546446919441223, 0.0431654192507267, -0.10914702713489532, -0.2996150553226471, 0.7494878768920898, -0.2039729654788971, -0.31535762548446655, -0.2465389370918274, 0.298188179731369, -0.21062292158603668, 0.01107245683670044, 0.4559326469898224, -0.15244212746620178, -0.3026248514652252, -0.2799665331840515, -0.19442370533943176, 0.18706077337265015, 0.32724928855895996, 0.24867594242095947, -0.1659400910139084, 0.07018709927797318, 0.2596457600593567, -0.08070554584264755, 0.31269571185112, -0.46873506903648376, -0.1695297211408615, 0.04001614823937416, -0.4589002728462219, 0.09979286044836044, -0.10618564486503601, 0.1550002098083496, 0.4665655493736267, 0.46933433413505554, 0.10128163546323776, 0.27614495158195496, -0.1210373193025589, -0.19108372926712036, -0.395755410194397, 0.07539698481559753, -0.19037482142448425, -0.09334030747413635, 0.22197100520133972, 0.08302120119333267, 0.07646463811397552, 0.1413535177707672, 0.10762053728103638, -0.052913911640644073, -0.11259487271308899, 0.2957400977611542, 0.13429000973701477, -0.12787172198295593, 0.11833915114402771, -0.26470842957496643, -0.06205636262893677, -0.021452374756336212, 0.3855762183666229, -0.3270277678966522, 0.2781834006309509, -0.027792558073997498, -0.23918527364730835, 0.17356234788894653, -0.018116582185029984, 0.04221564531326294, 0.5421907901763916, 0.0026763081550598145, -0.028875019401311874, 0.2058635652065277, 0.3396037518978119, -0.08657309412956238, -0.37814393639564514, -0.09466934949159622, 0.2918531000614166, 0.10670865327119827, -0.20286190509796143, -0.18004831671714783, 0.20880168676376343, 0.3174300491809845, -0.15496490895748138, 0.5252689719200134, -0.8105040192604065, -0.18998263776302338, 0.02917696163058281, 0.18115195631980896, 0.3623181879520416, -0.2905413508415222, -0.18340252339839935, -0.5312827229499817, 0.005681045353412628, -0.039263468235731125, -0.5892874002456665, 0.4440523386001587, -0.036237090826034546, -0.18744201958179474, -0.10256260633468628, -0.014011174440383911, 0.5227421522140503, 0.5627297759056091, 0.049899954348802567, 0.04411899670958519, 0.37442588806152344, -0.34227079153060913, -0.15105122327804565, 0.12666605412960052, 0.5744446516036987, -0.19050945341587067, 0.6065638661384583, 0.0035524554550647736, 0.16719838976860046, 0.20647908747196198, -0.08451931923627853, -0.18286053836345673, 0.132055401802063, 0.00028135254979133606, -0.3430306315422058, -0.22282883524894714, -0.3289971649646759, 0.06725513935089111, 0.024494536221027374, 0.29370367527008057, 0.39907076954841614, 0.37906211614608765, -0.15933504700660706, -0.04084846004843712, -0.169744074344635, -0.13181304931640625, 0.2907819449901581, -0.1586773544549942, -0.409956157207489, -0.119870126247406, -0.16316692531108856, -0.11303563416004181, -0.3634260892868042, -0.01270093023777008, -0.08444338291883469, -0.4624292254447937, -0.2905847430229187, 0.39851629734039307, 0.21113291382789612, 0.5260446071624756, 0.0372721329331398, 0.38574644923210144, -0.0750662088394165, 0.10111407935619354, 0.04066383093595505, 0.17056289315223694, -0.3820129930973053, 0.4303801655769348, -0.34241846203804016, -0.12696197628974915, 0.18949899077415466, 0.3352614939212799, 0.05847498029470444, -0.09455260634422302, -0.3920869529247284, 0.3425346910953522, -0.10468486696481705, -0.11498147249221802, -0.33078739047050476, -0.11649065464735031, 0.6655564904212952, 0.004079701844602823, 0.34628650546073914, -0.14546822011470795, 0.14076052606105804, -0.13718634843826294, -0.08242444694042206, 0.3564949929714203, -0.20175154507160187, -0.2270524650812149, -0.18171130120754242, -0.002032250165939331, -0.4634360373020172, 0.08878672122955322, 0.1700824499130249, 0.22565820813179016, 0.3339513838291168, 0.48047205805778503, -0.12307602912187576, 0.09242919832468033, 0.2437165379524231, 0.12417209148406982, 0.2187819927930832, 0.04297708719968796, -0.15429337322711945, 0.0006567919626832008, -0.0393126904964447, 0.09332126379013062, -0.12056492269039154, -0.054430603981018066, 0.24136483669281006, 0.17373615503311157, 0.22265973687171936, -0.11897250264883041, 0.3839036524295807, -0.26143380999565125, -0.23362386226654053, -0.15325941145420074, -0.04841308295726776, 0.02834424376487732, -0.11072787642478943, 0.17894604802131653, 0.20160360634326935, -0.004468873143196106, -0.2958837151527405, 0.32622769474983215, 0.10459816455841064, -0.08550368249416351, -0.14990878105163574, 0.139969602227211, 0.31190961599349976, -0.14606505632400513, -0.06250352412462234, -0.2918740212917328, 0.14205923676490784, -0.020792778581380844, 0.31991299986839294, 0.18295815587043762, -0.04845913499593735, -0.42076894640922546, 0.3134362995624542, 0.07007859647274017, -0.004300168249756098, 0.40456563234329224, -0.10359534621238708, 0.04105403274297714, 0.006203755736351013, -0.09634909778833389, 0.4756823778152466, 0.175027534365654, 0.2162661850452423, 0.19736650586128235, 0.52498859167099, 0.15817366540431976, -0.09574750065803528, 0.19113007187843323, -0.2566544711589813, -0.37249618768692017, 0.15340371429920197, -0.040329862385988235, 0.0981978178024292, 0.026720352470874786, 0.1464686542749405, 0.14791728556156158, -0.11239195615053177, -0.01938604563474655, 0.14754369854927063, 0.5940099358558655, 0.44254133105278015, 0.015774331986904144, 0.22533997893333435, -0.261042982339859, -0.22586779296398163, -0.018982231616973877, 0.039228036999702454, 0.3241889774799347, -0.08506232500076294, 0.22135677933692932, -0.1747628152370453, -0.4027002155780792, -0.058802083134651184, 0.3832477927207947, -0.14308997988700867, -0.15741530060768127, -0.23328429460525513, 0.006613612174987793, 0.013793103396892548, -0.09290340542793274, 0.26962336897850037, 0.17141416668891907, 1.090393304824829, 0.09939556568861008, 0.06211960315704346, 0.06619836390018463, 0.022623440250754356, -0.09034455567598343, 0.3225036561489105, -0.07122942805290222, 0.169207364320755, -0.27238011360168457, -0.3844289779663086, -0.1517348438501358, 0.11902780085802078, -0.013810280710458755, 0.11677373200654984, -0.16313116252422333, 0.12355197221040726, -0.14244331419467926, 0.052562303841114044, 0.05137186497449875, 0.2458237111568451, 0.16496863961219788, -0.0933205634355545, -0.051402173936367035, -0.0417461097240448, -0.061887942254543304, 0.24289068579673767, 0.0057507045567035675, 0.462383896112442, 0.025399871170520782, 0.23685908317565918, 0.16185981035232544, -0.02884487807750702, 0.17125526070594788, 0.08055222779512405, -0.25778284668922424, 0.06668899208307266, 0.20890122652053833, -0.4538140594959259, -0.14561399817466736, -0.03973187133669853, -0.027346652001142502, -0.0940013974905014, 0.26649171113967896, 0.29536163806915283, 0.07158486545085907, -0.18594884872436523, -0.27332305908203125, -0.18290972709655762, 0.03258630633354187, -0.2916484475135803, 0.22684133052825928, -0.11081168800592422, 0.010397899895906448, 0.012767873704433441, 0.13395464420318604, 0.325509250164032, -0.6715909838676453, 0.05943324416875839, 0.6505709886550903, -0.0201103538274765, 0.3850393295288086, -0.09418511390686035, -0.036777280271053314, 0.25152117013931274, -0.029641801491379738, 0.20200197398662567, 0.09390044212341309, -0.136475071310997, -0.14900337159633636, -0.028356753289699554, 0.07932768762111664, -0.15973691642284393, 0.23482514917850494, 0.02845863625407219, 0.28336039185523987, -0.1477322280406952, 0.2520579695701599, -0.1603674739599228, 0.1354116052389145, -0.08205799758434296, 0.1045866459608078, -0.10368351638317108, 0.18313202261924744, -0.4977019131183624, -0.22600357234477997, -0.0668700784444809, -0.28560805320739746, -0.24845126271247864, -0.20000340044498444, -0.2906208634376526, -0.1484842598438263, -0.2601821720600128, 0.05484747886657715, 0.2533128559589386, 0.3375161290168762, 0.1398690789937973, -0.28788408637046814, -0.1945168524980545, -0.012051694095134735, -0.08033868670463562, -0.46467941999435425, 0.0411856509745121, -0.48934751749038696, -0.1086975485086441, -0.002486683428287506, 0.27173468470573425, -0.2498367428779602, -0.43736663460731506, 0.21752561628818512, -0.07423695176839828, -0.13257884979248047, 0.3727872371673584, -0.35482582449913025, -0.23294848203659058, -0.2534359395503998, 0.022762231528759003, -0.0032920315861701965, 0.08732374757528305, -0.11635135114192963, -0.2834147810935974 ]
https://github.com/huggingface/datasets/issues/842
How to enable `.map()` pre-processing pipelines to support multi-node parallelism?
Currently for multi-node setups we're mostly going towards a nice integration with Dask. But I wouldn't exclude exploring `pathos` more at one point
Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks!
23
How to enable `.map()` pre-processing pipelines to support multi-node parallelism? Hi, Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish? Thanks! Currently for multi-node setups we're mostly going towards a nice integration with Dask. But I wouldn't exclude exploring `pathos` more at one point
[ -0.29494917392730713, -0.4566616415977478, -0.18719454109668732, -0.08555327355861664, -0.13027960062026978, -0.008714400231838226, 0.06525197625160217, -0.025322850793600082, 0.23729097843170166, 0.21923279762268066, 0.28159549832344055, 0.5140162110328674, -0.14509980380535126, 0.3736284375190735, -0.029737848788499832, -0.3751378059387207, 0.02939280867576599, -0.04708428680896759, -0.014323756098747253, 0.22945912182331085, 0.037869177758693695, -0.06035345047712326, -0.3629146218299866, -0.030874505639076233, -0.08065780997276306, -0.15311099588871002, -0.04064464569091797, 0.009388551115989685, -0.061903201043605804, -0.31529510021209717, -0.2145114690065384, 0.23096086084842682, 0.0026410743594169617, 0.3320966362953186, -0.00012078253348590806, -0.013277556747198105, 0.27197951078414917, 0.14744159579277039, 0.21306964755058289, -0.24197949469089508, -0.35670289397239685, -0.025829356163740158, 0.18143238127231598, -0.18230678141117096, -0.0852157473564148, 0.07385867089033127, 0.2858189344406128, -0.528411865234375, 0.18181276321411133, -0.20605340600013733, 0.06568867713212967, 0.34937310218811035, 0.07856595516204834, 0.2501358091831207, -0.5060065984725952, 0.2746862769126892, -0.07521414011716843, -0.10157841444015503, 0.5902286767959595, -0.39830029010772705, -0.14511340856552124, -0.023495877161622047, 0.07503426820039749, 0.14120161533355713, 0.12991517782211304, -0.2546728551387787, 0.6583746671676636, -0.6995944976806641, -0.09446262568235397, 0.25198182463645935, -0.1735537052154541, 0.11192643642425537, -0.225699782371521, -0.1339108943939209, -0.3373279869556427, -0.30898284912109375, -0.17651274800300598, -0.03161609172821045, -0.025079302489757538, -0.09001438319683075, -0.5506442785263062, -0.3088844120502472, 0.021547548472881317, 0.32810312509536743, 0.19967591762542725, 0.6147797107696533, 0.2276473343372345, 0.22920453548431396, 0.36489757895469666, 0.10828416049480438, 0.08583131432533264, -0.037662625312805176, 0.33175015449523926, 0.3071786165237427, -0.2419290393590927, 0.0890292227268219, 0.10518278181552887, -0.24077317118644714, -0.16378101706504822, -0.25780433416366577, 0.2526612877845764, 0.3181789219379425, -0.25578442215919495, 0.4290207028388977, 0.12614183127880096, -0.2232532948255539, 0.10890147089958191, 0.46026572585105896, 0.07687954604625702, -0.21443845331668854, -0.0025447718799114227, 0.11334778368473053, -0.059033602476119995, -0.36213791370391846, -0.46474575996398926, 0.33091142773628235, -0.3359047770500183, 0.36438000202178955, 0.3371047377586365, -0.3543938398361206, -0.16655808687210083, -0.25996991991996765, 0.31606927514076233, -0.25822913646698, 0.4220154285430908, 0.3674550950527191, 0.04911947250366211, 0.15322932600975037, -0.13312456011772156, -0.07575120776891708, 0.08416641503572464, -0.030775122344493866, -0.16601504385471344, 0.14281870424747467, -0.07476121187210083, 0.13068881630897522, 0.10080066323280334, -0.17043966054916382, 0.14499710500240326, -0.002639763057231903, 0.423449844121933, 0.10531331598758698, 0.11441336572170258, 0.3317612111568451, -0.00017961114645004272, -0.07361678779125214, -0.08549366891384125, 0.5956188440322876, -0.16322925686836243, 0.21537166833877563, -0.4288862645626068, -0.2889961004257202, 0.2695225477218628, -0.04302079603075981, 0.21199025213718414, 0.09105091542005539, -0.3300032913684845, 0.20887835323810577, 0.29559561610221863, -0.2633804380893707, 0.26907429099082947, -0.1714998483657837, -0.6763912439346313, -0.16328760981559753, 0.3012482821941376, 0.007631093263626099, 0.37593722343444824, 0.00110529363155365, -0.07970263808965683, -0.055793020874261856, 0.2845768928527832, 0.01595630869269371, -0.3316115736961365, 0.10646209120750427, 0.08515363186597824, 0.38786381483078003, 0.08658567070960999, -0.42877495288848877, 0.5143586993217468, 0.3367525041103363, -0.2989063262939453, 0.06456457823514938, -0.106319360435009, -0.10338231921195984, -0.09824749082326889, 0.15588727593421936, -0.0015820041298866272, 0.39114874601364136, -0.02560589648783207, 0.09105347096920013, -0.1344578117132187, -0.24503156542778015, 0.16473880410194397, 0.013218116015195847, 0.2566774785518646, 0.046557046473026276, 0.019059985876083374, -0.41427162289619446, 0.30674779415130615, -0.06282000243663788, 0.3824341893196106, 0.0005142427980899811, -0.2945682108402252, 0.0546417273581028, -0.1761123538017273, -0.2774239778518677, 0.2692929804325104, 0.2885194718837738, -0.39810535311698914, -0.3241468369960785, 0.21698330342769623, -0.058038707822561264, 0.6803244948387146, -0.0225469172000885, 0.033360034227371216, 0.013657771050930023, 0.03922775387763977, -0.15661655366420746, -0.15053392946720123, -0.2489866465330124, -0.1331162005662918, 0.11289320141077042, 0.19283965229988098, -0.0661519393324852, -0.06087752804160118, 0.2352229803800583, -0.02757561020553112, 0.09129543602466583, -0.38362380862236023, 0.06509144604206085, 0.012143231928348541, -0.13465550541877747, 0.08779709041118622, 0.27412185072898865, 0.20651645958423615, 0.3429683446884155, 0.15074485540390015, 0.4354165196418762, 0.42194604873657227, -0.04850928485393524, -0.058775998651981354, -0.06762892007827759, -0.12336156517267227, -0.32327261567115784, 0.41179946064949036, 0.18150511384010315, 0.03788648918271065, 0.2499675154685974, 0.08791305124759674, 0.1983378529548645, -0.0970102995634079, 0.1602000594139099, -0.14936098456382751, 0.14460234344005585, 0.09889592230319977, -0.15170474350452423, -0.15924300253391266, -0.1246715784072876, -0.1640607714653015, 0.016246333718299866, -0.2099865972995758, 0.04296869412064552, -0.08939991146326065, -0.25109875202178955, 0.13965046405792236, 0.06941869109869003, 0.21960625052452087, -0.23529691994190216, 0.18926367163658142, -0.10960855334997177, 0.3549196720123291, 0.049490489065647125, 0.08643787354230881, -0.03746279329061508, -0.007736295461654663, 0.10401506721973419, 0.6406785249710083, -0.01752503216266632, 0.043514881283044815, -0.0930027961730957, 0.17671546339988708, -0.14780694246292114, 0.36464887857437134, -0.16283726692199707, -0.04956037178635597, 0.2502553164958954, -0.21206185221672058, -0.001319490373134613, 0.053914327174425125, -0.3553962707519531, 0.04268095642328262, 0.0733928456902504, 0.08305670320987701, 0.2014911025762558, -0.1350521594285965, 0.17214608192443848, 0.2616831660270691, 0.11455415934324265, -0.16028371453285217, -0.25058791041374207, 0.10090853273868561, -0.10564108937978745, 0.27255624532699585, -0.02860132046043873, 0.1667223572731018, 0.04801080375909805, -0.10425452888011932, 0.33368244767189026, -0.26235759258270264, -0.06608211249113083, -0.1420832872390747, -0.06894862651824951, 0.09474813938140869, -0.25541529059410095, -0.08290895819664001, -0.1851094514131546, 0.06198398768901825, -0.1948891431093216, 0.18150167167186737, -0.2235330194234848, -0.12112277746200562, -0.15834665298461914, 0.024401884526014328, -0.38440242409706116, -0.347312867641449, 0.07156097888946533, -0.3132876753807068, -0.28604990243911743, 0.4922828674316406, -0.08744727075099945, 0.21670284867286682, -0.14818699657917023, 0.08155210316181183, -0.22262103855609894, -0.2820616066455841, -0.16548901796340942, 0.30323922634124756, -0.35126134753227234, 0.03360576555132866, -0.32553666830062866, 0.013311095535755157, 0.020831089466810226, 0.10227654874324799, 0.3189489543437958, 0.4829440116882324, 0.12040871381759644, 0.1454310268163681, 0.11392191052436829, 0.1366061568260193, -0.008699309080839157, -0.04508177936077118, 0.5449879765510559, -0.04163353517651558, 0.1281389445066452, 0.037798456847667694, 0.1759926825761795, 0.2157946228981018, 0.27552732825279236, 0.10103490948677063, 0.3616683781147003, -0.10043031722307205, 0.06639987230300903, 0.6725976467132568, 0.1447707861661911, -0.137974813580513, 0.09731069207191467, 0.04235883802175522, -0.31807345151901245, 0.1152159571647644, -0.14750495553016663, -0.12008906155824661, -0.25237783789634705, -0.21626082062721252, -0.015523359179496765, -0.05781291425228119, -0.5596023797988892, -0.32256072759628296, 0.027642853558063507, -0.29145532846450806, 0.0025618113577365875, -0.1373119354248047, -0.28089576959609985, 0.7657828330993652, -0.23969078063964844, -0.29306089878082275, -0.22592628002166748, 0.3303286135196686, -0.18929308652877808, 0.07547803223133087, 0.4274490773677826, -0.09825600683689117, -0.3297770023345947, -0.15878425538539886, -0.11110501736402512, 0.11776503175497055, 0.33234891295433044, 0.20709654688835144, -0.18435539305210114, 0.04995229095220566, 0.22894717752933502, -0.1465435028076172, 0.2923211455345154, -0.386235773563385, -0.11790190637111664, 0.03509483486413956, -0.46429723501205444, 0.1058855876326561, -0.07565434277057648, 0.17105314135551453, 0.5040757060050964, 0.562741756439209, 0.055232562124729156, 0.21868711709976196, -0.13634952902793884, -0.20826655626296997, -0.3698558807373047, 0.08780395984649658, -0.14312757551670074, -0.06085330620408058, 0.19507333636283875, 0.0396321564912796, 0.07169677317142487, 0.13365113735198975, 0.05306588113307953, 0.0031924820505082607, -0.13647860288619995, 0.2797639071941376, 0.10532592982053757, -0.17168118059635162, 0.10474137961864471, -0.25616487860679626, -0.06651987880468369, -0.05059270188212395, 0.366536021232605, -0.23482370376586914, 0.21175740659236908, -0.041851192712783813, -0.26018306612968445, 0.14121147990226746, -0.0493563637137413, -0.012520425952970982, 0.47475600242614746, 0.040443725883960724, -0.006341565400362015, 0.1909448802471161, 0.30008891224861145, -0.0768250972032547, -0.3734700679779053, -0.06141142547130585, 0.3257679343223572, 0.1740843504667282, -0.15691284835338593, -0.15897053480148315, 0.16488467156887054, 0.2863076627254486, -0.18084971606731415, 0.5194557905197144, -0.7018659114837646, -0.2014569640159607, 0.024360764771699905, 0.16040638089179993, 0.4337155222892761, -0.3181116580963135, -0.14041107892990112, -0.5247142910957336, -0.07484905421733856, -0.07933800667524338, -0.6048843264579773, 0.39941489696502686, 0.03977786377072334, -0.06624367833137512, -0.10358374565839767, -0.003969885408878326, 0.47429242730140686, 0.5597447752952576, 0.11319155991077423, 0.028606122359633446, 0.35194796323776245, -0.3410276472568512, -0.20870952308177948, 0.15522751212120056, 0.6019529104232788, -0.1756918877363205, 0.5564320087432861, -0.0025220420211553574, 0.14226073026657104, 0.1212862879037857, -0.042672835290431976, -0.18116691708564758, 0.06555110216140747, 0.03341701626777649, -0.3160881996154785, -0.218965083360672, -0.2632576823234558, 0.11974482238292694, 0.006742745637893677, 0.2663918137550354, 0.31941524147987366, 0.41656428575515747, -0.15524156391620636, -0.041645314544439316, -0.17431768774986267, -0.16526268422603607, 0.217197984457016, -0.1617719829082489, -0.4408721923828125, -0.15695884823799133, -0.23166880011558533, -0.12838706374168396, -0.31478577852249146, -0.026110835373401642, -0.071648009121418, -0.4920128583908081, -0.3083776831626892, 0.38646751642227173, 0.22633624076843262, 0.6279811859130859, 0.056192051619291306, 0.4264375865459442, -0.07363943755626678, 0.14036035537719727, 0.03636348992586136, 0.208192378282547, -0.37884798645973206, 0.3945569694042206, -0.3469381034374237, -0.09732535481452942, 0.19556473195552826, 0.25877290964126587, 0.034403011202812195, -0.08098039031028748, -0.3804478943347931, 0.30400463938713074, -0.10355270653963089, -0.08234286308288574, -0.27969875931739807, -0.14149558544158936, 0.6694714426994324, -0.008396823890507221, 0.3407961428165436, -0.17788171768188477, 0.06335888057947159, -0.14792907238006592, -0.06980667263269424, 0.2780769467353821, -0.21194761991500854, -0.23036469519138336, -0.18188628554344177, 0.006888300180435181, -0.4473424255847931, 0.14498744904994965, 0.17270830273628235, 0.15784931182861328, 0.2550671696662903, 0.4526096284389496, -0.11824063211679459, 0.10245081782341003, 0.25704577565193176, 0.16504225134849548, 0.36210983991622925, -0.002538248896598816, -0.16160766780376434, -0.06533172726631165, -0.04575277864933014, 0.029589764773845673, -0.1259867548942566, -0.05816524475812912, 0.21620257198810577, 0.18204191327095032, 0.18887200951576233, -0.13495315611362457, 0.4238032400608063, -0.32788634300231934, -0.24736663699150085, -0.18154780566692352, -0.02860305644571781, 0.08816451579332352, -0.10033199191093445, 0.14259666204452515, 0.1933297961950302, 0.06374350190162659, -0.25984135270118713, 0.3188130557537079, 0.06592750549316406, -0.08522985875606537, -0.17776519060134888, 0.13744300603866577, 0.3003654181957245, -0.1729947328567505, 0.012427013367414474, -0.28872907161712646, 0.16104920208454132, -0.02664729207754135, 0.35419562458992004, 0.18153926730155945, -0.0247372854501009, -0.4235727787017822, 0.30632099509239197, 0.11244353652000427, -0.032116129994392395, 0.38502413034439087, -0.07762845605611801, 0.026146337389945984, 0.01590070128440857, -0.11490558832883835, 0.41351038217544556, 0.13839101791381836, 0.2523054778575897, 0.19892676174640656, 0.5021297335624695, 0.1558261513710022, -0.11095762252807617, 0.13775628805160522, -0.3329378664493561, -0.30067145824432373, 0.1509854644536972, -0.09429866075515747, 0.07757699489593506, -0.042921844869852066, 0.04285801947116852, 0.08699454367160797, -0.0622563436627388, -0.026188403367996216, 0.06953087449073792, 0.6896503567695618, 0.4580148756504059, 0.046855658292770386, 0.24903354048728943, -0.22164635360240936, -0.235657200217247, -0.1543753445148468, 0.09262432157993317, 0.3081739544868469, -0.11041302978992462, 0.17305035889148712, -0.15857113897800446, -0.40096843242645264, -0.014778818935155869, 0.33772385120391846, -0.07203464955091476, -0.17338119447231293, -0.2667604088783264, -0.01915302872657776, -0.055037252604961395, -0.11041967570781708, 0.23366808891296387, 0.18350589275360107, 1.0018988847732544, 0.11619171500205994, 0.05903669074177742, 0.09125734120607376, 0.10575281828641891, -0.06214189529418945, 0.33744266629219055, -0.0549984909594059, 0.17584861814975739, -0.22142748534679413, -0.3870234787464142, -0.20046037435531616, 0.12354522943496704, 0.029661033302545547, 0.13555192947387695, -0.19007782638072968, 0.09549307823181152, -0.11720548570156097, 0.06295593082904816, 0.04674013704061508, 0.2856273949146271, 0.08395911753177643, -0.08466853201389313, -0.04243113845586777, -0.05323377251625061, -0.09086697548627853, 0.18411751091480255, -0.03221648558974266, 0.44201695919036865, 0.014541704207658768, 0.2207396924495697, 0.1398431360721588, 0.06090398132801056, 0.1441103219985962, 0.0854676365852356, -0.3016849458217621, 0.02405872941017151, 0.19183455407619476, -0.430645614862442, -0.1483898162841797, -0.04273466393351555, -0.022217659279704094, -0.12955233454704285, 0.30427008867263794, 0.2817792296409607, 0.1420532464981079, -0.14582039415836334, -0.23677648603916168, -0.1319117546081543, 0.01096721738576889, -0.34815865755081177, 0.14728182554244995, -0.15624313056468964, 0.03863801062107086, 0.042409397661685944, 0.18559832870960236, 0.3238868713378906, -0.5896062850952148, 0.05092720687389374, 0.5945334434509277, -0.011059891432523727, 0.3965670168399811, -0.1894829124212265, -0.06216556578874588, 0.26422178745269775, -0.0602697916328907, 0.21135029196739197, 0.12657232582569122, -0.1561589539051056, -0.051185280084609985, -0.009657405316829681, 0.025703005492687225, -0.18781951069831848, 0.18429327011108398, 0.03905869275331497, 0.22308218479156494, -0.1317591518163681, 0.16377738118171692, -0.1759500652551651, 0.1117156445980072, -0.08535581082105637, 0.10275736451148987, -0.08319143950939178, 0.1781940758228302, -0.5605034232139587, -0.31473663449287415, -0.08662965893745422, -0.23502027988433838, -0.25608891248703003, -0.255799800157547, -0.1723080277442932, -0.19726023077964783, -0.2392779290676117, 0.04985349252820015, 0.2502874433994293, 0.3282303810119629, 0.09134484827518463, -0.28732356429100037, -0.1064363420009613, 0.06548551470041275, -0.09650278091430664, -0.3897758722305298, 0.07580280303955078, -0.541081964969635, -0.15037915110588074, 0.07512210309505463, 0.33121851086616516, -0.2804425060749054, -0.4236288070678711, 0.19172967970371246, -0.024960827082395554, -0.1062740683555603, 0.3384479582309723, -0.3641519844532013, -0.2672167122364044, -0.2338574379682541, -0.0036655738949775696, 0.0009928606450557709, 0.09389971941709518, -0.10650172829627991, -0.26730644702911377 ]
https://github.com/huggingface/datasets/issues/841
Can not reuse datasets already downloaded
It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py' Where and how to assign this ```wikipedia.py``` after I manually download it ?
Hello, I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on). I successfully downloaded and reuse the wikipedia datasets in a frontal node. When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error. On frontal node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd) /linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0 ``` On gpu node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module head_hf_s3(path, filename=name, dataset=dataset) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3 return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset)) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head return request('head', url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) ``` Any advice?Thanks!
19
Can not reuse datasets already downloaded Hello, I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on). I successfully downloaded and reuse the wikipedia datasets in a frontal node. When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error. On frontal node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd) /linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.) return torch._C._cuda_getDeviceCount() > 0 ``` On gpu node: ``` >>> from datasets import load_dataset >>> dataset = load_dataset('wikipedia', '20200501.en') Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module head_hf_s3(path, filename=name, dataset=dataset) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3 return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset)) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head return request('head', url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',)) ``` Any advice?Thanks! It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py' Where and how to assign this ```wikipedia.py``` after I manually download it ?
[ -0.1548723429441452, -0.2376587688922882, -0.09354007244110107, 0.2473083734512329, 0.311697781085968, 0.09384485334157944, 0.2028711438179016, 0.05493076518177986, 0.4361795485019684, -0.1159733235836029, 0.05712614208459854, -0.06967718154191971, 0.4684700667858124, -0.0135192284360528, 0.037994060665369034, -0.03264468163251877, -0.13004013895988464, -0.10049028694629669, 0.043639905750751495, -0.11736376583576202, -0.06784309446811676, 0.05123921483755112, 0.09873394668102264, -0.19736023247241974, -0.5170297622680664, -0.03666217625141144, 0.06958688050508499, 0.025713101029396057, 0.12798140943050385, -0.32920920848846436, 0.4963110685348511, 0.1519472450017929, 0.3188910186290741, 0.3908817768096924, -0.00012275857443455607, 0.03316330164670944, 0.030148440971970558, -0.00867227278649807, -0.25776487588882446, -0.2175232619047165, -0.05833996459841728, -0.022180117666721344, 0.2983062267303467, -0.34261468052864075, -0.332579106092453, 0.1016702800989151, 0.10094752907752991, -0.5310966968536377, 0.5326622724533081, 0.026515047997236252, 0.09909653663635254, -0.224546879529953, 0.19646678864955902, -0.15305177867412567, -0.1416294276714325, 0.1641685664653778, 0.0021093767136335373, 0.1725650578737259, 0.1944146752357483, -0.035139650106430054, 0.24067458510398865, 0.09090578556060791, -0.05756525695323944, 0.29201894998550415, 0.4881073236465454, -0.0410381518304348, 0.159318745136261, -0.44363248348236084, -0.005661956965923309, 0.12685292959213257, 0.7601929903030396, -0.17965802550315857, -0.09260028600692749, -0.12819746136665344, -0.2547178864479065, -0.2147117406129837, -0.024781271815299988, 0.05984947830438614, -0.293677419424057, 0.10416688024997711, -0.051280997693538666, -0.32611727714538574, -0.1129007637500763, 0.3657032251358032, 0.05248807370662689, 0.08058004081249237, 0.2111368030309677, 0.299226850271225, 0.13002406060695648, 0.03847449645400047, 0.14022453129291534, -0.20050843060016632, 0.13214340806007385, -0.03260660544037819, -0.40055152773857117, 0.04038836807012558, 0.019865304231643677, -0.01980852335691452, 0.005940981209278107, 0.43561726808547974, -0.004916206933557987, 0.15582245588302612, 0.06896772235631943, 0.03488212078809738, -0.12097489833831787, 0.09793150424957275, 0.012146160006523132, 0.06792571395635605, 0.22951027750968933, 0.09809235483407974, -0.30037909746170044, -0.19962486624717712, 0.21480414271354675, -0.08263299614191055, -0.17594844102859497, 0.045841652899980545, 0.27121227979660034, -0.16573196649551392, -0.014850643463432789, 0.02506907470524311, -0.11292801797389984, -0.01030063908547163, -0.040802549570798874, 0.3777106702327728, -0.1183999627828598, 0.2515929043292999, 0.3486970067024231, 0.0073921773582696915, -0.20080417394638062, -0.15180765092372894, -0.09988915920257568, -0.00009539537131786346, -0.17959479987621307, 0.24725224077701569, 0.3716264069080353, -0.02905062958598137, 0.17826266586780548, -0.06073305010795593, 0.10729685425758362, -0.157645583152771, 0.5114757418632507, -0.21325233578681946, 0.11655284464359283, -0.0030915923416614532, 0.18300217390060425, 0.40086987614631653, 0.2319139540195465, 0.0943761020898819, 0.022821947932243347, 0.023588236421346664, -0.2802012264728546, -0.37508639693260193, 0.008578076958656311, 0.10514520108699799, 0.12370683252811432, 0.13305513560771942, 0.03968718647956848, -0.19552095234394073, 0.3279147148132324, -0.20951072871685028, -0.0007526576519012451, -0.002434283494949341, -0.41690394282341003, -0.2892305552959442, 0.2441188395023346, 0.5860950350761414, -0.41882914304733276, 0.010706253349781036, 0.15817146003246307, 0.11577710509300232, 0.12402859330177307, 0.6433215737342834, -0.3510306775569916, 0.13192009925842285, -0.16178688406944275, -0.17398099601268768, 0.26863041520118713, -0.5118985772132874, -0.31029385328292847, 0.13031037151813507, -0.015741169452667236, 0.17431791126728058, 0.07659244537353516, 0.29131707549095154, 0.07833857834339142, 0.06816232204437256, 0.11490102112293243, 0.4836631417274475, -0.017120352014899254, -0.2183825522661209, -0.17678529024124146, -0.2592070400714874, 0.36004626750946045, -0.10000525414943695, 0.17630428075790405, 0.13007888197898865, 0.054526496678590775, 0.19955943524837494, 0.2683361768722534, -0.15962384641170502, 0.28317558765411377, 0.23138746619224548, 0.17339105904102325, 0.2606775164604187, 0.03329084813594818, 0.017175015062093735, -0.40306389331817627, 0.3302549123764038, -0.24612727761268616, 0.005893487483263016, -0.23330526053905487, -0.323236882686615, -0.19352856278419495, -0.27464428544044495, -0.0030134879052639008, -0.021753661334514618, 0.03678232431411743, 0.24662935733795166, 0.20875945687294006, 0.14490897953510284, 0.2628287672996521, 0.4253350794315338, -0.270368754863739, 0.04579075798392296, -0.3987374007701874, 0.36918479204177856, -0.22552426159381866, 0.01892479509115219, -0.2020830512046814, -0.027125634253025055, 0.3046056628227234, 0.008226810023188591, 0.20961180329322815, 0.04916790872812271, -0.14071698486804962, 0.3016272783279419, 0.020952481776475906, 0.12914595007896423, 0.32722803950309753, -0.34006789326667786, 0.05462250858545303, 0.3461519479751587, 0.35504892468452454, -0.3573246896266937, -0.1212395504117012, 0.08142835646867752, 0.25312015414237976, 0.17747534811496735, -0.07384692132472992, 0.011652769520878792, 0.1081959456205368, -0.007021620869636536, 0.15954910218715668, -0.021556850522756577, 0.1896750032901764, 0.40425604581832886, -0.242696151137352, -0.0646577924489975, -0.2098243236541748, 0.27002760767936707, 0.05608315020799637, 0.19395501911640167, 0.03760088235139847, -0.12233368307352066, 0.05955909192562103, -0.2091471254825592, 0.35000839829444885, -0.32355764508247375, -0.07739143073558807, 0.09559442102909088, 0.3279133141040802, 0.10280875116586685, -0.11009141057729721, -0.16285072267055511, -0.01244615763425827, -0.18161173164844513, 0.2727847695350647, -0.05136214941740036, 0.013319437392055988, -0.09201136976480484, 0.043361932039260864, -0.05538114160299301, 0.39554286003112793, 0.16000786423683167, -0.36009564995765686, 0.13938836753368378, -0.3536381721496582, -0.48454442620277405, 0.1353783756494522, -0.17268188297748566, -0.09694676101207733, -0.30002066493034363, -0.11844272911548615, 0.5529572367668152, 0.23412621021270752, 0.293670654296875, -0.018640097230672836, 0.2825276851654053, 0.24666501581668854, -0.22996468842029572, -0.23268049955368042, -0.3672700822353363, 0.06906460225582123, 0.026399780064821243, 0.3404128849506378, 0.19961893558502197, 0.2153247445821762, -0.1309521645307541, -0.2550795078277588, -0.4913635849952698, -0.08555679768323898, -0.09097842872142792, 0.17330455780029297, 0.19723394513130188, -0.33268946409225464, 0.3490031361579895, -0.0626116394996643, -0.21033349633216858, 0.19828614592552185, -0.07722502201795578, 0.0963691920042038, -0.26575419306755066, -0.25881683826446533, 0.11320673674345016, -0.05670372396707535, -0.3467370867729187, -0.39916637539863586, -0.3085106909275055, -0.04704201966524124, 0.1668824553489685, 0.07262693345546722, -0.06838180869817734, 0.17866313457489014, 0.0022525805979967117, 0.18584926426410675, 0.2069578915834427, -0.36194735765457153, -0.30475807189941406, 0.24335657060146332, -0.13961432874202728, -0.3152448832988739, 0.17565695941448212, 0.11725865304470062, -0.02124476060271263, 0.4711757302284241, -0.4773334860801697, -0.3291170001029968, -0.05741351842880249, 0.3427010476589203, 0.024376103654503822, -0.14686356484889984, 0.3705308139324188, -0.34197720885276794, -0.029272541403770447, 0.08760934323072433, 0.00929303839802742, 0.005517974495887756, -0.3076896667480469, 0.4178675711154938, 0.10144335776567459, 0.3604353070259094, 0.0691400021314621, 0.9451532363891602, 0.12411728501319885, -0.23065350949764252, 0.3185608386993408, -0.10474099963903427, 0.22981439530849457, -0.10361737757921219, -0.1561472862958908, 0.07442352920770645, -0.3390269875526428, 0.2327621728181839, -0.3644363284111023, -0.12785068154335022, -0.27091675996780396, -0.3345794975757599, 0.1986711472272873, -0.3212335705757141, -0.47581911087036133, -0.13831453025341034, -0.21972709894180298, 0.3825995624065399, 0.3686402142047882, -0.012279272079467773, -0.2355509251356125, -0.1893039047718048, 0.09687019884586334, 0.1850915402173996, 0.1408933848142624, 0.14712657034397125, -0.4159780740737915, 0.21126413345336914, -0.34791499376296997, 0.4394702911376953, 0.08353111147880554, 0.10600648820400238, -0.17569679021835327, 0.05947517603635788, 0.10064414888620377, -0.12199070304632187, 0.7283741235733032, -0.31279513239860535, 0.13151240348815918, 0.20716631412506104, -0.28209227323532104, -0.46842318773269653, 0.29663676023483276, 0.012467849999666214, 0.1171652302145958, 0.3558492362499237, -0.08004342019557953, -0.2030177116394043, -0.07691358029842377, -0.3034849762916565, 0.2625689208507538, -0.23903538286685944, 0.13145826756954193, 0.07527658343315125, -0.28078192472457886, -0.6343666911125183, -0.06193164736032486, -0.03077147901058197, 0.20579718053340912, -0.07824009656906128, -0.0400366447865963, -0.2925017476081848, 0.4315604567527771, 0.07500407099723816, -0.018484091386198997, 0.27362650632858276, 0.054887525737285614, 0.20371998846530914, 0.09496790170669556, 0.16742561757564545, 0.1388573944568634, 0.2600414752960205, 0.23617936670780182, -0.048738718032836914, 0.05852985382080078, 0.16075746715068817, -0.4420762360095978, 0.40439552068710327, 0.11651299893856049, 0.3205907344818115, 0.10228525102138519, -0.0798598974943161, -0.22303485870361328, 0.191957026720047, -0.052937157452106476, 0.22602513432502747, -0.3468128740787506, -0.6021741628646851, 0.07377142459154129, 0.13689227402210236, -0.1481114774942398, 0.4638577997684479, 0.13070759177207947, -0.10340847820043564, -0.010093467310070992, 0.13301517069339752, 1.136992335319519, -0.1097070574760437, 0.2494179606437683, 0.05491470545530319, 0.054384686052799225, 0.7935972213745117, -0.3770442605018616, 0.32420802116394043, -0.23235173523426056, 0.14885874092578888, -0.11808505654335022, -0.11008788645267487, 0.13245540857315063, -0.14067837595939636, -0.04858391359448433, 0.19244307279586792, 0.13122156262397766, 0.08812354505062103, -0.11386208236217499, 0.30521875619888306, -0.049561627209186554, -0.1473941206932068, 0.2064676433801651, 0.05887497216463089, -0.03453719615936279, 0.38904762268066406, -0.3410145044326782, 0.22555236518383026, 0.10730054974555969, -0.1429102122783661, -0.18983948230743408, 0.06512752920389175, -0.32226458191871643, 0.5679986476898193, -0.4035384953022003, -0.5870121717453003, 0.0778375118970871, 0.23575180768966675, 0.29540377855300903, 0.06495194882154465, -0.36941608786582947, 0.03183124586939812, -0.33677032589912415, -0.2194247990846634, -0.28018537163734436, -0.10223705321550369, 0.2282085418701172, -0.09314051270484924, -0.49431905150413513, 0.434415727853775, 0.16263598203659058, -0.39017874002456665, -0.13350117206573486, 0.00617603212594986, -0.33753472566604614, -0.06124226748943329, -0.28393393754959106, 0.20130205154418945, -0.17080745100975037, -0.11551116406917572, 0.03721274808049202, -0.05395137518644333, -0.1507023721933365, 0.014087915420532227, 0.1188189834356308, -0.1676085889339447, 0.0437563918530941, 0.6288119554519653, 0.32836854457855225, -0.12682759761810303, 0.4865683317184448, 0.38521498441696167, -0.34511613845825195, -0.08971525728702545, -0.5433732867240906, -0.2771342396736145, -0.44991597533226013, -0.10044076293706894, -0.05991097167134285, 0.25565236806869507, -0.07107319682836533, -0.16187964379787445, 0.11169438064098358, 0.1838756501674652, 0.2296091765165329, -0.41396385431289673, -0.22967371344566345, 0.13535352051258087, -0.22524599730968475, 0.2251090556383133, 0.3666958510875702, -0.06680251657962799, 0.1139819473028183, 0.1445024013519287, -0.2293466031551361, 0.32293838262557983, -0.19818323850631714, 0.25993698835372925, -0.04119843989610672, -0.2617838978767395, -0.025721559301018715, -0.15223892033100128, -0.10322052240371704, 0.10686448961496353, -0.2564241588115692, -0.1204988956451416, -0.019375931471586227, 0.16831962764263153, 0.08621788769960403, -0.3023169934749603, 0.045237477868795395, -0.5413500666618347, 0.18978126347064972, -0.05644002556800842, 0.32832828164100647, 0.25635427236557007, -0.005987592041492462, -0.06565578281879425, 0.14608098566532135, 0.026009421795606613, -0.42610615491867065, 0.2824687361717224, 0.17896834015846252, 0.07378856092691422, 0.2832489013671875, 0.1818431317806244, 0.018247026950120926, 0.09274345636367798, -0.3297591805458069, 0.060694534331560135, 0.35528087615966797, -0.1543051302433014, 0.3506971597671509, -0.164005309343338, -0.10876509547233582, -0.017438653856515884, 0.18310946226119995, 0.07155854254961014, -0.17041845619678497, 0.2969178259372711, 0.00395783269777894, 0.0945935919880867, -0.21853496134281158, 0.15255196392536163, 0.2713686525821686, -0.1579952836036682, 0.05032002553343773, 0.11342141032218933, 0.48631176352500916, 0.011419646441936493, 0.25742360949516296, 0.17712998390197754, 0.362030029296875, -0.2516760230064392, 0.215389221906662, -0.16475535929203033, 0.018075738102197647, -0.1410151720046997, 0.14268271625041962, 0.40298667550086975, 0.06527739018201828, 0.10332830995321274, -0.14586159586906433, 0.32200467586517334, -0.12250091880559921, 0.3613240122795105, -0.16961336135864258, -0.4061294496059418, -0.08811916410923004, 0.03522365540266037, -0.2489660680294037, -0.016379818320274353, -0.2956753075122833, -0.13046017289161682, 0.17379502952098846, -0.22612839937210083, -0.04012726992368698, 0.4048241972923279, -0.26873040199279785, -0.28276729583740234, -0.33523258566856384, -0.34634438157081604, 0.17843955755233765, -0.042982447892427444, 0.21535265445709229, -0.33094900846481323, 0.2442256510257721, 0.046665921807289124, -0.40387916564941406, -0.30883267521858215, 0.3640610873699188, -0.003633987158536911, 0.10839428752660751, -0.048248447477817535, 0.05218803137540817, 0.13865697383880615, -0.28490132093429565, -0.08898526430130005, 0.30528518557548523, 0.43537256121635437, 0.08989113569259644, -0.19280822575092316, 0.5962461829185486, 0.19440095126628876, 0.0021680202335119247, -0.13040465116500854, 0.06472194194793701, 0.4124221205711365, -0.02040257677435875, 0.20852713286876678, 0.13001899421215057, -0.09246261417865753, -0.042147185653448105, 0.1148761659860611, 0.4866257905960083, -0.37338167428970337, 0.2650316655635834, -0.17986318469047546, -0.06898768991231918, -0.09017204493284225, 0.2335721254348755, -0.28671783208847046, 0.28851744532585144, 0.6113156676292419, -0.06391501426696777, 0.14861825108528137, -0.14381207525730133, 0.018684767186641693, -0.29012319445610046, 0.4194197654724121, 0.11105483025312424, 0.3019729256629944, -0.3612964451313019, -0.1454017162322998, -0.4733639359474182, 0.20392093062400818, -0.46689295768737793, 0.05939831584692001, -0.05800271034240723, 0.42891135811805725, 0.06490440666675568, 0.1286659985780716, -0.1016300767660141, -0.049796998500823975, 0.10850997269153595, 0.10720035433769226, -0.2101537138223648, -0.2865599989891052, -0.3860238790512085, -0.02870398573577404, -0.06048174947500229, -0.47267213463783264, 0.08914351463317871, 0.06319969147443771, -0.047504931688308716, -0.07833848893642426, -0.15577909350395203, 0.1945839375257492, 0.20420759916305542, 0.48465654253959656, 0.16912072896957397, 0.633002519607544, 0.2342398464679718, 0.09235087782144547, -0.24784380197525024, -0.39684340357780457, 0.07410767674446106, 0.10582967847585678, 0.18680286407470703, 0.047878481447696686, -0.5410246253013611, -0.2097579389810562, -0.2871943712234497, 0.3450891375541687, -0.0004357658326625824, -0.12662950158119202, -0.08141744881868362, -0.25561976432800293, -0.18392077088356018, 0.21472173929214478, 0.11970594525337219, 0.3353785276412964, 0.007009685039520264, 0.25917884707450867, -0.27000290155410767, -0.19047628343105316, 0.7102391123771667, -0.13479281961917877, -0.10524734854698181, -0.32974040508270264, 0.07636737078428268, 0.10474897921085358, -0.003194417804479599, -0.3488743305206299, 0.0254376083612442, 0.2682199776172638, -0.18377983570098877, -0.11110198497772217, 0.02811836451292038, -0.21834143996238708, 0.1376703530550003, -0.2694946825504303, 0.06911969929933548, 0.01821240410208702, -0.22715620696544647, -0.35231712460517883, -0.2803575396537781 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Which version of pyarrow do you have ? Could you try to update pyarrow and try again ?
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
18
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? Which version of pyarrow do you have ? Could you try to update pyarrow and try again ?
[ -0.2411831170320511, -0.319865345954895, -0.06815589964389801, 0.4316070079803467, 0.36252546310424805, 0.019154861569404602, 0.5210210084915161, 0.43771302700042725, 0.29491275548934937, 0.032775163650512695, 0.016962695866823196, -0.11870503425598145, 0.09059164673089981, 0.18028973042964935, 0.03506602719426155, 0.11300927400588989, 0.07302826642990112, 0.3988213837146759, 0.03172004967927933, 0.06997212767601013, -0.21886035799980164, 0.12086943536996841, 0.0058676376938819885, 0.05751488357782364, -0.12442260980606079, 0.07236414402723312, -0.00820845365524292, 0.11691468954086304, -0.23435144126415253, -0.4013204574584961, 0.41972312331199646, 0.07845443487167358, 0.33285048604011536, 0.5207664966583252, -0.00011690515384543687, 0.15647360682487488, 0.2654483914375305, -0.18562574684619904, -0.044199466705322266, -0.5195807218551636, 0.030129767954349518, -0.5329576730728149, 0.2776658535003662, -0.1672024428844452, -0.014489179477095604, -0.17868046462535858, -0.11099937558174133, -0.03580589219927788, 0.30141258239746094, 0.3175452947616577, 0.1804957389831543, -0.2607496976852417, 0.05989224836230278, -0.010018667206168175, 0.20529240369796753, 0.037178885191679, -0.015685752034187317, 0.41754746437072754, 0.11739545315504074, -0.1267610639333725, -0.04873094707727432, -0.19366738200187683, -0.2392432987689972, 0.35819900035858154, 0.31963518261909485, 0.13993971049785614, 0.07096700370311737, -0.1089666336774826, 0.2680702805519104, 0.1055053249001503, 0.6067357659339905, -0.3076421618461609, -0.14854715764522552, -0.015400387346744537, -0.020296946167945862, -0.4886515736579895, 0.2558155953884125, 0.40449440479278564, -0.15216007828712463, 0.11733308434486389, -0.21221239864826202, 0.24844670295715332, -0.2663930058479309, 0.2028616964817047, -0.06734703481197357, -0.35319048166275024, -0.2522073984146118, 0.2693184018135071, 0.2523401975631714, 0.07374778389930725, 0.33364003896713257, -0.09374982118606567, 0.026853669434785843, 0.18069645762443542, -0.5556496381759644, 0.279649555683136, -0.11766041070222855, -0.09043673425912857, 0.16374057531356812, 0.0962190255522728, 0.40142199397087097, 0.13706214725971222, 0.04234509542584419, 0.19469785690307617, 0.31912994384765625, 0.18613311648368835, -0.0428147092461586, 0.06910490989685059, 0.027385514229536057, 0.34621739387512207, -0.2297833263874054, -0.2338581681251526, -0.38813719153404236, -0.504957914352417, 0.23814241588115692, -0.1538381278514862, 0.2674439549446106, -0.2704332172870636, -0.24793283641338348, -0.09601990878582001, -0.036132387816905975, -0.009422952309250832, -0.05283479019999504, 0.5738205909729004, 0.21583428978919983, 0.38020431995391846, -0.05420989543199539, 0.25720924139022827, -0.21127575635910034, -0.09865451604127884, -0.08035243302583694, 0.020115850493311882, -0.05760239064693451, 0.05229145288467407, 0.3777484893798828, -0.21668820083141327, 0.12146066874265671, 0.1762952357530594, -0.043516337871551514, -0.2938743233680725, -0.1455058455467224, -0.4177221357822418, 0.03672413155436516, 0.2833082675933838, 0.2024739384651184, 0.09795275330543518, 0.2341529130935669, -0.2812092900276184, -0.060687921941280365, 0.380541056394577, -0.2301194965839386, -0.16856931149959564, 0.09726409614086151, 0.09630241990089417, -0.06611718237400055, 0.16567839682102203, -0.39563167095184326, 0.15635129809379578, 0.3519502580165863, -0.4384937584400177, 0.033467844128608704, -0.21348431706428528, -0.24112345278263092, -0.35248106718063354, 0.20189036428928375, 0.2790597677230835, -0.785466730594635, 0.3429478108882904, 0.05390669032931328, -0.03174859285354614, 0.11499913036823273, 0.4237147271633148, -0.14831720292568207, 0.061177998781204224, -0.2709868550300598, 0.09215261042118073, 0.14062385261058807, 0.007543109357357025, -0.629366934299469, 0.33075642585754395, -0.04602794349193573, 0.08954580873250961, 0.31206458806991577, 0.06455278396606445, 0.05121501162648201, 0.08917737752199173, -0.10802222788333893, 0.018553880974650383, 0.023134589195251465, 0.0440056174993515, -0.2607477307319641, -0.12919245660305023, 0.31875085830688477, 0.142624631524086, -0.06477391719818115, -0.06767282634973526, 0.23888924717903137, -0.408738911151886, 0.20254525542259216, -0.01808762177824974, 0.14161603152751923, 0.17524731159210205, 0.17913173139095306, -0.1968240886926651, 0.034974098205566406, 0.01043354719877243, -0.44934940338134766, 0.14338240027427673, 0.2848805785179138, -0.16870121657848358, -0.21594424545764923, -0.07973095774650574, -0.38411810994148254, -0.029700713232159615, -0.2681601941585541, -0.12419965863227844, -0.024652723222970963, 0.0725153237581253, 0.05951985344290733, -0.14405347406864166, -0.1857398897409439, 0.11611927300691605, -0.22377678751945496, -0.011276012286543846, -0.01584358885884285, 0.1422192007303238, 0.05879932641983032, -0.12498876452445984, 0.10647206008434296, -0.06290075927972794, 0.20716780424118042, -0.04833386465907097, -0.2763521075248718, 0.24959132075309753, 0.1456867754459381, 0.045615311712026596, -0.2857957184314728, -0.17478762567043304, 0.08302010595798492, -0.2415052205324173, -0.08720072358846664, 0.023738399147987366, 0.36637139320373535, -0.1825467050075531, -0.33928054571151733, 0.2706235647201538, -0.15670067071914673, 0.3015138804912567, 0.18797563016414642, -0.35807162523269653, 0.30650147795677185, 0.016720425337553024, 0.17819397151470184, 0.07049177587032318, 0.1380857676267624, 0.07365468889474869, 0.4947434663772583, 0.2995409071445465, -0.09684166312217712, -0.1562499701976776, 0.5009899139404297, -0.04704403504729271, -0.21856340765953064, 0.31125932931900024, -0.11817748099565506, -0.19453522562980652, 0.06843123584985733, 0.08874505758285522, 0.3798213005065918, 0.12937648594379425, -0.19153094291687012, 0.014664222486317158, 0.14350274205207825, -0.2500297427177429, 0.12040601670742035, -0.22043462097644806, 0.14736174046993256, 0.3965649902820587, 0.12700989842414856, -0.12728585302829742, -0.1951441466808319, 0.03774373605847359, 0.08758541196584702, 0.325723260641098, -0.411955863237381, -0.0675453171133995, -0.07345385104417801, -0.00520581379532814, -0.18028488755226135, 0.09860352426767349, -0.05557971075177193, 0.0971231609582901, -0.39961129426956177, 0.33282411098480225, 0.2897822856903076, -0.0790664404630661, -0.24312610924243927, 0.08863416314125061, 0.21581275761127472, -0.33705583214759827, -0.003460582345724106, -0.048990845680236816, -0.29193973541259766, -0.026176592335104942, 0.33070987462997437, 0.10981905460357666, -0.0008767265826463699, -0.021765828132629395, 0.02802533656358719, -0.05484504997730255, -0.09253303706645966, -0.04392474889755249, -0.07322954386472702, 0.020921867340803146, -0.05116620659828186, 0.4193308353424072, 0.007607895880937576, -0.14463084936141968, 0.4017484784126282, -0.2536608874797821, -0.048924874514341354, 0.3501361012458801, 0.06369287520647049, -0.09587976336479187, -0.1087074726819992, -0.3498893082141876, -0.13988791406154633, -0.4293373227119446, 0.3910629153251648, 0.08475556969642639, 0.04193168133497238, 0.092631496489048, 0.4331052601337433, -0.026084762066602707, 0.3013547956943512, -0.031216470524668694, -0.08480477333068848, -0.297705739736557, 0.36457401514053345, -0.05611623451113701, -0.4676564633846283, 0.011941570788621902, 0.08283552527427673, 0.35919028520584106, 0.16382724046707153, -0.4252471923828125, 0.3267475664615631, -0.15090760588645935, 0.16282014548778534, 0.0011047571897506714, -0.024227259680628777, 0.06095484271645546, -0.08722764253616333, -0.0218233410269022, 0.03643060475587845, -0.24171605706214905, -0.014179997146129608, -0.03204439580440521, 0.14758382737636566, 0.05136857554316521, 0.45842885971069336, -0.03719261288642883, 0.6513363122940063, 0.08746397495269775, -0.08823134005069733, 0.4855554699897766, -0.3082401156425476, 0.3818775415420532, -0.2096707820892334, -0.3737452030181885, -0.08557458966970444, -0.3519814908504486, -0.19244661927223206, 0.26774847507476807, -0.03358374536037445, -0.03341459482908249, -0.12577567994594574, 0.003518354147672653, -0.4046856760978699, -0.03770304471254349, 0.18363235890865326, 0.030696583911776543, -0.01483028382062912, -0.10059572756290436, -0.013301469385623932, -0.011646009981632233, -0.237362802028656, -0.19425834715366364, 0.2739641070365906, -0.15134218335151672, 0.06338702142238617, -0.22424794733524323, -0.061580441892147064, -0.302937388420105, 0.3292050361633301, -0.013623456470668316, 0.3102864623069763, 0.010614890605211258, -0.017695296555757523, 0.09729659557342529, -0.12522228062152863, 0.7449787855148315, 0.1892857849597931, -0.1550699919462204, 0.1278296411037445, -0.024113940075039864, -0.4415837228298187, -0.12176112830638885, 0.19063140451908112, 0.30733585357666016, 0.07446150481700897, 0.35486558079719543, -0.07032592594623566, -0.00969347171485424, -0.14434337615966797, 0.35467857122421265, 0.043252650648355484, -0.3951281011104584, -0.5194918513298035, -0.23497897386550903, -0.3830536901950836, -0.2121351957321167, -0.08986641466617584, 0.28827884793281555, -0.32440733909606934, -0.14238688349723816, 0.11836159974336624, -0.29905399680137634, 0.06015683338046074, 0.15338079631328583, 0.2973896265029907, -0.11291459202766418, 0.14489613473415375, 0.04683535173535347, 0.0698045939207077, 0.37691158056259155, 0.7987189292907715, -0.07857607305049896, -0.622077226638794, 0.08484327793121338, -0.20502634346485138, 0.38534826040267944, 0.04782029241323471, -0.20320527255535126, 0.12898661196231842, 0.09073472023010254, 0.06203401833772659, 0.037947990000247955, 0.014437409117817879, 0.3036859929561615, 0.04965509474277496, -0.3454539477825165, -0.5439224243164062, 0.4874184727668762, -0.12590846419334412, 0.2102593034505844, 0.3020800054073334, -0.21199996769428253, -0.10998106747865677, 0.1555226892232895, -0.3346247375011444, 0.6592135429382324, -0.42182987928390503, 0.19383063912391663, 0.3073362112045288, 0.05633615702390671, 0.25842905044555664, -0.44519680738449097, 0.1323070526123047, -0.39196813106536865, -0.2109036147594452, -0.10431202501058578, -0.0712030678987503, 0.239385724067688, 0.4321900010108948, -0.12124530971050262, 0.31186360120773315, -0.07415001839399338, 0.3325560986995697, 0.11313378065824509, 0.24382546544075012, -0.1005159318447113, -0.08646830916404724, -0.30102071166038513, 0.01042373850941658, -0.14308081567287445, -0.034952130168676376, 0.028959106653928757, 0.054464343935251236, -0.18056756258010864, -0.20164568722248077, -0.24611249566078186, 0.2200247049331665, -0.2911674380302429, 0.11540494114160538, -0.11095491051673889, -0.46866488456726074, 0.1963643580675125, 0.23806700110435486, -0.20870287716388702, -0.08517903089523315, -0.12408511340618134, 0.15505348145961761, 0.1596348136663437, -0.040175680071115494, -0.20837441086769104, -0.053695619106292725, -0.015885574743151665, 0.0761261060833931, -0.2351241409778595, 0.1545509696006775, -0.12227920442819595, -0.09567444026470184, 0.2780734896659851, 0.23765741288661957, -0.08480723202228546, -0.5452086925506592, -0.532619833946228, -0.4284158945083618, 0.07598119974136353, -0.1957322657108307, 0.06519807875156403, -0.04207879304885864, 0.09834162145853043, -0.16163542866706848, 0.18593519926071167, -0.46886953711509705, -0.10202698409557343, 0.3918125033378601, -0.1116865798830986, 0.09395454823970795, 0.5907300710678101, 0.21935035288333893, -0.01689293049275875, -0.14115241169929504, 0.06424085050821304, 0.3081057369709015, -0.35318857431411743, 0.1170663833618164, 0.11414909362792969, 0.3159496784210205, 0.13925288617610931, 0.2917450964450836, 0.15658080577850342, -0.07767295092344284, 0.07445482909679413, -0.5115907192230225, -0.3249691426753998, -0.016528956592082977, -0.0015316978096961975, 0.24795787036418915, 0.16721880435943604, 0.08186677098274231, 0.17267775535583496, 0.2032964527606964, -0.1562301516532898, 0.1004621610045433, 0.10592921823263168, -0.08695743978023529, 0.21063311398029327, 0.1420162469148636, -0.13387268781661987, -0.1038191169500351, 0.09349779039621353, 0.17764052748680115, -0.05344494432210922, -0.1887509524822235, -0.07985582947731018, 0.15010015666484833, 0.09836078435182571, 0.023286115378141403, -0.2034451961517334, -0.2526891231536865, -0.14970649778842926, -0.19280517101287842, 0.06640926003456116, 0.029782593250274658, -0.09811189770698547, 0.07176020741462708, -0.2987653613090515, -0.08465392142534256, -0.5091862678527832, 0.027121789753437042, -0.5075385570526123, 0.22313250601291656, 0.2992691397666931, 0.04858259856700897, 0.12175723165273666, 0.2004556655883789, -0.1724264919757843, -0.03115798532962799, 0.1516263484954834, -0.13661956787109375, 0.30094656348228455, -0.40147536993026733, 0.2035067230463028, -0.05106562376022339, 0.34033772349357605, 0.4848606288433075, -0.2076413631439209, 0.2197113186120987, 0.03758600354194641, 0.13411511480808258, -0.3825286030769348, 0.27547687292099, 0.11723117530345917, -0.06162983924150467, -0.027484487742185593, 0.1696750521659851, 0.19921168684959412, -0.20830711722373962, -0.09577685594558716, 0.00691063329577446, 0.4759885370731354, -0.007822543382644653, -0.03395107015967369, 0.4135631322860718, 0.002714499831199646, 0.17896948754787445, 0.2403348684310913, 0.135637566447258, 0.01962074637413025, 0.7002614736557007, -0.26022869348526, -0.003964830189943314, -0.23526856303215027, 0.3014821410179138, -0.3278696537017822, -0.7641027569770813, 0.16166481375694275, 0.2355506718158722, -0.35331013798713684, -0.16765114665031433, 0.12589791417121887, 0.6017505526542664, -0.023375172168016434, 0.011492801830172539, -0.11459315568208694, -0.044835399836301804, 0.014055008068680763, 0.048389777541160583, -0.06621351093053818, -0.25367075204849243, -0.07082390040159225, 0.18568317592144012, -0.059555534273386, 0.01455974206328392, 0.2749812602996826, 0.18766385316848755, -0.1494835466146469, -0.4457589387893677, 0.06577509641647339, 0.17284920811653137, 0.0665423721075058, -0.27483880519866943, 0.3666118383407593, 0.2653486728668213, -0.0859917402267456, 0.1805054098367691, -0.0413447842001915, 0.6402474045753479, 0.504191517829895, 0.09241169691085815, -0.06174042448401451, -0.12157170474529266, -0.11399092525243759, -0.17941808700561523, 0.17781716585159302, 0.34881794452667236, 0.4212689697742462, 0.14854425191879272, 0.11359825730323792, -0.040185242891311646, 0.31608846783638, 0.20678915083408356, 0.09960100054740906, -0.5459765195846558, -0.1189197525382042, -0.20831163227558136, -0.2577386796474457, -0.22663316130638123, 0.024151824414730072, -0.28905951976776123, 0.020943306386470795, 0.4277473986148834, 0.07391566038131714, 0.27722686529159546, -0.02682255581021309, 0.034567490220069885, 0.07433385401964188, 0.3142198920249939, 0.2397761195898056, 0.40228989720344543, -0.4218081533908844, -0.03541836142539978, -0.7509752511978149, 0.11652792245149612, -0.3764895796775818, 0.00959269143640995, -0.03185897693037987, 0.15853829681873322, 0.1377418488264084, 0.08386078476905823, 0.15917232632637024, 0.29942384362220764, 0.11672317236661911, 0.2220778465270996, -0.05618421733379364, -0.18462048470973969, -0.33807069063186646, 0.02648555114865303, -0.17509248852729797, -0.46551430225372314, 0.22135992348194122, -0.1279323399066925, 0.009210947901010513, -0.22518602013587952, 0.22398850321769714, 0.255967378616333, -0.0059869736433029175, 0.47772929072380066, -0.11201165616512299, 0.6255968809127808, -0.08501801639795303, 0.3190016448497772, -0.3009392023086548, -0.0801897868514061, -0.19280588626861572, 0.5200988054275513, 0.2061503380537033, 0.2713996171951294, -0.1779927909374237, -0.10791616141796112, -0.21530425548553467, 0.15741008520126343, -0.006548143923282623, -0.07054738700389862, 0.0667274221777916, -0.1510603129863739, -0.0018242709338665009, -0.05849042534828186, 0.15223149955272675, 0.09204801917076111, -0.22293895483016968, -0.07817313820123672, -0.1745537519454956, -0.18018533289432526, 0.1810823678970337, -0.40432873368263245, -0.3411034047603607, 0.1487179398536682, 0.12612642347812653, 0.10186608880758286, 0.1396922618150711, -0.45242106914520264, 0.12178962677717209, 0.42447495460510254, -0.12801724672317505, -0.41742584109306335, 0.13403187692165375, -0.21161901950836182, 0.10057024657726288, -0.12185277044773102, 0.4765018820762634, 0.14110934734344482, -0.3705090880393982, -0.16157196462154388, -0.3583213686943054 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Thanks for the fast response. I have the latest version '2.0.0' (I tried to update) I am working with Python 3.8.5
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
21
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? Thanks for the fast response. I have the latest version '2.0.0' (I tried to update) I am working with Python 3.8.5
[ -0.2411831170320511, -0.319865345954895, -0.06815589964389801, 0.4316070079803467, 0.36252546310424805, 0.019154861569404602, 0.5210210084915161, 0.43771302700042725, 0.29491275548934937, 0.032775163650512695, 0.016962695866823196, -0.11870503425598145, 0.09059164673089981, 0.18028973042964935, 0.03506602719426155, 0.11300927400588989, 0.07302826642990112, 0.3988213837146759, 0.03172004967927933, 0.06997212767601013, -0.21886035799980164, 0.12086943536996841, 0.0058676376938819885, 0.05751488357782364, -0.12442260980606079, 0.07236414402723312, -0.00820845365524292, 0.11691468954086304, -0.23435144126415253, -0.4013204574584961, 0.41972312331199646, 0.07845443487167358, 0.33285048604011536, 0.5207664966583252, -0.00011690515384543687, 0.15647360682487488, 0.2654483914375305, -0.18562574684619904, -0.044199466705322266, -0.5195807218551636, 0.030129767954349518, -0.5329576730728149, 0.2776658535003662, -0.1672024428844452, -0.014489179477095604, -0.17868046462535858, -0.11099937558174133, -0.03580589219927788, 0.30141258239746094, 0.3175452947616577, 0.1804957389831543, -0.2607496976852417, 0.05989224836230278, -0.010018667206168175, 0.20529240369796753, 0.037178885191679, -0.015685752034187317, 0.41754746437072754, 0.11739545315504074, -0.1267610639333725, -0.04873094707727432, -0.19366738200187683, -0.2392432987689972, 0.35819900035858154, 0.31963518261909485, 0.13993971049785614, 0.07096700370311737, -0.1089666336774826, 0.2680702805519104, 0.1055053249001503, 0.6067357659339905, -0.3076421618461609, -0.14854715764522552, -0.015400387346744537, -0.020296946167945862, -0.4886515736579895, 0.2558155953884125, 0.40449440479278564, -0.15216007828712463, 0.11733308434486389, -0.21221239864826202, 0.24844670295715332, -0.2663930058479309, 0.2028616964817047, -0.06734703481197357, -0.35319048166275024, -0.2522073984146118, 0.2693184018135071, 0.2523401975631714, 0.07374778389930725, 0.33364003896713257, -0.09374982118606567, 0.026853669434785843, 0.18069645762443542, -0.5556496381759644, 0.279649555683136, -0.11766041070222855, -0.09043673425912857, 0.16374057531356812, 0.0962190255522728, 0.40142199397087097, 0.13706214725971222, 0.04234509542584419, 0.19469785690307617, 0.31912994384765625, 0.18613311648368835, -0.0428147092461586, 0.06910490989685059, 0.027385514229536057, 0.34621739387512207, -0.2297833263874054, -0.2338581681251526, -0.38813719153404236, -0.504957914352417, 0.23814241588115692, -0.1538381278514862, 0.2674439549446106, -0.2704332172870636, -0.24793283641338348, -0.09601990878582001, -0.036132387816905975, -0.009422952309250832, -0.05283479019999504, 0.5738205909729004, 0.21583428978919983, 0.38020431995391846, -0.05420989543199539, 0.25720924139022827, -0.21127575635910034, -0.09865451604127884, -0.08035243302583694, 0.020115850493311882, -0.05760239064693451, 0.05229145288467407, 0.3777484893798828, -0.21668820083141327, 0.12146066874265671, 0.1762952357530594, -0.043516337871551514, -0.2938743233680725, -0.1455058455467224, -0.4177221357822418, 0.03672413155436516, 0.2833082675933838, 0.2024739384651184, 0.09795275330543518, 0.2341529130935669, -0.2812092900276184, -0.060687921941280365, 0.380541056394577, -0.2301194965839386, -0.16856931149959564, 0.09726409614086151, 0.09630241990089417, -0.06611718237400055, 0.16567839682102203, -0.39563167095184326, 0.15635129809379578, 0.3519502580165863, -0.4384937584400177, 0.033467844128608704, -0.21348431706428528, -0.24112345278263092, -0.35248106718063354, 0.20189036428928375, 0.2790597677230835, -0.785466730594635, 0.3429478108882904, 0.05390669032931328, -0.03174859285354614, 0.11499913036823273, 0.4237147271633148, -0.14831720292568207, 0.061177998781204224, -0.2709868550300598, 0.09215261042118073, 0.14062385261058807, 0.007543109357357025, -0.629366934299469, 0.33075642585754395, -0.04602794349193573, 0.08954580873250961, 0.31206458806991577, 0.06455278396606445, 0.05121501162648201, 0.08917737752199173, -0.10802222788333893, 0.018553880974650383, 0.023134589195251465, 0.0440056174993515, -0.2607477307319641, -0.12919245660305023, 0.31875085830688477, 0.142624631524086, -0.06477391719818115, -0.06767282634973526, 0.23888924717903137, -0.408738911151886, 0.20254525542259216, -0.01808762177824974, 0.14161603152751923, 0.17524731159210205, 0.17913173139095306, -0.1968240886926651, 0.034974098205566406, 0.01043354719877243, -0.44934940338134766, 0.14338240027427673, 0.2848805785179138, -0.16870121657848358, -0.21594424545764923, -0.07973095774650574, -0.38411810994148254, -0.029700713232159615, -0.2681601941585541, -0.12419965863227844, -0.024652723222970963, 0.0725153237581253, 0.05951985344290733, -0.14405347406864166, -0.1857398897409439, 0.11611927300691605, -0.22377678751945496, -0.011276012286543846, -0.01584358885884285, 0.1422192007303238, 0.05879932641983032, -0.12498876452445984, 0.10647206008434296, -0.06290075927972794, 0.20716780424118042, -0.04833386465907097, -0.2763521075248718, 0.24959132075309753, 0.1456867754459381, 0.045615311712026596, -0.2857957184314728, -0.17478762567043304, 0.08302010595798492, -0.2415052205324173, -0.08720072358846664, 0.023738399147987366, 0.36637139320373535, -0.1825467050075531, -0.33928054571151733, 0.2706235647201538, -0.15670067071914673, 0.3015138804912567, 0.18797563016414642, -0.35807162523269653, 0.30650147795677185, 0.016720425337553024, 0.17819397151470184, 0.07049177587032318, 0.1380857676267624, 0.07365468889474869, 0.4947434663772583, 0.2995409071445465, -0.09684166312217712, -0.1562499701976776, 0.5009899139404297, -0.04704403504729271, -0.21856340765953064, 0.31125932931900024, -0.11817748099565506, -0.19453522562980652, 0.06843123584985733, 0.08874505758285522, 0.3798213005065918, 0.12937648594379425, -0.19153094291687012, 0.014664222486317158, 0.14350274205207825, -0.2500297427177429, 0.12040601670742035, -0.22043462097644806, 0.14736174046993256, 0.3965649902820587, 0.12700989842414856, -0.12728585302829742, -0.1951441466808319, 0.03774373605847359, 0.08758541196584702, 0.325723260641098, -0.411955863237381, -0.0675453171133995, -0.07345385104417801, -0.00520581379532814, -0.18028488755226135, 0.09860352426767349, -0.05557971075177193, 0.0971231609582901, -0.39961129426956177, 0.33282411098480225, 0.2897822856903076, -0.0790664404630661, -0.24312610924243927, 0.08863416314125061, 0.21581275761127472, -0.33705583214759827, -0.003460582345724106, -0.048990845680236816, -0.29193973541259766, -0.026176592335104942, 0.33070987462997437, 0.10981905460357666, -0.0008767265826463699, -0.021765828132629395, 0.02802533656358719, -0.05484504997730255, -0.09253303706645966, -0.04392474889755249, -0.07322954386472702, 0.020921867340803146, -0.05116620659828186, 0.4193308353424072, 0.007607895880937576, -0.14463084936141968, 0.4017484784126282, -0.2536608874797821, -0.048924874514341354, 0.3501361012458801, 0.06369287520647049, -0.09587976336479187, -0.1087074726819992, -0.3498893082141876, -0.13988791406154633, -0.4293373227119446, 0.3910629153251648, 0.08475556969642639, 0.04193168133497238, 0.092631496489048, 0.4331052601337433, -0.026084762066602707, 0.3013547956943512, -0.031216470524668694, -0.08480477333068848, -0.297705739736557, 0.36457401514053345, -0.05611623451113701, -0.4676564633846283, 0.011941570788621902, 0.08283552527427673, 0.35919028520584106, 0.16382724046707153, -0.4252471923828125, 0.3267475664615631, -0.15090760588645935, 0.16282014548778534, 0.0011047571897506714, -0.024227259680628777, 0.06095484271645546, -0.08722764253616333, -0.0218233410269022, 0.03643060475587845, -0.24171605706214905, -0.014179997146129608, -0.03204439580440521, 0.14758382737636566, 0.05136857554316521, 0.45842885971069336, -0.03719261288642883, 0.6513363122940063, 0.08746397495269775, -0.08823134005069733, 0.4855554699897766, -0.3082401156425476, 0.3818775415420532, -0.2096707820892334, -0.3737452030181885, -0.08557458966970444, -0.3519814908504486, -0.19244661927223206, 0.26774847507476807, -0.03358374536037445, -0.03341459482908249, -0.12577567994594574, 0.003518354147672653, -0.4046856760978699, -0.03770304471254349, 0.18363235890865326, 0.030696583911776543, -0.01483028382062912, -0.10059572756290436, -0.013301469385623932, -0.011646009981632233, -0.237362802028656, -0.19425834715366364, 0.2739641070365906, -0.15134218335151672, 0.06338702142238617, -0.22424794733524323, -0.061580441892147064, -0.302937388420105, 0.3292050361633301, -0.013623456470668316, 0.3102864623069763, 0.010614890605211258, -0.017695296555757523, 0.09729659557342529, -0.12522228062152863, 0.7449787855148315, 0.1892857849597931, -0.1550699919462204, 0.1278296411037445, -0.024113940075039864, -0.4415837228298187, -0.12176112830638885, 0.19063140451908112, 0.30733585357666016, 0.07446150481700897, 0.35486558079719543, -0.07032592594623566, -0.00969347171485424, -0.14434337615966797, 0.35467857122421265, 0.043252650648355484, -0.3951281011104584, -0.5194918513298035, -0.23497897386550903, -0.3830536901950836, -0.2121351957321167, -0.08986641466617584, 0.28827884793281555, -0.32440733909606934, -0.14238688349723816, 0.11836159974336624, -0.29905399680137634, 0.06015683338046074, 0.15338079631328583, 0.2973896265029907, -0.11291459202766418, 0.14489613473415375, 0.04683535173535347, 0.0698045939207077, 0.37691158056259155, 0.7987189292907715, -0.07857607305049896, -0.622077226638794, 0.08484327793121338, -0.20502634346485138, 0.38534826040267944, 0.04782029241323471, -0.20320527255535126, 0.12898661196231842, 0.09073472023010254, 0.06203401833772659, 0.037947990000247955, 0.014437409117817879, 0.3036859929561615, 0.04965509474277496, -0.3454539477825165, -0.5439224243164062, 0.4874184727668762, -0.12590846419334412, 0.2102593034505844, 0.3020800054073334, -0.21199996769428253, -0.10998106747865677, 0.1555226892232895, -0.3346247375011444, 0.6592135429382324, -0.42182987928390503, 0.19383063912391663, 0.3073362112045288, 0.05633615702390671, 0.25842905044555664, -0.44519680738449097, 0.1323070526123047, -0.39196813106536865, -0.2109036147594452, -0.10431202501058578, -0.0712030678987503, 0.239385724067688, 0.4321900010108948, -0.12124530971050262, 0.31186360120773315, -0.07415001839399338, 0.3325560986995697, 0.11313378065824509, 0.24382546544075012, -0.1005159318447113, -0.08646830916404724, -0.30102071166038513, 0.01042373850941658, -0.14308081567287445, -0.034952130168676376, 0.028959106653928757, 0.054464343935251236, -0.18056756258010864, -0.20164568722248077, -0.24611249566078186, 0.2200247049331665, -0.2911674380302429, 0.11540494114160538, -0.11095491051673889, -0.46866488456726074, 0.1963643580675125, 0.23806700110435486, -0.20870287716388702, -0.08517903089523315, -0.12408511340618134, 0.15505348145961761, 0.1596348136663437, -0.040175680071115494, -0.20837441086769104, -0.053695619106292725, -0.015885574743151665, 0.0761261060833931, -0.2351241409778595, 0.1545509696006775, -0.12227920442819595, -0.09567444026470184, 0.2780734896659851, 0.23765741288661957, -0.08480723202228546, -0.5452086925506592, -0.532619833946228, -0.4284158945083618, 0.07598119974136353, -0.1957322657108307, 0.06519807875156403, -0.04207879304885864, 0.09834162145853043, -0.16163542866706848, 0.18593519926071167, -0.46886953711509705, -0.10202698409557343, 0.3918125033378601, -0.1116865798830986, 0.09395454823970795, 0.5907300710678101, 0.21935035288333893, -0.01689293049275875, -0.14115241169929504, 0.06424085050821304, 0.3081057369709015, -0.35318857431411743, 0.1170663833618164, 0.11414909362792969, 0.3159496784210205, 0.13925288617610931, 0.2917450964450836, 0.15658080577850342, -0.07767295092344284, 0.07445482909679413, -0.5115907192230225, -0.3249691426753998, -0.016528956592082977, -0.0015316978096961975, 0.24795787036418915, 0.16721880435943604, 0.08186677098274231, 0.17267775535583496, 0.2032964527606964, -0.1562301516532898, 0.1004621610045433, 0.10592921823263168, -0.08695743978023529, 0.21063311398029327, 0.1420162469148636, -0.13387268781661987, -0.1038191169500351, 0.09349779039621353, 0.17764052748680115, -0.05344494432210922, -0.1887509524822235, -0.07985582947731018, 0.15010015666484833, 0.09836078435182571, 0.023286115378141403, -0.2034451961517334, -0.2526891231536865, -0.14970649778842926, -0.19280517101287842, 0.06640926003456116, 0.029782593250274658, -0.09811189770698547, 0.07176020741462708, -0.2987653613090515, -0.08465392142534256, -0.5091862678527832, 0.027121789753437042, -0.5075385570526123, 0.22313250601291656, 0.2992691397666931, 0.04858259856700897, 0.12175723165273666, 0.2004556655883789, -0.1724264919757843, -0.03115798532962799, 0.1516263484954834, -0.13661956787109375, 0.30094656348228455, -0.40147536993026733, 0.2035067230463028, -0.05106562376022339, 0.34033772349357605, 0.4848606288433075, -0.2076413631439209, 0.2197113186120987, 0.03758600354194641, 0.13411511480808258, -0.3825286030769348, 0.27547687292099, 0.11723117530345917, -0.06162983924150467, -0.027484487742185593, 0.1696750521659851, 0.19921168684959412, -0.20830711722373962, -0.09577685594558716, 0.00691063329577446, 0.4759885370731354, -0.007822543382644653, -0.03395107015967369, 0.4135631322860718, 0.002714499831199646, 0.17896948754787445, 0.2403348684310913, 0.135637566447258, 0.01962074637413025, 0.7002614736557007, -0.26022869348526, -0.003964830189943314, -0.23526856303215027, 0.3014821410179138, -0.3278696537017822, -0.7641027569770813, 0.16166481375694275, 0.2355506718158722, -0.35331013798713684, -0.16765114665031433, 0.12589791417121887, 0.6017505526542664, -0.023375172168016434, 0.011492801830172539, -0.11459315568208694, -0.044835399836301804, 0.014055008068680763, 0.048389777541160583, -0.06621351093053818, -0.25367075204849243, -0.07082390040159225, 0.18568317592144012, -0.059555534273386, 0.01455974206328392, 0.2749812602996826, 0.18766385316848755, -0.1494835466146469, -0.4457589387893677, 0.06577509641647339, 0.17284920811653137, 0.0665423721075058, -0.27483880519866943, 0.3666118383407593, 0.2653486728668213, -0.0859917402267456, 0.1805054098367691, -0.0413447842001915, 0.6402474045753479, 0.504191517829895, 0.09241169691085815, -0.06174042448401451, -0.12157170474529266, -0.11399092525243759, -0.17941808700561523, 0.17781716585159302, 0.34881794452667236, 0.4212689697742462, 0.14854425191879272, 0.11359825730323792, -0.040185242891311646, 0.31608846783638, 0.20678915083408356, 0.09960100054740906, -0.5459765195846558, -0.1189197525382042, -0.20831163227558136, -0.2577386796474457, -0.22663316130638123, 0.024151824414730072, -0.28905951976776123, 0.020943306386470795, 0.4277473986148834, 0.07391566038131714, 0.27722686529159546, -0.02682255581021309, 0.034567490220069885, 0.07433385401964188, 0.3142198920249939, 0.2397761195898056, 0.40228989720344543, -0.4218081533908844, -0.03541836142539978, -0.7509752511978149, 0.11652792245149612, -0.3764895796775818, 0.00959269143640995, -0.03185897693037987, 0.15853829681873322, 0.1377418488264084, 0.08386078476905823, 0.15917232632637024, 0.29942384362220764, 0.11672317236661911, 0.2220778465270996, -0.05618421733379364, -0.18462048470973969, -0.33807069063186646, 0.02648555114865303, -0.17509248852729797, -0.46551430225372314, 0.22135992348194122, -0.1279323399066925, 0.009210947901010513, -0.22518602013587952, 0.22398850321769714, 0.255967378616333, -0.0059869736433029175, 0.47772929072380066, -0.11201165616512299, 0.6255968809127808, -0.08501801639795303, 0.3190016448497772, -0.3009392023086548, -0.0801897868514061, -0.19280588626861572, 0.5200988054275513, 0.2061503380537033, 0.2713996171951294, -0.1779927909374237, -0.10791616141796112, -0.21530425548553467, 0.15741008520126343, -0.006548143923282623, -0.07054738700389862, 0.0667274221777916, -0.1510603129863739, -0.0018242709338665009, -0.05849042534828186, 0.15223149955272675, 0.09204801917076111, -0.22293895483016968, -0.07817313820123672, -0.1745537519454956, -0.18018533289432526, 0.1810823678970337, -0.40432873368263245, -0.3411034047603607, 0.1487179398536682, 0.12612642347812653, 0.10186608880758286, 0.1396922618150711, -0.45242106914520264, 0.12178962677717209, 0.42447495460510254, -0.12801724672317505, -0.41742584109306335, 0.13403187692165375, -0.21161901950836182, 0.10057024657726288, -0.12185277044773102, 0.4765018820762634, 0.14110934734344482, -0.3705090880393982, -0.16157196462154388, -0.3583213686943054 ]
https://github.com/huggingface/datasets/issues/836
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612 The problem is in arrow when the column data contains long strings. Any ideas on how to bypass this?
Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas?
29
load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas Hi All I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly: dataset = load_dataset('csv', data_files=files) When I run it I get: Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4... I am getting this error: 6a4ac4/csv.py in _generate_tables(self, files) 78 def _generate_tables(self, files): 79 for i, file in enumerate(files): ---> 80 pa_table = pac.read_csv( 81 file, 82 read_options=self.config.pa_read_options, ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() **ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)** The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need. There is no issue reading the file with pandas. any idea what could be the issue? When I am running a different CSV I do not get this line: (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) Any ideas? I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612 The problem is in arrow when the column data contains long strings. Any ideas on how to bypass this?
[ -0.2411831170320511, -0.319865345954895, -0.06815589964389801, 0.4316070079803467, 0.36252546310424805, 0.019154861569404602, 0.5210210084915161, 0.43771302700042725, 0.29491275548934937, 0.032775163650512695, 0.016962695866823196, -0.11870503425598145, 0.09059164673089981, 0.18028973042964935, 0.03506602719426155, 0.11300927400588989, 0.07302826642990112, 0.3988213837146759, 0.03172004967927933, 0.06997212767601013, -0.21886035799980164, 0.12086943536996841, 0.0058676376938819885, 0.05751488357782364, -0.12442260980606079, 0.07236414402723312, -0.00820845365524292, 0.11691468954086304, -0.23435144126415253, -0.4013204574584961, 0.41972312331199646, 0.07845443487167358, 0.33285048604011536, 0.5207664966583252, -0.00011690515384543687, 0.15647360682487488, 0.2654483914375305, -0.18562574684619904, -0.044199466705322266, -0.5195807218551636, 0.030129767954349518, -0.5329576730728149, 0.2776658535003662, -0.1672024428844452, -0.014489179477095604, -0.17868046462535858, -0.11099937558174133, -0.03580589219927788, 0.30141258239746094, 0.3175452947616577, 0.1804957389831543, -0.2607496976852417, 0.05989224836230278, -0.010018667206168175, 0.20529240369796753, 0.037178885191679, -0.015685752034187317, 0.41754746437072754, 0.11739545315504074, -0.1267610639333725, -0.04873094707727432, -0.19366738200187683, -0.2392432987689972, 0.35819900035858154, 0.31963518261909485, 0.13993971049785614, 0.07096700370311737, -0.1089666336774826, 0.2680702805519104, 0.1055053249001503, 0.6067357659339905, -0.3076421618461609, -0.14854715764522552, -0.015400387346744537, -0.020296946167945862, -0.4886515736579895, 0.2558155953884125, 0.40449440479278564, -0.15216007828712463, 0.11733308434486389, -0.21221239864826202, 0.24844670295715332, -0.2663930058479309, 0.2028616964817047, -0.06734703481197357, -0.35319048166275024, -0.2522073984146118, 0.2693184018135071, 0.2523401975631714, 0.07374778389930725, 0.33364003896713257, -0.09374982118606567, 0.026853669434785843, 0.18069645762443542, -0.5556496381759644, 0.279649555683136, -0.11766041070222855, -0.09043673425912857, 0.16374057531356812, 0.0962190255522728, 0.40142199397087097, 0.13706214725971222, 0.04234509542584419, 0.19469785690307617, 0.31912994384765625, 0.18613311648368835, -0.0428147092461586, 0.06910490989685059, 0.027385514229536057, 0.34621739387512207, -0.2297833263874054, -0.2338581681251526, -0.38813719153404236, -0.504957914352417, 0.23814241588115692, -0.1538381278514862, 0.2674439549446106, -0.2704332172870636, -0.24793283641338348, -0.09601990878582001, -0.036132387816905975, -0.009422952309250832, -0.05283479019999504, 0.5738205909729004, 0.21583428978919983, 0.38020431995391846, -0.05420989543199539, 0.25720924139022827, -0.21127575635910034, -0.09865451604127884, -0.08035243302583694, 0.020115850493311882, -0.05760239064693451, 0.05229145288467407, 0.3777484893798828, -0.21668820083141327, 0.12146066874265671, 0.1762952357530594, -0.043516337871551514, -0.2938743233680725, -0.1455058455467224, -0.4177221357822418, 0.03672413155436516, 0.2833082675933838, 0.2024739384651184, 0.09795275330543518, 0.2341529130935669, -0.2812092900276184, -0.060687921941280365, 0.380541056394577, -0.2301194965839386, -0.16856931149959564, 0.09726409614086151, 0.09630241990089417, -0.06611718237400055, 0.16567839682102203, -0.39563167095184326, 0.15635129809379578, 0.3519502580165863, -0.4384937584400177, 0.033467844128608704, -0.21348431706428528, -0.24112345278263092, -0.35248106718063354, 0.20189036428928375, 0.2790597677230835, -0.785466730594635, 0.3429478108882904, 0.05390669032931328, -0.03174859285354614, 0.11499913036823273, 0.4237147271633148, -0.14831720292568207, 0.061177998781204224, -0.2709868550300598, 0.09215261042118073, 0.14062385261058807, 0.007543109357357025, -0.629366934299469, 0.33075642585754395, -0.04602794349193573, 0.08954580873250961, 0.31206458806991577, 0.06455278396606445, 0.05121501162648201, 0.08917737752199173, -0.10802222788333893, 0.018553880974650383, 0.023134589195251465, 0.0440056174993515, -0.2607477307319641, -0.12919245660305023, 0.31875085830688477, 0.142624631524086, -0.06477391719818115, -0.06767282634973526, 0.23888924717903137, -0.408738911151886, 0.20254525542259216, -0.01808762177824974, 0.14161603152751923, 0.17524731159210205, 0.17913173139095306, -0.1968240886926651, 0.034974098205566406, 0.01043354719877243, -0.44934940338134766, 0.14338240027427673, 0.2848805785179138, -0.16870121657848358, -0.21594424545764923, -0.07973095774650574, -0.38411810994148254, -0.029700713232159615, -0.2681601941585541, -0.12419965863227844, -0.024652723222970963, 0.0725153237581253, 0.05951985344290733, -0.14405347406864166, -0.1857398897409439, 0.11611927300691605, -0.22377678751945496, -0.011276012286543846, -0.01584358885884285, 0.1422192007303238, 0.05879932641983032, -0.12498876452445984, 0.10647206008434296, -0.06290075927972794, 0.20716780424118042, -0.04833386465907097, -0.2763521075248718, 0.24959132075309753, 0.1456867754459381, 0.045615311712026596, -0.2857957184314728, -0.17478762567043304, 0.08302010595798492, -0.2415052205324173, -0.08720072358846664, 0.023738399147987366, 0.36637139320373535, -0.1825467050075531, -0.33928054571151733, 0.2706235647201538, -0.15670067071914673, 0.3015138804912567, 0.18797563016414642, -0.35807162523269653, 0.30650147795677185, 0.016720425337553024, 0.17819397151470184, 0.07049177587032318, 0.1380857676267624, 0.07365468889474869, 0.4947434663772583, 0.2995409071445465, -0.09684166312217712, -0.1562499701976776, 0.5009899139404297, -0.04704403504729271, -0.21856340765953064, 0.31125932931900024, -0.11817748099565506, -0.19453522562980652, 0.06843123584985733, 0.08874505758285522, 0.3798213005065918, 0.12937648594379425, -0.19153094291687012, 0.014664222486317158, 0.14350274205207825, -0.2500297427177429, 0.12040601670742035, -0.22043462097644806, 0.14736174046993256, 0.3965649902820587, 0.12700989842414856, -0.12728585302829742, -0.1951441466808319, 0.03774373605847359, 0.08758541196584702, 0.325723260641098, -0.411955863237381, -0.0675453171133995, -0.07345385104417801, -0.00520581379532814, -0.18028488755226135, 0.09860352426767349, -0.05557971075177193, 0.0971231609582901, -0.39961129426956177, 0.33282411098480225, 0.2897822856903076, -0.0790664404630661, -0.24312610924243927, 0.08863416314125061, 0.21581275761127472, -0.33705583214759827, -0.003460582345724106, -0.048990845680236816, -0.29193973541259766, -0.026176592335104942, 0.33070987462997437, 0.10981905460357666, -0.0008767265826463699, -0.021765828132629395, 0.02802533656358719, -0.05484504997730255, -0.09253303706645966, -0.04392474889755249, -0.07322954386472702, 0.020921867340803146, -0.05116620659828186, 0.4193308353424072, 0.007607895880937576, -0.14463084936141968, 0.4017484784126282, -0.2536608874797821, -0.048924874514341354, 0.3501361012458801, 0.06369287520647049, -0.09587976336479187, -0.1087074726819992, -0.3498893082141876, -0.13988791406154633, -0.4293373227119446, 0.3910629153251648, 0.08475556969642639, 0.04193168133497238, 0.092631496489048, 0.4331052601337433, -0.026084762066602707, 0.3013547956943512, -0.031216470524668694, -0.08480477333068848, -0.297705739736557, 0.36457401514053345, -0.05611623451113701, -0.4676564633846283, 0.011941570788621902, 0.08283552527427673, 0.35919028520584106, 0.16382724046707153, -0.4252471923828125, 0.3267475664615631, -0.15090760588645935, 0.16282014548778534, 0.0011047571897506714, -0.024227259680628777, 0.06095484271645546, -0.08722764253616333, -0.0218233410269022, 0.03643060475587845, -0.24171605706214905, -0.014179997146129608, -0.03204439580440521, 0.14758382737636566, 0.05136857554316521, 0.45842885971069336, -0.03719261288642883, 0.6513363122940063, 0.08746397495269775, -0.08823134005069733, 0.4855554699897766, -0.3082401156425476, 0.3818775415420532, -0.2096707820892334, -0.3737452030181885, -0.08557458966970444, -0.3519814908504486, -0.19244661927223206, 0.26774847507476807, -0.03358374536037445, -0.03341459482908249, -0.12577567994594574, 0.003518354147672653, -0.4046856760978699, -0.03770304471254349, 0.18363235890865326, 0.030696583911776543, -0.01483028382062912, -0.10059572756290436, -0.013301469385623932, -0.011646009981632233, -0.237362802028656, -0.19425834715366364, 0.2739641070365906, -0.15134218335151672, 0.06338702142238617, -0.22424794733524323, -0.061580441892147064, -0.302937388420105, 0.3292050361633301, -0.013623456470668316, 0.3102864623069763, 0.010614890605211258, -0.017695296555757523, 0.09729659557342529, -0.12522228062152863, 0.7449787855148315, 0.1892857849597931, -0.1550699919462204, 0.1278296411037445, -0.024113940075039864, -0.4415837228298187, -0.12176112830638885, 0.19063140451908112, 0.30733585357666016, 0.07446150481700897, 0.35486558079719543, -0.07032592594623566, -0.00969347171485424, -0.14434337615966797, 0.35467857122421265, 0.043252650648355484, -0.3951281011104584, -0.5194918513298035, -0.23497897386550903, -0.3830536901950836, -0.2121351957321167, -0.08986641466617584, 0.28827884793281555, -0.32440733909606934, -0.14238688349723816, 0.11836159974336624, -0.29905399680137634, 0.06015683338046074, 0.15338079631328583, 0.2973896265029907, -0.11291459202766418, 0.14489613473415375, 0.04683535173535347, 0.0698045939207077, 0.37691158056259155, 0.7987189292907715, -0.07857607305049896, -0.622077226638794, 0.08484327793121338, -0.20502634346485138, 0.38534826040267944, 0.04782029241323471, -0.20320527255535126, 0.12898661196231842, 0.09073472023010254, 0.06203401833772659, 0.037947990000247955, 0.014437409117817879, 0.3036859929561615, 0.04965509474277496, -0.3454539477825165, -0.5439224243164062, 0.4874184727668762, -0.12590846419334412, 0.2102593034505844, 0.3020800054073334, -0.21199996769428253, -0.10998106747865677, 0.1555226892232895, -0.3346247375011444, 0.6592135429382324, -0.42182987928390503, 0.19383063912391663, 0.3073362112045288, 0.05633615702390671, 0.25842905044555664, -0.44519680738449097, 0.1323070526123047, -0.39196813106536865, -0.2109036147594452, -0.10431202501058578, -0.0712030678987503, 0.239385724067688, 0.4321900010108948, -0.12124530971050262, 0.31186360120773315, -0.07415001839399338, 0.3325560986995697, 0.11313378065824509, 0.24382546544075012, -0.1005159318447113, -0.08646830916404724, -0.30102071166038513, 0.01042373850941658, -0.14308081567287445, -0.034952130168676376, 0.028959106653928757, 0.054464343935251236, -0.18056756258010864, -0.20164568722248077, -0.24611249566078186, 0.2200247049331665, -0.2911674380302429, 0.11540494114160538, -0.11095491051673889, -0.46866488456726074, 0.1963643580675125, 0.23806700110435486, -0.20870287716388702, -0.08517903089523315, -0.12408511340618134, 0.15505348145961761, 0.1596348136663437, -0.040175680071115494, -0.20837441086769104, -0.053695619106292725, -0.015885574743151665, 0.0761261060833931, -0.2351241409778595, 0.1545509696006775, -0.12227920442819595, -0.09567444026470184, 0.2780734896659851, 0.23765741288661957, -0.08480723202228546, -0.5452086925506592, -0.532619833946228, -0.4284158945083618, 0.07598119974136353, -0.1957322657108307, 0.06519807875156403, -0.04207879304885864, 0.09834162145853043, -0.16163542866706848, 0.18593519926071167, -0.46886953711509705, -0.10202698409557343, 0.3918125033378601, -0.1116865798830986, 0.09395454823970795, 0.5907300710678101, 0.21935035288333893, -0.01689293049275875, -0.14115241169929504, 0.06424085050821304, 0.3081057369709015, -0.35318857431411743, 0.1170663833618164, 0.11414909362792969, 0.3159496784210205, 0.13925288617610931, 0.2917450964450836, 0.15658080577850342, -0.07767295092344284, 0.07445482909679413, -0.5115907192230225, -0.3249691426753998, -0.016528956592082977, -0.0015316978096961975, 0.24795787036418915, 0.16721880435943604, 0.08186677098274231, 0.17267775535583496, 0.2032964527606964, -0.1562301516532898, 0.1004621610045433, 0.10592921823263168, -0.08695743978023529, 0.21063311398029327, 0.1420162469148636, -0.13387268781661987, -0.1038191169500351, 0.09349779039621353, 0.17764052748680115, -0.05344494432210922, -0.1887509524822235, -0.07985582947731018, 0.15010015666484833, 0.09836078435182571, 0.023286115378141403, -0.2034451961517334, -0.2526891231536865, -0.14970649778842926, -0.19280517101287842, 0.06640926003456116, 0.029782593250274658, -0.09811189770698547, 0.07176020741462708, -0.2987653613090515, -0.08465392142534256, -0.5091862678527832, 0.027121789753437042, -0.5075385570526123, 0.22313250601291656, 0.2992691397666931, 0.04858259856700897, 0.12175723165273666, 0.2004556655883789, -0.1724264919757843, -0.03115798532962799, 0.1516263484954834, -0.13661956787109375, 0.30094656348228455, -0.40147536993026733, 0.2035067230463028, -0.05106562376022339, 0.34033772349357605, 0.4848606288433075, -0.2076413631439209, 0.2197113186120987, 0.03758600354194641, 0.13411511480808258, -0.3825286030769348, 0.27547687292099, 0.11723117530345917, -0.06162983924150467, -0.027484487742185593, 0.1696750521659851, 0.19921168684959412, -0.20830711722373962, -0.09577685594558716, 0.00691063329577446, 0.4759885370731354, -0.007822543382644653, -0.03395107015967369, 0.4135631322860718, 0.002714499831199646, 0.17896948754787445, 0.2403348684310913, 0.135637566447258, 0.01962074637413025, 0.7002614736557007, -0.26022869348526, -0.003964830189943314, -0.23526856303215027, 0.3014821410179138, -0.3278696537017822, -0.7641027569770813, 0.16166481375694275, 0.2355506718158722, -0.35331013798713684, -0.16765114665031433, 0.12589791417121887, 0.6017505526542664, -0.023375172168016434, 0.011492801830172539, -0.11459315568208694, -0.044835399836301804, 0.014055008068680763, 0.048389777541160583, -0.06621351093053818, -0.25367075204849243, -0.07082390040159225, 0.18568317592144012, -0.059555534273386, 0.01455974206328392, 0.2749812602996826, 0.18766385316848755, -0.1494835466146469, -0.4457589387893677, 0.06577509641647339, 0.17284920811653137, 0.0665423721075058, -0.27483880519866943, 0.3666118383407593, 0.2653486728668213, -0.0859917402267456, 0.1805054098367691, -0.0413447842001915, 0.6402474045753479, 0.504191517829895, 0.09241169691085815, -0.06174042448401451, -0.12157170474529266, -0.11399092525243759, -0.17941808700561523, 0.17781716585159302, 0.34881794452667236, 0.4212689697742462, 0.14854425191879272, 0.11359825730323792, -0.040185242891311646, 0.31608846783638, 0.20678915083408356, 0.09960100054740906, -0.5459765195846558, -0.1189197525382042, -0.20831163227558136, -0.2577386796474457, -0.22663316130638123, 0.024151824414730072, -0.28905951976776123, 0.020943306386470795, 0.4277473986148834, 0.07391566038131714, 0.27722686529159546, -0.02682255581021309, 0.034567490220069885, 0.07433385401964188, 0.3142198920249939, 0.2397761195898056, 0.40228989720344543, -0.4218081533908844, -0.03541836142539978, -0.7509752511978149, 0.11652792245149612, -0.3764895796775818, 0.00959269143640995, -0.03185897693037987, 0.15853829681873322, 0.1377418488264084, 0.08386078476905823, 0.15917232632637024, 0.29942384362220764, 0.11672317236661911, 0.2220778465270996, -0.05618421733379364, -0.18462048470973969, -0.33807069063186646, 0.02648555114865303, -0.17509248852729797, -0.46551430225372314, 0.22135992348194122, -0.1279323399066925, 0.009210947901010513, -0.22518602013587952, 0.22398850321769714, 0.255967378616333, -0.0059869736433029175, 0.47772929072380066, -0.11201165616512299, 0.6255968809127808, -0.08501801639795303, 0.3190016448497772, -0.3009392023086548, -0.0801897868514061, -0.19280588626861572, 0.5200988054275513, 0.2061503380537033, 0.2713996171951294, -0.1779927909374237, -0.10791616141796112, -0.21530425548553467, 0.15741008520126343, -0.006548143923282623, -0.07054738700389862, 0.0667274221777916, -0.1510603129863739, -0.0018242709338665009, -0.05849042534828186, 0.15223149955272675, 0.09204801917076111, -0.22293895483016968, -0.07817313820123672, -0.1745537519454956, -0.18018533289432526, 0.1810823678970337, -0.40432873368263245, -0.3411034047603607, 0.1487179398536682, 0.12612642347812653, 0.10186608880758286, 0.1396922618150711, -0.45242106914520264, 0.12178962677717209, 0.42447495460510254, -0.12801724672317505, -0.41742584109306335, 0.13403187692165375, -0.21161901950836182, 0.10057024657726288, -0.12185277044773102, 0.4765018820762634, 0.14110934734344482, -0.3705090880393982, -0.16157196462154388, -0.3583213686943054 ]