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/3423
data duplicate when setting num_works > 1 with streaming data
Hi ! Thanks for reporting :) When using a PyTorch's data loader with `num_workers>1` and an iterable dataset, each worker streams the exact same data by default, resulting in duplicate data when iterating using the data loader. We can probably fix this in `datasets` by checking `torch.utils.data.get_worker_info()` which gives the worker id if it happens.
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
55
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: Hi ! Thanks for reporting :) When using a PyTorch's data loader with `num_workers>1` and an iterable dataset, each worker streams the exact same data by default, resulting in duplicate data when iterating using the data loader. We can probably fix this in `datasets` by checking `torch.utils.data.get_worker_info()` which gives the worker id if it happens.
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
> Hi ! Thanks for reporting :) > > When using a PyTorch's data loader with `num_workers>1` and an iterable dataset, each worker streams the exact same data by default, resulting in duplicate data when iterating using the data loader. > > We can probably fix this in `datasets` by checking `torch.utils.data.get_worker_info()` which gives the worker id if it happens. Hi ! Thanks for reply Do u have some plans to fix the problem?
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
74
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: > Hi ! Thanks for reporting :) > > When using a PyTorch's data loader with `num_workers>1` and an iterable dataset, each worker streams the exact same data by default, resulting in duplicate data when iterating using the data loader. > > We can probably fix this in `datasets` by checking `torch.utils.data.get_worker_info()` which gives the worker id if it happens. Hi ! Thanks for reply Do u have some plans to fix the problem?
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
Isn’t that somehow a bug on PyTorch side? (Just asking because this behavior seems quite general and maybe not what would be intended)
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
23
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: Isn’t that somehow a bug on PyTorch side? (Just asking because this behavior seems quite general and maybe not what would be intended)
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
From PyTorch's documentation [here](https://pytorch.org/docs/stable/data.html#dataset-types): > When using an IterableDataset with multi-process data loading. The same dataset object is replicated on each worker process, and thus the replicas must be configured differently to avoid duplicated data. See [IterableDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset) documentations for how to achieve this. It looks like an intended behavior from PyTorch As suggested in the [docstring of the IterableDataset class](https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset), we could pass a `worker_init_fn` to the DataLoader to fix this. It could be called `streaming_worker_init_fn` for example. However, while this solution works, I'm worried that many users simply don't know about this parameter and just start their training with duplicate data without knowing it. That's why I'm more in favor of integrating the check on the worker id directly in `datasets` in our implementation of `IterableDataset.__iter__`.
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
127
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: From PyTorch's documentation [here](https://pytorch.org/docs/stable/data.html#dataset-types): > When using an IterableDataset with multi-process data loading. The same dataset object is replicated on each worker process, and thus the replicas must be configured differently to avoid duplicated data. See [IterableDataset](https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset) documentations for how to achieve this. It looks like an intended behavior from PyTorch As suggested in the [docstring of the IterableDataset class](https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset), we could pass a `worker_init_fn` to the DataLoader to fix this. It could be called `streaming_worker_init_fn` for example. However, while this solution works, I'm worried that many users simply don't know about this parameter and just start their training with duplicate data without knowing it. That's why I'm more in favor of integrating the check on the worker id directly in `datasets` in our implementation of `IterableDataset.__iter__`.
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
Hi there @lhoestq @cloudyuyuyu I met that problem recently, and #4375 is really useful because I finally found out I am training with duplicate data. However, in multi-GPU training, I'm using DDP mode and IterableDataset, which still yields duplicate data for each progress. And this is dangerous because users maybe not realize this behavior.
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
54
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: Hi there @lhoestq @cloudyuyuyu I met that problem recently, and #4375 is really useful because I finally found out I am training with duplicate data. However, in multi-GPU training, I'm using DDP mode and IterableDataset, which still yields duplicate data for each progress. And this is dangerous because users maybe not realize this behavior.
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
If the worker_info.id is unique per process it should work fine, could you check that they're unique ? The code to get the worker_info in each worker is `torch.utils.data.get_worker_info()`
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
29
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: If the worker_info.id is unique per process it should work fine, could you check that they're unique ? The code to get the worker_info in each worker is `torch.utils.data.get_worker_info()`
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
test.py ```python import json import os import torch from torch.utils.data import IterableDataset, DataLoader from transformers import PreTrainedTokenizer, TrainingArguments from common.arguments import DataTrainingArguments, ModelArguments class MyIterableDataset(IterableDataset): def __iter__(self): worker_info = torch.utils.data.get_worker_info() print(worker_info) return iter(range(3)) if __name__ == '__main__': dataset = MyIterableDataset() dataloader = DataLoader(dataset, num_workers=1) for i in dataloader: print(i) ``` ```sh $ python3 -m torch.distributed.launch \ --nproc_per_node=2 test.py WorkerInfo(id=0, num_workers=1, seed=5545685212307804959, dataset=<__main__.MyIterableDataset object at 0x7f92648cf6a0>) WorkerInfo(id=0, num_workers=1, seed=3174108029709729025, dataset=<__main__.MyIterableDataset object at 0x7f19ab961670>) tensor([0]) tensor([1]) tensor([2]) tensor([0]) tensor([1]) tensor([2]) ``` @lhoestq they are not unique
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
84
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: test.py ```python import json import os import torch from torch.utils.data import IterableDataset, DataLoader from transformers import PreTrainedTokenizer, TrainingArguments from common.arguments import DataTrainingArguments, ModelArguments class MyIterableDataset(IterableDataset): def __iter__(self): worker_info = torch.utils.data.get_worker_info() print(worker_info) return iter(range(3)) if __name__ == '__main__': dataset = MyIterableDataset() dataloader = DataLoader(dataset, num_workers=1) for i in dataloader: print(i) ``` ```sh $ python3 -m torch.distributed.launch \ --nproc_per_node=2 test.py WorkerInfo(id=0, num_workers=1, seed=5545685212307804959, dataset=<__main__.MyIterableDataset object at 0x7f92648cf6a0>) WorkerInfo(id=0, num_workers=1, seed=3174108029709729025, dataset=<__main__.MyIterableDataset object at 0x7f19ab961670>) tensor([0]) tensor([1]) tensor([2]) tensor([0]) tensor([1]) tensor([2]) ``` @lhoestq they are not unique
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
It looks like a bug from pytorch no ? How can we know which data should go in which process when using DDP ? I guess we need to check `torch.distributed.get_world_size()` and `torch.distributed.get_rank()` as well. Not fan of the design here tbh, but that's how it is
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
47
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: It looks like a bug from pytorch no ? How can we know which data should go in which process when using DDP ? I guess we need to check `torch.distributed.get_world_size()` and `torch.distributed.get_rank()` as well. Not fan of the design here tbh, but that's how it is
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
> It looks like a bug from pytorch no ? How can we know which data should go in which process when using DDP ? > > I guess we need to check `torch.distributed.get_world_size()` and `torch.distributed.get_rank()` as well. Not fan of the design here tbh, but that's how it is Maybe we should document it?
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
55
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: > It looks like a bug from pytorch no ? How can we know which data should go in which process when using DDP ? > > I guess we need to check `torch.distributed.get_world_size()` and `torch.distributed.get_rank()` as well. Not fan of the design here tbh, but that's how it is Maybe we should document it?
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3423
data duplicate when setting num_works > 1 with streaming data
hmm actually let me open a new issue on DDP - original post was for single node
## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version:
17
data duplicate when setting num_works > 1 with streaming data ## Describe the bug The data is repeated num_works times when we load_dataset with streaming and set num_works > 1 when construct dataloader ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import pandas as pd import numpy as np import os from datasets import load_dataset from torch.utils.data import DataLoader from tqdm import tqdm import shutil NUM_OF_USER = 1000000 NUM_OF_ACTION = 50000 NUM_OF_SEQUENCE = 10000 NUM_OF_FILES = 32 NUM_OF_WORKERS = 16 if __name__ == "__main__": shutil.rmtree("./dataset") for i in range(NUM_OF_FILES): sequence_data = pd.DataFrame( { "imei": np.random.randint(1, NUM_OF_USER, size=NUM_OF_SEQUENCE), "sequence": np.random.randint(1, NUM_OF_ACTION, size=NUM_OF_SEQUENCE) } ) if not os.path.exists("./dataset"): os.makedirs("./dataset") sequence_data.to_csv(f"./dataset/sequence_data_{i}.csv", index=False) dataset = load_dataset("csv", data_files=[os.path.join("./dataset",file) for file in os.listdir("./dataset") if file.endswith(".csv")], split="train", streaming=True).with_format("torch") data_loader = DataLoader(dataset, batch_size=1024, num_workers=NUM_OF_WORKERS) result = pd.DataFrame() for i, batch in tqdm(enumerate(data_loader)): result = pd.concat([result, pd.DataFrame(batch)], axis=0) result.to_csv(f"num_work_{NUM_OF_WORKERS}.csv", index=False) ``` ## Expected results data do not duplicate ## Actual results data duplicate NUM_OF_WORKERS = 16 ![image](https://user-images.githubusercontent.com/16486492/145748707-9d2df25b-2f4f-4d7b-a83e-242be4fc8934.png) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:datasets==1.14.0 - Platform:transformers==4.11.3 - Python version:3.8 - PyArrow version: hmm actually let me open a new issue on DDP - original post was for single node
[ -0.23257602751255035, -0.37529587745666504, -0.016168689355254173, 0.32724326848983765, 0.2545715272426605, -0.17621555924415588, 0.5691003799438477, 0.3358849883079529, -0.2572705149650574, 0.4211995005607605, 0.0956362634897232, 0.20091500878334045, -0.008095911704003811, 0.12352021783590317, 0.14470097422599792, 0.009604305028915405, 0.0426977276802063, 0.14939680695533752, -0.2690354883670807, 0.17931871116161346, -0.07294070720672607, 0.005413101986050606, 0.008901998400688171, -0.12216652929782867, -0.2812238335609436, 0.028602734208106995, -0.08685355633497238, 0.273600310087204, 0.1483578383922577, -0.22463726997375488, -0.1355644166469574, 0.01675909198820591, 0.22251680493354797, 0.7733389735221863, -0.00010937490151263773, 0.027363523840904236, 0.11635319888591766, -0.05642439424991608, -0.26418036222457886, -0.19267629086971283, 0.1805039346218109, -0.11699304729700089, 0.1388169676065445, -0.1363621950149536, -0.07145492732524872, -0.10252542793750763, -0.1689469963312149, -0.23840336501598358, 0.5982193350791931, 0.302054762840271, 0.20012451708316803, 0.204070046544075, -0.23686428368091583, 0.08076831698417664, -0.022785454988479614, -0.1564832180738449, -0.056032635271549225, 0.3235715627670288, 0.4014074206352234, 0.27426964044570923, -0.247094988822937, 0.4327000677585602, 0.016839640215039253, 0.21340049803256989, 0.04670170694589615, -0.0043556103482842445, 0.14310050010681152, -0.32923778891563416, 0.14630556106567383, 0.24571958184242249, 0.24744969606399536, -0.2629599869251251, -0.05245429277420044, -0.14812135696411133, 0.06675903499126434, -0.4061613380908966, 0.14436112344264984, -0.030743373557925224, -0.22168846428394318, 0.07676802575588226, -0.028644151985645294, 0.3717750310897827, -0.05709439888596535, -0.12165661156177521, 0.08369582891464233, -0.06829702854156494, -0.0232120119035244, 0.1365588903427124, 0.11154574155807495, -0.07343215495347977, 0.46177947521209717, -0.15247958898544312, 0.09243611991405487, -0.1511487364768982, -0.5506558418273926, -0.08427543938159943, -0.12624433636665344, -0.18125560879707336, -0.015259436331689358, 0.1713981032371521, 0.4865387976169586, 0.07040894031524658, 0.21513572335243225, 0.08693023771047592, 0.11905698478221893, 0.15853996574878693, -0.25489309430122375, -0.25563254952430725, 0.18603241443634033, 0.2502899765968323, -0.31229087710380554, -0.0726543739438057, 0.16323241591453552, -0.21549242734909058, 0.495303750038147, 0.16643819212913513, 0.3587915301322937, 0.003117036074399948, -0.25636979937553406, 0.06428604573011398, -0.04712960124015808, 0.08583644032478333, -0.006409314461052418, 0.14438581466674805, -0.02426440641283989, 0.45803606510162354, -0.1754569113254547, 0.12918809056282043, -0.1905433088541031, -0.40643009543418884, -0.2643486261367798, -0.1287214607000351, -0.09442079067230225, 0.011919569224119186, 0.1807192713022232, -0.33191266655921936, 0.3005279004573822, 0.4278582036495209, 0.1608973741531372, -0.3793385922908783, 0.47367289662361145, -0.31072351336479187, 0.03933560103178024, 0.05518873780965805, 0.017780717462301254, 0.2736404836177826, 0.3146785497665405, 0.13421444594860077, 0.14918938279151917, 0.28384867310523987, -0.189223974943161, -0.2029174268245697, -0.05682428926229477, 0.3010510504245758, 0.1310587078332901, 0.1251801699399948, -0.04804424196481705, 0.09542112052440643, 0.09639725089073181, -0.10416480898857117, 0.10922592133283615, -0.11586679518222809, -0.2004852145910263, -0.2430850714445114, -0.055028609931468964, 0.34524428844451904, 0.06512363255023956, 0.07872094213962555, 0.07748281210660934, 0.01900944672524929, 0.44524839520454407, 0.23747088015079498, -0.12439756095409393, 0.11115908622741699, -0.285185307264328, 0.032527774572372437, 0.5462092757225037, -0.25936928391456604, -0.4046398997306824, 0.43712544441223145, -0.3668302893638611, 0.11286316066980362, 0.4238320589065552, 0.36454877257347107, 0.33206576108932495, -0.0692271813750267, 0.23799361288547516, 0.16005946695804596, -0.09872053563594818, 0.12804801762104034, -0.3108532726764679, -0.08160387724637985, 0.20532283186912537, -0.07250319421291351, -0.17765142023563385, -0.016321681439876556, 0.17878594994544983, -0.39576107263565063, 0.12589852511882782, -0.0926748663187027, 0.015617458149790764, -0.010657235980033875, 0.02791648544371128, 0.010069131851196289, 0.09429191797971725, -0.1388716995716095, -0.37689757347106934, 0.12787026166915894, -0.043059300631284714, -0.22999536991119385, 0.07106491923332214, -0.22088879346847534, -0.2414957582950592, -0.21835695207118988, -0.3691312074661255, -0.23933109641075134, 0.23205286264419556, 0.23180735111236572, -0.1677781492471695, -0.4088277220726013, -0.07118700444698334, 0.39864492416381836, -0.2709227502346039, -0.1191244125366211, -0.19392237067222595, 0.13018310070037842, -0.18405450880527496, -0.20860430598258972, 0.053581640124320984, 0.11240115761756897, 0.3394465744495392, 0.07212427258491516, -0.1523095667362213, 0.3804551362991333, 0.1329362690448761, 0.3735526204109192, -0.03809163719415665, -0.0956408828496933, 0.1595097929239273, -0.07780072838068008, -0.1383575201034546, 0.4598849415779114, 0.26023241877555847, -0.026114072650671005, -0.1658342480659485, 0.2862226366996765, -0.32661640644073486, -0.17226669192314148, -0.0017229467630386353, -0.06528487801551819, 0.2907438278198242, -0.03691810742020607, 0.03754653036594391, -0.14700564742088318, 0.20700876414775848, 0.13918498158454895, 0.06499983370304108, 0.07273804396390915, -0.4059758186340332, 0.20965661108493805, -0.16405503451824188, -0.007546551525592804, -0.004758894443511963, -0.20225009322166443, -0.16842561960220337, -0.17415878176689148, 0.10458654910326004, 0.17349298298358917, 0.5916925072669983, 0.2543933093547821, 0.09688472747802734, -0.001873057335615158, 0.008286411873996258, -0.17866753041744232, 0.15410178899765015, -0.1791674941778183, -0.18366557359695435, 0.41559600830078125, 0.23561738431453705, 0.02001955918967724, -0.45171594619750977, -0.12007510662078857, 0.11965348571538925, 0.25581809878349304, -0.33972159028053284, 0.0509372279047966, -0.2482748180627823, 0.018631160259246826, -0.6064313054084778, -0.051098763942718506, -0.000010680407285690308, -0.1501995027065277, -0.10133731365203857, 0.5159274935722351, 0.011825595051050186, 0.14383523166179657, -0.01906726509332657, 0.09926716238260269, 0.28453683853149414, 0.23058071732521057, -0.06835164874792099, 0.10021880269050598, -0.16175606846809387, 0.12216241657733917, 0.04125584661960602, -0.015314580872654915, 0.4548143148422241, 0.05327649414539337, 0.10191181302070618, -0.5667012929916382, -0.25786519050598145, -0.08155454695224762, 0.17523065209388733, 0.5197482109069824, 0.043964654207229614, 0.16361090540885925, -0.024948030710220337, -0.12164631485939026, -0.11822260916233063, -0.14210771024227142, -0.23645228147506714, 0.0028130393475294113, -0.08569379895925522, 0.24177396297454834, -0.2683664560317993, -0.38055628538131714, -0.09260202199220657, -0.2641488313674927, -0.08592809736728668, -0.03915025293827057, 0.25934141874313354, 0.07064276933670044, 0.014575452543795109, 0.15125082433223724, 0.4747597575187683, 0.11788595467805862, -0.48879361152648926, -0.4494747221469879, 0.16109485924243927, -0.1190936490893364, -0.2410861700773239, -0.15288551151752472, -0.2208815962076187, 0.028834380209445953, 0.13415299355983734, -0.4471953511238098, -0.2873135805130005, 0.08892496675252914, 0.1785939335823059, -0.23982661962509155, 0.06686029583215714, 0.21559816598892212, 0.07805328071117401, -0.20845063030719757, -0.12424004822969437, 0.13378240168094635, -0.14661872386932373, 0.05731245130300522, 0.14879509806632996, -0.0183941051363945, 0.4291374087333679, 0.045971598476171494, 0.4843539595603943, 0.43921616673469543, -0.10788407921791077, 0.2628547251224518, -0.22168253362178802, 0.16915634274482727, -0.0023895055055618286, -0.22278863191604614, 0.04203356057405472, -0.1378420889377594, 0.1540295034646988, 0.32520192861557007, -0.1319091022014618, 0.09554364532232285, -0.014248955994844437, -0.030830079689621925, -0.42186465859413147, -0.134793221950531, -0.011980714276432991, -0.3076414465904236, 0.0982232615351677, 0.037587013095617294, -0.005413718521595001, -0.0894385427236557, -0.16371476650238037, -0.24633368849754333, 0.22910860180854797, -0.09549181908369064, -0.02179042063653469, 0.04736229404807091, 0.10140940546989441, -0.46572887897491455, 0.135140061378479, 0.23432378470897675, 0.5233978629112244, 0.2992337644100189, 0.020353902131319046, 0.13697883486747742, -0.004186730366200209, 0.6461728811264038, -0.30471694469451904, 0.04767347872257233, -0.19325827062129974, -0.1261405348777771, -0.16828574240207672, -0.05813409388065338, -0.08460740000009537, -0.08068358898162842, 0.17239665985107422, 0.4653709828853607, 0.026507362723350525, -0.014855273999273777, 0.21746887266635895, 0.1550380438566208, -0.19286629557609558, -0.3623104989528656, -0.3043020963668823, -0.16578659415245056, -0.2099125236272812, 0.08793152123689651, -0.0795941948890686, 0.10497765243053436, -0.20615068078041077, -0.17737577855587006, -0.2151956409215927, -0.11809198558330536, 0.3505529761314392, 0.037150636315345764, 0.20768073201179504, 0.11756956577301025, 0.18833047151565552, 0.1983412504196167, -0.003440435975790024, 0.027681848034262657, 0.2447553277015686, -0.034771520644426346, -0.13580138981342316, 0.11237737536430359, -0.1470550000667572, -0.061230070888996124, 0.27997392416000366, -0.04635012149810791, 0.19137166440486908, 0.08786860853433609, 0.1661929190158844, 0.022815436124801636, 0.006818086374551058, 0.2787887752056122, 0.15958894789218903, -0.11184649914503098, -0.3955036699771881, 0.21518248319625854, 0.18659673631191254, -0.026372238993644714, 0.42841318249702454, -0.6620623469352722, -0.06930768489837646, -0.10041774064302444, -0.12004054337739944, 0.8012030124664307, 0.08640505373477936, 0.25011202692985535, 0.3097533583641052, -0.44110608100891113, 0.25394389033317566, -0.14225709438323975, 0.06692232191562653, -0.359214723110199, -0.522819995880127, -0.028271300718188286, -0.22254176437854767, 0.17611172795295715, -0.17354923486709595, -0.4452691674232483, 0.314986914396286, -0.18914943933486938, 0.5836107134819031, 0.01850491762161255, 0.11857880651950836, -0.14622828364372253, -0.03957287222146988, -0.12994562089443207, 0.11059044301509857, -0.12692226469516754, -0.06779365241527557, -0.07098828256130219, -0.09208659082651138, 0.1683439314365387, -0.20498354732990265, 0.0975838154554367, -0.05357342213392258, -0.5762134790420532, 0.3885454535484314, -0.12339571118354797, -0.3521108031272888, -0.271616667509079, 0.17865413427352905, 0.11621441692113876, -0.11405923962593079, -0.04781915247440338, -0.05102759972214699, 0.5265256762504578, 0.36208608746528625, -0.14963892102241516, -0.15549218654632568, 0.4288356900215149, -0.05854993313550949, -0.1998509168624878, 0.18201196193695068, 0.3065870702266693, -0.011121973395347595, -0.19059327244758606, 0.2617824673652649, 0.026065390557050705, -0.3174487054347992, -0.0009431415237486362, -0.13909871876239777, -0.2691527307033539, -0.37770023941993713, 0.15067143738269806, -0.12792402505874634, -0.3933439552783966, 0.0299367792904377, -0.03214026615023613, -0.3152778446674347, -0.26200684905052185, 0.3653552830219269, 0.4884817898273468, 0.013943437486886978, 0.21562500298023224, -0.1268916130065918, -0.20127679407596588, -0.24091622233390808, 0.23646846413612366, -0.06453590095043182, -0.41197699308395386, 0.3218463063240051, -0.18833650648593903, 0.02473483979701996, 0.06095379218459129, 0.06773605197668076, -0.07256966084241867, 0.3467041254043579, -0.15142051875591278, -0.23006604611873627, -0.5069087147712708, -0.26455098390579224, 0.03540634363889694, 0.31888332962989807, 0.04448361694812775, 0.31942445039749146, -0.025697125121951103, 0.09554064273834229, -0.3671635389328003, 0.15824683010578156, 0.08797051757574081, 0.3427935242652893, 0.08734241127967834, -0.15224286913871765, 0.0005404777475632727, 0.29121729731559753, 0.15514697134494781, 0.3171483278274536, -0.22495780885219574, -0.32857996225357056, -0.2647252082824707, 0.10575389117002487, -0.15028929710388184, -0.17100416123867035, -0.31125539541244507, 0.008403763175010681, -0.0470639206469059, -0.10140444338321686, 0.18014447391033173, 0.05564315617084503, 0.11473413556814194, -0.03764786198735237, 0.47494855523109436, 0.04709957540035248, -0.0665549635887146, -0.008218750357627869, -0.25108519196510315, 0.1600518822669983, -0.001483286265283823, -0.018124453723430634, -0.1668708622455597, -0.07520569860935211, -0.3852081000804901, -0.1256999373435974, 0.29105305671691895, 0.028906134888529778, 0.05146493390202522, -0.25252020359039307, -0.09773286432027817, 0.04988529905676842, 0.27290403842926025, 0.23608240485191345, -0.31202441453933716, -0.2801555097103119, 0.02103482186794281, 0.23925785720348358, -0.3121618926525116, -0.03983953967690468, -0.03781123086810112, -0.0988769456744194, 0.169856995344162, 0.30036693811416626, 0.17437440156936646, -0.3612978160381317, -0.010457217693328857, -0.10541098564863205, -0.00997851137071848, -0.42179781198501587, 0.12735655903816223, 0.28159523010253906, -0.030615590512752533, -0.18221910297870636, 0.2722441554069519, 0.06653528660535812, -0.06207721680402756, 0.1393466740846634, -0.017882943153381348, 0.13604965806007385, 0.13728895783424377, -0.02906118705868721, -0.1934632956981659, -0.12848448753356934, 0.036606576293706894, 0.2566312551498413, -0.5214822888374329, 0.17763391137123108, 0.21649424731731415, 0.12393326312303543, -0.11660674959421158, 0.09415467828512192, -0.0583319365978241, 0.09597858041524887, -0.3209310472011566, -0.13233964145183563, 0.1803109347820282, -0.021488457918167114, -0.21107031404972076, -0.07109633088111877, 0.05283545330166817, 0.3617664575576782, -0.01587720960378647, 0.3496357202529907, -0.13265570998191833, -0.26993924379348755, -0.19521307945251465, 0.49809327721595764, -0.01949794590473175, -0.34910374879837036, 0.11052321642637253, 0.4241361618041992, 0.23948965966701508, 0.16481636464595795, 0.19615653157234192, 0.5627017617225647, 0.34403589367866516, -0.17202128469944, 0.058505620807409286, 0.16969768702983856, -0.030498581007122993, -0.083649642765522, -0.07553695142269135, 0.056840669363737106, 0.05005290359258652, 0.2399841696023941, 0.16646763682365417, -0.23575767874717712, 0.0030716508626937866, 0.22749078273773193, -0.1396826207637787, -0.5591310858726501, 0.30702686309814453, 0.0002791173756122589, 0.0034613609313964844, -0.10330520570278168, 0.10019971430301666, -0.49881696701049805, 0.03748277202248573, 0.2939964234828949, -0.09569897502660751, 0.2063191831111908, -0.16762995719909668, 0.11779402196407318, -0.10412268340587616, 0.30714210867881775, -0.04953765496611595, 0.05437113344669342, -0.33762598037719727, -0.04998625069856644, -0.7678494453430176, 0.1736566722393036, 0.09972719848155975, 0.13035990297794342, 0.1125442236661911, 0.16958950459957123, -0.3727912902832031, 0.05377507954835892, 0.1624017059803009, -0.001695740967988968, 0.04447205737233162, 0.22061994671821594, -0.36529096961021423, -0.2507272958755493, -0.33439022302627563, 0.029696643352508545, 0.10351192951202393, -0.4949088990688324, 0.32913991808891296, -0.11040397733449936, 0.20402318239212036, 0.06165631487965584, -0.10675650835037231, 0.08158357441425323, 0.29370665550231934, 0.3502362370491028, 0.09031405299901962, 0.2945011854171753, -0.19445767998695374, 0.1323443502187729, -0.06873968243598938, -0.035848259925842285, -0.21511633694171906, 0.09278009831905365, 0.3993164896965027, 0.21021582186222076, 0.020480552688241005, -0.35574692487716675, -0.28851285576820374, 0.43766140937805176, 0.2642541527748108, -0.12066332995891571, -0.19903361797332764, 0.12146643549203873, -0.12784740328788757, 0.4034744203090668, -0.058395866304636, 0.3974515199661255, -0.023310326039791107, 0.4110555052757263, -0.14942973852157593, -0.5788662433624268, 0.588335394859314, -0.307807981967926, -0.29455798864364624, -0.6304715275764465, 0.3672095239162445, 0.08773557841777802, 0.39859360456466675, -0.4144456386566162, 0.2957019507884979, 0.45825865864753723, -0.035057514905929565, -0.1528310775756836, 0.3996998369693756, -0.1667463183403015, 0.17655090987682343, 0.010872408747673035, -0.03714437782764435, 0.36723342537879944, 0.007908402010798454, 0.20929363369941711, -0.27739226818084717 ]
https://github.com/huggingface/datasets/issues/3422
Error about load_metric
Hi ! I wasn't able to reproduce your error. Can you try to clear your cache at `~/.cache/huggingface/modules` and try again ?
## Describe the bug File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1371, in load_metric metric = metric_cls( TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python metric = load_metric("glue", "sst2") ``` ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10 - Python version: 3.8.3 - PyArrow version: 6.0.1
22
Error about load_metric ## Describe the bug File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1371, in load_metric metric = metric_cls( TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python metric = load_metric("glue", "sst2") ``` ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10 - Python version: 3.8.3 - PyArrow version: 6.0.1 Hi ! I wasn't able to reproduce your error. Can you try to clear your cache at `~/.cache/huggingface/modules` and try again ?
[ -0.1543189287185669, -0.3634535074234009, 0.009982243180274963, 0.394909143447876, 0.47802817821502686, -0.007649838924407959, 0.1825975924730301, 0.18992012739181519, 0.13980883359909058, 0.12646672129631042, -0.23657912015914917, 0.07038532197475433, 0.039048172533512115, 0.26975199580192566, 0.2777212858200073, -0.1408575028181076, -0.2320580780506134, 0.12854798138141632, -0.3948492705821991, 0.13797907531261444, -0.3345133662223816, 0.32278066873550415, -0.20207633078098297, 0.015167199075222015, -0.38802510499954224, -0.06972969323396683, 0.032015182077884674, 0.3490540385246277, -0.054203785955905914, -0.3160962760448456, 0.42091041803359985, -0.12233015894889832, 0.21047362685203552, 0.6237581968307495, -0.00010830541577888653, 0.0019291192293167114, 0.429563045501709, -0.06985525041818619, -0.1801164597272873, -0.2114723175764084, -0.08952329307794571, -0.3079341650009155, 0.24051974713802338, -0.30287227034568787, -0.1621541678905487, -0.014605936594307423, -0.2227858155965805, -0.1776646375656128, 0.3323100805282593, 0.37422361969947815, 0.2997356951236725, 0.635743260383606, 0.1827407032251358, -0.27614259719848633, -0.07004863768815994, -0.046273186802864075, -0.011034967377781868, 0.5874060988426208, -0.09320655465126038, -0.021585717797279358, 0.22370317578315735, 0.1913193315267563, -0.14584027230739594, -0.07202348113059998, 0.48816385865211487, 0.06576913595199585, 0.12180393934249878, -0.1812846064567566, 0.05926680192351341, 0.16864259541034698, 0.38288068771362305, -0.41650649905204773, -0.1942470669746399, -0.0256044864654541, -0.04097824543714523, -0.3089541792869568, 0.24294063448905945, -0.08845773339271545, -0.0158921517431736, 0.16696110367774963, -0.16860775649547577, -0.17384514212608337, -0.1004389151930809, 0.1321236789226532, -0.16669148206710815, -0.05666162073612213, -0.16983015835285187, 0.04704449325799942, 0.32656869292259216, -0.05221949517726898, -0.27260705828666687, 0.20223398506641388, -0.0763457715511322, 0.2358357459306717, -0.45150226354599, -0.0882410854101181, 0.1740596890449524, -0.040445394814014435, 0.17621952295303345, 0.17091473937034607, -0.000045180320739746094, -0.0666065588593483, 0.07239502668380737, 0.24887791275978088, 0.032411202788352966, 0.5187011957168579, 0.2003651112318039, 0.14727704226970673, 0.42085522413253784, 0.1673787236213684, 0.09646803140640259, -0.04021579772233963, 0.02410748228430748, -0.3343973755836487, 0.20840756595134735, 0.06719689071178436, 0.34475964307785034, -0.0841713398694992, -0.37752458453178406, 0.018128708004951477, 0.1573888063430786, 0.006031991448253393, 0.19432850182056427, 0.3640740215778351, -0.08495858311653137, 0.0213763527572155, 0.30987799167633057, 0.26354819536209106, -0.14419814944267273, -0.04531308263540268, -0.3079621493816376, 0.08553338050842285, -0.2850228548049927, 0.09186923503875732, 0.1223316639661789, -0.24119052290916443, 0.2972179651260376, -0.05969877913594246, 0.23204752802848816, 0.005275718867778778, -0.1801828145980835, 0.00027379393577575684, -0.45595917105674744, 0.3155319392681122, -0.04263319447636604, -0.03404723480343819, 0.3438807427883148, -0.2498006373643875, -0.17588143050670624, -0.06674358993768692, -0.39658620953559875, -0.3489948809146881, -0.22815535962581635, 0.19068607687950134, -0.2567123472690582, -0.036657169461250305, -0.0905083641409874, -0.052498068660497665, 0.08165879547595978, -0.03410572186112404, -0.02217990905046463, 0.02136882022023201, -0.20814372599124908, -0.18099510669708252, 0.26540568470954895, 0.4197614789009094, -0.1241384744644165, -0.41939404606819153, 0.24750415980815887, -0.27222710847854614, 0.15156257152557373, 0.07354111224412918, 0.04667093604803085, 0.04182038456201553, -0.21645735204219818, -0.05298542603850365, 0.5696072578430176, -0.487082839012146, -0.30532416701316833, -0.012944982387125492, -0.09129496663808823, -0.06604252010583878, -0.0997282937169075, -0.12218418717384338, 0.07123346626758575, 0.16029241681098938, 0.3691285252571106, 0.18147264420986176, 0.24606381356716156, -0.06730291247367859, -0.29597094655036926, -0.2739143669605255, 0.015124170109629631, 0.13237053155899048, 0.13434897363185883, 0.20731067657470703, 0.12588223814964294, -0.2733306586742401, -0.01973552256822586, 0.009207449853420258, -0.1091538667678833, 0.3077544569969177, 0.3138892948627472, 0.05303293094038963, 0.08841564506292343, -0.3740168809890747, -0.48554670810699463, 0.22086170315742493, -0.10385581105947495, 0.2484368085861206, 0.05852053686976433, -0.05727460980415344, -0.5404741764068604, 0.055772364139556885, 0.11492417752742767, -0.039687078446149826, 0.11775559186935425, -0.09326879680156708, 0.05606146529316902, 0.21030180156230927, -0.21742209792137146, 0.5194116234779358, 0.043541647493839264, 0.22686026990413666, -0.05021439865231514, 0.28332337737083435, -0.008202208206057549, -0.2894021272659302, 0.18834276497364044, 0.3154476583003998, 0.36787712574005127, -0.1913118064403534, -0.17130616307258606, 0.3795665204524994, -0.002611264120787382, 0.0007113143801689148, -0.038593173027038574, 0.04130576550960541, 0.14584310352802277, -0.144708514213562, -0.02530610002577305, -0.12854328751564026, 0.10233747959136963, -0.0015313103795051575, 0.31269779801368713, 0.26489371061325073, -0.029057513922452927, 0.12113690376281738, -0.05369538441300392, 0.2351399064064026, 0.11112657189369202, -0.15462805330753326, 0.008936896920204163, -0.2567317485809326, 0.25459200143814087, -0.13433559238910675, 0.4579007029533386, 0.016089901328086853, -0.08693575114011765, -0.1570410132408142, 0.3953168988227844, -0.0673048198223114, 0.13657942414283752, 0.21451741456985474, -0.21315491199493408, 0.07860922068357468, 0.018903646618127823, -0.09764859080314636, 0.4290674924850464, 0.2625548839569092, -0.1425195038318634, 0.1476907879114151, 0.013468445278704166, -0.018732650205492973, 0.11984795331954956, -0.11576218903064728, 0.21833114326000214, 0.07741595804691315, 0.14518214762210846, 0.04397599399089813, -0.23620274662971497, 0.07137738168239594, -0.3299254775047302, 0.1857251524925232, -0.35607844591140747, 0.0890052542090416, -0.11189109086990356, 0.14438682794570923, 0.016585450619459152, -0.19883738458156586, -0.3623502850532532, -0.12329839169979095, -0.0745544359087944, 0.07724287360906601, 0.15885816514492035, 0.2377409189939499, 0.1133856326341629, 0.25815024971961975, 0.17401817440986633, -0.14174921810626984, -0.29863399267196655, -0.1178746372461319, -0.14440765976905823, -0.011493939906358719, 0.1132478192448616, 0.04907168447971344, 0.2982062101364136, -0.38217172026634216, 0.20664693415164948, -0.02687121368944645, -0.3316158950328827, 0.14159253239631653, -0.08597098290920258, 0.5356299877166748, 0.38300564885139465, 0.22239349782466888, 0.06016479432582855, 0.030839871615171432, 0.43101802468299866, -0.2781943082809448, -0.12837828695774078, 0.3072194457054138, -0.1938464343547821, -0.005038760602474213, -0.3107321262359619, -0.06564497202634811, -0.34051281213760376, -0.4235738515853882, 0.17243607342243195, 0.1426464021205902, 0.12751296162605286, 0.2296770215034485, 0.1658717542886734, 0.252986341714859, -0.012711511924862862, 0.18730321526527405, -0.29110264778137207, -0.47664588689804077, 0.18576286733150482, -0.16435275971889496, -0.4779873788356781, -0.024193447083234787, 0.09871972352266312, 0.35538190603256226, -0.12744061648845673, -0.38434189558029175, -0.47852954268455505, -0.11802701652050018, 0.27726295590400696, -0.23944306373596191, 0.07870803773403168, 0.207035094499588, 0.04242653772234917, -0.12033144384622574, -0.22947701811790466, -0.2517615854740143, 0.15374039113521576, 0.067376509308815, -0.022355906665325165, -0.0006506908684968948, 0.27505937218666077, -0.1600406914949417, 0.34753769636154175, 0.22275607287883759, -0.2459636777639389, 0.4428965449333191, -0.14376087486743927, 0.5232295393943787, -0.11300504952669144, -0.4164568781852722, -0.05187447369098663, 0.1353648155927658, 0.2595987319946289, 0.16851982474327087, 0.026895198971033096, 0.03343638777732849, -0.45450955629348755, -0.16435381770133972, -0.3277145028114319, -0.17713497579097748, -0.20256131887435913, 0.07843324542045593, 0.09852240234613419, 0.05096343532204628, 0.01058092713356018, -0.30533304810523987, 0.09222108125686646, 0.28221654891967773, 0.33056044578552246, -0.09828629344701767, 0.06266427040100098, -0.30620649456977844, -0.009691895917057991, -0.38197508454322815, 0.4482317566871643, -0.26042869687080383, 0.10146405547857285, -0.14351265132427216, -0.03876307234168053, 0.05541420727968216, -0.019376354292035103, 0.8064732551574707, 0.09674914181232452, 0.0023004934191703796, 0.22764432430267334, 0.07228119671344757, -0.5943182110786438, 0.05811092630028725, 0.04892120882868767, 0.04058374837040901, 0.40990376472473145, 0.6370715498924255, -0.4610351622104645, -0.2438022792339325, 0.151423841714859, 0.13733738660812378, -0.2201622873544693, -0.3145669996738434, -0.5559296011924744, -0.3393346071243286, -0.06935875117778778, 0.06644660234451294, -0.08622480928897858, 0.4433618485927582, 0.11056755483150482, -0.06697193533182144, -0.16378846764564514, -0.2969711124897003, 0.09541898965835571, 0.22624105215072632, 0.31775444746017456, -0.20398710668087006, 0.07830256223678589, 0.3460395634174347, 0.09807935357093811, -0.02702653966844082, 0.42750537395477295, -0.16542646288871765, -0.43010783195495605, 0.04265047237277031, 0.1415632963180542, 0.1941860020160675, 0.021188154816627502, -0.16855952143669128, -0.12259123474359512, -0.0945894792675972, 0.397729754447937, -0.13129448890686035, 0.051166240125894547, 0.28735440969467163, 0.23943904042243958, -0.20458775758743286, -0.11568867415189743, 0.3761638402938843, 0.11864364147186279, -0.026316456496715546, 0.3491531312465668, 0.2600227892398834, -0.20545750856399536, 0.10344896465539932, -0.21474063396453857, 0.9929333925247192, -0.07606230676174164, -0.1494835913181305, 0.5446606874465942, -0.12467292696237564, 0.3229949176311493, -0.1661418080329895, -0.14059284329414368, -0.2135109305381775, -0.2282051146030426, 0.06016349047422409, -0.19050927460193634, 0.3257085680961609, -0.22307662665843964, -0.2780148983001709, 0.23207853734493256, -0.30762192606925964, -0.06031065061688423, -0.10591519623994827, 0.07057321071624756, -0.06305985897779465, 0.018942134454846382, -0.3930134177207947, 0.1984352469444275, -0.12814925611019135, 0.3653769791126251, -0.08268080651760101, -0.06044928729534149, -0.08849979192018509, -0.31472623348236084, -0.06242392957210541, -0.07302629202604294, -0.31641635298728943, -0.045907311141490936, 0.28269675374031067, -0.1998780071735382, -0.19978924095630646, 0.28144532442092896, 0.2877238392829895, 0.060926977545022964, -0.3812236189842224, 0.0325646810233593, -0.24419528245925903, 0.03761628270149231, -0.13686281442642212, 0.1679001897573471, 0.13860751688480377, -0.19431012868881226, -0.4308965504169464, 0.16754214465618134, -0.10844454169273376, -0.040519095957279205, 0.3432370722293854, -0.008036278188228607, -0.18235136568546295, -0.28241682052612305, -0.10415086150169373, -0.09087848663330078, 0.45529159903526306, -0.2211322784423828, 0.1785009354352951, 0.16204610466957092, 0.034274399280548096, 0.06793325394392014, 0.11363434791564941, -0.22738026082515717, -0.05191865935921669, 0.48644497990608215, -0.08347200602293015, 0.024975724518299103, 0.05348943546414375, 0.03212520852684975, -0.25974059104919434, -0.24283817410469055, -0.027802683413028717, -0.16406430304050446, -0.4286109507083893, 0.20789983868598938, 0.35932523012161255, -0.0719112902879715, -0.1309102326631546, 0.3136124610900879, 0.1878250688314438, -0.15618520975112915, 0.07134348154067993, -0.34296584129333496, -0.31068915128707886, 0.3254929184913635, -0.13860931992530823, 0.14463813602924347, 0.06949376314878464, 0.34982115030288696, -0.06607305258512497, 0.19304656982421875, -0.3858530819416046, 0.11910908669233322, -0.3282260596752167, -0.10813862085342407, 0.38247060775756836, -0.2635088264942169, 0.2641928493976593, 0.00344054214656353, 0.1555202603340149, -0.004396993666887283, -0.2775935232639313, -0.23396596312522888, -0.23325732350349426, 0.09185688197612762, -0.09723047912120819, 0.001003187382593751, 0.20036619901657104, 0.018002156168222427, -0.1834857314825058, -0.1536581814289093, 0.2280004918575287, 0.13306653499603271, -0.059009939432144165, 0.14203689992427826, 0.11589431762695312, 0.13512572646141052, 0.06867317110300064, 0.17620520293712616, 0.06351280957460403, 0.04550377279520035, -0.06116459518671036, -0.039875566959381104, -0.1663203239440918, 0.017869532108306885, 0.006033042445778847, 0.12499067187309265, 0.2673959732055664, -0.08150387555360794, 0.09647638350725174, -0.1315174102783203, -0.11205632984638214, 0.14730162918567657, 0.14056426286697388, 0.038670219480991364, -0.31707897782325745, 0.14201878011226654, 0.003525444772094488, 0.27615436911582947, -0.44170045852661133, -0.12160595506429672, 0.0497979000210762, 0.054993558675050735, 0.02888413891196251, 0.09998674690723419, -0.08458933979272842, -0.025924701243638992, 0.1822575330734253, 0.04639830440282822, 0.5189405083656311, 0.11515307426452637, 0.19191624224185944, 0.03852909430861473, -0.019467122852802277, -0.06465816497802734, 0.5326472520828247, 0.04948323220014572, 0.1861562430858612, 0.03173922747373581, -0.4546205997467041, 0.14619597792625427, -0.30271145701408386, 0.2690321207046509, -0.10062437504529953, -0.41545385122299194, 0.16970625519752502, 0.12048926949501038, -0.1359344869852066, -0.2402419149875641, -0.36718109250068665, 0.7900736927986145, -0.3924960196018219, -0.16322839260101318, -0.309743732213974, 0.23186765611171722, -0.14003127813339233, 0.021672748029232025, 0.1469656378030777, -0.1798674613237381, 0.05036933720111847, -0.15052413940429688, 0.12058384716510773, -0.21995143592357635, 0.3579035699367523, -0.08547714352607727, -0.04413305222988129, -0.3523139953613281, -0.13551104068756104, 0.25049716234207153, -0.03014201670885086, -0.022211330011487007, 0.21560676395893097, 0.10016684979200363, 0.028594516217708588, -0.04762129858136177, 0.5593240261077881, 0.2886435091495514, 0.20695236325263977, 0.08658920228481293, -0.17230941355228424, -0.011105481535196304, -0.08071193844079971, -0.09773408621549606, 0.30912691354751587, 0.043685175478458405, -0.040885765105485916, 0.048457663506269455, 0.210163414478302, -0.2708365321159363, -0.039506468921899796, -0.05923761799931526, 0.15381494164466858, -0.3556712567806244, 0.41350987553596497, -0.4520184099674225, -0.12110474705696106, -0.1917084902524948, -0.046613626182079315, -0.45350751280784607, 0.15523827075958252, 0.23122550547122955, 0.06991973519325256, 0.06975111365318298, -0.2699514329433441, 0.11916571855545044, -0.10437734425067902, 0.3091418743133545, -0.11054499447345734, 0.2877159118652344, -0.13351191580295563, -0.15209893882274628, -0.5454509258270264, 0.3835495412349701, 0.16960954666137695, 0.008973302319645882, 0.047534383833408356, -0.16181384027004242, -0.16309848427772522, 0.0022933855652809143, 0.27133458852767944, 0.37170034646987915, 0.2465280294418335, -0.3907344937324524, -0.5792747139930725, 0.0543738529086113, -0.346285343170166, -0.11295372247695923, 0.13010583817958832, -0.3336256146430969, 0.009493213146924973, -0.3056614398956299, 0.0865560993552208, -0.12984095513820648, 0.03340844064950943, -0.01604263298213482, 0.30752256512641907, 0.7048735618591309, 0.06089547276496887, 0.38602131605148315, 0.03506189584732056, -0.12164637446403503, 0.012220427393913269, -0.46957120299339294, 0.05856027081608772, 0.05601205676794052, 0.043188851326704025, -0.03488233685493469, -0.2494523525238037, -0.23013614118099213, -0.25776660442352295, 0.464019775390625, 0.19484594464302063, -0.07847542315721512, -0.1153283417224884, 0.10036683082580566, -0.1724696159362793, -0.23448552191257477, 0.08426462113857269, 0.18544882535934448, 0.046943701803684235, 0.18764980137348175, -0.08785225450992584, -0.07612056285142899, 0.7019879817962646, -0.202608123421669, -0.1261032670736313, 0.10532680153846741, 0.37659594416618347, 0.10962757468223572, -0.49708572030067444, -0.5933621525764465, 0.12583023309707642, 0.38809388875961304, 0.2593899071216583, -0.15036670863628387, 0.5415425896644592, -0.27938559651374817, 0.005609974265098572, 0.006739076226949692, 0.2523934245109558, 0.15284711122512817, -0.11026367545127869, 0.16338665783405304, -0.08702190965414047 ]
https://github.com/huggingface/datasets/issues/3419
`.to_json` is extremely slow after `.select`
Hi ! It's slower indeed because a datasets on which `select`/`shard`/`train_test_split`/`shuffle` has been called has to do additional steps to retrieve the data of the dataset table in the right order. Indeed, if you call `dataset.select([0, 5, 10])`, the underlying table of the dataset is not altered to keep the examples at index 0, 5, and 10. Instead, an indices mapping is added on top of the table, that says that the first example is at index 0, the second at index 5 and the last one at index 10. Therefore accessing the examples of the dataset is slower because of the additional step that uses the indices mapping. The step that takes the most time is to query the dataset table from a list of indices here: https://github.com/huggingface/datasets/blob/047dc756ed20fbf06e6bcaf910464aba0e20610a/src/datasets/formatting/formatting.py#L61-L63 In your case it can be made significantly faster by checking if the indices are contiguous. If they're contiguous, we could pass a python `slice` or `range` instead of a list of integers to `_query_table`. This way `_query_table` will do only one lookup to get the queried batch instead of `batch_size` lookups. Given that calling `select` with contiguous indices is a common use case I'm in favor of implementing such an optimization :) Let me know what you think
## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0
208
`.to_json` is extremely slow after `.select` ## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0 Hi ! It's slower indeed because a datasets on which `select`/`shard`/`train_test_split`/`shuffle` has been called has to do additional steps to retrieve the data of the dataset table in the right order. Indeed, if you call `dataset.select([0, 5, 10])`, the underlying table of the dataset is not altered to keep the examples at index 0, 5, and 10. Instead, an indices mapping is added on top of the table, that says that the first example is at index 0, the second at index 5 and the last one at index 10. Therefore accessing the examples of the dataset is slower because of the additional step that uses the indices mapping. The step that takes the most time is to query the dataset table from a list of indices here: https://github.com/huggingface/datasets/blob/047dc756ed20fbf06e6bcaf910464aba0e20610a/src/datasets/formatting/formatting.py#L61-L63 In your case it can be made significantly faster by checking if the indices are contiguous. If they're contiguous, we could pass a python `slice` or `range` instead of a list of integers to `_query_table`. This way `_query_table` will do only one lookup to get the queried batch instead of `batch_size` lookups. Given that calling `select` with contiguous indices is a common use case I'm in favor of implementing such an optimization :) Let me know what you think
[ -0.31343451142311096, 0.188749760389328, -0.061072904616594315, -0.06519971787929535, 0.20084576308727264, 0.07442165166139603, 0.08423713594675064, 0.4034847319126129, -0.26168233156204224, 0.21372509002685547, 0.006462862715125084, 0.7067224383354187, -0.007227671332657337, -0.03520078584551811, 0.0019337115809321404, -0.02675498276948929, 0.1643504649400711, -0.10661573708057404, 0.02100769430398941, -0.1266011893749237, -0.10569429397583008, -0.009603871032595634, -0.27975261211395264, -0.03295130282640457, -0.14099964499473572, -0.2784813344478607, 0.17292028665542603, 0.2560814321041107, -0.018441179767251015, -0.33770814538002014, -0.0013878662139177322, -0.09669169783592224, -0.11622694134712219, 0.24097147583961487, -0.00010871179983951151, 0.07341146469116211, 0.20436570048332214, 0.022616731002926826, -0.38788560032844543, -0.15779651701450348, -0.4634682536125183, -0.10340329259634018, 0.027438199147582054, -0.27072805166244507, -0.023257041350007057, 0.0306711345911026, -0.15170912444591522, -0.2918875217437744, 0.318118691444397, 0.10408809781074524, 0.24158963561058044, 0.35106125473976135, -0.25769948959350586, -0.16198424994945526, 0.2756761312484741, 0.19050204753875732, -0.17569956183433533, 0.40265846252441406, 0.044157885015010834, 0.11361464112997055, 0.13666819036006927, 0.0894814282655716, -0.1013907790184021, -0.18172793090343475, -0.1199256107211113, 0.09455572068691254, -0.10251403599977493, 0.046873949468135834, 0.022733226418495178, 0.13772180676460266, 0.2284836769104004, -0.2496943473815918, -0.3619491755962372, -0.3039984405040741, -0.014498715288937092, -0.06743191182613373, 0.1812414973974228, -0.04571408033370972, 0.05196579173207283, -0.09603849053382874, -0.28406602144241333, 0.1411960870027542, 0.15326154232025146, -0.07466371357440948, 0.28287604451179504, 0.020324967801570892, -0.04371638596057892, 0.06487482786178589, 0.39738398790359497, -0.22693754732608795, 0.02843053638935089, -0.31993356347084045, 0.007303696125745773, 0.022573551163077354, -0.5987465381622314, -0.3852681815624237, 0.0011235401034355164, -0.5389381647109985, -0.1619407832622528, 0.17026923596858978, 0.2211838662624359, 0.14818967878818512, 0.20201672613620758, 0.027219191193580627, 0.36642906069755554, 0.10002069175243378, 0.017455194145441055, 0.26257631182670593, 0.0871516615152359, 0.20869365334510803, -0.013808595016598701, 0.14816585183143616, 0.18468235433101654, -0.2047812044620514, 0.08597534894943237, -0.09045801311731339, 0.02782820165157318, -0.026262473315000534, -0.43965280055999756, 0.11234712600708008, -0.18078377842903137, -0.22147969901561737, 0.038338977843523026, 0.29876843094825745, -0.04898618161678314, -0.23426583409309387, -0.208988755941391, 0.07019022852182388, -0.3014134168624878, 0.11542928963899612, -0.3093779385089874, 0.2089116871356964, -0.05471350997686386, 0.15475980937480927, -0.11747169494628906, -0.0906280130147934, 0.05564109981060028, 0.15746280550956726, 0.030259210616350174, 0.21946290135383606, 0.2669265866279602, -0.12135715782642365, 0.026968270540237427, 0.22403483092784882, 0.11397150158882141, 0.10254044085741043, -0.1760900318622589, -0.42222726345062256, -0.3850272297859192, 0.25657403469085693, -0.2997811734676361, -0.1978815793991089, 0.29092350602149963, 0.2881028354167938, -0.10398327559232712, -0.19735729694366455, -0.7724052667617798, 0.23756591975688934, 0.003851473331451416, -0.08598028123378754, -0.08891250938177109, -0.12008236348628998, -0.07075873762369156, -0.3188275098800659, 0.11933649331331253, 0.12583507597446442, -0.4098065197467804, 0.04768293350934982, 0.17257769405841827, -0.002852814272046089, 0.5176388621330261, 0.3855893015861511, -0.25364992022514343, 0.03343610465526581, 0.03818497061729431, 0.46750688552856445, 0.3435560166835785, 0.165261372923851, -0.4090450704097748, 0.05509118735790253, -0.2947693467140198, 0.17664803564548492, 0.029703214764595032, 0.17673560976982117, 0.2951001524925232, -0.11995914578437805, 0.30807217955589294, 0.491230309009552, 0.09266562014818192, 0.25784823298454285, -0.48919063806533813, -0.17102062702178955, 0.04823044687509537, 0.26561102271080017, -0.4736599624156952, 0.02052849531173706, 0.09190388023853302, 0.2612653970718384, 0.2743983268737793, -0.15983325242996216, -0.12888619303703308, 0.3128334879875183, 0.26056531071662903, -0.3065895438194275, -0.1825329065322876, -0.17513862252235413, -0.0845705047249794, 0.1775665581226349, 0.0653957799077034, -0.2772374451160431, 0.08059970289468765, -0.14948901534080505, -0.12397203594446182, -0.03686656802892685, -0.3007575571537018, 0.04982905834913254, 0.10217556357383728, -0.04797600209712982, 0.31364455819129944, 0.057188089936971664, 0.011516202241182327, -0.016343330964446068, -0.30655163526535034, -0.046000346541404724, -0.4206380248069763, 0.30213627219200134, -0.04286952316761017, -0.4979570209980011, 0.16826103627681732, -0.07914527505636215, 0.046317823231220245, -0.315712034702301, -0.2837696373462677, 0.212691068649292, 0.13194680213928223, 0.21952828764915466, 0.16809847950935364, -0.013324245810508728, -0.007464347407221794, 0.14600983262062073, 0.14511312544345856, 0.21353304386138916, 0.052498023957014084, -0.04067261517047882, -0.5448126792907715, 0.5830824971199036, -0.2446800023317337, 0.2318921983242035, 0.17167021334171295, -0.3438754081726074, 0.17074519395828247, 0.2592819333076477, 0.13530482351779938, 0.02844899147748947, -0.021353725343942642, 0.48510128259658813, -0.09546779096126556, 0.05612398311495781, -0.44062989950180054, 0.3064272105693817, 0.7711963057518005, -0.19440993666648865, 0.0032761096954345703, 0.293841153383255, -0.009714461863040924, -0.3446844816207886, -0.11069691181182861, 0.22243951261043549, 0.461125910282135, 0.09647098928689957, 0.0803130716085434, -0.16399003565311432, -0.04878298193216324, -0.16412532329559326, 0.06925559043884277, -0.13587459921836853, 0.14620645344257355, 0.08136626332998276, 0.4279743731021881, -0.04674984887242317, -0.18860694766044617, 0.00172317773103714, -0.06654784083366394, 0.29044076800346375, -0.1108378916978836, 0.2306223064661026, -0.3287331163883209, 0.3466455042362213, 0.07065558433532715, 0.027964044362306595, -0.006914503872394562, -0.3691057562828064, 0.11921132355928421, 0.2100226879119873, -0.23805499076843262, 0.07618642598390579, 0.03451407328248024, 0.019484758377075195, 0.15381617844104767, -0.3518484830856323, -0.20386581122875214, -0.07658182829618454, -0.2606605887413025, 0.13639052212238312, 0.07334434986114502, 0.2094244807958603, 0.2219289094209671, 0.008014872670173645, -0.22960825264453888, -0.043073467910289764, -0.20656698942184448, -0.1438584327697754, -0.16723023355007172, 0.4950193762779236, -0.006870262324810028, 0.08819720149040222, -0.1601237952709198, -0.3883986175060272, 0.21727129817008972, 0.07431566715240479, -0.3592289686203003, 0.19203804433345795, -0.15693502128124237, -0.047203630208969116, 0.18512944877147675, -0.525993287563324, -0.11609955877065659, -0.14358380436897278, 0.4302061200141907, 0.01588643342256546, 0.04192006587982178, 0.06274223327636719, 0.25219854712486267, 0.016787804663181305, -0.029918944463133812, 0.0941864624619484, -0.3023793399333954, -0.36530622839927673, 0.45969969034194946, 0.010930990800261497, -0.17053170502185822, -0.21216855943202972, -0.10800595581531525, -0.10473942756652832, -0.016737952828407288, -0.16409628093242645, -0.027894437313079834, -0.5087155699729919, 0.179960697889328, -0.04836322367191315, 0.016607951372861862, 0.4398764669895172, -0.002137810457497835, -0.17232249677181244, 0.1671258509159088, -0.3047691285610199, -0.002059049904346466, 0.4214404821395874, 0.013851985335350037, -0.22074458003044128, 0.3652323782444, 0.16837942600250244, 0.6924616098403931, 0.14796271920204163, -0.13370844721794128, 0.009541667997837067, 0.04625484347343445, -0.03648831322789192, -0.510903537273407, -0.2004980444908142, 0.0751405581831932, -0.11275669932365417, -0.11134813725948334, -0.04185687005519867, -0.170416921377182, -0.30164456367492676, 0.25974372029304504, -0.028898971155285835, -0.17843207716941833, -0.21932914853096008, 0.13809315860271454, 0.1275412142276764, -0.1970205008983612, 0.2786276340484619, 0.23281919956207275, -0.12366864085197449, 0.05158494785428047, -0.0946592390537262, 0.10378514230251312, 0.15742278099060059, -0.25003671646118164, -0.9735395908355713, -0.2995586693286896, -0.2195471227169037, 0.13279379904270172, 0.03263014554977417, 0.33458009362220764, 0.1370508223772049, -0.40490540862083435, 0.29556402564048767, -0.1078062504529953, 0.43731170892715454, -0.17010197043418884, -0.13405629992485046, 0.417462557554245, -0.08944404125213623, -0.21172933280467987, -0.12680968642234802, -0.13197149336338043, 0.3457579016685486, 0.3224843144416809, 0.33333057165145874, -0.24755236506462097, -0.10175394266843796, 0.31967681646347046, 0.32452210783958435, 0.0011377260088920593, -0.04283374920487404, -0.36559733748435974, -0.2425500750541687, -0.232371523976326, 0.21113532781600952, -0.31235551834106445, 0.1325857937335968, -0.13859906792640686, -0.2153899222612381, -0.013664977625012398, -0.050365254282951355, -0.06581516563892365, 0.1374821960926056, 0.2304975390434265, 0.08023038506507874, 0.531002938747406, -0.09654800593852997, -0.05463044345378876, 0.3466989994049072, 0.41502687335014343, 0.201980859041214, -0.14236783981323242, 0.07702083140611649, 0.23015561699867249, -0.018093280494213104, 0.4188616871833801, -0.07804418355226517, 0.15487831830978394, -0.23058807849884033, 0.16191183030605316, -0.028101835399866104, -0.14059777557849884, 0.3172350823879242, -0.09572868794202805, -0.09916404634714127, -0.3467915654182434, 0.39748868346214294, 0.011343695223331451, -0.01498885452747345, -0.010860323905944824, -0.0018363893032073975, 0.2364630401134491, 0.3675496578216553, 0.09787209331989288, 1.02256178855896, -0.08587795495986938, 0.1601954847574234, 0.33551186323165894, -0.090384840965271, 0.27250155806541443, -0.131810262799263, 0.25147882103919983, -0.34915897250175476, -0.35205668210983276, 0.4206567108631134, -0.27994072437286377, 0.02248729020357132, 0.21104209125041962, -0.05560313165187836, 0.21103426814079285, -0.23554034531116486, -0.04827400669455528, -0.17589396238327026, 0.19976596534252167, -0.12175556272268295, -0.17057378590106964, -0.14557039737701416, 0.1673707365989685, 0.10708491504192352, -0.2355094850063324, 0.31002506613731384, -0.09632626175880432, -0.42137882113456726, 0.03422492742538452, -0.09095898270606995, 0.36838969588279724, 0.07296650111675262, 0.27211588621139526, 0.06023909151554108, -0.370863139629364, 0.09589286148548126, 0.12432168424129486, 0.05000732094049454, 0.29919111728668213, 0.06761372089385986, 0.23904994130134583, -0.10331147164106369, 0.4016728401184082, 0.34319114685058594, -0.32260432839393616, 0.23740659654140472, 0.11610772460699081, -0.17735859751701355, -0.03264055401086807, -0.11004308611154556, -0.34301143884658813, -0.2668156027793884, 0.25998032093048096, 0.02808861806988716, -0.2675905227661133, -0.44294115900993347, 0.1719236969947815, -0.16618923842906952, -0.4045940935611725, 0.21090543270111084, 0.041883066296577454, 0.08371452987194061, 0.5532730221748352, -0.12438446283340454, -0.1852436065673828, -0.016105283051729202, 0.6113072037696838, 0.12159845978021622, 0.1196666955947876, 0.2837795615196228, -0.10375472903251648, -0.37170326709747314, -0.15208351612091064, 0.30364060401916504, 0.18419715762138367, -0.088040292263031, 0.2257746160030365, -0.39184844493865967, 0.16007591784000397, -0.0730668157339096, 0.12512977421283722, -0.1542080193758011, -0.07203952223062515, -0.12369142472743988, -0.00950578972697258, -0.09731699526309967, 0.10634483397006989, 0.2863861322402954, 0.08278842270374298, 0.08781705051660538, 0.10556277632713318, -0.47217968106269836, 0.24803835153579712, -0.34479087591171265, 0.15883395075798035, -0.25495943427085876, 0.24855880439281464, -0.023903869092464447, -0.16935458779335022, 0.18875128030776978, -0.14875169098377228, 0.2597968280315399, 0.034049976617097855, -0.07319868355989456, -0.33880677819252014, 0.10758353769779205, 0.030124559998512268, -0.17356345057487488, -0.09567073732614517, -0.04575984925031662, 0.026763439178466797, -0.22064851224422455, -0.26831063628196716, 0.06856344640254974, 0.06523875892162323, -0.037538327276706696, -0.08097856491804123, 0.32717230916023254, -0.13031259179115295, 0.17962482571601868, -0.07148841768503189, -0.3994860351085663, 0.21868667006492615, -0.13188692927360535, 0.18595178425312042, -0.08282934129238129, -0.1586291491985321, -0.4689006507396698, -0.0370616540312767, 0.007759407162666321, 0.3205846846103668, 0.3248840570449829, -0.2848634719848633, -0.2131003737449646, -0.013071337714791298, 0.26652055978775024, 0.5952200889587402, -0.038482166826725006, -0.1596279889345169, -0.08445374667644501, 0.24178896844387054, 0.014414194971323013, -0.4443405270576477, 0.07935979962348938, 0.011070601642131805, 0.06064574047923088, -0.04214917868375778, -0.12015832960605621, 0.405709445476532, 0.039359986782073975, -0.010124384425580502, 0.18960514664649963, -0.0650806576013565, 0.1273461878299713, 0.2639833092689514, 0.18244557082653046, -0.14747579395771027, 0.24871695041656494, 0.0047793202102184296, 0.29203712940216064, 0.21185222268104553, 0.04416310042142868, 0.45321592688560486, 0.26339536905288696, 0.15827442705631256, -0.23043009638786316, -0.22067110240459442, -0.011736743152141571, 0.38905084133148193, -0.06749241054058075, 0.05685329809784889, 0.34431764483451843, 0.0874016135931015, -0.1940932720899582, -0.15049928426742554, -0.04965447634458542, 0.1052899956703186, -0.12438637763261795, -0.30086126923561096, -0.035037122666835785, -0.06770114600658417, -0.21004292368888855, 0.1656503677368164, -0.24085354804992676, 0.07980231940746307, 0.07995835691690445, -0.10940121114253998, 0.20871879160404205, -0.19934850931167603, 0.18363872170448303, -0.16017112135887146, 0.23081722855567932, -0.20735257863998413, 0.053150564432144165, 0.10068496316671371, -0.005265146493911743, -0.11178603768348694, 0.042766273021698, 0.3700503706932068, 0.13605323433876038, -0.03369148075580597, 0.2653381824493408, 0.010555258020758629, -0.16659660637378693, 0.16323751211166382, 0.21535149216651917, -0.003719314932823181, -0.14354155957698822, 0.2921925485134125, 0.20094403624534607, -0.26400619745254517, -0.13569645583629608, 0.19770295917987823, 0.060985058546066284, -0.23937344551086426, -0.049682311713695526, 0.09031057357788086, -0.1359855830669403, -0.019208066165447235, 0.09320632368326187, -0.1816338300704956, -0.09263437241315842, -0.21941356360912323, 0.009042922407388687, 0.10175296664237976, -0.04289420694112778, 0.1602015197277069, -0.01858295500278473, 0.4214799404144287, -0.09286625683307648, -0.15719228982925415, -0.2726478576660156, 0.023454569280147552, -0.06214218959212303, -0.17327409982681274, -0.11415822803974152, 0.21773262321949005, 0.04834970831871033, 0.6270105838775635, 0.09414409101009369, 0.2578929662704468, 0.03202860802412033, 0.18526238203048706, -0.23329682648181915, 0.36618852615356445, -0.23515762388706207, 0.05918283760547638, -0.09469461441040039, -0.23385274410247803, -0.10430469363927841, -0.3980081081390381, 0.2205478399991989, 0.07995264232158661, 0.09061454981565475, -0.28059232234954834, -0.05307820811867714, 0.1725941151380539, 0.39608094096183777, 0.28879228234291077, 0.15324994921684265, -0.014636479318141937, -0.2184811532497406, -0.18404166400432587, 0.0926976352930069, -0.14854177832603455, -0.07674448937177658, 0.1614025980234146, -0.10132604837417603, 0.42081013321876526, 0.18126130104064941, 0.11286142468452454, -0.16613516211509705, 0.09075898677110672, -0.27525582909584045, -0.11742179840803146, -0.3608890175819397, 0.01929227076470852, 0.11249534040689468, 0.480502188205719, -0.038076601922512054, 0.2281411588191986, -0.0012782961130142212, 0.2794141471385956, -0.30679839849472046, -0.1709187775850296, 0.40343284606933594, -0.038486648350954056, -0.062131453305482864, 0.03200618922710419, 0.21646490693092346, 0.1360270082950592, 0.22234442830085754, 0.27692991495132446, 0.047166042029857635, 0.41270503401756287, -0.1648697853088379, -0.06708773225545883, 0.4649749994277954, -0.05989920720458031, 0.041440483182668686, -0.1447857916355133, 0.17310170829296112, -0.07060456275939941, -0.11477760225534439, 0.004717733711004257, -0.3433471918106079 ]
https://github.com/huggingface/datasets/issues/3419
`.to_json` is extremely slow after `.select`
Hi, thanks for the response! I still don't understand why it is so much slower than iterating and saving: ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 99 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 47 seconds selected_subset3 = original.select([i for i in range(len(original)) if i % 2 == 0]) selected_subset3.to_json("from_select3.json") # Takes 49 seconds import json import time def fast_to_json(dataset, path): start = time.time() with open(path, mode="w") as f: for example in dataset: f.write(json.dumps(example, separators=(',', ':')) + "\n") end = time.time() print(f"Saved {len(dataset)} examples to {path} in {end - start} seconds.") fast_to_json(original, "from_original_fast.json") fast_to_json(selected_subset1, "from_select1_fast.json") fast_to_json(selected_subset2, "from_select2_fast.json") fast_to_json(selected_subset3, "from_select3_fast.json") ``` ``` Saved 87599 examples to from_original_fast.json in 8 seconds. Saved 87599 examples to from_select1_fast.json in 10 seconds. Saved 43799 examples to from_select2_fast.json in 6 seconds. Saved 43800 examples to from_select3_fast.json in 5 seconds. ```
## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0
157
`.to_json` is extremely slow after `.select` ## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0 Hi, thanks for the response! I still don't understand why it is so much slower than iterating and saving: ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 99 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 47 seconds selected_subset3 = original.select([i for i in range(len(original)) if i % 2 == 0]) selected_subset3.to_json("from_select3.json") # Takes 49 seconds import json import time def fast_to_json(dataset, path): start = time.time() with open(path, mode="w") as f: for example in dataset: f.write(json.dumps(example, separators=(',', ':')) + "\n") end = time.time() print(f"Saved {len(dataset)} examples to {path} in {end - start} seconds.") fast_to_json(original, "from_original_fast.json") fast_to_json(selected_subset1, "from_select1_fast.json") fast_to_json(selected_subset2, "from_select2_fast.json") fast_to_json(selected_subset3, "from_select3_fast.json") ``` ``` Saved 87599 examples to from_original_fast.json in 8 seconds. Saved 87599 examples to from_select1_fast.json in 10 seconds. Saved 43799 examples to from_select2_fast.json in 6 seconds. Saved 43800 examples to from_select3_fast.json in 5 seconds. ```
[ -0.1415247619152069, 0.05719614028930664, -0.07221810519695282, 0.06819883733987808, 0.13612504303455353, 0.21949800848960876, 0.04674668610095978, 0.3876001238822937, -0.2274017632007599, 0.09003843367099762, 0.024286596104502678, 0.5975726842880249, 0.10359631478786469, -0.00510249100625515, -0.027970176190137863, -0.08601456880569458, 0.22219416499137878, -0.09009957313537598, 0.17460179328918457, -0.16253262758255005, -0.05903762951493263, 0.05492805689573288, -0.22992776334285736, -0.05940909683704376, -0.08795318752527237, -0.21914991736412048, 0.21624509990215302, 0.20012736320495605, -0.047984346747398376, -0.5275935530662537, 0.12425360083580017, -0.24893862009048462, -0.009934634901583195, 0.277234822511673, -0.00011295071453787386, -0.015065677464008331, 0.2114274501800537, 0.09913844615221024, -0.3368496298789978, -0.1462552398443222, -0.4151126742362976, -0.22568009793758392, 0.08338524401187897, -0.29804202914237976, 0.0663222074508667, -0.0846409723162651, -0.17695334553718567, -0.4959801733493805, 0.21226376295089722, 0.1154770627617836, 0.2199399471282959, 0.45101413130760193, -0.30339720845222473, -0.07908149808645248, -0.05523546785116196, 0.18153157830238342, -0.21409226953983307, 0.48017197847366333, 0.21070419251918793, 0.039182402193546295, 0.25211241841316223, -0.0031736292876303196, -0.1437683254480362, -0.15358996391296387, 0.1075892299413681, 0.018116002902388573, -0.09769835323095322, -0.07575371861457825, -0.008800387382507324, -0.01241593062877655, 0.5476440191268921, -0.33931368589401245, -0.33844831585884094, -0.2084254026412964, -0.24805086851119995, -0.06759205460548401, 0.05954086035490036, 0.08606729656457901, 0.06726843118667603, -0.0964646190404892, -0.24948890507221222, 0.04443034529685974, -0.0011112987995147705, -0.13392996788024902, 0.2964823246002197, -0.08665412664413452, -0.10051124542951584, 0.17779430747032166, 0.28861483931541443, 0.014343023300170898, 0.028598349541425705, -0.4829730987548828, 0.017268676310777664, 0.11872359365224838, -0.5491195917129517, -0.37984925508499146, 0.0983632355928421, -0.32647329568862915, -0.22213375568389893, 0.2354883849620819, 0.06462256610393524, -0.07756811380386353, 0.10805166512727737, -0.033657677471637726, 0.46617498993873596, 0.2574312388896942, 0.02590372785925865, 0.2694678008556366, 0.10025300085544586, 0.1381375640630722, -0.06134235858917236, 0.019251635298132896, 0.26277419924736023, -0.16735121607780457, 0.4899332523345947, -0.04965614527463913, 0.20877353847026825, -0.24514958262443542, -0.5025873780250549, 0.1798563003540039, -0.40549686551094055, -0.29692542552948, -0.04070499911904335, 0.0846814289689064, -0.1106594130396843, -0.08329972624778748, -0.10268039256334305, 0.20335030555725098, -0.2756370007991791, 0.1512177437543869, -0.1914522647857666, 0.16656742990016937, 0.07923108339309692, 0.16713526844978333, -0.19992652535438538, -0.24816203117370605, 0.05950895696878433, 0.2827676236629486, -0.07091818749904633, 0.061902426183223724, 0.31616032123565674, -0.175026074051857, -0.053124330937862396, 0.07004132866859436, 0.10818091034889221, 0.3433857858181, -0.0705205500125885, -0.5403030514717102, -0.3883313238620758, 0.2814793288707733, -0.221591055393219, -0.17941893637180328, 0.13894253969192505, 0.19509533047676086, -0.12728965282440186, -0.26386168599128723, -0.7340607047080994, 0.2221508026123047, 0.06342040002346039, -0.0135688167065382, 0.10038576275110245, -0.026867743581533432, -0.1333954632282257, -0.3842293322086334, -0.0376197025179863, 0.2866804301738739, -0.5492135882377625, 0.17511576414108276, 0.33765825629234314, -0.021670453250408173, 0.4824238121509552, 0.445916086435318, -0.2432137280702591, 0.23438358306884766, -0.062371209263801575, 0.293130099773407, 0.17554128170013428, -0.046545080840587616, -0.3762182295322418, 0.26059260964393616, -0.24916201829910278, 0.3272438645362854, -0.0022403523325920105, 0.24273735284805298, -0.039864957332611084, -0.33475461602211, 0.1664065271615982, 0.38952648639678955, 0.11341241747140884, 0.2121182084083557, -0.5212132930755615, -0.12755295634269714, 0.14462648332118988, 0.07323278486728668, -0.4954231083393097, 0.11442480236291885, -0.091868557035923, 0.21676550805568695, 0.41746625304222107, -0.2440635859966278, -0.13673484325408936, 0.4039119482040405, 0.37863171100616455, -0.2235647588968277, -0.21009615063667297, -0.03802506998181343, -0.22383353114128113, 0.21485698223114014, 0.06916195154190063, -0.29011842608451843, 0.12284497171640396, -0.11438461393117905, -0.1213710755109787, 0.03599292039871216, -0.3633662164211273, 0.017780529335141182, 0.029992014169692993, 0.09386131167411804, 0.37624064087867737, 0.1257515549659729, 0.07608579099178314, 0.21119777858257294, -0.011708302423357964, -0.09497973322868347, -0.5944111943244934, 0.26898330450057983, 0.0062840525060892105, -0.26906755566596985, 0.04317457228899002, -0.1246747151017189, 0.21345365047454834, -0.270128071308136, -0.3491314947605133, 0.17906475067138672, 0.08109565824270248, 0.26914182305336, 0.08472836762666702, 0.07258116453886032, 0.03720700740814209, -0.022892102599143982, 0.2787645161151886, 0.325317919254303, 0.2495272159576416, -0.08651532232761383, -0.44192472100257874, 0.39398545026779175, -0.09835095703601837, 0.2821747660636902, 0.1420217752456665, -0.37189555168151855, -0.0028665531426668167, 0.16169998049736023, 0.14630058407783508, 0.06562769412994385, 0.14836066961288452, 0.4280650317668915, 0.12808199226856232, 0.0643310695886612, -0.5504087209701538, 0.2929075062274933, 0.5612949728965759, -0.19864414632320404, -0.14264699816703796, 0.16685041785240173, 0.02475130558013916, -0.24767684936523438, -0.08301268517971039, 0.07806216180324554, 0.4658495783805847, -0.027376923710107803, 0.038407787680625916, -0.1275174617767334, 0.014546025544404984, -0.1688537448644638, 0.1621081829071045, -0.05646756291389465, 0.35762327909469604, -0.05316615849733353, 0.4698260724544525, 0.03993810713291168, -0.06734681874513626, 0.00761742889881134, -0.22388003766536713, 0.19149816036224365, -0.11023140698671341, 0.3662956655025482, -0.3055780231952667, 0.16871163249015808, -0.047091152518987656, -0.14121782779693604, -0.015767548233270645, -0.32867348194122314, -0.17757731676101685, 0.10541552305221558, -0.08178885281085968, -0.2565823495388031, -0.07983115315437317, -0.07725898921489716, 0.05785992741584778, -0.465549111366272, -0.19632557034492493, -0.11337201297283173, -0.3123544752597809, 0.03824969008564949, 0.07503300905227661, 0.05011473968625069, 0.23912599682807922, 0.05796648561954498, -0.27945005893707275, -0.008564198389649391, -0.2900519073009491, -0.21313610672950745, -0.20336543023586273, 0.5882802605628967, -0.08576978743076324, 0.05997447296977043, -0.03262161836028099, -0.19048762321472168, 0.18984490633010864, 0.1854422390460968, -0.26722991466522217, 0.06685152649879456, -0.10862589627504349, -0.07111965864896774, 0.3810194134712219, -0.38522711396217346, -0.10571233183145523, -0.15237878262996674, 0.42679929733276367, 0.030888136476278305, -0.005305059254169464, 0.2086130678653717, 0.15650776028633118, -0.030834686011075974, 0.2568914294242859, 0.19174084067344666, -0.2718600332736969, -0.27903130650520325, 0.44530266523361206, 0.039844803512096405, -0.19281162321567535, -0.24653546512126923, 0.02686009556055069, -0.000037532299757003784, -0.24460197985172272, -0.45284754037857056, -0.046409767121076584, -0.6421854496002197, 0.3299518823623657, -0.10698200762271881, 0.056550152599811554, 0.21117091178894043, -0.020845189690589905, -0.0986386388540268, 0.06681624799966812, -0.4338127076625824, -0.12140869349241257, 0.37283599376678467, 0.016676276922225952, -0.05481940507888794, 0.37707599997520447, 0.13411830365657806, 0.4359671473503113, 0.46701332926750183, -0.013250991702079773, 0.25908395648002625, 0.11842038482427597, -0.07445262372493744, -0.5639159679412842, -0.40560397505760193, -0.027929743751883507, -0.18303921818733215, -0.18449200689792633, -0.08697468042373657, -0.09170068800449371, -0.2435576170682907, 0.14232735335826874, -0.1320408284664154, -0.12272023409605026, -0.11217397451400757, 0.015100053511559963, 0.051485251635313034, -0.1315751075744629, 0.3054150640964508, 0.11578217893838882, -0.20252996683120728, 0.09597735852003098, 0.002728687599301338, 0.06919229030609131, 0.27380526065826416, -0.15402533113956451, -0.843921422958374, -0.22652681171894073, -0.39494603872299194, 0.16849711537361145, 0.02919902466237545, 0.2496984899044037, 0.12479105591773987, -0.21957749128341675, 0.2817538380622864, -0.15654830634593964, 0.40569961071014404, -0.017787868157029152, -0.09761777520179749, 0.41120049357414246, -0.25564244389533997, -0.32724595069885254, -0.08127406239509583, 0.013120483607053757, 0.43068811297416687, 0.4347169101238251, 0.33233126997947693, -0.1221221387386322, -0.2227891981601715, 0.30451664328575134, 0.5938844680786133, -0.0156991109251976, -0.1601019948720932, -0.3275740146636963, -0.36823275685310364, -0.12945544719696045, -0.04170810431241989, -0.2896510660648346, 0.23951853811740875, 0.07595157623291016, -0.13992555439472198, 0.010949104093015194, -0.06723137199878693, -0.0762208104133606, -0.10400907695293427, 0.20698049664497375, -0.023169467225670815, 0.5487129092216492, -0.18339036405086517, -0.03400002419948578, 0.26900923252105713, 0.6415680050849915, 0.13672545552253723, -0.37673649191856384, -0.07811429351568222, 0.2992786765098572, 0.17065007984638214, 0.2856525778770447, -0.04588804021477699, 0.10482628643512726, -0.17628471553325653, 0.04488290101289749, -0.13270951807498932, -0.33563944697380066, 0.30666211247444153, 0.010388596914708614, -0.2658018171787262, -0.35172009468078613, 0.5191370844841003, 0.14509336650371552, 0.04746237397193909, 0.01826838031411171, -0.1735231727361679, 0.1887025386095047, 0.20428389310836792, -0.0053531453013420105, 0.8797039985656738, 0.08770257979631424, 0.12233516573905945, 0.2971573770046234, -0.2537461519241333, 0.3298410177230835, -0.020517798140645027, 0.1138947531580925, -0.3629143238067627, -0.16989381611347198, 0.34359586238861084, -0.29077422618865967, -0.041859619319438934, 0.0088077113032341, -0.05019671097397804, 0.24347420036792755, -0.3138892650604248, -0.14060276746749878, -0.035090744495391846, 0.2566438317298889, -0.1253536492586136, -0.060683537274599075, -0.19162386655807495, 0.12770627439022064, 0.20951780676841736, -0.0030512847006320953, 0.11378636211156845, -0.13372701406478882, -0.422403484582901, 0.012871138751506805, -0.13514961302280426, 0.3263961672782898, 0.012946411967277527, 0.2684398889541626, 0.09977501630783081, -0.54558926820755, 0.26361075043678284, 0.22221028804779053, 0.15543878078460693, 0.24750463664531708, -0.028016766533255577, 0.01962277479469776, -0.06077142804861069, 0.4661376178264618, 0.3151879608631134, -0.43911370635032654, 0.2665516138076782, 0.06563612073659897, -0.09762920439243317, -0.09399200230836868, -0.23130279779434204, -0.23737585544586182, -0.2395760715007782, 0.2861465811729431, -0.05630340427160263, -0.2388187199831009, -0.5121671557426453, 0.2051510363817215, -0.018098581582307816, -0.40634745359420776, 0.144415482878685, 0.1360512524843216, 0.1115172877907753, 0.493999719619751, -0.32765209674835205, -0.256067156791687, 0.023600436747074127, 0.42883676290512085, 0.30820417404174805, -0.02317119389772415, 0.36049485206604004, 0.08509574830532074, -0.3229478597640991, -0.09891250729560852, 0.30292215943336487, 0.2354356348514557, -0.24160346388816833, 0.3443709909915924, -0.33796975016593933, 0.3694314956665039, -0.10366033017635345, 0.2229277789592743, -0.2737133502960205, -0.08082970231771469, -0.0979868471622467, -0.1085791140794754, -0.1326068937778473, -0.01470784842967987, 0.2885667085647583, 0.028980368748307228, 0.1032438650727272, -0.031314361840486526, -0.3142434358596802, 0.29187914729118347, -0.26177144050598145, 0.04710531234741211, -0.11077304184436798, 0.17412437498569489, 0.11515770852565765, -0.03618473559617996, 0.2002708613872528, -0.09021970629692078, 0.21004970371723175, 0.05926505848765373, 0.02644226886332035, -0.2859489619731903, -0.006926441565155983, 0.10951320081949234, -0.14269685745239258, -0.32480570673942566, 0.045703109353780746, -0.011987335048615932, -0.0033224672079086304, -0.18363459408283234, -0.03396504372358322, 0.1396421194076538, 0.011594213545322418, -0.10789356380701065, 0.1284305453300476, -0.1332576870918274, 0.14388792216777802, 0.040953077375888824, -0.2916141748428345, 0.3298971951007843, 0.05508508160710335, 0.1968715786933899, 0.025870684534311295, -0.1704222857952118, -0.48329484462738037, -0.1459343433380127, 0.03503384813666344, 0.3800565302371979, 0.21263638138771057, -0.3405202031135559, -0.10527297854423523, 0.0593571737408638, 0.20719869434833527, 0.58061283826828, -0.019195111468434334, 0.0569177120923996, -0.32101279497146606, 0.15763667225837708, 0.15191678702831268, -0.45812347531318665, 0.04054128751158714, -0.04390120878815651, -0.02903757244348526, 0.08282291889190674, -0.020639661699533463, 0.4486773610115051, 0.04949522763490677, -0.10561137646436691, 0.30660176277160645, 0.11341740936040878, 0.13660669326782227, 0.23473285138607025, 0.287587434053421, -0.13904917240142822, 0.233986958861351, 0.13080129027366638, 0.2505459487438202, -0.005573544651269913, 0.06327471137046814, 0.20570752024650574, 0.3916637897491455, 0.14450769126415253, -0.22593984007835388, -0.15182428061962128, -0.013104137033224106, 0.1826593279838562, -0.005482673645019531, -0.004685789346694946, 0.37608450651168823, -0.08859088271856308, -0.19369076192378998, -0.16421186923980713, 0.10586806386709213, 0.22519609332084656, -0.0526936873793602, -0.253429651260376, -0.0570504367351532, 0.0015410855412483215, 0.006389819085597992, 0.23222574591636658, -0.2693992257118225, -0.10457116365432739, 0.013127461075782776, -0.06973147392272949, 0.109607994556427, -0.3768790364265442, 0.22462379932403564, -0.13523757457733154, 0.22297388315200806, -0.14915300905704498, 0.15144850313663483, 0.10692410916090012, -0.04005260765552521, -0.3501266837120056, 0.2801942229270935, 0.5537210702896118, 0.2702333629131317, 0.002029726281762123, 0.3253144323825836, -0.06680551171302795, -0.20045967400074005, 0.2931373715400696, 0.19481490552425385, -0.19840362668037415, 0.055287931114435196, 0.2812347412109375, 0.13452181220054626, -0.11182276159524918, 0.05435565486550331, 0.18951427936553955, 0.06717205792665482, -0.3570256531238556, -0.007722213864326477, -0.05137252062559128, -0.19939544796943665, -0.14363718032836914, 0.05953574553132057, -0.25645968317985535, -0.10799872875213623, -0.04690772667527199, -0.0003994873259216547, 0.10437624156475067, -0.008469032123684883, 0.12951235473155975, -0.1259378343820572, 0.34413567185401917, 0.11977560818195343, 0.1811247169971466, -0.45278480648994446, 0.08396032452583313, 0.026423342525959015, -0.20636555552482605, -0.13412810862064362, 0.041785307228565216, 0.047019314020872116, 0.5455508828163147, -0.025069542229175568, 0.2553902864456177, 0.15447856485843658, 0.4040151834487915, -0.1279730200767517, 0.2899947762489319, -0.19114843010902405, 0.011096484959125519, 0.1337495893239975, -0.24273857474327087, -0.11002994328737259, -0.36396554112434387, 0.2578961253166199, 0.006409897468984127, 0.10002785176038742, -0.4198908805847168, -0.10529464483261108, 0.26607441902160645, 0.4798904061317444, 0.4397670328617096, 0.2534761130809784, 0.001475416123867035, -0.19073110818862915, -0.2765491008758545, 0.15073367953300476, -0.05460583046078682, -0.03025834634900093, 0.24172353744506836, -0.14577674865722656, 0.2923896312713623, -0.002440902404487133, 0.15382476150989532, -0.15436606109142303, 0.06460930407047272, -0.2684890627861023, -0.20225700736045837, -0.14215262234210968, -0.045343540608882904, -0.025052133947610855, 0.34044304490089417, 0.014490337111055851, 0.17119978368282318, 0.07484249025583267, 0.3890317678451538, -0.3670269250869751, -0.1808704286813736, 0.3550504446029663, -0.006177143659442663, -0.09673522412776947, 0.15481655299663544, 0.20015458762645721, 0.15972617268562317, 0.1394759714603424, 0.2411685585975647, -0.001241050660610199, 0.5445436239242554, -0.1616697609424591, -0.16802184283733368, 0.46795693039894104, -0.09988760948181152, 0.05788051709532738, -0.04037493094801903, 0.34936249256134033, -0.053880251944065094, -0.098661869764328, 0.12187246978282928, -0.24200372397899628 ]
https://github.com/huggingface/datasets/issues/3419
`.to_json` is extremely slow after `.select`
There are slight differences between what you're doing and what `to_json` is actually doing. In particular `to_json` currently converts batches of rows (as an arrow table) to a pandas dataframe, and then to JSON Lines. From your benchmark it looks like it's faster if we don't use pandas. Thanks for investigating, I think we can optimize `to_json` significantly thanks to your test.
## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0
62
`.to_json` is extremely slow after `.select` ## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0 There are slight differences between what you're doing and what `to_json` is actually doing. In particular `to_json` currently converts batches of rows (as an arrow table) to a pandas dataframe, and then to JSON Lines. From your benchmark it looks like it's faster if we don't use pandas. Thanks for investigating, I think we can optimize `to_json` significantly thanks to your test.
[ -0.25039568543434143, 0.23780202865600586, -0.12493859231472015, -0.17131218314170837, 0.16733300685882568, 0.043504245579242706, 0.06358108669519424, 0.6106277704238892, -0.22180894017219543, 0.09391720592975616, -0.021423164755105972, 0.6983177065849304, 0.07077743113040924, -0.07919611781835556, -0.05246540158987045, 0.016527492552995682, 0.13499562442302704, -0.015291661024093628, 0.016184914857149124, -0.13709622621536255, -0.20984205603599548, 0.058701254427433014, -0.15992510318756104, 0.036430902779102325, -0.09729541093111038, -0.24567443132400513, 0.14187723398208618, 0.11931377649307251, 0.0031336387619376183, -0.3770897686481476, -0.008223874494433403, -0.16204141080379486, -0.09094231575727463, 0.26642337441444397, -0.00010160131932934746, 0.03503832221031189, 0.09298907220363617, 0.05120760202407837, -0.3995315432548523, -0.09754395484924316, -0.21094444394111633, -0.26537102460861206, 0.16646221280097961, -0.31247031688690186, -0.03084884025156498, -0.06454779207706451, -0.10384057462215424, -0.2907901406288147, 0.4291035532951355, 0.1806691437959671, 0.30178776383399963, 0.37034156918525696, -0.18392333388328552, -0.08147365599870682, -0.0025731995701789856, 0.13602907955646515, -0.1501730978488922, 0.39688757061958313, 0.08451820909976959, 0.06711535900831223, 0.05401023104786873, 0.06874531507492065, -0.18298931419849396, -0.16646035015583038, 0.005701079964637756, 0.03330617770552635, -0.10710636526346207, -0.08792635798454285, 0.001600850373506546, 0.1248912587761879, 0.36258450150489807, -0.3336620330810547, -0.38855496048927307, -0.22725579142570496, 0.01697491481900215, 0.010799853131175041, 0.05739699676632881, 0.04014261066913605, 0.015341322869062424, -0.024547096341848373, -0.14206954836845398, 0.023032862693071365, -0.013423610478639603, -0.14718514680862427, 0.1463746577501297, -0.01911856234073639, -0.0518246553838253, 0.044015392661094666, 0.3721790313720703, -0.10019880533218384, -0.034794554114341736, -0.42787837982177734, 0.04187161102890968, 0.05998712033033371, -0.5377768874168396, -0.4182271659374237, -0.003280460834503174, -0.5745548009872437, -0.25151336193084717, 0.242082417011261, 0.2485874593257904, 0.09513223171234131, 0.29421260952949524, -0.018799394369125366, 0.2998633086681366, 0.06689521670341492, -0.012984409928321838, 0.18664425611495972, 0.15844540297985077, 0.06468790024518967, -0.09234654158353806, 0.19640183448791504, 0.05097128078341484, -0.1453683078289032, 0.21926502883434296, -0.17944154143333435, 0.10029537975788116, -0.039434123784303665, -0.45134973526000977, 0.04978165403008461, -0.36089447140693665, -0.21519865095615387, -0.09643398225307465, 0.1281973421573639, -0.16476184129714966, -0.06252950429916382, -0.0768107920885086, 0.04881972819566727, -0.1995471864938736, 0.17342901229858398, -0.2556200921535492, 0.27188220620155334, 0.02445695921778679, 0.02159450575709343, -0.05694561451673508, -0.09141699969768524, -0.0441790372133255, 0.09973166882991791, -0.02945447713136673, 0.19362255930900574, 0.2282821536064148, -0.08306276798248291, -0.20562812685966492, 0.10609336942434311, 0.13428562879562378, 0.07249367982149124, -0.10863079130649567, -0.401871919631958, -0.4661528766155243, 0.20792880654335022, -0.12399492412805557, -0.24039314687252045, 0.172195702791214, 0.3063455820083618, -0.049433495849370956, -0.26041272282600403, -0.6070004105567932, 0.325221985578537, -0.08117979019880295, 0.13489748537540436, -0.0353860929608345, 0.09235390275716782, 0.12179087102413177, -0.3821808695793152, 0.04667411744594574, 0.21213963627815247, -0.42393386363983154, 0.07543890178203583, 0.4371510148048401, 0.027544327080249786, 0.45499780774116516, 0.41057565808296204, -0.27951276302337646, 0.12508486211299896, 0.17575368285179138, 0.2624891400337219, 0.3259245455265045, -0.07039335370063782, -0.3116869032382965, 0.21369819343090057, -0.2763046622276306, 0.04803479462862015, 0.05020081624388695, 0.15372596681118011, 0.13208918273448944, -0.18005280196666718, 0.2622280716896057, 0.46705150604248047, 0.14034141600131989, 0.2515663802623749, -0.48629650473594666, -0.19100438058376312, 0.1443217694759369, 0.25129401683807373, -0.4521807134151459, 0.03561120480298996, -0.024246975779533386, 0.26953253149986267, 0.2546752691268921, -0.23659497499465942, -0.07289169728755951, 0.30782198905944824, 0.31685003638267517, -0.3446030616760254, -0.27630680799484253, -0.02584729716181755, -0.16419509053230286, 0.09586641937494278, 0.029947832226753235, -0.1285354197025299, 0.06587672233581543, -0.16066615283489227, -0.009617501869797707, 0.024819279089570045, -0.1556762009859085, 0.05770251899957657, 0.1573220044374466, -0.008206948637962341, 0.4396994113922119, 0.05978798493742943, -0.09091120958328247, 0.12656287848949432, -0.17959478497505188, 0.06614609062671661, -0.2796419560909271, 0.29029718041419983, 0.020349539816379547, -0.34822019934654236, 0.273633748292923, -0.0899026021361351, 0.03739294409751892, -0.24266037344932556, -0.21865728497505188, 0.12308497726917267, -0.06494498997926712, 0.2436864674091339, 0.30690523982048035, -0.011901691555976868, -0.03515899181365967, 0.08367666602134705, 0.1919575333595276, 0.2085307538509369, 0.14083744585514069, -0.0025740787386894226, -0.5111405253410339, 0.4881325364112854, -0.08815154433250427, 0.23107746243476868, 0.18362560868263245, -0.35655564069747925, 0.08188851922750473, 0.15293778479099274, 0.0006005503237247467, 0.18182089924812317, -0.1522517204284668, 0.5064854621887207, 0.07204213738441467, 0.20641079545021057, -0.5585557818412781, 0.2828577756881714, 0.6308920383453369, -0.25518402457237244, 0.017511673271656036, 0.29267174005508423, 0.04947223514318466, -0.27872732281684875, -0.13669821619987488, 0.05484079197049141, 0.317598819732666, 0.1794976443052292, 0.0788777694106102, -0.19972015917301178, -0.123264379799366, -0.08354174345731735, 0.16876065731048584, -0.06489120423793793, 0.37006324529647827, -0.07992043346166611, 0.35016772150993347, -0.017703980207443237, -0.19625169038772583, 0.002250470221042633, -0.16747243702411652, 0.2572055459022522, 0.062328990548849106, 0.2555958926677704, -0.2237691879272461, 0.24126216769218445, 0.14602063596248627, -0.09004954248666763, 0.07420331239700317, -0.284289687871933, 0.01418868638575077, 0.07990403473377228, -0.19591078162193298, 0.02273818477988243, -0.08938583731651306, 0.11199290305376053, 0.056220851838588715, -0.5037919282913208, -0.1990329772233963, -0.08550204336643219, -0.2611593008041382, 0.20377786457538605, 0.03908372297883034, 0.16587816178798676, 0.19118590652942657, 0.0712449848651886, -0.08507068455219269, 0.04086105898022652, -0.19970804452896118, -0.12112703919410706, -0.2610805034637451, 0.3525978922843933, -0.07713764905929565, 0.1473807841539383, -0.16729848086833954, -0.26163214445114136, 0.1869076043367386, 0.07537124305963516, -0.31486088037490845, 0.05455392599105835, -0.16852355003356934, -0.11753745377063751, 0.2826783061027527, -0.4324416220188141, -0.17147375643253326, -0.27079153060913086, 0.4579293727874756, 0.045044105499982834, 0.03372049704194069, 0.04176100715994835, 0.23120126128196716, 0.10900174826383591, 0.14173036813735962, 0.12792284786701202, -0.19692398607730865, -0.22803166508674622, 0.5487468242645264, 0.11741319298744202, -0.24021629989147186, -0.19196805357933044, -0.06142786890268326, 0.009616490453481674, -0.2422955185174942, -0.2536139488220215, -0.08454626798629761, -0.40379250049591064, 0.27079325914382935, -0.03856436908245087, -0.003955358639359474, 0.2902640700340271, 0.060181766748428345, -0.2616478204727173, 0.20319119095802307, -0.2721651792526245, -0.07059646397829056, 0.3222843110561371, -0.04597354680299759, -0.2378685176372528, 0.2979862093925476, 0.08157135546207428, 0.35110700130462646, 0.28297778964042664, -0.10555693507194519, 0.10883542895317078, 0.02625744603574276, 0.02819110080599785, -0.3876001238822937, -0.2867639362812042, 0.07818088680505753, -0.18375715613365173, 0.012692436575889587, -0.011764802038669586, -0.20352837443351746, -0.38038673996925354, 0.10867506265640259, -0.06372237205505371, -0.2526531517505646, -0.20933978259563446, 0.15906751155853271, 0.15871217846870422, -0.1664380133152008, 0.2633397579193115, 0.15110692381858826, -0.15466296672821045, 0.12663349509239197, 0.011083250865340233, -0.013517595827579498, 0.23519480228424072, -0.1817070096731186, -0.847703754901886, -0.1726401448249817, -0.4840198755264282, 0.147500142455101, -0.02740379050374031, 0.11007718741893768, 0.2601320743560791, -0.2807193398475647, 0.182817280292511, -0.3039472699165344, 0.4027148485183716, 0.052452169358730316, -0.20890183746814728, 0.3382771611213684, -0.16040998697280884, -0.35665053129196167, 0.07221947610378265, -0.08230394124984741, 0.2534727454185486, 0.39474570751190186, 0.23720060288906097, -0.31259387731552124, -0.1843009740114212, 0.3188575804233551, 0.2786615490913391, 0.04769669845700264, -0.037294644862413406, -0.29581472277641296, -0.4146122336387634, -0.254304975271225, 0.22907128930091858, -0.23545755445957184, 0.23812860250473022, 0.05207163095474243, -0.2695270776748657, -0.01781192235648632, -0.11066358536481857, 0.07720701396465302, 0.10837425291538239, 0.09659947454929352, 0.02854899875819683, 0.4691230058670044, -0.16848041117191315, 0.06849373877048492, 0.40498626232147217, 0.446694016456604, 0.08555244654417038, -0.2616367042064667, 0.03117665834724903, 0.309496134519577, 0.1668260097503662, 0.36600539088249207, 0.006527170538902283, 0.14448922872543335, -0.28091660141944885, 0.18855972588062286, 0.07467040419578552, -0.22765295207500458, 0.22464483976364136, 0.037715841084718704, -0.13639873266220093, -0.3237578868865967, 0.34960219264030457, -0.027961909770965576, 0.025048837065696716, -0.07230835407972336, -0.1132718175649643, 0.18462714552879333, 0.2218175083398819, 0.13395145535469055, 0.9346579909324646, 0.06807707250118256, 0.21864323318004608, 0.3597020208835602, -0.27162134647369385, 0.4036182761192322, -0.14399072527885437, 0.17849422991275787, -0.32612645626068115, -0.017827607691287994, 0.34037598967552185, -0.18329642713069916, 0.028563130646944046, 0.22101391851902008, -0.030975786969065666, 0.13201357424259186, -0.10538158565759659, -0.06914865970611572, -0.08531928807497025, 0.32668715715408325, -0.07897168397903442, -0.3128969967365265, -0.416763037443161, 0.23889556527137756, 0.07746260613203049, -0.17687875032424927, 0.280398428440094, -0.18834000825881958, -0.4847393035888672, 0.058137960731983185, -0.0017505362629890442, 0.33989351987838745, -0.013712340965867043, 0.2714252471923828, 0.1993318498134613, -0.3149794340133667, 0.03285917267203331, 0.14944429695606232, 0.05104875937104225, 0.23442605137825012, 0.03670889884233475, 0.11065863072872162, -0.11744586378335953, 0.3738913834095001, 0.25622570514678955, -0.30930984020233154, 0.3480423092842102, -0.04582846164703369, -0.1773751974105835, 0.1598113775253296, -0.19036832451820374, -0.3076969385147095, -0.09442030638456345, 0.203326016664505, -0.08933980762958527, -0.22942984104156494, -0.39740025997161865, 0.19606857001781464, -0.2545248568058014, -0.41452401876449585, 0.2457471638917923, 0.0782739594578743, 0.03288029134273529, 0.47487619519233704, -0.10838338732719421, -0.24366280436515808, -0.08246706426143646, 0.48013198375701904, 0.22017481923103333, 0.060006313025951385, 0.3035835921764374, -0.09382891654968262, -0.3210490942001343, -0.2355714738368988, 0.34579187631607056, 0.2800162732601166, -0.11932580918073654, 0.2572593092918396, -0.2147907167673111, 0.05121137201786041, 0.038627900183200836, 0.14114044606685638, -0.051998674869537354, -0.026045776903629303, -0.023525871336460114, 0.0007617175579071045, -0.20911142230033875, 0.09284763038158417, 0.31005555391311646, 0.03497835248708725, 0.09454519301652908, 0.12945036590099335, -0.31874576210975647, 0.178237184882164, -0.3968227803707123, 0.04890885949134827, -0.26249960064888, 0.02974914200603962, -0.05638851225376129, -0.25023385882377625, 0.21408352255821228, -0.03865011781454086, 0.3355617821216583, 0.1008082926273346, -0.07684475183486938, -0.41605597734451294, 0.028792407363653183, 0.03584979474544525, -0.15562403202056885, -0.18123504519462585, 0.05304562300443649, 0.06393450498580933, -0.21466679871082306, -0.2327253669500351, 0.03426554054021835, -0.016123415902256966, 0.009425412863492966, -0.23555243015289307, 0.1498117744922638, -0.1984955370426178, 0.1946713924407959, -0.11403365433216095, -0.20359468460083008, 0.35259753465652466, -0.05333475023508072, 0.15789955854415894, 0.012982707470655441, -0.1854415386915207, -0.3371756076812744, -0.028905853629112244, 0.08223746716976166, 0.3269316256046295, 0.19697174429893494, -0.35170167684555054, -0.25479528307914734, -0.06430328637361526, 0.1979711353778839, 0.5476309061050415, 0.0009921190794557333, -0.03552019223570824, -0.23661890625953674, 0.2946246266365051, -0.12158043682575226, -0.3579910099506378, 0.04559418559074402, -0.14352388679981232, 0.08902618288993835, -0.003119640052318573, -0.0857086181640625, 0.47567951679229736, 0.12204013764858246, -0.027191106230020523, 0.22892732918262482, 0.092349573969841, -0.048999328166246414, 0.19988490641117096, 0.21444879472255707, -0.10742950439453125, 0.32081282138824463, 0.20879189670085907, 0.3198988437652588, 0.09361745417118073, 0.07212778180837631, 0.2694583237171173, 0.1532922089099884, 0.22926326096057892, -0.22556814551353455, -0.013652829453349113, 0.004341050982475281, 0.14383700489997864, -0.08696682751178741, 0.026242639869451523, 0.3738459050655365, -0.026233457028865814, -0.17630448937416077, -0.24702681601047516, 0.04998612403869629, 0.27575188875198364, -0.13211491703987122, -0.27253302931785583, -0.1932602822780609, 0.0034896135330200195, -0.0838087797164917, 0.13556025922298431, -0.1907893419265747, -0.1359640210866928, -0.16735029220581055, -0.08077435195446014, 0.23373259603977203, -0.16129246354103088, 0.1998080015182495, -0.244785875082016, 0.2500668168067932, -0.07767770439386368, 0.07943529635667801, 0.10016817599534988, -0.022297360002994537, -0.2820627689361572, 0.11970916390419006, 0.35849452018737793, 0.13760294020175934, -0.08881525695323944, 0.2672448456287384, -0.09431016445159912, -0.17189088463783264, 0.11906133592128754, 0.16279105842113495, 0.026445575058460236, -0.17554564774036407, 0.34675201773643494, 0.23770594596862793, -0.2766532003879547, -0.0382133387029171, 0.10338246822357178, -0.07120449841022491, -0.2066875845193863, 0.027702435851097107, 0.15112175047397614, -0.22359904646873474, -0.13732874393463135, 0.11734995990991592, -0.21244585514068604, -0.034358590841293335, -0.19640189409255981, -0.040933068841695786, -0.03484911471605301, -0.07688870280981064, 0.19405566155910492, -0.0018787980079650879, 0.4558204114437103, -0.15065020322799683, 0.10834325850009918, -0.20137083530426025, 0.08959715068340302, -0.10852913558483124, -0.14527076482772827, -0.09966738522052765, 0.05961170792579651, 0.04420937970280647, 0.5059890747070312, 0.21964111924171448, 0.3198699355125427, 0.012075275182723999, 0.42222484946250916, -0.16544833779335022, 0.233066588640213, -0.3041273057460785, 0.16404804587364197, 0.06177772954106331, -0.06702880561351776, -0.054411351680755615, -0.3672463893890381, 0.24601037800312042, -0.007678425870835781, 0.18180632591247559, -0.3678819537162781, -0.1276557594537735, 0.2836918830871582, 0.4523620009422302, 0.3857596516609192, 0.08409906923770905, -0.06662721931934357, -0.2292940318584442, -0.28921154141426086, 0.21963779628276825, -0.015984535217285156, -0.04714592546224594, 0.19070841372013092, -0.044328365474939346, 0.3135710656642914, 0.1677238941192627, -0.01359185203909874, -0.0807754322886467, 0.04621749743819237, -0.17392149567604065, -0.23524059355258942, -0.1776246428489685, 0.03017851896584034, 0.10847499221563339, 0.3219671845436096, -0.03929004445672035, 0.2695940434932709, 0.03311088681221008, 0.2696535587310791, -0.33247852325439453, -0.1459175944328308, 0.3916319012641907, -0.12086379528045654, -0.17392809689044952, 0.08047166466712952, 0.18718001246452332, 0.21213877201080322, 0.13821709156036377, 0.1931227147579193, 0.013949044048786163, 0.37210923433303833, -0.18721738457679749, -0.1696108877658844, 0.41706639528274536, -0.1651672124862671, 0.065092071890831, -0.1386028379201889, 0.18673890829086304, -0.13665318489074707, -0.0025840476155281067, -0.14910684525966644, -0.37815165519714355 ]
https://github.com/huggingface/datasets/issues/3419
`.to_json` is extremely slow after `.select`
Thanks for your observations, @eladsegal! I spent some time with this and tried different approaches. Turns out that https://github.com/huggingface/datasets/blob/bb13373637b1acc55f8a468a8927a56cf4732230/src/datasets/io/json.py#L100 is giving the problem when we use `to_json` after `select`. This is when `indices` parameter in `query_table` is not `None` (if it is `None` then `to_json` should work as expected) In order to circumvent this problem, I found out instead of doing Arrow Table -> Pandas-> JSON we can directly go to JSON by using `to_pydict()` which is a little slower than the current approach but at least `select` works properly now. Lmk what you guys think of it @lhoestq, @eladsegal?
## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0
100
`.to_json` is extremely slow after `.select` ## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0 Thanks for your observations, @eladsegal! I spent some time with this and tried different approaches. Turns out that https://github.com/huggingface/datasets/blob/bb13373637b1acc55f8a468a8927a56cf4732230/src/datasets/io/json.py#L100 is giving the problem when we use `to_json` after `select`. This is when `indices` parameter in `query_table` is not `None` (if it is `None` then `to_json` should work as expected) In order to circumvent this problem, I found out instead of doing Arrow Table -> Pandas-> JSON we can directly go to JSON by using `to_pydict()` which is a little slower than the current approach but at least `select` works properly now. Lmk what you guys think of it @lhoestq, @eladsegal?
[ -0.22121649980545044, 0.10272443294525146, -0.018625743687152863, 0.11876028031110764, 0.25505247712135315, 0.12812376022338867, -0.0699111819267273, 0.4468905031681061, -0.1404290497303009, 0.0742775946855545, -0.06008546054363251, 0.7489498257637024, 0.12893088161945343, 0.048108816146850586, 0.030840717256069183, 0.10594981908798218, 0.05006306618452072, 0.020078793168067932, -0.019491426646709442, -0.0684502124786377, -0.2514803409576416, 0.044771235436201096, -0.11634045839309692, -0.10941556096076965, -0.024500396102666855, -0.22244077920913696, 0.3014979660511017, 0.09652107208967209, -0.007546130567789078, -0.5093438625335693, 0.07342635095119476, -0.1758194863796234, -0.13542884588241577, 0.20812512934207916, -0.00011373511370038614, 0.0679667741060257, 0.27196788787841797, 0.053582705557346344, -0.5365386009216309, -0.23114852607250214, -0.3573000431060791, -0.13889463245868683, 0.2557532489299774, -0.25310343503952026, -0.13364540040493011, 0.03103722631931305, -0.2982207238674164, -0.30609074234962463, 0.3510066866874695, 0.029358573257923126, 0.23096798360347748, 0.36284229159355164, -0.16468562185764313, -0.1156875416636467, 0.20097462832927704, 0.3561604619026184, -0.15608380734920502, 0.3634011447429657, 0.2044869363307953, 0.062048397958278656, 0.13999678194522858, 0.10373266041278839, -0.03726022318005562, -0.19792810082435608, 0.056109994649887085, -0.02994072064757347, -0.2686746418476105, -0.02735738456249237, -0.09161267429590225, 0.14468908309936523, 0.41005390882492065, -0.22499772906303406, -0.35444045066833496, -0.28414279222488403, -0.04215330258011818, -0.28695911169052124, 0.14767499268054962, -0.11356896907091141, 0.07572856545448303, -0.08836601674556732, -0.3265126645565033, -0.06469196081161499, 0.04335971921682358, -0.16269144415855408, 0.19790685176849365, 0.02727922797203064, -0.12105263769626617, 0.047325510531663895, 0.3540075421333313, -0.1101483702659607, -0.24364641308784485, -0.19276294112205505, 0.011134099215269089, 0.0036385012790560722, -0.6001591086387634, -0.31255042552948, 0.2634401321411133, -0.477687805891037, -0.11843125522136688, 0.15143564343452454, 0.15534788370132446, 0.06497122347354889, 0.15575461089611053, -0.12984517216682434, 0.2791088819503784, 0.2930160462856293, -0.021346502006053925, 0.13512158393859863, 0.25600743293762207, 0.42507442831993103, 0.032253775745630264, 0.12773630023002625, 0.18858829140663147, -0.12010572850704193, 0.1591014862060547, -0.011667050421237946, 0.22956393659114838, -0.17274132370948792, -0.5613190531730652, 0.29191118478775024, -0.25078409910202026, -0.19399221241474152, 0.09011998027563095, 0.10561570525169373, -0.04292432218790054, -0.1535501480102539, 0.08474841713905334, 0.08017633855342865, -0.3961693048477173, 0.17510001361370087, -0.2035049945116043, 0.07656131684780121, -0.04286003112792969, 0.11746910214424133, -0.018780749291181564, -0.3109203577041626, -0.08116927742958069, 0.27741989493370056, -0.03234478086233139, 0.1001662015914917, 0.22955474257469177, -0.05654631927609444, -0.037803374230861664, 0.2724796235561371, -0.03699225187301636, 0.22971464693546295, -0.06686432659626007, -0.48629528284072876, -0.42165717482566833, 0.1722469925880432, -0.27825164794921875, -0.22763682901859283, 0.1720309853553772, 0.2213505059480667, -0.13061995804309845, -0.14398182928562164, -0.6190978288650513, 0.2602890431880951, 0.019380658864974976, 0.1665799766778946, 0.030372343957424164, 0.03340297192335129, -0.28421550989151, -0.2251516878604889, 0.20231187343597412, 0.4405195116996765, -0.47708767652511597, 0.03861669450998306, 0.28173625469207764, -0.009271014481782913, 0.33689042925834656, 0.35940513014793396, -0.15309076011180878, 0.12909045815467834, 0.02732347510755062, 0.3048480749130249, 0.03353307396173477, -0.11458249390125275, -0.36032068729400635, 0.1636500358581543, -0.35051870346069336, 0.24386371672153473, -0.005715861916542053, 0.06101946160197258, 0.15140175819396973, -0.1962343454360962, 0.4059719443321228, 0.3996651768684387, 0.1287597119808197, 0.1235579326748848, -0.4668511748313904, -0.25618335604667664, 0.0911668911576271, 0.2694248855113983, -0.5443955063819885, -0.020524047315120697, -0.025091707706451416, 0.07193110138177872, 0.190843865275383, -0.22451233863830566, -0.007059969939291477, 0.3932715058326721, 0.4758758246898651, -0.25220614671707153, -0.0497872531414032, 0.07915200293064117, -0.28437983989715576, 0.19390162825584412, 0.08841536939144135, -0.16307270526885986, -0.0640571266412735, -0.22321882843971252, -0.11104743182659149, 0.03323926776647568, -0.24784164130687714, 0.046134211122989655, 0.045502133667469025, -0.19867852330207825, 0.2824603021144867, 0.17165257036685944, 0.020963314920663834, 0.03585682064294815, -0.10625492036342621, -0.030347226187586784, -0.6539129614830017, 0.08985532075166702, 0.1172933503985405, -0.2634695768356323, 0.2731592357158661, 0.04704657196998596, 0.12746994197368622, -0.27074164152145386, -0.3214111328125, 0.1371389925479889, 0.045029036700725555, 0.3204576075077057, 0.13542500138282776, 0.10933323204517365, 0.11708720028400421, 0.045333895832300186, 0.1104482039809227, 0.235452800989151, 0.18057425320148468, -0.081320621073246, -0.46577903628349304, 0.4923701882362366, -0.2915324568748474, 0.3387352228164673, 0.10775980353355408, -0.36150357127189636, 0.125870019197464, 0.1946074366569519, 0.06546713411808014, 0.03246740251779556, 0.1312694102525711, 0.4772084355354309, 0.21244977414608002, 0.12121391296386719, -0.5144758820533752, 0.3360310196876526, 0.46457046270370483, -0.1469956934452057, 0.028579052537679672, 0.3510463535785675, 0.051995448768138885, -0.26101595163345337, -0.015581252053380013, 0.1390165239572525, 0.2602507472038269, 0.028164193034172058, -0.029363948851823807, -0.1913943737745285, -0.07041182368993759, -0.21895885467529297, 0.13767534494400024, -0.24152810871601105, 0.24565915763378143, 0.1483844816684723, 0.44732072949409485, -0.032429859042167664, -0.23877760767936707, 0.17679660022258759, -0.19741952419281006, 0.23493452370166779, -0.180941641330719, 0.2663916051387787, -0.3574253022670746, 0.25309887528419495, 0.15151695907115936, -0.013396852649748325, -0.08431796729564667, -0.348761647939682, 0.05852413922548294, 0.11454324424266815, -0.23193125426769257, 0.024106048047542572, -0.054489798843860626, 0.1498371660709381, 0.16850104928016663, -0.438239187002182, -0.2993871569633484, -0.19664880633354187, -0.1576525866985321, 0.03361724317073822, 0.03584246709942818, -0.023832380771636963, 0.1410062313079834, 0.06987029314041138, -0.11075237393379211, -0.05142514407634735, -0.3640061914920807, -0.11497759819030762, -0.251473605632782, 0.6055207848548889, 0.14855149388313293, 0.10125374048948288, -0.101771280169487, -0.07329698652029037, 0.2689743936061859, 0.18162965774536133, -0.3637195825576782, 0.16025283932685852, -0.25751885771751404, 0.11960049718618393, 0.166020929813385, -0.4174371063709259, -0.0465087965130806, -0.20575018227100372, 0.5190742611885071, -0.13023030757904053, -0.012837626039981842, 0.28381261229515076, 0.2633405327796936, 0.0694030225276947, 0.15869411826133728, 0.14445719122886658, -0.2756015360355377, -0.17597320675849915, 0.5513933897018433, 0.06171542778611183, -0.13431786000728607, -0.293493390083313, 0.03724284470081329, -0.035324010998010635, -0.11324343830347061, -0.47525519132614136, -0.06325509399175644, -0.5432243347167969, 0.13471990823745728, -0.22381657361984253, 0.09419787675142288, 0.2979942560195923, 0.07021353393793106, -0.14111679792404175, 0.11161322146654129, -0.4074326157569885, 0.0897672101855278, 0.3451038897037506, -0.0651412233710289, -0.22445446252822876, 0.537528932094574, 0.07398901879787445, 0.5368630886077881, 0.24157309532165527, -0.020210374146699905, 0.2776852250099182, 0.1894547939300537, 0.10002513229846954, -0.4498462378978729, -0.233978271484375, -0.11829762160778046, -0.11328333616256714, -0.1261286735534668, -0.09172873198986053, -0.1393384337425232, -0.27527838945388794, 0.18041646480560303, -0.22301508486270905, -0.16890692710876465, -0.23009233176708221, 0.10718173533678055, 0.12081010639667511, -0.08519495278596878, 0.2056713104248047, 0.1470314860343933, -0.09967796504497528, -0.005236790515482426, -0.050607386976480484, -0.09043009579181671, 0.4244464933872223, -0.2886028289794922, -0.7247640490531921, -0.4398968815803528, -0.46287912130355835, 0.11176186800003052, -0.10986574739217758, 0.3767341077327728, 0.13698676228523254, -0.3409460186958313, 0.254791796207428, -0.20769402384757996, 0.510979950428009, 0.07851411402225494, -0.05386982858181, 0.35778751969337463, -0.24095113575458527, -0.3276948630809784, -0.0019097402691841125, 0.016868960112333298, 0.47095978260040283, 0.0974465161561966, 0.44030001759529114, -0.3692786991596222, -0.1569027304649353, 0.27430641651153564, 0.4493204355239868, -0.030828630551695824, -0.10484802722930908, -0.3250126540660858, -0.434177428483963, -0.1418233960866928, 0.2405962347984314, -0.30149611830711365, 0.21990607678890228, -0.07544121891260147, -0.16044436395168304, 0.06089145690202713, -0.10473205149173737, -0.12519532442092896, -0.002267054282128811, 0.23283541202545166, 0.043947700411081314, 0.5978379845619202, -0.08799263834953308, -0.038106948137283325, 0.44814780354499817, 0.6538856625556946, 0.04020792990922928, -0.24323850870132446, -0.012200389057397842, 0.3660719394683838, -0.02453143149614334, 0.38927438855171204, -0.03379490599036217, 0.33837807178497314, -0.09901481866836548, 0.13273747265338898, -0.20835450291633606, -0.41608360409736633, 0.20677241683006287, -0.0834384486079216, -0.19870172441005707, -0.09987087547779083, 0.5511419177055359, -0.05438391864299774, 0.004150070250034332, 0.025783538818359375, 0.04634423553943634, 0.09844932705163956, 0.24992264807224274, 0.1865965723991394, 0.9694730043411255, 0.011653188616037369, 0.08771403878927231, 0.1952994167804718, -0.26252737641334534, 0.40397337079048157, -0.0698014572262764, 0.17932812869548798, -0.37228477001190186, -0.2326887995004654, 0.4106883704662323, -0.1825081706047058, -0.11535779386758804, 0.0871657207608223, -0.026500653475522995, 0.14591965079307556, -0.3671036958694458, 0.00423799455165863, -0.16566522419452667, 0.32381781935691833, -0.2722277045249939, -0.17816364765167236, -0.26593491435050964, 0.12677602469921112, 0.055588603019714355, -0.1337859034538269, 0.18688064813613892, -0.20591790974140167, -0.40022149682044983, -0.04852250963449478, -0.0304097980260849, 0.27763816714286804, -0.14207817614078522, 0.3259577751159668, 0.20065170526504517, -0.5472699403762817, 0.2419353723526001, 0.08727896213531494, 0.045135948807001114, 0.34830567240715027, -0.1347285956144333, 0.1306551992893219, -0.13872921466827393, 0.483015775680542, 0.3010188341140747, -0.355918288230896, 0.3081846237182617, 0.16403907537460327, -0.08834442496299744, -0.10268796235322952, -0.06987395882606506, -0.26326984167099, 0.039458826184272766, 0.17490559816360474, -0.306022047996521, -0.18491241335868835, -0.42953306436538696, 0.08764995634555817, 0.059915851801633835, -0.38172125816345215, 0.1603056788444519, 0.15436866879463196, 0.09031496196985245, 0.3944988548755646, -0.22762341797351837, -0.20834985375404358, -0.004690699279308319, 0.5529917478561401, 0.03865988552570343, 0.03598935902118683, 0.3539143204689026, 0.20636601746082306, -0.29903000593185425, -0.11070074886083603, 0.29925307631492615, 0.34530630707740784, -0.38458484411239624, 0.33813145756721497, -0.222059428691864, 0.2972205877304077, -0.17950966954231262, 0.16351087391376495, -0.25158047676086426, -0.14549070596694946, -0.04511959105730057, 0.003748789429664612, -0.20412768423557281, 0.21192678809165955, 0.35828760266304016, 0.028999606147408485, 0.002284526824951172, -0.1402251273393631, -0.32957619428634644, 0.314136803150177, -0.2951626181602478, 0.13137930631637573, -0.2917512357234955, 0.16313733160495758, 0.13528697192668915, -0.04970119148492813, 0.22135592997074127, -0.192582905292511, 0.17152000963687897, 0.04110695421695709, -0.024328067898750305, -0.31348875164985657, -0.04417303949594498, 0.08666346222162247, -0.16890597343444824, -0.29675430059432983, 0.06217822805047035, -0.009311024099588394, -0.1334543526172638, -0.2093479037284851, -0.02793974243104458, 0.036038778722286224, -0.028358928859233856, -0.2051324099302292, 0.20949514210224152, -0.06129851192235947, 0.22953523695468903, 0.0338117778301239, -0.21044057607650757, 0.32401415705680847, 0.008804868906736374, 0.13322745263576508, -0.0023436888586729765, -0.15358132123947144, -0.4801926612854004, -0.05589856952428818, -0.006059274077415466, 0.27356886863708496, 0.22644254565238953, -0.2720620036125183, -0.24021711945533752, 0.1876884400844574, 0.3303722143173218, 0.5346555709838867, -0.08140566945075989, -0.032325226813554764, -0.26762455701828003, 0.20317229628562927, 0.06218228489160538, -0.34592318534851074, 0.07188138365745544, -0.11991553753614426, 0.0011618249118328094, 0.014714151620864868, 0.05401316657662392, 0.5162482261657715, 0.10401374101638794, -0.01477164775133133, 0.23011253774166107, 0.11116552352905273, 0.14319078624248505, 0.25226303935050964, 0.23284129798412323, -0.14421336352825165, 0.19267338514328003, 0.049476005136966705, 0.34230196475982666, 0.08128723502159119, 0.15822833776474, 0.18450522422790527, 0.3619939982891083, 0.2237619012594223, -0.14036208391189575, -0.2129869908094406, 0.002567291259765625, 0.2055187076330185, -0.0880570262670517, 0.006656322628259659, 0.2798718512058258, 0.21190616488456726, -0.2851942181587219, -0.19545644521713257, 0.04261971265077591, 0.37792375683784485, -0.14394444227218628, -0.32911956310272217, -0.1696666181087494, -0.01809825748205185, -0.06776189804077148, 0.1926560252904892, -0.2493194043636322, 0.018409304320812225, -0.10370977222919464, -0.032252237200737, 0.13350796699523926, -0.3210693299770355, 0.09032291173934937, -0.11137708276510239, 0.342043399810791, -0.09460916370153427, 0.17271530628204346, 0.21963657438755035, -0.0700744241476059, -0.22113996744155884, 0.40629956126213074, 0.40472903847694397, 0.2171660214662552, -0.13577041029930115, 0.35155242681503296, 0.04036113619804382, -0.04843508452177048, 0.1880154013633728, 0.277134507894516, -0.1155276745557785, -0.08327926695346832, 0.1602645069360733, 0.0993524044752121, -0.18399371206760406, -0.03918033465743065, 0.06546380370855331, 0.04264216870069504, -0.19684727489948273, -0.20112252235412598, 0.1076931431889534, -0.17194247245788574, -0.17830833792686462, 0.03131428360939026, -0.15544679760932922, 0.12253585457801819, 0.015054421499371529, 0.05827280879020691, 0.06674348562955856, -0.08527381718158722, 0.1455869823694229, -0.05987926200032234, 0.3799324035644531, -0.03334777429699898, -0.00795447826385498, -0.3831625282764435, 0.08311988413333893, -0.10546618700027466, -0.22287222743034363, -0.10980166494846344, 0.21415148675441742, 0.11439666152000427, 0.46803563833236694, 0.04050518944859505, 0.15238645672798157, 0.08826480805873871, 0.28816890716552734, -0.03863169252872467, 0.21162012219429016, -0.1658526062965393, 0.044607095420360565, -0.13484765589237213, -0.24432414770126343, -0.20285701751708984, -0.259479284286499, 0.23110218346118927, 0.1844405233860016, 0.031790465116500854, -0.4674378037452698, -0.012209400534629822, 0.07679158449172974, 0.6055024862289429, 0.380400687456131, 0.2365678995847702, -0.0354955792427063, -0.2536362409591675, -0.34999096393585205, 0.1917378008365631, -0.10334083437919617, -0.025122981518507004, 0.21285569667816162, -0.13282957673072815, 0.263476699590683, 0.12704718112945557, -0.10842116177082062, -0.2460082769393921, 0.10502495616674423, -0.3867132067680359, -0.15104897320270538, -0.31495246291160583, 0.005806233733892441, -0.0769917219877243, 0.23854473233222961, 0.13693292438983917, 0.27108636498451233, 0.10128968209028244, 0.38476309180259705, -0.40374755859375, -0.33826571702957153, 0.27535778284072876, -0.1265709549188614, -0.021607233211398125, 0.18888966739177704, 0.2227274775505066, 0.1976965069770813, 0.10426447540521622, 0.1049027219414711, 0.02850876748561859, 0.4026561677455902, -0.1105770692229271, -0.15926901996135712, 0.48900577425956726, -0.03696366772055626, 0.050057459622621536, -0.16625456511974335, 0.4028359353542328, 0.03320406749844551, 0.0011176429688930511, -0.07627435028553009, -0.30117273330688477 ]
https://github.com/huggingface/datasets/issues/3419
`.to_json` is extremely slow after `.select`
Posting it in @eladsegal's format: For `squad`: Saving examples using current `to_json` in 3.63 secs Saving examples to `from_select1_fast.json` in 5.00 secs Saving examples to `from_select2_fast.json` in 2.45 secs Saving examples to `from_select3_fast.json` in 2.50 secs For `squad_v2`: Saving examples using current `to_json` in 5.26 secs Saving examples to `from_select1_fast.json` in 7.54 secs Saving examples to `from_select2_fast.json` in 3.80 secs Saving examples to `from_select3_fast.json` in 3.67 secs
## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0
67
`.to_json` is extremely slow after `.select` ## Describe the bug Saving a dataset to JSON with `to_json` is extremely slow after using `.select` on the original dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset original = load_dataset("squad", split="train") original.to_json("from_original.json") # Takes 0 seconds selected_subset1 = original.select([i for i in range(len(original))]) selected_subset1.to_json("from_select1.json") # Takes 212 seconds selected_subset2 = original.select([i for i in range(int(len(original) / 2))]) selected_subset2.to_json("from_select2.json") # Takes 90 seconds ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: master (https://github.com/huggingface/datasets/commit/6090f3cfb5c819f441dd4a4bb635e037c875b044) - Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.27 - Python version: 3.9.7 - PyArrow version: 6.0.0 Posting it in @eladsegal's format: For `squad`: Saving examples using current `to_json` in 3.63 secs Saving examples to `from_select1_fast.json` in 5.00 secs Saving examples to `from_select2_fast.json` in 2.45 secs Saving examples to `from_select3_fast.json` in 2.50 secs For `squad_v2`: Saving examples using current `to_json` in 5.26 secs Saving examples to `from_select1_fast.json` in 7.54 secs Saving examples to `from_select2_fast.json` in 3.80 secs Saving examples to `from_select3_fast.json` in 3.67 secs
[ -0.31013965606689453, 0.09257632493972778, -0.10853530466556549, -0.034902364015579224, 0.18215125799179077, 0.13894474506378174, -0.05133345350623131, 0.4654996991157532, -0.17021910846233368, 0.08594603091478348, 0.06178141385316849, 0.6600275635719299, 0.05252641439437866, 0.0195466261357069, -0.10492251813411713, -0.021994784474372864, 0.09475845843553543, -0.07872450351715088, 0.17327435314655304, -0.0824117511510849, -0.13274697959423065, 0.1048041582107544, -0.19507119059562683, -0.019046232104301453, -0.05566781759262085, -0.30360493063926697, 0.295305073261261, 0.1781027615070343, 0.015508715063333511, -0.47848784923553467, 0.10587657988071442, -0.17305125296115875, -0.0840064212679863, 0.2338906228542328, -0.00010665791342034936, 0.03688178211450577, 0.19291900098323822, 0.08257249742746353, -0.3625866770744324, -0.08953599631786346, -0.39080148935317993, -0.27173465490341187, 0.12068215012550354, -0.28435972332954407, -0.10112614184617996, -0.04392372444272041, -0.1937711238861084, -0.44816601276397705, 0.33566707372665405, 0.1652197241783142, 0.2847042381763458, 0.414094477891922, -0.25472769141197205, -0.20327307283878326, 0.004436179995536804, 0.19081078469753265, -0.21820294857025146, 0.43734490871429443, 0.23474515974521637, 0.08907853811979294, 0.15625257790088654, 0.04305538907647133, -0.06265288591384888, -0.11507853865623474, -0.005113199353218079, -0.03795921802520752, -0.06842494755983353, -0.04973593354225159, -0.021492939442396164, 0.014602873474359512, 0.44325366616249084, -0.2930615246295929, -0.3304579555988312, -0.2409866452217102, -0.13289527595043182, -0.03351892530918121, 0.10386580973863602, -0.009289862588047981, 0.0008334387093782425, -0.08070425689220428, -0.24201402068138123, 0.0014884925913065672, 0.05387027561664581, -0.09260298311710358, 0.3070175051689148, -0.07010091841220856, -0.11996540427207947, 0.09395004063844681, 0.2816174328327179, -0.13151945173740387, -0.09527502208948135, -0.3491819202899933, -0.07102105021476746, 0.00045053381472826004, -0.5408177375793457, -0.41360124945640564, 0.04654254764318466, -0.4677431881427765, -0.16505253314971924, 0.17908266186714172, 0.09146040678024292, 0.017231866717338562, 0.11700524389743805, -0.022164739668369293, 0.3905237019062042, 0.13356107473373413, 0.010407626628875732, 0.2518075108528137, 0.20832586288452148, 0.19597561657428741, -0.058482229709625244, 0.14546585083007812, 0.19993595778942108, -0.2137698382139206, 0.35698261857032776, -0.02106473594903946, 0.19269712269306183, -0.17592157423496246, -0.5197473168373108, 0.16987007856369019, -0.2654919922351837, -0.19621919095516205, 0.002695455215871334, 0.15229111909866333, -0.12200989574193954, -0.09257341176271439, 0.002350468188524246, 0.10027390718460083, -0.2956947386264801, 0.08933738619089127, -0.24411223828792572, 0.18405649065971375, 0.027575071901082993, 0.10230090469121933, -0.12101341784000397, -0.1915975660085678, 0.04395126551389694, 0.2082807719707489, -0.08909732103347778, 0.06207404285669327, 0.2927587926387787, -0.15734833478927612, -0.09276468306779861, 0.0887933149933815, 0.07559438049793243, 0.2409786731004715, -0.08683903515338898, -0.4670548439025879, -0.3881094455718994, 0.1809861660003662, -0.246984601020813, -0.19126521050930023, 0.0847606211900711, 0.30244651436805725, -0.11234923452138901, -0.25807616114616394, -0.6403442621231079, 0.2589896619319916, 0.08005771040916443, 0.003374118357896805, 0.04676580801606178, -0.032760731875896454, -0.10957036167383194, -0.30899521708488464, 0.05179484933614731, 0.30482351779937744, -0.49870285391807556, 0.07097838819026947, 0.29132023453712463, -0.011349454522132874, 0.4098982512950897, 0.43450912833213806, -0.23026201128959656, 0.12395374476909637, 0.02860683761537075, 0.21464474499225616, 0.24145729839801788, -0.05260050669312477, -0.332241415977478, 0.1941470056772232, -0.2921781837940216, 0.19244913756847382, -0.020415902137756348, 0.18231911957263947, 0.07355417311191559, -0.2719915807247162, 0.282676100730896, 0.5098425149917603, 0.13362403213977814, 0.22261124849319458, -0.5169450640678406, -0.21508291363716125, 0.038037706166505814, 0.21038435399532318, -0.42737436294555664, 0.02628409117460251, -0.04029890149831772, 0.2743604779243469, 0.29633828997612, -0.1894916296005249, -0.09609275311231613, 0.43378525972366333, 0.3958439528942108, -0.287639856338501, -0.19603176414966583, -0.11905510723590851, -0.20492443442344666, 0.17315006256103516, 0.10135538876056671, -0.33167704939842224, 0.16139745712280273, -0.1059206873178482, -0.12201360613107681, -0.03256368264555931, -0.3136018216609955, 0.046759262681007385, 0.11787614226341248, 0.06964460760354996, 0.34172943234443665, 0.12530501186847687, 0.06989549100399017, 0.16574807465076447, -0.12506483495235443, -0.044176895171403885, -0.4724465310573578, 0.2642073333263397, -0.02744426764547825, -0.36747807264328003, 0.20008179545402527, -0.07125651091337204, 0.1593778133392334, -0.24546794593334198, -0.34362906217575073, 0.19456440210342407, 0.06252305954694748, 0.2814652621746063, 0.1846230924129486, 0.0023093372583389282, -0.020704539492726326, -0.014988195151090622, 0.14276370406150818, 0.350174218416214, 0.1804855316877365, -0.02461245283484459, -0.4810675084590912, 0.46108418703079224, -0.07406805455684662, 0.1711319088935852, 0.17250019311904907, -0.3167746961116791, 0.1461382955312729, 0.11348426342010498, 0.17976675927639008, 0.038149163126945496, 0.03882116451859474, 0.4783591032028198, 0.12701213359832764, 0.046491220593452454, -0.5469591617584229, 0.31048598885536194, 0.61204594373703, -0.1466088742017746, 0.03537517040967941, 0.25906267762184143, 0.027931220829486847, -0.25058093667030334, -0.14802777767181396, 0.11694745719432831, 0.4037785530090332, 0.09127827733755112, 0.022195089608430862, -0.20118139684200287, 0.01940363645553589, -0.1583775281906128, 0.14311227202415466, -0.1335950493812561, 0.30386123061180115, 0.058747198432683945, 0.4947930574417114, -0.016354676336050034, -0.16299092769622803, -0.028813030570745468, -0.15776166319847107, 0.23933649063110352, -0.08934523165225983, 0.24115534126758575, -0.2787182033061981, 0.20550143718719482, 0.020222682505846024, -0.06063700094819069, 0.061007678508758545, -0.3003530204296112, -0.021414082497358322, 0.11917202174663544, -0.149989053606987, -0.02416693978011608, -0.09481538832187653, 0.06682924926280975, 0.1080942153930664, -0.4636530578136444, -0.19293972849845886, -0.09249652177095413, -0.273466020822525, 0.12946957349777222, 0.0319552980363369, 0.06601705402135849, 0.2641524076461792, 0.12179670482873917, -0.214078888297081, -0.055229365825653076, -0.25891202688217163, -0.1643756777048111, -0.13865245878696442, 0.5349963903427124, 0.007682643830776215, 0.1347980797290802, 0.014630157500505447, -0.2734350264072418, 0.21791061758995056, 0.1252843588590622, -0.29621651768684387, 0.06422017514705658, -0.21776750683784485, -0.06897405534982681, 0.2944492697715759, -0.4831008017063141, -0.16606277227401733, -0.27718213200569153, 0.40623927116394043, 0.027005735784769058, -0.04222612828016281, 0.2060845047235489, 0.1874750703573227, 0.046861227601766586, 0.19745197892189026, 0.17903344333171844, -0.2560669779777527, -0.2406071275472641, 0.45107126235961914, 0.0564359575510025, -0.15518911182880402, -0.17530325055122375, -0.024883069097995758, -0.05249299481511116, -0.2502903938293457, -0.3361753821372986, -0.0892983078956604, -0.6219491362571716, 0.3222269117832184, -0.11406488716602325, -0.035358235239982605, 0.26466429233551025, -0.003236606251448393, -0.19943903386592865, 0.11223078519105911, -0.4300958216190338, -0.022461868822574615, 0.3420812785625458, -0.013180918991565704, -0.21305224299430847, 0.35298773646354675, 0.10976967215538025, 0.45543885231018066, 0.4090585708618164, -0.10871018469333649, 0.19085098803043365, 0.1020553857088089, -0.039371926337480545, -0.4100891947746277, -0.34722596406936646, 0.03797965496778488, -0.13121220469474792, -0.10692651569843292, -0.05476444959640503, -0.16029363870620728, -0.27986329793930054, 0.18777090311050415, -0.13002566993236542, -0.17486095428466797, -0.18480254709720612, -0.012228397652506828, 0.10841261595487595, -0.11090152710676193, 0.1959538608789444, 0.15807116031646729, -0.16021370887756348, 0.037174586206674576, 0.02071589045226574, 0.09679090231657028, 0.17525066435337067, -0.16778531670570374, -0.8466298580169678, -0.17085321247577667, -0.27581560611724854, 0.1545548290014267, -0.06442993134260178, 0.27984723448753357, 0.060375671833753586, -0.2538929283618927, 0.20770734548568726, -0.21474988758563995, 0.3861209750175476, -0.08299020677804947, -0.03925737738609314, 0.3458835482597351, -0.16946516931056976, -0.30960479378700256, -0.0755181610584259, 0.004101745784282684, 0.33250969648361206, 0.45654964447021484, 0.31453269720077515, -0.2081245481967926, -0.1740025132894516, 0.3638341426849365, 0.42908987402915955, -0.03215610235929489, -0.08442136645317078, -0.280990332365036, -0.3629005253314972, -0.1883356124162674, 0.12454210221767426, -0.25606825947761536, 0.18416133522987366, 0.05119642615318298, -0.29764270782470703, 0.037128299474716187, -0.11787380278110504, -0.06560835242271423, 0.005678324028849602, 0.20045879483222961, -0.0027001339476555586, 0.5787898898124695, -0.2049255222082138, -0.03146766126155853, 0.2888970673084259, 0.5709425210952759, 0.15424396097660065, -0.3821652829647064, 0.008841774426400661, 0.29776912927627563, 0.08831845223903656, 0.3387290835380554, -0.09164193272590637, 0.2050306499004364, -0.21483592689037323, 0.18575483560562134, -0.05608746036887169, -0.21098965406417847, 0.26379215717315674, -0.027289360761642456, -0.2365075945854187, -0.28550654649734497, 0.4411308467388153, 0.07883371412754059, 0.007382452487945557, 0.0233721062541008, -0.21271176636219025, 0.13272428512573242, 0.20876988768577576, 0.07573704421520233, 0.9146386384963989, 0.040094874799251556, 0.062293753027915955, 0.25469809770584106, -0.25140586495399475, 0.32818475365638733, -0.08158225566148758, 0.12355687469244003, -0.4180956184864044, -0.17373694479465485, 0.41789332032203674, -0.2391076385974884, 0.014629889279603958, 0.016043055802583694, -0.13406433165073395, 0.1650850772857666, -0.2698453366756439, -0.09505733847618103, -0.11981560289859772, 0.33252808451652527, -0.12274206429719925, -0.17920687794685364, -0.2915993928909302, 0.21535184979438782, 0.08111858367919922, -0.06391261518001556, 0.21300995349884033, -0.15459193289279938, -0.3768329322338104, -0.012967724353075027, -0.13671040534973145, 0.3906553387641907, -0.044404879212379456, 0.30097007751464844, 0.16255734860897064, -0.42347079515457153, 0.2521555423736572, 0.19594460725784302, 0.12848711013793945, 0.33913201093673706, -0.05348432809114456, 0.18005916476249695, -0.11624518781900406, 0.4226052463054657, 0.2669222354888916, -0.35145303606987, 0.2739730477333069, 0.07659033685922623, -0.1275441199541092, 0.04400177672505379, -0.17187418043613434, -0.22342845797538757, -0.2126678228378296, 0.18082216382026672, -0.07172361016273499, -0.2756921350955963, -0.5213320851325989, 0.18441973626613617, -0.101324662566185, -0.43806976079940796, 0.22178661823272705, 0.12047086656093597, 0.08096680045127869, 0.4348754584789276, -0.2310788780450821, -0.2594289779663086, -0.016850214451551437, 0.49551892280578613, 0.17973142862319946, 0.016750909388065338, 0.34188413619995117, 0.05833044275641441, -0.2940688133239746, -0.2150212526321411, 0.3009856343269348, 0.24996984004974365, -0.2016393542289734, 0.32382431626319885, -0.24387668073177338, 0.21860389411449432, 0.0021024663001298904, 0.22024251520633698, -0.21766997873783112, -0.10021927207708359, -0.026191476732492447, -0.1161290854215622, -0.17655718326568604, 0.010391317307949066, 0.2585361897945404, 0.012713722884654999, 0.08911212533712387, 0.013983101584017277, -0.3266409635543823, 0.3008520305156708, -0.3602864742279053, 0.05835971236228943, -0.22958293557167053, 0.11080197989940643, -0.02516505867242813, -0.11657584458589554, 0.1572754830121994, -0.09730929136276245, 0.27977633476257324, 0.03187277913093567, -0.028995461761951447, -0.36459916830062866, -0.03641131892800331, 0.05150322616100311, -0.16334804892539978, -0.23240944743156433, 0.05519725754857063, -0.003727404400706291, -0.12357668578624725, -0.200129434466362, 0.01836201921105385, 0.040762558579444885, -0.030739344656467438, -0.12602005898952484, 0.09386178106069565, -0.17741715908050537, 0.2055576890707016, -0.041346244513988495, -0.3030070662498474, 0.27601784467697144, 0.03410089761018753, 0.20868530869483948, 0.010182946920394897, -0.12728656828403473, -0.4688553214073181, -0.057671837508678436, 0.0906791016459465, 0.39956507086753845, 0.18442311882972717, -0.298963725566864, -0.23014584183692932, 0.11510839313268661, 0.20330464839935303, 0.5399261713027954, -0.09582880884408951, 0.01732541061937809, -0.30842775106430054, 0.2632664442062378, 0.019124135375022888, -0.4331236779689789, 0.06107084080576897, -0.07921996712684631, 0.06368353962898254, 0.028948552906513214, -0.07189982384443283, 0.397824227809906, 0.11498601734638214, -0.023936910554766655, 0.2540377378463745, 0.05075322836637497, 0.15409158170223236, 0.25388509035110474, 0.31894955039024353, -0.1823313981294632, 0.22281870245933533, 0.11256839334964752, 0.34146809577941895, 0.10664354264736176, 0.13250623643398285, 0.2869620621204376, 0.3179698884487152, 0.18717904388904572, -0.18455561995506287, -0.1908397078514099, 0.02608431875705719, 0.17209488153457642, -0.07771523296833038, 0.00432354211807251, 0.3552826941013336, -0.051971130073070526, -0.2506078779697418, -0.22680707275867462, -0.03184593468904495, 0.19833511114120483, -0.128874272108078, -0.24403801560401917, -0.05622827261686325, 0.03492497652769089, -0.06372758001089096, 0.1971297711133957, -0.2385336458683014, -0.051333263516426086, -0.020840942859649658, -0.058973848819732666, 0.13555289804935455, -0.29537537693977356, 0.18217939138412476, -0.0715017095208168, 0.24381867051124573, -0.17537997663021088, 0.17572595179080963, 0.10618966072797775, -0.06579405069351196, -0.3179670572280884, 0.2435903251171112, 0.42819803953170776, 0.2374991923570633, -0.01506057009100914, 0.270089328289032, -0.04483418166637421, -0.18041999638080597, 0.17963147163391113, 0.26132041215896606, -0.11818990111351013, -0.024341844022274017, 0.2987753450870514, 0.2251610904932022, -0.2207576334476471, 0.008734401315450668, 0.14991769194602966, -0.021224483847618103, -0.24088656902313232, 0.028683535754680634, 0.05150794982910156, -0.16498762369155884, -0.1302061229944229, 0.052371010184288025, -0.1951957643032074, -0.09571273624897003, -0.06207381561398506, 0.07892517745494843, 0.11151470988988876, -0.029138978570699692, 0.1786736696958542, -0.10390576720237732, 0.33193060755729675, -0.03677857294678688, 0.02715570479631424, -0.3571571409702301, 0.0486234575510025, 0.0007782578468322754, -0.15633782744407654, -0.10639755427837372, 0.006981207057833672, 0.059579961001873016, 0.498371958732605, 0.06648541986942291, 0.23382052779197693, 0.07660700380802155, 0.42964980006217957, -0.06473574787378311, 0.24557022750377655, -0.3015606701374054, 0.06283631920814514, 0.08032244443893433, -0.20025618374347687, -0.033295683562755585, -0.38482680916786194, 0.20110858976840973, 0.07347632199525833, 0.13839229941368103, -0.43154358863830566, -0.17712050676345825, 0.2503592371940613, 0.451297789812088, 0.4131146967411041, 0.16143836081027985, 0.003615543246269226, -0.25734442472457886, -0.26933449506759644, 0.1759980171918869, -0.14681686460971832, -0.051409728825092316, 0.2133854329586029, -0.06178508326411247, 0.37488070130348206, 0.0893227756023407, 0.16831031441688538, -0.16998222470283508, 0.0404125340282917, -0.24278098344802856, -0.15186846256256104, -0.19158469140529633, 0.008158870041370392, 0.030631043016910553, 0.3977578282356262, -0.0026165517047047615, 0.21296170353889465, 0.058822114020586014, 0.38068491220474243, -0.3954159617424011, -0.2092844843864441, 0.3522682189941406, 0.027337808161973953, -0.10227851569652557, 0.10183773934841156, 0.2965157628059387, 0.1349649727344513, 0.1559077501296997, 0.2583506405353546, 0.02070923149585724, 0.49726158380508423, -0.1409357786178589, -0.1424000859260559, 0.4585300385951996, -0.1121123731136322, 0.09350889921188354, -0.07738196849822998, 0.3209472894668579, -0.040727004408836365, -0.08363866806030273, 0.05618218705058098, -0.25554606318473816 ]
https://github.com/huggingface/datasets/issues/3416
disaster_response_messages unavailable
Hi, thanks for reporting! This is a duplicate of https://github.com/huggingface/datasets/issues/3240. We are working on a fix.
## Dataset viewer issue for '* disaster_response_messages*' **Link:** https://huggingface.co/datasets/disaster_response_messages Dataset unavailable. Link dead: https://datasets.appen.com/appen_datasets/disaster_response_data/disaster_response_messages_training.csv Am I the one who added this dataset ?No
16
disaster_response_messages unavailable ## Dataset viewer issue for '* disaster_response_messages*' **Link:** https://huggingface.co/datasets/disaster_response_messages Dataset unavailable. Link dead: https://datasets.appen.com/appen_datasets/disaster_response_data/disaster_response_messages_training.csv Am I the one who added this dataset ?No Hi, thanks for reporting! This is a duplicate of https://github.com/huggingface/datasets/issues/3240. We are working on a fix.
[ -0.029973873868584633, -0.5003219842910767, -0.06714635342359543, 0.3193085193634033, 0.2122155874967575, 0.2117060124874115, 0.04875192791223526, -0.04592392221093178, 0.07851836085319519, 0.03804431110620499, -0.136987566947937, 0.003319176845252514, -0.36480802297592163, 0.07287391275167465, 0.3103373646736145, -0.15632984042167664, -0.04781285673379898, 0.027725011110305786, -0.13984030485153198, 0.14221976697444916, -0.17714762687683105, 0.2890433669090271, -0.054003652185201645, -0.09900599718093872, -0.22856299579143524, 0.11544085294008255, -0.17778344452381134, 0.010745618492364883, -0.2866513133049011, -0.44547227025032043, 0.27753978967666626, -0.08192265033721924, -0.03892068937420845, 0.2899874448776245, -0.00011236641876166686, 0.21167926490306854, 0.2893010675907135, -0.04230712354183197, -0.3996550440788269, -0.3504164218902588, -0.19973137974739075, -0.3478323519229889, 0.0716872587800026, 0.2090810239315033, -0.26460281014442444, -0.1738755702972412, 0.13950446248054504, -0.050678156316280365, 0.357921302318573, 0.48353105783462524, 0.22697961330413818, 0.36414146423339844, 0.3899803161621094, -0.35763418674468994, -0.11577901989221573, 0.3465766906738281, -0.1911730021238327, 0.4458269774913788, 0.11028467118740082, 0.2318105548620224, 0.12566795945167542, 0.4026736915111542, 0.29427847266197205, -0.09061634540557861, 0.22262677550315857, -0.01363885123282671, -0.09249276667833328, -0.2220223844051361, 0.10543633997440338, 0.25358548760414124, 0.5293083786964417, 0.1891980767250061, -0.182691752910614, -0.2561544179916382, 0.2347147911787033, 0.020631486549973488, 0.34747979044914246, 0.08411729335784912, -0.03585921972990036, 0.36786991357803345, -0.3810771405696869, -0.32766109704971313, -0.07575453817844391, 0.09875693172216415, -0.07794950157403946, -0.2321639060974121, -0.3543756604194641, -0.030959710478782654, 0.1163540929555893, 0.04708556830883026, -0.19866523146629333, 0.26146894693374634, -0.04266900196671486, 0.1606515347957611, -0.2143046110868454, -0.08322155475616455, -0.03496525436639786, -0.05962177366018295, 0.040570102632045746, -0.1706075817346573, -0.16441848874092102, -0.12782788276672363, -0.07582421600818634, -0.01807369291782379, 0.20078007876873016, -0.14596249163150787, -0.07587305456399918, -0.024129167199134827, 0.2275979220867157, 0.3193724453449249, 0.16552549600601196, -0.02253735065460205, -0.03404073044657707, -0.05663220211863518, -0.3551483750343323, -0.21789541840553284, 0.2647086977958679, -0.08561942726373672, -0.38152173161506653, 0.10037565231323242, -0.1799609363079071, -0.04906848073005676, 0.10583782941102982, 0.28082960844039917, -0.14195574820041656, -0.033044710755348206, 0.23583655059337616, 0.11860699951648712, -0.05808551609516144, -0.1859557032585144, -0.21631862223148346, 0.021799027919769287, -0.24093399941921234, 0.04826290160417557, 0.140018031001091, -0.12495462596416473, 0.22327584028244019, 0.11929068714380264, 0.013486307114362717, -0.08018402755260468, -0.27356430888175964, 0.08676888048648834, -0.22497111558914185, 0.3265421390533447, -0.1742534637451172, 0.2312966138124466, 0.08118461072444916, 0.05933859944343567, 0.1854856014251709, -0.17202559113502502, -0.2649030089378357, -0.41550180315971375, -0.31948497891426086, 0.1969665288925171, -0.2242162823677063, -0.13850587606430054, -0.19749614596366882, 0.34871408343315125, -0.2947648763656616, -0.005872778594493866, 0.012522153556346893, 0.24613310396671295, -0.07324635982513428, -0.1544659286737442, 0.26227450370788574, 0.6182906031608582, -0.458374947309494, -0.20957829058170319, -0.10836287587881088, -0.4166223108768463, -0.05487535148859024, 0.11286768317222595, -0.16653785109519958, 0.05832795798778534, -0.5202236771583557, -0.17819488048553467, 0.10342390090227127, 0.07878653705120087, -0.3780348002910614, 0.2601466476917267, -0.2509765028953552, 0.035379573702812195, 0.013067372143268585, 0.073285311460495, -0.015249112620949745, 0.01189285796135664, 0.3443203866481781, -0.2326515167951584, 0.21061280369758606, -0.24346493184566498, -0.19788967072963715, -0.1473296731710434, -0.0800587609410286, 0.04011772945523262, 0.13915032148361206, 0.12125182896852493, 0.14727209508419037, -0.20428739488124847, 0.2786700427532196, 0.13209311664104462, 0.10077201575040817, 0.3994411826133728, 0.08885084092617035, 0.4095032811164856, -0.03455544263124466, -0.3016708493232727, -0.2823222577571869, 0.05218232423067093, 0.1295681744813919, 0.07556681334972382, -0.1615121215581894, -0.11684375256299973, -0.3499848544597626, 0.006669230759143829, -0.282281756401062, -0.2329995334148407, 0.09902258217334747, 0.03171004354953766, -0.09751372039318085, 0.35053858160972595, -0.27434489130973816, 0.24395540356636047, -0.14758387207984924, 0.1908291131258011, -0.08577212691307068, 0.24564482271671295, -0.03283144533634186, 0.07866696268320084, 0.12230701744556427, 0.1445460319519043, 0.20256757736206055, -0.20248889923095703, 0.06091766431927681, 0.191078782081604, -0.28645581007003784, 0.29294922947883606, 0.16412299871444702, -0.10319744050502777, 0.39534974098205566, -0.2833124101161957, -0.022146126255393028, -0.005877504125237465, -0.009123488329350948, 0.03591332584619522, 0.04971204325556755, 0.10989546030759811, 0.03612079843878746, -0.050524063408374786, 0.048161812126636505, 0.3905571699142456, 0.20271946489810944, 0.12550975382328033, 0.04604598879814148, -0.2952652871608734, 0.41561952233314514, -0.25526297092437744, 0.2555003762245178, -0.12371182441711426, -0.548258900642395, 0.12147122621536255, 0.1556796431541443, -0.012230407446622849, -0.0797782763838768, 0.16610753536224365, -0.31354695558547974, 0.1526513397693634, 0.08637912571430206, 0.205505833029747, 0.47434866428375244, 0.12116905301809311, 0.09449717402458191, 0.1419578492641449, 0.08339759707450867, -0.26544272899627686, 0.17152617871761322, 0.09551486372947693, 0.08475806564092636, 0.1264391839504242, 0.23060499131679535, 0.06279947608709335, -0.6860172748565674, 0.17861489951610565, -0.024552498012781143, 0.07049176841974258, -0.28682753443717957, 0.08933185786008835, -0.2168479710817337, -0.4501327872276306, -0.04177883267402649, -0.200338676571846, -0.2872132956981659, -0.34270426630973816, 0.16390380263328552, -0.08443097770214081, 0.010501854121685028, 0.002393166534602642, 0.04228673502802849, 0.14444229006767273, -0.3048485219478607, 0.3941402733325958, -0.21518172323703766, 0.2305169701576233, -0.1490969955921173, 0.1350277066230774, -0.09513583779335022, -0.42196810245513916, 0.34904247522354126, -0.13767307996749878, 0.16714781522750854, -0.4405509829521179, -0.3121166229248047, 0.24095691740512848, -0.1903218924999237, 0.2534341514110565, 0.408407598733902, 0.3524567484855652, -0.22460532188415527, -0.07889197021722794, 0.28264281153678894, -0.3633132576942444, -0.22879521548748016, -0.202022522687912, -0.08087055385112762, 0.09998399764299393, -0.14187394082546234, -0.35607901215553284, -0.4679153263568878, -0.3456312119960785, 0.3323720693588257, -0.14777527749538422, -0.12335774302482605, 0.057673703879117966, -0.05909747630357742, 0.15319132804870605, -0.14394612610340118, -0.005023203790187836, -0.44097763299942017, -0.4946693778038025, 0.2675393521785736, -0.3384302854537964, -0.3320700526237488, 0.19737693667411804, 0.12452954053878784, 0.17055751383304596, -0.09890073537826538, -0.6122782826423645, -0.2373955398797989, -0.07908011972904205, -0.1603672206401825, -0.028530530631542206, -0.03222063183784485, 0.21735034883022308, -0.10741613060235977, -0.09684842824935913, -0.052932482212781906, -0.06994025409221649, -0.16525685787200928, -0.08850584924221039, 0.4766078591346741, -0.2985802888870239, 0.4627816081047058, 0.20191584527492523, 0.8320378065109253, 0.24514979124069214, 0.015825305134058, 0.3560367822647095, -0.28021788597106934, 0.6286760568618774, 0.05471997708082199, -0.3551819622516632, 0.11422494798898697, -0.06210966408252716, 0.2298925369977951, 0.10154924541711807, 0.27300477027893066, -0.06791254132986069, -0.2690446078777313, -0.20224064588546753, -0.45140087604522705, -0.23827818036079407, -0.19341672956943512, 0.12511000037193298, 0.09645304083824158, 0.05203647539019585, 0.051322296261787415, -0.09003573656082153, -0.24097874760627747, 0.05386604741215706, 0.6988703012466431, 0.2822423279285431, -0.0015984957572072744, -0.35788479447364807, -0.15571172535419464, -0.59225994348526, 0.3120778203010559, -0.16041216254234314, 0.17035754024982452, -0.1916029304265976, 0.1898212432861328, 0.3943370580673218, 0.0810411274433136, 0.9433749914169312, -0.15834404528141022, -0.2798672914505005, -0.1423255354166031, 0.14392292499542236, -0.2383279800415039, -0.028139814734458923, 0.06417666375637054, 0.30672013759613037, 0.3971906006336212, 0.3620191514492035, -0.1530819535255432, -0.13857044279575348, 0.41877880692481995, -0.08342742919921875, -0.22188836336135864, -0.2837504744529724, -0.12820355594158173, -0.27745041251182556, -0.00406729057431221, 0.049705252051353455, 0.0060247331857681274, -0.0088807363063097, 0.13394257426261902, -0.18961097300052643, 0.1145353615283966, 0.04062974452972412, 0.15684056282043457, -0.03466545045375824, 0.054237645119428635, 0.31585758924484253, 0.2387995421886444, 0.6006684303283691, 0.4616635739803314, 0.2996302843093872, 0.628494381904602, -0.17519015073776245, -0.5563634634017944, 0.07151739299297333, -0.09249158948659897, 0.3685699999332428, 0.5163509845733643, -0.09575026482343674, 0.19368530809879303, 0.3171399235725403, 0.16447409987449646, -0.3873578906059265, 0.10819128900766373, 0.5160542726516724, -0.12547913193702698, -0.31269723176956177, -0.3931911885738373, 0.2680354416370392, -0.11216144263744354, -0.013836190104484558, 0.16571000218391418, 0.4393196702003479, -0.04760017991065979, -0.06878362596035004, -0.13467836380004883, 1.0563037395477295, -0.12238788604736328, 0.11965540051460266, 0.24233612418174744, -0.03466327488422394, 0.6227453947067261, -0.30141741037368774, 0.26569458842277527, -0.024487338960170746, -0.19652359187602997, -0.16811855137348175, -0.07941329479217529, 0.06412214785814285, 0.003660432994365692, 0.19933971762657166, 0.18920853734016418, 0.08656258881092072, 0.34427139163017273, -0.14914226531982422, 0.07304350286722183, -0.1883208453655243, 0.04941031336784363, -0.41022610664367676, 0.21369868516921997, 0.16361361742019653, 0.45508456230163574, -0.11574269086122513, -0.23033635318279266, 0.06976071000099182, -0.2781962752342224, -0.4174267053604126, -0.07018473744392395, -0.3258190155029297, 0.12876474857330322, 0.32035306096076965, -0.1622893363237381, 0.1732138842344284, 0.3801644444465637, 0.26112639904022217, 0.10383988916873932, -0.19817398488521576, 0.3352104425430298, -0.11965229362249374, -0.1991572082042694, -0.3198239505290985, 0.1312182992696762, 0.03587283194065094, -0.05046926811337471, -0.32918983697891235, 0.2237185835838318, -0.05291789770126343, -0.1956140100955963, -0.3713311553001404, 0.026553727686405182, -0.09717199206352234, -0.09668479859828949, 0.24139414727687836, -0.0817829817533493, 0.16223400831222534, -0.1776779294013977, 0.10703632235527039, 0.14670169353485107, 0.02770543284714222, -0.25613176822662354, 0.09929729998111725, -0.08346559852361679, -0.1374894082546234, 0.5387448072433472, -0.06539500504732132, -0.21016599237918854, 0.3802107572555542, 0.16466444730758667, -0.31859302520751953, -0.19750437140464783, -0.02947944775223732, 0.08770010620355606, -0.3877342939376831, -0.010557443834841251, 0.2732810974121094, 0.24963156878948212, 0.10011521726846695, 0.2163720279932022, 0.23171596229076385, -0.36727309226989746, -0.08872133493423462, -0.4418058395385742, -0.31053227186203003, 0.11554238200187683, -0.172675222158432, 0.1507781744003296, 0.11796306818723679, 0.031433798372745514, 0.23315352201461792, 0.08201002329587936, -0.30871856212615967, 0.1815148890018463, -0.1574920266866684, -0.1365109384059906, 0.02963864430785179, -0.08269359916448593, 0.576658308506012, -0.10178185999393463, 0.09561744332313538, 0.05344328284263611, -0.3050119876861572, -0.08982150256633759, 0.014196868985891342, 0.134356290102005, -0.09704402834177017, -0.047021783888339996, -0.12364333868026733, -0.11003788560628891, -0.08547526597976685, 0.22471663355827332, 0.21896992623806, 0.2395717203617096, 0.11391191184520721, -0.20782139897346497, -0.21536771953105927, -0.12900468707084656, 0.03737257421016693, 0.1058734729886055, 0.20034772157669067, 0.35173922777175903, 0.17791186273097992, -0.13278405368328094, 0.06298256665468216, -0.021193865686655045, -0.012075364589691162, 0.11735141277313232, -0.02541356533765793, 0.04215960204601288, 0.2516936659812927, -0.2462686449289322, -0.08852848410606384, 0.048193931579589844, 0.27773892879486084, 0.26093563437461853, -0.17841368913650513, 0.2773515582084656, 0.21836036443710327, 0.1636572629213333, -0.33427733182907104, -0.002860367065295577, 0.260179340839386, 0.2744441628456116, 0.03307037428021431, -0.13427889347076416, 0.3371149003505707, 0.058803170919418335, 0.1684001237154007, 0.17512527108192444, 0.32558396458625793, -0.111716628074646, 0.191536545753479, 0.09997814148664474, -0.06788243353366852, 0.020676270127296448, 0.36356207728385925, 0.13578999042510986, 0.055802151560783386, 0.2472456842660904, -0.10863984376192093, 0.0741550400853157, -0.2025774121284485, 0.09794731438159943, 0.23219391703605652, -0.37137430906295776, 0.29253894090652466, 0.05911117047071457, -0.4024253487586975, -0.012966938316822052, 0.09451136738061905, 0.637019157409668, -0.31288114190101624, -0.010498082265257835, -0.3558792769908905, 0.22069381177425385, -0.13496094942092896, 0.03842555359005928, 0.055495306849479675, -0.36133280396461487, -0.02417098730802536, 0.06074376031756401, 0.08559463918209076, -0.28505080938339233, 0.10332026332616806, -0.019651666283607483, 0.0016396939754486084, -0.386184424161911, -0.059946030378341675, 0.17501214146614075, 0.227408766746521, 0.019718918949365616, 0.1037151962518692, 0.14027640223503113, 0.14133192598819733, 0.4128812253475189, 0.35128986835479736, 0.08771610260009766, -0.051020026206970215, 0.19928157329559326, 0.08454714715480804, -0.07603950798511505, -0.1448829025030136, -0.07146699726581573, 0.47093644738197327, 0.28084254264831543, -0.05974287912249565, 0.17717471718788147, 0.17092803120613098, -0.15686944127082825, 0.35465332865715027, -0.11803552508354187, 0.4067531228065491, -0.2529524862766266, 0.13233405351638794, -0.723172664642334, 0.031557969748973846, -0.2422156035900116, -0.11608318239450455, -0.46932047605514526, 0.023646045476198196, 0.22589266300201416, -0.24278242886066437, 0.16743963956832886, -0.18329736590385437, 0.09783809632062912, 0.01861785352230072, 0.24317097663879395, 0.5336282849311829, 0.15832285583019257, 0.02655956894159317, -0.2542761564254761, -0.6056880950927734, 0.14972023665905, 0.13030874729156494, 0.4227599501609802, -0.17047818005084991, -0.04506862908601761, 0.12600764632225037, -0.02730918675661087, 0.31735819578170776, 0.1003790944814682, -0.10824926197528839, -0.022652342915534973, -0.19093121588230133, -0.05159618332982063, 0.29867756366729736, 0.14985457062721252, 0.005882434546947479, 0.2765490710735321, 0.17908942699432373, -0.12618498504161835, -0.060325346887111664, -0.1901409924030304, 0.31900492310523987, -0.5038452744483948, -0.19550280272960663, 0.4322887361049652, 0.10819059610366821, 0.3612184524536133, -0.12248309701681137, -0.35281291604042053, -0.2646782696247101, -0.4349115788936615, -0.007401943206787109, 0.23073738813400269, 0.18464162945747375, 0.38677749037742615, -0.19134771823883057, -0.29218459129333496, -0.16128182411193848, -0.06953907012939453, 0.07278613746166229, 0.08999355882406235, -0.37448057532310486, 0.12043730169534683, -0.3956317603588104, 0.07317689061164856, 0.28466567397117615, 0.31874457001686096, -0.02991349995136261, -0.18334251642227173, 0.04346083104610443, -0.19288571178913116, 0.4616825580596924, -0.46019065380096436, 0.04748249426484108, -0.2195046842098236, 0.09726986289024353, 0.20618978142738342, -0.14008982479572296, -0.6934697031974792, -0.12434277683496475, 0.40222063660621643, -0.09898731857538223, 0.051413942128419876, 0.33958354592323303, -0.08460906147956848, -0.10410960763692856, 0.0037562288343906403, 0.6139111518859863, 0.18654689192771912, -0.09477008879184723, 0.3493078947067261, -0.106861412525177 ]
https://github.com/huggingface/datasets/issues/3415
Non-deterministic tests: CI tests randomly fail
I think it might come from two different issues: 1. Google Drive is an unreliable host, mainly because of quota limitations 2. the staging environment can sometimes raise some errors For Google Drive tests we could set up some retries with backup URLs if necessary I guess. For staging on the other hand, I guess we can investigate what causes this and discuss with the back-end team
## Describe the bug Some CI tests fail randomly. 1. In https://github.com/huggingface/datasets/pull/3375/commits/c10275fe36085601cb7bdb9daee9a8f1fc734f48, there were 3 failing tests, only on Linux: ``` =========================== short test summary info ============================ FAILED tests/test_streaming_download_manager.py::test_streaming_dl_manager_get_extraction_protocol[https://drive.google.com/uc?export=download&id=1k92sUfpHxKq8PXWRr7Y5aNHXwOCNUmqh-zip] FAILED tests/test_streaming_download_manager.py::test_streaming_gg_drive - Fi... FAILED tests/test_streaming_download_manager.py::test_streaming_gg_drive_zipped = 3 failed, 3553 passed, 2950 skipped, 2 xfailed, 1 xpassed, 125 warnings in 192.79s (0:03:12) = ``` 2. After re-running the CI (without any change in the code) in https://github.com/huggingface/datasets/pull/3375/commits/57bfe1f342cd3c59d2510b992d5f06a0761eb147, there was only 1 failing test (one on Linux and a different one on Windows): - On Linux: ``` =========================== short test summary info ============================ FAILED tests/test_streaming_download_manager.py::test_streaming_gg_drive_zipped = 1 failed, 3555 passed, 2950 skipped, 2 xfailed, 1 xpassed, 125 warnings in 199.76s (0:03:19) = ``` - On Windows: ``` =========================== short test summary info =========================== FAILED tests/test_load.py::test_load_dataset_builder_for_community_dataset_without_script = 1 failed, 3551 passed, 2954 skipped, 2 xfailed, 1 xpassed, 121 warnings in 478.58s (0:07:58) = ``` The test `tests/test_streaming_download_manager.py::test_streaming_gg_drive_zipped` passes locally. 3. After re-running again the CI (without any change in the code) in https://github.com/huggingface/datasets/pull/3375/commits/39f32f2119cf91b86867216bb5c356c586503c6a, ALL the tests passed.
67
Non-deterministic tests: CI tests randomly fail ## Describe the bug Some CI tests fail randomly. 1. In https://github.com/huggingface/datasets/pull/3375/commits/c10275fe36085601cb7bdb9daee9a8f1fc734f48, there were 3 failing tests, only on Linux: ``` =========================== short test summary info ============================ FAILED tests/test_streaming_download_manager.py::test_streaming_dl_manager_get_extraction_protocol[https://drive.google.com/uc?export=download&id=1k92sUfpHxKq8PXWRr7Y5aNHXwOCNUmqh-zip] FAILED tests/test_streaming_download_manager.py::test_streaming_gg_drive - Fi... FAILED tests/test_streaming_download_manager.py::test_streaming_gg_drive_zipped = 3 failed, 3553 passed, 2950 skipped, 2 xfailed, 1 xpassed, 125 warnings in 192.79s (0:03:12) = ``` 2. After re-running the CI (without any change in the code) in https://github.com/huggingface/datasets/pull/3375/commits/57bfe1f342cd3c59d2510b992d5f06a0761eb147, there was only 1 failing test (one on Linux and a different one on Windows): - On Linux: ``` =========================== short test summary info ============================ FAILED tests/test_streaming_download_manager.py::test_streaming_gg_drive_zipped = 1 failed, 3555 passed, 2950 skipped, 2 xfailed, 1 xpassed, 125 warnings in 199.76s (0:03:19) = ``` - On Windows: ``` =========================== short test summary info =========================== FAILED tests/test_load.py::test_load_dataset_builder_for_community_dataset_without_script = 1 failed, 3551 passed, 2954 skipped, 2 xfailed, 1 xpassed, 121 warnings in 478.58s (0:07:58) = ``` The test `tests/test_streaming_download_manager.py::test_streaming_gg_drive_zipped` passes locally. 3. After re-running again the CI (without any change in the code) in https://github.com/huggingface/datasets/pull/3375/commits/39f32f2119cf91b86867216bb5c356c586503c6a, ALL the tests passed. I think it might come from two different issues: 1. Google Drive is an unreliable host, mainly because of quota limitations 2. the staging environment can sometimes raise some errors For Google Drive tests we could set up some retries with backup URLs if necessary I guess. For staging on the other hand, I guess we can investigate what causes this and discuss with the back-end team
[ -0.1584392637014389, -0.12335606664419174, -0.027888964861631393, -0.04054375737905502, 0.25281694531440735, -0.03442012891173363, 0.4490721821784973, -0.11101613938808441, 0.03529910370707512, 0.5563315153121948, 0.13679197430610657, 0.0470312125980854, -0.169411301612854, 0.3488439619541168, -0.011537534184753895, -0.1670825183391571, -0.284431517124176, -0.09862285852432251, 0.01574152335524559, -0.02647196687757969, -0.053411372005939484, 0.1345866173505783, -0.24034558236598969, -0.33238595724105835, 0.025224296376109123, -0.1578453630208969, -0.2633088231086731, -0.0685589537024498, -0.09409133344888687, -0.3721078038215637, 0.4001348316669464, 0.34276676177978516, -0.2628677487373352, 0.7087796926498413, -0.00011921233090106398, -0.15918010473251343, 0.43562304973602295, -0.15276341140270233, -0.1010480523109436, -0.2974422574043274, 0.19146287441253662, 0.20161177217960358, -0.1533660888671875, -0.2068963646888733, -0.15680041909217834, 0.2985486090183258, -0.08352156728506088, -0.28099364042282104, 0.11988943070173264, 0.1992577314376831, 0.14862491190433502, 0.4929976165294647, -0.4142318665981293, -0.16995173692703247, 0.05090809240937233, 0.2534663677215576, -0.17331385612487793, 0.3419322669506073, 0.1498199850320816, 0.25547295808792114, -0.03879760950803757, 0.04741951450705528, 0.03582639992237091, 0.1841864138841629, -0.030535347759723663, -0.08443760871887207, -0.24160340428352356, -0.4555092751979828, 0.1352166384458542, 0.2294066846370697, 0.0976044237613678, -0.17665579915046692, -0.16736730933189392, -0.03476569801568985, 0.11703839153051376, -0.3082684576511383, 0.19166810810565948, -0.039126917719841, -0.14727136492729187, -0.06547041237354279, -0.3947056829929352, 0.4699508547782898, -0.1504686176776886, 0.008230134844779968, -0.017619330435991287, 0.18867267668247223, 0.05241386219859123, 0.09642980992794037, 0.29159948229789734, 0.07995858043432236, -0.0424218624830246, -0.30232667922973633, -0.23491832613945007, -0.09447643905878067, 0.08625722676515579, -0.36239197850227356, -0.04121777415275574, 0.576596200466156, 0.1067306324839592, 0.46136975288391113, 0.14668391644954681, -0.11207353323698044, 0.16298091411590576, 0.05905460566282272, -0.12699449062347412, 0.1395353376865387, -0.04320394992828369, 0.10286004096269608, 0.3041999936103821, 0.36598673462867737, -0.06103888899087906, 0.13339227437973022, 0.4554930627346039, -0.26392611861228943, 0.09736384451389313, 0.2916738986968994, 0.25273001194000244, -0.21664246916770935, -0.3384089469909668, -0.036592476069927216, -0.33316341042518616, 0.0676799938082695, -0.11043939739465714, 0.2595478892326355, 0.03288053348660469, 0.09851053357124329, -0.26195356249809265, 0.18026739358901978, 0.04431111365556717, 0.033661652356386185, -0.13369666039943695, -0.02498646453022957, -0.00452631339430809, -0.0020627696067094803, 0.2927274703979492, -0.1261928379535675, 0.2242949903011322, 0.09958857297897339, 0.06662870943546295, -0.32944250106811523, 0.12168662250041962, -0.17341600358486176, 0.048371538519859314, 0.36601877212524414, -0.09143069386482239, 0.07347635924816132, 0.1213146299123764, -0.11621508002281189, -0.0916137620806694, -0.06947741657495499, 0.19348475337028503, 0.06357520818710327, 0.5615617632865906, 0.16326257586479187, -0.2832755446434021, -0.1029362678527832, 0.013155795633792877, -0.05136070027947426, -0.24582251906394958, -0.026769347488880157, 0.26742976903915405, -0.23549474775791168, -0.02911730296909809, 0.01857760362327099, -0.07953594624996185, 0.5924098491668701, 0.326511412858963, -0.07086708396673203, 0.06641717255115509, -0.10470809042453766, 0.3171297609806061, 0.31421202421188354, 0.172334223985672, -0.14685693383216858, -0.13912123441696167, -0.030916787683963776, -0.052387408912181854, -0.4117186665534973, -0.07573457807302475, 0.35808250308036804, -0.03642091527581215, 0.38371944427490234, 0.09676310420036316, -0.09617376327514648, 0.2245464026927948, -0.01564987190067768, -0.21217676997184753, 0.038749732077121735, -0.2552572786808014, 0.025037748739123344, -0.2622944712638855, -0.3184919059276581, -0.08133688569068909, -0.09425309300422668, 0.3041541874408722, 0.01190631091594696, 0.21411748230457306, -0.3827780783176422, 0.1368594467639923, -0.10264874994754791, -0.2119324505329132, -0.06236223876476288, 0.6282669901847839, -0.27552491426467896, -0.08850302547216415, 0.06656850874423981, -0.44632643461227417, 0.2725456953048706, -0.062013667076826096, 0.08899648487567902, 0.1991230547428131, -0.36361920833587646, -0.19053968787193298, -0.2731693387031555, -0.03292185440659523, -0.2939181625843048, 0.11879928410053253, 0.5719895958900452, 0.16679644584655762, 0.2496209591627121, 0.32602787017822266, -0.06316360086202621, -0.11316368728876114, 0.08150807023048401, 0.015115064568817616, 0.1622912883758545, -0.1255824714899063, -0.30010703206062317, -0.09640804678201675, -0.14448687434196472, 0.1636483073234558, -0.350330114364624, -0.24641788005828857, 0.3278499245643616, -0.029647501185536385, 0.5238102078437805, 0.14763209223747253, 0.03978726267814636, 0.1828838735818863, -0.21574296057224274, -0.09505324810743332, 0.7010549902915955, 0.04163026064634323, -0.10613834857940674, 0.04048223793506622, 0.4670202136039734, -0.24370168149471283, -0.0803874209523201, -0.013344023376703262, 0.12076988071203232, 0.33494114875793457, -0.11312401294708252, -0.2643945515155792, 0.06203506886959076, 0.48586317896842957, -0.0029545091092586517, 0.21182465553283691, 0.22342941164970398, -0.46426865458488464, -0.07010702043771744, -0.07386834919452667, -0.1045493632555008, -0.20982027053833008, -0.0889132097363472, 0.15662361681461334, 0.17719188332557678, 0.07787476480007172, 0.670232892036438, 0.5462753772735596, 0.08111709356307983, 0.08011873066425323, 0.11248563975095749, -0.14649617671966553, -0.42107221484184265, 0.23630580306053162, 0.015612795948982239, -0.28366243839263916, 0.47904255986213684, 0.18491509556770325, 0.22092926502227783, -0.48216864466667175, -0.31087350845336914, 0.1509619653224945, -0.0020990390330553055, -0.25847962498664856, 0.2491675466299057, 0.03504330664873123, 0.08431948721408844, -0.2106897532939911, -0.04220631346106529, -0.020197927951812744, -0.18853048980236053, -0.06357862800359726, 0.4104856848716736, -0.3588704466819763, 0.17441150546073914, -0.1258363574743271, 0.5557634830474854, -0.02717815339565277, -0.06983152031898499, -0.3776938021183014, 0.11104479432106018, 0.028307907283306122, 0.04843273386359215, 0.3107318580150604, -0.08385385572910309, 0.5202903151512146, -0.4952475428581238, -0.14371661841869354, -0.22150816023349762, -0.3089436888694763, 0.06752551347017288, -0.1325112283229828, 0.6462060213088989, 0.06302221119403839, -0.0303213968873024, -0.1087517961859703, -0.19026783108711243, 0.15788386762142181, -0.3307379484176636, -0.1383398175239563, 0.08107710629701614, -0.009743565693497658, -0.041158419102430344, -0.35178500413894653, -0.31408432126045227, -0.17077071964740753, -0.1763535887002945, 0.26463472843170166, 0.0937238335609436, -0.1990230828523636, 0.622157633304596, -0.12245971709489822, -0.15317746996879578, -0.07430744916200638, -0.06831289827823639, -0.1461934894323349, -0.3007047176361084, 0.12210671603679657, -0.09805861860513687, -0.1428861767053604, -0.14002439379692078, 0.022556141018867493, 0.03366692364215851, 0.2467300444841385, -0.5267254710197449, -0.14771321415901184, -0.09830082952976227, 0.1310351938009262, 0.12174919992685318, -0.3485831022262573, 0.16228649020195007, -0.11976814270019531, -0.03029657155275345, 0.035203538835048676, 0.0754898339509964, 0.17176589369773865, 0.24890226125717163, 0.2269744873046875, 0.08801751583814621, 0.2765522003173828, 0.07931186258792877, 0.38928431272506714, 0.4170416593551636, -0.20696507394313812, 0.20093443989753723, 0.027307653799653053, 0.5469064116477966, -0.11069666594266891, -0.13091027736663818, 0.3490980267524719, 0.17488226294517517, -0.28378164768218994, 0.12204421311616898, -0.3047083020210266, 0.04892183840274811, -0.009081818163394928, 0.17815028131008148, 0.10834362357854843, -0.17934651672840118, 0.10598304867744446, -0.4477179944515228, -0.026078052818775177, 0.06632314622402191, 0.32124778628349304, 0.05463718995451927, -0.14991596341133118, 0.074924036860466, 0.5134763717651367, 0.11425518989562988, -0.05097419023513794, -0.15649579465389252, 0.05160028487443924, -0.4614521861076355, 0.11204253137111664, 0.008039544336497784, 0.36953094601631165, -0.25048983097076416, 0.06501908600330353, 0.21517890691757202, -0.03606665879487991, -0.1668015867471695, -0.3277861773967743, 0.011712666600942612, 0.23640236258506775, -0.3763119876384735, 0.15531347692012787, -0.29411542415618896, -0.5910899043083191, -0.3048005998134613, 0.3173709213733673, 0.2712176442146301, -0.1566045582294464, 0.04517536982893944, 0.24647845327854156, 0.08913662284612656, -0.040286555886268616, -0.12710584700107574, -0.1259080320596695, -0.4609694480895996, -0.15981639921665192, 0.3577892780303955, 0.09108550101518631, -0.23393842577934265, -0.744086503982544, -0.23537568747997284, 0.04295732080936432, -0.01606106571853161, 0.1827068328857422, 0.0041061826050281525, 0.009934905916452408, -0.03257182985544205, 0.18507345020771027, -0.0008440054953098297, 0.1575782597064972, 0.2197602391242981, 0.05483190715312958, -0.055951010435819626, 0.14042815566062927, 0.06500935554504395, -0.23561128973960876, -0.16249480843544006, 0.5088319182395935, 0.016498390585184097, 0.13454124331474304, -0.03070848435163498, 0.32255619764328003, -0.2972331941127777, 0.067399762570858, 0.45125797390937805, 0.01734771579504013, 0.10686682909727097, 0.08050493896007538, -0.07024864107370377, -0.15820789337158203, -0.2896762788295746, 0.46386274695396423, -0.25517427921295166, -0.22392438352108002, 0.2600135803222656, -0.09302394837141037, 0.7344821095466614, 0.15927207469940186, 0.047116149216890335, 0.1720782220363617, 0.005189396440982819, 0.023104453459382057, 0.5861774682998657, 0.12568552792072296, -0.3184716999530792, -0.19324138760566711, -0.04767867550253868, -0.14655640721321106, 0.33175894618034363, -0.2081923931837082, -0.47390109300613403, 0.3550080358982086, 0.17226655781269073, 0.4828886389732361, 0.0007394980639219284, -0.27593469619750977, -0.6961133480072021, 0.09348390996456146, 0.1535387635231018, 0.08464249968528748, 0.1623101532459259, 0.6574280858039856, -0.2006085216999054, -0.03605836257338524, -0.08743700385093689, -0.33658355474472046, -0.3304463028907776, -0.1012171134352684, -0.6336812376976013, -0.054047100245952606, -0.09140941500663757, -0.45347607135772705, -0.23172388970851898, 0.15970681607723236, 0.31981655955314636, 0.326192170381546, -0.16294316947460175, 0.15104731917381287, -0.011176779866218567, 0.28491711616516113, 0.23413924872875214, -0.3475024402141571, 0.23833627998828888, -0.028957456350326538, -0.41364455223083496, -0.07476114481687546, -0.3452002704143524, -0.24151210486888885, 0.04855772852897644, -0.21172358095645905, -0.2484901398420334, 0.020309044048190117, -0.08073899149894714, -0.2776925563812256, -0.3677467703819275, -0.33077311515808105, 0.07563526928424835, -0.1545259654521942, 0.06651949882507324, 0.45541146397590637, -0.12036171555519104, -0.3577275276184082, -0.30361464619636536, -0.02975868433713913, -0.2041579782962799, -0.03184601292014122, 0.15306630730628967, -0.33005741238594055, -0.1419563889503479, -0.32841411232948303, 0.15929895639419556, -0.23047251999378204, -0.2533913552761078, 0.19566796720027924, -0.34757015109062195, 0.03245528042316437, 0.08345543593168259, 0.3512030839920044, 0.3434615135192871, 0.3780670464038849, -0.1927841752767563, -0.22812464833259583, -0.09921155124902725, 0.06717275828123093, 0.17925585806369781, 0.5497725605964661, -0.1654481589794159, 0.4358351230621338, 0.129172682762146, -0.008522460237145424, -0.28679966926574707, 0.28554242849349976, -0.24459987878799438, 0.06165560334920883, -0.0031883660703897476, -0.08593567460775375, 0.18471382558345795, 0.05254194140434265, 0.07944736629724503, 0.11639237403869629, -0.13779477775096893, -0.14352552592754364, -0.07424630224704742, 0.10812997072935104, 0.03432801738381386, -0.04294945299625397, 0.0944046601653099, 0.05910146236419678, -0.0077112093567848206, -0.11565542221069336, 0.13620173931121826, 0.07970961928367615, 0.09545750170946121, -0.3906945586204529, 0.0035465285181999207, 0.4353247284889221, -0.11523732542991638, 0.2383619099855423, -0.43169036507606506, 0.2120068073272705, -0.11163809895515442, 0.00022265315055847168, -0.20851200819015503, -0.08031252771615982, -0.1351274996995926, -0.044373467564582825, 0.11682447791099548, 0.20631152391433716, 0.18036861717700958, -0.02155987173318863, -0.10079387575387955, 0.11587180197238922, 0.3082659840583801, 0.4069615602493286, -0.26608145236968994, -0.06267346441745758, 0.16649705171585083, 0.21467562019824982, -0.01836845651268959, 0.21537365019321442, -0.09840159118175507, 0.27778178453445435, 0.2665574550628662, 0.2633540630340576, 0.33235737681388855, -0.4998094439506531, -0.04714876413345337, 0.06413177400827408, 0.3785238265991211, 0.12590837478637695, 0.22241009771823883, 0.12852133810520172, 0.14506761729717255, 0.2772004008293152, 0.005874413996934891, -0.28803005814552307, 0.2129770666360855, -0.31937122344970703, -0.1620081067085266, 0.41193699836730957, -0.39008772373199463, 0.029040465131402016, 0.011064000427722931, -0.23699966073036194, -0.030223045498132706, 0.08548539876937866, -0.2216179370880127, 0.2128424346446991, 0.3654862642288208, 0.3604509234428406, -0.737244725227356, -0.3024221956729889, -0.5719339847564697, 0.00698176771402359, 0.014566140249371529, -0.11039404571056366, -0.2491985708475113, -0.07020705938339233, -0.2819885015487671, 0.13744255900382996, 0.17758719623088837, 0.5175736546516418, 0.40381407737731934, 0.2112768143415451, -0.20727203786373138, -0.34822574257850647, -0.2822452783584595, -0.0990009531378746, 0.23423409461975098, -0.3652040958404541, 0.38077691197395325, 0.3738601803779602, -0.1224910318851471, -0.10042369365692139, 0.4690849483013153, 0.41910284757614136, -0.12063774466514587, 0.012179185636341572, 0.039857275784015656, -0.15911278128623962, 0.14029216766357422, 0.1399681121110916, 0.18092623353004456, 0.04511711001396179, -0.31573188304901123, 0.27160611748695374, 0.16177766025066376, -0.16876375675201416, 0.0010118447244167328, 0.1344514638185501, -0.2562085688114166, -0.24253176152706146, 0.46789100766181946, 0.09652070701122284, 0.359050452709198, -0.08283516019582748, 0.06672064960002899, -0.41338610649108887, 0.2643113434314728, -0.1560671329498291, -0.27405741810798645, 0.11627525836229324, 0.14773130416870117, 0.05961761623620987, -0.05036217346787453, 0.14397868514060974, 0.12589219212532043, 0.058889538049697876, -0.19591127336025238, -0.2777003049850464, -0.4897422790527344, 0.2637613117694855, 0.23499122262001038, 0.47367992997169495, -0.2569549083709717, 0.0215835589915514, -0.15914452075958252, -0.14240053296089172, 0.21819420158863068, 0.010028010234236717, 0.32097455859184265, 0.06447429955005646, -0.5378826260566711, 0.08566750586032867, -0.18750019371509552, -0.218410924077034, 0.018924497067928314, -0.28487738966941833, 0.24195966124534607, -0.008278311230242252, 0.006350371986627579, 0.2558175325393677, 0.032941460609436035, 0.08783766627311707, -0.1363096684217453, 0.14092297852039337, 0.09908097982406616, 0.5144603252410889, -0.10174286365509033, -0.34529638290405273, -0.22768554091453552, -0.12403467297554016, 0.25152069330215454, 0.015090297907590866, 0.0883990079164505, 0.38432276248931885, 0.12222003191709518, 0.0887770727276802, 0.011427473276853561, 0.3727855980396271, 0.1526293307542801, 0.03221651166677475, -0.23199787735939026, -0.009616012685000896, -0.228873610496521, 0.07366300374269485, 0.18099850416183472, 0.34913939237594604, -0.11298605799674988, 0.2964574694633484, 0.010126061737537384, -0.48527154326438904, 0.6380031704902649, 0.09697526693344116, 0.06858401000499725, -0.5617866516113281, 0.2428140640258789, 0.047777675092220306, 0.14654134213924408, -0.19573649764060974, 0.09610939770936966, 0.006850017234683037, -0.05902566760778427, 0.011997945606708527, 0.14868731796741486, 0.09157080948352814, -0.13057823479175568, 0.010140515863895416, 0.31716030836105347, -0.07444699853658676, 0.1519489735364914, 0.3189455270767212, 0.0006562694907188416 ]
https://github.com/huggingface/datasets/issues/3401
Add Wikimedia pre-processed datasets
As we are planning to stop using Apache Beam (our `datasets.BeamBasedBuilder`) for the generation of some datasets (including [Wikipedia](https://huggingface.co/datasets/wikipedia/blob/main/wikipedia.py)), I have been working on [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) to: - Port the Wikipedia generation script to use `datasets.GeneratorBasedBuilder` instead and place it under the "script" branch: https://huggingface.co/datasets/wikimedia/wikipedia/tree/script - Improve the efficiency of the code and make it highly parellizable. See: - [Parallelize dataset generation over multistreams](https://huggingface.co/datasets/wikimedia/wikipedia/commit/610c55864586dbdad7ac5a13c21a367bb000a1d3) - [Parallelize data downloading](https://huggingface.co/datasets/wikimedia/wikipedia/commit/b35d406bd9e81f08c68e7bf95d130d2f506dfe77) With these improvements, I can generate the English Wikipedia in 5h using 16 processors in a machine without needing a huge amount of RAM (the machine had 32 GB, but I think less can be used as well): ```python ds = load_dataset("wikimedia/wikipedia", revision="script", date="20231101", language="en", host="https://mirror.accum.se/mirror/wikimedia.org/dumps", split="train", num_proc=16) ``` - Pre-process all Wikipedia languages for the latest 2023-11-01 dump and make them available to the entire community for easy use: ```python ds = load_dataset("wikimedia/wikipedia", "20231101.en", split="train", num_proc=16) ``` CC: @geohci
## Adding a Dataset - **Name:** Add pre-processed data to: - *wikimedia/wikipedia*: https://huggingface.co/datasets/wikimedia/wikipedia - *wikimedia/wikisource*: https://huggingface.co/datasets/wikimedia/wikisource - **Description:** Add pre-processed data to the Hub for all languages - **Paper:** *link to the dataset paper if available* - **Data:** *link to the Github repository or current dataset location* - **Motivation:** This will be very useful for the NLP community, as the pre-processing has a high cost for lot of researchers (both in computation and in knowledge) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). CC: @geohci, @yjernite
147
Add Wikimedia pre-processed datasets ## Adding a Dataset - **Name:** Add pre-processed data to: - *wikimedia/wikipedia*: https://huggingface.co/datasets/wikimedia/wikipedia - *wikimedia/wikisource*: https://huggingface.co/datasets/wikimedia/wikisource - **Description:** Add pre-processed data to the Hub for all languages - **Paper:** *link to the dataset paper if available* - **Data:** *link to the Github repository or current dataset location* - **Motivation:** This will be very useful for the NLP community, as the pre-processing has a high cost for lot of researchers (both in computation and in knowledge) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). CC: @geohci, @yjernite As we are planning to stop using Apache Beam (our `datasets.BeamBasedBuilder`) for the generation of some datasets (including [Wikipedia](https://huggingface.co/datasets/wikipedia/blob/main/wikipedia.py)), I have been working on [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) to: - Port the Wikipedia generation script to use `datasets.GeneratorBasedBuilder` instead and place it under the "script" branch: https://huggingface.co/datasets/wikimedia/wikipedia/tree/script - Improve the efficiency of the code and make it highly parellizable. See: - [Parallelize dataset generation over multistreams](https://huggingface.co/datasets/wikimedia/wikipedia/commit/610c55864586dbdad7ac5a13c21a367bb000a1d3) - [Parallelize data downloading](https://huggingface.co/datasets/wikimedia/wikipedia/commit/b35d406bd9e81f08c68e7bf95d130d2f506dfe77) With these improvements, I can generate the English Wikipedia in 5h using 16 processors in a machine without needing a huge amount of RAM (the machine had 32 GB, but I think less can be used as well): ```python ds = load_dataset("wikimedia/wikipedia", revision="script", date="20231101", language="en", host="https://mirror.accum.se/mirror/wikimedia.org/dumps", split="train", num_proc=16) ``` - Pre-process all Wikipedia languages for the latest 2023-11-01 dump and make them available to the entire community for easy use: ```python ds = load_dataset("wikimedia/wikipedia", "20231101.en", split="train", num_proc=16) ``` CC: @geohci
[ -0.16393329203128815, 0.13329893350601196, -0.11328580975532532, -0.03605208545923233, 0.004118485376238823, 0.22940197587013245, 0.23470133543014526, 0.44061028957366943, 0.20888306200504303, 0.020099349319934845, -0.0057892343029379845, 0.19504910707473755, -0.056119538843631744, -0.12095139920711517, 0.08966019749641418, -0.1367201954126358, 0.17242677509784698, 0.05124081298708916, -0.0845310389995575, -0.0007332600653171539, -0.3754718005657196, 0.24854245781898499, -0.16370999813079834, -0.2884618043899536, -0.261453241109848, -0.024784671142697334, -0.08134017139673233, 0.02780308574438095, -0.027633918449282646, -0.3010941743850708, -0.036504317075014114, 0.5277854204177856, -0.15624301135540009, 0.18091030418872833, -0.00010579741501715034, -0.12983794510364532, 0.5245437622070312, -0.06896627694368362, -0.5503497123718262, 0.10096190869808197, 0.13202229142189026, -0.23673087358474731, -0.05480032414197922, -0.37516316771507263, -0.05304610729217529, -0.3613736629486084, 0.3080044984817505, -0.2750720679759979, 0.14901496469974518, -0.16984282433986664, 0.2835790812969208, 0.06574565172195435, -0.008421692997217178, -0.10394976288080215, 0.2364715039730072, 0.15059404075145721, -0.09706776589155197, 0.17578811943531036, 0.06281157582998276, -0.04055114462971687, -0.27631595730781555, 0.5876909494400024, -0.21302008628845215, -0.19053268432617188, 0.3767563998699188, -0.07200707495212555, -0.23578369617462158, -0.4037291705608368, 0.15165770053863525, 0.30054816603660583, 0.3127037286758423, -0.30841967463493347, -0.26216623187065125, -0.35708722472190857, -0.008597997948527336, -0.01814917102456093, 0.0027130618691444397, 0.061142899096012115, -0.07331887632608414, -0.028404001146554947, -0.10275261104106903, -0.3354398012161255, -0.08273303508758545, 0.1017536073923111, 0.2910187840461731, 0.605034351348877, 0.06919334828853607, 0.07322851568460464, 0.026197465136647224, -0.0376213937997818, -0.20904722809791565, -0.3453054428100586, -0.01604694128036499, 0.09506232291460037, -0.11528953909873962, -0.15977412462234497, 0.10169608891010284, 0.2635538876056671, 0.21842679381370544, -0.0712926983833313, -0.18960712850093842, 0.2914338707923889, 0.072413370013237, -0.03330715000629425, 0.02157958410680294, -0.0022059231996536255, -0.020771294832229614, -0.20126405358314514, 0.4536968469619751, 0.35227662324905396, -0.09304572641849518, 0.010712359100580215, 0.1246315985918045, -0.00098629598505795, -0.19516901671886444, 0.0859111100435257, 0.09823937714099884, 0.14481806755065918, 0.07856453955173492, -0.10609147697687149, 0.11158523708581924, -0.14747947454452515, -0.07770093530416489, 0.42089372873306274, 0.040965307503938675, 0.43774545192718506, 0.08421267569065094, 0.24004995822906494, -0.20111779868602753, -0.22902008891105652, -0.09835334867238998, 0.17202965915203094, -0.020000949501991272, 0.44059643149375916, 0.28538721799850464, -0.015431784093379974, 0.2930888235569, 0.00430330540984869, 0.11977158486843109, -0.002454102039337158, 0.159282386302948, -0.016640953719615936, 0.14375945925712585, -0.008025381714105606, 0.1163536012172699, 0.3232821822166443, 0.03525068238377571, -0.09270322322845459, -0.27544501423835754, -0.18116790056228638, -0.0030478760600090027, -0.17932529747486115, -0.11910788714885712, 0.21071437001228333, 0.017935916781425476, 0.06193859875202179, -0.2539118528366089, 0.47145816683769226, 0.13442561030387878, -0.20636233687400818, 0.0423089899122715, 0.1553758680820465, -0.2511367201805115, -0.34721434116363525, 0.2507416307926178, 0.503807008266449, 0.10902354121208191, -0.05375388264656067, -0.27716001868247986, 0.151667058467865, 0.17958298325538635, 0.10008759796619415, -0.14213237166404724, 0.444693386554718, -0.13095442950725555, 0.22681714594364166, 0.10978411883115768, -0.44746196269989014, -0.04155471920967102, 0.026890700682997704, -0.09625261276960373, 0.27329355478286743, 0.17114141583442688, 0.20942458510398865, 0.3893188536167145, -0.16298732161521912, -0.12670086324214935, 0.40853387117385864, 0.03437783196568489, 0.2707168757915497, -0.241799458861351, -0.38218700885772705, 0.009235484525561333, 0.12736639380455017, 0.10927356779575348, -0.1465359926223755, 0.036676179617643356, 0.44709375500679016, 0.20190751552581787, -0.44577422738075256, 0.37177541851997375, 0.01081274077296257, -0.24389226734638214, -0.019428960978984833, 0.09112502634525299, -0.2321333885192871, -0.32822325825691223, 0.1079065129160881, -0.0031942036002874374, 0.32535141706466675, -0.21754460036754608, -0.41621458530426025, -0.08822493255138397, -0.0692710131406784, -0.19892840087413788, -0.2622932195663452, 0.3020079433917999, 0.17748978734016418, 0.20536869764328003, 0.1745300143957138, -0.03453115001320839, 0.08939019590616226, -0.12464386969804764, 0.04843815043568611, -0.4588811695575714, 0.17690913379192352, -0.07071463018655777, -0.08623624593019485, 0.10872054100036621, 0.19303227961063385, 0.03118261508643627, -0.02255217730998993, 0.14855587482452393, 0.19618099927902222, -0.05143003910779953, 0.43029558658599854, 0.2925613522529602, 0.1060648113489151, 0.23255634307861328, -0.16377131640911102, 0.24454690515995026, -0.03347451984882355, 0.09934024512767792, -0.2021009922027588, -0.04690593481063843, 0.29259181022644043, 0.028966424986720085, 0.3274562954902649, 0.032427579164505005, -0.06700968742370605, 0.20206210017204285, 0.16500061750411987, -0.06767120957374573, -0.33545228838920593, 0.03508477285504341, 0.37583744525909424, -0.11649301648139954, -0.15942566096782684, 0.08548347651958466, 0.31113529205322266, 0.4207213222980499, -0.0073680579662323, 0.029164467006921768, 0.14346551895141602, -0.3171716630458832, -0.19863077998161316, 0.16283327341079712, -0.0696936696767807, 0.02081211656332016, 0.2582777738571167, 0.15564574301242828, 0.0040561724454164505, 0.05367138981819153, -0.2666468322277069, 0.35464078187942505, 0.21787585318088531, 0.33535054326057434, 0.183381587266922, 0.1727500557899475, 0.0017848992720246315, -0.32992056012153625, -0.12635348737239838, -0.15751178562641144, 0.05642497539520264, -0.028905043378472328, 0.03237038850784302, -0.14577730000019073, -0.1969219446182251, -0.08351120352745056, 0.06256181746721268, -0.32149240374565125, -0.5301926732063293, 0.10740576684474945, 0.3565156161785126, -0.1567288339138031, 0.00996496994048357, 0.2102675437927246, 0.15866485238075256, -0.14089898765087128, -0.14428271353244781, -0.3255241811275482, -0.41138455271720886, 0.03661549463868141, 0.1353888362646103, 0.29298722743988037, 0.15893955528736115, 0.49830377101898193, -0.003483608365058899, 0.05382978916168213, -0.5459835529327393, -0.446164071559906, 0.030080698430538177, -0.2447284609079361, 0.16894830763339996, 0.12850520014762878, 0.19860480725765228, -0.03360392898321152, -0.5219268798828125, 0.07446564733982086, -0.08595507591962814, -0.03915201500058174, -0.13823938369750977, -0.18994930386543274, 0.0762622132897377, -0.09944336116313934, -0.1978372037410736, -0.054821185767650604, -0.42997750639915466, 0.24196487665176392, 0.13354231417179108, 0.16369128227233887, -0.10768236219882965, -0.1026151031255722, -0.04035918787121773, -0.024997813627123833, 0.08659317344427109, -0.19231216609477997, -0.054058853536844254, 0.30508801341056824, -0.4562951326370239, -0.2670004069805145, -0.004062049090862274, -0.3334217667579651, 0.3673340976238251, 0.12004019320011139, -0.2981276512145996, 0.0015594782307744026, -0.01213015802204609, 0.25150811672210693, 0.2683587074279785, 0.10996302962303162, 0.4222140908241272, 0.14853885769844055, -0.10927116125822067, 0.04533214867115021, 0.04673779383301735, -0.11703907698392868, -0.2914811968803406, -0.016731224954128265, 0.18217399716377258, 0.17008358240127563, -0.06158244609832764, 1.0019950866699219, 0.19360476732254028, 0.21530510485172272, 0.3296070098876953, 0.1907549649477005, 0.35314276814460754, -0.2513027787208557, -0.23361676931381226, 0.09694910049438477, -0.12299171090126038, 0.044530630111694336, 0.576901376247406, -0.01059509627521038, -0.31224000453948975, -0.14028260111808777, -0.09986558556556702, -0.4965704381465912, -0.39931678771972656, 0.1602165848016739, -0.07208232581615448, 0.20740267634391785, 0.019277509301900864, 0.04454278200864792, -0.3151307702064514, -0.3310987949371338, 0.09356909990310669, 0.225447416305542, 0.24659982323646545, -0.1967652142047882, -0.052037790417671204, 0.04966744780540466, -0.8254801034927368, 0.2404668629169464, 0.1012004092335701, -0.02631179615855217, 0.031653787940740585, -0.11387812346220016, 0.04036019742488861, -0.2867871820926666, 0.3043309450149536, -0.4916607141494751, -0.1570483297109604, 0.06715503334999084, 0.023447394371032715, -0.36984774470329285, 0.20196795463562012, -0.004345376044511795, -0.05003959685564041, 0.24736078083515167, 0.33511030673980713, -0.5163809061050415, -0.11843948066234589, 0.2500867545604706, 0.2298596352338791, -0.06633474677801132, -0.11503157764673233, -0.13669253885746002, -0.32433393597602844, -0.5022966265678406, -0.06338567286729813, -0.13377778232097626, 0.24534167349338531, -0.1596137136220932, 0.10115279257297516, 0.062329262495040894, 0.03897697478532791, 0.13635432720184326, 0.24958156049251556, 0.02416035532951355, 0.2449207454919815, 0.05509507283568382, 0.09806829690933228, 0.053827155381441116, -0.13807237148284912, 0.19457858800888062, 0.2556421458721161, -0.09949533641338348, -0.17583808302879333, -0.0055966489017009735, 0.07368013262748718, 0.42288824915885925, 0.11926990002393723, 0.1974998116493225, 0.12479378283023834, 0.00957433134317398, -0.3748820722103119, 0.09594687819480896, 0.13470317423343658, -0.15531320869922638, -0.4849678575992584, -0.20302438735961914, 0.41426441073417664, 0.140518918633461, -0.1175239160656929, 0.3460940718650818, 0.07767599821090698, -0.4632219076156616, 0.44990307092666626, 0.40941303968429565, 1.0851134061813354, -0.24392251670360565, 0.31967708468437195, 0.21861889958381653, 0.014637686312198639, 0.7023125290870667, -0.5307095050811768, 0.143044576048851, -0.3864404857158661, -0.0806519165635109, 0.10770200192928314, 0.13137111067771912, 0.06957372277975082, 0.034791383892297745, -0.3366360068321228, 0.1923191100358963, 0.24298642575740814, 0.27234014868736267, -0.15145784616470337, 0.6729599833488464, -0.1798919141292572, -0.7160431742668152, -0.17089681327342987, 0.1956310272216797, -0.07731010019779205, 0.07083243131637573, -0.22463646531105042, -0.07296735048294067, -0.20094263553619385, -0.10216578841209412, -0.33027443289756775, 0.04798741638660431, 0.01755240000784397, 0.04490848258137703, -0.519067108631134, -0.03929447382688522, 0.11175104975700378, 0.09582936763763428, 0.3109285831451416, 0.19432814419269562, -0.2262101173400879, 0.12180562317371368, -0.41564270853996277, -0.26425859332084656, 0.036988671869039536, -0.21313872933387756, 0.17256082594394684, -0.18117192387580872, -0.21768194437026978, 0.06926829367876053, 0.1260727345943451, -0.34076303243637085, -0.3548808991909027, -0.08997994661331177, 0.22867870330810547, -0.01979977823793888, -0.16161733865737915, 0.21981582045555115, -0.43248698115348816, -0.2662406861782074, 0.17598599195480347, -0.11206687986850739, -0.07710699737071991, 0.14498040080070496, -0.010967671871185303, -0.09062834084033966, -0.16676971316337585, 0.2853761315345764, 0.2195984423160553, -0.1595144420862198, 0.3787112832069397, 0.2021835297346115, -0.33680641651153564, -0.23336106538772583, -0.18546602129936218, -0.08840464055538177, -0.39613422751426697, -0.021877523511648178, 0.1469855159521103, -0.06544837355613708, -0.15568113327026367, 0.06910812109708786, 0.028361167758703232, 0.019940167665481567, -0.12348224222660065, -0.12476310133934021, -0.20579935610294342, 0.41655200719833374, -0.1645263284444809, 0.18684974312782288, 0.1609528660774231, -0.011958237737417221, -0.04821019247174263, 0.30371370911598206, -0.39677777886390686, -0.12616832554340363, -0.027382614091038704, 0.18883627653121948, 0.3018764555454254, -0.11967679113149643, -0.11015059053897858, 0.033268097788095474, 0.17724406719207764, 0.02477738820016384, -0.1409005969762802, -0.2689150273799896, -0.11411648988723755, 0.13093556463718414, 0.018252111971378326, -0.1449403166770935, 0.14329513907432556, -0.12076753377914429, 0.04038044065237045, -0.46063244342803955, 0.1966165155172348, -0.16373160481452942, -0.0844200849533081, 0.0049269115552306175, 0.44153982400894165, 0.21759259700775146, -0.0707603245973587, 0.05413553863763809, -0.010198064148426056, 0.4813474416732788, 0.0008775894530117512, 0.11352894455194473, 0.1296873539686203, -0.13748767971992493, -0.1377236694097519, 0.23478996753692627, 0.1370086371898651, 0.19529375433921814, 0.34506338834762573, 0.21189594268798828, -0.30376434326171875, 0.3486434519290924, 0.2972029447555542, 0.18672561645507812, 0.08274117857217789, -0.20437191426753998, 0.1858827769756317, 0.23020309209823608, -0.18065281212329865, 0.05320875719189644, 0.4415937662124634, -0.2621673345565796, 0.15710154175758362, 0.3110639750957489, 0.28570541739463806, 0.004341341555118561, 0.05936042219400406, 0.06015561521053314, 0.06485787779092789, -0.3266903758049011, 0.33803626894950867, -0.0856657326221466, 0.2220667153596878, -0.04894150421023369, 0.07444021105766296, 0.03582944720983505, 0.1879233717918396, 0.27429327368736267, -0.057328514754772186, 0.5500574707984924, 0.06283572316169739, 0.10492675751447678, 0.15409235656261444, 0.09665246307849884, 0.3017268776893616, 0.19173383712768555, 0.06667865067720413, 0.19742366671562195, 0.10091045498847961, 0.05834081768989563, 0.09838397055864334, -0.1469327211380005, -0.225423201918602, 0.6432631015777588, -0.12418953329324722, -0.20777583122253418, -0.12324199080467224, -0.19253912568092346, -0.08485502004623413, 0.016518618911504745, -0.05940907821059227, -0.2793523073196411, 0.07862114161252975, 0.13297104835510254, -0.15596988797187805, -0.1629285216331482, 0.3882342278957367, -0.25520089268684387, 0.532490074634552, -0.18117575347423553, -0.08312878757715225, 0.22089511156082153, 0.16484081745147705, 0.06863319128751755, 0.34166693687438965, 0.2810496985912323, 0.2040242999792099, -0.3862745463848114, 0.07427733391523361, -0.15372005105018616, 0.02348175458610058, -0.050798069685697556, 0.2743152976036072, 0.18312101066112518, 0.0015498548746109009, 0.24348832666873932, 0.23983675241470337, -0.23857752978801727, -0.4334968030452728, 0.36355671286582947, -0.15820346772670746, 0.03251919522881508, -0.0016533657908439636, 0.06691257655620575, -0.11319757997989655, -0.14812025427818298, 0.1942717283964157, -0.5149674415588379, 0.18406948447227478, 0.053095050156116486, -0.0814797654747963, 0.006669448688626289, -0.3589647710323334, 0.10687269270420074, 0.15506209433078766, 0.5137379765510559, 0.24134357273578644, 0.006978955119848251, -0.2405872642993927, -0.458587646484375, -0.39609211683273315, -0.03686695545911789, -0.1610831767320633, -0.11283161491155624, -0.12542390823364258, 0.33601945638656616, 0.1005239486694336, 0.22014017403125763, -0.15858452022075653, -0.22982479631900787, -0.029488515108823776, 0.12037376314401627, -0.12193071842193604, 0.15226420760154724, -0.09872801601886749, -0.1350618600845337, -0.12388953566551208, -0.2744936943054199, 0.2258026897907257, 0.08686905354261398, 0.06925734132528305, -0.11834029853343964, 0.04456719756126404, 0.1790037900209427, -0.12999843060970306, 0.29053598642349243, 0.08673872798681259, 0.19043931365013123, -0.43738117814064026, -0.3407934904098511, -0.46546584367752075, -0.045871369540691376, -0.2010372281074524, 0.3433898091316223, -0.020109090954065323, 0.5513938665390015, -0.017951341345906258, -0.16148196160793304, -0.10310449451208115, 0.39192020893096924, -0.09520027786493301, 0.20084911584854126, -0.15557442605495453, 0.021165670827031136, -0.08612614870071411, 0.1685716062784195, -0.024607516825199127, 0.3651169240474701, -0.06974244117736816, 0.1642473340034485, -0.3567018508911133, -0.4502973258495331, 0.29753702878952026, -0.4232437014579773, -0.38109686970710754, -0.013684817589819431, 0.1785929799079895, -0.11680782586336136, 0.15233813226222992, -0.4096852242946625, 0.06990636140108109, 0.23744969069957733, 0.17352166771888733, 0.14560793340206146, 0.33428508043289185, -0.1387988030910492, -0.27093803882598877, -0.2545052766799927, -0.24157994985580444, -0.06621571630239487, -0.23361265659332275, -0.2063305377960205, -0.43808990716934204 ]
https://github.com/huggingface/datasets/issues/3400
Improve Wikipedia loading script
Thanks! See https://public.paws.wmcloud.org/User:Isaac_(WMF)/HuggingFace%20Wikipedia%20Processing.ipynb for more implementation details / some data around the overhead induced by adding the extra preprocessing steps (stripping link prefixes and magic words)
As reported by @geohci, the "wikipedia" processing/loading script could be improved by some additional small suggested processing functions: - _extract_content(filepath): - Replace .startswith("#redirect") with more structured approach: if elem.find(f"./{namespace}redirect") is None: continue - _parse_and_clean_wikicode(raw_content, parser): - Remove rm_template from cleaning -- this is redundant with .strip_code() from mwparserformhell - Build a language-specific list of namespace prefixes to filter out per below get_namespace_prefixes - Optional: strip prefixes like categories -- e.g., Category:Towns in Tianjin becomes Towns in Tianjin - Optional: strip magic words
26
Improve Wikipedia loading script As reported by @geohci, the "wikipedia" processing/loading script could be improved by some additional small suggested processing functions: - _extract_content(filepath): - Replace .startswith("#redirect") with more structured approach: if elem.find(f"./{namespace}redirect") is None: continue - _parse_and_clean_wikicode(raw_content, parser): - Remove rm_template from cleaning -- this is redundant with .strip_code() from mwparserformhell - Build a language-specific list of namespace prefixes to filter out per below get_namespace_prefixes - Optional: strip prefixes like categories -- e.g., Category:Towns in Tianjin becomes Towns in Tianjin - Optional: strip magic words Thanks! See https://public.paws.wmcloud.org/User:Isaac_(WMF)/HuggingFace%20Wikipedia%20Processing.ipynb for more implementation details / some data around the overhead induced by adding the extra preprocessing steps (stripping link prefixes and magic words)
[ 0.19396720826625824, 0.015727877616882324, -0.16937023401260376, -0.029805272817611694, -0.13102956116199493, 0.011372372508049011, 0.1996670514345169, 0.5238221287727356, 0.40249601006507874, -0.01023508608341217, 0.028697427362203598, 0.08133390545845032, 0.17222368717193604, -0.06932160258293152, 0.022834166884422302, -0.16208979487419128, 0.05892842262983322, 0.07518705725669861, -0.1196005642414093, -0.020743802189826965, -0.4444519579410553, 0.18611900508403778, -0.45116227865219116, -0.08598943054676056, -0.09124698489904404, 0.24216608703136444, 0.11532595753669739, 0.2092316746711731, 0.19486938416957855, -0.28722310066223145, -0.0061049070209264755, 0.3577409088611603, -0.040171243250370026, 0.11097079515457153, -0.00010027295502368361, -0.24695859849452972, 0.5153377056121826, 0.03516620397567749, -0.33123669028282166, 0.16362087428569794, -0.08984502404928207, -0.21939073503017426, 0.18446281552314758, -0.41569504141807556, -0.05747942999005318, 0.111733078956604, 0.06417559087276459, -0.038405586034059525, 0.24836543202400208, -0.1463223397731781, 0.31203874945640564, -0.13110628724098206, -0.33880624175071716, 0.06967324018478394, 0.2988719642162323, 0.2239450216293335, 0.060320012271404266, 0.059434257447719574, 0.09620777517557144, -0.37134823203086853, -0.17162132263183594, 0.5728347897529602, -0.4025574028491974, -0.2046319842338562, 0.2831335961818695, 0.01822519674897194, -0.00974997878074646, -0.3233194351196289, 0.2650039494037628, 0.3149867057800293, 0.31738901138305664, 0.02364000491797924, 0.02485210821032524, -0.12765361368656158, -0.09642800688743591, -0.11568532139062881, 0.2442682683467865, -0.006853517144918442, -0.2562582492828369, -0.03315212205052376, 0.08902314305305481, -0.010624595917761326, -0.13387072086334229, 0.09260163456201553, 0.16413772106170654, 0.5520074963569641, 0.07792645692825317, -0.03542815148830414, 0.11388196051120758, -0.10710984468460083, -0.22835330665111542, -0.11926592886447906, 0.20192259550094604, 0.2766713798046112, 0.15785321593284607, 0.07671423256397247, 0.11231787502765656, 0.407782644033432, 0.14427071809768677, -0.12608663737773895, -0.291191428899765, 0.27816370129585266, 0.17601951956748962, -0.004561044275760651, 0.056620050221681595, -0.17455124855041504, 0.06073031574487686, -0.4144010841846466, 0.4771037697792053, 0.3822630047798157, -0.15828104317188263, 0.1549774706363678, 0.03678354248404503, -0.11652552336454391, -0.051570504903793335, -0.14892971515655518, 0.07111359387636185, 0.016070056706666946, -0.03657248988747597, 0.24643687903881073, 0.1388547718524933, -0.11887374520301819, -0.25404784083366394, 0.3988131284713745, -0.20952863991260529, 0.42895936965942383, 0.33439838886260986, -0.08666800707578659, -0.366380900144577, 0.14128363132476807, 0.0008141365833580494, 0.15198832750320435, -0.24208304286003113, 0.3433482050895691, 0.2891666889190674, 0.3463393449783325, 0.2299792468547821, 0.11951365321874619, 0.022833455353975296, -0.264995276927948, -0.12357936054468155, 0.10337233543395996, 0.16249996423721313, 0.18217705190181732, 0.20085865259170532, 0.19959162175655365, -0.02026750147342682, -0.3072807192802429, -0.06655867397785187, 0.06215469539165497, -0.19040286540985107, 0.009870175272226334, -0.1434510499238968, 0.2966481149196625, 0.15667809545993805, 0.3270168900489807, -0.14446312189102173, 0.14032228291034698, -0.06260604411363602, -0.06108476594090462, -0.16807562112808228, 0.20160867273807526, -0.1793375015258789, -0.17572326958179474, 0.28825974464416504, 0.5597962141036987, 0.08838871121406555, 0.0583677813410759, 0.03202252462506294, 0.3633701503276825, 0.21030226349830627, 0.1494208127260208, -0.1388693004846573, 0.33936771750450134, -0.1479438692331314, 0.09507609903812408, 0.11176189035177231, -0.33172497153282166, 0.13561442494392395, 0.14352673292160034, -0.026591453701257706, 0.36199212074279785, 0.07893247157335281, 0.04822446033358574, 0.14176928997039795, -0.03127875551581383, 0.10571031272411346, 0.4501650929450989, 0.25873488187789917, 0.37598735094070435, -0.4333108365535736, -0.06745006144046783, 0.12181209027767181, 0.06298297643661499, 0.07717232406139374, -0.15741991996765137, -0.2470977008342743, 0.37196141481399536, 0.4996144473552704, -0.21929597854614258, 0.060306012630462646, 0.016131533309817314, -0.2356402724981308, 0.22807760536670685, 0.24627003073692322, 0.039063192903995514, -0.3629966676235199, 0.0018377192318439484, 0.11008647084236145, 0.364188551902771, -0.022460535168647766, -0.3322691321372986, -0.2734655737876892, -0.10273714363574982, -0.264963835477829, -0.10504196584224701, 0.3653179109096527, 0.10833773016929626, -0.10810084640979767, 0.0767306536436081, 0.09207479655742645, -0.15393169224262238, -0.08433974534273148, -0.02254938893020153, -0.2017495334148407, -0.02648477628827095, -0.21857091784477234, 0.07800798863172531, 0.005783416330814362, 0.1952633261680603, 0.08871911466121674, 0.04845532029867172, 0.056852392852306366, 0.012455567717552185, 0.1700155884027481, 0.11986033618450165, 0.22195571660995483, -0.09850679337978363, 0.12829101085662842, -0.28134775161743164, -0.02265934832394123, 0.3502528965473175, 0.13588175177574158, -0.19621136784553528, -0.26865440607070923, 0.3152802288532257, -0.10932160913944244, 0.3799707591533661, -0.024653587490320206, -0.16356384754180908, 0.2754853665828705, -0.18434934318065643, 0.11460737138986588, -0.20748837292194366, 0.10685737431049347, 0.4016965627670288, -0.07006169110536575, -0.03603687137365341, 0.13347208499908447, 0.1356586217880249, 0.06840748339891434, -0.141266867518425, 0.0886935219168663, 0.23246192932128906, -0.22408252954483032, -0.2752404808998108, -0.10439430177211761, -0.3513835668563843, -0.25230056047439575, 0.20471800863742828, -0.020919691771268845, 0.02705349214375019, 0.08585672080516815, -0.2293267846107483, 0.4935013949871063, 0.104458287358284, 0.12426222115755081, 0.07327868044376373, 0.14636890590190887, 0.07986494153738022, -0.2584500014781952, -0.13095948100090027, -0.38039538264274597, 0.025089070200920105, -0.15747274458408356, -0.03678106516599655, -0.013205267488956451, -0.20379099249839783, 0.028774471953511238, -0.03792452812194824, -0.21466988325119019, -0.3923681378364563, 0.01901351287961006, 0.34065765142440796, -0.2125297635793686, -0.014102356508374214, 0.1600327491760254, 0.14558522403240204, 0.028852401301264763, -0.1303870677947998, -0.25121188163757324, -0.45962586998939514, -0.11942490190267563, 0.15663689374923706, 0.266067773103714, 0.15237103402614594, 0.2854031026363373, -0.17751692235469818, -0.06880700588226318, -0.08901351690292358, -0.4092504680156708, 0.08739575743675232, -0.044046804308891296, -0.07186786830425262, -0.06764708459377289, 0.46638137102127075, 0.04833565652370453, -0.39697104692459106, 0.03352053463459015, 0.01549915038049221, 0.18014150857925415, 0.021355614066123962, -0.05101003497838974, -0.13336168229579926, -0.12609520554542542, -0.20260363817214966, 0.039870381355285645, -0.2294679582118988, 0.04497206583619118, 0.013523176312446594, 0.23520860075950623, 0.09663104265928268, -0.07940064370632172, -0.14732766151428223, 0.0748506560921669, 0.1390112042427063, -0.1198074147105217, 0.057325977832078934, 0.2472427785396576, -0.13211074471473694, -0.21940167248249054, -0.010007183998823166, -0.18147756159305573, 0.11227840185165405, -0.1714845895767212, -0.23224498331546783, 0.011843717657029629, 0.2596343457698822, 0.3425201177597046, 0.2679559886455536, -0.06505857408046722, 0.29997146129608154, 0.32026827335357666, -0.21910205483436584, 0.0658632293343544, 0.027941487729549408, -0.04775082319974899, -0.31991487741470337, -0.08941953629255295, 0.22405660152435303, -0.005150727927684784, -0.18949377536773682, 0.5411364436149597, 0.046481188386678696, 0.23655946552753448, 0.24952226877212524, 0.08996112644672394, -0.06033409759402275, -0.12520170211791992, -0.22025196254253387, -0.18250110745429993, -0.19740092754364014, -0.09292197972536087, 0.5239412784576416, 0.01686023734509945, -0.41632479429244995, -0.2977273762226105, -0.03169181942939758, -0.4262785315513611, -0.5380660891532898, 0.22064656019210815, 0.30955472588539124, 0.12675151228904724, 0.02582947537302971, 0.03605056554079056, -0.08292292058467865, -0.2805318236351013, 0.3062799870967865, 0.3108697235584259, 0.2169535756111145, -0.25779515504837036, -0.049284446984529495, -0.17811165750026703, -0.3197225332260132, 0.12907065451145172, 0.2821546494960785, -0.24746325612068176, 0.07024820148944855, -0.2803220748901367, -0.04456605017185211, -0.032299090176820755, 0.09160681068897247, -0.2783815264701843, 0.1371695101261139, 0.13258540630340576, 0.12887845933437347, -0.25555619597435, 0.0021135732531547546, -0.10498480498790741, 0.05022750049829483, 0.3830421566963196, 0.28778180480003357, -0.30831870436668396, -0.14907389879226685, 0.22392350435256958, 0.19553877413272858, -0.1283418983221054, -0.17581792175769806, -0.15783631801605225, -0.1932031214237213, -0.46587881445884705, 0.06079889461398125, -0.09999590367078781, 0.07795082777738571, -0.23521611094474792, -0.05870770290493965, 0.2724515497684479, 0.1748197078704834, 0.16118116676807404, 0.49640345573425293, -0.020775772631168365, 0.30049821734428406, -0.09549091756343842, -0.1070537120103836, 0.06111324578523636, -0.2575998306274414, -0.03006657212972641, 0.07389219105243683, -0.19253453612327576, -0.22204047441482544, -0.18944798409938812, 0.1316816210746765, 0.3167433440685272, 0.07009461522102356, -0.09881744533777237, -0.041411809623241425, 0.03601168096065521, -0.3061884343624115, 0.06209268048405647, 0.006365193519741297, -0.17368215322494507, -0.23789529502391815, -0.18412604928016663, 0.5933899879455566, -0.14376986026763916, -0.23490957915782928, 0.2360372543334961, 0.17968358099460602, -0.3814430832862854, 0.38471174240112305, 0.23835855722427368, 0.8987542986869812, -0.05165871977806091, 0.12309551239013672, 0.2782084047794342, 0.22793741524219513, 0.24357444047927856, -0.11951294541358948, 0.0685470849275589, -0.4692508578300476, 0.4453405737876892, 0.14927799999713898, 0.24247950315475464, -0.22391444444656372, -0.11998488008975983, -0.39226341247558594, 0.18279212713241577, -0.017214134335517883, 0.22261059284210205, -0.03633803874254227, 0.4357389211654663, 0.3744869530200958, -0.573272168636322, -0.18983644247055054, 0.2023320198059082, -0.06640440970659256, 0.18269576132297516, -0.19701379537582397, -0.025425516068935394, 0.08628365397453308, 0.04114335775375366, -0.17333048582077026, 0.2033068835735321, -0.13599619269371033, 0.0001559518277645111, -0.41811782121658325, -0.04565839841961861, -0.0702352374792099, 0.19714483618736267, -0.06843137741088867, 0.4870094358921051, -0.21951769292354584, 0.11231982707977295, -0.3687026798725128, 0.015502288937568665, -0.15512216091156006, -0.018376938998699188, 0.025076301768422127, -0.15894360840320587, -0.31910455226898193, -0.03218276798725128, -0.07162844389677048, -0.06626275181770325, -0.1918482482433319, -0.04019979387521744, 0.2881014943122864, -0.07277749478816986, -0.20111088454723358, 0.1833677440881729, -0.41250914335250854, -0.19561553001403809, 0.2751161754131317, -0.28115314245224, -0.03900989517569542, -0.0009288117289543152, 0.3952527344226837, -0.06317858397960663, 0.06882140040397644, 0.1825776994228363, 0.1981409788131714, -0.05268842354416847, 0.23347045481204987, 0.30466681718826294, -0.3192501664161682, -0.35402780771255493, -0.32807496190071106, -0.33523687720298767, -0.09380607306957245, -0.1568707674741745, 0.19337758421897888, -0.03416725993156433, -0.10867972671985626, 0.14382636547088623, -0.06202533841133118, -0.17758187651634216, 0.12058433890342712, -0.16191408038139343, 0.11926663666963577, 0.1904459297657013, -0.06942258775234222, -0.11319383978843689, 0.325773149728775, -0.07985086739063263, 0.010061273351311684, 0.08784099668264389, -0.44274410605430603, -0.06843964755535126, 0.07311975210905075, 0.18458570539951324, 0.23048491775989532, -0.10265523940324783, -0.07994619756937027, 0.05142471194267273, 0.2578166425228119, -0.0021104812622070312, 0.1764904409646988, -0.4003841280937195, -0.07188045978546143, 0.03736717998981476, -0.08522661030292511, -0.19331103563308716, 0.10804934054613113, 0.0868062973022461, 0.230224147439003, -0.4064967930316925, 0.005434369668364525, -0.41168227791786194, -0.009107187390327454, 0.15954984724521637, 0.1464664489030838, 0.06971815973520279, -0.15487277507781982, 0.25834667682647705, -0.20237618684768677, 0.440152645111084, -0.07783482223749161, -0.07645437121391296, 0.09115386754274368, -0.18382889032363892, -0.05871415510773659, 0.24336296319961548, 0.12646542489528656, 0.2627514898777008, 0.22408556938171387, 0.09879451245069504, -0.2382783740758896, 0.3275720477104187, -0.0331813283264637, 0.2493690550327301, -0.008167269639670849, -0.1067095547914505, -0.01659332402050495, 0.343442440032959, -0.27027592062950134, -0.01680365949869156, 0.2873022258281708, -0.2502281069755554, 0.10974542796611786, 0.22518518567085266, 0.12059980630874634, -0.3605635166168213, 0.24648846685886383, 0.09880256652832031, 0.10951313376426697, -0.2983400821685791, -0.06520222127437592, -0.14852724969387054, 0.17542457580566406, 0.013295412063598633, -0.19376999139785767, -0.04389266297221184, 0.020639188587665558, 0.07345277070999146, 0.09502310305833817, 0.19190964102745056, 0.15601308643817902, 0.3505360782146454, -0.20853248238563538, 0.007617872208356857, 0.14846673607826233, 0.06972530484199524, -0.15288281440734863, 0.24689996242523193, 0.18560172617435455, -0.25886207818984985, 0.18434152007102966, -0.037243928760290146, -0.2405005693435669, 0.34170857071876526, -0.17291080951690674, -0.24355165660381317, -0.05993930250406265, -0.15669427812099457, 0.059554681181907654, 0.0679076611995697, 0.10217501223087311, -0.15788020193576813, 0.11251421272754669, 0.2631385624408722, -0.0394781231880188, -0.2136986404657364, 0.21899491548538208, -0.15731161832809448, 0.6545491814613342, -0.1272708922624588, -0.12576346099376678, 0.1925908476114273, 0.20005416870117188, -0.15850470960140228, 0.07147311419248581, 0.25503256916999817, 0.31650128960609436, -0.6406166553497314, -0.10469925403594971, -0.3989849388599396, -0.024238409474492073, -0.1255563497543335, 0.027621187269687653, 0.1390300691127777, 0.08793327957391739, 0.11000208556652069, 0.29738855361938477, -0.29619744420051575, -0.2825585901737213, 0.3328677713871002, -0.15120168030261993, 0.3081094026565552, -0.45664986968040466, 0.26872485876083374, -0.19736406207084656, -0.35154321789741516, 0.08447043597698212, -0.2862687408924103, 0.1300305873155594, 0.20298083126544952, 0.12345314770936966, 0.00011366792023181915, -0.13245637714862823, 0.14431066811084747, 0.321802020072937, 0.6565507054328918, 0.06598138064146042, 0.004736531525850296, -0.19618463516235352, -0.3693145513534546, -0.34844857454299927, 0.05907890573143959, -0.03855748847126961, -0.11772430688142776, 0.13099434971809387, 0.20570288598537445, -0.16464388370513916, 0.23016893863677979, -0.22310812771320343, -0.42124730348587036, 0.2636460065841675, 0.11439470946788788, -0.2519965171813965, 0.19554810225963593, 0.10439831018447876, -0.07887613773345947, -0.20419993996620178, -0.2923615574836731, 0.23554269969463348, -0.05700405687093735, 0.24927672743797302, -0.04918961971998215, 0.014419369399547577, 0.1459772139787674, 0.36415085196495056, 0.2948462665081024, 0.006027005612850189, 0.13494057953357697, -0.3772400915622711, -0.2502676248550415, -0.18026185035705566, 0.032031502574682236, 0.0852954238653183, 0.1871652752161026, 0.10365036129951477, -0.01246714312583208, 0.2786622941493988, -0.1666778028011322, -0.09807752072811127, 0.2944079637527466, 0.0004488639533519745, 0.050813376903533936, -0.2840741276741028, -0.2956267297267914, 0.27273088693618774, 0.3152615427970886, -0.36619409918785095, 0.23056405782699585, -0.23111560940742493, 0.1636923849582672, -0.350383460521698, -0.5617607831954956, 0.2856541872024536, -0.3255726099014282, -0.48065611720085144, -0.025311525911092758, 0.3280138373374939, -0.3236447870731354, 0.24499203264713287, -0.26498526334762573, -0.004381932318210602, 0.061317455023527145, 0.13079041242599487, -0.2017224282026291, 0.2683090567588806, -0.1109304428100586, -0.23734138906002045, -0.1446772962808609, -0.2594835162162781, 0.14096632599830627, -0.22339972853660583, -0.42563602328300476, -0.36552250385284424 ]
https://github.com/huggingface/datasets/issues/3398
Add URL field to Wikimedia dataset instances: wikipedia,...
@geohci, I think the field "url" does not appear in the Wikimedia dumps. Therefore I guess we should generate it, using the "title" field and making some transformation of it (replacing spaces with underscores) and prepending the domain (created using the language)?
As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia
42
Add URL field to Wikimedia dataset instances: wikipedia,... As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia @geohci, I think the field "url" does not appear in the Wikimedia dumps. Therefore I guess we should generate it, using the "title" field and making some transformation of it (replacing spaces with underscores) and prepending the domain (created using the language)?
[ 0.15710413455963135, 0.23139739036560059, 0.05535944923758507, -0.0971822589635849, -0.033584125339984894, 0.12051218003034592, 0.09981972724199295, -0.027169927954673767, 0.1562783271074295, 0.1611173152923584, 0.12875978648662567, 0.39922451972961426, 0.24277547001838684, -0.01612532138824463, 0.11806966364383698, -0.0430259108543396, 0.054670680314302444, -0.14643004536628723, 0.07935900241136551, -0.026732150465250015, -0.5429909825325012, -0.10448402166366577, -0.19172683358192444, 0.11468437314033508, -0.32910826802253723, 0.08003117144107819, -0.15990804135799408, 0.04413291811943054, -0.052972257137298584, -0.5854727625846863, -0.004266364499926567, 0.2980205714702606, 0.10021469742059708, 0.13060437142848969, -0.00011327343963785097, -0.1324886679649353, 0.724306046962738, -0.04781069606542587, -0.3696550726890564, -0.08652131259441376, -0.3484994173049927, 0.07168414443731308, -0.03293326497077942, -0.3411330282688141, -0.0347379595041275, 0.07699639350175858, 0.20731526613235474, 0.2120351493358612, -0.12397828698158264, -0.08744972199201584, 0.12835155427455902, -0.0816619023680687, 0.021671224385499954, -0.11097430437803268, -0.064178965985775, 0.01641734316945076, -0.006229737773537636, -0.023100946098566055, -0.12838490307331085, 0.03364597260951996, -0.04399199038743973, 0.2164626270532608, 0.17453216016292572, -0.17570941150188446, -0.052907444536685944, 0.18401914834976196, -0.4282553195953369, -0.21011294424533844, 0.10526612401008606, 0.2758534252643585, 0.4850408732891083, -0.22488072514533997, -0.38224321603775024, 0.05232928693294525, 0.30673107504844666, 0.017126211896538734, 0.18017777800559998, 0.20242026448249817, 0.2740783989429474, 0.11387121677398682, 0.05587509274482727, -0.24602460861206055, -0.3675602376461029, 0.2832777500152588, 0.012548550963401794, 0.7729823589324951, 0.17666563391685486, 0.2104034721851349, -0.43957221508026123, 0.08305688202381134, 0.09634766727685928, -0.2671801447868347, 0.2103012502193451, -0.029733844101428986, 0.22150163352489471, -0.2775947153568268, -0.03854755312204361, 0.30879396200180054, 0.0627630203962326, -0.20314936339855194, -0.16836920380592346, -0.09744461625814438, -0.03152009844779968, 0.1059763953089714, 0.05958394706249237, -0.36513909697532654, 0.028730787336826324, 0.1623821258544922, 0.4684327244758606, 0.01945955492556095, 0.07634210586547852, -0.11409810930490494, -0.10725252330303192, 0.23458202183246613, -0.4018835723400116, 0.05703461542725563, 0.01960541307926178, 0.06459090113639832, -0.07944514602422714, 0.1376129388809204, 0.25614655017852783, 0.05782468616962433, 0.010500054806470871, 0.24002033472061157, -0.18600454926490784, 0.037507981061935425, -0.11007227003574371, 0.14833790063858032, -0.018122779205441475, -0.048692550510168076, -0.12462756782770157, 0.21593637764453888, 0.20206579566001892, 0.4192012548446655, 0.13022640347480774, 0.043096937239170074, 0.5221177935600281, -0.07423707097768784, 0.11183686554431915, -0.20721474289894104, 0.08538240194320679, 0.10276171565055847, 0.05715788155794144, 0.22954988479614258, 0.2783558964729309, 0.3453046977519989, 0.06311729550361633, -0.17501574754714966, -0.06343300640583038, 0.28730204701423645, -0.8060635328292847, -0.3427829146385193, -0.1192169189453125, 0.06568112969398499, -0.10726610571146011, -0.1637144386768341, -0.06908128410577774, 0.16167600452899933, 0.053279172629117966, -0.0507364496588707, 0.05642914026975632, 0.25026485323905945, -0.3048221468925476, -0.10074350237846375, 0.1588173359632492, 0.21121275424957275, 0.07143369317054749, 0.15317580103874207, -0.3376043736934662, 0.3999427258968353, -0.03656569868326187, -0.3135679066181183, -0.18176503479480743, 0.5109192132949829, 0.076978400349617, 0.445156991481781, 0.009615518152713776, -0.5028415322303772, 0.10026295483112335, -0.15356415510177612, -0.15843597054481506, -0.08049391955137253, -0.26274195313453674, 0.028016982600092888, 0.19226054847240448, -0.036229729652404785, 0.15056879818439484, 0.3364805579185486, -0.07686733454465866, 0.10253267735242844, -0.15257500112056732, -0.08757730573415756, -0.1516563445329666, 0.28588375449180603, 0.20357783138751984, -0.11582072824239731, 0.18594993650913239, 0.26886919140815735, 0.1455790102481842, -0.18164798617362976, 0.06482937186956406, 0.06875300407409668, 0.12286661565303802, -0.08162795007228851, 0.13019971549510956, -0.05389181151986122, 0.10879415273666382, 0.011821869760751724, -0.09611020237207413, 0.35934922099113464, 0.014049649238586426, -0.3419368267059326, -0.302931547164917, 0.21571286022663116, -0.13935571908950806, -0.19692279398441315, 0.14805372059345245, -0.07331928610801697, -0.2070024609565735, 0.24943213164806366, -0.08833716809749603, -0.3459623157978058, -0.22773732244968414, -0.04588015004992485, 0.020050451159477234, 0.18951156735420227, -0.053190216422080994, 0.2605975270271301, -0.00011346116662025452, 0.3334263861179352, 0.31315186619758606, 0.14398890733718872, 0.08372019231319427, 0.38085755705833435, 0.36833104491233826, 0.4696270823478699, 0.7099097371101379, -0.014240071177482605, 0.36924630403518677, -0.13580678403377533, -0.17937777936458588, 0.17730781435966492, 0.017184171825647354, 0.14114350080490112, -0.06488540023565292, 0.5167853236198425, 0.027117464691400528, 0.11385504901409149, -0.0152510367333889, 0.10599372535943985, 0.28879785537719727, 0.06361548602581024, -0.08461397886276245, -0.20628857612609863, -0.36554571986198425, 0.42486271262168884, -0.40113553404808044, -0.1193474680185318, 0.2904340624809265, 0.18436136841773987, 0.24678850173950195, -0.26628148555755615, 0.2120949923992157, 0.24309906363487244, -0.26346564292907715, -0.2581269145011902, 0.0794077068567276, -0.0077672116458415985, -0.03981393575668335, 0.1474410742521286, -0.003837425261735916, 0.08922306448221207, -0.11900784820318222, -0.1929737776517868, 0.4178101420402527, 0.39456963539123535, 0.07789427042007446, 0.18246325850486755, 0.043928299099206924, -0.07465112954378128, -0.1595223844051361, -0.2145780473947525, 0.11682005971670151, 0.122120700776577, -0.28062304854393005, -0.25942668318748474, -0.0739687830209732, 0.36860018968582153, 0.1147526279091835, -0.15226830542087555, -0.23334625363349915, -0.49917444586753845, 0.33000683784484863, 0.2598220705986023, -0.38704952597618103, 0.06381971389055252, -0.0760410875082016, 0.4897831678390503, 0.004336690530180931, 0.06930560618638992, -0.14067046344280243, -0.5611675381660461, -0.0849701538681984, 0.12163199484348297, 0.05490294098854065, -0.014573082327842712, 0.07936809957027435, 0.22772617638111115, 0.3706836700439453, -0.28283029794692993, -0.4933711886405945, -0.03751222789287567, -0.0887298583984375, 0.2672693431377411, -0.10623924434185028, 0.2783949375152588, -0.23941156268119812, -0.3541603684425354, 0.059843759983778, 0.10343019664287567, 0.20857849717140198, -0.05800793692469597, -0.20779837667942047, -0.11278720945119858, 0.18551219999790192, -0.047304652631282806, -0.10301046073436737, -0.029922965914011, -0.3002205491065979, 0.04576975479722023, 0.18111933767795563, -0.28306710720062256, -0.12593695521354675, 0.010433757677674294, 0.036890797317028046, -0.26361018419265747, -0.29114648699760437, -0.5249606370925903, 0.6405799388885498, -0.6274124979972839, -0.40603411197662354, -0.08655425161123276, -0.29783475399017334, 0.19690129160881042, 0.006560656242072582, -0.13841742277145386, -0.40111494064331055, 0.35416147112846375, -0.07166895270347595, 0.45162108540534973, 0.1317012906074524, 0.28084391355514526, 0.12974178791046143, -0.10685568302869797, -0.05043037608265877, 0.03319810703396797, 0.22168004512786865, 0.6089895367622375, 0.08446070551872253, 0.18009287118911743, -0.17610523104667664, 0.03483534976840019, 0.818659782409668, 0.15718916058540344, 0.675640344619751, 0.27517372369766235, -0.06935426592826843, -0.010915819555521011, 0.02151862531900406, 0.2668718695640564, 0.03920190408825874, 0.05892687290906906, -0.12930408120155334, 0.564024031162262, 0.263116717338562, -0.0527820885181427, -0.09610158205032349, -0.12050208449363708, -0.5404080748558044, -0.36729586124420166, -0.10693269968032837, 0.11058077216148376, 0.2882355749607086, 0.14824359118938446, -0.12700791656970978, -0.41842934489250183, -0.34770330786705017, 0.18993565440177917, 0.165933296084404, 0.07046874612569809, -0.20146143436431885, -0.27152228355407715, -0.38343340158462524, -0.40580737590789795, 0.025966331362724304, 0.2104060798883438, 0.25983697175979614, 0.09741811454296112, -0.0623101145029068, 0.05867956951260567, 0.08744503557682037, 0.21667364239692688, -0.726349413394928, -0.016560956835746765, -0.4133777618408203, -0.0036687590181827545, -0.18268686532974243, 0.1710468828678131, 0.08822305500507355, -0.08189282566308975, -0.28867000341415405, 0.2166237086057663, -0.27211323380470276, 0.1595931500196457, 0.1527717560529709, -0.2986045181751251, -0.3178970515727997, -0.1449682116508484, -0.19003364443778992, -0.5131239891052246, -0.2366389036178589, -0.03257792443037033, 0.07671523839235306, 0.4125596582889557, 0.0420355424284935, 0.032472241669893265, -0.04435169696807861, 0.19111952185630798, 0.027527108788490295, 0.22286567091941833, 0.01881236955523491, 0.21956300735473633, -0.16859793663024902, 0.36881399154663086, -0.2433164417743683, -0.18335893750190735, 0.23017074167728424, 0.10988250374794006, 0.20753470063209534, 0.09563055634498596, -0.2981625497341156, 0.30458515882492065, 0.3920590281486511, 0.035408854484558105, 0.09491600096225739, 0.06481866538524628, -0.1324632465839386, -0.5532919764518738, 0.09709655493497849, -0.18220916390419006, -0.1404329091310501, -0.4321407079696655, -0.1909468173980713, 0.5053850412368774, -0.1782645285129547, -0.15784291923046112, 0.6414769291877747, 0.7114955186843872, -0.4021991789340973, 0.5957478284835815, 0.4631752371788025, 0.9357776045799255, -0.08626751601696014, -0.08101126551628113, 0.15898701548576355, 0.16646519303321838, 0.4616442918777466, -0.33950722217559814, 0.17912061512470245, -0.2647753357887268, -0.10542046278715134, -0.15310132503509521, 0.08459459245204926, 0.27972081303596497, 0.05414528027176857, 0.17786277830600739, 0.21293073892593384, 0.4973929524421692, 0.3539382815361023, 0.16397422552108765, 0.5899885296821594, 0.10919132083654404, -0.28595003485679626, 0.2594407796859741, 0.08134415000677109, -0.030587799847126007, 0.14280220866203308, -0.06654641777276993, -0.08941446244716644, -0.23798254132270813, -0.09710516780614853, -0.07991122454404831, -0.14898020029067993, -0.009408362209796906, 0.1340414136648178, -0.2814944386482239, -0.09229422360658646, -0.12306173145771027, 0.033594947308301926, 0.20609848201274872, 0.1672087162733078, -0.4662224054336548, 0.3783239424228668, -0.530795156955719, 0.014657609164714813, 0.018104512244462967, -0.1363244205713272, 0.025024091824889183, -0.18058693408966064, -0.12801912426948547, 0.04122040793299675, 0.2666299045085907, -0.3963737487792969, -0.03922075033187866, -0.323072612285614, 0.17845335602760315, 0.016793634742498398, -0.4491925835609436, 0.05947880446910858, -0.37735170125961304, -0.20458759367465973, 0.0877029150724411, -0.2564256191253662, -0.03137204051017761, 0.006592370569705963, 0.2617522180080414, -0.1020321398973465, -0.06486208736896515, 0.1830330193042755, -0.03505726903676987, 0.25623416900634766, 0.06669650971889496, -0.13445615768432617, -0.18829892575740814, 0.015434499830007553, 0.08583036810159683, -0.04571625590324402, -0.26193585991859436, -0.30941566824913025, 0.1578378826379776, 0.062339261174201965, -0.4369153678417206, -0.07448774576187134, -0.025924868881702423, 0.24076518416404724, -0.03973819315433502, -0.46575021743774414, 0.07038447260856628, 0.26212966442108154, -0.09504163265228271, -0.004442989826202393, -0.016367822885513306, 0.30389073491096497, -0.03376863896846771, 0.05531691759824753, -0.28563523292541504, -0.05765659362077713, -0.07490094006061554, 0.235173761844635, -0.47666051983833313, -0.00401657447218895, 0.12772411108016968, 0.04843882843852043, 0.06837265938520432, -0.14061199128627777, 0.034201111644506454, -0.12311218678951263, -0.3923850953578949, 0.1317852884531021, 0.38373616337776184, -0.22713297605514526, -0.14734794199466705, -0.1966172307729721, 0.07968702912330627, -0.16729305684566498, -0.12503351271152496, -0.11697804182767868, -0.21878577768802643, 0.18209466338157654, 0.42943769693374634, -0.004447929561138153, -0.34715211391448975, 0.08974537998437881, 0.06002866104245186, 0.510592520236969, 0.04369475692510605, 0.1724330633878708, -0.13327442109584808, -0.0034548714756965637, -0.04101676493883133, 0.3082301914691925, -0.1319538652896881, -0.020579367876052856, 0.37314897775650024, 0.1658700704574585, 0.07254946231842041, 0.32207414507865906, 0.1548776626586914, -0.04340192675590515, -0.1450304538011551, -0.028838127851486206, 0.15900129079818726, 0.11962076276540756, -0.15068259835243225, 0.12696760892868042, 0.12688593566417694, -0.33334723114967346, -0.023882126435637474, 0.16943693161010742, 0.351346880197525, 0.03234170377254486, -0.4304576516151428, 0.016358207911252975, 0.25117242336273193, -0.35160475969314575, 0.1274496167898178, -0.057422515004873276, -0.007159341126680374, 0.3926853537559509, 0.04166945070028305, 0.12786583602428436, -0.20447370409965515, 0.058180779218673706, 0.35686570405960083, 0.34345579147338867, 0.4069538116455078, 0.0867459625005722, 0.07213816791772842, -0.1185189038515091, 0.3855222761631012, 0.09332139790058136, 0.1197320967912674, -0.04531638324260712, 0.1271059215068817, -0.49376505613327026, -0.1264563649892807, 0.06442617624998093, -0.28979238867759705, 0.15784066915512085, 0.07169803977012634, -0.3310770094394684, -0.13205082714557648, -0.23118218779563904, 0.10903061926364899, 0.021267119795084, 0.06932573765516281, -0.5290613174438477, -0.22595712542533875, 0.11376817524433136, 0.06781703233718872, -0.391451895236969, 0.199924498796463, 0.16952258348464966, 0.4718341827392578, -0.17479515075683594, 0.014827731065452099, -0.0021799802780151367, 0.08395986258983612, 0.11580613255500793, 0.03428415209054947, -0.03758477047085762, -0.014586832374334335, -0.3996356129646301, 0.12072087824344635, -0.06219178065657616, -0.0695941373705864, 0.34470799565315247, 0.24523523449897766, 0.26542913913726807, -0.10061989724636078, 0.30372750759124756, 0.18130473792552948, -0.059075742959976196, -0.38681283593177795, 0.4548267126083374, -0.000987110659480095, 0.16363680362701416, 0.37031903862953186, 0.34371525049209595, -0.15403923392295837, 0.2937682569026947, -0.010331012308597565, -0.36713334918022156, -0.0779355987906456, 0.14631310105323792, -0.30510762333869934, 0.04307055473327637, -0.4431198835372925, 0.06271203607320786, 0.15134066343307495, 0.3051629364490509, 0.139910027384758, -0.019938722252845764, -0.5631322264671326, -0.3675633668899536, -0.24551896750926971, 0.0906069278717041, 0.10059545934200287, 0.06977428495883942, 0.3071315288543701, 0.012833135202527046, -0.2641517221927643, 0.2065824419260025, -0.4644628167152405, -0.26242101192474365, -0.1943843960762024, 0.20040690898895264, 0.09141331911087036, -0.006009623408317566, -0.28642964363098145, 0.3131754398345947, -0.37897491455078125, 0.10745715349912643, 0.21059876680374146, 0.04319314658641815, -0.03458048403263092, -0.07133346796035767, 0.019377179443836212, 0.20453676581382751, -0.14799904823303223, 0.05500277131795883, -0.14120104908943176, -0.008834242820739746, -0.30920785665512085, 0.19635704159736633, -0.06333215534687042, -0.10403308272361755, -0.32091930508613586, 0.0879872739315033, -0.11933298408985138, 0.09616955369710922, 0.41646209359169006, -0.38517487049102783, -0.05026819929480553, 0.1424189805984497, -0.3583070635795593, 0.12597179412841797, -0.2530067265033722, 0.0037490371614694595, -0.038798123598098755, 0.09568184614181519, 0.06528399139642715, 0.15227025747299194, -0.07015243172645569, 0.37358981370925903, 0.21249572932720184, -0.421158105134964, 0.3301286995410919, -0.40171051025390625, -0.13076001405715942, 0.07407185435295105, 0.41625118255615234, -0.13245362043380737, 0.34143948554992676, -0.20971718430519104, 0.10449410229921341, 0.33479586243629456, 0.07146260887384415, -0.0783168375492096, 0.27909207344055176, -0.16342511773109436, 0.01158425584435463, -0.2375720739364624, 0.20856791734695435, -0.07795106619596481, -0.2479645311832428, -0.19962389767169952, -0.20366987586021423 ]
https://github.com/huggingface/datasets/issues/3398
Add URL field to Wikimedia dataset instances: wikipedia,...
Indeed: > To re-distribute text on Wikipedia in any form, provide credit to the authors either by including a) a [hyperlink](https://en.wikipedia.org/wiki/Hyperlink) (where possible) or [URL](https://en.wikipedia.org/wiki/URL) to the page or pages you are re-using, b) a hyperlink (where possible) or URL to an alternative, stable online copy which is freely accessible, which conforms with the license, and which provides credit to the authors in a manner equivalent to the credit given on this website, or c) a list of all authors. (Any list of authors may be filtered to exclude very small or irrelevant contributions.) This applies to text developed by the Wikipedia community. Text from external sources may attach additional attribution requirements to the work, which should be indicated on an article's face or on its talk page. For example, a page may have a banner or other notation indicating that some or all of its content was originally published somewhere else. Where such notations are visible in the page itself, they should generally be preserved by re-users. source: https://en.wikipedia.org/wiki/Wikipedia:Copyrights I guess it's fine to add the URL field - it can be constructed easily from the title page IIRC.
As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia
190
Add URL field to Wikimedia dataset instances: wikipedia,... As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia Indeed: > To re-distribute text on Wikipedia in any form, provide credit to the authors either by including a) a [hyperlink](https://en.wikipedia.org/wiki/Hyperlink) (where possible) or [URL](https://en.wikipedia.org/wiki/URL) to the page or pages you are re-using, b) a hyperlink (where possible) or URL to an alternative, stable online copy which is freely accessible, which conforms with the license, and which provides credit to the authors in a manner equivalent to the credit given on this website, or c) a list of all authors. (Any list of authors may be filtered to exclude very small or irrelevant contributions.) This applies to text developed by the Wikipedia community. Text from external sources may attach additional attribution requirements to the work, which should be indicated on an article's face or on its talk page. For example, a page may have a banner or other notation indicating that some or all of its content was originally published somewhere else. Where such notations are visible in the page itself, they should generally be preserved by re-users. source: https://en.wikipedia.org/wiki/Wikipedia:Copyrights I guess it's fine to add the URL field - it can be constructed easily from the title page IIRC.
[ 0.14690355956554413, 0.15636441111564636, 0.04569052532315254, -0.09730330109596252, -0.06877756118774414, 0.08821617811918259, 0.23518848419189453, 0.10120616853237152, 0.273224413394928, 0.09654785692691803, -0.0006464030593633652, 0.5451565384864807, 0.3293742537498474, -0.03478501737117767, 0.144932359457016, 0.035968951880931854, -0.07038267701864243, -0.00781780481338501, 0.09009435027837753, -0.11893340200185776, -0.2662050127983093, -0.1626247614622116, -0.015534751117229462, 0.10171584784984589, -0.3356572091579437, 0.11594567447900772, -0.03995973989367485, 0.0005196221172809601, 0.15741923451423645, -0.5787083506584167, -0.08198073506355286, 0.3225381076335907, 0.12365752458572388, -0.027439646422863007, -0.00010213574569206685, -0.05464639142155647, 0.5468021631240845, -0.04754919186234474, -0.5382331609725952, -0.023331061005592346, -0.2566256821155548, 0.04898393154144287, 0.05685523897409439, -0.3973725438117981, -0.03010813146829605, 0.14064033329486847, 0.18117892742156982, 0.24602070450782776, 0.07325871288776398, -0.1679518073797226, 0.25355345010757446, -0.07846350967884064, 0.10359930992126465, -0.0924299955368042, 0.18220283091068268, 0.0754530131816864, -0.024787500500679016, 0.08160553872585297, -0.17321142554283142, 0.2063208371400833, -0.06003587692975998, 0.3942897617816925, -0.0004340279847383499, -0.07010810077190399, 0.1379072368144989, 0.06385722011327744, -0.2373417317867279, -0.1481064260005951, 0.09935395419597626, 0.3771224319934845, 0.4801136553287506, -0.2192433476448059, -0.3594066798686981, -0.17001008987426758, 0.2406635880470276, 0.1399695873260498, 0.115647092461586, 0.16802556812763214, 0.22111280262470245, 0.1134127527475357, 0.13424761593341827, -0.3733396530151367, -0.31808531284332275, 0.18528786301612854, 0.004824921488761902, 0.5783547163009644, 0.14961665868759155, 0.18246787786483765, -0.36394011974334717, 0.16554909944534302, 0.007746221963316202, -0.22967493534088135, 0.2507575750350952, -0.11309859901666641, 0.35150983929634094, -0.2751334309577942, -0.01839122176170349, 0.15245379507541656, 0.14669600129127502, -0.2047618329524994, -0.2302437126636505, -0.12940266728401184, 0.005068597383797169, 0.08976884186267853, 0.1719195693731308, -0.387802392244339, -0.15137499570846558, 0.19860699772834778, 0.6666785478591919, 0.09321330487728119, -0.028370345011353493, -0.12175054103136063, 0.08492616564035416, 0.26691827178001404, -0.22470144927501678, -0.08829925209283829, 0.07031214982271194, 0.007762428373098373, -0.10855396091938019, 0.07073239237070084, 0.20000392198562622, 0.10238242894411087, -0.0299217589199543, 0.1968514323234558, -0.15191495418548584, 0.05122196674346924, -0.07374763488769531, 0.0330856554210186, 0.0059436894953250885, -0.06769880652427673, -0.10981043428182602, 0.12212854623794556, 0.17959825694561005, 0.48061585426330566, 0.17505967617034912, -0.054161395877599716, 0.3845684826374054, -0.07724794745445251, 0.19677431881427765, -0.23397374153137207, 0.07700326293706894, 0.105984166264534, 0.03593193367123604, 0.23340082168579102, 0.23484787344932556, 0.343466192483902, -0.030545499175786972, -0.20942410826683044, -0.1508963704109192, 0.21288305521011353, -0.6181076169013977, -0.2740844786167145, -0.06750126928091049, 0.19996041059494019, -0.09857266396284103, -0.1737557053565979, 0.058858513832092285, 0.05556847155094147, 0.00011009722948074341, -0.14075954258441925, 0.024953514337539673, 0.318132221698761, -0.22388577461242676, -0.16439546644687653, 0.19003862142562866, 0.30267512798309326, 0.09785057604312897, 0.13919317722320557, -0.2733478546142578, 0.4062919616699219, -0.1357608139514923, -0.1495831161737442, -0.24424956738948822, 0.5067585706710815, 0.04974377900362015, 0.3871418833732605, 0.1573561429977417, -0.42769986391067505, -0.09640930593013763, -0.10441568493843079, -0.12215378135442734, -0.023458650335669518, -0.2543867230415344, 0.214128315448761, 0.2637699544429779, -0.10739835351705551, -0.04994136095046997, 0.26352548599243164, 0.07187006622552872, 0.2180798202753067, -0.285413920879364, -0.1267765313386917, -0.04818075895309448, 0.29873815178871155, 0.1856766641139984, -0.028864212334156036, 0.24319511651992798, 0.3796703517436981, 0.15609830617904663, -0.2787531316280365, 0.14779704809188843, -0.019406575709581375, 0.1948796808719635, 0.02298406884074211, 0.10439074784517288, -0.1474004089832306, 0.17073312401771545, 0.029208257794380188, -0.10881003737449646, 0.32667064666748047, 0.06390659511089325, -0.4402589797973633, -0.3041573464870453, 0.07900066673755646, -0.17357118427753448, -0.2978611886501312, 0.3113655149936676, -0.0526493638753891, -0.10995358228683472, 0.24457360804080963, 0.08244955539703369, -0.2290254384279251, -0.2422146499156952, -0.1462169885635376, 0.1103820651769638, 0.26010867953300476, -0.13996978104114532, 0.22638042271137238, -0.026640653610229492, 0.35103994607925415, 0.1955287754535675, 0.22394433617591858, 0.10636742413043976, 0.28272899985313416, 0.14642661809921265, 0.3602931499481201, 0.5668963193893433, -0.08037169277667999, 0.38417449593544006, -0.20694370567798615, -0.05652548372745514, 0.14184169471263885, 0.07229947298765182, 0.12289973348379135, -0.21076053380966187, 0.43239688873291016, -0.02347215637564659, -0.0054069384932518005, 0.021063633263111115, 0.14780224859714508, 0.25140509009361267, 0.04019692912697792, -0.08249494433403015, -0.17630961537361145, -0.45889022946357727, 0.4294433295726776, -0.4020913243293762, -0.07383783161640167, 0.16294752061367035, 0.2735232710838318, 0.21675124764442444, 0.006006721407175064, 0.399323433637619, 0.19103771448135376, -0.3449130356311798, -0.18430814146995544, 0.15369096398353577, 0.03440101072192192, -0.24119408428668976, 0.27569517493247986, 0.06399451196193695, 0.013699416071176529, -0.19850945472717285, -0.2328680008649826, 0.3469599187374115, 0.13888129591941833, 0.05489695817232132, 0.16570733487606049, 0.12886078655719757, 0.01681152917444706, -0.18353846669197083, -0.03988390788435936, 0.02799958921968937, 0.01975357159972191, -0.2920454740524292, -0.29258185625076294, -0.037197381258010864, 0.17809531092643738, 0.0230465866625309, -0.06464242190122604, -0.30909234285354614, -0.4628012180328369, 0.3608570098876953, 0.44396331906318665, -0.3925624489784241, 0.09004047513008118, 0.025925729423761368, 0.39522579312324524, -0.11674734205007553, -0.02276897244155407, -0.19752396643161774, -0.5979509353637695, -0.01634800434112549, 0.22331136465072632, 0.11926470696926117, 0.03791167214512825, 0.17633657157421112, 0.305411159992218, 0.197091206908226, -0.5195221900939941, -0.41210290789604187, -0.02217128872871399, -0.08359812945127487, 0.11825467646121979, -0.1202160120010376, 0.2942836880683899, -0.26192060112953186, -0.22669371962547302, 0.08718760311603546, 0.04478807747364044, 0.19510045647621155, -0.027118857949972153, -0.06440751254558563, -0.041284509003162384, 0.05931321159005165, -0.12582233548164368, 0.046275682747364044, -0.11679047346115112, -0.15419495105743408, 0.06719115376472473, 0.089604951441288, -0.2045488953590393, -0.031499531120061874, -0.05283407121896744, 0.13529817759990692, -0.00018685311079025269, -0.41039520502090454, -0.30005842447280884, 0.6064272522926331, -0.5251863598823547, -0.44455236196517944, -0.05208038538694382, -0.08920590579509735, 0.05764831602573395, 0.07813984900712967, -0.2847553491592407, -0.41027480363845825, 0.32540103793144226, 0.04661044850945473, 0.29605644941329956, 0.1602219045162201, 0.32603228092193604, 0.1192246526479721, -0.19740945100784302, -0.05283430591225624, 0.07489906251430511, 0.13744644820690155, 0.3943038880825043, -0.06854676455259323, 0.008586455136537552, -0.2041342556476593, 0.033428747206926346, 0.7748717069625854, 0.2701435983181, 0.5633047223091125, 0.2508845329284668, -0.025386178866028786, 0.1676226407289505, -0.09366904944181442, 0.25718945264816284, 0.05047738179564476, -0.07358676195144653, -0.06776684522628784, 0.4430111050605774, 0.18518415093421936, -0.18416161835193634, -0.1540105789899826, -0.169772207736969, -0.45663970708847046, -0.4647355377674103, -0.14354725182056427, 0.13728004693984985, 0.287847101688385, 0.16379371285438538, -0.09982598572969437, -0.2834564447402954, -0.3358912169933319, 0.18770602345466614, 0.07540284842252731, 0.14724527299404144, -0.17896652221679688, -0.18387678265571594, -0.3749963939189911, -0.22226527333259583, -0.08384381234645844, 0.22532428801059723, -0.024557892233133316, 0.1696322113275528, -0.16798672080039978, 0.05325097590684891, -0.05458701029419899, 0.052840299904346466, -0.6643754839897156, 0.022464649751782417, -0.35506755113601685, -0.013557877391576767, -0.3319506347179413, 0.15737904608249664, 0.03361209109425545, 0.010411705821752548, -0.27758288383483887, 0.05742364376783371, -0.39506441354751587, 0.15793220698833466, 0.2167481929063797, -0.26352065801620483, -0.2641414403915405, -0.08675701916217804, -0.22862476110458374, -0.37615248560905457, -0.4935842454433441, 0.040251415222883224, -0.02466569095849991, 0.1973610669374466, -0.015745680779218674, -0.0007902719080448151, -0.0890193060040474, 0.22730976343154907, -0.09104859828948975, 0.3566378355026245, 0.0648856908082962, 0.21527524292469025, -0.2236541360616684, 0.36849847435951233, -0.15061236917972565, -0.1574409455060959, 0.2500709295272827, 0.13211390376091003, 0.2381058931350708, -0.10808127373456955, -0.34479618072509766, -0.02214210480451584, 0.3928615152835846, 0.1908831000328064, -0.011041417717933655, 0.04356138035655022, -0.24905769526958466, -0.48349204659461975, -0.18083302676677704, -0.3089253008365631, -0.1900220662355423, -0.10394567251205444, -0.1396084725856781, 0.4286549985408783, -0.1640167236328125, -0.29743683338165283, 0.3609735667705536, 0.562120795249939, -0.3697965443134308, 0.3702579140663147, 0.4870395362377167, 0.9138346314430237, -0.04213222116231918, 0.1037222370505333, 0.07538068294525146, 0.0998966246843338, 0.530860424041748, -0.1974436640739441, 0.12709710001945496, -0.33980274200439453, 0.06362542510032654, -0.08679954707622528, 0.17548273503780365, -0.006567172706127167, -0.12599614262580872, 0.0354764349758625, 0.06633120775222778, 0.45697838068008423, 0.359882652759552, 0.003877032548189163, 0.5944641828536987, 0.036552757024765015, -0.308289110660553, 0.05792733281850815, 0.17542044818401337, 0.06059744209051132, -0.011373862624168396, -0.06645576655864716, -0.12353082001209259, -0.15151670575141907, -0.06291504949331284, -0.13390910625457764, -0.06758858263492584, -0.022592391818761826, 0.16699008643627167, -0.3005092442035675, -0.19437287747859955, -0.030734814703464508, 0.04181038960814476, 0.1874857246875763, 0.21440203487873077, -0.4786578416824341, 0.13662606477737427, -0.5104271769523621, 0.05829457938671112, -0.027059655636548996, -0.11164743453264236, 0.10766362398862839, -0.19840756058692932, -0.23923960328102112, 0.12258566915988922, 0.26566267013549805, -0.42246705293655396, -0.09592820703983307, -0.20171357691287994, 0.048518359661102295, -0.07452666014432907, -0.11063776910305023, 0.18162906169891357, -0.4262422025203705, -0.31114456057548523, 0.20796790719032288, -0.23336072266101837, 0.03418205678462982, -0.08289692550897598, 0.3414909541606903, -0.06047845631837845, -0.033968422561883926, 0.23689746856689453, 0.042616188526153564, 0.36947736144065857, 0.08661574125289917, -0.2098551243543625, -0.27392831444740295, -0.14956137537956238, -0.04454362392425537, -0.31496143341064453, -0.3034513592720032, -0.2130511999130249, 0.0005688471719622612, 0.08014394342899323, -0.49911734461784363, -0.05802353844046593, -0.0022149793803691864, 0.22417747974395752, -0.09567824006080627, -0.2590579390525818, 0.07166235148906708, 0.27319496870040894, -0.0165625661611557, 0.12817300856113434, 0.03884020447731018, 0.23908410966396332, -0.030710039660334587, 0.08942020684480667, -0.4317534565925598, -0.09939482808113098, -0.04145217686891556, 0.16832908987998962, -0.30249446630477905, -0.05565941333770752, 0.010578128509223461, -0.03479786217212677, 0.12026678025722504, -0.021993137896060944, 0.01685679517686367, -0.27617645263671875, -0.19493314623832703, 0.08130603283643723, 0.32585394382476807, -0.24342824518680573, -0.37010759115219116, -0.20957638323307037, 0.18025052547454834, -0.1625821441411972, 0.10858097672462463, -0.11525571346282959, -0.19899143278598785, 0.22324413061141968, 0.32321250438690186, 0.06790938228368759, -0.30051636695861816, 0.03501507639884949, -0.00007849931716918945, 0.4357566237449646, 0.019068574532866478, 0.20863623917102814, -0.09836065024137497, 0.02659524977207184, -0.05546645447611809, 0.34596601128578186, 0.025004364550113678, 0.08925226330757141, 0.3422194719314575, 0.15299281477928162, 0.011740997433662415, 0.387197345495224, 0.17681492865085602, 0.0449114665389061, -0.13428500294685364, -0.14280185103416443, 0.1522005796432495, 0.2885766625404358, -0.20862925052642822, 0.06652160733938217, 0.208078995347023, -0.40011560916900635, 0.10417073965072632, 0.18891260027885437, 0.4741080105304718, -0.0780075415968895, -0.29682403802871704, 0.01822642609477043, 0.20127731561660767, -0.3409435749053955, 0.004487711936235428, -0.08969826996326447, 0.06499442458152771, 0.1840411275625229, -0.07517699152231216, 0.16427166759967804, -0.09160827845335007, 0.09626089036464691, 0.24356713891029358, 0.25772082805633545, 0.3227422535419464, -0.04826244339346886, 0.09991201758384705, 0.19513379037380219, 0.45537689328193665, 0.07445855438709259, 0.15051454305648804, -0.04176650941371918, 0.09958814829587936, -0.4914236068725586, 0.06849393248558044, 0.08931004256010056, -0.2908362150192261, 0.12896576523780823, -0.03828922659158707, -0.22716540098190308, -0.35884517431259155, -0.25381356477737427, 0.10398159921169281, -0.025269608944654465, -0.013008754700422287, -0.39388978481292725, -0.04604719579219818, 0.10066092014312744, 0.02677728235721588, -0.3801474869251251, 0.41157960891723633, 0.16083994507789612, 0.5432013273239136, -0.136600062251091, -0.21660378575325012, 0.022363103926181793, 0.11023184657096863, 0.030868882313370705, 0.21941211819648743, -0.029141318053007126, -0.024493161588907242, -0.386272132396698, 0.13208302855491638, -0.09664586186408997, -0.030512874945998192, 0.14504605531692505, -0.008145194500684738, 0.13270112872123718, -0.12195415794849396, 0.38330569863319397, 0.2709300220012665, -0.13510356843471527, -0.23117677867412567, 0.3404574394226074, -0.07325778901576996, 0.1216086596250534, 0.0836683064699173, 0.37111184000968933, -0.274903804063797, 0.31336668133735657, -0.026541799306869507, -0.15981425344944, 0.04441370069980621, 0.22064870595932007, -0.2590777575969696, 0.06963122636079788, -0.42526760697364807, 0.14447978138923645, 0.233099102973938, 0.3673558831214905, 0.18671609461307526, -0.10438656061887741, -0.26065367460250854, -0.18125727772712708, -0.29879236221313477, 0.14781641960144043, -0.12480248510837555, -0.050402164459228516, 0.29543182253837585, 0.18739157915115356, -0.1827760934829712, 0.2840043604373932, -0.347480833530426, -0.308663010597229, -0.24231110513210297, 0.13119779527187347, 0.13268393278121948, -0.11876389384269714, -0.20297996699810028, 0.08385568857192993, -0.28032681345939636, 0.09256189316511154, 0.22570186853408813, 0.04644571244716644, 0.11866968125104904, 0.05657520517706871, 0.08947375416755676, 0.14466913044452667, -0.057543493807315826, 0.23772746324539185, -0.121455118060112, 0.011622630059719086, -0.3498586416244507, 0.08886872977018356, -0.025024693459272385, -0.09985851496458054, -0.23543907701969147, 0.05781367048621178, -0.10083335638046265, 0.08034754544496536, 0.3175029754638672, -0.3554501235485077, -0.06962507218122482, 0.25761643052101135, -0.13237681984901428, 0.17870749533176422, -0.1705942004919052, -0.062358058989048004, 0.03740135580301285, 0.052798736840486526, -0.09597840905189514, 0.23125949501991272, -0.18033386766910553, 0.2687796950340271, 0.009675346314907074, -0.4851631820201874, 0.2078985869884491, -0.3379465639591217, -0.10087406635284424, 0.06122620403766632, 0.39065295457839966, -0.05285031348466873, 0.31455615162849426, -0.28448331356048584, 0.14833354949951172, 0.30905094742774963, 0.05376671627163887, -0.11261114478111267, 0.10066640377044678, -0.04837080463767052, -0.0162440724670887, -0.22643589973449707, 0.04224713519215584, -0.15304601192474365, -0.2528940439224243, -0.23747628927230835, -0.3548927903175354 ]
https://github.com/huggingface/datasets/issues/3398
Add URL field to Wikimedia dataset instances: wikipedia,...
yep, sorry forgot that that wasn't already in the dumps. specifically `f"https://{language}.wikipedia.org/wiki/{title.replace(' ', '_')}` should do it
As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia
17
Add URL field to Wikimedia dataset instances: wikipedia,... As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia yep, sorry forgot that that wasn't already in the dumps. specifically `f"https://{language}.wikipedia.org/wiki/{title.replace(' ', '_')}` should do it
[ 0.15697534382343292, 0.15330585837364197, -0.006904248148202896, -0.1684151142835617, 0.03272368386387825, 0.13104647397994995, 0.07356581836938858, 0.15547223389148712, 0.2668463885784149, 0.15165835618972778, 0.010320622473955154, 0.5502921342849731, 0.330409437417984, -0.04828183725476265, -0.014624658040702343, 0.04823114350438118, 0.09110264480113983, -0.053201913833618164, 0.12257752567529678, -0.08003409206867218, -0.3383878469467163, 0.03997645899653435, -0.17398428916931152, 0.12797024846076965, -0.29937800765037537, 0.05768696591258049, -0.062099091708660126, 0.11074526607990265, 0.023353446274995804, -0.5956234335899353, -0.05916453152894974, 0.4493728280067444, -0.04680744558572769, 0.11343041062355042, -0.00010416984878247604, -0.09222477674484253, 0.5972478985786438, 0.015360264107584953, -0.4168347716331482, -0.010897696018218994, -0.24180272221565247, 0.08570300042629242, -0.010230287909507751, -0.2739643156528473, -0.11646962910890579, -0.06200142577290535, 0.11520255357027054, 0.10364864766597748, -0.005135543644428253, -0.06594357639551163, 0.22830477356910706, -0.01570918969810009, -0.04328759014606476, -0.2180991768836975, 0.08141091465950012, 0.0542510524392128, -0.017405956983566284, -0.02687954157590866, -0.2068990170955658, 0.007399719208478928, -0.048609472811222076, 0.3843643367290497, -0.059193260967731476, -0.14367477595806122, -0.07220608741044998, 0.050603531301021576, -0.3064972460269928, -0.27103450894355774, 0.2315894067287445, 0.38896262645721436, 0.3913792669773102, -0.21418312191963196, -0.2705118656158447, -0.03204721212387085, 0.18415124714374542, 0.06920726597309113, 0.10779372602701187, 0.1772964596748352, 0.21371963620185852, 0.14012384414672852, 0.11760735511779785, -0.2778811454772949, -0.262844055891037, 0.20814630389213562, 0.05932648479938507, 0.7477730512619019, 0.09920770674943924, 0.10465646535158157, -0.30635151267051697, 0.0013275183737277985, -0.0065042851492762566, -0.15514053404331207, 0.0683438703417778, -0.12635783851146698, 0.1762770116329193, -0.22111397981643677, -0.016547389328479767, 0.18980485200881958, 0.17575141787528992, -0.21284116804599762, -0.3463745415210724, 0.15643468499183655, 0.002041441388428211, 0.13145482540130615, -0.022251036018133163, -0.33665427565574646, 0.07330238819122314, 0.20029200613498688, 0.5897765159606934, 0.1161624863743782, -0.0649854838848114, -0.06808396428823471, 0.07754415273666382, 0.20195934176445007, -0.43921753764152527, 0.06093386188149452, 0.061112865805625916, 0.02534196898341179, -0.1611122488975525, 0.1997832953929901, 0.27195554971694946, 0.025598106905817986, -0.0776783749461174, 0.43508750200271606, -0.18761400878429413, 0.07595176994800568, -0.09581401944160461, 0.21573033928871155, -0.1640852391719818, -0.04801908880472183, -0.17878739535808563, 0.19612500071525574, 0.15712149441242218, 0.4440365135669708, 0.19502684473991394, 0.09862804412841797, 0.45546403527259827, -0.10425025969743729, 0.26627808809280396, -0.2906150817871094, 0.05028639733791351, 0.07481160759925842, 0.050403181463479996, 0.20811614394187927, 0.3091644048690796, 0.3266220986843109, 0.08166882395744324, -0.2749888300895691, -0.04831785336136818, 0.229497492313385, -0.6770361065864563, -0.10715624690055847, -0.13200239837169647, 0.14528888463974, -0.029942072927951813, -0.1405935138463974, 0.034173764288425446, 0.21319398283958435, 0.016688905656337738, -0.08863954246044159, 0.019690945744514465, 0.36070555448532104, -0.32365337014198303, -0.08206507563591003, 0.15279772877693176, 0.23116524517536163, 0.11027243733406067, 0.06682038307189941, -0.10863394290208817, 0.5067184567451477, -0.09402408450841904, -0.13138999044895172, -0.09008205682039261, 0.39549562335014343, 0.0751238614320755, 0.5513410568237305, 0.058812133967876434, -0.5358220934867859, -0.011227894574403763, -0.17598694562911987, -0.06327150017023087, -0.03363649547100067, -0.20804348587989807, 0.001007363200187683, 0.23136556148529053, -0.05494094640016556, 0.019434791058301926, 0.3071814775466919, 0.08383241295814514, 0.19898074865341187, -0.23828911781311035, -0.10379853844642639, -0.18633884191513062, 0.2628116011619568, 0.16892759501934052, -0.1649744212627411, 0.08860967308282852, 0.189281165599823, 0.21138343214988708, -0.3333989083766937, 0.08104582130908966, 0.0015996918082237244, 0.1511649340391159, 0.054174743592739105, 0.20565380156040192, -0.18735462427139282, 0.09150290489196777, 0.003603186458349228, -0.08909957110881805, 0.35894325375556946, -0.008710585534572601, -0.4522179961204529, -0.3365608751773834, 0.18877874314785004, -0.22332556545734406, -0.14858296513557434, 0.2698014974594116, -0.019633375108242035, -0.18068012595176697, 0.3411155045032501, -0.005556762218475342, -0.2414974868297577, -0.1890345960855484, -0.004717811942100525, 0.06841477751731873, 0.22701406478881836, -0.09139084070920944, 0.14701777696609497, -0.0206929799169302, 0.2524680495262146, 0.35542353987693787, 0.14826922118663788, 0.07507148385047913, 0.3871060907840729, 0.30873674154281616, 0.3763493299484253, 0.5801575779914856, -0.1475726217031479, 0.30044808983802795, -0.2147485762834549, -0.11769389361143112, 0.3358059227466583, -0.0011504017747938633, 0.181363046169281, -0.28739041090011597, 0.5433691740036011, 0.06847517192363739, 0.10636334121227264, 0.003595307469367981, 0.09709663689136505, 0.3445986807346344, -0.04473092779517174, -0.009764221496880054, -0.26333075761795044, -0.283038467168808, 0.4216470718383789, -0.47521549463272095, -0.22440896928310394, 0.19957223534584045, 0.14228345453739166, 0.30358371138572693, -0.04552728682756424, 0.4068109095096588, 0.2076282799243927, -0.3091472387313843, -0.1592329442501068, 0.15135358273983002, -0.12035404145717621, -0.2068810909986496, 0.23280265927314758, -0.05138121917843819, 0.03009536862373352, -0.03126426041126251, -0.2866464853286743, 0.3756704330444336, 0.2890818119049072, 0.03364929184317589, 0.21561270952224731, 0.2581700384616852, -0.11590806394815445, -0.31075388193130493, -0.08119024336338043, -0.0054292259737849236, 0.05908223241567612, -0.2748797833919525, -0.098356693983078, -0.2297755777835846, 0.21917158365249634, 0.19916048645973206, -0.10904106497764587, -0.208992138504982, -0.43586668372154236, 0.4411312937736511, 0.39723914861679077, -0.38206377625465393, 0.19435332715511322, 0.06326735019683838, 0.429734468460083, 0.02221946232020855, 0.11039227992296219, -0.1458752155303955, -0.5155971646308899, -0.0339895561337471, 0.18348470330238342, 0.11186513304710388, -0.03357890993356705, 0.08890636265277863, 0.23714987933635712, 0.13712961971759796, -0.3750268220901489, -0.47966548800468445, 0.04872091859579086, -0.10158570110797882, 0.19763658940792084, -0.1153525859117508, 0.25035953521728516, -0.27942174673080444, -0.20488443970680237, 0.14706538617610931, 0.00266476534307003, 0.16922739148139954, -0.007086968049407005, -0.10679861903190613, -0.03605613112449646, 0.06495755910873413, -0.12394004315137863, 0.07665730267763138, -0.12530171871185303, -0.1711122989654541, 0.09106303751468658, 0.16071796417236328, -0.24120445549488068, -0.03845265507698059, -0.1718398779630661, 0.05081022530794144, -0.11519214510917664, -0.37795841693878174, -0.354746013879776, 0.5493468046188354, -0.6466529369354248, -0.3817315697669983, -0.04617865011096001, -0.12168316543102264, 0.04453509673476219, -0.07804267108440399, -0.1581059694290161, -0.3938281536102295, 0.22602105140686035, -0.07099444419145584, 0.26685839891433716, 0.1100560799241066, 0.2851064205169678, 0.11463301628828049, -0.24102850258350372, -0.18367218971252441, -0.013546950183808804, 0.10032118111848831, 0.37925833463668823, -0.12442169338464737, 0.10998710989952087, -0.07460639625787735, 0.10893180966377258, 0.6937592625617981, 0.1274298131465912, 0.6646246314048767, 0.33238399028778076, -0.11106172949075699, 0.016390033066272736, -0.0359291136264801, 0.21441416442394257, -0.040134135633707047, -0.07640707492828369, 0.007253941148519516, 0.6668742895126343, 0.25760066509246826, -0.1947479546070099, -0.1019388735294342, -0.19512416422367096, -0.4215947389602661, -0.36612677574157715, -0.12546689808368683, 0.11984382569789886, 0.19870835542678833, 0.21631988883018494, 0.015733502805233, -0.3270576596260071, -0.4070630669593811, 0.22788068652153015, 0.13595542311668396, 0.11583729833364487, -0.2789109945297241, -0.2604992985725403, -0.36014512181282043, -0.2922315001487732, 0.15770553052425385, 0.20514614880084991, 0.11560056358575821, 0.054025497287511826, -0.10343693196773529, 0.12161599099636078, -0.06697407364845276, 0.2558267116546631, -0.658989429473877, 0.0035625286400318146, -0.2761290669441223, -0.015045171603560448, -0.2765728831291199, 0.09388908743858337, -0.018968747928738594, 0.04526274651288986, -0.26424092054367065, 0.19498291611671448, -0.34875020384788513, 0.05327467620372772, 0.09617064893245697, -0.3618316948413849, -0.23287570476531982, -0.09795519709587097, -0.2759757936000824, -0.3721544146537781, -0.5010521411895752, 0.10120540857315063, 0.12361607700586319, 0.2898879051208496, -0.06692904978990555, -0.08787345886230469, -0.044980354607105255, 0.1091952696442604, 0.024457216262817383, 0.3140125274658203, 0.1345629096031189, 0.3067270517349243, -0.32580673694610596, 0.2049126923084259, -0.18496699631214142, -0.2328711450099945, 0.1830025613307953, 0.16141635179519653, 0.13397185504436493, -0.03555818274617195, -0.2773284316062927, 0.12910710275173187, 0.4311544895172119, 0.08643312007188797, 0.20971453189849854, 0.023624707013368607, -0.08509635925292969, -0.4839564859867096, 0.0880822241306305, -0.1297968327999115, -0.18593887984752655, -0.3126009404659271, -0.1261209398508072, 0.5332753658294678, -0.19068168103694916, -0.2634072005748749, 0.46420004963874817, 0.6304175853729248, -0.4214743375778198, 0.5294378399848938, 0.4229242503643036, 0.8831877708435059, -0.0008216798305511475, 0.0015835277736186981, 0.06632652878761292, 0.15757738053798676, 0.49603551626205444, -0.40889304876327515, 0.2586589455604553, -0.31370168924331665, -0.08280974626541138, -0.09046104550361633, 0.20849096775054932, 0.07009871304035187, -0.09884010255336761, -0.02816828340291977, 0.160784050822258, 0.35112398862838745, 0.35942378640174866, 0.14535808563232422, 0.532023012638092, 0.1429583728313446, -0.33218061923980713, 0.07095639407634735, 0.1814461201429367, 0.06971008330583572, 0.0029864832758903503, -0.08146686106920242, -0.11075025051832199, -0.1820003241300583, -0.15478959679603577, -0.13546797633171082, -0.04795524477958679, 0.0018879231065511703, 0.13240312039852142, -0.22134286165237427, -0.1426244080066681, -0.08212791383266449, -0.00793229416012764, 0.276541531085968, 0.3293481469154358, -0.49833422899246216, 0.33926865458488464, -0.4149584174156189, 0.026800813153386116, -0.13746264576911926, -0.05806232988834381, -0.023163313046097755, -0.24248486757278442, -0.16926345229148865, 0.04163382947444916, 0.3279569149017334, -0.4084944725036621, -0.17299656569957733, -0.2391863316297531, 0.23096349835395813, -0.029958143830299377, -0.2621977925300598, 0.02427583560347557, -0.3875468373298645, -0.36452269554138184, 0.19176776707172394, -0.3263295888900757, -0.09907794743776321, -0.03546299785375595, 0.4321429133415222, -0.09863683581352234, -0.0041575804352760315, 0.27140384912490845, 0.026101455092430115, 0.26232630014419556, 0.19952979683876038, 0.032588694244623184, -0.3061075806617737, -0.18459320068359375, -0.14109094440937042, -0.11026427894830704, -0.18803095817565918, -0.20084410905838013, 0.08629179745912552, -0.025171518325805664, -0.35600486397743225, 0.017278559505939484, -0.13112880289554596, 0.1999821662902832, -0.03659142926335335, -0.35585230588912964, 0.14831054210662842, 0.21832911670207977, -0.09024950861930847, 0.02838640660047531, 0.0947205200791359, 0.21523666381835938, -0.10484323650598526, 0.17006786167621613, -0.4015738368034363, -0.07553108036518097, -0.046590015292167664, 0.17629146575927734, -0.349002480506897, 0.055868569761514664, 0.05003451555967331, 0.06661620736122131, 0.16101498901844025, 0.031321026384830475, 0.04139193892478943, -0.27282002568244934, -0.29287728667259216, 0.09159846603870392, 0.25259777903556824, -0.10686299204826355, -0.19126780331134796, -0.10918500274419785, 0.166967511177063, -0.2602742910385132, 0.05752866342663765, -0.14394520223140717, -0.19237355887889862, 0.22709058225154877, 0.3293333649635315, 0.03880457207560539, -0.20021727681159973, -0.07128787785768509, 0.0321330726146698, 0.28595200181007385, -0.018726695328950882, 0.05847163125872612, -0.04156021401286125, -0.022156182676553726, 0.05741108953952789, 0.32284554839134216, 0.03469836711883545, 0.033999599516391754, 0.29987388849258423, 0.14512848854064941, 0.05444875732064247, 0.32594162225723267, 0.2600175142288208, -0.0055134594440460205, -0.07395768910646439, -0.09848576784133911, 0.19531625509262085, 0.22363069653511047, -0.1762942522764206, -0.07795360684394836, 0.320654034614563, -0.36923515796661377, 0.1378699243068695, 0.21085189282894135, 0.413463294506073, -0.045485034584999084, -0.25959932804107666, 0.15882548689842224, 0.17771567404270172, -0.4053642153739929, 0.1571638584136963, -0.15185166895389557, 0.06671196222305298, 0.23094968497753143, -0.053240418434143066, -0.02966974675655365, -0.1004977896809578, 0.295241117477417, 0.2941017150878906, 0.331966757774353, 0.3945026993751526, -0.04453541710972786, 0.08804047107696533, 0.06480620801448822, 0.4256894886493683, 0.027527861297130585, 0.2049873173236847, -0.04077184945344925, 0.12082395702600479, -0.34957122802734375, 0.09376306086778641, -0.025454381480813026, -0.3205578625202179, 0.25323551893234253, 0.0013375282287597656, -0.28313612937927246, -0.25789594650268555, -0.24699699878692627, 0.1369933784008026, -0.03388698771595955, 0.054351359605789185, -0.39516162872314453, -0.12244273722171783, 0.08512125164270401, 0.050446487963199615, -0.32347404956817627, 0.27971455454826355, 0.036016255617141724, 0.5314515829086304, -0.16338907182216644, -0.058039478957653046, -0.008392497897148132, 0.15813025832176208, 0.014649590477347374, 0.028090348467230797, -0.005104444921016693, 0.03466814011335373, -0.5172094106674194, 0.0555492527782917, -0.2350068837404251, -0.10502172261476517, 0.26549991965293884, 0.13054421544075012, 0.22308269143104553, -0.18309399485588074, 0.2156742811203003, 0.2590249180793762, -0.18715539574623108, -0.2910633385181427, 0.4449467062950134, -0.09224127233028412, 0.15296055376529694, 0.1006593331694603, 0.3666318655014038, -0.13070303201675415, 0.20127204060554504, -0.20071202516555786, -0.32908445596694946, -0.02498714253306389, 0.19344869256019592, -0.2971676290035248, 0.09279080480337143, -0.42893677949905396, 0.12827390432357788, 0.18041370809078217, 0.34588322043418884, 0.01916099339723587, -0.1390083134174347, -0.3771674335002899, -0.3148934245109558, -0.1956651657819748, 0.21243785321712494, -0.04137441888451576, 0.051985256373882294, 0.22438938915729523, 0.05090142786502838, -0.1904112994670868, 0.17709307372570038, -0.40077072381973267, -0.3986263573169708, -0.10992631316184998, 0.20014572143554688, -0.0846589207649231, 0.09416742622852325, -0.31455856561660767, 0.160986989736557, -0.2156522572040558, 0.10207200795412064, 0.16261595487594604, -0.0613221637904644, 0.062197089195251465, 0.06142547354102135, 0.020265445113182068, 0.08501406013965607, -0.15509416162967682, 0.18634174764156342, -0.09283170849084854, 0.15637251734733582, -0.3790013790130615, 0.19587132334709167, -0.0890180766582489, -0.1869492381811142, -0.2879799008369446, 0.14337332546710968, -0.021954283118247986, 0.20655573904514313, 0.3020640015602112, -0.3749832212924957, 0.048005327582359314, 0.2534782290458679, -0.10180048644542694, 0.18488168716430664, -0.20306889712810516, -0.027220049872994423, 0.060542032122612, 0.077605701982975, -0.09857530891895294, 0.1853792667388916, -0.12323011457920074, 0.28419727087020874, -0.013086803257465363, -0.6380109786987305, 0.34650176763534546, -0.5008825063705444, -0.3169575333595276, -0.06770250201225281, 0.3731590807437897, -0.07349396497011185, 0.18716037273406982, -0.17786699533462524, 0.1480976939201355, 0.25122496485710144, 0.1465623676776886, -0.1328520029783249, 0.3041384220123291, -0.12282593548297882, -0.09036052227020264, -0.20973290503025055, 0.09185023605823517, 0.11535818874835968, -0.3129681348800659, -0.23497599363327026, -0.35535258054733276 ]
https://github.com/huggingface/datasets/issues/3398
Add URL field to Wikimedia dataset instances: wikipedia,...
Thanks @geohci. I had already been looking for information about the conversion from title to URL and I found that apart from replacing blanks with underscores, some other special character must also be percent-encoded (e.g. `"` to `%22`): https://meta.wikimedia.org/wiki/Help:URL Therefore, I have finally used `urllib.parse.quote` function. This additionally percent-encodes non-ASCII characters, but Wikimedia docs say these are equivalent: > For the other characters either the code or the character can be used in internal and external links, they are equivalent. The system does a conversion when needed. > [[%C3%80_propos_de_M%C3%A9ta]] > is rendered as [À_propos_de_Méta](https://meta.wikimedia.org/wiki/%C3%80_propos_de_M%C3%A9ta), almost like [À propos de Méta](https://meta.wikimedia.org/wiki/%C3%80_propos_de_M%C3%A9ta), which leads to this page on Meta with in the address bar the URL > [http://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta](https://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta) > while [http://meta.wikipedia.org/wiki/À_propos_de_Méta](https://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta) leads to the same.
As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia
123
Add URL field to Wikimedia dataset instances: wikipedia,... As reported by @geohci, in order to host pre-processed data in the Hub, we should add the full URL to data instances (new field "url"), so that we conform to proper attribution from license requirement. See, e.g.: https://fair-trec.github.io/docs/Fair_Ranking_2021_Participant_Instructions.pdf#subsection.3.2 This should be done for all pre-processed datasets under "wikimedia" org in the Hub: https://huggingface.co/wikimedia Thanks @geohci. I had already been looking for information about the conversion from title to URL and I found that apart from replacing blanks with underscores, some other special character must also be percent-encoded (e.g. `"` to `%22`): https://meta.wikimedia.org/wiki/Help:URL Therefore, I have finally used `urllib.parse.quote` function. This additionally percent-encodes non-ASCII characters, but Wikimedia docs say these are equivalent: > For the other characters either the code or the character can be used in internal and external links, they are equivalent. The system does a conversion when needed. > [[%C3%80_propos_de_M%C3%A9ta]] > is rendered as [À_propos_de_Méta](https://meta.wikimedia.org/wiki/%C3%80_propos_de_M%C3%A9ta), almost like [À propos de Méta](https://meta.wikimedia.org/wiki/%C3%80_propos_de_M%C3%A9ta), which leads to this page on Meta with in the address bar the URL > [http://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta](https://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta) > while [http://meta.wikipedia.org/wiki/À_propos_de_Méta](https://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta) leads to the same.
[ 0.23400337994098663, 0.2018747329711914, 0.0728769302368164, -0.1125447005033493, 0.19741365313529968, 0.13430383801460266, 0.10674437880516052, 0.08919704705476761, 0.061439063400030136, 0.1533167064189911, -0.03745483607053757, 0.6567928194999695, 0.24751202762126923, -0.08323967456817627, 0.028875647112727165, -0.1070966124534607, 0.056447990238666534, -0.1294412612915039, 0.10431712865829468, -0.022014152258634567, -0.38409632444381714, 0.06461051106452942, -0.15033763647079468, 0.1632051169872284, -0.20851196348667145, 0.20005136728286743, -0.09619125723838806, 0.1673077940940857, -0.1027538999915123, -0.5418636798858643, -0.11188729852437973, 0.18254002928733826, -0.035174936056137085, 0.1686323881149292, -0.00011034695489797741, -0.21042725443840027, 0.7711973786354065, 0.03787222504615784, -0.48744094371795654, -0.2096487134695053, -0.24141409993171692, -0.08047845959663391, 0.05250858515501022, -0.2706006169319153, 0.05556391924619675, 0.2368587851524353, 0.14709323644638062, 0.16298256814479828, 0.007225111126899719, -0.14020344614982605, 0.1590655893087387, -0.21126055717468262, 0.05141027644276619, 0.037926074117422104, 0.23091843724250793, 0.12243501842021942, -0.05487893521785736, -0.06761953234672546, -0.130398228764534, 0.07470806688070297, -0.09662377089262009, 0.3104488253593445, -0.044984880834817886, -0.29902637004852295, -0.0638604387640953, 0.20390987396240234, -0.4247605800628662, -0.24896755814552307, 0.16926264762878418, 0.43859222531318665, 0.321889191865921, -0.2481319010257721, -0.33019378781318665, 0.021956734359264374, 0.14770130813121796, 0.1693282574415207, 0.055280640721321106, 0.2699545919895172, 0.21097001433372498, -0.04906501993536949, -0.04302472993731499, -0.13040921092033386, -0.37842217087745667, 0.09875315427780151, -0.08845371007919312, 0.8044310808181763, 0.11463576555252075, 0.15653693675994873, -0.3500365614891052, -0.10947713255882263, -0.17603562772274017, -0.27258267998695374, 0.17556755244731903, -0.030046623200178146, 0.2538631856441498, -0.18378767371177673, -0.08172222226858139, 0.24615731835365295, 0.23876643180847168, -0.3154181241989136, -0.22506241500377655, 0.12667763233184814, -0.1198725774884224, 0.12443187832832336, 0.06234768033027649, -0.2715059518814087, 0.038729771971702576, 0.1446976512670517, 0.48618847131729126, 0.14085893332958221, 0.09234994649887085, 0.0602404847741127, -0.024674925953149796, 0.17545464634895325, -0.5333166718482971, 0.10910546779632568, 0.051023319363594055, -0.036318473517894745, -0.21186958253383636, 0.11912458389997482, 0.1287841796875, 0.00957954116165638, -0.14751984179019928, 0.2140122652053833, -0.19441375136375427, 0.15048493444919586, 0.0237056165933609, 0.013403898105025291, -0.09500410407781601, -0.08426631987094879, -0.11065167188644409, 0.27522847056388855, 0.194834902882576, 0.4159491956233978, 0.010284099727869034, 0.15208399295806885, 0.2937239706516266, -0.030686575919389725, 0.13407012820243835, -0.2085847407579422, -0.04318179935216904, 0.01886119320988655, 0.20809678733348846, 0.12769505381584167, 0.39971327781677246, 0.3828982412815094, 0.1170501857995987, -0.19768980145454407, -0.05656987428665161, 0.28064554929733276, -0.5224652886390686, -0.022492345422506332, -0.07507940381765366, 0.0602237842977047, 0.025000128895044327, -0.219743013381958, -0.09375045448541641, 0.2439608871936798, 0.057448577135801315, -0.05847308412194252, 0.09413497895002365, 0.2871074676513672, -0.3448178172111511, -0.05076167732477188, 0.27249008417129517, 0.31734469532966614, -0.00251740962266922, 0.07686720788478851, -0.08735128492116928, 0.39459750056266785, -0.06850377470254898, -0.22590307891368866, -0.0001707049523247406, 0.3250093460083008, 0.1383514404296875, 0.4991554617881775, -0.07138783484697342, -0.5407464504241943, 0.10184673219919205, -0.008099660277366638, -0.07475712150335312, -0.0246548093855381, -0.28587013483047485, -0.08021087944507599, 0.259083092212677, -0.07590165734291077, 0.10173799097537994, 0.21286790072917938, -0.06343181431293488, 0.16541238129138947, -0.2317865788936615, -0.3414785861968994, -0.19834478199481964, 0.16471639275550842, 0.13854451477527618, -0.29595324397087097, 0.14049459993839264, 0.22679860889911652, 0.2297329306602478, -0.2826317548751831, 0.1495552808046341, 0.0005924031138420105, 0.073062002658844, 0.01310727372765541, 0.22445331513881683, -0.12623223662376404, 0.04842311888933182, -0.07780958712100983, -0.05201825872063637, 0.5230645537376404, -0.1816154271364212, -0.3466078042984009, -0.3142741024494171, 0.09518856555223465, -0.1685047298669815, -0.052202317863702774, 0.21739692986011505, -0.10346023738384247, -0.2609269618988037, 0.3252854347229004, 0.027727503329515457, -0.45460259914398193, -0.16569305956363678, -0.010475707240402699, -0.0014737118035554886, 0.17668145895004272, -0.05204526335000992, 0.18088115751743317, 0.015481915324926376, 0.30169478058815, 0.38164210319519043, 0.12289352715015411, 0.00743359699845314, 0.28529390692710876, 0.23626402020454407, 0.5721072554588318, 0.4440755844116211, -0.12879027426242828, 0.34901297092437744, -0.16256092488765717, -0.1335473358631134, 0.3202802240848541, 0.11654605716466904, -0.03447007015347481, -0.23757407069206238, 0.5159085392951965, 0.03071344830095768, 0.26777952909469604, 0.04883425682783127, 0.1510372906923294, 0.31665754318237305, -0.016396716237068176, -0.09121102839708328, -0.24948951601982117, -0.3157043755054474, 0.5285191535949707, -0.592753529548645, -0.26723334193229675, 0.330325722694397, 0.22818422317504883, 0.42192620038986206, -0.1674405187368393, 0.2633182108402252, 0.2233888804912567, -0.36196979880332947, -0.2064395546913147, 0.1424250304698944, -0.11502937972545624, -0.24064497649669647, 0.16710051894187927, 0.021400444209575653, 0.2519044578075409, -0.006492885760962963, -0.22170330584049225, 0.5224334597587585, 0.4037257432937622, -0.06302916258573532, 0.1736895740032196, 0.09039869159460068, 0.0020913220942020416, -0.18494713306427002, -0.1538708209991455, -0.0030593890696763992, 0.03223011642694473, -0.39126646518707275, -0.155009463429451, -0.19215548038482666, 0.2774941623210907, 0.2369605153799057, -0.14219118654727936, -0.17561766505241394, -0.5556633472442627, 0.15920622646808624, 0.3582214415073395, -0.2837474048137665, 0.07551059871912003, -0.07604071497917175, 0.34220585227012634, 0.04532521218061447, -0.024816157296299934, -0.1732858121395111, -0.5976046323776245, -0.2092444896697998, 0.13066905736923218, 0.31361594796180725, -0.04370925575494766, -0.03220141679048538, 0.1821955442428589, 0.22231356799602509, -0.31641173362731934, -0.5180529952049255, 0.09436777234077454, -0.21396054327487946, 0.1639692485332489, -0.03068440407514572, 0.14498001337051392, -0.21292804181575775, -0.09068160504102707, 0.17948000133037567, 0.06698103994131088, 0.11917902529239655, -0.028201818466186523, -0.20835468173027039, -0.1114254891872406, 0.00972691923379898, -0.08417638391256332, 0.16576635837554932, -0.03285856172442436, -0.23353074491024017, 0.012028448283672333, 0.18682901561260223, -0.3157082796096802, -0.16464723646640778, 0.12753789126873016, 0.0525827631354332, -0.17219464480876923, -0.2757038474082947, -0.2774917185306549, 0.5927475094795227, -0.47813695669174194, -0.4648076593875885, 0.04649628326296806, -0.10431545972824097, 0.1201714426279068, -0.0784388855099678, -0.1603987216949463, -0.18753473460674286, 0.3231532573699951, -0.16275109350681305, 0.27732640504837036, 0.14748354256153107, 0.2180851697921753, 0.19744133949279785, -0.1331452876329422, -0.11674540489912033, -0.05533944442868233, 0.0884251743555069, 0.3864370584487915, -0.062429316341876984, 0.09851833432912827, 0.12495897710323334, 0.23334389925003052, 0.7549586892127991, 0.14418944716453552, 0.6019938588142395, 0.17291896045207977, -0.15905612707138062, -0.12985678017139435, 0.051064569503068924, 0.20884665846824646, 0.1691453605890274, -0.14739671349525452, -0.03076895698904991, 0.7027074098587036, 0.2522583305835724, -0.09715155512094498, -0.14572495222091675, -0.07266087085008621, -0.45535099506378174, -0.47356390953063965, -0.08655048906803131, 0.06316518783569336, 0.08444882929325104, 0.1795654445886612, -0.005055241286754608, -0.2751550078392029, -0.4479542374610901, 0.36582455039024353, 0.1234653890132904, 0.05066540464758873, -0.3097633421421051, -0.28775542974472046, -0.33684396743774414, -0.34910452365875244, 0.16008180379867554, 0.3812498152256012, 0.18256931006908417, 0.1142854392528534, -0.08933248370885849, 0.030763797461986542, -0.16304443776607513, 0.22724536061286926, -0.6461277604103088, 0.037954606115818024, -0.1827554553747177, 0.093102365732193, -0.3963257372379303, 0.17623476684093475, -0.06238337978720665, 0.12390748411417007, -0.11484144628047943, 0.2961362600326538, -0.3682231307029724, 0.1047438308596611, 0.11128562688827515, -0.28674668073654175, -0.17489616572856903, -0.02013043500483036, -0.14184851944446564, -0.47539395093917847, -0.3247627913951874, 0.02040288597345352, -0.00012010708451271057, 0.31776461005210876, -0.055047161877155304, -0.2124272733926773, 0.036833494901657104, 0.07599032670259476, 0.022992879152297974, 0.1930079460144043, 0.012078257277607918, 0.17411169409751892, -0.2889155149459839, 0.2092132568359375, -0.23511144518852234, -0.11172856390476227, 0.24937142431735992, 0.08049038052558899, 0.18641981482505798, 0.05300375819206238, -0.304948091506958, 0.17216971516609192, 0.43499335646629333, 0.14344817399978638, -0.0003103092312812805, 0.14071275293827057, -0.12057742476463318, -0.45854809880256653, -0.0884304866194725, -0.2329435646533966, -0.07737836986780167, -0.3103514015674591, -0.18842999637126923, 0.6813958883285522, -0.05002858489751816, -0.16335883736610413, 0.5908374190330505, 0.7477262020111084, -0.5820309519767761, 0.3694835901260376, 0.5702072978019714, 1.0252448320388794, -0.04753381013870239, 0.1062084212899208, 0.1858009397983551, 0.17708395421504974, 0.5145472288131714, -0.20136716961860657, 0.16408982872962952, -0.44541287422180176, 0.21000245213508606, -0.15902060270309448, 0.17307107150554657, 0.09388810396194458, -0.1014619767665863, -0.14743481576442719, 0.1784694790840149, 0.28490233421325684, 0.4925282895565033, 0.36424118280410767, 0.5389751195907593, -0.07607486844062805, -0.3002263009548187, 0.17818082869052887, 0.16077986359596252, 0.03243882209062576, -0.14852912724018097, -0.03482069820165634, -0.12364868819713593, -0.330784410238266, -0.0411158949136734, -0.08264997601509094, 0.12235797196626663, -0.32337990403175354, 0.10609620064496994, -0.3737768530845642, -0.16747796535491943, 0.08575473725795746, -0.006430186331272125, 0.15642622113227844, 0.12792009115219116, -0.4353763163089752, 0.3389424979686737, -0.39174512028694153, 0.1272924393415451, -0.04520963504910469, -0.09513689577579498, 0.043928444385528564, -0.18312883377075195, -0.035336486995220184, -0.05225140601396561, 0.2917378544807434, -0.25835734605789185, -0.05845130980014801, -0.20485149323940277, 0.31401824951171875, -0.09309813380241394, -0.426971971988678, -0.006673194468021393, -0.3557492196559906, -0.2330579161643982, 0.11328941583633423, -0.3309013843536377, -0.16545964777469635, 0.08765782415866852, 0.4309772849082947, -0.15800486505031586, 0.16474205255508423, 0.11732285469770432, -0.08561356365680695, 0.1566222757101059, 0.2507610023021698, -0.0005302391946315765, -0.25636354088783264, -0.03949618712067604, 0.08966764062643051, -0.10811815410852432, -0.0764986127614975, -0.16699282824993134, -0.05980982258915901, 0.16765950620174408, -0.32862478494644165, 0.1381489336490631, -0.1223524659872055, 0.3917222321033478, -0.04050695523619652, -0.41609886288642883, 0.21051499247550964, 0.2216702699661255, -0.2045554220676422, -0.04570150747895241, 0.005030274391174316, 0.1213710606098175, -0.07423839718103409, -0.03165242075920105, -0.3101516366004944, 0.09778551012277603, -0.03848624229431152, 0.21176272630691528, -0.21013498306274414, 0.06499414891004562, 0.08402249217033386, -0.01385391503572464, 0.08625952899456024, 0.1662915199995041, 0.02236057072877884, -0.1751997172832489, -0.32375630736351013, 0.11223338544368744, 0.36358630657196045, -0.18311066925525665, -0.27423563599586487, -0.012806355021893978, 0.15619026124477386, -0.27801772952079773, -0.053412266075611115, -0.11296693980693817, -0.22700504958629608, 0.17619416117668152, 0.2766916751861572, 0.10725846886634827, -0.3090062737464905, -0.015876851975917816, -0.08378298580646515, 0.4555373787879944, 0.15773478150367737, 0.2832831144332886, 0.07097077369689941, 0.012266367673873901, 0.10292347520589828, 0.39616867899894714, 0.1075320616364479, 0.009695097804069519, 0.3580165505409241, 0.10993857681751251, -0.1036398857831955, 0.25657427310943604, 0.16622760891914368, 0.06262968480587006, -0.1941971629858017, -0.25042593479156494, 0.21080231666564941, 0.12146701663732529, -0.017232196405529976, 0.17831791937351227, 0.2558062672615051, -0.42034539580345154, 0.07845436036586761, 0.11068177968263626, 0.3490748107433319, -0.025570098310709, -0.4833199381828308, 0.01945902779698372, 0.3604375720024109, -0.2510564923286438, 0.0745847076177597, -0.06634299457073212, -0.0955585390329361, 0.3691038191318512, 0.04246482253074646, -0.039095934480428696, -0.13991796970367432, 0.13038210570812225, 0.3794660270214081, 0.4299149215221405, 0.45652371644973755, 0.09062126278877258, 0.1236611157655716, -0.011629603803157806, 0.41702353954315186, 0.12586849927902222, 0.07692375779151917, 0.009726889431476593, 0.12181873619556427, -0.353690505027771, 0.06448253989219666, -0.0014576567336916924, -0.07584156841039658, 0.2850832939147949, 0.07076607644557953, -0.3840762674808502, -0.3089923560619354, -0.26391080021858215, 0.04453284293413162, 0.023150339722633362, 0.0005498640239238739, -0.4719861149787903, -0.07080301642417908, 0.14311787486076355, 0.042928505688905716, -0.33596277236938477, 0.1465429663658142, 0.08256146311759949, 0.4816012680530548, -0.27297064661979675, -0.11894232779741287, 0.10212870687246323, 0.1284375786781311, -0.0830460786819458, -0.07148170471191406, 0.09485470503568649, 0.1658545583486557, -0.6102938652038574, 0.05763336643576622, -0.1795198917388916, -0.05506186932325363, 0.36216431856155396, 0.08884953707456589, 0.28642764687538147, -0.23022456467151642, 0.25039178133010864, 0.1864262968301773, -0.12802191078662872, -0.39920487999916077, 0.4658176004886627, -0.04814939573407173, 0.23183958232402802, 0.2801463007926941, 0.24061425030231476, -0.15004858374595642, 0.13584935665130615, -0.15744635462760925, -0.3265056908130646, -0.17844891548156738, 0.2019689679145813, -0.359718918800354, 0.1260862648487091, -0.34529510140419006, 0.10171668976545334, 0.2879667580127716, 0.29303935170173645, 0.10132097452878952, -0.07689674943685532, -0.2961525321006775, -0.3004748225212097, -0.25714999437332153, 0.015125609934329987, 0.18967550992965698, -0.04679378867149353, 0.17021098732948303, 0.16114723682403564, -0.18775418400764465, 0.20284141600131989, -0.3220077157020569, -0.24645374715328217, 0.033345699310302734, 0.10295338928699493, -0.0017472729086875916, 0.0734945684671402, -0.12724554538726807, 0.17659606039524078, -0.3925526738166809, 0.10395326465368271, 0.1867031306028366, -0.11817769706249237, 0.008582476526498795, -0.10174659639596939, -0.034949466586112976, 0.12223444879055023, -0.1610497385263443, 0.17609365284442902, 0.040393538773059845, 0.19284668564796448, -0.3170553743839264, 0.07994459569454193, 0.02951028198003769, 0.06548140943050385, -0.2612883746623993, 0.16063591837882996, -0.09282653033733368, 0.23480990529060364, 0.33989956974983215, -0.3983379900455475, -0.01556396670639515, 0.2366299331188202, -0.3033745288848877, -0.014766296371817589, -0.2774968147277832, -0.0018009953200817108, 0.022345855832099915, -0.057385850697755814, -0.17623190581798553, 0.16433195769786835, -0.10796782374382019, 0.41978734731674194, -0.02890641987323761, -0.46539735794067383, 0.3595941662788391, -0.5404395461082458, -0.39292487502098083, -0.005410673096776009, 0.23850545287132263, -0.201626718044281, 0.19684399664402008, -0.1844382882118225, -0.06080956384539604, 0.2502821683883667, 0.13573502004146576, -0.15906979143619537, 0.27338629961013794, -0.06492699682712555, -0.010745484381914139, -0.34596702456474304, -0.15979814529418945, 0.11916912347078323, -0.26720720529556274, -0.2490478754043579, -0.33672410249710083 ]
https://github.com/huggingface/datasets/issues/3396
Install Audio dependencies to support audio decoding
https://huggingface.co/datasets/projecte-aina/parlament_parla -> works (but we still have to show an audio player) https://huggingface.co/datasets/openslr -> another issue: `Message: [Errno 2] No such file or directory: '/home/hf/datasets-preview-backend/zip:/asr_javanese/data/00/00004fe6aa.flac'`
## Dataset viewer issue for '*openslr*', '*projecte-aina/parlament_parla*' **Link:** *https://huggingface.co/datasets/openslr* **Link:** *https://huggingface.co/datasets/projecte-aina/parlament_parla* Error: ``` Status code: 400 Exception: ImportError Message: To support decoding audio files, please install 'librosa'. ``` Am I the one who added this dataset ? Yes-No - openslr: No - projecte-aina/parlament_parla: Yes
25
Install Audio dependencies to support audio decoding ## Dataset viewer issue for '*openslr*', '*projecte-aina/parlament_parla*' **Link:** *https://huggingface.co/datasets/openslr* **Link:** *https://huggingface.co/datasets/projecte-aina/parlament_parla* Error: ``` Status code: 400 Exception: ImportError Message: To support decoding audio files, please install 'librosa'. ``` Am I the one who added this dataset ? Yes-No - openslr: No - projecte-aina/parlament_parla: Yes https://huggingface.co/datasets/projecte-aina/parlament_parla -> works (but we still have to show an audio player) https://huggingface.co/datasets/openslr -> another issue: `Message: [Errno 2] No such file or directory: '/home/hf/datasets-preview-backend/zip:/asr_javanese/data/00/00004fe6aa.flac'`
[ -0.2341924011707306, 0.08295617997646332, -0.12282107770442963, 0.28380700945854187, 0.16108089685440063, 0.016382291913032532, -0.0711144357919693, -0.026536621153354645, -0.32660725712776184, 0.22932502627372742, -0.3968031704425812, 0.37558504939079285, -0.040698666125535965, 0.04644056409597397, -0.10933688282966614, -0.22517931461334229, 0.09198188036680222, 0.36343318223953247, -0.15838895738124847, -0.029710836708545685, -0.2033930867910385, 0.4243874251842499, -0.22017773985862732, 0.09904772788286209, -0.14391934871673584, 0.04471416026353836, 0.02817772887647152, -0.1364051103591919, -0.5286775231361389, -0.3223715126514435, 0.17235012352466583, -0.039027195423841476, 0.09000827372074127, 0.36241212487220764, -0.00011501558765303344, -0.09161906689405441, 0.4367979168891907, -0.14009755849838257, -0.13079193234443665, -0.15186773240566254, -0.31726452708244324, -0.1341240406036377, 0.11243534088134766, 0.13764610886573792, 0.1100965216755867, -0.49637678265571594, -0.11705541610717773, -0.45042306184768677, 0.4022117853164673, 0.12588590383529663, 0.20487597584724426, -0.03354296833276749, 0.37522464990615845, 0.06948570907115936, 0.3817957639694214, 0.01194792240858078, -0.10677853226661682, -0.023783870041370392, 0.28014153242111206, 0.24954339861869812, -0.06085126847028732, 0.40021198987960815, -0.056494105607271194, 0.02441849373281002, 0.32916033267974854, -0.3017023205757141, -0.26531270146369934, -0.6008689403533936, 0.17453277111053467, 0.25190722942352295, 0.8086966872215271, -0.13584348559379578, -0.3358106017112732, 0.15286070108413696, 0.2076653391122818, -0.08246396481990814, 0.28278517723083496, 0.3051829934120178, -0.0887221246957779, 0.31210121512413025, -0.03586992248892784, -0.25442618131637573, -0.09975139051675797, 0.06542310118675232, -0.03561194986104965, 0.33969128131866455, -0.254805326461792, -0.14603948593139648, 0.3748895823955536, -0.1155000627040863, 0.11074752360582352, -0.038147933781147, -0.2872832417488098, 0.27151963114738464, -0.10369902849197388, 0.049062252044677734, -0.015168726444244385, 0.25080162286758423, -0.10907605290412903, 0.22091783583164215, -0.31793054938316345, 0.27029499411582947, -0.5252575278282166, 0.19785544276237488, -0.08621223270893097, -0.027624808251857758, 0.14239120483398438, 0.06385131925344467, 0.41089707612991333, 0.11337228864431381, 0.46067214012145996, -0.13743379712104797, -0.1745174527168274, -0.07826390117406845, -0.4310610294342041, 0.002651503309607506, 0.298981249332428, -0.3825351595878601, -0.3316476047039032, 0.168964222073555, -0.5156124234199524, -0.246343731880188, 0.175894632935524, 0.20252670347690582, -0.035702552646398544, 0.27998843789100647, 0.21415527164936066, 0.32925283908843994, 0.04402904212474823, -0.08738112449645996, 0.03384602069854736, 0.15587054193019867, -0.02415769174695015, 0.09584111720323563, 0.14553695917129517, -0.17274221777915955, 0.32365354895591736, 0.05170222371816635, 0.13101434707641602, -0.01497255265712738, 0.1575007438659668, -0.1141505092382431, -0.24438545107841492, 0.4234371781349182, -0.033798687160015106, 0.11637716740369797, -0.12533031404018402, 0.022956274449825287, -0.07215864956378937, 0.26767653226852417, -0.09228070825338364, -0.07431589066982269, -0.12234002351760864, 0.18543708324432373, -0.2704920172691345, 0.18220515549182892, -0.22501984238624573, 0.09845547378063202, -0.31471335887908936, -0.41797301173210144, -0.1146482303738594, 0.12907880544662476, -0.05915018916130066, 0.02748982422053814, 0.30904701352119446, 0.13712260127067566, -0.6475448608398438, -0.13579560816287994, -0.2419786900281906, -0.44218340516090393, -0.0041041299700737, 0.045460525900125504, -0.12317684292793274, 0.028772007673978806, -0.3128086030483246, 0.13558673858642578, 0.5135679244995117, -0.3171832859516144, -0.44600826501846313, 0.18562769889831543, 0.15781818330287933, 0.1282503604888916, 0.26803165674209595, 0.09522074460983276, 0.10881216078996658, -0.1549208164215088, -0.3386912941932678, 0.25379687547683716, 0.1383814960718155, -0.1057017594575882, 0.03727729991078377, -0.33603063225746155, -0.17859545350074768, 0.2702175974845886, -0.0006193742156028748, -0.023206055164337158, 0.08470550924539566, 0.013200617395341396, 0.16971492767333984, -0.16208402812480927, 0.048831112682819366, 0.24893495440483093, 0.6218206882476807, 0.14775021374225616, 0.04601980373263359, -0.3431348204612732, 0.15932141244411469, -0.16081435978412628, -0.008888544514775276, 0.25739333033561707, -0.48228919506073, -0.18694572150707245, -0.2675112783908844, -0.1326586902141571, -0.4109542965888977, 0.11334091424942017, 0.13149158656597137, 0.3642633557319641, -0.17696435749530792, 0.0006498023867607117, -0.14658811688423157, 0.2756715714931488, 0.2550825774669647, 0.021483039483428, -0.2809090316295624, 0.18438087403774261, -0.16930405795574188, 0.1650857925415039, 0.3021085858345032, 0.20281574130058289, 0.1107984185218811, -0.12280944734811783, -0.16757160425186157, 0.3904952108860016, 0.11249490827322006, 0.30789047479629517, -0.06317348778247833, 0.07986071705818176, 0.2023763358592987, -0.6000855565071106, 0.22175684571266174, -0.03169350326061249, 0.12528304755687714, -0.1914995312690735, 0.06265588849782944, -0.05144542455673218, -0.001821465790271759, 0.1445666253566742, 0.19511114060878754, 0.02185514010488987, 0.3287647068500519, 0.13926085829734802, -0.34941771626472473, -0.24939872324466705, 0.03508496284484863, -0.2263273298740387, 0.5072665810585022, -0.0168627742677927, -0.17208172380924225, -0.17342182993888855, 0.22583866119384766, -0.17560769617557526, -0.07067952305078506, 0.04170354828238487, -0.25123468041419983, 0.1616012156009674, 0.22263622283935547, 0.09693516790866852, 0.3722670078277588, 0.2973399758338928, -0.03364415839314461, 0.026663830503821373, 0.17302864789962769, -0.28449565172195435, 0.17655199766159058, 0.22774849832057953, 0.059192802757024765, 0.22989431023597717, -0.05932033807039261, -0.001653921790421009, -0.40462779998779297, -0.3306984305381775, -0.09468360990285873, 0.20024079084396362, -0.16839195787906647, -0.2084956020116806, -0.4447605311870575, -0.25658854842185974, -0.27081403136253357, -0.5788351893424988, -0.3302176892757416, -0.3632637858390808, 0.0036811456084251404, 0.09077440202236176, 0.10781669616699219, 0.3846113681793213, 0.047117020934820175, 0.14183059334754944, -0.30563437938690186, 0.09221958369016647, -0.22088472545146942, 0.07119639217853546, -0.16340073943138123, 0.14578375220298767, 0.4816269874572754, 0.2885892987251282, 0.22757741808891296, -0.21300038695335388, 0.3165302276611328, -0.22606007754802704, -0.23948168754577637, 0.23314350843429565, -0.037488408386707306, 0.0799185037612915, 0.17693743109703064, 0.07627882063388824, 0.25326287746429443, -0.46352243423461914, 0.17102473974227905, 0.2487238645553589, -0.09317194670438766, -0.07594536244869232, -0.07675544917583466, 0.05025186017155647, -0.10545365512371063, -0.32220926880836487, -0.2128933221101761, -0.5416287779808044, 0.1942809820175171, -0.02991480380296707, -0.014188632369041443, -0.06936799734830856, 0.07047409564256668, 0.31356123089790344, 0.21391429007053375, 0.27440008521080017, -0.1324433535337448, -0.09248234331607819, 0.3485710024833679, -0.1475347876548767, -0.18429288268089294, 0.2961158752441406, 0.23539622128009796, 0.4261058568954468, -0.24258841574192047, -0.5917025208473206, -0.0786823183298111, -0.01984967477619648, -0.2189590334892273, -0.124447762966156, 0.21548840403556824, 0.3251309394836426, 0.2958337962627411, 0.10032297670841217, -0.10102276504039764, -0.3052577078342438, -0.24486610293388367, -0.39952775835990906, 0.36467036604881287, -0.10871817916631699, 0.5343531966209412, -0.2807208001613617, 0.5696761608123779, 0.26607415080070496, 0.19406448304653168, 0.35372036695480347, 0.3349718153476715, 0.48420214653015137, -0.2660481929779053, -0.2535031735897064, -0.09736339747905731, 0.07872577011585236, 0.14951856434345245, 0.22397327423095703, 0.19605180621147156, -0.1579785943031311, -0.40044111013412476, -0.1694139540195465, -0.20070579648017883, -0.021063484251499176, -0.1655183732509613, -0.14929935336112976, 0.09552839398384094, -0.07955431938171387, 0.06175587326288223, 0.09024536609649658, 0.00467132031917572, 0.2843850255012512, 0.2436136156320572, 0.2608228921890259, -0.10248297452926636, -0.3269297182559967, -0.18225380778312683, -0.15902364253997803, 0.34306102991104126, -0.23666660487651825, 0.18448381125926971, -0.06752803921699524, 0.0329442024230957, 0.06472276896238327, -0.07469561696052551, 0.29886341094970703, -0.18774928152561188, -0.22529496252536774, 0.14323776960372925, 0.34216317534446716, -0.005011050030589104, 0.04039306566119194, -0.36466723680496216, -0.13040143251419067, 0.283913254737854, 0.45391932129859924, -0.26980292797088623, -0.14637193083763123, 0.48874911665916443, 0.19473408162593842, 0.14062641561031342, -0.33579739928245544, -0.3228791356086731, -0.3527294397354126, -0.22278550267219543, -0.16303464770317078, -0.21527692675590515, 0.2046850174665451, 0.21945825219154358, -0.04962965101003647, 0.13589483499526978, -0.31463417410850525, 0.3173533082008362, 0.050877895206213, 0.051026057451963425, 0.2336675226688385, 0.14885090291500092, 0.04389575123786926, 0.17095856368541718, 0.5495877265930176, 0.5976415276527405, -0.06043192371726036, -0.3979091942310333, 0.19280976057052612, -0.3081612288951874, 0.422555536031723, 0.19391007721424103, 0.02169395238161087, -0.1070513054728508, 0.22017620503902435, 0.08067812770605087, -0.09136445820331573, 0.04762357473373413, 0.4563642144203186, 0.10427826642990112, -0.23972386121749878, -0.20159709453582764, 0.39493831992149353, 0.15877258777618408, -0.15984177589416504, 0.15613901615142822, 0.4164218306541443, -0.046781986951828, 0.17604103684425354, -0.10122065991163254, 1.275445818901062, 0.09692931175231934, -0.2841520607471466, 0.22498902678489685, -0.40306556224823, 0.2300589382648468, -0.5599190592765808, 0.040044330060482025, 0.154766246676445, -0.15013915300369263, -0.14315320551395416, 0.015009988099336624, 0.5549248456954956, -0.10844039916992188, -0.3859875202178955, 0.18116891384124756, 0.16131889820098877, -0.0033455491065979004, -0.016547443345189095, 0.34960442781448364, -0.1533086746931076, -0.2881055176258087, -0.19301682710647583, 0.19328077137470245, 0.1889805942773819, 0.1507907658815384, -0.06096071004867554, -0.19063882529735565, -0.04065683111548424, -0.253417044878006, -0.2594752907752991, 0.11169806867837906, -0.2598778307437897, 0.08503438532352448, -0.0044119879603385925, -0.2347661703824997, 0.5655709505081177, 0.21902798116207123, 0.08124381303787231, 0.34198397397994995, -0.11255776882171631, 0.22381968796253204, -0.10100940614938736, -0.0009523830376565456, 0.1555357575416565, 0.20190167427062988, 0.06671784818172455, -0.15016242861747742, -0.3048604726791382, 0.303204208612442, -0.15653753280639648, -0.034274451434612274, 0.07064741849899292, -0.10978668928146362, 0.18864063918590546, -0.0976158082485199, -0.25661078095436096, 0.013295084238052368, 0.08836923539638519, -0.05278175696730614, 0.15367378294467926, -0.08467994630336761, -0.3673294484615326, 0.046694330871105194, -0.16432994604110718, -0.09564295411109924, -0.2165776640176773, 0.27766290307044983, 0.036701180040836334, -0.14751774072647095, 0.40081125497817993, 0.08608265221118927, -0.23910920321941376, -0.17384442687034607, 0.11010273545980453, 0.033662836998701096, -0.2886335253715515, -0.4667060375213623, 0.33128416538238525, -0.2714466154575348, -0.13296249508857727, 0.09644991159439087, 0.027416452765464783, 0.161958247423172, -0.21942394971847534, -0.37526077032089233, -0.2605730891227722, 0.36351466178894043, -0.0876779854297638, 0.09052373468875885, -0.3346710205078125, 0.11880487203598022, 0.11241896450519562, 0.19872935116291046, -0.29798173904418945, 0.06044314056634903, -0.10291346162557602, 0.14691781997680664, 0.12595129013061523, 0.1723712980747223, 0.02725665271282196, 0.03141072392463684, 0.1014396920800209, 0.24544544517993927, -0.36145254969596863, -0.049540046602487564, 0.11590336263179779, 0.12489177286624908, 0.07532889395952225, -0.1527143120765686, -0.036965079605579376, -0.13838709890842438, -0.21290603280067444, -0.04353724420070648, -0.18104296922683716, 0.11626439541578293, -0.05629603564739227, -0.24936357140541077, 0.01792830601334572, -0.07790031284093857, 0.020811736583709717, -0.02576066553592682, 0.15326763689517975, 0.01924607902765274, 0.025650281459093094, 0.07565201818943024, 0.07395175099372864, -0.1332637071609497, 0.11411050707101822, 0.14553099870681763, 0.10765668749809265, -0.05085800588130951, 0.32434913516044617, -0.04164114594459534, 0.2458237111568451, 0.3850567042827606, 0.3495704233646393, 0.35805344581604004, 0.06488186866044998, 0.129380002617836, 0.2336972951889038, 0.1659235656261444, -0.411667138338089, -0.23089689016342163, 0.36935800313949585, -0.12090445309877396, -0.08397730439901352, 0.06448490917682648, 0.08408842980861664, 0.10359980165958405, 0.5770031213760376, 0.0657462477684021, 0.31751295924186707, 0.16557273268699646, 0.39989250898361206, 0.19474145770072937, -0.32587355375289917, 0.11782316863536835, 0.2910647392272949, 0.11663232743740082, 0.0004896968603134155, 0.25841858983039856, -0.7476293444633484, -0.11182652413845062, -0.05590921640396118, 0.05954509228467941, 0.18052901327610016, -0.41171690821647644, -0.19866502285003662, 0.13456282019615173, 0.15914595127105713, -0.3232932984828949, 0.06944824010133743, 0.2281365990638733, -0.17016194760799408, -0.10429473966360092, -0.12303692102432251, 0.1816597431898117, -0.07305805385112762, 0.15421302616596222, 0.16159063577651978, -0.23983794450759888, -0.1329549103975296, -0.14452186226844788, 0.24769841134548187, -0.10112379491329193, -0.0021785497665405273, -0.03295748680830002, -0.05464613437652588, -0.10809557139873505, -0.39612531661987305, -0.014717727899551392, 0.113841712474823, -0.14878487586975098, 0.33030569553375244, 0.11596046388149261, 0.07412444800138474, 0.23487471044063568, 0.28919073939323425, 0.36279934644699097, 0.29331719875335693, 0.1386505365371704, 0.12616010010242462, -0.13895364105701447, -0.14038406312465668, 0.098182812333107, 0.3019411265850067, 0.27615413069725037, 0.5049619078636169, 0.1537567526102066, 0.13697542250156403, -0.18409650027751923, 0.000660087913274765, -0.08512689173221588, 0.4171958863735199, -0.415151447057724, 0.12508311867713928, -0.6122140884399414, -0.12411686033010483, -0.2736509442329407, -0.3102951943874359, -0.5477473735809326, 0.025508344173431396, 0.09310588240623474, 0.0008471917826682329, -0.1484447717666626, -0.12445046752691269, 0.046671003103256226, -0.1771458238363266, 0.19748298823833466, 0.42381611466407776, 0.03317646682262421, -0.04762926697731018, -0.588198184967041, -0.7772828936576843, 0.07971220463514328, 0.17072518169879913, 0.04828142374753952, -0.24267235398292542, -0.09140930324792862, 0.39200377464294434, 0.31489795446395874, 0.05045885592699051, 0.1853758990764618, 0.11448990553617477, -0.1702592372894287, -0.20643649995326996, -0.002392977476119995, 0.1332031786441803, 0.18536511063575745, -0.1885029524564743, -0.1940264105796814, 0.021701596677303314, 0.11234892904758453, 0.04865714907646179, 0.035739053040742874, 0.019054681062698364, -0.3290576934814453, -0.012166395783424377, 0.38719749450683594, 0.14354895055294037, 0.6892684698104858, -0.09210900217294693, -0.022767238318920135, 0.014790799468755722, -0.3207664489746094, 0.11971837282180786, 0.2423403263092041, 0.14383941888809204, 0.5700987577438354, -0.242964968085289, -0.007569056004285812, -0.45287537574768066, 0.21423284709453583, -0.15921950340270996, 0.18725959956645966, -0.51328045129776, 0.05813199281692505, -0.2556421756744385, 0.05668908357620239, 0.20488129556179047, -0.1677301824092865, -0.010683655738830566, -0.010399524122476578, -0.3480415940284729, -0.1752215474843979, 0.4888724088668823, -0.1627761870622635, -0.035031918436288834, 0.0665258914232254, 0.20499446988105774, 0.1880415976047516, -0.34450846910476685, -0.773087739944458, 0.18600645661354065, 0.23832589387893677, -0.00020148977637290955, -0.04424765706062317, 0.2122538685798645, -0.10794566571712494, -0.010624833405017853, -0.06601162254810333, -0.2008761167526245, 0.15256187319755554, -0.02977665700018406, 0.1741734743118286, -0.16983075439929962 ]
https://github.com/huggingface/datasets/issues/3396
Install Audio dependencies to support audio decoding
But https://huggingface.co/datasets/openslr/viewer does not work <img width="678" alt="Capture d’écran 2022-04-12 à 13 59 46" src="https://user-images.githubusercontent.com/1676121/162958013-e31ef2ae-f886-47b7-9f27-664ed3d4b5a1.png"> Same issue as #4126: ``` Status code: 400 Exception: TypeError Message: __init__() got an unexpected keyword argument 'audio_column' ```
## Dataset viewer issue for '*openslr*', '*projecte-aina/parlament_parla*' **Link:** *https://huggingface.co/datasets/openslr* **Link:** *https://huggingface.co/datasets/projecte-aina/parlament_parla* Error: ``` Status code: 400 Exception: ImportError Message: To support decoding audio files, please install 'librosa'. ``` Am I the one who added this dataset ? Yes-No - openslr: No - projecte-aina/parlament_parla: Yes
34
Install Audio dependencies to support audio decoding ## Dataset viewer issue for '*openslr*', '*projecte-aina/parlament_parla*' **Link:** *https://huggingface.co/datasets/openslr* **Link:** *https://huggingface.co/datasets/projecte-aina/parlament_parla* Error: ``` Status code: 400 Exception: ImportError Message: To support decoding audio files, please install 'librosa'. ``` Am I the one who added this dataset ? Yes-No - openslr: No - projecte-aina/parlament_parla: Yes But https://huggingface.co/datasets/openslr/viewer does not work <img width="678" alt="Capture d’écran 2022-04-12 à 13 59 46" src="https://user-images.githubusercontent.com/1676121/162958013-e31ef2ae-f886-47b7-9f27-664ed3d4b5a1.png"> Same issue as #4126: ``` Status code: 400 Exception: TypeError Message: __init__() got an unexpected keyword argument 'audio_column' ```
[ -0.2965097427368164, 0.12644292414188385, -0.0777169018983841, 0.28706467151641846, 0.15195871889591217, 0.05533187836408615, 0.14480572938919067, 0.014321733266115189, -0.28875958919525146, 0.23150813579559326, -0.3266480267047882, 0.45376062393188477, -0.11933185905218124, 0.07192303985357285, -0.12639380991458893, -0.18284034729003906, 0.08776506781578064, 0.493055135011673, -0.33747434616088867, -0.12848562002182007, -0.31220319867134094, 0.4497970640659332, -0.33737653493881226, 0.019342459738254547, -0.16703440248966217, 0.05454924702644348, 0.11948633193969727, -0.08494038134813309, -0.56113201379776, -0.39071935415267944, 0.11812934279441833, -0.0020330697298049927, 0.07995999604463577, 0.34107276797294617, -0.00011804162204498425, -0.012301310896873474, 0.355376660823822, -0.133741095662117, -0.0589187853038311, -0.2846207618713379, -0.3987482786178589, -0.1342017501592636, 0.09021204710006714, -0.04463985189795494, 0.20019176602363586, -0.41743993759155273, -0.11034905910491943, -0.41969195008277893, 0.3497512936592102, 0.152743861079216, 0.20601440966129303, -0.048694901168346405, 0.3847515881061554, 0.10218995064496994, 0.3759208619594574, -0.004176147282123566, -0.19560274481773376, 0.0484318733215332, 0.18015030026435852, 0.1847972273826599, 0.09044717252254486, 0.4932566285133362, -0.07103276997804642, 0.06018999591469765, 0.3783476650714874, -0.18337179720401764, -0.19485363364219666, -0.46370479464530945, 0.16960230469703674, 0.18970906734466553, 0.8263205289840698, -0.13725358247756958, -0.2498111128807068, 0.20556887984275818, 0.09066873043775558, -0.20234744250774384, 0.35886168479919434, 0.27132803201675415, -0.07143102586269379, 0.24493716657161713, -0.18203315138816833, -0.18998482823371887, -0.1717565357685089, -0.006209544837474823, -0.04805048555135727, 0.2289387732744217, -0.22688035666942596, -0.027044549584388733, 0.4831109642982483, -0.11779841780662537, 0.0006020036526024342, 0.002053814008831978, -0.25011563301086426, 0.2812974154949188, -0.21626923978328705, 0.03423474729061127, -0.04016335308551788, 0.3858957588672638, -0.09970678389072418, 0.29957467317581177, -0.3533370792865753, 0.11976730823516846, -0.3374934196472168, 0.20030111074447632, -0.1608879268169403, -0.08528082072734833, 0.14765390753746033, -0.01181752048432827, 0.34962236881256104, 0.026602737605571747, 0.2685149013996124, -0.0799979567527771, -0.11039795726537704, -0.17028146982192993, -0.3287712633609772, -0.12562978267669678, 0.3500016927719116, -0.2691650688648224, -0.3478122055530548, 0.15747559070587158, -0.5971590876579285, -0.234635591506958, 0.1742919534444809, 0.21555262804031372, 0.09725945442914963, 0.16950520873069763, 0.302521288394928, 0.37098366022109985, 0.03096534125506878, -0.029251154512166977, 0.037373319268226624, 0.2795078754425049, -0.05643685162067413, 0.13588781654834747, 0.07736089825630188, -0.010500922799110413, 0.20307399332523346, 0.0044068144634366035, 0.20494768023490906, -0.07378320395946503, 0.1661520004272461, -0.06735621392726898, -0.3284482955932617, 0.3049274981021881, -0.10277561843395233, 0.11787744611501694, -0.08759790658950806, -0.011566642671823502, -0.13668623566627502, 0.324428528547287, -0.13865038752555847, -0.07186542451381683, -0.15179987251758575, 0.14675071835517883, -0.2456991970539093, 0.11372420191764832, -0.2354402244091034, 0.12379646301269531, -0.31504350900650024, -0.4164302945137024, -0.13531875610351562, 0.12704025208950043, -0.22647956013679504, 0.04104916378855705, 0.2551616132259369, 0.1672244369983673, -0.6773882508277893, -0.1833292543888092, -0.19265159964561462, -0.34448757767677307, -0.051227159798145294, 0.018830107524991035, -0.09168330579996109, 0.025718506425619125, -0.12069253623485565, 0.1994229406118393, 0.5124175548553467, -0.48122894763946533, -0.5407562851905823, 0.0950634777545929, 0.21834255754947662, 0.09417729824781418, 0.2647719383239746, 0.10552169382572174, 0.19447585940361023, -0.14880168437957764, -0.32590600848197937, 0.10404302179813385, 0.13526616990566254, -0.05975612998008728, 0.08308663964271545, -0.3924720585346222, -0.13794484734535217, 0.2720305025577545, 0.01551889255642891, -0.042879633605480194, -0.016554541885852814, 0.04092518985271454, 0.12231531739234924, -0.12879551947116852, 0.0831746831536293, 0.29196369647979736, 0.6977115273475647, 0.1794007122516632, 0.02517474628984928, -0.30983465909957886, 0.05411349982023239, -0.12121924012899399, 0.12634246051311493, 0.33038392663002014, -0.47483712434768677, -0.14233899116516113, -0.2949907183647156, -0.11052218079566956, -0.43155109882354736, 0.19072359800338745, 0.09885801374912262, 0.25907614827156067, -0.1917114406824112, 0.008676398545503616, -0.19349941611289978, 0.36917945742607117, 0.1807158887386322, 0.04365973919630051, -0.1861332505941391, 0.10287079960107803, -0.24997378885746002, 0.10836438089609146, 0.1613461673259735, 0.19535498321056366, 0.16937820613384247, -0.150446817278862, -0.14683520793914795, 0.45194029808044434, 0.1216973289847374, 0.2242487221956253, -0.23893451690673828, 0.10358408093452454, 0.21893605589866638, -0.6197245121002197, 0.13769707083702087, -0.2700820565223694, 0.16940605640411377, -0.085965096950531, 0.04663519933819771, -0.21120645105838776, 0.029895685613155365, 0.1956271231174469, 0.08274456858634949, -0.0008562039583921432, 0.26157933473587036, 0.0937105268239975, -0.2796604633331299, -0.2861860990524292, -0.015498418360948563, -0.03239333629608154, 0.4190944731235504, -0.08792277425527573, -0.11596710234880447, -0.27849459648132324, 0.30896422266960144, -0.06432490050792694, -0.12294872850179672, 0.10387428104877472, -0.13500192761421204, 0.22196120023727417, 0.1905631422996521, 0.1467239409685135, 0.4659527540206909, 0.24123819172382355, -0.05425916239619255, 0.10823570936918259, 0.0753350630402565, -0.19064319133758545, 0.16314367949962616, 0.2807193994522095, -0.03254050016403198, 0.14180879294872284, -0.014456193894147873, -0.0137724494561553, -0.3752257823944092, -0.2744868993759155, 0.0499163419008255, 0.19612976908683777, -0.24604915082454681, -0.17249800264835358, -0.5155571103096008, -0.08410606533288956, -0.13571222126483917, -0.5536938905715942, -0.18258172273635864, -0.2305295318365097, -0.021014157682657242, 0.09415054321289062, 0.14825035631656647, 0.4917586147785187, -0.020762737840414047, 0.23761388659477234, -0.283313125371933, -0.0061004143208265305, -0.2012086808681488, 0.03609168902039528, -0.0811854898929596, 0.0885901153087616, 0.3569816052913666, 0.1533782184123993, 0.14782212674617767, -0.256049782037735, 0.24463413655757904, -0.12003419548273087, -0.3405115008354187, 0.24999341368675232, -0.17400191724300385, 0.07540387660264969, 0.11369029432535172, 0.015433281660079956, 0.21221913397312164, -0.36258453130722046, 0.21812573075294495, 0.322356253862381, -0.053562432527542114, -0.09579426050186157, -0.16308484971523285, 0.05461983010172844, -0.17824862897396088, -0.3044292628765106, -0.14316688477993011, -0.5516387820243835, 0.22859297692775726, 0.09544862806797028, -0.05122153460979462, -0.028521228581666946, 0.1283799111843109, 0.2606457471847534, 0.21371738612651825, 0.45293402671813965, -0.14594857394695282, 0.019652675837278366, 0.33946627378463745, -0.1348482370376587, -0.11647927761077881, 0.2785389721393585, 0.1971234828233719, 0.47984570264816284, -0.16649506986141205, -0.5810843110084534, -0.1963210105895996, -0.05756751447916031, -0.2384350448846817, -0.08731533586978912, 0.15112681686878204, 0.30385732650756836, 0.26800820231437683, 0.13518810272216797, -0.1380486935377121, -0.37525150179862976, -0.029054634273052216, -0.2957124412059784, 0.3250172436237335, 0.013904164545238018, 0.7046724557876587, -0.260731041431427, 0.34870970249176025, 0.29309189319610596, 0.0811128318309784, 0.44229692220687866, 0.1773880273103714, 0.5404123663902283, -0.24625974893569946, -0.19863933324813843, -0.12318109720945358, 0.03873709589242935, 0.21081525087356567, 0.13280721008777618, 0.14696747064590454, -0.16578760743141174, -0.42023965716362, 0.026096388697624207, -0.24490195512771606, -0.08903487026691437, -0.17789454758167267, -0.08128660917282104, 0.05337996780872345, -0.01574208214879036, 0.10509795695543289, 0.036141861230134964, 0.014508342370390892, 0.25438907742500305, 0.16494101285934448, 0.23593223094940186, -0.2142321616411209, -0.3840624988079071, -0.11670893430709839, -0.10806869715452194, 0.39442235231399536, -0.22974762320518494, 0.1828678697347641, -0.08300119638442993, -0.012048086151480675, 0.12461544573307037, -0.09805278480052948, 0.2941843569278717, -0.16132260859012604, -0.2769148349761963, 0.08844758570194244, 0.3669169843196869, 0.003188343718647957, -0.021693984046578407, -0.35935553908348083, -0.1838282197713852, 0.28871574997901917, 0.4787677526473999, -0.3374433219432831, -0.04637749865651131, 0.6703537702560425, 0.1045488640666008, 0.12335675954818726, -0.3176460564136505, -0.27284979820251465, -0.457438200712204, -0.2517077922821045, -0.2163354456424713, -0.12007124722003937, 0.3001326620578766, 0.23213909566402435, -0.029708879068493843, 0.2584700286388397, -0.4059593081474304, 0.3917850852012634, 0.07094511389732361, 0.11246134340763092, 0.188140869140625, 0.22696855664253235, 0.050900183618068695, 0.04250218719244003, 0.4449980854988098, 0.6628158092498779, -0.1874639093875885, -0.38073691725730896, 0.18347445130348206, -0.2923923134803772, 0.36523208022117615, 0.1984824389219284, -0.007540556602180004, -0.043638162314891815, 0.1301308125257492, -0.017065279185771942, -0.18238480389118195, 0.08736579120159149, 0.6785198450088501, 0.03503936529159546, -0.1709735244512558, -0.30557525157928467, 0.4842642545700073, 0.1689835488796234, -0.17536908388137817, 0.22981372475624084, 0.6659420728683472, -0.06633952260017395, 0.1814223676919937, -0.08654304593801498, 1.1843266487121582, 0.15795612335205078, -0.24114155769348145, 0.24889212846755981, -0.4925265312194824, 0.2735699713230133, -0.5087195634841919, 0.1254107654094696, 0.15678440034389496, -0.10945992171764374, -0.13101589679718018, -0.049369826912879944, 0.46474704146385193, 0.006159007549285889, -0.4050672948360443, 0.07671178877353668, 0.11167691648006439, 0.1042853593826294, -0.0870957300066948, 0.10493475198745728, -0.11864525824785233, -0.2598553001880646, -0.08154106140136719, 0.1800021529197693, 0.296089768409729, 0.0698447898030281, -0.10030242800712585, -0.1492801010608673, 0.02875613048672676, -0.3958357572555542, -0.33292490243911743, 0.017465751618146896, -0.10459008812904358, 0.17708328366279602, 0.1167287826538086, -0.2412339299917221, 0.6063072085380554, 0.2822086215019226, 0.09214639663696289, 0.24769537150859833, -0.16004347801208496, 0.283773273229599, -0.0839611068367958, 0.01703731343150139, 0.14827659726142883, 0.2577405869960785, 0.0004866980016231537, -0.13459157943725586, -0.33137840032577515, 0.31059807538986206, -0.09214286506175995, -0.1476215124130249, -0.012144744396209717, -0.02157822996377945, 0.1621054708957672, -0.12180262804031372, -0.3421824276447296, 0.020838528871536255, 0.09764204919338226, -0.08172708749771118, 0.12441101670265198, -0.20214779675006866, -0.3452327847480774, 0.27095139026641846, -0.21804605424404144, -0.1850118637084961, -0.10774543881416321, 0.244653582572937, -0.0441691130399704, -0.11944745481014252, 0.4083458483219147, 0.0736924260854721, -0.26948976516723633, -0.1073082908987999, 0.09167063981294632, 0.014746421948075294, -0.32940831780433655, -0.36141249537467957, 0.3487327992916107, -0.23395395278930664, -0.09538506716489792, 0.12075246870517731, -0.03395306318998337, 0.1296769678592682, -0.1243586540222168, -0.2965471148490906, -0.21359261870384216, 0.4215397238731384, -0.10644236207008362, 0.1385842114686966, -0.2759270966053009, 0.15768782794475555, 0.05644836276769638, 0.1440967321395874, -0.27935704588890076, 0.12394113093614578, -0.2075168788433075, 0.13381943106651306, 0.2659333348274231, 0.13116636872291565, 0.07664034515619278, 0.0841473937034607, 0.10302618145942688, 0.4203997850418091, -0.3279907703399658, -0.001173015683889389, -0.10067157447338104, 0.15025568008422852, 0.09621956944465637, -0.1355888694524765, -0.040724318474531174, -0.21019256114959717, -0.33592385053634644, 0.004961003549396992, -0.11578743159770966, 0.1585184633731842, -0.08223862946033478, -0.17632105946540833, -0.1368640959262848, -0.1457715630531311, 0.06403926759958267, 0.0025965124368667603, 0.10814299434423447, 0.16656789183616638, 0.08197765052318573, 0.10691794008016586, 0.09234995394945145, -0.10639216750860214, -0.03961853310465813, 0.22921690344810486, 0.11131925880908966, -0.17056486010551453, 0.3226642906665802, -0.08667340874671936, 0.30748021602630615, 0.2339402735233307, 0.37888383865356445, 0.3780185282230377, -0.04377848282456398, 0.1036054939031601, 0.10833617299795151, 0.1665807068347931, -0.4014762341976166, -0.18163347244262695, 0.2367245852947235, -0.12213418632745743, 0.07451251149177551, 0.11447357386350632, 0.05749897286295891, 0.1428564190864563, 0.4212900400161743, 0.04810623079538345, 0.47441333532333374, 0.1458825021982193, 0.2302337884902954, 0.19456526637077332, -0.3767901360988617, 0.18928749859333038, 0.3521837890148163, 0.22895705699920654, 0.12807172536849976, 0.372111439704895, -0.7397385835647583, -0.14247752726078033, -0.043629370629787445, -0.01660185679793358, 0.1686629354953766, -0.35350385308265686, -0.15622767806053162, 0.1708703637123108, 0.14569026231765747, -0.26482093334198, 0.02213120460510254, 0.1247800812125206, -0.19298438727855682, -0.019232571125030518, -0.20315173268318176, 0.16567207872867584, -0.047186560928821564, 0.05661521479487419, 0.014158032834529877, -0.26721101999282837, -0.2116287350654602, -0.10581305623054504, 0.18500283360481262, -0.07644368708133698, 0.11830997467041016, -0.03478776663541794, 0.04412345960736275, -0.047064706683158875, -0.5005906224250793, -0.0691036731004715, 0.02429603785276413, -0.1796635389328003, 0.3753100633621216, 0.2743571996688843, 0.12992216646671295, 0.36906808614730835, 0.26008686423301697, 0.43157777190208435, 0.34107840061187744, 0.1818736344575882, 0.08597550541162491, -0.11000119149684906, -0.10889402031898499, 0.09923557937145233, 0.388607919216156, 0.3433653712272644, 0.6661245226860046, 0.15491415560245514, 0.09926287829875946, -0.17606911063194275, 0.005839481949806213, 0.024038664996623993, 0.4162033498287201, -0.4754817485809326, 0.14613646268844604, -0.616923451423645, -0.15581488609313965, -0.3028002083301544, -0.24191057682037354, -0.46977561712265015, 0.00007213931530714035, 0.08651727437973022, 0.010862418450415134, -0.16167712211608887, -0.031501270830631256, 0.03129173442721367, -0.08542785048484802, 0.22908510267734528, 0.2812868356704712, 0.1172814667224884, -0.03276572376489639, -0.5624064803123474, -0.7481034994125366, 0.08669999986886978, 0.02928798459470272, -0.050884656608104706, -0.2616378962993622, -0.039878685027360916, 0.4480830430984497, 0.1827673465013504, 0.15520037710666656, 0.12498125433921814, 0.0757293626666069, -0.14639988541603088, -0.18327471613883972, -0.013015344738960266, 0.24861793220043182, 0.12612813711166382, -0.20864532887935638, -0.19732782244682312, 0.002997778356075287, 0.1468496322631836, 0.010274946689605713, -0.08426138013601303, 0.011255122721195221, -0.3588751256465912, -0.08529992401599884, 0.3909797966480255, 0.08506499230861664, 0.8222954273223877, -0.07735316455364227, -0.07950621098279953, 0.01991782709956169, -0.3578902781009674, 0.030989963561296463, 0.019729021936655045, 0.11131981015205383, 0.48930755257606506, -0.2686014175415039, 0.055063679814338684, -0.34713464975357056, 0.2491454780101776, -0.14258462190628052, 0.07542499154806137, -0.5595661997795105, -0.0019231168553233147, -0.24385640025138855, 0.002023888984695077, 0.21017886698246002, -0.1871775984764099, 0.0841997042298317, 0.08973591774702072, -0.38177216053009033, -0.2407762110233307, 0.6285682916641235, -0.19506306946277618, -0.16850431263446808, 0.0716475397348404, 0.18115200102329254, 0.1434503197669983, -0.3217772841453552, -0.7973059415817261, 0.1336531639099121, 0.22118061780929565, -0.009755119681358337, -0.0797659307718277, 0.2737010717391968, 0.034067124128341675, -0.07705440372228622, -0.06954806298017502, -0.25663554668426514, 0.1098543182015419, -0.0021211840212345123, 0.09802199900150299, -0.20058251917362213 ]
https://github.com/huggingface/datasets/issues/3394
Preserve all feature types when saving a dataset on the Hub with `push_to_hub`
According to this [comment in the forum](https://discuss.huggingface.co/t/save-datasetdict-to-huggingface-hub/12075/8?u=lhoestq), using `push_to_hub` on a dataset with `ClassLabel` can also make the feature simply disappear when it's reloaded !
Currently, if one of the dataset features is of type `ClassLabel`, saving the dataset with `push_to_hub` and reloading the dataset with `load_dataset` will return the feature of type `Value`. To fix this, we should do something similar to `save_to_disk` (which correctly preserves the types) and not only push the parquet files in `push_to_hub`, but also the dataset `info` (stored in a JSON file).
25
Preserve all feature types when saving a dataset on the Hub with `push_to_hub` Currently, if one of the dataset features is of type `ClassLabel`, saving the dataset with `push_to_hub` and reloading the dataset with `load_dataset` will return the feature of type `Value`. To fix this, we should do something similar to `save_to_disk` (which correctly preserves the types) and not only push the parquet files in `push_to_hub`, but also the dataset `info` (stored in a JSON file). According to this [comment in the forum](https://discuss.huggingface.co/t/save-datasetdict-to-huggingface-hub/12075/8?u=lhoestq), using `push_to_hub` on a dataset with `ClassLabel` can also make the feature simply disappear when it's reloaded !
[ -0.21118319034576416, -0.42175427079200745, 0.05693088099360466, 0.3006315529346466, 0.29040706157684326, -0.012606970965862274, 0.18803949654102325, 0.2776138186454773, 0.010331008583307266, 0.0954093411564827, -0.4370884299278259, 0.4137708246707916, -0.10505425930023193, 0.6337106227874756, -0.02382080629467964, 0.10020042210817337, 0.2585051655769348, 0.09155406802892685, 0.14394471049308777, -0.18579933047294617, -0.3444070816040039, 0.15448753535747528, 0.20280857384204865, 0.013395451009273529, -0.505009114742279, -0.05455023795366287, 0.06398846954107285, 0.15601497888565063, -0.0946277305483818, -0.2617854177951813, 0.30166691541671753, 0.12291455268859863, 0.02512836828827858, -0.07290055602788925, -0.00011025104322470725, -0.015673693269491196, 0.12985014915466309, -0.2305692583322525, -0.16006721556186676, -0.10204192996025085, 0.0002057105302810669, 0.07834380865097046, 0.09380083531141281, -0.1145099550485611, -0.21165192127227783, 0.27174732089042664, 0.014452541247010231, 0.1306256204843521, 0.15411953628063202, 0.006257378496229649, 0.15567654371261597, 0.079016774892807, 0.04981600120663643, -0.03313133493065834, 0.36137303709983826, 0.5582361817359924, -0.2765958905220032, -0.029403287917375565, -0.00958029180765152, 0.5110067129135132, 0.08878657221794128, 0.2334183007478714, 0.0526152104139328, -0.34139174222946167, 0.3785182237625122, 0.12170308083295822, -0.04492233693599701, -0.09994193911552429, 0.07995927333831787, 0.09270038455724716, 0.07502228766679764, -0.3629439175128937, -0.31334036588668823, -0.3963759243488312, -0.039709992706775665, -0.28369027376174927, 0.2079850435256958, 0.13842959702014923, 0.12145534157752991, 0.11154653131961823, -0.1508796662092209, -0.457295298576355, -0.15716323256492615, -0.14763060212135315, 0.04004120081663132, 0.09161034226417542, -0.23469039797782898, 0.08123950660228729, 0.012152697890996933, -0.12631914019584656, -0.07202363014221191, -0.2739057242870331, -0.1568804830312729, -0.0913953185081482, 0.011685904115438461, -0.24027332663536072, -0.03189422935247421, 0.42495760321617126, 0.2972501218318939, 0.10040296614170074, -0.09893939644098282, 0.3380023241043091, -0.18709154427051544, 0.21929532289505005, 0.4268020987510681, -0.01880706287920475, 0.5271793007850647, -0.18058796226978302, 0.42024195194244385, 0.14712220430374146, 0.052492979913949966, -0.07498859614133835, 0.26638278365135193, 0.5446485877037048, 0.2874009609222412, -0.1537432074546814, 0.4817507863044739, -0.3450792133808136, -0.06086207926273346, 0.03523358330130577, 0.2810749411582947, 0.19546811282634735, 0.032194145023822784, 0.38280874490737915, 0.11098383367061615, 0.28374889492988586, -0.12200593948364258, 0.3229449987411499, 0.0013723969459533691, -0.14110752940177917, -0.300762802362442, -0.07748006284236908, 0.0995248556137085, -0.03275693953037262, 0.21953009068965912, -0.33682921528816223, 0.12761811912059784, 0.12511050701141357, -0.058316126465797424, -0.0004964210093021393, -0.3639059364795685, 0.08399470150470734, 0.02775559574365616, 0.09923103451728821, -0.12183019518852234, 0.18454082310199738, 0.1087983250617981, -0.19377188384532928, -0.38745251297950745, -0.0881444439291954, -0.3330603241920471, -0.16005732119083405, 0.1413002610206604, 0.19265969097614288, -0.047027718275785446, 0.08498989790678024, -0.6471936106681824, 0.23931263387203217, -0.09368517249822617, 0.20383067429065704, 0.025751560926437378, -0.054823651909828186, -0.1454128473997116, -0.28683534264564514, 0.03602024167776108, 0.07360576093196869, -0.043364688754081726, -0.30771464109420776, 0.4323258101940155, -0.24865350127220154, 0.010141685605049133, 0.196736142039299, -0.12639287114143372, -0.15423595905303955, -0.1798280030488968, 0.3444138169288635, 0.2515203058719635, -0.5262072682380676, -0.2353118658065796, -0.26288244128227234, 0.09225179255008698, 0.01866774819791317, -0.06618980318307877, 0.09142398089170456, 0.3083097040653229, -0.20660214126110077, 0.043189506977796555, 0.11353910714387894, -0.1270747184753418, 0.05993504077196121, -0.2486942708492279, -0.11297351866960526, 0.030158307403326035, -0.07149825245141983, -0.11974422633647919, 0.09045775979757309, 0.12121760100126266, 0.3055330216884613, 0.11513373255729675, -0.014730926603078842, 0.23392945528030396, 0.08925459533929825, 0.4966500997543335, 0.24246320128440857, -0.008609014563262463, -0.19219759106636047, -0.6642531752586365, 0.15670537948608398, -0.10472622513771057, -0.04246385395526886, 0.1747419834136963, -0.4139214754104614, -0.0920230895280838, -0.01454753428697586, -0.21883760392665863, -0.18658220767974854, 0.1649741530418396, -0.0974721759557724, -0.2838708460330963, 0.2638099491596222, -0.22199277579784393, 0.3030725121498108, -0.11502361297607422, 0.20429596304893494, -0.4889196753501892, 0.27450624108314514, 0.052130043506622314, -0.28780704736709595, -0.09663160890340805, 0.1534571349620819, 0.2529258728027344, -0.10008697211742401, -0.04718697816133499, 0.33781111240386963, 0.14159056544303894, 0.40054064989089966, -0.038471758365631104, 0.1847769170999527, 0.2574726343154907, -0.05501184239983559, -0.1373233199119568, -0.15788604319095612, 0.20838187634944916, 0.05444811284542084, -0.42415472865104675, 0.3938271999359131, 0.2695191204547882, 0.011845871806144714, -0.036337949335575104, 0.010191144421696663, 0.023969503119587898, -0.0016024187207221985, -0.023254934698343277, -0.04796700179576874, -0.3201802670955658, -0.029773373156785965, -0.030083514750003815, 0.08251697570085526, -0.46108895540237427, 0.38655826449394226, 0.7573986649513245, 0.027705270797014236, 0.2959180176258087, 0.08806739747524261, -0.3444048762321472, -0.07978828251361847, 0.29805922508239746, -0.1290377527475357, -0.009708389639854431, 0.1025947704911232, 0.05409056693315506, 0.07468391209840775, -0.019965846091508865, 0.04322438687086105, 0.13644616305828094, 0.12749162316322327, 0.1322202980518341, 0.05129450559616089, 0.24773341417312622, -0.049677614122629166, -0.5481800436973572, 0.39591899514198303, -0.10415855050086975, -0.13941648602485657, -0.2124571055173874, -0.14457932114601135, -0.14937786757946014, 0.23947951197624207, 0.043382298201322556, -0.020677432417869568, -0.4694598913192749, -0.30462831258773804, 0.10976476222276688, 0.6526201367378235, -0.16248078644275665, 0.11881718784570694, 0.03256349638104439, 0.4589158296585083, -0.06586769223213196, -0.08684320002794266, -0.21959033608436584, -0.10281141847372055, -0.20894038677215576, 0.018884092569351196, -0.01977330818772316, 0.13293002545833588, 0.43044140934944153, -0.03127370402216911, 0.048364125192165375, -0.4149528443813324, -0.1042114794254303, 0.17677335441112518, -0.3377332091331482, 0.1289500892162323, 0.16654103994369507, -0.0038131698966026306, -0.17054544389247894, -0.07668519765138626, 0.24703852832317352, -0.4182024896144867, -0.4161796271800995, 0.07495534420013428, 0.09105847030878067, 0.08909311145544052, -0.08841247856616974, -0.29131579399108887, -0.0041479021310806274, -0.4009437561035156, 0.4675828218460083, 0.01948612928390503, -0.043223410844802856, -0.022157251834869385, -0.29407280683517456, 0.06257082521915436, -0.1647358387708664, -0.03704432398080826, -0.45419663190841675, -0.3463745713233948, 0.2257574498653412, -0.09803827106952667, -0.3280848264694214, 0.10894078016281128, 0.04993276298046112, -0.0484684593975544, -0.18419070541858673, -0.11135433614253998, -0.3577474057674408, -0.10038051754236221, 0.4271506369113922, 0.11141236871480942, 0.09335022419691086, 0.41882196068763733, 0.07097162306308746, -0.05603785812854767, -0.051734182983636856, -0.3323303461074829, 0.31983768939971924, 0.4999798834323883, 0.07927779108285904, -0.1264846920967102, -0.09169145673513412, -0.12946803867816925, 0.06151958927512169, 0.005082540214061737, 0.08380541950464249, 0.5025809407234192, 0.11147867143154144, 0.49035221338272095, -0.35717275738716125, -0.1906968504190445, 0.1450273096561432, -0.27108487486839294, 0.060222141444683075, 0.24652260541915894, 0.08472482860088348, 0.19245868921279907, 0.03199288249015808, -0.35714179277420044, -0.004226431250572205, -0.5018235445022583, -0.08138447254896164, 0.20570030808448792, -0.19445213675498962, 0.016072895377874374, -0.020938269793987274, -0.036334164440631866, -0.0549202598631382, 0.3727351129055023, 0.2607029676437378, 0.03584756329655647, 0.17435704171657562, -0.5492034554481506, -0.06547049432992935, -0.5835772752761841, 0.12231537699699402, -0.018661487847566605, 0.011072306893765926, -0.09555907547473907, -0.20322483777999878, -0.03099924325942993, -0.018678588792681694, 0.6852757334709167, -0.11613573879003525, 0.20770429074764252, -0.008778107352554798, -0.31869620084762573, -0.1730295717716217, -0.10692214965820312, -0.21785306930541992, -0.19980019330978394, -0.07199063897132874, 0.9042126536369324, -0.45880377292633057, -0.20860296487808228, -0.3814488351345062, -0.0554412417113781, -0.23149645328521729, 0.19156089425086975, -0.12034785747528076, -0.054670751094818115, -0.35777753591537476, 0.09117238223552704, 0.2419976145029068, 0.1592375785112381, -0.14960822463035583, -0.15024901926517487, -0.21767254173755646, -0.18813049793243408, 0.08750579506158829, -0.03708641976118088, 0.4882078170776367, 0.02083476446568966, -0.02261549048125744, 0.026791442185640335, 0.31675654649734497, 0.037363629788160324, 0.6090021133422852, 0.07090303301811218, -0.47275882959365845, 0.13143327832221985, -0.034153204411268234, 0.14112210273742676, 0.26418817043304443, -0.025752030313014984, 0.11847256869077682, -0.24163493514060974, 0.13271793723106384, -0.557197630405426, 0.2628574073314667, -0.03037291206419468, -0.053556811064481735, -0.4110831320285797, 0.16954918205738068, 0.6166679263114929, -0.30266472697257996, -0.04022953659296036, -0.20789948105812073, 0.731418788433075, -0.4164002239704132, 0.33761876821517944, 0.26841962337493896, 0.8262771964073181, 0.08926450461149216, 0.3919637203216553, -0.009356535971164703, -0.17814505100250244, 0.827180027961731, -0.13242937624454498, 0.011329781264066696, -0.32135194540023804, -0.05278283357620239, 0.0022474732249975204, 0.16076621413230896, -0.013946034014225006, -0.14282983541488647, -0.24867793917655945, 0.12876014411449432, 0.022951088845729828, 0.3532176911830902, -0.29135802388191223, 0.20551925897598267, -0.34651538729667664, -0.4076622724533081, -0.15299279987812042, 0.16095882654190063, -0.10909199714660645, 0.155471533536911, 0.05300547182559967, -0.021223636344075203, -0.07871239632368088, -0.11183244735002518, -0.07411213219165802, 0.05625414103269577, -0.05907844007015228, 0.12890559434890747, 0.1377783715724945, -0.11935430765151978, -0.046419139951467514, -0.10406351089477539, 0.6642897725105286, 0.11405619978904724, -0.3280993103981018, -0.004909135401248932, 0.01695159077644348, 0.07599924504756927, -0.1770869642496109, -0.07586178183555603, 0.35089847445487976, -0.003322213888168335, 0.12666869163513184, -0.18324154615402222, -0.04352410137653351, -0.1388791799545288, -0.21851275861263275, -0.12387406826019287, -0.12016606330871582, -0.5096363425254822, -0.13160188496112823, -0.10023681819438934, 0.01894621178507805, -0.3283114731311798, 0.0813882052898407, 0.08156938850879669, -0.15596003830432892, 0.03654131665825844, 0.21959620714187622, -0.08551156520843506, -0.12549623847007751, 0.19364824891090393, 0.11470820009708405, -0.06930815428495407, 0.19624938070774078, -0.20672667026519775, -0.2277095466852188, -0.17785736918449402, 0.2700967490673065, 0.6978937983512878, -0.24245598912239075, 0.31537261605262756, -0.07202515751123428, -0.49213260412216187, -0.1350337564945221, 0.5250371694564819, -0.05128932744264603, -0.12064117938280106, 0.04274778440594673, -0.0731784850358963, -0.3829028010368347, 0.3700292110443115, 0.03694115951657295, 0.34713679552078247, 0.24547678232192993, 0.14172685146331787, 0.031047170981764793, 0.039854612201452255, -0.3247227072715759, 0.010545030236244202, -0.2327176332473755, 0.1673201322555542, -0.11518527567386627, 0.039389993995428085, 0.1593063473701477, -0.2664570212364197, 0.08137723803520203, 0.1536736786365509, -0.166241854429245, -0.2109241783618927, -0.3899342715740204, 0.10129206627607346, 0.1512710452079773, 0.4334546625614166, -0.17443816363811493, 0.1454973667860031, 0.08960188925266266, -0.18640951812267303, 0.33913716673851013, 0.24303695559501648, 0.12249353528022766, 0.10029637068510056, 0.4736723005771637, 0.2507998049259186, 0.14922042191028595, 0.09895835816860199, 0.17879030108451843, -0.04588340222835541, -0.16964201629161835, -0.06989624351263046, -0.4250807762145996, -0.02237652614712715, 0.11381498724222183, 0.21786370873451233, 0.23417767882347107, 0.24823638796806335, -0.07671613246202469, 0.02454402670264244, -0.2541312277317047, 0.059238508343696594, 0.1663549691438675, 0.16842210292816162, 0.006779395509511232, -0.21412016451358795, 0.29975974559783936, 0.21334201097488403, -0.11267141252756119, -0.2178344428539276, 0.3041948080062866, -0.24816693365573883, 0.050305772572755814, 0.17550070583820343, 0.21042779088020325, 0.398707777261734, -0.3618602752685547, 0.02936525270342827, 0.4439436197280884, -0.05227286368608475, 0.24235063791275024, 0.05716855451464653, -0.12329506874084473, 0.13429711759090424, 0.4292412996292114, 0.2898057699203491, 0.1978358030319214, 0.28911280632019043, 0.2025269716978073, 0.38651949167251587, 0.11408879607915878, 0.16408951580524445, 0.5348467826843262, -0.1588226556777954, -0.12396816909313202, 0.03266897797584534, -0.1251227855682373, 0.41070154309272766, 0.08665446192026138, 0.2516050636768341, -0.3918280303478241, -0.6224849820137024, -0.08913088589906693, 0.27840325236320496, -0.31209883093833923, -0.16277562081813812, 0.23014894127845764, -0.07556965202093124, -0.05691209062933922, 0.025061003863811493, -0.1263756901025772, -0.24493096768856049, 0.16242453455924988, -0.024845384061336517, 0.08888708055019379, -0.02511577121913433, -0.165505051612854, -0.06705425679683685, 0.26807498931884766, 0.013728972524404526, 0.08609215170145035, -0.12002061307430267, -0.17574357986450195, -0.10445581376552582, 0.12038353085517883, -0.062358226627111435, 0.001076437532901764, 0.0882212370634079, 0.2489156275987625, 0.08118538558483124, -0.06207706034183502, -0.0003030262887477875, -0.1583002805709839, 0.1272798776626587, 0.01772947981953621, 0.2611207067966461, 0.20045483112335205, -0.011366820894181728, -0.03896074369549751, -0.18717704713344574, 0.10110807418823242, -0.03062468394637108, 0.30909350514411926, 0.014071444049477577, -0.1603596955537796, -0.1205979585647583, -0.011913828551769257, -0.006804607808589935, -0.1408759355545044, 0.03396882861852646, -0.06756044179201126, 0.22527599334716797, -0.20325715839862823, 0.10435926914215088, 0.20450393855571747, 0.2435321807861328, 0.001404106616973877, -0.40935489535331726, -0.14080704748630524, 0.043494924902915955, -0.3474698066711426, 0.13140955567359924, 0.2150866538286209, 0.013744747266173363, 0.26162847876548767, 0.19008386135101318, 0.003427170217037201, 0.0186613816767931, -0.1941366344690323, 0.19111664593219757, 0.10197959840297699, -0.09407414495944977, -0.15184232592582703, -0.019577935338020325, 0.05362381413578987, -0.12713752686977386, 0.12295350432395935, -0.11657019704580307, 0.4907311499118805, 0.2812720537185669, -0.010994803160429, 0.15933498740196228, 0.24374958872795105, -0.11331541836261749, -0.30917394161224365, 0.24932697415351868, 0.14828309416770935, -0.12445077300071716, -0.21383440494537354, -0.1366235762834549, 0.1457044929265976, -0.16995769739151, -0.3982338309288025, -0.29913774132728577, -0.34485024213790894, 0.5003050565719604, -0.02885414846241474, -0.01827087253332138, -0.14970777928829193, 0.33332985639572144, 0.18793225288391113, -0.14533382654190063, -0.23594863712787628, 0.3906552493572235, -0.08889728039503098, -0.10061437636613846, 0.12445001304149628, 0.26556509733200073, -0.08240385353565216, 0.0503392219543457, -0.307228147983551, -0.39657384157180786, 0.691615879535675, 0.0013468284159898758, -0.450590044260025, -0.14094826579093933, 0.29067641496658325, 0.5809944272041321, -0.17349101603031158, -0.7488449811935425, -0.19520056247711182, 0.05467739328742027, -0.11130758374929428, -0.20985177159309387, 0.18796990811824799, -0.17738395929336548, -0.23504391312599182, -0.1803073137998581, 0.2511640787124634, 0.26881834864616394, 0.008932339027523994, 0.339169442653656, -0.22010938823223114 ]
https://github.com/huggingface/datasets/issues/3394
Preserve all feature types when saving a dataset on the Hub with `push_to_hub`
Maybe we can also fix https://github.com/huggingface/datasets/issues/3035 while working on this because, as pointed out in my initial post, `save_to_disk` also saves the `dataset_info.json` file.
Currently, if one of the dataset features is of type `ClassLabel`, saving the dataset with `push_to_hub` and reloading the dataset with `load_dataset` will return the feature of type `Value`. To fix this, we should do something similar to `save_to_disk` (which correctly preserves the types) and not only push the parquet files in `push_to_hub`, but also the dataset `info` (stored in a JSON file).
24
Preserve all feature types when saving a dataset on the Hub with `push_to_hub` Currently, if one of the dataset features is of type `ClassLabel`, saving the dataset with `push_to_hub` and reloading the dataset with `load_dataset` will return the feature of type `Value`. To fix this, we should do something similar to `save_to_disk` (which correctly preserves the types) and not only push the parquet files in `push_to_hub`, but also the dataset `info` (stored in a JSON file). Maybe we can also fix https://github.com/huggingface/datasets/issues/3035 while working on this because, as pointed out in my initial post, `save_to_disk` also saves the `dataset_info.json` file.
[ -0.30212199687957764, -0.26991260051727295, 0.024060819298028946, 0.32323557138442993, 0.31194424629211426, -0.022228296846151352, 0.21661746501922607, 0.3837987780570984, 0.05476507917046547, 0.01188744604587555, -0.38604816794395447, 0.49307504296302795, -0.07360704243183136, 0.6211605668067932, 0.052483413368463516, 0.09899349510669708, 0.2516206204891205, 0.07868456840515137, 0.14690256118774414, -0.15521416068077087, -0.2845311760902405, 0.13133452832698822, 0.1958053559064865, -0.011804148554801941, -0.4609074294567108, -0.09000764042139053, 0.1330183446407318, 0.15888665616512299, -0.13870976865291595, -0.2946496605873108, 0.29946231842041016, 0.12216094136238098, 0.025959502905607224, -0.002774856984615326, -0.00010964023385895416, 0.02351006120443344, 0.20586352050304413, -0.24541601538658142, -0.14255599677562714, -0.10042579472064972, -0.10003909468650818, -0.014454721473157406, 0.05701185017824173, -0.13275423645973206, -0.23665639758110046, 0.16897165775299072, 0.02561531402170658, 0.08714506030082703, 0.17759698629379272, 0.016776006668806076, 0.1536736637353897, 0.06869401782751083, 0.0999162346124649, -0.06964375078678131, 0.42919808626174927, 0.5489188432693481, -0.27611681818962097, -0.07714898884296417, 0.07970668375492096, 0.455208957195282, 0.08606114983558655, 0.20288512110710144, 0.07453641295433044, -0.30399084091186523, 0.3110577166080475, 0.09760262072086334, -0.12249273806810379, -0.136427640914917, 0.08081872761249542, 0.10170036554336548, 0.2503562867641449, -0.42171499133110046, -0.34431228041648865, -0.32585808634757996, -0.11421746015548706, -0.3585386872291565, 0.220852792263031, 0.16550445556640625, 0.1118844747543335, 0.08469441533088684, -0.09925874322652817, -0.48271164298057556, -0.18207597732543945, -0.0531473308801651, -0.009002260863780975, 0.08564652502536774, -0.21518875658512115, 0.02883104234933853, -0.038891907781362534, -0.11373481154441833, 0.0321432389318943, -0.2388230860233307, -0.1958564668893814, -0.16855572164058685, -0.07115782797336578, -0.2829570770263672, -0.05705379694700241, 0.2741914689540863, 0.30139169096946716, 0.14053335785865784, -0.09693963080644608, 0.39327090978622437, -0.17452776432037354, 0.18073764443397522, 0.4851612448692322, -0.004693863447755575, 0.518608033657074, -0.08424170315265656, 0.46355193853378296, 0.11004600673913956, 0.003155577927827835, -0.08430026471614838, 0.204664945602417, 0.4838481545448303, 0.32383015751838684, -0.07903754711151123, 0.4993439316749573, -0.354351669549942, 0.0449046716094017, 0.059837549924850464, 0.30454304814338684, 0.13075672090053558, 0.044553205370903015, 0.3802153170108795, 0.07401498407125473, 0.31654447317123413, -0.13789188861846924, 0.3838388919830322, 0.004623230546712875, -0.1476917415857315, -0.28375765681266785, -0.0596044696867466, 0.0474172942340374, -0.03247328847646713, 0.22407598793506622, -0.24934345483779907, 0.129412442445755, 0.17071989178657532, -0.06841157376766205, -0.03994831070303917, -0.2571168541908264, 0.05585040524601936, 0.0322643481194973, 0.12681028246879578, -0.08579106628894806, 0.20868760347366333, 0.042878758162260056, -0.2128860205411911, -0.3665129542350769, -0.06835366040468216, -0.4375593066215515, -0.19854988157749176, 0.14918220043182373, 0.2027529627084732, -0.03576783090829849, 0.07520045340061188, -0.7787152528762817, 0.2497629076242447, -0.041267044842243195, 0.11815476417541504, -0.04848163574934006, -0.08602535724639893, -0.04491330310702324, -0.2948029339313507, 0.03806379437446594, -0.015691295266151428, -0.11611475050449371, -0.1900411993265152, 0.3519597053527832, -0.17790848016738892, 0.10009210556745529, 0.22749899327754974, -0.12029705196619034, -0.12292473763227463, -0.12242541462182999, 0.3776647448539734, 0.35955771803855896, -0.47971871495246887, -0.23037980496883392, -0.246990367770195, 0.18117381632328033, -0.05977475643157959, -0.06008312851190567, 0.05585271865129471, 0.4553661644458771, -0.20508255064487457, 0.04091117903590202, 0.16948217153549194, -0.15952523052692413, 0.14721041917800903, -0.23954743146896362, -0.07528938353061676, 0.007443949580192566, 0.026031065732240677, -0.02989526465535164, 0.06026293337345123, 0.17222429811954498, 0.4010867178440094, 0.08316688984632492, -0.09496967494487762, 0.25427037477493286, 0.09688597172498703, 0.4945833384990692, 0.1361558437347412, -0.008974777534604073, -0.24425822496414185, -0.6467323303222656, 0.14790016412734985, -0.08666786551475525, -0.08169887959957123, 0.15327799320220947, -0.35439229011535645, -0.1035798117518425, -0.04013326019048691, -0.18673227727413177, -0.0497150756418705, 0.1730327010154724, -0.0727643221616745, -0.34805914759635925, 0.20156006515026093, -0.21985140442848206, 0.20528507232666016, -0.11169986426830292, 0.16462890803813934, -0.44853484630584717, 0.37712910771369934, 0.0810900628566742, -0.35325244069099426, -0.03002253733575344, 0.1372881680727005, 0.2001415491104126, -0.1606147438287735, -0.06751344352960587, 0.2811966836452484, 0.23787212371826172, 0.4205714464187622, 0.0416354201734066, 0.22402064502239227, 0.26908552646636963, -0.09912265837192535, -0.11644145101308823, -0.1270003765821457, 0.1939641833305359, 0.0318412184715271, -0.4412834942340851, 0.3626747131347656, 0.22570516169071198, 0.007577367126941681, -0.07602442800998688, -0.005043798126280308, 0.09492765367031097, 0.020755652338266373, 0.031276434659957886, 0.00325099378824234, -0.3247910737991333, -0.018861491233110428, -0.1049165427684784, 0.06692799925804138, -0.4537513256072998, 0.42376798391342163, 0.8299553990364075, 0.036875028163194656, 0.3571648597717285, 0.06404256075620651, -0.30457133054733276, -0.09605364501476288, 0.2837400734424591, -0.08418065309524536, -0.029611989855766296, 0.13031840324401855, 0.09534179419279099, -0.003949528560042381, 0.02415984682738781, 0.05728786438703537, 0.12956935167312622, 0.09090177714824677, 0.1678229719400406, 0.15141117572784424, 0.26214489340782166, -0.07082950323820114, -0.5340863466262817, 0.38845095038414, -0.0006559668108820915, -0.030714360997080803, -0.21393723785877228, -0.19536016881465912, -0.23795190453529358, 0.2536942958831787, 0.09860724210739136, 0.002665049396455288, -0.4698373079299927, -0.298941433429718, 0.0820365697145462, 0.6632596254348755, -0.2051054686307907, 0.16342739760875702, 0.04678841307759285, 0.438309907913208, -0.02406880259513855, -0.12811027467250824, -0.2210647314786911, -0.1703963726758957, -0.1506044566631317, 0.029333263635635376, 0.1426885426044464, 0.16621631383895874, 0.4332895874977112, -0.023526061326265335, 0.06344911456108093, -0.4498262405395508, -0.12159065902233124, 0.14685848355293274, -0.2993967533111572, 0.17178621888160706, 0.13658583164215088, 0.07593615353107452, -0.12231932580471039, -0.08294851332902908, 0.22246576845645905, -0.41906487941741943, -0.38791611790657043, 0.12433688342571259, 0.06513290107250214, 0.0038594608195126057, -0.04582901671528816, -0.39397895336151123, -0.007222641259431839, -0.49042078852653503, 0.3821241855621338, 0.020234424620866776, 0.008817195892333984, -0.04432785511016846, -0.27184179425239563, -0.07482988387346268, -0.10075102001428604, -0.0739382654428482, -0.4417407512664795, -0.3477030098438263, 0.24540051817893982, -0.13621635735034943, -0.30473703145980835, 0.09745977818965912, 0.09626215696334839, -0.060989607125520706, -0.07838860899209976, -0.07288612425327301, -0.3672955334186554, -0.056679725646972656, 0.37497666478157043, 0.1282464861869812, 0.1047855019569397, 0.41645148396492004, 0.044428762048482895, -0.055431678891181946, -0.051896512508392334, -0.37372612953186035, 0.29693979024887085, 0.5758754014968872, 0.10968776792287827, -0.07041358947753906, -0.05349290370941162, -0.14329615235328674, 0.15895509719848633, 0.05288446322083473, 0.0843999907374382, 0.5121849775314331, 0.12733353674411774, 0.47309476137161255, -0.3484995663166046, -0.15317776799201965, 0.1249425932765007, -0.21593701839447021, 0.06115874648094177, 0.24270397424697876, 0.06854042410850525, 0.022543644532561302, 0.08267468214035034, -0.35332396626472473, -0.07645978033542633, -0.5157454609870911, -0.030211465433239937, 0.14724794030189514, -0.17665067315101624, -0.0013273227959871292, -0.015504084527492523, -0.08988577127456665, -0.051792360842227936, 0.37242263555526733, 0.26729536056518555, -0.03643625229597092, 0.1550726592540741, -0.5637891292572021, -0.07903600484132767, -0.5350407958030701, 0.09699640423059464, -0.07551442086696625, 0.08182873576879501, -0.1486017107963562, -0.16154175996780396, -0.06174638867378235, -0.028803452849388123, 0.652158796787262, -0.3156380355358124, 0.1888756901025772, 0.008065754547715187, -0.23433014750480652, -0.128297820687294, -0.10428926348686218, -0.21991921961307526, -0.14208205044269562, -0.09577593207359314, 0.8305379152297974, -0.5269440412521362, -0.22457969188690186, -0.3632257878780365, -0.03923313692212105, -0.16606318950653076, 0.2107333242893219, -0.026745250448584557, -0.024425307288765907, -0.34318163990974426, 0.1201617419719696, 0.22652600705623627, 0.1253323256969452, -0.1366759091615677, -0.2064959853887558, -0.25822052359580994, -0.13503307104110718, 0.06936965882778168, -0.017092112451791763, 0.5429314970970154, 0.06540853530168533, -0.021988151594996452, -0.09965664148330688, 0.29525524377822876, 0.10646010935306549, 0.6022051572799683, 0.08365169912576675, -0.46879827976226807, 0.16699600219726562, -0.09411748498678207, 0.11530499905347824, 0.23479929566383362, -0.0016879732720553875, 0.07807190716266632, -0.26755985617637634, 0.08996690064668655, -0.4905095100402832, 0.28854069113731384, -0.03479146957397461, -0.03217042610049248, -0.43521061539649963, 0.12917818129062653, 0.5814302563667297, -0.2963879108428955, -0.029384136199951172, -0.09622548520565033, 0.5557972192764282, -0.4526544213294983, 0.3847354054450989, 0.2519129812717438, 0.7695947289466858, 0.062493376433849335, 0.29361778497695923, -0.053478091955184937, -0.1928810328245163, 0.7244350910186768, -0.22880913317203522, -0.015420045703649521, -0.38915103673934937, -0.08663083612918854, -0.020313192158937454, 0.1352953165769577, -0.048205651342868805, -0.1430903524160385, -0.2550613284111023, 0.15225520730018616, 0.025712959468364716, 0.3853265941143036, -0.32467135787010193, 0.23959141969680786, -0.2671675980091095, -0.4265402853488922, -0.1974278837442398, 0.17099681496620178, -0.15619990229606628, 0.052787769585847855, 0.0584760457277298, -0.10957053303718567, -0.12051814794540405, -0.022245129570364952, -0.15869003534317017, 0.08170679956674576, 0.056629326194524765, 0.11971981078386307, 0.09233616292476654, -0.1369623988866806, -0.017229260876774788, -0.14304792881011963, 0.71719890832901, 0.1484774649143219, -0.322846919298172, -0.021437793970108032, -0.02899640053510666, 0.08825471252202988, -0.11637195199728012, -0.13002906739711761, 0.39047005772590637, -0.027845170348882675, 0.10551656037569046, -0.18873730301856995, -0.0640522688627243, -0.16750556230545044, -0.2209905982017517, -0.17970068752765656, -0.10027943551540375, -0.4792942702770233, -0.10693280398845673, -0.07414330542087555, -0.041045404970645905, -0.3374800980091095, 0.09555831551551819, 0.11545506119728088, -0.14568795263767242, 0.14948631823062897, 0.1858067810535431, -0.027531765401363373, -0.08734479546546936, 0.12190286815166473, 0.15706348419189453, 0.01585870236158371, 0.17891201376914978, -0.161301389336586, -0.20040136575698853, -0.23670420050621033, 0.2703453302383423, 0.6755445003509521, -0.2217983603477478, 0.34782475233078003, -0.15364786982536316, -0.49524736404418945, -0.06201830506324768, 0.4634242057800293, -0.0463850274682045, -0.07809396833181381, 0.03695357218384743, -0.1231154203414917, -0.32529810070991516, 0.3804163336753845, -0.010468143969774246, 0.3959217369556427, 0.20324403047561646, 0.02895263209939003, -0.0076073408126831055, 0.036997731775045395, -0.3285309672355652, 0.01792878285050392, -0.2756710946559906, 0.24723586440086365, -0.15255028009414673, -0.0133042111992836, 0.09132570028305054, -0.3427309989929199, 0.0755997821688652, 0.03659634664654732, -0.25403153896331787, -0.21603429317474365, -0.31465455889701843, 0.10452380031347275, 0.14104896783828735, 0.4969581663608551, -0.134883314371109, 0.08904159069061279, 0.02033388800919056, -0.2267126590013504, 0.2741122543811798, 0.1381809413433075, 0.07727562636137009, 0.06847131252288818, 0.5517528653144836, 0.1994633972644806, 0.14825919270515442, 0.17869654297828674, 0.20681482553482056, -0.08267098665237427, -0.23686392605304718, -0.005968566983938217, -0.34236451983451843, -0.05783277750015259, 0.06780144572257996, 0.20489510893821716, 0.23541659116744995, 0.2797115743160248, 0.06354443728923798, -0.026066511869430542, -0.2278253734111786, 0.22050046920776367, 0.19233785569667816, 0.19878658652305603, 0.027919601649045944, -0.13067272305488586, 0.24956026673316956, 0.23322342336177826, -0.09690593183040619, -0.27767589688301086, 0.3788429796695709, -0.18579865992069244, 0.02711602672934532, 0.1568404585123062, 0.2995014488697052, 0.37212300300598145, -0.3213804364204407, 0.06184161454439163, 0.4471113681793213, -0.15957064926624298, 0.3183329701423645, 0.019963674247264862, -0.1382768452167511, 0.1032024547457695, 0.38363200426101685, 0.24073190987110138, 0.12319141626358032, 0.33114397525787354, 0.22477000951766968, 0.3684830665588379, 0.24355453252792358, 0.06250075250864029, 0.4920867085456848, -0.16491010785102844, -0.09252697229385376, 0.010250747203826904, -0.05735529959201813, 0.413217157125473, 0.14635297656059265, 0.24257558584213257, -0.31404945254325867, -0.6604782342910767, -0.15725649893283844, 0.216266468167305, -0.2956417202949524, -0.1159166544675827, 0.10066623985767365, -0.10990530252456665, -0.016719810664653778, 0.004672601819038391, -0.16166672110557556, -0.20483948290348053, 0.11020056903362274, 0.021071359515190125, 0.08894061297178268, -0.06570442020893097, -0.07474140077829361, -0.03372146934270859, 0.20083773136138916, 0.01763897016644478, 0.17806710302829742, -0.20450274646282196, -0.22181889414787292, -0.1313161849975586, 0.14741481840610504, 0.011957522481679916, 0.06967101246118546, 0.04804240167140961, 0.19067370891571045, 0.16515564918518066, -0.08635662496089935, 0.03723656013607979, -0.1580001562833786, 0.09632076323032379, -0.006502032279968262, 0.24864645302295685, 0.2090412676334381, -0.0019382843747735023, -0.06800618767738342, -0.21101905405521393, -0.041542697697877884, 0.0551111176609993, 0.30587634444236755, 0.1408122479915619, -0.19767889380455017, -0.09008023887872696, -0.08262705057859421, -0.045137517154216766, -0.19764907658100128, 0.09992621839046478, -0.051439687609672546, 0.22825658321380615, -0.1783817708492279, 0.11136491596698761, 0.12297938764095306, 0.2879581153392792, -0.054463792592287064, -0.4405428469181061, -0.15906192362308502, 0.08622075617313385, -0.34480735659599304, 0.14602093398571014, 0.19245773553848267, 0.021875707432627678, 0.2792184352874756, 0.2511466145515442, 0.09177906066179276, 0.027070701122283936, -0.1837420016527176, 0.12230156362056732, 0.15242524445056915, 0.004609383642673492, -0.28853839635849, 0.03553444892168045, 0.1733708381652832, -0.0860939770936966, 0.06076978147029877, -0.17309236526489258, 0.4783823788166046, 0.2674824595451355, -0.019067667424678802, 0.1995564103126526, 0.24291479587554932, -0.084719717502594, -0.4204117953777313, 0.25510889291763306, 0.12419066578149796, -0.02525852620601654, -0.24289867281913757, -0.03653573617339134, 0.032609134912490845, -0.29966163635253906, -0.40280652046203613, -0.22638699412345886, -0.2977372705936432, 0.5404525995254517, -0.05279901623725891, 0.005905885249376297, -0.2090691328048706, 0.24562713503837585, 0.1007375419139862, -0.03445407375693321, -0.19389532506465912, 0.36596986651420593, -0.06717337667942047, -0.06358397752046585, 0.12439528107643127, 0.15225957334041595, -0.0899924784898758, 0.04102773219347, -0.32012253999710083, -0.46679264307022095, 0.6164206266403198, 0.036872994154691696, -0.5004853010177612, -0.132700577378273, 0.30705949664115906, 0.5914342403411865, -0.06481970101594925, -0.6515526175498962, -0.156654953956604, 0.07715395092964172, -0.170517235994339, -0.18716946244239807, 0.20613868534564972, -0.13174092769622803, -0.14985986053943634, -0.20317743718624115, 0.17715144157409668, 0.19982662796974182, -0.12298329174518585, 0.2600869834423065, -0.22542664408683777 ]
https://github.com/huggingface/datasets/issues/3392
Dataset viewer issue for `dansbecker/hackernews_hiring_posts`
This issue was fixed by me calling `all_datasets.push_to_hub("hackernews_hiring_posts")`. The previous problems were from calling `all_datasets.save_to_disk` and then pushing with `my_repo.git_add` and `my_repo.push_to_hub`.
## Dataset viewer issue for `dansbecker/hackernews_hiring_posts` **Link:** https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts *short description of the issue* Dataset preview not showing for uploaded DatasetDict. See https://discuss.huggingface.co/t/dataset-preview-not-showing-for-uploaded-datasetdict/12603 Am I the one who added this dataset ? No -> @dansbecker
22
Dataset viewer issue for `dansbecker/hackernews_hiring_posts` ## Dataset viewer issue for `dansbecker/hackernews_hiring_posts` **Link:** https://huggingface.co/datasets/dansbecker/hackernews_hiring_posts *short description of the issue* Dataset preview not showing for uploaded DatasetDict. See https://discuss.huggingface.co/t/dataset-preview-not-showing-for-uploaded-datasetdict/12603 Am I the one who added this dataset ? No -> @dansbecker This issue was fixed by me calling `all_datasets.push_to_hub("hackernews_hiring_posts")`. The previous problems were from calling `all_datasets.save_to_disk` and then pushing with `my_repo.git_add` and `my_repo.push_to_hub`.
[ -0.5134432315826416, 0.15327715873718262, 0.006459388881921768, 0.23788055777549744, 0.008257890120148659, 0.0074706897139549255, 0.2240121215581894, 0.32554057240486145, 0.05234461650252342, 0.09199412167072296, -0.04608042538166046, 0.3024221956729889, -0.025348801165819168, 0.0762418657541275, 0.11390221118927002, 0.25016820430755615, 0.1825876533985138, 0.006821639835834503, -0.16866382956504822, 0.06676795333623886, -0.04229593649506569, 0.05187708139419556, -0.12052083015441895, -0.08308105170726776, -0.2230532467365265, 0.044304609298706055, -0.03183377906680107, 0.018376793712377548, -0.10178565233945847, -0.39427119493484497, 0.3493479788303375, 0.38633254170417786, 0.21442857384681702, 0.5339850783348083, -0.00011252001422690228, 0.24636231362819672, 0.3110193610191345, 0.0796537771821022, -0.4716631770133972, -0.30881577730178833, -0.09156453609466553, -0.4195660352706909, 0.17308785021305084, -0.09141824394464493, -0.31574201583862305, -0.1641465276479721, 0.1966635137796402, -0.10171188414096832, 0.25521042943000793, 0.1723325103521347, 0.2406385838985443, 0.3618878126144409, 0.14699360728263855, -0.29204341769218445, -0.044259361922740936, 0.4592670798301697, -0.3457599878311157, 0.11524328589439392, 0.2274986058473587, 0.4340040981769562, -0.07044947892427444, 0.3127881586551666, 0.15281088650226593, 0.10412928462028503, 0.1301855444908142, -0.07676538825035095, -0.046087995171546936, -0.26759546995162964, 0.22843828797340393, 0.06584258377552032, 0.5412914752960205, -0.18173328042030334, -0.3430238366127014, -0.36268872022628784, 0.1792243868112564, 0.0897170752286911, 0.20972475409507751, 0.005589914508163929, -0.11098866164684296, 0.12774057686328888, -0.2710936367511749, -0.26502227783203125, -0.08466990292072296, 0.16594946384429932, -0.01561509445309639, 0.09709945321083069, -0.31345951557159424, 0.06740957498550415, -0.006968196481466293, -0.14689090847969055, 0.33789700269699097, -0.18610602617263794, -0.20049282908439636, 0.07792330533266068, -0.18736925721168518, -0.10428443551063538, 0.1155034676194191, -0.10142415016889572, 0.04158744961023331, 0.1351526379585266, -0.03982161730527878, 0.26891711354255676, -0.05686531215906143, -0.06084930896759033, 0.33077681064605713, 0.04879137501120567, 0.317658007144928, 0.5985415577888489, 0.4343687891960144, 0.22488896548748016, 0.22094258666038513, 0.012549187988042831, -0.22190622985363007, -0.14159232378005981, -0.20461562275886536, -0.36075982451438904, 0.6048569679260254, -0.2585218548774719, -0.303693562746048, -0.037056080996990204, 0.09107453376054764, -0.17159931361675262, -0.04630138352513313, 0.35278961062431335, -0.13228431344032288, -0.22186768054962158, -0.10176724940538406, 0.40493518114089966, -0.2368854582309723, -0.17589065432548523, -0.28847700357437134, -0.2568662464618683, 0.06480805575847626, 0.04949364811182022, 0.3303057849407196, -0.33224594593048096, 0.13793468475341797, 0.01805422455072403, 0.05716283246874809, -0.1875559240579605, -0.1014571264386177, 0.09528996050357819, -0.349933385848999, 0.14548060297966003, 0.0908079445362091, 0.3295705020427704, 0.11615322530269623, -0.30712011456489563, 0.12247922271490097, 0.30398622155189514, -0.15407592058181763, -0.1981232762336731, -0.3435337543487549, 0.1412564516067505, -0.5179543495178223, -0.07468263804912567, -0.5573961138725281, 0.33359411358833313, -0.12530872225761414, 0.04403585568070412, -0.15040859580039978, -0.03337349742650986, -0.047994695603847504, -0.03788994252681732, 0.30363503098487854, 0.5026244521141052, -0.2498510777950287, -0.2646939754486084, -0.2100684493780136, -0.3339936137199402, 0.09810687601566315, 0.02183801308274269, -0.1727953404188156, 0.10704085230827332, -0.3671717643737793, -0.06349095702171326, 0.28977131843566895, -0.29981306195259094, -0.5156723856925964, 0.19815076887607574, -0.08190654218196869, 0.33401548862457275, -0.045967914164066315, -0.028743060305714607, 0.06374245136976242, -0.26357772946357727, -0.3894387185573578, -0.11785292625427246, 0.3101976811885834, 0.037859268486499786, -0.217209130525589, -0.007154332473874092, 0.026550695300102234, 0.2831825315952301, 0.14419901371002197, 0.11497196555137634, 0.0830327495932579, -0.06930738687515259, 0.23597672581672668, 0.11136648803949356, 0.1688339114189148, -0.04076097905635834, 0.1082906723022461, 0.1981971561908722, 0.038561295717954636, -0.15399038791656494, -0.4570319652557373, 0.21641921997070312, 0.03982120752334595, -0.01804189383983612, -0.1362154334783554, -0.2080817073583603, -0.3114709258079529, 0.061536937952041626, -0.43713727593421936, -0.3112855553627014, 0.17408476769924164, 0.16170312464237213, -0.24837638437747955, 0.23632831871509552, 0.003644648939371109, 0.12949657440185547, -0.22373248636722565, 0.13563920557498932, -0.07263585925102234, 0.3759022057056427, 0.04773596674203873, -0.09402114152908325, -0.0009146854281425476, 0.11368042230606079, 0.21986034512519836, -0.11351686716079712, -0.0727110207080841, 0.23227247595787048, -0.19175970554351807, 0.40146106481552124, 0.44460397958755493, -0.21515609323978424, 0.28042104840278625, -0.36286699771881104, 0.08742723613977432, -0.07259692251682281, -0.06484972685575485, -0.10923188179731369, -0.2952915132045746, -0.041940733790397644, -0.058808546513319016, 0.013346053659915924, -0.22172939777374268, 0.010317379608750343, 0.12059235572814941, 0.10868017375469208, 0.06466307491064072, -0.03450379520654678, 0.22634002566337585, 0.12075430154800415, 0.3179355561733246, -0.12359441816806793, -0.27781662344932556, 0.2446998953819275, -0.03769773617386818, -0.008713845163583755, 0.08704934269189835, 0.19051852822303772, -0.311627596616745, 0.08877237886190414, 0.05037906393408775, 0.17041675746440887, 0.2224990725517273, 0.019682735204696655, 0.16431857645511627, 0.030219141393899918, 0.20238886773586273, -0.21760328114032745, 0.04986017197370529, 0.12023280560970306, -0.13991038501262665, 0.13838033378124237, 0.12468476593494415, -0.05269705131649971, -0.35973963141441345, 0.291961669921875, 0.12880870699882507, 0.28032568097114563, -0.30350953340530396, -0.20078307390213013, -0.17884743213653564, -0.28639447689056396, -0.11019632965326309, -0.08781309425830841, -0.2583277225494385, -0.314435750246048, 0.07017146050930023, 0.2318621724843979, -0.11362475156784058, 0.21796871721744537, 0.017913617193698883, 0.3506786823272705, -0.10957074165344238, 0.29585152864456177, -0.15979763865470886, 0.11996417492628098, -0.15795046091079712, 0.1464783251285553, 0.47057637572288513, 0.040874384343624115, 0.29138681292533875, -0.012924537993967533, 0.2725553512573242, -0.6202499270439148, -0.25916236639022827, -0.048698268830776215, -0.030889391899108887, 0.5329670310020447, -0.26397600769996643, 0.21364456415176392, -0.06276167929172516, 0.011831928975880146, 0.20378461480140686, 0.014130277559161186, -0.15896476805210114, -0.08152514696121216, -0.005582098849117756, -0.07945162802934647, 0.10931484401226044, -0.07316965609788895, -0.3034714460372925, -0.4439842104911804, 0.3641436696052551, 0.10843124985694885, -0.08418770134449005, 0.07599470019340515, -0.03886358439922333, -0.036807846277952194, 0.14454245567321777, -0.0914546549320221, -0.25319355726242065, -0.4080033004283905, 0.40862613916397095, -0.3934931755065918, -0.46221402287483215, 0.20216500759124756, 0.2661653757095337, -0.12186366319656372, -0.24366386234760284, -0.7571808695793152, 0.2925321161746979, -0.12617650628089905, 0.1556650549173355, 0.24317938089370728, -0.2694518268108368, 0.270324170589447, -0.1115141287446022, 0.011343004181981087, -0.09120151400566101, -0.2842428982257843, -0.020130999386310577, -0.2795222997665405, 0.05393248051404953, -0.11511509865522385, -0.061840347945690155, 0.03294941410422325, 0.7642989754676819, 0.45351138710975647, 0.1759280115365982, 0.0901762843132019, -0.08013570308685303, 0.5892646908760071, -0.010892406105995178, -0.44247910380363464, 0.11841575056314468, 0.0075174421072006226, 0.19773180782794952, 0.3139524459838867, 0.227606862783432, -0.0010171188041567802, -0.189300075173378, -0.15843555331230164, -0.3579613268375397, -0.24008123576641083, -0.04601643234491348, -0.3475392758846283, -0.07801274210214615, 0.05107631906867027, 0.22049900889396667, -0.18192614614963531, -0.41468924283981323, -0.18056319653987885, 0.4170045852661133, 0.25834882259368896, -0.025110717862844467, -0.34833458065986633, 0.13994038105010986, -0.5773434638977051, 0.22323426604270935, -0.32145145535469055, 0.12171096354722977, -0.17081885039806366, -0.03137655556201935, 0.2937104105949402, 0.042576298117637634, 0.6171020269393921, -0.052764035761356354, -0.03528633713722229, 0.0017996206879615784, -0.31987443566322327, -0.24561096727848053, -0.13311955332756042, -0.01914672926068306, 0.30562564730644226, -0.07120870053768158, 0.3266933560371399, -0.11715194582939148, 0.014408795163035393, 0.43490105867385864, -0.4206998348236084, -0.07253390550613403, -0.3727651834487915, -0.052657365798950195, -0.06241724640130997, -0.11541726440191269, -0.08308284729719162, -0.08331800252199173, 0.01283811591565609, -0.16370920836925507, -0.04551656171679497, -0.14446422457695007, 0.006924424320459366, 0.06635025143623352, 0.04026709496974945, 0.1518833041191101, 0.24290083348751068, 0.3844558298587799, 0.7008098363876343, 0.1675853729248047, 0.5272552371025085, 0.5969080328941345, 0.19347208738327026, -0.40064817667007446, 0.2737544775009155, -0.3076293170452118, -0.036412425339221954, 0.4369080066680908, -0.04176557436585426, 0.04729270562529564, 0.05390819534659386, 0.16061845421791077, -0.496545672416687, 0.0525146909058094, 0.39940959215164185, -0.03336254507303238, -0.3819078803062439, -0.31288543343544006, 0.4427219331264496, -0.08179571479558945, -0.0552896186709404, 0.303204745054245, -0.002565443515777588, -0.14075732231140137, -0.11566249281167984, -0.2622469961643219, 0.7797159552574158, 0.095955491065979, -0.09175963699817657, 0.1592038869857788, -0.21295152604579926, 0.46235191822052, -0.11489220708608627, -0.06322237104177475, -0.11670638620853424, -0.40559133887290955, -0.017624514177441597, -0.10508771240711212, 0.27505865693092346, 0.005918525159358978, -0.15063942968845367, -0.15183588862419128, 0.14649231731891632, 0.19552680850028992, -0.013826809823513031, 0.1975872665643692, -0.19546063244342804, 0.04836682602763176, -0.056583523750305176, 0.19782154262065887, -0.22780586779117584, 0.403316468000412, 0.04197080805897713, -0.06469501554965973, -0.2720790505409241, 0.03681686520576477, -0.6502907872200012, 0.10166635364294052, 0.19769933819770813, 0.11020763218402863, 0.19080401957035065, -0.4118494987487793, 0.39685776829719543, 0.340302437543869, 0.24147862195968628, 0.014711089432239532, -0.316384881734848, 0.4104369878768921, -0.03551485389471054, 0.10998723655939102, -0.07802366465330124, -0.011550089344382286, 0.15934959053993225, -0.16904619336128235, -0.16140376031398773, 0.0709076002240181, 0.07443509250879288, -0.269184947013855, -0.5768896341323853, 0.1271325796842575, 0.22286628186702728, -0.27481064200401306, -0.04667126014828682, -0.07615381479263306, 0.06358608603477478, -0.29830026626586914, 0.16351938247680664, 0.11562132835388184, 0.06522705405950546, -0.12358937412500381, 0.08478909730911255, -0.2158939391374588, -0.14547768235206604, 0.5096852779388428, 0.128065288066864, -0.5131475925445557, 0.5700638294219971, 0.1550985425710678, -0.27128493785858154, -0.12446708232164383, 0.2544928789138794, 0.15023021399974823, -0.23500365018844604, 0.00840345211327076, -0.1289013773202896, 0.30031973123550415, 0.07987076789140701, 0.13750745356082916, 0.09315904229879379, -0.2896893620491028, -0.14359483122825623, -0.3914894163608551, -0.021568497642874718, 0.0016175583004951477, -0.05861822888255119, 0.3940117061138153, -0.10593333840370178, 0.010133987292647362, 0.13821730017662048, 0.3049602508544922, -0.2801578640937805, 0.07376610487699509, -0.07774494588375092, -0.08047720789909363, 0.0026707518845796585, 0.13011479377746582, 0.14168700575828552, -0.2541882395744324, 0.07615868747234344, 0.16677816212177277, -0.23175697028636932, -0.21200430393218994, 0.033913951367139816, 0.14730623364448547, -0.007682763040065765, -0.1907665878534317, -0.11571447551250458, 0.06806695461273193, 0.1082105040550232, 0.05390572175383568, 0.18595461547374725, 0.10533853620290756, -0.025185920298099518, -0.1259889155626297, 0.5206230878829956, 0.0843581110239029, 0.19609317183494568, 0.1897358000278473, 0.14940401911735535, 0.4189547300338745, 0.059874217957258224, 0.18904782831668854, -0.10407206416130066, 0.03910437971353531, -0.11467769742012024, 0.047590065747499466, 0.09708485752344131, 0.3868686854839325, 0.196027010679245, -0.5128982663154602, 0.18264859914779663, 0.11878269910812378, 0.35894638299942017, 0.25425249338150024, -0.3154491186141968, -0.11069075018167496, 0.20535632967948914, 0.15615954995155334, -0.18665696680545807, 0.07999709248542786, 0.5574004650115967, -0.002611231990158558, 0.010060478001832962, -0.12500080466270447, 0.012584153562784195, 0.15821386873722076, 0.10789363086223602, 0.25594571232795715, 0.38626980781555176, -0.1551225334405899, 0.44574037194252014, 0.10258948802947998, -0.24025806784629822, 0.004406362771987915, 0.13831910490989685, 0.16130858659744263, -0.24697059392929077, 0.5724056959152222, -0.004804521799087524, 0.2909674048423767, 0.02341063693165779, 0.1909276843070984, 0.22396066784858704, -0.495678186416626, 0.19410072267055511, 0.19862434267997742, -0.3189111649990082, 0.022931911051273346, 0.03960179165005684, 0.2546153664588928, -0.2710965573787689, -0.05375578999519348, -0.3555569052696228, 0.03462933003902435, -0.20209988951683044, 0.14702117443084717, -0.27673912048339844, -0.271653950214386, -0.15304280817508698, -0.06934823095798492, -0.16755561530590057, -0.34692883491516113, -0.15165573358535767, 0.050609491765499115, -0.4584875702857971, -0.23530586063861847, 0.18729805946350098, -0.23324263095855713, 0.1466992199420929, -0.09947866201400757, 0.27626833319664, 0.056008752435445786, 0.11590324342250824, 0.27805453538894653, 0.5455621480941772, 0.36513465642929077, 0.220450758934021, 0.2653028070926666, 0.07195595651865005, -0.010937869548797607, -0.13602618873119354, 0.08298125863075256, 0.31622183322906494, 0.09696350246667862, 0.14885585010051727, 0.21689006686210632, 0.18490484356880188, -0.13190250098705292, 0.1179809421300888, 0.18762147426605225, 0.36775994300842285, -0.360893577337265, 0.1742834448814392, -0.5624173879623413, -0.09587929397821426, 0.03956002742052078, -0.3784501850605011, -0.1631436049938202, -0.13617999851703644, 0.21191778779029846, -0.22836047410964966, 0.0027837995439767838, -0.40284183621406555, 0.09717775881290436, 0.1034155935049057, 0.4426823556423187, 0.28016698360443115, 0.03842722624540329, -0.06901843100786209, -0.3417205214500427, -0.536090612411499, 0.3323954939842224, 0.01847107522189617, 0.13175079226493835, 0.08394313603639603, 0.060335516929626465, -0.05561769753694534, 0.19815506041049957, 0.27247703075408936, -0.015142608433961868, -0.016526583582162857, 0.1858406662940979, -0.2500792145729065, -0.007395908236503601, 0.11775417625904083, -0.008531207218766212, -0.04689118266105652, -0.03095129132270813, 0.4102708101272583, 0.05205805227160454, -0.04062433913350105, 0.2243993878364563, 0.0901966243982315, 0.04289836809039116, -0.17580871284008026, 0.21545256674289703, -0.11836051940917969, 0.5262194871902466, 0.0759502425789833, -0.042260684072971344, -0.2967624366283417, -0.4381699562072754, -0.17278358340263367, 0.42153704166412354, -0.033398423343896866, 0.43867674469947815, -0.1764596700668335, -0.3194532096385956, -0.05784640461206436, 0.06326361745595932, -0.12581419944763184, 0.0023661854211241007, -0.12203503400087357, -0.1832941174507141, -0.10535167902708054, -0.010186218656599522, 0.29929378628730774, 0.06959743052721024, -0.017131082713603973, 0.002394791692495346, -0.20004387199878693, -0.2487396001815796, 0.2822030782699585, -0.4662742018699646, -0.006731977686285973, -0.2000575065612793, -0.003040790557861328, -0.05321171134710312, -0.20034143328666687, -0.4542429447174072, 0.08927545696496964, 0.5057337284088135, -0.11742883175611496, 0.3472861647605896, 0.314582884311676, -0.18764595687389374, 0.03215305134654045, -0.0939313992857933, 0.6974711418151855, -0.015203624963760376, -0.1802859753370285, 0.29158514738082886, -0.2546994686126709 ]
https://github.com/huggingface/datasets/issues/3389
Add EDGAR
Datasets are not tracked in this repository anymore. But you can make your own dataset in the huggingface hub
## Adding a Dataset - **Name:** EDGAR Database - **Description:** https://www.sec.gov/edgar/about EDGAR, the Electronic Data Gathering, Analysis, and Retrieval system, is the primary system for companies and others submitting documents under the Securities Act of 1933, the Securities Exchange Act of 1934, the Trust Indenture Act of 1939, and the Investment Company Act of 1940. Containing millions of company and individual filings, EDGAR benefits investors, corporations, and the U.S. economy overall by increasing the efficiency, transparency, and fairness of the securities markets. The system processes about 3,000 filings per day, serves up 3,000 terabytes of data to the public annually, and accommodates 40,000 new filers per year on average. EDGAR® and EDGARLink® are registered trademarks of the SEC. - **Data:** https://www.sec.gov/os/accessing-edgar-data - **Motivation:** Enabling and improving FSI (Financial Services Industry) datasets to increase ease of use Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
19
Add EDGAR ## Adding a Dataset - **Name:** EDGAR Database - **Description:** https://www.sec.gov/edgar/about EDGAR, the Electronic Data Gathering, Analysis, and Retrieval system, is the primary system for companies and others submitting documents under the Securities Act of 1933, the Securities Exchange Act of 1934, the Trust Indenture Act of 1939, and the Investment Company Act of 1940. Containing millions of company and individual filings, EDGAR benefits investors, corporations, and the U.S. economy overall by increasing the efficiency, transparency, and fairness of the securities markets. The system processes about 3,000 filings per day, serves up 3,000 terabytes of data to the public annually, and accommodates 40,000 new filers per year on average. EDGAR® and EDGARLink® are registered trademarks of the SEC. - **Data:** https://www.sec.gov/os/accessing-edgar-data - **Motivation:** Enabling and improving FSI (Financial Services Industry) datasets to increase ease of use Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Datasets are not tracked in this repository anymore. But you can make your own dataset in the huggingface hub
[ -0.18592697381973267, 0.2223253846168518, -0.24022158980369568, -0.11421629786491394, -0.09235113859176636, 0.13227078318595886, 0.3422553241252899, 0.18265676498413086, 0.17673684656620026, 0.05473066121339798, -0.26920846104621887, 0.002920576138421893, 0.03189312294125557, 0.41698333621025085, 0.14233876764774323, 0.10110539197921753, 0.08029738813638687, 0.15035083889961243, 0.16209560632705688, 0.012606687843799591, -0.0951237678527832, -0.001924140378832817, 0.19012843072414398, -0.12235237658023834, -0.010771782137453556, -0.03880101442337036, -0.10392457991838455, -0.043292336165905, -0.3116457462310791, -0.27305763959884644, -0.037242889404296875, 0.21923264861106873, 0.07209388166666031, 0.4534607529640198, -0.00010008904064306989, -0.23529547452926636, 0.0060630179941654205, -0.05458652228116989, -0.4952690601348877, 0.23138290643692017, -0.2330215871334076, -0.24219581484794617, 0.09703274071216583, -0.08780094236135483, -0.008447738364338875, -0.16587896645069122, -0.03251683712005615, -0.464791864156723, 0.48859649896621704, 0.3176451623439789, 0.29646065831184387, 0.12967392802238464, 0.23362936079502106, -0.2924516201019287, -0.01194290816783905, 0.2046588510274887, -0.09333321452140808, -0.08864521980285645, 0.024236049503087997, -0.0880093052983284, -0.06900782138109207, 0.15028910338878632, -0.17824266850948334, 0.04043480008840561, 0.32482773065567017, -0.056197389960289, 0.08942641317844391, -0.03597217798233032, 0.04131451994180679, 0.330086886882782, 0.511533260345459, -0.120228610932827, -0.3746299743652344, -0.1939437985420227, 0.10202360153198242, 0.14409716427326202, -0.05995067209005356, 0.36871641874313354, -0.04844440892338753, 0.04556061327457428, 0.21239227056503296, -0.0399167463183403, -0.19914214313030243, 0.007377933710813522, -0.06634949892759323, -0.12160862982273102, -0.19077380001544952, -0.16659396886825562, 0.33268848061561584, -0.20020176470279694, 0.02152707241475582, -0.03391265124082565, 0.3420308828353882, -0.09918589144945145, -0.127245232462883, -0.05978349968791008, 0.1944718211889267, -0.05862564593553543, 0.23810255527496338, 0.03374429792165756, -0.18885335326194763, -0.030477598309516907, 0.03332732245326042, 0.152906596660614, -0.13817185163497925, 0.1270565241575241, -0.008673138916492462, -0.28329217433929443, 0.19447468221187592, -0.04163388907909393, 0.06552135944366455, -0.01709466055035591, -0.008332017809152603, 0.5321624875068665, -0.41326430439949036, -0.22867155075073242, -0.1540098637342453, -0.046058736741542816, -0.4352684020996094, 0.3464171588420868, 0.20623552799224854, -0.19551020860671997, 0.1981266438961029, 0.3046693503856659, -0.1782546192407608, -0.2382737398147583, -0.16576339304447174, 0.04507330805063248, 0.09624344110488892, -0.17886270582675934, -0.10954083502292633, -0.20449255406856537, -0.10025157034397125, 0.23072974383831024, 0.32150015234947205, -0.06585611402988434, 0.1950947493314743, -0.004433341324329376, -0.30363577604293823, 0.13669158518314362, 0.1586676836013794, -0.15748021006584167, 0.27922114729881287, 0.24318188428878784, 0.04832741990685463, -0.4593106806278229, -0.04947105422616005, -0.2577809691429138, -0.22986289858818054, -0.2518751919269562, 0.009196951985359192, -0.2522914707660675, -0.5370913743972778, 0.1897437870502472, -0.1965867131948471, -0.09879747033119202, 0.14271491765975952, 0.4250752031803131, -0.44583627581596375, -0.08672091364860535, 0.1674829125404358, 0.28817713260650635, 0.009087342768907547, -0.14264880120754242, 0.06658612936735153, 0.40289974212646484, 0.031625282019376755, -0.0237332321703434, -0.5264433026313782, -0.2540765404701233, -0.1257900595664978, -0.05474958196282387, 0.06468215584754944, -0.07086450606584549, -0.007005969062447548, 0.15798111259937286, 0.47216421365737915, -0.14383277297019958, -0.30710455775260925, 0.10397399216890335, -0.2406589537858963, -0.3053550124168396, 0.3329561948776245, 0.21797481179237366, 0.008481346070766449, -0.08458970487117767, -0.08519957959651947, 0.053011298179626465, -0.28142842650413513, -0.12825198471546173, 0.010058261454105377, -0.2339514046907425, -0.44047027826309204, 0.2566121220588684, -0.022337201982736588, 0.024022549390792847, 0.0460444912314415, -0.12173918634653091, 0.035059161484241486, -0.006882857531309128, -0.010675654746592045, 0.050729598850011826, 0.2326517105102539, 0.5835860967636108, -0.06878205388784409, -0.13448140025138855, -0.17219451069831848, -0.22875171899795532, 0.15393972396850586, 0.20228895545005798, 0.06792208552360535, -0.2823883295059204, -0.04069660231471062, 0.023631742224097252, 0.10444961488246918, 0.14053753018379211, 0.3042016625404358, 0.534466564655304, -0.06374679505825043, -0.03335149958729744, -0.2561075985431671, 0.12657418847084045, 0.17540904879570007, 0.03311626985669136, -0.1765509843826294, -0.15188650786876678, -0.03296751528978348, -0.045933205634355545, 0.11389793455600739, 0.3554355800151825, 0.026310455054044724, 0.07930165529251099, 0.2603257894515991, 0.3300756812095642, -0.22593848407268524, -0.05573740601539612, 0.23062002658843994, 0.6791462898254395, -0.08287479728460312, 0.08107766509056091, 0.18952366709709167, 0.017171602696180344, -0.05490078032016754, 0.14120283722877502, -0.4048694372177124, 0.38438647985458374, 0.03546638786792755, -0.07453926652669907, 0.03794644773006439, 0.1527755707502365, 0.24487102031707764, -0.11783067882061005, -0.11484421044588089, -0.21974794566631317, -0.0008335709571838379, -0.0004043113440275192, 0.15175960958003998, -0.02139805443584919, -0.40600019693374634, 0.3366665244102478, 0.21419361233711243, -0.04194367676973343, 0.26215094327926636, 0.0895145833492279, -0.4678305983543396, -0.07317356020212173, 0.3770221471786499, 0.17716380953788757, 0.2826361060142517, 0.4404948651790619, 0.0495845302939415, -0.14308689534664154, 0.09116000682115555, -0.24836072325706482, 0.15325158834457397, 0.14582684636116028, -0.0557238794863224, 0.1273924708366394, 0.22941429913043976, 0.04217858612537384, -0.4741296172142029, -0.3536831736564636, -0.4460447430610657, -0.020778054371476173, -0.07967822253704071, 0.16747400164604187, -0.012022076174616814, -0.39676323533058167, -0.2627885639667511, 0.19552631676197052, 0.25629723072052, -0.14853869378566742, 0.1034705862402916, 0.2555844187736511, -0.1338382363319397, -0.1816416233778, -0.16667068004608154, 0.6424633860588074, -0.19304931163787842, 0.21736161410808563, -0.4133933186531067, -0.21959836781024933, 0.09160400927066803, 0.26717859506607056, 0.2915242612361908, 0.14554177224636078, 0.678969144821167, 0.0042559485882520676, 0.4503284692764282, -0.3773009777069092, -0.4795866012573242, 0.17223088443279266, -0.276380717754364, 0.1771700233221054, 0.14839492738246918, 0.018101319670677185, -0.18458828330039978, -0.42818716168403625, 0.03972768783569336, -0.36374711990356445, -0.03663783520460129, 0.016709912568330765, -0.23400013148784637, -0.03728356212377548, -0.02780146896839142, -0.12890377640724182, -0.1705651581287384, -0.2765853703022003, 0.7804750800132751, -0.010149471461772919, -0.08381868898868561, -0.13861027359962463, -0.3344743549823761, 0.22694094479084015, -0.19666580855846405, 0.7406742572784424, -0.40333038568496704, -0.24507398903369904, 0.23817282915115356, -0.375911146402359, -0.15727296471595764, -0.0003531910479068756, -0.22936773300170898, -0.22345715761184692, -0.17811259627342224, -0.2416699230670929, -0.04201424494385719, -0.1560334861278534, -0.2262512743473053, -0.009004894644021988, -0.06074754148721695, 0.05046510696411133, 0.27981817722320557, -0.30735450983047485, 0.043872952461242676, -0.23602662980556488, -0.06333836168050766, -0.20881348848342896, 0.24817347526550293, -0.1180197224020958, 0.4101807475090027, 0.07559497654438019, 0.26993614435195923, 0.2641718089580536, -0.07171320915222168, 0.1641683280467987, -0.2559328079223633, 0.20061255991458893, -0.04728808254003525, -0.2946976125240326, 0.05140968784689903, 0.010629117488861084, 0.30769437551498413, 0.26156020164489746, 0.23921525478363037, 0.22572247684001923, -0.0870237797498703, 0.22439077496528625, -0.4511580467224121, -0.13397683203220367, 0.07673059403896332, 0.20024940371513367, 0.3638107180595398, 0.014156896620988846, -0.0018523968756198883, -0.1341208815574646, -0.24354708194732666, 0.04746784642338753, 0.0745043009519577, 0.11745968461036682, -0.33180391788482666, 0.12418508529663086, 0.1441032886505127, -0.36371320486068726, 0.3795282244682312, -0.07323199510574341, -0.04928313568234444, -0.2654578685760498, -0.1666516363620758, -0.08580094575881958, 0.19571228325366974, 0.2762967646121979, 0.01039623748511076, -0.34605419635772705, -0.22170476615428925, 0.02148415893316269, -0.44282475113868713, 0.19765371084213257, -0.15123333036899567, -0.22277672588825226, -0.01795550063252449, 0.14012819528579712, -0.22878479957580566, 0.11604869365692139, 0.6363556385040283, 0.08979731798171997, -0.05619065836071968, -0.18393325805664062, -0.008883576840162277, -0.2316892147064209, 0.0030964016914367676, 0.10404162108898163, -0.5183494687080383, 0.06213502213358879, 0.36686909198760986, -0.016836749389767647, 0.022578001022338867, -0.08186855912208557, 0.47523027658462524, 0.1733340322971344, 0.014374664053320885, 0.33574166893959045, -0.07678009569644928, 0.2094181627035141, -0.0523688942193985, 0.6051453351974487, 0.35088083148002625, -0.1819356232881546, -0.11311537027359009, -0.11545079201459885, -0.31737396121025085, 0.2064693719148636, 0.37256109714508057, 0.13985994458198547, 0.16674280166625977, 0.15998362004756927, 0.02746601402759552, -0.035913996398448944, -0.01663397066295147, 0.08513699471950531, 0.06996610015630722, -0.04577543959021568, -0.11577158421278, 0.2737286686897278, 0.2554917633533478, -0.23893699049949646, 0.031168833374977112, 0.33059370517730713, 0.056096889078617096, 0.30852210521698, -0.040282972157001495, 0.9323105812072754, -0.18827278912067413, -0.051660310477018356, 0.428158164024353, -0.06366441398859024, 0.4172818660736084, -0.44316065311431885, -0.03478434681892395, 0.034614648669958115, -0.5194036960601807, -0.16296926140785217, -0.1268593817949295, -0.038583122193813324, -0.0028224848210811615, -0.12745723128318787, 0.12686900794506073, 0.11395370960235596, 0.4289078712463379, -0.01628112979233265, 0.6534842848777771, -0.16368944942951202, -0.1216447502374649, -0.29250872135162354, 0.27506065368652344, 0.07618840038776398, -0.07531371712684631, 0.12590232491493225, -0.15313060581684113, -0.18455323576927185, 0.11019028723239899, -0.4188854694366455, -0.29848942160606384, 0.12565764784812927, 0.04173029959201813, -0.09571090340614319, -0.08678165823221207, -0.1599479615688324, -0.13367430865764618, 0.40664470195770264, -0.06886845827102661, -0.32367339730262756, -0.13890209794044495, 0.10327877849340439, 0.09262729436159134, -0.020558476448059082, -0.09176041185855865, 0.17247070372104645, -0.0946681946516037, 0.11615169793367386, 0.09925985336303711, 0.17747151851654053, -0.23151159286499023, -0.2642129957675934, 0.1303265243768692, 0.08698958158493042, -0.21643489599227905, 0.35911139845848083, 0.06459470093250275, -0.17852069437503815, -0.13900354504585266, 0.2764035165309906, 0.09314563870429993, 0.37892043590545654, 0.07830522209405899, 0.05210604518651962, 0.0573979914188385, -0.3094860017299652, 0.19221138954162598, 0.012803904712200165, 0.21270066499710083, -0.05866874009370804, -0.17395833134651184, -0.22865423560142517, -0.3066650331020355, -0.014555495232343674, 0.09986838698387146, -0.19226104021072388, 0.1573597639799118, -0.195895254611969, -0.32603228092193604, 0.1652701199054718, 0.1321985423564911, 0.38951998949050903, 0.02129874750971794, -0.09333028644323349, 0.1279982626438141, -0.16345945000648499, 0.3042833209037781, -0.06040113791823387, 0.21164348721504211, -0.0168757326900959, 0.18794497847557068, -0.09183579683303833, -0.11097311973571777, -0.49751603603363037, -0.0687730461359024, -0.047742970287799835, -0.06208464503288269, 0.34541770815849304, 0.015436671674251556, -0.030233802273869514, -0.013770506717264652, 0.20610371232032776, -0.09182381629943848, -0.24921318888664246, -0.348747193813324, 0.0625888854265213, 0.09543589502573013, -0.20079189538955688, 0.008661504834890366, -0.10988425463438034, -0.09050647914409637, -0.3530527651309967, -0.27784255146980286, -0.3194548785686493, -0.18580928444862366, 0.0692099779844284, -0.006461395416408777, -0.0032297857105731964, 0.028140254318714142, 0.368338942527771, -0.11285263299942017, 0.02725338563323021, 0.17920593917369843, 0.11901871860027313, 0.13383528590202332, -0.26978185772895813, -0.19138368964195251, -0.15518280863761902, 0.48754021525382996, 0.24247589707374573, -0.1815362274646759, 0.09226810932159424, 0.24896340072155, -0.2451217770576477, 0.41484588384628296, 0.260201632976532, 0.2548034191131592, -0.09913888573646545, 0.1668110340833664, 0.068510040640831, 0.3480619192123413, -0.2178056389093399, 0.005366096738725901, 0.17856049537658691, 0.0601254403591156, 0.2822727859020233, 0.3043476939201355, 0.3006548583507538, 0.03872747719287872, 0.34198105335235596, 0.11183435469865799, -0.09998497366905212, 0.02732996456325054, 0.051154278218746185, 0.20858685672283173, -0.00433368980884552, 0.04303482547402382, 0.39990803599357605, 0.01958230882883072, 0.12837399542331696, 0.11610214412212372, 0.13488242030143738, 0.009980551898479462, -0.01894311234354973, 0.12200814485549927, 0.3660909831523895, 0.10898424685001373, 0.1070825606584549, -0.06325197219848633, -0.04810832440853119, -0.09626855701208115, 0.31020021438598633, 0.5317579507827759, -0.11554815620183945, 0.057631805539131165, -0.4050564765930176, 0.19466468691825867, -0.060101352632045746, 0.06702691316604614, 0.09345541894435883, -0.03638096898794174, 0.03448605537414551, -0.026929546147584915, 0.1391143500804901, -0.16390588879585266, 0.18753620982170105, -0.08101221919059753, 0.24901212751865387, -0.47013434767723083, -0.004359528422355652, 0.2929224371910095, 0.16354158520698547, -0.164621964097023, -0.253618061542511, 0.11391804367303848, 0.029786016792058945, 0.14824914932250977, 0.5049218535423279, 0.11399317532777786, -0.3358188569545746, 0.07417778670787811, 0.08496076613664627, -0.32885462045669556, -0.29610109329223633, -0.28620782494544983, 0.1347373127937317, 0.38971877098083496, -0.07695992290973663, 0.21571221947669983, 0.30689099431037903, -0.19214500486850739, -0.11098682880401611, -0.16448000073432922, 0.14451612532138824, -0.30422863364219666, 0.08622591197490692, 0.1907067894935608, -0.0537923127412796, -0.03351607173681259, -0.06203453987836838, -0.3126353919506073, -0.07917030155658722, 0.2667572498321533, -0.10319143533706665, 0.1102515235543251, -0.010013074614107609, 0.13639305531978607, -0.028305072337388992, 0.11431288719177246, 0.02633269503712654, 0.377149373292923, 0.13614419102668762, -0.22822505235671997, -0.41410690546035767, -0.05593850463628769, 0.15901502966880798, -0.03111616149544716, -0.059545308351516724, 0.024290455505251884, 0.27561184763908386, 0.2538233995437622, -0.07874107360839844, -0.5300810933113098, 0.055444516241550446, 0.10895799845457077, -0.1427416205406189, 0.14534185826778412, 0.11850684881210327, 0.04904919117689133, 0.1253775954246521, -0.1239003837108612, 0.18625110387802124, -0.3504907488822937, 0.2324165403842926, -0.3698734641075134, -0.07192358374595642, -0.22178277373313904, 0.1829179972410202, 0.6724925637245178, -0.10355377197265625, 0.33148568868637085, -0.333231121301651, -0.187131866812706, -0.10044945776462555, 0.027692610397934914, -0.13948123157024384, 0.24907860159873962, 0.2661605477333069, -0.06466813385486603, -0.18107624351978302, 0.12125737965106964, 0.007990858517587185, 0.05052313953638077, -0.04368121922016144, 0.24116964638233185, -0.568003237247467, 0.13952332735061646, -0.1667674481868744, 0.0360192134976387, -0.4207286536693573, 0.020691588521003723, 0.12821602821350098, 0.03502189368009567, 0.23706667125225067, -0.07838169485330582, 0.40099918842315674, -0.030562087893486023, -0.06521249562501907, 0.16216376423835754, 0.04864083230495453, 0.3123895823955536, 0.058762893080711365, -0.25735753774642944, 0.006337888538837433, 0.26760005950927734, 0.044459518045186996, -0.3996395766735077, 0.18808798491954803, -0.15763482451438904, 0.039406221359968185, -0.22408531606197357, 0.05032990872859955, 0.06457410007715225, -0.34069424867630005, -0.18069174885749817, -0.30631881952285767 ]
https://github.com/huggingface/datasets/issues/3385
None batched `with_transform`, `set_transform`
Hi ! Thanks for the suggestion :) It makes sense to me, and it can surely be implemented by wrapping the user's function to make it a batched function. However I'm not a big fan of the inconsistency it would create with `map`: `with_transform` is batched by default while `map` isn't. Is there something you would like to contribute ? I can give you some pointers if you want
**Is your feature request related to a problem? Please describe.** A `torch.utils.data.Dataset.__getitem__` operates on a single example. But 🤗 `Datasets.with_transform` doesn't seem to allow non-batched transform. **Describe the solution you'd like** Have a `batched=True` argument in `Datasets.with_transform` **Describe alternatives you've considered** * Convert a non-batched transform function to batched one myself. * Wrap a 🤗 Dataset with torch Dataset, and add a `__getitem__`. 🙄 * Have `lazy=False` in `Dataset.map`, and returns a `LazyDataset` if `lazy=True`. This way the same `map` interface can be used, and existing code can be updated with one argument change.
69
None batched `with_transform`, `set_transform` **Is your feature request related to a problem? Please describe.** A `torch.utils.data.Dataset.__getitem__` operates on a single example. But 🤗 `Datasets.with_transform` doesn't seem to allow non-batched transform. **Describe the solution you'd like** Have a `batched=True` argument in `Datasets.with_transform` **Describe alternatives you've considered** * Convert a non-batched transform function to batched one myself. * Wrap a 🤗 Dataset with torch Dataset, and add a `__getitem__`. 🙄 * Have `lazy=False` in `Dataset.map`, and returns a `LazyDataset` if `lazy=True`. This way the same `map` interface can be used, and existing code can be updated with one argument change. Hi ! Thanks for the suggestion :) It makes sense to me, and it can surely be implemented by wrapping the user's function to make it a batched function. However I'm not a big fan of the inconsistency it would create with `map`: `with_transform` is batched by default while `map` isn't. Is there something you would like to contribute ? I can give you some pointers if you want
[ -0.4295314848423004, -0.33419913053512573, -0.0814518854022026, -0.24556420743465424, 0.19344930350780487, -0.16203370690345764, 0.45656463503837585, 0.30314406752586365, -0.023818908259272575, 0.027680814266204834, 0.012537430971860886, 0.5297406911849976, -0.36736682057380676, -0.2638857364654541, -0.09919149428606033, -0.06998243927955627, 0.13744795322418213, 0.04998002201318741, -0.4633929431438446, -0.07642939686775208, -0.38025620579719543, -0.1904466301202774, -0.23939569294452667, -0.11239491403102875, 0.012679334729909897, -0.19580046832561493, -0.13892623782157898, -0.1522667407989502, 0.16780459880828857, -0.19602687656879425, 0.2733933627605438, 0.262382835149765, -0.014435376971960068, 0.4168473184108734, -0.00010669134644558653, -0.05447307229042053, 0.12361733615398407, -0.22568176686763763, -0.23364639282226562, -0.16474629938602448, -0.01779843308031559, -0.30549681186676025, -0.10702575743198395, -0.370015025138855, -0.24219390749931335, -0.23966509103775024, 0.24784938991069794, -0.5049319267272949, 0.2980461120605469, 0.16069431602954865, 0.2246580570936203, 0.1439061164855957, -0.4014171063899994, -0.23714596033096313, 0.09183380007743835, 0.30268603563308716, -0.04243587702512741, -0.11517146229743958, 0.5453512668609619, 0.18506355583667755, -0.17233961820602417, 0.19997957348823547, -0.28458771109580994, -0.19046570360660553, 0.4325430691242218, -0.10198818147182465, -0.3055565655231476, -0.21496713161468506, -0.12688958644866943, 0.16124507784843445, 0.15345227718353271, -0.21257898211479187, -0.37961989641189575, -0.38157883286476135, -0.07172595709562302, 0.14312459528446198, 0.025443024933338165, 0.06863870471715927, -0.15927600860595703, 0.06327375769615173, -0.480879545211792, -0.13084283471107483, -0.034029167145490646, 0.13720634579658508, 0.1465456336736679, 0.15804196894168854, 0.15475082397460938, 0.1549513190984726, -0.06482906639575958, -0.22937799990177155, 0.3853507339954376, -0.09206381440162659, 0.0414445623755455, 0.3409324884414673, -0.11964240670204163, -0.08385990560054779, 0.149883434176445, 0.06335575878620148, 0.30096006393432617, 0.15600374341011047, 0.08776501566171646, 0.13101211190223694, -0.06936343014240265, 0.08611761033535004, 0.11798560619354248, 0.1199110597372055, 0.06829331815242767, 0.1757199764251709, 0.26623696088790894, -0.2950575351715088, 0.1473178267478943, 0.10026117414236069, 0.11296085268259048, -0.2193232774734497, 0.01588023081421852, 0.4368097186088562, 0.08666952699422836, 0.16663844883441925, 0.1539120078086853, -0.5068199634552002, 0.22708213329315186, -0.10057203471660614, -0.1006753146648407, 0.4478544592857361, 0.0012472020462155342, 0.13761547207832336, 0.2117699831724167, -0.01718493551015854, 0.10061728209257126, -0.23180340230464935, -0.05485851317644119, -0.09221701323986053, -0.2538592219352722, -0.16537350416183472, 0.16962969303131104, -0.08371242880821228, 0.10178065299987793, 0.19721250236034393, -0.09623558819293976, 0.5433042645454407, 0.05169444531202316, -0.24063464999198914, 0.5913309454917908, -0.108319953083992, -0.02857169136404991, 0.12311507016420364, 0.12901589274406433, 0.36563342809677124, -0.3838832974433899, 0.3380700945854187, -0.29611900448799133, -0.30636897683143616, 0.07601955533027649, 0.2178756147623062, -0.1889040321111679, 0.011016052216291428, -0.07593042403459549, 0.42687833309173584, 0.0830703154206276, -0.198463574051857, 0.22818221151828766, -0.12153320014476776, -0.04823454096913338, -0.37066224217414856, -0.005022913217544556, 0.18212242424488068, -0.24692337214946747, -0.27697354555130005, 0.1671149730682373, 0.024016721174120903, -0.06376319378614426, 0.1491275429725647, -0.34131601452827454, 0.1516077220439911, -0.3233616352081299, -0.07627512514591217, 0.547712504863739, -0.21084704995155334, -0.19005121290683746, -0.010164596140384674, -0.03318384289741516, 0.046374671161174774, 0.2119169533252716, 0.13621753454208374, 0.4624435603618622, -0.17624571919441223, 0.15421661734580994, 0.4544440507888794, -0.13169746100902557, 0.16734112799167633, -0.05788761004805565, -0.39021146297454834, 0.3227297067642212, -0.06622232496738434, 0.15164868533611298, 0.17549549043178558, -0.01880808174610138, -0.23799006640911102, 0.10690134763717651, -0.2507733702659607, 0.14576506614685059, 0.021707981824874878, 0.06763593852519989, 0.000037550926208496094, -0.018349539488554, -0.10469269752502441, -0.5269613862037659, 0.16049137711524963, 0.029047060757875443, -0.09937287867069244, 0.045736730098724365, -0.3848363161087036, 0.29506954550743103, -0.15396490693092346, 0.03756844252347946, -0.1164778620004654, 0.11323019862174988, 0.09263411909341812, -0.17901459336280823, -0.2803536057472229, -0.2145882397890091, 0.009957026690244675, 0.2337259203195572, -0.12314323335886002, -0.2837448716163635, -0.12699531018733978, 0.14933863282203674, -0.326816201210022, -0.05815091356635094, -0.11793718487024307, 0.20907562971115112, -0.1946781426668167, -0.0604294091463089, 0.25122469663619995, -0.3445850908756256, 0.17786657810211182, -0.29889726638793945, 0.261914998292923, 0.038360729813575745, 0.02900834009051323, 0.0710243284702301, 0.2122018188238144, 0.056565623730421066, -0.10341383516788483, -0.6068914532661438, 0.6915944218635559, 0.13104064762592316, 0.38544389605522156, -0.0198482945561409, 0.11541687697172165, 0.16841785609722137, -0.21711944043636322, -0.23172399401664734, -0.19692769646644592, 0.006505098193883896, -0.007611410692334175, 0.1353653222322464, 0.02439635805785656, -0.2481580525636673, 0.09629204869270325, 0.3899382948875427, 0.26003220677375793, 0.31428125500679016, 0.03589214012026787, -0.07289396971464157, 0.00518537312746048, 0.12007100135087967, -0.279188334941864, 0.5108337998390198, 0.43318381905555725, -0.03255936875939369, -0.17444051802158356, 0.5095741152763367, 0.06586030125617981, 0.241051584482193, -0.14306235313415527, -0.0918448269367218, -0.03796493262052536, 0.28604280948638916, -0.009200123138725758, -0.04982051998376846, -0.3717619478702545, 0.028633804991841316, -0.17757263779640198, -0.23617467284202576, -0.10589975118637085, -0.09669464081525803, -0.027531739324331284, -0.293240487575531, 0.0006645293906331062, -0.04688924923539162, -0.17247818410396576, 0.1142423003911972, 0.1438523381948471, -0.27683043479919434, 0.5391349792480469, 0.027142509818077087, 0.39537620544433594, -0.018801752477884293, -0.36749887466430664, -0.28272318840026855, -0.02597728557884693, 0.009654540568590164, 0.11170481145381927, -0.18052420020103455, -0.3304969370365143, 0.4823623597621918, 0.20498916506767273, 0.11762861907482147, -0.3233048617839813, 0.038514383137226105, 0.09053321182727814, -0.030761048197746277, 0.12095434963703156, 0.4495733976364136, 0.044039975851774216, 0.31049567461013794, -0.24330349266529083, 0.2382216900587082, -0.35685402154922485, 0.04917854070663452, -0.2768251597881317, -0.10347633808851242, 0.18475337326526642, -0.2121962308883667, -0.18868526816368103, -0.13002552092075348, -0.5442468523979187, 0.13918337225914001, -0.22927547991275787, 0.21415813267230988, -0.12760907411575317, 0.18423442542552948, -0.06547920405864716, 0.1506119668483734, 0.053752362728118896, 0.06496754288673401, -0.29526379704475403, 0.4660152792930603, -0.24863389134407043, -0.1335112452507019, -0.2413093000650406, -0.16537213325500488, -0.20631596446037292, 0.5592972636222839, -0.019030194729566574, -0.0011178720742464066, -0.11680738627910614, 0.5583901405334473, -0.11976906657218933, 0.17483921349048615, 0.33250686526298523, 0.1829005926847458, -0.20599526166915894, -0.2500992715358734, -0.04032125696539879, 0.015263840556144714, 0.05050390958786011, 0.07528474926948547, 0.3420201241970062, 0.2642486095428467, 0.2524828016757965, 0.9602748155593872, 0.05425190553069115, -0.38797131180763245, 0.005288396030664444, -0.07084798067808151, 0.15961799025535583, 0.06172832101583481, -0.535717785358429, -0.01169604156166315, 0.016613125801086426, 0.15804247558116913, 0.16201864182949066, -0.13454386591911316, -0.26734665036201477, -0.01214875653386116, -0.322947233915329, -0.18064963817596436, -0.19481028616428375, 0.5020338892936707, -0.3759872317314148, 0.2039046585559845, -0.19774240255355835, 0.18631771206855774, -0.4251638352870941, 0.03483167290687561, 0.16857010126113892, -0.1082897037267685, 0.34629809856414795, -0.08159231394529343, -0.006451543420553207, 0.09352393448352814, -0.27909013628959656, 0.3911327123641968, 0.027494074776768684, 0.19933335483074188, -0.039223846048116684, -0.16752001643180847, -0.09710276126861572, 0.03873457759618759, 0.8057711720466614, -0.22512982785701752, -0.07937955856323242, 0.05905191972851753, -0.17770104110240936, -0.3262520730495453, -0.012063134461641312, -0.02885298803448677, 0.1488979309797287, 0.2653263211250305, 0.3597470223903656, -0.11279967427253723, -0.2859248220920563, -0.10503922402858734, 0.01492090243846178, -0.1698615700006485, -0.07645545154809952, 0.12571090459823608, -0.03750164806842804, -0.2610754668712616, 0.23138415813446045, 0.17745035886764526, -0.2077101618051529, -0.09749030321836472, -0.10360103845596313, -0.4231085181236267, 0.12332313507795334, 0.14542536437511444, -0.2051394283771515, 0.04843708127737045, 0.06915096938610077, 0.0330364815890789, 0.020061401650309563, 0.20305469632148743, 0.11854615807533264, 0.12080295383930206, -0.15758995711803436, -0.11557050049304962, -0.19947150349617004, -0.02029908075928688, 0.32506459951400757, 0.3206857442855835, -0.03503149002790451, 0.2576957941055298, -0.048910126090049744, 0.11945635080337524, -0.20261430740356445, -0.1528928130865097, 0.08737270534038544, -0.15264244377613068, -0.4054560959339142, -0.579686164855957, 0.25480467081069946, 0.28607210516929626, -0.2733597755432129, 0.2686944007873535, -0.4227360486984253, -0.56279057264328, 0.5058531761169434, 0.4064010679721832, 0.9796887636184692, 0.16648441553115845, 0.2344917356967926, -0.047451332211494446, 0.07232218980789185, 0.23492884635925293, -0.10806714743375778, 0.009863415732979774, -0.1893489509820938, -0.33882343769073486, -0.13792648911476135, -0.13808497786521912, 0.07144355028867722, 0.19663040339946747, -0.5177468657493591, 0.30366280674934387, -0.2240801602602005, 0.2181956022977829, -0.07673028856515884, 0.07210614532232285, 0.014963408932089806, -0.4111934304237366, 0.12111639231443405, 0.1668592095375061, 0.05202988162636757, 0.0668288916349411, 0.005983652547001839, -0.18081821501255035, -0.03642985224723816, -0.17640508711338043, -0.1973521113395691, -0.055381886661052704, -0.40962719917297363, 0.20418787002563477, -0.27470242977142334, -0.22918769717216492, 0.2709033191204071, 0.245027095079422, 0.12213045358657837, 0.1281338334083557, -0.024564215913414955, 0.12055425345897675, 0.47719433903694153, 0.4419170320034027, -0.18924257159233093, -0.11076144874095917, 0.4512732923030853, 0.11855035275220871, 0.04760665446519852, 0.20682144165039062, 0.018980685621500015, -0.12406551837921143, -0.3792591691017151, 0.05023479461669922, 0.01809527352452278, -0.3983488082885742, -0.19093820452690125, 0.1302221715450287, 0.1814611703157425, -0.14114098250865936, 0.13314548134803772, 0.1660134196281433, 0.03998642787337303, 0.5278527140617371, -0.011610735207796097, -0.07170833647251129, -0.01802925020456314, 0.5423622131347656, 0.21225690841674805, -0.22342249751091003, 0.2645743489265442, -0.04569430276751518, -0.25264430046081543, -0.28649914264678955, 0.16269835829734802, 0.30426183342933655, -0.4171225428581238, 0.3503537178039551, -0.16440504789352417, 0.03749886155128479, 0.0011794266756623983, 0.2650030851364136, -0.06945698708295822, 0.1463862508535385, -0.3619965612888336, 0.05214432626962662, -0.2687901258468628, 0.14168240129947662, 0.20515231788158417, 0.3461747169494629, 0.007852833718061447, 0.09491944313049316, 0.2333235740661621, 0.14563171565532684, -0.45348602533340454, -0.19947077333927155, 0.15674340724945068, 0.27778637409210205, 0.030596144497394562, 0.22159472107887268, -0.1667422354221344, 0.010942382737994194, 0.06819720566272736, -0.04856082797050476, -0.17185916006565094, -0.24498063325881958, -0.2608172297477722, 0.14957812428474426, -0.13056454062461853, 0.2838544249534607, -0.1769036501646042, -0.12871259450912476, -0.0051663946360349655, -0.30645039677619934, 0.20581558346748352, 0.3063786029815674, -0.03788082301616669, 0.3182393014431, 0.21378648281097412, 0.14886663854122162, -0.07501799613237381, 0.1623832881450653, -0.025853559374809265, -0.24567122757434845, -0.09055376797914505, 0.23617656528949738, -0.18292438983917236, -0.2301763892173767, 0.13362076878547668, 0.13823840022087097, 0.39764267206192017, 0.43854764103889465, 0.022723432630300522, 0.24610558152198792, 0.004587098956108093, 0.17030882835388184, 0.14529705047607422, 0.08274463564157486, -0.24878132343292236, 0.012877782806754112, 0.38096144795417786, 0.2653128504753113, -0.31752878427505493, 0.02649874798953533, 0.008613990619778633, -0.11996544152498245, 0.3338319659233093, 0.22456753253936768, -0.13927863538265228, -0.07870475202798843, 0.11194802075624466, -0.1132950559258461, 0.38556599617004395, -0.31076765060424805, 0.28831297159194946, 0.41106605529785156, 0.1507863998413086, -0.19843070209026337, 0.3002699911594391, 0.1840612292289734, 0.47491100430488586, 0.30149856209754944, 0.019799090921878815, 0.49323680996894836, 0.42932751774787903, -0.16183319687843323, 0.280031681060791, -0.32949844002723694, 0.05394314229488373, -0.10116276144981384, 0.14572545886039734, 0.2844058871269226, 0.12245737016201019, 0.18204087018966675, -0.06601689010858536, -0.38487792015075684, 0.1258668452501297, 0.43541425466537476, -0.0019041858613491058, -0.032270729541778564, -0.20716409385204315, 0.006279811263084412, -0.10988625884056091, -0.12898285686969757, -0.10489723086357117, -0.01873818039894104, 0.440877765417099, 0.14470446109771729, 0.34409940242767334, 0.05969361960887909, 0.1960250735282898, -0.08816147595643997, 0.3728542923927307, -0.19543981552124023, -0.22061888873577118, 0.008748121559619904, -0.0019894838333129883, 0.09997369349002838, 0.5693269968032837, 0.1697332113981247, 0.40584796667099, -0.1825144737958908, 0.2830292582511902, -0.24600674211978912, -0.09213083237409592, -0.369103342294693, 0.06274992972612381, -0.2352348268032074, -0.09624689817428589, 0.19331525266170502, 0.23260170221328735, -0.17506401240825653, 0.30617445707321167, -0.17037564516067505, -0.18065229058265686, -0.15190504491329193, 0.35736504197120667, 0.3389046788215637, -0.402030348777771, 0.12633788585662842, -0.21610534191131592, -0.004470273852348328, -0.15322579443454742, 0.3877575993537903, -0.2608049213886261, 0.15729784965515137, -0.0109543576836586, 0.12332485616207123, 0.07635415345430374, 0.18640495836734772, -0.07917584478855133, 0.11555912345647812, -0.07154810428619385, -0.040529780089855194, -0.1668330281972885, -0.20329734683036804, 0.16780389845371246, 0.17831222712993622, -0.0528843067586422, -0.16743335127830505, 0.1508949249982834, -0.04920987784862518, -0.0875457376241684, -0.21923920512199402, -0.05320678651332855, 0.6068761348724365, -0.22132420539855957, -0.1320449411869049, -0.2772653102874756, 0.23698927462100983, 0.2467440664768219, -0.2677799463272095, -0.11124065518379211, 0.11508287489414215, 0.1758444905281067, -0.2934876084327698, -0.24907460808753967, 0.41101983189582825, 0.040477294474840164, 0.6535289287567139, 0.07305000722408295, 0.11144983023405075, -0.16935995221138, 0.29884836077690125, -0.08747188746929169, 0.04666035994887352, -0.3179549276828766, 0.018885914236307144, 0.2508712708950043, 0.014326993376016617, -0.22430846095085144, -0.22915031015872955, -0.1598740667104721, 0.03492167964577675, 0.14173763990402222, 0.26807940006256104, -0.21886835992336273, 0.2249874621629715, -0.17989195883274078, -0.15041615068912506, -0.26707956194877625, 0.2849118113517761, -0.09464704990386963, 0.06890869140625, -0.413648784160614, -0.2767500579357147, 0.5885536074638367, -0.39243191480636597, -0.4034227132797241, -0.27602294087409973, 0.15122494101524353, -0.08514673262834549, 0.17410562932491302, -0.2394292950630188, -0.22443887591362, 0.3960988521575928, -0.021901793777942657, -0.022962726652622223, 0.1469130963087082, 0.0037389895878732204, -0.08405975997447968, -0.22345460951328278, 0.37227073311805725, 0.06761609017848969, -0.15754860639572144, -0.24201112985610962, -0.34484201669692993 ]
https://github.com/huggingface/datasets/issues/3385
None batched `with_transform`, `set_transform`
Hi @lhoestq , Sorry I missed your reply. I would love to contribute. But I don't know which solution would be the best for this repo. > However I'm not a big fan of the inconsistency it would create with map: with_transform is batched by default while map isn't. I agree. What do you think about the alternative solutions? > * Convert a non-batched transform function to batched one myself. This won't be able to use torch loader multi-worker. > * Wrap a 🤗 Dataset with torch Dataset, and add a __getitem__. 🙄 This is actually pretty simple. ```python import torch class LazyMapTorchDataset(torch.utils.data.Dataset): def __init__(self, ds, fn): self.ds = ds self.fn = fn def __getitem__(self, i): return self.fn(self.ds[i]) d = [{1:2, 2:3}, {1:3, 2:4}] ds = LazyMapTorchDataset(d, lambda x:{k:v*2 for k,v in x.items()}) for i in range(2): print(f'before {d[i]}') print(f'after {ds[i]}') ``` ``` before {1: 2, 2: 3} after {1: 4, 2: 6} before {1: 3, 2: 4} after {1: 6, 2: 8} ``` But this requires converting data to torch tensor myself. And this is really similar to `.map()`, why not just use it? So I have the next solution. > * Have lazy=False in Dataset.map, and returns a LazyDataset if lazy=True. This way the same map interface can be used, and existing code can be updated with one argument change. I think I like this solution best. Because `.with_transform` is entangled with `.with_format`, so seems more flexible to modify the `.map` than to modify `.with_transform`. The usage looks nice, too. ```python # lazy, one to one, can be parallelized via torch loader, no need to set `num_worker` beforehand. dataset = dataset.map(fn, lazy=True, batched=False) # collate_fn dataloader = Dataloader(dataset.with_format('torch'), collate_fn=collate_fn, num_workers=...) ``` There are some minor decisions like whether a lazy map should be allowed before another map, but I think we can work it out later. The implementation can probably borrow from `IterableDataset`.
**Is your feature request related to a problem? Please describe.** A `torch.utils.data.Dataset.__getitem__` operates on a single example. But 🤗 `Datasets.with_transform` doesn't seem to allow non-batched transform. **Describe the solution you'd like** Have a `batched=True` argument in `Datasets.with_transform` **Describe alternatives you've considered** * Convert a non-batched transform function to batched one myself. * Wrap a 🤗 Dataset with torch Dataset, and add a `__getitem__`. 🙄 * Have `lazy=False` in `Dataset.map`, and returns a `LazyDataset` if `lazy=True`. This way the same `map` interface can be used, and existing code can be updated with one argument change.
315
None batched `with_transform`, `set_transform` **Is your feature request related to a problem? Please describe.** A `torch.utils.data.Dataset.__getitem__` operates on a single example. But 🤗 `Datasets.with_transform` doesn't seem to allow non-batched transform. **Describe the solution you'd like** Have a `batched=True` argument in `Datasets.with_transform` **Describe alternatives you've considered** * Convert a non-batched transform function to batched one myself. * Wrap a 🤗 Dataset with torch Dataset, and add a `__getitem__`. 🙄 * Have `lazy=False` in `Dataset.map`, and returns a `LazyDataset` if `lazy=True`. This way the same `map` interface can be used, and existing code can be updated with one argument change. Hi @lhoestq , Sorry I missed your reply. I would love to contribute. But I don't know which solution would be the best for this repo. > However I'm not a big fan of the inconsistency it would create with map: with_transform is batched by default while map isn't. I agree. What do you think about the alternative solutions? > * Convert a non-batched transform function to batched one myself. This won't be able to use torch loader multi-worker. > * Wrap a 🤗 Dataset with torch Dataset, and add a __getitem__. 🙄 This is actually pretty simple. ```python import torch class LazyMapTorchDataset(torch.utils.data.Dataset): def __init__(self, ds, fn): self.ds = ds self.fn = fn def __getitem__(self, i): return self.fn(self.ds[i]) d = [{1:2, 2:3}, {1:3, 2:4}] ds = LazyMapTorchDataset(d, lambda x:{k:v*2 for k,v in x.items()}) for i in range(2): print(f'before {d[i]}') print(f'after {ds[i]}') ``` ``` before {1: 2, 2: 3} after {1: 4, 2: 6} before {1: 3, 2: 4} after {1: 6, 2: 8} ``` But this requires converting data to torch tensor myself. And this is really similar to `.map()`, why not just use it? So I have the next solution. > * Have lazy=False in Dataset.map, and returns a LazyDataset if lazy=True. This way the same map interface can be used, and existing code can be updated with one argument change. I think I like this solution best. Because `.with_transform` is entangled with `.with_format`, so seems more flexible to modify the `.map` than to modify `.with_transform`. The usage looks nice, too. ```python # lazy, one to one, can be parallelized via torch loader, no need to set `num_worker` beforehand. dataset = dataset.map(fn, lazy=True, batched=False) # collate_fn dataloader = Dataloader(dataset.with_format('torch'), collate_fn=collate_fn, num_workers=...) ``` There are some minor decisions like whether a lazy map should be allowed before another map, but I think we can work it out later. The implementation can probably borrow from `IterableDataset`.
[ -0.47112321853637695, -0.3246147632598877, -0.05496064946055412, -0.19556580483913422, 0.1590396910905838, -0.10227301716804504, 0.6502957940101624, 0.3004762530326843, 0.028886694461107254, 0.03065851330757141, -0.08581333607435226, 0.6519109606742859, -0.2961895763874054, -0.35717347264289856, -0.07411018013954163, -0.03106927126646042, 0.09264279901981354, -0.029514536261558533, -0.4197264611721039, -0.11264779418706894, -0.34536707401275635, -0.11543373763561249, -0.22413727641105652, -0.196788027882576, -0.016728471964597702, -0.11268021911382675, -0.23135700821876526, -0.054355889558792114, 0.2294270247220993, -0.1245451420545578, 0.42212721705436707, 0.32839304208755493, 0.06118068844079971, 0.5336275100708008, -0.00010717644909163937, 0.06955046951770782, 0.12525156140327454, -0.22037695348262787, -0.22372086346149445, -0.2557750940322876, -0.027765406295657158, -0.3834761083126068, -0.038943976163864136, -0.34867528080940247, -0.272368848323822, -0.11584413051605225, 0.20678214728832245, -0.48930492997169495, 0.310870885848999, 0.18379850685596466, 0.19460736215114594, 0.18894502520561218, -0.3023170232772827, -0.24165061116218567, 0.13383449614048004, 0.10120672732591629, -0.028041742742061615, 0.09608645737171173, 0.6349207162857056, 0.13555525243282318, -0.20056867599487305, 0.243267223238945, -0.301134318113327, -0.031633567065000534, 0.30709728598594666, -0.0675857663154602, -0.09943080693483353, -0.2049395889043808, -0.10955124348402023, 0.194891095161438, 0.09138891100883484, -0.14530214667320251, -0.3808384835720062, -0.42554980516433716, -0.08258268982172012, 0.19410188496112823, -0.0025774314999580383, 0.1834040731191635, -0.15526904165744781, 0.012939466163516045, -0.5211719870567322, -0.06100254878401756, -0.020580410957336426, 0.15678420662879944, 0.10770690441131592, 0.24665792286396027, 0.08796876668930054, 0.1857108473777771, -0.07057668268680573, -0.11104746162891388, 0.43202850222587585, -0.08061777055263519, 0.15124788880348206, 0.29294919967651367, -0.20763500034809113, -0.11330822855234146, 0.14049778878688812, -0.09498249739408493, 0.23750481009483337, 0.1793379783630371, 0.16630761325359344, 0.10280799865722656, -0.1340150237083435, 0.07473678886890411, 0.14858084917068481, 0.13368360698223114, -0.03554270416498184, 0.18380865454673767, 0.23351944983005524, -0.15157847106456757, 0.16804257035255432, 0.1315317153930664, 0.07105626910924911, -0.231755793094635, 0.05773451551795006, 0.48729056119918823, 0.16830073297023773, 0.1792839765548706, -0.013063190504908562, -0.5947455763816833, 0.0806807354092598, -0.19592133164405823, -0.18049311637878418, 0.38483482599258423, -0.1408480852842331, 0.32352957129478455, 0.1904083490371704, 0.10578162968158722, 0.053578585386276245, -0.17740358412265778, -0.07824666053056717, -0.12671329081058502, -0.2070499062538147, -0.14705529808998108, 0.23584477603435516, -0.12731191515922546, 0.1955173760652542, 0.13080421090126038, -0.003226242959499359, 0.4936841130256653, 0.14199835062026978, -0.18296365439891815, 0.4374270737171173, -0.08588728308677673, 0.08540455996990204, 0.11486738175153732, 0.15355661511421204, 0.328830361366272, -0.3398994505405426, 0.35720470547676086, -0.4203703999519348, -0.3689236044883728, 0.09004540741443634, 0.2018880397081375, -0.12769083678722382, -0.018455885350704193, -0.2811024785041809, 0.26651063561439514, 0.21464064717292786, -0.05524006858468056, 0.2142358124256134, -0.13001395761966705, -0.11240944266319275, -0.3192116320133209, -0.08927164226770401, 0.1612410694360733, -0.09863901138305664, -0.2350441962480545, 0.2002989947795868, 0.06351760774850845, 0.0013540089130401611, 0.10292939841747284, -0.3248063623905182, 0.14302796125411987, -0.3347874581813812, -0.17822448909282684, 0.4257621169090271, -0.3232332766056061, -0.21952612698078156, 0.1291208267211914, -0.059497565031051636, 0.07192359119653702, 0.24873268604278564, 0.06663339585065842, 0.4341472387313843, -0.21136914193630219, 0.2510506808757782, 0.43946874141693115, -0.13651646673679352, 0.21240533888339996, -0.10458166897296906, -0.3297901153564453, 0.3446066379547119, 0.08455663919448853, 0.19131922721862793, 0.06717739999294281, -0.1627075970172882, -0.19873863458633423, 0.2804652154445648, -0.14018221199512482, 0.09935617446899414, 0.01728031225502491, -0.013980712741613388, -0.023531034588813782, 0.02368754893541336, -0.05569151043891907, -0.5870646834373474, 0.20946672558784485, 0.12904207408428192, 0.009086474776268005, 0.07922663539648056, -0.24155765771865845, 0.22902777791023254, -0.16458487510681152, -0.08010140061378479, -0.2327694594860077, 0.06673703342676163, 0.13851885497570038, -0.14136528968811035, -0.4105311632156372, -0.20767517387866974, 0.1549980342388153, 0.1783139407634735, -0.10271262377500534, -0.28916338086128235, 0.08442036807537079, 0.1343810111284256, -0.28488174080848694, -0.05124513432383537, -0.07668770104646683, 0.2527863085269928, -0.21799327433109283, -0.007470743730664253, 0.2002021074295044, -0.3224276006221771, 0.20792199671268463, -0.2997956871986389, 0.1952921450138092, 0.17546775937080383, -0.04336950182914734, 0.1186169907450676, 0.37484025955200195, 0.052821844816207886, -0.12260544300079346, -0.6456496119499207, 0.5840044617652893, -0.0006723329424858093, 0.3734266757965088, -0.09919009357690811, 0.09556836634874344, 0.2725905776023865, -0.23325663805007935, -0.2214985489845276, -0.06998760998249054, 0.1182980090379715, 0.10852397978305817, 0.1488993912935257, -0.05740492045879364, -0.19625547528266907, 0.1534258872270584, 0.22351084649562836, 0.13861045241355896, 0.16288432478904724, 0.01754910685122013, -0.06492852419614792, -0.008726200088858604, 0.13202498853206635, -0.15292207896709442, 0.5411449074745178, 0.3627525568008423, -0.06773790717124939, -0.22867929935455322, 0.4668230414390564, 0.02284698560833931, 0.20196641981601715, -0.14883321523666382, 0.1569414585828781, -0.021945171058177948, 0.41422924399375916, -0.05883320793509483, 0.0019455589354038239, -0.3531237542629242, 0.12170801311731339, -0.12135489284992218, -0.17799906432628632, -0.056529030203819275, -0.010893145576119423, 0.11333147436380386, -0.3415457606315613, -0.10457729548215866, 0.03237296640872955, -0.2703222334384918, 0.11364377290010452, 0.20209798216819763, -0.23166199028491974, 0.5293704271316528, 0.10608239471912384, 0.21133537590503693, -0.014763955026865005, -0.33832356333732605, -0.16702570021152496, -0.05799108371138573, 0.03867107257246971, 0.11132796108722687, -0.19078759849071503, -0.42649564146995544, 0.4168761670589447, 0.06968667358160019, -0.0823911726474762, -0.3162460923194885, 0.06411264091730118, 0.09530234336853027, -0.06976407021284103, -0.004351779818534851, 0.4321966767311096, 0.025557346642017365, 0.42247867584228516, -0.20877334475517273, 0.22846825420856476, -0.3656725585460663, 0.05340777337551117, -0.2308402955532074, -0.10861124098300934, 0.2661184072494507, -0.14220815896987915, -0.2678963541984558, -0.17742393910884857, -0.4689387381076813, 0.13785076141357422, -0.112200066447258, 0.23891256749629974, -0.1537221372127533, 0.2402469515800476, -0.09552256017923355, 0.30889996886253357, 0.008059564046561718, 0.051089491695165634, -0.38981810212135315, 0.5134431719779968, -0.20093540847301483, -0.17944246530532837, -0.2082124799489975, -0.2673685550689697, -0.1437029391527176, 0.4664015769958496, -0.09529170393943787, -0.09754346311092377, -0.07310666888952255, 0.5471228361129761, -0.04832424223423004, 0.20297962427139282, 0.4040621221065521, 0.1179647371172905, -0.19336505234241486, -0.19544124603271484, -0.02498698979616165, 0.04487883672118187, 0.08430193364620209, 0.09630371630191803, 0.3691255748271942, 0.2834111154079437, 0.2005007117986679, 1.0360910892486572, 0.048313017934560776, -0.2693992555141449, -0.029600955545902252, -0.07298913598060608, 0.05509708449244499, 0.15732425451278687, -0.5130918622016907, -0.109053835272789, -0.06700241565704346, 0.18644274771213531, 0.11261429637670517, -0.11949589103460312, -0.3732963502407074, 0.008852314203977585, -0.3565213978290558, -0.15032005310058594, -0.21234798431396484, 0.5134528875350952, -0.38495317101478577, 0.11929432302713394, -0.14186277985572815, 0.23227301239967346, -0.48008912801742554, -0.07347138971090317, 0.16747905313968658, -0.12010911107063293, 0.23560327291488647, -0.18874618411064148, 0.0650644600391388, 0.2612873613834381, -0.3272732198238373, 0.34223127365112305, 0.03996626287698746, 0.1533799171447754, 0.17405492067337036, -0.1775500774383545, -0.07593238353729248, -0.07929275929927826, 0.8048295378684998, -0.10029612481594086, 0.009737510234117508, 0.08803200721740723, -0.3145727813243866, -0.32292696833610535, -0.1487617939710617, -0.12931571900844574, 0.23913751542568207, 0.3746311664581299, 0.4657880365848541, -0.21138431131839752, -0.360594779253006, -0.022054322063922882, -0.037259358912706375, -0.20906634628772736, -0.11378533393144608, 0.03358953073620796, -0.0644197165966034, -0.3345566987991333, 0.15820568799972534, 0.16762962937355042, -0.0640115737915039, -0.1880776733160019, -0.029744088649749756, -0.367426335811615, 0.022427625954151154, 0.1478700339794159, -0.2974761128425598, 0.0033545084297657013, 0.16535045206546783, 0.13131815195083618, 0.07117706537246704, 0.2033960223197937, 0.1051969826221466, 0.29235637187957764, -0.2742365002632141, -0.11450552940368652, -0.1045105829834938, -0.12682734429836273, 0.23311787843704224, 0.3448079824447632, 0.04279134050011635, 0.0931747779250145, -0.0709681585431099, 0.13004544377326965, -0.254966139793396, -0.1557905375957489, 0.06191307306289673, -0.12729793787002563, -0.2559746205806732, -0.6764861941337585, 0.2971198260784149, 0.2205972820520401, -0.23389454185962677, 0.15423500537872314, -0.5489983558654785, -0.452186644077301, 0.37822622060775757, 0.4433785080909729, 0.9292343854904175, 0.08313161134719849, 0.26778391003608704, -0.003877732902765274, 0.05406025052070618, 0.16566602885723114, -0.35607385635375977, 0.0738610327243805, -0.174664705991745, -0.3155480623245239, -0.08297484368085861, -0.1566767543554306, 0.00044532865285873413, 0.21155498921871185, -0.44729191064834595, 0.3652634620666504, -0.13300491869449615, 0.21265417337417603, -0.05819575488567352, 0.07677853107452393, -0.030109984800219536, -0.4389668405056, 0.018556097522377968, 0.12007418274879456, 0.12178649753332138, 0.07152177393436432, -0.005756532307714224, -0.21717455983161926, -0.006177175790071487, -0.19068925082683563, -0.23448294401168823, 0.02149730548262596, -0.32807236909866333, 0.2624051570892334, -0.02875114604830742, -0.2781006693840027, 0.22396421432495117, 0.24058258533477783, 0.05236383527517319, -0.04292845353484154, -0.0004582144320011139, 0.02535504847764969, 0.4027702212333679, 0.347858726978302, -0.18895602226257324, -0.15196213126182556, 0.5235303640365601, 0.038262538611888885, -0.0016560330986976624, 0.24671217799186707, 0.027016855776309967, -0.2154703438282013, -0.2754535675048828, 0.16861426830291748, 0.10604457557201385, -0.4086526036262512, -0.12658926844596863, 0.2437671422958374, 0.21473479270935059, -0.16640061140060425, 0.11244353652000427, 0.24188707768917084, -0.14273299276828766, 0.3948942720890045, -0.023144405335187912, -0.11257600039243698, -0.004061013460159302, 0.5660003423690796, 0.39675286412239075, -0.22617696225643158, 0.3953682482242584, 0.10508380830287933, -0.22275538742542267, -0.2664775252342224, 0.1019306406378746, 0.3543094992637634, -0.5201169848442078, 0.32605722546577454, -0.24106328189373016, 0.01126796007156372, 0.005442146211862564, 0.2683939039707184, -0.09710030257701874, 0.2608305513858795, -0.25768840312957764, -0.09980908036231995, -0.31097590923309326, -0.0025682300329208374, 0.20989443361759186, 0.29698967933654785, 0.010947387665510178, 0.05657825246453285, 0.2847716808319092, 0.19324719905853271, -0.43673694133758545, -0.07727537304162979, -0.00754658505320549, 0.21721522510051727, -0.03385050594806671, 0.15989693999290466, -0.08764416724443436, 0.00880880281329155, 0.05565222352743149, -0.05246347934007645, -0.172516331076622, -0.24628135561943054, -0.2674751877784729, 0.14141419529914856, -0.11243327707052231, 0.17620423436164856, -0.07794380187988281, -0.1660972684621811, 0.015276393853127956, -0.21237094700336456, 0.23836776614189148, 0.2461402416229248, 0.005486257374286652, 0.22627422213554382, 0.34914731979370117, 0.1314656287431717, -0.15685352683067322, 0.10370403528213501, -0.0685531497001648, -0.045451581478118896, -0.11386576294898987, 0.20739562809467316, -0.10677894204854965, -0.18280138075351715, 0.14684119820594788, 0.06171935051679611, 0.4185718297958374, 0.43180230259895325, 0.15201905369758606, 0.04026844725012779, 0.021410640329122543, 0.08435222506523132, 0.13547775149345398, -0.002366796135902405, -0.2722885310649872, 0.02017027698457241, 0.3111552298069, 0.2508629560470581, -0.35088157653808594, 0.07969066500663757, 0.003952729515731335, -0.09541118144989014, 0.33505284786224365, 0.2865388095378876, -0.12258648872375488, -0.09698358923196793, 0.12044766545295715, 0.09448157995939255, 0.3318261504173279, -0.2760251760482788, 0.20904435217380524, 0.2408856302499771, 0.04884473606944084, -0.1392177790403366, 0.2614601254463196, 0.1207222193479538, 0.39586693048477173, 0.09287553280591965, 0.039715755730867386, 0.5787741541862488, 0.4344003200531006, -0.21484830975532532, 0.28681933879852295, -0.3409055173397064, 0.05618957802653313, -0.04258418083190918, 0.08599286526441574, 0.22801679372787476, 0.0949719101190567, 0.23999184370040894, -0.06300953775644302, -0.20061369240283966, 0.044090501964092255, 0.4590681195259094, 0.022320279851555824, -0.06890257447957993, -0.10716012120246887, -0.03513536602258682, -0.22047600150108337, -0.014276467263698578, -0.18092511594295502, -0.11777617037296295, 0.6052350997924805, 0.09281200915575027, 0.245597243309021, 0.00924166664481163, 0.1307232677936554, -0.09147102385759354, 0.31256693601608276, -0.23045991361141205, -0.17462177574634552, 0.11049429327249527, 0.016960207372903824, 0.00937645137310028, 0.6031896471977234, 0.2367812991142273, 0.38356339931488037, -0.22222717106342316, 0.25144296884536743, -0.08406217396259308, -0.08379275351762772, -0.2759324014186859, 0.055358290672302246, -0.31760528683662415, -0.120516836643219, 0.19448912143707275, 0.2067994773387909, -0.2260134518146515, 0.33573994040489197, -0.040604520589113235, -0.25181519985198975, -0.06173930689692497, 0.48883697390556335, 0.31652772426605225, -0.3302335739135742, 0.07177335023880005, -0.15947681665420532, -0.08482949435710907, -0.14304900169372559, 0.3740895390510559, -0.2783728837966919, 0.18320977687835693, 0.023276343941688538, 0.13035288453102112, 0.0058694034814834595, 0.2332189679145813, -0.06498117744922638, 0.17564743757247925, -0.24472159147262573, -0.017198339104652405, -0.09413530677556992, -0.10040348023176193, 0.007931038737297058, 0.11859829723834991, -0.14338666200637817, 0.00981426052749157, 0.2557884156703949, 0.06369560211896896, -0.12157687544822693, -0.29098546504974365, 0.09809227287769318, 0.6609249114990234, -0.237464040517807, -0.16315041482448578, -0.19303162395954132, 0.3087807595729828, 0.3174531161785126, -0.3069647550582886, -0.16159489750862122, 0.0610094852745533, 0.16210868954658508, -0.2844512462615967, -0.18417292833328247, 0.4689258933067322, -0.023701056838035583, 0.4092944264411926, -0.013207582756876945, 0.02836349606513977, -0.13920976221561432, 0.18040530383586884, -0.030683983117341995, 0.057785410434007645, -0.28913217782974243, -0.0933259055018425, 0.22316205501556396, 0.015159249305725098, -0.2752872407436371, -0.17245206236839294, -0.2024928331375122, 0.12379738688468933, 0.08852526545524597, 0.2602422833442688, -0.27524593472480774, 0.2975158095359802, -0.21172571182250977, -0.13739857077598572, -0.24701403081417084, 0.28345441818237305, -0.028861626982688904, 0.0030332356691360474, -0.4447767734527588, -0.29303887486457825, 0.5838686227798462, -0.6023529171943665, -0.4221651256084442, -0.4319288730621338, 0.12755867838859558, -0.1530817151069641, 0.2864522337913513, -0.34552356600761414, -0.07274837046861649, 0.3976146876811981, -0.028659161180257797, -0.10042470693588257, 0.10802316665649414, 0.19238628447055817, -0.07729725539684296, -0.2563922703266144, 0.274725079536438, 0.02293769270181656, -0.17120327055454254, -0.3757605254650116, -0.3374505639076233 ]
https://github.com/huggingface/datasets/issues/3385
None batched `with_transform`, `set_transform`
I like the idea of lazy map. On the other hand we should only have either lazy map or `with_transform` (not both). That's why I'd rather stick with `with_transform` for now (but maybe we can consider it for later major releases like `datasets` v2). I understand the issue with `with_transform` and `with_format` being exclusive, maybe we can separate them: first transform, them format. Finally I think what's also going to be important in the end will be the addition of multiprocessing to transforms
**Is your feature request related to a problem? Please describe.** A `torch.utils.data.Dataset.__getitem__` operates on a single example. But 🤗 `Datasets.with_transform` doesn't seem to allow non-batched transform. **Describe the solution you'd like** Have a `batched=True` argument in `Datasets.with_transform` **Describe alternatives you've considered** * Convert a non-batched transform function to batched one myself. * Wrap a 🤗 Dataset with torch Dataset, and add a `__getitem__`. 🙄 * Have `lazy=False` in `Dataset.map`, and returns a `LazyDataset` if `lazy=True`. This way the same `map` interface can be used, and existing code can be updated with one argument change.
83
None batched `with_transform`, `set_transform` **Is your feature request related to a problem? Please describe.** A `torch.utils.data.Dataset.__getitem__` operates on a single example. But 🤗 `Datasets.with_transform` doesn't seem to allow non-batched transform. **Describe the solution you'd like** Have a `batched=True` argument in `Datasets.with_transform` **Describe alternatives you've considered** * Convert a non-batched transform function to batched one myself. * Wrap a 🤗 Dataset with torch Dataset, and add a `__getitem__`. 🙄 * Have `lazy=False` in `Dataset.map`, and returns a `LazyDataset` if `lazy=True`. This way the same `map` interface can be used, and existing code can be updated with one argument change. I like the idea of lazy map. On the other hand we should only have either lazy map or `with_transform` (not both). That's why I'd rather stick with `with_transform` for now (but maybe we can consider it for later major releases like `datasets` v2). I understand the issue with `with_transform` and `with_format` being exclusive, maybe we can separate them: first transform, them format. Finally I think what's also going to be important in the end will be the addition of multiprocessing to transforms
[ -0.4687541425228119, -0.3128852844238281, -0.06569872796535492, -0.2338286191225052, 0.26585763692855835, -0.1204681247472763, 0.48685121536254883, 0.4093424677848816, -0.15480786561965942, -0.00031747668981552124, -0.11382833868265152, 0.5173214077949524, -0.35309767723083496, -0.10264889895915985, -0.0778418779373169, -0.14074864983558655, 0.20958685874938965, 0.09113480895757675, -0.46051761507987976, 0.044724442064762115, -0.3199198842048645, -0.19098582863807678, -0.22450993955135345, -0.07815337181091309, -0.16395652294158936, -0.10391225665807724, -0.14830069243907928, -0.19736167788505554, 0.10084061324596405, -0.2246040552854538, 0.21292409300804138, 0.2881469428539276, 0.06406468152999878, 0.5212790369987488, -0.00010514174937270582, -0.009445756673812866, 0.13252314925193787, -0.16685748100280762, -0.18880142271518707, -0.14275242388248444, -0.015355158597230911, -0.3372921347618103, -0.07897176593542099, -0.3621990978717804, -0.2289910614490509, -0.37998005747795105, 0.2216353565454483, -0.44478943943977356, 0.29374563694000244, 0.11157038807868958, 0.240218386054039, 0.15586347877979279, -0.32525184750556946, -0.23494212329387665, 0.08492109924554825, 0.28077322244644165, -0.0489993654191494, -0.14772208034992218, 0.5329068899154663, 0.29942309856414795, -0.18363991379737854, 0.2589874863624573, -0.29605403542518616, -0.20142988860607147, 0.36426621675491333, -0.06662342697381973, -0.3273942768573761, -0.2730424702167511, -0.0660218596458435, 0.15834906697273254, 0.26355141401290894, -0.2569996118545532, -0.5107656121253967, -0.36241039633750916, -0.12734483182430267, 0.06121336668729782, -0.018179327249526978, 0.14365383982658386, -0.021897291764616966, 0.13279017806053162, -0.5536373257637024, -0.132584348320961, -0.05129314959049225, 0.0886266827583313, 0.1417219340801239, 0.16073593497276306, 0.09284611791372299, 0.12924984097480774, -0.141595259308815, -0.1260412335395813, 0.3903658390045166, -0.16213858127593994, 0.03602252155542374, 0.25772449374198914, -0.09249936044216156, -0.10745493322610855, 0.06438792496919632, 0.07239924371242523, 0.27392950654029846, 0.1976437121629715, -0.0010046856477856636, 0.13369327783584595, -0.10106998682022095, 0.04524214565753937, 0.11974789202213287, 0.11792592704296112, 0.0919666588306427, 0.16984158754348755, 0.3209148645401001, -0.2819173336029053, 0.15236015617847443, 0.038125842809677124, 0.10927960276603699, -0.2840993106365204, 0.041336316615343094, 0.39835166931152344, 0.11821994185447693, 0.11585928499698639, 0.1436552256345749, -0.47007831931114197, 0.24946531653404236, -0.14972758293151855, -0.1787227839231491, 0.39188188314437866, 0.04405711591243744, 0.33032894134521484, 0.15525439381599426, 0.09131266176700592, 0.13957129418849945, -0.18308140337467194, -0.08081982284784317, -0.018271449953317642, -0.23495440185070038, -0.21120001375675201, 0.18292321264743805, -0.15594534575939178, 0.11493227630853653, 0.26759251952171326, -0.0742611438035965, 0.460793137550354, 0.002423318102955818, -0.22008353471755981, 0.5438045263290405, -0.09125462174415588, -0.05783339962363243, 0.2233762890100479, -0.009960323572158813, 0.33937180042266846, -0.3583167493343353, 0.262428879737854, -0.30405524373054504, -0.3288433849811554, 0.05948564410209656, 0.22747759521007538, -0.16649535298347473, 0.08109459280967712, -0.06204333156347275, 0.3706511855125427, 0.0856916680932045, -0.15160231292247772, 0.13910964131355286, -0.16238749027252197, -0.06056966260075569, -0.3375454843044281, 0.0645383819937706, 0.13605333864688873, -0.3584342300891876, -0.17527252435684204, 0.2935866415500641, 0.02734624780714512, -0.02415657788515091, 0.2092224508523941, -0.3233006000518799, 0.1273105889558792, -0.2844192087650299, -0.1381441354751587, 0.48180684447288513, -0.23244355618953705, -0.14233477413654327, 0.08245391398668289, 0.048039600253105164, 0.010010233148932457, 0.2708285450935364, 0.03219432383775711, 0.4170936048030853, -0.2378053069114685, -0.0037307515740394592, 0.3913208246231079, -0.11562152206897736, 0.13125155866146088, -0.021339116618037224, -0.32682618498802185, 0.3088166117668152, -0.07744342088699341, 0.18128544092178345, 0.066233791410923, -0.13946625590324402, -0.12316372990608215, 0.09901256114244461, -0.2874063551425934, 0.19582876563072205, 0.010451504960656166, 0.007842808961868286, -0.030485443770885468, 0.01731421984732151, -0.1274908483028412, -0.5588950514793396, 0.11926225572824478, 0.05138770490884781, -0.15432234108448029, 0.06374950706958771, -0.38754916191101074, 0.3068360686302185, -0.18230286240577698, 0.016630172729492188, -0.17341656982898712, 0.12634603679180145, 0.09490643441677094, -0.12898527085781097, -0.31979233026504517, -0.3387373983860016, 0.0336848646402359, 0.2567538619041443, -0.0512644425034523, -0.13978387415409088, -0.144432932138443, 0.09689754992723465, -0.32726237177848816, -0.05457291007041931, -0.012941822409629822, 0.12419160455465317, -0.22858546674251556, -0.03840138390660286, 0.26874521374702454, -0.2723582684993744, 0.2025725543498993, -0.3058190643787384, 0.2644115686416626, 0.15082590281963348, 0.09772984683513641, 0.022296946495771408, 0.08943867683410645, 0.030121736228466034, -0.05388358235359192, -0.5827397704124451, 0.5392073392868042, 0.047229282557964325, 0.36716917157173157, 0.029024116694927216, 0.030490102246403694, 0.21016623079776764, -0.2585623562335968, -0.20185835659503937, -0.2316632866859436, -0.03226665034890175, -0.028408028185367584, 0.18332193791866302, 0.06812740117311478, -0.3163183331489563, 0.07421468198299408, 0.4280005693435669, 0.18429088592529297, 0.17754095792770386, 0.053835101425647736, -0.08666224032640457, 0.036532506346702576, 0.08978302776813507, -0.25131604075431824, 0.5034061074256897, 0.4248325228691101, -0.030240248888731003, -0.18641330301761627, 0.44556543231010437, 0.00705774687230587, 0.33814218640327454, -0.05918407440185547, -0.09105728566646576, 0.06178147718310356, 0.2822965085506439, 0.04382547363638878, -0.008154954761266708, -0.3811839818954468, 0.021959224715828896, -0.24039244651794434, -0.19273430109024048, -0.08908049762248993, -0.1250678300857544, -0.008820749819278717, -0.314447283744812, 0.04228820651769638, 0.06971623003482819, -0.1530555635690689, 0.15370488166809082, 0.07947167754173279, -0.32951033115386963, 0.5333343148231506, 0.02378195896744728, 0.26767703890800476, -0.023730935528874397, -0.24672289192676544, -0.2672997713088989, -0.028207197785377502, -0.021282784640789032, 0.11454333364963531, -0.1010897159576416, -0.3840891122817993, 0.439174622297287, 0.09526880085468292, 0.12496577203273773, -0.3364578187465668, -0.037129368633031845, 0.16512316465377808, -0.0800313651561737, 0.099618099629879, 0.4696498215198517, 0.015912547707557678, 0.3220628499984741, -0.262935072183609, 0.2307860106229782, -0.34872204065322876, 0.048391491174697876, -0.26221156120300293, -0.12729448080062866, 0.09865713864564896, -0.24368500709533691, -0.24859359860420227, -0.0747997984290123, -0.5598961710929871, 0.16252300143241882, -0.288070410490036, 0.13879981637001038, -0.11784019321203232, 0.1292910873889923, -0.1337205320596695, 0.07131633907556534, 0.13992886245250702, 0.09615038335323334, -0.2601461708545685, 0.4839152991771698, -0.16452203691005707, -0.17623136937618256, -0.2410603016614914, -0.14112736284732819, -0.18731695413589478, 0.5462927222251892, 0.02367664873600006, -0.03893516585230827, -0.17258036136627197, 0.4672321677207947, -0.020591899752616882, 0.28641965985298157, 0.30538731813430786, 0.25867173075675964, -0.23626355826854706, -0.23367157578468323, 0.011139985173940659, -0.0022589638829231262, -0.0002846457064151764, -0.020816095173358917, 0.3144409656524658, 0.24699929356575012, 0.24868950247764587, 0.7835968732833862, 0.07026888430118561, -0.405239075422287, 0.027087293565273285, 0.004630241543054581, 0.17698855698108673, 0.03036470338702202, -0.48640546202659607, -0.0015138008166104555, -0.026120051741600037, 0.204763263463974, 0.22223243117332458, -0.13384976983070374, -0.24992336332798004, -0.0055018700659275055, -0.14543002843856812, -0.24017244577407837, -0.16113626956939697, 0.479134202003479, -0.34308451414108276, 0.23209628462791443, -0.1471758782863617, 0.1909116804599762, -0.25659897923469543, 0.0703396424651146, 0.23749934136867523, -0.09718410670757294, 0.3638612926006317, -0.08487915247678757, -0.013739187270402908, 0.040784526616334915, -0.27484130859375, 0.4137001633644104, 0.05672407150268555, 0.22373005747795105, -0.02984207309782505, -0.1916375458240509, -0.0981767475605011, 0.033168595284223557, 0.7530317306518555, -0.2349667102098465, -0.18958088755607605, 0.026492170989513397, -0.2578268051147461, -0.28575119376182556, -0.04505918174982071, -0.12016873061656952, 0.12545397877693176, 0.27964404225349426, 0.4619194567203522, -0.1973954141139984, -0.42595791816711426, -0.007610827684402466, 0.09365727752447128, -0.09860476106405258, -0.11101248115301132, 0.12518708407878876, -0.020697396248579025, -0.25543877482414246, 0.20571374893188477, 0.16100211441516876, -0.1980571299791336, -0.21367046236991882, -0.08925993740558624, -0.41714638471603394, 0.05084206908941269, 0.14578445255756378, -0.21902255713939667, 0.11443819850683212, 0.034211695194244385, 0.07436786592006683, 0.049045827239751816, 0.314230352640152, 0.13954004645347595, 0.053894445300102234, -0.17222143709659576, -0.13606666028499603, -0.09557213634252548, -0.09954497963190079, 0.32505032420158386, 0.33755701780319214, -0.0007610428147017956, 0.20740720629692078, -0.1562591791152954, 0.10786069184541702, -0.25685882568359375, -0.03377775847911835, 0.15750400722026825, -0.1147870346903801, -0.45797160267829895, -0.5947853922843933, 0.21781781315803528, 0.29495668411254883, -0.2173052281141281, 0.20906294882297516, -0.4219104051589966, -0.5313150882720947, 0.5193048715591431, 0.32471099495887756, 0.9087439775466919, 0.18796910345554352, 0.22108836472034454, -0.0972600057721138, -0.07792849838733673, 0.3075707256793976, -0.20578549802303314, 0.04233431816101074, -0.21700894832611084, -0.36912280321121216, -0.09785520285367966, -0.16567590832710266, 0.1285371035337448, 0.2725101709365845, -0.48238417506217957, 0.3867567181587219, -0.18259191513061523, 0.21230080723762512, -0.04061000794172287, 0.1474619209766388, 0.008295908570289612, -0.4369083046913147, 0.028706392273306847, 0.1574227213859558, -0.0008424259722232819, -0.007698673754930496, -0.007552715018391609, -0.17708373069763184, -0.06146598607301712, -0.11980243027210236, -0.11287438124418259, -0.07500173896551132, -0.3318096399307251, 0.2200945019721985, -0.2920873165130615, -0.36877477169036865, 0.30644240975379944, 0.25405579805374146, 0.20964741706848145, 0.167881578207016, 0.0023628808557987213, 0.07243016362190247, 0.40703141689300537, 0.4604642689228058, -0.1682727336883545, -0.20112839341163635, 0.4773099720478058, 0.14182183146476746, 0.08673778921365738, 0.1206509917974472, 0.03138989955186844, -0.05090925469994545, -0.26189249753952026, 0.003479577600955963, 0.03258690610527992, -0.41251614689826965, -0.2625190317630768, 0.11733706295490265, 0.1820686161518097, -0.12065273523330688, 0.15321917831897736, 0.1262996941804886, 0.02664191834628582, 0.550288736820221, -0.024051811546087265, -0.08204557746648788, -0.06920506060123444, 0.4325806796550751, 0.20661374926567078, -0.19246044754981995, 0.29069164395332336, -0.0007183738052845001, -0.3134610056877136, -0.26108452677726746, 0.1250039041042328, 0.36832642555236816, -0.5209848284721375, 0.36050519347190857, -0.14909909665584564, -0.008844047784805298, -0.0546836219727993, 0.22314384579658508, -0.061301857233047485, 0.10258848965167999, -0.3052515983581543, 0.07708434760570526, -0.30197450518608093, 0.19501513242721558, 0.16935031116008759, 0.43610095977783203, 0.06312902271747589, 0.1890440583229065, 0.14149606227874756, 0.09739235043525696, -0.45231589674949646, -0.14758384227752686, 0.17825710773468018, 0.3116096258163452, 0.009143300354480743, 0.14040496945381165, -0.1877002865076065, -0.033067669719457626, 0.0730680450797081, -0.00635751336812973, -0.1520671546459198, -0.2644824981689453, -0.2749755382537842, 0.13729700446128845, -0.14773809909820557, 0.2083248794078827, -0.12096049636602402, -0.00797940418124199, -0.003410579636693001, -0.36635780334472656, 0.2334277331829071, 0.27832162380218506, -0.008647941052913666, 0.3238651156425476, 0.19956457614898682, 0.06459569931030273, -0.10893619060516357, 0.14563030004501343, -0.06179940700531006, -0.11086149513721466, 0.0036599035374820232, 0.292546808719635, -0.11873038858175278, -0.21212439239025116, 0.09396851807832718, 0.10771994292736053, 0.38194215297698975, 0.4249098598957062, 0.05271633714437485, 0.17628708481788635, -0.0008612647652626038, 0.26487991213798523, 0.27783000469207764, 0.09666147828102112, -0.17941424250602722, -0.02653379738330841, 0.3750530183315277, 0.28218087553977966, -0.2625364363193512, -0.01081523485481739, 0.02851969003677368, -0.04709279537200928, 0.29802989959716797, 0.18110594153404236, -0.04426094517111778, -0.025658152997493744, 0.017247803509235382, 0.012079562991857529, 0.3266599178314209, -0.2660500407218933, 0.30343538522720337, 0.3937568664550781, 0.25057944655418396, -0.09682846069335938, 0.29150524735450745, 0.13707803189754486, 0.40648603439331055, 0.20931245386600494, 0.09224599599838257, 0.5472723841667175, 0.45699989795684814, -0.10382363200187683, 0.34389418363571167, -0.3219376802444458, -0.04556899890303612, -0.1752874255180359, 0.15479731559753418, 0.24272829294204712, 0.08075437694787979, 0.19769622385501862, -0.04939541220664978, -0.4262329041957855, 0.13642241060733795, 0.45560795068740845, -0.06163240224123001, -0.09743465483188629, -0.13305580615997314, -0.03888688609004021, -0.04099927842617035, -0.031165964901447296, -0.15185107290744781, 0.046247102320194244, 0.5033502578735352, 0.18435901403427124, 0.3478684425354004, 0.029002230614423752, 0.2285536825656891, -0.12708353996276855, 0.3586767613887787, -0.16902218759059906, -0.12010229378938675, 0.14777716994285583, -0.10293248295783997, 0.09109004586935043, 0.6200850009918213, 0.2220052033662796, 0.3420878052711487, -0.2408837378025055, 0.1946895867586136, -0.2592626214027405, -0.06156706064939499, -0.27604883909225464, 0.13384118676185608, -0.27435925602912903, -0.111239492893219, 0.2309427261352539, 0.24795746803283691, -0.1824750155210495, 0.2535676658153534, -0.14459387958049774, -0.21728146076202393, -0.16620443761348724, 0.31144192814826965, 0.3852771818637848, -0.44324663281440735, 0.1749042570590973, -0.20448455214500427, -0.029971729964017868, -0.1815945953130722, 0.4254637360572815, -0.22352366149425507, 0.12595248222351074, -0.062046341598033905, 0.13278083503246307, 0.1600365936756134, 0.19681385159492493, -0.02620692178606987, 0.1178457960486412, -0.13712920248508453, -0.05183783918619156, -0.05032277852296829, -0.19525131583213806, 0.2029983103275299, 0.23584523797035217, -0.1042340099811554, -0.14205621182918549, 0.14315354824066162, -0.0434846505522728, 0.027522660791873932, -0.21363583207130432, -0.003557151183485985, 0.5908374786376953, -0.18295516073703766, -0.06724704802036285, -0.23003868758678436, 0.24871346354484558, 0.19613590836524963, -0.2552284300327301, -0.10798686742782593, 0.1033862829208374, 0.16428783535957336, -0.28591084480285645, -0.12659451365470886, 0.5060501098632812, -0.029894478619098663, 0.5223243832588196, 0.10886380821466446, 0.1164957657456398, -0.2133314609527588, 0.22779881954193115, -0.10676498711109161, 0.020478608086705208, -0.30122706294059753, 0.05957550182938576, 0.18466812372207642, 0.08237739652395248, -0.2825859487056732, -0.25070059299468994, -0.18388748168945312, 0.09211769700050354, 0.01938110589981079, 0.28379958868026733, -0.18847857415676117, 0.2018892467021942, -0.215379536151886, -0.2580757141113281, -0.12626096606254578, 0.3253001272678375, -0.1304248422384262, 0.05330606549978256, -0.4195706844329834, -0.40126579999923706, 0.5072780251502991, -0.45300132036209106, -0.42641282081604004, -0.23486150801181793, 0.05850119888782501, -0.009439036250114441, 0.26270636916160583, -0.23729842901229858, -0.20891240239143372, 0.32561513781547546, 0.009670203551650047, -0.14859279990196228, 0.18007545173168182, 0.04556535556912422, -0.17282700538635254, -0.2468680590391159, 0.44072622060775757, 0.10988017916679382, -0.21652190387248993, -0.3428208827972412, -0.3184811472892761 ]
https://github.com/huggingface/datasets/issues/3381
Unable to load audio_features from common_voice dataset
Hi ! Feel free to access `batch["audio"]["array"]` and `batch["audio"]["sampling_rate"]` instead `datasets` 1.16 introduced some changes in `common_voice` and now the `path` field is no longer a path to a local file (but rather the path to the file in the archive it's extracted from)
## Describe the bug I am not able to load audio features from common_voice dataset ## Steps to reproduce the bug ``` from datasets import load_dataset import torchaudio test_dataset = load_dataset("common_voice", "hi", split="test[:2%]") resampler = torchaudio.transforms.Resample(48_000, 16_000) def speech_file_to_array_fn(batch): speech_array, sampling_rate = torchaudio.load(batch["path"]) batch["speech"] = resampler(speech_array).squeeze().numpy() return batch test_dataset = test_dataset.map(speech_file_to_array_fn) ``` ## Expected results This piece of code should return test_dataset after loading audio features. ## Actual results Reusing dataset common_voice (/home/jovyan/.cache/huggingface/datasets/common_voice/hi/6.1.0/b879a355caa529b11f2249400b61cadd0d9433f334d5c60f8c7216ccedfecfe1) /opt/conda/lib/python3.7/site-packages/transformers/configuration_utils.py:341: UserWarning: Passing `gradient_checkpointing` to a config initialization is deprecated and will be removed in v5 Transformers. Using `model.gradient_checkpointing_enable()` instead, or if you are using the `Trainer` API, pass `gradient_checkpointing=True` in your `TrainingArguments`. "Passing `gradient_checkpointing` to a config initialization is deprecated and will be removed in v5 " Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. 0%| | 0/3 [00:00<?, ?ex/s]formats: can't open input file `common_voice_hi_23795358.mp3': No such file or directory 0%| | 0/3 [00:00<?, ?ex/s] Traceback (most recent call last): File "demo_file.py", line 23, in <module> test_dataset = test_dataset.map(speech_file_to_array_fn) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 2036, in map desc=desc, File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 518, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 485, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/fingerprint.py", line 411, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 2368, in _map_single example = apply_function_on_filtered_inputs(example, i, offset=offset) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 2277, in apply_function_on_filtered_inputs processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1978, in decorated result = f(decorated_item, *args, **kwargs) File "demo_file.py", line 19, in speech_file_to_array_fn speech_array, sampling_rate = torchaudio.load(batch["path"]) File "/opt/conda/lib/python3.7/site-packages/torchaudio/backend/sox_io_backend.py", line 154, in load filepath, frame_offset, num_frames, normalize, channels_first, format) RuntimeError: Error loading audio file: failed to open file common_voice_hi_23795358.mp3 ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1
44
Unable to load audio_features from common_voice dataset ## Describe the bug I am not able to load audio features from common_voice dataset ## Steps to reproduce the bug ``` from datasets import load_dataset import torchaudio test_dataset = load_dataset("common_voice", "hi", split="test[:2%]") resampler = torchaudio.transforms.Resample(48_000, 16_000) def speech_file_to_array_fn(batch): speech_array, sampling_rate = torchaudio.load(batch["path"]) batch["speech"] = resampler(speech_array).squeeze().numpy() return batch test_dataset = test_dataset.map(speech_file_to_array_fn) ``` ## Expected results This piece of code should return test_dataset after loading audio features. ## Actual results Reusing dataset common_voice (/home/jovyan/.cache/huggingface/datasets/common_voice/hi/6.1.0/b879a355caa529b11f2249400b61cadd0d9433f334d5c60f8c7216ccedfecfe1) /opt/conda/lib/python3.7/site-packages/transformers/configuration_utils.py:341: UserWarning: Passing `gradient_checkpointing` to a config initialization is deprecated and will be removed in v5 Transformers. Using `model.gradient_checkpointing_enable()` instead, or if you are using the `Trainer` API, pass `gradient_checkpointing=True` in your `TrainingArguments`. "Passing `gradient_checkpointing` to a config initialization is deprecated and will be removed in v5 " Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. 0%| | 0/3 [00:00<?, ?ex/s]formats: can't open input file `common_voice_hi_23795358.mp3': No such file or directory 0%| | 0/3 [00:00<?, ?ex/s] Traceback (most recent call last): File "demo_file.py", line 23, in <module> test_dataset = test_dataset.map(speech_file_to_array_fn) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 2036, in map desc=desc, File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 518, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 485, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/fingerprint.py", line 411, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 2368, in _map_single example = apply_function_on_filtered_inputs(example, i, offset=offset) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 2277, in apply_function_on_filtered_inputs processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) File "/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1978, in decorated result = f(decorated_item, *args, **kwargs) File "demo_file.py", line 19, in speech_file_to_array_fn speech_array, sampling_rate = torchaudio.load(batch["path"]) File "/opt/conda/lib/python3.7/site-packages/torchaudio/backend/sox_io_backend.py", line 154, in load filepath, frame_offset, num_frames, normalize, channels_first, format) RuntimeError: Error loading audio file: failed to open file common_voice_hi_23795358.mp3 ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1 Hi ! Feel free to access `batch["audio"]["array"]` and `batch["audio"]["sampling_rate"]` instead `datasets` 1.16 introduced some changes in `common_voice` and now the `path` field is no longer a path to a local file (but rather the path to the file in the archive it's extracted from)
[ -0.277565598487854, -0.37769898772239685, -0.00824730284512043, 0.4291614294052124, 0.36893755197525024, -0.13601809740066528, 0.2537413239479065, 0.23593658208847046, -0.0651015117764473, 0.15663480758666992, -0.4660596549510956, 0.40844666957855225, -0.09263091534376144, -0.19938157498836517, -0.2011776864528656, -0.3714815378189087, -0.0002538710832595825, 0.06894546002149582, -0.011208020150661469, -0.31866389513015747, -0.164041668176651, 0.15196506679058075, -0.28910595178604126, 0.2532098591327667, -0.27254560589790344, -0.016853829845786095, 0.3209068775177002, 0.4006572663784027, -0.07062365859746933, -0.22487272322177887, 0.16254907846450806, -0.06752988696098328, 0.2533230483531952, 0.4339742362499237, -0.00010237003152724355, -0.09653405100107193, 0.490001916885376, -0.11684951931238174, -0.1525070071220398, -0.355896532535553, -0.17492860555648804, 0.005951019003987312, -0.12451072037220001, 0.0786949172616005, -0.06396342813968658, -0.16428574919700623, -0.13534528017044067, -0.3594498634338379, 0.4507932662963867, 0.34190672636032104, 0.2822897732257843, 0.03400862216949463, 0.02514984831213951, -0.01129701267927885, 0.1772441565990448, -0.06883640587329865, -0.050703417509794235, 0.170828714966774, 0.5350544452667236, -0.1520436406135559, 0.0684937983751297, 0.18151943385601044, -0.32041412591934204, 0.010102946311235428, -0.005216464400291443, -0.08503919839859009, -0.1120699867606163, -0.4039647877216339, 0.17578572034835815, 0.3050142824649811, 0.5727847814559937, 0.010411251336336136, -0.19091032445430756, -0.02747102454304695, -0.0009547830559313297, -0.13998804986476898, 0.22214928269386292, 0.09083861857652664, -0.43337568640708923, 0.1356174200773239, -0.1859802007675171, 0.018571868538856506, 0.06165072321891785, 0.10245940089225769, 0.128092959523201, -0.07666006684303284, -0.09830784797668457, 0.002152577042579651, 0.28599706292152405, -0.194478839635849, -0.038241662085056305, 0.05395282059907913, 0.037647634744644165, 0.47159692645072937, -0.3221791684627533, 0.18390387296676636, 0.07071086764335632, -0.4383624494075775, 0.2763042747974396, -0.07949812710285187, 0.15570324659347534, 0.2056291103363037, -0.32750681042671204, 0.1634937971830368, 0.14944228529930115, 0.14019209146499634, -0.06870954483747482, 0.11860992759466171, 0.2255806177854538, 0.0223582461476326, -0.1316259503364563, -0.13536867499351501, -0.25982701778411865, -0.08889327198266983, 0.1838303506374359, 0.04307621717453003, 0.25475871562957764, -0.3414805233478546, -0.4240117073059082, 0.03977684676647186, -0.23522791266441345, 0.0677124410867691, 0.17909125983715057, 0.35223448276519775, 0.07649946957826614, 0.2863864600658417, 0.15098068118095398, 0.3391672968864441, -0.10824579000473022, 0.02912154421210289, -0.0664999857544899, -0.05955703184008598, -0.2695511281490326, 0.028838178142905235, 0.3297537863254547, -0.12495578825473785, 0.35037821531295776, 0.08452243357896805, 0.3011607825756073, -0.3452714681625366, -0.026054738089442253, 0.020689398050308228, -0.2218708097934723, -0.010403510183095932, -0.04303055256605148, 0.28228840231895447, 0.05378422141075134, 0.37186968326568604, -0.0474211685359478, 0.302094966173172, -0.2758888006210327, -0.22453159093856812, 0.02796892076730728, 0.26394134759902954, 0.0790090411901474, 0.2853377163410187, -0.16140183806419373, 0.09739106893539429, 0.032080478966236115, -0.3944595158100128, -0.030832745134830475, -0.2836870551109314, -0.2875130772590637, -0.08409713953733444, 0.32449105381965637, 0.1483113169670105, -0.14272136986255646, -0.07675500214099884, 0.10457932949066162, -0.08937560021877289, 0.09314100444316864, 0.34790337085723877, -0.30232489109039307, -0.10484922677278519, -0.2285098284482956, 0.33576512336730957, 0.3682681918144226, -0.45641928911209106, -0.46502742171287537, 0.05626675486564636, -0.052732691168785095, 0.3982042074203491, -0.1469593644142151, -0.004105232656002045, 0.14040344953536987, 0.056793298572301865, 0.5036777257919312, 0.6017468571662903, 0.1836443841457367, -0.006019050255417824, -0.14978280663490295, -0.1466083973646164, 0.13421866297721863, 0.1616947054862976, -0.11288447678089142, 0.10522454977035522, -0.09195929020643234, 0.02952314168214798, 0.27558016777038574, -0.08315034210681915, -0.11154841631650925, 0.18272627890110016, 0.18464237451553345, -0.03296472877264023, -0.007178879342973232, -0.1592680811882019, -0.05240265280008316, 0.24037140607833862, -0.12354802340269089, -0.10751496255397797, 0.14362549781799316, -0.028122374787926674, -0.34360894560813904, -0.17538638412952423, -0.45373567938804626, -0.05880777910351753, 0.11343459784984589, 0.24673642218112946, -0.21345295011997223, -0.1574384868144989, -0.19150245189666748, 0.3806436061859131, 0.06625567376613617, -0.01400253176689148, -0.2688513994216919, 0.34863415360450745, -0.08170103281736374, -0.04216688498854637, 0.21618306636810303, 0.39733579754829407, 0.2929588556289673, 0.1073886901140213, -0.387789785861969, 0.2837318480014801, -0.028825001791119576, 0.30627208948135376, -0.5626251101493835, -0.11356087028980255, 0.11043499410152435, -0.5467311143875122, 0.21705017983913422, 0.3450065851211548, 0.2646118402481079, -0.20001885294914246, 0.041940562427043915, 0.32497256994247437, 0.3049282729625702, 0.04505419358611107, 0.10005415976047516, 0.023869095370173454, 0.3756217062473297, 0.026568222790956497, 0.011328654363751411, 0.1897272765636444, 0.2329135239124298, -0.1197347491979599, 0.18640926480293274, -0.00419236533343792, -0.4241921901702881, -0.2908013164997101, 0.21863146126270294, -0.09064328670501709, 0.06915131211280823, 0.08613331615924835, -0.24817994236946106, -0.09171406924724579, 0.0827765092253685, -0.4892900288105011, 0.45087480545043945, 0.16140657663345337, 0.05518718063831329, 0.006113201379776001, 0.08683376014232635, 0.011380612850189209, 0.06580036878585815, 0.14469219744205475, -0.005624613258987665, 0.4211510717868805, 0.18766285479068756, 0.10315454751253128, -0.28971824049949646, -0.12507595121860504, -0.03925158455967903, 0.020246721804142, -0.36577120423316956, -0.06415428966283798, -0.10134855657815933, 0.208437979221344, -0.12974663078784943, -0.3509393334388733, -0.20307999849319458, 0.09449507296085358, 0.16756445169448853, 0.5011946558952332, 0.08346506953239441, 0.280744343996048, 0.11111731827259064, 0.1322644054889679, 0.3202252984046936, -0.08486061543226242, -0.11254313588142395, 0.24084578454494476, -0.3072723150253296, 0.08312074840068817, 0.21011671423912048, 0.21467821300029755, -0.11890053749084473, 0.20838333666324615, -0.0339248962700367, -0.16327737271785736, 0.13309228420257568, 0.0975160226225853, 0.10696342587471008, 0.2580432891845703, -0.18729299306869507, 0.073126882314682, 0.08135673403739929, -0.39874017238616943, 0.15985426306724548, -0.07204563170671463, -0.216023251414299, 0.21862322092056274, 0.1455623060464859, 0.10816766321659088, -0.005702150985598564, -0.5721536874771118, -0.39938533306121826, -0.6159628033638, 0.10750413686037064, -0.19234482944011688, 0.042098402976989746, 0.23836587369441986, 0.031172871589660645, 0.11632195115089417, 0.30178195238113403, 0.24306617677211761, -0.3142019510269165, 0.10472217202186584, 0.3863096833229065, -0.16173610091209412, -0.26559311151504517, -0.29179665446281433, -0.009400617331266403, 0.18604716658592224, 0.08483316749334335, -0.18889208137989044, 0.06213689222931862, -0.00227167084813118, 0.1255517154932022, -0.21251490712165833, -0.05852942168712616, 0.05353932082653046, 0.09959983825683594, -0.0033104121685028076, 0.06065379083156586, -0.06254810094833374, -0.1536843180656433, 0.2901518642902374, 0.30299338698387146, 0.08391906321048737, 0.31933945417404175, -0.3014785945415497, 0.7779849767684937, 0.22314514219760895, -0.006708674132823944, 0.13641926646232605, -0.12220600992441177, 0.05353783443570137, -0.31411200761795044, -0.3926655650138855, 0.012762890197336674, -0.23389482498168945, -0.16562148928642273, 0.13829579949378967, 0.14433270692825317, -0.18030627071857452, -0.19271986186504364, -0.08746155351400375, -0.0969572514295578, -0.12103453278541565, 0.08611724525690079, -0.22639644145965576, 0.17527742683887482, 0.024422869086265564, 0.26891714334487915, 0.11441482603549957, -0.0007012588903307915, 0.07466574013233185, 0.007974177598953247, 0.03556854650378227, -0.08216354995965958, -0.34457269310951233, -0.17328600585460663, -0.12257634848356247, 0.1232130378484726, 0.2523658871650696, 0.5931090712547302, -0.2285601943731308, -0.061840154230594635, -0.025181032717227936, 0.1983918994665146, 0.27445149421691895, -0.03479263186454773, 0.1432380974292755, 0.22454030811786652, 0.16866809129714966, 0.10796675831079483, -0.12838250398635864, -0.09286226332187653, 0.11116380244493484, 0.23860856890678406, 0.24213074147701263, 0.0759211853146553, -0.01672247238457203, -0.12765702605247498, 0.41792383790016174, 0.0036318339407444, -0.021917950361967087, -0.19848529994487762, -0.2623961567878723, -0.4287227690219879, 0.03710831701755524, 0.13993622362613678, 0.47241878509521484, -0.3999670743942261, -0.23931030929088593, 0.2990635335445404, -0.08216733485460281, 0.3847705125808716, 0.023336708545684814, 0.359151691198349, -0.02834656648337841, 0.3869355320930481, 0.28250765800476074, -0.014218717813491821, 0.08929818868637085, 0.5933657884597778, 0.029067981988191605, 0.010465480387210846, 0.12653851509094238, -0.09945496171712875, 0.15789690613746643, 0.30570799112319946, -0.04772435873746872, -0.10677138715982437, 0.014444269239902496, -0.07290029525756836, 0.01524566113948822, 0.138389453291893, 0.3538694679737091, 0.06496971845626831, -0.2871335446834564, -0.28024110198020935, 0.4617188274860382, -0.0008603204041719437, -0.17623686790466309, 0.3594689667224884, -0.22129254043102264, -0.11025162041187286, 0.3707258701324463, -0.38375094532966614, 0.8764618039131165, 0.07082941383123398, 0.10847347974777222, 0.32279670238494873, 0.09891104698181152, -0.3808342218399048, -0.27954596281051636, 0.14213266968727112, -0.10903601348400116, -0.18400536477565765, -0.08390408754348755, -0.12894824147224426, -0.11714794486761093, 0.10049793124198914, -0.21108901500701904, 0.04962297901511192, 0.00029465556144714355, -0.036254096776247025, 0.18181294202804565, -0.012261200696229935, 0.0027205664664506912, -0.24547746777534485, -0.07784535735845566, 0.13703526556491852, 0.0707501545548439, 0.4157436490058899, 0.15714332461357117, -0.15781059861183167, -0.0006147362291812897, -0.35339266061782837, -0.20187345147132874, 0.3469683825969696, -0.28111112117767334, 0.2563435435295105, 0.16920247673988342, -0.31955546140670776, 0.22913917899131775, 0.205008864402771, -0.05801960825920105, 0.1468360722064972, -0.18540973961353302, 0.15035994350910187, 0.3394874632358551, 0.16360971331596375, -0.10744071751832962, -0.0992688238620758, 0.4505637586116791, 0.002344779670238495, -0.3948904573917389, 0.30273905396461487, -0.0366470105946064, -0.10280606150627136, -0.2446804791688919, -0.12802527844905853, 0.3956679105758667, -0.2602629065513611, -0.24836763739585876, 0.07267642021179199, 0.015820689499378204, -0.1586066037416458, 0.19711770117282867, 0.09510849416255951, -0.45741400122642517, 0.028214801102876663, 0.31503042578697205, 0.08910523355007172, 0.10582447052001953, 0.5308804512023926, 0.015043191611766815, -0.36270320415496826, 0.5061203241348267, 0.13819177448749542, -0.06777015328407288, -0.2327660322189331, -0.03931339830160141, 0.27101194858551025, -0.19263631105422974, -0.11039717495441437, -0.009782472625374794, -0.19176644086837769, -0.19677826762199402, 0.3186355531215668, 0.05878850072622299, -0.1559913158416748, -0.057765327394008636, -0.4568287134170532, -0.5657240748405457, 0.15869483351707458, -0.10178613662719727, 0.20897777378559113, -0.16781097650527954, -0.18956448137760162, -0.026761062443256378, -0.0589294359087944, -0.3870607316493988, 0.05480540543794632, -0.06297855079174042, 0.0999600812792778, 0.27270448207855225, -0.16426324844360352, 0.04474262893199921, 0.0265624038875103, 0.23769202828407288, 0.17529058456420898, -0.0552951842546463, -0.18567752838134766, -0.013015523552894592, 0.17504794895648956, 0.08672691881656647, -0.3237152397632599, -0.22928877174854279, -0.1464901715517044, -0.13714434206485748, -0.22367677092552185, 0.1038498729467392, 0.36406049132347107, -0.022791363298892975, 0.011690312065184116, -0.40502873063087463, 0.08246207982301712, -0.022724483162164688, 0.1384677290916443, -0.12262028455734253, -0.09483632445335388, 0.125444233417511, 0.11731612682342529, -0.040981706231832504, -0.13955026865005493, -0.5215925574302673, 0.028229083865880966, 0.166889026761055, -0.08287642896175385, 0.2885003387928009, -0.20742572844028473, 0.023350883275270462, 0.1534864604473114, 0.17833998799324036, 0.22904759645462036, -0.40502193570137024, 0.11768928170204163, 0.15575948357582092, 0.30946847796440125, -0.1979725956916809, -0.19519749283790588, -0.05556945875287056, -0.3566167950630188, -0.04044649004936218, 0.09975684434175491, 0.263909250497818, -0.27224308252334595, 0.09460924565792084, -0.06355400383472443, 0.1149560958147049, -0.05487045645713806, 0.07927536964416504, 0.27197736501693726, 0.029953155666589737, -0.07294219732284546, 0.09187383204698563, 0.02994370087981224, 0.21672853827476501, 0.5923694372177124, -0.42480015754699707, 0.43267181515693665, 0.007541116327047348, 0.014589961618185043, 0.08591510355472565, -0.545336127281189, -0.27120423316955566, 0.013564765453338623, -0.23915520310401917, 0.10482220351696014, -0.12491707503795624, 0.33046218752861023, -0.4854198694229126, -0.17039050161838531, -0.12720799446105957, -0.05337418243288994, -0.26143020391464233, -0.09688717126846313, 0.053214818239212036, -0.30268052220344543, -0.4047578275203705, -0.10391964018344879, -0.010831918567419052, 0.2150077521800995, 0.15841497480869293, -0.03850564360618591, -0.14627379179000854, -0.007476938888430595, -0.07077887654304504, 0.37528616189956665, -0.0927477702498436, -0.24464718997478485, 0.21934214234352112, -0.012609526515007019, -0.04824262857437134, 0.41779735684394836, 0.15856170654296875, 0.312956303358078, 0.3220409154891968, -0.3420359194278717, 0.07354548573493958, 0.05669376999139786, -0.115291066467762, 0.1148514449596405, 0.32719770073890686, 0.13943888247013092, 0.38605254888534546, 0.11742191016674042, 0.23281168937683105, -0.19685351848602295, 0.09477148950099945, 0.1058148592710495, 0.08537159860134125, -0.40089720487594604, 0.21658986806869507, -0.24778860807418823, -0.22027352452278137, -0.3081435561180115, -0.18531757593154907, -0.2964019477367401, -0.17727017402648926, 0.4417182207107544, 0.2638341784477234, 0.2341618537902832, -0.01544691901654005, 0.1204778403043747, -0.18904343247413635, -0.05240132287144661, 0.4060726463794708, -0.0002383999526500702, -0.18109220266342163, -0.015808366239070892, -0.6611716151237488, 0.25455549359321594, 0.31814298033714294, -0.056598737835884094, 0.07916855067014694, -0.03993195295333862, 0.11823325604200363, 0.013550026342272758, -0.008908763527870178, -0.2718965709209442, -0.03050583228468895, -0.028249479830265045, -0.17853687703609467, -0.3677852749824524, 0.02870238944888115, 0.35267192125320435, -0.0643632709980011, -0.6398674249649048, 0.03712386637926102, -0.07836344838142395, 0.1214117780327797, -0.09915275126695633, -0.2847301959991455, -0.29973575472831726, 0.1232624277472496, 0.27655452489852905, 0.07732932269573212, 0.5063241124153137, -0.15732264518737793, -0.00774792768061161, -0.2325659990310669, -0.26176783442497253, 0.14485079050064087, -0.2761182188987732, -0.024633850902318954, 0.6653165817260742, 0.036661311984062195, 0.16386963427066803, -0.3734433948993683, 0.023440491408109665, 0.0439298152923584, -0.42950233817100525, -0.47824588418006897, 0.142039954662323, -0.3743578791618347, 0.21130189299583435, 0.13433736562728882, 0.11924183368682861, -0.18252262473106384, 0.07016418129205704, -0.34905940294265747, -0.403695672750473, 0.5995512008666992, -0.13383184373378754, -0.47199493646621704, -0.21616792678833008, 0.42601847648620605, 0.05231114849448204, 0.17053218185901642, -0.703673243522644, 0.1421889364719391, 0.2175484597682953, -0.05716594308614731, -0.11004135012626648, 0.007312223315238953, -0.0814163088798523, -0.12317496538162231, -0.11643651127815247, 0.2122148871421814, 0.09860826283693314, -0.07903971523046494, 0.3134405016899109, -0.29781121015548706 ]
https://github.com/huggingface/datasets/issues/3374
NonMatchingChecksumError for the CLUE:cluewsc2020, chid, c3 and tnews
Seems like the issue still exists,: `Downloading and preparing dataset clue/chid (download: 127.15 MiB, generated: 259.71 MiB, post-processed: Unknown size, total: 386.86 MiB) to /mnt/cache/tanhaochen/.cache/huggingface/datasets/clue/chid/1.0.0/e55b490cb7809dcd8db31b9a87119f2e2ec87cdc060da8a9ac070b070ca3e379... Traceback (most recent call last): File "/mnt/cache/tanhaochen/PromptCLUE/test_datasets.py", line 3, in <module> cluewsc2020 = datasets.load_dataset("clue","chid") File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/load.py", line 1667, in load_dataset builder_instance.download_and_prepare( File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/builder.py", line 593, in download_and_prepare self._download_and_prepare( File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/builder.py", line 663, in _download_and_prepare verify_checksums( File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://storage.googleapis.com/cluebenchmark/tasks/chid_public.zip'] `
Hi, it seems like there are updates in cluewsc2020, chid, c3 and tnews, since i could not load them due to the checksum error.
80
NonMatchingChecksumError for the CLUE:cluewsc2020, chid, c3 and tnews Hi, it seems like there are updates in cluewsc2020, chid, c3 and tnews, since i could not load them due to the checksum error. Seems like the issue still exists,: `Downloading and preparing dataset clue/chid (download: 127.15 MiB, generated: 259.71 MiB, post-processed: Unknown size, total: 386.86 MiB) to /mnt/cache/tanhaochen/.cache/huggingface/datasets/clue/chid/1.0.0/e55b490cb7809dcd8db31b9a87119f2e2ec87cdc060da8a9ac070b070ca3e379... Traceback (most recent call last): File "/mnt/cache/tanhaochen/PromptCLUE/test_datasets.py", line 3, in <module> cluewsc2020 = datasets.load_dataset("clue","chid") File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/load.py", line 1667, in load_dataset builder_instance.download_and_prepare( File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/builder.py", line 593, in download_and_prepare self._download_and_prepare( File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/builder.py", line 663, in _download_and_prepare verify_checksums( File "/mnt/cache/tanhaochen/dependencies/datasets/src/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://storage.googleapis.com/cluebenchmark/tasks/chid_public.zip'] `
[ 0.02052348479628563, 0.029557213187217712, -0.03954966738820076, 0.08444785326719284, 0.09496411681175232, -0.019828345626592636, 0.007656507194042206, 0.39464297890663147, -0.02620580792427063, 0.2592135965824127, -0.15159039199352264, 0.1983184814453125, 0.04841798171401024, -0.039828017354011536, -0.2823023200035095, 0.44820472598075867, 0.1787072867155075, 0.08103043586015701, -0.22171181440353394, -0.000459086149930954, -0.29485785961151123, 0.20388592779636383, -0.09920990467071533, -0.16951881349086761, -0.2627164423465729, 0.07802737504243851, 0.015383696183562279, 0.100141741335392, -0.1690971702337265, -0.6268137097358704, 0.30060210824012756, 0.195567786693573, -0.052234724164009094, 0.28088703751564026, -0.00011661185999400914, 0.036573007702827454, 0.3726639747619629, -0.07307510823011398, -0.5593642592430115, -0.07175178825855255, -0.22089025378227234, -0.2990599274635315, -0.008148442022502422, -0.105982206761837, 0.05293268710374832, 0.43246158957481384, 0.25306668877601624, 0.12637071311473846, 0.023946665227413177, 0.2127453088760376, 0.18703460693359375, 0.5422840118408203, 0.25047972798347473, 0.02149348519742489, 0.38150298595428467, -0.3100491166114807, -0.0011442936956882477, 0.35629940032958984, 0.4268054962158203, 0.09994541853666306, -0.10883284360170364, 0.28210023045539856, -0.05724275857210159, 0.12746280431747437, 0.12169928103685379, -0.13027247786521912, 0.4892968535423279, -0.2158907949924469, 0.09298783540725708, 0.3567410409450531, 0.06991145014762878, 0.052594881504774094, -0.3715975880622864, -0.18434318900108337, -0.2772148549556732, -0.04014544188976288, 0.44247007369995117, -0.07743708789348602, -0.30098390579223633, -0.19310882687568665, -0.3348332345485687, 0.2341245859861374, 0.04049266129732132, 0.15585243701934814, 0.14045795798301697, 0.20023754239082336, 0.03964904323220253, -0.177427738904953, -0.02741261199116707, -0.24295254051685333, 0.04451701045036316, -0.15433309972286224, -0.12623567879199982, 0.015500287525355816, -0.5700606107711792, -0.15898394584655762, 0.2233877182006836, 0.509783923625946, 0.223578542470932, 0.3083151578903198, 0.15594103932380676, 0.4459996521472931, -0.12679779529571533, 0.1355055868625641, 0.11287938058376312, -0.008892201818525791, 0.24179193377494812, -0.06521990895271301, 0.2127414047718048, 0.48995164036750793, 0.03485320881009102, 0.10854751616716385, -0.10935063660144806, -0.21236486732959747, 0.07014551758766174, 0.2057519555091858, 0.3934561610221863, -0.5251980423927307, -0.2844412326812744, 0.09237917512655258, 0.20568326115608215, 0.030503449961543083, 0.08726007491350174, 0.4240478277206421, -0.3059844672679901, 0.3214538097381592, -0.07811905443668365, -0.11830250918865204, -0.07421031594276428, -0.19664137065410614, -0.25941067934036255, -0.15550333261489868, -0.19062355160713196, 0.2014477401971817, 0.1132296621799469, -0.19960664212703705, 0.21811366081237793, -0.045657750219106674, 0.5281757712364197, -0.0101783387362957, -0.04277072101831436, -0.04610459879040718, -0.007012471556663513, 0.2603493630886078, -0.3032836318016052, 0.09289680421352386, 0.3188854455947876, -0.01240774616599083, -0.13097479939460754, 0.0017805062234401703, -0.14674687385559082, -0.10290594398975372, -0.03092246688902378, 0.2080095112323761, -0.32454413175582886, -0.05072467774152756, 0.00044177472591400146, -0.31496232748031616, 0.35037463903427124, -0.20406876504421234, 0.07906144857406616, -0.3314082622528076, -0.41121894121170044, -0.30498430132865906, 0.07699109613895416, 0.18196341395378113, 0.11767333745956421, 0.024749383330345154, 0.3202456831932068, -0.15328657627105713, -0.054933540523052216, 0.21736066043376923, -0.007965999655425549, -0.06700257211923599, -0.28163599967956543, -0.177665114402771, 0.13038033246994019, -0.36435434222221375, -0.306880384683609, 0.04449167475104332, 0.2426495999097824, 0.32707059383392334, -0.007873229682445526, -0.08963636308908463, -0.17051921784877777, -0.3500792384147644, 0.10460498183965683, -0.18884871900081635, -0.1031406819820404, 0.040998779237270355, -0.24484139680862427, -0.28071919083595276, 0.2566516399383545, 0.08398483693599701, 0.02204250916838646, -0.012963011860847473, 0.10297828167676926, -0.3444347083568573, 0.29498744010925293, -0.19406786561012268, -0.048576049506664276, 0.15697576105594635, 0.46010902523994446, 0.22639138996601105, 0.1617743819952011, -0.1967444121837616, -0.5187571048736572, 0.3473885953426361, -0.10658445954322815, 0.14709360897541046, 0.059295497834682465, -0.23504891991615295, -0.16924354434013367, -0.2112555354833603, -0.18056608736515045, 0.026002638041973114, 0.1199902892112732, 0.3110150694847107, 0.20829617977142334, -0.06546900421380997, -0.21791930496692657, 0.1659241020679474, -0.35375329852104187, 0.11402875930070877, -0.43195196986198425, 0.039078839123249054, -0.1189013347029686, -0.17338283360004425, 0.06078323721885681, 0.18208760023117065, 0.22176900506019592, 0.014496495015919209, -0.15204206109046936, 0.5043880343437195, 0.001695459708571434, -0.13859938085079193, -0.4013761878013611, 0.3150392174720764, -0.04644937813282013, -0.12022030353546143, -0.18661464750766754, 0.3891036808490753, -0.01581585966050625, -0.1253187507390976, 0.024835653603076935, 0.3982480764389038, -0.19229108095169067, 0.2257644534111023, 0.25275182723999023, -0.08660062402486801, 0.12908634543418884, -0.14636988937854767, -0.1449085772037506, -0.11265686899423599, 0.2302125245332718, -0.0087924525141716, -0.2811586260795593, 0.08988917618989944, 0.10592021048069, 0.03174126148223877, 0.1645512878894806, -0.020719053223729134, 0.0350656732916832, -0.053559400141239166, 0.3409254252910614, -0.13072426617145538, -0.1482585072517395, 0.5637940168380737, 0.21200720965862274, 0.14024057984352112, 0.0405660942196846, 0.10793230682611465, -0.007581648416817188, -0.04876954108476639, 0.04930991679430008, 0.07074590772390366, 0.06282832473516464, 0.6440424919128418, 0.13248278200626373, -0.10794173926115036, -0.2843616306781769, 0.16438619792461395, 0.05739142745733261, 0.2595638334751129, -0.2986549139022827, -0.07142814993858337, -0.41671082377433777, -0.07697337120771408, -0.03378508239984512, 0.018528666347265244, -0.2412770688533783, -0.3044419288635254, 0.046278469264507294, 0.35486575961112976, -0.15713909268379211, 0.35526832938194275, -0.6084523797035217, -0.024678170680999756, -0.08050237596035004, 0.041396934539079666, -0.2579578161239624, -0.20716845989227295, -0.12216486781835556, 0.007422741502523422, 0.3467196822166443, 0.00394247705116868, 0.23557049036026, -0.45425286889076233, -0.08098234236240387, -0.37400829792022705, -0.4232886731624603, -0.026577487587928772, 0.016898972913622856, 0.07065033912658691, 0.4562721252441406, 0.07628607749938965, -0.2394343763589859, -0.3309541344642639, 0.3979721963405609, -0.4438556730747223, -0.46253570914268494, -0.003254501149058342, -0.07184230536222458, 0.007643843535333872, 0.024322979152202606, -0.20517531037330627, 0.07002668082714081, -0.20063678920269012, -0.07264161109924316, 0.0031579844653606415, 0.14112263917922974, 0.4890056550502777, -0.16668285429477692, 0.011697004549205303, -0.32436734437942505, 0.3560531437397003, -0.23001281917095184, -0.6038921475410461, 0.5373362302780151, 0.004127399995923042, -0.25086909532546997, 0.1404348611831665, -0.23381361365318298, 0.15760858356952667, 0.11124716699123383, -0.2945535182952881, -0.2656661868095398, -0.262979656457901, 0.15580670535564423, 0.22347043454647064, -0.314483106136322, 0.18154315650463104, -0.07362869381904602, -0.1675928831100464, -0.2052905559539795, -0.24866756796836853, 0.12801696360111237, 0.10544178634881973, 0.617835521697998, -0.10781676322221756, 0.4386000633239746, 0.10627950727939606, 0.06645290553569794, 0.2654339075088501, -0.07304953038692474, 0.16731804609298706, 0.1916288584470749, 0.44496896862983704, 0.06199219822883606, -0.12540777027606964, 0.2031221240758896, 0.020130544900894165, -0.011120458133518696, 0.16703563928604126, 0.013344958424568176, -0.012082068249583244, -0.11222340911626816, 0.04538201168179512, -0.27700188755989075, -0.25798749923706055, -0.11443556845188141, -0.05518796294927597, 0.21839383244514465, 0.09134618937969208, -0.0559111051261425, -0.08387909829616547, -0.3409730792045593, 0.25817006826400757, 0.26069116592407227, -0.06530217081308365, -0.17291338741779327, -0.4955696165561676, 0.1446736603975296, -0.07476570457220078, 0.19459906220436096, 0.3899945318698883, 0.5194453001022339, -0.014866016805171967, -0.19159230589866638, -0.027987033128738403, -0.09754549711942673, 0.2853042781352997, -0.2776029407978058, 0.27942728996276855, 0.1410764753818512, -0.05606298893690109, 0.09821703284978867, -0.18598710000514984, 0.10736216604709625, -0.18127328157424927, 0.4319724142551422, 0.5027452707290649, -0.2847535014152527, -0.03715285286307335, 0.26429545879364014, 0.22093605995178223, -0.06866559386253357, -0.04023993760347366, -0.4832044839859009, -0.37602290511131287, -0.22637374699115753, -0.11882879585027695, 0.013351162895560265, 0.2314741015434265, 0.04037170857191086, 0.05809449777007103, 0.07028514891862869, 0.22021391987800598, 0.1954817771911621, 0.07105794548988342, 0.08987374603748322, 0.25509345531463623, 0.24482500553131104, 0.027672182768583298, 0.18920662999153137, 0.32394540309906006, 0.5519054532051086, -0.22630107402801514, -0.42354899644851685, -0.15945705771446228, 0.12195664644241333, -0.07951448112726212, 0.25155138969421387, 0.06871403753757477, -0.014343403279781342, 0.20967507362365723, -0.0894426703453064, 0.30198660492897034, -0.03465478867292404, 0.006956963334232569, 0.010422821156680584, -0.17274248600006104, -0.10603075474500656, -0.10215326398611069, -0.2906182110309601, 0.01399724930524826, 0.07019241899251938, -0.05725067853927612, 0.07295195013284683, 0.033360835164785385, 0.34995943307876587, 0.9044592380523682, -0.029970429837703705, -0.001505739986896515, 0.1364492028951645, -0.2064928412437439, 0.3105815052986145, -0.01310812309384346, 0.12892314791679382, -0.4047330617904663, -0.3417667746543884, 0.05267738550901413, -0.12924103438854218, 0.13441288471221924, 0.07547907531261444, 0.022315312176942825, 0.4246022403240204, 0.2549256682395935, 0.5559666752815247, 0.15337243676185608, 0.006362035870552063, -0.3285195529460907, 0.1550164371728897, 0.10774258524179459, 0.15778449177742004, -0.1823287457227707, 0.12694236636161804, -0.28221455216407776, 0.0604688860476017, 0.2293858826160431, -0.38391178846359253, -0.12440590560436249, 0.2561451494693756, -0.4004996716976166, 0.29700005054473877, 0.5153930187225342, -0.2753523290157318, -0.19446523487567902, 0.3843432664871216, 0.5611312389373779, -0.07087041437625885, -0.047969162464141846, 0.24294067919254303, 0.3300195634365082, -0.006549891550093889, -0.11017569154500961, -0.08393358439207077, 0.1322522759437561, -0.06564150750637054, -0.20059144496917725, -0.08512835949659348, 0.04777945578098297, -0.4899040460586548, 0.03390049934387207, -0.07995158433914185, 0.026674073189496994, -0.027838269248604774, 0.0006544366478919983, -0.3558598756790161, 0.16230463981628418, -0.2985115051269531, 0.17521797120571136, 0.1393657922744751, 0.020145591348409653, 0.001020282506942749, 0.042370058596134186, -0.2721042037010193, 0.08014439046382904, 0.43299031257629395, -0.13374483585357666, -0.6535673141479492, 0.45428723096847534, -0.004452940076589584, -0.427800714969635, -0.19096338748931885, 0.07940758019685745, -0.2627643048763275, -0.11319354176521301, 0.05682424083352089, 0.04195191338658333, 0.24011944234371185, 0.006025918759405613, 0.6591302752494812, 0.34912681579589844, 0.16572433710098267, 0.1519951969385147, -0.3658510446548462, -0.2822929918766022, 0.16851715743541718, 0.04785744473338127, 0.5778887271881104, -0.40220919251441956, -0.2981969118118286, -0.13591420650482178, -0.03558877855539322, -0.3124454915523529, 0.048610031604766846, -0.36017271876335144, 0.027578044682741165, -0.08076020330190659, -0.014901533722877502, 0.14084847271442413, -0.0015863529406487942, 0.12340979278087616, 0.016414733603596687, -0.1872556358575821, -0.19871816039085388, -0.0346599817276001, 0.14087113738059998, 0.24376004934310913, -0.0594172403216362, 0.009019565768539906, 0.1353699117898941, 0.10890014469623566, -0.227927103638649, -0.08143360912799835, 0.29273465275764465, -0.10281123220920563, 0.2149895876646042, 0.030776159837841988, 0.07263338565826416, 0.20266151428222656, 0.12979641556739807, -0.22020921111106873, 0.021435782313346863, 0.08936477452516556, -0.1559026688337326, -0.13370303809642792, -0.0021037831902503967, 0.5497702956199646, 0.18850767612457275, -0.05176399648189545, -0.2756679058074951, 0.1358589231967926, -0.3187863826751709, -0.41520777344703674, 0.25438255071640015, -0.07570609450340271, 0.2736644446849823, -0.21114294230937958, -0.14004337787628174, 0.47342756390571594, 0.23920117318630219, -0.23055848479270935, 0.16655996441841125, 0.364960640668869, 0.03900764882564545, 0.051160480827093124, 0.06040146201848984, -0.16770996153354645, -0.7426767349243164, 0.5581024885177612, 0.13058888912200928, 0.006532944738864899, -0.4413611888885498, 0.17521296441555023, 0.4062717854976654, 0.04070550575852394, -0.2686922252178192, 0.2571077048778534, -0.23790431022644043, 0.04445343837141991, -0.04265850782394409, 0.11037519574165344, 0.2819816470146179, -0.34543314576148987, 0.26165902614593506, -0.1711389422416687, -0.30841803550720215, 0.1316392570734024, 0.35343313217163086, -0.10628363490104675, -0.07999398559331894, 0.1559258997440338, 0.268129825592041, -0.010511676780879498, 0.21582506597042084, -0.509262204170227, -0.045997511595487595, -0.1351706087589264, -0.15866883099079132, -0.23953162133693695, -0.21281582117080688, -0.06704128533601761, 0.23915398120880127, 0.050810519605875015, 0.052236415445804596, 0.2560400366783142, 0.09513700008392334, -0.1300097554922104, -0.2945823669433594, -0.20709657669067383, -0.0247078537940979, 0.12871834635734558, -0.1773541271686554, 0.13729648292064667, 0.33480551838874817, -0.011430718004703522, 0.14436420798301697, 0.4518359303474426, 0.42007943987846375, 0.44978487491607666, -0.010992120951414108, 0.15258213877677917, -0.26634660363197327, 0.08960354328155518, 0.00018200650811195374, 0.6130701899528503, 0.03189978376030922, -0.09017883241176605, 0.2523987293243408, 0.06829003989696503, -0.11308662593364716, -0.01794269308447838, -0.4529592990875244, -0.3976384997367859, 0.09255652129650116, 0.45799002051353455, 0.050107937306165695, 0.2200133502483368, 0.08064539730548859, 0.3446924090385437, -0.3360459804534912, -0.4264797568321228, 0.10565504431724548, 0.1569303423166275, 0.1843222677707672, 0.18475888669490814, 0.08211157470941544, -0.18140247464179993, 0.31300023198127747, 0.3953273892402649, 0.03913361206650734, -0.1528167724609375, -0.4517784118652344, -0.6337826251983643, 0.21747832000255585, -0.028392452746629715, 0.14277705550193787, 0.07187874615192413, 0.11518779397010803, -0.048000089824199677, 0.17867819964885712, 0.28341054916381836, -0.2628544569015503, 0.007920329459011555, 0.07071429491043091, -0.15171518921852112, 0.04026104137301445, 0.13632585108280182, -0.2921319305896759, -0.04863303154706955, -0.3082422912120819, 0.020423881709575653, 0.2583465576171875, 0.06408187747001648, -0.024107523262500763, 0.05469227582216263, -0.2162875086069107, -0.06755887717008591, 0.03731459006667137, 0.17231008410453796, 0.6807501316070557, 0.02112170308828354, -0.24884912371635437, -0.13454513251781464, -0.3774263858795166, 0.04115991294384003, 0.3479447364807129, -0.2653791904449463, 0.18263566493988037, 0.058558546006679535, 0.10797692835330963, -0.2556757926940918, 0.4046166241168976, -0.05480910837650299, -0.40982139110565186, -0.09565583616495132, 0.100988008081913, -0.035522136837244034, 0.10584016144275665, -0.007962439209222794, -0.10153689235448837, 0.08831928670406342, 0.2780562937259674, -0.21069645881652832, -0.29451996088027954, 0.7754060626029968, -0.31778231263160706, -0.10688088834285736, -0.43177369236946106, 0.33290958404541016, -0.15183696150779724, -0.17761610448360443, -0.7246081233024597, 0.08269571512937546, 0.3022233545780182, 0.4292645752429962, -0.3144785463809967, 0.1821933537721634, -0.35613352060317993, 0.1288219839334488, -0.08605138957500458, 0.34885478019714355, -0.13079723715782166, -0.056162603199481964, -0.25733837485313416, -0.1736694872379303 ]
https://github.com/huggingface/datasets/issues/3369
[Audio] Allow resampling for audio datasets in streaming mode
This requires implementing `cast_column` for iterable datasets, it could be a very nice addition ! <s>It can also be useful to be able to disable the audio/image decoding for the dataset viewer (see PR https://github.com/huggingface/datasets/pull/3430) cc @severo </s> EDIT: actually following https://github.com/huggingface/datasets/issues/3145 the dataset viewer might not need it anymore
Many audio datasets like Common Voice always need to be resampled. This can very easily be done in non-streaming mode as follows: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test") ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` However in streaming mode it fails currently: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test", streaming=True) ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` with the following error: ``` AttributeError: 'IterableDataset' object has no attribute 'cast_column' ``` It would be great if we could add such a feature (I'm not 100% sure though how complex this would be)
50
[Audio] Allow resampling for audio datasets in streaming mode Many audio datasets like Common Voice always need to be resampled. This can very easily be done in non-streaming mode as follows: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test") ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` However in streaming mode it fails currently: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test", streaming=True) ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` with the following error: ``` AttributeError: 'IterableDataset' object has no attribute 'cast_column' ``` It would be great if we could add such a feature (I'm not 100% sure though how complex this would be) This requires implementing `cast_column` for iterable datasets, it could be a very nice addition ! <s>It can also be useful to be able to disable the audio/image decoding for the dataset viewer (see PR https://github.com/huggingface/datasets/pull/3430) cc @severo </s> EDIT: actually following https://github.com/huggingface/datasets/issues/3145 the dataset viewer might not need it anymore
[ -0.5598963499069214, -0.03991003334522247, -0.06835541129112244, -0.1406605988740921, 0.4281196594238281, 0.07942753285169601, -0.01970025524497032, 0.30219918489456177, -0.03308843821287155, 0.3280916213989258, -0.4938260018825531, 0.29272326827049255, -0.29103168845176697, 0.23124681413173676, 0.07012397050857544, -0.5171604156494141, 0.1303921341896057, 0.2717285752296448, -0.3455243408679962, 0.13982684910297394, -0.2682448625564575, -0.06545434892177582, -0.2622654438018799, -0.22520826756954193, 0.1560017317533493, -0.015669936314225197, 0.17352767288684845, -0.3102465867996216, -0.06532991677522659, -0.4529256224632263, -0.08914726227521896, 0.36779630184173584, 0.17122404277324677, 0.19470682740211487, -0.00012036688713124022, -0.032122645527124405, 0.23267704248428345, 0.0323263481259346, -0.33818548917770386, 0.033520154654979706, -0.48901206254959106, -0.0983666256070137, 0.026274273172020912, 0.01829712837934494, -0.08716404438018799, -0.3974839746952057, -0.06740210950374603, -0.43691444396972656, 0.2930743098258972, 0.10301751643419266, 0.15694023668766022, 0.19177475571632385, -0.2427002191543579, 0.1174410879611969, -0.09160969406366348, 0.24734444916248322, -0.33255624771118164, -0.04191581532359123, 0.46057695150375366, 0.36994287371635437, 0.033521298319101334, 0.4571172595024109, -0.29857730865478516, -0.04189867153763771, 0.2328648865222931, -0.19497904181480408, -0.3876965045928955, -0.4129321873188019, 0.11365010589361191, 0.3623906373977661, 0.8246941566467285, -0.40159082412719727, -0.6885800957679749, -0.36068737506866455, 0.4200986623764038, -0.28961870074272156, 0.006940178573131561, 0.1210591122508049, 0.036353565752506256, 0.31339889764785767, -0.6834563612937927, -0.03543373942375183, -0.07899521291255951, 0.09397615492343903, 0.2813487648963928, 0.05685069411993027, -0.09561849385499954, 0.11051084846258163, 0.4091552495956421, -0.06170940399169922, 0.015261577442288399, -0.046747609972953796, 0.11050914227962494, 0.2546933591365814, -0.433901309967041, -0.33045098185539246, -0.15786725282669067, 0.06852835416793823, 0.12564489245414734, 0.2860122323036194, 0.2917952537536621, 0.17815837264060974, 0.13976696133613586, 0.03548847883939743, 0.20032431185245514, -0.062238968908786774, -0.13277718424797058, -0.1232488751411438, 0.39266330003738403, 0.07618183642625809, 0.17047792673110962, -0.1057642474770546, 0.0450051911175251, 0.05721726641058922, 0.16587986052036285, 0.1689324676990509, 0.08990339934825897, 0.04062945768237114, -0.09865742176771164, -0.10705927014350891, -0.20738384127616882, -0.13250893354415894, 0.1452476531267166, -0.03696382790803909, 0.18785583972930908, 0.30128395557403564, -0.19138666987419128, 0.430411159992218, 0.1752297431230545, -0.3052102029323578, 0.022630024701356888, -0.11055111885070801, 0.08539222180843353, 0.25714465975761414, 0.33573096990585327, -0.2983861565589905, 0.025794433429837227, 0.23416170477867126, 0.13611344993114471, -0.024628886952996254, 0.15380685031414032, -0.018285464495420456, -0.12625640630722046, 0.38773113489151, -0.18080061674118042, 0.01161726750433445, -0.08102788031101227, 0.20371057093143463, -0.19319409132003784, 0.11730081588029861, 0.03195558115839958, -0.2637953460216522, -0.11540909111499786, 0.05918099358677864, -0.29556459188461304, -0.08941522240638733, -0.18743452429771423, 0.4970230162143707, -0.14152050018310547, -0.3647659718990326, 0.3241904079914093, -0.06092575937509537, -0.2746299207210541, 0.02726738713681698, 0.4525732100009918, 0.035437606275081635, -0.37559953331947327, -0.21203158795833588, -0.2530657649040222, -0.2939559519290924, 0.029783427715301514, 0.0827854722738266, -0.016283152624964714, -0.13027092814445496, 0.011743590235710144, 0.06674525141716003, 0.5063064694404602, -0.2447975128889084, -0.42943075299263, 0.043009016662836075, 0.1563761979341507, 0.33839118480682373, 0.33118772506713867, 0.16835206747055054, 0.35491427779197693, -0.07428106665611267, -0.26114147901535034, 0.46841102838516235, -0.21206893026828766, -0.11012613773345947, 0.026166755706071854, -0.238448366522789, 0.041777562350034714, 0.3851338028907776, 0.040271464735269547, 0.403986394405365, 0.08888290077447891, -0.06978166103363037, 0.07509278506040573, -0.23779824376106262, 0.259714812040329, -0.20385771989822388, 0.12379741668701172, -0.06960771977901459, -0.03319840878248215, -0.6629146933555603, -0.1328345537185669, -0.0041193291544914246, 0.3424851596355438, -0.07950757443904877, -0.07078701257705688, -0.3367105722427368, 0.09166421741247177, -0.14317475259304047, -0.14826805889606476, 0.15335214138031006, -0.022526096552610397, 0.0875023752450943, 0.10963647067546844, -0.07469567656517029, -0.5553778409957886, 0.2079329788684845, -0.1297469437122345, -0.0466143824160099, -0.05333970859646797, 0.1536363959312439, 0.2858559489250183, 0.0079618189483881, -0.08519604802131653, 0.39478638768196106, -0.09185818582773209, 0.03382103145122528, -0.04320139437913895, 0.3198715150356293, -0.15843139588832855, 0.4796305298805237, -0.3276023864746094, 0.46504759788513184, 0.22368688881397247, -0.322613000869751, 0.10831388086080551, -0.10046331584453583, 0.13541333377361298, -0.1560811698436737, 0.05840612202882767, 0.3667323887348175, -0.04497824236750603, 0.3632376492023468, 0.031274326145648956, 0.0641760528087616, 0.091388039290905, 0.14030155539512634, -0.511506974697113, -0.17606821656227112, -0.09953232109546661, -0.37949731945991516, 0.22500650584697723, -0.24981974065303802, -0.5284560918807983, -0.11307438462972641, 0.2394348531961441, -0.21405214071273804, 0.005577404052019119, 0.17839062213897705, -0.15482023358345032, -0.014335083775222301, 0.2795886993408203, 0.26091355085372925, 0.35952532291412354, 0.21274137496948242, 0.17864903807640076, 0.15826743841171265, 0.11469722539186478, 0.014051081612706184, 0.1314157247543335, 0.28667694330215454, -0.06582217663526535, 0.3254795968532562, 0.016250910237431526, 0.1429256647825241, -0.3953852653503418, -0.20370395481586456, -0.0033611347898840904, 0.009585386142134666, -0.17510168254375458, -0.20241272449493408, -0.2956284284591675, -0.2708906829357147, -0.08573832362890244, -0.12299550324678421, 0.06458337604999542, -0.07953699678182602, 0.141458198428154, 0.449758917093277, -0.3392570912837982, 0.438487708568573, -0.25270596146583557, 0.3999791741371155, -0.1697012484073639, -0.20397543907165527, -0.23980794847011566, 0.2169279009103775, 0.1976422667503357, 0.014411628246307373, 0.07150761783123016, -0.21926958858966827, 0.28236135840415955, 0.0047227852046489716, 0.13259387016296387, -0.19559240341186523, -0.11827246844768524, 0.13061125576496124, -0.1359400600194931, 0.1313454657793045, 0.18959975242614746, 0.03270025923848152, -0.040489181876182556, -0.44072750210762024, 0.22907766699790955, -0.02875325083732605, 0.1128968894481659, 0.10844995081424713, 0.007040836848318577, 0.25826188921928406, -0.09458018094301224, -0.02336052805185318, -0.31558847427368164, -0.6960621476173401, 0.2818809449672699, -0.32250073552131653, 0.025032389909029007, 0.16154661774635315, 0.06283697485923767, 0.16847658157348633, -0.04326995462179184, 0.3091672956943512, -0.15178881585597992, -0.21865886449813843, 0.3301999270915985, -0.12308734655380249, -0.12457656860351562, -0.21275176107883453, -0.022511405870318413, 0.18181753158569336, 0.42567771673202515, -0.3486185669898987, -0.06566130369901657, -0.17322853207588196, 0.024167288094758987, -0.06249777227640152, 0.032727744430303574, 0.14993974566459656, 0.14449793100357056, 0.02312486432492733, 0.0023072250187397003, -0.13435359299182892, -0.43559515476226807, 0.273970365524292, -0.09559939056634903, 0.1293879896402359, 0.5151427388191223, -0.13187246024608612, 0.4474427103996277, 0.36299094557762146, 0.31334465742111206, 0.286540150642395, -0.0460873544216156, 0.2860628664493561, -0.2387079894542694, -0.37874457240104675, 0.17379575967788696, -0.05906525254249573, 0.033294182270765305, 0.13779301941394806, 0.18426138162612915, -0.2072220891714096, -0.18100136518478394, -0.07874823361635208, 0.11518151313066483, -0.18606114387512207, 0.08342253416776657, -0.1951417475938797, 0.2532486319541931, -0.16008439660072327, 0.15681788325309753, -0.03458992391824722, -0.058187443763017654, -0.02796122431755066, 0.0836128517985344, 0.27912089228630066, -0.08330035954713821, -0.3066181540489197, -0.4866759181022644, -0.29142746329307556, 0.09558752924203873, 0.17503218352794647, 0.5122283101081848, -0.06877126544713974, -0.1692867875099182, 0.1857667714357376, 0.37810197472572327, 0.481512188911438, -0.577633798122406, -0.38683611154556274, 0.020709391683340073, 0.003742322325706482, -0.14101682603359222, 0.08094504475593567, 0.01588280126452446, -0.0862485021352768, -0.14321692287921906, 0.19315215945243835, 0.1532207429409027, -0.0627325177192688, 0.41829898953437805, 0.4994647204875946, 0.10911466181278229, -0.1783350557088852, -0.05398030951619148, -0.2999812066555023, -0.2225380539894104, -0.04089636355638504, 0.0028836913406848907, 0.006260995287448168, 0.10571791976690292, -0.11471302807331085, 0.06933435797691345, -0.14866122603416443, 0.2531571090221405, 0.16486814618110657, -0.05693269520998001, 0.21172437071800232, 0.36110278964042664, 0.2800353169441223, -0.3783785402774811, 0.06926557421684265, 0.5230356454849243, 0.008869906887412071, -0.23706132173538208, 0.012773290276527405, -0.0012625539675354958, 0.4562952220439911, 0.0436401292681694, -0.014155281707644463, 0.2382112741470337, 0.19240128993988037, 0.25723356008529663, -0.48027974367141724, -0.20888377726078033, 0.3378116190433502, 0.005960521288216114, -0.4411754608154297, -0.6721190214157104, 0.6792969107627869, 0.14501389861106873, -0.11421900242567062, 0.4305590093135834, 0.3736322522163391, -0.18584847450256348, 0.07954185456037521, -0.1085570827126503, 0.9664974212646484, 0.1818276196718216, -0.030085522681474686, 0.06712992489337921, -0.5536279678344727, 0.3821775019168854, -0.23836231231689453, 0.19003167748451233, 0.3980690836906433, -0.2658902108669281, -0.22069931030273438, 0.008344065397977829, 0.33056795597076416, 0.02180182933807373, -0.5635307431221008, 0.12422535568475723, -0.10409806668758392, 0.1128503680229187, -0.05907072871923447, 0.06433642655611038, -0.6190633177757263, -0.38663628697395325, -0.11214293539524078, 0.04852980375289917, 0.06963713467121124, -0.12462905049324036, 0.18270790576934814, 0.1125907450914383, 0.42969703674316406, 0.12430082261562347, -0.4868301749229431, -0.19849717617034912, 0.13187603652477264, -0.13310356438159943, -0.13187481462955475, -0.4116141200065613, 0.6284087896347046, 0.2727991044521332, 0.007221058011054993, -0.06121637299656868, -0.18360869586467743, 0.1065215915441513, 0.026517704129219055, 0.5215781331062317, -0.032429296523332596, -0.007076219189912081, 0.40977931022644043, 0.025155603885650635, -0.27476978302001953, 0.12478722631931305, 0.17912501096725464, -0.09453649073839188, -0.00712546706199646, -0.2265266329050064, 0.2767660319805145, -0.3535376787185669, 0.06658226251602173, -0.06033006310462952, 0.22172126173973083, -0.2974179983139038, 0.05874691531062126, -0.1907997876405716, -0.11439966410398483, 0.3893800675868988, -0.15832188725471497, -0.1215272918343544, -0.18995413184165955, 0.42199933528900146, 0.047453686594963074, -0.06924815475940704, 0.3565944731235504, -0.08803892135620117, -0.3439069986343384, -0.200202077627182, -0.019374608993530273, -0.10276775807142258, -0.3906252086162567, 0.11749586462974548, 0.08687008917331696, -0.16835607588291168, -0.16421104967594147, -0.05769797042012215, -0.12508413195610046, -0.07058604806661606, -0.2967187464237213, -0.13625729084014893, -0.37361806631088257, 0.1372411549091339, 0.16282986104488373, 0.31504255533218384, -0.2694862484931946, 0.09329430758953094, -0.023187218233942986, -0.12279023230075836, -0.2330651879310608, -0.3039305508136749, -0.016764095053076744, -0.029476962983608246, 0.13206905126571655, 0.24493473768234253, 0.0717916488647461, -0.011413726955652237, 0.08470503240823746, 0.0469747930765152, -0.20147545635700226, -0.003720385953783989, -0.2259811908006668, 0.26964071393013, 0.09864462912082672, -0.307596892118454, 0.15878918766975403, -0.019334735348820686, -0.31032660603523254, -0.296479731798172, 0.25249019265174866, 0.13983404636383057, 0.05604395642876625, 0.2703603208065033, 0.06548555195331573, -0.1365613341331482, 0.06543785333633423, -0.0009237229824066162, 0.018353357911109924, 0.0820988193154335, -0.01375055406242609, 0.27511510252952576, 0.2115253210067749, -0.050341106951236725, -0.17500987648963928, 0.3620118796825409, 0.2055370956659317, -0.32393622398376465, 0.4945880174636841, 0.21068236231803894, 0.22381529211997986, 0.1718100756406784, 0.60170578956604, 0.3104681372642517, -0.08941188454627991, -0.12373089045286179, 0.29351577162742615, 0.16101013123989105, -0.24136346578598022, -0.05555456504225731, -0.03062567487359047, 0.08994267880916595, 0.2706998586654663, 0.13241663575172424, 0.048088621348142624, -0.02903883159160614, 0.2829749882221222, -0.2252674698829651, 0.5118098258972168, -0.23463983833789825, 0.45093825459480286, 0.6072251796722412, 0.23931024968624115, -0.09317238628864288, 0.14478810131549835, 0.14986872673034668, -0.002036064863204956, 0.012388300150632858, -0.48647648096084595, 0.2809494435787201, 0.1860969364643097, 0.07657440751791, 0.1526411920785904, -0.18645597994327545, 0.30672726035118103, 0.20646730065345764, -0.2009880542755127, 0.2020992934703827, 0.10643916577100754, 0.2596048414707184, -0.3584664762020111, 0.025597184896469116, -0.10572867095470428, 0.2342338263988495, 0.12239615619182587, -0.037059344351291656, -0.06688187271356583, -0.18588419258594513, -0.06210128590464592, -0.048592567443847656, 0.19450384378433228, 0.0871448814868927, 0.41973361372947693, 0.012504473328590393, 0.21634724736213684, -0.3203944265842438, -0.05063381791114807, 0.05083627253770828, 0.4079802930355072, -0.1929762065410614, -0.04041345417499542, 0.3457544445991516, 0.047493305057287216, 0.5418798327445984, 0.43101802468299866, 0.16905154287815094, -0.03786177188158035, -0.014238052070140839, 0.2116016298532486, -0.1586611419916153, -0.12548139691352844, 0.04930084943771362, 0.4199088513851166, 0.10619229078292847, 0.3339330852031708, 0.1359175443649292, 0.023752404376864433, 0.007820258848369122, 0.15825434029102325, -0.20441339910030365, 0.04771255701780319, -0.6289092898368835, 0.2447422444820404, -0.038394369184970856, -0.2189827561378479, 0.04586528614163399, -0.29105111956596375, -0.10885146260261536, -0.026440799236297607, 0.2676314115524292, -0.3767399191856384, -0.09794854372739792, 0.07087645679712296, 0.015571605414152145, -0.002512911334633827, 0.22644375264644623, 0.27258747816085815, -0.12747341394424438, 0.11829615384340286, -0.11006412655115128, -0.3450426459312439, -0.30144113302230835, 0.23464590311050415, -0.3035311698913574, 0.25492584705352783, -0.0963408499956131, 0.05615976080298424, 0.16591642796993256, 0.061733510345220566, -0.2606554329395294, -0.252851277589798, 0.11754772067070007, 0.07882563769817352, -0.42960861325263977, 0.009848851710557938, 0.3841172158718109, -0.1937490701675415, -0.22619616985321045, 0.15899212658405304, 0.094253771007061, -0.0759706124663353, -0.2563559412956238, 0.08204475045204163, -0.09697268903255463, -0.3684612810611725, 0.23800823092460632, 0.16301268339157104, 0.4598296284675598, -0.19150689244270325, 0.12684324383735657, -0.06941123306751251, -0.24181073904037476, -0.3325921595096588, -0.0238560289144516, -0.03467600420117378, 0.6003204584121704, -0.17198102176189423, -0.07378314435482025, -0.14697255194187164, 0.17525389790534973, -0.11685787886381149, 0.04747099429368973, -0.34084177017211914, 0.23463074862957, -0.26260221004486084, 0.2083827406167984, 0.028601907193660736, -0.15275579690933228, 0.0587041936814785, 0.2868023216724396, -0.2934838533401489, -0.40761134028434753, 0.5044675469398499, -0.13807553052902222, -0.3618250787258148, -0.05422179400920868, 0.24346250295639038, -0.08549397438764572, -0.002067621797323227, -0.8937122225761414, 0.005628839135169983, 0.23586411774158478, -0.11752500385046005, 0.1431509405374527, 0.6481893062591553, 0.10672056674957275, -0.2441449612379074, -0.13355597853660583, 0.2291681319475174, 0.03101676143705845, -0.07949583977460861, 0.10685685276985168, -0.28858160972595215 ]
https://github.com/huggingface/datasets/issues/3369
[Audio] Allow resampling for audio datasets in streaming mode
Just to clarify a bit. This feature is **always** needed when using the common voice dataset in streaming mode. So I think it's quite important
Many audio datasets like Common Voice always need to be resampled. This can very easily be done in non-streaming mode as follows: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test") ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` However in streaming mode it fails currently: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test", streaming=True) ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` with the following error: ``` AttributeError: 'IterableDataset' object has no attribute 'cast_column' ``` It would be great if we could add such a feature (I'm not 100% sure though how complex this would be)
25
[Audio] Allow resampling for audio datasets in streaming mode Many audio datasets like Common Voice always need to be resampled. This can very easily be done in non-streaming mode as follows: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test") ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` However in streaming mode it fails currently: ```python from datasets import load_dataset ds = load_dataset("common_voice", "ab", split="test", streaming=True) ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) ``` with the following error: ``` AttributeError: 'IterableDataset' object has no attribute 'cast_column' ``` It would be great if we could add such a feature (I'm not 100% sure though how complex this would be) Just to clarify a bit. This feature is **always** needed when using the common voice dataset in streaming mode. So I think it's quite important
[ -0.6024312973022461, -0.0808151587843895, -0.042200785130262375, -0.21354277431964874, 0.3806147575378418, 0.11277458816766739, 0.01446281373500824, 0.2519493103027344, 0.013803776353597641, 0.24856507778167725, -0.3896237313747406, 0.18378111720085144, -0.32103896141052246, 0.1334303468465805, 0.16420458257198334, -0.5897549390792847, 0.08612459897994995, 0.22843611240386963, -0.2293061912059784, 0.16702589392662048, -0.29878878593444824, -0.09550183266401291, -0.3329715132713318, -0.15710735321044922, 0.10229954123497009, 0.14472916722297668, 0.22254067659378052, -0.3377620577812195, 0.054839082062244415, -0.338496595621109, -0.0646335557103157, 0.2114454060792923, 0.267455130815506, 0.09659162163734436, -0.000125737366033718, -0.0854986160993576, 0.24784821271896362, -0.06799571216106415, -0.3901004195213318, 0.1589527428150177, -0.554215669631958, 0.06768055260181427, -0.10043541342020035, 0.04762067645788193, -0.13023489713668823, -0.19086594879627228, -0.056330859661102295, -0.5732032656669617, 0.13685917854309082, 0.1082516461610794, 0.12780509889125824, 0.21795284748077393, -0.26636016368865967, 0.13517586886882782, -0.16164934635162354, 0.16940215229988098, -0.23548312485218048, -0.05376628413796425, 0.5048767328262329, 0.30128851532936096, 0.2511206567287445, 0.36386922001838684, -0.27267134189605713, -0.16427338123321533, 0.09222729504108429, -0.18389523029327393, -0.2957022190093994, -0.23038244247436523, 0.13505420088768005, 0.29447105526924133, 0.8150236010551453, -0.36715346574783325, -0.6954243183135986, -0.24970614910125732, 0.4832061231136322, -0.29756683111190796, -0.03289791941642761, 0.08066722005605698, -0.012463174760341644, 0.29519185423851013, -0.5460273027420044, -0.15978176891803741, 0.0051027387380599976, 0.08988649398088455, 0.40408220887184143, 0.19401051104068756, 0.004753979854285717, 0.23587492108345032, 0.224515900015831, 0.0899890884757042, -0.10399558395147324, -0.01830272749066353, 0.06028933823108673, 0.2668858468532562, -0.42640289664268494, -0.33267638087272644, -0.16836130619049072, -0.06464063376188278, 0.0576087087392807, 0.3443306088447571, 0.3042082190513611, 0.03806479647755623, 0.23184558749198914, 0.007851962000131607, 0.29008305072784424, 0.08865050971508026, -0.043812111020088196, -0.09010949730873108, 0.3457845449447632, -0.007219852413982153, 0.12940241396427155, -0.11274801939725876, -0.014721881598234177, 0.1465841680765152, 0.3457089960575104, 0.3143787980079651, -0.008804745972156525, 0.08183720707893372, -0.1239764541387558, -0.22112669050693512, -0.3167390525341034, -0.11056524515151978, 0.1200031265616417, -0.09546246379613876, 0.17468789219856262, 0.3110337555408478, -0.14371371269226074, 0.38155728578567505, 0.19397424161434174, -0.3401259183883667, 0.08805445581674576, -0.06829743087291718, 0.08884455263614655, 0.18280629813671112, 0.26516854763031006, -0.25857076048851013, -0.04080449044704437, 0.068243607878685, 0.17540298402309418, -0.055049508810043335, 0.042360179126262665, 0.11113657057285309, -0.27423354983329773, 0.3944736421108246, -0.212216317653656, 0.023351123556494713, -0.11026707291603088, 0.23692862689495087, -0.2043554186820984, 0.1998482644557953, -0.04190230369567871, -0.37433764338493347, -0.16914866864681244, 0.03952636197209358, -0.09823630005121231, -0.16076058149337769, -0.14272728562355042, 0.3999093472957611, 0.05018846318125725, -0.5179516673088074, 0.3408992886543274, -0.04641323536634445, -0.2597557008266449, 0.03507547080516815, 0.3868285119533539, -0.11388052999973297, -0.36019718647003174, -0.25312960147857666, -0.3627952039241791, -0.1765453964471817, 0.11594726890325546, 0.05986204743385315, -0.07276646047830582, -0.17817160487174988, -0.027269652113318443, 0.1123960018157959, 0.5650534629821777, -0.2266339808702469, -0.3823521137237549, -0.049431946128606796, 0.07121405005455017, 0.19067126512527466, 0.3396056890487671, 0.20295241475105286, 0.3147721588611603, -0.06052150949835777, -0.10983254015445709, 0.5848610997200012, -0.31472328305244446, -0.20074403285980225, 0.12519411742687225, -0.11085005104541779, 0.1276838779449463, 0.27932217717170715, 0.06000636890530586, 0.5081894397735596, 0.1170605719089508, 0.136250302195549, 0.0914391353726387, -0.15389245748519897, 0.3566673696041107, -0.2688870429992676, 0.17581138014793396, -0.13885469734668732, 0.05202801525592804, -0.7049443125724792, 0.06725641340017319, -0.0748039186000824, 0.424690306186676, 0.010712627321481705, 0.006769798696041107, -0.3548398017883301, 0.011981705203652382, -0.12699513137340546, -0.049548905342817307, 0.0889950692653656, -0.10901622474193573, 0.08682440221309662, 0.13654910027980804, -0.1654490977525711, -0.490814745426178, 0.09091998636722565, -0.11610157042741776, -0.17058807611465454, 0.05545907840132713, 0.19063754379749298, 0.244339257478714, -0.030374430119991302, -0.16887497901916504, 0.41839247941970825, -0.14606913924217224, 0.13684578239917755, -0.0649680346250534, 0.24578598141670227, -0.2650141417980194, 0.3029286861419678, -0.40572166442871094, 0.4702973961830139, 0.11778860539197922, -0.2647192180156708, 0.0033724550157785416, -0.001041993498802185, 0.13687972724437714, -0.23134282231330872, 0.1890956163406372, 0.29844868183135986, 0.034168634563684464, 0.36435040831565857, -0.014410004019737244, 0.11994751542806625, 0.037928082048892975, 0.20099663734436035, -0.41040006279945374, -0.1297920197248459, -0.163449227809906, -0.4099450409412384, 0.09376364946365356, -0.44163045287132263, -0.4120935797691345, -0.07997477799654007, 0.2196524292230606, -0.1746464967727661, 0.180850088596344, 0.09538424760103226, -0.08733650296926498, 0.06723085045814514, 0.26404231786727905, 0.2320888787508011, 0.48426616191864014, 0.18867291510105133, 0.1950703114271164, 0.14335225522518158, 0.12327981740236282, 0.03612641245126724, 0.10840804129838943, 0.18324562907218933, -0.07646025717258453, 0.351144015789032, -0.044149816036224365, 0.17386189103126526, -0.32060161232948303, -0.31729668378829956, 0.05180809646844864, 0.11276037245988846, -0.17521719634532928, -0.21096596121788025, -0.11530543118715286, -0.08691781759262085, -0.13310612738132477, -0.17004726827144623, 0.12461484968662262, -0.09400251507759094, 0.13454583287239075, 0.3608810603618622, -0.2969954311847687, 0.41943225264549255, -0.32336676120758057, 0.28497275710105896, -0.09686797857284546, -0.3261502683162689, -0.14352482557296753, 0.2672153115272522, 0.1383121907711029, -0.020135939121246338, -0.009470440447330475, -0.32989901304244995, 0.1966283917427063, 0.06334581226110458, 0.21158161759376526, -0.10160574316978455, -0.18222852051258087, 0.08120067417621613, -0.10943642258644104, 0.041949570178985596, 0.15776577591896057, -0.036188870668411255, 0.017496321350336075, -0.4359201192855835, 0.21117916703224182, -0.0911223366856575, -0.03632485866546631, 0.20141303539276123, 0.03565346077084541, 0.2645156681537628, -0.12267497181892395, -0.11377743631601334, -0.34911057353019714, -0.5896003246307373, 0.1145506277680397, -0.4072103798389435, -0.044632673263549805, 0.04872499033808708, 0.07615148276090622, 0.0665825679898262, -0.0000291578471660614, 0.28222236037254333, -0.16833387315273285, -0.03924904018640518, 0.28770601749420166, -0.009012850932776928, -0.009702078998088837, -0.3064914643764496, -0.10100346803665161, 0.21832062304019928, 0.4222790598869324, -0.11889603734016418, 0.02371242642402649, -0.031206602230668068, 0.05971236899495125, -0.11932738125324249, 0.05396580696105957, 0.2710430920124054, 0.12645556032657623, 0.06509315967559814, 0.12229796499013901, -0.07012961059808731, -0.4205692410469055, 0.526347279548645, -0.054820455610752106, 0.12063193321228027, 0.49477478861808777, -0.19678010046482086, 0.4123312830924988, 0.2588609457015991, 0.35530245304107666, 0.25610703229904175, -0.14369472861289978, 0.1715218722820282, -0.2904474139213562, -0.36044663190841675, 0.22386659681797028, -0.09341803193092346, -0.145010843873024, 0.0026311874389648438, 0.2520749568939209, -0.19327406585216522, -0.14330270886421204, -0.19260098040103912, 0.15028080344200134, -0.07682649046182632, 0.12030298262834549, -0.17392268776893616, 0.31771308183670044, -0.15443573892116547, 0.07481277734041214, -0.005306944251060486, -0.07493919879198074, 0.04090871661901474, 0.08886398375034332, 0.22336691617965698, -0.0632055476307869, -0.22761237621307373, -0.6805042028427124, -0.12747237086296082, 0.04304482042789459, 0.31568843126296997, 0.695006251335144, -0.13329733908176422, -0.13164551556110382, 0.10833119601011276, 0.36564546823501587, 0.3605045676231384, -0.6083497405052185, -0.3167377710342407, -0.029635664075613022, 0.18737255036830902, -0.02103016898036003, 0.01799893006682396, 0.13852925598621368, 0.008987020701169968, -0.1513683795928955, 0.0883047953248024, 0.11765681952238083, 0.13656213879585266, 0.43292009830474854, 0.5436354279518127, 0.04192258045077324, -0.2869541645050049, -0.10354431718587875, -0.2391873002052307, -0.2503896951675415, -0.11995405703783035, 0.1128804013133049, 0.1459534615278244, 0.23815204203128815, -0.0022274069488048553, 0.11092795431613922, -0.25096938014030457, 0.3066801428794861, 0.00578753836452961, -0.1298125982284546, 0.23916709423065186, 0.3006611466407776, 0.1039876639842987, -0.4084683656692505, -0.06431906670331955, 0.5510535836219788, 0.042165372520685196, -0.10012452304363251, 0.028833851218223572, 0.07538758963346481, 0.6066588759422302, -0.09755651652812958, -0.027486935257911682, 0.278737336397171, 0.24407543241977692, 0.14384019374847412, -0.32750460505485535, -0.3098324239253998, 0.23404648900032043, 0.05547718703746796, -0.388256311416626, -0.7030474543571472, 0.6461316347122192, 0.061101946979761124, -0.05438162758946419, 0.4734870493412018, 0.2848437428474426, -0.1898481249809265, 0.03972122445702553, -0.34474074840545654, 0.9931421875953674, 0.1852613091468811, 0.00949256494641304, -0.01912330463528633, -0.5150279998779297, 0.24386952817440033, -0.23087720572948456, 0.23193499445915222, 0.3214796185493469, -0.1391095072031021, -0.2702378034591675, 0.012826863676309586, 0.26456978917121887, 0.06357035785913467, -0.5469483137130737, 0.1371050775051117, -0.21878354251384735, 0.14651666581630707, 0.007033474277704954, -0.036028921604156494, -0.6089003682136536, -0.2526058256626129, -0.0019337963312864304, -0.05150122195482254, 0.09794634580612183, -0.0461575947701931, 0.2848576009273529, 0.18008726835250854, 0.35314980149269104, 0.05309741199016571, -0.5285079479217529, -0.1348242312669754, 0.17753756046295166, -0.19182878732681274, -0.08668974041938782, -0.28243488073349, 0.5665388107299805, 0.18022353947162628, -0.14272727072238922, -0.00970199704170227, -0.16701412200927734, 0.15090160071849823, 0.04085823893547058, 0.4737105369567871, 0.01640063337981701, -0.02623942866921425, 0.4340789020061493, -0.00027638301253318787, -0.42032817006111145, 0.25300222635269165, 0.07985633611679077, -0.3311155438423157, -0.07886236906051636, -0.16142605245113373, 0.45231467485427856, -0.28486835956573486, -0.020615432411432266, 0.14007297158241272, 0.19205312430858612, -0.34938809275627136, 0.024783426895737648, -0.15562933683395386, -0.17105185985565186, 0.4029017686843872, -0.16843165457248688, -0.018369071185588837, -0.18574421107769012, 0.5400930047035217, 0.17640599608421326, 0.026271015405654907, 0.4037332236766815, -0.23018702864646912, -0.28976935148239136, -0.15985122323036194, -0.14970539510250092, -0.04711611196398735, -0.34300243854522705, 0.10043630003929138, 0.04307731240987778, -0.15679726004600525, -0.11582288146018982, -0.04807334765791893, -0.10848410427570343, 0.057044513523578644, -0.425764799118042, -0.29624640941619873, -0.38705429434776306, 0.07569140940904617, 0.21154974400997162, 0.10343103110790253, -0.27220192551612854, 0.19000791013240814, 0.0014476552605628967, -0.1328645944595337, -0.1915857493877411, -0.4823862910270691, 0.12757867574691772, 0.031657855957746506, 0.06969781219959259, 0.28349143266677856, 0.09045971930027008, 0.051818374544382095, 0.10399079322814941, 0.02604631707072258, -0.06758509576320648, 0.054726190865039825, -0.11029350757598877, 0.2813777029514313, 0.13355135917663574, -0.10730967670679092, 0.06328299641609192, -0.05437196418642998, -0.3630378544330597, -0.2520642876625061, 0.15697185695171356, 0.14087048172950745, 0.005117535591125488, 0.18294215202331543, 0.03795953467488289, -0.27287039160728455, -0.008625496178865433, 0.06592047959566116, -0.019420698285102844, 0.1096877008676529, -0.017725365236401558, 0.36240488290786743, 0.2917514741420746, -0.000984087586402893, -0.36630669236183167, 0.278595894575119, 0.08150316774845123, -0.3289596140384674, 0.49849358201026917, 0.099234938621521, 0.2033841460943222, 0.07252482324838638, 0.6048859357833862, 0.2688613533973694, 0.044569384306669235, -0.06492538750171661, 0.22928458452224731, 0.10835276544094086, -0.2772328555583954, -0.06764271855354309, -0.1790802776813507, 0.12098601460456848, 0.22654825448989868, 0.14030294120311737, 0.07108724117279053, -0.15877625346183777, 0.3100954294204712, -0.2894700765609741, 0.40347808599472046, -0.17603351175785065, 0.33699408173561096, 0.6436722278594971, 0.3651529550552368, -0.01638351008296013, 0.1497218906879425, 0.05245627090334892, -0.06955444067716599, -0.08107496798038483, -0.5119349360466003, 0.35113897919654846, 0.29344451427459717, -0.02700020745396614, 0.15416717529296875, -0.13554725050926208, 0.4003799557685852, 0.1445385366678238, -0.09938177466392517, 0.27665412425994873, 0.2369733452796936, 0.29023003578186035, -0.3972688317298889, 0.1528078019618988, -0.05930160731077194, 0.07861311733722687, 0.053195249289274216, 0.03817693144083023, -0.009266436100006104, -0.16032588481903076, -0.0321442186832428, -0.15249182283878326, 0.28569546341896057, 0.19869674742221832, 0.37419992685317993, -0.14890119433403015, 0.19019116461277008, -0.14230050146579742, -0.14929267764091492, 0.1258462369441986, 0.28301066160202026, -0.264178067445755, -0.139547660946846, 0.2567257881164551, -0.07063484191894531, 0.635819137096405, 0.37442848086357117, 0.20940758287906647, 0.04106619954109192, 0.10033716261386871, 0.19394733011722565, -0.1542169749736786, -0.12535350024700165, 0.07866654545068741, 0.4311346113681793, 0.229337677359581, 0.2606247365474701, 0.043294016271829605, 0.003932882100343704, 0.03698737546801567, 0.22566010057926178, -0.09958738088607788, 0.04644043743610382, -0.48510831594467163, 0.2229604423046112, -0.07333174347877502, -0.29083821177482605, -0.035289786756038666, -0.1674090325832367, 0.015291504561901093, -0.046668339520692825, 0.28580623865127563, -0.44223520159721375, -0.21599602699279785, -0.024583224207162857, -0.014453020878136158, -0.03612231835722923, 0.16488461196422577, 0.306034117937088, -0.15356218814849854, 0.18753544986248016, -0.06902214884757996, -0.30306974053382874, -0.22777438163757324, 0.28889936208724976, -0.3881802260875702, 0.23392105102539062, -0.12421737611293793, 0.1246044933795929, 0.2060776948928833, 0.08722347021102905, -0.3023257851600647, -0.31286031007766724, 0.10336758941411972, 0.05809660628437996, -0.5446744561195374, 0.0855553150177002, 0.44979387521743774, -0.2139403373003006, -0.3169552683830261, 0.15900734066963196, 0.05722753331065178, -0.08498384058475494, -0.367827832698822, -0.031067784875631332, 0.005024123936891556, -0.10046601295471191, 0.28436803817749023, 0.021871911361813545, 0.6494590044021606, -0.22260519862174988, 0.21418336033821106, 0.04719274491071701, -0.18306376039981842, -0.24432915449142456, -0.05532584339380264, -0.05587894096970558, 0.536015510559082, -0.18365436792373657, 0.06130127236247063, -0.18031075596809387, 0.21504312753677368, -0.17403697967529297, -0.11140851676464081, -0.2488975077867508, 0.32761484384536743, -0.3831019401550293, 0.24101857841014862, 0.03588055074214935, -0.1951785385608673, 0.07613593339920044, 0.20390142500400543, -0.1825244128704071, -0.3136611878871918, 0.47297653555870056, -0.15066488087177277, -0.4185020625591278, -0.10360436886548996, 0.2821316123008728, -0.1493186354637146, 0.06434904038906097, -0.8440474271774292, -0.051083408296108246, 0.2873455584049225, -0.03191104158759117, 0.3163521885871887, 0.5712407231330872, 0.08261318504810333, -0.15721286833286285, -0.0681430846452713, 0.21543876826763153, -0.13685071468353271, -0.07360231876373291, 0.05511092767119408, -0.23708109557628632 ]
https://github.com/huggingface/datasets/issues/3365
Add task tags for multimodal datasets
The Hub pulls these tags from [here](https://github.com/huggingface/hub-docs/blob/main/js/src/lib/interfaces/Types.ts) (allows multimodal tasks) now, so I'm closing this issue.
## **Is your feature request related to a problem? Please describe.** Currently, task tags are either exclusively related to text or speech processing: - https://github.com/huggingface/datasets/blob/master/src/datasets/utils/resources/tasks.json ## **Describe the solution you'd like** We should also add tasks related to: - multimodality - image - video CC: @VictorSanh @lewtun @lhoestq @merveenoyan @SBrandeis
16
Add task tags for multimodal datasets ## **Is your feature request related to a problem? Please describe.** Currently, task tags are either exclusively related to text or speech processing: - https://github.com/huggingface/datasets/blob/master/src/datasets/utils/resources/tasks.json ## **Describe the solution you'd like** We should also add tasks related to: - multimodality - image - video CC: @VictorSanh @lewtun @lhoestq @merveenoyan @SBrandeis The Hub pulls these tags from [here](https://github.com/huggingface/hub-docs/blob/main/js/src/lib/interfaces/Types.ts) (allows multimodal tasks) now, so I'm closing this issue.
[ -0.2909180521965027, -0.6246340274810791, -0.1701233834028244, -0.07638461887836456, 0.2039758414030075, -0.04029146581888199, 0.39969027042388916, 0.17135116457939148, 0.1397857367992401, 0.19469985365867615, -0.21250274777412415, 0.3659880757331848, -0.3229903280735016, 0.4829965829849243, 0.05091683566570282, -0.10337817668914795, 0.14913703501224518, -0.060935840010643005, 0.16208449006080627, 0.11039166152477264, -0.06168277561664581, -0.0994192510843277, 0.0033907443284988403, -0.10745421051979065, -0.7084178924560547, -0.18903283774852753, -0.05028347671031952, 0.03760577365756035, 0.08726884424686432, -0.13693293929100037, 0.14301854372024536, 0.3841819167137146, -0.22825972735881805, 0.29557856917381287, -0.00009864298772299662, -0.10019496083259583, 0.30582913756370544, -0.1349293738603592, -0.23848557472229004, -0.20490886270999908, 0.16516119241714478, -0.09257490187883377, 0.03790023922920227, 0.049907781183719635, -0.19573768973350525, 0.1608409732580185, 0.10454855114221573, 0.12140417098999023, 0.24601466953754425, -0.16507165133953094, 0.26112478971481323, 0.32206395268440247, 0.013523939996957779, -0.04943448305130005, 0.13912586867809296, 0.5088964700698853, -0.33767199516296387, 0.14653001725673676, 0.6071450710296631, 0.025416260585188866, -0.20036077499389648, 0.6172341108322144, 0.06433971226215363, 0.20505878329277039, 0.34681791067123413, -0.15311072766780853, -0.1491456925868988, -0.2128342092037201, -0.07463142275810242, 0.37181344628334045, 0.29248952865600586, -0.025777198374271393, -0.3202803134918213, -0.4465123116970062, 0.058599650859832764, 0.015853164717555046, -0.02528073638677597, 0.20749661326408386, -0.060122016817331314, 0.023311493918299675, -0.16879454255104065, -0.2768315374851227, -0.05896391719579697, 0.054315511137247086, 0.34215763211250305, -0.0061476826667785645, -0.11045141518115997, -0.03291335701942444, 0.2550949454307556, -0.12790223956108093, -0.04181166738271713, 0.10296361148357391, 0.03255191445350647, -0.018885087221860886, -0.30631041526794434, -0.21458427608013153, 0.053032055497169495, 0.05332032963633537, 0.16407614946365356, 0.099293552339077, 0.20824599266052246, 0.27535906434059143, -0.34938421845436096, 0.26734021306037903, 0.25469040870666504, -0.03503432124853134, 0.14426840841770172, -0.23776794970035553, 0.25757020711898804, 0.13070569932460785, -0.04427201673388481, 0.03459600359201431, 0.1582515984773636, -0.08950664103031158, -0.20912981033325195, 0.15868765115737915, 0.17560742795467377, 0.16586631536483765, -0.18327802419662476, -0.24919548630714417, 0.15659087896347046, -0.058286670595407486, 0.06947591155767441, 0.2892172336578369, 0.04009896144270897, 0.08182504028081894, -0.3216301202774048, 0.3752846121788025, -0.13398700952529907, -0.09401510655879974, -0.19188421964645386, -0.006243182346224785, -0.11925563216209412, 0.21501238644123077, 0.23600976169109344, -0.10225735604763031, 0.23220233619213104, 0.0498703196644783, 0.13591912388801575, -0.19123947620391846, 0.08237612992525101, -0.02843857742846012, 0.05178358033299446, 0.1856260746717453, 0.08061891794204712, -0.07025055587291718, -0.14174778759479523, 0.08614261448383331, -0.1889972984790802, 0.06619999557733536, -0.2418617606163025, -0.1141137182712555, 0.09545203298330307, 0.212287038564682, -0.06641875952482224, -0.0330890417098999, -0.4104553759098053, 0.4466945230960846, -0.20376121997833252, 0.16620537638664246, 0.10327938199043274, 0.302801251411438, -0.17340099811553955, -0.10517347604036331, -0.28594014048576355, 0.15205083787441254, 0.3987819254398346, -0.4503002464771271, 0.19218972325325012, -0.06685730814933777, -0.19416606426239014, 0.09403170645236969, -0.11630094051361084, 0.17403823137283325, -0.050244495272636414, 0.17213080823421478, -0.004023350775241852, -0.6805917620658875, -0.12871794402599335, 0.02584943175315857, -0.2874299883842468, 0.20111000537872314, 0.06730920076370239, 0.3688634932041168, 0.07709252834320068, -0.13724452257156372, 0.2014705240726471, 0.4255930185317993, -0.16235710680484772, 0.2251470386981964, -0.1037987694144249, -0.21449387073516846, 0.12121730297803879, 0.4364985525608063, 0.19278058409690857, -0.30678877234458923, -0.04626256972551346, 0.004992037080228329, 0.03646082803606987, -0.07271088659763336, 0.22361856698989868, 0.10037881135940552, 0.17254391312599182, 0.07386188209056854, -0.054459232836961746, -0.5365385413169861, -0.5438997149467468, 0.06522780656814575, 0.0935378447175026, 0.16173933446407318, 0.1436592936515808, -0.34604841470718384, 0.05192121863365173, -0.297406405210495, -0.30042535066604614, -0.358886182308197, 0.18181128799915314, -0.032238684594631195, -0.2692424952983856, -0.1469797044992447, -0.26382169127464294, 0.4181041121482849, 0.017883701249957085, 0.18476510047912598, -0.07532860338687897, 0.27918580174446106, 0.03187056630849838, -0.1832474023103714, 0.04082450270652771, 0.17039892077445984, 0.11739785224199295, -0.026418820023536682, 0.054758016020059586, 0.21918362379074097, 0.11658425629138947, 0.47801029682159424, 0.16877953708171844, 0.16481120884418488, 0.38843151926994324, -0.17179273068904877, 0.014161096885800362, -0.0052590444684028625, -0.019495490938425064, -0.1939125955104828, -0.06873708218336105, 0.15742751955986023, -0.23899637162685394, 0.23626604676246643, -0.09880031645298004, -0.01328839547932148, 0.218582883477211, -0.07199499756097794, -0.1753704696893692, -0.06246279180049896, 0.03394056484103203, -0.07317233085632324, -0.10117591917514801, -0.1709601879119873, -0.32140058279037476, 0.08320726454257965, 0.4212910234928131, 0.28042659163475037, 0.28751319646835327, 0.26265743374824524, -0.244423508644104, 0.042353563010692596, 0.14508022367954254, -0.30577412247657776, 0.17008233070373535, 0.35496199131011963, -0.10382242500782013, -0.026921579614281654, 0.07295593619346619, -0.18727700412273407, -0.026726581156253815, 0.08276460319757462, 0.2674524784088135, 0.20350635051727295, 0.16196438670158386, -0.2047574669122696, -0.30893659591674805, -0.22672691941261292, 0.14284223318099976, -0.24983808398246765, -0.13797886669635773, -0.33383578062057495, -0.16361656785011292, -0.21109914779663086, 0.05399450659751892, -0.3972501754760742, -0.3185153007507324, -0.025018952786922455, 0.36936479806900024, 0.3705860376358032, -0.32422250509262085, 0.30090227723121643, 0.5635865926742554, 0.2831977307796478, -0.19429491460323334, 0.14937497675418854, -0.19124780595302582, -0.34861114621162415, 0.12462589144706726, 0.1636539250612259, 0.15490609407424927, -0.007792257703840733, 0.3113801181316376, -0.34048882126808167, 0.21291226148605347, -0.26384785771369934, -0.23051726818084717, 0.20454886555671692, -0.17083881795406342, 0.2338733971118927, -0.036109283566474915, 0.02256648987531662, -0.0005399174988269806, -0.025463107973337173, 0.30491799116134644, -0.05915138125419617, -0.14056925475597382, -0.20318058133125305, 0.01951809599995613, 0.23808792233467102, -0.2593718469142914, -0.14857983589172363, -0.17147481441497803, -0.5717074275016785, 0.6641515493392944, -0.15272687375545502, 0.1808168739080429, 0.3253130614757538, -0.08007685095071793, -0.11408931016921997, -0.23424099385738373, 0.22198840975761414, -0.2762976586818695, -0.17608924210071564, -0.025234173983335495, -0.5059772729873657, -0.15612302720546722, -0.11946772038936615, -0.009561927989125252, 0.27506715059280396, -0.030050471425056458, -0.008987553417682648, -0.45935747027397156, -0.0054573193192481995, 0.11099088191986084, -0.1409248411655426, -0.019963564351201057, 0.26391518115997314, 0.013297447934746742, -0.18921463191509247, -0.07052876055240631, -0.2245544195175171, 0.020553432404994965, 0.3390636146068573, -0.14647001028060913, 0.04399342089891434, -0.0788303092122078, 0.18658490478992462, 0.4091240167617798, 0.03349944204092026, 0.09823497384786606, 0.5102341771125793, 0.11404190957546234, 0.23506341874599457, -0.17889204621315002, -0.29989904165267944, 0.3182624578475952, 0.0058011263608932495, 0.15129190683364868, 0.22824381291866302, 0.26336416602134705, 0.0970892682671547, -0.17856772243976593, -0.39351576566696167, -0.4593833088874817, -0.28463584184646606, 0.10574354231357574, 0.10046090930700302, -0.08024486154317856, 0.00957484170794487, -0.11904317885637283, -0.19351759552955627, 0.0032003801316022873, 0.26216816902160645, 0.3920936584472656, 0.11273383349180222, -0.20432761311531067, -0.0689367800951004, -0.07119977474212646, -0.10513757914304733, 0.07244205474853516, 0.15547677874565125, -0.16268673539161682, -0.19724327325820923, -0.1374940574169159, -0.06638984382152557, 0.15331147611141205, 0.66828852891922, -0.40288296341896057, 0.09605319797992706, -0.09936937689781189, -0.0904064029455185, -0.3949756324291229, -0.07945229858160019, -0.029105540364980698, 0.11073384433984756, 0.19281478226184845, 0.8019967079162598, -0.28261157870292664, -0.1439376026391983, -0.18842996656894684, -0.16760320961475372, 0.05863656476140022, -0.15749801695346832, -0.2001676708459854, -0.04632957652211189, -0.4938144087791443, 0.17999029159545898, 0.3006848990917206, -0.04320811852812767, 0.11815010011196136, -0.4516483247280121, 0.012348078191280365, -0.13143959641456604, -0.03615398705005646, 0.011883953586220741, 0.12372113019227982, 0.06412945687770844, 0.19473636150360107, 0.08692798018455505, -0.06521589308977127, 0.2790399193763733, 0.3332582116127014, -0.09097491204738617, -0.009381502866744995, 0.018839167430996895, -0.30043214559555054, 0.2808868885040283, 0.3263334631919861, 0.3181084990501404, 0.3095066249370575, -0.054041214287281036, 0.2643374800682068, -0.7652266025543213, 0.19407358765602112, 0.1739993542432785, 0.164275661110878, -0.06212622672319412, -0.11548597365617752, 0.2974550724029541, 0.030041281133890152, -0.10092759877443314, 0.3069944679737091, -0.047120511531829834, -0.2133839875459671, -0.13883182406425476, 0.04293445497751236, 0.7673286199569702, -0.039891891181468964, 0.13266342878341675, -0.2556656002998352, -0.5398145914077759, 0.13936476409435272, -0.4742373824119568, 0.12118248641490936, -0.04696643725037575, -0.2489793747663498, 0.06301455199718475, -0.0014211758971214294, 0.02799118682742119, 0.13646122813224792, -0.28998902440071106, 0.06900625675916672, 0.2843136191368103, 0.362954318523407, -0.3036651313304901, 0.30543914437294006, -0.3944033980369568, -0.5282301902770996, -0.12139201164245605, 0.22704634070396423, -0.19326850771903992, 0.3105638921260834, -0.07923901826143265, -0.15005619823932648, 0.0662914514541626, -0.1279696673154831, -0.27275362610816956, -0.10727311670780182, 0.11854109913110733, -0.14644509553909302, -0.012660149484872818, 0.05288492143154144, -0.01801234297454357, -0.20138686895370483, 0.21040639281272888, -0.0896887481212616, -0.30779293179512024, 0.3334200978279114, -0.18190979957580566, 0.24274970591068268, -0.29362744092941284, -0.2782557010650635, 0.4792840778827667, -0.23172527551651, -0.16041143238544464, -0.23115918040275574, 0.18796579539775848, -0.06789927184581757, -0.12728604674339294, 0.0874524787068367, 0.002840369939804077, -0.0034665456041693687, 0.12980054318904877, -0.10640643537044525, 0.05036964640021324, -0.39709022641181946, 0.22256550192832947, 0.08186366409063339, -0.1683667153120041, 0.13955014944076538, 0.05195920169353485, 0.041127026081085205, -0.13521377742290497, 0.30667057633399963, 0.17088469862937927, -0.25633805990219116, -0.09273006021976471, 0.16984838247299194, -0.13605602085590363, -0.40666380524635315, 0.1157485768198967, 0.2864149808883667, -0.32039111852645874, 0.3175918757915497, 0.0750931054353714, -0.30631154775619507, 0.011556300334632397, 0.35418689250946045, -0.13402973115444183, 0.1291862577199936, -0.1822272688150406, 0.013744771480560303, -0.4032713770866394, 0.3306771516799927, -0.17183224856853485, 0.1637544333934784, -0.050922710448503494, 0.14833761751651764, 0.4461580812931061, 0.41911688446998596, -0.43122321367263794, -0.01226334273815155, -0.2756355106830597, 0.2201337218284607, -0.21396325528621674, -0.13923132419586182, 0.23460304737091064, 0.00928737223148346, 0.12076056003570557, 0.1448785364627838, -0.23649346828460693, -0.29352226853370667, -0.286641389131546, 0.07921529561281204, 0.09094557911157608, 0.4310195744037628, -0.015330090187489986, 0.07538387924432755, -0.18150782585144043, -0.17441703379154205, 0.308022677898407, 0.09716092795133591, 0.04746086522936821, 0.15737755596637726, 0.3746239244937897, 0.02197280153632164, 0.2213772088289261, 0.013114942237734795, -0.02775418758392334, 0.3001616597175598, -0.0668921023607254, -0.3586771488189697, -0.04900096729397774, 0.04912598431110382, 0.008551668375730515, 0.15654060244560242, 0.524023175239563, -0.11976564675569534, -0.009130090475082397, 0.1579141616821289, -0.07823853194713593, -0.01679087243974209, 0.33220374584198, -0.265985906124115, 0.030285656452178955, -0.057859525084495544, 0.19336509704589844, 0.34198832511901855, -0.14917325973510742, -0.022159568965435028, 0.23495902121067047, -0.3216259479522705, 0.34477707743644714, 0.22293417155742645, 0.24040773510932922, 0.37921708822250366, -0.017687231302261353, 0.08561304956674576, 0.10782033950090408, -0.20955954492092133, 0.09735479950904846, -0.21461737155914307, -0.08355890214443207, -0.03948438540101051, 0.3827039897441864, -0.0994066596031189, 0.22669574618339539, 0.18745073676109314, -0.04568804055452347, 0.32531100511550903, 0.21352586150169373, 0.17516101896762848, 0.5236940979957581, 0.0055694542825222015, -0.19472736120224, -0.015285104513168335, 0.06535856425762177, 0.16892018914222717, -0.08020785450935364, 0.5643035769462585, -0.14671385288238525, -0.21263916790485382, -0.16514058411121368, 0.3489759862422943, -0.1328333616256714, 0.019309984520077705, 0.08011560142040253, -0.1146366223692894, -0.204570010304451, -0.05823376029729843, 0.005868140608072281, 0.04855632036924362, 0.3440544605255127, 0.0024882853031158447, 0.16442835330963135, 0.10279524326324463, -0.16995534300804138, 0.13631772994995117, 0.45592862367630005, -0.07286940515041351, 0.005122501403093338, 0.2073550820350647, -0.11500285565853119, 0.1252194195985794, 0.3956504464149475, 0.10099393129348755, 0.031045734882354736, -0.20864860713481903, 0.08634839206933975, -0.04208540543913841, -0.08386562019586563, -0.08288441598415375, 0.34192559123039246, 0.13591256737709045, 0.20158305764198303, 0.16664224863052368, 0.2557576596736908, -0.3048003911972046, 0.0959806740283966, -0.20331887900829315, 0.15851101279258728, -0.08197294175624847, 0.246433287858963, -0.04483875632286072, -0.09768883883953094, -0.1807287037372589, -0.05976278334856033, -0.5809029340744019, -0.1437315046787262, 0.03311678767204285, -0.39685705304145813, -0.10898540169000626, -0.32130247354507446, 0.14158272743225098, 0.024846510961651802, 0.40024885535240173, -0.06318487226963043, 0.05238623172044754, -0.022178154438734055, -0.1622523069381714, -0.20035044848918915, 0.1534385085105896, -0.04568427428603172, 0.04695640504360199, 0.053896576166152954, -0.04942700266838074, -0.03707163780927658, 0.27210530638694763, 0.22589513659477234, -0.2288093864917755, 0.42382875084877014, 0.025622665882110596, -0.4511573314666748, 0.3509000241756439, 0.0659560039639473, -0.015077436342835426, 0.405916690826416, 0.02235563099384308, 0.067445307970047, 0.08628245443105698, 0.042529717087745667, -0.03552018105983734, 0.022689230740070343, 0.07226862013339996, -0.35185936093330383, 0.5329498052597046, -0.28461194038391113, 0.12353939563035965, -0.18354111909866333, -0.31096047163009644, -0.04213586822152138, -0.1894509494304657, -0.21046802401542664, -0.2422170341014862, 0.033750005066394806, 0.5417846441268921, -0.19180233776569366, 0.1224985122680664, -0.1194237545132637, 0.22792647778987885, -0.07276526838541031, 0.11034694314002991, 0.011769607663154602, 0.08694687485694885, 0.01995556801557541, -0.10189750790596008, -0.024994798004627228, 0.17268355190753937, 0.045784272253513336, -0.12596270442008972, -0.2980749011039734, -0.48010802268981934, 0.590519905090332, 0.24690672755241394, -0.33671560883522034, -0.20172218978405, 0.21090689301490784, 0.1670781373977661, 0.09525196999311447, -0.6915658712387085, -0.02827945351600647, 0.19245341420173645, 0.40952029824256897, -0.0002892911434173584, 0.3386772572994232, -0.1082954853773117, -0.41082072257995605, -0.1462443321943283, -0.30607888102531433, 0.18330329656600952, 0.04042810946702957, -0.016422303393483162, -0.3027934432029724 ]
https://github.com/huggingface/datasets/issues/3358
add new field, and get errors
Hi, could you please post this question on our [Forum](https://discuss.huggingface.co/) as we keep issues for bugs and feature requests?
after adding new field **tokenized_examples["example_id"]**, and get errors below, I think it is due to changing data to tensor, and **tokenized_examples["example_id"]** is string list **all fields** ``` ***************** train_dataset 1: Dataset({ features: ['attention_mask', 'end_positions', 'example_id', 'input_ids', 'start_positions', 'token_type_ids'], num_rows: 87714 }) ``` **Errors** ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 705, in convert_to_tensors tensor = as_tensor(value) ValueError: too many dimensions 'str' ```
19
add new field, and get errors after adding new field **tokenized_examples["example_id"]**, and get errors below, I think it is due to changing data to tensor, and **tokenized_examples["example_id"]** is string list **all fields** ``` ***************** train_dataset 1: Dataset({ features: ['attention_mask', 'end_positions', 'example_id', 'input_ids', 'start_positions', 'token_type_ids'], num_rows: 87714 }) ``` **Errors** ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 705, in convert_to_tensors tensor = as_tensor(value) ValueError: too many dimensions 'str' ``` Hi, could you please post this question on our [Forum](https://discuss.huggingface.co/) as we keep issues for bugs and feature requests?
[ 0.04462182894349098, -0.45760321617126465, -0.0584966316819191, 0.21619009971618652, 0.3088061213493347, 0.22194144129753113, 0.5154493451118469, 0.32033878564834595, -0.09049864113330841, 0.18905732035636902, 0.3385346829891205, -0.044140733778476715, -0.09890865534543991, 0.1437215656042099, 0.13675187528133392, -0.3522278666496277, 0.2309165596961975, -0.03972327709197998, 0.3595907390117645, 0.07797832787036896, -0.2192486822605133, 0.03780636191368103, -0.10658374428749084, 0.11542366445064545, -0.7237383127212524, -0.19415882229804993, -0.25462275743484497, -0.28277453780174255, -0.14668822288513184, -0.4635561406612396, -0.08259008824825287, -0.19702745974063873, 0.20828546583652496, 0.38008660078048706, -0.00011398181959521025, -0.04049881547689438, -0.015044204890727997, 0.14341633021831512, 0.06116218492388725, -0.3147653341293335, 0.12304774671792984, -0.5089915990829468, 0.17430981993675232, -0.22103643417358398, -0.04834587499499321, -0.31032395362854004, -0.3012203872203827, 0.0458647757768631, 0.2487177699804306, 0.6076470017433167, 0.21379819512367249, 0.28308138251304626, 0.117163747549057, -0.01814773492515087, 0.28108713030815125, 0.1623566448688507, -0.17282672226428986, -0.1105571985244751, -0.06434214115142822, 0.21394824981689453, 0.29136013984680176, 0.10057494044303894, -0.06766343861818314, -0.13305062055587769, -0.03183902055025101, 0.18595725297927856, -0.021071843802928925, -0.3448811173439026, -0.09479890018701553, 0.22754564881324768, 0.05561928451061249, -0.042060986161231995, -0.2763984203338623, -0.2649901509284973, 0.14363092184066772, -0.8099597692489624, 0.0012094154953956604, -0.08606553822755814, 0.12958261370658875, -0.10571925342082977, 0.13321593403816223, -0.19254516065120697, -0.21476811170578003, 0.2539904713630676, -0.0858544185757637, 0.2904103994369507, 0.040425099432468414, 0.05716723948717117, -0.024574320763349533, -0.3039742708206177, -0.23687714338302612, 0.20912452042102814, 0.09204737097024918, 0.050155818462371826, -0.3265353739261627, -0.32743677496910095, -0.17038843035697937, -0.8460083603858948, -0.029920067638158798, -0.11823077499866486, 0.12513995170593262, 0.07535332441329956, -0.1153561994433403, 0.14883467555046082, -0.15035392343997955, 0.4299969971179962, -0.27978524565696716, 0.298767626285553, 0.03228644281625748, 0.012042628601193428, 0.0897737443447113, -0.21240630745887756, -0.0341498963534832, 0.08686511218547821, -0.21971425414085388, -0.07846589386463165, 0.27989089488983154, 0.1744605451822281, -0.22665844857692719, 0.23783697187900543, -0.3714282810688019, -0.09095543622970581, 0.32686150074005127, 0.3037385642528534, 0.005543725565075874, -0.05579359084367752, -0.01899005100131035, 0.3329695463180542, 0.10592411458492279, 0.020425286144018173, -0.11320646852254868, 0.21201975643634796, 0.03813031688332558, 0.0965389832854271, -0.005801118910312653, 0.2804948687553406, 0.1685735136270523, 0.18214504420757294, 0.17556297779083252, -0.08571905642747879, 0.04578055441379547, -0.3274509608745575, -0.01185104250907898, 0.24467433989048004, -0.1623959094285965, 0.14556896686553955, 0.12466539442539215, -0.3176646828651428, -0.09730111062526703, 0.1179916262626648, -0.4138357639312744, -0.28875571489334106, -0.27617156505584717, 0.23043201863765717, 0.0657450333237648, -0.21114644408226013, -0.1523573398590088, 0.41089507937431335, 0.15627102553844452, 0.0524633415043354, 0.07913215458393097, -0.08651063591241837, -0.20894558727741241, -0.2159806191921234, -0.0745537057518959, -0.029309049248695374, 0.1012326329946518, -0.06273306161165237, 0.2538977861404419, 0.20065630972385406, 0.2228488326072693, 0.36018022894859314, -0.08765493333339691, 0.2013070285320282, -0.11401595175266266, 0.6337590217590332, 0.4993646740913391, -0.08950242400169373, 0.10432356595993042, 0.04556262865662575, -0.11391361057758331, 0.005077509209513664, 0.08117429912090302, -0.07127650082111359, 0.34802550077438354, 0.2525149881839752, 0.07809876650571823, -0.056857407093048096, -0.1666351854801178, 0.028688957914710045, -0.20391269028186798, -0.07353393733501434, 0.4807208180427551, -0.05697094649076462, 0.08602795004844666, 0.1536123901605606, -0.11738219112157822, 0.38992464542388916, -0.10768032819032669, -0.25171348452568054, -0.05252625793218613, 0.21053457260131836, 0.42321261763572693, 0.07809804379940033, 0.016437141224741936, -0.27696624398231506, -0.24157562851905823, -0.10166584700345993, -0.008116530254483223, 0.31297919154167175, 0.12415603548288345, -0.15289241075515747, -0.08397644013166428, 0.09893818199634552, 0.011838473379611969, -0.04275932535529137, 0.17059093713760376, -0.13780677318572998, -0.061518244445323944, -0.14094218611717224, -0.35746949911117554, -0.19617699086666107, -0.2665223181247711, 0.32159820199012756, -0.00034710951149463654, 0.09166499227285385, -0.19475720822811127, -0.27528509497642517, -0.3457798659801483, 0.19828221201896667, 0.43470948934555054, -0.31698325276374817, -0.1452713906764984, 0.20653748512268066, 0.08718565851449966, -0.12724561989307404, -0.1812456250190735, 0.5701873302459717, 0.4766019284725189, 0.08663913607597351, -0.0747884213924408, 0.09497827291488647, -0.19771119952201843, 0.04864048212766647, 0.3017030656337738, 0.2552407383918762, 0.04162578284740448, 0.09389541298151016, 0.015895090997219086, -0.010251525789499283, 0.2805349826812744, -0.03629517927765846, -0.06671680510044098, -0.24774065613746643, 0.04304487258195877, -0.022586438804864883, -0.2755204439163208, -0.20589052140712738, -0.4156098961830139, 0.0116749107837677, 0.41110092401504517, 0.020366281270980835, 0.1265459954738617, 0.3353303074836731, 0.06069384142756462, -0.022804398089647293, -0.17442403733730316, -0.18348224461078644, 0.18637137115001678, 0.216274231672287, -0.03748486563563347, 0.17510758340358734, -0.04263873025774956, -0.07253330945968628, 0.32253938913345337, 0.08584704250097275, -0.04055587574839592, 0.1921251118183136, 0.25315040349960327, 0.04165205731987953, -0.0641874223947525, -0.18579822778701782, 0.1590694636106491, 0.3861255943775177, -0.33329862356185913, 0.022685503587126732, -0.13540174067020416, 0.11588894575834274, -0.3470715284347534, -0.5211396813392639, -0.1947544664144516, -0.09130865335464478, 0.13332533836364746, 0.1650410294532776, -0.05840641260147095, -0.032302550971508026, 0.23289349675178528, 0.18117016553878784, 0.15204626321792603, 0.2503385543823242, -0.2514142096042633, 0.18811985850334167, -0.08005206286907196, 0.08938954770565033, 0.10865076631307602, -0.36769717931747437, 0.20044223964214325, -0.007955809123814106, -0.0673934668302536, -0.20736941695213318, -0.693955659866333, 0.057714417576789856, -0.16166698932647705, 0.14958161115646362, 0.05047445371747017, 0.2029704749584198, -0.3174254894256592, -0.5606151223182678, 0.3735029399394989, 0.06312942504882812, -0.18982015550136566, 0.18627898395061493, -0.175730362534523, 0.05981254577636719, -0.07117544114589691, -0.5066558718681335, 0.008728730492293835, -0.09051384031772614, 0.37796729803085327, 0.12646062672138214, 0.2532253563404083, 0.36407074332237244, 0.1149851530790329, 0.16969718039035797, 0.04415104538202286, 0.1819905936717987, -0.22746813297271729, -0.2646886110305786, 0.09252703189849854, -0.2859387993812561, -0.24457232654094696, 0.028574708849191666, -0.213901549577713, 0.09771931171417236, 0.03799011558294296, -0.23189376294612885, -0.18813860416412354, -0.07051002234220505, 0.1189882755279541, -0.11833533644676208, -0.03023945353925228, 0.4418148100376129, -0.0818210020661354, -0.07929261028766632, 0.17010357975959778, -0.16210615634918213, 0.011400222778320312, 0.18950530886650085, 0.3329733908176422, -0.08267411589622498, 0.5983768701553345, 0.12367364764213562, 0.7153540253639221, -0.019663972780108452, -0.24594496190547943, 0.43096596002578735, -0.559049665927887, -0.06800363957881927, -0.14012378454208374, -0.5432993173599243, -0.01481096725910902, -0.17872777581214905, -0.1317051351070404, -0.1355525404214859, -0.3162793517112732, 0.2789739668369293, 0.21700891852378845, 0.1701374650001526, -0.18252280354499817, -0.14183609187602997, 0.21993905305862427, -0.07340492308139801, 0.4575761556625366, -0.10826559364795685, -0.15580296516418457, -0.3693024814128876, -0.22849100828170776, 0.021015871316194534, 0.20083138346672058, -0.16747885942459106, -0.25686323642730713, -0.6143181324005127, -0.5731103420257568, -0.3450019955635071, 0.31496375799179077, 0.23998810350894928, 0.48740720748901367, -0.08300256729125977, -0.09446713328361511, 0.01888567954301834, 0.2062716782093048, 0.708645224571228, -0.03686197102069855, -0.5987598896026611, 0.08196057379245758, -0.2926778197288513, -0.20083677768707275, -0.16906362771987915, -0.2925717532634735, -0.13026081025600433, 0.3646199405193329, 0.8734959363937378, -0.31216415762901306, -0.04401339590549469, 0.26013875007629395, 0.09782010316848755, -0.15618455410003662, 0.22370696067810059, -0.38719508051872253, -0.10488671809434891, -0.385213166475296, 0.04601430520415306, -0.19864337146282196, 0.343808650970459, 0.14520865678787231, -0.13246995210647583, -0.09145046770572662, -0.08115597814321518, 0.08260604739189148, 0.16970792412757874, 0.0627928227186203, 0.1927865445613861, -0.0041823964565992355, -0.07178708910942078, 0.14714103937149048, 0.29934847354888916, -0.019554518163204193, 0.035468533635139465, -0.2924562394618988, 0.02994471602141857, 0.12228059768676758, 0.3590196967124939, 0.14290408790111542, 0.06644683331251144, 0.6035638451576233, -0.2023630440235138, 0.38397639989852905, -0.2639629542827606, 0.6173534393310547, 0.6800713539123535, 0.2154114991426468, -0.05571205914020538, -0.10189028084278107, 0.04888750612735748, -0.005870591849088669, 0.09119568765163422, 0.1675247848033905, 0.13587668538093567, -0.11472111195325851, 0.5649608969688416, 0.13236156105995178, 0.9209084510803223, -0.05483829975128174, 0.007401768118143082, 0.3799513280391693, -0.057152338325977325, 0.3875161409378052, -0.40854835510253906, 0.27358120679855347, -0.36641746759414673, -0.07450287789106369, 0.08395867794752121, -0.1389715075492859, 0.3153838515281677, -0.14644934237003326, -0.17192772030830383, -0.11103945225477219, -0.1129576563835144, 0.32946550846099854, -0.287098228931427, 0.3370651602745056, 0.1720120906829834, -0.21421097218990326, -0.15585383772850037, 0.14087705314159393, -0.19515778124332428, -0.14577966928482056, 0.01494043879210949, 0.15842145681381226, -0.2615334391593933, -0.4068402647972107, -0.1001269742846489, -0.30243560671806335, -0.06159993261098862, 0.14456315338611603, 0.2776527404785156, -0.2915422320365906, 0.06836172938346863, 0.05962632596492767, 0.49773216247558594, 0.028579048812389374, -0.11249296367168427, -0.2288392335176468, -0.2999638617038727, -0.11600346863269806, -0.10070470720529556, -0.18251477181911469, 0.24257728457450867, -0.0907476395368576, -0.23360387980937958, 0.22674459218978882, 0.15406402945518494, -0.07221780717372894, -0.3591747283935547, -0.06082998216152191, 0.2245543897151947, -0.6635259389877319, -0.04048219323158264, -0.015345998108386993, 0.013673674315214157, -0.2944805920124054, 0.1488354504108429, -0.11065679788589478, -0.29013821482658386, 0.03129572793841362, 0.23722189664840698, -0.01737257093191147, -0.09038637578487396, 0.1809820681810379, 0.07184422016143799, 0.05709950625896454, 0.5330718755722046, -0.04439188539981842, 0.024482011795043945, -0.15592625737190247, 0.3619891405105591, 0.23804020881652832, -0.03660275414586067, 0.06400582939386368, 0.09488723427057266, -0.28443264961242676, -0.20062460005283356, 0.41438910365104675, 0.05324344336986542, 0.44729894399642944, 0.0981033444404602, -0.014417935162782669, -0.526648759841919, 0.07417132705450058, -0.06717249751091003, 0.23089206218719482, -0.09574972093105316, 0.5987727642059326, -0.36584383249282837, 0.110848069190979, -0.31236135959625244, 0.05593814700841904, -0.32135871052742004, 0.29983556270599365, -0.07332886755466461, -0.2608674168586731, 0.210067018866539, -0.01996082440018654, 0.18605060875415802, 0.13357573747634888, 0.14411652088165283, -0.2134939730167389, -0.29206588864326477, 0.058721624314785004, 0.2845342457294464, -0.15611648559570312, -0.17014941573143005, 0.16797907650470734, 0.06838013231754303, -0.0878395214676857, -0.002453656867146492, 0.08355535566806793, -0.004101768136024475, 0.29379716515541077, -0.09924127161502838, 0.07228159159421921, 0.21244342625141144, -0.3502048850059509, -0.008315138518810272, 0.1851738691329956, 0.22987742722034454, 0.09699448943138123, -0.2138761430978775, -0.052607230842113495, -0.2925545573234558, 0.2591095566749573, 0.3123399615287781, -0.3182160258293152, 0.33170074224472046, -0.2950998544692993, 0.034788381308317184, 0.04827138036489487, -0.04600943252444267, 0.10431089997291565, -0.35720258951187134, 0.14900489151477814, 0.2870798707008362, 0.2078304886817932, -0.1878938376903534, -0.02010706253349781, 0.23446106910705566, -0.36071354150772095, -0.02134111151099205, 0.2761378884315491, 0.29247140884399414, 0.20321372151374817, -0.08097280561923981, -0.05728382617235184, 0.11899523437023163, -0.07729902118444443, 0.06638304144144058, 0.01121380552649498, -0.40240296721458435, -0.07517464458942413, 0.39831021428108215, 0.13696302473545074, 0.09191477298736572, 0.07841984927654266, -0.0976666733622551, 0.25431230664253235, -0.18640708923339844, -0.013794053345918655, 0.28079935908317566, -0.15608620643615723, 0.0723203495144844, -0.1369103193283081, 0.14036902785301208, -0.1618686318397522, -0.12857864797115326, 0.16049762070178986, 0.15781155228614807, -0.08839595317840576, -0.023510774597525597, 0.24025548994541168, -0.39054974913597107, 0.08211943507194519, 0.006496362388134003, 0.03360366076231003, -0.13848257064819336, -0.29224056005477905, -0.02210930362343788, -0.20374761521816254, -0.15206655859947205, -0.08630241453647614, -0.19946511089801788, 0.11562766134738922, -0.057846829295158386, 0.17294082045555115, 0.14270693063735962, -0.1755811721086502, 0.2703374922275543, 0.13409051299095154, -0.191984623670578, -0.12990935146808624, 0.23309354484081268, 0.4941273033618927, 0.22440069913864136, 0.06686680018901825, 0.24263855814933777, -0.32194504141807556, -0.09200732409954071, 0.29621922969818115, 0.2156580239534378, 0.3809555768966675, 0.23335228860378265, -0.19935724139213562, 0.03078453801572323, -0.16656629741191864, 0.017886104062199593, 0.0012005046010017395, 0.033989518880844116, -0.11178967356681824, 0.3315589427947998, 0.0011768266558647156, -0.2301672399044037, -0.256845623254776, -0.10108234733343124, -0.24455717206001282, 0.08861744403839111, 0.4669315814971924, -0.001402571564540267, 0.10440654307603836, -0.10492027550935745, 0.08944972604513168, 0.13528205454349518, 0.17380645871162415, 0.18572717905044556, -0.13693633675575256, -0.32242298126220703, 0.009884409606456757, -0.21221305429935455, 0.2836522161960602, 0.1567550003528595, 0.2753317356109619, 0.18742722272872925, 0.3362753391265869, -0.1225937232375145, -0.09886927902698517, 0.12453559041023254, -0.2642427980899811, 0.017405305057764053, 0.11404777318239212, -0.11866042017936707, 0.2816109359264374, -0.23290912806987762, 0.09601744264364243, 0.17165431380271912, 0.26332202553749084, 0.24187812209129333, 0.04591706022620201, -0.04000838100910187, -0.2523147463798523, 0.1260714828968048, -0.2248924970626831, -0.051784947514534, 0.2285369336605072, 0.08844197541475296, 0.398522287607193, -0.1261555552482605, -0.07687938958406448, 0.11913011968135834, -0.23582862317562103, -0.2963833212852478, 0.36595407128334045, 0.024190044030547142, 0.16854864358901978, 0.19184266030788422, -0.3437747657299042, -0.3059345781803131, 0.10644574463367462, 0.1542985886335373, -0.6872486472129822, -0.33951449394226074, 0.5021575689315796, 0.13894611597061157, 0.03471526503562927, 0.24543200433254242, 0.30678364634513855, 0.1933329999446869, 0.3114829361438751, -0.07803463190793991, -0.3688541352748871, 0.5684376955032349, -0.19465745985507965, -0.06466150283813477, -0.16890227794647217, 0.21449893712997437, 0.29172056913375854, 0.016347933560609818, -0.7518454790115356, -0.43280455470085144, 0.38512226939201355, -0.07532733678817749, -0.16818366944789886, 0.24778515100479126, 0.09874406456947327, -0.049805428832769394, -0.006049782037734985, 0.14281325042247772, -0.06251674145460129, -0.007362062111496925, 0.15401875972747803, -0.11295706033706665 ]
https://github.com/huggingface/datasets/issues/3358
add new field, and get errors
> Hi, > > could you please post this question on our [Forum](https://discuss.huggingface.co/) as we keep issues for bugs and feature requests? ok.
after adding new field **tokenized_examples["example_id"]**, and get errors below, I think it is due to changing data to tensor, and **tokenized_examples["example_id"]** is string list **all fields** ``` ***************** train_dataset 1: Dataset({ features: ['attention_mask', 'end_positions', 'example_id', 'input_ids', 'start_positions', 'token_type_ids'], num_rows: 87714 }) ``` **Errors** ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 705, in convert_to_tensors tensor = as_tensor(value) ValueError: too many dimensions 'str' ```
23
add new field, and get errors after adding new field **tokenized_examples["example_id"]**, and get errors below, I think it is due to changing data to tensor, and **tokenized_examples["example_id"]** is string list **all fields** ``` ***************** train_dataset 1: Dataset({ features: ['attention_mask', 'end_positions', 'example_id', 'input_ids', 'start_positions', 'token_type_ids'], num_rows: 87714 }) ``` **Errors** ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 705, in convert_to_tensors tensor = as_tensor(value) ValueError: too many dimensions 'str' ``` > Hi, > > could you please post this question on our [Forum](https://discuss.huggingface.co/) as we keep issues for bugs and feature requests? ok.
[ 0.049464043229818344, -0.45958399772644043, -0.04163656383752823, 0.2271220088005066, 0.29889529943466187, 0.2176530659198761, 0.5312835574150085, 0.326318621635437, -0.10522158443927765, 0.1934482455253601, 0.33195891976356506, -0.05348474159836769, -0.09545104950666428, 0.14284731447696686, 0.13213318586349487, -0.3765428364276886, 0.2242109775543213, -0.03735652565956116, 0.3674284815788269, 0.07731981575489044, -0.2338249534368515, 0.03817751258611679, -0.09499114006757736, 0.14305798709392548, -0.7133243680000305, -0.19781222939491272, -0.2818620800971985, -0.298021525144577, -0.15024881064891815, -0.4651328921318054, -0.09851949661970139, -0.19783391058444977, 0.23556283116340637, 0.38816189765930176, -0.00011450840975157917, -0.04452170431613922, -0.014163486659526825, 0.13635161519050598, 0.09119026362895966, -0.30352306365966797, 0.14150762557983398, -0.5094678401947021, 0.1612446904182434, -0.2362726330757141, -0.04256772994995117, -0.31968188285827637, -0.2887624204158783, 0.05727511644363403, 0.25348103046417236, 0.6204357743263245, 0.20754018425941467, 0.2654421925544739, 0.08965972065925598, -0.012837241403758526, 0.28064844012260437, 0.13334304094314575, -0.15833093225955963, -0.11358538269996643, -0.07194598019123077, 0.2066909223794937, 0.3191039562225342, 0.10226047039031982, -0.08782147616147995, -0.14617212116718292, -0.017759554088115692, 0.2018308937549591, -0.011034049093723297, -0.34757211804389954, -0.0969163104891777, 0.23712080717086792, 0.036723505705595016, -0.04193667322397232, -0.2668241262435913, -0.2703271806240082, 0.14981739223003387, -0.8005064129829407, -0.006583459675312042, -0.08473177254199982, 0.1513306051492691, -0.09444689750671387, 0.12086407840251923, -0.1834402084350586, -0.2301209270954132, 0.26834550499916077, -0.07018329203128815, 0.2840688228607178, 0.06115246191620827, 0.07714775204658508, -0.00847361609339714, -0.2995910048484802, -0.22733037173748016, 0.2170160561800003, 0.08363313972949982, 0.04671693593263626, -0.3409612774848938, -0.3207494020462036, -0.2056911587715149, -0.8456076383590698, -0.029617777094244957, -0.13110840320587158, 0.14182309806346893, 0.07433278858661652, -0.10187086462974548, 0.15077780187129974, -0.16908733546733856, 0.4221654236316681, -0.2767636477947235, 0.329892098903656, 0.031775541603565216, -0.0018063110765069723, 0.0915054976940155, -0.21198752522468567, -0.053437989205121994, 0.07466398179531097, -0.2136532962322235, -0.08816424757242203, 0.2710961699485779, 0.17668363451957703, -0.2154185175895691, 0.23511040210723877, -0.3669191300868988, -0.08394875377416611, 0.32227736711502075, 0.3090451657772064, -0.010638236068189144, -0.06337201595306396, -0.022061211988329887, 0.3528704047203064, 0.0900324210524559, 0.026256248354911804, -0.10021267831325531, 0.23456057906150818, 0.03777400776743889, 0.08943680673837662, -0.011039819568395615, 0.26042014360427856, 0.15943948924541473, 0.16347278654575348, 0.1630769670009613, -0.08134585618972778, 0.06599688529968262, -0.33402496576309204, -0.01730264723300934, 0.24245674908161163, -0.1721290946006775, 0.13670653104782104, 0.11508986353874207, -0.3379417061805725, -0.099439337849617, 0.13728618621826172, -0.43853747844696045, -0.27945706248283386, -0.2625274360179901, 0.22617048025131226, 0.07457658648490906, -0.20508405566215515, -0.141849547624588, 0.42586520314216614, 0.17837083339691162, 0.04111436381936073, 0.08661384135484695, -0.11891542375087738, -0.2182132601737976, -0.22051461040973663, -0.08356068283319473, -0.026122242212295532, 0.09875699877738953, -0.07414211332798004, 0.24885286390781403, 0.21321436762809753, 0.24480101466178894, 0.3794904947280884, -0.09552110731601715, 0.18532517552375793, -0.10211139917373657, 0.6436731219291687, 0.5139322876930237, -0.10697776079177856, 0.08399364352226257, 0.049797605723142624, -0.10871164500713348, -0.010399077087640762, 0.08729873597621918, -0.06771137565374374, 0.3736267685890198, 0.2547331154346466, 0.06408320367336273, -0.04961736500263214, -0.17895612120628357, 0.01782761700451374, -0.20958825945854187, -0.057637184858322144, 0.48780930042266846, -0.04162345454096794, 0.08598732948303223, 0.13841496407985687, -0.1223919615149498, 0.3903977572917938, -0.11928365379571915, -0.23771145939826965, -0.050020232796669006, 0.20923489332199097, 0.42960548400878906, 0.05498840659856796, 0.013645458966493607, -0.2713923752307892, -0.21550679206848145, -0.1048235222697258, -0.028540272265672684, 0.3129201829433441, 0.12875200808048248, -0.16711653769016266, -0.08491363376379013, 0.08552353084087372, 0.006046507507562637, -0.061501163989305496, 0.16394758224487305, -0.12795838713645935, -0.06686240434646606, -0.1708507388830185, -0.3525914251804352, -0.17776338756084442, -0.26892295479774475, 0.3091745376586914, -0.006608948111534119, 0.09199968725442886, -0.20171619951725006, -0.27088481187820435, -0.34191542863845825, 0.1802118718624115, 0.44796815514564514, -0.3205738067626953, -0.15004226565361023, 0.22284358739852905, 0.09557611495256424, -0.14702178537845612, -0.17986345291137695, 0.5841487050056458, 0.47319090366363525, 0.050756726413965225, -0.049394890666007996, 0.10524678230285645, -0.20800919830799103, 0.047979936003685, 0.2988717555999756, 0.2580324411392212, 0.06680350005626678, 0.09631310403347015, 0.007230356335639954, -0.02175251580774784, 0.27270200848579407, -0.049685221165418625, -0.07147272676229477, -0.24844570457935333, 0.030501030385494232, -0.02206900343298912, -0.28820088505744934, -0.19624051451683044, -0.40232452750205994, 0.027778930962085724, 0.4156401753425598, 0.034707557410001755, 0.11789079010486603, 0.34821799397468567, 0.044149093329906464, -0.010266508907079697, -0.19114892184734344, -0.1355467140674591, 0.17855650186538696, 0.21432912349700928, -0.04003254696726799, 0.1805187165737152, -0.04633517563343048, -0.07078146189451218, 0.3125252425670624, 0.0875537097454071, -0.020563717931509018, 0.18751537799835205, 0.23909230530261993, 0.04491426795721054, -0.047315169125795364, -0.19328944385051727, 0.18374529480934143, 0.4113525450229645, -0.3289891183376312, 0.04410204291343689, -0.13522562384605408, 0.11389253288507462, -0.3598470091819763, -0.5092570185661316, -0.1970314234495163, -0.07580545544624329, 0.1417430341243744, 0.1488671451807022, -0.05441112816333771, -0.025981614366173744, 0.24841105937957764, 0.1901666820049286, 0.15330970287322998, 0.22891156375408173, -0.21101558208465576, 0.18081192672252655, -0.09960810095071793, 0.0820932537317276, 0.1093161329627037, -0.36720460653305054, 0.19352145493030548, -0.014210972934961319, -0.07373636960983276, -0.20336635410785675, -0.6990796327590942, 0.03335677087306976, -0.16480295360088348, 0.15015368163585663, 0.03508501127362251, 0.20672166347503662, -0.3207113742828369, -0.5492857694625854, 0.3680836260318756, 0.04111657291650772, -0.17375428974628448, 0.19309204816818237, -0.19846481084823608, 0.07475212961435318, -0.07035940140485764, -0.5334656238555908, -0.004890162497758865, -0.08046196401119232, 0.37079310417175293, 0.12311501801013947, 0.2492717057466507, 0.36797869205474854, 0.11917169392108917, 0.17232519388198853, 0.06138503924012184, 0.17618075013160706, -0.2066817581653595, -0.26504597067832947, 0.11201485991477966, -0.3018299341201782, -0.25151708722114563, 0.029343921691179276, -0.21352656185626984, 0.09859880805015564, 0.020995166152715683, -0.22884100675582886, -0.16824667155742645, -0.06334631145000458, 0.08831851184368134, -0.13248120248317719, -0.02776469476521015, 0.4366389513015747, -0.08345355838537216, -0.06779786199331284, 0.16702011227607727, -0.15215784311294556, 0.02778993546962738, 0.20062950253486633, 0.3603658974170685, -0.07574409246444702, 0.5954307913780212, 0.12147201597690582, 0.6986413598060608, -0.017406390979886055, -0.25626543164253235, 0.4088596999645233, -0.5466685891151428, -0.07966363430023193, -0.12427333742380142, -0.5318899750709534, -0.010012929327785969, -0.16345006227493286, -0.11898209154605865, -0.13745293021202087, -0.30813220143318176, 0.2487965226173401, 0.20630517601966858, 0.15597663819789886, -0.1808672547340393, -0.1306675374507904, 0.2160068154335022, -0.06829804927110672, 0.4520578384399414, -0.11129318177700043, -0.1769368052482605, -0.36078906059265137, -0.23291754722595215, 0.017142217606306076, 0.1880161464214325, -0.18558791279792786, -0.2484457790851593, -0.6180874705314636, -0.5673628449440002, -0.3287164866924286, 0.3219512104988098, 0.22863270342350006, 0.4899332523345947, -0.0784393846988678, -0.07355132699012756, 0.02054256945848465, 0.19699320197105408, 0.7031799554824829, -0.058872148394584656, -0.6067177057266235, 0.08343639969825745, -0.2709706425666809, -0.21535049378871918, -0.180275097489357, -0.28886574506759644, -0.15168708562850952, 0.3666370213031769, 0.8600205183029175, -0.31518417596817017, -0.028246602043509483, 0.2559083104133606, 0.11613614112138748, -0.15598082542419434, 0.2093016654253006, -0.3855769634246826, -0.09525313973426819, -0.38917461037635803, 0.056867457926273346, -0.20127104222774506, 0.3361481726169586, 0.13319753110408783, -0.1539323776960373, -0.0675232857465744, -0.07905474305152893, 0.08604598045349121, 0.1875108778476715, 0.07109282910823822, 0.1916082501411438, 0.001277472823858261, -0.07659078389406204, 0.12939894199371338, 0.3282066583633423, -0.0072725676000118256, 0.02819827012717724, -0.28463271260261536, 0.03629050403833389, 0.11548314988613129, 0.3558550477027893, 0.1270957589149475, 0.07227049022912979, 0.6134908199310303, -0.1980644315481186, 0.39824533462524414, -0.23517794907093048, 0.6314568519592285, 0.687759280204773, 0.22082626819610596, -0.048414066433906555, -0.12195157259702682, 0.039866700768470764, -0.022931940853595734, 0.09785796701908112, 0.16608422994613647, 0.12741169333457947, -0.0948023572564125, 0.5684191584587097, 0.12846890091896057, 0.9635342359542847, -0.05725381523370743, -0.01795940473675728, 0.34079644083976746, -0.0852859616279602, 0.39713922142982483, -0.4192531108856201, 0.2605783939361572, -0.37921664118766785, -0.09122342616319656, 0.095464788377285, -0.13231131434440613, 0.3142624497413635, -0.13230781257152557, -0.18371964991092682, -0.1296418458223343, -0.11843957006931305, 0.3153230845928192, -0.2798677980899811, 0.3478437066078186, 0.17423704266548157, -0.210365891456604, -0.1415959596633911, 0.13644173741340637, -0.21310754120349884, -0.18602675199508667, 0.01972394809126854, 0.1756029725074768, -0.268811970949173, -0.39448249340057373, -0.07562574744224548, -0.2826622426509857, -0.052784185856580734, 0.13549822568893433, 0.27037593722343445, -0.3007282316684723, 0.07386942207813263, 0.07458926737308502, 0.5060703158378601, 0.04635933041572571, -0.11428661644458771, -0.22046460211277008, -0.2859407961368561, -0.12749752402305603, -0.0938144400715828, -0.18734033405780792, 0.2595444917678833, -0.10106980800628662, -0.2667843997478485, 0.22720155119895935, 0.1762264519929886, -0.07411761581897736, -0.3238297998905182, -0.07517601549625397, 0.24651974439620972, -0.6283183097839355, -0.024881063029170036, -0.02935575693845749, 0.011065930128097534, -0.2994450628757477, 0.14671531319618225, -0.11121764779090881, -0.2998708188533783, 0.0376289039850235, 0.24256259202957153, -0.026486851274967194, -0.08247700333595276, 0.17245931923389435, 0.08047124743461609, 0.04411324858665466, 0.539473295211792, -0.032411545515060425, 0.030526958405971527, -0.15108776092529297, 0.3717615008354187, 0.23513852059841156, -0.013606462627649307, 0.04091540351510048, 0.10965215414762497, -0.25879210233688354, -0.18386490643024445, 0.40980157256126404, 0.05312991514801979, 0.4500694274902344, 0.0865272581577301, -0.018145978450775146, -0.5363951325416565, 0.06650068610906601, -0.07980985939502716, 0.23402856290340424, -0.0904003381729126, 0.6041982769966125, -0.3543817698955536, 0.14955414831638336, -0.31148967146873474, 0.06092839688062668, -0.3129848837852478, 0.31932100653648376, -0.0850227102637291, -0.25660082697868347, 0.2127743661403656, -0.018496349453926086, 0.16471454501152039, 0.15476691722869873, 0.1509684920310974, -0.20204955339431763, -0.30246612429618835, 0.06505722552537918, 0.30999308824539185, -0.14913903176784515, -0.1671670526266098, 0.13800352811813354, 0.06368474662303925, -0.08195886015892029, -0.013239104300737381, 0.09583096951246262, -0.018738560378551483, 0.3100919723510742, -0.07793095707893372, 0.0480041429400444, 0.20541584491729736, -0.3653734624385834, -0.0259697362780571, 0.17399725317955017, 0.23984427750110626, 0.0804482251405716, -0.20907016098499298, -0.07731252908706665, -0.2942226827144623, 0.24839872121810913, 0.3181612491607666, -0.3267735540866852, 0.3419547379016876, -0.29376161098480225, 0.057294245809316635, 0.050922974944114685, -0.05465998873114586, 0.10837456583976746, -0.3477485775947571, 0.14968980848789215, 0.2948283553123474, 0.19875459372997284, -0.19883574545383453, -0.014067504554986954, 0.22441866993904114, -0.368612676858902, -0.03349500149488449, 0.2937747836112976, 0.289124071598053, 0.2162141501903534, -0.0852125734090805, -0.05758253484964371, 0.12837252020835876, -0.0852479636669159, 0.0832875519990921, 0.0088263638317585, -0.41336020827293396, -0.07784554362297058, 0.4086763262748718, 0.13097162544727325, 0.08076625317335129, 0.0668448656797409, -0.10751142352819443, 0.23441866040229797, -0.18907514214515686, -0.016794029623270035, 0.2703411281108856, -0.15842992067337036, 0.06317254900932312, -0.147355854511261, 0.1443454921245575, -0.16432079672813416, -0.13474492728710175, 0.16914676129817963, 0.17681367695331573, -0.08839089423418045, -0.015293721109628677, 0.2405863255262375, -0.36899831891059875, 0.09139074385166168, -0.024032291024923325, 0.04906105250120163, -0.14937835931777954, -0.28853940963745117, -0.011309869587421417, -0.19529534876346588, -0.14327727258205414, -0.06984905898571014, -0.20608793199062347, 0.1207885667681694, -0.06201940029859543, 0.17665526270866394, 0.14603430032730103, -0.19880060851573944, 0.2617150843143463, 0.13567905128002167, -0.17810603976249695, -0.14034251868724823, 0.20108528435230255, 0.47234928607940674, 0.23239006102085114, 0.0531996488571167, 0.25823459029197693, -0.295598566532135, -0.08061323314905167, 0.32510092854499817, 0.19437463581562042, 0.39559832215309143, 0.2218879908323288, -0.19669890403747559, 0.018768025562167168, -0.15859872102737427, 0.01964048482477665, 0.004583496600389481, 0.044922687113285065, -0.10110850632190704, 0.3011155128479004, 0.03685763105750084, -0.22690662741661072, -0.25951719284057617, -0.10052511841058731, -0.28267017006874084, 0.06999700516462326, 0.47212469577789307, -0.008855683729052544, 0.09430965036153793, -0.12414152175188065, 0.08777101337909698, 0.12867239117622375, 0.19137874245643616, 0.18263694643974304, -0.13225647807121277, -0.34555163979530334, -0.004736848175525665, -0.20266249775886536, 0.30432409048080444, 0.13891629874706268, 0.2789456844329834, 0.18127186596393585, 0.3066740930080414, -0.134664386510849, -0.09764893352985382, 0.1341666281223297, -0.24046577513217926, 0.024959072470664978, 0.10757282376289368, -0.11934231221675873, 0.2629643678665161, -0.25479263067245483, 0.09821123629808426, 0.17639513313770294, 0.2799113392829895, 0.2255411595106125, 0.03694375604391098, -0.05017125606536865, -0.24129129946231842, 0.10840503871440887, -0.20995977520942688, -0.039610058069229126, 0.2259698510169983, 0.07650365680456161, 0.4098382592201233, -0.12379446625709534, -0.05942074954509735, 0.14889034628868103, -0.2221011370420456, -0.3085092306137085, 0.3641911745071411, 0.032849911600351334, 0.15691567957401276, 0.18783584237098694, -0.350721538066864, -0.3045070469379425, 0.10425588488578796, 0.14558963477611542, -0.7004936337471008, -0.3431568741798401, 0.48972752690315247, 0.15495565533638, 0.023557528853416443, 0.2542872428894043, 0.28208526968955994, 0.18983496725559235, 0.30616405606269836, -0.07807745039463043, -0.37557825446128845, 0.5800890922546387, -0.15999355912208557, -0.06167348474264145, -0.16208156943321228, 0.21295639872550964, 0.28481876850128174, 0.04505930840969086, -0.7709115147590637, -0.435921847820282, 0.38052746653556824, -0.05563034862279892, -0.18029823899269104, 0.2399849146604538, 0.10726720094680786, -0.04538784921169281, -0.011845866218209267, 0.1514008641242981, -0.06576061993837357, 0.027599671855568886, 0.1340050846338272, -0.11735767126083374 ]
https://github.com/huggingface/datasets/issues/3353
add one field "example_id", but I can't see it in the "comput_loss" function
Hi ! Your function looks fine, I used to map `squad` locally and it indeed added the `example_id` field correctly. However I think that in the `compute_loss` method only a subset of the fields are available: the model inputs. Since `example_id` is not a model input (it's not passed as a parameter to the model), the data loader doesn't need to return it by default. However you can disable this behavior by setting `remove_unused_columns` to `False` to your training arguments. In this case in `compute_loss` you will get the full item with all the fields. Note that since the model doesn't take `example_id` as input, you will have to remove it from the inputs when `model(**inputs)` is called
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_
118
add one field "example_id", but I can't see it in the "comput_loss" function Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_ Hi ! Your function looks fine, I used to map `squad` locally and it indeed added the `example_id` field correctly. However I think that in the `compute_loss` method only a subset of the fields are available: the model inputs. Since `example_id` is not a model input (it's not passed as a parameter to the model), the data loader doesn't need to return it by default. However you can disable this behavior by setting `remove_unused_columns` to `False` to your training arguments. In this case in `compute_loss` you will get the full item with all the fields. Note that since the model doesn't take `example_id` as input, you will have to remove it from the inputs when `model(**inputs)` is called
[ -0.1465505063533783, -0.5799234509468079, -0.27407172322273254, 0.12024857103824615, 0.15451127290725708, 0.024358242750167847, 0.5186564326286316, 0.11919942498207092, 0.21184153854846954, 0.46522027254104614, 0.35325855016708374, 0.3118037283420563, 0.2009700983762741, -0.12374432384967804, 0.37870848178863525, 0.002258904278278351, -0.037914715707302094, 0.22412890195846558, 0.2628960609436035, -0.1642497181892395, -0.183089479804039, -0.08786004781723022, -0.21892495453357697, 0.022623956203460693, -0.286874383687973, -0.2088925540447235, 0.053089551627635956, -0.12556111812591553, -0.08682988584041595, -0.04241667315363884, 0.18709886074066162, -0.1108931303024292, -0.23998703062534332, 0.19970640540122986, -0.0001078606364899315, 0.10455688834190369, 0.1533193141222, -0.060825638473033905, -0.027286069467663765, -0.15439282357692719, -0.2217090129852295, -0.2605636417865753, -0.03601829707622528, -0.32417598366737366, -0.04981142282485962, 0.12347085773944855, -0.1091194748878479, -0.3235187232494354, 0.07952187955379486, 0.2246318757534027, 0.200823575258255, -0.10873186588287354, 0.12740759551525116, -0.000011923257261514664, 0.2504413425922394, 0.055052146315574646, 0.09210056066513062, -0.22741225361824036, -0.25794410705566406, -0.057758837938308716, 0.4909743666648865, 0.4897180199623108, 0.33997106552124023, -0.11952689290046692, 0.012490242719650269, 0.27129092812538147, 0.29391351342201233, -0.19182826578617096, 0.08529679477214813, -0.1495797336101532, -0.2388661503791809, -0.08748900145292282, -0.05443548411130905, 0.10713199526071548, 0.1659790724515915, -0.7740444540977478, -0.2672746479511261, -0.015106692910194397, 0.007978875190019608, 0.036080315709114075, 0.2593708336353302, 0.0940452292561531, -0.3109922409057617, 0.4295266270637512, 0.07097843289375305, 0.2999992370605469, 0.057178013026714325, 0.10110373795032501, 0.19335944950580597, -0.010559625923633575, -0.015152583830058575, 0.31693169474601746, 0.3318518102169037, 0.07476059347391129, -0.3491978347301483, 0.03461724519729614, -0.08718860894441605, -0.48206809163093567, -0.15340793132781982, -0.2185964435338974, 0.3559987246990204, 0.199703186750412, 0.21666908264160156, 0.47769930958747864, -0.35774868726730347, 0.23267416656017303, -0.15468496084213257, 0.006708766333758831, 0.04889189824461937, -0.094222292304039, 0.01682131737470627, -0.2492658793926239, -0.047601036727428436, 0.20710155367851257, 0.007518045604228973, 0.18787813186645508, 0.059870071709156036, 0.2564726173877716, -0.38190168142318726, -0.07115659862756729, -0.043254293501377106, -0.18922542035579681, 0.29996371269226074, 0.3324873149394989, 0.11979018896818161, 0.11905054748058319, 0.17693987488746643, 0.09451788663864136, -0.06571480631828308, -0.09953609853982925, -0.34466665983200073, 0.3517919182777405, -0.008103501051664352, -0.03120715357363224, 0.22983045876026154, 0.13715042173862457, 0.23834457993507385, -0.1337924301624298, 0.21796372532844543, -0.08600111305713654, 0.15164701640605927, -0.11660747230052948, 0.455160915851593, 0.26302850246429443, -0.1637023687362671, 0.013452531769871712, 0.25688230991363525, -0.21185296773910522, 0.02061336487531662, 0.10650630295276642, -0.22217699885368347, -0.02471642941236496, -0.2702468931674957, 0.17697085440158844, 0.31743675470352173, -0.06595046073198318, 0.19906693696975708, 0.4340725243091583, 0.03069140762090683, -0.18203973770141602, 0.1591264009475708, 0.2752166986465454, -0.4124225378036499, -0.23819246888160706, 0.3947792649269104, -0.1607450693845749, -0.1401054710149765, -0.14178596436977386, -0.26048949360847473, 0.1221226304769516, 0.1909761130809784, -0.08421394228935242, -0.0475601926445961, -0.028274334967136383, 0.06375133991241455, 0.34943562746047974, 0.8107308149337769, -0.37449580430984497, -0.27953845262527466, -0.07113315910100937, -0.24328665435314178, -0.3155626356601715, 0.3230952322483063, 0.10943273454904556, -0.03464546427130699, 0.3508976697921753, 0.3981732428073883, -0.2225913554430008, -0.05804062634706497, -0.09517022222280502, -0.15732446312904358, 0.14402742683887482, 0.2992531657218933, -0.040586214512586594, -0.03264493867754936, 0.2290869653224945, 0.15603725612163544, -0.04629472270607948, 0.17617611587047577, 0.05213678255677223, 0.03905804455280304, -0.04934406280517578, 0.4451037645339966, -0.3515293002128601, -0.07901818305253983, -0.3894444406032562, 0.05632849782705307, 0.03272564709186554, 0.10555991530418396, -0.10647164285182953, 0.24911420047283173, -0.3219108581542969, -0.15661945939064026, -0.11717279255390167, 0.2654784321784973, 0.14617368578910828, 0.2600668668746948, 0.16032758355140686, -0.1780053824186325, -0.21015025675296783, -0.18496844172477722, 0.20141571760177612, 0.10876348614692688, -0.11753661930561066, -0.060579393059015274, 0.10880695283412933, -0.25905612111091614, -0.3654019236564636, -0.23506221175193787, 0.19874092936515808, 0.5106496214866638, -0.0705522894859314, 0.11463408172130585, 0.20250022411346436, 0.05768122151494026, -0.137992262840271, -0.08048350363969803, 0.24741005897521973, 0.23882710933685303, 0.19635558128356934, -0.09220878034830093, -0.04107346013188362, -0.06624588370323181, -0.03226540610194206, 0.025320306420326233, 0.12644049525260925, 0.14899809658527374, -0.10233684629201889, -0.03880937397480011, -0.036698658019304276, 0.0363958403468132, 0.10487061738967896, -0.008195837028324604, -0.21249288320541382, -0.029219437390565872, -0.027104072272777557, -0.18801409006118774, -0.33968356251716614, -0.6948494911193848, 0.27741262316703796, 0.37535029649734497, 0.22507208585739136, 0.08878424018621445, -0.15434014797210693, 0.105450838804245, 0.30961543321609497, 0.17411383986473083, -0.06889986991882324, 0.2824614644050598, 0.24315251410007477, -0.0006570518016815186, -0.1929287165403366, -0.14591450989246368, 0.033299945294857025, -0.12179524451494217, 0.016118600964546204, -0.008892922662198544, 0.0553404800593853, 0.04604121297597885, -0.12206541746854782, -0.07414010167121887, 0.10981109738349915, -0.04258061200380325, 0.1530541032552719, -0.18196004629135132, 0.0745958685874939, -0.2065948098897934, -0.17015650868415833, -0.017663821578025818, -0.18788482248783112, 0.4881093204021454, -0.23571260273456573, 0.10856329649686813, 0.0685063824057579, -0.031224047765135765, 0.1133594959974289, 0.30108633637428284, 0.34934353828430176, 0.0032122228294610977, 0.4118722975254059, -0.5014946460723877, 0.07543579488992691, 0.08037222921848297, 0.13477171957492828, -0.3237752318382263, 0.22297066450119019, 0.08992332220077515, 0.11998603492975235, 0.16347551345825195, 0.1981918215751648, -0.5743004679679871, -0.0457441508769989, -0.18284857273101807, -0.1081300675868988, -0.23218196630477905, 0.3006095588207245, -0.4940451979637146, -0.4426557421684265, 0.04450170695781708, -0.11928471177816391, -0.17091071605682373, -0.02206408604979515, -0.10975947231054306, 0.06127258390188217, -0.3739386200904846, -0.4167385995388031, -0.271655797958374, -0.25357598066329956, 0.35338854789733887, 0.1404964029788971, 0.12868887186050415, -0.020596947520971298, 0.12339930236339569, 0.002261517569422722, 0.39003998041152954, 0.36847761273384094, -0.2363979071378708, -0.3898073136806488, 0.2644091844558716, -0.4682348072528839, -0.27534523606300354, 0.11900891363620758, -0.24284610152244568, 0.30595263838768005, -0.05519142746925354, -0.04299936443567276, -0.13260379433631897, 0.1728418916463852, -0.13908009231090546, -0.19780127704143524, 0.2503291666507721, 0.5233487486839294, -0.12633855640888214, -0.15030188858509064, -0.177924245595932, -0.4433754086494446, 0.13432706892490387, 0.3658439517021179, 0.2038743495941162, -0.3099861741065979, 0.2279682755470276, -0.013108424842357635, 0.5472480654716492, 0.01508670300245285, -0.59005206823349, 0.10565779358148575, -0.35956230759620667, -0.031962376087903976, 0.2820093035697937, -0.3894619047641754, -0.04178690165281296, 0.12351633608341217, 0.005694301798939705, -0.14670680463314056, -0.42879265546798706, -0.25679177045822144, -0.076689213514328, 0.0805046409368515, -0.5425464510917664, 0.01812451332807541, -0.1387893110513687, 0.047017719596624374, -0.0577976331114769, -0.11379742622375488, -0.0473475381731987, -0.4487857222557068, 0.06331223994493484, 0.20295237004756927, 0.10947459936141968, -0.08091705292463303, -0.21519668400287628, 0.1158837378025055, -0.770978569984436, -0.22945734858512878, 0.21596308052539825, -0.03206930682063103, 0.05482260137796402, -0.047710664570331573, -0.18983671069145203, -0.046377673745155334, 0.18217922747135162, 0.41062361001968384, -0.2682364284992218, -0.37916702032089233, 0.3391001224517822, -0.1767854243516922, 0.022389007732272148, 0.08054809272289276, -0.14872947335243225, -0.09032963216304779, 0.39954283833503723, 0.25765013694763184, -0.2826339602470398, 0.1514882743358612, 0.45748370885849, 0.017806466668844223, -0.14331337809562683, 0.1389862298965454, -0.40724843740463257, 0.09213858097791672, -0.22520169615745544, 0.06330879777669907, 0.10531113296747208, 0.24567176401615143, 0.3113097846508026, -0.15682198107242584, -0.04941975325345993, -0.2709628939628601, 0.09919638186693192, 0.18987798690795898, 0.13287104666233063, 0.4358682334423065, -0.1194884330034256, 0.2090509980916977, 0.28224658966064453, -0.21775859594345093, -0.08029216527938843, 0.09665125608444214, -0.03693978488445282, 0.1970514953136444, -0.07687702029943466, 0.410770982503891, 0.07123658806085587, 0.018029052764177322, 0.2601253092288971, -0.15418238937854767, 0.31888025999069214, -0.05465507134795189, 0.2812376916408539, 0.3012107312679291, 0.048341572284698486, 0.24144114553928375, -0.17652998864650726, 0.05961943417787552, -0.09588266909122467, -0.16974225640296936, 0.38878709077835083, -0.031823307275772095, -0.0489949956536293, 0.21643902361392975, 0.11204975098371506, 0.9591205716133118, -0.1575286090373993, -0.20973888039588928, 0.010101336985826492, -0.07591138780117035, 0.24658404290676117, -0.5863703489303589, 0.2355297952890396, 0.033486660569906235, -0.49882134795188904, -0.010542076081037521, -0.08819671720266342, 0.04400784522294998, 0.04039529711008072, -0.24758575856685638, -0.10447762161493301, -0.060073401778936386, 0.13262969255447388, -0.2600262761116028, 0.10427704453468323, 0.5729572176933289, -0.01450950838625431, 0.12908926606178284, 0.10716545581817627, 0.21610072255134583, -0.10327933728694916, 0.014246363192796707, 0.043841104954481125, -0.3111601173877716, -0.16519644856452942, -0.057795070111751556, -0.29262351989746094, -0.37245532870292664, 0.07791446894407272, -0.230187326669693, -0.33711129426956177, -0.13827945291996002, 0.24697470664978027, 0.5074904561042786, -0.08766181766986847, -0.0729396641254425, 0.07833805680274963, 0.03288691118359566, -0.07962076365947723, -0.4444468021392822, -0.09460942447185516, 0.13676407933235168, -0.2206639051437378, -0.4410487711429596, 0.577223002910614, 0.1857408583164215, -0.17053645849227905, -0.18996481597423553, 0.28716981410980225, -0.03837023675441742, 0.12954698503017426, 0.010304572060704231, 0.3733172118663788, -0.005395866930484772, -0.33267006278038025, 0.16275948286056519, 0.05962077155709267, -0.334980309009552, 0.055116333067417145, 0.10157691687345505, -0.05968184024095535, -0.11649651825428009, 0.27109459042549133, 0.1846640408039093, 0.11011898517608643, 0.15304645895957947, -0.3730732500553131, -0.1292414665222168, -0.2302127182483673, -0.4134924113750458, 0.2596660554409027, 0.16349583864212036, -0.27000829577445984, 0.025056706741452217, -0.2863544523715973, 0.011989651247859001, 0.11378517746925354, -0.12772630155086517, 0.46570149064064026, -0.292013943195343, -0.11934277415275574, -0.6847847700119019, 0.08466050773859024, 0.09230701625347137, 0.2418769896030426, -0.09104588627815247, 0.30854862928390503, -0.11392192542552948, 0.42074429988861084, -0.38313034176826477, -0.12363827973604202, -0.09517359733581543, 0.026160772889852524, -0.14240066707134247, 0.12539362907409668, 0.10522817820310593, 0.012082252651453018, 0.27954620122909546, 0.17916394770145416, 0.08523712307214737, -0.24466374516487122, 0.020656239241361618, 0.06733265519142151, -0.012857519090175629, 0.18863090872764587, -0.1437850147485733, 0.18278352916240692, -0.034019168466329575, 0.0805034413933754, 0.06358103454113007, -0.21421977877616882, 0.07200023531913757, 0.5170305967330933, 0.0015594102442264557, 0.37387141585350037, 0.2085384726524353, -0.38072672486305237, 0.16475960612297058, 0.19699126482009888, 0.06290850043296814, 0.07969526201486588, 0.03156718984246254, -0.19745585322380066, -0.22586312890052795, -0.1494312882423401, -0.17066945135593414, -0.10238174349069595, 0.15943703055381775, -0.08420166373252869, 0.048914942890405655, -0.2541467547416687, -0.2469746470451355, -0.19222599267959595, -0.13772612810134888, 0.40273886919021606, -0.16610568761825562, 0.3383501470088959, -0.3222353160381317, 0.21948516368865967, 0.13848981261253357, -0.23405654728412628, 0.40385791659355164, 0.16689014434814453, 0.08159485459327698, 0.10415884852409363, 0.10862765461206436, 0.000681217759847641, -0.2021351307630539, -0.3151360750198364, -0.01455564796924591, -0.22542470693588257, -0.14504696428775787, -0.052064042538404465, -0.008674735203385353, 0.46599844098091125, 0.1152549684047699, 0.0580730102956295, -0.03479732573032379, 0.31279996037483215, 0.029187627136707306, -0.25699135661125183, -0.13334637880325317, 0.2735692262649536, 0.22547318041324615, 0.14820526540279388, -0.24453216791152954, -0.2448832094669342, 0.20938079059123993, 0.014736071228981018, 0.25992438197135925, 0.11515949666500092, 0.08799374103546143, 0.024563204497098923, -0.07487369328737259, 0.13291318714618683, -0.16154132783412933, 0.02728651463985443, 0.008312173187732697, -0.4961478114128113, 0.45405814051628113, 0.019791360944509506, 0.3592815399169922, 0.009449109435081482, -0.1366969794034958, 0.3265836536884308, -0.11501803249120712, 0.2745339870452881, 0.2912698984146118, 0.014520805329084396, -0.0274460781365633, 0.18906629085540771, -0.24686771631240845, 0.02730495296418667, 0.14852693676948547, 0.19801795482635498, -0.172593891620636, 0.12429127097129822, 0.27284297347068787, 0.1988864690065384, -0.45398175716400146, -0.04389198124408722, 0.00977328885346651, 0.38970279693603516, 0.1741364449262619, -0.11748585104942322, 0.25164467096328735, -0.24389410018920898, 0.04327530786395073, 0.17277418076992035, 0.2546555697917938, -0.2248339205980301, 0.030999623239040375, -0.3233131468296051, -0.27582815289497375, -0.19087570905685425, -0.056789837777614594, -0.2546937167644501, 0.14866803586483002, -0.02844598889350891, -0.11542442440986633, 0.09206845611333847, -0.13109183311462402, 0.0961887389421463, -0.05441766604781151, 0.23663431406021118, -0.36063191294670105, 0.029850071296095848, -0.24813860654830933, -0.2751561999320984, -0.1471739262342453, 0.24833911657333374, 0.15155526995658875, -0.13869532942771912, 0.05348850414156914, 0.3183564841747284, 0.04121611639857292, -0.11018034815788269, 0.33006882667541504, -0.6668450832366943, 0.1768389642238617, 0.3580020070075989, -0.3746557831764221, 0.016439959406852722, -0.22338275611400604, -0.021176433190703392, 0.4222368001937866, 0.20508253574371338, 0.07054942101240158, 0.1290494054555893, 0.1250908076763153, -0.2997332215309143, 0.2207964062690735, -0.18793627619743347, 0.4197395145893097, 0.3551923930644989, -0.1828261762857437, 0.4042818546295166, -0.30664902925491333, 0.21373330056667328, 0.37193456292152405, 0.1562604457139969, -0.25331053137779236, 0.1702735275030136, 0.30845460295677185, 0.2727314531803131, 0.17075121402740479, -0.23948363959789276, -0.08783276379108429, 0.24362874031066895, 0.10050457715988159, -0.6387313604354858, 0.11946340650320053, 0.4051735997200012, -0.05298594385385513, 0.1463836282491684, 0.13996435701847076, 0.03163179010152817, 0.10031365603208542, 0.11978214979171753, 0.037433937191963196, -0.2836807370185852, 0.40320801734924316, -0.0077172741293907166, -0.20114409923553467, -0.3372561037540436, 0.2512964606285095, -0.07982068508863449, 0.4243529140949249, -0.6292933225631714, -0.1902179718017578, 0.24465979635715485, -0.26905888319015503, -0.12250019609928131, 0.433319091796875, -0.10998313128948212, 0.06405811011791229, 0.06842686235904694, -0.004787467420101166, 0.21050754189491272, 0.34453830122947693, -0.15360957384109497, -0.2668263912200928 ]
https://github.com/huggingface/datasets/issues/3353
add one field "example_id", but I can't see it in the "comput_loss" function
Hi, I have set **args.remove_unused_columns=False** and **training_args.remove_unused_columns=False**, but the field doesn't been contained yet. ``` def main(): argp = HfArgumentParser(TrainingArguments) # The HfArgumentParser object collects command-line arguments into an object (and provides default values for unspecified arguments). # In particular, TrainingArguments has several keys that you'll need/want to specify (when you call run.py from the command line): # --do_train # When included, this argument tells the script to train a model. # See docstrings for "--task" and "--dataset" for how the training dataset is selected. # --do_eval # When included, this argument tells the script to evaluate the trained/loaded model on the validation split of the selected dataset. # --per_device_train_batch_size <int, default=8> # This is the training batch size. # If you're running on GPU, you should try to make this as large as you can without getting CUDA out-of-memory errors. # For reference, with --max_length=128 and the default ELECTRA-small model, a batch size of 32 should fit in 4gb of GPU memory. # --num_train_epochs <float, default=3.0> # How many passes to do through the training data. # --output_dir <path> # Where to put the trained model checkpoint(s) and any eval predictions. # *This argument is required*. argp.add_argument('--model', type=str, default='google/electra-small-discriminator', help="""This argument specifies the base model to fine-tune. This should either be a HuggingFace model ID (see https://huggingface.co/models) or a path to a saved model checkpoint (a folder containing config.json and pytorch_model.bin).""") argp.add_argument('--task', type=str, choices=['nli', 'qa'], required=True, help="""This argument specifies which task to train/evaluate on. Pass "nli" for natural language inference or "qa" for question answering. By default, "nli" will use the SNLI dataset, and "qa" will use the SQuAD dataset.""") argp.add_argument('--dataset', type=str, default=None, help="""This argument overrides the default dataset used for the specified task.""") argp.add_argument('--max_length', type=int, default=128, help="""This argument limits the maximum sequence length used during training/evaluation. Shorter sequence lengths need less memory and computation time, but some examples may end up getting truncated.""") argp.add_argument('--max_train_samples', type=int, default=None, help='Limit the number of examples to train on.') argp.add_argument('--max_eval_samples', type=int, default=None, help='Limit the number of examples to evaluate on.') argp.remove_unused_columns = False training_args, args = argp.parse_args_into_dataclasses() args.remove_unused_columns=False training_args.remove_unused_columns=False ``` ``` **************** train_dataset: Dataset({ features: ['id', 'title', 'context', 'question', 'answers'], num_rows: 87599 }) **************** train_dataset_featurized: Dataset({ features: ['attention_mask', 'end_positions', 'input_ids', 'start_positions', 'token_type_ids'], num_rows: 87714 }) ```
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_
373
add one field "example_id", but I can't see it in the "comput_loss" function Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_ Hi, I have set **args.remove_unused_columns=False** and **training_args.remove_unused_columns=False**, but the field doesn't been contained yet. ``` def main(): argp = HfArgumentParser(TrainingArguments) # The HfArgumentParser object collects command-line arguments into an object (and provides default values for unspecified arguments). # In particular, TrainingArguments has several keys that you'll need/want to specify (when you call run.py from the command line): # --do_train # When included, this argument tells the script to train a model. # See docstrings for "--task" and "--dataset" for how the training dataset is selected. # --do_eval # When included, this argument tells the script to evaluate the trained/loaded model on the validation split of the selected dataset. # --per_device_train_batch_size <int, default=8> # This is the training batch size. # If you're running on GPU, you should try to make this as large as you can without getting CUDA out-of-memory errors. # For reference, with --max_length=128 and the default ELECTRA-small model, a batch size of 32 should fit in 4gb of GPU memory. # --num_train_epochs <float, default=3.0> # How many passes to do through the training data. # --output_dir <path> # Where to put the trained model checkpoint(s) and any eval predictions. # *This argument is required*. argp.add_argument('--model', type=str, default='google/electra-small-discriminator', help="""This argument specifies the base model to fine-tune. This should either be a HuggingFace model ID (see https://huggingface.co/models) or a path to a saved model checkpoint (a folder containing config.json and pytorch_model.bin).""") argp.add_argument('--task', type=str, choices=['nli', 'qa'], required=True, help="""This argument specifies which task to train/evaluate on. Pass "nli" for natural language inference or "qa" for question answering. By default, "nli" will use the SNLI dataset, and "qa" will use the SQuAD dataset.""") argp.add_argument('--dataset', type=str, default=None, help="""This argument overrides the default dataset used for the specified task.""") argp.add_argument('--max_length', type=int, default=128, help="""This argument limits the maximum sequence length used during training/evaluation. Shorter sequence lengths need less memory and computation time, but some examples may end up getting truncated.""") argp.add_argument('--max_train_samples', type=int, default=None, help='Limit the number of examples to train on.') argp.add_argument('--max_eval_samples', type=int, default=None, help='Limit the number of examples to evaluate on.') argp.remove_unused_columns = False training_args, args = argp.parse_args_into_dataclasses() args.remove_unused_columns=False training_args.remove_unused_columns=False ``` ``` **************** train_dataset: Dataset({ features: ['id', 'title', 'context', 'question', 'answers'], num_rows: 87599 }) **************** train_dataset_featurized: Dataset({ features: ['attention_mask', 'end_positions', 'input_ids', 'start_positions', 'token_type_ids'], num_rows: 87714 }) ```
[ -0.1465505063533783, -0.5799234509468079, -0.27407172322273254, 0.12024857103824615, 0.15451127290725708, 0.024358242750167847, 0.5186564326286316, 0.11919942498207092, 0.21184153854846954, 0.46522027254104614, 0.35325855016708374, 0.3118037283420563, 0.2009700983762741, -0.12374432384967804, 0.37870848178863525, 0.002258904278278351, -0.037914715707302094, 0.22412890195846558, 0.2628960609436035, -0.1642497181892395, -0.183089479804039, -0.08786004781723022, -0.21892495453357697, 0.022623956203460693, -0.286874383687973, -0.2088925540447235, 0.053089551627635956, -0.12556111812591553, -0.08682988584041595, -0.04241667315363884, 0.18709886074066162, -0.1108931303024292, -0.23998703062534332, 0.19970640540122986, -0.0001078606364899315, 0.10455688834190369, 0.1533193141222, -0.060825638473033905, -0.027286069467663765, -0.15439282357692719, -0.2217090129852295, -0.2605636417865753, -0.03601829707622528, -0.32417598366737366, -0.04981142282485962, 0.12347085773944855, -0.1091194748878479, -0.3235187232494354, 0.07952187955379486, 0.2246318757534027, 0.200823575258255, -0.10873186588287354, 0.12740759551525116, -0.000011923257261514664, 0.2504413425922394, 0.055052146315574646, 0.09210056066513062, -0.22741225361824036, -0.25794410705566406, -0.057758837938308716, 0.4909743666648865, 0.4897180199623108, 0.33997106552124023, -0.11952689290046692, 0.012490242719650269, 0.27129092812538147, 0.29391351342201233, -0.19182826578617096, 0.08529679477214813, -0.1495797336101532, -0.2388661503791809, -0.08748900145292282, -0.05443548411130905, 0.10713199526071548, 0.1659790724515915, -0.7740444540977478, -0.2672746479511261, -0.015106692910194397, 0.007978875190019608, 0.036080315709114075, 0.2593708336353302, 0.0940452292561531, -0.3109922409057617, 0.4295266270637512, 0.07097843289375305, 0.2999992370605469, 0.057178013026714325, 0.10110373795032501, 0.19335944950580597, -0.010559625923633575, -0.015152583830058575, 0.31693169474601746, 0.3318518102169037, 0.07476059347391129, -0.3491978347301483, 0.03461724519729614, -0.08718860894441605, -0.48206809163093567, -0.15340793132781982, -0.2185964435338974, 0.3559987246990204, 0.199703186750412, 0.21666908264160156, 0.47769930958747864, -0.35774868726730347, 0.23267416656017303, -0.15468496084213257, 0.006708766333758831, 0.04889189824461937, -0.094222292304039, 0.01682131737470627, -0.2492658793926239, -0.047601036727428436, 0.20710155367851257, 0.007518045604228973, 0.18787813186645508, 0.059870071709156036, 0.2564726173877716, -0.38190168142318726, -0.07115659862756729, -0.043254293501377106, -0.18922542035579681, 0.29996371269226074, 0.3324873149394989, 0.11979018896818161, 0.11905054748058319, 0.17693987488746643, 0.09451788663864136, -0.06571480631828308, -0.09953609853982925, -0.34466665983200073, 0.3517919182777405, -0.008103501051664352, -0.03120715357363224, 0.22983045876026154, 0.13715042173862457, 0.23834457993507385, -0.1337924301624298, 0.21796372532844543, -0.08600111305713654, 0.15164701640605927, -0.11660747230052948, 0.455160915851593, 0.26302850246429443, -0.1637023687362671, 0.013452531769871712, 0.25688230991363525, -0.21185296773910522, 0.02061336487531662, 0.10650630295276642, -0.22217699885368347, -0.02471642941236496, -0.2702468931674957, 0.17697085440158844, 0.31743675470352173, -0.06595046073198318, 0.19906693696975708, 0.4340725243091583, 0.03069140762090683, -0.18203973770141602, 0.1591264009475708, 0.2752166986465454, -0.4124225378036499, -0.23819246888160706, 0.3947792649269104, -0.1607450693845749, -0.1401054710149765, -0.14178596436977386, -0.26048949360847473, 0.1221226304769516, 0.1909761130809784, -0.08421394228935242, -0.0475601926445961, -0.028274334967136383, 0.06375133991241455, 0.34943562746047974, 0.8107308149337769, -0.37449580430984497, -0.27953845262527466, -0.07113315910100937, -0.24328665435314178, -0.3155626356601715, 0.3230952322483063, 0.10943273454904556, -0.03464546427130699, 0.3508976697921753, 0.3981732428073883, -0.2225913554430008, -0.05804062634706497, -0.09517022222280502, -0.15732446312904358, 0.14402742683887482, 0.2992531657218933, -0.040586214512586594, -0.03264493867754936, 0.2290869653224945, 0.15603725612163544, -0.04629472270607948, 0.17617611587047577, 0.05213678255677223, 0.03905804455280304, -0.04934406280517578, 0.4451037645339966, -0.3515293002128601, -0.07901818305253983, -0.3894444406032562, 0.05632849782705307, 0.03272564709186554, 0.10555991530418396, -0.10647164285182953, 0.24911420047283173, -0.3219108581542969, -0.15661945939064026, -0.11717279255390167, 0.2654784321784973, 0.14617368578910828, 0.2600668668746948, 0.16032758355140686, -0.1780053824186325, -0.21015025675296783, -0.18496844172477722, 0.20141571760177612, 0.10876348614692688, -0.11753661930561066, -0.060579393059015274, 0.10880695283412933, -0.25905612111091614, -0.3654019236564636, -0.23506221175193787, 0.19874092936515808, 0.5106496214866638, -0.0705522894859314, 0.11463408172130585, 0.20250022411346436, 0.05768122151494026, -0.137992262840271, -0.08048350363969803, 0.24741005897521973, 0.23882710933685303, 0.19635558128356934, -0.09220878034830093, -0.04107346013188362, -0.06624588370323181, -0.03226540610194206, 0.025320306420326233, 0.12644049525260925, 0.14899809658527374, -0.10233684629201889, -0.03880937397480011, -0.036698658019304276, 0.0363958403468132, 0.10487061738967896, -0.008195837028324604, -0.21249288320541382, -0.029219437390565872, -0.027104072272777557, -0.18801409006118774, -0.33968356251716614, -0.6948494911193848, 0.27741262316703796, 0.37535029649734497, 0.22507208585739136, 0.08878424018621445, -0.15434014797210693, 0.105450838804245, 0.30961543321609497, 0.17411383986473083, -0.06889986991882324, 0.2824614644050598, 0.24315251410007477, -0.0006570518016815186, -0.1929287165403366, -0.14591450989246368, 0.033299945294857025, -0.12179524451494217, 0.016118600964546204, -0.008892922662198544, 0.0553404800593853, 0.04604121297597885, -0.12206541746854782, -0.07414010167121887, 0.10981109738349915, -0.04258061200380325, 0.1530541032552719, -0.18196004629135132, 0.0745958685874939, -0.2065948098897934, -0.17015650868415833, -0.017663821578025818, -0.18788482248783112, 0.4881093204021454, -0.23571260273456573, 0.10856329649686813, 0.0685063824057579, -0.031224047765135765, 0.1133594959974289, 0.30108633637428284, 0.34934353828430176, 0.0032122228294610977, 0.4118722975254059, -0.5014946460723877, 0.07543579488992691, 0.08037222921848297, 0.13477171957492828, -0.3237752318382263, 0.22297066450119019, 0.08992332220077515, 0.11998603492975235, 0.16347551345825195, 0.1981918215751648, -0.5743004679679871, -0.0457441508769989, -0.18284857273101807, -0.1081300675868988, -0.23218196630477905, 0.3006095588207245, -0.4940451979637146, -0.4426557421684265, 0.04450170695781708, -0.11928471177816391, -0.17091071605682373, -0.02206408604979515, -0.10975947231054306, 0.06127258390188217, -0.3739386200904846, -0.4167385995388031, -0.271655797958374, -0.25357598066329956, 0.35338854789733887, 0.1404964029788971, 0.12868887186050415, -0.020596947520971298, 0.12339930236339569, 0.002261517569422722, 0.39003998041152954, 0.36847761273384094, -0.2363979071378708, -0.3898073136806488, 0.2644091844558716, -0.4682348072528839, -0.27534523606300354, 0.11900891363620758, -0.24284610152244568, 0.30595263838768005, -0.05519142746925354, -0.04299936443567276, -0.13260379433631897, 0.1728418916463852, -0.13908009231090546, -0.19780127704143524, 0.2503291666507721, 0.5233487486839294, -0.12633855640888214, -0.15030188858509064, -0.177924245595932, -0.4433754086494446, 0.13432706892490387, 0.3658439517021179, 0.2038743495941162, -0.3099861741065979, 0.2279682755470276, -0.013108424842357635, 0.5472480654716492, 0.01508670300245285, -0.59005206823349, 0.10565779358148575, -0.35956230759620667, -0.031962376087903976, 0.2820093035697937, -0.3894619047641754, -0.04178690165281296, 0.12351633608341217, 0.005694301798939705, -0.14670680463314056, -0.42879265546798706, -0.25679177045822144, -0.076689213514328, 0.0805046409368515, -0.5425464510917664, 0.01812451332807541, -0.1387893110513687, 0.047017719596624374, -0.0577976331114769, -0.11379742622375488, -0.0473475381731987, -0.4487857222557068, 0.06331223994493484, 0.20295237004756927, 0.10947459936141968, -0.08091705292463303, -0.21519668400287628, 0.1158837378025055, -0.770978569984436, -0.22945734858512878, 0.21596308052539825, -0.03206930682063103, 0.05482260137796402, -0.047710664570331573, -0.18983671069145203, -0.046377673745155334, 0.18217922747135162, 0.41062361001968384, -0.2682364284992218, -0.37916702032089233, 0.3391001224517822, -0.1767854243516922, 0.022389007732272148, 0.08054809272289276, -0.14872947335243225, -0.09032963216304779, 0.39954283833503723, 0.25765013694763184, -0.2826339602470398, 0.1514882743358612, 0.45748370885849, 0.017806466668844223, -0.14331337809562683, 0.1389862298965454, -0.40724843740463257, 0.09213858097791672, -0.22520169615745544, 0.06330879777669907, 0.10531113296747208, 0.24567176401615143, 0.3113097846508026, -0.15682198107242584, -0.04941975325345993, -0.2709628939628601, 0.09919638186693192, 0.18987798690795898, 0.13287104666233063, 0.4358682334423065, -0.1194884330034256, 0.2090509980916977, 0.28224658966064453, -0.21775859594345093, -0.08029216527938843, 0.09665125608444214, -0.03693978488445282, 0.1970514953136444, -0.07687702029943466, 0.410770982503891, 0.07123658806085587, 0.018029052764177322, 0.2601253092288971, -0.15418238937854767, 0.31888025999069214, -0.05465507134795189, 0.2812376916408539, 0.3012107312679291, 0.048341572284698486, 0.24144114553928375, -0.17652998864650726, 0.05961943417787552, -0.09588266909122467, -0.16974225640296936, 0.38878709077835083, -0.031823307275772095, -0.0489949956536293, 0.21643902361392975, 0.11204975098371506, 0.9591205716133118, -0.1575286090373993, -0.20973888039588928, 0.010101336985826492, -0.07591138780117035, 0.24658404290676117, -0.5863703489303589, 0.2355297952890396, 0.033486660569906235, -0.49882134795188904, -0.010542076081037521, -0.08819671720266342, 0.04400784522294998, 0.04039529711008072, -0.24758575856685638, -0.10447762161493301, -0.060073401778936386, 0.13262969255447388, -0.2600262761116028, 0.10427704453468323, 0.5729572176933289, -0.01450950838625431, 0.12908926606178284, 0.10716545581817627, 0.21610072255134583, -0.10327933728694916, 0.014246363192796707, 0.043841104954481125, -0.3111601173877716, -0.16519644856452942, -0.057795070111751556, -0.29262351989746094, -0.37245532870292664, 0.07791446894407272, -0.230187326669693, -0.33711129426956177, -0.13827945291996002, 0.24697470664978027, 0.5074904561042786, -0.08766181766986847, -0.0729396641254425, 0.07833805680274963, 0.03288691118359566, -0.07962076365947723, -0.4444468021392822, -0.09460942447185516, 0.13676407933235168, -0.2206639051437378, -0.4410487711429596, 0.577223002910614, 0.1857408583164215, -0.17053645849227905, -0.18996481597423553, 0.28716981410980225, -0.03837023675441742, 0.12954698503017426, 0.010304572060704231, 0.3733172118663788, -0.005395866930484772, -0.33267006278038025, 0.16275948286056519, 0.05962077155709267, -0.334980309009552, 0.055116333067417145, 0.10157691687345505, -0.05968184024095535, -0.11649651825428009, 0.27109459042549133, 0.1846640408039093, 0.11011898517608643, 0.15304645895957947, -0.3730732500553131, -0.1292414665222168, -0.2302127182483673, -0.4134924113750458, 0.2596660554409027, 0.16349583864212036, -0.27000829577445984, 0.025056706741452217, -0.2863544523715973, 0.011989651247859001, 0.11378517746925354, -0.12772630155086517, 0.46570149064064026, -0.292013943195343, -0.11934277415275574, -0.6847847700119019, 0.08466050773859024, 0.09230701625347137, 0.2418769896030426, -0.09104588627815247, 0.30854862928390503, -0.11392192542552948, 0.42074429988861084, -0.38313034176826477, -0.12363827973604202, -0.09517359733581543, 0.026160772889852524, -0.14240066707134247, 0.12539362907409668, 0.10522817820310593, 0.012082252651453018, 0.27954620122909546, 0.17916394770145416, 0.08523712307214737, -0.24466374516487122, 0.020656239241361618, 0.06733265519142151, -0.012857519090175629, 0.18863090872764587, -0.1437850147485733, 0.18278352916240692, -0.034019168466329575, 0.0805034413933754, 0.06358103454113007, -0.21421977877616882, 0.07200023531913757, 0.5170305967330933, 0.0015594102442264557, 0.37387141585350037, 0.2085384726524353, -0.38072672486305237, 0.16475960612297058, 0.19699126482009888, 0.06290850043296814, 0.07969526201486588, 0.03156718984246254, -0.19745585322380066, -0.22586312890052795, -0.1494312882423401, -0.17066945135593414, -0.10238174349069595, 0.15943703055381775, -0.08420166373252869, 0.048914942890405655, -0.2541467547416687, -0.2469746470451355, -0.19222599267959595, -0.13772612810134888, 0.40273886919021606, -0.16610568761825562, 0.3383501470088959, -0.3222353160381317, 0.21948516368865967, 0.13848981261253357, -0.23405654728412628, 0.40385791659355164, 0.16689014434814453, 0.08159485459327698, 0.10415884852409363, 0.10862765461206436, 0.000681217759847641, -0.2021351307630539, -0.3151360750198364, -0.01455564796924591, -0.22542470693588257, -0.14504696428775787, -0.052064042538404465, -0.008674735203385353, 0.46599844098091125, 0.1152549684047699, 0.0580730102956295, -0.03479732573032379, 0.31279996037483215, 0.029187627136707306, -0.25699135661125183, -0.13334637880325317, 0.2735692262649536, 0.22547318041324615, 0.14820526540279388, -0.24453216791152954, -0.2448832094669342, 0.20938079059123993, 0.014736071228981018, 0.25992438197135925, 0.11515949666500092, 0.08799374103546143, 0.024563204497098923, -0.07487369328737259, 0.13291318714618683, -0.16154132783412933, 0.02728651463985443, 0.008312173187732697, -0.4961478114128113, 0.45405814051628113, 0.019791360944509506, 0.3592815399169922, 0.009449109435081482, -0.1366969794034958, 0.3265836536884308, -0.11501803249120712, 0.2745339870452881, 0.2912698984146118, 0.014520805329084396, -0.0274460781365633, 0.18906629085540771, -0.24686771631240845, 0.02730495296418667, 0.14852693676948547, 0.19801795482635498, -0.172593891620636, 0.12429127097129822, 0.27284297347068787, 0.1988864690065384, -0.45398175716400146, -0.04389198124408722, 0.00977328885346651, 0.38970279693603516, 0.1741364449262619, -0.11748585104942322, 0.25164467096328735, -0.24389410018920898, 0.04327530786395073, 0.17277418076992035, 0.2546555697917938, -0.2248339205980301, 0.030999623239040375, -0.3233131468296051, -0.27582815289497375, -0.19087570905685425, -0.056789837777614594, -0.2546937167644501, 0.14866803586483002, -0.02844598889350891, -0.11542442440986633, 0.09206845611333847, -0.13109183311462402, 0.0961887389421463, -0.05441766604781151, 0.23663431406021118, -0.36063191294670105, 0.029850071296095848, -0.24813860654830933, -0.2751561999320984, -0.1471739262342453, 0.24833911657333374, 0.15155526995658875, -0.13869532942771912, 0.05348850414156914, 0.3183564841747284, 0.04121611639857292, -0.11018034815788269, 0.33006882667541504, -0.6668450832366943, 0.1768389642238617, 0.3580020070075989, -0.3746557831764221, 0.016439959406852722, -0.22338275611400604, -0.021176433190703392, 0.4222368001937866, 0.20508253574371338, 0.07054942101240158, 0.1290494054555893, 0.1250908076763153, -0.2997332215309143, 0.2207964062690735, -0.18793627619743347, 0.4197395145893097, 0.3551923930644989, -0.1828261762857437, 0.4042818546295166, -0.30664902925491333, 0.21373330056667328, 0.37193456292152405, 0.1562604457139969, -0.25331053137779236, 0.1702735275030136, 0.30845460295677185, 0.2727314531803131, 0.17075121402740479, -0.23948363959789276, -0.08783276379108429, 0.24362874031066895, 0.10050457715988159, -0.6387313604354858, 0.11946340650320053, 0.4051735997200012, -0.05298594385385513, 0.1463836282491684, 0.13996435701847076, 0.03163179010152817, 0.10031365603208542, 0.11978214979171753, 0.037433937191963196, -0.2836807370185852, 0.40320801734924316, -0.0077172741293907166, -0.20114409923553467, -0.3372561037540436, 0.2512964606285095, -0.07982068508863449, 0.4243529140949249, -0.6292933225631714, -0.1902179718017578, 0.24465979635715485, -0.26905888319015503, -0.12250019609928131, 0.433319091796875, -0.10998313128948212, 0.06405811011791229, 0.06842686235904694, -0.004787467420101166, 0.21050754189491272, 0.34453830122947693, -0.15360957384109497, -0.2668263912200928 ]
https://github.com/huggingface/datasets/issues/3353
add one field "example_id", but I can't see it in the "comput_loss" function
Hi, I print the value, all are set to False, but don't work. ``` ********************* training_args: TrainingArguments( _n_gpu=1, adafactor=False, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, dataloader_drop_last=False, dataloader_num_workers=0, dataloader_pin_memory=True, ddp_find_unused_parameters=None, debug=[], deepspeed=None, disable_tqdm=False, do_eval=False, do_predict=False, do_train=True, eval_accumulation_steps=None, eval_steps=None, evaluation_strategy=IntervalStrategy.NO, fp16=False, fp16_backend=auto, fp16_full_eval=False, fp16_opt_level=O1, gradient_accumulation_steps=1, greater_is_better=None, group_by_length=False, ignore_data_skip=False, label_names=None, label_smoothing_factor=0.0, learning_rate=5e-05, length_column_name=length, load_best_model_at_end=False, local_rank=-1, log_level=-1, log_level_replica=-1, log_on_each_node=True, logging_dir=./re_trained_model/runs/Dec01_14-15-08_399b9290604c, logging_first_step=False, logging_steps=500, logging_strategy=IntervalStrategy.STEPS, lr_scheduler_type=SchedulerType.LINEAR, max_grad_norm=1.0, max_steps=-1, metric_for_best_model=None, mp_parameters=, no_cuda=False, num_train_epochs=3.0, output_dir=./re_trained_model, overwrite_output_dir=False, past_index=-1, per_device_eval_batch_size=8, per_device_train_batch_size=8, prediction_loss_only=False, push_to_hub=False, push_to_hub_model_id=re_trained_model, push_to_hub_organization=None, push_to_hub_token=None, remove_unused_columns=False, report_to=['tensorboard'], resume_from_checkpoint=None, run_name=./re_trained_model, save_on_each_node=False, save_steps=500, save_strategy=IntervalStrategy.STEPS, save_total_limit=None, seed=42, sharded_ddp=[], skip_memory_metrics=True, tpu_metrics_debug=False, tpu_num_cores=None, use_legacy_prediction_loop=False, warmup_ratio=0.0, warmup_steps=0, weight_decay=0.0, ) ``` ``` ********************* args: Namespace(dataset='squad', max_eval_samples=None, max_length=128, max_train_samples=None, model='google/electra-small-discriminator', remove_unused_columns=False, task='qa') 2021-12-01 14:15:10,048 - WARNING - datasets.builder - Reusing dataset squad (/root/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) Some weights of the model checkpoint at google/electra-small-discriminator were not used when initializing ElectraForQuestionAnswering: ['discriminator_predictions.dense_prediction.weight', 'discriminator_predictions.dense_prediction.bias', 'discriminator_predictions.dense.weight', 'discriminator_predictions.dense.bias'] - This IS expected if you are initializing ElectraForQuestionAnswering from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model). - This IS NOT expected if you are initializing ElectraForQuestionAnswering from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). Some weights of ElectraForQuestionAnswering were not initialized from the model checkpoint at google/electra-small-discriminator and are newly initialized: ['qa_outputs.bias', 'qa_outputs.weight'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. Preprocessing data... (this takes a little bit, should only happen once per dataset) ```
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_
247
add one field "example_id", but I can't see it in the "comput_loss" function Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_ Hi, I print the value, all are set to False, but don't work. ``` ********************* training_args: TrainingArguments( _n_gpu=1, adafactor=False, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, dataloader_drop_last=False, dataloader_num_workers=0, dataloader_pin_memory=True, ddp_find_unused_parameters=None, debug=[], deepspeed=None, disable_tqdm=False, do_eval=False, do_predict=False, do_train=True, eval_accumulation_steps=None, eval_steps=None, evaluation_strategy=IntervalStrategy.NO, fp16=False, fp16_backend=auto, fp16_full_eval=False, fp16_opt_level=O1, gradient_accumulation_steps=1, greater_is_better=None, group_by_length=False, ignore_data_skip=False, label_names=None, label_smoothing_factor=0.0, learning_rate=5e-05, length_column_name=length, load_best_model_at_end=False, local_rank=-1, log_level=-1, log_level_replica=-1, log_on_each_node=True, logging_dir=./re_trained_model/runs/Dec01_14-15-08_399b9290604c, logging_first_step=False, logging_steps=500, logging_strategy=IntervalStrategy.STEPS, lr_scheduler_type=SchedulerType.LINEAR, max_grad_norm=1.0, max_steps=-1, metric_for_best_model=None, mp_parameters=, no_cuda=False, num_train_epochs=3.0, output_dir=./re_trained_model, overwrite_output_dir=False, past_index=-1, per_device_eval_batch_size=8, per_device_train_batch_size=8, prediction_loss_only=False, push_to_hub=False, push_to_hub_model_id=re_trained_model, push_to_hub_organization=None, push_to_hub_token=None, remove_unused_columns=False, report_to=['tensorboard'], resume_from_checkpoint=None, run_name=./re_trained_model, save_on_each_node=False, save_steps=500, save_strategy=IntervalStrategy.STEPS, save_total_limit=None, seed=42, sharded_ddp=[], skip_memory_metrics=True, tpu_metrics_debug=False, tpu_num_cores=None, use_legacy_prediction_loop=False, warmup_ratio=0.0, warmup_steps=0, weight_decay=0.0, ) ``` ``` ********************* args: Namespace(dataset='squad', max_eval_samples=None, max_length=128, max_train_samples=None, model='google/electra-small-discriminator', remove_unused_columns=False, task='qa') 2021-12-01 14:15:10,048 - WARNING - datasets.builder - Reusing dataset squad (/root/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) Some weights of the model checkpoint at google/electra-small-discriminator were not used when initializing ElectraForQuestionAnswering: ['discriminator_predictions.dense_prediction.weight', 'discriminator_predictions.dense_prediction.bias', 'discriminator_predictions.dense.weight', 'discriminator_predictions.dense.bias'] - This IS expected if you are initializing ElectraForQuestionAnswering from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model). - This IS NOT expected if you are initializing ElectraForQuestionAnswering from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). Some weights of ElectraForQuestionAnswering were not initialized from the model checkpoint at google/electra-small-discriminator and are newly initialized: ['qa_outputs.bias', 'qa_outputs.weight'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. Preprocessing data... (this takes a little bit, should only happen once per dataset) ```
[ -0.1465505063533783, -0.5799234509468079, -0.27407172322273254, 0.12024857103824615, 0.15451127290725708, 0.024358242750167847, 0.5186564326286316, 0.11919942498207092, 0.21184153854846954, 0.46522027254104614, 0.35325855016708374, 0.3118037283420563, 0.2009700983762741, -0.12374432384967804, 0.37870848178863525, 0.002258904278278351, -0.037914715707302094, 0.22412890195846558, 0.2628960609436035, -0.1642497181892395, -0.183089479804039, -0.08786004781723022, -0.21892495453357697, 0.022623956203460693, -0.286874383687973, -0.2088925540447235, 0.053089551627635956, -0.12556111812591553, -0.08682988584041595, -0.04241667315363884, 0.18709886074066162, -0.1108931303024292, -0.23998703062534332, 0.19970640540122986, -0.0001078606364899315, 0.10455688834190369, 0.1533193141222, -0.060825638473033905, -0.027286069467663765, -0.15439282357692719, -0.2217090129852295, -0.2605636417865753, -0.03601829707622528, -0.32417598366737366, -0.04981142282485962, 0.12347085773944855, -0.1091194748878479, -0.3235187232494354, 0.07952187955379486, 0.2246318757534027, 0.200823575258255, -0.10873186588287354, 0.12740759551525116, -0.000011923257261514664, 0.2504413425922394, 0.055052146315574646, 0.09210056066513062, -0.22741225361824036, -0.25794410705566406, -0.057758837938308716, 0.4909743666648865, 0.4897180199623108, 0.33997106552124023, -0.11952689290046692, 0.012490242719650269, 0.27129092812538147, 0.29391351342201233, -0.19182826578617096, 0.08529679477214813, -0.1495797336101532, -0.2388661503791809, -0.08748900145292282, -0.05443548411130905, 0.10713199526071548, 0.1659790724515915, -0.7740444540977478, -0.2672746479511261, -0.015106692910194397, 0.007978875190019608, 0.036080315709114075, 0.2593708336353302, 0.0940452292561531, -0.3109922409057617, 0.4295266270637512, 0.07097843289375305, 0.2999992370605469, 0.057178013026714325, 0.10110373795032501, 0.19335944950580597, -0.010559625923633575, -0.015152583830058575, 0.31693169474601746, 0.3318518102169037, 0.07476059347391129, -0.3491978347301483, 0.03461724519729614, -0.08718860894441605, -0.48206809163093567, -0.15340793132781982, -0.2185964435338974, 0.3559987246990204, 0.199703186750412, 0.21666908264160156, 0.47769930958747864, -0.35774868726730347, 0.23267416656017303, -0.15468496084213257, 0.006708766333758831, 0.04889189824461937, -0.094222292304039, 0.01682131737470627, -0.2492658793926239, -0.047601036727428436, 0.20710155367851257, 0.007518045604228973, 0.18787813186645508, 0.059870071709156036, 0.2564726173877716, -0.38190168142318726, -0.07115659862756729, -0.043254293501377106, -0.18922542035579681, 0.29996371269226074, 0.3324873149394989, 0.11979018896818161, 0.11905054748058319, 0.17693987488746643, 0.09451788663864136, -0.06571480631828308, -0.09953609853982925, -0.34466665983200073, 0.3517919182777405, -0.008103501051664352, -0.03120715357363224, 0.22983045876026154, 0.13715042173862457, 0.23834457993507385, -0.1337924301624298, 0.21796372532844543, -0.08600111305713654, 0.15164701640605927, -0.11660747230052948, 0.455160915851593, 0.26302850246429443, -0.1637023687362671, 0.013452531769871712, 0.25688230991363525, -0.21185296773910522, 0.02061336487531662, 0.10650630295276642, -0.22217699885368347, -0.02471642941236496, -0.2702468931674957, 0.17697085440158844, 0.31743675470352173, -0.06595046073198318, 0.19906693696975708, 0.4340725243091583, 0.03069140762090683, -0.18203973770141602, 0.1591264009475708, 0.2752166986465454, -0.4124225378036499, -0.23819246888160706, 0.3947792649269104, -0.1607450693845749, -0.1401054710149765, -0.14178596436977386, -0.26048949360847473, 0.1221226304769516, 0.1909761130809784, -0.08421394228935242, -0.0475601926445961, -0.028274334967136383, 0.06375133991241455, 0.34943562746047974, 0.8107308149337769, -0.37449580430984497, -0.27953845262527466, -0.07113315910100937, -0.24328665435314178, -0.3155626356601715, 0.3230952322483063, 0.10943273454904556, -0.03464546427130699, 0.3508976697921753, 0.3981732428073883, -0.2225913554430008, -0.05804062634706497, -0.09517022222280502, -0.15732446312904358, 0.14402742683887482, 0.2992531657218933, -0.040586214512586594, -0.03264493867754936, 0.2290869653224945, 0.15603725612163544, -0.04629472270607948, 0.17617611587047577, 0.05213678255677223, 0.03905804455280304, -0.04934406280517578, 0.4451037645339966, -0.3515293002128601, -0.07901818305253983, -0.3894444406032562, 0.05632849782705307, 0.03272564709186554, 0.10555991530418396, -0.10647164285182953, 0.24911420047283173, -0.3219108581542969, -0.15661945939064026, -0.11717279255390167, 0.2654784321784973, 0.14617368578910828, 0.2600668668746948, 0.16032758355140686, -0.1780053824186325, -0.21015025675296783, -0.18496844172477722, 0.20141571760177612, 0.10876348614692688, -0.11753661930561066, -0.060579393059015274, 0.10880695283412933, -0.25905612111091614, -0.3654019236564636, -0.23506221175193787, 0.19874092936515808, 0.5106496214866638, -0.0705522894859314, 0.11463408172130585, 0.20250022411346436, 0.05768122151494026, -0.137992262840271, -0.08048350363969803, 0.24741005897521973, 0.23882710933685303, 0.19635558128356934, -0.09220878034830093, -0.04107346013188362, -0.06624588370323181, -0.03226540610194206, 0.025320306420326233, 0.12644049525260925, 0.14899809658527374, -0.10233684629201889, -0.03880937397480011, -0.036698658019304276, 0.0363958403468132, 0.10487061738967896, -0.008195837028324604, -0.21249288320541382, -0.029219437390565872, -0.027104072272777557, -0.18801409006118774, -0.33968356251716614, -0.6948494911193848, 0.27741262316703796, 0.37535029649734497, 0.22507208585739136, 0.08878424018621445, -0.15434014797210693, 0.105450838804245, 0.30961543321609497, 0.17411383986473083, -0.06889986991882324, 0.2824614644050598, 0.24315251410007477, -0.0006570518016815186, -0.1929287165403366, -0.14591450989246368, 0.033299945294857025, -0.12179524451494217, 0.016118600964546204, -0.008892922662198544, 0.0553404800593853, 0.04604121297597885, -0.12206541746854782, -0.07414010167121887, 0.10981109738349915, -0.04258061200380325, 0.1530541032552719, -0.18196004629135132, 0.0745958685874939, -0.2065948098897934, -0.17015650868415833, -0.017663821578025818, -0.18788482248783112, 0.4881093204021454, -0.23571260273456573, 0.10856329649686813, 0.0685063824057579, -0.031224047765135765, 0.1133594959974289, 0.30108633637428284, 0.34934353828430176, 0.0032122228294610977, 0.4118722975254059, -0.5014946460723877, 0.07543579488992691, 0.08037222921848297, 0.13477171957492828, -0.3237752318382263, 0.22297066450119019, 0.08992332220077515, 0.11998603492975235, 0.16347551345825195, 0.1981918215751648, -0.5743004679679871, -0.0457441508769989, -0.18284857273101807, -0.1081300675868988, -0.23218196630477905, 0.3006095588207245, -0.4940451979637146, -0.4426557421684265, 0.04450170695781708, -0.11928471177816391, -0.17091071605682373, -0.02206408604979515, -0.10975947231054306, 0.06127258390188217, -0.3739386200904846, -0.4167385995388031, -0.271655797958374, -0.25357598066329956, 0.35338854789733887, 0.1404964029788971, 0.12868887186050415, -0.020596947520971298, 0.12339930236339569, 0.002261517569422722, 0.39003998041152954, 0.36847761273384094, -0.2363979071378708, -0.3898073136806488, 0.2644091844558716, -0.4682348072528839, -0.27534523606300354, 0.11900891363620758, -0.24284610152244568, 0.30595263838768005, -0.05519142746925354, -0.04299936443567276, -0.13260379433631897, 0.1728418916463852, -0.13908009231090546, -0.19780127704143524, 0.2503291666507721, 0.5233487486839294, -0.12633855640888214, -0.15030188858509064, -0.177924245595932, -0.4433754086494446, 0.13432706892490387, 0.3658439517021179, 0.2038743495941162, -0.3099861741065979, 0.2279682755470276, -0.013108424842357635, 0.5472480654716492, 0.01508670300245285, -0.59005206823349, 0.10565779358148575, -0.35956230759620667, -0.031962376087903976, 0.2820093035697937, -0.3894619047641754, -0.04178690165281296, 0.12351633608341217, 0.005694301798939705, -0.14670680463314056, -0.42879265546798706, -0.25679177045822144, -0.076689213514328, 0.0805046409368515, -0.5425464510917664, 0.01812451332807541, -0.1387893110513687, 0.047017719596624374, -0.0577976331114769, -0.11379742622375488, -0.0473475381731987, -0.4487857222557068, 0.06331223994493484, 0.20295237004756927, 0.10947459936141968, -0.08091705292463303, -0.21519668400287628, 0.1158837378025055, -0.770978569984436, -0.22945734858512878, 0.21596308052539825, -0.03206930682063103, 0.05482260137796402, -0.047710664570331573, -0.18983671069145203, -0.046377673745155334, 0.18217922747135162, 0.41062361001968384, -0.2682364284992218, -0.37916702032089233, 0.3391001224517822, -0.1767854243516922, 0.022389007732272148, 0.08054809272289276, -0.14872947335243225, -0.09032963216304779, 0.39954283833503723, 0.25765013694763184, -0.2826339602470398, 0.1514882743358612, 0.45748370885849, 0.017806466668844223, -0.14331337809562683, 0.1389862298965454, -0.40724843740463257, 0.09213858097791672, -0.22520169615745544, 0.06330879777669907, 0.10531113296747208, 0.24567176401615143, 0.3113097846508026, -0.15682198107242584, -0.04941975325345993, -0.2709628939628601, 0.09919638186693192, 0.18987798690795898, 0.13287104666233063, 0.4358682334423065, -0.1194884330034256, 0.2090509980916977, 0.28224658966064453, -0.21775859594345093, -0.08029216527938843, 0.09665125608444214, -0.03693978488445282, 0.1970514953136444, -0.07687702029943466, 0.410770982503891, 0.07123658806085587, 0.018029052764177322, 0.2601253092288971, -0.15418238937854767, 0.31888025999069214, -0.05465507134795189, 0.2812376916408539, 0.3012107312679291, 0.048341572284698486, 0.24144114553928375, -0.17652998864650726, 0.05961943417787552, -0.09588266909122467, -0.16974225640296936, 0.38878709077835083, -0.031823307275772095, -0.0489949956536293, 0.21643902361392975, 0.11204975098371506, 0.9591205716133118, -0.1575286090373993, -0.20973888039588928, 0.010101336985826492, -0.07591138780117035, 0.24658404290676117, -0.5863703489303589, 0.2355297952890396, 0.033486660569906235, -0.49882134795188904, -0.010542076081037521, -0.08819671720266342, 0.04400784522294998, 0.04039529711008072, -0.24758575856685638, -0.10447762161493301, -0.060073401778936386, 0.13262969255447388, -0.2600262761116028, 0.10427704453468323, 0.5729572176933289, -0.01450950838625431, 0.12908926606178284, 0.10716545581817627, 0.21610072255134583, -0.10327933728694916, 0.014246363192796707, 0.043841104954481125, -0.3111601173877716, -0.16519644856452942, -0.057795070111751556, -0.29262351989746094, -0.37245532870292664, 0.07791446894407272, -0.230187326669693, -0.33711129426956177, -0.13827945291996002, 0.24697470664978027, 0.5074904561042786, -0.08766181766986847, -0.0729396641254425, 0.07833805680274963, 0.03288691118359566, -0.07962076365947723, -0.4444468021392822, -0.09460942447185516, 0.13676407933235168, -0.2206639051437378, -0.4410487711429596, 0.577223002910614, 0.1857408583164215, -0.17053645849227905, -0.18996481597423553, 0.28716981410980225, -0.03837023675441742, 0.12954698503017426, 0.010304572060704231, 0.3733172118663788, -0.005395866930484772, -0.33267006278038025, 0.16275948286056519, 0.05962077155709267, -0.334980309009552, 0.055116333067417145, 0.10157691687345505, -0.05968184024095535, -0.11649651825428009, 0.27109459042549133, 0.1846640408039093, 0.11011898517608643, 0.15304645895957947, -0.3730732500553131, -0.1292414665222168, -0.2302127182483673, -0.4134924113750458, 0.2596660554409027, 0.16349583864212036, -0.27000829577445984, 0.025056706741452217, -0.2863544523715973, 0.011989651247859001, 0.11378517746925354, -0.12772630155086517, 0.46570149064064026, -0.292013943195343, -0.11934277415275574, -0.6847847700119019, 0.08466050773859024, 0.09230701625347137, 0.2418769896030426, -0.09104588627815247, 0.30854862928390503, -0.11392192542552948, 0.42074429988861084, -0.38313034176826477, -0.12363827973604202, -0.09517359733581543, 0.026160772889852524, -0.14240066707134247, 0.12539362907409668, 0.10522817820310593, 0.012082252651453018, 0.27954620122909546, 0.17916394770145416, 0.08523712307214737, -0.24466374516487122, 0.020656239241361618, 0.06733265519142151, -0.012857519090175629, 0.18863090872764587, -0.1437850147485733, 0.18278352916240692, -0.034019168466329575, 0.0805034413933754, 0.06358103454113007, -0.21421977877616882, 0.07200023531913757, 0.5170305967330933, 0.0015594102442264557, 0.37387141585350037, 0.2085384726524353, -0.38072672486305237, 0.16475960612297058, 0.19699126482009888, 0.06290850043296814, 0.07969526201486588, 0.03156718984246254, -0.19745585322380066, -0.22586312890052795, -0.1494312882423401, -0.17066945135593414, -0.10238174349069595, 0.15943703055381775, -0.08420166373252869, 0.048914942890405655, -0.2541467547416687, -0.2469746470451355, -0.19222599267959595, -0.13772612810134888, 0.40273886919021606, -0.16610568761825562, 0.3383501470088959, -0.3222353160381317, 0.21948516368865967, 0.13848981261253357, -0.23405654728412628, 0.40385791659355164, 0.16689014434814453, 0.08159485459327698, 0.10415884852409363, 0.10862765461206436, 0.000681217759847641, -0.2021351307630539, -0.3151360750198364, -0.01455564796924591, -0.22542470693588257, -0.14504696428775787, -0.052064042538404465, -0.008674735203385353, 0.46599844098091125, 0.1152549684047699, 0.0580730102956295, -0.03479732573032379, 0.31279996037483215, 0.029187627136707306, -0.25699135661125183, -0.13334637880325317, 0.2735692262649536, 0.22547318041324615, 0.14820526540279388, -0.24453216791152954, -0.2448832094669342, 0.20938079059123993, 0.014736071228981018, 0.25992438197135925, 0.11515949666500092, 0.08799374103546143, 0.024563204497098923, -0.07487369328737259, 0.13291318714618683, -0.16154132783412933, 0.02728651463985443, 0.008312173187732697, -0.4961478114128113, 0.45405814051628113, 0.019791360944509506, 0.3592815399169922, 0.009449109435081482, -0.1366969794034958, 0.3265836536884308, -0.11501803249120712, 0.2745339870452881, 0.2912698984146118, 0.014520805329084396, -0.0274460781365633, 0.18906629085540771, -0.24686771631240845, 0.02730495296418667, 0.14852693676948547, 0.19801795482635498, -0.172593891620636, 0.12429127097129822, 0.27284297347068787, 0.1988864690065384, -0.45398175716400146, -0.04389198124408722, 0.00977328885346651, 0.38970279693603516, 0.1741364449262619, -0.11748585104942322, 0.25164467096328735, -0.24389410018920898, 0.04327530786395073, 0.17277418076992035, 0.2546555697917938, -0.2248339205980301, 0.030999623239040375, -0.3233131468296051, -0.27582815289497375, -0.19087570905685425, -0.056789837777614594, -0.2546937167644501, 0.14866803586483002, -0.02844598889350891, -0.11542442440986633, 0.09206845611333847, -0.13109183311462402, 0.0961887389421463, -0.05441766604781151, 0.23663431406021118, -0.36063191294670105, 0.029850071296095848, -0.24813860654830933, -0.2751561999320984, -0.1471739262342453, 0.24833911657333374, 0.15155526995658875, -0.13869532942771912, 0.05348850414156914, 0.3183564841747284, 0.04121611639857292, -0.11018034815788269, 0.33006882667541504, -0.6668450832366943, 0.1768389642238617, 0.3580020070075989, -0.3746557831764221, 0.016439959406852722, -0.22338275611400604, -0.021176433190703392, 0.4222368001937866, 0.20508253574371338, 0.07054942101240158, 0.1290494054555893, 0.1250908076763153, -0.2997332215309143, 0.2207964062690735, -0.18793627619743347, 0.4197395145893097, 0.3551923930644989, -0.1828261762857437, 0.4042818546295166, -0.30664902925491333, 0.21373330056667328, 0.37193456292152405, 0.1562604457139969, -0.25331053137779236, 0.1702735275030136, 0.30845460295677185, 0.2727314531803131, 0.17075121402740479, -0.23948363959789276, -0.08783276379108429, 0.24362874031066895, 0.10050457715988159, -0.6387313604354858, 0.11946340650320053, 0.4051735997200012, -0.05298594385385513, 0.1463836282491684, 0.13996435701847076, 0.03163179010152817, 0.10031365603208542, 0.11978214979171753, 0.037433937191963196, -0.2836807370185852, 0.40320801734924316, -0.0077172741293907166, -0.20114409923553467, -0.3372561037540436, 0.2512964606285095, -0.07982068508863449, 0.4243529140949249, -0.6292933225631714, -0.1902179718017578, 0.24465979635715485, -0.26905888319015503, -0.12250019609928131, 0.433319091796875, -0.10998313128948212, 0.06405811011791229, 0.06842686235904694, -0.004787467420101166, 0.21050754189491272, 0.34453830122947693, -0.15360957384109497, -0.2668263912200928 ]
https://github.com/huggingface/datasets/issues/3353
add one field "example_id", but I can't see it in the "comput_loss" function
Hmmm, it might be because the default data collator removes all the fields with `string` type: https://github.com/huggingface/transformers/blob/4c0dd199c8305903564c2edeae23d294edd4b321/src/transformers/data/data_collator.py#L107-L112 I guess you also need a custom data collator that doesn't remove them.
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_
30
add one field "example_id", but I can't see it in the "comput_loss" function Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_ Hmmm, it might be because the default data collator removes all the fields with `string` type: https://github.com/huggingface/transformers/blob/4c0dd199c8305903564c2edeae23d294edd4b321/src/transformers/data/data_collator.py#L107-L112 I guess you also need a custom data collator that doesn't remove them.
[ -0.1465505063533783, -0.5799234509468079, -0.27407172322273254, 0.12024857103824615, 0.15451127290725708, 0.024358242750167847, 0.5186564326286316, 0.11919942498207092, 0.21184153854846954, 0.46522027254104614, 0.35325855016708374, 0.3118037283420563, 0.2009700983762741, -0.12374432384967804, 0.37870848178863525, 0.002258904278278351, -0.037914715707302094, 0.22412890195846558, 0.2628960609436035, -0.1642497181892395, -0.183089479804039, -0.08786004781723022, -0.21892495453357697, 0.022623956203460693, -0.286874383687973, -0.2088925540447235, 0.053089551627635956, -0.12556111812591553, -0.08682988584041595, -0.04241667315363884, 0.18709886074066162, -0.1108931303024292, -0.23998703062534332, 0.19970640540122986, -0.0001078606364899315, 0.10455688834190369, 0.1533193141222, -0.060825638473033905, -0.027286069467663765, -0.15439282357692719, -0.2217090129852295, -0.2605636417865753, -0.03601829707622528, -0.32417598366737366, -0.04981142282485962, 0.12347085773944855, -0.1091194748878479, -0.3235187232494354, 0.07952187955379486, 0.2246318757534027, 0.200823575258255, -0.10873186588287354, 0.12740759551525116, -0.000011923257261514664, 0.2504413425922394, 0.055052146315574646, 0.09210056066513062, -0.22741225361824036, -0.25794410705566406, -0.057758837938308716, 0.4909743666648865, 0.4897180199623108, 0.33997106552124023, -0.11952689290046692, 0.012490242719650269, 0.27129092812538147, 0.29391351342201233, -0.19182826578617096, 0.08529679477214813, -0.1495797336101532, -0.2388661503791809, -0.08748900145292282, -0.05443548411130905, 0.10713199526071548, 0.1659790724515915, -0.7740444540977478, -0.2672746479511261, -0.015106692910194397, 0.007978875190019608, 0.036080315709114075, 0.2593708336353302, 0.0940452292561531, -0.3109922409057617, 0.4295266270637512, 0.07097843289375305, 0.2999992370605469, 0.057178013026714325, 0.10110373795032501, 0.19335944950580597, -0.010559625923633575, -0.015152583830058575, 0.31693169474601746, 0.3318518102169037, 0.07476059347391129, -0.3491978347301483, 0.03461724519729614, -0.08718860894441605, -0.48206809163093567, -0.15340793132781982, -0.2185964435338974, 0.3559987246990204, 0.199703186750412, 0.21666908264160156, 0.47769930958747864, -0.35774868726730347, 0.23267416656017303, -0.15468496084213257, 0.006708766333758831, 0.04889189824461937, -0.094222292304039, 0.01682131737470627, -0.2492658793926239, -0.047601036727428436, 0.20710155367851257, 0.007518045604228973, 0.18787813186645508, 0.059870071709156036, 0.2564726173877716, -0.38190168142318726, -0.07115659862756729, -0.043254293501377106, -0.18922542035579681, 0.29996371269226074, 0.3324873149394989, 0.11979018896818161, 0.11905054748058319, 0.17693987488746643, 0.09451788663864136, -0.06571480631828308, -0.09953609853982925, -0.34466665983200073, 0.3517919182777405, -0.008103501051664352, -0.03120715357363224, 0.22983045876026154, 0.13715042173862457, 0.23834457993507385, -0.1337924301624298, 0.21796372532844543, -0.08600111305713654, 0.15164701640605927, -0.11660747230052948, 0.455160915851593, 0.26302850246429443, -0.1637023687362671, 0.013452531769871712, 0.25688230991363525, -0.21185296773910522, 0.02061336487531662, 0.10650630295276642, -0.22217699885368347, -0.02471642941236496, -0.2702468931674957, 0.17697085440158844, 0.31743675470352173, -0.06595046073198318, 0.19906693696975708, 0.4340725243091583, 0.03069140762090683, -0.18203973770141602, 0.1591264009475708, 0.2752166986465454, -0.4124225378036499, -0.23819246888160706, 0.3947792649269104, -0.1607450693845749, -0.1401054710149765, -0.14178596436977386, -0.26048949360847473, 0.1221226304769516, 0.1909761130809784, -0.08421394228935242, -0.0475601926445961, -0.028274334967136383, 0.06375133991241455, 0.34943562746047974, 0.8107308149337769, -0.37449580430984497, -0.27953845262527466, -0.07113315910100937, -0.24328665435314178, -0.3155626356601715, 0.3230952322483063, 0.10943273454904556, -0.03464546427130699, 0.3508976697921753, 0.3981732428073883, -0.2225913554430008, -0.05804062634706497, -0.09517022222280502, -0.15732446312904358, 0.14402742683887482, 0.2992531657218933, -0.040586214512586594, -0.03264493867754936, 0.2290869653224945, 0.15603725612163544, -0.04629472270607948, 0.17617611587047577, 0.05213678255677223, 0.03905804455280304, -0.04934406280517578, 0.4451037645339966, -0.3515293002128601, -0.07901818305253983, -0.3894444406032562, 0.05632849782705307, 0.03272564709186554, 0.10555991530418396, -0.10647164285182953, 0.24911420047283173, -0.3219108581542969, -0.15661945939064026, -0.11717279255390167, 0.2654784321784973, 0.14617368578910828, 0.2600668668746948, 0.16032758355140686, -0.1780053824186325, -0.21015025675296783, -0.18496844172477722, 0.20141571760177612, 0.10876348614692688, -0.11753661930561066, -0.060579393059015274, 0.10880695283412933, -0.25905612111091614, -0.3654019236564636, -0.23506221175193787, 0.19874092936515808, 0.5106496214866638, -0.0705522894859314, 0.11463408172130585, 0.20250022411346436, 0.05768122151494026, -0.137992262840271, -0.08048350363969803, 0.24741005897521973, 0.23882710933685303, 0.19635558128356934, -0.09220878034830093, -0.04107346013188362, -0.06624588370323181, -0.03226540610194206, 0.025320306420326233, 0.12644049525260925, 0.14899809658527374, -0.10233684629201889, -0.03880937397480011, -0.036698658019304276, 0.0363958403468132, 0.10487061738967896, -0.008195837028324604, -0.21249288320541382, -0.029219437390565872, -0.027104072272777557, -0.18801409006118774, -0.33968356251716614, -0.6948494911193848, 0.27741262316703796, 0.37535029649734497, 0.22507208585739136, 0.08878424018621445, -0.15434014797210693, 0.105450838804245, 0.30961543321609497, 0.17411383986473083, -0.06889986991882324, 0.2824614644050598, 0.24315251410007477, -0.0006570518016815186, -0.1929287165403366, -0.14591450989246368, 0.033299945294857025, -0.12179524451494217, 0.016118600964546204, -0.008892922662198544, 0.0553404800593853, 0.04604121297597885, -0.12206541746854782, -0.07414010167121887, 0.10981109738349915, -0.04258061200380325, 0.1530541032552719, -0.18196004629135132, 0.0745958685874939, -0.2065948098897934, -0.17015650868415833, -0.017663821578025818, -0.18788482248783112, 0.4881093204021454, -0.23571260273456573, 0.10856329649686813, 0.0685063824057579, -0.031224047765135765, 0.1133594959974289, 0.30108633637428284, 0.34934353828430176, 0.0032122228294610977, 0.4118722975254059, -0.5014946460723877, 0.07543579488992691, 0.08037222921848297, 0.13477171957492828, -0.3237752318382263, 0.22297066450119019, 0.08992332220077515, 0.11998603492975235, 0.16347551345825195, 0.1981918215751648, -0.5743004679679871, -0.0457441508769989, -0.18284857273101807, -0.1081300675868988, -0.23218196630477905, 0.3006095588207245, -0.4940451979637146, -0.4426557421684265, 0.04450170695781708, -0.11928471177816391, -0.17091071605682373, -0.02206408604979515, -0.10975947231054306, 0.06127258390188217, -0.3739386200904846, -0.4167385995388031, -0.271655797958374, -0.25357598066329956, 0.35338854789733887, 0.1404964029788971, 0.12868887186050415, -0.020596947520971298, 0.12339930236339569, 0.002261517569422722, 0.39003998041152954, 0.36847761273384094, -0.2363979071378708, -0.3898073136806488, 0.2644091844558716, -0.4682348072528839, -0.27534523606300354, 0.11900891363620758, -0.24284610152244568, 0.30595263838768005, -0.05519142746925354, -0.04299936443567276, -0.13260379433631897, 0.1728418916463852, -0.13908009231090546, -0.19780127704143524, 0.2503291666507721, 0.5233487486839294, -0.12633855640888214, -0.15030188858509064, -0.177924245595932, -0.4433754086494446, 0.13432706892490387, 0.3658439517021179, 0.2038743495941162, -0.3099861741065979, 0.2279682755470276, -0.013108424842357635, 0.5472480654716492, 0.01508670300245285, -0.59005206823349, 0.10565779358148575, -0.35956230759620667, -0.031962376087903976, 0.2820093035697937, -0.3894619047641754, -0.04178690165281296, 0.12351633608341217, 0.005694301798939705, -0.14670680463314056, -0.42879265546798706, -0.25679177045822144, -0.076689213514328, 0.0805046409368515, -0.5425464510917664, 0.01812451332807541, -0.1387893110513687, 0.047017719596624374, -0.0577976331114769, -0.11379742622375488, -0.0473475381731987, -0.4487857222557068, 0.06331223994493484, 0.20295237004756927, 0.10947459936141968, -0.08091705292463303, -0.21519668400287628, 0.1158837378025055, -0.770978569984436, -0.22945734858512878, 0.21596308052539825, -0.03206930682063103, 0.05482260137796402, -0.047710664570331573, -0.18983671069145203, -0.046377673745155334, 0.18217922747135162, 0.41062361001968384, -0.2682364284992218, -0.37916702032089233, 0.3391001224517822, -0.1767854243516922, 0.022389007732272148, 0.08054809272289276, -0.14872947335243225, -0.09032963216304779, 0.39954283833503723, 0.25765013694763184, -0.2826339602470398, 0.1514882743358612, 0.45748370885849, 0.017806466668844223, -0.14331337809562683, 0.1389862298965454, -0.40724843740463257, 0.09213858097791672, -0.22520169615745544, 0.06330879777669907, 0.10531113296747208, 0.24567176401615143, 0.3113097846508026, -0.15682198107242584, -0.04941975325345993, -0.2709628939628601, 0.09919638186693192, 0.18987798690795898, 0.13287104666233063, 0.4358682334423065, -0.1194884330034256, 0.2090509980916977, 0.28224658966064453, -0.21775859594345093, -0.08029216527938843, 0.09665125608444214, -0.03693978488445282, 0.1970514953136444, -0.07687702029943466, 0.410770982503891, 0.07123658806085587, 0.018029052764177322, 0.2601253092288971, -0.15418238937854767, 0.31888025999069214, -0.05465507134795189, 0.2812376916408539, 0.3012107312679291, 0.048341572284698486, 0.24144114553928375, -0.17652998864650726, 0.05961943417787552, -0.09588266909122467, -0.16974225640296936, 0.38878709077835083, -0.031823307275772095, -0.0489949956536293, 0.21643902361392975, 0.11204975098371506, 0.9591205716133118, -0.1575286090373993, -0.20973888039588928, 0.010101336985826492, -0.07591138780117035, 0.24658404290676117, -0.5863703489303589, 0.2355297952890396, 0.033486660569906235, -0.49882134795188904, -0.010542076081037521, -0.08819671720266342, 0.04400784522294998, 0.04039529711008072, -0.24758575856685638, -0.10447762161493301, -0.060073401778936386, 0.13262969255447388, -0.2600262761116028, 0.10427704453468323, 0.5729572176933289, -0.01450950838625431, 0.12908926606178284, 0.10716545581817627, 0.21610072255134583, -0.10327933728694916, 0.014246363192796707, 0.043841104954481125, -0.3111601173877716, -0.16519644856452942, -0.057795070111751556, -0.29262351989746094, -0.37245532870292664, 0.07791446894407272, -0.230187326669693, -0.33711129426956177, -0.13827945291996002, 0.24697470664978027, 0.5074904561042786, -0.08766181766986847, -0.0729396641254425, 0.07833805680274963, 0.03288691118359566, -0.07962076365947723, -0.4444468021392822, -0.09460942447185516, 0.13676407933235168, -0.2206639051437378, -0.4410487711429596, 0.577223002910614, 0.1857408583164215, -0.17053645849227905, -0.18996481597423553, 0.28716981410980225, -0.03837023675441742, 0.12954698503017426, 0.010304572060704231, 0.3733172118663788, -0.005395866930484772, -0.33267006278038025, 0.16275948286056519, 0.05962077155709267, -0.334980309009552, 0.055116333067417145, 0.10157691687345505, -0.05968184024095535, -0.11649651825428009, 0.27109459042549133, 0.1846640408039093, 0.11011898517608643, 0.15304645895957947, -0.3730732500553131, -0.1292414665222168, -0.2302127182483673, -0.4134924113750458, 0.2596660554409027, 0.16349583864212036, -0.27000829577445984, 0.025056706741452217, -0.2863544523715973, 0.011989651247859001, 0.11378517746925354, -0.12772630155086517, 0.46570149064064026, -0.292013943195343, -0.11934277415275574, -0.6847847700119019, 0.08466050773859024, 0.09230701625347137, 0.2418769896030426, -0.09104588627815247, 0.30854862928390503, -0.11392192542552948, 0.42074429988861084, -0.38313034176826477, -0.12363827973604202, -0.09517359733581543, 0.026160772889852524, -0.14240066707134247, 0.12539362907409668, 0.10522817820310593, 0.012082252651453018, 0.27954620122909546, 0.17916394770145416, 0.08523712307214737, -0.24466374516487122, 0.020656239241361618, 0.06733265519142151, -0.012857519090175629, 0.18863090872764587, -0.1437850147485733, 0.18278352916240692, -0.034019168466329575, 0.0805034413933754, 0.06358103454113007, -0.21421977877616882, 0.07200023531913757, 0.5170305967330933, 0.0015594102442264557, 0.37387141585350037, 0.2085384726524353, -0.38072672486305237, 0.16475960612297058, 0.19699126482009888, 0.06290850043296814, 0.07969526201486588, 0.03156718984246254, -0.19745585322380066, -0.22586312890052795, -0.1494312882423401, -0.17066945135593414, -0.10238174349069595, 0.15943703055381775, -0.08420166373252869, 0.048914942890405655, -0.2541467547416687, -0.2469746470451355, -0.19222599267959595, -0.13772612810134888, 0.40273886919021606, -0.16610568761825562, 0.3383501470088959, -0.3222353160381317, 0.21948516368865967, 0.13848981261253357, -0.23405654728412628, 0.40385791659355164, 0.16689014434814453, 0.08159485459327698, 0.10415884852409363, 0.10862765461206436, 0.000681217759847641, -0.2021351307630539, -0.3151360750198364, -0.01455564796924591, -0.22542470693588257, -0.14504696428775787, -0.052064042538404465, -0.008674735203385353, 0.46599844098091125, 0.1152549684047699, 0.0580730102956295, -0.03479732573032379, 0.31279996037483215, 0.029187627136707306, -0.25699135661125183, -0.13334637880325317, 0.2735692262649536, 0.22547318041324615, 0.14820526540279388, -0.24453216791152954, -0.2448832094669342, 0.20938079059123993, 0.014736071228981018, 0.25992438197135925, 0.11515949666500092, 0.08799374103546143, 0.024563204497098923, -0.07487369328737259, 0.13291318714618683, -0.16154132783412933, 0.02728651463985443, 0.008312173187732697, -0.4961478114128113, 0.45405814051628113, 0.019791360944509506, 0.3592815399169922, 0.009449109435081482, -0.1366969794034958, 0.3265836536884308, -0.11501803249120712, 0.2745339870452881, 0.2912698984146118, 0.014520805329084396, -0.0274460781365633, 0.18906629085540771, -0.24686771631240845, 0.02730495296418667, 0.14852693676948547, 0.19801795482635498, -0.172593891620636, 0.12429127097129822, 0.27284297347068787, 0.1988864690065384, -0.45398175716400146, -0.04389198124408722, 0.00977328885346651, 0.38970279693603516, 0.1741364449262619, -0.11748585104942322, 0.25164467096328735, -0.24389410018920898, 0.04327530786395073, 0.17277418076992035, 0.2546555697917938, -0.2248339205980301, 0.030999623239040375, -0.3233131468296051, -0.27582815289497375, -0.19087570905685425, -0.056789837777614594, -0.2546937167644501, 0.14866803586483002, -0.02844598889350891, -0.11542442440986633, 0.09206845611333847, -0.13109183311462402, 0.0961887389421463, -0.05441766604781151, 0.23663431406021118, -0.36063191294670105, 0.029850071296095848, -0.24813860654830933, -0.2751561999320984, -0.1471739262342453, 0.24833911657333374, 0.15155526995658875, -0.13869532942771912, 0.05348850414156914, 0.3183564841747284, 0.04121611639857292, -0.11018034815788269, 0.33006882667541504, -0.6668450832366943, 0.1768389642238617, 0.3580020070075989, -0.3746557831764221, 0.016439959406852722, -0.22338275611400604, -0.021176433190703392, 0.4222368001937866, 0.20508253574371338, 0.07054942101240158, 0.1290494054555893, 0.1250908076763153, -0.2997332215309143, 0.2207964062690735, -0.18793627619743347, 0.4197395145893097, 0.3551923930644989, -0.1828261762857437, 0.4042818546295166, -0.30664902925491333, 0.21373330056667328, 0.37193456292152405, 0.1562604457139969, -0.25331053137779236, 0.1702735275030136, 0.30845460295677185, 0.2727314531803131, 0.17075121402740479, -0.23948363959789276, -0.08783276379108429, 0.24362874031066895, 0.10050457715988159, -0.6387313604354858, 0.11946340650320053, 0.4051735997200012, -0.05298594385385513, 0.1463836282491684, 0.13996435701847076, 0.03163179010152817, 0.10031365603208542, 0.11978214979171753, 0.037433937191963196, -0.2836807370185852, 0.40320801734924316, -0.0077172741293907166, -0.20114409923553467, -0.3372561037540436, 0.2512964606285095, -0.07982068508863449, 0.4243529140949249, -0.6292933225631714, -0.1902179718017578, 0.24465979635715485, -0.26905888319015503, -0.12250019609928131, 0.433319091796875, -0.10998313128948212, 0.06405811011791229, 0.06842686235904694, -0.004787467420101166, 0.21050754189491272, 0.34453830122947693, -0.15360957384109497, -0.2668263912200928 ]
https://github.com/huggingface/datasets/issues/3353
add one field "example_id", but I can't see it in the "comput_loss" function
I overwrite **get_train_dataloader**, and remove **_remove_unused_columns**, but it doesn't work. ``` def get_train_dataloader(self) -> DataLoader: """ Returns the training :class:`~torch.utils.data.DataLoader`. Will use no sampler if :obj:`self.train_dataset` does not implement :obj:`__len__`, a random sampler (adapted to distributed training if necessary) otherwise. Subclass and override this method if you want to inject some custom behavior. """ if self.train_dataset is None: raise ValueError("Trainer: training requires a train_dataset.") train_dataset = self.train_dataset # if is_datasets_available() and isinstance(train_dataset, datasets.Dataset): # train_dataset = self._remove_unused_columns(train_dataset, description="training") if isinstance(train_dataset, torch.utils.data.IterableDataset): if self.args.world_size > 1: train_dataset = IterableDatasetShard( train_dataset, batch_size=self.args.train_batch_size, drop_last=self.args.dataloader_drop_last, num_processes=self.args.world_size, process_index=self.args.process_index, ) return DataLoader( train_dataset, batch_size=self.args.train_batch_size, collate_fn=self.data_collator, num_workers=self.args.dataloader_num_workers, pin_memory=self.args.dataloader_pin_memory, ) train_sampler = self._get_train_sampler() return DataLoader( train_dataset, batch_size=self.args.train_batch_size, sampler=train_sampler, collate_fn=self.data_collator, drop_last=self.args.dataloader_drop_last, num_workers=self.args.dataloader_num_workers, pin_memory=self.args.dataloader_pin_memory, ) ```
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_
116
add one field "example_id", but I can't see it in the "comput_loss" function Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_ I overwrite **get_train_dataloader**, and remove **_remove_unused_columns**, but it doesn't work. ``` def get_train_dataloader(self) -> DataLoader: """ Returns the training :class:`~torch.utils.data.DataLoader`. Will use no sampler if :obj:`self.train_dataset` does not implement :obj:`__len__`, a random sampler (adapted to distributed training if necessary) otherwise. Subclass and override this method if you want to inject some custom behavior. """ if self.train_dataset is None: raise ValueError("Trainer: training requires a train_dataset.") train_dataset = self.train_dataset # if is_datasets_available() and isinstance(train_dataset, datasets.Dataset): # train_dataset = self._remove_unused_columns(train_dataset, description="training") if isinstance(train_dataset, torch.utils.data.IterableDataset): if self.args.world_size > 1: train_dataset = IterableDatasetShard( train_dataset, batch_size=self.args.train_batch_size, drop_last=self.args.dataloader_drop_last, num_processes=self.args.world_size, process_index=self.args.process_index, ) return DataLoader( train_dataset, batch_size=self.args.train_batch_size, collate_fn=self.data_collator, num_workers=self.args.dataloader_num_workers, pin_memory=self.args.dataloader_pin_memory, ) train_sampler = self._get_train_sampler() return DataLoader( train_dataset, batch_size=self.args.train_batch_size, sampler=train_sampler, collate_fn=self.data_collator, drop_last=self.args.dataloader_drop_last, num_workers=self.args.dataloader_num_workers, pin_memory=self.args.dataloader_pin_memory, ) ```
[ -0.1465505063533783, -0.5799234509468079, -0.27407172322273254, 0.12024857103824615, 0.15451127290725708, 0.024358242750167847, 0.5186564326286316, 0.11919942498207092, 0.21184153854846954, 0.46522027254104614, 0.35325855016708374, 0.3118037283420563, 0.2009700983762741, -0.12374432384967804, 0.37870848178863525, 0.002258904278278351, -0.037914715707302094, 0.22412890195846558, 0.2628960609436035, -0.1642497181892395, -0.183089479804039, -0.08786004781723022, -0.21892495453357697, 0.022623956203460693, -0.286874383687973, -0.2088925540447235, 0.053089551627635956, -0.12556111812591553, -0.08682988584041595, -0.04241667315363884, 0.18709886074066162, -0.1108931303024292, -0.23998703062534332, 0.19970640540122986, -0.0001078606364899315, 0.10455688834190369, 0.1533193141222, -0.060825638473033905, -0.027286069467663765, -0.15439282357692719, -0.2217090129852295, -0.2605636417865753, -0.03601829707622528, -0.32417598366737366, -0.04981142282485962, 0.12347085773944855, -0.1091194748878479, -0.3235187232494354, 0.07952187955379486, 0.2246318757534027, 0.200823575258255, -0.10873186588287354, 0.12740759551525116, -0.000011923257261514664, 0.2504413425922394, 0.055052146315574646, 0.09210056066513062, -0.22741225361824036, -0.25794410705566406, -0.057758837938308716, 0.4909743666648865, 0.4897180199623108, 0.33997106552124023, -0.11952689290046692, 0.012490242719650269, 0.27129092812538147, 0.29391351342201233, -0.19182826578617096, 0.08529679477214813, -0.1495797336101532, -0.2388661503791809, -0.08748900145292282, -0.05443548411130905, 0.10713199526071548, 0.1659790724515915, -0.7740444540977478, -0.2672746479511261, -0.015106692910194397, 0.007978875190019608, 0.036080315709114075, 0.2593708336353302, 0.0940452292561531, -0.3109922409057617, 0.4295266270637512, 0.07097843289375305, 0.2999992370605469, 0.057178013026714325, 0.10110373795032501, 0.19335944950580597, -0.010559625923633575, -0.015152583830058575, 0.31693169474601746, 0.3318518102169037, 0.07476059347391129, -0.3491978347301483, 0.03461724519729614, -0.08718860894441605, -0.48206809163093567, -0.15340793132781982, -0.2185964435338974, 0.3559987246990204, 0.199703186750412, 0.21666908264160156, 0.47769930958747864, -0.35774868726730347, 0.23267416656017303, -0.15468496084213257, 0.006708766333758831, 0.04889189824461937, -0.094222292304039, 0.01682131737470627, -0.2492658793926239, -0.047601036727428436, 0.20710155367851257, 0.007518045604228973, 0.18787813186645508, 0.059870071709156036, 0.2564726173877716, -0.38190168142318726, -0.07115659862756729, -0.043254293501377106, -0.18922542035579681, 0.29996371269226074, 0.3324873149394989, 0.11979018896818161, 0.11905054748058319, 0.17693987488746643, 0.09451788663864136, -0.06571480631828308, -0.09953609853982925, -0.34466665983200073, 0.3517919182777405, -0.008103501051664352, -0.03120715357363224, 0.22983045876026154, 0.13715042173862457, 0.23834457993507385, -0.1337924301624298, 0.21796372532844543, -0.08600111305713654, 0.15164701640605927, -0.11660747230052948, 0.455160915851593, 0.26302850246429443, -0.1637023687362671, 0.013452531769871712, 0.25688230991363525, -0.21185296773910522, 0.02061336487531662, 0.10650630295276642, -0.22217699885368347, -0.02471642941236496, -0.2702468931674957, 0.17697085440158844, 0.31743675470352173, -0.06595046073198318, 0.19906693696975708, 0.4340725243091583, 0.03069140762090683, -0.18203973770141602, 0.1591264009475708, 0.2752166986465454, -0.4124225378036499, -0.23819246888160706, 0.3947792649269104, -0.1607450693845749, -0.1401054710149765, -0.14178596436977386, -0.26048949360847473, 0.1221226304769516, 0.1909761130809784, -0.08421394228935242, -0.0475601926445961, -0.028274334967136383, 0.06375133991241455, 0.34943562746047974, 0.8107308149337769, -0.37449580430984497, -0.27953845262527466, -0.07113315910100937, -0.24328665435314178, -0.3155626356601715, 0.3230952322483063, 0.10943273454904556, -0.03464546427130699, 0.3508976697921753, 0.3981732428073883, -0.2225913554430008, -0.05804062634706497, -0.09517022222280502, -0.15732446312904358, 0.14402742683887482, 0.2992531657218933, -0.040586214512586594, -0.03264493867754936, 0.2290869653224945, 0.15603725612163544, -0.04629472270607948, 0.17617611587047577, 0.05213678255677223, 0.03905804455280304, -0.04934406280517578, 0.4451037645339966, -0.3515293002128601, -0.07901818305253983, -0.3894444406032562, 0.05632849782705307, 0.03272564709186554, 0.10555991530418396, -0.10647164285182953, 0.24911420047283173, -0.3219108581542969, -0.15661945939064026, -0.11717279255390167, 0.2654784321784973, 0.14617368578910828, 0.2600668668746948, 0.16032758355140686, -0.1780053824186325, -0.21015025675296783, -0.18496844172477722, 0.20141571760177612, 0.10876348614692688, -0.11753661930561066, -0.060579393059015274, 0.10880695283412933, -0.25905612111091614, -0.3654019236564636, -0.23506221175193787, 0.19874092936515808, 0.5106496214866638, -0.0705522894859314, 0.11463408172130585, 0.20250022411346436, 0.05768122151494026, -0.137992262840271, -0.08048350363969803, 0.24741005897521973, 0.23882710933685303, 0.19635558128356934, -0.09220878034830093, -0.04107346013188362, -0.06624588370323181, -0.03226540610194206, 0.025320306420326233, 0.12644049525260925, 0.14899809658527374, -0.10233684629201889, -0.03880937397480011, -0.036698658019304276, 0.0363958403468132, 0.10487061738967896, -0.008195837028324604, -0.21249288320541382, -0.029219437390565872, -0.027104072272777557, -0.18801409006118774, -0.33968356251716614, -0.6948494911193848, 0.27741262316703796, 0.37535029649734497, 0.22507208585739136, 0.08878424018621445, -0.15434014797210693, 0.105450838804245, 0.30961543321609497, 0.17411383986473083, -0.06889986991882324, 0.2824614644050598, 0.24315251410007477, -0.0006570518016815186, -0.1929287165403366, -0.14591450989246368, 0.033299945294857025, -0.12179524451494217, 0.016118600964546204, -0.008892922662198544, 0.0553404800593853, 0.04604121297597885, -0.12206541746854782, -0.07414010167121887, 0.10981109738349915, -0.04258061200380325, 0.1530541032552719, -0.18196004629135132, 0.0745958685874939, -0.2065948098897934, -0.17015650868415833, -0.017663821578025818, -0.18788482248783112, 0.4881093204021454, -0.23571260273456573, 0.10856329649686813, 0.0685063824057579, -0.031224047765135765, 0.1133594959974289, 0.30108633637428284, 0.34934353828430176, 0.0032122228294610977, 0.4118722975254059, -0.5014946460723877, 0.07543579488992691, 0.08037222921848297, 0.13477171957492828, -0.3237752318382263, 0.22297066450119019, 0.08992332220077515, 0.11998603492975235, 0.16347551345825195, 0.1981918215751648, -0.5743004679679871, -0.0457441508769989, -0.18284857273101807, -0.1081300675868988, -0.23218196630477905, 0.3006095588207245, -0.4940451979637146, -0.4426557421684265, 0.04450170695781708, -0.11928471177816391, -0.17091071605682373, -0.02206408604979515, -0.10975947231054306, 0.06127258390188217, -0.3739386200904846, -0.4167385995388031, -0.271655797958374, -0.25357598066329956, 0.35338854789733887, 0.1404964029788971, 0.12868887186050415, -0.020596947520971298, 0.12339930236339569, 0.002261517569422722, 0.39003998041152954, 0.36847761273384094, -0.2363979071378708, -0.3898073136806488, 0.2644091844558716, -0.4682348072528839, -0.27534523606300354, 0.11900891363620758, -0.24284610152244568, 0.30595263838768005, -0.05519142746925354, -0.04299936443567276, -0.13260379433631897, 0.1728418916463852, -0.13908009231090546, -0.19780127704143524, 0.2503291666507721, 0.5233487486839294, -0.12633855640888214, -0.15030188858509064, -0.177924245595932, -0.4433754086494446, 0.13432706892490387, 0.3658439517021179, 0.2038743495941162, -0.3099861741065979, 0.2279682755470276, -0.013108424842357635, 0.5472480654716492, 0.01508670300245285, -0.59005206823349, 0.10565779358148575, -0.35956230759620667, -0.031962376087903976, 0.2820093035697937, -0.3894619047641754, -0.04178690165281296, 0.12351633608341217, 0.005694301798939705, -0.14670680463314056, -0.42879265546798706, -0.25679177045822144, -0.076689213514328, 0.0805046409368515, -0.5425464510917664, 0.01812451332807541, -0.1387893110513687, 0.047017719596624374, -0.0577976331114769, -0.11379742622375488, -0.0473475381731987, -0.4487857222557068, 0.06331223994493484, 0.20295237004756927, 0.10947459936141968, -0.08091705292463303, -0.21519668400287628, 0.1158837378025055, -0.770978569984436, -0.22945734858512878, 0.21596308052539825, -0.03206930682063103, 0.05482260137796402, -0.047710664570331573, -0.18983671069145203, -0.046377673745155334, 0.18217922747135162, 0.41062361001968384, -0.2682364284992218, -0.37916702032089233, 0.3391001224517822, -0.1767854243516922, 0.022389007732272148, 0.08054809272289276, -0.14872947335243225, -0.09032963216304779, 0.39954283833503723, 0.25765013694763184, -0.2826339602470398, 0.1514882743358612, 0.45748370885849, 0.017806466668844223, -0.14331337809562683, 0.1389862298965454, -0.40724843740463257, 0.09213858097791672, -0.22520169615745544, 0.06330879777669907, 0.10531113296747208, 0.24567176401615143, 0.3113097846508026, -0.15682198107242584, -0.04941975325345993, -0.2709628939628601, 0.09919638186693192, 0.18987798690795898, 0.13287104666233063, 0.4358682334423065, -0.1194884330034256, 0.2090509980916977, 0.28224658966064453, -0.21775859594345093, -0.08029216527938843, 0.09665125608444214, -0.03693978488445282, 0.1970514953136444, -0.07687702029943466, 0.410770982503891, 0.07123658806085587, 0.018029052764177322, 0.2601253092288971, -0.15418238937854767, 0.31888025999069214, -0.05465507134795189, 0.2812376916408539, 0.3012107312679291, 0.048341572284698486, 0.24144114553928375, -0.17652998864650726, 0.05961943417787552, -0.09588266909122467, -0.16974225640296936, 0.38878709077835083, -0.031823307275772095, -0.0489949956536293, 0.21643902361392975, 0.11204975098371506, 0.9591205716133118, -0.1575286090373993, -0.20973888039588928, 0.010101336985826492, -0.07591138780117035, 0.24658404290676117, -0.5863703489303589, 0.2355297952890396, 0.033486660569906235, -0.49882134795188904, -0.010542076081037521, -0.08819671720266342, 0.04400784522294998, 0.04039529711008072, -0.24758575856685638, -0.10447762161493301, -0.060073401778936386, 0.13262969255447388, -0.2600262761116028, 0.10427704453468323, 0.5729572176933289, -0.01450950838625431, 0.12908926606178284, 0.10716545581817627, 0.21610072255134583, -0.10327933728694916, 0.014246363192796707, 0.043841104954481125, -0.3111601173877716, -0.16519644856452942, -0.057795070111751556, -0.29262351989746094, -0.37245532870292664, 0.07791446894407272, -0.230187326669693, -0.33711129426956177, -0.13827945291996002, 0.24697470664978027, 0.5074904561042786, -0.08766181766986847, -0.0729396641254425, 0.07833805680274963, 0.03288691118359566, -0.07962076365947723, -0.4444468021392822, -0.09460942447185516, 0.13676407933235168, -0.2206639051437378, -0.4410487711429596, 0.577223002910614, 0.1857408583164215, -0.17053645849227905, -0.18996481597423553, 0.28716981410980225, -0.03837023675441742, 0.12954698503017426, 0.010304572060704231, 0.3733172118663788, -0.005395866930484772, -0.33267006278038025, 0.16275948286056519, 0.05962077155709267, -0.334980309009552, 0.055116333067417145, 0.10157691687345505, -0.05968184024095535, -0.11649651825428009, 0.27109459042549133, 0.1846640408039093, 0.11011898517608643, 0.15304645895957947, -0.3730732500553131, -0.1292414665222168, -0.2302127182483673, -0.4134924113750458, 0.2596660554409027, 0.16349583864212036, -0.27000829577445984, 0.025056706741452217, -0.2863544523715973, 0.011989651247859001, 0.11378517746925354, -0.12772630155086517, 0.46570149064064026, -0.292013943195343, -0.11934277415275574, -0.6847847700119019, 0.08466050773859024, 0.09230701625347137, 0.2418769896030426, -0.09104588627815247, 0.30854862928390503, -0.11392192542552948, 0.42074429988861084, -0.38313034176826477, -0.12363827973604202, -0.09517359733581543, 0.026160772889852524, -0.14240066707134247, 0.12539362907409668, 0.10522817820310593, 0.012082252651453018, 0.27954620122909546, 0.17916394770145416, 0.08523712307214737, -0.24466374516487122, 0.020656239241361618, 0.06733265519142151, -0.012857519090175629, 0.18863090872764587, -0.1437850147485733, 0.18278352916240692, -0.034019168466329575, 0.0805034413933754, 0.06358103454113007, -0.21421977877616882, 0.07200023531913757, 0.5170305967330933, 0.0015594102442264557, 0.37387141585350037, 0.2085384726524353, -0.38072672486305237, 0.16475960612297058, 0.19699126482009888, 0.06290850043296814, 0.07969526201486588, 0.03156718984246254, -0.19745585322380066, -0.22586312890052795, -0.1494312882423401, -0.17066945135593414, -0.10238174349069595, 0.15943703055381775, -0.08420166373252869, 0.048914942890405655, -0.2541467547416687, -0.2469746470451355, -0.19222599267959595, -0.13772612810134888, 0.40273886919021606, -0.16610568761825562, 0.3383501470088959, -0.3222353160381317, 0.21948516368865967, 0.13848981261253357, -0.23405654728412628, 0.40385791659355164, 0.16689014434814453, 0.08159485459327698, 0.10415884852409363, 0.10862765461206436, 0.000681217759847641, -0.2021351307630539, -0.3151360750198364, -0.01455564796924591, -0.22542470693588257, -0.14504696428775787, -0.052064042538404465, -0.008674735203385353, 0.46599844098091125, 0.1152549684047699, 0.0580730102956295, -0.03479732573032379, 0.31279996037483215, 0.029187627136707306, -0.25699135661125183, -0.13334637880325317, 0.2735692262649536, 0.22547318041324615, 0.14820526540279388, -0.24453216791152954, -0.2448832094669342, 0.20938079059123993, 0.014736071228981018, 0.25992438197135925, 0.11515949666500092, 0.08799374103546143, 0.024563204497098923, -0.07487369328737259, 0.13291318714618683, -0.16154132783412933, 0.02728651463985443, 0.008312173187732697, -0.4961478114128113, 0.45405814051628113, 0.019791360944509506, 0.3592815399169922, 0.009449109435081482, -0.1366969794034958, 0.3265836536884308, -0.11501803249120712, 0.2745339870452881, 0.2912698984146118, 0.014520805329084396, -0.0274460781365633, 0.18906629085540771, -0.24686771631240845, 0.02730495296418667, 0.14852693676948547, 0.19801795482635498, -0.172593891620636, 0.12429127097129822, 0.27284297347068787, 0.1988864690065384, -0.45398175716400146, -0.04389198124408722, 0.00977328885346651, 0.38970279693603516, 0.1741364449262619, -0.11748585104942322, 0.25164467096328735, -0.24389410018920898, 0.04327530786395073, 0.17277418076992035, 0.2546555697917938, -0.2248339205980301, 0.030999623239040375, -0.3233131468296051, -0.27582815289497375, -0.19087570905685425, -0.056789837777614594, -0.2546937167644501, 0.14866803586483002, -0.02844598889350891, -0.11542442440986633, 0.09206845611333847, -0.13109183311462402, 0.0961887389421463, -0.05441766604781151, 0.23663431406021118, -0.36063191294670105, 0.029850071296095848, -0.24813860654830933, -0.2751561999320984, -0.1471739262342453, 0.24833911657333374, 0.15155526995658875, -0.13869532942771912, 0.05348850414156914, 0.3183564841747284, 0.04121611639857292, -0.11018034815788269, 0.33006882667541504, -0.6668450832366943, 0.1768389642238617, 0.3580020070075989, -0.3746557831764221, 0.016439959406852722, -0.22338275611400604, -0.021176433190703392, 0.4222368001937866, 0.20508253574371338, 0.07054942101240158, 0.1290494054555893, 0.1250908076763153, -0.2997332215309143, 0.2207964062690735, -0.18793627619743347, 0.4197395145893097, 0.3551923930644989, -0.1828261762857437, 0.4042818546295166, -0.30664902925491333, 0.21373330056667328, 0.37193456292152405, 0.1562604457139969, -0.25331053137779236, 0.1702735275030136, 0.30845460295677185, 0.2727314531803131, 0.17075121402740479, -0.23948363959789276, -0.08783276379108429, 0.24362874031066895, 0.10050457715988159, -0.6387313604354858, 0.11946340650320053, 0.4051735997200012, -0.05298594385385513, 0.1463836282491684, 0.13996435701847076, 0.03163179010152817, 0.10031365603208542, 0.11978214979171753, 0.037433937191963196, -0.2836807370185852, 0.40320801734924316, -0.0077172741293907166, -0.20114409923553467, -0.3372561037540436, 0.2512964606285095, -0.07982068508863449, 0.4243529140949249, -0.6292933225631714, -0.1902179718017578, 0.24465979635715485, -0.26905888319015503, -0.12250019609928131, 0.433319091796875, -0.10998313128948212, 0.06405811011791229, 0.06842686235904694, -0.004787467420101166, 0.21050754189491272, 0.34453830122947693, -0.15360957384109497, -0.2668263912200928 ]
https://github.com/huggingface/datasets/issues/3353
add one field "example_id", but I can't see it in the "comput_loss" function
Hi, it works now, thank you. 1. **args.remove_unused_columns=False** and **training_args.remove_unused_columns=False** 2. overwrite **get_train_dataloader**, and remove **_remove_unused_columns** 3. add new fields, and can be got in **inputs**.
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_
26
add one field "example_id", but I can't see it in the "comput_loss" function Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ``` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/3333#issuecomment-983457161_ Hi, it works now, thank you. 1. **args.remove_unused_columns=False** and **training_args.remove_unused_columns=False** 2. overwrite **get_train_dataloader**, and remove **_remove_unused_columns** 3. add new fields, and can be got in **inputs**.
[ -0.1465505063533783, -0.5799234509468079, -0.27407172322273254, 0.12024857103824615, 0.15451127290725708, 0.024358242750167847, 0.5186564326286316, 0.11919942498207092, 0.21184153854846954, 0.46522027254104614, 0.35325855016708374, 0.3118037283420563, 0.2009700983762741, -0.12374432384967804, 0.37870848178863525, 0.002258904278278351, -0.037914715707302094, 0.22412890195846558, 0.2628960609436035, -0.1642497181892395, -0.183089479804039, -0.08786004781723022, -0.21892495453357697, 0.022623956203460693, -0.286874383687973, -0.2088925540447235, 0.053089551627635956, -0.12556111812591553, -0.08682988584041595, -0.04241667315363884, 0.18709886074066162, -0.1108931303024292, -0.23998703062534332, 0.19970640540122986, -0.0001078606364899315, 0.10455688834190369, 0.1533193141222, -0.060825638473033905, -0.027286069467663765, -0.15439282357692719, -0.2217090129852295, -0.2605636417865753, -0.03601829707622528, -0.32417598366737366, -0.04981142282485962, 0.12347085773944855, -0.1091194748878479, -0.3235187232494354, 0.07952187955379486, 0.2246318757534027, 0.200823575258255, -0.10873186588287354, 0.12740759551525116, -0.000011923257261514664, 0.2504413425922394, 0.055052146315574646, 0.09210056066513062, -0.22741225361824036, -0.25794410705566406, -0.057758837938308716, 0.4909743666648865, 0.4897180199623108, 0.33997106552124023, -0.11952689290046692, 0.012490242719650269, 0.27129092812538147, 0.29391351342201233, -0.19182826578617096, 0.08529679477214813, -0.1495797336101532, -0.2388661503791809, -0.08748900145292282, -0.05443548411130905, 0.10713199526071548, 0.1659790724515915, -0.7740444540977478, -0.2672746479511261, -0.015106692910194397, 0.007978875190019608, 0.036080315709114075, 0.2593708336353302, 0.0940452292561531, -0.3109922409057617, 0.4295266270637512, 0.07097843289375305, 0.2999992370605469, 0.057178013026714325, 0.10110373795032501, 0.19335944950580597, -0.010559625923633575, -0.015152583830058575, 0.31693169474601746, 0.3318518102169037, 0.07476059347391129, -0.3491978347301483, 0.03461724519729614, -0.08718860894441605, -0.48206809163093567, -0.15340793132781982, -0.2185964435338974, 0.3559987246990204, 0.199703186750412, 0.21666908264160156, 0.47769930958747864, -0.35774868726730347, 0.23267416656017303, -0.15468496084213257, 0.006708766333758831, 0.04889189824461937, -0.094222292304039, 0.01682131737470627, -0.2492658793926239, -0.047601036727428436, 0.20710155367851257, 0.007518045604228973, 0.18787813186645508, 0.059870071709156036, 0.2564726173877716, -0.38190168142318726, -0.07115659862756729, -0.043254293501377106, -0.18922542035579681, 0.29996371269226074, 0.3324873149394989, 0.11979018896818161, 0.11905054748058319, 0.17693987488746643, 0.09451788663864136, -0.06571480631828308, -0.09953609853982925, -0.34466665983200073, 0.3517919182777405, -0.008103501051664352, -0.03120715357363224, 0.22983045876026154, 0.13715042173862457, 0.23834457993507385, -0.1337924301624298, 0.21796372532844543, -0.08600111305713654, 0.15164701640605927, -0.11660747230052948, 0.455160915851593, 0.26302850246429443, -0.1637023687362671, 0.013452531769871712, 0.25688230991363525, -0.21185296773910522, 0.02061336487531662, 0.10650630295276642, -0.22217699885368347, -0.02471642941236496, -0.2702468931674957, 0.17697085440158844, 0.31743675470352173, -0.06595046073198318, 0.19906693696975708, 0.4340725243091583, 0.03069140762090683, -0.18203973770141602, 0.1591264009475708, 0.2752166986465454, -0.4124225378036499, -0.23819246888160706, 0.3947792649269104, -0.1607450693845749, -0.1401054710149765, -0.14178596436977386, -0.26048949360847473, 0.1221226304769516, 0.1909761130809784, -0.08421394228935242, -0.0475601926445961, -0.028274334967136383, 0.06375133991241455, 0.34943562746047974, 0.8107308149337769, -0.37449580430984497, -0.27953845262527466, -0.07113315910100937, -0.24328665435314178, -0.3155626356601715, 0.3230952322483063, 0.10943273454904556, -0.03464546427130699, 0.3508976697921753, 0.3981732428073883, -0.2225913554430008, -0.05804062634706497, -0.09517022222280502, -0.15732446312904358, 0.14402742683887482, 0.2992531657218933, -0.040586214512586594, -0.03264493867754936, 0.2290869653224945, 0.15603725612163544, -0.04629472270607948, 0.17617611587047577, 0.05213678255677223, 0.03905804455280304, -0.04934406280517578, 0.4451037645339966, -0.3515293002128601, -0.07901818305253983, -0.3894444406032562, 0.05632849782705307, 0.03272564709186554, 0.10555991530418396, -0.10647164285182953, 0.24911420047283173, -0.3219108581542969, -0.15661945939064026, -0.11717279255390167, 0.2654784321784973, 0.14617368578910828, 0.2600668668746948, 0.16032758355140686, -0.1780053824186325, -0.21015025675296783, -0.18496844172477722, 0.20141571760177612, 0.10876348614692688, -0.11753661930561066, -0.060579393059015274, 0.10880695283412933, -0.25905612111091614, -0.3654019236564636, -0.23506221175193787, 0.19874092936515808, 0.5106496214866638, -0.0705522894859314, 0.11463408172130585, 0.20250022411346436, 0.05768122151494026, -0.137992262840271, -0.08048350363969803, 0.24741005897521973, 0.23882710933685303, 0.19635558128356934, -0.09220878034830093, -0.04107346013188362, -0.06624588370323181, -0.03226540610194206, 0.025320306420326233, 0.12644049525260925, 0.14899809658527374, -0.10233684629201889, -0.03880937397480011, -0.036698658019304276, 0.0363958403468132, 0.10487061738967896, -0.008195837028324604, -0.21249288320541382, -0.029219437390565872, -0.027104072272777557, -0.18801409006118774, -0.33968356251716614, -0.6948494911193848, 0.27741262316703796, 0.37535029649734497, 0.22507208585739136, 0.08878424018621445, -0.15434014797210693, 0.105450838804245, 0.30961543321609497, 0.17411383986473083, -0.06889986991882324, 0.2824614644050598, 0.24315251410007477, -0.0006570518016815186, -0.1929287165403366, -0.14591450989246368, 0.033299945294857025, -0.12179524451494217, 0.016118600964546204, -0.008892922662198544, 0.0553404800593853, 0.04604121297597885, -0.12206541746854782, -0.07414010167121887, 0.10981109738349915, -0.04258061200380325, 0.1530541032552719, -0.18196004629135132, 0.0745958685874939, -0.2065948098897934, -0.17015650868415833, -0.017663821578025818, -0.18788482248783112, 0.4881093204021454, -0.23571260273456573, 0.10856329649686813, 0.0685063824057579, -0.031224047765135765, 0.1133594959974289, 0.30108633637428284, 0.34934353828430176, 0.0032122228294610977, 0.4118722975254059, -0.5014946460723877, 0.07543579488992691, 0.08037222921848297, 0.13477171957492828, -0.3237752318382263, 0.22297066450119019, 0.08992332220077515, 0.11998603492975235, 0.16347551345825195, 0.1981918215751648, -0.5743004679679871, -0.0457441508769989, -0.18284857273101807, -0.1081300675868988, -0.23218196630477905, 0.3006095588207245, -0.4940451979637146, -0.4426557421684265, 0.04450170695781708, -0.11928471177816391, -0.17091071605682373, -0.02206408604979515, -0.10975947231054306, 0.06127258390188217, -0.3739386200904846, -0.4167385995388031, -0.271655797958374, -0.25357598066329956, 0.35338854789733887, 0.1404964029788971, 0.12868887186050415, -0.020596947520971298, 0.12339930236339569, 0.002261517569422722, 0.39003998041152954, 0.36847761273384094, -0.2363979071378708, -0.3898073136806488, 0.2644091844558716, -0.4682348072528839, -0.27534523606300354, 0.11900891363620758, -0.24284610152244568, 0.30595263838768005, -0.05519142746925354, -0.04299936443567276, -0.13260379433631897, 0.1728418916463852, -0.13908009231090546, -0.19780127704143524, 0.2503291666507721, 0.5233487486839294, -0.12633855640888214, -0.15030188858509064, -0.177924245595932, -0.4433754086494446, 0.13432706892490387, 0.3658439517021179, 0.2038743495941162, -0.3099861741065979, 0.2279682755470276, -0.013108424842357635, 0.5472480654716492, 0.01508670300245285, -0.59005206823349, 0.10565779358148575, -0.35956230759620667, -0.031962376087903976, 0.2820093035697937, -0.3894619047641754, -0.04178690165281296, 0.12351633608341217, 0.005694301798939705, -0.14670680463314056, -0.42879265546798706, -0.25679177045822144, -0.076689213514328, 0.0805046409368515, -0.5425464510917664, 0.01812451332807541, -0.1387893110513687, 0.047017719596624374, -0.0577976331114769, -0.11379742622375488, -0.0473475381731987, -0.4487857222557068, 0.06331223994493484, 0.20295237004756927, 0.10947459936141968, -0.08091705292463303, -0.21519668400287628, 0.1158837378025055, -0.770978569984436, -0.22945734858512878, 0.21596308052539825, -0.03206930682063103, 0.05482260137796402, -0.047710664570331573, -0.18983671069145203, -0.046377673745155334, 0.18217922747135162, 0.41062361001968384, -0.2682364284992218, -0.37916702032089233, 0.3391001224517822, -0.1767854243516922, 0.022389007732272148, 0.08054809272289276, -0.14872947335243225, -0.09032963216304779, 0.39954283833503723, 0.25765013694763184, -0.2826339602470398, 0.1514882743358612, 0.45748370885849, 0.017806466668844223, -0.14331337809562683, 0.1389862298965454, -0.40724843740463257, 0.09213858097791672, -0.22520169615745544, 0.06330879777669907, 0.10531113296747208, 0.24567176401615143, 0.3113097846508026, -0.15682198107242584, -0.04941975325345993, -0.2709628939628601, 0.09919638186693192, 0.18987798690795898, 0.13287104666233063, 0.4358682334423065, -0.1194884330034256, 0.2090509980916977, 0.28224658966064453, -0.21775859594345093, -0.08029216527938843, 0.09665125608444214, -0.03693978488445282, 0.1970514953136444, -0.07687702029943466, 0.410770982503891, 0.07123658806085587, 0.018029052764177322, 0.2601253092288971, -0.15418238937854767, 0.31888025999069214, -0.05465507134795189, 0.2812376916408539, 0.3012107312679291, 0.048341572284698486, 0.24144114553928375, -0.17652998864650726, 0.05961943417787552, -0.09588266909122467, -0.16974225640296936, 0.38878709077835083, -0.031823307275772095, -0.0489949956536293, 0.21643902361392975, 0.11204975098371506, 0.9591205716133118, -0.1575286090373993, -0.20973888039588928, 0.010101336985826492, -0.07591138780117035, 0.24658404290676117, -0.5863703489303589, 0.2355297952890396, 0.033486660569906235, -0.49882134795188904, -0.010542076081037521, -0.08819671720266342, 0.04400784522294998, 0.04039529711008072, -0.24758575856685638, -0.10447762161493301, -0.060073401778936386, 0.13262969255447388, -0.2600262761116028, 0.10427704453468323, 0.5729572176933289, -0.01450950838625431, 0.12908926606178284, 0.10716545581817627, 0.21610072255134583, -0.10327933728694916, 0.014246363192796707, 0.043841104954481125, -0.3111601173877716, -0.16519644856452942, -0.057795070111751556, -0.29262351989746094, -0.37245532870292664, 0.07791446894407272, -0.230187326669693, -0.33711129426956177, -0.13827945291996002, 0.24697470664978027, 0.5074904561042786, -0.08766181766986847, -0.0729396641254425, 0.07833805680274963, 0.03288691118359566, -0.07962076365947723, -0.4444468021392822, -0.09460942447185516, 0.13676407933235168, -0.2206639051437378, -0.4410487711429596, 0.577223002910614, 0.1857408583164215, -0.17053645849227905, -0.18996481597423553, 0.28716981410980225, -0.03837023675441742, 0.12954698503017426, 0.010304572060704231, 0.3733172118663788, -0.005395866930484772, -0.33267006278038025, 0.16275948286056519, 0.05962077155709267, -0.334980309009552, 0.055116333067417145, 0.10157691687345505, -0.05968184024095535, -0.11649651825428009, 0.27109459042549133, 0.1846640408039093, 0.11011898517608643, 0.15304645895957947, -0.3730732500553131, -0.1292414665222168, -0.2302127182483673, -0.4134924113750458, 0.2596660554409027, 0.16349583864212036, -0.27000829577445984, 0.025056706741452217, -0.2863544523715973, 0.011989651247859001, 0.11378517746925354, -0.12772630155086517, 0.46570149064064026, -0.292013943195343, -0.11934277415275574, -0.6847847700119019, 0.08466050773859024, 0.09230701625347137, 0.2418769896030426, -0.09104588627815247, 0.30854862928390503, -0.11392192542552948, 0.42074429988861084, -0.38313034176826477, -0.12363827973604202, -0.09517359733581543, 0.026160772889852524, -0.14240066707134247, 0.12539362907409668, 0.10522817820310593, 0.012082252651453018, 0.27954620122909546, 0.17916394770145416, 0.08523712307214737, -0.24466374516487122, 0.020656239241361618, 0.06733265519142151, -0.012857519090175629, 0.18863090872764587, -0.1437850147485733, 0.18278352916240692, -0.034019168466329575, 0.0805034413933754, 0.06358103454113007, -0.21421977877616882, 0.07200023531913757, 0.5170305967330933, 0.0015594102442264557, 0.37387141585350037, 0.2085384726524353, -0.38072672486305237, 0.16475960612297058, 0.19699126482009888, 0.06290850043296814, 0.07969526201486588, 0.03156718984246254, -0.19745585322380066, -0.22586312890052795, -0.1494312882423401, -0.17066945135593414, -0.10238174349069595, 0.15943703055381775, -0.08420166373252869, 0.048914942890405655, -0.2541467547416687, -0.2469746470451355, -0.19222599267959595, -0.13772612810134888, 0.40273886919021606, -0.16610568761825562, 0.3383501470088959, -0.3222353160381317, 0.21948516368865967, 0.13848981261253357, -0.23405654728412628, 0.40385791659355164, 0.16689014434814453, 0.08159485459327698, 0.10415884852409363, 0.10862765461206436, 0.000681217759847641, -0.2021351307630539, -0.3151360750198364, -0.01455564796924591, -0.22542470693588257, -0.14504696428775787, -0.052064042538404465, -0.008674735203385353, 0.46599844098091125, 0.1152549684047699, 0.0580730102956295, -0.03479732573032379, 0.31279996037483215, 0.029187627136707306, -0.25699135661125183, -0.13334637880325317, 0.2735692262649536, 0.22547318041324615, 0.14820526540279388, -0.24453216791152954, -0.2448832094669342, 0.20938079059123993, 0.014736071228981018, 0.25992438197135925, 0.11515949666500092, 0.08799374103546143, 0.024563204497098923, -0.07487369328737259, 0.13291318714618683, -0.16154132783412933, 0.02728651463985443, 0.008312173187732697, -0.4961478114128113, 0.45405814051628113, 0.019791360944509506, 0.3592815399169922, 0.009449109435081482, -0.1366969794034958, 0.3265836536884308, -0.11501803249120712, 0.2745339870452881, 0.2912698984146118, 0.014520805329084396, -0.0274460781365633, 0.18906629085540771, -0.24686771631240845, 0.02730495296418667, 0.14852693676948547, 0.19801795482635498, -0.172593891620636, 0.12429127097129822, 0.27284297347068787, 0.1988864690065384, -0.45398175716400146, -0.04389198124408722, 0.00977328885346651, 0.38970279693603516, 0.1741364449262619, -0.11748585104942322, 0.25164467096328735, -0.24389410018920898, 0.04327530786395073, 0.17277418076992035, 0.2546555697917938, -0.2248339205980301, 0.030999623239040375, -0.3233131468296051, -0.27582815289497375, -0.19087570905685425, -0.056789837777614594, -0.2546937167644501, 0.14866803586483002, -0.02844598889350891, -0.11542442440986633, 0.09206845611333847, -0.13109183311462402, 0.0961887389421463, -0.05441766604781151, 0.23663431406021118, -0.36063191294670105, 0.029850071296095848, -0.24813860654830933, -0.2751561999320984, -0.1471739262342453, 0.24833911657333374, 0.15155526995658875, -0.13869532942771912, 0.05348850414156914, 0.3183564841747284, 0.04121611639857292, -0.11018034815788269, 0.33006882667541504, -0.6668450832366943, 0.1768389642238617, 0.3580020070075989, -0.3746557831764221, 0.016439959406852722, -0.22338275611400604, -0.021176433190703392, 0.4222368001937866, 0.20508253574371338, 0.07054942101240158, 0.1290494054555893, 0.1250908076763153, -0.2997332215309143, 0.2207964062690735, -0.18793627619743347, 0.4197395145893097, 0.3551923930644989, -0.1828261762857437, 0.4042818546295166, -0.30664902925491333, 0.21373330056667328, 0.37193456292152405, 0.1562604457139969, -0.25331053137779236, 0.1702735275030136, 0.30845460295677185, 0.2727314531803131, 0.17075121402740479, -0.23948363959789276, -0.08783276379108429, 0.24362874031066895, 0.10050457715988159, -0.6387313604354858, 0.11946340650320053, 0.4051735997200012, -0.05298594385385513, 0.1463836282491684, 0.13996435701847076, 0.03163179010152817, 0.10031365603208542, 0.11978214979171753, 0.037433937191963196, -0.2836807370185852, 0.40320801734924316, -0.0077172741293907166, -0.20114409923553467, -0.3372561037540436, 0.2512964606285095, -0.07982068508863449, 0.4243529140949249, -0.6292933225631714, -0.1902179718017578, 0.24465979635715485, -0.26905888319015503, -0.12250019609928131, 0.433319091796875, -0.10998313128948212, 0.06405811011791229, 0.06842686235904694, -0.004787467420101166, 0.21050754189491272, 0.34453830122947693, -0.15360957384109497, -0.2668263912200928 ]
https://github.com/huggingface/datasets/issues/3346
Failed to convert `string` with pyarrow for QED since 1.15.0
Actually, re-opening this issue cause the error persists ```python >>> load_dataset("qed") Downloading and preparing dataset qed/qed (download: 13.43 MiB, generated: 9.70 MiB, post-processed: Unknown size, total: 23.14 MiB) to /home/victor_huggingface_co/.cache/huggingface/datasets/qed/qed/1.0.0/47d8b6f033393aa520a8402d4baf2d6bdc1b2fbde3dc156e595d2ef34caf7d75... 100%|███████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2228.64it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/load.py", line 1669, in load_dataset use_auth_token=use_auth_token, File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/builder.py", line 594, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/builder.py", line 681, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/builder.py", line 1083, in _prepare_split num_examples, num_bytes = writer.finalize() File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/arrow_writer.py", line 468, in finalize self.write_examples_on_file() File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/arrow_writer.py", line 339, in write_examples_on_file pa_array = pa.array(typed_sequence) File "pyarrow/array.pxi", line 229, in pyarrow.lib.array File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/arrow_writer.py", line 125, in __arrow_array__ out = pa.array(cast_to_python_objects(self.data, only_1d_for_numpy=True), type=type) File "pyarrow/array.pxi", line 315, in pyarrow.lib.array File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Could not convert 'in' with type str: tried to convert to boolean ``` Environment (datasets and pyarrow): ```bash (promptsource) victor_huggingface_co@victor-dev:~/promptsource$ datasets-cli env Copy-and-paste the text below in your GitHub issue. - `datasets` version: 1.16.1 - Platform: Linux-5.0.0-1020-gcp-x86_64-with-debian-buster-sid - Python version: 3.7.11 - PyArrow version: 6.0.1 ``` ```bash (promptsource) victor_huggingface_co@victor-dev:~/promptsource$ pip show pyarrow Name: pyarrow Version: 6.0.1 Summary: Python library for Apache Arrow Home-page: https://arrow.apache.org/ Author: Author-email: License: Apache License, Version 2.0 Location: /home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages Requires: numpy Required-by: streamlit, datasets ```
## Describe the bug Loading QED was fine until 1.15.0. related: bigscience-workshop/promptsource#659, bigscience-workshop/promptsource#670 Not sure where the root cause is, but here are some candidates: - #3158 - #3120 - #3196 - #2891 ## Steps to reproduce the bug ```python load_dataset("qed") ``` ## Expected results Loading completed. ## Actual results ```shell ArrowInvalid: Could not convert in with type str: tried to convert to boolean Traceback: File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/streamlit/script_runner.py", line 354, in _run_script exec(code, module.__dict__) File "/Users/s0s0cr3/Documents/GitHub/promptsource/promptsource/app.py", line 260, in <module> dataset = get_dataset(dataset_key, str(conf_option.name) if conf_option else None) File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/streamlit/caching.py", line 543, in wrapped_func return get_or_create_cached_value() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/streamlit/caching.py", line 527, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/Users/s0s0cr3/Documents/GitHub/promptsource/promptsource/utils.py", line 49, in get_dataset builder_instance.download_and_prepare() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/builder.py", line 607, in download_and_prepare self._download_and_prepare( File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/builder.py", line 697, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/builder.py", line 1106, in _prepare_split num_examples, num_bytes = writer.finalize() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/arrow_writer.py", line 456, in finalize self.write_examples_on_file() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/arrow_writer.py", line 325, in write_examples_on_file pa_array = pa.array(typed_sequence) File "pyarrow/array.pxi", line 222, in pyarrow.lib.array File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/arrow_writer.py", line 121, in __arrow_array__ out = pa.array(cast_to_python_objects(self.data, only_1d_for_numpy=True), type=type) File "pyarrow/array.pxi", line 305, in pyarrow.lib.array File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.15.0, 1.16.1 - Platform: macOS 1.15.7 or above - Python version: 3.7.12 and 3.9 - PyArrow version: 3.0.0, 5.0.0, 6.0.1
222
Failed to convert `string` with pyarrow for QED since 1.15.0 ## Describe the bug Loading QED was fine until 1.15.0. related: bigscience-workshop/promptsource#659, bigscience-workshop/promptsource#670 Not sure where the root cause is, but here are some candidates: - #3158 - #3120 - #3196 - #2891 ## Steps to reproduce the bug ```python load_dataset("qed") ``` ## Expected results Loading completed. ## Actual results ```shell ArrowInvalid: Could not convert in with type str: tried to convert to boolean Traceback: File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/streamlit/script_runner.py", line 354, in _run_script exec(code, module.__dict__) File "/Users/s0s0cr3/Documents/GitHub/promptsource/promptsource/app.py", line 260, in <module> dataset = get_dataset(dataset_key, str(conf_option.name) if conf_option else None) File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/streamlit/caching.py", line 543, in wrapped_func return get_or_create_cached_value() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/streamlit/caching.py", line 527, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/Users/s0s0cr3/Documents/GitHub/promptsource/promptsource/utils.py", line 49, in get_dataset builder_instance.download_and_prepare() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/builder.py", line 607, in download_and_prepare self._download_and_prepare( File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/builder.py", line 697, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/builder.py", line 1106, in _prepare_split num_examples, num_bytes = writer.finalize() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/arrow_writer.py", line 456, in finalize self.write_examples_on_file() File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/arrow_writer.py", line 325, in write_examples_on_file pa_array = pa.array(typed_sequence) File "pyarrow/array.pxi", line 222, in pyarrow.lib.array File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "/Users/s0s0cr3/Library/Python/3.9/lib/python/site-packages/datasets/arrow_writer.py", line 121, in __arrow_array__ out = pa.array(cast_to_python_objects(self.data, only_1d_for_numpy=True), type=type) File "pyarrow/array.pxi", line 305, in pyarrow.lib.array File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.15.0, 1.16.1 - Platform: macOS 1.15.7 or above - Python version: 3.7.12 and 3.9 - PyArrow version: 3.0.0, 5.0.0, 6.0.1 Actually, re-opening this issue cause the error persists ```python >>> load_dataset("qed") Downloading and preparing dataset qed/qed (download: 13.43 MiB, generated: 9.70 MiB, post-processed: Unknown size, total: 23.14 MiB) to /home/victor_huggingface_co/.cache/huggingface/datasets/qed/qed/1.0.0/47d8b6f033393aa520a8402d4baf2d6bdc1b2fbde3dc156e595d2ef34caf7d75... 100%|███████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2228.64it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/load.py", line 1669, in load_dataset use_auth_token=use_auth_token, File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/builder.py", line 594, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/builder.py", line 681, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/builder.py", line 1083, in _prepare_split num_examples, num_bytes = writer.finalize() File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/arrow_writer.py", line 468, in finalize self.write_examples_on_file() File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/arrow_writer.py", line 339, in write_examples_on_file pa_array = pa.array(typed_sequence) File "pyarrow/array.pxi", line 229, in pyarrow.lib.array File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol File "/home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages/datasets/arrow_writer.py", line 125, in __arrow_array__ out = pa.array(cast_to_python_objects(self.data, only_1d_for_numpy=True), type=type) File "pyarrow/array.pxi", line 315, in pyarrow.lib.array File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Could not convert 'in' with type str: tried to convert to boolean ``` Environment (datasets and pyarrow): ```bash (promptsource) victor_huggingface_co@victor-dev:~/promptsource$ datasets-cli env Copy-and-paste the text below in your GitHub issue. - `datasets` version: 1.16.1 - Platform: Linux-5.0.0-1020-gcp-x86_64-with-debian-buster-sid - Python version: 3.7.11 - PyArrow version: 6.0.1 ``` ```bash (promptsource) victor_huggingface_co@victor-dev:~/promptsource$ pip show pyarrow Name: pyarrow Version: 6.0.1 Summary: Python library for Apache Arrow Home-page: https://arrow.apache.org/ Author: Author-email: License: Apache License, Version 2.0 Location: /home/victor_huggingface_co/miniconda3/envs/promptsource/lib/python3.7/site-packages Requires: numpy Required-by: streamlit, datasets ```
[ -0.39662593603134155, -0.02938646823167801, -0.010125461965799332, -0.025372013449668884, 0.43712764978408813, -0.2806430757045746, 0.3386760950088501, 0.5561786890029907, -0.4660201668739319, 0.3157263994216919, 0.0433579683303833, 0.4963354170322418, -0.04443220794200897, 0.2531989514827728, -0.051540128886699677, -0.032455407083034515, 0.3282584249973297, 0.08551926910877228, -0.19070306420326233, 0.14689013361930847, -0.2902023196220398, 0.4182664752006531, -0.34760046005249023, 0.27664071321487427, -0.03591267392039299, 0.011201698333024979, -0.03382131829857826, 0.27891260385513306, -0.09528830647468567, -0.37734177708625793, 0.03841913491487503, -0.21218740940093994, 0.045623213052749634, 0.09748971462249756, -0.00011672184336930513, -0.13772308826446533, 0.5200443267822266, 0.04486115276813507, -0.6164500713348389, -0.3640904426574707, -0.008496996015310287, -0.1379765123128891, 0.2750956118106842, 0.06438414007425308, 0.3526574969291687, -0.16642385721206665, 0.12327823042869568, -0.08578301221132278, 0.04882866516709328, 0.3775556683540344, 0.18746447563171387, 0.3224664330482483, 0.044700365513563156, -0.11018570512533188, 0.3798227608203888, 0.21870873868465424, -0.11281009018421173, 0.2455456554889679, 0.5145848393440247, -0.034035105258226395, -0.2871376574039459, -0.050783924758434296, -0.03063063696026802, 0.014701273292303085, 0.18401500582695007, 0.16095054149627686, 0.21448183059692383, -0.09554930031299591, 0.05059801787137985, 0.19943875074386597, -0.07574013620615005, -0.04092524200677872, -0.36418867111206055, -0.24331456422805786, -0.04812067747116089, -0.2821281850337982, 0.06369224935770035, 0.14577899873256683, -0.31262895464897156, 0.08234120160341263, 0.01904192939400673, -0.15352347493171692, -0.19700932502746582, -0.027827396988868713, -0.2780689597129822, 0.45354345440864563, 0.1613580584526062, 0.06633318960666656, -0.16422928869724274, -0.4638271927833557, -0.047276969999074936, 0.2076617032289505, -0.27625733613967896, -0.024357516318559647, -0.3566703498363495, 0.18054459989070892, -0.1669730246067047, 0.23879015445709229, 0.4651680290699005, 0.09797753393650055, 0.11554944515228271, 0.1662839651107788, 0.2505277395248413, -0.09582740813493729, 0.07067602872848511, 0.17547687888145447, 0.05915592238306999, 0.23488451540470123, 0.20764358341693878, 0.16507865488529205, -0.1005600243806839, 0.15019384026527405, -0.3113730251789093, -0.13833215832710266, -0.02151804231107235, 0.28422072529792786, 0.47559094429016113, -0.11131088435649872, -0.14488330483436584, -0.05475553870201111, -0.3113933205604553, 0.1721535623073578, -0.12020611017942429, 0.4247000515460968, 0.0681028664112091, 0.29454249143600464, 0.04282071441411972, 0.278084933757782, -0.08287189900875092, -0.34139329195022583, -0.005155850201845169, -0.2315150648355484, -0.07177191972732544, -0.12585781514644623, 0.0893811583518982, -0.4185525178909302, 0.2296043038368225, -0.013539404608309269, -0.029031328856945038, -0.02243288978934288, -0.34033194184303284, 0.030936434864997864, 0.17526301741600037, 0.17668265104293823, -0.3072064220905304, 0.18945862352848053, 0.22297151386737823, 0.023680157959461212, 0.0641341283917427, 0.5335207581520081, -0.19824433326721191, -0.30228203535079956, -0.28377822041511536, 0.17567645013332367, -0.07225710153579712, -0.29577600955963135, -0.07970564812421799, 0.08669401705265045, 0.02072596549987793, -0.014415264129638672, -0.007135659456253052, -0.517038881778717, -0.08403573930263519, -0.15013499557971954, 0.13744987547397614, 0.09088680148124695, -0.6552965044975281, -0.02899882197380066, 0.1703260987997055, 0.030761638656258583, 0.08921217173337936, 0.12324617803096771, -0.25858351588249207, 0.07919584214687347, -0.2034781277179718, 0.18142379820346832, 0.32325392961502075, -0.5484131574630737, -0.3085799813270569, 0.20006786286830902, -0.28932052850723267, -0.007871212437748909, 0.10277101397514343, -0.22789634764194489, 0.11284314841032028, -0.15171602368354797, 0.015040051192045212, 0.46476680040359497, -0.05498811602592468, 0.23382827639579773, -0.3825124204158783, -0.35787540674209595, 0.003575984388589859, 0.16587693989276886, 0.25080639123916626, 0.006790518760681152, -0.052140407264232635, -0.06821693480014801, 0.4362274408340454, -0.263792484998703, 0.11807715892791748, -0.026377402245998383, 0.30878740549087524, -0.2272903472185135, 0.3839896619319916, -0.06339073181152344, 0.00712406262755394, 0.1212884858250618, -0.6558681726455688, -0.016595512628555298, -0.3919723629951477, -0.000562913715839386, -0.38588473200798035, 0.3725186884403229, -0.24808646738529205, 0.03786202892661095, 0.12143687903881073, 0.097574882209301, -0.08715426921844482, 0.1424742043018341, -0.21062961220741272, 0.03928235545754433, -0.04306935518980026, 0.275028795003891, 0.016168683767318726, -0.20378366112709045, 0.07289095222949982, -0.4691082239151001, 0.12348510324954987, -0.032508544623851776, 0.21516618132591248, 0.20709209144115448, -0.18419340252876282, 0.3152255713939667, -0.06730984151363373, -0.011866360902786255, -0.28845974802970886, -0.30851268768310547, 0.07968258857727051, -0.03510322794318199, 0.09892280399799347, 0.2596396803855896, 0.09668947011232376, 0.08016365021467209, 0.03458811342716217, 0.3738892674446106, -0.13097622990608215, 0.40323278307914734, 0.10471656918525696, 0.010285316035151482, 0.08153737336397171, -0.023038875311613083, 0.12458071857690811, -0.028341565281152725, 0.2938505709171295, 0.3636014759540558, 0.2539680004119873, -0.20512115955352783, -0.26098960638046265, 0.36163538694381714, 0.4327276945114136, -0.02312459982931614, 0.044030360877513885, 0.2438746690750122, -0.3290320336818695, -0.21585506200790405, 0.004332941025495529, 0.03511295095086098, 0.23346155881881714, 0.22129273414611816, 0.007924266159534454, 0.0766533687710762, 0.1275395005941391, -0.23527753353118896, 0.49612143635749817, 0.12324070930480957, 0.15179796516895294, 0.29342588782310486, 0.5204681158065796, -0.2894454300403595, -0.03574386611580849, -0.06861434876918793, 0.100844606757164, 0.13412226736545563, -0.5281243920326233, 0.06348032504320145, -0.3993854522705078, -0.06901364773511887, -0.022365257143974304, -0.2730378210544586, 0.02660321816802025, -0.4870314598083496, 0.15661868453025818, 0.33129891753196716, 0.09708745777606964, 0.23251456022262573, 0.29166901111602783, 0.06385736167430878, 0.28075796365737915, -0.2097255140542984, -0.4015881419181824, -0.3157901167869568, -0.6300774216651917, 0.09293180704116821, 0.2213296741247177, -0.16207310557365417, -0.15238890051841736, -0.1132858619093895, 0.22145289182662964, -0.4510795772075653, -0.24917879700660706, 0.156538724899292, -0.21092678606510162, 0.6037580966949463, 0.18279293179512024, 0.02822938561439514, -0.25152599811553955, -0.0682961493730545, 0.37463870644569397, -0.029567446559667587, -0.1904093623161316, 0.3366342782974243, -0.1861748993396759, 0.0957385003566742, -0.17512042820453644, -0.17364650964736938, -0.14355559647083282, -0.1459583193063736, 0.12433615326881409, -0.20530393719673157, 0.1318913698196411, 0.23725219070911407, 0.19521303474903107, 0.15960490703582764, -0.11764940619468689, -0.14152684807777405, 0.08386768400669098, -0.09957589209079742, 0.44301077723503113, -0.1271875500679016, -0.4206479489803314, -0.013134092092514038, 0.09957047551870346, -0.20865172147750854, 0.13323187828063965, -0.1357424259185791, -0.05189761891961098, 0.00657258927822113, 0.39168331027030945, 0.06259602308273315, -0.31020158529281616, 0.14570178091526031, 0.09474661201238632, -0.07580062747001648, -0.13093098998069763, -0.02020581066608429, 0.22275686264038086, -0.1657494604587555, 0.2335381805896759, 0.057084038853645325, 0.39021122455596924, 0.11281847953796387, 0.6373870372772217, -0.0524861142039299, 0.2561357915401459, 0.2227344959974289, -0.2994365394115448, -0.16582433879375458, -0.22552043199539185, -0.04855382442474365, -0.17992939054965973, -0.22647523880004883, -0.11061061918735504, 0.3079739212989807, 0.038308098912239075, -0.07717617601156235, 0.0262918621301651, -0.3573783040046692, -0.23294994235038757, -0.2534928619861603, 0.13012166321277618, -0.30263441801071167, 0.0043335407972335815, -0.06508634984493256, 0.21662074327468872, -0.02013028785586357, -0.23196017742156982, 0.11003358662128448, 0.024711281061172485, 0.12577888369560242, 0.09554124623537064, 0.2633621394634247, -0.16146740317344666, -0.30445268750190735, 0.28252291679382324, 0.12927193939685822, 0.5543057918548584, -0.05979612097144127, -0.22700989246368408, 0.10110338777303696, -0.3767518103122711, 0.5178472995758057, 0.12496491521596909, 0.2951945960521698, 0.10132476687431335, 0.07020889222621918, -0.2759862542152405, -0.33448320627212524, -0.3245626986026764, -0.33528992533683777, -0.14710424840450287, 0.25821852684020996, -0.3400408923625946, -0.14495106041431427, 0.11299880594015121, 0.15107876062393188, -0.2412486970424652, 0.09838785231113434, -0.4369593560695648, -0.3268577456474304, -0.21023082733154297, 0.09042204171419144, 0.06187906116247177, 0.4255528748035431, -0.10888536274433136, 0.0996786504983902, -0.22361759841442108, -0.07406418025493622, 0.1518770456314087, -0.04638040065765381, 0.2966940104961395, -0.4534737467765808, 0.07164089381694794, -0.015623033046722412, 0.15401627123355865, 0.22826912999153137, 0.1473337560892105, 0.3107078969478607, -0.3316822052001953, 0.1837085485458374, 0.10328298062086105, 0.3398348093032837, 0.3543536961078644, -0.44705361127853394, 0.1739649772644043, 0.153614804148674, 0.09697511047124863, 0.09914688020944595, -0.09575815498828888, 0.1761748194694519, 0.13507775962352753, -0.11887317150831223, 0.11394405364990234, 0.25278204679489136, 0.04916832968592644, -0.024774596095085144, -0.016787365078926086, 0.15022993087768555, -0.19527097046375275, 0.451019823551178, 0.07699091732501984, 0.6604394316673279, -0.02452736347913742, 0.08364886045455933, 0.6889127492904663, -0.41492438316345215, 0.09478797018527985, 0.2746942639350891, 0.11549413204193115, -0.7608676552772522, 0.18640053272247314, 0.04976963251829147, -0.11859077215194702, 0.12625661492347717, -0.2905395030975342, -0.49320176243782043, 0.12839090824127197, -0.40381354093551636, -0.0633683055639267, 0.3008950650691986, 0.22348538041114807, -0.1599833071231842, 0.0037938179448246956, -0.34963279962539673, 0.07626800239086151, -0.20147623121738434, -0.0967225730419159, 0.06695867329835892, -0.28259992599487305, -0.30453217029571533, -0.09990769624710083, -0.16007687151432037, 0.309007465839386, -0.17483662068843842, -0.15340246260166168, 0.12739650905132294, -0.39688897132873535, -0.21752454340457916, 0.3667868971824646, 0.07899727672338486, -0.0761132687330246, -0.1889597773551941, 0.16847443580627441, -0.15389546751976013, 0.2620685398578644, 0.364416241645813, 0.019762787967920303, 0.3370814025402069, -0.09595644474029541, -0.0681120902299881, 0.16535870730876923, -0.20938679575920105, 0.024927951395511627, -0.3664909899234772, -0.13859671354293823, 0.08506258577108383, -0.4446941912174225, 0.0821978747844696, -0.26765549182891846, 0.15263484418392181, -0.11789995431900024, 0.06973768025636673, -0.20126135647296906, 0.15721426904201508, 0.06465931981801987, 0.12390227615833282, -0.26967543363571167, 0.04682280123233795, 0.20361299812793732, -0.13139772415161133, 0.05436071753501892, 0.573853611946106, 0.17173421382904053, -0.14478139579296112, 0.015858687460422516, 0.26388344168663025, 0.14372578263282776, -0.4742686152458191, 0.3757932782173157, -0.08390849828720093, 0.07100087404251099, 0.253060907125473, 0.48599252104759216, 0.05421816557645798, -0.10835392028093338, -0.29329654574394226, -0.2589530050754547, -0.34734654426574707, 0.24709931015968323, -0.2716689109802246, -0.20884667336940765, 0.06735367327928543, -0.0651116669178009, -0.07580750435590744, -0.1838376671075821, -0.24812635779380798, -0.012190114706754684, 0.03923310339450836, 0.044451527297496796, -0.7297605276107788, -0.15578964352607727, 0.21457284688949585, 0.3354530930519104, 0.10640937089920044, 0.22586335241794586, -0.05091937631368637, -0.18786180019378662, -0.19999626278877258, 0.13202449679374695, 0.043072450906038284, -0.019100716337561607, -0.05162547156214714, 0.10101431608200073, 0.19423149526119232, -0.09655869752168655, 0.24494639039039612, 0.12944814562797546, -0.17450261116027832, -0.007147691212594509, 0.38471221923828125, 0.2020656168460846, -0.05086767300963402, 0.06138620525598526, -0.09189040958881378, 0.07370182871818542, -0.14892823994159698, 0.20742356777191162, -0.20026592910289764, -0.11990474909543991, -0.00940537080168724, 0.1558922529220581, 0.4734351634979248, 0.14374957978725433, 0.4482918381690979, -0.3801969289779663, -0.2898276746273041, -0.6394798755645752, 0.08031371980905533, 0.18340474367141724, -0.25769272446632385, -0.1251039057970047, 0.025881057605147362, 0.1234547421336174, -0.18411602079868317, 0.038872092962265015, -0.23848757147789001, -0.22572694718837738, -0.24592386186122894, 0.15890346467494965, 0.03808419033885002, -0.4761715531349182, 0.2404291182756424, 0.08229262381792068, 0.41497305035591125, 0.04011644050478935, -0.2901095151901245, 0.3502664864063263, -0.05905396118760109, 0.06913531571626663, 0.5991227626800537, -0.05607924237847328, -0.02547077089548111, 0.40607398748397827, -0.30713754892349243, 0.22798092663288116, 0.2390892505645752, 0.3145495355129242, 0.21206605434417725, -0.011472474783658981, 0.043696608394384384, 0.2646918296813965, 0.07114475965499878, -0.15516099333763123, 0.09703847765922546, 0.5189219117164612, 0.05280117318034172, 0.13154083490371704, -0.17713811993598938, 0.10262257605791092, -0.3866468071937561, -0.3521759808063507, -0.26548299193382263, -0.08061900734901428, -0.09842425584793091, 0.01362893357872963, -0.22285187244415283, -0.06201615929603577, 0.14143209159374237, 0.3663142919540405, 0.08502450585365295, -0.20745716989040375, -0.1791510283946991, 0.2524775564670563, 0.06223268806934357, -0.3512994050979614, 0.42806917428970337, -0.0075735971331596375, 0.09234822541475296, 0.4559713304042816, 0.23619496822357178, 0.5852956771850586, 0.5711898803710938, -0.32935479283332825, -0.15089456737041473, -0.1899193972349167, -0.08476617932319641, 0.24899151921272278, 0.20710569620132446, 0.16865822672843933, 0.5591821074485779, 0.2532338500022888, 0.11695502698421478, -0.0688977763056755, 0.20501507818698883, 0.01135406643152237, 0.1067284643650055, -0.014336513355374336, -0.13957002758979797, 0.004147043451666832, -0.027496684342622757, 0.03482808172702789, -0.18423035740852356, -0.3738330006599426, 0.19920063018798828, 0.3274306356906891, 0.44639110565185547, 0.1755768358707428, 0.06653036177158356, 0.08896604180335999, 0.2009439468383789, 0.05252442508935928, 0.230769544839859, 0.17376060783863068, -0.27642402052879333, 0.06504297256469727, -0.24963514506816864, 0.27628621459007263, 0.26414239406585693, -0.11359573155641556, 0.25646865367889404, -0.022166289389133453, 0.0413089282810688, 0.026783863082528114, 0.13287010788917542, -0.06228236109018326, -0.2091934084892273, 0.3454328179359436, -0.34046000242233276, -0.11612683534622192, 0.4240868091583252, 0.09797269850969315, -0.08169339597225189, -0.4437103271484375, 0.3919624090194702, -0.17790217697620392, 0.05159419775009155, -0.1807272881269455, -0.3710138201713562, 0.44456061720848083, -0.004333749413490295, 0.08962090313434601, 0.1637362539768219, 0.22977016866207123, 0.17225483059883118, -0.08732470870018005, -0.3548121452331543, -0.13354359567165375, -0.14656861126422882, 0.1035667210817337, -0.17470593750476837, 0.2506837844848633, 0.2634970545768738, -0.07115395367145538, -0.1076606884598732, 0.05895566940307617, -0.1442946493625641, 0.027460835874080658, -0.3149683475494385, 0.19453655183315277, 0.14566531777381897, 0.034141961485147476, -0.2995275557041168, 0.061069097369909286, 0.19718103110790253, 0.19338084757328033, -0.6450315117835999, -0.3145315945148468, 0.47496068477630615, -0.34541085362434387, -0.3426012098789215, 0.027816511690616608, 0.13460418581962585, 0.11718976497650146, 0.06469657272100449, -0.7658604979515076, -0.0688924789428711, 0.2879168689250946, 0.1700967252254486, 0.03477167710661888, 0.05145509913563728, 0.3072245419025421, 0.3257616460323334, -0.3666226863861084, -0.17268536984920502, 0.10171262919902802, 0.10527443885803223, -0.3325520157814026, -0.22774730622768402 ]
https://github.com/huggingface/datasets/issues/3345
Failed to download species_800 from Google Drive zip file
Hi, the dataset is downloaded normally on my machine. Maybe the URL was down at the time of your download. Could you try again?
## Describe the bug One can manually download the zip file on Google Drive, but `load_dataset()` cannot. related: #3248 ## Steps to reproduce the bug ```shell > python Python 3.7.12 (default, Sep 5 2021, 08:34:29) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type "help", "copyright", "credits" or "license" for more information. ``` ```python >>> from datasets import load_dataset >>> s800 = load_dataset("species_800") ``` ## Expected results species_800 downloaded. ## Actual results ```shell Downloading: 5.68kB [00:00, 1.22MB/s] Downloading: 2.70kB [00:00, 691kB/s] Downloading and preparing dataset species800/species_800 (download: 17.36 MiB, generated: 3.53 MiB, post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976... 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/load.py", line 1632, in load_dataset use_auth_token=use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 608, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 675, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/Users/mike/.cache/huggingface/modules/datasets_modules/datasets/species_800/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976/species_800.py", line 104, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract return self.extract(self.download(url_or_urls)) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 197, in download download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in map_nested for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in <listcomp> for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 143, in _single_map_nested return function(data_struct) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 305, in cached_path use_auth_token=download_config.use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/ ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.14,0 1.15.0, 1.16.1 - Platform: macOS Catalina 10.15.7 - Python version: 3.7.12 - PyArrow version: 6.0.1
24
Failed to download species_800 from Google Drive zip file ## Describe the bug One can manually download the zip file on Google Drive, but `load_dataset()` cannot. related: #3248 ## Steps to reproduce the bug ```shell > python Python 3.7.12 (default, Sep 5 2021, 08:34:29) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type "help", "copyright", "credits" or "license" for more information. ``` ```python >>> from datasets import load_dataset >>> s800 = load_dataset("species_800") ``` ## Expected results species_800 downloaded. ## Actual results ```shell Downloading: 5.68kB [00:00, 1.22MB/s] Downloading: 2.70kB [00:00, 691kB/s] Downloading and preparing dataset species800/species_800 (download: 17.36 MiB, generated: 3.53 MiB, post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976... 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/load.py", line 1632, in load_dataset use_auth_token=use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 608, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 675, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/Users/mike/.cache/huggingface/modules/datasets_modules/datasets/species_800/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976/species_800.py", line 104, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract return self.extract(self.download(url_or_urls)) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 197, in download download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in map_nested for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in <listcomp> for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 143, in _single_map_nested return function(data_struct) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 305, in cached_path use_auth_token=download_config.use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/ ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.14,0 1.15.0, 1.16.1 - Platform: macOS Catalina 10.15.7 - Python version: 3.7.12 - PyArrow version: 6.0.1 Hi, the dataset is downloaded normally on my machine. Maybe the URL was down at the time of your download. Could you try again?
[ -0.3141794800758362, -0.03847512602806091, -0.049231093376874924, 0.2020849883556366, 0.16466940939426422, 0.16171559691429138, 0.2258751094341278, 0.24758380651474, 0.1551794707775116, -0.010348305106163025, -0.10637681931257248, 0.21935942769050598, -0.01806880161166191, 0.24885903298854828, 0.2162836194038391, -0.09129737317562103, -0.11937201768159866, -0.0873609334230423, 0.15640202164649963, 0.04595359414815903, -0.3997567892074585, 0.3511318266391754, -0.14998511970043182, -0.1370420753955841, 0.10252426564693451, -0.08092720806598663, -0.01417650654911995, 0.4140370488166809, -0.12336415797472, -0.3596288859844208, 0.29466956853866577, -0.04769250378012657, 0.12575457990169525, 0.30427587032318115, -0.0001109520744648762, -0.014227043837308884, 0.514840841293335, 0.06604155898094177, -0.5604018568992615, -0.2934929132461548, 0.12272996455430984, -0.14251844584941864, -0.06460592895746231, -0.20446231961250305, 0.158846914768219, -0.15920792520046234, 0.10224151611328125, -0.3952910006046295, 0.3530469238758087, 0.30545732378959656, 0.2533213198184967, 0.14084511995315552, 0.38986021280288696, -0.16649407148361206, 0.40348535776138306, -0.0750303864479065, -0.045000508427619934, 0.6451207995414734, 0.08234427869319916, 0.27185171842575073, 0.042523715645074844, -0.02951677329838276, 0.08810705691576004, 0.0383991077542305, 0.0006943345069885254, 0.0740869790315628, -0.2062595784664154, -0.32979345321655273, 0.22241535782814026, -0.004559211432933807, 0.43952351808547974, -0.23895490169525146, -0.44700494408607483, -0.17387981712818146, 0.13145478069782257, -0.42257392406463623, 0.43083447217941284, 0.27051880955696106, -0.15498961508274078, 0.06675532460212708, -0.18667426705360413, 0.00411952193826437, -0.0480874627828598, 0.04200141876935959, -0.3033828139305115, 0.1795378178358078, -0.15980468690395355, 0.12867459654808044, -0.010846603661775589, 0.10462433099746704, 0.0993991270661354, -0.25711601972579956, -0.15618833899497986, 0.20321379601955414, -0.3752104341983795, 0.14640501141548157, 0.11489982903003693, 0.11493100225925446, 0.3292040228843689, 0.30755168199539185, -0.12921157479286194, -0.12390022724866867, -0.23722156882286072, 0.11148229986429214, 0.19885969161987305, 0.40071117877960205, -0.12916481494903564, 0.03362133353948593, 0.2132980227470398, 0.32562437653541565, 0.007220808416604996, -0.0009814240038394928, 0.07661017775535583, -0.23637643456459045, 0.22745727002620697, 0.13883349299430847, 0.4551577568054199, -0.07623159140348434, -0.4224098026752472, 0.1605558544397354, -0.42096176743507385, -0.04980635270476341, -0.1374264508485794, 0.10010449588298798, -0.11453481763601303, -0.000575922429561615, 0.1056688129901886, 0.21025872230529785, 0.054782070219516754, -0.20626863837242126, -0.20141667127609253, 0.13107489049434662, -0.09482993185520172, -0.07116524875164032, 0.22469986975193024, -0.3604337275028229, 0.2049073576927185, 0.055551350116729736, -0.03994852304458618, -0.13597342371940613, -0.06078792363405228, -0.1023944616317749, -0.34391704201698303, 0.42097795009613037, 0.27230897545814514, 0.20994514226913452, 0.056568145751953125, -0.09603371471166611, -0.0461222305893898, 0.007344961166381836, -0.2212390899658203, -0.010018326342105865, -0.16477607190608978, 0.21182841062545776, -0.2752348780632019, -0.08806869387626648, -0.3080989420413971, -0.07774515450000763, -0.11116715520620346, 0.07076224684715271, -0.025970228016376495, -0.05884270370006561, -0.28251218795776367, -0.47130531072616577, 0.157707080245018, 0.4734969735145569, -0.2767035663127899, 0.14046457409858704, -0.4503757357597351, -0.07272833585739136, 0.31891900300979614, 0.1745319664478302, -0.053507134318351746, 0.21427488327026367, -0.4785754084587097, 0.21979452669620514, 0.22824063897132874, -0.16285941004753113, -0.523995578289032, 0.29474157094955444, -0.3254166841506958, 0.3206424117088318, -0.07176927477121353, -0.06904862076044083, -0.003413519822061062, 0.14643041789531708, 0.14816325902938843, 0.4415031671524048, -0.04634544253349304, 0.02355956844985485, -0.21041856706142426, -0.3463623821735382, 0.08962292224168777, 0.35261210799217224, 0.040366239845752716, 0.1935516595840454, 0.39888235926628113, -0.4314281940460205, 0.2432655394077301, -0.053718652576208115, 0.036875419318675995, 0.3293353319168091, 0.2900211215019226, 0.07418257743120193, -0.0295130405575037, -0.1137085109949112, -0.8161113262176514, 0.3076699376106262, -0.16433671116828918, -0.06743120402097702, -0.38013148307800293, -0.05042395740747452, -0.6161766052246094, -0.00918408203870058, -0.07960695028305054, -0.09793205559253693, 0.11778919398784637, 0.23803643882274628, 0.19529640674591064, 0.2244137078523636, 0.022168893367052078, 0.46927598118782043, 0.07492371648550034, 0.2263450026512146, -0.2785494327545166, 0.1771833449602127, -0.08744162321090698, -0.2783636450767517, 0.2419012486934662, -0.19884774088859558, 0.12343189865350723, -0.1083587035536766, -0.23050963878631592, 0.389726847410202, -0.054617539048194885, 0.04814606159925461, -0.029987141489982605, -0.11386068165302277, 0.17269492149353027, -0.1660010665655136, 0.07723990082740784, 0.21728967130184174, 0.2041257917881012, 0.06002093106508255, -0.5396817326545715, 0.18601098656654358, 0.03721005469560623, -0.05871503800153732, -0.18546009063720703, 0.20068705081939697, 0.15459658205509186, -0.15717382729053497, 0.10694964975118637, 0.25046804547309875, 0.3380044102668762, 0.0964779406785965, 0.7787851691246033, -0.2652096152305603, -0.14625971019268036, 0.09753096848726273, 0.31513479351997375, -0.02791128121316433, 0.1542782336473465, 0.28268030285835266, -0.17244815826416016, -0.15117335319519043, 0.06813975423574448, 0.45472845435142517, 0.5494401454925537, 0.12516692280769348, 0.3631506860256195, 0.10611286014318466, -0.01000309269875288, -0.17540109157562256, 0.153765469789505, 0.037099216133356094, -0.0280966404825449, 0.08483763784170151, 0.26868489384651184, 0.0387534573674202, -0.2527611255645752, -0.03420411795377731, 0.09015163034200668, 0.12067841738462448, -0.3279278576374054, 0.22397427260875702, -0.08538804203271866, 0.09617514163255692, -0.014229749329388142, 0.30479586124420166, -0.2716314196586609, -0.30721762776374817, -0.326221227645874, 0.3114137649536133, 0.029222842305898666, -0.03984343260526657, 0.09803217649459839, 0.0405011922121048, 0.29463687539100647, -0.3845742344856262, -0.2616499960422516, 0.2500511407852173, -0.27869361639022827, 0.07650022208690643, 0.35210421681404114, -0.1339196413755417, 0.4593883156776428, 0.003271108493208885, 0.04861936718225479, -0.5828668475151062, -0.32857197523117065, 0.04453251510858536, -0.07695556432008743, 0.4148811995983124, 0.25034859776496887, 0.2806973457336426, -0.1553092896938324, 0.0032504908740520477, 0.2041027992963791, -0.10571231693029404, -0.22896550595760345, 0.016873791813850403, -0.02651892602443695, 0.11654672771692276, -0.2804706394672394, -0.2161668837070465, -0.16679300367832184, -0.2883910536766052, 0.44185805320739746, 0.27074944972991943, 0.08082506060600281, 0.2550256848335266, -0.0025095753371715546, 0.11059682071208954, 0.21184028685092926, -0.1537092924118042, -0.3089704215526581, -0.37579742074012756, 0.4339390695095062, -0.09786497801542282, -0.37701088190078735, 0.04555446282029152, -0.07351180166006088, 0.0028515346348285675, 0.3280910849571228, -0.43202686309814453, -0.0983474925160408, -0.37649980187416077, 0.5410794019699097, -0.30628296732902527, 0.19468055665493011, 0.03966066986322403, -0.06753700226545334, -0.07947327941656113, -0.023307541385293007, -0.08514975011348724, -0.007227592170238495, 0.19085955619812012, 0.3523198962211609, 0.1263813078403473, 0.23125138878822327, -0.0810246616601944, 0.11559339612722397, 0.19473817944526672, 0.14242203533649445, 0.4200141131877899, -0.09247036278247833, 0.28507184982299805, -0.1047578677535057, -0.053339891135692596, -0.09803629666566849, -0.10754266381263733, -0.16741938889026642, 0.24704647064208984, -0.018431365489959717, -0.1849411278963089, -0.08079288899898529, -0.1951984465122223, -0.46511968970298767, -0.20757226645946503, 0.05745074898004532, 0.05891608074307442, 0.16024476289749146, -0.013229409232735634, -0.054693013429641724, 0.03164470195770264, -0.1284647136926651, 0.0514666922390461, 0.25763455033302307, 0.1376238912343979, 0.1586131602525711, -0.1772049069404602, 0.14354124665260315, -0.41534850001335144, 0.3013404607772827, -0.2719990015029907, 0.1783401370048523, -0.09592360258102417, 0.20394200086593628, 0.115471251308918, -0.1845637857913971, 0.5941318869590759, -0.21955238282680511, 0.3889462947845459, 0.13755978643894196, 0.13972190022468567, 0.055389635264873505, -0.17870835959911346, -0.15911605954170227, 0.08995753526687622, 0.10183767974376678, 0.25809353590011597, -0.39645153284072876, 0.2316053807735443, 0.16645120084285736, 0.18306876718997955, -0.052635740488767624, -0.3247477412223816, -0.19701680541038513, -0.5626166462898254, -0.23900754749774933, 0.016565561294555664, 0.06599974632263184, 0.31513893604278564, -0.1389138549566269, 0.13141393661499023, -0.05495615303516388, -0.16735801100730896, 0.025736242532730103, -0.12383882701396942, 0.29145297408103943, 0.1203579306602478, 0.2208612859249115, 0.20795224606990814, -0.07369045913219452, -0.023693954572081566, 0.796827495098114, 0.11113108694553375, -0.34482190012931824, 0.10940386354923248, -0.06302992254495621, -0.09074831753969193, 0.20928290486335754, -0.32666802406311035, -0.20196527242660522, -0.00003032013773918152, 0.18767014145851135, -0.005378796719014645, 0.016150156036019325, 0.07875478267669678, -0.08042643964290619, -0.052568238228559494, -0.32582220435142517, 0.6423517465591431, 0.13308750092983246, -0.0788937509059906, 0.4572187066078186, -0.06283894181251526, -0.2809721827507019, 0.30282366275787354, -0.061418794095516205, 0.6744049787521362, -0.207463338971138, 0.0062652938067913055, 0.2989010512828827, -0.23289798200130463, 0.4780520498752594, -0.052113816142082214, 0.07528476417064667, -0.46109241247177124, -0.11918994784355164, 0.04643841087818146, -0.13677842915058136, 0.1565559357404709, 0.20563410222530365, -0.32858380675315857, 0.22944135963916779, -0.2635014057159424, 0.04112278297543526, 0.23866407573223114, 0.2831479012966156, -0.43824806809425354, -0.10934144258499146, -0.2944500744342804, 0.21282272040843964, -0.26529353857040405, 0.502940833568573, -0.09221841394901276, -0.11728893220424652, -0.3791995048522949, -0.40685784816741943, -0.34604185819625854, 0.24222245812416077, -0.2425491064786911, 0.11093690246343613, -0.13234849274158478, -0.3450953960418701, 0.04055032879114151, 0.0373903252184391, 0.18744468688964844, 0.25311416387557983, -0.22365544736385345, 0.22246718406677246, -0.021124206483364105, -0.020637787878513336, 0.12628072500228882, 0.05364377796649933, 0.1209004819393158, 0.003168269991874695, 0.00839628279209137, 0.05822613090276718, -0.1437627077102661, -0.2783736288547516, 0.10795795917510986, 0.04313323274254799, -0.07223936915397644, -0.09308367967605591, -0.13620060682296753, -0.34724682569503784, 0.07202143967151642, -0.16148580610752106, 0.1262127012014389, 0.11709868907928467, 0.22935792803764343, 0.00012838095426559448, -0.04416986182332039, -0.25502482056617737, -0.1353897899389267, 0.4048899710178375, -0.15708723664283752, -0.11001912504434586, 0.29826420545578003, 0.21033720672130585, -0.0321137011051178, -0.14376071095466614, 0.03265067934989929, -0.23035141825675964, -0.39982739090919495, 0.41888943314552307, -0.25039052963256836, 0.23872537910938263, -0.3252820074558258, 0.14076381921768188, 0.11980848014354706, -0.03479820489883423, 0.2385188490152359, -0.5812299847602844, -0.14366236329078674, -0.006109677255153656, -0.13867831230163574, 0.18045558035373688, -0.027074124664068222, -0.0641651451587677, 0.27514615654945374, -0.297642320394516, -0.3121727705001831, 0.14255039393901825, -0.29807189106941223, -0.24338680505752563, 0.40692126750946045, 0.03385017439723015, 0.3514268398284912, 0.033043939620256424, 0.22125078737735748, 0.05314793810248375, -0.023119669407606125, -0.2581775486469269, -0.07593583315610886, 0.0996251255273819, -0.13696125149726868, -0.04950959235429764, 0.24588242173194885, -0.2069413810968399, -0.28282228112220764, 0.12678954005241394, 0.15505926311016083, 0.12267311662435532, -0.000534743070602417, -0.22394047677516937, 0.11447428166866302, 0.19064752757549286, -0.33737629652023315, 0.1662784218788147, -0.3700554072856903, 0.09944610297679901, -0.07037487626075745, 0.1960228830575943, -0.06358294934034348, 0.08120113611221313, -0.30582308769226074, -0.2660922110080719, -0.0109473317861557, 0.14695903658866882, 0.2719488739967346, -0.293962299823761, -0.2045082300901413, 0.03142102062702179, 0.14343349635601044, 0.3744247853755951, -0.4239744246006012, -0.0489247590303421, 0.0730314627289772, 0.19796808063983917, -0.18499107658863068, -0.05712015554308891, -0.05927195027470589, 0.008233686909079552, -0.01647283509373665, 0.10569290816783905, 0.15477198362350464, -0.0033403337001800537, -0.20065726339817047, 0.010080840438604355, 0.6570014953613281, 0.1752970963716507, 0.027017604559659958, 0.3850589096546173, 0.023330505937337875, 0.12395374476909637, 0.2832891047000885, 0.04597078636288643, -0.022314943373203278, 0.4396222233772278, -0.05047760158777237, -0.13350677490234375, -0.17437335848808289, -0.011965718120336533, 0.004282839596271515, -0.3351183533668518, 0.0757925882935524, 0.28110471367836, -0.15129238367080688, 0.06446291506290436, 0.12188643217086792, 0.39002832770347595, -0.4427158534526825, 0.03423581272363663, -0.1804964542388916, 0.2151075005531311, -0.0027283132076263428, 0.1524379402399063, 0.019651707261800766, -0.0512801818549633, -0.46373650431632996, 0.29732730984687805, -0.11095291376113892, -0.17841650545597076, 0.3278421461582184, 0.198933407664299, -0.11349804699420929, -0.1596434861421585, -0.3788307309150696, 0.09236441552639008, 0.04582444205880165, -0.4186371862888336, 0.20453079044818878, 0.22811764478683472, -0.07697480916976929, 0.07674288749694824, 0.24348752200603485, 0.48692139983177185, 0.16802668571472168, 0.12206797301769257, -0.1336020678281784, -0.003633875399827957, -0.05512211471796036, -0.042339615523815155, 0.01780317910015583, 0.10739969462156296, -0.0388360358774662, 0.3513837158679962, 0.20571844279766083, -0.20512902736663818, 0.03995838388800621, 0.05114007741212845, -0.02896963804960251, -0.13435164093971252, 0.31389886140823364, -0.34552156925201416, -0.08757125586271286, -0.21718630194664001, -0.051328279078006744, -0.21426355838775635, 0.04582637920975685, -0.01853097602725029, 0.25949516892433167, 0.0478544682264328, -0.05492054298520088, 0.08849253505468369, 0.037776559591293335, 0.2976369261741638, 0.334120512008667, 0.12090834975242615, -0.26486900448799133, -0.3004694879055023, -0.6649763584136963, 0.0703992247581482, -0.1858360767364502, -0.08786186575889587, 0.1080959290266037, 0.1650424599647522, -0.285090833902359, 0.15549194812774658, 0.15975096821784973, 0.3603074550628662, -0.01456750649958849, 0.19252358376979828, -0.17312264442443848, -0.24589963257312775, 0.3004629611968994, -0.19984035193920135, -0.13919110596179962, -0.4236565828323364, 0.27761369943618774, -0.31556156277656555, 0.136434406042099, -0.2673951983451843, -0.18996843695640564, 0.0373908095061779, -0.14474737644195557, 0.6692699790000916, 0.07299855351448059, 0.3621262311935425, -0.11626963317394257, -0.5429478883743286, -0.39843931794166565, -0.025090200826525688, -0.0677858516573906, 0.2849220335483551, -0.04729289934039116, 0.5349884033203125, 0.11118557304143906, -0.051811281591653824, -0.2850215435028076, 0.35800427198410034, 0.07840124517679214, 0.019490733742713928, -0.29559457302093506, 0.14739340543746948, -0.18063753843307495, 0.24937093257904053, 0.12571315467357635, 0.1924648880958557, -0.053002625703811646, 0.1355539858341217, -0.32484710216522217, -0.505466639995575, 0.3653928339481354, -0.17215219140052795, -0.30389150977134705, 0.040740273892879486, 0.13478264212608337, 0.1327941119670868, -0.11509884148836136, -0.2983287274837494, 0.19246214628219604, 0.33382028341293335, -0.12027459591627121, -0.18412518501281738, 0.22958800196647644, -0.10242600739002228, -0.04618965461850166, 0.08792360126972198, 0.1955614537000656, 0.08660852164030075, -0.08720267564058304, 0.17787781357765198, -0.11233016103506088 ]
https://github.com/huggingface/datasets/issues/3345
Failed to download species_800 from Google Drive zip file
> Hi, > > the dataset is downloaded normally on my machine. Maybe the URL was down at the time of your download. Could you try again? I have tried that many times with both load_dataset() and a browser almost simultaneously. The browser always works for me while load_dataset() fails.
## Describe the bug One can manually download the zip file on Google Drive, but `load_dataset()` cannot. related: #3248 ## Steps to reproduce the bug ```shell > python Python 3.7.12 (default, Sep 5 2021, 08:34:29) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type "help", "copyright", "credits" or "license" for more information. ``` ```python >>> from datasets import load_dataset >>> s800 = load_dataset("species_800") ``` ## Expected results species_800 downloaded. ## Actual results ```shell Downloading: 5.68kB [00:00, 1.22MB/s] Downloading: 2.70kB [00:00, 691kB/s] Downloading and preparing dataset species800/species_800 (download: 17.36 MiB, generated: 3.53 MiB, post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976... 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/load.py", line 1632, in load_dataset use_auth_token=use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 608, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 675, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/Users/mike/.cache/huggingface/modules/datasets_modules/datasets/species_800/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976/species_800.py", line 104, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract return self.extract(self.download(url_or_urls)) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 197, in download download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in map_nested for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in <listcomp> for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 143, in _single_map_nested return function(data_struct) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 305, in cached_path use_auth_token=download_config.use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/ ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.14,0 1.15.0, 1.16.1 - Platform: macOS Catalina 10.15.7 - Python version: 3.7.12 - PyArrow version: 6.0.1
50
Failed to download species_800 from Google Drive zip file ## Describe the bug One can manually download the zip file on Google Drive, but `load_dataset()` cannot. related: #3248 ## Steps to reproduce the bug ```shell > python Python 3.7.12 (default, Sep 5 2021, 08:34:29) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type "help", "copyright", "credits" or "license" for more information. ``` ```python >>> from datasets import load_dataset >>> s800 = load_dataset("species_800") ``` ## Expected results species_800 downloaded. ## Actual results ```shell Downloading: 5.68kB [00:00, 1.22MB/s] Downloading: 2.70kB [00:00, 691kB/s] Downloading and preparing dataset species800/species_800 (download: 17.36 MiB, generated: 3.53 MiB, post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976... 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/load.py", line 1632, in load_dataset use_auth_token=use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 608, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 675, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/Users/mike/.cache/huggingface/modules/datasets_modules/datasets/species_800/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976/species_800.py", line 104, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract return self.extract(self.download(url_or_urls)) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 197, in download download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in map_nested for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in <listcomp> for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 143, in _single_map_nested return function(data_struct) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 305, in cached_path use_auth_token=download_config.use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/ ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.14,0 1.15.0, 1.16.1 - Platform: macOS Catalina 10.15.7 - Python version: 3.7.12 - PyArrow version: 6.0.1 > Hi, > > the dataset is downloaded normally on my machine. Maybe the URL was down at the time of your download. Could you try again? I have tried that many times with both load_dataset() and a browser almost simultaneously. The browser always works for me while load_dataset() fails.
[ -0.3141794800758362, -0.03847512602806091, -0.049231093376874924, 0.2020849883556366, 0.16466940939426422, 0.16171559691429138, 0.2258751094341278, 0.24758380651474, 0.1551794707775116, -0.010348305106163025, -0.10637681931257248, 0.21935942769050598, -0.01806880161166191, 0.24885903298854828, 0.2162836194038391, -0.09129737317562103, -0.11937201768159866, -0.0873609334230423, 0.15640202164649963, 0.04595359414815903, -0.3997567892074585, 0.3511318266391754, -0.14998511970043182, -0.1370420753955841, 0.10252426564693451, -0.08092720806598663, -0.01417650654911995, 0.4140370488166809, -0.12336415797472, -0.3596288859844208, 0.29466956853866577, -0.04769250378012657, 0.12575457990169525, 0.30427587032318115, -0.0001109520744648762, -0.014227043837308884, 0.514840841293335, 0.06604155898094177, -0.5604018568992615, -0.2934929132461548, 0.12272996455430984, -0.14251844584941864, -0.06460592895746231, -0.20446231961250305, 0.158846914768219, -0.15920792520046234, 0.10224151611328125, -0.3952910006046295, 0.3530469238758087, 0.30545732378959656, 0.2533213198184967, 0.14084511995315552, 0.38986021280288696, -0.16649407148361206, 0.40348535776138306, -0.0750303864479065, -0.045000508427619934, 0.6451207995414734, 0.08234427869319916, 0.27185171842575073, 0.042523715645074844, -0.02951677329838276, 0.08810705691576004, 0.0383991077542305, 0.0006943345069885254, 0.0740869790315628, -0.2062595784664154, -0.32979345321655273, 0.22241535782814026, -0.004559211432933807, 0.43952351808547974, -0.23895490169525146, -0.44700494408607483, -0.17387981712818146, 0.13145478069782257, -0.42257392406463623, 0.43083447217941284, 0.27051880955696106, -0.15498961508274078, 0.06675532460212708, -0.18667426705360413, 0.00411952193826437, -0.0480874627828598, 0.04200141876935959, -0.3033828139305115, 0.1795378178358078, -0.15980468690395355, 0.12867459654808044, -0.010846603661775589, 0.10462433099746704, 0.0993991270661354, -0.25711601972579956, -0.15618833899497986, 0.20321379601955414, -0.3752104341983795, 0.14640501141548157, 0.11489982903003693, 0.11493100225925446, 0.3292040228843689, 0.30755168199539185, -0.12921157479286194, -0.12390022724866867, -0.23722156882286072, 0.11148229986429214, 0.19885969161987305, 0.40071117877960205, -0.12916481494903564, 0.03362133353948593, 0.2132980227470398, 0.32562437653541565, 0.007220808416604996, -0.0009814240038394928, 0.07661017775535583, -0.23637643456459045, 0.22745727002620697, 0.13883349299430847, 0.4551577568054199, -0.07623159140348434, -0.4224098026752472, 0.1605558544397354, -0.42096176743507385, -0.04980635270476341, -0.1374264508485794, 0.10010449588298798, -0.11453481763601303, -0.000575922429561615, 0.1056688129901886, 0.21025872230529785, 0.054782070219516754, -0.20626863837242126, -0.20141667127609253, 0.13107489049434662, -0.09482993185520172, -0.07116524875164032, 0.22469986975193024, -0.3604337275028229, 0.2049073576927185, 0.055551350116729736, -0.03994852304458618, -0.13597342371940613, -0.06078792363405228, -0.1023944616317749, -0.34391704201698303, 0.42097795009613037, 0.27230897545814514, 0.20994514226913452, 0.056568145751953125, -0.09603371471166611, -0.0461222305893898, 0.007344961166381836, -0.2212390899658203, -0.010018326342105865, -0.16477607190608978, 0.21182841062545776, -0.2752348780632019, -0.08806869387626648, -0.3080989420413971, -0.07774515450000763, -0.11116715520620346, 0.07076224684715271, -0.025970228016376495, -0.05884270370006561, -0.28251218795776367, -0.47130531072616577, 0.157707080245018, 0.4734969735145569, -0.2767035663127899, 0.14046457409858704, -0.4503757357597351, -0.07272833585739136, 0.31891900300979614, 0.1745319664478302, -0.053507134318351746, 0.21427488327026367, -0.4785754084587097, 0.21979452669620514, 0.22824063897132874, -0.16285941004753113, -0.523995578289032, 0.29474157094955444, -0.3254166841506958, 0.3206424117088318, -0.07176927477121353, -0.06904862076044083, -0.003413519822061062, 0.14643041789531708, 0.14816325902938843, 0.4415031671524048, -0.04634544253349304, 0.02355956844985485, -0.21041856706142426, -0.3463623821735382, 0.08962292224168777, 0.35261210799217224, 0.040366239845752716, 0.1935516595840454, 0.39888235926628113, -0.4314281940460205, 0.2432655394077301, -0.053718652576208115, 0.036875419318675995, 0.3293353319168091, 0.2900211215019226, 0.07418257743120193, -0.0295130405575037, -0.1137085109949112, -0.8161113262176514, 0.3076699376106262, -0.16433671116828918, -0.06743120402097702, -0.38013148307800293, -0.05042395740747452, -0.6161766052246094, -0.00918408203870058, -0.07960695028305054, -0.09793205559253693, 0.11778919398784637, 0.23803643882274628, 0.19529640674591064, 0.2244137078523636, 0.022168893367052078, 0.46927598118782043, 0.07492371648550034, 0.2263450026512146, -0.2785494327545166, 0.1771833449602127, -0.08744162321090698, -0.2783636450767517, 0.2419012486934662, -0.19884774088859558, 0.12343189865350723, -0.1083587035536766, -0.23050963878631592, 0.389726847410202, -0.054617539048194885, 0.04814606159925461, -0.029987141489982605, -0.11386068165302277, 0.17269492149353027, -0.1660010665655136, 0.07723990082740784, 0.21728967130184174, 0.2041257917881012, 0.06002093106508255, -0.5396817326545715, 0.18601098656654358, 0.03721005469560623, -0.05871503800153732, -0.18546009063720703, 0.20068705081939697, 0.15459658205509186, -0.15717382729053497, 0.10694964975118637, 0.25046804547309875, 0.3380044102668762, 0.0964779406785965, 0.7787851691246033, -0.2652096152305603, -0.14625971019268036, 0.09753096848726273, 0.31513479351997375, -0.02791128121316433, 0.1542782336473465, 0.28268030285835266, -0.17244815826416016, -0.15117335319519043, 0.06813975423574448, 0.45472845435142517, 0.5494401454925537, 0.12516692280769348, 0.3631506860256195, 0.10611286014318466, -0.01000309269875288, -0.17540109157562256, 0.153765469789505, 0.037099216133356094, -0.0280966404825449, 0.08483763784170151, 0.26868489384651184, 0.0387534573674202, -0.2527611255645752, -0.03420411795377731, 0.09015163034200668, 0.12067841738462448, -0.3279278576374054, 0.22397427260875702, -0.08538804203271866, 0.09617514163255692, -0.014229749329388142, 0.30479586124420166, -0.2716314196586609, -0.30721762776374817, -0.326221227645874, 0.3114137649536133, 0.029222842305898666, -0.03984343260526657, 0.09803217649459839, 0.0405011922121048, 0.29463687539100647, -0.3845742344856262, -0.2616499960422516, 0.2500511407852173, -0.27869361639022827, 0.07650022208690643, 0.35210421681404114, -0.1339196413755417, 0.4593883156776428, 0.003271108493208885, 0.04861936718225479, -0.5828668475151062, -0.32857197523117065, 0.04453251510858536, -0.07695556432008743, 0.4148811995983124, 0.25034859776496887, 0.2806973457336426, -0.1553092896938324, 0.0032504908740520477, 0.2041027992963791, -0.10571231693029404, -0.22896550595760345, 0.016873791813850403, -0.02651892602443695, 0.11654672771692276, -0.2804706394672394, -0.2161668837070465, -0.16679300367832184, -0.2883910536766052, 0.44185805320739746, 0.27074944972991943, 0.08082506060600281, 0.2550256848335266, -0.0025095753371715546, 0.11059682071208954, 0.21184028685092926, -0.1537092924118042, -0.3089704215526581, -0.37579742074012756, 0.4339390695095062, -0.09786497801542282, -0.37701088190078735, 0.04555446282029152, -0.07351180166006088, 0.0028515346348285675, 0.3280910849571228, -0.43202686309814453, -0.0983474925160408, -0.37649980187416077, 0.5410794019699097, -0.30628296732902527, 0.19468055665493011, 0.03966066986322403, -0.06753700226545334, -0.07947327941656113, -0.023307541385293007, -0.08514975011348724, -0.007227592170238495, 0.19085955619812012, 0.3523198962211609, 0.1263813078403473, 0.23125138878822327, -0.0810246616601944, 0.11559339612722397, 0.19473817944526672, 0.14242203533649445, 0.4200141131877899, -0.09247036278247833, 0.28507184982299805, -0.1047578677535057, -0.053339891135692596, -0.09803629666566849, -0.10754266381263733, -0.16741938889026642, 0.24704647064208984, -0.018431365489959717, -0.1849411278963089, -0.08079288899898529, -0.1951984465122223, -0.46511968970298767, -0.20757226645946503, 0.05745074898004532, 0.05891608074307442, 0.16024476289749146, -0.013229409232735634, -0.054693013429641724, 0.03164470195770264, -0.1284647136926651, 0.0514666922390461, 0.25763455033302307, 0.1376238912343979, 0.1586131602525711, -0.1772049069404602, 0.14354124665260315, -0.41534850001335144, 0.3013404607772827, -0.2719990015029907, 0.1783401370048523, -0.09592360258102417, 0.20394200086593628, 0.115471251308918, -0.1845637857913971, 0.5941318869590759, -0.21955238282680511, 0.3889462947845459, 0.13755978643894196, 0.13972190022468567, 0.055389635264873505, -0.17870835959911346, -0.15911605954170227, 0.08995753526687622, 0.10183767974376678, 0.25809353590011597, -0.39645153284072876, 0.2316053807735443, 0.16645120084285736, 0.18306876718997955, -0.052635740488767624, -0.3247477412223816, -0.19701680541038513, -0.5626166462898254, -0.23900754749774933, 0.016565561294555664, 0.06599974632263184, 0.31513893604278564, -0.1389138549566269, 0.13141393661499023, -0.05495615303516388, -0.16735801100730896, 0.025736242532730103, -0.12383882701396942, 0.29145297408103943, 0.1203579306602478, 0.2208612859249115, 0.20795224606990814, -0.07369045913219452, -0.023693954572081566, 0.796827495098114, 0.11113108694553375, -0.34482190012931824, 0.10940386354923248, -0.06302992254495621, -0.09074831753969193, 0.20928290486335754, -0.32666802406311035, -0.20196527242660522, -0.00003032013773918152, 0.18767014145851135, -0.005378796719014645, 0.016150156036019325, 0.07875478267669678, -0.08042643964290619, -0.052568238228559494, -0.32582220435142517, 0.6423517465591431, 0.13308750092983246, -0.0788937509059906, 0.4572187066078186, -0.06283894181251526, -0.2809721827507019, 0.30282366275787354, -0.061418794095516205, 0.6744049787521362, -0.207463338971138, 0.0062652938067913055, 0.2989010512828827, -0.23289798200130463, 0.4780520498752594, -0.052113816142082214, 0.07528476417064667, -0.46109241247177124, -0.11918994784355164, 0.04643841087818146, -0.13677842915058136, 0.1565559357404709, 0.20563410222530365, -0.32858380675315857, 0.22944135963916779, -0.2635014057159424, 0.04112278297543526, 0.23866407573223114, 0.2831479012966156, -0.43824806809425354, -0.10934144258499146, -0.2944500744342804, 0.21282272040843964, -0.26529353857040405, 0.502940833568573, -0.09221841394901276, -0.11728893220424652, -0.3791995048522949, -0.40685784816741943, -0.34604185819625854, 0.24222245812416077, -0.2425491064786911, 0.11093690246343613, -0.13234849274158478, -0.3450953960418701, 0.04055032879114151, 0.0373903252184391, 0.18744468688964844, 0.25311416387557983, -0.22365544736385345, 0.22246718406677246, -0.021124206483364105, -0.020637787878513336, 0.12628072500228882, 0.05364377796649933, 0.1209004819393158, 0.003168269991874695, 0.00839628279209137, 0.05822613090276718, -0.1437627077102661, -0.2783736288547516, 0.10795795917510986, 0.04313323274254799, -0.07223936915397644, -0.09308367967605591, -0.13620060682296753, -0.34724682569503784, 0.07202143967151642, -0.16148580610752106, 0.1262127012014389, 0.11709868907928467, 0.22935792803764343, 0.00012838095426559448, -0.04416986182332039, -0.25502482056617737, -0.1353897899389267, 0.4048899710178375, -0.15708723664283752, -0.11001912504434586, 0.29826420545578003, 0.21033720672130585, -0.0321137011051178, -0.14376071095466614, 0.03265067934989929, -0.23035141825675964, -0.39982739090919495, 0.41888943314552307, -0.25039052963256836, 0.23872537910938263, -0.3252820074558258, 0.14076381921768188, 0.11980848014354706, -0.03479820489883423, 0.2385188490152359, -0.5812299847602844, -0.14366236329078674, -0.006109677255153656, -0.13867831230163574, 0.18045558035373688, -0.027074124664068222, -0.0641651451587677, 0.27514615654945374, -0.297642320394516, -0.3121727705001831, 0.14255039393901825, -0.29807189106941223, -0.24338680505752563, 0.40692126750946045, 0.03385017439723015, 0.3514268398284912, 0.033043939620256424, 0.22125078737735748, 0.05314793810248375, -0.023119669407606125, -0.2581775486469269, -0.07593583315610886, 0.0996251255273819, -0.13696125149726868, -0.04950959235429764, 0.24588242173194885, -0.2069413810968399, -0.28282228112220764, 0.12678954005241394, 0.15505926311016083, 0.12267311662435532, -0.000534743070602417, -0.22394047677516937, 0.11447428166866302, 0.19064752757549286, -0.33737629652023315, 0.1662784218788147, -0.3700554072856903, 0.09944610297679901, -0.07037487626075745, 0.1960228830575943, -0.06358294934034348, 0.08120113611221313, -0.30582308769226074, -0.2660922110080719, -0.0109473317861557, 0.14695903658866882, 0.2719488739967346, -0.293962299823761, -0.2045082300901413, 0.03142102062702179, 0.14343349635601044, 0.3744247853755951, -0.4239744246006012, -0.0489247590303421, 0.0730314627289772, 0.19796808063983917, -0.18499107658863068, -0.05712015554308891, -0.05927195027470589, 0.008233686909079552, -0.01647283509373665, 0.10569290816783905, 0.15477198362350464, -0.0033403337001800537, -0.20065726339817047, 0.010080840438604355, 0.6570014953613281, 0.1752970963716507, 0.027017604559659958, 0.3850589096546173, 0.023330505937337875, 0.12395374476909637, 0.2832891047000885, 0.04597078636288643, -0.022314943373203278, 0.4396222233772278, -0.05047760158777237, -0.13350677490234375, -0.17437335848808289, -0.011965718120336533, 0.004282839596271515, -0.3351183533668518, 0.0757925882935524, 0.28110471367836, -0.15129238367080688, 0.06446291506290436, 0.12188643217086792, 0.39002832770347595, -0.4427158534526825, 0.03423581272363663, -0.1804964542388916, 0.2151075005531311, -0.0027283132076263428, 0.1524379402399063, 0.019651707261800766, -0.0512801818549633, -0.46373650431632996, 0.29732730984687805, -0.11095291376113892, -0.17841650545597076, 0.3278421461582184, 0.198933407664299, -0.11349804699420929, -0.1596434861421585, -0.3788307309150696, 0.09236441552639008, 0.04582444205880165, -0.4186371862888336, 0.20453079044818878, 0.22811764478683472, -0.07697480916976929, 0.07674288749694824, 0.24348752200603485, 0.48692139983177185, 0.16802668571472168, 0.12206797301769257, -0.1336020678281784, -0.003633875399827957, -0.05512211471796036, -0.042339615523815155, 0.01780317910015583, 0.10739969462156296, -0.0388360358774662, 0.3513837158679962, 0.20571844279766083, -0.20512902736663818, 0.03995838388800621, 0.05114007741212845, -0.02896963804960251, -0.13435164093971252, 0.31389886140823364, -0.34552156925201416, -0.08757125586271286, -0.21718630194664001, -0.051328279078006744, -0.21426355838775635, 0.04582637920975685, -0.01853097602725029, 0.25949516892433167, 0.0478544682264328, -0.05492054298520088, 0.08849253505468369, 0.037776559591293335, 0.2976369261741638, 0.334120512008667, 0.12090834975242615, -0.26486900448799133, -0.3004694879055023, -0.6649763584136963, 0.0703992247581482, -0.1858360767364502, -0.08786186575889587, 0.1080959290266037, 0.1650424599647522, -0.285090833902359, 0.15549194812774658, 0.15975096821784973, 0.3603074550628662, -0.01456750649958849, 0.19252358376979828, -0.17312264442443848, -0.24589963257312775, 0.3004629611968994, -0.19984035193920135, -0.13919110596179962, -0.4236565828323364, 0.27761369943618774, -0.31556156277656555, 0.136434406042099, -0.2673951983451843, -0.18996843695640564, 0.0373908095061779, -0.14474737644195557, 0.6692699790000916, 0.07299855351448059, 0.3621262311935425, -0.11626963317394257, -0.5429478883743286, -0.39843931794166565, -0.025090200826525688, -0.0677858516573906, 0.2849220335483551, -0.04729289934039116, 0.5349884033203125, 0.11118557304143906, -0.051811281591653824, -0.2850215435028076, 0.35800427198410034, 0.07840124517679214, 0.019490733742713928, -0.29559457302093506, 0.14739340543746948, -0.18063753843307495, 0.24937093257904053, 0.12571315467357635, 0.1924648880958557, -0.053002625703811646, 0.1355539858341217, -0.32484710216522217, -0.505466639995575, 0.3653928339481354, -0.17215219140052795, -0.30389150977134705, 0.040740273892879486, 0.13478264212608337, 0.1327941119670868, -0.11509884148836136, -0.2983287274837494, 0.19246214628219604, 0.33382028341293335, -0.12027459591627121, -0.18412518501281738, 0.22958800196647644, -0.10242600739002228, -0.04618965461850166, 0.08792360126972198, 0.1955614537000656, 0.08660852164030075, -0.08720267564058304, 0.17787781357765198, -0.11233016103506088 ]
https://github.com/huggingface/datasets/issues/3345
Failed to download species_800 from Google Drive zip file
@mariosasko > the dataset is downloaded normally on my machine. Maybe the URL was down at the time of your download. Could you try again? I've tried yet again just a moment ago. This time I realize that, the step `(... post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976...` and the one after seem unstable. If I want to retry, I will have to delete it (and probably other cache lock files). It **_sometimes_** works. But I didn't try `download_mode="force_redownload"` yet. Anyway, I suppose this isn't really a pressing issue for the time being, so I'm going to close this. Thank you.
## Describe the bug One can manually download the zip file on Google Drive, but `load_dataset()` cannot. related: #3248 ## Steps to reproduce the bug ```shell > python Python 3.7.12 (default, Sep 5 2021, 08:34:29) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type "help", "copyright", "credits" or "license" for more information. ``` ```python >>> from datasets import load_dataset >>> s800 = load_dataset("species_800") ``` ## Expected results species_800 downloaded. ## Actual results ```shell Downloading: 5.68kB [00:00, 1.22MB/s] Downloading: 2.70kB [00:00, 691kB/s] Downloading and preparing dataset species800/species_800 (download: 17.36 MiB, generated: 3.53 MiB, post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976... 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/load.py", line 1632, in load_dataset use_auth_token=use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 608, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 675, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/Users/mike/.cache/huggingface/modules/datasets_modules/datasets/species_800/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976/species_800.py", line 104, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract return self.extract(self.download(url_or_urls)) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 197, in download download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in map_nested for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in <listcomp> for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 143, in _single_map_nested return function(data_struct) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 305, in cached_path use_auth_token=download_config.use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/ ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.14,0 1.15.0, 1.16.1 - Platform: macOS Catalina 10.15.7 - Python version: 3.7.12 - PyArrow version: 6.0.1
102
Failed to download species_800 from Google Drive zip file ## Describe the bug One can manually download the zip file on Google Drive, but `load_dataset()` cannot. related: #3248 ## Steps to reproduce the bug ```shell > python Python 3.7.12 (default, Sep 5 2021, 08:34:29) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type "help", "copyright", "credits" or "license" for more information. ``` ```python >>> from datasets import load_dataset >>> s800 = load_dataset("species_800") ``` ## Expected results species_800 downloaded. ## Actual results ```shell Downloading: 5.68kB [00:00, 1.22MB/s] Downloading: 2.70kB [00:00, 691kB/s] Downloading and preparing dataset species800/species_800 (download: 17.36 MiB, generated: 3.53 MiB, post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976... 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/load.py", line 1632, in load_dataset use_auth_token=use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 608, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 675, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/Users/mike/.cache/huggingface/modules/datasets_modules/datasets/species_800/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976/species_800.py", line 104, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract return self.extract(self.download(url_or_urls)) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 197, in download download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in map_nested for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 209, in <listcomp> for obj in utils.tqdm(iterable, disable=disable_tqdm) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 143, in _single_map_nested return function(data_struct) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 305, in cached_path use_auth_token=download_config.use_auth_token, File "/Users/mike/Library/Caches/pypoetry/virtualenvs/promptsource-hsdAcWsQ-py3.7/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/ ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.14,0 1.15.0, 1.16.1 - Platform: macOS Catalina 10.15.7 - Python version: 3.7.12 - PyArrow version: 6.0.1 @mariosasko > the dataset is downloaded normally on my machine. Maybe the URL was down at the time of your download. Could you try again? I've tried yet again just a moment ago. This time I realize that, the step `(... post-processed: Unknown size, total: 20.89 MiB) to /Users/mike/.cache/huggingface/datasets/species800/species_800/1.0.0/532167f0bb8fbc0d77d6d03c4fd642c8c55527b9c5f2b1da77f3d00b0e559976...` and the one after seem unstable. If I want to retry, I will have to delete it (and probably other cache lock files). It **_sometimes_** works. But I didn't try `download_mode="force_redownload"` yet. Anyway, I suppose this isn't really a pressing issue for the time being, so I'm going to close this. Thank you.
[ -0.3141794800758362, -0.03847512602806091, -0.049231093376874924, 0.2020849883556366, 0.16466940939426422, 0.16171559691429138, 0.2258751094341278, 0.24758380651474, 0.1551794707775116, -0.010348305106163025, -0.10637681931257248, 0.21935942769050598, -0.01806880161166191, 0.24885903298854828, 0.2162836194038391, -0.09129737317562103, -0.11937201768159866, -0.0873609334230423, 0.15640202164649963, 0.04595359414815903, -0.3997567892074585, 0.3511318266391754, -0.14998511970043182, -0.1370420753955841, 0.10252426564693451, -0.08092720806598663, -0.01417650654911995, 0.4140370488166809, -0.12336415797472, -0.3596288859844208, 0.29466956853866577, -0.04769250378012657, 0.12575457990169525, 0.30427587032318115, -0.0001109520744648762, -0.014227043837308884, 0.514840841293335, 0.06604155898094177, -0.5604018568992615, -0.2934929132461548, 0.12272996455430984, -0.14251844584941864, -0.06460592895746231, -0.20446231961250305, 0.158846914768219, -0.15920792520046234, 0.10224151611328125, -0.3952910006046295, 0.3530469238758087, 0.30545732378959656, 0.2533213198184967, 0.14084511995315552, 0.38986021280288696, -0.16649407148361206, 0.40348535776138306, -0.0750303864479065, -0.045000508427619934, 0.6451207995414734, 0.08234427869319916, 0.27185171842575073, 0.042523715645074844, -0.02951677329838276, 0.08810705691576004, 0.0383991077542305, 0.0006943345069885254, 0.0740869790315628, -0.2062595784664154, -0.32979345321655273, 0.22241535782814026, -0.004559211432933807, 0.43952351808547974, -0.23895490169525146, -0.44700494408607483, -0.17387981712818146, 0.13145478069782257, -0.42257392406463623, 0.43083447217941284, 0.27051880955696106, -0.15498961508274078, 0.06675532460212708, -0.18667426705360413, 0.00411952193826437, -0.0480874627828598, 0.04200141876935959, -0.3033828139305115, 0.1795378178358078, -0.15980468690395355, 0.12867459654808044, -0.010846603661775589, 0.10462433099746704, 0.0993991270661354, -0.25711601972579956, -0.15618833899497986, 0.20321379601955414, -0.3752104341983795, 0.14640501141548157, 0.11489982903003693, 0.11493100225925446, 0.3292040228843689, 0.30755168199539185, -0.12921157479286194, -0.12390022724866867, -0.23722156882286072, 0.11148229986429214, 0.19885969161987305, 0.40071117877960205, -0.12916481494903564, 0.03362133353948593, 0.2132980227470398, 0.32562437653541565, 0.007220808416604996, -0.0009814240038394928, 0.07661017775535583, -0.23637643456459045, 0.22745727002620697, 0.13883349299430847, 0.4551577568054199, -0.07623159140348434, -0.4224098026752472, 0.1605558544397354, -0.42096176743507385, -0.04980635270476341, -0.1374264508485794, 0.10010449588298798, -0.11453481763601303, -0.000575922429561615, 0.1056688129901886, 0.21025872230529785, 0.054782070219516754, -0.20626863837242126, -0.20141667127609253, 0.13107489049434662, -0.09482993185520172, -0.07116524875164032, 0.22469986975193024, -0.3604337275028229, 0.2049073576927185, 0.055551350116729736, -0.03994852304458618, -0.13597342371940613, -0.06078792363405228, -0.1023944616317749, -0.34391704201698303, 0.42097795009613037, 0.27230897545814514, 0.20994514226913452, 0.056568145751953125, -0.09603371471166611, -0.0461222305893898, 0.007344961166381836, -0.2212390899658203, -0.010018326342105865, -0.16477607190608978, 0.21182841062545776, -0.2752348780632019, -0.08806869387626648, -0.3080989420413971, -0.07774515450000763, -0.11116715520620346, 0.07076224684715271, -0.025970228016376495, -0.05884270370006561, -0.28251218795776367, -0.47130531072616577, 0.157707080245018, 0.4734969735145569, -0.2767035663127899, 0.14046457409858704, -0.4503757357597351, -0.07272833585739136, 0.31891900300979614, 0.1745319664478302, -0.053507134318351746, 0.21427488327026367, -0.4785754084587097, 0.21979452669620514, 0.22824063897132874, -0.16285941004753113, -0.523995578289032, 0.29474157094955444, -0.3254166841506958, 0.3206424117088318, -0.07176927477121353, -0.06904862076044083, -0.003413519822061062, 0.14643041789531708, 0.14816325902938843, 0.4415031671524048, -0.04634544253349304, 0.02355956844985485, -0.21041856706142426, -0.3463623821735382, 0.08962292224168777, 0.35261210799217224, 0.040366239845752716, 0.1935516595840454, 0.39888235926628113, -0.4314281940460205, 0.2432655394077301, -0.053718652576208115, 0.036875419318675995, 0.3293353319168091, 0.2900211215019226, 0.07418257743120193, -0.0295130405575037, -0.1137085109949112, -0.8161113262176514, 0.3076699376106262, -0.16433671116828918, -0.06743120402097702, -0.38013148307800293, -0.05042395740747452, -0.6161766052246094, -0.00918408203870058, -0.07960695028305054, -0.09793205559253693, 0.11778919398784637, 0.23803643882274628, 0.19529640674591064, 0.2244137078523636, 0.022168893367052078, 0.46927598118782043, 0.07492371648550034, 0.2263450026512146, -0.2785494327545166, 0.1771833449602127, -0.08744162321090698, -0.2783636450767517, 0.2419012486934662, -0.19884774088859558, 0.12343189865350723, -0.1083587035536766, -0.23050963878631592, 0.389726847410202, -0.054617539048194885, 0.04814606159925461, -0.029987141489982605, -0.11386068165302277, 0.17269492149353027, -0.1660010665655136, 0.07723990082740784, 0.21728967130184174, 0.2041257917881012, 0.06002093106508255, -0.5396817326545715, 0.18601098656654358, 0.03721005469560623, -0.05871503800153732, -0.18546009063720703, 0.20068705081939697, 0.15459658205509186, -0.15717382729053497, 0.10694964975118637, 0.25046804547309875, 0.3380044102668762, 0.0964779406785965, 0.7787851691246033, -0.2652096152305603, -0.14625971019268036, 0.09753096848726273, 0.31513479351997375, -0.02791128121316433, 0.1542782336473465, 0.28268030285835266, -0.17244815826416016, -0.15117335319519043, 0.06813975423574448, 0.45472845435142517, 0.5494401454925537, 0.12516692280769348, 0.3631506860256195, 0.10611286014318466, -0.01000309269875288, -0.17540109157562256, 0.153765469789505, 0.037099216133356094, -0.0280966404825449, 0.08483763784170151, 0.26868489384651184, 0.0387534573674202, -0.2527611255645752, -0.03420411795377731, 0.09015163034200668, 0.12067841738462448, -0.3279278576374054, 0.22397427260875702, -0.08538804203271866, 0.09617514163255692, -0.014229749329388142, 0.30479586124420166, -0.2716314196586609, -0.30721762776374817, -0.326221227645874, 0.3114137649536133, 0.029222842305898666, -0.03984343260526657, 0.09803217649459839, 0.0405011922121048, 0.29463687539100647, -0.3845742344856262, -0.2616499960422516, 0.2500511407852173, -0.27869361639022827, 0.07650022208690643, 0.35210421681404114, -0.1339196413755417, 0.4593883156776428, 0.003271108493208885, 0.04861936718225479, -0.5828668475151062, -0.32857197523117065, 0.04453251510858536, -0.07695556432008743, 0.4148811995983124, 0.25034859776496887, 0.2806973457336426, -0.1553092896938324, 0.0032504908740520477, 0.2041027992963791, -0.10571231693029404, -0.22896550595760345, 0.016873791813850403, -0.02651892602443695, 0.11654672771692276, -0.2804706394672394, -0.2161668837070465, -0.16679300367832184, -0.2883910536766052, 0.44185805320739746, 0.27074944972991943, 0.08082506060600281, 0.2550256848335266, -0.0025095753371715546, 0.11059682071208954, 0.21184028685092926, -0.1537092924118042, -0.3089704215526581, -0.37579742074012756, 0.4339390695095062, -0.09786497801542282, -0.37701088190078735, 0.04555446282029152, -0.07351180166006088, 0.0028515346348285675, 0.3280910849571228, -0.43202686309814453, -0.0983474925160408, -0.37649980187416077, 0.5410794019699097, -0.30628296732902527, 0.19468055665493011, 0.03966066986322403, -0.06753700226545334, -0.07947327941656113, -0.023307541385293007, -0.08514975011348724, -0.007227592170238495, 0.19085955619812012, 0.3523198962211609, 0.1263813078403473, 0.23125138878822327, -0.0810246616601944, 0.11559339612722397, 0.19473817944526672, 0.14242203533649445, 0.4200141131877899, -0.09247036278247833, 0.28507184982299805, -0.1047578677535057, -0.053339891135692596, -0.09803629666566849, -0.10754266381263733, -0.16741938889026642, 0.24704647064208984, -0.018431365489959717, -0.1849411278963089, -0.08079288899898529, -0.1951984465122223, -0.46511968970298767, -0.20757226645946503, 0.05745074898004532, 0.05891608074307442, 0.16024476289749146, -0.013229409232735634, -0.054693013429641724, 0.03164470195770264, -0.1284647136926651, 0.0514666922390461, 0.25763455033302307, 0.1376238912343979, 0.1586131602525711, -0.1772049069404602, 0.14354124665260315, -0.41534850001335144, 0.3013404607772827, -0.2719990015029907, 0.1783401370048523, -0.09592360258102417, 0.20394200086593628, 0.115471251308918, -0.1845637857913971, 0.5941318869590759, -0.21955238282680511, 0.3889462947845459, 0.13755978643894196, 0.13972190022468567, 0.055389635264873505, -0.17870835959911346, -0.15911605954170227, 0.08995753526687622, 0.10183767974376678, 0.25809353590011597, -0.39645153284072876, 0.2316053807735443, 0.16645120084285736, 0.18306876718997955, -0.052635740488767624, -0.3247477412223816, -0.19701680541038513, -0.5626166462898254, -0.23900754749774933, 0.016565561294555664, 0.06599974632263184, 0.31513893604278564, -0.1389138549566269, 0.13141393661499023, -0.05495615303516388, -0.16735801100730896, 0.025736242532730103, -0.12383882701396942, 0.29145297408103943, 0.1203579306602478, 0.2208612859249115, 0.20795224606990814, -0.07369045913219452, -0.023693954572081566, 0.796827495098114, 0.11113108694553375, -0.34482190012931824, 0.10940386354923248, -0.06302992254495621, -0.09074831753969193, 0.20928290486335754, -0.32666802406311035, -0.20196527242660522, -0.00003032013773918152, 0.18767014145851135, -0.005378796719014645, 0.016150156036019325, 0.07875478267669678, -0.08042643964290619, -0.052568238228559494, -0.32582220435142517, 0.6423517465591431, 0.13308750092983246, -0.0788937509059906, 0.4572187066078186, -0.06283894181251526, -0.2809721827507019, 0.30282366275787354, -0.061418794095516205, 0.6744049787521362, -0.207463338971138, 0.0062652938067913055, 0.2989010512828827, -0.23289798200130463, 0.4780520498752594, -0.052113816142082214, 0.07528476417064667, -0.46109241247177124, -0.11918994784355164, 0.04643841087818146, -0.13677842915058136, 0.1565559357404709, 0.20563410222530365, -0.32858380675315857, 0.22944135963916779, -0.2635014057159424, 0.04112278297543526, 0.23866407573223114, 0.2831479012966156, -0.43824806809425354, -0.10934144258499146, -0.2944500744342804, 0.21282272040843964, -0.26529353857040405, 0.502940833568573, -0.09221841394901276, -0.11728893220424652, -0.3791995048522949, -0.40685784816741943, -0.34604185819625854, 0.24222245812416077, -0.2425491064786911, 0.11093690246343613, -0.13234849274158478, -0.3450953960418701, 0.04055032879114151, 0.0373903252184391, 0.18744468688964844, 0.25311416387557983, -0.22365544736385345, 0.22246718406677246, -0.021124206483364105, -0.020637787878513336, 0.12628072500228882, 0.05364377796649933, 0.1209004819393158, 0.003168269991874695, 0.00839628279209137, 0.05822613090276718, -0.1437627077102661, -0.2783736288547516, 0.10795795917510986, 0.04313323274254799, -0.07223936915397644, -0.09308367967605591, -0.13620060682296753, -0.34724682569503784, 0.07202143967151642, -0.16148580610752106, 0.1262127012014389, 0.11709868907928467, 0.22935792803764343, 0.00012838095426559448, -0.04416986182332039, -0.25502482056617737, -0.1353897899389267, 0.4048899710178375, -0.15708723664283752, -0.11001912504434586, 0.29826420545578003, 0.21033720672130585, -0.0321137011051178, -0.14376071095466614, 0.03265067934989929, -0.23035141825675964, -0.39982739090919495, 0.41888943314552307, -0.25039052963256836, 0.23872537910938263, -0.3252820074558258, 0.14076381921768188, 0.11980848014354706, -0.03479820489883423, 0.2385188490152359, -0.5812299847602844, -0.14366236329078674, -0.006109677255153656, -0.13867831230163574, 0.18045558035373688, -0.027074124664068222, -0.0641651451587677, 0.27514615654945374, -0.297642320394516, -0.3121727705001831, 0.14255039393901825, -0.29807189106941223, -0.24338680505752563, 0.40692126750946045, 0.03385017439723015, 0.3514268398284912, 0.033043939620256424, 0.22125078737735748, 0.05314793810248375, -0.023119669407606125, -0.2581775486469269, -0.07593583315610886, 0.0996251255273819, -0.13696125149726868, -0.04950959235429764, 0.24588242173194885, -0.2069413810968399, -0.28282228112220764, 0.12678954005241394, 0.15505926311016083, 0.12267311662435532, -0.000534743070602417, -0.22394047677516937, 0.11447428166866302, 0.19064752757549286, -0.33737629652023315, 0.1662784218788147, -0.3700554072856903, 0.09944610297679901, -0.07037487626075745, 0.1960228830575943, -0.06358294934034348, 0.08120113611221313, -0.30582308769226074, -0.2660922110080719, -0.0109473317861557, 0.14695903658866882, 0.2719488739967346, -0.293962299823761, -0.2045082300901413, 0.03142102062702179, 0.14343349635601044, 0.3744247853755951, -0.4239744246006012, -0.0489247590303421, 0.0730314627289772, 0.19796808063983917, -0.18499107658863068, -0.05712015554308891, -0.05927195027470589, 0.008233686909079552, -0.01647283509373665, 0.10569290816783905, 0.15477198362350464, -0.0033403337001800537, -0.20065726339817047, 0.010080840438604355, 0.6570014953613281, 0.1752970963716507, 0.027017604559659958, 0.3850589096546173, 0.023330505937337875, 0.12395374476909637, 0.2832891047000885, 0.04597078636288643, -0.022314943373203278, 0.4396222233772278, -0.05047760158777237, -0.13350677490234375, -0.17437335848808289, -0.011965718120336533, 0.004282839596271515, -0.3351183533668518, 0.0757925882935524, 0.28110471367836, -0.15129238367080688, 0.06446291506290436, 0.12188643217086792, 0.39002832770347595, -0.4427158534526825, 0.03423581272363663, -0.1804964542388916, 0.2151075005531311, -0.0027283132076263428, 0.1524379402399063, 0.019651707261800766, -0.0512801818549633, -0.46373650431632996, 0.29732730984687805, -0.11095291376113892, -0.17841650545597076, 0.3278421461582184, 0.198933407664299, -0.11349804699420929, -0.1596434861421585, -0.3788307309150696, 0.09236441552639008, 0.04582444205880165, -0.4186371862888336, 0.20453079044818878, 0.22811764478683472, -0.07697480916976929, 0.07674288749694824, 0.24348752200603485, 0.48692139983177185, 0.16802668571472168, 0.12206797301769257, -0.1336020678281784, -0.003633875399827957, -0.05512211471796036, -0.042339615523815155, 0.01780317910015583, 0.10739969462156296, -0.0388360358774662, 0.3513837158679962, 0.20571844279766083, -0.20512902736663818, 0.03995838388800621, 0.05114007741212845, -0.02896963804960251, -0.13435164093971252, 0.31389886140823364, -0.34552156925201416, -0.08757125586271286, -0.21718630194664001, -0.051328279078006744, -0.21426355838775635, 0.04582637920975685, -0.01853097602725029, 0.25949516892433167, 0.0478544682264328, -0.05492054298520088, 0.08849253505468369, 0.037776559591293335, 0.2976369261741638, 0.334120512008667, 0.12090834975242615, -0.26486900448799133, -0.3004694879055023, -0.6649763584136963, 0.0703992247581482, -0.1858360767364502, -0.08786186575889587, 0.1080959290266037, 0.1650424599647522, -0.285090833902359, 0.15549194812774658, 0.15975096821784973, 0.3603074550628662, -0.01456750649958849, 0.19252358376979828, -0.17312264442443848, -0.24589963257312775, 0.3004629611968994, -0.19984035193920135, -0.13919110596179962, -0.4236565828323364, 0.27761369943618774, -0.31556156277656555, 0.136434406042099, -0.2673951983451843, -0.18996843695640564, 0.0373908095061779, -0.14474737644195557, 0.6692699790000916, 0.07299855351448059, 0.3621262311935425, -0.11626963317394257, -0.5429478883743286, -0.39843931794166565, -0.025090200826525688, -0.0677858516573906, 0.2849220335483551, -0.04729289934039116, 0.5349884033203125, 0.11118557304143906, -0.051811281591653824, -0.2850215435028076, 0.35800427198410034, 0.07840124517679214, 0.019490733742713928, -0.29559457302093506, 0.14739340543746948, -0.18063753843307495, 0.24937093257904053, 0.12571315467357635, 0.1924648880958557, -0.053002625703811646, 0.1355539858341217, -0.32484710216522217, -0.505466639995575, 0.3653928339481354, -0.17215219140052795, -0.30389150977134705, 0.040740273892879486, 0.13478264212608337, 0.1327941119670868, -0.11509884148836136, -0.2983287274837494, 0.19246214628219604, 0.33382028341293335, -0.12027459591627121, -0.18412518501281738, 0.22958800196647644, -0.10242600739002228, -0.04618965461850166, 0.08792360126972198, 0.1955614537000656, 0.08660852164030075, -0.08720267564058304, 0.17787781357765198, -0.11233016103506088 ]
https://github.com/huggingface/datasets/issues/3341
Mirror the canonical datasets to the Hugging Face Hub
I created a GitHub project to keep track of what needs to be done: https://github.com/huggingface/datasets/projects/3 I also store my code in a (private for now) repository at https://github.com/huggingface/mirror_canonical_datasets_on_hub
- [ ] create a repo on https://hf.co/datasets for every canonical dataset - [ ] on every commit related to a dataset, update the hf.co repo See https://github.com/huggingface/moon-landing/pull/1562 @SBrandeis: I let you edit this description if needed to precise the intent.
28
Mirror the canonical datasets to the Hugging Face Hub - [ ] create a repo on https://hf.co/datasets for every canonical dataset - [ ] on every commit related to a dataset, update the hf.co repo See https://github.com/huggingface/moon-landing/pull/1562 @SBrandeis: I let you edit this description if needed to precise the intent. I created a GitHub project to keep track of what needs to be done: https://github.com/huggingface/datasets/projects/3 I also store my code in a (private for now) repository at https://github.com/huggingface/mirror_canonical_datasets_on_hub
[ -0.1399022340774536, -0.22822242975234985, -0.044737983494997025, -0.0688018649816513, -0.09520572423934937, -0.03153984621167183, 0.20229887962341309, 0.36115291714668274, 0.25048139691352844, 0.2474524974822998, -0.2225712239742279, -0.04667430371046066, -0.09906568378210068, 0.46456193923950195, 0.16022884845733643, 0.11488690972328186, 0.19485604763031006, 0.14924444258213043, -0.3303125500679016, -0.14019818603992462, -0.1915597915649414, 0.054846204817295074, 0.2164633423089981, -0.19706444442272186, -0.18810763955116272, 0.060379013419151306, -0.1895810216665268, 0.11431988328695297, 0.0295005701482296, -0.19506438076496124, 0.14453160762786865, 0.5509656071662903, -0.04025891795754433, 0.4087876081466675, -0.0001033234439091757, -0.13464337587356567, -0.0946488231420517, 0.036132678389549255, -0.21000200510025024, 0.2130618691444397, 0.019219256937503815, 0.014911755919456482, -0.08868368715047836, -0.11565554141998291, -0.3502190113067627, 0.09980766475200653, 0.08494316786527634, -0.007792077958583832, 0.6126038432121277, -0.11015104502439499, 0.2756318151950836, 0.4718472361564636, -0.011670876294374466, -0.211952343583107, -0.04397506266832352, 0.4008791446685791, -0.02028684876859188, 0.3190154433250427, 0.06434868276119232, -0.0014486238360404968, -0.20378097891807556, 0.4754466414451599, 0.15777842700481415, -0.0874234288930893, 0.3538530468940735, -0.023765407502651215, -0.03975693881511688, -0.1200765073299408, -0.056473925709724426, 0.03581228107213974, -0.06372935324907303, -0.44787439703941345, -0.3752833902835846, -0.2629747986793518, -0.08316399157047272, -0.16946165263652802, -0.15914762020111084, 0.03793580085039139, 0.05869542434811592, -0.024418432265520096, -0.26983946561813354, -0.4513086974620819, -0.07668890058994293, -0.06905832886695862, 0.034773893654346466, 0.057126205414533615, -0.0905396044254303, -0.10935401171445847, 0.11550388485193253, -0.049615561962127686, -0.2794247567653656, -0.05237255245447159, 0.11699257791042328, -0.05955027416348457, -0.0034451819956302643, -0.33422669768333435, -0.07957526296377182, 0.1460086852312088, 0.46413737535476685, 0.2129017412662506, -0.12466093897819519, 0.1348952353000641, -0.1669304072856903, 0.13906586170196533, 0.05109793692827225, -0.02082090452313423, -0.06528087705373764, -0.1452501118183136, 0.40585857629776, 0.2648104727268219, -0.044907499104738235, 0.16539135575294495, 0.017110899090766907, 0.19169925153255463, -0.28103432059288025, -0.18499824404716492, 0.13382337987422943, -0.30725541710853577, 0.0896308496594429, 0.010979637503623962, 0.0926092341542244, 0.06860357522964478, -0.10827510058879852, 0.26004326343536377, 0.026818472892045975, -0.016263503581285477, 0.07096107304096222, 0.008589440956711769, -0.13886724412441254, -0.1898215115070343, -0.3074090778827667, -0.0752347856760025, -0.011704254895448685, 0.4674012064933777, 0.113127201795578, -0.3167945146560669, 0.2366051971912384, 0.013252449221909046, 0.5471705794334412, 0.01960727572441101, -0.11537448316812515, 0.2685263752937317, -0.14796441793441772, 0.05161946266889572, -0.11250525712966919, -0.07267682999372482, 0.09557070583105087, -0.02538841962814331, -0.32461827993392944, -0.39279571175575256, 0.07815677672624588, -0.218480184674263, -0.004774829372763634, 0.25948843359947205, -0.3289782404899597, -0.052165739238262177, -0.22988000512123108, 0.1729380041360855, -0.20205682516098022, 0.22690263390541077, 0.07890867441892624, 0.24118106067180634, 0.10344198346138, -0.0977744609117508, 0.37124478816986084, 0.7181558609008789, 0.22408920526504517, -0.2962019443511963, 0.3089909255504608, 0.019189897924661636, -0.1833183765411377, 0.2745363414287567, -0.11243590712547302, -0.12903857231140137, -0.2643851935863495, -0.10952579975128174, -0.06858459860086441, -0.21038936078548431, -0.16876982152462006, -0.05361490324139595, -0.29342538118362427, 0.037859946489334106, 0.06059630587697029, 0.14424675703048706, 0.0733657106757164, -0.2597306966781616, -0.13649076223373413, 0.19405904412269592, -0.028655869886279106, 0.07277955114841461, -0.2650987505912781, -0.46950963139533997, -0.2597593665122986, 0.33468395471572876, 0.23017947375774384, 0.10908271372318268, 0.14317333698272705, 0.18760932981967926, 0.16677634418010712, -0.12215346097946167, 0.24669119715690613, 0.15885642170906067, 0.4736778140068054, 0.17018315196037292, -0.0724652037024498, -0.1470927894115448, -0.21381348371505737, 0.024501316249370575, -0.11684621870517731, 0.0989035964012146, 0.15247486531734467, -0.6598367094993591, -0.20475730299949646, -0.048435136675834656, -0.08285456895828247, -0.20824748277664185, 0.22337764501571655, 0.305012047290802, 0.19699735939502716, 0.006314270198345184, -0.32433632016181946, 0.438178688287735, -0.17233887314796448, 0.2119593620300293, -0.33418741822242737, 0.47067591547966003, -0.09640907496213913, -0.06341112405061722, 0.2946990430355072, 0.31159937381744385, 0.02647249773144722, -0.34618693590164185, 0.1556394100189209, 0.2419731318950653, -0.3025355935096741, 0.30673927068710327, 0.512162446975708, 0.3694115877151489, 0.23302508890628815, -0.2927228808403015, 0.11601687967777252, 0.09456580877304077, -0.22200901806354523, 0.08292510360479355, -0.19823265075683594, 0.5514416098594666, -0.046655599027872086, -0.04927057772874832, -0.039245933294296265, -0.05964893102645874, -0.025929857045412064, -0.09395022690296173, -0.16443891823291779, -0.3177981376647949, 0.031895749270915985, -0.13967697322368622, 0.2996930480003357, 0.08814572542905807, -0.4091958999633789, 0.26282644271850586, 0.3407307267189026, 0.07237733900547028, 0.0364973247051239, 0.07204881310462952, -0.11747535318136215, 0.03016170859336853, 0.18837794661521912, -0.14771531522274017, -0.0670417994260788, 0.31841301918029785, -0.01225140318274498, 0.3243699371814728, 0.03943736106157303, -0.07906341552734375, -0.06524138897657394, -0.13899780809879303, -0.08820243924856186, -0.036708734929561615, 0.0709698274731636, 0.02031652070581913, -0.35351601243019104, -0.052728861570358276, -0.2075941413640976, -0.09959346801042557, -0.12652088701725006, -0.10903386771678925, -0.052952103316783905, -0.2740834653377533, -0.4831582307815552, -0.045183368027210236, -0.42937421798706055, -0.057563625276088715, 0.22583624720573425, 0.18945404887199402, -0.053236283361911774, 0.2586157023906708, 0.0437617264688015, 0.4665674865245819, -0.15060169994831085, -0.06261937320232391, -0.25278472900390625, -0.030051935464143753, 0.06474391371011734, 0.14861837029457092, 0.008753432892262936, -0.09626860171556473, 0.5035107731819153, -0.14995670318603516, 0.10344306379556656, -0.46433088183403015, -0.4791470766067505, 0.02413947694003582, -0.1156020313501358, -0.2302287369966507, 0.08037374168634415, -0.0009889677166938782, -0.11440041661262512, -0.10724181681871414, -0.001978284912183881, -0.31914034485816956, -0.08843964338302612, -0.25724273920059204, -0.10168223083019257, 0.014852662570774555, -0.09706482291221619, 0.013296172022819519, -0.09928964078426361, -0.5056049227714539, 0.30853986740112305, 0.03196834400296211, 0.12805397808551788, -0.07793433964252472, -0.07019507884979248, 0.11732679605484009, -0.27017319202423096, -0.19168002903461456, -0.18326568603515625, -0.21781644225120544, 0.04068954288959503, -0.3897847533226013, -0.13441045582294464, 0.0628090649843216, -0.07789401710033417, 0.07693766802549362, -0.06393729895353317, -0.5157503485679626, -0.713597297668457, -0.00890771858394146, 0.32374170422554016, 0.12547016143798828, 0.20778481662273407, 0.19295844435691833, 0.0059289475902915, -0.1847057342529297, -0.004450056701898575, -0.2790125012397766, 0.21382203698158264, 0.1777518093585968, -0.09299366921186447, 0.04608708620071411, -0.07086078077554703, -0.06541962921619415, 0.45605379343032837, 0.6146109700202942, -0.09618756175041199, 0.24417097866535187, 0.11874765902757645, 0.4676627814769745, -0.051768384873867035, -0.054523564875125885, 0.133554145693779, 0.15787863731384277, 0.10028491914272308, 0.5140283107757568, 0.12565605342388153, 0.3262004852294922, -0.12204773724079132, -0.2664564847946167, -0.16669318079948425, -0.4211672246456146, -0.23979128897190094, -0.05234627425670624, 0.24305805563926697, -0.17515262961387634, -0.19723790884017944, 0.15498550236225128, 0.07527733594179153, 0.4027353525161743, 0.32178324460983276, 0.1350095123052597, 0.11030938476324081, -0.22798921167850494, 0.017897367477416992, -0.34342464804649353, 0.3060063123703003, -0.18342462182044983, -0.05885159224271774, -0.12412257492542267, -0.0347670279443264, -0.0052299052476882935, -0.16132470965385437, 0.5076605677604675, -0.02655988372862339, 0.09597067534923553, -0.34053510427474976, -0.43073391914367676, -0.24588094651699066, 0.20216235518455505, -0.006541259586811066, -0.099092498421669, -0.008122000843286514, 0.6480220556259155, -0.48972368240356445, -0.3599333167076111, 0.2727828025817871, 0.08895890414714813, -0.1265108287334442, 0.13305546343326569, 0.011178944259881973, -0.3035038113594055, -0.2570502758026123, 0.15336452424526215, -0.20303380489349365, -0.0739755928516388, 0.0921834409236908, 0.003371216356754303, -0.14022108912467957, -0.14610067009925842, 0.12828321754932404, 0.12494421005249023, 0.12265711277723312, 0.2564352750778198, 0.13915306329727173, 0.307839035987854, 0.05116240307688713, 0.17188869416713715, 0.6361912488937378, -0.11339801549911499, -0.31523433327674866, -0.2484557032585144, 0.17179399728775024, 0.06902223825454712, 0.5813093185424805, 0.26671284437179565, 0.35310807824134827, 0.20002707839012146, 0.360862135887146, -0.29833897948265076, 0.10953642427921295, -0.14855991303920746, 0.04870947450399399, -0.20454521477222443, -0.1193867027759552, 0.19451433420181274, -0.09370489418506622, -0.08340498059988022, 0.039901476353406906, 0.5038108229637146, -0.11430492997169495, 0.21406318247318268, 0.23801350593566895, 0.989027738571167, -0.030203990638256073, 0.21631021797657013, 0.055028483271598816, -0.31305068731307983, 0.35503676533699036, -0.13326919078826904, -0.1088201254606247, -0.37374866008758545, -0.05020003765821457, 0.03453119844198227, 0.10076728463172913, 0.003382321447134018, -0.19410549104213715, -0.24232257902622223, 0.17590783536434174, 0.23809431493282318, 0.41920626163482666, -0.16417260468006134, 0.20049786567687988, -0.1440516710281372, -0.352083683013916, -0.3815656304359436, 0.27566298842430115, -0.0986887663602829, 0.3733544945716858, -0.0955948606133461, -0.2765478491783142, 0.10263599455356598, -0.01910354197025299, 0.06031025946140289, -0.0014140047132968903, -0.10692504048347473, -0.19377106428146362, 0.10986635088920593, 0.016673095524311066, -0.09277696907520294, -0.06004300341010094, 0.6999337673187256, 0.17392794787883759, -0.19555483758449554, -0.05728153511881828, -0.15426257252693176, -0.03897017613053322, -0.2810969650745392, 0.006360138766467571, 0.21978922188282013, -0.07183229923248291, -0.1835569143295288, 0.06379103660583496, 0.2955995500087738, -0.19830834865570068, -0.2933473587036133, -0.11588852107524872, -0.2789236903190613, 0.03356439992785454, 0.46876052021980286, 0.25394123792648315, -0.08225050568580627, -0.17905329167842865, 0.2076084315776825, -0.06866958737373352, -0.17852196097373962, 0.009158626198768616, 0.26215460896492004, -0.03673984482884407, -0.22094573080539703, 0.2614949941635132, -0.08207204937934875, -0.06866944581270218, 0.02230016700923443, 0.021226827055215836, 0.011459864675998688, -0.32495471835136414, -0.19746342301368713, 0.340291291475296, -0.4243675768375397, 0.06901759654283524, -0.13966913521289825, -0.21569207310676575, 0.14393499493598938, 0.22010166943073273, 0.4490898847579956, -0.04588727653026581, -0.08375084400177002, -0.1464509665966034, -0.3876766562461853, 0.3465754985809326, 0.031151458621025085, 0.31401926279067993, 0.2257671058177948, 0.16588230431079865, -0.16492897272109985, 0.2999025881290436, -0.4936049282550812, 0.04595775157213211, -0.1741527020931244, -0.029767971485853195, 0.1666032075881958, -0.2228393256664276, 0.2574191093444824, 0.02474185824394226, 0.1748766154050827, 0.1358650028705597, -0.5806106925010681, -0.25895410776138306, -0.26915299892425537, 0.07535725086927414, -0.08923184126615524, 0.0785391554236412, -0.006691438145935535, 0.20520509779453278, 0.04451330751180649, -0.25601455569267273, 0.4494892954826355, -0.0030643977224826813, -0.049783170223236084, 0.05229365453124046, 0.19329124689102173, -0.033112362027168274, -0.04900899901986122, -0.05429975688457489, 0.39314985275268555, 0.2224268764257431, -0.004841165151447058, -0.014478057622909546, -0.3160015344619751, -0.14775344729423523, 0.169309601187706, 0.37205567955970764, 0.4015280604362488, 0.01776912622153759, 0.1417635977268219, 0.07246101647615433, -0.14115409553050995, 0.10711964964866638, 0.6487592458724976, -0.047855742275714874, -0.046452030539512634, -0.04140757769346237, 0.2387630045413971, 0.3007480204105377, -0.23110026121139526, -0.13725519180297852, 0.3255465626716614, -0.1950749009847641, 0.24209386110305786, 0.5243369936943054, 0.5401996970176697, 0.09791557490825653, 0.11791761219501495, 0.11396493762731552, 0.49565589427948, -0.01575860008597374, 0.09017281234264374, 0.09076432883739471, -0.0018356740474700928, -0.06318134069442749, 0.07373297214508057, 0.4364314377307892, 0.33322271704673767, -0.06667088717222214, -0.21684622764587402, 0.3986557424068451, -0.21883273124694824, 0.06790190935134888, 0.43450891971588135, 0.044335391372442245, 0.20666344463825226, 0.16487564146518707, 0.3531222343444824, 0.09216272085905075, -0.11742003262042999, 0.3947369158267975, -0.1519472450017929, -0.47854381799697876, -0.08523652702569962, 0.3324005901813507, 0.13440513610839844, 0.1449960619211197, 0.016164418309926987, -0.036140233278274536, -0.33768823742866516, 0.15142986178398132, 0.16556812822818756, -0.5153266191482544, 0.1904328465461731, 0.08663000911474228, 0.10305555909872055, -0.33960825204849243, 0.074164018034935, 0.13037922978401184, 0.289002001285553, 0.03227660432457924, 0.10617738217115402, 0.060287002474069595, -0.12441238760948181, 0.1939326673746109, 0.3119545876979828, 0.07163700461387634, -0.1497935801744461, 0.06195816770195961, 0.4056938886642456, 0.09378175437450409, 0.012608019635081291, -0.13080832362174988, -0.2619306445121765, -0.2184399664402008, -0.2820010781288147, 0.17798124253749847, 0.21024352312088013, -0.28541842103004456, -0.10707089304924011, -0.287210077047348, 0.014618784189224243, -0.17563730478286743, 0.28393682837486267, -0.03566668927669525, -0.03737834841012955, 0.03451630473136902, -0.05015892535448074, -0.4302806258201599, -0.13014426827430725, 0.0805729329586029, -0.10320190340280533, 0.025395836681127548, 0.037390436977148056, 0.11746931076049805, 0.03111421689391136, 0.38755759596824646, 0.16867198050022125, 0.10121747851371765, 0.054915834218263626, -0.3878117799758911, -0.38437849283218384, 0.23607106506824493, 0.14009417593479156, -0.07762926071882248, 0.04264171048998833, -0.06146864593029022, -0.026154734194278717, -0.05248648673295975, -0.044642508029937744, -0.2529153525829315, 0.1379033476114273, -0.09744758903980255, -0.17666371166706085, 0.149336576461792, -0.05923904478549957, -0.03427713364362717, 0.29134172201156616, -0.09063011407852173, 0.11116008460521698, 0.05553017184138298, 0.06181618571281433, 0.17874032258987427, 0.3020837903022766, -0.005187377333641052, -0.5349018573760986, 0.36804988980293274, -0.03221255540847778, -0.04501353204250336, -0.25574976205825806, -0.3081432580947876, -0.04914170876145363, -0.2747644782066345, -0.478777676820755, 0.12907792627811432, -0.28051280975341797, 0.3825722336769104, -0.02565242350101471, -0.5653015375137329, -0.20412425696849823, 0.2111651748418808, 0.31303006410598755, -0.13379983603954315, 0.1981339156627655, 0.2955259680747986, -0.1816839575767517, -0.0765218585729599, 0.29112523794174194, 0.43574774265289307, 0.03607717901468277, -0.0023695752024650574, -0.24443867802619934, -0.16349828243255615, 0.529197096824646, -0.15456373989582062, -0.08695657551288605, -0.05510725453495979, 0.3777819573879242, 0.15816935896873474, -0.4270441234111786, -0.5805012583732605, 0.1676480770111084, 0.08190547674894333, 0.09625212848186493, -0.10662302374839783, 0.4081890285015106, -0.15862827003002167, -0.1798069328069687, -0.0828201174736023, 0.02404659613966942, 0.036721549928188324, -0.20511697232723236, 0.07301957905292511, -0.22605326771736145 ]
https://github.com/huggingface/datasets/issues/3341
Mirror the canonical datasets to the Hugging Face Hub
I understand that the datasets are mirrored on the Hub now, right? Might I close @lhoestq @SBrandeis?
- [ ] create a repo on https://hf.co/datasets for every canonical dataset - [ ] on every commit related to a dataset, update the hf.co repo See https://github.com/huggingface/moon-landing/pull/1562 @SBrandeis: I let you edit this description if needed to precise the intent.
17
Mirror the canonical datasets to the Hugging Face Hub - [ ] create a repo on https://hf.co/datasets for every canonical dataset - [ ] on every commit related to a dataset, update the hf.co repo See https://github.com/huggingface/moon-landing/pull/1562 @SBrandeis: I let you edit this description if needed to precise the intent. I understand that the datasets are mirrored on the Hub now, right? Might I close @lhoestq @SBrandeis?
[ -0.021821295842528343, -0.29268190264701843, -0.027567455545067787, -0.18178051710128784, -0.1919672042131424, 0.005773201584815979, 0.21626637876033783, 0.2935413718223572, 0.26865944266319275, 0.19370503723621368, -0.31670907139778137, -0.14503903687000275, 0.004587809555232525, 0.37578660249710083, 0.05504542961716652, 0.12982815504074097, 0.1976606696844101, 0.18987184762954712, -0.2652084231376648, -0.2824347913265228, -0.2384762316942215, 0.012370407581329346, 0.17303557693958282, -0.15195663273334503, -0.09382860362529755, 0.012293832376599312, -0.13561296463012695, 0.21387702226638794, -0.05512112379074097, -0.1670193374156952, 0.1510973572731018, 0.6337313055992126, -0.07265865802764893, 0.34633055329322815, -0.00010530988220125437, -0.09739521890878677, 0.01441900059580803, 0.09480059891939163, -0.24041122198104858, 0.3264094591140747, 0.0050096213817596436, 0.05001634359359741, -0.06459981203079224, -0.13217586278915405, -0.25581493973731995, 0.10502423346042633, 0.15186795592308044, 0.09059581160545349, 0.5624606013298035, -0.1270117163658142, 0.25436052680015564, 0.4386521577835083, 0.029965396970510483, -0.3103618025779724, -0.04142855852842331, 0.42381203174591064, -0.026131518185138702, 0.357643723487854, 0.04757426679134369, 0.09776082634925842, -0.13719645142555237, 0.42853236198425293, 0.0065377335995435715, -0.03605040907859802, 0.2960016429424286, -0.031361792236566544, 0.06440409272909164, -0.05791840702295303, -0.026840195059776306, -0.010229863226413727, 0.04047590494155884, -0.3807883858680725, -0.35908734798431396, -0.18846683204174042, -0.18390148878097534, -0.19054487347602844, -0.27302661538124084, 0.0020517343655228615, -0.003942282870411873, 0.07953949272632599, -0.30001193284988403, -0.5658153891563416, -0.010898984968662262, -0.06496961414813995, -0.14222325384616852, 0.11401152610778809, -0.08775392174720764, -0.037564702332019806, 0.07030802965164185, 0.015205459669232368, -0.3035496175289154, 0.007499439641833305, 0.11182260513305664, -0.09761499613523483, -0.03229557350277901, -0.34854209423065186, -0.06386382132768631, 0.1652541607618332, 0.4128495156764984, 0.30439627170562744, -0.22739021480083466, 0.014606237411499023, -0.18203581869602203, 0.09900803118944168, -0.04269155487418175, 0.11560985445976257, -0.03805163502693176, -0.06594496220350266, 0.2804880738258362, 0.3567698001861572, 0.02294289693236351, 0.17542460560798645, 0.034715376794338226, 0.0708046481013298, -0.3577212393283844, -0.07689614593982697, 0.30033594369888306, -0.2974945306777954, -0.027685925364494324, 0.16356436908245087, 0.07521598041057587, 0.07212559133768082, -0.16988444328308105, 0.29249414801597595, 0.0735982358455658, 0.019169878214597702, 0.13178810477256775, -0.043197840452194214, -0.24091613292694092, -0.16130299866199493, -0.3374612331390381, -0.01952173188328743, -0.028691308572888374, 0.45276594161987305, -0.027912285178899765, -0.22028720378875732, 0.20443196594715118, 0.03416505083441734, 0.5450917482376099, 0.047094978392124176, -0.1392822414636612, 0.25396838784217834, -0.11607155948877335, 0.17825821042060852, -0.11368586122989655, 0.12725038826465607, 0.09029734879732132, 0.07731735706329346, -0.2726747691631317, -0.16716304421424866, 0.016048520803451538, -0.15717022120952606, -0.04024700075387955, 0.2682977318763733, -0.42917728424072266, -0.10252580046653748, -0.3170410692691803, 0.046307049691677094, -0.3252811133861542, 0.1584795117378235, 0.20113332569599152, 0.2662881016731262, 0.13550503551959991, -0.12916409969329834, 0.4017508625984192, 0.6870620846748352, 0.1591590791940689, -0.24882324039936066, 0.24881039559841156, 0.011718152090907097, 0.015725314617156982, 0.35310450196266174, -0.12279241532087326, -0.08725779503583908, -0.2512490749359131, -0.09002187848091125, -0.12070006877183914, -0.18473097681999207, -0.101873978972435, -0.03685040399432182, -0.3213779926300049, 0.08447098731994629, 0.04170471057295799, -0.01423477940261364, 0.04495738446712494, -0.2735609710216522, -0.11263346672058105, 0.031614065170288086, -0.052746206521987915, -0.04284575581550598, -0.4392005205154419, -0.4809526801109314, -0.20980532467365265, 0.3541742265224457, 0.22654150426387787, 0.062010787427425385, 0.06197592616081238, 0.28306087851524353, 0.21969857811927795, -0.08840978145599365, 0.2387375384569168, 0.15842357277870178, 0.5632194876670837, 0.09104952961206436, -0.1354205459356308, -0.03706596419215202, -0.28189677000045776, 0.0016203932464122772, -0.04599042981863022, 0.168666809797287, 0.22805248200893402, -0.5953664779663086, -0.30707117915153503, -0.07848794758319855, -0.1321386694908142, -0.31408870220184326, 0.17474065721035004, 0.23622651398181915, 0.1078004240989685, -0.0034136027097702026, -0.3685559034347534, 0.42509904503822327, -0.2594374716281891, 0.21973556280136108, -0.36295270919799805, 0.4800723195075989, -0.072488933801651, 0.055717047303915024, 0.04642508178949356, 0.27484601736068726, 0.05630684271454811, -0.3659333288669586, 0.1982268989086151, 0.189286470413208, -0.30051833391189575, 0.34587839245796204, 0.5258869528770447, 0.2588585615158081, 0.2914501428604126, -0.38051435351371765, 0.12990260124206543, 0.08309289813041687, -0.20286685228347778, 0.11086688190698624, -0.1950123906135559, 0.4615952968597412, -0.0090223029255867, -0.10671072453260422, -0.06451006233692169, -0.07601985335350037, -0.05931475758552551, -0.18294337391853333, -0.246024951338768, -0.21283192932605743, 0.11738947033882141, -0.02941232919692993, 0.18333955109119415, 0.14205144345760345, -0.3397110104560852, 0.22688865661621094, 0.4386555850505829, 0.018512215465307236, -0.07491957396268845, 0.06950681656599045, -0.05371154099702835, 0.05846858024597168, 0.1515892744064331, -0.1466600000858307, -0.0823470950126648, 0.29555630683898926, -0.011315543204545975, 0.4402499496936798, 0.09043702483177185, -0.03872694820165634, -0.09657158702611923, -0.11139507591724396, -0.024622570723295212, 0.011882361024618149, 0.049114517867565155, 0.03016306832432747, -0.18775904178619385, -0.10103368759155273, -0.08620248734951019, -0.06621135026216507, -0.12494421005249023, -0.2768998444080353, 0.06824667006731033, -0.11156950145959854, -0.4919808506965637, -0.09150135517120361, -0.44876205921173096, -0.13243475556373596, 0.2169879972934723, 0.1636694073677063, -0.06692541390657425, 0.31110140681266785, 0.08343379199504852, 0.48318660259246826, -0.16016830503940582, 0.02689332887530327, -0.23606660962104797, 0.049642980098724365, 0.0930502712726593, 0.12261296808719635, -0.0973447933793068, -0.14437143504619598, 0.3948921859264374, -0.15097735822200775, 0.06109132617712021, -0.5150560140609741, -0.4390873312950134, 0.032661840319633484, -0.11985483765602112, -0.2736370265483856, 0.04016399011015892, 0.14397016167640686, -0.18905490636825562, -0.06857183575630188, 0.04893564060330391, -0.2940531075000763, -0.07494647800922394, -0.26766908168792725, -0.1542602926492691, 0.03362106531858444, -0.05165524035692215, -0.04696347564458847, -0.10994816571474075, -0.5106432437896729, 0.2915964126586914, 0.015018891543149948, 0.1118050217628479, -0.017802394926548004, -0.05771683156490326, 0.06146029755473137, -0.1838097870349884, -0.3469325602054596, -0.25804343819618225, -0.29241567850112915, -0.04661073163151741, -0.33191731572151184, -0.03700670227408409, 0.11863696575164795, 0.02116825059056282, 0.12639546394348145, -0.13660785555839539, -0.42631393671035767, -0.8204235434532166, -0.0712868869304657, 0.23126733303070068, 0.07394741475582123, 0.23008598387241364, 0.15961697697639465, -0.13230475783348083, -0.1988428831100464, 0.07144495099782944, -0.33664068579673767, 0.17164671421051025, 0.27068817615509033, -0.11375433951616287, -0.03326929360628128, -0.026062723249197006, -0.1642005443572998, 0.5518660545349121, 0.6206749081611633, 0.03725724667310715, 0.09666509926319122, 0.23134955763816833, 0.36924347281455994, -0.10805714875459671, -0.08501008152961731, 0.1023283377289772, 0.22393009066581726, -0.07778488099575043, 0.47130322456359863, 0.08405520766973495, 0.33059847354888916, -0.04700896888971329, -0.2661805748939514, -0.10241749882698059, -0.4017176330089569, -0.23539166152477264, -0.00524381548166275, 0.17289921641349792, -0.2528969943523407, -0.2505497336387634, 0.10198083519935608, 0.08778436481952667, 0.30639219284057617, 0.3677111268043518, 0.07056691497564316, 0.07406167685985565, -0.3127058744430542, 0.0009273176547139883, -0.3791627883911133, 0.3363243341445923, -0.3094920814037323, 0.003432762809097767, -0.1050412654876709, 0.015580397099256516, 0.08170185983181, -0.20155131816864014, 0.6067957878112793, 0.06620218604803085, 0.11737088859081268, -0.34408342838287354, -0.30185478925704956, -0.2871338427066803, 0.08857706189155579, 0.02923758700489998, -0.019475920125842094, 0.003378288820385933, 0.7058637738227844, -0.4067893922328949, -0.3740425109863281, 0.33690130710601807, -0.0243020411580801, -0.09782466292381287, 0.10898461192846298, -0.07443787902593613, -0.4136751592159271, -0.2542654275894165, 0.13647060096263885, -0.07136386632919312, -0.12022212892770767, 0.0018041792791336775, 0.04702261462807655, 0.04669840261340141, -0.12326129525899887, 0.1453765481710434, 0.03612596541643143, 0.056422509253025055, 0.31647905707359314, 0.07099875807762146, 0.333690881729126, 0.02012491226196289, 0.10105876624584198, 0.7753584384918213, -0.020249255001544952, -0.25641149282455444, -0.1642628312110901, 0.16378076374530792, 0.060404807329177856, 0.694841742515564, 0.24681271612644196, 0.34087902307510376, 0.17248085141181946, 0.49565279483795166, -0.3051203191280365, 0.08992943912744522, -0.1135965883731842, 0.07033577561378479, -0.3086582124233246, -0.08471392840147018, 0.18711213767528534, -0.15822471678256989, -0.09629441052675247, 0.016509246081113815, 0.7106709480285645, -0.05648723244667053, 0.21056345105171204, 0.14476799964904785, 1.064717411994934, -0.055585578083992004, 0.27979737520217896, 0.047884613275527954, -0.3091987371444702, 0.38904744386672974, -0.23722873628139496, -0.14769479632377625, -0.35558637976646423, 0.02656860277056694, 0.05712716281414032, 0.09431910514831543, 0.0353391170501709, -0.29752200841903687, -0.28711313009262085, 0.10615510493516922, 0.1715763956308365, 0.3973006308078766, -0.023778529837727547, 0.1828988790512085, -0.03649003803730011, -0.19537189602851868, -0.32165342569351196, 0.24106401205062866, -0.09418575465679169, 0.4041633605957031, -0.11493968218564987, -0.16493025422096252, 0.030935857445001602, -0.00684555247426033, 0.017588041722774506, -0.0032267197966575623, -0.03857441619038582, -0.19202028214931488, 0.13201075792312622, 0.07842791080474854, -0.09425130486488342, -0.24189484119415283, 0.7294860482215881, 0.15926307439804077, -0.1621498316526413, -0.0011618584394454956, -0.1566256582736969, -0.05918041989207268, -0.3138423562049866, 0.039537787437438965, 0.2396107017993927, -0.07917863875627518, -0.26388677954673767, 0.16129395365715027, 0.20837906002998352, -0.2686734199523926, -0.36062949895858765, -0.14859798550605774, -0.1450478583574295, -0.04471191391348839, 0.3346865773200989, 0.25234583020210266, -0.11184892058372498, -0.1284443438053131, 0.1815655678510666, -0.07834796607494354, -0.24977262318134308, -0.09149574488401413, 0.2731530964374542, -0.1697188764810562, -0.14367276430130005, 0.26587212085723877, 0.020937196910381317, -0.09154853969812393, 0.14904901385307312, 0.045726727694272995, 0.015715342015028, -0.2974872887134552, -0.2507079541683197, 0.4760836660861969, -0.5225656032562256, 0.12810342013835907, -0.17856518924236298, -0.14154045283794403, 0.164840430021286, 0.1836937814950943, 0.4674335718154907, -0.03997848182916641, -0.14032873511314392, -0.1864224374294281, -0.3216145634651184, 0.3420346975326538, -0.060562510043382645, 0.34930649399757385, 0.31216055154800415, 0.2765004336833954, -0.12505944073200226, 0.21603742241859436, -0.4721602201461792, 0.1543753445148468, -0.3096104860305786, -0.06377916038036346, 0.09632659703493118, -0.328114777803421, 0.23643901944160461, -0.0017318022437393665, 0.1499035805463791, 0.07561096549034119, -0.601988673210144, -0.21534985303878784, -0.2302558869123459, 0.09183114022016525, -0.045803867280483246, 0.03995167464017868, 0.08027715981006622, 0.24012823402881622, 0.12951214611530304, -0.04652314633131027, 0.5299501419067383, 0.038946256041526794, -0.010741941630840302, 0.13562677800655365, 0.3078596889972687, -0.15477809309959412, -0.19520513713359833, -0.09129451215267181, 0.4753018617630005, 0.1368318498134613, -0.09506919980049133, -0.035651080310344696, -0.31000450253486633, -0.1387941986322403, 0.14705845713615417, 0.3525356650352478, 0.4026695489883423, 0.19182917475700378, 0.11414511501789093, 0.04259870573878288, -0.03460947796702385, 0.005139486398547888, 0.6270982027053833, -0.11117720603942871, -0.07016272097826004, -0.09671343863010406, 0.2152675986289978, 0.27297624945640564, -0.18069781363010406, -0.03802407160401344, 0.4682374894618988, -0.12954829633235931, 0.18328304588794708, 0.41690370440483093, 0.5480707883834839, 0.09735837578773499, 0.22176584601402283, 0.12641018629074097, 0.6257140040397644, -0.07862129807472229, 0.17338606715202332, 0.1773722916841507, -0.06836341321468353, -0.006046641618013382, 0.09482593089342117, 0.37453848123550415, 0.3080383241176605, 0.021179668605327606, -0.23206451535224915, 0.4543008804321289, -0.03809046745300293, 0.14565414190292358, 0.4162992835044861, -0.10947807133197784, 0.22194981575012207, 0.21684610843658447, 0.3309822380542755, 0.09264156222343445, -0.15211451053619385, 0.3066313862800598, -0.09661915153265, -0.5169859528541565, -0.04856361448764801, 0.2878251373767853, 0.05101630091667175, 0.11547133326530457, -0.008819738402962685, -0.1240248829126358, -0.3409627676010132, 0.14482423663139343, 0.01635124161839485, -0.4886069893836975, 0.23008020222187042, -0.03399678319692612, -0.014875233173370361, -0.17575190961360931, 0.052556365728378296, 0.024784676730632782, 0.24495500326156616, 0.07041431963443756, 0.09053215384483337, 0.05172053724527359, -0.18208196759223938, 0.15406078100204468, 0.34888023138046265, 0.05922694504261017, -0.08667609840631485, 0.07946215569972992, 0.4360513687133789, 0.17954018712043762, 0.00004857778549194336, -0.006745635531842709, -0.3157814145088196, -0.20507141947746277, -0.3484772741794586, 0.038104347884655, 0.25200048089027405, -0.297035276889801, -0.060653191059827805, -0.28722766041755676, -0.0515921376645565, -0.1605936586856842, 0.2710283398628235, -0.08138091117143631, -0.06892291456460953, 0.04429411515593529, -0.0105728879570961, -0.4657320976257324, -0.14881069958209991, 0.16039499640464783, -0.127053901553154, 0.0638427585363388, 0.06169833615422249, 0.10919122397899628, -0.10554738342761993, 0.331144779920578, 0.28004372119903564, 0.09896643459796906, 0.013397221453487873, -0.34586358070373535, -0.21737633645534515, 0.3066423535346985, 0.14512522518634796, -0.09783174097537994, 0.20053406059741974, -0.023529021069407463, -0.03430734574794769, -0.11084118485450745, -0.0875905305147171, -0.23847047984600067, -0.0025446778163313866, -0.09941406548023224, -0.14098089933395386, 0.21774142980575562, 0.048534296452999115, -0.041231729090213776, 0.2018786072731018, -0.11606643348932266, 0.19473996758460999, 0.13955500721931458, 0.03379830718040466, 0.2152704894542694, 0.27795732021331787, 0.17669500410556793, -0.49299225211143494, 0.2101411372423172, -0.02466084621846676, -0.04751443862915039, -0.16327393054962158, -0.2676054835319519, -0.08964012563228607, -0.21338380873203278, -0.4116504192352295, 0.005159690976142883, -0.3357590436935425, 0.35594746470451355, 0.03987256437540054, -0.5045148134231567, -0.19577856361865997, 0.09432674944400787, 0.24738050997257233, -0.05059261620044708, 0.058138102293014526, 0.3418607711791992, -0.16920912265777588, -0.13438650965690613, 0.3153550624847412, 0.45630744099617004, 0.0918283611536026, -0.06507045775651932, -0.3788182735443115, -0.07653551548719406, 0.5845483541488647, -0.11025159060955048, -0.14315566420555115, -0.009614624083042145, 0.333629846572876, 0.08994428813457489, -0.3159913420677185, -0.6316226720809937, 0.16312500834465027, 0.08405788242816925, 0.04029266536235809, -0.14413057267665863, 0.44076433777809143, -0.08478732407093048, -0.25130054354667664, -0.019137604162096977, -0.04958830028772354, 0.052226923406124115, -0.166474848985672, 0.052646879106760025, -0.23827357590198517 ]
https://github.com/huggingface/datasets/issues/3339
to_tf_dataset fails on TPU
This might be related to https://github.com/tensorflow/tensorflow/issues/38762 , what do you think @Rocketknight1 ? > Dataset.from_generator is expected to not work with TPUs as it uses py_function underneath which is incompatible with Cloud TPU 2VM setup. If you would like to read from large datasets, maybe try to materialize it on disk and use TFRecordDataest instead.
Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5
55
to_tf_dataset fails on TPU Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5 This might be related to https://github.com/tensorflow/tensorflow/issues/38762 , what do you think @Rocketknight1 ? > Dataset.from_generator is expected to not work with TPUs as it uses py_function underneath which is incompatible with Cloud TPU 2VM setup. If you would like to read from large datasets, maybe try to materialize it on disk and use TFRecordDataest instead.
[ -0.23771564662456512, -0.13588324189186096, 0.15924979746341705, 0.20368322730064392, 0.4153631329536438, 0.010035589337348938, 0.36434823274612427, 0.02571447193622589, -0.45698538422584534, 0.18012039363384247, -0.05542434751987457, 0.2911759614944458, 0.25148308277130127, 0.49292314052581787, 0.1305927038192749, -0.0885014533996582, -0.14083001017570496, 0.04940231516957283, -0.08772541582584381, -0.13199655711650848, -0.14966121315956116, 0.40157121419906616, 0.08683475852012634, 0.056788139045238495, -0.5214216113090515, -0.15756748616695404, 0.22633013129234314, -0.09397559612989426, 0.12071826308965683, 0.11292140930891037, 0.36486586928367615, -0.3170059621334076, -0.18162773549556732, 0.7030659914016724, -0.000118717820441816, 0.37979477643966675, -0.06943470239639282, -0.1777595430612564, -0.10312157869338989, -0.066444993019104, -0.3455982506275177, 0.14057326316833496, 0.0220208577811718, -0.022652707993984222, -0.3122105002403259, 0.3715745806694031, 0.09190893918275833, 0.3271479308605194, 0.24842701852321625, 0.4748542010784149, 0.10627935081720352, 0.5870957374572754, 0.1409711241722107, -0.11736282706260681, -0.07481011003255844, -0.11986283957958221, -0.45752066373825073, 0.264286071062088, -0.25509580969810486, 0.008434465155005455, 0.20665287971496582, -0.2624976336956024, 0.1700136512517929, -0.13789209723472595, 0.038889579474925995, 0.19863004982471466, 0.2847888171672821, -0.5665247440338135, 0.061780959367752075, 0.30999648571014404, 0.4110127091407776, -0.44602179527282715, -0.3044816553592682, -0.007869970053434372, -0.14599183201789856, -0.25747159123420715, 0.261557012796402, -0.10981627553701401, -0.21943071484565735, 0.21896354854106903, -0.14863625168800354, 0.05125102028250694, -0.15174540877342224, 0.043736424297094345, -0.17802295088768005, 0.2540242075920105, 0.17232471704483032, 0.11058545112609863, -0.0783795565366745, -0.059119708836078644, 0.3977122902870178, 0.005314292386174202, 0.0010840445756912231, -0.12332145869731903, -0.478484570980072, -0.26403337717056274, -0.03522484004497528, -0.25780296325683594, -0.16546395421028137, -0.36977410316467285, 0.2542356252670288, -0.18789738416671753, 0.06523584574460983, 0.1911207139492035, 0.2713415026664734, -0.05217557027935982, -0.42984461784362793, 0.46830716729164124, -0.049438051879405975, -0.23376469314098358, -0.23609985411167145, 0.008618680760264397, 0.22364728152751923, -0.21192555129528046, -0.12509219348430634, -0.28156206011772156, 0.06839323788881302, -0.20356981456279755, -0.23386350274085999, 0.00852244533598423, -0.2764796018600464, 0.21130380034446716, -0.14590448141098022, 0.016297172755002975, 0.24596798419952393, 0.18179428577423096, 0.18682526051998138, 0.01810617186129093, -0.36816683411598206, 0.15529195964336395, -0.23458904027938843, -0.114943727850914, -0.051060039550065994, 0.027247201651334763, 0.048222269862890244, -0.24051141738891602, -0.11296292394399643, -0.17616038024425507, 0.1284230649471283, 0.16611173748970032, -0.029086917638778687, -0.2764332890510559, 0.037780556827783585, 0.6523357629776001, -0.011972690001130104, -0.1389114111661911, 0.04091370478272438, -0.24776647984981537, -0.004475407302379608, 0.11058322340250015, -0.33037975430488586, -0.37958797812461853, 0.17840825021266937, 0.06130144000053406, -0.07656379044055939, -0.1235889345407486, -0.16981810331344604, 0.3062872588634491, 0.17625752091407776, -0.3321531414985657, -0.1371781826019287, -0.4028523564338684, -0.5160397887229919, -0.046557821333408356, 0.34211480617523193, 0.22934669256210327, -0.39996808767318726, 0.1405467540025711, 0.34652474522590637, -0.131147563457489, 0.36675167083740234, 0.26316702365875244, 0.17965799570083618, 0.2890564501285553, -0.008755446411669254, 0.12078718841075897, 0.37460362911224365, -0.053248897194862366, -0.30760353803634644, 0.29295220971107483, -0.4511575698852539, -0.0498889684677124, -0.3144187033176422, -0.07489443570375443, -0.2482600212097168, -0.1482320874929428, 0.19594120979309082, 0.33590108156204224, -0.45453301072120667, 0.11553999036550522, -0.35592836141586304, -0.10350434482097626, 0.09483134001493454, 0.027072936296463013, 0.1515790969133377, 0.15156811475753784, 0.1807980239391327, 0.09271997213363647, 0.15587547421455383, -0.05276399478316307, -0.14637169241905212, 0.05242779850959778, 0.6204760074615479, -0.32516390085220337, 0.07348925620317459, 0.3552188277244568, -0.24545541405677795, 0.22707879543304443, 0.06420231610536575, 0.4079868197441101, 0.17517390847206116, 0.19100378453731537, 0.016536016017198563, 0.21328002214431763, 0.24601557850837708, -0.0692218542098999, 0.028052177280187607, 0.14790605008602142, -0.2696961462497711, -0.12289109826087952, -0.012478627264499664, 0.4018408954143524, -0.25341635942459106, -0.003920647781342268, -0.4376440644264221, 0.511625349521637, 0.037122856825590134, -0.3100269138813019, 0.04856231063604355, 0.12471803277730942, 0.0814705565571785, 0.013094458729028702, -0.289496511220932, 0.2103205919265747, 0.057983286678791046, 0.28986886143684387, -0.17630615830421448, 0.36910003423690796, 0.045159585773944855, -0.3981795012950897, -0.4226457476615906, 0.07847099006175995, 0.15357258915901184, 0.06893604248762131, 0.04635794833302498, 0.026118755340576172, -0.012422408908605576, -0.04868625849485397, 0.08552484214305878, -0.003822728991508484, 0.06633718311786652, 0.0859498530626297, 0.14665329456329346, -0.04134102910757065, -0.10519154369831085, 0.1442936360836029, -0.22236555814743042, 0.15598143637180328, -0.42876243591308594, 0.42300280928611755, 0.3258287310600281, 0.08991242945194244, -0.08797156065702438, 0.12927034497261047, 0.2320268452167511, -0.2631540298461914, 0.25955450534820557, 0.4011164605617523, 0.33725082874298096, 0.10746780782938004, -0.031285401433706284, 0.06520087271928787, -0.3169078826904297, -0.3241821527481079, 0.03183189034461975, 0.05888094753026962, 0.13566270470619202, 0.3109448552131653, 0.2310614436864853, 0.4301360845565796, -0.11651278287172318, -0.03660356253385544, 0.09247850626707077, 0.23343083262443542, -0.5189223885536194, 0.024309126660227776, -0.10077480971813202, -0.10032150894403458, 0.018587369471788406, 0.24012427031993866, -0.003311567008495331, -0.344738245010376, -0.06453254818916321, 0.12114641070365906, -0.20952047407627106, 0.10385268926620483, -0.14294618368148804, 0.16827081143856049, 0.0045915525406599045, -0.2821536362171173, -0.00712551549077034, -0.23065760731697083, -0.27351588010787964, 0.05895727500319481, 0.1348588466644287, 0.367063969373703, 0.06000015139579773, -0.13004222512245178, -0.13350436091423035, 0.19966697692871094, -0.49041619896888733, 0.33018428087234497, -0.2673295736312866, 0.6307039260864258, 0.07533974945545197, 0.15962964296340942, -0.35126543045043945, -0.3435927629470825, 0.19549931585788727, -0.21508187055587769, -0.22673609852790833, 0.1991051435470581, -0.31094890832901, -0.1440781205892563, -0.05919988453388214, -0.292224645614624, -0.14981357753276825, -0.29584771394729614, 0.10666155815124512, -0.03619035705924034, 0.1189282089471817, 0.5792866945266724, 0.23186738789081573, 0.08794006705284119, 0.23162314295768738, -0.11621114611625671, -0.07526779174804688, -0.017588462680578232, 0.2094080150127411, -0.020616240799427032, -0.30545541644096375, 0.045614760369062424, 0.08302867412567139, 0.1659787893295288, 0.3440009355545044, -0.5312433838844299, -0.13111265003681183, -0.21575111150741577, 0.07981589436531067, 0.03847375884652138, -0.17434896528720856, 0.17717599868774414, 0.018261980265378952, 0.034093208611011505, -0.22669601440429688, -0.47385865449905396, 0.24242377281188965, 0.661228358745575, 0.12861081957817078, 0.013004880398511887, 0.3885803520679474, -0.07672511041164398, 0.36677026748657227, -0.09407941997051239, -0.3093855381011963, 0.17077909409999847, -0.2439345419406891, 0.19916985929012299, -0.2772425711154938, -0.13128629326820374, 0.4598906636238098, -0.0837600827217102, -0.32510489225387573, 0.041661061346530914, -0.2754909098148346, -0.18946023285388947, -0.19939227402210236, 0.0008017159998416901, -0.17225459218025208, -0.36386826634407043, 0.04365178197622299, 0.1790497899055481, 0.17523318529129028, 0.19776539504528046, -0.0633707046508789, -0.10117335617542267, -0.14336100220680237, -0.0638723075389862, 0.0281379371881485, 0.23831284046173096, 0.16773591935634613, 0.28498971462249756, -0.21488629281520844, -0.4850679636001587, 0.019699469208717346, 0.15576326847076416, 0.5570335388183594, -0.46249863505363464, -0.04928545653820038, -0.2705090045928955, 0.05264072120189667, 0.13819697499275208, -0.5062898993492126, 0.1252443492412567, 0.47072142362594604, -0.2327646017074585, -0.23818427324295044, 0.13544514775276184, -0.0402386337518692, -0.07750748842954636, 0.14544792473316193, 0.5163580179214478, 0.024407953023910522, -0.0011555280070751905, 0.10284118354320526, 0.139142245054245, -0.013760372996330261, 0.04797636717557907, -0.11272125691175461, -0.4224165081977844, 0.031547412276268005, -0.05201566964387894, 0.23485644161701202, 0.26811274886131287, 0.009060812182724476, -0.02485668659210205, 0.06396143138408661, 0.055585794150829315, -0.013633809983730316, 0.17304891347885132, 0.08112602680921555, 0.043288134038448334, 0.2867952287197113, -0.19524157047271729, 0.1164323166012764, 0.2705213129520416, 0.6125137805938721, -0.09613645076751709, -0.1644974946975708, 0.41974207758903503, 0.2101631760597229, 0.10946457087993622, 0.2773963212966919, -0.12531161308288574, -0.20545655488967896, -0.3309934735298157, 0.11345870792865753, 0.30076608061790466, 0.28043124079704285, -0.01815478503704071, -0.04016025736927986, -0.12876181304454803, 0.022847218438982964, 0.16645251214504242, -0.030744703486561775, 0.15805433690547943, 0.4151938259601593, 0.033032238483428955, -0.10364999622106552, 0.44872283935546875, 0.3356066644191742, 0.7207559943199158, 0.010694380849599838, 0.05259151756763458, 0.577824592590332, 0.013551004230976105, 0.42461729049682617, -0.27463221549987793, 0.27485817670822144, -0.251974493265152, -0.5210761427879333, 0.044194817543029785, -0.11719736456871033, -0.3844122290611267, 0.11347965896129608, -0.19381557404994965, 0.015840984880924225, 0.40714848041534424, 0.06875134259462357, 0.3557630181312561, 0.06470508873462677, 0.3553381562232971, -0.32622358202934265, -0.36028411984443665, 0.10783115029335022, 0.09503345936536789, -0.0484304241836071, 0.010548710823059082, -0.27636444568634033, -0.269264817237854, 0.0536683052778244, -0.12838394939899445, 0.22093719244003296, -0.7933565378189087, -0.08589250594377518, 0.20429538190364838, -0.22392895817756653, 0.15496236085891724, 0.2518289387226105, 0.37335479259490967, 0.11799833178520203, -0.30785509943962097, 0.08739781379699707, 0.12036650627851486, 0.06490853428840637, 0.12446451932191849, -0.09169153869152069, 0.47453761100769043, -0.19401666522026062, -0.0660567507147789, -0.18981891870498657, -0.05583278462290764, -0.2215322107076645, 0.4300838112831116, -0.38634538650512695, -0.43577516078948975, -0.03729914501309395, -0.0546230711042881, -0.03807998448610306, -0.2631295919418335, -0.06334187090396881, 0.0647725909948349, -0.16569842398166656, -0.09967327862977982, 0.09520477056503296, -0.12941648066043854, -0.34294506907463074, 0.06163524091243744, 0.2117558717727661, -0.1679016351699829, 0.11829045414924622, 0.15002092719078064, 0.22626252472400665, 0.040645189583301544, -0.1507023721933365, 0.12424180656671524, 0.12958429753780365, -0.4625425934791565, 0.13728968799114227, -0.14326737821102142, -0.07403731346130371, 0.20331822335720062, 0.6734073162078857, 0.07575272023677826, 0.05881989747285843, 0.0195530466735363, -0.04438943788409233, -0.4824235141277313, -0.04663458466529846, -0.0589355044066906, 0.1743708997964859, -0.014730779454112053, 0.606868326663971, 0.18536144495010376, 0.09858384728431702, -0.22413527965545654, -0.19401587545871735, -0.45608991384506226, 0.004823315888643265, 0.256357342004776, -0.142713725566864, 0.1501270979642868, -0.019263293594121933, 0.005343159660696983, 0.34506756067276, -0.13614964485168457, -0.12455098330974579, 0.056201059371232986, 0.1394144594669342, 0.5006353259086609, -0.25303971767425537, -0.2139219045639038, 0.20028339326381683, -0.45761939883232117, -0.1677025854587555, 0.31070491671562195, 0.2047923505306244, -0.29685401916503906, -0.21386758983135223, 0.25785037875175476, 0.12040399760007858, -0.1960657835006714, -0.026586338877677917, 0.32491469383239746, 0.11860225349664688, 0.03426602855324745, 0.06296001374721527, -0.14064818620681763, 0.039777614176273346, 0.19064097106456757, 0.07360568642616272, -0.028329811990261078, 0.03156377002596855, 0.2545522451400757, -0.3750663995742798, -0.2104620635509491, -0.1406095027923584, -0.048170603811740875, -0.030850142240524292, -0.17640230059623718, 0.06883832812309265, 0.025464460253715515, 0.047361746430397034, -0.08687037229537964, 0.04383903741836548, 0.46402764320373535, 0.07326444238424301, -0.05269980430603027, 0.19238007068634033, 0.39519166946411133, -0.07425189018249512, -0.2395327240228653, 0.16574200987815857, 0.06416913121938705, -0.13303565979003906, 0.028994200751185417, 0.4475802779197693, -0.11579085886478424, 0.3669547140598297, -0.20564618706703186, -0.10719472169876099, 0.01724211871623993, -0.07563160359859467, 0.027269206941127777, -0.0004787333309650421, -0.24257487058639526, -0.14598707854747772, 0.20841997861862183, -0.4114045798778534, 0.03559985011816025, -0.02540859580039978, -0.022808179259300232, 0.13271579146385193, -0.08525660634040833, -0.0984998419880867, -0.17308436334133148, -0.22865909337997437, -0.19122403860092163, 0.10182762145996094, -0.26211047172546387, 0.14940594136714935, -0.18024249374866486, -0.04554887115955353, -0.2522968053817749, -0.16248296201229095, -0.20178765058517456, 0.07571343332529068, 0.0014230236411094666, 0.13244174420833588, -0.08691823482513428, 0.22830821573734283, -0.46713054180145264, 0.08461400866508484, -0.07417603582143784, -0.04144372045993805, 0.5216245055198669, -0.2772117257118225, -0.39162054657936096, -0.2933710515499115, 0.3712121844291687, 0.4211888015270233, 0.09983097016811371, 0.10758157074451447, 0.1789460927248001, 0.3164709806442261, 0.11739738285541534, 0.22590458393096924, 0.20934543013572693, -0.06803369522094727, -0.07134376466274261, 0.3802041709423065, -0.03061525523662567, -0.0672217607498169, -0.024490829557180405, 0.006751786917448044, 0.4540180265903473, -0.3554114103317261, 0.13857004046440125, 0.10380237549543381, -0.016081348061561584, -0.08854347467422485, 0.1836738884449005, -0.04078037291765213, 0.2201063632965088, 0.5140336751937866, -0.2947464883327484, 0.18666109442710876, 0.03986116498708725, 0.056831762194633484, -0.12508957087993622, 0.6414744257926941, 0.20150461792945862, 0.07858734577894211, -0.25482383370399475, -0.008022397756576538, -0.3166707158088684, 0.45179349184036255, -0.024977993220090866, 0.21127909421920776, 0.25990238785743713, 0.0018525999039411545, 0.36467114090919495, 0.20574383437633514, -0.12133549153804779, 0.37315046787261963, -0.049399107694625854, 0.18114840984344482, -0.11287540197372437, -0.31993016600608826, -0.6019214391708374, -0.17499062418937683, -0.030301176011562347, -0.09800206124782562, 0.0699094608426094, 0.06503066420555115, 0.07569966465234756, 0.006990770809352398, -0.31384915113449097, 0.24096354842185974, 0.39745455980300903, 0.25003185868263245, 0.2661224603652954, 0.39246976375579834, -0.1516643464565277, 0.05802140384912491, -0.10579170286655426, -0.42187076807022095, -0.34147748351097107, -0.14401119947433472, -0.21878322958946228, 0.2718352675437927, 0.02436945028603077, 0.1895832121372223, -0.24189810454845428, -0.4366146922111511, -0.03122703731060028, 0.20300835371017456, 0.19072918593883514, 0.11293760687112808, -0.11464053392410278, 0.03267429769039154, 0.5494959950447083, 0.21267065405845642, 0.11253927648067474, 0.01656475104391575, -0.24212346971035004, -0.3317560851573944, 0.27510467171669006, -0.2684337794780731, -0.0808740109205246, -0.14430752396583557, -0.08264367282390594, 0.008200675249099731, 0.24559135735034943, -0.22146138548851013, 0.03461586683988571, 0.17331695556640625, -0.12567350268363953, -0.24505552649497986, 0.09378814697265625, -0.01330919936299324, 0.21441803872585297, 0.0029966309666633606, 0.2994561195373535, 0.18012550473213196, -0.06065884977579117, -0.1818595826625824, -0.03855535760521889 ]
https://github.com/huggingface/datasets/issues/3339
to_tf_dataset fails on TPU
Hi @lhoestq @nbroad1881, I think it's very similar, yes. Unfortunately `to_tf_dataset` uses `tf.numpy_function` which can't be compiled - this is a necessary evil to load from the underlying Arrow dataset. We need to update the notebooks/examples to clarify that this won't work, or to identify a workaround. You may be able to get it to work on an actual cloud TPU VM, but those are quite new and we haven't tested it yet.
Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5
73
to_tf_dataset fails on TPU Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5 Hi @lhoestq @nbroad1881, I think it's very similar, yes. Unfortunately `to_tf_dataset` uses `tf.numpy_function` which can't be compiled - this is a necessary evil to load from the underlying Arrow dataset. We need to update the notebooks/examples to clarify that this won't work, or to identify a workaround. You may be able to get it to work on an actual cloud TPU VM, but those are quite new and we haven't tested it yet.
[ -0.23771564662456512, -0.13588324189186096, 0.15924979746341705, 0.20368322730064392, 0.4153631329536438, 0.010035589337348938, 0.36434823274612427, 0.02571447193622589, -0.45698538422584534, 0.18012039363384247, -0.05542434751987457, 0.2911759614944458, 0.25148308277130127, 0.49292314052581787, 0.1305927038192749, -0.0885014533996582, -0.14083001017570496, 0.04940231516957283, -0.08772541582584381, -0.13199655711650848, -0.14966121315956116, 0.40157121419906616, 0.08683475852012634, 0.056788139045238495, -0.5214216113090515, -0.15756748616695404, 0.22633013129234314, -0.09397559612989426, 0.12071826308965683, 0.11292140930891037, 0.36486586928367615, -0.3170059621334076, -0.18162773549556732, 0.7030659914016724, -0.000118717820441816, 0.37979477643966675, -0.06943470239639282, -0.1777595430612564, -0.10312157869338989, -0.066444993019104, -0.3455982506275177, 0.14057326316833496, 0.0220208577811718, -0.022652707993984222, -0.3122105002403259, 0.3715745806694031, 0.09190893918275833, 0.3271479308605194, 0.24842701852321625, 0.4748542010784149, 0.10627935081720352, 0.5870957374572754, 0.1409711241722107, -0.11736282706260681, -0.07481011003255844, -0.11986283957958221, -0.45752066373825073, 0.264286071062088, -0.25509580969810486, 0.008434465155005455, 0.20665287971496582, -0.2624976336956024, 0.1700136512517929, -0.13789209723472595, 0.038889579474925995, 0.19863004982471466, 0.2847888171672821, -0.5665247440338135, 0.061780959367752075, 0.30999648571014404, 0.4110127091407776, -0.44602179527282715, -0.3044816553592682, -0.007869970053434372, -0.14599183201789856, -0.25747159123420715, 0.261557012796402, -0.10981627553701401, -0.21943071484565735, 0.21896354854106903, -0.14863625168800354, 0.05125102028250694, -0.15174540877342224, 0.043736424297094345, -0.17802295088768005, 0.2540242075920105, 0.17232471704483032, 0.11058545112609863, -0.0783795565366745, -0.059119708836078644, 0.3977122902870178, 0.005314292386174202, 0.0010840445756912231, -0.12332145869731903, -0.478484570980072, -0.26403337717056274, -0.03522484004497528, -0.25780296325683594, -0.16546395421028137, -0.36977410316467285, 0.2542356252670288, -0.18789738416671753, 0.06523584574460983, 0.1911207139492035, 0.2713415026664734, -0.05217557027935982, -0.42984461784362793, 0.46830716729164124, -0.049438051879405975, -0.23376469314098358, -0.23609985411167145, 0.008618680760264397, 0.22364728152751923, -0.21192555129528046, -0.12509219348430634, -0.28156206011772156, 0.06839323788881302, -0.20356981456279755, -0.23386350274085999, 0.00852244533598423, -0.2764796018600464, 0.21130380034446716, -0.14590448141098022, 0.016297172755002975, 0.24596798419952393, 0.18179428577423096, 0.18682526051998138, 0.01810617186129093, -0.36816683411598206, 0.15529195964336395, -0.23458904027938843, -0.114943727850914, -0.051060039550065994, 0.027247201651334763, 0.048222269862890244, -0.24051141738891602, -0.11296292394399643, -0.17616038024425507, 0.1284230649471283, 0.16611173748970032, -0.029086917638778687, -0.2764332890510559, 0.037780556827783585, 0.6523357629776001, -0.011972690001130104, -0.1389114111661911, 0.04091370478272438, -0.24776647984981537, -0.004475407302379608, 0.11058322340250015, -0.33037975430488586, -0.37958797812461853, 0.17840825021266937, 0.06130144000053406, -0.07656379044055939, -0.1235889345407486, -0.16981810331344604, 0.3062872588634491, 0.17625752091407776, -0.3321531414985657, -0.1371781826019287, -0.4028523564338684, -0.5160397887229919, -0.046557821333408356, 0.34211480617523193, 0.22934669256210327, -0.39996808767318726, 0.1405467540025711, 0.34652474522590637, -0.131147563457489, 0.36675167083740234, 0.26316702365875244, 0.17965799570083618, 0.2890564501285553, -0.008755446411669254, 0.12078718841075897, 0.37460362911224365, -0.053248897194862366, -0.30760353803634644, 0.29295220971107483, -0.4511575698852539, -0.0498889684677124, -0.3144187033176422, -0.07489443570375443, -0.2482600212097168, -0.1482320874929428, 0.19594120979309082, 0.33590108156204224, -0.45453301072120667, 0.11553999036550522, -0.35592836141586304, -0.10350434482097626, 0.09483134001493454, 0.027072936296463013, 0.1515790969133377, 0.15156811475753784, 0.1807980239391327, 0.09271997213363647, 0.15587547421455383, -0.05276399478316307, -0.14637169241905212, 0.05242779850959778, 0.6204760074615479, -0.32516390085220337, 0.07348925620317459, 0.3552188277244568, -0.24545541405677795, 0.22707879543304443, 0.06420231610536575, 0.4079868197441101, 0.17517390847206116, 0.19100378453731537, 0.016536016017198563, 0.21328002214431763, 0.24601557850837708, -0.0692218542098999, 0.028052177280187607, 0.14790605008602142, -0.2696961462497711, -0.12289109826087952, -0.012478627264499664, 0.4018408954143524, -0.25341635942459106, -0.003920647781342268, -0.4376440644264221, 0.511625349521637, 0.037122856825590134, -0.3100269138813019, 0.04856231063604355, 0.12471803277730942, 0.0814705565571785, 0.013094458729028702, -0.289496511220932, 0.2103205919265747, 0.057983286678791046, 0.28986886143684387, -0.17630615830421448, 0.36910003423690796, 0.045159585773944855, -0.3981795012950897, -0.4226457476615906, 0.07847099006175995, 0.15357258915901184, 0.06893604248762131, 0.04635794833302498, 0.026118755340576172, -0.012422408908605576, -0.04868625849485397, 0.08552484214305878, -0.003822728991508484, 0.06633718311786652, 0.0859498530626297, 0.14665329456329346, -0.04134102910757065, -0.10519154369831085, 0.1442936360836029, -0.22236555814743042, 0.15598143637180328, -0.42876243591308594, 0.42300280928611755, 0.3258287310600281, 0.08991242945194244, -0.08797156065702438, 0.12927034497261047, 0.2320268452167511, -0.2631540298461914, 0.25955450534820557, 0.4011164605617523, 0.33725082874298096, 0.10746780782938004, -0.031285401433706284, 0.06520087271928787, -0.3169078826904297, -0.3241821527481079, 0.03183189034461975, 0.05888094753026962, 0.13566270470619202, 0.3109448552131653, 0.2310614436864853, 0.4301360845565796, -0.11651278287172318, -0.03660356253385544, 0.09247850626707077, 0.23343083262443542, -0.5189223885536194, 0.024309126660227776, -0.10077480971813202, -0.10032150894403458, 0.018587369471788406, 0.24012427031993866, -0.003311567008495331, -0.344738245010376, -0.06453254818916321, 0.12114641070365906, -0.20952047407627106, 0.10385268926620483, -0.14294618368148804, 0.16827081143856049, 0.0045915525406599045, -0.2821536362171173, -0.00712551549077034, -0.23065760731697083, -0.27351588010787964, 0.05895727500319481, 0.1348588466644287, 0.367063969373703, 0.06000015139579773, -0.13004222512245178, -0.13350436091423035, 0.19966697692871094, -0.49041619896888733, 0.33018428087234497, -0.2673295736312866, 0.6307039260864258, 0.07533974945545197, 0.15962964296340942, -0.35126543045043945, -0.3435927629470825, 0.19549931585788727, -0.21508187055587769, -0.22673609852790833, 0.1991051435470581, -0.31094890832901, -0.1440781205892563, -0.05919988453388214, -0.292224645614624, -0.14981357753276825, -0.29584771394729614, 0.10666155815124512, -0.03619035705924034, 0.1189282089471817, 0.5792866945266724, 0.23186738789081573, 0.08794006705284119, 0.23162314295768738, -0.11621114611625671, -0.07526779174804688, -0.017588462680578232, 0.2094080150127411, -0.020616240799427032, -0.30545541644096375, 0.045614760369062424, 0.08302867412567139, 0.1659787893295288, 0.3440009355545044, -0.5312433838844299, -0.13111265003681183, -0.21575111150741577, 0.07981589436531067, 0.03847375884652138, -0.17434896528720856, 0.17717599868774414, 0.018261980265378952, 0.034093208611011505, -0.22669601440429688, -0.47385865449905396, 0.24242377281188965, 0.661228358745575, 0.12861081957817078, 0.013004880398511887, 0.3885803520679474, -0.07672511041164398, 0.36677026748657227, -0.09407941997051239, -0.3093855381011963, 0.17077909409999847, -0.2439345419406891, 0.19916985929012299, -0.2772425711154938, -0.13128629326820374, 0.4598906636238098, -0.0837600827217102, -0.32510489225387573, 0.041661061346530914, -0.2754909098148346, -0.18946023285388947, -0.19939227402210236, 0.0008017159998416901, -0.17225459218025208, -0.36386826634407043, 0.04365178197622299, 0.1790497899055481, 0.17523318529129028, 0.19776539504528046, -0.0633707046508789, -0.10117335617542267, -0.14336100220680237, -0.0638723075389862, 0.0281379371881485, 0.23831284046173096, 0.16773591935634613, 0.28498971462249756, -0.21488629281520844, -0.4850679636001587, 0.019699469208717346, 0.15576326847076416, 0.5570335388183594, -0.46249863505363464, -0.04928545653820038, -0.2705090045928955, 0.05264072120189667, 0.13819697499275208, -0.5062898993492126, 0.1252443492412567, 0.47072142362594604, -0.2327646017074585, -0.23818427324295044, 0.13544514775276184, -0.0402386337518692, -0.07750748842954636, 0.14544792473316193, 0.5163580179214478, 0.024407953023910522, -0.0011555280070751905, 0.10284118354320526, 0.139142245054245, -0.013760372996330261, 0.04797636717557907, -0.11272125691175461, -0.4224165081977844, 0.031547412276268005, -0.05201566964387894, 0.23485644161701202, 0.26811274886131287, 0.009060812182724476, -0.02485668659210205, 0.06396143138408661, 0.055585794150829315, -0.013633809983730316, 0.17304891347885132, 0.08112602680921555, 0.043288134038448334, 0.2867952287197113, -0.19524157047271729, 0.1164323166012764, 0.2705213129520416, 0.6125137805938721, -0.09613645076751709, -0.1644974946975708, 0.41974207758903503, 0.2101631760597229, 0.10946457087993622, 0.2773963212966919, -0.12531161308288574, -0.20545655488967896, -0.3309934735298157, 0.11345870792865753, 0.30076608061790466, 0.28043124079704285, -0.01815478503704071, -0.04016025736927986, -0.12876181304454803, 0.022847218438982964, 0.16645251214504242, -0.030744703486561775, 0.15805433690547943, 0.4151938259601593, 0.033032238483428955, -0.10364999622106552, 0.44872283935546875, 0.3356066644191742, 0.7207559943199158, 0.010694380849599838, 0.05259151756763458, 0.577824592590332, 0.013551004230976105, 0.42461729049682617, -0.27463221549987793, 0.27485817670822144, -0.251974493265152, -0.5210761427879333, 0.044194817543029785, -0.11719736456871033, -0.3844122290611267, 0.11347965896129608, -0.19381557404994965, 0.015840984880924225, 0.40714848041534424, 0.06875134259462357, 0.3557630181312561, 0.06470508873462677, 0.3553381562232971, -0.32622358202934265, -0.36028411984443665, 0.10783115029335022, 0.09503345936536789, -0.0484304241836071, 0.010548710823059082, -0.27636444568634033, -0.269264817237854, 0.0536683052778244, -0.12838394939899445, 0.22093719244003296, -0.7933565378189087, -0.08589250594377518, 0.20429538190364838, -0.22392895817756653, 0.15496236085891724, 0.2518289387226105, 0.37335479259490967, 0.11799833178520203, -0.30785509943962097, 0.08739781379699707, 0.12036650627851486, 0.06490853428840637, 0.12446451932191849, -0.09169153869152069, 0.47453761100769043, -0.19401666522026062, -0.0660567507147789, -0.18981891870498657, -0.05583278462290764, -0.2215322107076645, 0.4300838112831116, -0.38634538650512695, -0.43577516078948975, -0.03729914501309395, -0.0546230711042881, -0.03807998448610306, -0.2631295919418335, -0.06334187090396881, 0.0647725909948349, -0.16569842398166656, -0.09967327862977982, 0.09520477056503296, -0.12941648066043854, -0.34294506907463074, 0.06163524091243744, 0.2117558717727661, -0.1679016351699829, 0.11829045414924622, 0.15002092719078064, 0.22626252472400665, 0.040645189583301544, -0.1507023721933365, 0.12424180656671524, 0.12958429753780365, -0.4625425934791565, 0.13728968799114227, -0.14326737821102142, -0.07403731346130371, 0.20331822335720062, 0.6734073162078857, 0.07575272023677826, 0.05881989747285843, 0.0195530466735363, -0.04438943788409233, -0.4824235141277313, -0.04663458466529846, -0.0589355044066906, 0.1743708997964859, -0.014730779454112053, 0.606868326663971, 0.18536144495010376, 0.09858384728431702, -0.22413527965545654, -0.19401587545871735, -0.45608991384506226, 0.004823315888643265, 0.256357342004776, -0.142713725566864, 0.1501270979642868, -0.019263293594121933, 0.005343159660696983, 0.34506756067276, -0.13614964485168457, -0.12455098330974579, 0.056201059371232986, 0.1394144594669342, 0.5006353259086609, -0.25303971767425537, -0.2139219045639038, 0.20028339326381683, -0.45761939883232117, -0.1677025854587555, 0.31070491671562195, 0.2047923505306244, -0.29685401916503906, -0.21386758983135223, 0.25785037875175476, 0.12040399760007858, -0.1960657835006714, -0.026586338877677917, 0.32491469383239746, 0.11860225349664688, 0.03426602855324745, 0.06296001374721527, -0.14064818620681763, 0.039777614176273346, 0.19064097106456757, 0.07360568642616272, -0.028329811990261078, 0.03156377002596855, 0.2545522451400757, -0.3750663995742798, -0.2104620635509491, -0.1406095027923584, -0.048170603811740875, -0.030850142240524292, -0.17640230059623718, 0.06883832812309265, 0.025464460253715515, 0.047361746430397034, -0.08687037229537964, 0.04383903741836548, 0.46402764320373535, 0.07326444238424301, -0.05269980430603027, 0.19238007068634033, 0.39519166946411133, -0.07425189018249512, -0.2395327240228653, 0.16574200987815857, 0.06416913121938705, -0.13303565979003906, 0.028994200751185417, 0.4475802779197693, -0.11579085886478424, 0.3669547140598297, -0.20564618706703186, -0.10719472169876099, 0.01724211871623993, -0.07563160359859467, 0.027269206941127777, -0.0004787333309650421, -0.24257487058639526, -0.14598707854747772, 0.20841997861862183, -0.4114045798778534, 0.03559985011816025, -0.02540859580039978, -0.022808179259300232, 0.13271579146385193, -0.08525660634040833, -0.0984998419880867, -0.17308436334133148, -0.22865909337997437, -0.19122403860092163, 0.10182762145996094, -0.26211047172546387, 0.14940594136714935, -0.18024249374866486, -0.04554887115955353, -0.2522968053817749, -0.16248296201229095, -0.20178765058517456, 0.07571343332529068, 0.0014230236411094666, 0.13244174420833588, -0.08691823482513428, 0.22830821573734283, -0.46713054180145264, 0.08461400866508484, -0.07417603582143784, -0.04144372045993805, 0.5216245055198669, -0.2772117257118225, -0.39162054657936096, -0.2933710515499115, 0.3712121844291687, 0.4211888015270233, 0.09983097016811371, 0.10758157074451447, 0.1789460927248001, 0.3164709806442261, 0.11739738285541534, 0.22590458393096924, 0.20934543013572693, -0.06803369522094727, -0.07134376466274261, 0.3802041709423065, -0.03061525523662567, -0.0672217607498169, -0.024490829557180405, 0.006751786917448044, 0.4540180265903473, -0.3554114103317261, 0.13857004046440125, 0.10380237549543381, -0.016081348061561584, -0.08854347467422485, 0.1836738884449005, -0.04078037291765213, 0.2201063632965088, 0.5140336751937866, -0.2947464883327484, 0.18666109442710876, 0.03986116498708725, 0.056831762194633484, -0.12508957087993622, 0.6414744257926941, 0.20150461792945862, 0.07858734577894211, -0.25482383370399475, -0.008022397756576538, -0.3166707158088684, 0.45179349184036255, -0.024977993220090866, 0.21127909421920776, 0.25990238785743713, 0.0018525999039411545, 0.36467114090919495, 0.20574383437633514, -0.12133549153804779, 0.37315046787261963, -0.049399107694625854, 0.18114840984344482, -0.11287540197372437, -0.31993016600608826, -0.6019214391708374, -0.17499062418937683, -0.030301176011562347, -0.09800206124782562, 0.0699094608426094, 0.06503066420555115, 0.07569966465234756, 0.006990770809352398, -0.31384915113449097, 0.24096354842185974, 0.39745455980300903, 0.25003185868263245, 0.2661224603652954, 0.39246976375579834, -0.1516643464565277, 0.05802140384912491, -0.10579170286655426, -0.42187076807022095, -0.34147748351097107, -0.14401119947433472, -0.21878322958946228, 0.2718352675437927, 0.02436945028603077, 0.1895832121372223, -0.24189810454845428, -0.4366146922111511, -0.03122703731060028, 0.20300835371017456, 0.19072918593883514, 0.11293760687112808, -0.11464053392410278, 0.03267429769039154, 0.5494959950447083, 0.21267065405845642, 0.11253927648067474, 0.01656475104391575, -0.24212346971035004, -0.3317560851573944, 0.27510467171669006, -0.2684337794780731, -0.0808740109205246, -0.14430752396583557, -0.08264367282390594, 0.008200675249099731, 0.24559135735034943, -0.22146138548851013, 0.03461586683988571, 0.17331695556640625, -0.12567350268363953, -0.24505552649497986, 0.09378814697265625, -0.01330919936299324, 0.21441803872585297, 0.0029966309666633606, 0.2994561195373535, 0.18012550473213196, -0.06065884977579117, -0.1818595826625824, -0.03855535760521889 ]
https://github.com/huggingface/datasets/issues/3339
to_tf_dataset fails on TPU
Thank you for the explanation. I didn't realize the nuances of `tf.numpy_function`. In this scenario, would it be better to use `export(format='tfrecord')` ? It's not quite the same, but for very large datasets that don't fit in memory it looks like it is the only option. I haven't used `export` before, but I do recall reading that there are suggestions for how big and how many tfrecords there should be to not bottleneck the TPU. It might be nice if there were a way for the `export` method to split the files up into appropriate chunk sizes depending on the size of the dataset and the number of devices. And if that is too much, it would be nice to be able to specify the number of files that would be created when using `export`. Well... maybe the user should just do the chunking themselves and call `export` a bunch of times. Whatever the case, you have been helpful. Thanks Tensorflow boy ;-)
Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5
163
to_tf_dataset fails on TPU Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5 Thank you for the explanation. I didn't realize the nuances of `tf.numpy_function`. In this scenario, would it be better to use `export(format='tfrecord')` ? It's not quite the same, but for very large datasets that don't fit in memory it looks like it is the only option. I haven't used `export` before, but I do recall reading that there are suggestions for how big and how many tfrecords there should be to not bottleneck the TPU. It might be nice if there were a way for the `export` method to split the files up into appropriate chunk sizes depending on the size of the dataset and the number of devices. And if that is too much, it would be nice to be able to specify the number of files that would be created when using `export`. Well... maybe the user should just do the chunking themselves and call `export` a bunch of times. Whatever the case, you have been helpful. Thanks Tensorflow boy ;-)
[ -0.23771564662456512, -0.13588324189186096, 0.15924979746341705, 0.20368322730064392, 0.4153631329536438, 0.010035589337348938, 0.36434823274612427, 0.02571447193622589, -0.45698538422584534, 0.18012039363384247, -0.05542434751987457, 0.2911759614944458, 0.25148308277130127, 0.49292314052581787, 0.1305927038192749, -0.0885014533996582, -0.14083001017570496, 0.04940231516957283, -0.08772541582584381, -0.13199655711650848, -0.14966121315956116, 0.40157121419906616, 0.08683475852012634, 0.056788139045238495, -0.5214216113090515, -0.15756748616695404, 0.22633013129234314, -0.09397559612989426, 0.12071826308965683, 0.11292140930891037, 0.36486586928367615, -0.3170059621334076, -0.18162773549556732, 0.7030659914016724, -0.000118717820441816, 0.37979477643966675, -0.06943470239639282, -0.1777595430612564, -0.10312157869338989, -0.066444993019104, -0.3455982506275177, 0.14057326316833496, 0.0220208577811718, -0.022652707993984222, -0.3122105002403259, 0.3715745806694031, 0.09190893918275833, 0.3271479308605194, 0.24842701852321625, 0.4748542010784149, 0.10627935081720352, 0.5870957374572754, 0.1409711241722107, -0.11736282706260681, -0.07481011003255844, -0.11986283957958221, -0.45752066373825073, 0.264286071062088, -0.25509580969810486, 0.008434465155005455, 0.20665287971496582, -0.2624976336956024, 0.1700136512517929, -0.13789209723472595, 0.038889579474925995, 0.19863004982471466, 0.2847888171672821, -0.5665247440338135, 0.061780959367752075, 0.30999648571014404, 0.4110127091407776, -0.44602179527282715, -0.3044816553592682, -0.007869970053434372, -0.14599183201789856, -0.25747159123420715, 0.261557012796402, -0.10981627553701401, -0.21943071484565735, 0.21896354854106903, -0.14863625168800354, 0.05125102028250694, -0.15174540877342224, 0.043736424297094345, -0.17802295088768005, 0.2540242075920105, 0.17232471704483032, 0.11058545112609863, -0.0783795565366745, -0.059119708836078644, 0.3977122902870178, 0.005314292386174202, 0.0010840445756912231, -0.12332145869731903, -0.478484570980072, -0.26403337717056274, -0.03522484004497528, -0.25780296325683594, -0.16546395421028137, -0.36977410316467285, 0.2542356252670288, -0.18789738416671753, 0.06523584574460983, 0.1911207139492035, 0.2713415026664734, -0.05217557027935982, -0.42984461784362793, 0.46830716729164124, -0.049438051879405975, -0.23376469314098358, -0.23609985411167145, 0.008618680760264397, 0.22364728152751923, -0.21192555129528046, -0.12509219348430634, -0.28156206011772156, 0.06839323788881302, -0.20356981456279755, -0.23386350274085999, 0.00852244533598423, -0.2764796018600464, 0.21130380034446716, -0.14590448141098022, 0.016297172755002975, 0.24596798419952393, 0.18179428577423096, 0.18682526051998138, 0.01810617186129093, -0.36816683411598206, 0.15529195964336395, -0.23458904027938843, -0.114943727850914, -0.051060039550065994, 0.027247201651334763, 0.048222269862890244, -0.24051141738891602, -0.11296292394399643, -0.17616038024425507, 0.1284230649471283, 0.16611173748970032, -0.029086917638778687, -0.2764332890510559, 0.037780556827783585, 0.6523357629776001, -0.011972690001130104, -0.1389114111661911, 0.04091370478272438, -0.24776647984981537, -0.004475407302379608, 0.11058322340250015, -0.33037975430488586, -0.37958797812461853, 0.17840825021266937, 0.06130144000053406, -0.07656379044055939, -0.1235889345407486, -0.16981810331344604, 0.3062872588634491, 0.17625752091407776, -0.3321531414985657, -0.1371781826019287, -0.4028523564338684, -0.5160397887229919, -0.046557821333408356, 0.34211480617523193, 0.22934669256210327, -0.39996808767318726, 0.1405467540025711, 0.34652474522590637, -0.131147563457489, 0.36675167083740234, 0.26316702365875244, 0.17965799570083618, 0.2890564501285553, -0.008755446411669254, 0.12078718841075897, 0.37460362911224365, -0.053248897194862366, -0.30760353803634644, 0.29295220971107483, -0.4511575698852539, -0.0498889684677124, -0.3144187033176422, -0.07489443570375443, -0.2482600212097168, -0.1482320874929428, 0.19594120979309082, 0.33590108156204224, -0.45453301072120667, 0.11553999036550522, -0.35592836141586304, -0.10350434482097626, 0.09483134001493454, 0.027072936296463013, 0.1515790969133377, 0.15156811475753784, 0.1807980239391327, 0.09271997213363647, 0.15587547421455383, -0.05276399478316307, -0.14637169241905212, 0.05242779850959778, 0.6204760074615479, -0.32516390085220337, 0.07348925620317459, 0.3552188277244568, -0.24545541405677795, 0.22707879543304443, 0.06420231610536575, 0.4079868197441101, 0.17517390847206116, 0.19100378453731537, 0.016536016017198563, 0.21328002214431763, 0.24601557850837708, -0.0692218542098999, 0.028052177280187607, 0.14790605008602142, -0.2696961462497711, -0.12289109826087952, -0.012478627264499664, 0.4018408954143524, -0.25341635942459106, -0.003920647781342268, -0.4376440644264221, 0.511625349521637, 0.037122856825590134, -0.3100269138813019, 0.04856231063604355, 0.12471803277730942, 0.0814705565571785, 0.013094458729028702, -0.289496511220932, 0.2103205919265747, 0.057983286678791046, 0.28986886143684387, -0.17630615830421448, 0.36910003423690796, 0.045159585773944855, -0.3981795012950897, -0.4226457476615906, 0.07847099006175995, 0.15357258915901184, 0.06893604248762131, 0.04635794833302498, 0.026118755340576172, -0.012422408908605576, -0.04868625849485397, 0.08552484214305878, -0.003822728991508484, 0.06633718311786652, 0.0859498530626297, 0.14665329456329346, -0.04134102910757065, -0.10519154369831085, 0.1442936360836029, -0.22236555814743042, 0.15598143637180328, -0.42876243591308594, 0.42300280928611755, 0.3258287310600281, 0.08991242945194244, -0.08797156065702438, 0.12927034497261047, 0.2320268452167511, -0.2631540298461914, 0.25955450534820557, 0.4011164605617523, 0.33725082874298096, 0.10746780782938004, -0.031285401433706284, 0.06520087271928787, -0.3169078826904297, -0.3241821527481079, 0.03183189034461975, 0.05888094753026962, 0.13566270470619202, 0.3109448552131653, 0.2310614436864853, 0.4301360845565796, -0.11651278287172318, -0.03660356253385544, 0.09247850626707077, 0.23343083262443542, -0.5189223885536194, 0.024309126660227776, -0.10077480971813202, -0.10032150894403458, 0.018587369471788406, 0.24012427031993866, -0.003311567008495331, -0.344738245010376, -0.06453254818916321, 0.12114641070365906, -0.20952047407627106, 0.10385268926620483, -0.14294618368148804, 0.16827081143856049, 0.0045915525406599045, -0.2821536362171173, -0.00712551549077034, -0.23065760731697083, -0.27351588010787964, 0.05895727500319481, 0.1348588466644287, 0.367063969373703, 0.06000015139579773, -0.13004222512245178, -0.13350436091423035, 0.19966697692871094, -0.49041619896888733, 0.33018428087234497, -0.2673295736312866, 0.6307039260864258, 0.07533974945545197, 0.15962964296340942, -0.35126543045043945, -0.3435927629470825, 0.19549931585788727, -0.21508187055587769, -0.22673609852790833, 0.1991051435470581, -0.31094890832901, -0.1440781205892563, -0.05919988453388214, -0.292224645614624, -0.14981357753276825, -0.29584771394729614, 0.10666155815124512, -0.03619035705924034, 0.1189282089471817, 0.5792866945266724, 0.23186738789081573, 0.08794006705284119, 0.23162314295768738, -0.11621114611625671, -0.07526779174804688, -0.017588462680578232, 0.2094080150127411, -0.020616240799427032, -0.30545541644096375, 0.045614760369062424, 0.08302867412567139, 0.1659787893295288, 0.3440009355545044, -0.5312433838844299, -0.13111265003681183, -0.21575111150741577, 0.07981589436531067, 0.03847375884652138, -0.17434896528720856, 0.17717599868774414, 0.018261980265378952, 0.034093208611011505, -0.22669601440429688, -0.47385865449905396, 0.24242377281188965, 0.661228358745575, 0.12861081957817078, 0.013004880398511887, 0.3885803520679474, -0.07672511041164398, 0.36677026748657227, -0.09407941997051239, -0.3093855381011963, 0.17077909409999847, -0.2439345419406891, 0.19916985929012299, -0.2772425711154938, -0.13128629326820374, 0.4598906636238098, -0.0837600827217102, -0.32510489225387573, 0.041661061346530914, -0.2754909098148346, -0.18946023285388947, -0.19939227402210236, 0.0008017159998416901, -0.17225459218025208, -0.36386826634407043, 0.04365178197622299, 0.1790497899055481, 0.17523318529129028, 0.19776539504528046, -0.0633707046508789, -0.10117335617542267, -0.14336100220680237, -0.0638723075389862, 0.0281379371881485, 0.23831284046173096, 0.16773591935634613, 0.28498971462249756, -0.21488629281520844, -0.4850679636001587, 0.019699469208717346, 0.15576326847076416, 0.5570335388183594, -0.46249863505363464, -0.04928545653820038, -0.2705090045928955, 0.05264072120189667, 0.13819697499275208, -0.5062898993492126, 0.1252443492412567, 0.47072142362594604, -0.2327646017074585, -0.23818427324295044, 0.13544514775276184, -0.0402386337518692, -0.07750748842954636, 0.14544792473316193, 0.5163580179214478, 0.024407953023910522, -0.0011555280070751905, 0.10284118354320526, 0.139142245054245, -0.013760372996330261, 0.04797636717557907, -0.11272125691175461, -0.4224165081977844, 0.031547412276268005, -0.05201566964387894, 0.23485644161701202, 0.26811274886131287, 0.009060812182724476, -0.02485668659210205, 0.06396143138408661, 0.055585794150829315, -0.013633809983730316, 0.17304891347885132, 0.08112602680921555, 0.043288134038448334, 0.2867952287197113, -0.19524157047271729, 0.1164323166012764, 0.2705213129520416, 0.6125137805938721, -0.09613645076751709, -0.1644974946975708, 0.41974207758903503, 0.2101631760597229, 0.10946457087993622, 0.2773963212966919, -0.12531161308288574, -0.20545655488967896, -0.3309934735298157, 0.11345870792865753, 0.30076608061790466, 0.28043124079704285, -0.01815478503704071, -0.04016025736927986, -0.12876181304454803, 0.022847218438982964, 0.16645251214504242, -0.030744703486561775, 0.15805433690547943, 0.4151938259601593, 0.033032238483428955, -0.10364999622106552, 0.44872283935546875, 0.3356066644191742, 0.7207559943199158, 0.010694380849599838, 0.05259151756763458, 0.577824592590332, 0.013551004230976105, 0.42461729049682617, -0.27463221549987793, 0.27485817670822144, -0.251974493265152, -0.5210761427879333, 0.044194817543029785, -0.11719736456871033, -0.3844122290611267, 0.11347965896129608, -0.19381557404994965, 0.015840984880924225, 0.40714848041534424, 0.06875134259462357, 0.3557630181312561, 0.06470508873462677, 0.3553381562232971, -0.32622358202934265, -0.36028411984443665, 0.10783115029335022, 0.09503345936536789, -0.0484304241836071, 0.010548710823059082, -0.27636444568634033, -0.269264817237854, 0.0536683052778244, -0.12838394939899445, 0.22093719244003296, -0.7933565378189087, -0.08589250594377518, 0.20429538190364838, -0.22392895817756653, 0.15496236085891724, 0.2518289387226105, 0.37335479259490967, 0.11799833178520203, -0.30785509943962097, 0.08739781379699707, 0.12036650627851486, 0.06490853428840637, 0.12446451932191849, -0.09169153869152069, 0.47453761100769043, -0.19401666522026062, -0.0660567507147789, -0.18981891870498657, -0.05583278462290764, -0.2215322107076645, 0.4300838112831116, -0.38634538650512695, -0.43577516078948975, -0.03729914501309395, -0.0546230711042881, -0.03807998448610306, -0.2631295919418335, -0.06334187090396881, 0.0647725909948349, -0.16569842398166656, -0.09967327862977982, 0.09520477056503296, -0.12941648066043854, -0.34294506907463074, 0.06163524091243744, 0.2117558717727661, -0.1679016351699829, 0.11829045414924622, 0.15002092719078064, 0.22626252472400665, 0.040645189583301544, -0.1507023721933365, 0.12424180656671524, 0.12958429753780365, -0.4625425934791565, 0.13728968799114227, -0.14326737821102142, -0.07403731346130371, 0.20331822335720062, 0.6734073162078857, 0.07575272023677826, 0.05881989747285843, 0.0195530466735363, -0.04438943788409233, -0.4824235141277313, -0.04663458466529846, -0.0589355044066906, 0.1743708997964859, -0.014730779454112053, 0.606868326663971, 0.18536144495010376, 0.09858384728431702, -0.22413527965545654, -0.19401587545871735, -0.45608991384506226, 0.004823315888643265, 0.256357342004776, -0.142713725566864, 0.1501270979642868, -0.019263293594121933, 0.005343159660696983, 0.34506756067276, -0.13614964485168457, -0.12455098330974579, 0.056201059371232986, 0.1394144594669342, 0.5006353259086609, -0.25303971767425537, -0.2139219045639038, 0.20028339326381683, -0.45761939883232117, -0.1677025854587555, 0.31070491671562195, 0.2047923505306244, -0.29685401916503906, -0.21386758983135223, 0.25785037875175476, 0.12040399760007858, -0.1960657835006714, -0.026586338877677917, 0.32491469383239746, 0.11860225349664688, 0.03426602855324745, 0.06296001374721527, -0.14064818620681763, 0.039777614176273346, 0.19064097106456757, 0.07360568642616272, -0.028329811990261078, 0.03156377002596855, 0.2545522451400757, -0.3750663995742798, -0.2104620635509491, -0.1406095027923584, -0.048170603811740875, -0.030850142240524292, -0.17640230059623718, 0.06883832812309265, 0.025464460253715515, 0.047361746430397034, -0.08687037229537964, 0.04383903741836548, 0.46402764320373535, 0.07326444238424301, -0.05269980430603027, 0.19238007068634033, 0.39519166946411133, -0.07425189018249512, -0.2395327240228653, 0.16574200987815857, 0.06416913121938705, -0.13303565979003906, 0.028994200751185417, 0.4475802779197693, -0.11579085886478424, 0.3669547140598297, -0.20564618706703186, -0.10719472169876099, 0.01724211871623993, -0.07563160359859467, 0.027269206941127777, -0.0004787333309650421, -0.24257487058639526, -0.14598707854747772, 0.20841997861862183, -0.4114045798778534, 0.03559985011816025, -0.02540859580039978, -0.022808179259300232, 0.13271579146385193, -0.08525660634040833, -0.0984998419880867, -0.17308436334133148, -0.22865909337997437, -0.19122403860092163, 0.10182762145996094, -0.26211047172546387, 0.14940594136714935, -0.18024249374866486, -0.04554887115955353, -0.2522968053817749, -0.16248296201229095, -0.20178765058517456, 0.07571343332529068, 0.0014230236411094666, 0.13244174420833588, -0.08691823482513428, 0.22830821573734283, -0.46713054180145264, 0.08461400866508484, -0.07417603582143784, -0.04144372045993805, 0.5216245055198669, -0.2772117257118225, -0.39162054657936096, -0.2933710515499115, 0.3712121844291687, 0.4211888015270233, 0.09983097016811371, 0.10758157074451447, 0.1789460927248001, 0.3164709806442261, 0.11739738285541534, 0.22590458393096924, 0.20934543013572693, -0.06803369522094727, -0.07134376466274261, 0.3802041709423065, -0.03061525523662567, -0.0672217607498169, -0.024490829557180405, 0.006751786917448044, 0.4540180265903473, -0.3554114103317261, 0.13857004046440125, 0.10380237549543381, -0.016081348061561584, -0.08854347467422485, 0.1836738884449005, -0.04078037291765213, 0.2201063632965088, 0.5140336751937866, -0.2947464883327484, 0.18666109442710876, 0.03986116498708725, 0.056831762194633484, -0.12508957087993622, 0.6414744257926941, 0.20150461792945862, 0.07858734577894211, -0.25482383370399475, -0.008022397756576538, -0.3166707158088684, 0.45179349184036255, -0.024977993220090866, 0.21127909421920776, 0.25990238785743713, 0.0018525999039411545, 0.36467114090919495, 0.20574383437633514, -0.12133549153804779, 0.37315046787261963, -0.049399107694625854, 0.18114840984344482, -0.11287540197372437, -0.31993016600608826, -0.6019214391708374, -0.17499062418937683, -0.030301176011562347, -0.09800206124782562, 0.0699094608426094, 0.06503066420555115, 0.07569966465234756, 0.006990770809352398, -0.31384915113449097, 0.24096354842185974, 0.39745455980300903, 0.25003185868263245, 0.2661224603652954, 0.39246976375579834, -0.1516643464565277, 0.05802140384912491, -0.10579170286655426, -0.42187076807022095, -0.34147748351097107, -0.14401119947433472, -0.21878322958946228, 0.2718352675437927, 0.02436945028603077, 0.1895832121372223, -0.24189810454845428, -0.4366146922111511, -0.03122703731060028, 0.20300835371017456, 0.19072918593883514, 0.11293760687112808, -0.11464053392410278, 0.03267429769039154, 0.5494959950447083, 0.21267065405845642, 0.11253927648067474, 0.01656475104391575, -0.24212346971035004, -0.3317560851573944, 0.27510467171669006, -0.2684337794780731, -0.0808740109205246, -0.14430752396583557, -0.08264367282390594, 0.008200675249099731, 0.24559135735034943, -0.22146138548851013, 0.03461586683988571, 0.17331695556640625, -0.12567350268363953, -0.24505552649497986, 0.09378814697265625, -0.01330919936299324, 0.21441803872585297, 0.0029966309666633606, 0.2994561195373535, 0.18012550473213196, -0.06065884977579117, -0.1818595826625824, -0.03855535760521889 ]
https://github.com/huggingface/datasets/issues/3339
to_tf_dataset fails on TPU
Yeah, this is something we really should have a proper guide on. I'll make a note to test some things and make a 'TF TPU best practices' notebook at some point, but in the meantime I think your solution of exporting TFRecords will probably work.
Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5
45
to_tf_dataset fails on TPU Using `to_tf_dataset` to create a dataset and then putting it in `model.fit` results in an internal error on TPUs. I've only tried on Colab and Kaggle TPUs, not GCP TPUs. ## Steps to reproduce the bug I made a colab to show the error. https://colab.research.google.com/drive/12x_PFKzGouFxqD4OuWfnycW_1TaT276z?usp=sharing ## Expected results dataset from `to_tf_dataset` works in `model.fit` Right below the first error in the colab I use `tf.data.Dataset.from_tensor_slices` and `model.fit` works just fine. This is the desired outcome. ## Actual results ``` InternalError: 5 root error(s) found. (0) INTERNAL: {{function_node __inference_train_function_30558}} failed to connect to all addresses Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0: :{"created":"@1638231897.932218653","description":"Failed to pick subchannel","file":"third_party/grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3151,"referenced_errors":[{"created":"@1638231897.932216754","description":"failed to connect to all addresses","file":"third_party/grpc/src/core/lib/transport/error_utils.cc","file_line":161,"grpc_status":14}]} [[{{node StatefulPartitionedCall}}]] [[MultiDeviceIteratorGetNextFromShard]] Executing non-communication op <MultiDeviceIteratorGetNextFromShard> originally returned UnavailableError, and was replaced by InternalError to avoid invoking TF network error handling logic. [[RemoteCall]] [[IteratorGetNextAsOptional]] [[tpu_compile_succeeded_assert/_14023832043698465348/_7/_439]] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 - Tensorflow 2.7.0 - `transformers` 4.12.5 Yeah, this is something we really should have a proper guide on. I'll make a note to test some things and make a 'TF TPU best practices' notebook at some point, but in the meantime I think your solution of exporting TFRecords will probably work.
[ -0.23771564662456512, -0.13588324189186096, 0.15924979746341705, 0.20368322730064392, 0.4153631329536438, 0.010035589337348938, 0.36434823274612427, 0.02571447193622589, -0.45698538422584534, 0.18012039363384247, -0.05542434751987457, 0.2911759614944458, 0.25148308277130127, 0.49292314052581787, 0.1305927038192749, -0.0885014533996582, -0.14083001017570496, 0.04940231516957283, -0.08772541582584381, -0.13199655711650848, -0.14966121315956116, 0.40157121419906616, 0.08683475852012634, 0.056788139045238495, -0.5214216113090515, -0.15756748616695404, 0.22633013129234314, -0.09397559612989426, 0.12071826308965683, 0.11292140930891037, 0.36486586928367615, -0.3170059621334076, -0.18162773549556732, 0.7030659914016724, -0.000118717820441816, 0.37979477643966675, -0.06943470239639282, -0.1777595430612564, -0.10312157869338989, -0.066444993019104, -0.3455982506275177, 0.14057326316833496, 0.0220208577811718, -0.022652707993984222, -0.3122105002403259, 0.3715745806694031, 0.09190893918275833, 0.3271479308605194, 0.24842701852321625, 0.4748542010784149, 0.10627935081720352, 0.5870957374572754, 0.1409711241722107, -0.11736282706260681, -0.07481011003255844, -0.11986283957958221, -0.45752066373825073, 0.264286071062088, -0.25509580969810486, 0.008434465155005455, 0.20665287971496582, -0.2624976336956024, 0.1700136512517929, -0.13789209723472595, 0.038889579474925995, 0.19863004982471466, 0.2847888171672821, -0.5665247440338135, 0.061780959367752075, 0.30999648571014404, 0.4110127091407776, -0.44602179527282715, -0.3044816553592682, -0.007869970053434372, -0.14599183201789856, -0.25747159123420715, 0.261557012796402, -0.10981627553701401, -0.21943071484565735, 0.21896354854106903, -0.14863625168800354, 0.05125102028250694, -0.15174540877342224, 0.043736424297094345, -0.17802295088768005, 0.2540242075920105, 0.17232471704483032, 0.11058545112609863, -0.0783795565366745, -0.059119708836078644, 0.3977122902870178, 0.005314292386174202, 0.0010840445756912231, -0.12332145869731903, -0.478484570980072, -0.26403337717056274, -0.03522484004497528, -0.25780296325683594, -0.16546395421028137, -0.36977410316467285, 0.2542356252670288, -0.18789738416671753, 0.06523584574460983, 0.1911207139492035, 0.2713415026664734, -0.05217557027935982, -0.42984461784362793, 0.46830716729164124, -0.049438051879405975, -0.23376469314098358, -0.23609985411167145, 0.008618680760264397, 0.22364728152751923, -0.21192555129528046, -0.12509219348430634, -0.28156206011772156, 0.06839323788881302, -0.20356981456279755, -0.23386350274085999, 0.00852244533598423, -0.2764796018600464, 0.21130380034446716, -0.14590448141098022, 0.016297172755002975, 0.24596798419952393, 0.18179428577423096, 0.18682526051998138, 0.01810617186129093, -0.36816683411598206, 0.15529195964336395, -0.23458904027938843, -0.114943727850914, -0.051060039550065994, 0.027247201651334763, 0.048222269862890244, -0.24051141738891602, -0.11296292394399643, -0.17616038024425507, 0.1284230649471283, 0.16611173748970032, -0.029086917638778687, -0.2764332890510559, 0.037780556827783585, 0.6523357629776001, -0.011972690001130104, -0.1389114111661911, 0.04091370478272438, -0.24776647984981537, -0.004475407302379608, 0.11058322340250015, -0.33037975430488586, -0.37958797812461853, 0.17840825021266937, 0.06130144000053406, -0.07656379044055939, -0.1235889345407486, -0.16981810331344604, 0.3062872588634491, 0.17625752091407776, -0.3321531414985657, -0.1371781826019287, -0.4028523564338684, -0.5160397887229919, -0.046557821333408356, 0.34211480617523193, 0.22934669256210327, -0.39996808767318726, 0.1405467540025711, 0.34652474522590637, -0.131147563457489, 0.36675167083740234, 0.26316702365875244, 0.17965799570083618, 0.2890564501285553, -0.008755446411669254, 0.12078718841075897, 0.37460362911224365, -0.053248897194862366, -0.30760353803634644, 0.29295220971107483, -0.4511575698852539, -0.0498889684677124, -0.3144187033176422, -0.07489443570375443, -0.2482600212097168, -0.1482320874929428, 0.19594120979309082, 0.33590108156204224, -0.45453301072120667, 0.11553999036550522, -0.35592836141586304, -0.10350434482097626, 0.09483134001493454, 0.027072936296463013, 0.1515790969133377, 0.15156811475753784, 0.1807980239391327, 0.09271997213363647, 0.15587547421455383, -0.05276399478316307, -0.14637169241905212, 0.05242779850959778, 0.6204760074615479, -0.32516390085220337, 0.07348925620317459, 0.3552188277244568, -0.24545541405677795, 0.22707879543304443, 0.06420231610536575, 0.4079868197441101, 0.17517390847206116, 0.19100378453731537, 0.016536016017198563, 0.21328002214431763, 0.24601557850837708, -0.0692218542098999, 0.028052177280187607, 0.14790605008602142, -0.2696961462497711, -0.12289109826087952, -0.012478627264499664, 0.4018408954143524, -0.25341635942459106, -0.003920647781342268, -0.4376440644264221, 0.511625349521637, 0.037122856825590134, -0.3100269138813019, 0.04856231063604355, 0.12471803277730942, 0.0814705565571785, 0.013094458729028702, -0.289496511220932, 0.2103205919265747, 0.057983286678791046, 0.28986886143684387, -0.17630615830421448, 0.36910003423690796, 0.045159585773944855, -0.3981795012950897, -0.4226457476615906, 0.07847099006175995, 0.15357258915901184, 0.06893604248762131, 0.04635794833302498, 0.026118755340576172, -0.012422408908605576, -0.04868625849485397, 0.08552484214305878, -0.003822728991508484, 0.06633718311786652, 0.0859498530626297, 0.14665329456329346, -0.04134102910757065, -0.10519154369831085, 0.1442936360836029, -0.22236555814743042, 0.15598143637180328, -0.42876243591308594, 0.42300280928611755, 0.3258287310600281, 0.08991242945194244, -0.08797156065702438, 0.12927034497261047, 0.2320268452167511, -0.2631540298461914, 0.25955450534820557, 0.4011164605617523, 0.33725082874298096, 0.10746780782938004, -0.031285401433706284, 0.06520087271928787, -0.3169078826904297, -0.3241821527481079, 0.03183189034461975, 0.05888094753026962, 0.13566270470619202, 0.3109448552131653, 0.2310614436864853, 0.4301360845565796, -0.11651278287172318, -0.03660356253385544, 0.09247850626707077, 0.23343083262443542, -0.5189223885536194, 0.024309126660227776, -0.10077480971813202, -0.10032150894403458, 0.018587369471788406, 0.24012427031993866, -0.003311567008495331, -0.344738245010376, -0.06453254818916321, 0.12114641070365906, -0.20952047407627106, 0.10385268926620483, -0.14294618368148804, 0.16827081143856049, 0.0045915525406599045, -0.2821536362171173, -0.00712551549077034, -0.23065760731697083, -0.27351588010787964, 0.05895727500319481, 0.1348588466644287, 0.367063969373703, 0.06000015139579773, -0.13004222512245178, -0.13350436091423035, 0.19966697692871094, -0.49041619896888733, 0.33018428087234497, -0.2673295736312866, 0.6307039260864258, 0.07533974945545197, 0.15962964296340942, -0.35126543045043945, -0.3435927629470825, 0.19549931585788727, -0.21508187055587769, -0.22673609852790833, 0.1991051435470581, -0.31094890832901, -0.1440781205892563, -0.05919988453388214, -0.292224645614624, -0.14981357753276825, -0.29584771394729614, 0.10666155815124512, -0.03619035705924034, 0.1189282089471817, 0.5792866945266724, 0.23186738789081573, 0.08794006705284119, 0.23162314295768738, -0.11621114611625671, -0.07526779174804688, -0.017588462680578232, 0.2094080150127411, -0.020616240799427032, -0.30545541644096375, 0.045614760369062424, 0.08302867412567139, 0.1659787893295288, 0.3440009355545044, -0.5312433838844299, -0.13111265003681183, -0.21575111150741577, 0.07981589436531067, 0.03847375884652138, -0.17434896528720856, 0.17717599868774414, 0.018261980265378952, 0.034093208611011505, -0.22669601440429688, -0.47385865449905396, 0.24242377281188965, 0.661228358745575, 0.12861081957817078, 0.013004880398511887, 0.3885803520679474, -0.07672511041164398, 0.36677026748657227, -0.09407941997051239, -0.3093855381011963, 0.17077909409999847, -0.2439345419406891, 0.19916985929012299, -0.2772425711154938, -0.13128629326820374, 0.4598906636238098, -0.0837600827217102, -0.32510489225387573, 0.041661061346530914, -0.2754909098148346, -0.18946023285388947, -0.19939227402210236, 0.0008017159998416901, -0.17225459218025208, -0.36386826634407043, 0.04365178197622299, 0.1790497899055481, 0.17523318529129028, 0.19776539504528046, -0.0633707046508789, -0.10117335617542267, -0.14336100220680237, -0.0638723075389862, 0.0281379371881485, 0.23831284046173096, 0.16773591935634613, 0.28498971462249756, -0.21488629281520844, -0.4850679636001587, 0.019699469208717346, 0.15576326847076416, 0.5570335388183594, -0.46249863505363464, -0.04928545653820038, -0.2705090045928955, 0.05264072120189667, 0.13819697499275208, -0.5062898993492126, 0.1252443492412567, 0.47072142362594604, -0.2327646017074585, -0.23818427324295044, 0.13544514775276184, -0.0402386337518692, -0.07750748842954636, 0.14544792473316193, 0.5163580179214478, 0.024407953023910522, -0.0011555280070751905, 0.10284118354320526, 0.139142245054245, -0.013760372996330261, 0.04797636717557907, -0.11272125691175461, -0.4224165081977844, 0.031547412276268005, -0.05201566964387894, 0.23485644161701202, 0.26811274886131287, 0.009060812182724476, -0.02485668659210205, 0.06396143138408661, 0.055585794150829315, -0.013633809983730316, 0.17304891347885132, 0.08112602680921555, 0.043288134038448334, 0.2867952287197113, -0.19524157047271729, 0.1164323166012764, 0.2705213129520416, 0.6125137805938721, -0.09613645076751709, -0.1644974946975708, 0.41974207758903503, 0.2101631760597229, 0.10946457087993622, 0.2773963212966919, -0.12531161308288574, -0.20545655488967896, -0.3309934735298157, 0.11345870792865753, 0.30076608061790466, 0.28043124079704285, -0.01815478503704071, -0.04016025736927986, -0.12876181304454803, 0.022847218438982964, 0.16645251214504242, -0.030744703486561775, 0.15805433690547943, 0.4151938259601593, 0.033032238483428955, -0.10364999622106552, 0.44872283935546875, 0.3356066644191742, 0.7207559943199158, 0.010694380849599838, 0.05259151756763458, 0.577824592590332, 0.013551004230976105, 0.42461729049682617, -0.27463221549987793, 0.27485817670822144, -0.251974493265152, -0.5210761427879333, 0.044194817543029785, -0.11719736456871033, -0.3844122290611267, 0.11347965896129608, -0.19381557404994965, 0.015840984880924225, 0.40714848041534424, 0.06875134259462357, 0.3557630181312561, 0.06470508873462677, 0.3553381562232971, -0.32622358202934265, -0.36028411984443665, 0.10783115029335022, 0.09503345936536789, -0.0484304241836071, 0.010548710823059082, -0.27636444568634033, -0.269264817237854, 0.0536683052778244, -0.12838394939899445, 0.22093719244003296, -0.7933565378189087, -0.08589250594377518, 0.20429538190364838, -0.22392895817756653, 0.15496236085891724, 0.2518289387226105, 0.37335479259490967, 0.11799833178520203, -0.30785509943962097, 0.08739781379699707, 0.12036650627851486, 0.06490853428840637, 0.12446451932191849, -0.09169153869152069, 0.47453761100769043, -0.19401666522026062, -0.0660567507147789, -0.18981891870498657, -0.05583278462290764, -0.2215322107076645, 0.4300838112831116, -0.38634538650512695, -0.43577516078948975, -0.03729914501309395, -0.0546230711042881, -0.03807998448610306, -0.2631295919418335, -0.06334187090396881, 0.0647725909948349, -0.16569842398166656, -0.09967327862977982, 0.09520477056503296, -0.12941648066043854, -0.34294506907463074, 0.06163524091243744, 0.2117558717727661, -0.1679016351699829, 0.11829045414924622, 0.15002092719078064, 0.22626252472400665, 0.040645189583301544, -0.1507023721933365, 0.12424180656671524, 0.12958429753780365, -0.4625425934791565, 0.13728968799114227, -0.14326737821102142, -0.07403731346130371, 0.20331822335720062, 0.6734073162078857, 0.07575272023677826, 0.05881989747285843, 0.0195530466735363, -0.04438943788409233, -0.4824235141277313, -0.04663458466529846, -0.0589355044066906, 0.1743708997964859, -0.014730779454112053, 0.606868326663971, 0.18536144495010376, 0.09858384728431702, -0.22413527965545654, -0.19401587545871735, -0.45608991384506226, 0.004823315888643265, 0.256357342004776, -0.142713725566864, 0.1501270979642868, -0.019263293594121933, 0.005343159660696983, 0.34506756067276, -0.13614964485168457, -0.12455098330974579, 0.056201059371232986, 0.1394144594669342, 0.5006353259086609, -0.25303971767425537, -0.2139219045639038, 0.20028339326381683, -0.45761939883232117, -0.1677025854587555, 0.31070491671562195, 0.2047923505306244, -0.29685401916503906, -0.21386758983135223, 0.25785037875175476, 0.12040399760007858, -0.1960657835006714, -0.026586338877677917, 0.32491469383239746, 0.11860225349664688, 0.03426602855324745, 0.06296001374721527, -0.14064818620681763, 0.039777614176273346, 0.19064097106456757, 0.07360568642616272, -0.028329811990261078, 0.03156377002596855, 0.2545522451400757, -0.3750663995742798, -0.2104620635509491, -0.1406095027923584, -0.048170603811740875, -0.030850142240524292, -0.17640230059623718, 0.06883832812309265, 0.025464460253715515, 0.047361746430397034, -0.08687037229537964, 0.04383903741836548, 0.46402764320373535, 0.07326444238424301, -0.05269980430603027, 0.19238007068634033, 0.39519166946411133, -0.07425189018249512, -0.2395327240228653, 0.16574200987815857, 0.06416913121938705, -0.13303565979003906, 0.028994200751185417, 0.4475802779197693, -0.11579085886478424, 0.3669547140598297, -0.20564618706703186, -0.10719472169876099, 0.01724211871623993, -0.07563160359859467, 0.027269206941127777, -0.0004787333309650421, -0.24257487058639526, -0.14598707854747772, 0.20841997861862183, -0.4114045798778534, 0.03559985011816025, -0.02540859580039978, -0.022808179259300232, 0.13271579146385193, -0.08525660634040833, -0.0984998419880867, -0.17308436334133148, -0.22865909337997437, -0.19122403860092163, 0.10182762145996094, -0.26211047172546387, 0.14940594136714935, -0.18024249374866486, -0.04554887115955353, -0.2522968053817749, -0.16248296201229095, -0.20178765058517456, 0.07571343332529068, 0.0014230236411094666, 0.13244174420833588, -0.08691823482513428, 0.22830821573734283, -0.46713054180145264, 0.08461400866508484, -0.07417603582143784, -0.04144372045993805, 0.5216245055198669, -0.2772117257118225, -0.39162054657936096, -0.2933710515499115, 0.3712121844291687, 0.4211888015270233, 0.09983097016811371, 0.10758157074451447, 0.1789460927248001, 0.3164709806442261, 0.11739738285541534, 0.22590458393096924, 0.20934543013572693, -0.06803369522094727, -0.07134376466274261, 0.3802041709423065, -0.03061525523662567, -0.0672217607498169, -0.024490829557180405, 0.006751786917448044, 0.4540180265903473, -0.3554114103317261, 0.13857004046440125, 0.10380237549543381, -0.016081348061561584, -0.08854347467422485, 0.1836738884449005, -0.04078037291765213, 0.2201063632965088, 0.5140336751937866, -0.2947464883327484, 0.18666109442710876, 0.03986116498708725, 0.056831762194633484, -0.12508957087993622, 0.6414744257926941, 0.20150461792945862, 0.07858734577894211, -0.25482383370399475, -0.008022397756576538, -0.3166707158088684, 0.45179349184036255, -0.024977993220090866, 0.21127909421920776, 0.25990238785743713, 0.0018525999039411545, 0.36467114090919495, 0.20574383437633514, -0.12133549153804779, 0.37315046787261963, -0.049399107694625854, 0.18114840984344482, -0.11287540197372437, -0.31993016600608826, -0.6019214391708374, -0.17499062418937683, -0.030301176011562347, -0.09800206124782562, 0.0699094608426094, 0.06503066420555115, 0.07569966465234756, 0.006990770809352398, -0.31384915113449097, 0.24096354842185974, 0.39745455980300903, 0.25003185868263245, 0.2661224603652954, 0.39246976375579834, -0.1516643464565277, 0.05802140384912491, -0.10579170286655426, -0.42187076807022095, -0.34147748351097107, -0.14401119947433472, -0.21878322958946228, 0.2718352675437927, 0.02436945028603077, 0.1895832121372223, -0.24189810454845428, -0.4366146922111511, -0.03122703731060028, 0.20300835371017456, 0.19072918593883514, 0.11293760687112808, -0.11464053392410278, 0.03267429769039154, 0.5494959950447083, 0.21267065405845642, 0.11253927648067474, 0.01656475104391575, -0.24212346971035004, -0.3317560851573944, 0.27510467171669006, -0.2684337794780731, -0.0808740109205246, -0.14430752396583557, -0.08264367282390594, 0.008200675249099731, 0.24559135735034943, -0.22146138548851013, 0.03461586683988571, 0.17331695556640625, -0.12567350268363953, -0.24505552649497986, 0.09378814697265625, -0.01330919936299324, 0.21441803872585297, 0.0029966309666633606, 0.2994561195373535, 0.18012550473213196, -0.06065884977579117, -0.1818595826625824, -0.03855535760521889 ]
https://github.com/huggingface/datasets/issues/3337
Typing of Dataset.__getitem__ could be improved.
Hi ! Thanks for the suggestion, I didn't know about this decorator. If you are interesting in contributing, feel free to open a pull request to add the overload methods for each typing combination :) To assign you to this issue, you can comment `#self-assign` in this thread. `Dataset.__getitem__` is defined right here: https://github.com/huggingface/datasets/blob/e6f1352fe19679de897f3d962e616936a17094f5/src/datasets/arrow_dataset.py#L1840
## Describe the bug The newly added typing for Dataset.__getitem__ is Union[Dict, List]. This makes tools like mypy a bit awkward to use as we need to check the type manually. We could use type overloading to make this easier. [Documentation](https://docs.python.org/3/library/typing.html#typing.overload) ## Steps to reproduce the bug Let's have a file `test.py` ```python from typing import List, Dict, Any from datasets import Dataset ds = Dataset.from_dict({ 'a': [1,2,3], 'b': ["1", "2", "3"] }) one_colum: List[str] = ds['a'] some_index: Dict[Any, Any] = ds[1] ``` ## Expected results Running `mypy test.py` should not give any error. ## Actual results ``` test.py:10: error: Incompatible types in assignment (expression has type "Union[Dict[Any, Any], List[Any]]", variable has type "List[str]") test.py:11: error: Incompatible types in assignment (expression has type "Union[Dict[Any, Any], List[Any]]", variable has type "Dict[Any, Any]") Found 2 errors in 1 file (checked 1 source file) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.13.3 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.8 - PyArrow version: 6.0.1
54
Typing of Dataset.__getitem__ could be improved. ## Describe the bug The newly added typing for Dataset.__getitem__ is Union[Dict, List]. This makes tools like mypy a bit awkward to use as we need to check the type manually. We could use type overloading to make this easier. [Documentation](https://docs.python.org/3/library/typing.html#typing.overload) ## Steps to reproduce the bug Let's have a file `test.py` ```python from typing import List, Dict, Any from datasets import Dataset ds = Dataset.from_dict({ 'a': [1,2,3], 'b': ["1", "2", "3"] }) one_colum: List[str] = ds['a'] some_index: Dict[Any, Any] = ds[1] ``` ## Expected results Running `mypy test.py` should not give any error. ## Actual results ``` test.py:10: error: Incompatible types in assignment (expression has type "Union[Dict[Any, Any], List[Any]]", variable has type "List[str]") test.py:11: error: Incompatible types in assignment (expression has type "Union[Dict[Any, Any], List[Any]]", variable has type "Dict[Any, Any]") Found 2 errors in 1 file (checked 1 source file) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.13.3 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.8 - PyArrow version: 6.0.1 Hi ! Thanks for the suggestion, I didn't know about this decorator. If you are interesting in contributing, feel free to open a pull request to add the overload methods for each typing combination :) To assign you to this issue, you can comment `#self-assign` in this thread. `Dataset.__getitem__` is defined right here: https://github.com/huggingface/datasets/blob/e6f1352fe19679de897f3d962e616936a17094f5/src/datasets/arrow_dataset.py#L1840
[ -0.2796023488044739, -0.06640893965959549, -0.04748661816120148, 0.26261433959007263, 0.21424952149391174, 0.05477128177881241, 0.25498130917549133, 0.29963797330856323, -0.009178495034575462, 0.03929087519645691, 0.002568264491856098, 0.44782260060310364, -0.0814644992351532, -0.010950934141874313, -0.18636474013328552, 0.1429165005683899, -0.05220871418714523, -0.05581219494342804, -0.021194346249103546, -0.06297671794891357, -0.4044337868690491, -0.06740493327379227, -0.3512148857116699, 0.015148952603340149, 0.012855557724833488, -0.22288057208061218, -0.14098180830478668, 0.1535911113023758, -0.14876538515090942, -0.3038252294063568, 0.24816493690013885, 0.30392739176750183, -0.03273988515138626, 0.20382548868656158, -0.00010651156480889767, -0.013619832694530487, 0.3284391760826111, -0.023282554000616074, -0.43510618805885315, -0.36877328157424927, 0.0240747332572937, -0.33401909470558167, 0.17722831666469574, -0.19388309121131897, -0.016659799963235855, -0.41517993807792664, -0.17759181559085846, -0.18535710871219635, -0.0326848030090332, 0.14544892311096191, 0.24307554960250854, 0.3607867956161499, 0.0685981959104538, -0.1441195011138916, 0.3199520409107208, 0.3037070035934448, 0.009849661961197853, 0.08829540014266968, 0.5188883543014526, 0.014787822961807251, 0.1696605086326599, -0.061149824410676956, -0.3055451512336731, 0.07190996408462524, 0.034774504601955414, 0.18307843804359436, 0.0074507445096969604, 0.06114993989467621, -0.006447050720453262, 0.15420840680599213, 0.4755385220050812, -0.2544187605381012, -0.3730427920818329, -0.16028428077697754, 0.05419473350048065, -0.1839570701122284, 0.15422162413597107, -0.0073537640273571014, -0.19359387457370758, 0.04786377400159836, 0.13249120116233826, 0.05669606849551201, 0.028891049325466156, 0.37686067819595337, -0.0007175430655479431, 0.2198074609041214, -0.18917864561080933, 0.15204891562461853, 0.15672466158866882, -0.10457813739776611, 0.1624639332294464, -0.10039796680212021, -0.10791058838367462, 0.15236404538154602, -0.19895578920841217, -0.1655280888080597, 0.16330638527870178, 0.19050653278827667, 0.07045469433069229, 0.1820974051952362, 0.04958350583910942, 0.18065676093101501, -0.29786187410354614, 0.26713722944259644, 0.6184268593788147, 0.052628908306360245, 0.04475085809826851, 0.40633371472358704, 0.05572621896862984, 0.1749698370695114, -0.09679009020328522, 0.13858473300933838, 0.11088444292545319, -0.23777712881565094, 0.24199484288692474, 0.17330995202064514, 0.4391000270843506, -0.12468138337135315, -0.42282670736312866, -0.04321025311946869, -0.13124780356884003, -0.17816439270973206, 0.1670830100774765, 0.39554935693740845, -0.16823238134384155, 0.040157418698072433, 0.023347653448581696, 0.3062453866004944, -0.04321443289518356, -0.15813355147838593, -0.23355025053024292, 0.23837102949619293, 0.020174305886030197, -0.20952467620372772, 0.09748822450637817, 0.1135699450969696, -0.12476851046085358, 0.31590527296066284, 0.25188547372817993, -0.015265963971614838, 0.04341192543506622, -0.15430986881256104, 0.286359041929245, -0.054458845406770706, 0.004196181893348694, 0.07942270487546921, 0.3952659070491791, -0.5772268772125244, -0.26674625277519226, -0.1275114119052887, -0.2022865116596222, -0.14710284769535065, -0.09970048069953918, 0.2397100031375885, 0.014967825263738632, 0.05990658700466156, -0.5099033117294312, 0.03820793703198433, 0.08958135545253754, -0.009013131260871887, -0.027848295867443085, -0.1388062685728073, 0.03654971346259117, -0.3465171158313751, 0.08831442892551422, 0.2977980375289917, -0.2803246080875397, 0.020011112093925476, -0.221866175532341, -0.08660072088241577, 0.2857553958892822, 0.24820204079151154, -0.16377560794353485, 0.08543704450130463, -0.2965478003025055, -0.23057281970977783, 0.48791220784187317, -0.15774795413017273, -0.3666643798351288, 0.13203394412994385, 0.09570105373859406, 0.23015420138835907, -0.02556828409433365, -0.012371004559099674, 0.1269330084323883, -0.2514190077781677, 0.26972121000289917, 0.09973049908876419, 0.03396562486886978, -0.11197485774755478, -0.36276888847351074, -0.17528900504112244, 0.20776641368865967, -0.12190131843090057, -0.21179507672786713, 0.08828156441450119, -0.030393972992897034, -0.30065858364105225, 0.2887585461139679, -0.14609596133232117, -0.16277214884757996, 0.055293165147304535, 0.3377377986907959, 0.23444563150405884, 0.05565067380666733, -0.09624037146568298, -0.4533880352973938, 0.10527706891298294, 0.10790909826755524, 0.2678931951522827, -0.4865051507949829, -0.38771259784698486, -0.042543500661849976, 0.07357336580753326, -0.3656572103500366, 0.05112864822149277, 0.20380237698554993, 0.11482039093971252, 0.1551489233970642, -0.14289405941963196, 0.023729559034109116, -0.05558653920888901, -0.18530619144439697, 0.031889237463474274, -0.1272139698266983, 0.08091127872467041, 0.05349867045879364, -0.13636983931064606, -0.13412892818450928, 0.29296261072158813, 0.08315931260585785, -0.08635159581899643, -0.0486011803150177, 0.213978111743927, 0.2388865202665329, -0.17667032778263092, -0.3539275825023651, -0.005782857537269592, 0.011086785234510899, -0.044007137417793274, -0.1972832977771759, 0.11356940865516663, 0.052729532122612, -0.04703472927212715, -0.11638321727514267, 0.6227253079414368, -0.19706836342811584, 0.18331244587898254, -0.14254432916641235, 0.08998234570026398, 0.11535046994686127, 0.21384316682815552, -0.04777771979570389, -0.43532422184944153, -0.04726942256093025, 0.399789422750473, 0.13845159113407135, 0.07502236217260361, -0.3753090500831604, 0.09599404036998749, 0.12552793323993683, -0.0023147277534008026, 0.4840847849845886, -0.0193728506565094, 0.12474524974822998, 0.06811032444238663, -0.19850382208824158, 0.14776793122291565, 0.532791793346405, 0.20213112235069275, -0.08567188680171967, 0.07176592200994492, -0.028346601873636246, -0.03573579341173172, 0.19843614101409912, 0.0653790533542633, -0.1585172414779663, -0.20343035459518433, 0.14969736337661743, 0.05466015264391899, -0.003387533128261566, 0.06786471605300903, -0.1354684680700302, 0.40318232774734497, -0.4138350784778595, -0.01162464078515768, -0.552486002445221, -0.1250685751438141, -0.18965089321136475, 0.07077023386955261, 0.06138021871447563, -0.36323487758636475, -0.2144400030374527, -0.027250465005636215, -0.09646987915039062, 0.07660030573606491, 0.19102156162261963, 0.08084151148796082, 0.013317907229065895, -0.4815382957458496, 0.25591880083084106, -0.2066607028245926, -0.3399106562137604, 0.13110701739788055, 0.35976260900497437, -0.12953679263591766, 0.3798180818557739, 0.07599163055419922, -0.18885590136051178, -0.19014781713485718, -0.32980480790138245, 0.1118970736861229, -0.17002230882644653, 0.09263938665390015, 0.6158171892166138, 0.2519293427467346, -0.013300171121954918, -0.41686907410621643, 0.20642568171024323, 0.08881524205207825, -0.1660301387310028, 0.12800584733486176, 0.12079895287752151, -0.19672739505767822, -0.2331974357366562, -0.17728465795516968, -0.34716400504112244, -0.33200711011886597, 0.37978827953338623, 0.04066891595721245, 0.2066347450017929, -0.12060388177633286, -0.02717704325914383, 0.017566867172718048, 0.010927675291895866, 0.290551096200943, -0.28592783212661743, -0.11405476927757263, 0.33583715558052063, 0.06433416903018951, -0.20792651176452637, -0.2164972871541977, -0.3517494797706604, 0.05028785765171051, -0.033363789319992065, -0.2998276948928833, -0.3190506100654602, -0.06411717087030411, 0.46381980180740356, 0.067568339407444, 0.20064207911491394, 0.12100578844547272, 0.3785344064235687, -0.12156835943460464, -0.12981465458869934, -0.012609698809683323, -0.11523107439279556, 0.09321758151054382, 0.02715975046157837, 0.10624317824840546, 0.028479598462581635, -0.03035406768321991, 0.3134734630584717, 0.34959903359413147, -0.2811841666698456, 0.31054332852363586, -0.19215618073940277, 0.17943531274795532, -0.05679560452699661, -0.5907229781150818, -0.2905479073524475, -0.11614152789115906, -0.00710703618824482, 0.16106171905994415, -0.22899967432022095, -0.23120059072971344, -0.04778003692626953, -0.010088564828038216, -0.19404396414756775, -0.48788225650787354, 0.19396935403347015, -0.049365729093551636, -0.1275152564048767, -0.03597784787416458, 0.11333718150854111, -0.13359323143959045, 0.021888909861445427, 0.22124844789505005, 0.1692972630262375, -0.412491112947464, -0.2251180112361908, -0.3189089000225067, -0.25875401496887207, 0.005324661731719971, 0.3773224949836731, 0.08967357873916626, 0.1873207837343216, 0.21622483432292938, -0.15190155804157257, -0.19741176068782806, 0.12852470576763153, 0.562763512134552, -0.5325298309326172, -0.1684953272342682, 0.18951214849948883, 0.0238860622048378, -0.21768046915531158, -0.04141364246606827, -0.2267186939716339, 0.37406742572784424, 0.176375612616539, 0.4700760245323181, -0.2755717635154724, -0.15244953334331512, 0.2990034818649292, 0.25862160325050354, -0.09095901250839233, -0.055549077689647675, -0.27014803886413574, -0.33592092990875244, -0.09250079095363617, 0.0076317861676216125, 0.12038484960794449, 0.31687068939208984, 0.016330845654010773, 0.014767531305551529, -0.31229841709136963, 0.015482913702726364, 0.2914532423019409, 0.009523941203951836, 0.4702899754047394, -0.05541275069117546, 0.08401890099048615, -0.11173608899116516, 0.2147883027791977, 0.3367220163345337, 0.6354137659072876, -0.29574209451675415, -0.6192482709884644, -0.024673692882061005, -0.21155798435211182, 0.43023452162742615, 0.041900329291820526, -0.18309873342514038, 0.27159547805786133, -0.29788878560066223, 0.07751945406198502, -0.248650461435318, -0.07227367162704468, 0.2444068342447281, 0.12770019471645355, -0.23864436149597168, -0.7209604978561401, 0.40906938910484314, 0.2944042980670929, -0.05294454097747803, 0.3387179672718048, 0.22245755791664124, -0.36358845233917236, 0.39588016271591187, 0.16694095730781555, 0.7942453026771545, 0.16605602204799652, 0.03546522185206413, 0.19056293368339539, 0.13107486069202423, 0.4491094946861267, 0.2719234228134155, -0.07766663283109665, -0.22203797101974487, -0.2672671675682068, 0.017542162910103798, -0.20459604263305664, 0.2140190303325653, 0.04858441278338432, -0.6654353141784668, 0.2460399866104126, -0.5236368179321289, 0.15174539387226105, 0.11595248430967331, 0.3012494146823883, -0.19459567964076996, -0.06518563628196716, -0.15887685120105743, 0.13119742274284363, 0.162986159324646, -0.04123124107718468, 0.061191268265247345, 0.05363984778523445, -0.07435277849435806, -0.17431502044200897, -0.4620510935783386, -0.11461752653121948, -0.27783191204071045, 0.31873059272766113, 0.29001879692077637, -0.01218762993812561, 0.5403353571891785, 0.2164747565984726, 0.134675532579422, 0.32122042775154114, 0.004359066486358643, -0.09608514606952667, 0.3098762035369873, 0.3537331223487854, 0.11416461318731308, -0.162270188331604, 0.3218623101711273, 0.21694475412368774, -0.04461316764354706, 0.10813687741756439, 0.03770020231604576, 0.12834087014198303, -0.1309261918067932, 0.17380639910697937, 0.06224769726395607, -0.6301295161247253, -0.2826615571975708, -0.1298520565032959, 0.061026472598314285, -0.20671425759792328, 0.16332125663757324, 0.1617763340473175, -0.1596035361289978, 0.32979562878608704, 0.021835539489984512, -0.24840666353702545, 0.006857661530375481, 0.16383492946624756, 0.2956541180610657, -0.0006785541772842407, 0.4913630187511444, 0.14652368426322937, -0.19301705062389374, -0.31535670161247253, 0.2468997836112976, 0.1777416169643402, -0.2670602798461914, 0.4268440306186676, -0.2039187252521515, 0.06857770681381226, 0.0644776001572609, 0.3335306644439697, 0.012909021228551865, 0.25940629839897156, -0.34630724787712097, -0.26945000886917114, 0.0035211052745580673, 0.19631993770599365, 0.3582631051540375, 0.16135476529598236, -0.1079627051949501, 0.15521356463432312, -0.10529816895723343, -0.044498562812805176, -0.4013831913471222, -0.168087899684906, -0.11929786205291748, 0.051447171717882156, -0.05306181311607361, -0.0009608790278434753, 0.2084299623966217, 0.001258169300854206, 0.2923113703727722, 0.016351116821169853, 0.0023264409974217415, -0.28011825680732727, -0.14162571728229523, 0.07038572430610657, -0.23523813486099243, 0.05892608314752579, 0.07847586274147034, -0.034670211374759674, 0.10421495139598846, -0.2789611518383026, -0.05792127549648285, -0.044122423976659775, 0.00047131627798080444, 0.12250806391239166, 0.3078541159629822, 0.078595370054245, -0.11807720363140106, 0.03533567860722542, -0.30753982067108154, 0.09313518553972244, 0.19733673334121704, 0.2546815276145935, -0.0020504037383943796, -0.049707792699337006, 0.23523451387882233, 0.2729169726371765, 0.11136095970869064, -0.054488033056259155, 0.0647616907954216, -0.15697221457958221, -0.13462921977043152, 0.10855346918106079, 0.29092440009117126, 0.4231288433074951, -0.01957734487950802, -0.157887265086174, 0.07941441982984543, 0.23122820258140564, -0.3293629586696625, -0.055917270481586456, 0.15755528211593628, 0.15038415789604187, 0.21221119165420532, 0.5638540387153625, -0.26031190156936646, -0.02324127033352852, -0.20081262290477753, -0.28668713569641113, 0.32721298933029175, -0.3607383370399475, 0.32333478331565857, 0.386739581823349, 0.14645685255527496, -0.12387484312057495, 0.11698634922504425, 0.027968117967247963, 0.1260962039232254, -0.12229043245315552, -0.08717817813158035, 0.06512391567230225, -0.029633156955242157, -0.0792224109172821, 0.3036201000213623, -0.30954301357269287, 0.6653963327407837, 0.32263684272766113, -0.057046324014663696, 0.12807634472846985, 0.10194635391235352, 0.49536794424057007, -0.22137854993343353, 0.048360347747802734, 0.07312735170125961, 0.10422718524932861, -0.1350303292274475, -0.1769697368144989, -0.021706078201532364, -0.1053062379360199, -0.35417094826698303, -0.26372888684272766, 0.09578685462474823, -0.45768028497695923, -0.21207797527313232, -0.11581282317638397, 0.25374412536621094, -0.4005756974220276, 0.2789248526096344, -0.19979774951934814, 0.34539273381233215, -0.16940072178840637, -0.05813197046518326, 0.25410813093185425, 0.09160639345645905, 0.0001184120774269104, 0.08362151682376862, 0.5898518562316895, 0.5907137989997864, -0.2560918927192688, -0.09201497584581375, -0.2409168928861618, -0.18598349392414093, -0.21892215311527252, -0.1356484442949295, -0.3270622491836548, -0.0497315488755703, 0.2962366044521332, 0.24106255173683167, -0.13946445286273956, -0.14906494319438934, 0.11955618858337402, -0.002803375944495201, -0.15996868908405304, 0.6177136898040771, -0.003546088933944702, -0.23953506350517273, -0.09811940789222717, 0.029104456305503845, -0.28563767671585083, -0.41523218154907227, 0.521229088306427, 0.25299951434135437, 0.20377510786056519, 0.1350676566362381, 0.16621454060077667, 0.16823776066303253, 0.42931798100471497, 0.27055424451828003, 0.2363336980342865, -0.20162789523601532, 0.0863233208656311, -0.5376325845718384, 0.1386290043592453, 0.015073433518409729, -0.48672378063201904, 0.2994343340396881, 0.5338932275772095, 0.11415150761604309, 0.1451616883277893, 0.15226273238658905, 0.006969126407057047, 0.10254978388547897, 0.23097635805606842, -0.2790845036506653, -0.3037141263484955, -0.001089736819267273, -0.2525641620159149, 0.03507454693317413, -0.2686048150062561, -0.05519210174679756, -0.25411033630371094, 0.18197131156921387, -0.38981473445892334, -0.09090612083673477, 0.04580457881093025, 0.04354515299201012, 0.21620066463947296, 0.06236524134874344, 0.18383154273033142, 0.004636168479919434, -0.026306724175810814, -0.053671497851610184, -0.11315125972032547, -0.12233716994524002, 0.5583115220069885, 0.13402500748634338, 0.10077203810214996, -0.1281544268131256, 0.10245558619499207, -0.2520331144332886, 0.08640561997890472, 0.27237361669540405, -0.263489693403244, -0.24931679666042328, 0.4293450117111206, 0.07235521823167801, -0.055513232946395874, -0.29273363947868347, 0.011915210634469986, 0.02163923904299736, 0.2238798290491104, -0.0397552065551281, -0.44813764095306396, 0.44624075293540955, -0.2653859257698059, -0.15520308911800385, -0.21675121784210205, 0.18362978100776672, -0.2750817537307739, -0.028980204835534096, -0.37043482065200806, -0.2622204124927521, 0.5128491520881653, -0.08185124397277832, -0.19030526280403137, 0.2471519410610199, 0.06538783758878708, 0.17897047102451324, -0.1748548448085785, 0.11293257772922516, -0.1325940191745758, -0.12123236805200577, 0.2352539300918579, -0.22119258344173431 ]
https://github.com/huggingface/datasets/issues/3334
Integrate Polars library
Polars has grown rapidly in popularity over the last year - could you consider integrating the Polars functionality again? I don't think the "custom" implementation should be a barrier, it still conforms to the Arrow specification
Check potential integration of the Polars library: https://github.com/pola-rs/polars - Benchmark: https://h2oai.github.io/db-benchmark/ CC: @thomwolf @lewtun
36
Integrate Polars library Check potential integration of the Polars library: https://github.com/pola-rs/polars - Benchmark: https://h2oai.github.io/db-benchmark/ CC: @thomwolf @lewtun Polars has grown rapidly in popularity over the last year - could you consider integrating the Polars functionality again? I don't think the "custom" implementation should be a barrier, it still conforms to the Arrow specification
[ -0.17815729975700378, 0.0579536110162735, -0.2830067574977875, -0.04177986830472946, -0.1728164255619049, -0.29686304926872253, 0.23364238440990448, 0.09310083091259003, 0.13824786245822906, 0.10904841125011444, -0.14966513216495514, 0.5837971568107605, -0.0029768431559205055, 0.1381000131368637, -0.21866032481193542, -0.149128258228302, -0.15035253763198853, 0.34491413831710815, -0.11078689992427826, 0.087180957198143, -0.023674216121435165, 0.17633818089962006, 0.15147046744823456, 0.12042473256587982, 0.038234125822782516, 0.0452703982591629, 0.01911664940416813, -0.052877530455589294, -0.2678163945674896, -0.11991405487060547, 0.18917496502399445, 0.16863137483596802, 0.017279241234064102, 0.4681296944618225, -0.00010282739822287112, -0.05183574557304382, -0.07034552097320557, 0.0943610742688179, 0.03513946756720543, 0.10789677500724792, 0.37015584111213684, 0.015104295685887337, 0.31969231367111206, -0.17468634247779846, -0.0255887508392334, -0.22892960906028748, -0.3226654529571533, -0.23022140562534332, 0.40764087438583374, -0.2652743458747864, 0.3218362331390381, 0.2441955804824829, -0.15824514627456665, 0.07119400054216385, 0.12514890730381012, 0.042516276240348816, -0.1896352916955948, -0.014320515096187592, 0.10955606400966644, -0.045215971767902374, -0.16323861479759216, 0.315777987241745, 0.1629944145679474, -0.016478266566991806, 0.07268773019313812, -0.05839142948389053, 0.2998209595680237, 0.32224076986312866, -0.0998404249548912, 0.10165216028690338, 0.1796046793460846, -0.11016283184289932, -0.2802245318889618, 0.12637707591056824, -0.157957062125206, -0.40172070264816284, -0.10095780342817307, -0.005882406607270241, 0.17079009115695953, 0.16044369339942932, 0.14469008147716522, -0.029676945880055428, -0.3527681827545166, 0.1630498468875885, -0.07554033398628235, 0.45287346839904785, 0.09375441819429398, -0.09578179568052292, 0.22531960904598236, -0.22993259131908417, 0.3927694857120514, 0.26893162727355957, -0.14537063241004944, 0.07061069458723068, -0.04477534070611, -0.25864076614379883, -0.022930294275283813, -0.06552090495824814, 0.06387421488761902, 0.3161352872848511, 0.5807828307151794, 0.44121766090393066, 0.10763911157846451, 0.14444702863693237, -0.008386664092540741, -0.13233128190040588, -0.11020743101835251, 0.1200973317027092, 0.457083523273468, -0.07805607467889786, 0.10227479040622711, -0.03603215515613556, -0.0836462527513504, -0.06321326643228531, -0.2529740631580353, -0.20212912559509277, -0.20687974989414215, -0.20883677899837494, -0.011804329231381416, -0.09319272637367249, 0.05519210547208786, 0.033356234431266785, 0.19880978763103485, 0.15297184884548187, 0.13098791241645813, 0.27808746695518494, 0.2664415240287781, -0.12834644317626953, -0.07352142781019211, 0.30322229862213135, -0.029077129438519478, -0.057315755635499954, -0.13489091396331787, -0.09640421718358994, -0.017674192786216736, 0.2418871521949768, 0.11719552427530289, -0.23140203952789307, 0.08070031553506851, 0.3657973110675812, 0.1540789157152176, -0.1828698068857193, 0.20519345998764038, -0.03333704546093941, -0.23434413969516754, -0.43731650710105896, -0.37797442078590393, 0.17960599064826965, -0.16348406672477722, -0.37218689918518066, -0.006562411785125732, -0.09955187886953354, -0.45520511269569397, 0.24358797073364258, 0.12538361549377441, -0.07681374251842499, 0.26510509848594666, 0.3807378113269806, -0.2370235025882721, -0.23914575576782227, 0.0810624361038208, 0.18090543150901794, -0.012465953826904297, 0.09427153319120407, -0.013622209429740906, -0.03613561391830444, -0.5182706713676453, -0.0752338096499443, -0.26490703225135803, 0.031524334102869034, 0.06834449619054794, 0.2368285357952118, -0.1851605921983719, -0.05970265716314316, -0.024586565792560577, -0.10729315131902695, 0.3049987554550171, -0.17288373410701752, -0.17399844527244568, -0.0111084608361125, -0.023460719734430313, -0.41323399543762207, -0.005702674388885498, 0.24675527215003967, 0.1113475114107132, -0.07562951743602753, 0.02310023456811905, 0.34893107414245605, 0.04741687327623367, 0.025690680369734764, -0.22137518227100372, -0.4639429450035095, -0.18635185062885284, 0.1761692315340042, 0.09612466394901276, -0.299803763628006, 0.4008842706680298, -0.20360049605369568, 0.04904314875602722, -0.1304839700460434, 0.09931272268295288, -0.08926022797822952, 0.4225054979324341, -0.06123436987400055, -0.007659644354134798, -0.12894628942012787, 0.16162703931331635, -0.019143367186188698, -0.4212273359298706, 0.021692689508199692, 0.21530047059059143, -0.08920758962631226, 0.027920089662075043, 0.006890162825584412, 0.06319617480039597, 0.3273478150367737, 0.2872985601425171, 0.05291479080915451, 0.06092425808310509, 0.011591799557209015, -0.09280924499034882, -0.22795182466506958, -0.22376003861427307, -0.10784086585044861, 0.08085459470748901, 0.09490011632442474, -0.1349157691001892, 0.041048936545848846, 0.05802639573812485, 0.32850727438926697, -0.14820948243141174, 0.007841013371944427, 0.16075488924980164, 0.28831297159194946, -0.2614157497882843, 0.10874632000923157, 0.5281415581703186, 0.4118528962135315, 0.038979414850473404, -0.0674915611743927, 0.074968121945858, 0.0017176810652017593, -0.020615313202142715, 0.026706881821155548, -0.04348374158143997, 0.47837531566619873, -0.04832518473267555, 0.17070239782333374, -0.07524211704730988, 0.04790125787258148, 0.24384909868240356, 0.009022310376167297, -0.2793146073818207, -0.20213821530342102, -0.06622388958930969, -0.11101824045181274, -0.1771366149187088, -0.2259073406457901, -0.27971988916397095, 0.05767370015382767, 0.11390389502048492, 0.2572448253631592, 0.3027409613132477, -0.07949403673410416, 0.16052940487861633, 0.028848126530647278, 0.24839447438716888, 0.28056052327156067, 0.31950128078460693, 0.4405132532119751, -0.02342517301440239, -0.18867899477481842, 0.08133687824010849, -0.008998140692710876, 0.22773614525794983, 0.2735714614391327, -0.13391336798667908, 0.14306268095970154, 0.23092718422412872, -0.05486438050866127, -0.1159861758351326, -0.25293946266174316, -0.39910775423049927, -0.16494743525981903, 0.03197862580418587, 0.2003030925989151, -0.25551846623420715, 0.02372613549232483, 0.2446211576461792, -0.2431877702474594, 0.1497947722673416, -0.09583194553852081, 0.2147485613822937, -0.2667129933834076, -0.286634236574173, 0.11034100502729416, -0.048890620470047, 0.5767631530761719, -0.015503151342272758, -0.4950297474861145, -0.3580459654331207, -0.15835493803024292, -0.07759938389062881, 0.24210691452026367, 0.08371461182832718, 0.1652148962020874, 0.5156539082527161, 0.14923611283302307, 0.15910057723522186, -0.2803504168987274, -0.5751985907554626, 0.11976176500320435, 0.10823208838701248, -0.02271595038473606, 0.28199541568756104, -0.29862499237060547, -0.13853688538074493, 0.05307129770517349, -0.11073896288871765, -0.38606083393096924, -0.1090751364827156, -0.09508256614208221, -0.25894060730934143, 0.013726782985031605, -0.330197274684906, -0.05142759531736374, -0.15993192791938782, -0.46537595987319946, 0.32201486825942993, 0.43886512517929077, 0.12093883752822876, -0.3397486209869385, 0.18287542462348938, 0.24338962137699127, -0.2230583131313324, -0.08946222811937332, -0.08186974376440048, 0.010829586535692215, 0.5390410423278809, -0.35295018553733826, -0.27939289808273315, 0.01160486415028572, -0.10144051909446716, 0.49718645215034485, -0.014696910977363586, -0.2739242911338806, 0.09563896805047989, 0.022617265582084656, 0.24220290780067444, 0.012476816773414612, 0.07150876522064209, 0.38403192162513733, 0.14189821481704712, -0.2581128776073456, -0.09097260981798172, -0.19012263417243958, 0.10418632626533508, 0.012517508119344711, 0.1930934190750122, 0.1733677089214325, -0.015846289694309235, -0.11339002847671509, 0.5030396580696106, -0.5438997149467468, -0.492135614156723, 0.08859841525554657, 0.042105019092559814, 0.32587239146232605, -0.10250359028577805, 0.09180515259504318, -0.38140350580215454, 0.04751387983560562, 0.2592778205871582, 0.2561396658420563, 0.15453553199768066, -0.323323130607605, -0.4891296625137329, -0.035308174788951874, -0.05672997981309891, -0.11175428330898285, -0.048189304769039154, -0.08974932134151459, 0.27672988176345825, -0.10173940658569336, 0.07423412054777145, -0.04683706909418106, -0.075601726770401, 0.3018963634967804, -0.14119935035705566, -0.1064172312617302, -0.143029123544693, -0.06341248750686646, 0.356280118227005, -0.15156289935112, 0.3983743190765381, -0.1421702653169632, -0.18812806904315948, -0.07207098603248596, -0.1728963851928711, -0.09027495980262756, -0.2780211567878723, -0.3580099940299988, 0.14237764477729797, -0.373931348323822, -0.039841461926698685, -0.22860893607139587, -0.5083149671554565, 0.19105805456638336, -0.1648492068052292, -0.02306705340743065, -0.21824106574058533, 0.36997514963150024, -0.29312649369239807, -0.1151992455124855, 0.29061660170555115, -0.05262944474816322, -0.159441277384758, -0.08413892984390259, -0.21606667339801788, -0.1900743842124939, 0.14695772528648376, 0.07925614714622498, 0.01104111410677433, -0.13880346715450287, 0.16418254375457764, -0.21669796109199524, -0.07946496456861496, -0.19590014219284058, 0.08188091963529587, 0.3273674249649048, 0.16338908672332764, -0.479636013507843, 0.06252652406692505, 0.23559556901454926, -0.13575026392936707, 0.1828218251466751, 0.2668699324131012, 0.12456275522708893, 0.23200497031211853, 0.26924026012420654, -0.1527903527021408, 0.13994519412517548, 0.3685773015022278, 0.09871481359004974, 0.4847525954246521, -0.10116561502218246, -0.05068919062614441, 0.082674540579319, -0.4071025252342224, -0.11138240993022919, 0.008133583702147007, 0.364065557718277, 0.12086459994316101, 0.23912376165390015, -0.17499205470085144, -0.18535494804382324, 0.1513831615447998, 0.23645032942295074, -0.2864706814289093, 0.48037755489349365, 0.5082720518112183, 1.0356569290161133, 0.11808791011571884, -0.014352891594171524, 0.20376023650169373, -0.7202015519142151, 0.21720537543296814, -0.007277611643075943, -0.21608373522758484, -0.3333522379398346, 0.46608299016952515, -0.06656237691640854, -0.022589460015296936, 0.04902839660644531, -0.18282882869243622, -0.12154674530029297, -0.07306701689958572, 0.13204918801784515, -0.1467830240726471, -0.10882684588432312, 0.0002874806523323059, 0.03972257673740387, -0.1535424143075943, -0.17352394759655, 0.30286481976509094, -0.03984043002128601, -0.26072460412979126, -0.30063512921333313, -0.25932663679122925, -0.18767376244068146, -0.13277515769004822, 0.2847108244895935, -0.14204320311546326, -0.044690150767564774, 0.16227403283119202, 0.053633712232112885, 0.0719040185213089, 0.11205947399139404, 0.06539148837327957, -0.008817330002784729, -0.03983920440077782, -0.2215002179145813, 0.1795225739479065, -0.08794213086366653, 0.10455801337957382, -0.08319568634033203, -0.16273553669452667, -0.150157168507576, -0.17938849329948425, -0.0768793374300003, 0.0262891948223114, 0.05221252143383026, -0.3858258128166199, -0.28529199957847595, 0.37408447265625, 0.3645389676094055, 0.1723921298980713, 0.36450889706611633, -0.0010085627436637878, -0.4004627764225006, -0.018860507756471634, 0.29894477128982544, 0.07633307576179504, 0.16449737548828125, 0.23806101083755493, 0.37831974029541016, 0.126204252243042, -0.15715202689170837, 0.1594618856906891, -0.2875491976737976, 0.312825083732605, -0.05407588928937912, -0.14840197563171387, -0.26692748069763184, -0.3506612479686737, 0.026984281837940216, 0.2511110007762909, -0.6818175911903381, -0.08139246702194214, -0.06548960506916046, -0.509120762348175, 0.14093531668186188, 0.16831789910793304, 0.33919626474380493, -0.11612973362207413, -0.1673325002193451, 0.14688394963741302, -0.3389076292514801, 0.3509542942047119, -0.2425854355096817, 0.31212306022644043, -0.1287350207567215, -0.2486734539270401, -0.32215848565101624, -0.1607971489429474, -0.4701371490955353, 0.13058485090732574, 0.044481806457042694, -0.05680912733078003, -0.3203539550304413, -0.25455906987190247, 0.15057511627674103, 0.15338188409805298, 0.23014488816261292, 0.42076629400253296, -0.3488641083240509, -0.3001803457736969, -0.186171755194664, 0.06323610991239548, -0.06607574224472046, 0.09760826081037521, 0.06645148992538452, -0.056238461285829544, -0.43940266966819763, 0.025912372395396233, -0.10826776921749115, -0.12122976779937744, -0.03139679133892059, 0.036087483167648315, 0.13699978590011597, -0.11173742264509201, -0.08305186033248901, 0.02768883854150772, 0.0484679751098156, 0.2177053540945053, -0.09094055742025375, 0.3017061948776245, -0.2073206901550293, -0.2512083053588867, 0.39741960167884827, 0.3995959758758545, 0.21599081158638, 0.042595263570547104, 0.2272869050502777, 0.1936986893415451, -0.056871794164180756, -0.0452139675617218, 0.43197327852249146, 0.12161561846733093, -0.17335987091064453, -0.33721745014190674, 0.2814398407936096, 0.36357468366622925, -0.37240883708000183, 0.025777442380785942, -0.31307289004325867, 0.021711833775043488, 0.2834109365940094, 0.307733952999115, 0.41524335741996765, -0.29105404019355774, -0.046017661690711975, 0.15537360310554504, 0.03936236351728439, -0.3713987469673157, -0.27302294969558716, 0.1792505383491516, -0.1347040981054306, -0.03413379564881325, 0.4185830354690552, -0.062327709048986435, 0.08801247924566269, 0.1611349731683731, -0.16681432723999023, 0.08601824194192886, 0.14402522146701813, 0.2262260913848877, 0.07160089910030365, 0.11301936209201813, 0.14292022585868835, 0.03045319765806198, 0.2524929344654083, 0.17138031125068665, 0.4042512774467468, 0.49833884835243225, 0.09092897176742554, 0.05854705348610878, -0.20764397084712982, -0.0722578912973404, 0.07828079164028168, 0.07406820356845856, -0.2965087592601776, -0.22705352306365967, -0.18517011404037476, -0.10577736794948578, 0.21928918361663818, 0.23825204372406006, 0.12434380501508713, 0.05562715232372284, 0.2062494158744812, -0.19195452332496643, 0.05309680849313736, 0.01000150479376316, 0.4212719202041626, -0.1705201119184494, -0.07391791045665741, 0.3511923849582672, -0.026488803327083588, -0.07948528230190277, 0.22541172802448273, -0.008401360362768173, -0.07787365466356277, -0.13881529867649078, -0.13812939822673798, -0.07012540102005005, -0.15993711352348328, -0.07208476215600967, 0.2526630163192749, 0.2961949110031128, -0.11766548454761505, 0.2597181797027588, 0.275417685508728, -0.3704600930213928, 0.2703935503959656, 0.07471809536218643, 0.4114212095737457, -0.07946650683879852, 0.17893213033676147, 0.22899045050144196, -0.19825297594070435, 0.022748321294784546, 0.064710833132267, -0.16534990072250366, -0.4348384737968445, -0.13325074315071106, -0.15856896340847015, -0.007948705926537514, 0.039844922721385956, 0.12977755069732666, 0.1987931877374649, 0.5901554226875305, 0.010725192725658417, 0.13639399409294128, 0.09539855271577835, -0.16332381963729858, -0.19646084308624268, -0.0777147188782692, -0.0004615373909473419, 0.16019782423973083, -0.31749773025512695, 0.23449914157390594, 0.2695649564266205, 0.10265570878982544, 0.29197433590888977, -0.43206873536109924, 0.10837529599666595, -0.11909401416778564, -0.3767002820968628, 0.2718448340892792, 0.15257370471954346, -0.05127564072608948, 0.2669064998626709, -0.4578058123588562, -0.346289724111557, -0.027365997433662415, 0.257025808095932, 0.011438199318945408, -0.1606612503528595, 0.11182814836502075, 0.2712595462799072, 0.395539790391922, 0.0502660870552063, -0.02018006145954132, -0.08964041620492935, -0.17930202186107635, -0.07810993492603302, -0.1386880874633789, -0.0655868723988533, 0.0070580244064331055, 0.2888614535331726, 0.28722038865089417, 0.020549556240439415, -0.40852099657058716, -0.09243614226579666, 0.008307239040732384, -0.13754543662071228, 0.002919111168012023, -0.22851169109344482, 0.35958224534988403, 0.05766376107931137, -0.01519564539194107, -0.4617423117160797, 0.1499582827091217, 0.09990253299474716, -0.14030568301677704, -0.11147722601890564, -0.10038749873638153, 0.4524920880794525, -0.08414330333471298, 0.029138091951608658, 0.5369231700897217, 0.16394594311714172, 0.5402122735977173, 0.03707871586084366, -0.33160367608070374, -0.00270206481218338, 0.11005069315433502, 0.050533127039670944, 0.027088072150945663, 0.22072942554950714, -0.1443915218114853, -0.04020708054304123, -0.13940055668354034, -0.014338761568069458, -0.041891224682331085, 0.06151750683784485, -0.1528196632862091, -0.18805243074893951 ]
https://github.com/huggingface/datasets/issues/3334
Integrate Polars library
Is there some direction regarding this from the HF team @lewtun ? Can conversion from polars to HF dataset be implemented with limited/zero copy? So, something like ``Dataset.from_polars()`` and ``Dataset.to_polars()`` like you mentioned. Happy to contribute if I can get some pointers on how this may be implemented.
Check potential integration of the Polars library: https://github.com/pola-rs/polars - Benchmark: https://h2oai.github.io/db-benchmark/ CC: @thomwolf @lewtun
48
Integrate Polars library Check potential integration of the Polars library: https://github.com/pola-rs/polars - Benchmark: https://h2oai.github.io/db-benchmark/ CC: @thomwolf @lewtun Is there some direction regarding this from the HF team @lewtun ? Can conversion from polars to HF dataset be implemented with limited/zero copy? So, something like ``Dataset.from_polars()`` and ``Dataset.to_polars()`` like you mentioned. Happy to contribute if I can get some pointers on how this may be implemented.
[ -0.1458166241645813, 0.14987263083457947, -0.018241647630929947, -0.1977051943540573, 0.06894876062870026, -0.12082649767398834, -0.01660538837313652, 0.3555261492729187, -0.015498506836593151, 0.027810797095298767, -0.6134280562400818, 0.0750017836689949, 0.285347044467926, 0.08192402869462967, 0.042708490043878555, -0.328912615776062, 0.11486181616783142, 0.30984821915626526, -0.5550856590270996, -0.16757944226264954, -0.07926657795906067, 0.011681522242724895, 0.1555967926979065, -0.034214504063129425, 0.08869762718677521, 0.11477459967136383, -0.4447363317012787, 0.13576249778270721, -0.17210550606250763, 0.016939926892518997, 0.16257767379283905, 0.3457733690738678, 0.2879188656806946, 0.3290477395057678, -0.00010802174801938236, -0.13064762949943542, -0.1068645715713501, -0.04515085369348526, 0.03426610305905342, -0.13870646059513092, 0.437255859375, 0.033902913331985474, -0.05008096247911453, -0.1520477682352066, 0.012746419757604599, -0.19372861087322235, -0.09532339870929718, -0.08370110392570496, 0.33340466022491455, -0.21499411761760712, 0.2528458535671234, 0.4531462490558624, -0.05298500135540962, 0.009633961133658886, 0.3306335210800171, 0.22142073512077332, -0.036154866218566895, 0.12277446687221527, -0.04691380262374878, -0.28848740458488464, -0.11303438991308212, 0.3213869035243988, 0.113229900598526, -0.005038175731897354, 0.2588917911052704, -0.23410342633724213, -0.06247568875551224, -0.057245537638664246, 0.0014724694192409515, 0.4607354402542114, 0.13033105432987213, -0.16918617486953735, -0.4906478524208069, 0.3517046570777893, -0.043267667293548584, -0.21105994284152985, -0.1551714837551117, 0.011972030624747276, 0.16631348431110382, -0.03170935437083244, 0.08221501857042313, -0.2521049380302429, -0.4109293520450592, -0.026462547481060028, -0.15714611113071442, 0.26941534876823425, 0.02315765991806984, -0.2731718420982361, 0.30424943566322327, -0.16046352684497833, 0.3472374677658081, -0.06818525493144989, -0.003872346132993698, 0.19683922827243805, -0.19048447906970978, -0.14382842183113098, -0.2601124048233032, 0.04576146602630615, 0.3008275032043457, 0.04848901927471161, -0.0943194106221199, 0.2619989216327667, -0.09154899418354034, 0.1463669240474701, 0.2946774363517761, -0.14441829919815063, -0.34677889943122864, 0.4115712344646454, 0.3249034881591797, -0.10536234825849533, 0.11246877908706665, -0.028202027082443237, 0.1331505924463272, -0.11230892688035965, -0.27383121848106384, -0.3838709592819214, -0.20220781862735748, -0.6951282620429993, -0.14919784665107727, -0.13578981161117554, -0.08233131468296051, 0.035423699766397476, -0.0421929657459259, 0.4212757647037506, 0.08185691386461258, 0.3238305449485779, 0.5363608002662659, -0.024609792977571487, -0.28951379656791687, 0.21439068019390106, -0.0895790159702301, 0.26498714089393616, 0.0005894601345062256, -0.08941655606031418, -0.10325641930103302, -0.07835721969604492, 0.10266237705945969, -0.10156504064798355, 0.3289054036140442, 0.4948633313179016, 0.20377476513385773, -0.3363078534603119, 0.4386245012283325, 0.21523243188858032, 0.01492280513048172, -0.14770090579986572, -0.07247024774551392, 0.17109788954257965, -0.22222858667373657, -0.141811341047287, -0.010730847716331482, 0.18728074431419373, -0.30428826808929443, 0.15501540899276733, -0.008251859806478024, -0.1483965814113617, 0.03672032803297043, 0.3590504825115204, -0.24190732836723328, -0.11780653893947601, -0.21265560388565063, -0.019373346120119095, -0.08063547313213348, 0.1139465719461441, 0.13808046281337738, 0.4972265362739563, -0.5114752650260925, -0.18381473422050476, 0.19954417645931244, -0.09073090553283691, 0.21140187978744507, 0.3679223358631134, -0.1261603683233261, -0.11441262811422348, -0.10118278115987778, -0.10558012127876282, 0.14349991083145142, -0.2290075570344925, 0.1684192568063736, 0.3187818229198456, 0.22085465490818024, -0.20102469623088837, -0.2580198347568512, 0.020571395754814148, 0.26914405822753906, -0.1197076216340065, 0.035492680966854095, 0.44132113456726074, -0.24330049753189087, -0.022423533722758293, -0.21459552645683289, -0.33187344670295715, -0.0888889729976654, 0.279990553855896, 0.3868912160396576, 0.1194782704114914, 0.26851287484169006, 0.1385582983493805, 0.0387004055082798, -0.37447884678840637, 0.2476804107427597, 0.25033220648765564, 0.37268632650375366, 0.211829274892807, 0.1137818992137909, 0.013266071677207947, 0.300838828086853, -0.17626506090164185, -0.548567533493042, 0.15613999962806702, 0.48357605934143066, -0.16202925145626068, 0.0973888412117958, -0.0809396356344223, 0.031312018632888794, 0.32280468940734863, 0.1940554529428482, 0.029933329671621323, -0.0481371209025383, 0.003589961677789688, -0.09238091856241226, 0.2856561541557312, -0.3848923146724701, -0.0012731542810797691, -0.005450882017612457, 0.4919819235801697, -0.20222245156764984, 0.003569249529391527, 0.214504212141037, 0.1888713836669922, 0.08024169504642487, -0.16328993439674377, 0.0010444745421409607, 0.17890766263008118, -0.43404150009155273, 0.19105008244514465, 0.5517252087593079, 0.19412365555763245, 0.25885796546936035, -0.16896022856235504, 0.2697398364543915, -0.05315260961651802, 0.08901190757751465, 0.04552499204874039, -0.11986509710550308, 0.45948606729507446, -0.1899859458208084, 0.1437819004058838, 0.21954990923404694, -0.027570512145757675, 0.23098841309547424, -0.07939577102661133, -0.10591557621955872, 0.07008107006549835, -0.0091901496052742, 0.050616517663002014, -0.2177889496088028, -0.15318354964256287, -0.2609999477863312, 0.11865390837192535, 0.1962030977010727, -0.0493403822183609, 0.012432187795639038, 0.1694391369819641, -0.04849603772163391, -0.15768983960151672, 0.36444634199142456, 0.28846627473831177, 0.32387495040893555, 0.4292309582233429, 0.1825975924730301, 0.017280621454119682, -0.23857522010803223, 0.19917860627174377, 0.21032576262950897, 0.21951059997081757, -0.17419786751270294, 0.004338357597589493, 0.0957467257976532, 0.15499721467494965, -0.2865414619445801, -0.2121312916278839, -0.2788170874118805, 0.013382481411099434, -0.17704473435878754, 0.22218646109104156, -0.28727978467941284, -0.11619293689727783, 0.007204955909401178, 0.2244107872247696, -0.017300687730312347, -0.333089679479599, 0.07599912583827972, 0.03938843309879303, -0.1472812294960022, -0.04158233851194382, -0.15455377101898193, 0.284126341342926, -0.16368745267391205, -0.37933722138404846, -0.2879459261894226, 0.04848979786038399, -0.20046594738960266, 0.15653516352176666, 0.32566988468170166, 0.3122430741786957, 0.38049083948135376, -0.013023133389651775, -0.06591128557920456, -0.45268514752388, -0.6227255463600159, 0.25344353914260864, 0.013106012716889381, 0.026321565732359886, 0.07101786136627197, -0.05975350737571716, -0.17001380026340485, 0.196658194065094, -0.3288542330265045, -0.1256231963634491, -0.17352907359600067, -0.02328462339937687, -0.7546111345291138, 0.032016362994909286, -0.10073791444301605, -0.1835930347442627, -0.1661432534456253, -0.35409897565841675, -0.002189628779888153, 0.19206863641738892, 0.1029229611158371, -0.3279563784599304, 0.0815303847193718, 0.11163919419050217, -0.341549813747406, -0.2565237879753113, -0.17421571910381317, 0.04887017980217934, 0.5549103021621704, -0.38525697588920593, -0.4238162040710449, 0.23597583174705505, 0.11861610412597656, 0.27215084433555603, -0.04528110846877098, -0.319100022315979, -0.14829176664352417, -0.031055966392159462, 0.1846102923154831, -0.16033396124839783, 0.4069550037384033, 0.24560889601707458, -0.16692498326301575, -0.14030253887176514, -0.10960274934768677, -0.011705843731760979, 0.19034302234649658, 0.0947813093662262, 0.21282097697257996, 0.0016207285225391388, 0.07500365376472473, -0.0386500358581543, 0.4347386360168457, -0.1066291332244873, -0.2295776754617691, 0.2748395800590515, 0.24052150547504425, 0.36107179522514343, -0.140133798122406, 0.14950019121170044, -0.009429823607206345, -0.13825783133506775, 0.42422163486480713, 0.17057865858078003, 0.018941141664981842, -0.22359244525432587, -0.3022547662258148, -0.28564509749412537, 0.005125757306814194, -0.1622288078069687, 0.04271451011300087, -0.14139661192893982, 0.2964043617248535, 0.04162326827645302, -0.2596079111099243, -0.16459175944328308, -0.037364162504673004, 0.25298255681991577, 0.2256353348493576, 0.11181237548589706, 0.21317467093467712, -0.23685050010681152, 0.03238312527537346, -0.25972431898117065, 0.26544511318206787, 0.04871036112308502, -0.0544220432639122, -0.12715108692646027, -0.040456999093294144, -0.09950307011604309, -0.3333491384983063, -0.06821711361408234, 0.16151800751686096, -0.23945187032222748, 0.1314069777727127, -0.4096216857433319, -0.2583054006099701, 0.14359569549560547, -0.271882563829422, -0.11144940555095673, -0.24277083575725555, 0.267764687538147, -0.35976046323776245, -0.3290334641933441, 0.4973183274269104, -0.008911325596272945, -0.11548370122909546, 0.07862565666437149, -0.039072245359420776, -0.4466763436794281, 0.12089040875434875, -0.011580869555473328, -0.01937871240079403, -0.12148565798997879, -0.2809605300426483, -0.10724954307079315, 0.0056943148374557495, 0.28730374574661255, 0.30176499485969543, 0.1948479861021042, 0.1363113522529602, -0.33701372146606445, 0.035699035972356796, 0.23376092314720154, -0.39228522777557373, 0.43482619524002075, 0.21766558289527893, -0.10530835390090942, 0.25165948271751404, 0.47023698687553406, 0.1554385870695114, 0.15467341244220734, 0.2925011217594147, 0.2547651529312134, 0.35646289587020874, -0.002610066905617714, -0.05293270945549011, -0.0525929220020771, -0.35060814023017883, -0.1460428684949875, 0.09402816742658615, 0.08355189859867096, -0.17654690146446228, 0.2522599697113037, -0.03229006379842758, 0.12850284576416016, 0.014821771532297134, 0.6693711280822754, -0.17138983309268951, 0.6486733555793762, 0.3294132947921753, 1.0713260173797607, -0.2859564423561096, 0.07278287410736084, 0.06606268882751465, -0.7245837450027466, 0.30828145146369934, -0.35197389125823975, -0.2657111883163452, -0.455247163772583, 0.14304424822330475, -0.04135674238204956, 0.08661717176437378, 0.23706269264221191, -0.24847732484340668, -0.16521196067333221, 0.24070987105369568, 0.20393069088459015, -0.1578633040189743, 0.012860121205449104, 0.021121129393577576, -0.15685081481933594, -0.25676509737968445, -0.30603623390197754, 0.32167336344718933, -0.04963172972202301, -0.12438996136188507, -0.13450905680656433, -0.4282000660896301, -0.14855985343456268, 0.15761004388332367, 0.44484448432922363, 0.11151445657014847, 0.000009288545697927475, -0.06844928860664368, 0.09046681970357895, 0.3782488703727722, 0.3710682988166809, -0.1252414435148239, 0.44094526767730713, 0.030347317457199097, -0.10329227149486542, 0.1040143072605133, -0.020386770367622375, 0.19060558080673218, 0.03272492066025734, 0.006744532845914364, 0.13657152652740479, -0.08011601865291595, -0.09792981296777725, -0.01625492423772812, -0.02013622596859932, -0.0330018512904644, -0.2459149956703186, -0.023266039788722992, 0.12012720108032227, 0.08552425354719162, 0.35080283880233765, 0.37417516112327576, -0.18558627367019653, -0.03723858296871185, 0.19244436919689178, 0.07479550689458847, -0.14932726323604584, 0.2707740068435669, 0.21017645299434662, 0.1072012335062027, -0.18258801102638245, 0.43589121103286743, -0.1098008081316948, 0.2739391326904297, 0.09433605521917343, -0.04801531508564949, -0.26758211851119995, -0.16226667165756226, -0.0165366530418396, 0.28509941697120667, -0.5381802916526794, -0.03311306983232498, -0.2952464818954468, -0.2876087427139282, -0.06117493659257889, 0.0917728915810585, 0.029553113505244255, -0.21115756034851074, -0.2617620825767517, -0.007267151027917862, -0.4217532277107239, 0.18936555087566376, -0.3237179219722748, 0.2606714367866516, 0.10251782089471817, -0.057943154126405716, -0.3738838732242584, 0.012824904173612595, -0.3890319764614105, -0.05133221298456192, -0.11846674978733063, 0.15224239230155945, -0.1055346429347992, -0.3262152075767517, 0.03758269175887108, 0.10412141680717468, 0.1619139462709427, 0.3328254818916321, -0.19467520713806152, -0.19646552205085754, -0.3819713890552521, 0.07085973024368286, 0.019469939172267914, 0.040044136345386505, 0.11837460845708847, -0.13865530490875244, -0.3856615722179413, -0.09020540118217468, 0.18052005767822266, 0.04282490909099579, -0.19755186140537262, 0.09972527623176575, 0.16394487023353577, -0.48444005846977234, -0.0036002881824970245, 0.1324431598186493, 0.3689112067222595, 0.06953434646129608, -0.2527656555175781, 0.3120177388191223, -0.16061021387577057, -0.33687299489974976, -0.05421421676874161, 0.4809713065624237, 0.30622971057891846, -0.13281738758087158, 0.3480161726474762, 0.16554498672485352, 0.08324970304965973, -0.09087418019771576, 0.46269384026527405, -0.0020548924803733826, 0.028118548914790154, 0.04130246490240097, 0.12883415818214417, 0.21194981038570404, -0.2868650257587433, -0.17443227767944336, -0.3160918354988098, -0.4459642469882965, 0.10460963845252991, 0.19776132702827454, 0.4602367579936981, 0.03968965262174606, 0.2301604002714157, -0.020259521901607513, 0.07919848710298538, -0.3172805905342102, -0.3776676058769226, 0.2196238487958908, 0.0022484101355075836, 0.18880808353424072, 0.2309769243001938, -0.1009274572134018, 0.003356367349624634, 0.09917150437831879, 0.04679521545767784, 0.13206443190574646, -0.20324531197547913, 0.32292112708091736, 0.26958805322647095, -0.472993403673172, 0.056704651564359665, 0.16707110404968262, 0.3701648414134979, 0.3716906011104584, -0.004415184259414673, 0.3111726641654968, 0.11304927617311478, -0.45105472207069397, 0.025178587064146996, 0.3322184681892395, 0.0030861124396324158, -0.07997864484786987, -0.11828725039958954, -0.13346710801124573, -0.39838093519210815, -0.10278846323490143, 0.07612253725528717, -0.1134035587310791, 0.1544715166091919, 0.14012077450752258, 0.10386163741350174, -0.04639347642660141, 0.13092666864395142, -0.02869565039873123, 0.158115953207016, -0.07897243648767471, 0.023491287603974342, 0.19681528210639954, -0.08259010314941406, -0.0751061886548996, 0.305515855550766, 0.14709801971912384, 0.028114840388298035, 0.02631642296910286, 0.11632102727890015, 0.2739616930484772, -0.2358342707157135, 0.3903203010559082, -0.08052869141101837, -0.04964415729045868, 0.061632148921489716, 0.27808210253715515, 0.1358257532119751, -0.17561446130275726, 0.06293259561061859, -0.15257450938224792, 0.30838629603385925, -0.057033006101846695, 0.42211276292800903, 0.34081339836120605, -0.02046392112970352, -0.22010502219200134, -0.06031123548746109, -0.24485987424850464, -0.391544908285141, 0.05492285639047623, -0.32901808619499207, -0.06427532434463501, 0.08090566843748093, 0.09358963370323181, 0.20055334270000458, 0.3224250376224518, 0.17744946479797363, -0.10427283495664597, -0.2222643345594406, -0.10421556979417801, -0.1108497828245163, -0.2039964199066162, 0.02821158431470394, 0.2957451641559601, -0.048402536660432816, 0.25921630859375, 0.2191900610923767, -0.2896377444267273, 0.2679519057273865, -0.6114619374275208, 0.41228973865509033, 0.1451319456100464, -0.1611103117465973, -0.1639767587184906, -0.1332625448703766, 0.044327061623334885, 0.054733119904994965, -0.5430838465690613, -0.038936298340559006, 0.19287797808647156, 0.08935471624135971, 0.07930612564086914, 0.03645492345094681, 0.3813880980014801, -0.19956788420677185, 0.01253560557961464, 0.05566123127937317, 0.1492057889699936, -0.10377363860607147, -0.1789168268442154, 0.313320517539978, -0.03946428373456001, -0.22831550240516663, -0.26967138051986694, -0.004427164793014526, 0.44655290246009827, 0.11867522448301315, -0.642758309841156, -0.057092465460300446, 0.035917192697525024, -0.1767187863588333, -0.1832425445318222, -0.47703513503074646, 0.47987034916877747, -0.17987945675849915, 0.07047214359045029, 0.1465327888727188, 0.2625429332256317, 0.230928435921669, 0.06578461825847626, -0.4072974920272827, 0.055716484785079956, 0.4804286062717438, -0.16364221274852753, 0.12742798030376434, 0.21806812286376953, -0.0036791861057281494, 0.2855549156665802, -0.2520022988319397, -0.3689136505126953, -0.009007938206195831, 0.08168274164199829, -0.048757895827293396, 0.0644378811120987, 0.4282039403915405, -0.0046655721962451935, 0.1106516420841217, -0.2901309132575989, -0.2616913914680481, 0.06628283858299255, -0.06697751581668854, 0.012476921081542969, -0.06155207008123398 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
Hi ! The message you're getting is not an error. It simply says that your JSON dataset is being prepared to a location in `/root/.cache/huggingface/datasets`
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
25
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ Hi ! The message you're getting is not an error. It simply says that your JSON dataset is being prepared to a location in `/root/.cache/huggingface/datasets`
[ 0.13406217098236084, -0.4356924891471863, -0.0010808464139699936, 0.44089025259017944, 0.49532610177993774, 0.11847878247499466, 0.08066174387931824, 0.3796992301940918, 0.10518324375152588, -0.0702868103981018, -0.035300061106681824, 0.19575181603431702, -0.09737366437911987, 0.32670000195503235, -0.1525484323501587, -0.09336104989051819, 0.0823303759098053, 0.07409645617008209, -0.1414862871170044, 0.07920143008232117, -0.21507300436496735, 0.3840419352054596, -0.00212068110704422, 0.009833835065364838, -0.2920081615447998, -0.12039705365896225, 0.03980941325426102, 0.24326765537261963, -0.2985904812812805, -0.5010698437690735, 0.2849070727825165, -0.0953262597322464, 0.24651607871055603, 0.43382009863853455, -0.00011257346341153607, 0.07086603343486786, 0.28208988904953003, -0.17431318759918213, -0.3865683078765869, -0.3857502341270447, -0.143133282661438, -0.3407209813594818, 0.36620938777923584, -0.07624466717243195, -0.11118622124195099, -0.13006889820098877, -0.09945078194141388, -0.13989028334617615, 0.8514155149459839, 0.254305362701416, 0.27277472615242004, 0.31827422976493835, 0.11540113389492035, -0.11997858434915543, 0.03633151203393936, 0.319735586643219, -0.06762837618589401, 0.5441520810127258, 0.05164626985788345, 0.18071548640727997, 0.1949743926525116, 0.2008497565984726, 0.11861397325992584, 0.0050871241837739944, 0.39774277806282043, 0.004169905092567205, -0.13508281111717224, -0.3455568253993988, -0.1897275447845459, 0.053893666714429855, 0.3800937235355377, -0.20956853032112122, -0.6211259961128235, -0.5102400779724121, 0.15069733560085297, -0.34002381563186646, 0.3419014513492584, 0.2085120677947998, -0.05165061354637146, -0.021520446985960007, -0.3525157868862152, -0.19474633038043976, -0.06430872529745102, -0.050713345408439636, 0.3227287232875824, -0.14899355173110962, -0.3083500564098358, 0.025266196578741074, 0.1538550853729248, -0.20234519243240356, -0.1691509187221527, 0.1035899817943573, -0.23628222942352295, 0.3077514171600342, -0.26083874702453613, -0.1753767430782318, -0.15063562989234924, -0.1923891305923462, 0.05916013568639755, 0.24457871913909912, -0.00597235094755888, -0.19026869535446167, -0.017439350485801697, 0.11997449398040771, 0.3295106589794159, 0.4092619717121124, 0.009220220148563385, -0.02941928431391716, 0.0697396770119667, 0.4435238242149353, 0.02282782271504402, -0.20532965660095215, -0.06865548342466354, -0.19082465767860413, -0.1360350251197815, -0.07673531770706177, 0.06814943253993988, -0.23500828444957733, -0.134569451212883, 0.12663841247558594, -0.21461108326911926, -0.19632242619991302, -0.02243296429514885, 0.3087320327758789, -0.22152502834796906, 0.14933642745018005, 0.15970478951931, 0.35733383893966675, -0.1844121664762497, -0.01639338582754135, -0.09401197731494904, -0.007566297426819801, -0.2016066014766693, 0.08428572118282318, 0.21410830318927765, -0.07777361571788788, 0.3825952708721161, 0.007672467269003391, 0.13401192426681519, -0.30074024200439453, 0.050146013498306274, -0.009691044688224792, -0.2060449719429016, 0.24865126609802246, 0.04777560010552406, 0.07140956819057465, 0.107940673828125, -0.0929199755191803, -0.1341293752193451, -0.1648007035255432, -0.3751424252986908, -0.27941715717315674, -0.016789095476269722, 0.20426972210407257, -0.14780041575431824, 0.09658239781856537, -0.5965673327445984, 0.02442791871726513, 0.036594077944755554, -0.0513618066906929, 0.10821529477834702, -0.09907534718513489, -0.0027630552649497986, -0.2225881665945053, 0.3280196785926819, 0.3251008987426758, -0.11081425845623016, -0.32288849353790283, 0.22916178405284882, -0.29215186834335327, -0.04847092181444168, 0.42695000767707825, -0.04207386448979378, 0.2859466075897217, -0.38171088695526123, -0.0156281515955925, 0.03963581472635269, -0.3100791871547699, -0.08651063591241837, 0.13632021844387054, -0.06965067982673645, 0.15917964279651642, 0.05495557561516762, -0.1607619822025299, -0.07906400412321091, 0.09244336187839508, 0.2820345461368561, 0.2025061994791031, 0.058946393430233, 0.051097601652145386, -0.2899792790412903, -0.37150314450263977, -0.17478562891483307, 0.13065126538276672, -0.2812929153442383, 0.17599831521511078, -0.024657227098941803, -0.08876980096101761, 0.16054902970790863, -0.13881677389144897, 0.04185452312231064, 0.4429997205734253, 0.17768047749996185, 0.18873187899589539, -0.06438847631216049, 0.05842813849449158, -0.698853611946106, 0.21299198269844055, -0.17953231930732727, 0.03663376718759537, -0.05596818029880524, -0.1083214059472084, -0.27708160877227783, -0.08163651823997498, -0.06509634852409363, -0.15536777675151825, 0.09646721184253693, -0.030858516693115234, 0.3887808322906494, 0.26741939783096313, -0.24023652076721191, 0.2569639980792999, -0.021355818957090378, 0.3883885145187378, -0.5748909711837769, 0.1604113131761551, 0.01294715516269207, -0.09049336612224579, 0.1975717842578888, 0.158427894115448, -0.00008198246359825134, -0.17812667787075043, -0.16814163327217102, 0.2582543194293976, -0.02930770255625248, 0.26924341917037964, 0.050638262182474136, 0.03254354000091553, 0.09195100516080856, 0.17843811213970184, -0.18806695938110352, 0.05946838855743408, 0.05601256340742111, -0.04594006389379501, -0.024847649037837982, 0.49085068702697754, -0.1477123349905014, 0.12646517157554626, 0.027234621345996857, -0.1383654773235321, 0.19045448303222656, 0.12501651048660278, -0.11972898989915848, -0.1933060586452484, 0.16689366102218628, 0.13203613460063934, 0.08042040467262268, -0.023113654926419258, -0.29562392830848694, -0.3768152594566345, 0.4740639925003052, -0.004399057477712631, -0.0997621938586235, 0.4230204224586487, -0.009209953248500824, 0.10290365666151047, -0.04971739649772644, 0.19854162633419037, 0.4678187370300293, 0.04384651035070419, -0.2617485225200653, 0.18592557311058044, 0.12942905724048615, -0.19065967202186584, 0.04760850965976715, -0.060877785086631775, 0.37546586990356445, 0.19941550493240356, 0.22417470812797546, -0.028738047927618027, -0.2965850830078125, 0.0996709018945694, -0.13637177646160126, 0.19929800927639008, -0.4380296468734741, 0.07083461433649063, -0.14079198241233826, -0.14077123999595642, -0.2005554884672165, -0.004102046601474285, -0.47853517532348633, -0.10149005800485611, -0.04442115128040314, 0.2648247182369232, -0.07113292813301086, -0.04359553009271622, 0.06430056691169739, 0.2944275140762329, 0.0029921922832727432, 0.06317482888698578, -0.1944441795349121, 0.09385786950588226, -0.2495763897895813, -0.0024779420346021652, 0.13818322122097015, -0.3324597179889679, 0.28935930132865906, -0.4716013967990875, -0.035537272691726685, -0.009950615465641022, -0.12047218531370163, 0.13163061439990997, -0.14946022629737854, 0.44726356863975525, 0.20321977138519287, 0.33924856781959534, -0.21615822613239288, -0.12592731416225433, 0.41628021001815796, 0.012471025809645653, -0.4368584156036377, -0.1382230669260025, 0.08632905036211014, 0.24541224539279938, -0.23998627066612244, -0.35346582531929016, -0.1518465280532837, -0.3174445629119873, 0.7419293522834778, 0.10694321990013123, 0.004057522863149643, 0.15056560933589935, 0.18322381377220154, 0.0978761836886406, -0.3299696445465088, 0.24966605007648468, -0.2563903331756592, -0.716976523399353, 0.2397574782371521, -0.25779488682746887, -0.3208523690700531, 0.08484604954719543, 0.09915199130773544, 0.26349973678588867, -0.3823280930519104, -0.5710346698760986, -0.4254978597164154, 0.006732132285833359, -0.026223735883831978, -0.1655316948890686, 0.12210158258676529, 0.11776755750179291, -0.09725883603096008, -0.010526144877076149, -0.05089551955461502, -0.295768141746521, 0.06265335530042648, 0.025657379999756813, 0.24250084161758423, -0.07832344621419907, 0.652778685092926, -0.15991690754890442, 0.5840444564819336, 0.3300723135471344, -0.04954544082283974, 0.3927122950553894, -0.05203472077846527, 0.31435251235961914, -0.23601698875427246, -0.14619307219982147, 0.029611678794026375, -0.1927470564842224, 0.07115046679973602, 0.08579888939857483, 0.22930526733398438, 0.22385205328464508, -0.1641145646572113, 0.15952998399734497, -0.425357460975647, -0.15833881497383118, -0.034457750618457794, -0.05643191188573837, 0.005484454333782196, 0.0018624458461999893, 0.0996503159403801, -0.00022874586284160614, 0.020439837127923965, -0.027852563187479973, 0.2176712453365326, 0.3336057960987091, 0.10251465439796448, -0.43628135323524475, -0.32302162051200867, -0.2973843514919281, 0.24818427860736847, -0.027103623375296593, 0.25557902455329895, -0.04990691691637039, 0.03198830038309097, 0.1877235323190689, -0.04635455086827278, 0.7925142049789429, 0.07039830833673477, -0.16077367961406708, 0.05574868991971016, -0.11277815699577332, -0.4081827700138092, -0.06970325112342834, -0.025024548172950745, -0.028068197891116142, 0.32620400190353394, 0.7346369028091431, -0.3563612401485443, -0.18111573159694672, -0.1876763552427292, 0.14182916283607483, -0.15878687798976898, -0.12288632243871689, -0.32237479090690613, -0.2828173339366913, -0.5322408080101013, 0.07360421121120453, -0.017454519867897034, 0.24413202702999115, -0.033900611102581024, 0.13876838982105255, 0.13721196353435516, 0.06601372361183167, -0.034257709980010986, 0.19315283000469208, 0.4103870987892151, 0.029402077198028564, 0.27499717473983765, 0.4091407060623169, 0.23575454950332642, 0.3540496826171875, 0.7526971101760864, 0.06881428509950638, -0.20876121520996094, -0.11364806443452835, 0.14685101807117462, 0.23187339305877686, 0.1508883684873581, 0.09386440366506577, 0.1266569048166275, 0.19015103578567505, 0.3605610132217407, -0.40258246660232544, -0.07939338684082031, 0.581317126750946, -0.044736944139003754, -0.11416717618703842, -0.21385839581489563, 0.350493848323822, 0.0006263907998800278, 0.18673677742481232, -0.01292651891708374, 0.06927242130041122, -0.15504370629787445, 0.18002790212631226, -0.0012657418847084045, 0.8067187666893005, -0.03851674497127533, 0.3022589683532715, 0.44756171107292175, -0.399294912815094, 0.6552957892417908, -0.2778066098690033, 0.15669111907482147, -0.3522603511810303, 0.1286008656024933, 0.11008341610431671, -0.15032561123371124, -0.026852212846279144, 0.1976935863494873, -0.04036492109298706, 0.20381790399551392, -0.1332745999097824, 0.15441402792930603, -0.20093005895614624, 0.18923938274383545, -0.2842808961868286, -0.24618828296661377, -0.4956706166267395, 0.13601984083652496, -0.13461364805698395, 0.3271983563899994, -0.15703502297401428, -0.12666133046150208, 0.10354149341583252, -0.2703900933265686, -0.20681637525558472, 0.06000889092683792, -0.02359795570373535, 0.028287548571825027, 0.4787145256996155, -0.12408162653446198, 0.0631098598241806, 0.11644372344017029, 0.1761608123779297, 0.1395091563463211, -0.2699515223503113, 0.06515496969223022, -0.0797497108578682, -0.046436358243227005, -0.18585360050201416, 0.16638271510601044, 0.15760266780853271, -0.09350361675024033, -0.19118881225585938, -0.0605718269944191, -0.2214796245098114, -0.10117645561695099, -0.1569962203502655, -0.014033511281013489, -0.4428226947784424, -0.38360029458999634, -0.20758871734142303, -0.15428340435028076, 0.20724382996559143, -0.11327064037322998, 0.17153078317642212, 0.16466793417930603, -0.06612113118171692, 0.06721533834934235, 0.30099886655807495, -0.25698545575141907, -0.2389201670885086, 0.5717564821243286, -0.11441346257925034, -0.23393723368644714, 0.6413202285766602, 0.290059894323349, -0.07778149843215942, -0.16768085956573486, 0.11665228754281998, 0.19496218860149384, -0.40319421887397766, 0.24682234227657318, 0.2105834186077118, 0.11171342432498932, -0.16698278486728668, 0.14123357832431793, 0.2819284498691559, -0.2832361161708832, 0.391939640045166, -0.42727938294410706, -0.4593528211116791, 0.3773725628852844, 0.0017411001026630402, 0.10539224743843079, 0.1269795000553131, 0.009541348554193974, 0.01520431600511074, -0.05861792713403702, -0.29507771134376526, 0.17612148821353912, -0.26059406995773315, -0.01433493196964264, 0.05642329901456833, -0.11255442351102829, 0.2744503319263458, -0.08832752704620361, 0.09157205373048782, 0.11814556270837784, -0.2984955906867981, -0.18491816520690918, -0.09309738874435425, 0.11959894001483917, 0.020542876794934273, -0.09126227349042892, 0.046647340059280396, -0.03617221117019653, -0.10687777400016785, -0.13365574181079865, 0.017010316252708435, 0.2348414957523346, 0.08572021126747131, 0.08741363137960434, -0.027691569179296494, 0.10105705261230469, 0.12116485834121704, -0.08371520042419434, 0.1928306519985199, 0.3255055546760559, 0.08100246638059616, -0.09383934736251831, -0.2158466875553131, 0.08991511166095734, -0.2969084680080414, 0.1306852400302887, 0.052285335958004, 0.1465895175933838, 0.2017664909362793, -0.424267053604126, 0.12500005960464478, 0.0041467840783298016, 0.32549911737442017, 0.3533190190792084, -0.3212662935256958, 0.14793668687343597, 0.2711656987667084, 0.20591485500335693, -0.08041675388813019, -0.050762102007865906, 0.08942143619060516, 0.043784040957689285, -0.270693302154541, 0.17499735951423645, 0.10400079190731049, 0.028572186827659607, -0.002631165087223053, 0.15676403045654297, 0.2878855764865875, 0.11216242611408234, 0.24111902713775635, 0.04089817404747009, -0.1476527899503708, -0.11255034804344177, 0.1746116727590561, -0.026590753346681595, 0.22332140803337097, 0.05820894613862038, -0.01856309175491333, 0.04684028774499893, -0.24358820915222168, 0.2578292787075043, -0.1573898196220398, -0.49059611558914185, -0.09697297215461731, 0.1844133734703064, 0.020978562533855438, 0.13074839115142822, -0.11960573494434357, 0.5166472792625427, -0.22563166916370392, -0.3046171963214874, -0.3545423746109009, 0.18529509007930756, -0.21390584111213684, -0.17609331011772156, -0.1120360717177391, -0.1744341254234314, -0.07298658788204193, 0.15547582507133484, -0.1676073670387268, -0.15559354424476624, 0.04019617289304733, -0.030680350959300995, -0.17857201397418976, -0.3445289731025696, -0.031773246824741364, 0.17468899488449097, 0.2827553153038025, -0.10075050592422485, 0.36186161637306213, 0.21405908465385437, -0.12714149057865143, 0.22504553198814392, 0.3797438442707062, 0.4490360915660858, 0.3273966610431671, 0.009346889331936836, 0.04293022304773331, -0.15554699301719666, 0.14956532418727875, 0.0048061273992061615, 0.4253978431224823, 0.28729498386383057, -0.09728404879570007, 0.2278939038515091, 0.2152622640132904, -0.21069283783435822, 0.11482663452625275, -0.19656537473201752, 0.3319436311721802, -0.2905266582965851, 0.23810353875160217, -0.2417163848876953, 0.09833566099405289, -0.19790753722190857, -0.006654992699623108, -0.5765222311019897, 0.1236623004078865, 0.08565863966941833, 0.2294645756483078, 0.09229777008295059, -0.15757907927036285, 0.09830867499113083, -0.054868001490831375, 0.5374793410301208, 0.4525361657142639, -0.04143495857715607, -0.20508532226085663, -0.0999370589852333, -0.352518767118454, 0.013659656047821045, -0.06556010246276855, 0.27341628074645996, 0.028983216732740402, 0.019117159768939018, -0.10943631082773209, 0.015794923529028893, 0.16914036870002747, 0.012208331376314163, -0.23801256716251373, -0.04462384432554245, -0.31862717866897583, -0.22259624302387238, -0.2541850805282593, 0.11010715365409851, 0.21347676217556, -0.01847533881664276, 0.1306256204843521, -0.22552181780338287, -0.012080755084753036, 0.001377420499920845, 0.22499972581863403, -0.26290419697761536, -0.004301585257053375, 0.40195196866989136, 0.15351811051368713, 0.15116910636425018, -0.03702877461910248, -0.440973162651062, -0.19096961617469788, -0.475749135017395, -0.0594768300652504, 0.31086215376853943, -0.21101050078868866, 0.5644005537033081, -0.30498358607292175, -0.02304905280470848, -0.4494189918041229, 0.0936063826084137, -0.03424493595957756, -0.2485242784023285, -0.1765887439250946, 0.08382858335971832, 0.030849814414978027, 0.06338182091712952, 0.2748423218727112, 0.3875698149204254, -0.0950620174407959, 0.25048401951789856, -0.31603682041168213, -0.13712754845619202, 0.6417094469070435, -0.29054582118988037, -0.0155383525416255, 0.26592984795570374, 0.15500417351722717, 0.10896771401166916, -0.3436472713947296, -0.6332705616950989, 0.25707221031188965, 0.3498012125492096, -0.05896621197462082, -0.15564583241939545, 0.17018269002437592, -0.2635739743709564, -0.2715691924095154, 0.006462495774030685, 0.3916608989238739, -0.00977357104420662, -0.15093928575515747, 0.22548320889472961, -0.10683413594961166 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
> but I want to load local JSON file by command `python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` **squad-retrain-data/train-v2.0.json** is the local JSON file, how to load it and map it to a special structure?
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
37
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ > but I want to load local JSON file by command `python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` **squad-retrain-data/train-v2.0.json** is the local JSON file, how to load it and map it to a special structure?
[ 0.19122926890850067, -0.36753785610198975, -0.002915043383836746, 0.5285811424255371, 0.39126384258270264, 0.0750025138258934, 0.08558357506990433, 0.46426284313201904, 0.2954297363758087, -0.09331418573856354, -0.10459879785776138, 0.22339390218257904, 0.004662572406232357, 0.29200685024261475, -0.08383411914110184, -0.15047205984592438, 0.07437709718942642, 0.1011803150177002, -0.0999642014503479, 0.07780022919178009, -0.3029293715953827, 0.39278361201286316, 0.03488606959581375, 0.07668721675872803, -0.10235818475484848, 0.06337401270866394, 0.0872768759727478, 0.2624529302120209, -0.22575625777244568, -0.5375311970710754, 0.33947625756263733, -0.14916911721229553, 0.2267312854528427, 0.44447627663612366, -0.00011368939885869622, 0.21703507006168365, 0.3353908658027649, -0.2139928638935089, -0.2998427450656891, -0.4525947570800781, -0.2306818664073944, -0.2641105353832245, 0.4249500632286072, -0.11637051403522491, -0.11967238038778305, -0.3074537217617035, -0.08181437849998474, -0.15403008460998535, 0.8801875114440918, 0.1835414618253708, 0.21412387490272522, 0.2607218027114868, 0.16586095094680786, -0.08201595395803452, 0.09804927557706833, 0.4361206889152527, -0.013949241489171982, 0.7154095768928528, 0.18897046148777008, 0.19513371586799622, 0.15106697380542755, 0.00877795647829771, 0.05779566615819931, 0.07808889448642731, 0.29585573077201843, -0.05891944468021393, -0.040035612881183624, -0.1861746907234192, -0.14222338795661926, 0.14454776048660278, 0.44412827491760254, -0.24247196316719055, -0.5932990312576294, -0.36378350853919983, 0.0628301128745079, -0.2452019304037094, 0.35913264751434326, 0.23845043778419495, -0.12285052239894867, 0.07138152420520782, -0.2872864902019501, -0.20931489765644073, -0.1736641675233841, 0.09115258604288101, 0.3180137872695923, -0.0820704847574234, -0.32313480973243713, 0.0564124695956707, 0.1946074366569519, -0.24239788949489594, -0.13028423488140106, 0.03138256445527077, -0.22083830833435059, 0.33781933784484863, -0.1246529072523117, -0.09394632279872894, -0.26836228370666504, -0.22546535730361938, 0.11950965970754623, 0.03646738827228546, 0.02751820534467697, -0.14084729552268982, -0.1272028088569641, 0.24698922038078308, 0.3131500482559204, 0.3803842067718506, 0.09135576337575912, 0.04938540235161781, -0.007336899638175964, 0.43425700068473816, -0.07791301608085632, -0.14183560013771057, -0.12387284636497498, -0.21450938284397125, -0.3287106156349182, -0.06351691484451294, 0.03701724857091904, -0.24479836225509644, 0.0240324754267931, 0.053404927253723145, -0.33318811655044556, -0.17730332911014557, 0.14168037474155426, 0.3235250413417816, -0.17329087853431702, 0.1130930483341217, 0.12116968631744385, 0.2992584705352783, -0.10815580934286118, 0.0709109753370285, -0.056032899767160416, 0.08683688938617706, -0.09428761899471283, 0.07107426226139069, 0.20123203098773956, -0.10189531743526459, 0.37124133110046387, -0.01314979325979948, -0.012323826551437378, -0.26112234592437744, 0.00874209776520729, -0.006900610867887735, -0.1912035048007965, 0.27196967601776123, 0.05156499519944191, 0.11968778818845749, 0.1977691501379013, -0.1753087043762207, -0.22268712520599365, -0.10327041894197464, -0.4090571105480194, -0.32000741362571716, -0.0659150630235672, 0.14968422055244446, -0.1829795241355896, 0.1491926908493042, -0.6432968974113464, -0.11949199438095093, -0.07647242397069931, -0.1589270830154419, -0.006021320819854736, -0.0606168657541275, -0.14799723029136658, -0.13524822890758514, 0.28350210189819336, 0.336724191904068, -0.2618972361087799, -0.2712308168411255, 0.20879216492176056, -0.34650129079818726, -0.04591990262269974, 0.47520244121551514, -0.11661739647388458, 0.3254610300064087, -0.4514954388141632, -0.010521069169044495, 0.17423996329307556, -0.4279031753540039, -0.09776952117681503, 0.3394383192062378, -0.04012194648385048, 0.14805074036121368, 0.09781677275896072, -0.23165488243103027, -0.20679013431072235, 0.09997166693210602, 0.3258717656135559, 0.17443197965621948, 0.20011325180530548, 0.062165550887584686, -0.2348695695400238, -0.31463783979415894, -0.19853109121322632, 0.21309520304203033, -0.3558548390865326, 0.18985934555530548, 0.060540974140167236, -0.01631026342511177, 0.1433538794517517, -0.18173719942569733, 0.07427417486906052, 0.4196126461029053, 0.13619226217269897, 0.09846172481775284, -0.03348853066563606, 0.12163466960191727, -0.7362275719642639, 0.1453266143798828, -0.23504558205604553, -0.07371056079864502, -0.0516415536403656, -0.08179689198732376, -0.30768173933029175, -0.04455084726214409, -0.1600233018398285, 0.05369139090180397, 0.059022657573223114, -0.004698708653450012, 0.3805217742919922, 0.20926755666732788, -0.2081831842660904, 0.17972664535045624, -0.07019051164388657, 0.25103989243507385, -0.5658289194107056, 0.14604681730270386, 0.0013767089694738388, -0.04524310305714607, 0.1973353773355484, 0.11529882252216339, 0.10284070670604706, -0.33538681268692017, -0.20734035968780518, 0.1647704541683197, 0.05894700065255165, 0.307395875453949, -0.05915186554193497, -0.019747063517570496, 0.06765098869800568, 0.1818958818912506, -0.24741041660308838, 0.11011180281639099, 0.10684613883495331, -0.07300791889429092, -0.1315912902355194, 0.46091228723526, -0.1507706344127655, 0.17807328701019287, 0.0676785334944725, -0.17897069454193115, 0.31209418177604675, 0.08861932158470154, -0.17253272235393524, -0.2643616795539856, 0.0998171865940094, 0.2826196253299713, 0.18825869262218475, 0.07486419379711151, -0.24236778914928436, -0.4787535071372986, 0.4757584035396576, -0.05767974629998207, -0.13561174273490906, 0.35505059361457825, -0.05959383398294449, 0.06807016581296921, -0.04087086021900177, 0.18113665282726288, 0.4471728801727295, -0.028194721788167953, -0.2612186074256897, 0.21238282322883606, 0.26335015892982483, -0.19093109667301178, 0.019234828650951385, -0.061769187450408936, 0.2918365001678467, 0.317484050989151, 0.16027089953422546, -0.1294073760509491, -0.297681599855423, 0.027303677052259445, -0.10318106412887573, 0.18938758969306946, -0.4977818727493286, -0.028313182294368744, -0.23221158981323242, -0.2172587513923645, -0.33475741744041443, -0.062016431242227554, -0.2776678800582886, -0.050321243703365326, -0.10429513454437256, 0.2689657509326935, -0.17512178421020508, -0.08722025156021118, 0.14272136986255646, 0.1581704020500183, -0.04027985408902168, -0.1668705940246582, -0.2561635375022888, 0.05108395218849182, -0.25591084361076355, -0.03987305611371994, 0.3317062556743622, -0.18437667191028595, 0.15131095051765442, -0.5701091885566711, -0.1720830351114273, 0.012581872753798962, -0.04819982126355171, 0.21962104737758636, -0.028684541583061218, 0.40756428241729736, 0.11015253514051437, 0.3714238405227661, -0.2840045094490051, -0.12593112885951996, 0.4607091248035431, 0.07603561878204346, -0.4325691759586334, -0.14211562275886536, -0.0211800429970026, 0.2068890631198883, -0.1878804862499237, -0.3427136242389679, -0.25491246581077576, -0.44150662422180176, 0.8767679929733276, 0.14568327367305756, 0.16596034169197083, 0.090849868953228, 0.10346639156341553, 0.19672764837741852, -0.24848857522010803, 0.23960277438163757, -0.16211041808128357, -0.8245719075202942, 0.2767783999443054, -0.31626197695732117, -0.2588112950325012, 0.038094136863946915, 0.05029973387718201, 0.2674004137516022, -0.35777050256729126, -0.5028184056282043, -0.3877103626728058, 0.06896502524614334, -0.07324197888374329, -0.08021868765354156, 0.06840389221906662, 0.1067420244216919, -0.10998476296663284, 0.05551017075777054, -0.04540042579174042, -0.2853206396102905, 0.06754931807518005, 0.1838708519935608, 0.14193247258663177, 0.17648574709892273, 0.58332359790802, -0.21157188713550568, 0.5565186142921448, 0.2927146852016449, -0.04268264397978783, 0.43589362502098083, -0.09815498441457748, 0.22164733707904816, -0.2796320617198944, -0.13501375913619995, -0.06699223816394806, -0.08182650804519653, 0.04281482845544815, 0.049147337675094604, 0.2640860676765442, 0.23823799192905426, -0.23052112758159637, -0.059651054441928864, -0.498777836561203, -0.1514483541250229, -0.02649875544011593, 0.10927466303110123, -0.047997310757637024, -0.10512109100818634, -0.026289939880371094, 0.059997860342264175, 0.05312424898147583, 0.08593936264514923, 0.3848918080329895, 0.3026916980743408, 0.22440877556800842, -0.5301482081413269, -0.36051714420318604, -0.16539183259010315, 0.29596078395843506, 0.08275908976793289, 0.28617435693740845, -0.048462577164173126, 0.05338349938392639, 0.10070629417896271, -0.04921569302678108, 0.6344500780105591, 0.07861418277025223, 0.0026850029826164246, 0.2067774385213852, -0.1607993245124817, -0.4870440363883972, -0.03190487250685692, 0.057064998894929886, 0.10107261687517166, 0.343261182308197, 0.8691835999488831, -0.24938353896141052, -0.2646576166152954, -0.2219921499490738, 0.25221121311187744, -0.21819669008255005, -0.2777363061904907, -0.24599643051624298, -0.27486586570739746, -0.45259764790534973, -0.06940405815839767, -0.01740410178899765, 0.24629871547222137, 0.1585635095834732, 0.020024839788675308, 0.14973554015159607, 0.04649098962545395, -0.08625632524490356, 0.1268502026796341, 0.32869449257850647, 0.028559759259223938, 0.23945268988609314, 0.40488168597221375, 0.27384519577026367, 0.3695838153362274, 0.7944927215576172, 0.07866740226745605, -0.2009391486644745, -0.08829422295093536, 0.2146518975496292, 0.18536438047885895, -0.04265771806240082, 0.10900212079286575, -0.04382399469614029, 0.19016118347644806, 0.20691946148872375, -0.400465190410614, -0.0706523060798645, 0.39849066734313965, -0.11376605927944183, -0.04040105640888214, -0.36375153064727783, 0.44485315680503845, 0.02498720958828926, 0.05940382182598114, 0.013397999107837677, -0.029248371720314026, -0.15271587669849396, 0.22865313291549683, -0.0987098440527916, 0.5484411716461182, -0.2015049010515213, 0.2203293889760971, 0.40331417322158813, -0.3815212845802307, 0.4677104949951172, -0.25726449489593506, 0.08764182031154633, -0.3252796530723572, 0.24356244504451752, 0.07633008062839508, -0.20536978542804718, 0.02984766662120819, 0.23229722678661346, 0.031221169978380203, 0.2671053111553192, -0.08861099183559418, 0.16237543523311615, -0.23086917400360107, 0.2546732723712921, -0.13737915456295013, -0.2601053714752197, -0.5787103772163391, 0.08724600076675415, -0.11002308130264282, 0.4069189131259918, -0.08675256371498108, -0.1577879637479782, 0.037447500973939896, -0.25206470489501953, -0.0544951856136322, 0.05523986369371414, -0.011728862300515175, 0.049306146800518036, 0.5020217895507812, -0.08175813406705856, 0.09063559770584106, 0.23870384693145752, -0.014636412262916565, 0.0968749076128006, -0.3091351389884949, 0.009000837802886963, -0.05637191981077194, -0.028668705374002457, -0.251625120639801, 0.20458517968654633, 0.15145248174667358, -0.04406952112913132, -0.07704609632492065, -0.13092496991157532, -0.21337546408176422, -0.16270311176776886, -0.23366379737854004, -0.031913064420223236, -0.43120211362838745, -0.33217522501945496, -0.3035150468349457, -0.2407468855381012, 0.1545865684747696, -0.02471262216567993, 0.1256915032863617, 0.07187499105930328, -0.0700325071811676, -0.031749434769153595, 0.2574245035648346, -0.2753087878227234, -0.04544723406434059, 0.6496853828430176, -0.09019733220338821, -0.14304135739803314, 0.6076922416687012, 0.2726016640663147, -0.019374972209334373, -0.1740955114364624, 0.18050909042358398, 0.3148401975631714, -0.254567950963974, 0.20914781093597412, 0.21902650594711304, 0.12331409752368927, -0.14248614013195038, 0.19940100610256195, 0.3231081962585449, -0.2206694483757019, 0.4623315632343292, -0.5156757235527039, -0.5367415547370911, 0.413032591342926, 0.0036372430622577667, 0.024571828544139862, 0.19778978824615479, 0.10635228455066681, 0.005038555711507797, -0.11011791229248047, -0.24655959010124207, 0.25115883350372314, -0.2627573609352112, -0.08072739094495773, 0.13735666871070862, 0.027301497757434845, 0.2553502321243286, -0.02953285351395607, 0.10834820568561554, 0.05278678983449936, -0.32097724080085754, -0.15845522284507751, -0.11358143389225006, 0.1242210790514946, 0.08596716821193695, -0.08270078152418137, -0.07007110118865967, -0.09186869859695435, 0.015756763517856598, -0.08488807082176208, 0.019739635288715363, 0.23117059469223022, 0.020453721284866333, 0.18799060583114624, -0.053181227296590805, 0.08029641956090927, 0.09293033182621002, 0.1056348904967308, 0.14106625318527222, 0.43279826641082764, -0.0491751991212368, -0.055515632033348083, -0.135532945394516, 0.09934301674365997, -0.2593227028846741, 0.024501696228981018, 0.06461997330188751, 0.1784575879573822, 0.2213742434978485, -0.30528581142425537, 0.22366958856582642, 0.07971556484699249, 0.33410343527793884, 0.27043330669403076, -0.4050735831260681, 0.29572349786758423, 0.3183572292327881, 0.15514661371707916, -0.04699183255434036, -0.10293445736169815, 0.28098437190055847, -0.04407699033617973, -0.25108638405799866, 0.08881448209285736, 0.19540107250213623, -0.10098285228013992, -0.06804490089416504, 0.017154742032289505, 0.3132058084011078, 0.24538500607013702, 0.13055074214935303, 0.1410524696111679, -0.2025655210018158, -0.1651695966720581, 0.10355094075202942, 0.025332778692245483, 0.2848574221134186, 0.06400822103023529, -0.06139080971479416, -0.1065438836812973, -0.23227891325950623, 0.4506886899471283, -0.04500579088926315, -0.47610536217689514, -0.0381084568798542, 0.29357218742370605, 0.06754729151725769, 0.11341691017150879, -0.11152741312980652, 0.5254427790641785, -0.12650834023952484, -0.1276545375585556, -0.2094821184873581, 0.17327135801315308, -0.1096063032746315, -0.2748483121395111, -0.2506290674209595, -0.16108018159866333, -0.06438513100147247, 0.17417480051517487, -0.18846148252487183, -0.12311774492263794, 0.03337628394365311, 0.006026558578014374, -0.07929052412509918, -0.15516650676727295, 0.0026323944330215454, 0.1860649585723877, 0.1626647263765335, -0.22341388463974, 0.4230593740940094, 0.15757305920124054, -0.13960573077201843, 0.15236012637615204, 0.264796644449234, 0.3840494751930237, 0.3487735986709595, -0.017734721302986145, 0.02312307059764862, -0.1927488148212433, 0.07773295789957047, -0.014004042372107506, 0.41407138109207153, 0.14138463139533997, -0.10123184323310852, 0.29716408252716064, 0.1855693757534027, -0.14643409848213196, 0.2064334601163864, -0.2629520893096924, 0.3048345744609833, -0.21381056308746338, 0.2421509027481079, -0.27890101075172424, 0.013847969472408295, -0.09652547538280487, -0.02280517667531967, -0.5449869632720947, -0.029763519763946533, 0.11250817775726318, 0.2614983022212982, 0.24046245217323303, -0.020072683691978455, 0.07687702029943466, -0.05999499186873436, 0.56294184923172, 0.2754075229167938, -0.07175277918577194, -0.08787082880735397, -0.12015152722597122, -0.32246825098991394, 0.10330179333686829, -0.037418436259031296, 0.24841946363449097, 0.05279306694865227, -0.032452378422021866, -0.10017173737287521, 0.027728434652090073, -0.018595919013023376, -0.0741569995880127, -0.19250233471393585, -0.03487328439950943, -0.18121536076068878, -0.24476565420627594, -0.06949318945407867, 0.17592312395572662, 0.1787608563899994, -0.10095476359128952, 0.16659164428710938, -0.2537095844745636, -0.0461437925696373, -0.08901621401309967, 0.2784922122955322, -0.18613700568675995, -0.11354903876781464, 0.3811737298965454, 0.1425650268793106, 0.21485552191734314, -0.0714205950498581, -0.32521113753318787, -0.03706249222159386, -0.4737117886543274, 0.024466071277856827, 0.37470874190330505, -0.25194936990737915, 0.49616459012031555, -0.32466256618499756, 0.018804214894771576, -0.49634698033332825, -0.115972138941288, -0.20657552778720856, -0.2451588362455368, -0.14062048494815826, 0.02412259764969349, -0.1278424710035324, -0.03544230759143829, 0.22763663530349731, 0.35536816716194153, -0.0867881029844284, 0.15954817831516266, -0.23313376307487488, -0.052825964987277985, 0.6324393153190613, -0.3880781829357147, 0.008395519107580185, 0.3808794915676117, 0.04420171678066254, 0.007342584431171417, -0.2618236541748047, -0.5002608895301819, 0.313355416059494, 0.4384309947490692, -0.10793270915746689, -0.08460693061351776, 0.11953006684780121, -0.2316403090953827, -0.2032339721918106, -0.054620858281850815, 0.15025216341018677, 0.12141445279121399, -0.14532774686813354, 0.10526792705059052, -0.17788949608802795 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
You can load it with `dataset = datasets.load_dataset('json', data_files=args.dataset)` as you said. Then if you need to apply additional processing to map it to a special structure, you can use rename columns or use `dataset.map`. For more information, you can check the documentation here: https://huggingface.co/docs/datasets/process.html Also feel free to share your `run.py` code so we can take a look
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
59
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ You can load it with `dataset = datasets.load_dataset('json', data_files=args.dataset)` as you said. Then if you need to apply additional processing to map it to a special structure, you can use rename columns or use `dataset.map`. For more information, you can check the documentation here: https://huggingface.co/docs/datasets/process.html Also feel free to share your `run.py` code so we can take a look
[ 0.07037228345870972, -0.3985922336578369, 0.02526542916893959, 0.42473798990249634, 0.49335014820098877, 0.10740721970796585, 0.0497874990105629, 0.43217405676841736, 0.10366778075695038, -0.06524267792701721, -0.13204404711723328, 0.33249062299728394, -0.07476342469453812, 0.4676975905895233, -0.11360916495323181, -0.17210723459720612, 0.07411786913871765, 0.045248426496982574, -0.22567471861839294, 0.14733053743839264, -0.27543485164642334, 0.31635186076164246, 0.04278752952814102, 0.013288646936416626, -0.1858689785003662, -0.1375379115343094, -0.03733661770820618, 0.20669132471084595, -0.3033365309238434, -0.4769495129585266, 0.17308315634727478, -0.08271314203739166, 0.25317034125328064, 0.46777787804603577, -0.00010972295422106981, 0.057809919118881226, 0.1936289519071579, -0.18244953453540802, -0.3609412610530853, -0.38221263885498047, -0.0739114060997963, -0.3502300977706909, 0.3194873332977295, -0.1232311874628067, -0.14595776796340942, -0.13478589057922363, -0.12647636234760284, -0.07175791263580322, 0.8670133352279663, 0.2895648777484894, 0.2806137800216675, 0.39988458156585693, 0.2383018285036087, -0.1640923023223877, 0.030695930123329163, 0.2805213928222656, -0.07704901695251465, 0.5343005657196045, 0.08230502158403397, 0.19974678754806519, 0.1642790138721466, 0.17203795909881592, 0.07969944179058075, -0.009820453822612762, 0.3793884813785553, -0.024660862982273102, -0.07257168740034103, -0.3107657730579376, -0.17355531454086304, 0.1293850541114807, 0.3077872097492218, -0.26086297631263733, -0.5859315395355225, -0.46161600947380066, 0.16254986822605133, -0.36406180262565613, 0.26806187629699707, 0.2270878255367279, -0.008061325177550316, -0.037745390087366104, -0.2957681119441986, -0.14047275483608246, -0.08177901804447174, 0.007422693073749542, 0.27511459589004517, -0.17159095406532288, -0.30418625473976135, 0.05756236985325813, 0.2095818817615509, -0.2520681619644165, -0.18775886297225952, 0.10861379653215408, -0.16589483618736267, 0.28266817331314087, -0.27009156346321106, -0.2205716073513031, -0.17264288663864136, -0.17852520942687988, 0.09382987022399902, 0.15202879905700684, -0.04109824448823929, -0.13956838846206665, 0.022373151034116745, 0.09863841533660889, 0.23948989808559418, 0.37087908387184143, -0.008009441196918488, 0.06594419479370117, 0.007508527487516403, 0.46212202310562134, 0.017801422625780106, -0.19321516156196594, -0.07534930855035782, -0.16085170209407806, -0.26296600699424744, -0.09125801175832748, 0.03140680491924286, -0.15714265406131744, -0.12125410884618759, 0.05253719538450241, -0.19633159041404724, -0.11723003536462784, 0.0026974258944392204, 0.37321072816848755, -0.19244591891765594, 0.023027367889881134, 0.14084452390670776, 0.3320845365524292, -0.13232038915157318, 0.030362393707036972, -0.11050966382026672, 0.015141641721129417, -0.19384616613388062, 0.10334545373916626, 0.18684124946594238, -0.12400807440280914, 0.3627926707267761, 0.05316004902124405, 0.011132407933473587, -0.2739453911781311, 0.06491617858409882, -0.012383664026856422, -0.18741917610168457, 0.2228444516658783, 0.0853399932384491, 0.057829178869724274, 0.16125735640525818, -0.10000326484441757, -0.15282341837882996, -0.18357181549072266, -0.34687697887420654, -0.2931379973888397, -0.05679682642221451, 0.21925996243953705, -0.19861583411693573, 0.09300264716148376, -0.5223022103309631, 0.02276005782186985, -0.00023020058870315552, -0.04595951363444328, 0.023262478411197662, -0.09751808643341064, -0.03951636701822281, -0.2022598385810852, 0.3352073132991791, 0.26264411211013794, -0.10941693186759949, -0.25415104627609253, 0.22005824744701385, -0.2962454855442047, -0.061125896871089935, 0.3544144034385681, -0.006623276509344578, 0.260621577501297, -0.3168213367462158, -0.03244680166244507, 0.018241405487060547, -0.2816696763038635, -0.03907965123653412, 0.12082820385694504, -0.07861743867397308, 0.14663065969944, 0.010594390332698822, -0.15671095252037048, 0.004043262917548418, 0.06034024804830551, 0.19282901287078857, 0.1340053677558899, 0.10569091886281967, 0.06733480840921402, -0.25595393776893616, -0.3624234199523926, -0.15329498052597046, 0.12135456502437592, -0.27300789952278137, 0.2050551027059555, -0.07032608240842819, -0.09452030062675476, 0.1474418044090271, -0.21434462070465088, 0.07083196938037872, 0.3668999671936035, 0.1404757797718048, 0.19572998583316803, -0.038148585706949234, -0.02750484272837639, -0.6883354187011719, 0.17863434553146362, -0.16448424756526947, 0.08745735883712769, -0.0424027144908905, -0.15186339616775513, -0.3249444365501404, -0.09520483762025833, -0.0358736626803875, -0.14396052062511444, 0.12865011394023895, -0.05671919882297516, 0.4008745551109314, 0.19129031896591187, -0.24700303375720978, 0.2000563144683838, -0.0704793706536293, 0.3918795883655548, -0.4898603558540344, 0.1099923849105835, -0.02370600216090679, -0.1076393723487854, 0.24434217810630798, 0.15584217011928558, 0.02732478454709053, -0.20593705773353577, -0.0907210037112236, 0.26408323645591736, -0.015880994498729706, 0.21902137994766235, -0.038066938519477844, 0.016442418098449707, 0.05050532519817352, 0.24493703246116638, -0.16635040938854218, 0.03455536067485809, 0.11372729390859604, -0.045576415956020355, -0.07124843448400497, 0.5071191787719727, -0.1718539148569107, 0.16305740177631378, 0.09321296215057373, -0.0799177959561348, 0.1827472597360611, 0.07084998488426208, -0.14076858758926392, -0.23901942372322083, 0.0689660832285881, 0.10304990410804749, 0.1264154314994812, -0.005660859867930412, -0.3391363322734833, -0.348300039768219, 0.5498184561729431, -0.03102082945406437, -0.14176535606384277, 0.4043053090572357, -0.07187341898679733, 0.14789578318595886, -0.07065150141716003, 0.24806366860866547, 0.3892069458961487, 0.09487047046422958, -0.2737036943435669, 0.23396575450897217, 0.07249618321657181, -0.18143273890018463, 0.067800372838974, -0.013629727065563202, 0.33929499983787537, 0.1566803753376007, 0.2276383340358734, -0.0488615445792675, -0.32386642694473267, 0.10230998694896698, -0.1196431964635849, 0.2325892597436905, -0.45389679074287415, -0.05644245445728302, -0.10940057784318924, -0.16730546951293945, -0.23841238021850586, -0.04565545544028282, -0.41203489899635315, -0.1298426389694214, -0.03022051602602005, 0.24438072741031647, -0.1469566524028778, 0.03036624751985073, 0.13953225314617157, 0.22532795369625092, -0.02040189318358898, 0.07029817998409271, -0.20574308931827545, 0.0112301055341959, -0.1855907440185547, 0.043076176196336746, 0.1673336774110794, -0.2190202921628952, 0.32106781005859375, -0.4617026448249817, -0.05464430898427963, -0.06929615139961243, -0.19307510554790497, 0.15422910451889038, -0.2678244113922119, 0.44311171770095825, 0.18773673474788666, 0.3884458541870117, -0.19181612133979797, -0.17603449523448944, 0.4210589528083801, 0.01332608051598072, -0.3891233205795288, -0.07613219320774078, 0.036897700279951096, 0.1985434740781784, -0.2337913066148758, -0.41234931349754333, -0.1441269814968109, -0.391670286655426, 0.7527722120285034, 0.06048504635691643, 0.0833997130393982, 0.12219229340553284, 0.1933639496564865, 0.19576109945774078, -0.3832629323005676, 0.25977790355682373, -0.2306118756532669, -0.6465619206428528, 0.28096848726272583, -0.30706414580345154, -0.358670711517334, 0.07141025364398956, 0.09616553038358688, 0.27264490723609924, -0.3408719301223755, -0.49149203300476074, -0.40250256657600403, -0.004654046148061752, -0.06247659772634506, -0.05955743044614792, 0.1217769905924797, 0.13522708415985107, -0.062409404665231705, -0.042717136442661285, -0.04316866770386696, -0.2507209777832031, 0.08568266779184341, 0.08057931065559387, 0.208033487200737, -0.05692391097545624, 0.7160336375236511, -0.15282784402370453, 0.5577391982078552, 0.41989487409591675, -0.10678994655609131, 0.3364962041378021, -0.17271161079406738, 0.2940632104873657, -0.22482648491859436, -0.17341765761375427, 0.01712019369006157, -0.2210283875465393, 0.1470176875591278, 0.115217424929142, 0.20844078063964844, 0.23653919994831085, -0.16040700674057007, 0.1290775090456009, -0.37977805733680725, -0.22517938911914825, 0.04936419799923897, 0.008103996515274048, 0.09419167041778564, 0.007180672138929367, 0.07177219539880753, -0.05418207868933678, -0.030618565157055855, 0.005256421864032745, 0.2173846811056137, 0.2955656349658966, 0.08745390176773071, -0.44076114892959595, -0.2856661081314087, -0.32696986198425293, 0.29004961252212524, -0.0386103130877018, 0.1671547293663025, -0.04410192742943764, -0.05628977715969086, 0.1181749477982521, -0.039554961025714874, 0.7340004444122314, 0.07905883342027664, -0.17143701016902924, 0.09687086939811707, -0.16484114527702332, -0.5471045970916748, 0.008895538747310638, -0.08560754358768463, -0.06360252946615219, 0.3190203905105591, 0.8368186950683594, -0.42258381843566895, -0.2185324877500534, -0.11761748790740967, 0.20936225354671478, -0.13942594826221466, -0.11423134058713913, -0.27496400475502014, -0.30432119965553284, -0.5292321443557739, 0.11262759566307068, -0.03548049554228783, 0.24589644372463226, -0.008768751285970211, 0.053318534046411514, 0.09761612117290497, 0.01687007024884224, 0.028722524642944336, 0.301662415266037, 0.3883911073207855, 0.07591086626052856, 0.2756662964820862, 0.3730114996433258, 0.1691592037677765, 0.37445470690727234, 0.7063225507736206, -0.014608919620513916, -0.19863808155059814, -0.1666443943977356, 0.05883171036839485, 0.22427845001220703, 0.13107924163341522, 0.11131627857685089, 0.11795409023761749, 0.18327826261520386, 0.3867982029914856, -0.4217383861541748, -0.038947638124227524, 0.5530487895011902, 0.002963518723845482, -0.11621291935443878, -0.26181069016456604, 0.29568031430244446, 0.02191859856247902, 0.1387239396572113, 0.002172265201807022, 0.11005070805549622, -0.1464599221944809, 0.26166170835494995, -0.05634476989507675, 0.8089491128921509, -0.1493968367576599, 0.2634299397468567, 0.5230690240859985, -0.37814754247665405, 0.5905067324638367, -0.22108253836631775, 0.11330129206180573, -0.31954219937324524, 0.13328027725219727, 0.1436820775270462, -0.09313783049583435, 0.062458522617816925, 0.21261762082576752, -0.10775052011013031, 0.23703379929065704, -0.08425243943929672, 0.21267065405845642, -0.20133128762245178, 0.2793425917625427, -0.23067691922187805, -0.284210741519928, -0.5432643890380859, 0.17155350744724274, -0.1114053726196289, 0.22649317979812622, -0.06478489190340042, -0.13065671920776367, 0.0660782903432846, -0.26738089323043823, -0.12480969727039337, 0.018439635634422302, -0.054005224257707596, -0.022463586181402206, 0.3971421420574188, -0.08684627711772919, 0.11341220140457153, 0.16243967413902283, 0.11274619400501251, 0.16128738224506378, -0.24910542368888855, 0.05085339397192001, -0.06940395385026932, -0.054488811641931534, -0.16835518181324005, 0.11856350302696228, 0.18097376823425293, -0.1123482957482338, -0.15721644461154938, -0.047811731696128845, -0.1518009901046753, -0.011932123452425003, -0.1240691989660263, -0.05138775706291199, -0.44047868251800537, -0.4734371602535248, -0.1726481169462204, -0.18776485323905945, 0.14492017030715942, -0.14772091805934906, 0.19466808438301086, 0.027304790914058685, -0.08111755549907684, 0.13604024052619934, 0.29690444469451904, -0.25648391246795654, -0.18788336217403412, 0.5116215348243713, -0.12488756328821182, -0.10951711237430573, 0.6556457281112671, 0.29985201358795166, -0.06285910308361053, -0.18475493788719177, 0.07086027413606644, 0.17257332801818848, -0.4152125418186188, 0.3021739721298218, 0.2252759039402008, 0.09092776477336884, -0.1204947903752327, 0.21010902523994446, 0.23038795590400696, -0.27218881249427795, 0.35074856877326965, -0.38509196043014526, -0.4948269724845886, 0.4177364110946655, 0.10681314766407013, 0.10449978709220886, 0.12482214719057083, 0.19148139655590057, -0.030564600601792336, 0.010063442401587963, -0.33626535534858704, 0.2028798907995224, -0.28595834970474243, 0.07937884330749512, 0.11703449487686157, -0.14687392115592957, 0.2823810577392578, -0.08271555602550507, 0.12925255298614502, 0.1442168653011322, -0.29722273349761963, -0.21333646774291992, -0.15256957709789276, 0.0971732810139656, -0.02016397938132286, -0.05726759880781174, 0.0755968913435936, -0.036666423082351685, -0.13532261550426483, -0.1746826320886612, 0.05697290226817131, 0.1942477524280548, 0.06002887710928917, 0.08192335069179535, -0.048197608441114426, 0.07090906798839569, 0.15184040367603302, -0.10556952655315399, 0.15233811736106873, 0.29797354340553284, 0.06519930064678192, -0.04206613451242447, -0.2783065438270569, 0.07770165801048279, -0.20235510170459747, 0.14132480323314667, 0.09401560574769974, 0.08944850414991379, 0.29793497920036316, -0.2805714011192322, 0.07393248379230499, 0.016140054911375046, 0.3780820369720459, 0.3466023802757263, -0.27700838446617126, 0.13987383246421814, 0.27049684524536133, 0.21813610196113586, -0.16647501289844513, 0.07477272301912308, 0.12794652581214905, -0.04086016118526459, -0.13225942850112915, 0.17327940464019775, 0.0859663188457489, 0.07149362564086914, -0.12070658802986145, 0.10640435665845871, 0.3148011863231659, 0.10116954147815704, 0.20697763562202454, 0.08656053245067596, -0.15605291724205017, -0.115568608045578, 0.22597946226596832, -0.061096783727407455, 0.18648076057434082, 0.02538296766579151, -0.010253101587295532, 0.023338258266448975, -0.2616201937198639, 0.3226272165775299, -0.008129142224788666, -0.3902720808982849, -0.08486717939376831, 0.21839600801467896, -0.00981016457080841, 0.11389648914337158, -0.13241130113601685, 0.6113590002059937, -0.20427748560905457, -0.26268482208251953, -0.3138301372528076, 0.24993617832660675, -0.16722318530082703, -0.21598874032497406, -0.17318026721477509, -0.2090417444705963, -0.06961548328399658, 0.10595373809337616, -0.1494269073009491, -0.16150254011154175, 0.145856112241745, -0.05036722123622894, -0.081375852227211, -0.3342862129211426, -0.08749619871377945, 0.148308664560318, 0.31274762749671936, -0.125124990940094, 0.329263836145401, 0.2471533864736557, -0.13374638557434082, 0.18714813888072968, 0.37462446093559265, 0.4774813652038574, 0.1962045580148697, 0.007132804952561855, 0.11396432667970657, -0.13119462132453918, 0.09005987644195557, 0.055761680006980896, 0.4046573340892792, 0.30587226152420044, -0.03408635035157204, 0.2853880822658539, 0.22839562594890594, -0.2431594431400299, -0.036991145461797714, -0.23543532192707062, 0.36463919281959534, -0.23953284323215485, 0.23979410529136658, -0.1751508265733719, 0.04581458121538162, -0.19953027367591858, -0.09011825174093246, -0.5609385371208191, 0.138668954372406, 0.13496597111225128, 0.16066628694534302, 0.12097249180078506, -0.14196281135082245, 0.10955597460269928, -0.0391390286386013, 0.5902307629585266, 0.3638339936733246, -0.09363720566034317, -0.22273790836334229, -0.14498768746852875, -0.349026083946228, -0.024635232985019684, -0.11400173604488373, 0.21909140050411224, -0.006080676801502705, -0.011440278962254524, -0.015380434691905975, -0.022710423916578293, 0.13013814389705658, -0.029827915132045746, -0.2931883931159973, -0.01089102029800415, -0.29126495122909546, -0.1895820051431656, -0.3054026961326599, 0.12091253697872162, 0.25819864869117737, -0.01879306510090828, 0.12049494683742523, -0.16364476084709167, -0.006366189569234848, -0.010807469487190247, 0.2576003968715668, -0.19144083559513092, -0.12968510389328003, 0.38843780755996704, 0.12281445413827896, 0.16935358941555023, -0.08497557044029236, -0.4151427745819092, -0.14679746329784393, -0.45934435725212097, -0.06969928741455078, 0.3584539294242859, -0.13629968464374542, 0.5045987367630005, -0.22308054566383362, -0.053832221776247025, -0.4301384687423706, 0.004413493908941746, -0.06815408170223236, -0.2732040286064148, -0.17046566307544708, 0.10491762310266495, 0.08222755044698715, -0.010284146293997765, 0.26860174536705017, 0.4867207705974579, -0.07105395197868347, 0.2211950272321701, -0.2948991656303406, -0.203321635723114, 0.6595600843429565, -0.31616294384002686, -0.07352873682975769, 0.35160428285598755, 0.10214506089687347, 0.08708478510379791, -0.2730059027671814, -0.6608110666275024, 0.2708340585231781, 0.31897813081741333, -0.049988046288490295, -0.1685451716184616, 0.19825379550457, -0.2522905468940735, -0.24089132249355316, -0.011410107836127281, 0.3800045847892761, 0.02556285262107849, -0.19988960027694702, 0.14672201871871948, -0.1335834264755249 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
``` # Dataset selection if args.dataset.endswith('.json') or args.dataset.endswith('.jsonl'): dataset_id = None # Load from local json/jsonl file dataset = datasets.load_dataset('json', data_files=args.dataset) # By default, the "json" dataset loader places all examples in the train split, # so if we want to use a jsonl file for evaluation we need to get the "train" split # from the loaded dataset eval_split = 'train' else: default_datasets = {'qa': ('squad',), 'nli': ('snli',)} dataset_id = tuple(args.dataset.split(':')) if args.dataset is not None else \ default_datasets[args.task] # MNLI has two validation splits (one with matched domains and one with mismatched domains). Most datasets just have one "validation" split eval_split = 'validation_matched' if dataset_id == ('glue', 'mnli') else 'validation' # Load the raw data dataset = datasets.load_dataset(*dataset_id) ``` I want to load JSON squad dataset instead `dataset = datasets.load_dataset('squad')` to retrain the model.
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
136
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ ``` # Dataset selection if args.dataset.endswith('.json') or args.dataset.endswith('.jsonl'): dataset_id = None # Load from local json/jsonl file dataset = datasets.load_dataset('json', data_files=args.dataset) # By default, the "json" dataset loader places all examples in the train split, # so if we want to use a jsonl file for evaluation we need to get the "train" split # from the loaded dataset eval_split = 'train' else: default_datasets = {'qa': ('squad',), 'nli': ('snli',)} dataset_id = tuple(args.dataset.split(':')) if args.dataset is not None else \ default_datasets[args.task] # MNLI has two validation splits (one with matched domains and one with mismatched domains). Most datasets just have one "validation" split eval_split = 'validation_matched' if dataset_id == ('glue', 'mnli') else 'validation' # Load the raw data dataset = datasets.load_dataset(*dataset_id) ``` I want to load JSON squad dataset instead `dataset = datasets.load_dataset('squad')` to retrain the model.
[ 0.1151549369096756, -0.42311403155326843, 0.005126878619194031, 0.5085045695304871, 0.39684993028640747, 0.12313652783632278, 0.1628357321023941, 0.38348492980003357, 0.1097676157951355, -0.1628817468881607, -0.009649066254496574, 0.3028334081172943, -0.16506633162498474, 0.253216952085495, -0.2283036857843399, -0.13563106954097748, 0.10697147995233536, 0.04915199428796768, -0.049963101744651794, 0.10491766035556793, -0.2675156891345978, 0.3844013512134552, -0.07116095721721649, 0.0436924509704113, -0.18236367404460907, -0.0679679736495018, 0.022214503958821297, 0.1651022881269455, -0.25076866149902344, -0.43632081151008606, 0.27452677488327026, -0.19266997277736664, 0.2205815613269806, 0.3976733982563019, -0.00011448310397099704, 0.1155015230178833, 0.36704063415527344, -0.15461719036102295, -0.35945624113082886, -0.497484028339386, -0.19609335064888, -0.2519209384918213, 0.4365660548210144, -0.12332046031951904, -0.05679960548877716, -0.1526569128036499, -0.20292286574840546, -0.13398686051368713, 0.8560730814933777, 0.24904325604438782, 0.2436869591474533, 0.4152718484401703, 0.03639092668890953, -0.12448208779096603, 0.12655973434448242, 0.3864961862564087, -0.05023921653628349, 0.5789744853973389, 0.00956013798713684, 0.1913304477930069, 0.19316072762012482, 0.18179002404212952, 0.0637403205037117, 0.019912704825401306, 0.28239285945892334, -0.04199058935046196, -0.14291390776634216, -0.21996769309043884, -0.2554611265659332, 0.10372413694858551, 0.33434826135635376, -0.19147056341171265, -0.5883922576904297, -0.5273308157920837, 0.17975088953971863, -0.325203001499176, 0.34380829334259033, 0.200341135263443, -0.05245896056294441, -0.02062748745083809, -0.30455446243286133, -0.14896725118160248, -0.06037430465221405, 0.013639550656080246, 0.3119152784347534, -0.04422512650489807, -0.3107205927371979, 0.0653429701924324, 0.18717621266841888, -0.13990314304828644, -0.13176408410072327, 0.05278655141592026, -0.25748318433761597, 0.1933320015668869, -0.19344551861286163, -0.15826278924942017, -0.20245909690856934, -0.3106689453125, 0.06100691109895706, 0.2480500489473343, -0.05707727372646332, -0.30211952328681946, -0.03940442204475403, 0.1576770544052124, 0.43147796392440796, 0.34828975796699524, 0.05469752848148346, 0.05427325516939163, 0.06352323293685913, 0.46715691685676575, 0.035631682723760605, -0.13799262046813965, -0.10346121340990067, -0.19941236078739166, -0.20919756591320038, -0.04871821403503418, 0.08212863653898239, -0.21379558742046356, -0.18441079556941986, 0.07680332660675049, -0.3701886534690857, -0.25708115100860596, 0.0774948000907898, 0.28570157289505005, -0.22903326153755188, 0.16294413805007935, 0.19290994107723236, 0.3248440623283386, -0.12201905995607376, -0.042076632380485535, -0.050153810530900955, 0.06700655817985535, -0.15924453735351562, 0.03890065848827362, 0.18038669228553772, -0.08673858642578125, 0.38181981444358826, 0.04018426313996315, 0.09216563403606415, -0.35385727882385254, -0.0032085152342915535, -0.06786882877349854, -0.23037424683570862, 0.1984228491783142, 0.07418061792850494, 0.1317722350358963, 0.12783099710941315, -0.11310340464115143, -0.19566616415977478, -0.12765619158744812, -0.3680233061313629, -0.22539007663726807, -0.0008965712040662766, 0.1988534927368164, -0.21869169175624847, 0.054595984518527985, -0.6963655352592468, -0.050954487174749374, -0.041929565370082855, -0.046419236809015274, 0.08457589149475098, -0.19893869757652283, -0.0067015141248703, -0.15129122138023376, 0.2821942865848541, 0.32037001848220825, -0.10233741998672485, -0.3406152129173279, 0.1919257491827011, -0.2754550278186798, -0.019608139991760254, 0.4326658248901367, -0.11960472911596298, 0.3191308081150055, -0.4245503544807434, 0.005452051758766174, 0.11314120888710022, -0.3381483256816864, -0.004806790500879288, 0.21694238483905792, 0.009213678538799286, 0.23226986825466156, 0.03597693145275116, -0.23880641162395477, -0.12986423075199127, 0.09100054204463959, 0.32946059107780457, 0.17636126279830933, 0.11399884521961212, 0.015623314306139946, -0.2624560594558716, -0.39589428901672363, -0.13339592516422272, 0.18692317605018616, -0.2713265120983124, 0.09216868877410889, -0.0596277192234993, -0.023231424391269684, 0.2330237627029419, -0.1433596909046173, 0.012793644331395626, 0.4333832263946533, 0.1558695137500763, 0.15737850964069366, -0.06127776578068733, 0.09321814775466919, -0.6979958415031433, 0.1328970193862915, -0.06907504796981812, 0.012062367051839828, -0.022721096873283386, -0.07115283608436584, -0.2446414828300476, -0.06787657737731934, -0.09978541731834412, -0.10330379009246826, 0.07111087441444397, 0.01017424464225769, 0.3387506902217865, 0.28180983662605286, -0.24635685980319977, 0.19228166341781616, -0.04942169412970543, 0.2872020900249481, -0.5857243537902832, 0.19336022436618805, -0.009366223588585854, -0.09266670793294907, 0.19681692123413086, 0.16758762300014496, -0.05143105983734131, -0.18233223259449005, -0.18273085355758667, 0.19939634203910828, 0.10299289226531982, 0.2051805853843689, -0.10326647013425827, -0.028445079922676086, 0.09453069418668747, 0.10753102600574493, -0.26535511016845703, 0.06036156415939331, 0.0781581699848175, 0.028674237430095673, -0.04187243431806564, 0.5341295003890991, -0.11484430730342865, 0.22134128212928772, 0.0766219049692154, -0.10443175584077835, 0.2141031175851822, 0.06393696367740631, -0.1881941258907318, -0.23773178458213806, 0.21439465880393982, 0.1380011886358261, 0.11063429713249207, -0.0020107533782720566, -0.31372278928756714, -0.5011647343635559, 0.5217185020446777, -0.01683943159878254, -0.12546736001968384, 0.36446666717529297, -0.05741586536169052, 0.13406550884246826, -0.058686159551143646, 0.26455336809158325, 0.4018251299858093, 0.026559364050626755, -0.2938234806060791, 0.20483019948005676, 0.11472068727016449, -0.2163887917995453, 0.1398198902606964, 0.009503856301307678, 0.40206632018089294, 0.2714264392852783, 0.14440546929836273, -0.03332984820008278, -0.33799514174461365, -0.020902467891573906, -0.07103115320205688, 0.2027643918991089, -0.5042113661766052, 0.047834612429142, -0.20159076154232025, -0.19513437151908875, -0.19551371037960052, -0.008717629127204418, -0.3526836633682251, -0.16198411583900452, -0.11044001579284668, 0.28644028306007385, -0.16342155635356903, -0.04501728713512421, 0.051324281841516495, 0.18410474061965942, -0.012903448194265366, 0.02418150193989277, -0.2525191903114319, -0.04835161566734314, -0.31171414256095886, -0.007815776392817497, 0.25852301716804504, -0.28979864716529846, 0.26533058285713196, -0.45912888646125793, -0.11821211874485016, 0.007527667097747326, -0.10006318986415863, 0.19884969294071198, -0.15597744286060333, 0.4537517726421356, 0.23388975858688354, 0.22432255744934082, -0.28078991174697876, -0.17025890946388245, 0.4613272547721863, 0.05032783001661301, -0.42200756072998047, -0.08790865540504456, 0.11393202096223831, 0.2057727575302124, -0.2229393720626831, -0.3621908128261566, -0.1776328980922699, -0.3771744966506958, 0.654415488243103, 0.0726228654384613, -0.02964659035205841, 0.24953341484069824, 0.18014079332351685, 0.17541740834712982, -0.250354140996933, 0.20394912362098694, -0.21254532039165497, -0.6592339277267456, 0.26963961124420166, -0.21666230261325836, -0.28961846232414246, -0.0027299337089061737, 0.009303901344537735, 0.24852623045444489, -0.3560526967048645, -0.6190693974494934, -0.42931556701660156, 0.06591788679361343, -0.06119205802679062, -0.16194285452365875, 0.04589325189590454, 0.007195718586444855, -0.09865260124206543, 0.050584085285663605, -0.06613366305828094, -0.2864847183227539, 0.08181670308113098, 0.026698000729084015, 0.18940825760364532, 0.00863659754395485, 0.7049922347068787, -0.16626055538654327, 0.5409061312675476, 0.3434600532054901, -0.07014945149421692, 0.38897189497947693, -0.09360211342573166, 0.20957116782665253, -0.16914886236190796, -0.14628127217292786, -0.026865806430578232, -0.1617909073829651, 0.07172071933746338, 0.05880506709218025, 0.15407904982566833, 0.1976185292005539, -0.2083398848772049, 0.15524986386299133, -0.4492761194705963, -0.1839311718940735, -0.046146638691425323, -0.09467233717441559, 0.031579043716192245, -0.010651498101651669, 0.08966729789972305, 0.12777842581272125, 0.10540756583213806, 0.03711671009659767, 0.20567426085472107, 0.31400635838508606, 0.06130411475896835, -0.4587743282318115, -0.3308936357498169, -0.20366597175598145, 0.24013298749923706, 0.10039472579956055, 0.33338692784309387, -0.0022289492189884186, 0.009544063359498978, 0.1171923577785492, -0.043309278786182404, 0.7829495668411255, 0.022954866290092468, -0.11667563021183014, 0.1596715897321701, -0.16255922615528107, -0.4724910855293274, -0.10871462523937225, -0.13383664190769196, -0.048332516103982925, 0.37229377031326294, 0.868268609046936, -0.33606410026550293, -0.19858060777187347, -0.0987326055765152, 0.1553071141242981, -0.13063912093639374, -0.1870669722557068, -0.30304041504859924, -0.2799443304538727, -0.49036070704460144, 0.05962521955370903, 0.03290625661611557, 0.27347445487976074, -0.03808025270700455, 0.13605226576328278, 0.1459164023399353, -0.007658138871192932, -0.004962518811225891, 0.21003159880638123, 0.40848541259765625, -0.009869332425296307, 0.34020736813545227, 0.3098991811275482, 0.24910248816013336, 0.3677906394004822, 0.7469066381454468, 0.06367325782775879, -0.2964291274547577, -0.055290475487709045, 0.11990438401699066, 0.22709086537361145, -0.014223158359527588, 0.0701460912823677, 0.09874925762414932, 0.17041638493537903, 0.32890135049819946, -0.3388034999370575, -0.054023656994104385, 0.5773515701293945, -0.014773525297641754, -0.16867582499980927, -0.3146703541278839, 0.36036109924316406, 0.07421387732028961, 0.19566206634044647, -0.054362669587135315, 0.0128704234957695, -0.17179444432258606, 0.19869032502174377, -0.05809039622545242, 0.6426653861999512, 0.04103397578001022, 0.22024309635162354, 0.5174719095230103, -0.3893916606903076, 0.6693490743637085, -0.17233873903751373, 0.13598820567131042, -0.3668433427810669, 0.20259495079517365, 0.11374513804912567, -0.22147977352142334, -0.005790643393993378, 0.1180417463183403, -0.024530742317438126, 0.1728488951921463, -0.059463679790496826, 0.12056931853294373, -0.227181077003479, 0.22922205924987793, -0.19737176597118378, -0.17672528326511383, -0.48998773097991943, 0.11089569330215454, -0.1063154935836792, 0.3157324194908142, -0.11197397112846375, -0.14217913150787354, 0.048625651746988297, -0.30899685621261597, -0.19109958410263062, 0.08724800497293472, 0.0307391919195652, 0.08645783364772797, 0.5069150924682617, -0.17220184206962585, 0.19631047546863556, 0.13689447939395905, 0.0575767420232296, 0.07853059470653534, -0.2300156056880951, 0.044357433915138245, -0.1107221469283104, -0.0008312054560519755, -0.1347520351409912, 0.20363612473011017, 0.2695465087890625, -0.09692429006099701, -0.1381714940071106, -0.08489235490560532, -0.19559799134731293, -0.1309940218925476, -0.14972999691963196, -0.012565962970256805, -0.4126695394515991, -0.4154500961303711, -0.21405300498008728, -0.18337824940681458, 0.19144774973392487, -0.17036256194114685, 0.12839259207248688, 0.11618798971176147, -0.10641311854124069, 0.07471604645252228, 0.25529876351356506, -0.30558088421821594, -0.16951274871826172, 0.5493260025978088, -0.11766832321882248, -0.13372917473316193, 0.6553974151611328, 0.3517475128173828, -0.0721331462264061, -0.18934977054595947, 0.1886555254459381, 0.25345849990844727, -0.42160704731941223, 0.29461470246315, 0.17644494771957397, 0.1769769936800003, -0.16693349182605743, 0.15983358025550842, 0.2890992760658264, -0.18273094296455383, 0.44931361079216003, -0.4461551606655121, -0.35897332429885864, 0.4695274233818054, 0.0019769109785556793, 0.03969014436006546, 0.1364269256591797, 0.07132276892662048, -0.043588023632764816, -0.2186368852853775, -0.2505393624305725, 0.22368982434272766, -0.23468726873397827, 0.0015198811888694763, 0.07228954136371613, -0.08336596935987473, 0.26286372542381287, -0.05508812144398689, 0.12580940127372742, 0.018168427050113678, -0.2430797517299652, -0.17037615180015564, -0.21988698840141296, 0.10223700851202011, 0.09168972074985504, -0.08257821947336197, -0.02142290771007538, -0.00959770381450653, -0.05245932564139366, -0.09740224480628967, -0.05113224685192108, 0.1828259825706482, 0.030438736081123352, 0.16569451987743378, -0.06670103967189789, 0.12426202744245529, 0.07379260659217834, 0.054418131709098816, 0.139725923538208, 0.35863780975341797, 0.07094908505678177, 0.007962118834257126, -0.02143857628107071, 0.14261499047279358, -0.3928210735321045, 0.04686497524380684, 0.029699087142944336, 0.15583676099777222, 0.1975921094417572, -0.40179139375686646, 0.2436891794204712, 0.029044104740023613, 0.34910428524017334, 0.4257700443267822, -0.3299902379512787, 0.1761913299560547, 0.2828632593154907, 0.18830877542495728, -0.078607477247715, -0.004289756994694471, 0.13548144698143005, 0.08482439070940018, -0.2222457379102707, 0.15105277299880981, 0.08430786430835724, 0.06783263385295868, -0.056127771735191345, 0.0868750661611557, 0.32022666931152344, 0.23942330479621887, 0.3058685064315796, 0.22233453392982483, -0.19554200768470764, -0.0938362330198288, 0.07427014410495758, -0.0799550861120224, 0.2401866912841797, 0.000588536262512207, -0.05451648682355881, 0.03385233134031296, -0.21345192193984985, 0.31943339109420776, -0.07199948281049728, -0.441742867231369, -0.070956289768219, 0.22893528640270233, 0.05116346850991249, 0.16488736867904663, -0.1775573492050171, 0.4963749051094055, -0.21199774742126465, -0.16483038663864136, -0.26331403851509094, 0.1758679747581482, -0.20533648133277893, -0.20653998851776123, -0.2151980698108673, -0.16765612363815308, -0.1347583532333374, 0.2014637589454651, -0.17715345323085785, -0.09664912521839142, -0.03216893970966339, 0.07799514383077621, -0.17970363795757294, -0.3269408941268921, -0.01709991693496704, 0.17913922667503357, 0.21039937436580658, -0.2002662867307663, 0.3669704496860504, 0.18375572562217712, -0.05230671912431717, 0.16370956599712372, 0.34832972288131714, 0.4240889251232147, 0.3204253911972046, 0.01274961605668068, -0.07842130213975906, -0.15691088140010834, 0.1721222847700119, -0.007261849008500576, 0.41515395045280457, 0.30167216062545776, -0.00315692275762558, 0.2723678946495056, 0.20475879311561584, -0.1988959163427353, 0.1950959414243698, -0.21209080517292023, 0.1915847510099411, -0.3537285029888153, 0.3471527397632599, -0.29107895493507385, 0.05338656157255173, -0.13179989159107208, -0.030377283692359924, -0.5330360531806946, 0.10892745852470398, 0.13803471624851227, 0.2585890591144562, 0.12497694045305252, -0.06680728495121002, 0.08060549199581146, -0.06028514727950096, 0.5182250738143921, 0.4697226881980896, -0.06761740893125534, -0.1682686060667038, -0.09182784706354141, -0.3658513128757477, 0.003673963248729706, -0.041938189417123795, 0.25122472643852234, 0.049308545887470245, 0.0020499583333730698, -0.12286310642957687, 0.044326815754175186, 0.11562981456518173, 0.013509629294276237, -0.23874853551387787, -0.023171335458755493, -0.309882789850235, -0.23536084592342377, -0.12828829884529114, 0.10519196093082428, 0.1967441886663437, -0.05636152625083923, 0.12402364611625671, -0.1950153261423111, -0.061294496059417725, -0.05863413214683533, 0.1792268306016922, -0.2045850157737732, -0.016219422221183777, 0.4019274115562439, 0.18142737448215485, 0.26483964920043945, -0.018522359430789948, -0.43016359210014343, -0.14938658475875854, -0.5540162324905396, 0.00707333255559206, 0.40552225708961487, -0.2410167157649994, 0.5479891300201416, -0.30404478311538696, 0.07960207760334015, -0.4800190031528473, -0.005969977006316185, -0.11862599104642868, -0.25188279151916504, -0.21738877892494202, 0.04459939897060394, -0.06559378653764725, 0.08141443133354187, 0.2365536242723465, 0.38686707615852356, -0.11578649282455444, 0.23632089793682098, -0.36851179599761963, -0.11686557531356812, 0.559802770614624, -0.3521031439304352, -0.007716905325651169, 0.28895074129104614, 0.09908740222454071, 0.11635148525238037, -0.28633061051368713, -0.5784289240837097, 0.17359212040901184, 0.46488896012306213, -0.06863817572593689, -0.12936821579933167, 0.16400203108787537, -0.17187920212745667, -0.19223374128341675, 0.02080998569726944, 0.27105820178985596, 0.08017389476299286, -0.2423926591873169, 0.32712695002555847, -0.11057459563016891 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
If your JSON has the same format as the SQuAD dataset, then you need to pass `field="data"` to `load_dataset`, since the SQuAD format is one big JSON object in which the "data" field contains the list of questions and answers. ```python dataset = datasets.load_dataset('json', data_files=args.dataset, field="data") ``` Let me know if that helps :)
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
54
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ If your JSON has the same format as the SQuAD dataset, then you need to pass `field="data"` to `load_dataset`, since the SQuAD format is one big JSON object in which the "data" field contains the list of questions and answers. ```python dataset = datasets.load_dataset('json', data_files=args.dataset, field="data") ``` Let me know if that helps :)
[ 0.1509883999824524, -0.40403974056243896, 0.009308908134698868, 0.46060997247695923, 0.504664957523346, 0.10764165967702866, 0.10178802162408829, 0.3800486922264099, 0.07050126791000366, -0.08521558344364166, -0.09088392555713654, 0.3143802285194397, -0.07016970217227936, 0.25136855244636536, -0.16588476300239563, -0.07795612514019012, 0.08883289992809296, 0.013054676353931427, -0.09616714715957642, 0.05745565891265869, -0.2108667492866516, 0.3167823553085327, -0.06355491280555725, 0.05753214657306671, -0.18943266570568085, -0.08999713510274887, 0.008234648033976555, 0.228809654712677, -0.3139980733394623, -0.4765469431877136, 0.25922852754592896, -0.1434776484966278, 0.29185375571250916, 0.4062545597553253, -0.00011371749133104458, 0.06041596829891205, 0.28102657198905945, -0.18215462565422058, -0.3842887282371521, -0.4302687644958496, -0.08581025898456573, -0.3285008370876312, 0.4134621322154999, -0.07053376734256744, -0.1023331806063652, -0.0738319456577301, -0.09844954311847687, -0.13548392057418823, 0.9241048693656921, 0.26399359107017517, 0.24116308987140656, 0.3660380244255066, 0.1523805409669876, -0.153672456741333, 0.10890249162912369, 0.3462013006210327, -0.06032140180468559, 0.5437942743301392, 0.17887741327285767, 0.1844479739665985, 0.19705721735954285, 0.13327111303806305, 0.07922831922769547, 0.01194328535348177, 0.3227825462818146, -0.019467033445835114, -0.08515676110982895, -0.35030046105384827, -0.2069040834903717, 0.0802500769495964, 0.358050674200058, -0.20850268006324768, -0.5740365386009216, -0.4564509391784668, 0.2037750631570816, -0.23304694890975952, 0.3337392807006836, 0.21673133969306946, -0.03905224800109863, -0.006342891603708267, -0.2889977991580963, -0.16175992786884308, -0.11545304954051971, 0.05450364947319031, 0.3631138801574707, -0.06586961448192596, -0.2739940583705902, 0.06498289853334427, 0.1216585785150528, -0.23555175960063934, -0.20819228887557983, 0.11589261889457703, -0.20669329166412354, 0.31207188963890076, -0.29587557911872864, -0.22715115547180176, -0.1802414059638977, -0.33761757612228394, 0.12992382049560547, 0.24059134721755981, 0.014932187274098396, -0.19659698009490967, 0.048310622572898865, 0.10808499157428741, 0.44418787956237793, 0.2970479726791382, 0.09253101795911789, 0.03389042243361473, 0.036919623613357544, 0.448121041059494, -0.0406336672604084, -0.14739975333213806, -0.10954058170318604, -0.127786785364151, -0.17015023529529572, -0.06530362367630005, 0.1303461194038391, -0.22565332055091858, -0.11036498099565506, 0.16876842081546783, -0.332782119512558, -0.19912324845790863, -0.005574258975684643, 0.31016990542411804, -0.24286040663719177, 0.14044401049613953, 0.13650020956993103, 0.3748106360435486, -0.11732063442468643, -0.05201280489563942, -0.03230997920036316, -0.03360351175069809, -0.13044221699237823, 0.07166123390197754, 0.25691816210746765, -0.08435854315757751, 0.37164509296417236, 0.07334978878498077, 0.17156213521957397, -0.40037086606025696, 0.011578792706131935, -0.04906238615512848, -0.2556212544441223, 0.16566625237464905, 0.14437472820281982, 0.06734192371368408, 0.10183629393577576, -0.18769820034503937, -0.1008506566286087, -0.08052404969930649, -0.3622410297393799, -0.18975305557250977, -0.06968291103839874, 0.19003921747207642, -0.1645861119031906, 0.01732225902378559, -0.5817546844482422, 0.04849724844098091, -0.020534716546535492, -0.06794945895671844, 0.11418411135673523, -0.10377253592014313, 0.02740449085831642, -0.17073266208171844, 0.28176814317703247, 0.3137199878692627, -0.1730693131685257, -0.31555140018463135, 0.27829301357269287, -0.2604699730873108, -0.13006973266601562, 0.41968706250190735, -0.03481188043951988, 0.281752347946167, -0.3295406699180603, -0.025624841451644897, 0.10179782658815384, -0.3967042565345764, -0.056944169104099274, 0.13281841576099396, -0.023127634078264236, 0.17535243928432465, 0.01015298068523407, -0.1822165846824646, 0.011148250661790371, 0.12035678327083588, 0.25363415479660034, 0.23904110491275787, 0.05371926724910736, 0.03924550861120224, -0.30921468138694763, -0.3914027810096741, -0.19537223875522614, 0.21993011236190796, -0.23949365317821503, 0.1532949060201645, -0.0006972923874855042, -0.032947346568107605, 0.1821902096271515, -0.15646520256996155, 0.010004384443163872, 0.42633312940597534, 0.17954516410827637, 0.19406954944133759, -0.050381455570459366, -0.004297284409403801, -0.7773265242576599, 0.12454525381326675, -0.2235744297504425, 0.04732165485620499, 0.032778479158878326, -0.11880390346050262, -0.2765948176383972, -0.10356738418340683, -0.07367359101772308, -0.05165988579392433, 0.09031707793474197, -0.10928313434123993, 0.34100961685180664, 0.2877991497516632, -0.23907437920570374, 0.14825750887393951, -0.0836423933506012, 0.4305506944656372, -0.5436587929725647, 0.1818382441997528, -0.028594860807061195, -0.12624691426753998, 0.21707585453987122, 0.17185363173484802, 0.040086980909109116, -0.14211314916610718, -0.1317710280418396, 0.22098204493522644, 0.01420164667069912, 0.18821297585964203, 0.05976296216249466, -0.08641229569911957, 0.15293556451797485, 0.1528061032295227, -0.20172236859798431, 0.16508951783180237, 0.1124667376279831, -0.03777527064085007, -0.06829623132944107, 0.46420031785964966, -0.12744735181331635, 0.15656763315200806, 0.009306006133556366, -0.05551173537969589, 0.1739487498998642, 0.08969222009181976, -0.1511451154947281, -0.13893544673919678, 0.1621343195438385, 0.1562858670949936, 0.06866563856601715, -0.07426680624485016, -0.2915641665458679, -0.40356481075286865, 0.5127903819084167, -0.06093810126185417, -0.07124067097902298, 0.4394814372062683, -0.024218864738941193, 0.11740844696760178, -0.12159338593482971, 0.1456148624420166, 0.4512653946876526, 0.02600756287574768, -0.34868940711021423, 0.16647575795650482, 0.13503552973270416, -0.14670820534229279, 0.08598612248897552, -0.005726911127567291, 0.40577730536460876, 0.21412250399589539, 0.25875696539878845, -0.006711198948323727, -0.2772931158542633, 0.056746553629636765, -0.14859804511070251, 0.21098288893699646, -0.49826779961586, -0.013587338849902153, -0.07641181349754333, -0.11510390043258667, -0.15431539714336395, 0.032019637525081635, -0.47994035482406616, -0.10240703076124191, -0.004010461270809174, 0.2521391808986664, -0.09064024686813354, -0.05714403837919235, 0.1593221127986908, 0.31059908866882324, 0.04433055967092514, 0.0420963354408741, -0.17804017663002014, 0.003727809526026249, -0.2537291944026947, -0.016459975391626358, 0.18569493293762207, -0.3560533821582794, 0.23576411604881287, -0.43652400374412537, -0.08956757187843323, -0.03252188116312027, -0.1421382874250412, 0.14260315895080566, -0.1812763512134552, 0.510978102684021, 0.10300996899604797, 0.33852532505989075, -0.364815354347229, -0.14043563604354858, 0.4575711190700531, 0.008096868172287941, -0.39880797266960144, -0.11049774289131165, 0.06469082087278366, 0.21179020404815674, -0.21156622469425201, -0.42094704508781433, -0.21119557321071625, -0.3019481897354126, 0.6834773421287537, 0.1388968974351883, -0.0035206079483032227, 0.19594620168209076, 0.18520773947238922, 0.15166279673576355, -0.3170531690120697, 0.22689507901668549, -0.27186423540115356, -0.6679091453552246, 0.27377253770828247, -0.25878244638442993, -0.3849785625934601, 0.028257038444280624, 0.15646100044250488, 0.1358892023563385, -0.4363430142402649, -0.5586737394332886, -0.5158253312110901, 0.06785286962985992, -0.07106851786375046, -0.22599643468856812, 0.12941628694534302, 0.05226218327879906, -0.15082331001758575, 0.022363098338246346, -0.046157289296388626, -0.32753947377204895, 0.09227322041988373, 0.07417622953653336, 0.2326543629169464, -0.10124584287405014, 0.6246882677078247, -0.16153720021247864, 0.6484115123748779, 0.3887171149253845, 0.014831587672233582, 0.3194819688796997, -0.039964526891708374, 0.24681805074214935, -0.15727829933166504, -0.1757110208272934, 0.08319853991270065, -0.1874001920223236, 0.1111145168542862, 0.11139625310897827, 0.22424185276031494, 0.1794014722108841, -0.16181769967079163, 0.1847023069858551, -0.4412953853607178, -0.1998858004808426, -0.05168673396110535, -0.007670652121305466, -0.05024241656064987, 0.016152091324329376, 0.09681075066328049, 0.025945153087377548, -0.035261839628219604, -0.01913817785680294, 0.23042280972003937, 0.29011979699134827, 0.09975592792034149, -0.5272748470306396, -0.31864863634109497, -0.16582459211349487, 0.2804068326950073, 0.019480211660265923, 0.2664943337440491, -0.04921999201178551, 0.022740453481674194, 0.19496914744377136, -0.011470386758446693, 0.7602407932281494, 0.11914639174938202, -0.16305232048034668, 0.07741017639636993, -0.05653877556324005, -0.48119300603866577, -0.08782446384429932, -0.1233471930027008, -0.030889220535755157, 0.38254672288894653, 0.7556063532829285, -0.3792797327041626, -0.15975980460643768, -0.12022311985492706, 0.08680928498506546, -0.10652928799390793, -0.10072153806686401, -0.3141179382801056, -0.29876387119293213, -0.5528576970100403, 0.10747262835502625, -0.008753575384616852, 0.27173861861228943, -0.018792370334267616, 0.07988440990447998, 0.20225495100021362, 0.0726989135146141, -0.013065651059150696, 0.23347207903862, 0.3982012867927551, 0.05150692164897919, 0.26540014147758484, 0.33934277296066284, 0.19053825736045837, 0.2868150472640991, 0.6921910047531128, 0.10606907308101654, -0.27631762623786926, -0.09999512135982513, 0.033708732575178146, 0.23430946469306946, 0.1311192661523819, 0.08796259760856628, 0.10972905904054642, 0.10624128580093384, 0.35712260007858276, -0.3401990830898285, -0.14384572207927704, 0.5598687529563904, -0.05199365317821503, -0.1276726871728897, -0.18294407427310944, 0.31206607818603516, -0.03503832221031189, 0.19271431863307953, -0.04083137959241867, 0.07466553151607513, -0.12467342615127563, 0.2589411735534668, -0.05280361324548721, 0.8256846070289612, -0.07024401426315308, 0.24618670344352722, 0.4468623101711273, -0.4051090478897095, 0.6826860308647156, -0.2507859468460083, 0.14535389840602875, -0.3794082999229431, 0.1789955347776413, 0.14500372111797333, -0.1498982459306717, 0.027681864798069, 0.2364233285188675, -0.1200220137834549, 0.13777239620685577, -0.12572990357875824, 0.1578962653875351, -0.18632076680660248, 0.23483774065971375, -0.22361218929290771, -0.19554923474788666, -0.5561308264732361, 0.13137739896774292, -0.21090076863765717, 0.26028066873550415, -0.11294624954462051, -0.13906697928905487, 0.021806154400110245, -0.32341569662094116, -0.23360048234462738, 0.07068042457103729, -0.06107420474290848, 0.016609666869044304, 0.5394461154937744, -0.1612240970134735, 0.17698432505130768, 0.20900852978229523, 0.10342191904783249, 0.1772252321243286, -0.26680824160575867, 0.09872294217348099, -0.10937713831663132, -0.005758251063525677, -0.13523145020008087, 0.17595914006233215, 0.17049375176429749, -0.11084581166505814, -0.2055661678314209, -0.023859485983848572, -0.16374127566814423, -0.1237410306930542, -0.2407137006521225, 0.04405227676033974, -0.3765318989753723, -0.4175992012023926, -0.22738361358642578, -0.23369187116622925, 0.18589158356189728, -0.1329338252544403, 0.1511591374874115, 0.10824927687644958, -0.0678940936923027, 0.10523401200771332, 0.3806173801422119, -0.23717358708381653, -0.16101393103599548, 0.5662916898727417, -0.14295518398284912, -0.2168230563402176, 0.633325457572937, 0.37859201431274414, -0.07083387672901154, -0.1960037350654602, 0.23083803057670593, 0.10257101058959961, -0.40831640362739563, 0.2211989313364029, 0.20108303427696228, 0.11445610225200653, -0.16854234039783478, 0.13486123085021973, 0.24332739412784576, -0.2526738941669464, 0.4581855833530426, -0.47933149337768555, -0.39751917123794556, 0.3743852376937866, 0.05614660680294037, 0.0029575712978839874, 0.2205410599708557, -0.017365287989377975, 0.0172306839376688, -0.05201812833547592, -0.26957133412361145, 0.26293089985847473, -0.2961839735507965, 0.028231700882315636, 0.04854556918144226, -0.18101927638053894, 0.2621263861656189, -0.11176711320877075, 0.08061272650957108, 0.06681537628173828, -0.21855013072490692, -0.1781150996685028, -0.12517639994621277, 0.11780887842178345, 0.03951167315244675, -0.09159579873085022, -0.06505651772022247, -0.05154826492071152, -0.08760635554790497, -0.10681980103254318, -0.02166232466697693, 0.19551420211791992, 0.11940526962280273, 0.11013428121805191, -0.10741138458251953, 0.10965752601623535, 0.11238348484039307, -0.04414127767086029, 0.19140002131462097, 0.3335890769958496, 0.09670291095972061, -0.03610637038946152, -0.10580265522003174, 0.12215575575828552, -0.3424414098262787, 0.12188313156366348, 0.17060688138008118, 0.2003532350063324, 0.25599348545074463, -0.4321787357330322, 0.1386341005563736, 0.03585327789187431, 0.24659553170204163, 0.39512112736701965, -0.38663142919540405, 0.18180540204048157, 0.19751578569412231, 0.19495676457881927, -0.08788375556468964, -0.036059338599443436, 0.21326205134391785, -0.0032151611521840096, -0.28636640310287476, 0.15970245003700256, 0.007528267800807953, 0.06519359350204468, 0.010562196373939514, 0.16322249174118042, 0.36654913425445557, 0.19686993956565857, 0.2581231892108917, 0.03973553702235222, -0.13495177030563354, -0.13809381425380707, 0.10827308148145676, -0.10210691392421722, 0.1364912986755371, -0.001443285495042801, -0.07868915051221848, 0.013142704032361507, -0.23211687803268433, 0.25920021533966064, -0.04060796648263931, -0.3574431836605072, -0.07522302865982056, 0.23475247621536255, 0.04731464013457298, 0.1219077855348587, -0.15216459333896637, 0.6368669867515564, -0.22040526568889618, -0.27771511673927307, -0.31680718064308167, 0.10225451737642288, -0.15902501344680786, -0.15687157213687897, -0.20291495323181152, -0.17072275280952454, -0.09427691251039505, 0.11264973878860474, -0.16164487600326538, -0.16993576288223267, 0.00905851274728775, 0.04912884160876274, -0.18058867752552032, -0.3565671443939209, -0.061169520020484924, 0.20497220754623413, 0.2614809572696686, -0.10352227836847305, 0.3367491364479065, 0.17044903337955475, -0.03282494843006134, 0.2327253818511963, 0.3907316029071808, 0.4232468903064728, 0.33617156744003296, -0.06868091225624084, 0.07304331660270691, -0.14476314187049866, 0.11691221594810486, 0.0757913887500763, 0.4168100655078888, 0.3448216915130615, -0.11596307158470154, 0.22046694159507751, 0.20713074505329132, -0.18459023535251617, 0.06766176968812943, -0.18551914393901825, 0.22972148656845093, -0.2958405315876007, 0.20985081791877747, -0.25815877318382263, 0.07785316556692123, -0.1857810616493225, -0.1307394802570343, -0.5594201683998108, 0.14076311886310577, 0.11289839446544647, 0.28704917430877686, 0.09482917189598083, -0.18658781051635742, 0.07916107028722763, -0.05834629759192467, 0.4962322413921356, 0.4631524384021759, -0.1232183501124382, -0.21706382930278778, -0.02755533903837204, -0.35395634174346924, 0.02498956024646759, 0.00020446255803108215, 0.27081507444381714, 0.06547534465789795, 0.06903998553752899, -0.06841427832841873, 0.10183417052030563, 0.1815824955701828, -0.09398818761110306, -0.2508915960788727, -0.004412546753883362, -0.3523710370063782, -0.22067426145076752, -0.19231091439723969, 0.15135855972766876, 0.21377718448638916, 0.0024126581847667694, 0.14129719138145447, -0.18584026396274567, -0.07164458185434341, -0.030764419585466385, 0.12168379127979279, -0.24753521382808685, -0.11240698397159576, 0.3767678141593933, 0.12337515503168106, 0.2569790780544281, -0.018294716253876686, -0.44699445366859436, -0.14524158835411072, -0.48783019185066223, -0.007932431995868683, 0.35801073908805847, -0.2052106112241745, 0.5472477674484253, -0.2908647954463959, -0.0030832812190055847, -0.408186674118042, 0.060913458466529846, -0.10884062200784683, -0.26807472109794617, -0.2279505878686905, 0.0016213618218898773, 0.051767170429229736, 0.08017721027135849, 0.17262007296085358, 0.3569371998310089, -0.12854473292827606, 0.3508352041244507, -0.36719757318496704, -0.1293615996837616, 0.605170488357544, -0.3269461393356323, -0.017461704090237617, 0.26583707332611084, 0.18194112181663513, 0.0651487410068512, -0.321034699678421, -0.6778941750526428, 0.1931593418121338, 0.36344781517982483, -0.08226674795150757, -0.15996021032333374, 0.16815759241580963, -0.25830960273742676, -0.23068726062774658, -0.021424369886517525, 0.25683432817459106, 0.026123324409127235, -0.13847105205059052, 0.2587222158908844, -0.11078771203756332 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
Yes, code works. but the format is not as expected. ``` dataset = datasets.load_dataset('json', data_files=args.dataset, field="data") ``` ``` python3 run.py --do_train --task qa --dataset squad --output_dir ./re_trained_model/ ``` ************ train_dataset: Dataset({ features: ['id', 'title', 'context', 'question', 'answers'], num_rows: 87599 }) ``` python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/ ``` ************ train_dataset: Dataset({ features: ['title', 'paragraphs'], num_rows: 442 }) I want the JSON to have the same format as before features. https://github.com/huggingface/datasets/blob/master/datasets/squad_v2/squad_v2.py is the script dealing with **squad** but how can I apply it by using JSON?
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
88
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ Yes, code works. but the format is not as expected. ``` dataset = datasets.load_dataset('json', data_files=args.dataset, field="data") ``` ``` python3 run.py --do_train --task qa --dataset squad --output_dir ./re_trained_model/ ``` ************ train_dataset: Dataset({ features: ['id', 'title', 'context', 'question', 'answers'], num_rows: 87599 }) ``` python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/ ``` ************ train_dataset: Dataset({ features: ['title', 'paragraphs'], num_rows: 442 }) I want the JSON to have the same format as before features. https://github.com/huggingface/datasets/blob/master/datasets/squad_v2/squad_v2.py is the script dealing with **squad** but how can I apply it by using JSON?
[ 0.20611299574375153, -0.43059471249580383, 0.014948241412639618, 0.5158002376556396, 0.5084049105644226, 0.12919095158576965, 0.14526833593845367, 0.41619980335235596, 0.08876587450504303, -0.17168132960796356, -0.1046597883105278, 0.22780805826187134, -0.051955558359622955, 0.2885662913322449, -0.15123915672302246, -0.12128573656082153, 0.11548358201980591, 0.055295173078775406, -0.15209335088729858, 0.09531369805335999, -0.24343577027320862, 0.4135744273662567, -0.04496359825134277, 0.045858632773160934, -0.23119767010211945, -0.007542552426457405, -0.026032766327261925, 0.19666191935539246, -0.2593541145324707, -0.4834587872028351, 0.28888922929763794, -0.06929779052734375, 0.23575156927108765, 0.5206590294837952, -0.00011741463822545484, 0.1164422482252121, 0.3516387939453125, -0.21409869194030762, -0.31596142053604126, -0.36551475524902344, -0.18306192755699158, -0.30176421999931335, 0.3520091772079468, -0.09124118089675903, -0.14785881340503693, -0.21488521993160248, -0.1609223335981369, -0.13685409724712372, 0.8742622137069702, 0.30225446820259094, 0.22763270139694214, 0.38267675042152405, 0.19592051208019257, -0.090664803981781, 0.11015774309635162, 0.4140200614929199, -0.11477700620889664, 0.5914291739463806, 0.0321304127573967, 0.2422957420349121, 0.25319263339042664, 0.12580542266368866, 0.10016840696334839, -0.026795856654644012, 0.3157680630683899, -0.038708943873643875, -0.08383277803659439, -0.22217029333114624, -0.23399409651756287, 0.0980883538722992, 0.3543117642402649, -0.25625619292259216, -0.6356514692306519, -0.4264783263206482, 0.10625307261943817, -0.35370466113090515, 0.34228092432022095, 0.22500520944595337, 0.04070284590125084, -0.001665167510509491, -0.32307788729667664, -0.13919086754322052, -0.11448876559734344, 0.0024394243955612183, 0.294638067483902, -0.10800820589065552, -0.3187968134880066, 0.0398218147456646, 0.07317928224802017, -0.20723548531532288, -0.14727261662483215, 0.009983306750655174, -0.23408234119415283, 0.19023838639259338, -0.2444162517786026, -0.13870593905448914, -0.28585323691368103, -0.24975326657295227, 0.060640543699264526, 0.20530514419078827, -0.008833794854581356, -0.21143516898155212, -0.057049866765737534, 0.10166728496551514, 0.3643045127391815, 0.3585778474807739, 0.0718226283788681, -0.02362092025578022, 0.012365985661745071, 0.48546746373176575, 0.009493622928857803, -0.21226194500923157, -0.07562879472970963, -0.1743621528148651, -0.2650758922100067, -0.06598769128322601, 0.07338320463895798, -0.20979295670986176, -0.11668414622545242, 0.049579836428165436, -0.27871087193489075, -0.19995416700839996, -0.0063588498160243034, 0.3127250373363495, -0.2561374306678772, 0.1620384156703949, 0.1728062629699707, 0.42836856842041016, -0.10740853101015091, -0.0756642073392868, -0.0625656247138977, 0.04150081053376198, -0.14236970245838165, 0.04032701626420021, 0.17871055006980896, -0.12752006947994232, 0.38147690892219543, 0.053371720016002655, 0.09142642468214035, -0.3433815836906433, -0.06873394548892975, -0.0339520126581192, -0.19206932187080383, 0.1935623586177826, 0.044998008757829666, 0.09933707863092422, 0.11311036348342896, -0.0961427241563797, -0.09827882796525955, -0.10710866004228592, -0.3540135324001312, -0.16824646294116974, -0.045646876096725464, 0.1537541300058365, -0.20454718172550201, 0.09013596177101135, -0.6574034094810486, -0.01574627310037613, 0.033848077058792114, -0.10380987823009491, 0.11745835095643997, -0.1769225299358368, -0.06779992580413818, -0.1381734162569046, 0.28996741771698, 0.2946496307849884, -0.1416328102350235, -0.35965925455093384, 0.2928161025047302, -0.2345818281173706, 0.01903644949197769, 0.44805920124053955, 0.021979058161377907, 0.27365750074386597, -0.42501816153526306, 0.011324889957904816, 0.04459567368030548, -0.3627950847148895, -0.006383441388607025, 0.13557769358158112, 0.0687476247549057, 0.25263512134552, 0.12842166423797607, -0.26175013184547424, -0.10564619302749634, 0.027969487011432648, 0.2540203332901001, 0.13007521629333496, 0.14258529245853424, 0.011648235842585564, -0.31294625997543335, -0.3812324106693268, -0.10914994776248932, 0.16498155891895294, -0.3355954885482788, 0.1743217408657074, -0.05048268288373947, -0.043142739683389664, 0.23660248517990112, -0.1407579928636551, 0.0020734004210680723, 0.4137503504753113, 0.0861232578754425, 0.16115790605545044, -0.021237097680568695, 0.12041588872671127, -0.7090204954147339, 0.14255425333976746, -0.18998822569847107, 0.012535415589809418, 0.007580980658531189, -0.10684311389923096, -0.2919783294200897, -0.0999622717499733, -0.1440548300743103, -0.09696710109710693, 0.0589928925037384, -0.0067920982837677, 0.3354392945766449, 0.30719220638275146, -0.14449426531791687, 0.2049381583929062, -0.08055983483791351, 0.3053249716758728, -0.5643778443336487, 0.17012591660022736, 0.0343257300555706, -0.07078620046377182, 0.1971990019083023, 0.19738291203975677, 0.07076577842235565, -0.2331687957048416, -0.15341082215309143, 0.21380257606506348, 0.08525430411100388, 0.2559078335762024, -0.0940626934170723, -0.04056835174560547, 0.12038437277078629, 0.19574564695358276, -0.25432997941970825, 0.18688686192035675, 0.10312746465206146, -0.0764724537730217, -0.07973102480173111, 0.5365523099899292, -0.08722098171710968, 0.1490648090839386, 0.02693476527929306, -0.11501846462488174, 0.2336386740207672, 0.12411606311798096, -0.19340892136096954, -0.18735891580581665, 0.18252494931221008, 0.15476323664188385, 0.07597561180591583, -0.037235647439956665, -0.32200366258621216, -0.41274434328079224, 0.5348061323165894, -0.016877273097634315, -0.13289663195610046, 0.3684910535812378, -0.04319591075181961, 0.07922754436731339, -0.09969572722911835, 0.1422286033630371, 0.400484561920166, 0.0014318572357296944, -0.31163710355758667, 0.20932258665561676, 0.2145594358444214, -0.2527654767036438, 0.13363568484783173, 0.016817092895507812, 0.3109522759914398, 0.22871607542037964, 0.23343808948993683, -0.0728176012635231, -0.26635831594467163, 0.10037238895893097, -0.11690206825733185, 0.13271082937717438, -0.5769363045692444, 0.04805345833301544, -0.17146246135234833, -0.16913175582885742, -0.163388192653656, -0.0006676372140645981, -0.34288841485977173, -0.1390712410211563, -0.07617469877004623, 0.2782787084579468, -0.1336510330438614, -0.03220765292644501, 0.084749236702919, 0.25867587327957153, 0.019105440005660057, 0.0573822483420372, -0.26839566230773926, 0.07455971837043762, -0.27928316593170166, -0.04123193770647049, 0.1949075609445572, -0.3436381220817566, 0.19977401196956635, -0.5095854997634888, -0.07428117096424103, -0.03584948927164078, -0.14721015095710754, 0.2133055478334427, -0.16654451191425323, 0.4363239109516144, 0.1522020548582077, 0.2663020193576813, -0.25624412298202515, -0.05281088128685951, 0.46241694688796997, 0.04385955631732941, -0.4029265344142914, -0.0970984697341919, 0.07228688895702362, 0.21939830482006073, -0.26504355669021606, -0.3015249967575073, -0.15607920289039612, -0.3573852777481079, 0.7496997714042664, 0.12227655947208405, 0.01683957502245903, 0.2423318326473236, 0.06855737417936325, 0.12104658782482147, -0.31731685996055603, 0.20822063088417053, -0.2694394290447235, -0.6865056157112122, 0.327251672744751, -0.2638545036315918, -0.36995741724967957, 0.006750185042619705, 0.12178581953048706, 0.2216661274433136, -0.35091733932495117, -0.5408875346183777, -0.4093707203865051, 0.08604394644498825, -0.08663888275623322, -0.10394026339054108, 0.08291284739971161, 0.005206003785133362, -0.14440324902534485, 0.06254516541957855, -0.06871788203716278, -0.25331246852874756, 0.10972940176725388, 0.054620906710624695, 0.17172950506210327, 0.045293115079402924, 0.6456707715988159, -0.19944021105766296, 0.5689502358436584, 0.36663955450057983, -0.027054298669099808, 0.4356898367404938, -0.1002851352095604, 0.30268552899360657, -0.2420792281627655, -0.135282963514328, -0.0015869059134274721, -0.13970255851745605, 0.17965146899223328, 0.12868359684944153, 0.19582915306091309, 0.3104722499847412, -0.1693098396062851, 0.1158338189125061, -0.4171031713485718, -0.17311249673366547, -0.043390095233917236, -0.03577164560556412, -0.006113976240158081, -0.02917177975177765, 0.1342587172985077, 0.1091986894607544, 0.0016369707882404327, 0.05470561608672142, 0.26340508460998535, 0.35102933645248413, 0.12488292902708054, -0.4720061719417572, -0.30283716320991516, -0.2764239013195038, 0.2632085382938385, 0.04073799028992653, 0.32414621114730835, -0.02411942183971405, 0.04960761219263077, 0.12624362111091614, 0.000779957976192236, 0.8350043892860413, 0.16349320113658905, -0.12149593234062195, 0.16662925481796265, -0.1563875675201416, -0.531715989112854, -0.1308010369539261, -0.09669306129217148, -0.005687394179403782, 0.324911504983902, 0.7922846078872681, -0.38554635643959045, -0.23998771607875824, -0.2058618664741516, 0.17151080071926117, -0.14016589522361755, -0.16809788346290588, -0.31268247961997986, -0.26252874732017517, -0.4483344256877899, 0.0034328624606132507, 0.04049612581729889, 0.2725111246109009, -0.10630926489830017, 0.09559673070907593, 0.09559251368045807, 0.00858226791024208, 0.0024200305342674255, 0.14092913269996643, 0.4672662317752838, 0.004802832845598459, 0.3076631724834442, 0.343078076839447, 0.165399432182312, 0.3543035089969635, 0.6921957731246948, 0.11556722223758698, -0.2806422710418701, -0.0597875639796257, 0.046631861478090286, 0.15139302611351013, 0.09231343865394592, 0.05996706336736679, 0.08806697279214859, 0.15214674174785614, 0.300891637802124, -0.36734822392463684, -0.12779657542705536, 0.6147099733352661, -0.04411130025982857, -0.16457605361938477, -0.31409958004951477, 0.3751058280467987, 0.02221253141760826, 0.2094387263059616, -0.030807368457317352, 0.1241225153207779, -0.18252825736999512, 0.17264501750469208, -0.12778815627098083, 0.7358419895172119, 0.014391433447599411, 0.29326173663139343, 0.525152862071991, -0.37606585025787354, 0.6131049990653992, -0.18671239912509918, 0.15729248523712158, -0.3269693851470947, 0.17826436460018158, 0.09891006350517273, -0.17678865790367126, -0.012142449617385864, 0.20445197820663452, -0.07225161790847778, 0.2312460094690323, -0.17671048641204834, 0.140142560005188, -0.17117975652217865, 0.17862817645072937, -0.1625872403383255, -0.1786712408065796, -0.5652276873588562, 0.08308275789022446, -0.12441796064376831, 0.28677430748939514, -0.0910901427268982, -0.20621877908706665, 0.05265907570719719, -0.25652965903282166, -0.1800960898399353, 0.10072911530733109, 0.012408128008246422, 0.02876930683851242, 0.536686897277832, -0.15982496738433838, 0.18360082805156708, 0.12333182990550995, 0.10810904949903488, 0.07797025889158249, -0.29504767060279846, 0.07125180959701538, -0.11371812969446182, 0.02319273352622986, -0.16552035510540009, 0.18084566295146942, 0.15785916149616241, -0.08193309605121613, -0.08155936002731323, -0.1380268931388855, -0.23846668004989624, -0.10999839007854462, -0.18059691786766052, 0.0008032172918319702, -0.41202884912490845, -0.3973082900047302, -0.27894675731658936, -0.22586247324943542, 0.1924029439687729, -0.1520189642906189, 0.12448181211948395, 0.12490710616111755, -0.031187061220407486, 0.04333166405558586, 0.3077870011329651, -0.25499647855758667, -0.17983971536159515, 0.5609434247016907, -0.1107717975974083, -0.16136106848716736, 0.7274045944213867, 0.38138753175735474, -0.09048482775688171, -0.121966652572155, 0.15111571550369263, 0.20104245841503143, -0.459061861038208, 0.29442042112350464, 0.15521126985549927, 0.2126479595899582, -0.20022441446781158, 0.22847452759742737, 0.20343807339668274, -0.266166627407074, 0.461660236120224, -0.4526697099208832, -0.3600495159626007, 0.3563268184661865, 0.0006303004920482635, 0.02485681138932705, 0.23847463726997375, 0.07391281425952911, -0.022489283233880997, -0.1865471601486206, -0.23834702372550964, 0.22018463909626007, -0.16502445936203003, -0.04785197973251343, 0.10624470561742783, -0.07338142395019531, 0.28712692856788635, -0.09905678033828735, 0.07857251912355423, 0.08955390751361847, -0.26441025733947754, -0.14785242080688477, -0.20520183444023132, 0.1341884732246399, 0.04282555729150772, -0.08242763578891754, 0.009111713618040085, 0.012128572911024094, -0.1615237146615982, -0.12392903864383698, -0.000926407054066658, 0.2436048686504364, 0.05971292406320572, 0.1205528974533081, -0.058740559965372086, 0.1403404176235199, 0.06991489231586456, -0.01939653605222702, 0.19918546080589294, 0.3993871212005615, 0.07072408497333527, -0.04891809821128845, -0.16725271940231323, 0.1019100695848465, -0.34917718172073364, 0.0841369554400444, 0.07336033880710602, 0.16674670577049255, 0.24474820494651794, -0.4258597493171692, 0.2328437864780426, 0.031844474375247955, 0.3305582106113434, 0.41319218277931213, -0.35699009895324707, 0.15209612250328064, 0.19495072960853577, 0.1491040140390396, -0.07120157778263092, -0.036460600793361664, 0.09904687106609344, 0.030827689915895462, -0.2815725803375244, 0.10820452868938446, 0.14640018343925476, -0.01135832816362381, 0.0263383649289608, 0.13515925407409668, 0.3333383798599243, 0.16354650259017944, 0.28183066844940186, 0.07027475535869598, -0.1367839276790619, -0.02279762551188469, 0.17144379019737244, -0.058415066450834274, 0.17110000550746918, -0.00048046931624412537, -0.010804310441017151, -0.010869091376662254, -0.10495971888303757, 0.29424378275871277, -0.0895358994603157, -0.44793859124183655, -0.15857049822807312, 0.20467671751976013, 0.015420541167259216, 0.18319720029830933, -0.12550798058509827, 0.5783653259277344, -0.19830206036567688, -0.21414236724376678, -0.29529866576194763, 0.10414718091487885, -0.14067986607551575, -0.21114446222782135, -0.14892958104610443, -0.16256901621818542, -0.10203287750482559, 0.11301881074905396, -0.2505207657814026, -0.061129793524742126, -0.002827078104019165, 0.03119644522666931, -0.1495073288679123, -0.3135872781276703, -0.04657963663339615, 0.1514931321144104, 0.27815917134284973, -0.14921428263187408, 0.3616594076156616, 0.2631325125694275, -0.10920798778533936, 0.24380363523960114, 0.3824661076068878, 0.5052363276481628, 0.29913461208343506, 0.07953256368637085, -0.06458771973848343, -0.16079729795455933, 0.11762970685958862, 0.0820324718952179, 0.48628321290016174, 0.36415642499923706, -0.12630845606327057, 0.23619087040424347, 0.18676365911960602, -0.16638785600662231, 0.15020419657230377, -0.15575505793094635, 0.28877100348472595, -0.3008168935775757, 0.2633892297744751, -0.33343520760536194, 0.02939543128013611, -0.14641371369361877, -0.08061651140451431, -0.5932006239891052, 0.12326453626155853, 0.11515922844409943, 0.29590728878974915, 0.11637837439775467, -0.0923306941986084, 0.07327106595039368, -0.04703568294644356, 0.5171357989311218, 0.39584997296333313, -0.07126789540052414, -0.19574901461601257, -0.06527061760425568, -0.26996296644210815, 0.036940306425094604, 0.019765354692935944, 0.28059473633766174, 0.030738990753889084, -0.01175802480429411, -0.048736102879047394, -0.035592928528785706, 0.16367420554161072, -0.1000659391283989, -0.2022198587656021, -0.08127480745315552, -0.3472236394882202, -0.20170730352401733, -0.14106950163841248, 0.13646836578845978, 0.2036542147397995, -0.026133857667446136, 0.2083737850189209, -0.2109573632478714, -0.0734027624130249, -0.04196878522634506, 0.2450847625732422, -0.21949754655361176, -0.015589684247970581, 0.33082664012908936, 0.16158191859722137, 0.2373785525560379, -0.06780551373958588, -0.42045092582702637, -0.16906975209712982, -0.4997733235359192, 0.0507887527346611, 0.4353410005569458, -0.2635083794593811, 0.5479075908660889, -0.2617591917514801, -0.07257615029811859, -0.4386526942253113, 0.07683601975440979, -0.15495598316192627, -0.2966078817844391, -0.21718943119049072, 0.07989256829023361, -0.047973133623600006, -0.009437663480639458, 0.2348693609237671, 0.3423476219177246, -0.11544454097747803, 0.21023151278495789, -0.3330458998680115, -0.15845078229904175, 0.61497563123703, -0.3621974587440491, -0.027152974158525467, 0.28289318084716797, 0.10410658270120621, 0.09216712415218353, -0.22576658427715302, -0.624017059803009, 0.27121874690055847, 0.3878110647201538, -0.07525704056024551, -0.10056044161319733, 0.19806768000125885, -0.2592170834541321, -0.17730259895324707, -0.011856522411108017, 0.3121728301048279, 0.059435997158288956, -0.2330365777015686, 0.1737138032913208, -0.1385994851589203 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
Ok I see, you have the paragraphs so you just need to process them to extract the questions and answers. I think you can process the SQuAD-like data this way: ```python def process_squad(articles): out = { "title": [], "context": [], "question": [], "id": [], "answers": [], } for title, paragraphs in zip(articles["title"], articles["paragraphs"]): for paragraph in paragraphs: for qa in paragraph["qas"]: out["title"].append(title) out["context"].append(paragraph["context"]) out["question"].append(qa["question"]) out["id"].append(qa["id"]) out["answers"].append({ "answer_start": [answer["answer_start"] for answer in qa["answers"]], "text": [answer["text"] for answer in qa["answers"]], }) return out dataset = dataset.map(process_squad, batched=True, remove_columns=["paragraphs"]) ``` I adapted the code from [squad.py](https://github.com/huggingface/datasets/blob/master/datasets/squad/squad.py). The code takes as input a batch of articles (title + paragraphs) and gets all the questions and answers from the JSON structure. The output is a dataset with `features: ['answers', 'context', 'id', 'question', 'title']` Let me know if that helps !
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
135
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ Ok I see, you have the paragraphs so you just need to process them to extract the questions and answers. I think you can process the SQuAD-like data this way: ```python def process_squad(articles): out = { "title": [], "context": [], "question": [], "id": [], "answers": [], } for title, paragraphs in zip(articles["title"], articles["paragraphs"]): for paragraph in paragraphs: for qa in paragraph["qas"]: out["title"].append(title) out["context"].append(paragraph["context"]) out["question"].append(qa["question"]) out["id"].append(qa["id"]) out["answers"].append({ "answer_start": [answer["answer_start"] for answer in qa["answers"]], "text": [answer["text"] for answer in qa["answers"]], }) return out dataset = dataset.map(process_squad, batched=True, remove_columns=["paragraphs"]) ``` I adapted the code from [squad.py](https://github.com/huggingface/datasets/blob/master/datasets/squad/squad.py). The code takes as input a batch of articles (title + paragraphs) and gets all the questions and answers from the JSON structure. The output is a dataset with `features: ['answers', 'context', 'id', 'question', 'title']` Let me know if that helps !
[ 0.27650272846221924, -0.32455337047576904, -0.004176778718829155, 0.5035704374313354, 0.4913228750228882, 0.12136747688055038, 0.12372808158397675, 0.4133346676826477, -0.07519648969173431, -0.02597971260547638, -0.13011246919631958, 0.3398238718509674, -0.05289539694786072, 0.14872202277183533, -0.17271573841571808, -0.05460358411073685, 0.10165832936763763, -0.04821975529193878, -0.04156069457530975, 0.007289521396160126, -0.20672252774238586, 0.3235587477684021, -0.10912247747182846, 0.037379346787929535, -0.20396660268306732, -0.11718530207872391, -0.054248254746198654, 0.2437569797039032, -0.3019740581512451, -0.45653486251831055, 0.10057210922241211, -0.037628959864377975, 0.16646283864974976, 0.42427676916122437, -0.00011584802996367216, 0.023682571947574615, 0.16463176906108856, -0.23006322979927063, -0.3505629599094391, -0.33319568634033203, 0.12686187028884888, -0.3761897683143616, 0.43046659231185913, -0.2027410864830017, -0.12587568163871765, -0.17860913276672363, -0.0961150974035263, -0.19680456817150116, 1.0008981227874756, 0.3400823771953583, 0.21024641394615173, 0.34700489044189453, 0.1380794495344162, -0.08192696422338486, 0.09692615270614624, 0.25419357419013977, -0.0933297649025917, 0.3230968117713928, 0.2164282351732254, 0.16476428508758545, 0.12582701444625854, 0.17504917085170746, -0.04435477405786514, 0.016981879249215126, 0.25723931193351746, 0.027769915759563446, -0.093071348965168, -0.39377889037132263, -0.18383300304412842, -0.01165972650051117, 0.31372180581092834, -0.14437738060951233, -0.5413426160812378, -0.5017174482345581, 0.17327295243740082, -0.11060964316129684, 0.22160041332244873, 0.24642910063266754, -0.13958561420440674, 0.019111409783363342, -0.3186025619506836, -0.1635533720254898, -0.1161365658044815, 0.020360976457595825, 0.37623199820518494, -0.05767416954040527, -0.2415272444486618, 0.05882924050092697, 0.15682171285152435, -0.14179016649723053, -0.11051008850336075, 0.03535478934645653, -0.07286296784877777, 0.3505920171737671, -0.29519549012184143, -0.27193087339401245, -0.11967848986387253, -0.37174075841903687, 0.10188793390989304, 0.24202580749988556, 0.16512933373451233, -0.1785653829574585, 0.08861885219812393, 0.12411695718765259, 0.4416555166244507, 0.20340776443481445, 0.1819424331188202, 0.02459462359547615, 0.019209548830986023, 0.43908077478408813, -0.054268233478069305, -0.17945125699043274, -0.16016876697540283, -0.03939572721719742, -0.19380126893520355, -0.026885967701673508, 0.14380419254302979, -0.217471182346344, -0.17167431116104126, 0.2964203357696533, -0.3927237093448639, -0.16374236345291138, -0.08331813663244247, 0.29976141452789307, -0.2172033190727234, 0.22449055314064026, 0.17718300223350525, 0.32544374465942383, -0.17575260996818542, -0.07537589967250824, -0.06275981664657593, 0.08001837134361267, -0.11602611839771271, 0.11054737120866776, 0.3034594655036926, -0.026482176035642624, 0.309091180562973, 0.05369631201028824, 0.12597572803497314, -0.46358373761177063, -0.028731249272823334, -0.1711115837097168, -0.15503516793251038, 0.08382244408130646, 0.20335182547569275, 0.05379153788089752, 0.17035947740077972, -0.21150636672973633, -0.10472913831472397, -0.014534756541252136, -0.3091168701648712, -0.15078520774841309, 0.05178849771618843, 0.16216610372066498, -0.20037230849266052, 0.026023665443062782, -0.5260035991668701, 0.17926645278930664, 0.02116909623146057, -0.048396628350019455, 0.03943946212530136, -0.04629895091056824, -0.036795374006032944, -0.19365058839321136, 0.21105685830116272, 0.3823006749153137, -0.28163325786590576, -0.21646030247211456, 0.25240570306777954, -0.21602731943130493, -0.1254361867904663, 0.4440963864326477, 0.033064793795347214, 0.3277866840362549, -0.26485055685043335, 0.08727580308914185, 0.018376760184764862, -0.4131511151790619, -0.03504952788352966, 0.14480502903461456, -0.033821284770965576, 0.2014673501253128, 0.0676673874258995, -0.19529156386852264, 0.05809075012803078, 0.1379050761461258, 0.25488370656967163, 0.2368626892566681, 0.08187991380691528, 0.04826171696186066, -0.27668455243110657, -0.31853437423706055, -0.20284174382686615, 0.26480117440223694, -0.18774516880512238, 0.15344098210334778, -0.02596239000558853, -0.05399079993367195, 0.21665862202644348, -0.15162594616413116, 0.0617932453751564, 0.45331066846847534, 0.16851165890693665, 0.23878014087677002, -0.02179097756743431, -0.04804267734289169, -0.7455337643623352, 0.06846638023853302, -0.06892398744821548, 0.12116768211126328, -0.023955583572387695, -0.14259330928325653, -0.2511225938796997, -0.10893519222736359, -0.08053690195083618, -0.1743043214082718, 0.1121964156627655, -0.13631270825862885, 0.22412258386611938, 0.21553027629852295, -0.16898655891418457, 0.1963331550359726, -0.03959822282195091, 0.4472268521785736, -0.5573825240135193, 0.2424887865781784, -0.09833499044179916, -0.1988380253314972, 0.2147199511528015, 0.20114481449127197, -0.034132927656173706, -0.11263905465602875, -0.07476136088371277, 0.19062873721122742, 0.006886650808155537, 0.2139621078968048, 0.13318736851215363, -0.10524772107601166, 0.08388283103704453, 0.10244433581829071, -0.19731062650680542, 0.17433872818946838, 0.17443184554576874, 0.004770584404468536, -0.11933302134275436, 0.5076289772987366, -0.10100717842578888, 0.18876796960830688, 0.06286365538835526, -0.07565867155790329, 0.1690589189529419, 0.006397128105163574, -0.10021582990884781, -0.11849852651357651, 0.1551010012626648, 0.2553535997867584, 0.04583929106593132, -0.08359802514314651, -0.30614057183265686, -0.29188427329063416, 0.5586366057395935, -0.05900680273771286, -0.06782130151987076, 0.3698517382144928, 0.03553791344165802, 0.11825192719697952, -0.10439950227737427, 0.04345550760626793, 0.45893555879592896, 0.09115246683359146, -0.33918794989585876, 0.19726160168647766, 0.1484525203704834, -0.1437975913286209, 0.1024157851934433, 0.09574049711227417, 0.4166863262653351, 0.3183400630950928, 0.3000156283378601, 0.05976242944598198, -0.3067357540130615, 0.1420869678258896, -0.208335742354393, 0.2186392843723297, -0.49254223704338074, 0.04450438916683197, -0.11515893042087555, -0.10689905285835266, -0.20280010998249054, 0.11349141597747803, -0.38274046778678894, -0.14132219552993774, 0.10159150511026382, 0.16462600231170654, -0.17465299367904663, -0.07452990859746933, 0.19702090322971344, 0.3646429777145386, 0.08648714423179626, 0.10210978984832764, -0.15326476097106934, -0.09598860144615173, -0.1803576648235321, -0.010870106518268585, 0.2143465280532837, -0.26452159881591797, 0.19159527122974396, -0.3866003751754761, -0.10719714313745499, -0.09694667160511017, -0.08627764135599136, 0.20080499351024628, -0.28956007957458496, 0.5592089891433716, -0.0038715973496437073, 0.37361598014831543, -0.2889697849750519, -0.23851323127746582, 0.4713868498802185, -0.10993257910013199, -0.46254056692123413, -0.05699347332119942, 0.18254531919956207, 0.12318799644708633, -0.20127487182617188, -0.5368162393569946, -0.24498872458934784, -0.3387770652770996, 0.673948347568512, 0.17986856400966644, 0.0916329026222229, 0.11917109787464142, 0.15841364860534668, 0.10845387727022171, -0.25532859563827515, 0.241159126162529, -0.26301008462905884, -0.5265833735466003, 0.26402291655540466, -0.23656553030014038, -0.42362180352211, -0.031149450689554214, 0.14064358174800873, 0.051655061542987823, -0.4131498336791992, -0.5645362734794617, -0.4872904121875763, 0.15278196334838867, -0.1334134191274643, -0.2397792637348175, 0.1840977966785431, 0.17053034901618958, -0.13474126160144806, -0.013108329847455025, -0.08665434271097183, -0.3071373999118805, 0.1541530042886734, 0.03578087314963341, 0.16992761194705963, -0.16357392072677612, 0.6400700211524963, -0.014081208035349846, 0.647027850151062, 0.42684754729270935, 0.1050800234079361, 0.3005037307739258, 0.022035472095012665, 0.1812218874692917, -0.10151069611310959, -0.2334776669740677, 0.12517589330673218, -0.3126179873943329, 0.06194515526294708, 0.23098379373550415, 0.17595040798187256, 0.13686318695545197, -0.21820878982543945, 0.2982584238052368, -0.6266528367996216, -0.2740616798400879, 0.016729701310396194, 0.010467920452356339, 0.012533977627754211, 0.011039793491363525, 0.0991446003317833, -0.001622900366783142, -0.026173396036028862, -0.1088838130235672, 0.1585473120212555, 0.32881468534469604, 0.034379664808511734, -0.5321620106697083, -0.22005990147590637, -0.2435295283794403, 0.3540111184120178, 0.07390008121728897, 0.17443205416202545, -0.021526023745536804, -0.04802612587809563, 0.2247312217950821, -0.07073471695184708, 0.7434009909629822, 0.16042965650558472, -0.24631814658641815, 0.10113850235939026, -0.042836591601371765, -0.5279507040977478, -0.07959939539432526, -0.23270323872566223, 0.04490623623132706, 0.41159170866012573, 0.7351168394088745, -0.4760127663612366, -0.1883804202079773, -0.0302230603992939, 0.016634132713079453, -0.08124475181102753, -0.10073603689670563, -0.2711493968963623, -0.25497278571128845, -0.6155121922492981, 0.15584805607795715, 0.058784931898117065, 0.24769474565982819, -0.1452714204788208, 0.0048152245581150055, 0.31553974747657776, 0.04639296978712082, 0.10015564411878586, 0.18431706726551056, 0.3522070646286011, -0.0061871749348938465, 0.2355441153049469, 0.3182714879512787, 0.11629347503185272, 0.2940477728843689, 0.7196812629699707, 0.11630310118198395, -0.20874515175819397, -0.057107776403427124, -0.05561372637748718, 0.3012182116508484, 0.3266754448413849, 0.07960133254528046, 0.1521790325641632, 0.01199339423328638, 0.38892024755477905, -0.29783788323402405, -0.1634095311164856, 0.6246680021286011, -0.07364475727081299, -0.06420225650072098, -0.18726204335689545, 0.28112301230430603, -0.07606758177280426, 0.17521829903125763, -0.17873279750347137, 0.08016403764486313, -0.11652836948633194, 0.30410516262054443, -0.04802601784467697, 0.9530208706855774, -0.031970635056495667, 0.283697247505188, 0.3950023651123047, -0.24793149530887604, 0.6461244821548462, -0.34999847412109375, 0.17753839492797852, -0.36177271604537964, 0.1908334344625473, 0.11251583695411682, -0.12142610549926758, 0.05496405065059662, 0.33017921447753906, -0.12954725325107574, 0.15667769312858582, -0.07674567401409149, 0.1370946764945984, -0.13826102018356323, 0.19033822417259216, -0.24556374549865723, -0.16573156416416168, -0.6185186505317688, 0.1025463342666626, -0.182712122797966, 0.15724767744541168, -0.09239935129880905, -0.14735707640647888, -0.15517321228981018, -0.3246765732765198, -0.24078628420829773, 0.0903942659497261, -0.06652436405420303, 0.07587404549121857, 0.551969587802887, -0.2031160295009613, 0.13407012820243835, 0.22717219591140747, 0.051200758665800095, 0.20685668289661407, -0.23526951670646667, 0.031167607754468918, -0.11079300194978714, -0.061625391244888306, -0.11211502552032471, 0.11328113824129105, 0.241593599319458, -0.10522680729627609, -0.20291531085968018, -0.02670365571975708, -0.1529228538274765, -0.2556820511817932, -0.15475809574127197, 0.06447570770978928, -0.2566593885421753, -0.4200194180011749, -0.33197101950645447, -0.13077206909656525, 0.08206070959568024, -0.16625089943408966, 0.1344933658838272, 0.0810696929693222, -0.1708875298500061, 0.15850791335105896, 0.26997146010398865, -0.11564505845308304, -0.1344994604587555, 0.522987961769104, -0.11111629754304886, -0.18960195779800415, 0.6493115425109863, 0.4368527829647064, -0.1483582854270935, -0.23781582713127136, 0.18381839990615845, 0.13162799179553986, -0.3388340175151825, 0.2567910850048065, 0.09734011441469193, 0.0051157474517822266, -0.17174594104290009, 0.11595794558525085, 0.2222607582807541, -0.2517642676830292, 0.36505943536758423, -0.5673500895500183, -0.31736764311790466, 0.4430665373802185, 0.0045317113399505615, -0.06317698955535889, 0.2668234705924988, 0.10025660693645477, -0.0338655561208725, 0.08321821689605713, -0.2726908326148987, 0.30072587728500366, -0.3953944444656372, 0.08739057183265686, 0.07676852494478226, -0.3047943711280823, 0.18639563024044037, -0.13112393021583557, 0.08259395509958267, 0.16057215631008148, -0.26542115211486816, -0.17153581976890564, -0.1408919245004654, 0.13076086342334747, 0.04045036435127258, -0.04046960175037384, -0.0490468293428421, 0.005802847445011139, -0.15215149521827698, -0.11417206376791, -0.054955948144197464, 0.17960375547409058, 0.16342997550964355, 0.14413879811763763, 0.03668689727783203, 0.16716018319129944, 0.11670467257499695, -0.07826995104551315, 0.1362467259168625, 0.34351715445518494, 0.10330217331647873, -0.08543986082077026, -0.13008812069892883, 0.09331837296485901, -0.24150988459587097, 0.16962507367134094, 0.24937866628170013, 0.2326851487159729, 0.29962679743766785, -0.3759666681289673, 0.12099924683570862, 0.020138800144195557, 0.30903229117393494, 0.5209896564483643, -0.34817492961883545, 0.23469723761081696, 0.09858809411525726, 0.1765884906053543, -0.15561789274215698, -0.03195104002952576, 0.30024537444114685, -0.07500084489583969, -0.2783227562904358, 0.200201153755188, -0.007398463785648346, 0.17409956455230713, 0.0867425724864006, 0.19116193056106567, 0.38957300782203674, 0.24343810975551605, 0.1822119951248169, -0.04449966177344322, -0.0832732766866684, -0.12891048192977905, 0.09364204853773117, -0.19666345417499542, 0.14910629391670227, -0.026131637394428253, -0.024343281984329224, -0.045815177261829376, -0.20572635531425476, 0.33660686016082764, -0.020727328956127167, -0.2763657569885254, -0.03835901990532875, 0.18242096900939941, 0.11147577315568924, 0.15115982294082642, -0.1772984266281128, 0.710470974445343, -0.16190625727176666, -0.25147873163223267, -0.28900855779647827, 0.22257277369499207, -0.17362359166145325, -0.1278698891401291, -0.13424131274223328, -0.213527113199234, -0.20129048824310303, 0.04711170122027397, -0.1583186537027359, -0.22916801273822784, -0.057252734899520874, 0.0272270068526268, -0.14080238342285156, -0.29914671182632446, -0.03408992290496826, 0.11117689311504364, 0.3122478425502777, -0.15575601160526276, 0.3278481662273407, 0.160719096660614, 0.05923714488744736, 0.1917225569486618, 0.42598599195480347, 0.3981616497039795, 0.27580738067626953, -0.1555979698896408, 0.03738589584827423, -0.2158239334821701, 0.020956629887223244, 0.08114571124315262, 0.42706266045570374, 0.3053332567214966, -0.08238932490348816, 0.21377956867218018, 0.18072165548801422, -0.2147713154554367, 0.0002960972487926483, -0.10919691622257233, 0.18125125765800476, -0.31293460726737976, 0.20852378010749817, -0.24187254905700684, -0.08663006126880646, -0.1583319455385208, -0.22907313704490662, -0.5892876386642456, 0.2352299690246582, 0.01194467768073082, 0.173279270529747, 0.09380729496479034, -0.18130013346672058, 0.07526031136512756, -0.040587279945611954, 0.5046568512916565, 0.4481281638145447, -0.07920127362012863, -0.23646092414855957, -0.09607204794883728, -0.4669954478740692, 0.05280252918601036, 0.07716787606477737, 0.22014379501342773, 0.08570263534784317, 0.13033117353916168, 0.056507837027311325, 0.26853471994400024, 0.052200496196746826, -0.13884451985359192, -0.31601330637931824, 0.03278183192014694, -0.5403750538825989, -0.17789241671562195, -0.017836786806583405, 0.058934129774570465, 0.23156020045280457, -0.007175501435995102, 0.08532002568244934, -0.09249754995107651, -0.07129158824682236, 0.0786534994840622, 0.03882656246423721, -0.22202615439891815, -0.09806324541568756, 0.2836260199546814, 0.13034607470035553, 0.3286898136138916, -0.052645936608314514, -0.4227827191352844, -0.1128481775522232, -0.45356956124305725, -0.047356367111206055, 0.32464465498924255, -0.13200236856937408, 0.6502729654312134, -0.2625964879989624, -0.06249318644404411, -0.30851730704307556, 0.02521752193570137, -0.13109037280082703, -0.29696956276893616, -0.2991316616535187, -0.006159485317766666, 0.023059755563735962, 0.1990865170955658, 0.08629296720027924, 0.42642033100128174, -0.1701638251543045, 0.3555662930011749, -0.4462167024612427, -0.22600167989730835, 0.6370900869369507, -0.30444589257240295, -0.10287810862064362, 0.2540016174316406, 0.14432594180107117, 0.10981984436511993, -0.3229668438434601, -0.6543384194374084, 0.09338823705911636, 0.32205823063850403, -0.08327536284923553, -0.1749875396490097, 0.17735424637794495, -0.3135722577571869, -0.2960965633392334, 0.0071625374257564545, 0.1035662367939949, 0.11894823610782623, -0.05999722331762314, 0.15710343420505524, -0.19681401550769806 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
Yes, this works. But how to get the training output during training the squad by **Trainer** for example https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/trainer_qa.py I want the training inputs, labels, outputs for every epoch and step to produce the training dynamic graph
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
37
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ Yes, this works. But how to get the training output during training the squad by **Trainer** for example https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/trainer_qa.py I want the training inputs, labels, outputs for every epoch and step to produce the training dynamic graph
[ 0.16368702054023743, -0.5511730313301086, 0.013823393732309341, 0.5805276036262512, 0.5453882217407227, 0.015508130192756653, 0.18376801908016205, 0.34606245160102844, -0.14027811586856842, -0.044416412711143494, -0.10375126451253891, 0.40050724148750305, -0.08728338032960892, 0.3356795310974121, -0.004874738864600658, -0.1373550146818161, -0.03226549178361893, 0.08831975609064102, -0.21206384897232056, -0.04353629797697067, -0.07841435074806213, 0.34081682562828064, -0.06578520685434341, 0.21590031683444977, -0.38664883375167847, -0.07490161061286926, 0.016065632924437523, 0.01938898116350174, -0.23312878608703613, -0.42736366391181946, 0.18223276734352112, -0.19049237668514252, 0.22771048545837402, 0.35379156470298767, -0.00012145624350523576, 0.18157784640789032, 0.16960790753364563, -0.2737133800983429, -0.4236271381378174, -0.3394160866737366, 0.014978930354118347, -0.28243744373321533, 0.4665515124797821, -0.1831333339214325, -0.16980189085006714, -0.10888838022947311, -0.07121582329273224, -0.13782677054405212, 0.9953345656394958, 0.2467193603515625, 0.14475226402282715, 0.4332352578639984, -0.10223297774791718, -0.05385032296180725, -0.020003318786621094, 0.4325110912322998, -0.004213549196720123, 0.40111109614372253, 0.27660858631134033, 0.1857433021068573, 0.09212232381105423, 0.15774697065353394, 0.20493699610233307, -0.09692022204399109, 0.29669708013534546, 0.08504126220941544, -0.03990834206342697, -0.2561958432197571, -0.08604380488395691, 0.06213546544313431, 0.36454930901527405, -0.19560500979423523, -0.6179219484329224, -0.5118347406387329, 0.2931278645992279, -0.23301616311073303, 0.22321191430091858, 0.296348512172699, -0.14674419164657593, -0.011661779135465622, -0.4289115071296692, -0.055182840675115585, -0.2553483247756958, -0.010577812790870667, 0.39517006278038025, -0.10061155259609222, -0.2855522036552429, 0.007442031055688858, 0.0503956601023674, 0.015252910554409027, -0.10692090541124344, 0.22213472425937653, -0.15590180456638336, 0.3383008539676666, -0.23958082497119904, -0.25062209367752075, -0.22324267029762268, -0.48232439160346985, 0.03164282813668251, 0.1609174758195877, 0.16200770437717438, -0.20968490839004517, 0.022848457098007202, 0.1549597680568695, 0.3680732548236847, 0.3324814438819885, 0.16128428280353546, 0.19820129871368408, -0.0182248055934906, 0.43830132484436035, -0.12054094672203064, -0.1782139241695404, -0.17928503453731537, 0.0185290165245533, -0.03692549467086792, 0.04774704575538635, -0.019094575196504593, -0.17952696979045868, -0.07749497145414352, 0.06099386513233185, -0.4027305245399475, -0.20689700543880463, 0.03305887058377266, 0.33422887325286865, -0.277715265750885, 0.10900085419416428, 0.1962232142686844, 0.25867724418640137, -0.09263362735509872, -0.11267779767513275, -0.03276808559894562, 0.041943371295928955, -0.27685320377349854, 0.12177545577287674, 0.2523883879184723, -0.029594916850328445, 0.41300514340400696, -0.003239622339606285, 0.19950853288173676, -0.5130035877227783, 0.010876759886741638, -0.03797507286071777, 0.025034137070178986, 0.10415567457675934, 0.06576155126094818, -0.16946665942668915, 0.03246927633881569, -0.11952713876962662, -0.1300615668296814, -0.09329385310411453, -0.274990439414978, -0.29658880829811096, -0.03779948502779007, 0.10967885702848434, -0.12347880005836487, 0.15253201127052307, -0.594275951385498, 0.08494068682193756, -0.030568890273571014, -0.02764800935983658, 0.10829978436231613, -0.09988991916179657, 0.0504889152944088, -0.1010693833231926, 0.37979772686958313, 0.3399544656276703, -0.2790544033050537, -0.5189013481140137, 0.48640426993370056, -0.297299325466156, -0.13371717929840088, 0.3298201262950897, -0.126360222697258, 0.4571651220321655, -0.31795743107795715, -0.07237794995307922, 0.27493005990982056, -0.4058852195739746, 0.023147910833358765, 0.10571032017469406, -0.02593839541077614, 0.08119451999664307, 0.20014822483062744, -0.13974504172801971, 0.14503122866153717, 0.24146606028079987, 0.2133341133594513, 0.21794354915618896, 0.06452006101608276, -0.037554461508989334, -0.10407424718141556, -0.3301294445991516, -0.2853240370750427, 0.2621781826019287, -0.10913512110710144, 0.22088417410850525, 0.004181846976280212, 0.0738995149731636, 0.2792876958847046, -0.18296101689338684, 0.08732257038354874, 0.3323085904121399, -0.0028611011803150177, 0.21845893561840057, -0.016418546438217163, 0.040982529520988464, -0.7167806625366211, 0.10774675756692886, -0.31893017888069153, -0.01339082419872284, -0.0620652437210083, -0.1783907264471054, -0.07749538868665695, -0.089668408036232, -0.13593561947345734, -0.19507908821105957, 0.012871339917182922, 0.00023455917835235596, 0.4143766164779663, 0.14406293630599976, -0.22369474172592163, 0.27901503443717957, -0.29017284512519836, 0.25602346658706665, -0.614016592502594, 0.26147231459617615, 0.05393123999238014, -0.15411798655986786, 0.12463048100471497, 0.2394159436225891, -0.019417837262153625, -0.18181349337100983, -0.12987542152404785, 0.12170859426259995, 0.013202294707298279, 0.2702404260635376, 0.03390385955572128, -0.06188327074050903, 0.11693767458200455, 0.18727071583271027, -0.1596769392490387, -0.003972707316279411, 0.023344069719314575, -0.07332323491573334, 0.05568421259522438, 0.44460761547088623, -0.07280115783214569, 0.1837988644838333, 0.10373446345329285, -0.11266078799962997, 0.09066976606845856, 0.1267680525779724, -0.32869288325309753, -0.0811031237244606, 0.1002119854092598, 0.15868054330348969, 0.18368348479270935, -0.17044998705387115, -0.45696818828582764, -0.38681143522262573, 0.6421719193458557, -0.16194449365139008, -0.15736231207847595, 0.346047043800354, -0.0100865438580513, 0.11975317448377609, -0.06861747801303864, 0.11866436898708344, 0.36327695846557617, 0.03959059715270996, -0.27180975675582886, 0.14514850080013275, 0.13241563737392426, -0.133478045463562, 0.12451771646738052, 0.0942169800400734, 0.45571136474609375, 0.26812827587127686, 0.11123503744602203, 0.00023024529218673706, -0.22831720113754272, -0.03663160279393196, -0.12644685804843903, 0.11298345029354095, -0.4793062210083008, 0.16541895270347595, -0.0006624385714530945, -0.12195616960525513, -0.24505850672721863, 0.05806322023272514, -0.19222484529018402, -0.06597233563661575, -0.0722729042172432, 0.15154936909675598, -0.07279486209154129, -0.013553811237215996, 0.18133117258548737, 0.33445900678634644, 0.021682778373360634, 0.02800910174846649, -0.18736162781715393, -0.025639289990067482, -0.26742711663246155, -0.07287770509719849, 0.07046958804130554, -0.3500692546367645, 0.1615641862154007, -0.4621557593345642, -0.15281273424625397, -0.052887268364429474, -0.07168129831552505, 0.28983181715011597, -0.10963118076324463, 0.32718631625175476, 0.1288943588733673, 0.25159358978271484, -0.3873901963233948, -0.163492813706398, 0.3807101547718048, -0.09795258194208145, -0.5009233951568604, -0.19248266518115997, 0.01611248031258583, 0.27656111121177673, -0.1665632128715515, -0.4025961756706238, -0.4009648263454437, -0.2580576539039612, 0.7676858305931091, 0.02527381107211113, 0.08704279363155365, 0.3073759973049164, 0.1251291036605835, 0.2890153229236603, -0.31252536177635193, 0.3152787387371063, -0.26095259189605713, -0.7380495667457581, 0.24946559965610504, -0.23904868960380554, -0.29457125067710876, 0.00002977997064590454, 0.046588100492954254, 0.24494941532611847, -0.3088509440422058, -0.6073962450027466, -0.5697599649429321, 0.2936197817325592, -0.08755603432655334, -0.3498707413673401, 0.16626045107841492, 0.10679517686367035, -0.22549539804458618, 0.09266486763954163, 0.026821747422218323, -0.19119516015052795, 0.19005030393600464, 0.04095347598195076, 0.09536901861429214, -0.14359533786773682, 0.5655420422554016, -0.058300286531448364, 0.7821049690246582, 0.39430734515190125, -0.1291196346282959, 0.09155760705471039, -0.14167924225330353, 0.25462645292282104, -0.16055095195770264, -0.13988879323005676, -0.055635251104831696, -0.2983156144618988, 0.04310639202594757, 0.06797280162572861, 0.1445898711681366, 0.1958964467048645, -0.17732146382331848, 0.25307998061180115, -0.497446745634079, -0.1574530154466629, -0.018868224695324898, -0.056358762085437775, 0.0820872113108635, -0.10224640369415283, 0.3245766758918762, 0.10264414548873901, 0.05272291973233223, 0.042700327932834625, 0.13389596343040466, 0.39897987246513367, 0.1588195562362671, -0.4072776436805725, -0.44442301988601685, -0.08537495881319046, 0.12117007374763489, 0.1469734013080597, 0.18815405666828156, -0.12321989238262177, 0.012877121567726135, 0.2555568814277649, 0.06765994429588318, 0.8317309617996216, 0.2287365049123764, -0.004518367350101471, 0.17196771502494812, -0.25702035427093506, -0.28437966108322144, -0.0751650407910347, -0.13937008380889893, -0.08083990961313248, 0.4905984401702881, 0.8783761858940125, -0.264152467250824, -0.20499223470687866, 0.005238424986600876, 0.0133149903267622, -0.15657176077365875, -0.04208710789680481, -0.2597935199737549, -0.08599363267421722, -0.4670426845550537, 0.1583229899406433, -0.024118861183524132, 0.1528673768043518, -0.07259316742420197, -0.01620957814157009, 0.29954761266708374, 0.10605116933584213, -0.11621731519699097, 0.2957325279712677, 0.3716205954551697, 0.08927817642688751, 0.16178740561008453, 0.5254956483840942, 0.2688026428222656, 0.19234903156757355, 0.5247256755828857, 0.1414261907339096, -0.23140385746955872, 0.051542434841394424, 0.06406886130571365, 0.34086838364601135, 0.24920699000358582, 0.11132419109344482, 0.0904637947678566, 0.06819689273834229, 0.3083609938621521, -0.2559913098812103, -0.08151552081108093, 0.5821502804756165, 0.05564507097005844, -0.11934599280357361, -0.26642441749572754, 0.3737551271915436, -0.09533494710922241, 0.20677556097507477, -0.06891342997550964, -0.03288961201906204, -0.2475612312555313, 0.039821792393922806, 0.020416729152202606, 0.8380056023597717, 0.056778665632009506, 0.4257473647594452, 0.5931446552276611, -0.29611313343048096, 0.5786537528038025, -0.236955463886261, 0.17630478739738464, -0.34427860379219055, 0.2301270067691803, 0.08678488433361053, -0.2028398960828781, -0.0723687931895256, 0.31471681594848633, -0.14546573162078857, 0.12556461989879608, -0.05444265156984329, 0.23525328934192657, -0.14157569408416748, 0.1733836978673935, -0.1304539442062378, -0.24254944920539856, -0.6795151829719543, -0.006321640685200691, -0.23052914440631866, 0.2604219615459442, -0.10123924911022186, -0.24897150695323944, 0.06161746010184288, -0.14807799458503723, -0.10971587896347046, 0.10912708193063736, -0.14784923195838928, 0.031161058694124222, 0.587451696395874, -0.31502607464790344, 0.10773079097270966, 0.2895158529281616, 0.004854261875152588, 0.02622341737151146, -0.17460991442203522, 0.022334527224302292, -0.17764025926589966, 0.058716218918561935, -0.14045731723308563, 0.2310640513896942, 0.31068405508995056, -0.06483049690723419, -0.1326168030500412, 0.08407098799943924, -0.1737692654132843, -0.11363239586353302, -0.13356894254684448, -0.01816430687904358, -0.31211280822753906, -0.31052273511886597, -0.1317189335823059, -0.10901129245758057, 0.01995275542140007, -0.0844014510512352, 0.06558866053819656, 0.2124921679496765, -0.38878631591796875, 0.09486173093318939, 0.3682168424129486, -0.22889117896556854, -0.10567456483840942, 0.5123490691184998, -0.10889840871095657, -0.1292361617088318, 0.7484780550003052, 0.40163078904151917, -0.015801290050148964, -0.14221251010894775, 0.2874464988708496, 0.1527394950389862, -0.39093655347824097, 0.17595811188220978, 0.2678564488887787, 0.10658228397369385, -0.15980243682861328, 0.13115395605564117, 0.23727786540985107, -0.15980717539787292, 0.23194260895252228, -0.3876803517341614, -0.5591206550598145, 0.24942240118980408, 0.026273678988218307, -0.00863536074757576, 0.31189998984336853, 0.18587826192378998, 0.053528912365436554, 0.009207593277096748, -0.1895495355129242, 0.13480708003044128, -0.2950347065925598, 0.06199999526143074, 0.10699797421693802, -0.25775331258773804, 0.3248670697212219, -0.08649919927120209, -0.020998923107981682, 0.05820228159427643, -0.26768332719802856, -0.08093681931495667, -0.126665860414505, 0.14051681756973267, 0.046180643141269684, 0.14712892472743988, -0.10445114970207214, -0.0603683777153492, -0.13102613389492035, -0.0406733900308609, 0.05113200470805168, 0.18816840648651123, 0.15094462037086487, 0.2860046327114105, -0.11884663999080658, 0.1997053325176239, 0.066342793405056, -0.07397329807281494, 0.16296923160552979, 0.3708363175392151, 0.07262592762708664, -0.03646393120288849, -0.11294253915548325, 0.044149793684482574, -0.502583920955658, 0.18103548884391785, 0.06079205870628357, 0.2144969403743744, 0.2749977111816406, -0.33469969034194946, 0.1660025268793106, -0.17753195762634277, 0.24227452278137207, 0.2725021243095398, -0.26071733236312866, 0.09364306181669235, 0.134360671043396, 0.12087859958410263, -0.07252044975757599, -0.023472094908356667, 0.1132587194442749, -0.1013452336192131, -0.23819169402122498, 0.18339762091636658, -0.049556273967027664, 0.07467128336429596, 0.09372110664844513, 0.21124932169914246, 0.2279496192932129, 0.10040299594402313, 0.33707448840141296, 0.2085898518562317, -0.09753861278295517, 0.007142070680856705, 0.06252023577690125, 0.10093049705028534, 0.011003956198692322, -0.1580742597579956, -0.032744988799095154, 0.05265585333108902, -0.3899502158164978, 0.19160859286785126, 0.017317160964012146, -0.30711784958839417, -0.36943867802619934, 0.15356071293354034, -0.10267068445682526, 0.20979976654052734, -0.2943536937236786, 0.7300035357475281, -0.2276037186384201, -0.27055948972702026, -0.2460840791463852, 0.14528775215148926, -0.23597607016563416, -0.027266867458820343, -0.1890135407447815, -0.116775281727314, -0.009214282035827637, 0.10082791745662689, -0.0383685864508152, -0.12531359493732452, 0.009694814682006836, 0.07552970945835114, -0.15223535895347595, -0.0349445715546608, -0.06734777241945267, 0.1296602338552475, 0.3570151627063751, -0.16639991104602814, 0.2957078516483307, 0.01859143376350403, 0.061467986553907394, 0.1739598661661148, 0.2840453088283539, 0.2618509829044342, 0.20825113356113434, -0.04840794578194618, 0.08263258635997772, -0.04185285419225693, 0.05282966047525406, 0.08784166723489761, 0.37009188532829285, 0.40537041425704956, -0.33784738183021545, 0.2125358283519745, 0.10727095603942871, -0.09354180097579956, 0.13436925411224365, -0.08052565157413483, 0.1981307417154312, -0.26937565207481384, 0.36966609954833984, -0.12008833885192871, -0.1601027250289917, -0.1720608025789261, -0.04127366095781326, -0.6431030035018921, 0.17221614718437195, 0.035921551287174225, 0.3265582025051117, 0.060018956661224365, -0.11298117786645889, 0.030938930809497833, -0.1290942132472992, 0.5253027677536011, 0.5115396976470947, -0.09225494414567947, -0.22063571214675903, 0.053499773144721985, -0.26322612166404724, 0.048524193465709686, 0.17031806707382202, 0.20326195657253265, 0.017706822603940964, 0.06921420246362686, -0.015090294182300568, 0.04282858967781067, 0.21603843569755554, -0.14298854768276215, -0.16006772220134735, -0.05844048410654068, -0.42773064970970154, -0.3538138270378113, -0.17108120024204254, 0.3291657865047455, 0.13767799735069275, 0.0010790899395942688, 0.16809700429439545, -0.2326076477766037, -0.12922275066375732, 0.12444904446601868, 0.2546023726463318, -0.30653202533721924, 0.06347434967756271, 0.28826722502708435, -0.01822892390191555, 0.26484835147857666, 0.008470248430967331, -0.27893978357315063, -0.044804807752370834, -0.4761587083339691, 0.11529870331287384, 0.2616068124771118, -0.11864715814590454, 0.5204257965087891, -0.3099736273288727, -0.04617542400956154, -0.47419029474258423, -0.15435631573200226, -0.0750095322728157, -0.33544546365737915, -0.24457667768001556, -0.013059881515800953, -0.012448038905858994, 0.08796830475330353, 0.24827532470226288, 0.4933454990386963, -0.13505792617797852, 0.09467754513025284, -0.4642791152000427, -0.08418393135070801, 0.6214457154273987, -0.5367507338523865, -0.10711769759654999, 0.21770453453063965, 0.1412961184978485, 0.15824760496616364, -0.2566116452217102, -0.58746737241745, 0.2448253035545349, 0.38977113366127014, -0.20241618156433105, -0.08224253356456757, 0.1570066213607788, -0.17899253964424133, -0.10234386473894119, -0.03871952369809151, 0.18681743741035461, 0.11086036264896393, -0.10015439242124557, 0.16799961030483246, -0.2779213786125183 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
I think you may need to implement your own Trainer, from the `QuestionAnsweringTrainer` for example. This way you can have the flexibility of saving all the inputs/output used at each step
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
31
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ I think you may need to implement your own Trainer, from the `QuestionAnsweringTrainer` for example. This way you can have the flexibility of saving all the inputs/output used at each step
[ 0.11126944422721863, -0.39472314715385437, 0.024726975709199905, 0.489162802696228, 0.5235649347305298, 0.06859122961759567, 0.14182184636592865, 0.41700467467308044, 0.05095602944493294, 0.02776658535003662, -0.03716013580560684, 0.28895434737205505, -0.20108799636363983, 0.4082462191581726, -0.10744417458772659, -0.1509508341550827, 0.04248375445604324, 0.12745743989944458, -0.20730015635490417, 0.07874791324138641, -0.1535557359457016, 0.29875198006629944, 0.007998831570148468, 0.01579415798187256, -0.2861705720424652, -0.11635863035917282, 0.02064330317080021, 0.1426510214805603, -0.24934129416942596, -0.4953290522098541, 0.2064925879240036, -0.08176706731319427, 0.29063770174980164, 0.43817105889320374, -0.00011400887160561979, 0.12134377658367157, 0.21738553047180176, -0.23674054443836212, -0.43409019708633423, -0.3380364775657654, -0.12924276292324066, -0.29293563961982727, 0.42207086086273193, -0.10023579001426697, -0.15996061265468597, -0.09745526313781738, -0.07061102986335754, -0.05664677172899246, 0.9737884998321533, 0.31380927562713623, 0.2417191118001938, 0.3806007206439972, 0.047254737466573715, -0.13449940085411072, 0.046355344355106354, 0.33975744247436523, -0.06754032522439957, 0.489082932472229, 0.14018979668617249, 0.21628563106060028, 0.13724148273468018, 0.14057070016860962, 0.16286705434322357, -0.07565607130527496, 0.33696675300598145, -0.04439423605799675, -0.0372624471783638, -0.31550487875938416, -0.15804165601730347, 0.0994192361831665, 0.361246258020401, -0.12373463064432144, -0.5696436762809753, -0.5445701479911804, 0.24107834696769714, -0.28024783730506897, 0.29995185136795044, 0.151031032204628, -0.08310078084468842, -0.031034018844366074, -0.3698155879974365, -0.1634981334209442, -0.15965715050697327, 0.01372266560792923, 0.31074258685112, -0.1958814561367035, -0.31783297657966614, 0.03432781249284744, 0.18459296226501465, -0.13844753801822662, -0.08857574313879013, 0.15499339997768402, -0.1527046114206314, 0.27725064754486084, -0.23108695447444916, -0.24884513020515442, -0.16807663440704346, -0.3051984906196594, 0.03447819501161575, 0.19200174510478973, 0.06586023420095444, -0.18325093388557434, 0.030198954045772552, 0.087691530585289, 0.39013609290122986, 0.4024858772754669, -0.005809172987937927, 0.024538680911064148, 0.04369330778717995, 0.4756876826286316, -0.062094368040561676, -0.18594461679458618, -0.13213518261909485, -0.10208464413881302, -0.12124253809452057, -0.04024321585893631, 0.0006117243319749832, -0.20944252610206604, -0.14078620076179504, 0.12521305680274963, -0.29521024227142334, -0.17974229156970978, 0.04561220109462738, 0.28274303674697876, -0.3114416003227234, 0.16173994541168213, 0.14545747637748718, 0.34052419662475586, -0.15094530582427979, -0.08363182097673416, -0.08513761311769485, -0.03744722530245781, -0.20426815748214722, 0.10642417520284653, 0.21973757445812225, -0.09779627621173859, 0.39455467462539673, -0.0018307901918888092, 0.1681855022907257, -0.3759332001209259, 0.013162067160010338, -0.04113512858748436, -0.16078948974609375, 0.1360066682100296, 0.08803386986255646, -0.06448771059513092, 0.03877821937203407, -0.14425690472126007, -0.1159309595823288, -0.13775691390037537, -0.3558434545993805, -0.23055297136306763, 0.015352169051766396, 0.18444213271141052, -0.14296594262123108, 0.09898854792118073, -0.606357216835022, 0.11257295310497284, -0.034619055688381195, -0.024064194411039352, 0.061472088098526, -0.14736618101596832, -0.012183178216218948, -0.1890542060136795, 0.3378264904022217, 0.2633911371231079, -0.15072576701641083, -0.3629547357559204, 0.2698024809360504, -0.2522870898246765, -0.11430545896291733, 0.3930957019329071, -0.14043276011943817, 0.44532546401023865, -0.32216113805770874, 0.019806429743766785, 0.1262173056602478, -0.3180971145629883, -0.032982975244522095, 0.09967547655105591, -0.03932477533817291, 0.15762341022491455, 0.03746072202920914, -0.1705542504787445, 0.08759301155805588, 0.057227861136198044, 0.21886177361011505, 0.2307673841714859, 0.033389072865247726, 0.008397812023758888, -0.25274431705474854, -0.3746702969074249, -0.19562222063541412, 0.194452702999115, -0.1616235375404358, 0.16303002834320068, -0.04832174628973007, -0.026711128652095795, 0.1724981665611267, -0.24216344952583313, 0.054271332919597626, 0.4215505123138428, 0.0995001345872879, 0.1931760311126709, -0.11815177649259567, 0.024105697870254517, -0.6393855214118958, 0.1503075659275055, -0.13193774223327637, -0.026299618184566498, 0.040437862277030945, -0.1306869387626648, -0.25834837555885315, -0.10176882892847061, -0.10223256051540375, -0.14505451917648315, 0.09521079063415527, -0.030321337282657623, 0.3669006824493408, 0.2741231918334961, -0.2381114512681961, 0.2908388078212738, -0.1309530884027481, 0.3355656862258911, -0.5414319038391113, 0.15789014101028442, 0.02768375724554062, -0.13126832246780396, 0.25763431191444397, 0.23359206318855286, -0.00080137699842453, -0.1693960726261139, -0.12657582759857178, 0.219938725233078, -0.06535029411315918, 0.17180654406547546, -0.005535118281841278, -0.046950072050094604, 0.0682794600725174, 0.20184415578842163, -0.21609841287136078, 0.08743107318878174, 0.08182092010974884, -0.045402929186820984, -0.019806645810604095, 0.5255047082901001, -0.07636983692646027, 0.10008062422275543, 0.09277503192424774, -0.12077607959508896, 0.0670849084854126, 0.07841391861438751, -0.16859285533428192, -0.1624523103237152, 0.13757804036140442, 0.11688405275344849, 0.09891173243522644, -0.100655198097229, -0.4091240167617798, -0.40277063846588135, 0.5495019555091858, -0.0622510127723217, -0.10975661128759384, 0.44584745168685913, -0.005417712032794952, 0.16693246364593506, -0.10805661976337433, 0.21156756579875946, 0.46567052602767944, 0.03832509368658066, -0.23999539017677307, 0.19402696192264557, 0.09288284927606583, -0.16333699226379395, 0.05701148137450218, -0.0006798803806304932, 0.3799535632133484, 0.23342162370681763, 0.2277352660894394, -0.04598585143685341, -0.31353241205215454, 0.11053691804409027, -0.11930288374423981, 0.20237472653388977, -0.43812036514282227, 0.08142158389091492, -0.16073350608348846, -0.1157337874174118, -0.2392388880252838, 0.07532557100057602, -0.3798125386238098, -0.08188926428556442, 0.017892315983772278, 0.28121015429496765, -0.11037163436412811, -0.033495716750621796, 0.0980311781167984, 0.2951042652130127, -0.03251652047038078, 0.08207812160253525, -0.11112740635871887, 0.06460689008235931, -0.33081644773483276, -0.0052526481449604034, 0.19822977483272552, -0.37335848808288574, 0.28226470947265625, -0.5003089308738708, -0.08209192007780075, -0.02858552150428295, -0.10986524075269699, 0.16494759917259216, -0.16722609102725983, 0.46252524852752686, 0.16364875435829163, 0.3259754180908203, -0.29755550622940063, -0.1575573831796646, 0.4046214520931244, -0.03870696574449539, -0.44688138365745544, -0.17395462095737457, 0.11312098056077957, 0.2645464539527893, -0.20088690519332886, -0.4114428460597992, -0.1932486593723297, -0.31153082847595215, 0.7402424216270447, 0.0900958776473999, 0.031014682725071907, 0.13697639107704163, 0.2474391758441925, 0.1774308830499649, -0.32847195863723755, 0.2432313710451126, -0.23261961340904236, -0.7112435698509216, 0.25404196977615356, -0.25008463859558105, -0.3740941882133484, 0.036002811044454575, 0.0750102549791336, 0.2772979438304901, -0.3498445749282837, -0.6203476190567017, -0.4395754337310791, 0.12511588633060455, -0.05091802775859833, -0.25324442982673645, 0.19534140825271606, 0.12587152421474457, -0.1450640708208084, 0.021556055173277855, 0.0108562633395195, -0.25349798798561096, 0.1055736169219017, 0.08730233460664749, 0.24642029404640198, -0.155140221118927, 0.6245077252388, -0.1394655853509903, 0.6633352041244507, 0.29580697417259216, -0.09279365837574005, 0.29978328943252563, -0.07512565702199936, 0.2868358790874481, -0.24513325095176697, -0.1252555400133133, 0.07514083385467529, -0.23183715343475342, 0.03025917336344719, 0.12514907121658325, 0.20647284388542175, 0.170481875538826, -0.1645905077457428, 0.1588362157344818, -0.3865005075931549, -0.24673093855381012, 0.038553908467292786, -0.07638942450284958, 0.025696013122797012, -0.05042096972465515, 0.17800381779670715, 0.03284900262951851, 0.016673965379595757, 0.01233179122209549, 0.16446581482887268, 0.3313750922679901, 0.12618066370487213, -0.4280901849269867, -0.3899417221546173, -0.2463226318359375, 0.19623228907585144, 0.008540247566998005, 0.21867907047271729, -0.07272639125585556, -0.004388853907585144, 0.18029281497001648, -0.028680775314569473, 0.7758820056915283, 0.09994488209486008, -0.20064952969551086, 0.06707419455051422, -0.16121681034564972, -0.37144121527671814, -0.07795272767543793, -0.05468980222940445, -0.10790817439556122, 0.28901952505111694, 0.7763620018959045, -0.3411381244659424, -0.2285768985748291, -0.1260022073984146, 0.16736702620983124, -0.1525285392999649, -0.07396648079156876, -0.23911625146865845, -0.2785339951515198, -0.5131509304046631, 0.12929831445217133, 0.02219131402671337, 0.23754292726516724, -0.03163935989141464, 0.1341814249753952, 0.10158757120370865, 0.06514944136142731, -0.013442948460578918, 0.2214762419462204, 0.36172327399253845, 0.07240281999111176, 0.27551084756851196, 0.3984619677066803, 0.2633378803730011, 0.3449634909629822, 0.6400013566017151, 0.07928706705570221, -0.1610259711742401, -0.06855493038892746, 0.09430563449859619, 0.2982698380947113, 0.19926580786705017, 0.0910106897354126, 0.1228017807006836, 0.14419332146644592, 0.38767898082733154, -0.33014973998069763, 0.003992382902652025, 0.578758955001831, -0.05949769541621208, -0.12473312765359879, -0.23673835396766663, 0.32461363077163696, 0.01339830830693245, 0.20850081741809845, -0.04154742509126663, -0.0045492276549339294, -0.16107679903507233, 0.17715561389923096, 0.0006830766797065735, 0.8215144872665405, -0.03433775156736374, 0.3935205638408661, 0.5248085856437683, -0.4211195111274719, 0.55878084897995, -0.29129600524902344, 0.16451700031757355, -0.3350261449813843, 0.2143213152885437, 0.10588915646076202, -0.12227697670459747, -0.02280300110578537, 0.20714056491851807, -0.11390413343906403, 0.19177544116973877, -0.08148983865976334, 0.16944348812103271, -0.22741305828094482, 0.19357480108737946, -0.17427927255630493, -0.2513601779937744, -0.5306381583213806, 0.11120404303073883, -0.14208464324474335, 0.22117170691490173, -0.09902860969305038, -0.20786528289318085, 0.10917025804519653, -0.2384994626045227, -0.12678956985473633, 0.022202856838703156, -0.1241907998919487, -0.026968158781528473, 0.5230190753936768, -0.2016812413930893, 0.15279090404510498, 0.18374225497245789, 0.11386372148990631, 0.11817018687725067, -0.2375081181526184, 0.041715722531080246, -0.16015565395355225, 0.040589142590761185, -0.1914355456829071, 0.14002135396003723, 0.2753216624259949, -0.10211459547281265, -0.11847127974033356, 0.0017870813608169556, -0.20421691238880157, -0.09368684887886047, -0.19155628979206085, -0.02602430433034897, -0.33865606784820557, -0.42390766739845276, -0.1689252406358719, -0.13440106809139252, 0.1809634268283844, -0.1449207216501236, 0.1603071540594101, 0.15054374933242798, -0.14530153572559357, 0.13507422804832458, 0.3722403943538666, -0.21790780127048492, -0.18916815519332886, 0.5744349360466003, -0.09261257201433182, -0.17867693305015564, 0.7045935392379761, 0.30363619327545166, -0.039092712104320526, -0.20000511407852173, 0.1832992434501648, 0.20842289924621582, -0.37322649359703064, 0.24144765734672546, 0.1590244621038437, 0.08577771484851837, -0.17774122953414917, 0.1631452441215515, 0.2283048927783966, -0.3209557831287384, 0.39888620376586914, -0.3366423547267914, -0.5672006607055664, 0.31184858083724976, 0.08524777740240097, 0.08566747605800629, 0.13285812735557556, 0.12029732763767242, 0.02050943113863468, -0.04501694440841675, -0.27150705456733704, 0.1980014443397522, -0.292902410030365, 0.049614325165748596, 0.050784431397914886, -0.17500659823417664, 0.28621360659599304, -0.059687960892915726, 0.07036694139242172, 0.1425970196723938, -0.3150675594806671, -0.16145291924476624, -0.16218841075897217, 0.1081857681274414, 0.022024616599082947, 0.03284084051847458, 0.04132441431283951, -0.025375885888934135, -0.10461103916168213, -0.07410810887813568, -0.012371990829706192, 0.16512471437454224, 0.09395357966423035, 0.1248946487903595, -0.06616620719432831, 0.11902330815792084, 0.1412835717201233, -0.11648237705230713, 0.21108737587928772, 0.3467720150947571, 0.054766375571489334, -0.1247730553150177, -0.179578498005867, 0.062275007367134094, -0.36350980401039124, 0.14734789729118347, 0.11047373712062836, 0.12438341975212097, 0.20629152655601501, -0.39623403549194336, 0.1048114150762558, -0.04131537675857544, 0.29394492506980896, 0.35665473341941833, -0.35754626989364624, 0.14546215534210205, 0.3468075096607208, 0.17395082116127014, -0.07891564071178436, 0.003714277409017086, 0.13009114563465118, -0.01945243775844574, -0.2476772665977478, 0.2177487015724182, 0.0008698999881744385, 0.03482776880264282, -0.01029069721698761, 0.15259584784507751, 0.09511421620845795, 0.11449410766363144, 0.2788362503051758, 0.1627916544675827, -0.1987011730670929, -0.1202579140663147, 0.14846494793891907, -0.03833542391657829, 0.12282991409301758, 0.053341884166002274, -0.07129841297864914, 0.04577696695923805, -0.28221940994262695, 0.20489296317100525, -0.0853307917714119, -0.3849218189716339, -0.19301380217075348, 0.16593612730503082, 0.03273385018110275, 0.1366245448589325, -0.1693057417869568, 0.625078558921814, -0.17589029669761658, -0.3372448980808258, -0.28824174404144287, 0.17291538417339325, -0.27144181728363037, -0.1597287356853485, -0.1728617548942566, -0.1566120833158493, -0.12349838763475418, 0.16540470719337463, -0.17660196125507355, -0.17198169231414795, 0.04944922402501106, 0.04839746654033661, -0.17518369853496552, -0.28742337226867676, -0.10297579318284988, 0.154661163687706, 0.32660818099975586, -0.11946502327919006, 0.35796859860420227, 0.10049818456172943, -0.11038774251937866, 0.2040129452943802, 0.3315289616584778, 0.3669162094593048, 0.2588505148887634, -0.06606936454772949, 0.02765907347202301, -0.11574766039848328, 0.13949550688266754, 0.027169596403837204, 0.38894855976104736, 0.37229764461517334, -0.04626676067709923, 0.3105044364929199, 0.17238521575927734, -0.17166930437088013, 0.18981164693832397, -0.22609667479991913, 0.24182124435901642, -0.3533914089202881, 0.28956636786460876, -0.13746242225170135, 0.06947480887174606, -0.20163483917713165, -0.07962790876626968, -0.5977997779846191, 0.1811307966709137, 0.12180672585964203, 0.2856587767601013, 0.14044666290283203, -0.16956698894500732, 0.07703259587287903, -0.11260472238063812, 0.5716263651847839, 0.457590252161026, -0.1661176085472107, -0.23722398281097412, -0.04759030044078827, -0.3407190442085266, -0.025423772633075714, -0.05169400945305824, 0.2477785348892212, 0.012769714929163456, 0.013174625113606453, -0.028893932700157166, 0.07013356685638428, 0.1952148675918579, -0.09385856240987778, -0.19444556534290314, -0.028485238552093506, -0.36366215348243713, -0.28222471475601196, -0.24712546169757843, 0.20384487509727478, 0.25045347213745117, -0.00878024473786354, 0.13195186853408813, -0.19431930780410767, -0.01893519051373005, 0.0741247907280922, 0.2399546205997467, -0.3028301000595093, -0.022747620940208435, 0.4017784595489502, 0.05421622097492218, 0.1697167456150055, -0.014727719128131866, -0.36201390624046326, -0.12019503116607666, -0.3835538327693939, -0.06151771917939186, 0.2616628408432007, -0.1411062777042389, 0.5869697332382202, -0.3236882984638214, 0.06611835211515427, -0.48103538155555725, -0.05134197324514389, -0.018344979733228683, -0.23212957382202148, -0.18497249484062195, 0.06748207658529282, 0.07855900377035141, 0.10432600229978561, 0.3125530481338501, 0.46797114610671997, -0.15929599106311798, 0.17394354939460754, -0.4369014501571655, -0.17311304807662964, 0.6441700458526611, -0.34948965907096863, -0.0827798843383789, 0.2693638801574707, 0.11032002419233322, 0.132522851228714, -0.30776605010032654, -0.7282719612121582, 0.2447895109653473, 0.3348853886127472, -0.1408524215221405, -0.13102643191814423, 0.24660687148571014, -0.23318874835968018, -0.2066580206155777, 0.04873228445649147, 0.3509524464607239, 0.0446285717189312, -0.12662775814533234, 0.24359682202339172, -0.17811068892478943 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
> does there have any function to be overwritten to do this? ok, I overwrote the compute_loss, thank you.
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
19
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ > does there have any function to be overwritten to do this? ok, I overwrote the compute_loss, thank you.
[ 0.08151096105575562, -0.38511282205581665, -0.0033683013170957565, 0.5281998515129089, 0.47198569774627686, 0.06858574599027634, 0.05343247577548027, 0.324977308511734, 0.10425098240375519, -0.09135207533836365, -0.054996296763420105, 0.21463027596473694, -0.0638781264424324, 0.33356186747550964, -0.1426369845867157, -0.16618937253952026, 0.1353708803653717, 0.08527360111474991, -0.1390957236289978, 0.03279346227645874, -0.2544142007827759, 0.344538152217865, -0.08867788314819336, 0.013905279338359833, -0.1697126030921936, -0.1576097160577774, 0.05795343965291977, 0.1895865499973297, -0.3181055188179016, -0.5252270102500916, 0.2614777088165283, -0.12530095875263214, 0.27513641119003296, 0.40351399779319763, -0.00011899093078682199, 0.10296979546546936, 0.27646851539611816, -0.25636789202690125, -0.3061409592628479, -0.25642621517181396, -0.16596931219100952, -0.31979215145111084, 0.3621700704097748, -0.15388351678848267, -0.004601329565048218, -0.23749499022960663, -0.09912616014480591, -0.1814703792333603, 0.9331386685371399, 0.3268532454967499, 0.1891918182373047, 0.3957659900188446, 0.11442755162715912, -0.10148903727531433, 0.10672197490930557, 0.30981525778770447, -0.04282398894429207, 0.6010359525680542, 0.04183993861079216, 0.15080007910728455, 0.1916322112083435, 0.14881327748298645, 0.13265617191791534, -0.015812601894140244, 0.39110031723976135, -0.025043819099664688, -0.07123590260744095, -0.26510608196258545, -0.29393330216407776, 0.11052452772855759, 0.3862318992614746, -0.19405534863471985, -0.6282971501350403, -0.45100486278533936, 0.18567436933517456, -0.4028351604938507, 0.3375017046928406, 0.16783374547958374, -0.09358851611614227, -0.06236908212304115, -0.3490317761898041, -0.19165344536304474, -0.11636337637901306, 0.028055794537067413, 0.378063440322876, -0.13269220292568207, -0.2840748429298401, 0.04586933180689812, 0.21180328726768494, -0.12459352612495422, -0.17907078564167023, 0.19550161063671112, -0.23616987466812134, 0.23196998238563538, -0.24743904173374176, -0.1852717101573944, -0.24076098203659058, -0.27533912658691406, 0.04215989261865616, 0.1925024688243866, 0.09402713924646378, -0.1818365752696991, -0.08230926096439362, 0.1585896611213684, 0.3452525734901428, 0.40165403485298157, -0.006066992878913879, -0.06677843630313873, 0.09536810219287872, 0.5004611611366272, -0.004594486206769943, -0.22793951630592346, -0.011418434791266918, -0.17289647459983826, -0.1625816822052002, -0.052358478307724, 0.04479663819074631, -0.21039383113384247, -0.22146035730838776, 0.0671895295381546, -0.26211559772491455, -0.24393314123153687, -0.007963082753121853, 0.23833155632019043, -0.26873186230659485, 0.13087621331214905, 0.2595639228820801, 0.3389330506324768, -0.2051236629486084, -0.09852784872055054, -0.06961987912654877, 0.005666662007570267, -0.1862446516752243, 0.12443903833627701, 0.19701965153217316, 0.009549403563141823, 0.3680535554885864, -0.010178592056035995, 0.13193371891975403, -0.33802372217178345, 0.002669673413038254, -0.03902006149291992, -0.18697723746299744, 0.18933629989624023, -0.07538409531116486, -0.0686885267496109, 0.11034545302391052, -0.15766683220863342, -0.11845539510250092, -0.1389157772064209, -0.37166693806648254, -0.2018669843673706, -0.005235167220234871, 0.14126473665237427, -0.13600298762321472, 0.11499211937189102, -0.6647445559501648, 0.09022257477045059, -0.04847555607557297, -0.15502318739891052, 0.07441984862089157, -0.14148272573947906, -0.09346558153629303, -0.1760891079902649, 0.34882742166519165, 0.3373158574104309, -0.24667826294898987, -0.3991613984107971, 0.23356026411056519, -0.2829957902431488, 0.020380787551403046, 0.4823092222213745, -0.0682213231921196, 0.3412543535232544, -0.3668679893016815, -0.052331771701574326, 0.15032276511192322, -0.28945809602737427, -0.10693490505218506, 0.05228574573993683, 0.011338211596012115, 0.12072675675153732, 0.07266196608543396, -0.19808267056941986, -0.06397984176874161, 0.07951232045888901, 0.26768457889556885, 0.10095693916082382, 0.06862995773553848, -0.044502049684524536, -0.3383385241031647, -0.3744315505027771, -0.09766171872615814, 0.163570836186409, -0.2251800149679184, 0.2285771369934082, 0.022390976548194885, -0.06999116390943527, 0.20822128653526306, -0.15026095509529114, 0.012879444286227226, 0.42013806104660034, 0.14541877806186676, 0.04032726585865021, -0.0470445342361927, 0.047881998121738434, -0.7126306891441345, 0.12057477980852127, -0.20502305030822754, 0.022624507546424866, 0.041631851345300674, -0.10894271731376648, -0.26747652888298035, -0.09552318602800369, 0.0063596926629543304, -0.051318127661943436, 0.04163563251495361, -0.03300327807664871, 0.3359568119049072, 0.3123079240322113, -0.2454070895910263, 0.21390220522880554, -0.17002494633197784, 0.35260117053985596, -0.5210605263710022, 0.17581221461296082, 0.05694357305765152, -0.15619805455207825, 0.17901036143302917, 0.14538884162902832, 0.061323296278715134, -0.14359404146671295, -0.18499764800071716, 0.22566011548042297, -0.06238717958331108, 0.28011971712112427, 0.021844040602445602, 0.0008465051651000977, 0.1380520462989807, 0.14004194736480713, -0.17094625532627106, 0.11888046562671661, 0.09212663024663925, -0.0821865051984787, -0.03764646500349045, 0.4579935669898987, -0.17633254826068878, 0.08312897384166718, 0.09011611342430115, -0.1408580243587494, 0.14413927495479584, 0.0919499546289444, -0.1875924915075302, -0.14227260649204254, 0.17413754761219025, 0.12075646221637726, 0.04676156863570213, -0.05304449051618576, -0.34675946831703186, -0.4706704020500183, 0.5727599859237671, -0.05659673735499382, -0.08130396157503128, 0.42235398292541504, -0.03275803476572037, 0.07822752743959427, -0.03162701427936554, 0.21912412345409393, 0.5283240675926208, -0.02273261547088623, -0.25870221853256226, 0.22757567465305328, 0.1293727308511734, -0.18221783638000488, 0.048113949596881866, 0.04086151719093323, 0.4017906188964844, 0.24058881402015686, 0.2302875816822052, -0.04443689063191414, -0.3656557500362396, 0.09252750873565674, -0.06608724594116211, 0.2045455276966095, -0.5307133793830872, 0.08378645777702332, -0.12270151078701019, -0.13038229942321777, -0.23594717681407928, 0.11485365778207779, -0.40978240966796875, -0.16183152794837952, -0.038716159760951996, 0.29473939538002014, -0.1924372911453247, -0.01866510882973671, 0.10065868496894836, 0.3383845388889313, -0.026352960616350174, 0.09370442479848862, -0.2746061086654663, 0.05532721057534218, -0.3184814453125, -0.043807752430438995, 0.1332923173904419, -0.3197985589504242, 0.17379844188690186, -0.5357195734977722, -0.15408955514431, 0.014007259160280228, -0.11906594038009644, 0.12486659735441208, -0.056964434683322906, 0.526648998260498, 0.16956192255020142, 0.31687986850738525, -0.34871071577072144, -0.15269407629966736, 0.45118677616119385, -0.027228906750679016, -0.3706933259963989, -0.16294896602630615, 0.06419923156499863, 0.33507803082466125, -0.19336692988872528, -0.44634339213371277, -0.2355513721704483, -0.34375476837158203, 0.7967390418052673, 0.11763611435890198, 0.024135511368513107, 0.1712930053472519, 0.1302339881658554, 0.08109191805124283, -0.27538132667541504, 0.2693116366863251, -0.24723516404628754, -0.7731397747993469, 0.22177350521087646, -0.19758257269859314, -0.31532275676727295, -0.0018345899879932404, 0.11214764416217804, 0.27439913153648376, -0.2884960174560547, -0.6243680119514465, -0.3899911046028137, 0.12171060591936111, -0.09824776649475098, -0.2565957307815552, 0.15593889355659485, 0.07209273427724838, -0.09865634143352509, 0.030449816957116127, -0.018085340037941933, -0.26523810625076294, 0.11169558763504028, 0.06862372905015945, 0.2659154534339905, -0.015934929251670837, 0.6574978828430176, -0.16994492709636688, 0.6400873064994812, 0.3261755108833313, -0.0681580901145935, 0.45427262783050537, -0.06627177447080612, 0.3172608017921448, -0.12670961022377014, -0.10926592350006104, 0.03927901014685631, -0.20172587037086487, 0.08725710958242416, -0.025655820965766907, 0.11738275736570358, 0.1358109712600708, -0.17299894988536835, 0.10256338119506836, -0.4334987699985504, -0.18410862982273102, -0.06597021967172623, -0.012137241661548615, -0.008029267191886902, 0.023776251822710037, 0.15215662121772766, 0.021713461726903915, 0.0004193149507045746, 0.046854693442583084, 0.21967890858650208, 0.39548563957214355, 0.08348315954208374, -0.46340808272361755, -0.31101447343826294, -0.32081082463264465, 0.21845628321170807, -0.026748621836304665, 0.33746933937072754, -0.011442650109529495, 0.03321293741464615, 0.11016645282506943, 0.018287234008312225, 0.7727496027946472, 0.05334760993719101, -0.1842336803674698, 0.19660495221614838, -0.05268567427992821, -0.4224463999271393, -0.06284298747777939, -0.0746392235159874, -0.07197605073451996, 0.4105486273765564, 0.7462789416313171, -0.3081141710281372, -0.20277990400791168, -0.11375623941421509, 0.15269118547439575, -0.12052981555461884, -0.07004644721746445, -0.3031402826309204, -0.25220340490341187, -0.47388264536857605, 0.10565881431102753, -0.016470041126012802, 0.2358352243900299, -0.030598727986216545, 0.13317283987998962, 0.10689940303564072, 0.08043535053730011, -0.027012646198272705, 0.150833398103714, 0.4341315031051636, 0.008753436617553234, 0.26557883620262146, 0.351733535528183, 0.216141477227211, 0.3843696117401123, 0.6933525204658508, 0.06201491504907608, -0.2580079734325409, -0.10211462527513504, 0.2100282907485962, 0.24875041842460632, 0.12039564549922943, 0.08396793901920319, 0.06908086687326431, 0.21239344775676727, 0.39617669582366943, -0.4539833962917328, -0.05954870209097862, 0.5700049996376038, -0.04903903976082802, -0.11375584453344345, -0.1749337911605835, 0.3970421552658081, 0.03664411976933479, 0.10764633119106293, 0.016290143132209778, 0.03780351206660271, -0.1846015751361847, 0.15610820055007935, 0.029702164232730865, 0.8459629416465759, -0.0365312322974205, 0.30079856514930725, 0.447221040725708, -0.33129578828811646, 0.6608045697212219, -0.328138530254364, 0.1910330057144165, -0.2878988981246948, 0.03230797499418259, 0.09257197380065918, -0.1926680952310562, 0.015342269092798233, 0.19558098912239075, -0.04509563371539116, 0.30496516823768616, -0.04617421329021454, 0.11068283021450043, -0.1904214322566986, 0.1738717257976532, -0.17928360402584076, -0.21916446089744568, -0.5036194920539856, 0.04814564436674118, -0.07779701054096222, 0.3003491163253784, -0.13002853095531464, -0.12722721695899963, 0.19150905311107635, -0.23797285556793213, -0.2027589976787567, 0.030066002160310745, -0.08530296385288239, 0.02260378561913967, 0.44708532094955444, -0.18152570724487305, 0.17092640697956085, 0.193552628159523, 0.1599685251712799, 0.12527041137218475, -0.257627010345459, 0.09199289977550507, -0.18130159378051758, 0.01904752478003502, -0.14943188428878784, 0.2030850648880005, 0.23375964164733887, -0.07527418434619904, -0.23295319080352783, -0.018668867647647858, -0.21004563570022583, -0.12997382879257202, -0.22404344379901886, -0.030923835933208466, -0.4357792139053345, -0.38904422521591187, -0.13827158510684967, -0.23337063193321228, 0.1505100578069687, -0.1727723628282547, 0.11368817090988159, 0.2021445631980896, -0.11223194748163223, 0.1752960979938507, 0.3410339951515198, -0.27187156677246094, -0.19412153959274292, 0.6130882501602173, -0.06668565422296524, -0.15124854445457458, 0.7113171815872192, 0.3033590018749237, -0.042369015514850616, -0.17434382438659668, 0.10815256088972092, 0.23419289290905, -0.3858116865158081, 0.28532856702804565, 0.1635700762271881, 0.1634940356016159, -0.1965905725955963, 0.2521210312843323, 0.22013117372989655, -0.18466386198997498, 0.3970373868942261, -0.46022936701774597, -0.5097141265869141, 0.44638484716415405, 0.0845472514629364, 0.0709240734577179, 0.24730825424194336, -0.043370217084884644, -0.04371321573853493, -0.07598909735679626, -0.22762525081634521, 0.24744722247123718, -0.27239668369293213, -0.05835551768541336, 0.06961272656917572, -0.0040514469146728516, 0.33716410398483276, -0.06630638986825943, 0.029158959165215492, 0.16595694422721863, -0.2252064347267151, -0.10263703763484955, -0.1141892522573471, 0.14901426434516907, 0.015798870474100113, -0.09494069963693619, 0.03052946925163269, -0.03669178485870361, -0.04930863901972771, -0.0795774832367897, -0.041541844606399536, 0.10844173282384872, 0.12232675403356552, 0.20887917280197144, -0.01923758164048195, 0.13748100399971008, 0.16247151792049408, -0.018553726375102997, 0.23245736956596375, 0.4320111870765686, -0.011751094833016396, -0.0371905192732811, -0.08987139165401459, 0.050672128796577454, -0.33938512206077576, 0.04714315012097359, 0.0060302093625068665, 0.1280440390110016, 0.26229313015937805, -0.36442023515701294, 0.14033962786197662, -0.053319018334150314, 0.33576586842536926, 0.41397130489349365, -0.29652708768844604, 0.1962922215461731, 0.27126267552375793, 0.13681815564632416, -0.1289539784193039, -0.06298045068979263, 0.2094247043132782, 0.06859598308801651, -0.2580850422382355, 0.15005427598953247, 0.06958882510662079, 0.06390714645385742, 0.007810585200786591, 0.10367254167795181, 0.2170007824897766, 0.08571083843708038, 0.2869373559951782, -0.008743863552808762, -0.16257500648498535, -0.10778750479221344, 0.07907392829656601, -0.024163953959941864, 0.20876282453536987, 0.06230359897017479, -0.06822381168603897, 0.02242816798388958, -0.25966355204582214, 0.2893355190753937, -0.21493253111839294, -0.46028241515159607, -0.1117469072341919, 0.2711256742477417, 0.03934905678033829, 0.2057517170906067, -0.1427604705095291, 0.47455450892448425, -0.19323348999023438, -0.2643636465072632, -0.27738335728645325, 0.19683246314525604, -0.20653778314590454, -0.2208608239889145, -0.23556503653526306, -0.2278684377670288, -0.0058220550417900085, 0.20281952619552612, -0.20929455757141113, -0.09264291822910309, 0.08640075474977493, 0.02729751542210579, -0.11655357480049133, -0.2943204641342163, -0.09620381146669388, 0.18955668807029724, 0.35700154304504395, -0.17443618178367615, 0.3444284498691559, 0.24148936569690704, -0.07346579432487488, 0.18808189034461975, 0.4095213711261749, 0.43488258123397827, 0.2738959789276123, -0.004607535898685455, 0.07079996168613434, -0.09680648148059845, 0.12227639555931091, 0.01400146633386612, 0.45163464546203613, 0.4236485958099365, -0.032965127378702164, 0.21701109409332275, 0.15483590960502625, -0.1469515860080719, 0.12387757003307343, -0.233224019408226, 0.2634745240211487, -0.40342578291893005, 0.25032225251197815, -0.26353487372398376, 0.03184475749731064, -0.23831436038017273, -0.08134173601865768, -0.4715982973575592, 0.15384534001350403, 0.07172666490077972, 0.26766592264175415, 0.17115753889083862, -0.09856335073709488, 0.05283139646053314, -0.09900477528572083, 0.5613048672676086, 0.41296064853668213, -0.05306653678417206, -0.27332451939582825, -0.08073669672012329, -0.3423181176185608, 0.06435609608888626, -0.001627117395401001, 0.27619314193725586, 0.07626751065254211, -0.025174546986818314, -0.03538321703672409, 0.0034402869641780853, 0.23861321806907654, -0.011085085570812225, -0.15280871093273163, -0.0407077819108963, -0.3904583156108856, -0.2720184326171875, -0.204686239361763, 0.09862063080072403, 0.21735575795173645, -0.06246774643659592, 0.18405874073505402, -0.18564283847808838, -0.09959913045167923, -0.010963793843984604, 0.2751014828681946, -0.2542508840560913, 0.03204026073217392, 0.4798107445240021, 0.2068728506565094, 0.24779112637043, -0.06739354133605957, -0.47882965207099915, -0.10183419287204742, -0.49499934911727905, -0.02873958647251129, 0.3469108045101166, -0.25300028920173645, 0.5655479431152344, -0.32419684529304504, 0.04832175374031067, -0.483329176902771, 0.03893456608057022, -0.12669189274311066, -0.2461968958377838, -0.26633185148239136, 0.032623291015625, 0.09112370759248734, 0.0036100714933127165, 0.3389851450920105, 0.3571833670139313, -0.09797613322734833, 0.2286847084760666, -0.3563879728317261, -0.12254460901021957, 0.65827476978302, -0.3078451454639435, 0.03853585198521614, 0.24831680953502655, 0.07097720354795456, 0.1259835958480835, -0.2791225016117096, -0.7433037757873535, 0.23900696635246277, 0.3728470802307129, -0.08123628050088882, -0.11134570837020874, 0.1910901963710785, -0.2006942629814148, -0.18956506252288818, 0.017262287437915802, 0.3858799934387207, 0.02699156291782856, -0.20575381815433502, 0.2680245637893677, -0.15293101966381073 ]
https://github.com/huggingface/datasets/issues/3333
load JSON files, get the errors
Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_
576
load JSON files, get the errors Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command `!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/` change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html `dataset = datasets.load_dataset('json', data_files=args.dataset)` Errors: `Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264... ` _Originally posted by @yanllearnn in https://github.com/huggingface/datasets/issues/730#issuecomment-981095050_ Hi, I add one field **example_id**, but I can't see it in the **comput_loss** function, how can I do this? below is the information of inputs ``` *********************** inputs: {'attention_mask': tensor([[1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], ..., [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0], [1, 1, 1, ..., 0, 0, 0]], device='cuda:0'), 'end_positions': tensor([ 25, 97, 93, 44, 25, 112, 109, 134], device='cuda:0'), 'input_ids': tensor([[ 101, 2054, 2390, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2106, ..., 0, 0, 0], ..., [ 101, 2339, 2001, ..., 0, 0, 0], [ 101, 2054, 2515, ..., 0, 0, 0], [ 101, 2054, 2003, ..., 0, 0, 0]], device='cuda:0'), 'start_positions': tensor([ 20, 90, 89, 41, 25, 96, 106, 132], device='cuda:0'), 'token_type_ids': tensor([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], device='cuda:0')} ``` ``` # This function preprocesses a question answering dataset, tokenizing the question and context text # and finding the right offsets for the answer spans in the tokenized context (to use as labels). # Adapted from https://github.com/huggingface/transformers/blob/master/examples/pytorch/question-answering/run_qa.py def prepare_train_dataset_qa(examples, tokenizer, max_seq_length=None): questions = [q.lstrip() for q in examples["question"]] max_seq_length = tokenizer.model_max_length # tokenize both questions and the corresponding context # if the context length is longer than max_length, we split it to several # chunks of max_length tokenized_examples = tokenizer( questions, examples["context"], truncation="only_second", max_length=max_seq_length, stride=min(max_seq_length // 2, 128), return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length" ) # Since one example might give us several features if it has a long context, # we need a map from a feature to its corresponding example. sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") # The offset mappings will give us a map from token to character position # in the original context. This will help us compute the start_positions # and end_positions to get the final answer string. offset_mapping = tokenized_examples.pop("offset_mapping") tokenized_examples["start_positions"] = [] tokenized_examples["end_positions"] = [] tokenized_examples["example_id"] = [] for i, offsets in enumerate(offset_mapping): input_ids = tokenized_examples["input_ids"][i] # We will label features not containing the answer the index of the CLS token. cls_index = input_ids.index(tokenizer.cls_token_id) sequence_ids = tokenized_examples.sequence_ids(i) # from the feature idx to sample idx sample_index = sample_mapping[i] # get the answer for a feature answers = examples["answers"][sample_index] tokenized_examples["example_id"].append(examples["id"][sample_index]) if len(answers["answer_start"]) == 0: tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Start/end character index of the answer in the text. start_char = answers["answer_start"][0] end_char = start_char + len(answers["text"][0]) # Start token index of the current span in the text. token_start_index = 0 while sequence_ids[token_start_index] != 1: token_start_index += 1 # End token index of the current span in the text. token_end_index = len(input_ids) - 1 while sequence_ids[token_end_index] != 1: token_end_index -= 1 # Detect if the answer is out of the span (in which case this feature is labeled with the CLS index). if not (offsets[token_start_index][0] <= start_char and offsets[token_end_index][1] >= end_char): tokenized_examples["start_positions"].append(cls_index) tokenized_examples["end_positions"].append(cls_index) else: # Otherwise move the token_start_index and token_end_index to the two ends of the answer. # Note: we could go after the last offset if the answer is the last word (edge case). while token_start_index < len(offsets) and \ offsets[token_start_index][0] <= start_char: token_start_index += 1 tokenized_examples["start_positions"].append( token_start_index - 1) while offsets[token_end_index][1] >= end_char: token_end_index -= 1 tokenized_examples["end_positions"].append(token_end_index + 1) return tokenized_examples ```
[ 0.07343947887420654, -0.42561987042427063, -0.025549594312906265, 0.5651885271072388, 0.47440117597579956, 0.20063984394073486, 0.1329938769340515, 0.3065037727355957, 0.22051630914211273, 0.0062530189752578735, 0.028649520128965378, 0.26697227358818054, 0.038959164172410965, 0.1274505853652954, -0.008230931125581264, -0.11100822687149048, 0.09258657693862915, 0.14362159371376038, -0.035572342574596405, 0.04442580044269562, -0.22262801229953766, 0.35153910517692566, -0.09051317721605301, 0.09537189453840256, -0.15381166338920593, -0.18798305094242096, 0.19286149740219116, 0.09734749794006348, -0.2844778895378113, -0.45317554473876953, 0.1854984313249588, -0.12042081356048584, 0.18690411746501923, 0.3397420048713684, -0.00011876057396875694, 0.1675628274679184, 0.27675366401672363, -0.2527775466442108, -0.33823898434638977, -0.410211443901062, -0.18423974514007568, -0.3959104120731354, 0.3921869695186615, -0.23210546374320984, -0.016464384272694588, -0.09147029370069504, -0.0949382334947586, -0.2592940032482147, 0.7659285664558411, 0.32045304775238037, 0.16271157562732697, 0.386019766330719, 0.07895070314407349, -0.0791749656200409, 0.13218042254447937, 0.37579137086868286, -0.05508860945701599, 0.46116310358047485, -0.034311048686504364, 0.18331512808799744, 0.2392318844795227, 0.23694053292274475, 0.24092257022857666, -0.05094349756836891, 0.3252279758453369, 0.11666940897703171, -0.06429106742143631, -0.23805168271064758, -0.2407401204109192, -0.07349327951669693, 0.23169225454330444, -0.24152809381484985, -0.5960059762001038, -0.43478038907051086, 0.2232941836118698, -0.6285650730133057, 0.24184063076972961, 0.17416813969612122, -0.12128041684627533, 0.006675023585557938, -0.2380978912115097, -0.017532482743263245, -0.15964531898498535, 0.10400521755218506, 0.3331531882286072, -0.15713369846343994, -0.25289270281791687, 0.04717405140399933, 0.19461406767368317, -0.07951000332832336, -0.2403198629617691, 0.21295729279518127, -0.07409806549549103, 0.22420984506607056, -0.2987622916698456, -0.1769324243068695, -0.1814172863960266, -0.5325201153755188, -0.01886315457522869, 0.07684606313705444, 0.1770877242088318, -0.13474547863006592, -0.07934737205505371, 0.25050586462020874, 0.18198713660240173, 0.45829254388809204, -0.038606204092502594, -0.0935451090335846, 0.11492756009101868, 0.49405980110168457, 0.04998907074332237, -0.2923780381679535, -0.03289523720741272, -0.06656762957572937, -0.1765022575855255, 0.0034104082733392715, 0.03440296649932861, -0.09376362711191177, -0.3874076008796692, 0.12122928351163864, -0.23180562257766724, -0.2967303991317749, 0.12359293550252914, 0.3598922789096832, -0.19074641168117523, 0.09167729318141937, 0.2797181010246277, 0.2974722385406494, -0.10283901542425156, -0.07075180113315582, -0.11481771618127823, 0.08896273374557495, -0.1894780695438385, 0.13726218044757843, 0.2890872061252594, 0.02916901186108589, 0.39078134298324585, -0.05971673130989075, 0.14949211478233337, -0.28268709778785706, 0.041658319532871246, -0.009700791910290718, -0.037755392491817474, 0.28851428627967834, -0.058116041123867035, 0.0021448563784360886, 0.23930689692497253, -0.28379178047180176, -0.13670724630355835, -0.18453487753868103, -0.36273521184921265, -0.14179424941539764, -0.08317236602306366, 0.09257366508245468, -0.0685526430606842, 0.12401868402957916, -0.5399172902107239, 0.1910126954317093, -0.11057958751916885, -0.12429006397724152, 0.12322770804166794, -0.005698308348655701, -0.15766191482543945, -0.16179010272026062, 0.42351627349853516, 0.32457467913627625, -0.28050798177719116, -0.4246627688407898, 0.18805718421936035, -0.20049117505550385, 0.03360774368047714, 0.3087860941886902, -0.06389153003692627, 0.21784836053848267, -0.311428964138031, 0.06047046184539795, 0.3733687102794647, -0.3340499699115753, -0.14624841511249542, 0.004043686203658581, -0.11074347794055939, 0.07551626116037369, 0.21361930668354034, -0.1694551259279251, -0.12566664814949036, 0.2007129192352295, 0.40601950883865356, -0.05368119478225708, 0.07348696142435074, -0.09226846694946289, -0.21773236989974976, -0.3475724458694458, -0.0645836815237999, 0.1500948667526245, -0.31667008996009827, 0.247545063495636, 0.07072706520557404, -0.052721817046403885, 0.23704847693443298, -0.1561664640903473, 0.02380584552884102, 0.32911211252212524, 0.21088562905788422, 0.029529601335525513, -0.13359405100345612, 0.01202121376991272, -0.6663125157356262, 0.1488204002380371, -0.05594896152615547, -0.000993732362985611, -0.099807009100914, -0.15147092938423157, -0.21872055530548096, -0.08012434840202332, 0.0380752757191658, -0.024443432688713074, 0.04144798219203949, 0.015784233808517456, 0.2411673367023468, 0.2353655844926834, -0.2886301577091217, 0.20783855020999908, -0.10418353974819183, 0.2989167869091034, -0.5492714643478394, 0.12782254815101624, 0.024835430085659027, -0.158247709274292, 0.08404475450515747, 0.23748627305030823, 0.12581108510494232, -0.14944025874137878, -0.11798550933599472, 0.15668897330760956, 0.025264890864491463, 0.23220986127853394, -0.0003110431134700775, 0.034641534090042114, 0.13269095122814178, 0.2516831159591675, -0.233373761177063, 0.0421811118721962, 0.04678391292691231, 0.04030836373567581, -0.07389181107282639, 0.48460298776626587, -0.19134703278541565, 0.06414669752120972, 0.09356985986232758, -0.20571443438529968, 0.23498743772506714, 0.17146489024162292, -0.14243993163108826, -0.25870397686958313, 0.11698037385940552, 0.20500126481056213, 0.06898282468318939, -0.12994126975536346, -0.47396931052207947, -0.32844558358192444, 0.570359468460083, -0.012434929609298706, -0.14883306622505188, 0.3756955862045288, -0.07439439743757248, 0.180179625749588, 0.03275009244680405, 0.15732455253601074, 0.4894225001335144, 0.07619433850049973, -0.24935734272003174, 0.1498814970254898, 0.0920979380607605, -0.16656403243541718, 0.08795735239982605, 0.06946809589862823, 0.39579907059669495, 0.23939362168312073, 0.22042927145957947, -0.0630614385008812, -0.35782390832901, 0.04617694392800331, -0.10080050677061081, 0.22887162864208221, -0.5406153202056885, 0.10278771072626114, -0.16491949558258057, -0.18953293561935425, -0.2369484305381775, 0.05378909036517143, -0.1459278166294098, -0.15585966408252716, -0.05408614128828049, 0.2857050597667694, -0.14434891939163208, -0.0767287090420723, 0.07973110675811768, 0.408866286277771, -0.09565626829862595, 0.08718548715114594, -0.4628477096557617, 0.033821482211351395, -0.177412748336792, -0.03593835607171059, 0.09413197636604309, -0.28262344002723694, 0.20236308872699738, -0.4245280921459198, -0.051048990339040756, 0.08389374613761902, -0.25630584359169006, 0.11454249918460846, -0.15135493874549866, 0.40812742710113525, 0.07216151803731918, 0.36616700887680054, -0.38203704357147217, -0.3003064692020416, 0.4887297749519348, 0.028156781569123268, -0.4268239736557007, -0.10261920839548111, 0.024901505559682846, 0.2586899399757385, -0.3081689774990082, -0.453631192445755, -0.2857467234134674, -0.35022833943367004, 0.853935718536377, 0.1615092009305954, 0.07808804512023926, 0.17366495728492737, 0.11459571868181229, 0.18281646072864532, -0.0969463586807251, 0.3941984474658966, -0.24492987990379333, -0.8151060342788696, 0.25958073139190674, -0.31402456760406494, -0.32344895601272583, 0.07671000063419342, 0.0374799445271492, 0.3545615077018738, -0.3839530348777771, -0.5797401666641235, -0.3934493362903595, 0.16878093779087067, -0.09659485518932343, -0.20218734443187714, 0.21281659603118896, 0.2249816358089447, -0.08144748955965042, 0.002433737739920616, -0.042705338448286057, -0.46109214425086975, 0.050139475613832474, 0.1897546350955963, 0.22392870485782623, -0.1387491226196289, 0.6910787224769592, -0.17128315567970276, 0.7668346762657166, 0.3957063555717468, -0.15535566210746765, 0.4311772584915161, -0.20502713322639465, 0.23395074903964996, -0.07592269033193588, -0.17699605226516724, -0.06805270165205002, -0.1702115535736084, 0.05975814163684845, -0.025054797530174255, -0.07178324460983276, 0.10772866010665894, -0.1933387964963913, 0.1895897537469864, -0.6318454146385193, -0.16305187344551086, -0.08501230925321579, 0.03687217831611633, -0.1317184865474701, -0.04207541048526764, 0.05721020698547363, -0.07297283411026001, 0.023357439786195755, 0.09373760223388672, 0.23340944945812225, 0.32314127683639526, 0.02355870045721531, -0.3343212902545929, -0.5201780200004578, -0.38170966506004333, 0.21063590049743652, -0.08082196861505508, 0.28396469354629517, -0.042188383638858795, -0.0672493502497673, 0.0904751867055893, 0.04083356261253357, 0.8095771074295044, 0.02779756672680378, -0.2705005407333374, 0.25634878873825073, -0.22276699542999268, -0.3629087507724762, -0.030466735363006592, -0.10471142828464508, -0.2299215942621231, 0.40825188159942627, 0.7595109343528748, -0.36182451248168945, -0.15993916988372803, -0.038478970527648926, 0.042584389448165894, -0.11959341168403625, -0.0348261222243309, -0.3746333420276642, -0.17836597561836243, -0.4848810136318207, 0.13062532246112823, -0.07011452317237854, 0.3130147159099579, 0.13984550535678864, 0.13490615785121918, 0.1346082091331482, 0.00621458888053894, 0.0826331228017807, 0.2740849554538727, 0.34253373742103577, 0.2502039968967438, 0.20171767473220825, 0.41457217931747437, 0.3933868706226349, 0.26928046345710754, 0.6987176537513733, 0.06774310767650604, -0.34137076139450073, 0.0011317338794469833, 0.2020280659198761, 0.34781551361083984, 0.12722791731357574, 0.10376603156328201, 0.12910091876983643, 0.16007494926452637, 0.4223599433898926, -0.47095248103141785, 0.04559648036956787, 0.6265048980712891, -0.05210315063595772, -0.010051574558019638, -0.12597577273845673, 0.34076786041259766, -0.01942870207130909, 0.06746433675289154, 0.09205348044633865, 0.07825861871242523, -0.16343311965465546, 0.1619413048028946, 0.059514597058296204, 0.8648949861526489, -0.10660554468631744, 0.2600542902946472, 0.4690987765789032, -0.3779261112213135, 0.7196045517921448, -0.4707077741622925, 0.2183847427368164, -0.15019232034683228, -0.055405840277671814, 0.058962926268577576, -0.12557531893253326, 0.06298545747995377, 0.1407039761543274, -0.12440323829650879, 0.11119715869426727, -0.005449250340461731, 0.07837909460067749, -0.281204491853714, 0.1752166897058487, -0.0004322882741689682, -0.281600683927536, -0.4989725947380066, 0.00371420755982399, 0.034974604845047, 0.27014198899269104, -0.04258374124765396, -0.14844509959220886, -0.0032919086515903473, -0.21720704436302185, -0.1513863503932953, -0.08818578720092773, -0.18996864557266235, 0.010715100914239883, 0.38330966234207153, -0.22345449030399323, 0.15645234286785126, 0.20339864492416382, 0.22727800905704498, 0.00009123608469963074, -0.2343195676803589, 0.0693410113453865, -0.24443000555038452, 0.005584282800555229, -0.17126987874507904, 0.1935160905122757, 0.318474680185318, -0.1197415217757225, -0.23202970623970032, 0.17926518619060516, -0.11260141432285309, -0.08390218019485474, -0.12085404247045517, 0.006135769188404083, -0.4281983971595764, -0.2840213179588318, -0.23118768632411957, -0.10997599363327026, 0.11388610303401947, -0.17428992688655853, 0.10061702132225037, 0.20672418177127838, -0.14634615182876587, -0.011567898094654083, 0.2707774043083191, -0.26321330666542053, -0.1994577944278717, 0.5665321350097656, -0.13025695085525513, -0.20157358050346375, 0.5939404964447021, 0.19139376282691956, -0.07226617634296417, -0.13649344444274902, 0.040535666048526764, 0.3078957498073578, -0.32764166593551636, 0.1016911193728447, 0.30568787455558777, 0.04784594476222992, -0.1812465786933899, 0.21456390619277954, 0.2034876048564911, -0.054127179086208344, 0.30807414650917053, -0.4620708227157593, -0.5775818228721619, 0.4163705110549927, 0.07443737983703613, 0.0900474339723587, 0.2602823078632355, -0.01265954039990902, -0.0895046517252922, 0.055733777582645416, -0.22501102089881897, 0.17080964148044586, -0.23296469449996948, -0.12474584579467773, 0.04376479983329773, 0.07237102836370468, 0.36102038621902466, -0.10796193778514862, 0.0880710706114769, 0.1615573912858963, -0.2085781842470169, -0.0896836370229721, -0.15461789071559906, 0.13517004251480103, 0.05043001472949982, -0.04916701465845108, -0.036904387176036835, 0.049313515424728394, 0.047497790306806564, -0.111564502120018, -0.005421999841928482, 0.025737851858139038, 0.10713295638561249, 0.3649479150772095, -0.1358090043067932, 0.133798748254776, 0.13230109214782715, -0.1156930923461914, 0.2883943021297455, 0.541019856929779, 0.0610671304166317, -0.07010917365550995, -0.17129677534103394, 0.08527837693691254, -0.394501656293869, 0.07084609568119049, -0.06069953739643097, 0.10391894727945328, 0.2729896605014801, -0.3122028112411499, 0.12763190269470215, -0.11755981296300888, 0.1541360467672348, 0.22908960282802582, -0.27234581112861633, 0.27161213755607605, 0.1718825101852417, 0.15197977423667908, -0.17472736537456512, 0.036820244044065475, 0.20121265947818756, -0.06696167588233948, -0.1053956151008606, 0.1839509755373001, 0.03177889809012413, 0.12522324919700623, 0.04852302744984627, 0.01167299598455429, 0.17419730126857758, 0.11210907995700836, 0.25085344910621643, -0.013800475746393204, -0.13342009484767914, -0.0698317438364029, 0.034561216831207275, 0.1528908908367157, 0.20568117499351501, 0.005394011735916138, -0.10017096251249313, 0.007698830217123032, -0.3579784631729126, 0.2294909656047821, -0.30698221921920776, -0.2855212688446045, 0.0433337464928627, 0.2459469586610794, -0.11072839796543121, 0.09013673663139343, -0.1628960222005844, 0.45213836431503296, -0.08311650902032852, -0.17568016052246094, -0.16486184298992157, 0.10154415667057037, -0.14873555302619934, -0.16141153872013092, -0.26307612657546997, -0.1775745302438736, 0.005099132657051086, 0.09268085658550262, -0.0820329487323761, -0.13639605045318604, 0.064949169754982, 0.056384794414043427, -0.17482803761959076, -0.08864966034889221, -0.1264999806880951, 0.18500494956970215, 0.4179310202598572, -0.15232552587985992, 0.26227015256881714, 0.21813586354255676, -0.11554025113582611, 0.17387449741363525, 0.3589642345905304, 0.4218243658542633, 0.18471580743789673, 0.15482597053050995, 0.06945289671421051, -0.035208236426115036, 0.000765947625041008, 0.0023337099701166153, 0.42195093631744385, 0.4782015383243561, -0.045024555176496506, 0.14356359839439392, 0.16024672985076904, -0.16147911548614502, 0.063325434923172, -0.11962786316871643, 0.23156845569610596, -0.3844906985759735, 0.23395121097564697, -0.3790830671787262, -0.09700097888708115, -0.13654860854148865, -0.13061130046844482, -0.45244139432907104, 0.25968503952026367, 0.07437638938426971, 0.17193183302879333, 0.14672839641571045, -0.10574118793010712, 0.058613359928131104, -0.11920005083084106, 0.48288431763648987, 0.2531336545944214, -0.10076168924570084, -0.319724977016449, -0.09710614383220673, -0.36356034874916077, 0.12630240619182587, 0.1350540667772293, 0.2315155267715454, 0.043148208409547806, 0.08620643615722656, 0.034381505101919174, -0.018075518310070038, 0.2295445203781128, -0.1687888205051422, -0.1015741303563118, -0.02275676280260086, -0.3769587278366089, -0.23383449018001556, -0.2327069193124771, 0.14746400713920593, 0.21594636142253876, 0.13630327582359314, 0.23133671283721924, -0.21493156254291534, -0.0898720771074295, -0.13923954963684082, 0.42889127135276794, -0.36910003423690796, 0.13799786567687988, 0.5177040696144104, 0.05827995389699936, 0.34160810708999634, -0.120880126953125, -0.3715011477470398, 0.04074949026107788, -0.42804154753685, -0.04069541394710541, 0.34424808621406555, -0.17496392130851746, 0.6239513158798218, -0.20894645154476166, -0.03902668133378029, -0.4285965859889984, 0.04480148106813431, -0.08843746781349182, -0.49300092458724976, -0.13172413408756256, 0.10931623727083206, 0.005548827350139618, 0.06622131168842316, 0.35657626390457153, 0.32748910784721375, 0.004924878478050232, 0.205306738615036, -0.28044432401657104, -0.19034098088741302, 0.5951343774795532, -0.3497057259082794, 0.041762854903936386, 0.23106899857521057, 0.09137776494026184, 0.006037600338459015, -0.1664630025625229, -0.8354555368423462, 0.23733437061309814, 0.35482144355773926, -0.16180503368377686, -0.19084934890270233, 0.29845017194747925, -0.24215668439865112, -0.12580320239067078, 0.019614342600107193, 0.3645000755786896, 0.07353425025939941, -0.07094602286815643, 0.21305522322654724, -0.16879390180110931 ]
https://github.com/huggingface/datasets/issues/3331
AttributeError: 'CommunityDatasetModuleFactoryWithoutScript' object has no attribute 'path'
Hi, the fix was merged and will be available in the next release of `datasets`. In the meantime, you can use it by installing `datasets` directly from master as follows: ``` pip install git+https://github.com/huggingface/datasets.git ```
## Describe the bug I add a new question answering dataset to huggingface datasets manually. Here is the link: [luozhouyang/question-answering-datasets](https://huggingface.co/datasets/luozhouyang/question-answering-datasets) But when I load the dataset, an error raised: ```bash AttributeError: 'CommunityDatasetModuleFactoryWithoutScript' object has no attribute 'path' ``` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("luozhouyang/question-answering-datasets", data_files=["dureader_robust.train.json"]) ``` ## Expected results Load dataset successfully without any error. ## Actual results ```bash Traceback (most recent call last): File "/mnt/home/zhouyang.lzy/github/naivenlp/naivenlp/tests/question_answering_tests/dataset_test.py", line 89, in test_load_dataset_with_hf data_files=["dureader_robust.train.json"], File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1616, in load_dataset **config_kwargs, File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1443, in load_dataset_builder path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1157, in dataset_module_factory raise e1 from None File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1144, in dataset_module_factory download_mode=download_mode, File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 798, in get_module raise FileNotFoundError(f"No data files or dataset script found in {self.path}") AttributeError: 'CommunityDatasetModuleFactoryWithoutScript' object has no attribute 'path' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.15.1 - Platform: linux - Python version: 3.6.13 - PyArrow version: 6.0.1
35
AttributeError: 'CommunityDatasetModuleFactoryWithoutScript' object has no attribute 'path' ## Describe the bug I add a new question answering dataset to huggingface datasets manually. Here is the link: [luozhouyang/question-answering-datasets](https://huggingface.co/datasets/luozhouyang/question-answering-datasets) But when I load the dataset, an error raised: ```bash AttributeError: 'CommunityDatasetModuleFactoryWithoutScript' object has no attribute 'path' ``` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("luozhouyang/question-answering-datasets", data_files=["dureader_robust.train.json"]) ``` ## Expected results Load dataset successfully without any error. ## Actual results ```bash Traceback (most recent call last): File "/mnt/home/zhouyang.lzy/github/naivenlp/naivenlp/tests/question_answering_tests/dataset_test.py", line 89, in test_load_dataset_with_hf data_files=["dureader_robust.train.json"], File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1616, in load_dataset **config_kwargs, File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1443, in load_dataset_builder path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1157, in dataset_module_factory raise e1 from None File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 1144, in dataset_module_factory download_mode=download_mode, File "/mnt/home/zhouyang.lzy/.conda/envs/naivenlp/lib/python3.6/site-packages/datasets/load.py", line 798, in get_module raise FileNotFoundError(f"No data files or dataset script found in {self.path}") AttributeError: 'CommunityDatasetModuleFactoryWithoutScript' object has no attribute 'path' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.15.1 - Platform: linux - Python version: 3.6.13 - PyArrow version: 6.0.1 Hi, the fix was merged and will be available in the next release of `datasets`. In the meantime, you can use it by installing `datasets` directly from master as follows: ``` pip install git+https://github.com/huggingface/datasets.git ```
[ -0.27873414754867554, 0.07279634475708008, 0.1128336489200592, 0.4117525815963745, 0.4317402243614197, -0.05015946179628372, 0.15988582372665405, 0.053495630621910095, 0.1838318109512329, 0.17354297637939453, -0.04512541741132736, 0.5018628239631653, -0.24042357504367828, -0.001609480008482933, 0.07994019985198975, -0.044350482523441315, -0.07313791662454605, 0.025730669498443604, -0.3315460681915283, -0.14450618624687195, -0.215810164809227, 0.31645068526268005, 0.047385916113853455, 0.07061699032783508, -0.2744128108024597, -0.009994322434067726, -0.13081616163253784, 0.3300015926361084, 0.18299663066864014, -0.39333197474479675, 0.42193934321403503, -0.19114242494106293, -0.07607913017272949, 0.8302143216133118, -0.00012414892262313515, -0.0581914447247982, 0.34357768297195435, -0.026895202696323395, -0.5387425422668457, -0.4684944748878479, -0.19699791073799133, 0.16133823990821838, 0.267549067735672, -0.024053528904914856, -0.19513735175132751, 0.1050664633512497, -0.05058196187019348, -0.5198595523834229, 0.3432198166847229, 0.34683337807655334, 0.08955729007720947, 0.30024969577789307, -0.05276992917060852, -0.3051680326461792, 0.03751426562666893, 0.6560080051422119, -0.1784098744392395, 0.42188432812690735, 0.07841546833515167, -0.05335596203804016, 0.12385255098342896, 0.04789626970887184, -0.02146339789032936, 0.09678485989570618, 0.24697008728981018, -0.03748953342437744, -0.04245835542678833, -0.021672148257493973, 0.22581470012664795, 0.41125133633613586, 0.4895050823688507, -0.3064204156398773, -0.43907374143600464, -0.3401961028575897, 0.11190085113048553, 0.05705324560403824, 0.21159440279006958, -0.01316605880856514, -0.07751356065273285, 0.1357523798942566, -0.12504883110523224, -0.24321101605892181, -0.19255922734737396, 0.3040331304073334, 0.09013418853282928, 0.02792324870824814, -0.2569788098335266, 0.15468347072601318, -0.1775621473789215, -0.03380335867404938, -0.06827277690172195, -0.11772596836090088, -0.03700718656182289, 0.2089710831642151, 0.15362459421157837, 0.02242962270975113, 0.2688312828540802, 0.20263439416885376, 0.3649176359176636, 0.3900001645088196, 0.08029921352863312, -0.12743103504180908, -0.2093178927898407, -0.09851618856191635, 0.15465301275253296, 0.10296817123889923, 0.14920558035373688, 0.03200393170118332, 0.13398808240890503, 0.3810567259788513, -0.22722330689430237, -0.13922110199928284, -0.19703516364097595, 0.020395290106534958, -0.08782504498958588, -0.1841396987438202, 0.6454572677612305, -0.1766882687807083, -0.23962713778018951, -0.07218321412801743, 0.08699498325586319, -0.012965675443410873, 0.12866619229316711, 0.555452823638916, 0.010795868933200836, 0.2388472855091095, -0.04182090982794762, 0.2287648469209671, -0.12121269851922989, -0.30044037103652954, -0.20749010145664215, 0.17269651591777802, -0.11618605256080627, 0.12381145358085632, -0.0393628291785717, -0.1715916246175766, 0.51240074634552, -0.22068047523498535, 0.1060512363910675, -0.24765858054161072, -0.17347361147403717, 0.029618673026561737, -0.05109541863203049, 0.1313425898551941, -0.14823970198631287, 0.4764261841773987, 0.23524706065654755, -0.34612393379211426, -0.09961502254009247, -0.04193127900362015, -0.27289503812789917, -0.5491753816604614, -0.18918876349925995, 0.0548040047287941, -0.30411916971206665, -0.16544076800346375, -0.2867372930049896, -0.013121161609888077, -0.051039792597293854, -0.11297358572483063, -0.03729536384344101, 0.038295257836580276, -0.21605230867862701, -0.18277952075004578, 0.3061753511428833, 0.9799986481666565, -0.2187827229499817, -0.16997739672660828, -0.18886569142341614, -0.013910435140132904, 0.026388093829154968, -0.0016929395496845245, -0.23954389989376068, 0.5026777982711792, -0.41958871483802795, -0.3035004138946533, 0.3405173420906067, -0.4972643256187439, -0.47564658522605896, 0.42675039172172546, -0.11623810231685638, 0.3746602237224579, 0.26422515511512756, 0.05605878308415413, -0.16897249221801758, 0.07943648844957352, 0.0365968756377697, 0.3520743250846863, 0.049666695296764374, 0.02401408739387989, -0.17004847526550293, -0.19048616290092468, 0.29726696014404297, 0.07073569297790527, 0.06658388674259186, 0.21332773566246033, 0.052133649587631226, 0.11225461214780807, 0.1602209210395813, -0.01842081919312477, -0.07977498322725296, 0.10525002330541611, 0.27354851365089417, 0.23529262840747833, 0.025420401245355606, -0.2940060794353485, -0.49700403213500977, 0.11510089784860611, 0.00788816437125206, -0.12589029967784882, -0.21197961270809174, -0.21058563888072968, -0.5217480659484863, 0.12416992336511612, -0.44674888253211975, -0.4100631773471832, -0.08379945158958435, 0.4493429660797119, 0.05614769831299782, 0.12138715386390686, -0.3306225538253784, 0.3420644700527191, -0.12666092813014984, 0.20761197805404663, -0.28682494163513184, 0.23915927112102509, -0.0861550122499466, -0.06265991181135178, -0.2252286672592163, 0.1879991888999939, 0.15814083814620972, -0.3349347710609436, -0.08695631474256516, 0.42377373576164246, 0.037511613219976425, 0.3082802891731262, 0.17226365208625793, -0.06380610167980194, 0.2396487593650818, -0.17347539961338043, -0.21590656042099, 0.3953198790550232, 0.33190152049064636, 0.08510477095842361, -0.050128430128097534, 0.2219129502773285, -0.17186878621578217, 0.31797027587890625, 0.09229731559753418, 0.032530806958675385, 0.19011658430099487, 0.04245956614613533, -0.050930969417095184, -0.09733875095844269, 0.2777737081050873, -0.024143267422914505, 0.44209805130958557, -0.11785437166690826, -0.25733041763305664, -0.0019311383366584778, 0.01880931854248047, 0.1338549107313156, 0.1450870931148529, 0.0172666497528553, -0.3486047685146332, 0.11337359994649887, -0.014600669965147972, 0.20817433297634125, 0.5339446067810059, 0.13641215860843658, -0.15415988862514496, 0.22983945906162262, 0.02034418284893036, -0.04142199456691742, 0.13810540735721588, 0.08534558117389679, 0.3150325119495392, 0.2272891402244568, 0.07889920473098755, 0.3679117262363434, -0.32294315099716187, -0.40728244185447693, -0.0201155673712492, 0.28204596042633057, -0.6839033365249634, 0.019767368212342262, -0.09871268272399902, -0.07363109290599823, -0.12894991040229797, -0.2198316603899002, -0.1033925861120224, -0.2003270834684372, -0.18014930188655853, 0.23554794490337372, -0.13886478543281555, 0.11189188063144684, 0.0479043610394001, 0.35711681842803955, 0.019071875140070915, -0.3948117792606354, -0.15951022505760193, -0.07720977813005447, -0.14052820205688477, -0.12556910514831543, 0.1964596062898636, -0.1358732134103775, 0.18730312585830688, -0.24805521965026855, 0.009413236752152443, -0.2849458158016205, -0.2837105691432953, 0.02060980349779129, 0.0822134017944336, 0.5673213601112366, 0.1559121012687683, 0.1901230663061142, 0.054025180637836456, -0.3113270103931427, 0.3967215418815613, -0.19383978843688965, -0.0980171337723732, 0.06547144055366516, 0.06638210266828537, -0.10015607625246048, -0.10596314072608948, -0.47106054425239563, -0.009184477850794792, -0.33041346073150635, 0.1292523443698883, 0.12736816704273224, 0.02666209638118744, 0.43253955245018005, 0.10561413317918777, 0.24332267045974731, -0.1540922373533249, 0.26417607069015503, -0.19270305335521698, -0.26635974645614624, 0.35115376114845276, -0.3448970317840576, -0.41086146235466003, -0.12463365495204926, -0.1710553616285324, 0.1554291844367981, -0.001021536998450756, -0.48669254779815674, -0.5058955550193787, -0.20464643836021423, 0.3047650456428528, -0.14226792752742767, -0.0035873819142580032, 0.556156575679779, 0.04202265292406082, 0.03062249906361103, -0.10461901128292084, -0.2572965919971466, 0.24498018622398376, -0.03165896236896515, 0.19024905562400818, -0.06419716030359268, 0.3993229269981384, 0.0027094371616840363, 0.4635825753211975, 0.16662603616714478, 0.14928816258907318, 0.2998657822608948, -0.4329095780849457, 0.5911368727684021, -0.274818480014801, -0.43894994258880615, 0.040697358548641205, 0.13713130354881287, -0.04560242220759392, 0.18822449445724487, 0.16983962059020996, 0.45690903067588806, -0.21490804851055145, -0.17913810908794403, -0.28270652890205383, -0.041668154299259186, -0.13345526158809662, -0.26598161458969116, 0.10536961257457733, 0.15965257585048676, 0.20549872517585754, -0.15249937772750854, 0.02400355413556099, 0.2791728079319, 0.2674001455307007, 0.14945442974567413, 0.04426901042461395, -0.42786213755607605, -0.05254475027322769, -0.28754618763923645, 0.2266290932893753, 0.02854432724416256, 0.10302317142486572, -0.15586048364639282, 0.023195572197437286, 0.062485456466674805, 0.060329169034957886, 0.7019479274749756, -0.01649702526628971, 0.07122372835874557, -0.011234685778617859, -0.13767129182815552, -0.5392106175422668, 0.10384681820869446, -0.040977343916893005, 0.4779804050922394, -0.17172038555145264, 0.23500849306583405, -0.13796809315681458, 0.050751183182001114, 0.2568914294242859, 0.20992368459701538, -0.16255569458007812, 0.02305781841278076, -0.20559026300907135, -0.49188268184661865, -0.3299146294593811, 0.023382961750030518, -0.027517080307006836, 0.38424456119537354, 0.35033366084098816, 0.06835894286632538, -0.13127124309539795, -0.0660024955868721, -0.0342743843793869, -0.044444046914577484, 0.32787808775901794, 0.05711912363767624, 0.12366653978824615, -0.05381002277135849, 0.17510853707790375, 0.18619948625564575, 0.625281035900116, 0.11867573857307434, -0.6285970211029053, -0.11023666709661484, -0.07262512296438217, 0.25747811794281006, 0.4089309573173523, -0.09671830385923386, -0.15547460317611694, -0.14576327800750732, 0.0037816017866134644, -0.19753411412239075, 0.25692328810691833, 0.3158520758152008, -0.09501583129167557, -0.06973855942487717, -0.34764838218688965, 0.3746580481529236, -0.2681786119937897, 0.00267135351896286, 0.2884303033351898, 0.7128967046737671, -0.2902103066444397, 0.381599485874176, -0.3629162907600403, 1.0019780397415161, 0.16505637764930725, 0.08329227566719055, 0.4705961346626282, -0.1663113534450531, 0.6760208010673523, 0.24742646515369415, -0.18471293151378632, -0.09558331966400146, 0.0904608964920044, 0.01711256615817547, -0.15126048028469086, 0.3450102210044861, 0.00665881484746933, 0.09301561117172241, 0.34896060824394226, -0.23441821336746216, 0.2027478665113449, 0.11486167460680008, 0.3186672329902649, 0.10749626904726028, -0.021965008229017258, -0.2550235986709595, 0.007391922175884247, -0.05904152989387512, 0.5420876741409302, 0.06236246973276138, 0.03552444279193878, -0.17675809562206268, -0.1868644654750824, -0.31811487674713135, -0.008672453463077545, -0.3767070770263672, 0.07726328074932098, 0.3369967043399811, -0.5181429386138916, 0.33361896872520447, 0.40858885645866394, 0.2426900714635849, 0.1839432418346405, -0.24150940775871277, 0.33322009444236755, -0.4159644544124603, 0.025586001574993134, 0.019475283101201057, 0.016924217343330383, 0.32472145557403564, -0.015819625928997993, -0.15831820666790009, 0.10627803206443787, -0.293748140335083, -0.22904427349567413, 0.2867240905761719, -0.16282182931900024, 0.5248080492019653, -0.38425979018211365, -0.37373051047325134, 0.042001258581876755, 0.10989876091480255, -0.2573581337928772, -0.01712087169289589, 0.0787208154797554, -0.22877302765846252, -0.26613983511924744, 0.2783178985118866, -0.2717664837837219, -0.14116017520427704, 0.37874558568000793, -0.2432694435119629, -0.030969632789492607, 0.6615495681762695, -0.0009174942970275879, -0.08008044213056564, -0.15216737985610962, 0.19197198748588562, 0.5604135990142822, -0.7355566024780273, 0.11904119700193405, 0.20209795236587524, 0.1891062706708908, -0.16085630655288696, 0.26855918765068054, 0.17076969146728516, 0.23331940174102783, -0.10241137444972992, -0.38159608840942383, -0.15053130686283112, 0.11865989863872528, -0.164590522646904, -0.0872202217578888, 0.3056291341781616, 0.019156455993652344, 0.22227224707603455, 0.013194681145250797, -0.18726541101932526, 0.04310949146747589, -0.08887498080730438, -0.07618653774261475, 0.16936790943145752, 0.2580810785293579, 0.22033753991127014, -0.11149561405181885, 0.032835572957992554, -0.10885560512542725, -0.02015439048409462, -0.07424372434616089, -0.21759237349033356, 0.23708023130893707, 0.050462689250707626, -0.0756707489490509, -0.11784091591835022, -0.11387019604444504, 0.06276775896549225, -0.24254968762397766, 0.1326620876789093, 0.2944793701171875, -0.11611625552177429, 0.03962485119700432, -0.017962727695703506, 0.045002881437540054, -0.3808726668357849, 0.18492817878723145, -0.16600462794303894, 0.21688437461853027, 0.22211110591888428, 0.061647482216358185, 0.08630622923374176, -0.07459075003862381, -0.18938298523426056, 0.041913893073797226, -0.01866878569126129, -0.009121127426624298, 0.34655284881591797, -0.49287569522857666, -0.014613568782806396, 0.2096361219882965, 0.09302455931901932, 0.06323674321174622, -0.36563536524772644, 0.1962023824453354, 0.33101433515548706, 0.02821553871035576, -0.36818069219589233, 0.1096339151263237, 0.09909552335739136, -0.0908842459321022, 0.08196026086807251, 0.1746339499950409, 0.07337343692779541, -0.093433678150177, 0.13317742943763733, 0.0918075442314148, 0.524544894695282, -0.01599811762571335, 0.2864593267440796, 0.016266975551843643, -0.09856992959976196, 0.11878221482038498, 0.12797242403030396, 0.4060656726360321, -0.12158987671136856, 0.2968329191207886, -0.2520129084587097, 0.14136464893817902, -0.13049638271331787, 0.12133989483118057, 0.13551735877990723, -0.33533987402915955, 0.16680552065372467, 0.069852314889431, -0.02854260802268982, -0.1297156810760498, -0.17479971051216125, 0.4625324308872223, -0.45364996790885925, 0.1438925862312317, 0.07663202285766602, -0.06837606430053711, -0.06774807721376419, -0.15559318661689758, 0.02613571286201477, -0.1386866718530655, -0.2723879814147949, -0.12038968503475189, -0.02777063474059105, -0.4847014546394348, 0.08905889093875885, -0.0999053567647934, -0.2744550108909607, -0.5020905137062073, 0.09115006029605865, 0.16440673172473907, 0.12061726301908493, -0.26627519726753235, 0.42860865592956543, 0.056681714951992035, 0.08228444308042526, 0.1519385129213333, 0.5170128345489502, 0.42861777544021606, 0.27642112970352173, 0.002674095332622528, 0.23990464210510254, -0.1359950602054596, -0.19742451608181, 0.11290127038955688, 0.03259323537349701, -0.09363898634910583, 0.1961449235677719, 0.2748451232910156, 0.07099112123250961, -0.08584021031856537, 0.09279069304466248, 0.12750715017318726, 0.16587333381175995, -0.4868192970752716, 0.3282388746738434, -0.3632182478904724, -0.044304437935352325, -0.3375099301338196, 0.16500365734100342, -0.27807000279426575, -0.10885559767484665, 0.13686634600162506, -0.11024259775876999, -0.059524763375520706, -0.1161276176571846, 0.002262808382511139, 0.08061395585536957, 0.2869948446750641, 0.6250289678573608, 0.15663328766822815, -0.24064037203788757, -0.3755805492401123, -0.6046671867370605, 0.2098080813884735, 0.19133785367012024, -0.2354554980993271, -0.13204525411128998, 0.1869550496339798, -0.14246788620948792, 0.0468301847577095, -0.050381988286972046, -0.0186784490942955, 0.12201093882322311, 0.020267579704523087, -0.13637660443782806, -0.193965882062912, -0.17548029124736786, 0.2383529394865036, 0.0811982974410057, -0.04109637439250946, -0.03803551569581032, -0.01140914112329483, -0.1731424629688263, 0.22938916087150574, 0.04052519053220749, -0.13539624214172363, -0.20240548253059387, 0.047407619655132294, 0.0532994419336319, 0.341345876455307, -0.06062542647123337, -0.02355174720287323, -0.3201354444026947, -0.3041516840457916, -0.06395187973976135, 0.2841356694698334, -0.013748183846473694, 0.369342178106308, -0.13940824568271637, -0.162715882062912, -0.2706393301486969, 0.12244419008493423, 0.05629175156354904, 0.01081965584307909, -0.24567241966724396, 0.29056110978126526, -0.28741446137428284, 0.22448615729808807, 0.07556930184364319, -0.03142060339450836, -0.15065906941890717, 0.14257366955280304, -0.16843140125274658, -0.3185247480869293, 0.4827651381492615, -0.39592471718788147, -0.24647381901741028, -0.11560679227113724, 0.3964618146419525, 0.07454442977905273, -0.3308059573173523, -0.4404376447200775, 0.003349892795085907, 0.3503592908382416, 0.17729774117469788, -0.1498308777809143, 0.13215020298957825, -0.535467267036438, 0.17076565325260162, 0.008708428591489792, 0.2975468635559082, 0.027849525213241577, 0.011543197557330132, 0.2526347041130066, -0.2953375577926636 ]
https://github.com/huggingface/datasets/issues/3329
Map function: Type error on iter #999
Hi, thanks for reporting. It would be really helpful if you could provide the actual code of the `text_numbers_to_int` function so we can reproduce the error.
## Describe the bug Using the map function, it throws a type error on iter #999 Here is the code I am calling: ``` dataset = datasets.load_dataset('squad') dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'}) ``` text_numbers_to_int returns the input text with numbers replaced in the format {'context': text} It happens at ` File "C:\Users\lonek\anaconda3\envs\ai\Lib\site-packages\datasets\arrow_writer.py", line 289, in <listcomp> [row[0][col] for row in self.current_examples], type=col_type, try_type=col_try_type, col=col ` The issue is that the list comprehension expects self.current_examples to be type tuple(dict, str), but for some reason 26 out of 1000 of the sefl.current_examples are type tuple(str, str) Here is an example of what self.current_examples should be ({'context': 'Super Bowl 50 was an...merals 50.'}, '') Here is an example of what self.current_examples are when it throws the error: ('The Panthers used th... Marriott.', '')
26
Map function: Type error on iter #999 ## Describe the bug Using the map function, it throws a type error on iter #999 Here is the code I am calling: ``` dataset = datasets.load_dataset('squad') dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'}) ``` text_numbers_to_int returns the input text with numbers replaced in the format {'context': text} It happens at ` File "C:\Users\lonek\anaconda3\envs\ai\Lib\site-packages\datasets\arrow_writer.py", line 289, in <listcomp> [row[0][col] for row in self.current_examples], type=col_type, try_type=col_try_type, col=col ` The issue is that the list comprehension expects self.current_examples to be type tuple(dict, str), but for some reason 26 out of 1000 of the sefl.current_examples are type tuple(str, str) Here is an example of what self.current_examples should be ({'context': 'Super Bowl 50 was an...merals 50.'}, '') Here is an example of what self.current_examples are when it throws the error: ('The Panthers used th... Marriott.', '') Hi, thanks for reporting. It would be really helpful if you could provide the actual code of the `text_numbers_to_int` function so we can reproduce the error.
[ -0.06956535577774048, -0.25437551736831665, -0.029409654438495636, 0.3593805432319641, 0.1476680040359497, 0.09723011404275894, 0.3781246244907379, 0.33753424882888794, 0.44256842136383057, -0.09956672787666321, 0.10787263512611389, 0.6538005471229553, 0.1616186946630478, 0.11904650181531906, -0.09265999495983124, 0.06299266219139099, 0.08638093620538712, 0.008872978389263153, -0.17068912088871002, 0.1339479386806488, -0.6150162220001221, 0.14190736413002014, -0.6294471621513367, 0.3102441430091858, 0.01643148623406887, -0.16429701447486877, 0.2603220045566559, -0.08448296040296555, -0.1403772532939911, -0.24039524793624878, 0.26354077458381653, -0.3593064844608307, 0.19223421812057495, 0.4690086245536804, -0.00012192387657705694, -0.059782132506370544, 0.3256954550743103, -0.1646692007780075, -0.19118936359882355, -0.3309634327888489, -0.19528913497924805, 0.1504078209400177, 0.1113400086760521, -0.06668224185705185, 0.1873723864555359, 0.20670074224472046, -0.1081770658493042, -0.15315662324428558, 0.1125662624835968, 0.3918086886405945, 0.12933999300003052, 0.0745214968919754, 0.17603306472301483, -0.05043034628033638, 0.2677648663520813, 0.32180464267730713, -0.12370111048221588, 0.15422986447811127, 0.2386263906955719, -0.17309993505477905, 0.08306022733449936, 0.38592201471328735, -0.11365090310573578, -0.09346097707748413, 0.1458536833524704, 0.0005080197006464005, 0.1521475911140442, -0.42372825741767883, -0.16120392084121704, 0.0075208209455013275, 0.3200416564941406, -0.1895657777786255, -0.2354424148797989, 0.12936004996299744, -0.3576365113258362, -0.2898726761341095, 0.18877893686294556, -0.20446373522281647, -0.19918426871299744, -0.08677533268928528, 0.024121997877955437, 0.2110588252544403, -0.16965000331401825, 0.2874496877193451, -0.2640112638473511, 0.14551526308059692, -0.22054307162761688, 0.2866029739379883, 0.20890329778194427, -0.4654518961906433, 0.012178235687315464, 0.0986243262887001, 0.07683819532394409, 0.32266610860824585, -0.5629231333732605, -0.3143521547317505, -0.09534067660570145, -0.3345661163330078, -0.02505909465253353, 0.004164917394518852, 0.2986059784889221, 0.103687584400177, -0.12806835770606995, 0.4851783812046051, 0.5331827998161316, 0.26821181178092957, 0.2365894913673401, 0.5884684324264526, -0.024051807820796967, 0.009461356326937675, 0.03600645437836647, -0.04815608263015747, 0.024819187819957733, -0.08384975790977478, 0.11064408719539642, -0.04154382273554802, 0.08301359415054321, -0.2129337340593338, -0.3643574118614197, 0.3378989100456238, -0.6286007761955261, 0.02294834516942501, 0.05607709661126137, 0.23396480083465576, 0.1419188231229782, 0.3150428235530853, 0.23164929449558258, 0.2602643370628357, -0.011997774243354797, 0.017415329813957214, -0.05709164962172508, 0.06428954005241394, -0.10814841836690903, -0.22856444120407104, -0.04421670734882355, -0.047940466552972794, 0.13718849420547485, 0.03059152141213417, -0.28595131635665894, -0.22121387720108032, -0.014498787932097912, -0.24163396656513214, 0.2745878994464874, 0.16524189710617065, -0.26779159903526306, 0.16569563746452332, 0.4336305856704712, -0.24432475864887238, 0.008735045790672302, 0.3310343027114868, -0.44028544425964355, 0.11733543872833252, -0.3285539448261261, 0.032485928386449814, 0.26456183195114136, -0.08170381933450699, -0.09679261595010757, 0.07651115953922272, 0.2883661091327667, -0.4929042458534241, 0.18155089020729065, -0.3865417242050171, -0.2560730278491974, -0.3211379051208496, -0.08733014762401581, 0.28576207160949707, -0.5808783173561096, -0.0517578050494194, -0.023043159395456314, 0.01914408802986145, 0.23984196782112122, 0.48937559127807617, -0.013797631487250328, 0.16875678300857544, -0.10192526876926422, 0.6126768589019775, 0.6557570695877075, -0.17224432528018951, -0.16475631296634674, 0.4104522466659546, 0.22053758800029755, -0.11910812556743622, -0.2869558036327362, 0.07950809597969055, 0.23517028987407684, -0.16962966322898865, 0.35885879397392273, 0.04053854942321777, -0.05721864104270935, 0.010260654613375664, -0.25698333978652954, -0.025455361232161522, 0.5739951133728027, 0.010868918150663376, -0.0007418617606163025, 0.2869466245174408, 0.12858828902244568, -0.28547903895378113, 0.11326253414154053, -0.04284099116921425, 0.027308931574225426, 0.020692095160484314, 0.28731387853622437, 0.18784475326538086, 0.1069873571395874, -0.4308701753616333, -0.0909726545214653, -0.2478296458721161, 0.011427070945501328, -0.08699201047420502, -0.08405329287052155, 0.217915341258049, -0.36742785573005676, 0.2436567097902298, -0.12551939487457275, 0.041434869170188904, 0.12131848931312561, -0.17050601541996002, -0.07915833592414856, -0.12331414222717285, -0.025119181722402573, -0.20093518495559692, -0.1189173087477684, 0.12585332989692688, -0.23950375616550446, -0.00543722789734602, -0.09176510572433472, -0.3534819185733795, -0.2883022129535675, 0.12870632112026215, 0.20946699380874634, 0.09623022377490997, -0.2935906946659088, 0.1596086472272873, 0.17074711620807648, -0.201681450009346, -0.22440940141677856, 0.08131460100412369, 0.08102870732545853, 0.1332656890153885, -0.11519720405340195, 0.5474793910980225, 0.2505154013633728, -0.14156603813171387, 0.04647427052259445, 0.18870750069618225, 0.17498762905597687, 0.42483916878700256, -0.3136247396469116, 0.4457044303417206, -0.05369451269507408, 0.3130355775356293, -0.028743376955389977, -0.1417187750339508, -0.08282224833965302, 0.1759931594133377, 0.3023208677768707, -0.08856051415205002, -0.007647968828678131, 0.0008891373872756958, 0.1666962057352066, -0.12407933175563812, 0.3597771227359772, 0.25661125779151917, -0.20818457007408142, 0.037571050226688385, -0.008095171302556992, -0.17597000300884247, 0.23405282199382782, -0.2820882201194763, -0.1806079000234604, -0.1485554426908493, -0.04247578978538513, 0.22665394842624664, 0.16241364181041718, 0.3013561964035034, 0.3988274931907654, 0.022494427859783173, -0.05613367259502411, -0.05350325629115105, -0.05826286971569061, -0.07158839702606201, -0.09361819922924042, 0.33426162600517273, -0.5203602313995361, 0.08646880090236664, -0.13206695020198822, -0.14360162615776062, -0.000667656771838665, -0.06834559142589569, -0.007021918892860413, -0.3734586834907532, -0.2227046936750412, 0.28304195404052734, -0.1167348176240921, -0.005134837701916695, 0.16453664004802704, -0.11633922159671783, 0.5080773234367371, 0.11189605295658112, -0.10971393436193466, -0.20543278753757477, -0.07114233821630478, 0.03390565142035484, 0.24025268852710724, -0.22189468145370483, -0.09227824211120605, 0.20094972848892212, 0.003818059340119362, -0.243997722864151, -0.33618053793907166, 0.23981338739395142, -0.2234872430562973, 0.10150419175624847, 0.39577531814575195, 0.39844846725463867, -0.25461745262145996, -0.17871811985969543, 0.29239943623542786, -0.04119566082954407, -0.23526190221309662, 0.3793851435184479, -0.023730996996164322, 0.1017160564661026, -0.11774428188800812, -0.26427361369132996, -0.1338200718164444, -0.28979113698005676, 0.4506816864013672, 0.10783165693283081, 0.3529078960418701, -0.023694448173046112, 0.16278430819511414, 0.20065100491046906, 0.04957866296172142, -0.22983112931251526, -0.3171626031398773, 0.13086499273777008, 0.1968706250190735, -0.16349828243255615, -0.11192283034324646, -0.18695157766342163, 0.055860377848148346, -0.0007266514003276825, -0.030592475086450577, -0.1211790218949318, -0.31058645248413086, -0.1756080836057663, -0.00639348104596138, -0.25288254022598267, 0.17402054369449615, 0.4018421769142151, 0.12068040668964386, 0.016933606937527657, -0.13843360543251038, -0.3979097604751587, 0.1340525895357132, 0.26877084374427795, 0.20675250887870789, 0.3104078471660614, 0.3809591233730316, 0.03196137771010399, 0.2549998462200165, 0.5371590256690979, -0.04970856383442879, 0.300197958946228, 0.007880747318267822, -0.08933994174003601, -0.04614465683698654, -0.05711342394351959, 0.04327717423439026, -0.392438143491745, -0.14100611209869385, 0.0631202831864357, -0.15243545174598694, -0.4542336165904999, 0.06863048672676086, -0.016544006764888763, -0.41243976354599, -0.2035769820213318, 0.2011566460132599, -0.11237402260303497, -0.07856661826372147, -0.1799052506685257, 0.05312191694974899, -0.29140424728393555, -0.0545443519949913, 0.18729761242866516, -0.1612815409898758, 0.2058497816324234, -0.05280575156211853, -0.33333805203437805, -0.41208308935165405, 0.11119163781404495, 0.3864589333534241, 0.15885403752326965, 0.5663266777992249, 0.07897856831550598, -0.2584567964076996, -0.14257831871509552, 0.24090281128883362, 0.5347711443901062, -0.6153744459152222, -0.10040096938610077, 0.16025832295417786, 0.32454562187194824, -0.2993515431880951, -0.1082003116607666, -0.4262551963329315, 0.34274619817733765, 0.33805033564567566, 0.31170886754989624, -0.15019166469573975, 0.09840919077396393, 0.14271536469459534, 0.04624401777982712, -0.031657859683036804, -0.09531834721565247, 0.050632741302251816, -0.15828314423561096, -0.41318944096565247, 0.10077954083681107, 0.3146844506263733, -0.072129026055336, 0.26005619764328003, 0.05058390274643898, -0.0023303497582674026, 0.004891064018011093, 0.06643889844417572, -0.0588805228471756, 0.41263988614082336, 0.0184053722769022, -0.22018690407276154, 0.00444425642490387, 0.18718135356903076, -0.12920546531677246, 0.38051486015319824, 0.11793398857116699, -0.1980929970741272, 0.45226576924324036, -0.11555784195661545, 0.38822469115257263, 0.10049258917570114, -0.13672128319740295, 0.12115976214408875, -0.23508328199386597, 0.20501060783863068, -0.12546420097351074, -0.3834754228591919, 0.5729425549507141, 0.24892935156822205, -0.17736834287643433, -0.2555018961429596, 0.3539670407772064, 0.0775873064994812, -0.11943554878234863, 0.5404179096221924, -0.1737283319234848, 0.01014148909598589, 0.5253915786743164, 0.283339262008667, 0.9040064811706543, -0.11026330292224884, -0.06622104346752167, 0.14043016731739044, 0.30496835708618164, 0.15869873762130737, 0.07044927775859833, -0.029943767935037613, -0.5582782626152039, -0.008214444853365421, -0.2366839498281479, -0.1103573739528656, 0.025154557079076767, 0.13425615429878235, -0.5057885050773621, 0.25871893763542175, -0.28850895166397095, 0.3344544470310211, 0.28456249833106995, -0.3772442638874054, 0.023880572989583015, -0.28829827904701233, -0.10671637952327728, 0.11501778662204742, 0.16159607470035553, 0.1286666840314865, 0.08740881085395813, -0.10351098328828812, -0.05921737477183342, -0.3507208228111267, -0.4191785454750061, 0.05072687566280365, -0.5273362994194031, 0.1180434376001358, 0.37194231152534485, 0.07740096747875214, 0.22869561612606049, 0.45291322469711304, 0.03032257780432701, 0.12257999181747437, -0.12377399206161499, -0.30494993925094604, 0.6015780568122864, 0.1871834248304367, 0.31858524680137634, 0.13690057396888733, 0.32817772030830383, -0.015442553907632828, -0.13555854558944702, 0.13465921580791473, -0.02663290500640869, -0.1701679676771164, -0.26820385456085205, 0.21260790526866913, -0.08955545723438263, -0.5962545871734619, -0.24544811248779297, -0.31131285429000854, -0.2608078420162201, -0.09530450403690338, 0.016059717163443565, 0.11705419421195984, -0.021307125687599182, 0.2530031204223633, -0.002514682710170746, -0.09908055514097214, 0.2924414277076721, 0.169643834233284, 0.04737801477313042, -0.023274747654795647, 0.3313791751861572, 0.10217846930027008, -0.2562969923019409, -0.14337435364723206, 0.0015400275588035583, -0.13246804475784302, -0.20379972457885742, 0.2618321180343628, -0.298775851726532, -0.28689396381378174, -0.07650304585695267, 0.6176581382751465, -0.043668948113918304, 0.2640353739261627, -0.2866372764110565, -0.5139837265014648, -0.10690201073884964, 0.2267071157693863, 0.24033252894878387, -0.0728570818901062, -0.30531319975852966, -0.07624213397502899, 0.028845028951764107, -0.12826363742351532, -0.19770830869674683, 0.08866982907056808, -0.31888246536254883, 0.35014331340789795, -0.17925386130809784, 0.10819143056869507, 0.1429680585861206, 0.09521317481994629, 0.014169571921229362, 0.601843535900116, -0.10243690013885498, -0.10845984518527985, -0.10780385136604309, 0.1442943960428238, 0.0999303013086319, -0.272096186876297, 0.11894045770168304, 0.09096270054578781, -0.014545697718858719, -0.19608759880065918, -0.275978684425354, -0.09980705380439758, -0.1131148487329483, 0.37552887201309204, -0.06912793219089508, -0.047060608863830566, 0.23066557943820953, 0.3200950622558594, -0.25933215022087097, 0.16113531589508057, -0.07225913554430008, 0.13678209483623505, 0.10048872977495193, 0.0023804083466529846, -0.19714023172855377, 0.19892632961273193, 0.015678957104682922, -0.013104349374771118, 0.347003310918808, -0.5167504549026489, -0.08481086790561676, 0.1125338226556778, 0.3679923415184021, 0.287862628698349, -0.42769238352775574, 0.04619748890399933, -0.08715221285820007, 0.09685757011175156, -0.21069970726966858, 0.09391981363296509, 0.18346017599105835, -0.1608290672302246, -0.002022836357355118, 0.4245437681674957, -0.023387975990772247, -0.2095775604248047, 0.2748402953147888, -0.29796168208122253, -0.17093053460121155, -0.26260584592819214, 0.14472022652626038, 0.43738844990730286, -0.23425637185573578, -0.02738289162516594, 0.08132155239582062, -0.16431613266468048, 0.008528970181941986, -0.22531460225582123, 0.13137522339820862, -0.23529477417469025, -0.0031570009887218475, -0.01112794503569603, 0.39510223269462585, -0.1813289374113083, 0.6834612488746643, 0.35579001903533936, -0.1440313160419464, 0.3301379382610321, 0.15292072296142578, 0.4438765048980713, -0.32348087430000305, 0.011019614525139332, -0.14383380115032196, -0.155503511428833, -0.3003564774990082, -0.058269597589969635, -0.13215191662311554, -0.27549314498901367, -0.2158469706773758, -0.372737854719162, -0.2113935649394989, -0.17417606711387634, 0.41691750288009644, 0.19524767994880676, 0.07658862322568893, -0.37206265330314636, -0.37451791763305664, -0.18468618392944336, 0.3983655273914337, -0.34691840410232544, 0.18694457411766052, -0.16944582760334015, -0.10414464771747589, 0.0905979722738266, 0.4275340139865875, 0.5573438405990601, 0.5100725293159485, -0.24110734462738037, 0.1398828625679016, -0.22006890177726746, -0.16714289784431458, 0.298229843378067, -0.0361773706972599, 0.17132019996643066, -0.15761643648147583, 0.3751992881298065, 0.010704921558499336, -0.028577223420143127, 0.04110758751630783, -0.07145801186561584, 0.38374170660972595, 0.01579454354941845, 0.202342689037323, -0.25621268153190613, -0.14561212062835693, -0.14011913537979126, -0.41901060938835144, -0.3071637749671936, -0.07309859991073608, 0.2255738079547882, -0.12751919031143188, 0.3679937422275543, -0.07646029442548752, 0.05065487325191498, 0.10993801057338715, 0.207208052277565, 0.07790876924991608, -0.25762975215911865, -0.28574004769325256, 0.07565166056156158, -0.23356807231903076, 0.15889841318130493, -0.05216867849230766, 0.10718260705471039, 0.311222106218338, 0.23628799617290497, 0.17562797665596008, 0.47485870122909546, 0.17296379804611206, -0.46251797676086426, -0.12021557241678238, 0.5098291039466858, -0.15396997332572937, -0.3050227463245392, 0.1119631677865982, 0.18411755561828613, 0.2538100779056549, -0.3058980405330658, 0.24680641293525696, -0.05598066747188568, 0.0427606999874115, -0.29977500438690186, 0.0739775151014328, -0.19948814809322357, 0.056111518293619156, 0.1746658980846405, 0.2942512333393097, 0.181122824549675, 0.00321820005774498, -0.333557665348053, 0.13687336444854736, -0.05839955434203148, -0.29291799664497375, 0.32386526465415955, -0.017277665436267853, 0.32675832509994507, -0.007656410336494446, -0.08765608072280884, -0.27232974767684937, -0.16971197724342346, -0.10741211473941803, -0.1337946206331253, -0.5201794505119324, 0.14766062796115875, 0.05970466881990433, -0.020098289474844933, -0.0929744690656662, 0.05903150513768196, 0.07538670301437378, 0.37832996249198914, -0.06658774614334106, -0.5345020294189453, 0.3628961443901062, -0.3975844979286194, -0.3268275260925293, 0.17087729275226593, -0.09888708591461182, -0.10256247967481613, 0.016979094594717026, -0.7437278032302856, -0.09866586327552795, 0.27902647852897644, 0.05683526396751404, 0.04106419160962105, 0.002150590531527996, -0.23679253458976746, 0.009997684508562088, -0.13519951701164246, 0.42496421933174133, 0.19174203276634216, 0.06696109473705292, 0.17210371792316437, -0.2593145966529846 ]
https://github.com/huggingface/datasets/issues/3329
Map function: Type error on iter #999
``` def text_numbers_to_int(text, column=""): """ Convert text numbers to int. :param text: text numbers :return: int """ try: numbers = find_numbers(text) if not numbers: return text result = "" i, j = 0, 0 while i < len(text): if j < len(numbers) and i == numbers[j][1]: n = int(numbers[j][0]) if numbers[j][0] % 1 == 0 else float(numbers[j][0]) result += str(n) i = numbers[j][2] #end j += 1 else: result += text[i] i += 1 if column: return{column: result} else: return {column: result} except Exception as e: print(e) return {column: result} ```
## Describe the bug Using the map function, it throws a type error on iter #999 Here is the code I am calling: ``` dataset = datasets.load_dataset('squad') dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'}) ``` text_numbers_to_int returns the input text with numbers replaced in the format {'context': text} It happens at ` File "C:\Users\lonek\anaconda3\envs\ai\Lib\site-packages\datasets\arrow_writer.py", line 289, in <listcomp> [row[0][col] for row in self.current_examples], type=col_type, try_type=col_try_type, col=col ` The issue is that the list comprehension expects self.current_examples to be type tuple(dict, str), but for some reason 26 out of 1000 of the sefl.current_examples are type tuple(str, str) Here is an example of what self.current_examples should be ({'context': 'Super Bowl 50 was an...merals 50.'}, '') Here is an example of what self.current_examples are when it throws the error: ('The Panthers used th... Marriott.', '')
91
Map function: Type error on iter #999 ## Describe the bug Using the map function, it throws a type error on iter #999 Here is the code I am calling: ``` dataset = datasets.load_dataset('squad') dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'}) ``` text_numbers_to_int returns the input text with numbers replaced in the format {'context': text} It happens at ` File "C:\Users\lonek\anaconda3\envs\ai\Lib\site-packages\datasets\arrow_writer.py", line 289, in <listcomp> [row[0][col] for row in self.current_examples], type=col_type, try_type=col_try_type, col=col ` The issue is that the list comprehension expects self.current_examples to be type tuple(dict, str), but for some reason 26 out of 1000 of the sefl.current_examples are type tuple(str, str) Here is an example of what self.current_examples should be ({'context': 'Super Bowl 50 was an...merals 50.'}, '') Here is an example of what self.current_examples are when it throws the error: ('The Panthers used th... Marriott.', '') ``` def text_numbers_to_int(text, column=""): """ Convert text numbers to int. :param text: text numbers :return: int """ try: numbers = find_numbers(text) if not numbers: return text result = "" i, j = 0, 0 while i < len(text): if j < len(numbers) and i == numbers[j][1]: n = int(numbers[j][0]) if numbers[j][0] % 1 == 0 else float(numbers[j][0]) result += str(n) i = numbers[j][2] #end j += 1 else: result += text[i] i += 1 if column: return{column: result} else: return {column: result} except Exception as e: print(e) return {column: result} ```
[ -0.10126204788684845, -0.2614864110946655, -0.042916666716337204, 0.3601316213607788, 0.17289923131465912, 0.06265277415513992, 0.3584761619567871, 0.3256574273109436, 0.500198483467102, -0.05290918052196503, 0.05375625938177109, 0.6227617859840393, 0.13810019195079803, 0.06444229930639267, -0.14472074806690216, 0.016931895166635513, 0.05771306902170181, -0.001893073320388794, -0.10749860107898712, 0.11142383515834808, -0.5638145804405212, 0.14335483312606812, -0.5702190399169922, 0.2570304870605469, 0.004812795668840408, -0.21654266119003296, 0.27751925587654114, -0.09577926248311996, -0.16511979699134827, -0.21812359988689423, 0.2940826117992401, -0.29947948455810547, 0.19543205201625824, 0.44703394174575806, -0.00011912507761735469, 0.014243923127651215, 0.27571284770965576, -0.1561252772808075, -0.20207494497299194, -0.34110844135284424, -0.16042837500572205, 0.1284935474395752, 0.09324687719345093, -0.06467077136039734, 0.13919705152511597, 0.24391765892505646, -0.11186285316944122, -0.15735764801502228, 0.0779472142457962, 0.37742990255355835, 0.16039438545703888, 0.15745526552200317, 0.1495596170425415, -0.0785643458366394, 0.2873198688030243, 0.25296521186828613, -0.15491288900375366, 0.07698837667703629, 0.21130803227424622, -0.19630341231822968, 0.005230255424976349, 0.404880166053772, -0.18314087390899658, -0.07969032227993011, 0.049030132591724396, 0.032516200095415115, 0.21321585774421692, -0.425772100687027, -0.12766385078430176, -0.006088182330131531, 0.23191559314727783, -0.0629010871052742, -0.22340179979801178, 0.10613269358873367, -0.40012142062187195, -0.2767654061317444, 0.1499401330947876, -0.154439777135849, -0.21234989166259766, -0.05887206271290779, 0.03986075147986412, 0.29114842414855957, -0.11030220985412598, 0.29086044430732727, -0.2672029137611389, 0.22874566912651062, -0.21043750643730164, 0.2669141888618469, 0.20141483843326569, -0.4097220301628113, -0.057466063648462296, 0.1127537414431572, 0.056551091372966766, 0.3152271509170532, -0.5426421165466309, -0.2525947690010071, -0.05904870480298996, -0.3645433187484741, -0.004188941791653633, 0.013953501358628273, 0.3200322687625885, 0.10588746517896652, -0.11636710166931152, 0.47580379247665405, 0.463761568069458, 0.31278812885284424, 0.14982369542121887, 0.607945442199707, -0.07203644514083862, 0.01127154566347599, 0.023053612560033798, -0.025417286902666092, 0.0730162039399147, -0.05370271950960159, 0.12773796916007996, -0.006874864920973778, 0.1092822402715683, -0.14681796729564667, -0.3932800889015198, 0.3896169662475586, -0.6453601121902466, -0.021546468138694763, 0.11806368082761765, 0.2313043177127838, 0.1862020045518875, 0.38756030797958374, 0.20299047231674194, 0.2032427340745926, -0.013562802225351334, 0.06930799037218094, -0.09984388947486877, 0.01665436662733555, -0.05354422330856323, -0.22984912991523743, -0.0852426216006279, -0.0267484188079834, 0.13634690642356873, -0.00706556485965848, -0.2677707076072693, -0.2192012071609497, -0.018592238426208496, -0.30351197719573975, 0.2954966723918915, 0.18445797264575958, -0.27504968643188477, 0.1259487420320511, 0.4909403622150421, -0.3181442618370056, 0.029658176004886627, 0.2716628313064575, -0.3922417461872101, 0.1617647111415863, -0.2809862792491913, 0.08919741213321686, 0.36265701055526733, -0.08995717763900757, -0.15140023827552795, 0.08480113744735718, 0.26869723200798035, -0.360710084438324, 0.15257038176059723, -0.3809402585029602, -0.2665952146053314, -0.3156231939792633, -0.08455512672662735, 0.24663183093070984, -0.48422086238861084, -0.06310296058654785, 0.004286490846425295, 0.05397117882966995, 0.20197558403015137, 0.5303298830986023, -0.006920231971889734, 0.20244932174682617, -0.14745260775089264, 0.5987244248390198, 0.6202795505523682, -0.213285431265831, -0.20504875481128693, 0.4125591814517975, 0.25246644020080566, -0.11735250800848007, -0.2588878571987152, 0.043840453028678894, 0.22418487071990967, -0.14797116816043854, 0.31910240650177, 0.03926709294319153, -0.03912283480167389, -0.00808534026145935, -0.2997053265571594, -0.03634040802717209, 0.5437584519386292, -0.02420191466808319, 0.10374854505062103, 0.24076944589614868, 0.12278863042593002, -0.22453276813030243, 0.07733453065156937, -0.026076268404722214, -0.04524820297956467, 0.01988993212580681, 0.30082058906555176, 0.10168150067329407, 0.10864841938018799, -0.4381992816925049, -0.12981387972831726, -0.22383317351341248, 0.049967728555202484, -0.07350464165210724, -0.0823296308517456, 0.18052394688129425, -0.35878515243530273, 0.24589864909648895, -0.16186273097991943, 0.025347866117954254, 0.19404388964176178, -0.10405507683753967, 0.009252458810806274, -0.1525566428899765, 0.039334554225206375, -0.2895752787590027, -0.08781557530164719, 0.09235090762376785, -0.19419372081756592, 0.04665934294462204, -0.13159939646720886, -0.30224940180778503, -0.3391081988811493, 0.12695282697677612, 0.20769408345222473, 0.10457728803157806, -0.3300049901008606, 0.1553385704755783, 0.15572276711463928, -0.18056677281856537, -0.20133966207504272, 0.0896027460694313, 0.027937911450862885, 0.14245228469371796, -0.23602992296218872, 0.5354244709014893, 0.2369871437549591, -0.1263151615858078, 0.12856170535087585, 0.14718955755233765, 0.19116605818271637, 0.43485769629478455, -0.23969078063964844, 0.4494384527206421, 0.01783459074795246, 0.3127278685569763, -0.01682296209037304, -0.17787790298461914, -0.08486273884773254, 0.2212909311056137, 0.32298043370246887, -0.07231950014829636, 0.0034056827425956726, -0.04965437203645706, 0.21269427239894867, -0.10403303802013397, 0.32841986417770386, 0.21079543232917786, -0.16326892375946045, 0.08559490740299225, -0.05286525934934616, -0.15056736767292023, 0.1977936029434204, -0.21862377226352692, -0.12968327105045319, -0.21803800761699677, -0.0643807128071785, 0.2065320461988449, 0.17440223693847656, 0.35735660791397095, 0.36662885546684265, 0.04455151408910751, -0.05708877742290497, -0.057552020996809006, -0.1251293271780014, -0.07083693146705627, -0.09274057298898697, 0.3160719871520996, -0.4278382658958435, 0.14116182923316956, -0.08383447676897049, -0.08753279596567154, 0.019673889502882957, -0.09550729393959045, -0.00890083983540535, -0.36263346672058105, -0.20259924232959747, 0.26985660195350647, -0.11653460562229156, -0.028337547555565834, 0.1702141910791397, -0.1639164537191391, 0.5541731715202332, 0.07421079277992249, -0.15383830666542053, -0.21223217248916626, -0.06653779745101929, 0.06405894458293915, 0.2733142077922821, -0.3290652334690094, -0.037596605718135834, 0.18130551278591156, -0.07222059369087219, -0.30157470703125, -0.3599543571472168, 0.2461034059524536, -0.25558120012283325, 0.07144943624734879, 0.4253469407558441, 0.33839327096939087, -0.3542415499687195, -0.2016049474477768, 0.33574774861335754, -0.02186771109700203, -0.24308404326438904, 0.38043758273124695, 0.010006134398281574, 0.04029042646288872, -0.1529444307088852, -0.26356691122055054, -0.14326433837413788, -0.3321791887283325, 0.43265479803085327, 0.13675960898399353, 0.3517342209815979, -0.0060988785699009895, 0.10673043876886368, 0.21884606778621674, 0.06936722993850708, -0.21075700223445892, -0.3670695126056671, 0.08457407355308533, 0.17285704612731934, -0.13509409129619598, -0.10244782269001007, -0.2162274718284607, -0.09023978561162949, 0.07260416448116302, -0.0005010263994336128, -0.12676502764225006, -0.34139034152030945, -0.2321784645318985, 0.029926162213087082, -0.2277282178401947, 0.1553223431110382, 0.4101736843585968, 0.1415114402770996, -0.022510511800646782, -0.1417880803346634, -0.3753778636455536, 0.09690781682729721, 0.26526063680648804, 0.1715664565563202, 0.23400378227233887, 0.3867044746875763, 0.09520836174488068, 0.30644136667251587, 0.4467323422431946, -0.05706457421183586, 0.31606778502464294, 0.045934855937957764, -0.09148810803890228, -0.11141840368509293, -0.12286970764398575, -0.007829394191503525, -0.3909178674221039, -0.19121527671813965, 0.07142985612154007, -0.16653040051460266, -0.42904555797576904, 0.07491052895784378, 0.07308630645275116, -0.39950188994407654, -0.2087581753730774, 0.17567889392375946, -0.08897548913955688, -0.05934794992208481, -0.14972510933876038, 0.08602087944746017, -0.2450992614030838, -0.0277909766882658, 0.10916779935359955, -0.1506129950284958, 0.21408182382583618, -0.10896313190460205, -0.2984606623649597, -0.3309212625026703, 0.09698545187711716, 0.42400598526000977, 0.16408231854438782, 0.5171325206756592, 0.07301858067512512, -0.2538280487060547, -0.1466752141714096, 0.21353016793727875, 0.5097346901893616, -0.5522744059562683, -0.1543988138437271, 0.1580401062965393, 0.2870231866836548, -0.2839057743549347, -0.10668617486953735, -0.48824387788772583, 0.26986995339393616, 0.40956825017929077, 0.346542626619339, -0.17717622220516205, 0.032938193529844284, 0.1296328604221344, 0.04705105349421501, -0.0383596196770668, -0.0532868318259716, -0.008758995682001114, -0.17174482345581055, -0.4034441411495209, 0.1496560126543045, 0.335828572511673, -0.0677766427397728, 0.26755282282829285, -0.019853021949529648, -0.06343090534210205, -0.08658874034881592, 0.06607648730278015, -0.08457574248313904, 0.44021356105804443, 0.08927226811647415, -0.23651623725891113, -0.044167570769786835, 0.3055110573768616, -0.1161239743232727, 0.3869119882583618, 0.06289666146039963, -0.13029347360134125, 0.402430921792984, -0.06969861686229706, 0.3289277255535126, 0.055837854743003845, -0.1849001795053482, 0.12959156930446625, -0.24396559596061707, 0.2996389865875244, -0.1940474659204483, -0.29720476269721985, 0.5750584006309509, 0.2287602573633194, -0.15852098166942596, -0.21154385805130005, 0.3293989896774292, 0.0585830919444561, -0.14230026304721832, 0.4442335069179535, -0.22549466788768768, -0.05861223489046097, 0.5727227926254272, 0.283139169216156, 0.806800127029419, -0.12842050194740295, -0.09844464063644409, 0.1819884479045868, 0.3330496549606323, 0.14903642237186432, 0.1359996497631073, 0.03389936313033104, -0.4854656159877777, -0.005527249537408352, -0.2294667810201645, -0.07917246967554092, 0.01594216376543045, 0.16249960660934448, -0.5453808307647705, 0.2673584818840027, -0.23409047722816467, 0.3128555119037628, 0.28477564454078674, -0.32346415519714355, 0.006874125450849533, -0.30771544575691223, -0.14627940952777863, 0.1341973841190338, 0.09360846877098083, 0.08250835537910461, 0.08834465593099594, -0.0481572188436985, -0.031280841678380966, -0.43076759576797485, -0.37738949060440063, 0.01676004007458687, -0.5646746158599854, 0.19379474222660065, 0.32119134068489075, 0.025622323155403137, 0.1095898300409317, 0.41698604822158813, -0.07298365235328674, 0.151528999209404, -0.05376572161912918, -0.30297693610191345, 0.5903646349906921, 0.19728492200374603, 0.2984775900840759, 0.07853615283966064, 0.34870287775993347, 0.008923079818487167, -0.09027198702096939, 0.13830481469631195, -0.0800299122929573, -0.24604102969169617, -0.3269677758216858, 0.2371768355369568, 0.06568993628025055, -0.53805011510849, -0.23598089814186096, -0.36638161540031433, -0.37101879715919495, -0.11468115448951721, 0.05118910223245621, 0.14949661493301392, -0.02033253386616707, 0.2504935562610626, 0.0188338290899992, -0.09773104637861252, 0.3009849488735199, 0.12824647128582, 0.03474976867437363, -0.015579495579004288, 0.35515812039375305, 0.0006956048309803009, -0.2966649532318115, -0.19893065094947815, -0.016483429819345474, -0.1816670149564743, -0.17514479160308838, 0.3101791739463806, -0.2834356427192688, -0.2904999852180481, -0.10246887803077698, 0.5828500986099243, -0.027119144797325134, 0.2600952386856079, -0.2914443910121918, -0.5010273456573486, -0.09260480105876923, 0.1799239218235016, 0.19614975154399872, -0.04600176587700844, -0.22395730018615723, -0.07845348119735718, -0.03999103605747223, -0.02841181494295597, -0.22679179906845093, 0.07803314179182053, -0.33554577827453613, 0.37773337960243225, -0.22709065675735474, 0.08288580179214478, 0.19991593062877655, 0.09991925954818726, 0.06948788464069366, 0.5783308148384094, -0.11746639013290405, -0.15478500723838806, -0.10185879468917847, 0.11328990012407303, 0.12442292273044586, -0.27796506881713867, 0.13117477297782898, 0.15365402400493622, 0.06519535928964615, -0.22906138002872467, -0.2765354514122009, -0.11310660094022751, -0.0898817777633667, 0.37235233187675476, -0.06535811722278595, -0.0021130964159965515, 0.22868387401103973, 0.23093664646148682, -0.2665780484676361, 0.14955496788024902, -0.024558302015066147, 0.1543509066104889, 0.11911960691213608, 0.0216081365942955, -0.20320750772953033, 0.11869443953037262, 0.02551436424255371, 0.0024888217449188232, 0.3641907572746277, -0.5120124816894531, -0.1601177304983139, 0.10917601734399796, 0.3304748237133026, 0.22376100718975067, -0.4141857326030731, 0.004876088351011276, -0.051961008459329605, 0.13827505707740784, -0.1970289796590805, 0.100936159491539, 0.201369047164917, -0.1543414294719696, 0.10699963569641113, 0.48844656348228455, -0.06670854985713959, -0.1569434106349945, 0.25262072682380676, -0.2464488446712494, -0.18906769156455994, -0.2075234055519104, 0.18751491606235504, 0.45631542801856995, -0.19954344630241394, -0.02155214175581932, 0.02509237825870514, -0.25426793098449707, -0.0033973902463912964, -0.22687675058841705, 0.10884515941143036, -0.14102844893932343, -0.07111389189958572, 0.05115033686161041, 0.40708526968955994, -0.14315250515937805, 0.6716791391372681, 0.2747366428375244, -0.10612453520298004, 0.34625959396362305, 0.12487606704235077, 0.4119960069656372, -0.28990107774734497, 0.008222663775086403, -0.16180993616580963, -0.20166096091270447, -0.32055217027664185, -0.05974214896559715, -0.09912567585706711, -0.2524287700653076, -0.15008105337619781, -0.3411165177822113, -0.11033439636230469, -0.19748346507549286, 0.32630306482315063, 0.21651162207126617, 0.08668079227209091, -0.3156571388244629, -0.35585272312164307, -0.13587787747383118, 0.37449347972869873, -0.3475203216075897, 0.2406776249408722, -0.1075325608253479, -0.0853714793920517, 0.05665741115808487, 0.41974008083343506, 0.49566447734832764, 0.5411376953125, -0.22722075879573822, 0.11912315338850021, -0.18994341790676117, -0.16926024854183197, 0.21671105921268463, -0.041759416460990906, 0.08320923149585724, -0.23728172481060028, 0.426663875579834, 0.04531700909137726, -0.07895497232675552, 0.03922119364142418, -0.06337966024875641, 0.34182536602020264, 0.006049713119864464, 0.25934916734695435, -0.18612812459468842, -0.07994216680526733, -0.11654166877269745, -0.42508676648139954, -0.33270910382270813, -0.03114088997244835, 0.1911049634218216, -0.1083032637834549, 0.43014952540397644, -0.10414307564496994, 0.0725724846124649, 0.12605571746826172, 0.15835478901863098, 0.08048620074987411, -0.24140173196792603, -0.3029029667377472, 0.12661650776863098, -0.23290039598941803, 0.1489231288433075, -0.0738438069820404, 0.09423107653856277, 0.31744110584259033, 0.29361432790756226, 0.12690716981887817, 0.5428948402404785, 0.18967512249946594, -0.5437648296356201, -0.06166210398077965, 0.45164400339126587, -0.12976418435573578, -0.2992650270462036, 0.15824581682682037, 0.1177573949098587, 0.27159878611564636, -0.397491455078125, 0.15877386927604675, -0.009335609152913094, 0.08615151792764664, -0.2984750270843506, 0.143215611577034, -0.22394579648971558, 0.09765352308750153, 0.11434642970561981, 0.3551276922225952, 0.13910096883773804, -0.039705924689769745, -0.3220253586769104, 0.10288509726524353, -0.06664178520441055, -0.2970433533191681, 0.32916459441185, -0.008650779724121094, 0.40609484910964966, -0.020161259919404984, -0.12418060004711151, -0.30241772532463074, -0.09659578651189804, -0.057422637939453125, -0.17993932962417603, -0.5031627416610718, 0.15173637866973877, 0.03661632537841797, -0.04465969651937485, -0.13160501420497894, 0.08193125575780869, 0.11608410626649857, 0.40370020270347595, -0.08792240172624588, -0.6108807325363159, 0.3436938524246216, -0.4050934910774231, -0.3186046779155731, 0.20540077984333038, -0.14463940262794495, -0.05983508378267288, 0.02822793275117874, -0.7085933089256287, -0.14890798926353455, 0.3234851360321045, 0.055642858147621155, 0.06675776839256287, -0.031641244888305664, -0.13330528140068054, 0.04614171013236046, -0.1505689024925232, 0.32753390073776245, 0.19584184885025024, 0.035086117684841156, 0.20542676746845245, -0.2698097825050354 ]
https://github.com/huggingface/datasets/issues/3329
Map function: Type error on iter #999
Maybe this is because of the `return text` line ? I think it should return a dictionary rather than a string
## Describe the bug Using the map function, it throws a type error on iter #999 Here is the code I am calling: ``` dataset = datasets.load_dataset('squad') dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'}) ``` text_numbers_to_int returns the input text with numbers replaced in the format {'context': text} It happens at ` File "C:\Users\lonek\anaconda3\envs\ai\Lib\site-packages\datasets\arrow_writer.py", line 289, in <listcomp> [row[0][col] for row in self.current_examples], type=col_type, try_type=col_try_type, col=col ` The issue is that the list comprehension expects self.current_examples to be type tuple(dict, str), but for some reason 26 out of 1000 of the sefl.current_examples are type tuple(str, str) Here is an example of what self.current_examples should be ({'context': 'Super Bowl 50 was an...merals 50.'}, '') Here is an example of what self.current_examples are when it throws the error: ('The Panthers used th... Marriott.', '')
21
Map function: Type error on iter #999 ## Describe the bug Using the map function, it throws a type error on iter #999 Here is the code I am calling: ``` dataset = datasets.load_dataset('squad') dataset['validation'].map(text_numbers_to_int, input_columns=['context'], fn_kwargs={'column': 'context'}) ``` text_numbers_to_int returns the input text with numbers replaced in the format {'context': text} It happens at ` File "C:\Users\lonek\anaconda3\envs\ai\Lib\site-packages\datasets\arrow_writer.py", line 289, in <listcomp> [row[0][col] for row in self.current_examples], type=col_type, try_type=col_try_type, col=col ` The issue is that the list comprehension expects self.current_examples to be type tuple(dict, str), but for some reason 26 out of 1000 of the sefl.current_examples are type tuple(str, str) Here is an example of what self.current_examples should be ({'context': 'Super Bowl 50 was an...merals 50.'}, '') Here is an example of what self.current_examples are when it throws the error: ('The Panthers used th... Marriott.', '') Maybe this is because of the `return text` line ? I think it should return a dictionary rather than a string
[ -0.06868931651115417, -0.2696540355682373, -0.04229544848203659, 0.365426242351532, 0.17482924461364746, 0.054315753281116486, 0.33268478512763977, 0.3805120885372162, 0.4761446714401245, -0.07883809506893158, 0.10804694145917892, 0.6700222492218018, 0.1724000871181488, 0.13023144006729126, -0.11378379166126251, 0.04452967643737793, 0.03523266315460205, 0.03651971369981766, -0.15285611152648926, 0.07478375732898712, -0.5479355454444885, 0.11175654828548431, -0.5292418003082275, 0.2950781583786011, -0.06027040630578995, -0.23498311638832092, 0.32464325428009033, -0.0630757138133049, -0.2049996554851532, -0.2597448527812958, 0.37766847014427185, -0.3488457500934601, 0.20678254961967468, 0.4222961962223053, -0.00011983071453869343, -0.021417412906885147, 0.2757880687713623, -0.1344311684370041, -0.16740383207798004, -0.4027245044708252, -0.16681614518165588, 0.1272999346256256, 0.1350906640291214, -0.04765504226088524, 0.18630772829055786, 0.175633504986763, -0.09513930976390839, -0.2074330747127533, 0.07144307345151901, 0.3829609453678131, 0.14636501669883728, 0.04152302071452141, 0.10848486423492432, -0.03287819027900696, 0.29212576150894165, 0.289945125579834, -0.13506612181663513, 0.15403470396995544, 0.25934529304504395, -0.20709744095802307, -0.010116957128047943, 0.34322404861450195, -0.17068295180797577, -0.018535446375608444, 0.13348719477653503, 0.11272843182086945, 0.17835934460163116, -0.39392128586769104, -0.12183954566717148, 0.05674475431442261, 0.40245330333709717, -0.08543423563241959, -0.23826143145561218, 0.11150238662958145, -0.33599478006362915, -0.23046568036079407, 0.17508307099342346, -0.1574295163154602, -0.2841136157512665, -0.08824111521244049, 0.06404726207256317, 0.18973810970783234, -0.16398769617080688, 0.2687290906906128, -0.3195163905620575, 0.215317964553833, -0.18622545897960663, 0.29604804515838623, 0.20946180820465088, -0.3590490221977234, 0.06216450035572052, 0.06959441304206848, 0.029967350885272026, 0.323036789894104, -0.5244166254997253, -0.2967148423194885, -0.04333002120256424, -0.32447707653045654, 0.013974830508232117, -0.002087865024805069, 0.34032782912254333, 0.10675708949565887, -0.10488390922546387, 0.46794837713241577, 0.5031503438949585, 0.2587527632713318, 0.21512773633003235, 0.6259546279907227, -0.008215196430683136, -0.027818111702799797, -0.0018055997788906097, -0.058735355734825134, 0.05794868245720863, -0.043861694633960724, 0.13050876557826996, -0.0026798415929079056, 0.10374431312084198, -0.21787814795970917, -0.34963148832321167, 0.3881896138191223, -0.6481949687004089, -0.023317283019423485, 0.02080826833844185, 0.2240980565547943, 0.12931661307811737, 0.3716755509376526, 0.1936248391866684, 0.15352672338485718, 0.047458715736866, 0.05794023349881172, -0.055949077010154724, -0.008392097428441048, -0.12383332848548889, -0.20508837699890137, -0.06578271090984344, -0.00798330269753933, 0.11223392933607101, -0.04251522198319435, -0.2641531229019165, -0.2337823361158371, -0.03331334888935089, -0.2635461390018463, 0.2903020679950714, 0.13760174810886383, -0.2577497661113739, 0.18509307503700256, 0.47003093361854553, -0.26745960116386414, 0.0070905014872550964, 0.2650996744632721, -0.4260753095149994, 0.1423099786043167, -0.31383657455444336, 0.062327589839696884, 0.3559264540672302, -0.07608817517757416, -0.12447824329137802, 0.01878558099269867, 0.26218271255493164, -0.35805413126945496, 0.14679831266403198, -0.3401731848716736, -0.2922208607196808, -0.36179637908935547, -0.11898057907819748, 0.21940964460372925, -0.6221224069595337, -0.03899213671684265, 0.029303710907697678, 0.03584791719913483, 0.17580577731132507, 0.5387279987335205, -0.027573952451348305, 0.30443087220191956, -0.10094602406024933, 0.5126529932022095, 0.6534240245819092, -0.19329635798931122, -0.23542359471321106, 0.43371978402137756, 0.17649239301681519, -0.09202548861503601, -0.23726224899291992, 0.059055641293525696, 0.2687622606754303, -0.10632354766130447, 0.3505554795265198, 0.08531056344509125, -0.06025233864784241, 0.021035222336649895, -0.24631869792938232, -0.028533175587654114, 0.6285744309425354, -0.031291741877794266, 0.06625206023454666, 0.23413780331611633, 0.10917492210865021, -0.3038707375526428, 0.11600175499916077, -0.042133819311857224, 0.007953924126923084, -0.006119664758443832, 0.31822749972343445, 0.15338796377182007, 0.10621177405118942, -0.41231265664100647, -0.15307608246803284, -0.1957252323627472, 0.0006541125476360321, -0.07499833405017853, -0.0927465558052063, 0.17575889825820923, -0.33807700872421265, 0.2665643095970154, -0.17891469597816467, -0.0017924979329109192, 0.1710319072008133, -0.16242077946662903, -0.03454326093196869, -0.09001752734184265, 0.008424077183008194, -0.19762367010116577, -0.0918162390589714, 0.13294199109077454, -0.20622208714485168, 0.046842582523822784, -0.11861520260572433, -0.2593173682689667, -0.31067749857902527, 0.1256726235151291, 0.15301671624183655, 0.08890879899263382, -0.26012900471687317, 0.11657582968473434, 0.13379952311515808, -0.18164967000484467, -0.1828380525112152, 0.04379253089427948, 0.012919106520712376, 0.10993656516075134, -0.185035839676857, 0.5195550322532654, 0.2707524001598358, -0.18367525935173035, 0.07568719238042831, 0.15002821385860443, 0.22332186996936798, 0.47736984491348267, -0.33213984966278076, 0.4480353891849518, -0.07448218017816544, 0.3419990539550781, 0.0000643385574221611, -0.11068755388259888, -0.10868939757347107, 0.13574932515621185, 0.34334510564804077, -0.12650714814662933, 0.0875086635351181, -0.0758465901017189, 0.24216531217098236, -0.09768812358379364, 0.34729692339897156, 0.2054654359817505, -0.16781917214393616, 0.0364406555891037, -0.012913363054394722, -0.1247251033782959, 0.2384887933731079, -0.23987555503845215, -0.17549167573451996, -0.177424356341362, -0.08223330229520798, 0.2165113389492035, 0.16556203365325928, 0.3028803765773773, 0.42742717266082764, 0.029487725347280502, -0.06225118041038513, -0.05316184088587761, -0.1085270345211029, -0.10268504917621613, -0.10508093237876892, 0.3458135426044464, -0.4162862300872803, 0.054923832416534424, -0.09897516667842865, -0.16661348938941956, 0.032180823385715485, -0.02774859592318535, -0.018824830651283264, -0.3745057284832001, -0.22822563350200653, 0.27600881457328796, -0.04539169371128082, -0.04532390087842941, 0.15179301798343658, -0.13773711025714874, 0.530430018901825, 0.12451984733343124, -0.11016722023487091, -0.31870004534721375, -0.06978213787078857, 0.0734071284532547, 0.22963999211788177, -0.3089492619037628, -0.012102121487259865, 0.20411710441112518, -0.04969969764351845, -0.3020738661289215, -0.2785300612449646, 0.27746355533599854, -0.26552778482437134, 0.06797383725643158, 0.4710848927497864, 0.46889597177505493, -0.2551950216293335, -0.17113101482391357, 0.3395123779773712, -0.044301312416791916, -0.26155808568000793, 0.36418360471725464, -0.024020548909902573, 0.04245296120643616, -0.07344060391187668, -0.2972632646560669, -0.12087037414312363, -0.2895599603652954, 0.4420586824417114, 0.13544853031635284, 0.34154075384140015, -0.02619035169482231, 0.12761084735393524, 0.2026841938495636, -0.05916573479771614, -0.22139936685562134, -0.3325134813785553, 0.028957057744264603, 0.16106127202510834, -0.10341250896453857, -0.12072344124317169, -0.19696569442749023, 0.04808708280324936, 0.03191867098212242, -0.006311651319265366, -0.14295345544815063, -0.3022879362106323, -0.19323228299617767, 0.08674019575119019, -0.23594516515731812, 0.18557167053222656, 0.45733898878097534, 0.12760373950004578, -0.0033294446766376495, -0.15177741646766663, -0.36720484495162964, 0.11256231367588043, 0.301662415266037, 0.23079931735992432, 0.2729858160018921, 0.39492687582969666, 0.07741233706474304, 0.2350449413061142, 0.5061246752738953, -0.06455394625663757, 0.27263274788856506, 0.0031984560191631317, -0.08928477764129639, -0.11308764666318893, -0.11921193450689316, -0.024755554273724556, -0.4626018702983856, -0.1816152185201645, 0.09491077065467834, -0.12754833698272705, -0.4466018080711365, -0.01568450778722763, 0.026348531246185303, -0.3497272729873657, -0.21195554733276367, 0.18441031873226166, -0.16684922575950623, -0.11752722412347794, -0.13588425517082214, 0.12384020537137985, -0.2549346685409546, -0.04039356857538223, 0.15179549157619476, -0.21028698980808258, 0.22321373224258423, -0.09405871480703354, -0.37761709094047546, -0.3682340085506439, 0.0383082740008831, 0.37070798873901367, 0.22726644575595856, 0.4374275505542755, 0.10439558327198029, -0.19808462262153625, -0.09861113131046295, 0.2808299958705902, 0.6198736429214478, -0.6304342150688171, -0.12816178798675537, 0.09618762135505676, 0.36824342608451843, -0.2435978651046753, -0.08077521622180939, -0.46084827184677124, 0.3733656704425812, 0.30687758326530457, 0.28070271015167236, -0.15486283600330353, 0.09294027835130692, 0.04942096024751663, 0.02523840218782425, -0.060713090002536774, -0.04444306716322899, 0.035493675619363785, -0.11687696725130081, -0.3962548077106476, 0.09428942948579788, 0.24997363984584808, -0.06138830631971359, 0.31681856513023376, -0.018904251977801323, 0.03906315565109253, 0.008619681000709534, 0.04185303673148155, -0.012967534363269806, 0.388538122177124, -0.04425124078989029, -0.24500606954097748, 0.05843893811106682, 0.31718605756759644, -0.08826014399528503, 0.43159326910972595, 0.04965614527463913, -0.13108623027801514, 0.3779813051223755, -0.15647266805171967, 0.42541301250457764, 0.10555358231067657, -0.19037243723869324, 0.12157709896564484, -0.21446415781974792, 0.22917617857456207, -0.1548059582710266, -0.34403082728385925, 0.6550678610801697, 0.19910061359405518, -0.23586447536945343, -0.2472992092370987, 0.3096123933792114, 0.02461462840437889, -0.1439257711172104, 0.5379695296287537, -0.15275616943836212, -0.0670778751373291, 0.5585798621177673, 0.2637794315814972, 0.8329245448112488, -0.12230078876018524, -0.018281687051057816, 0.13192924857139587, 0.3041372299194336, 0.25061503052711487, 0.09213748574256897, -0.03530946373939514, -0.5042000412940979, 0.015971414744853973, -0.25559306144714355, -0.11033022403717041, 0.018902935087680817, 0.15001040697097778, -0.4946008324623108, 0.270639568567276, -0.15615227818489075, 0.34598585963249207, 0.26621490716934204, -0.3297908902168274, 0.03956250846385956, -0.3122583031654358, -0.11785170435905457, 0.12595497071743011, 0.0497555136680603, 0.07828624546527863, 0.05428893119096756, -0.026649560779333115, -0.0591447651386261, -0.43081575632095337, -0.4156927466392517, 0.010194007307291031, -0.5635716915130615, 0.151860311627388, 0.3701198697090149, -0.008729524910449982, 0.11362920701503754, 0.4090120196342468, -0.094670370221138, 0.1476898491382599, -0.12515927851200104, -0.3167476952075958, 0.5444480776786804, 0.2484874725341797, 0.3135420083999634, 0.08970964699983597, 0.3176913261413574, 0.03807780146598816, -0.14182347059249878, 0.16217470169067383, -0.04454084113240242, -0.2405182272195816, -0.24509617686271667, 0.20693804323673248, -0.029270797967910767, -0.5867339968681335, -0.22533656656742096, -0.370573490858078, -0.2879403531551361, -0.10801172256469727, 0.030230345204472542, 0.15490135550498962, 0.006442774087190628, 0.28609731793403625, 0.10081061720848083, -0.1333709955215454, 0.27998045086860657, 0.1674966812133789, 0.055917587131261826, -0.00014808028936386108, 0.29792100191116333, 0.09628130495548248, -0.2989427447319031, -0.16638343036174774, 0.029355421662330627, -0.1696302592754364, -0.2207196056842804, 0.24328681826591492, -0.24315717816352844, -0.2895553708076477, -0.12345653772354126, 0.6155183911323547, -0.011394660919904709, 0.24778586626052856, -0.2975316047668457, -0.5232377052307129, -0.104623943567276, 0.2594071626663208, 0.1572716385126114, -0.06601238250732422, -0.27005791664123535, -0.01813427358865738, 0.029995178803801537, -0.07983283698558807, -0.21245789527893066, 0.05133018642663956, -0.2435930073261261, 0.3656306862831116, -0.2124854177236557, 0.11730635911226273, 0.2154253125190735, 0.060468148440122604, 0.043703608214855194, 0.5847088098526001, -0.08702351152896881, -0.14225390553474426, -0.09871755540370941, 0.1231655478477478, 0.16401585936546326, -0.26943379640579224, 0.1549951434135437, 0.1058223694562912, 0.03269527852535248, -0.23648779094219208, -0.2516804039478302, -0.09570812433958054, -0.06975622475147247, 0.3707568943500519, -0.02856387570500374, -0.019159674644470215, 0.175129696726799, 0.26837795972824097, -0.31102216243743896, 0.09671581536531448, -0.03709835559129715, 0.1545804888010025, 0.08803246915340424, 0.017965897917747498, -0.15134713053703308, 0.2158646583557129, 0.047931086272001266, 0.0016519688069820404, 0.44242745637893677, -0.4999361038208008, -0.12750914692878723, 0.08581539988517761, 0.3875507414340973, 0.26690423488616943, -0.3764379918575287, 0.026412183418869972, -0.09149856120347977, 0.11920250952243805, -0.18798482418060303, 0.08784009516239166, 0.2145940363407135, -0.11686240881681442, 0.0736590176820755, 0.447864294052124, -0.10917015373706818, -0.1936970055103302, 0.21084554493427277, -0.2718011140823364, -0.09282607585191727, -0.2661345601081848, 0.14264386892318726, 0.46911850571632385, -0.16440095007419586, -0.046671684831380844, 0.06560160219669342, -0.1586800068616867, -0.01968521624803543, -0.14800287783145905, 0.18898260593414307, -0.2101445198059082, -0.05769471079111099, -0.010925564914941788, 0.39196720719337463, -0.17781884968280792, 0.6537026762962341, 0.2860993444919586, -0.14116081595420837, 0.28288018703460693, 0.19170892238616943, 0.35177507996559143, -0.24546287953853607, 0.024698656052350998, -0.16624709963798523, -0.24625904858112335, -0.3175504207611084, -0.0639352798461914, -0.16216282546520233, -0.2509220540523529, -0.10422518849372864, -0.3324878513813019, -0.1786770075559616, -0.22125287353992462, 0.3578245937824249, 0.1460265815258026, 0.07315430790185928, -0.39230042695999146, -0.33352726697921753, -0.2393028736114502, 0.3847888708114624, -0.3186614215373993, 0.23361122608184814, -0.18256182968616486, -0.05857023596763611, 0.06574901938438416, 0.42162322998046875, 0.45120736956596375, 0.5373047590255737, -0.2381306290626526, 0.1579475849866867, -0.27855774760246277, -0.20039492845535278, 0.20337076485157013, -0.021006539463996887, 0.09944934397935867, -0.2147977501153946, 0.419068306684494, 0.053044602274894714, -0.04061053320765495, 0.07293401658535004, -0.04111650213599205, 0.3476888835430145, 0.051304157823324203, 0.15950746834278107, -0.2123766541481018, -0.1451214849948883, -0.10847477614879608, -0.3565240800380707, -0.2787145972251892, -0.023723330348730087, 0.1824805736541748, -0.10209634900093079, 0.3940359354019165, -0.133792906999588, 0.06279130280017853, 0.11430816352367401, 0.21229249238967896, 0.14250606298446655, -0.1645837128162384, -0.28561103343963623, 0.12502269446849823, -0.2272668182849884, 0.17045563459396362, -0.12379294633865356, 0.07605784386396408, 0.26858168840408325, 0.25157907605171204, 0.20736707746982574, 0.5384877920150757, 0.20722118020057678, -0.4194060266017914, -0.16950146853923798, 0.4486175775527954, -0.13973881304264069, -0.42036646604537964, 0.15626364946365356, 0.11484776437282562, 0.21452951431274414, -0.3656754493713379, 0.17757758498191833, -0.015400607138872147, 0.07399796694517136, -0.3304443359375, 0.07966238260269165, -0.24069568514823914, -0.016954250633716583, 0.16375793516635895, 0.33904677629470825, 0.17891013622283936, -0.027545832097530365, -0.34326133131980896, 0.07166432589292526, -0.05773547664284706, -0.3128173053264618, 0.33024415373802185, 0.04455357417464256, 0.4066326320171356, -0.012024208903312683, -0.0799497663974762, -0.30371490120887756, -0.07676180452108383, -0.07182959467172623, -0.07163786143064499, -0.5616915225982666, 0.11403631418943405, 0.06241796165704727, -0.11274099349975586, -0.13318586349487305, 0.021229635924100876, 0.08357001096010208, 0.3386072516441345, -0.07914692163467407, -0.5717989206314087, 0.35053691267967224, -0.39855727553367615, -0.3103995621204376, 0.22232136130332947, -0.10767385363578796, -0.09207513183355331, -0.06955228745937347, -0.7453977465629578, -0.12667353451251984, 0.3024384379386902, 0.01458157878369093, 0.03917485848069191, -0.08217449486255646, -0.2075335681438446, 0.046532463282346725, -0.13954541087150574, 0.35837429761886597, 0.1099679246544838, 0.031161127611994743, 0.1420658528804779, -0.31700944900512695 ]
https://github.com/huggingface/datasets/issues/3317
Add desc parameter to Dataset filter method
Hi, `Dataset.map` allows more generic transforms compared to `Dataset.filter`, which purpose is very specific (to filter examples based on a condition). That's why I don't think we need the `desc` parameter there for consistency. #3196 has added descriptions to the `Dataset` methods that call `.map` internally, but not for the `filter` method, so we should do that. Do you have a description in mind? Maybe `"Filtering the dataset"` or `"Filtering the indices"`? If yes, feel free to open a PR.
**Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A
80
Add desc parameter to Dataset filter method **Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A Hi, `Dataset.map` allows more generic transforms compared to `Dataset.filter`, which purpose is very specific (to filter examples based on a condition). That's why I don't think we need the `desc` parameter there for consistency. #3196 has added descriptions to the `Dataset` methods that call `.map` internally, but not for the `filter` method, so we should do that. Do you have a description in mind? Maybe `"Filtering the dataset"` or `"Filtering the indices"`? If yes, feel free to open a PR.
[ -0.16747093200683594, 0.14210611581802368, -0.13805517554283142, -0.3212195038795471, 0.15863533318042755, -0.21651625633239746, -0.00882871076464653, 0.23593032360076904, -0.16634036600589752, 0.3248024582862854, 0.24525193870067596, 0.4766327142715454, 0.0076422058045864105, 0.0727194994688034, -0.09545789659023285, 0.016076914966106415, -0.14575278759002686, 0.07218573987483978, -0.15230043232440948, 0.18244938552379608, -0.28572702407836914, -0.16951775550842285, 0.011649250984191895, -0.3042532801628113, 0.11692382395267487, 0.14940592646598816, -0.06547555327415466, -0.13142520189285278, -0.18529781699180603, -0.5306233763694763, 0.34232375025749207, 0.6408709287643433, 0.0924043133854866, 0.33492693305015564, -0.00011243041808484122, -0.11061687767505646, 0.3982706665992737, -0.07816485315561295, -0.009314854629337788, -0.104173943400383, -0.5723865032196045, -0.3134419620037079, -0.035241588950157166, -0.3201681673526764, -0.004651026800274849, 0.3851120173931122, -0.18992425501346588, -0.2564958333969116, -0.019110769033432007, 0.13800667226314545, 0.20098675787448883, -0.18632593750953674, -0.4003850817680359, -0.013629019260406494, 0.028471235185861588, 0.4224475026130676, -0.10319152474403381, 0.04017544537782669, 0.7769067287445068, 0.057591378688812256, 0.04541584104299545, 0.09227235615253448, -0.08563831448554993, -0.2676772177219391, 0.3400929272174835, -0.30478525161743164, 0.22678562998771667, -0.3885219395160675, 0.27819719910621643, 0.1810554563999176, 0.6303966045379639, -0.00820998102426529, -0.35855773091316223, 0.07927750796079636, -0.0362209789454937, -0.09145954996347427, -0.19725924730300903, -0.20139648020267487, -0.07896369695663452, 0.10849116742610931, -0.32450318336486816, -0.2121683955192566, -0.16313625872135162, -0.028003036975860596, -0.1489374041557312, 0.07385389506816864, -0.08623769134283066, 0.03717967867851257, 0.02638639323413372, -0.03726963698863983, 0.10015329718589783, -0.36462974548339844, 0.12023533880710602, 0.1487908959388733, 0.12811334431171417, -0.3785378336906433, 0.3533807396888733, 0.12394778430461884, 0.1833365559577942, 0.06174871325492859, -0.0448160246014595, 0.09170393645763397, 0.07546181976795197, 0.07778435200452805, 0.07380479574203491, -0.007198243401944637, 0.3873310089111328, 0.26773396134376526, 0.07172621786594391, -0.27466413378715515, -0.29389870166778564, -0.06412304192781448, 0.43384093046188354, 0.0020194966346025467, 0.20868143439292908, 0.3344275653362274, -0.0012458506971597672, -0.31606021523475647, -0.12871408462524414, 0.025985099375247955, -0.029195468872785568, -0.21002061665058136, 0.1387862116098404, 0.023308295756578445, 0.3368462026119232, 0.34514695405960083, 0.007432278245687485, -0.19277040660381317, 0.1725756675004959, -0.14356586337089539, -0.034297507256269455, -0.10220751166343689, -0.16543905436992645, 0.10718488693237305, 0.0343049131333828, -0.30313050746917725, 0.1160971075296402, 0.01755177229642868, 0.034684713929891586, 0.1440620720386505, -0.22138915956020355, -0.055185429751873016, 0.1995568573474884, 0.203617125749588, -0.618179202079773, -0.0960792601108551, -0.03224213048815727, 0.049128055572509766, -0.3058193624019623, 0.3823823928833008, -0.2626706659793854, -0.2246113270521164, 0.09136852622032166, 0.17615877091884613, 0.19005374610424042, -0.003281638026237488, 0.11508340388536453, 0.4863203763961792, -0.23397031426429749, -0.43429967761039734, 0.17956282198429108, -0.04750945419073105, -0.48011699318885803, -0.34796878695487976, 0.0326320081949234, 0.27446305751800537, -0.6401585340499878, -0.08840570598840714, -0.490425705909729, 0.2578170895576477, 0.24156489968299866, -0.04146799072623253, -0.4212455451488495, 0.051277898252010345, 0.1939627081155777, 0.21481020748615265, 0.38794758915901184, 0.24067720770835876, -0.455279678106308, 0.3321773111820221, -0.11098803579807281, 0.051120780408382416, 0.12187979370355606, 0.06728953123092651, 0.5852999687194824, -0.3640660345554352, 0.1762377917766571, -0.009897427633404732, -0.5318033695220947, -0.0853491872549057, -0.2202700823545456, -0.051646724343299866, 0.3398790955543518, -0.03156249225139618, -0.03408470377326012, 0.15166252851486206, 0.343598872423172, -0.4623870253562927, 0.06886109709739685, 0.07104433327913284, -0.09702335298061371, 0.0535934679210186, 0.5854914784431458, 0.04462369531393051, -0.1393263041973114, -0.29710114002227783, -0.25347277522087097, 0.1182585284113884, 0.10554201900959015, -0.3534534275531769, 0.2817745804786682, -0.34473752975463867, -0.13514217734336853, 0.0010100100189447403, 0.2822403013706207, -0.09325788915157318, 0.038308389484882355, -0.135416641831398, -0.10017998516559601, -0.08475428074598312, -0.1314859390258789, -0.0863402709364891, -0.07012246549129486, -0.2698427438735962, 0.3621350824832916, 0.22055040299892426, 0.006853768602013588, -0.011385808698832989, -0.23045557737350464, 0.04234810173511505, 0.20532751083374023, -0.01628345623612404, -0.22858843207359314, 0.2211368978023529, 0.1654394268989563, -0.1939377337694168, 0.08758258819580078, 0.4406787157058716, 0.2429725080728531, -0.008568398654460907, 0.03470204398036003, 0.36840948462486267, 0.1853276938199997, -0.12758281826972961, -0.2718527317047119, 0.28540104627609253, -0.000025231391191482544, 0.18273499608039856, -0.006737429648637772, 0.07934781908988953, 0.19677618145942688, -0.054790347814559937, -0.228999525308609, -0.09250010550022125, 0.003169439733028412, 0.33295726776123047, -0.08295779675245285, 0.303777277469635, -0.18293994665145874, 0.17142218351364136, 0.3942769765853882, -0.032921865582466125, -0.031158939003944397, 0.26027265191078186, 0.26267921924591064, -0.00849706307053566, 0.26894620060920715, 0.28971442580223083, 0.5145266652107239, 0.3207746148109436, -0.20994198322296143, -0.12031253427267075, 0.20340953767299652, 0.05657131224870682, 0.25354647636413574, 0.17090913653373718, 0.15783564746379852, -0.09183604270219803, 0.07518191635608673, 0.2780883014202118, 0.013074621558189392, -0.24107806384563446, 0.18978610634803772, -0.18859295547008514, 0.024164382368326187, -0.06339467316865921, -0.1501569300889969, -0.18201947212219238, 0.12067925184965134, -0.09774576872587204, -0.07276032865047455, -0.26025646924972534, 0.0857536643743515, -0.010547619313001633, -0.33534806966781616, 0.19414463639259338, -0.4066919982433319, 0.6620485186576843, -0.021816328167915344, -0.1180650070309639, -0.15840975940227509, -0.0623270608484745, -0.12566447257995605, -0.003662385046482086, 0.02541162818670273, -0.059193484485149384, 0.4129062294960022, 0.5201869606971741, 0.39525461196899414, -0.39220288395881653, -0.7190426588058472, -0.18600882589817047, 0.1413690596818924, 0.3410422205924988, 0.10567659139633179, 0.10966959595680237, -0.11399318277835846, -0.17507147789001465, 0.007892288267612457, -0.056861840188503265, -0.002921091392636299, -0.20369009673595428, 0.06188172474503517, 0.011536598205566406, -0.2544606924057007, -0.15152287483215332, -0.27357685565948486, -0.38456547260284424, -0.1063527911901474, -0.6283183693885803, 0.20630526542663574, 0.19305630028247833, -0.0818888321518898, -0.17610664665699005, -0.148476704955101, -0.05847952514886856, -0.12237506359815598, -0.22859956324100494, 0.21858052909374237, -0.18342280387878418, -0.0817578136920929, -0.22438183426856995, -0.18128088116645813, -0.02261185273528099, 0.3782041072845459, -0.037041738629341125, -0.2549465596675873, -0.23894120752811432, 0.38936227560043335, 0.0703997015953064, 0.01005503535270691, 0.575745165348053, 0.025876939296722412, -0.0952552855014801, -0.04358472675085068, -0.7750326991081238, -0.03914152830839157, 0.6759199500083923, 0.2116873860359192, 0.270070344209671, 0.7928591966629028, 0.060033004730939865, 0.5650785565376282, 0.03708861768245697, -0.10392366349697113, 0.3114767074584961, 0.285917192697525, 0.25293251872062683, -0.05636826902627945, -0.45295217633247375, 0.1668880432844162, 0.05190638452768326, -0.18829737603664398, 0.205563023686409, -0.008776163682341576, -0.3153160512447357, 0.15192176401615143, -0.21788981556892395, -0.06681094318628311, -0.22986292839050293, 0.01262990478426218, 0.002782389521598816, 0.4932940602302551, -0.1299949586391449, -0.038629211485385895, -0.2027534395456314, 0.13472715020179749, 0.018377861008048058, 0.18020102381706238, 0.454493910074234, -0.21251294016838074, -0.20003512501716614, -0.1254371702671051, -0.23057499527931213, 0.24585101008415222, 0.33146774768829346, 0.11416811496019363, -0.28016766905784607, 0.06570347398519516, -0.19245244562625885, 0.24069416522979736, 0.747721254825592, -0.5292220711708069, -0.21451614797115326, 0.025994598865509033, -0.31895899772644043, -0.26573970913887024, 0.04603936895728111, 0.29106369614601135, 0.4161969721317291, 0.16290831565856934, -0.10580512881278992, -0.1951509565114975, 0.02287433296442032, 0.061296820640563965, -0.19239374995231628, 0.040269721299409866, -0.22540311515331268, 0.30780866742134094, -0.11927743256092072, 0.014931892976164818, 0.004103735089302063, 0.09420338273048401, 0.049998875707387924, 0.10942526906728745, -0.19744576513767242, 0.24633845686912537, -0.15897151827812195, 0.22110752761363983, -0.17605862021446228, 0.08869887888431549, 0.4882599711418152, 0.15494447946548462, -0.18673014640808105, -0.03381923586130142, 0.07791973650455475, 0.24674004316329956, -0.3495524823665619, -0.16971206665039062, -0.11839938908815384, -0.036320701241493225, 0.582960307598114, 0.299967885017395, 0.21049433946609497, 0.3303307592868805, 0.05421460047364235, 0.05588821321725845, -0.18730154633522034, 0.0037213205359876156, -0.07479190826416016, -0.01110383402556181, -0.27957117557525635, -0.47914284467697144, 0.4231775999069214, 0.09159868955612183, -0.13259601593017578, 0.42206257581710815, 0.35567086935043335, -0.3571290969848633, 0.06271465867757797, 0.01140519231557846, 0.7411026954650879, 0.25543519854545593, -0.3337073028087616, -0.37761199474334717, -0.20324435830116272, -0.04150062054395676, 0.34975314140319824, -0.1329997032880783, 0.1716662347316742, -0.33579081296920776, -0.05932678282260895, -0.011127222329378128, 0.43074581027030945, 0.2322162240743637, -0.3475329577922821, 0.22823119163513184, 0.03864697366952896, 0.09596720337867737, 0.3614652454853058, 0.2389320433139801, -0.05108184367418289, -0.10734117031097412, 0.30520129203796387, 0.17362268269062042, -0.14731451869010925, -0.20202863216400146, 0.0821555033326149, -0.18118450045585632, 0.38007602095603943, -0.131282776594162, -0.212629035115242, -0.2832834720611572, -0.5943081974983215, 0.2044811099767685, 0.028541121631860733, -0.08658723533153534, 0.49902549386024475, -0.20865583419799805, -0.25523072481155396, 0.16739581525325775, -0.03183692693710327, 0.20028945803642273, 0.1674371361732483, 0.45964863896369934, 0.03109755553305149, -0.16038519144058228, 0.32137531042099, 0.12235117703676224, -0.004625856876373291, 0.1685011386871338, -0.002676015254110098, -0.598487913608551, -0.2744728922843933, -0.16697312891483307, 0.30699604749679565, -0.12075655907392502, -0.2682993412017822, 0.009431302547454834, -0.15496926009655, -0.06645999103784561, 0.11517699062824249, 0.1382787525653839, -0.029516078531742096, 0.5042104721069336, -0.07783135771751404, 0.028340764343738556, -0.07036837935447693, -0.06332453340291977, -0.23067671060562134, 0.023521561175584793, 0.04740656539797783, -0.2809295952320099, -0.21307137608528137, -0.10874693095684052, 0.053403906524181366, 0.0724460780620575, 0.2511061429977417, 0.18888232111930847, -0.19409126043319702, 0.07991555333137512, 0.18275678157806396, 0.14978842437267303, -0.016710780560970306, 0.13405491411685944, -0.3087009787559509, -0.1221703588962555, -0.23817695677280426, -0.02347804605960846, -0.18322144448757172, 0.2500419020652771, -0.3270527720451355, -0.09204800426959991, -0.015115445479750633, 0.02617754228413105, -0.3392028212547302, 0.0019795554690063, 0.2592107057571411, 0.2608150243759155, -0.049638234078884125, 0.32145729660987854, -0.23421482741832733, -0.1748262196779251, 0.0001852419227361679, 0.20629651844501495, -0.05040827393531799, -0.17577874660491943, 0.02624504268169403, 0.11632823944091797, 0.005705671384930611, 0.16847440600395203, 0.031820476055145264, -0.17827634513378143, -0.11475357413291931, -0.03496893122792244, 0.014652270823717117, -0.008692242205142975, -0.12291695177555084, 0.0369507297873497, 0.1227363646030426, -0.29574069380760193, 0.09188047051429749, 0.3713129758834839, 0.039160970598459244, 0.22131207585334778, 0.10126300901174545, 0.33254244923591614, -0.0016208668239414692, -0.04164915531873703, -0.03318251669406891, 0.11583614349365234, -0.0071661025285720825, -0.21192917227745056, 0.11414195597171783, 0.11821040511131287, 0.20221835374832153, 0.7615476846694946, 0.06600259244441986, -0.20551931858062744, -0.367069810628891, 0.23257090151309967, 0.2035415768623352, 0.2610618472099304, -0.010579487308859825, 0.041962653398513794, 0.07656155526638031, 0.155721977353096, 0.21526512503623962, 0.0404815673828125, 0.010375600308179855, 0.047982215881347656, 0.42578303813934326, 0.11471188813447952, 0.12320772558450699, -0.1540423333644867, 0.3795345425605774, 0.36430883407592773, 0.4355716109275818, -0.08378736674785614, 0.35718241333961487, 0.11404788494110107, -0.03598079830408096, 0.02908070757985115, 0.34568721055984497, 0.5526979565620422, 0.22509527206420898, 0.022801216691732407, 0.4615371525287628, -0.07387563586235046, 0.2255285233259201, 0.19690722227096558, -0.1867157518863678, 0.26555925607681274, 0.33246710896492004, -0.5331009030342102, -0.15341341495513916, -0.27454453706741333, -0.0026205945760011673, -0.07884855568408966, 0.012236323207616806, 0.21356625854969025, -0.1093502938747406, -0.08376641571521759, 0.26636263728141785, -0.057592544704675674, 0.05000689625740051, -0.07924365997314453, 0.5186282396316528, -0.06357093155384064, -0.1355910748243332, 0.05177614092826843, -0.22293516993522644, -0.12099277228116989, 0.29341956973075867, -0.16707143187522888, -0.2024565488100052, -0.18814556300640106, -0.1823449730873108, 0.3540040850639343, 0.38369956612586975, -0.0686793178319931, 0.29856330156326294, -0.11293789744377136, 0.011470763012766838, -0.002989456057548523, -0.20224037766456604, 0.07593049854040146, 0.05830996483564377, -0.18737611174583435, -0.00041558220982551575, -0.11204619705677032, 0.16151538491249084, -0.002932371571660042, 0.009590335190296173, -0.005584154278039932, 0.2989864945411682, -0.48552584648132324, 0.14307761192321777, 0.6264705657958984, 0.001753486692905426, 0.12733206152915955, 0.07548124343156815, -0.18722328543663025, -0.5071874856948853, 0.44773954153060913, -0.20344208180904388, -0.04557628557085991, -0.02391204610466957, 0.1004607304930687, -0.1788470447063446, -0.1175331175327301, 0.012718688696622849, -0.23369362950325012, -0.31801238656044006, -0.24478411674499512, -0.28033995628356934, -0.48602643609046936, 0.29123711585998535, -0.025189146399497986, 0.447660356760025, 0.07085861265659332, 0.0687679797410965, 0.08046254515647888, 0.10565724223852158, -0.5820745229721069, 0.02998083457350731, -0.11954472959041595, -0.36211010813713074, -0.03731219843029976, 0.148047536611557, -0.011908182874321938, 0.05744152516126633, -0.08516120910644531, 0.1060510128736496, -0.12810227274894714, 0.04955753684043884, -0.31355762481689453, 0.23727375268936157, 0.2516655921936035, 0.43517598509788513, 0.05549449101090431, 0.00768158957362175, 0.2239099144935608, -0.04246896877884865, 0.22631001472473145, 0.10529603064060211, 0.08581715822219849, -0.14712318778038025, -0.015181168913841248, -0.10622362792491913, 0.27567848563194275, -0.21477331221103668, -0.3290965259075165, -0.1847340613603592, -0.20368535816669464, -0.1931263953447342, 0.03295024111866951, -0.13440567255020142, -0.16883839666843414, -0.0009425729513168335, -0.1033240333199501, -0.18804407119750977, 0.1785888969898224, 0.09545357525348663, 0.14340537786483765, -0.01766868680715561, -0.22238028049468994, 0.49569839239120483, -0.32628870010375977, -0.30032044649124146, -0.2647591829299927, 0.27064424753189087, -0.5723382234573364, 0.18400351703166962, -0.11063622683286667, -0.4702553451061249, 0.4095804989337921, -0.20862191915512085, -0.14163069427013397, 0.39024144411087036, -0.08090740442276001, 0.10262522101402283, -0.06976532936096191, 0.14370569586753845, -0.0027660876512527466, -0.14075270295143127, -0.21542903780937195, -0.13161110877990723 ]
https://github.com/huggingface/datasets/issues/3317
Add desc parameter to Dataset filter method
I'm personally ok with adding the `desc` parameter actually. Let's say you have different filters, it can be nice to differentiate between the different filters when they're running no ?
**Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A
30
Add desc parameter to Dataset filter method **Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A I'm personally ok with adding the `desc` parameter actually. Let's say you have different filters, it can be nice to differentiate between the different filters when they're running no ?
[ -0.1440148502588272, 0.0003163963556289673, -0.1841549426317215, -0.29663074016571045, 0.15356597304344177, -0.23089346289634705, 0.000639989972114563, 0.08762358129024506, 0.016992297023534775, 0.41041386127471924, 0.22751417756080627, 0.3330959379673004, -0.05311328172683716, 0.12193012982606888, -0.18074196577072144, -0.0010678209364414215, -0.2211546003818512, -0.006608195602893829, 0.10802343487739563, 0.09535810351371765, -0.17771755158901215, -0.3088027238845825, 0.12498930096626282, -0.43669283390045166, 0.11988237500190735, 0.18533378839492798, -0.08195924758911133, -0.13525399565696716, -0.16393078863620758, -0.5256620049476624, 0.344674289226532, 0.5576267838478088, 0.053538404405117035, 0.25644800066947937, -0.00011358593474142253, -0.11331287026405334, 0.4805075526237488, -0.12922164797782898, -0.03386864811182022, 0.03833679109811783, -0.5301126837730408, -0.31383153796195984, -0.054059021174907684, -0.3535219430923462, -0.02948889508843422, 0.5981113314628601, -0.20705528557300568, -0.30962011218070984, -0.14657972753047943, 0.14791986346244812, 0.2233920395374298, -0.218277707695961, -0.457506000995636, 0.027770403772592545, -0.0196627676486969, 0.5463710427284241, -0.18989264965057373, 0.01160895824432373, 0.7884306907653809, 0.07813633978366852, 0.028110072016716003, 0.010344953276216984, 0.04821902513504028, -0.32227399945259094, 0.22149711847305298, -0.2680911421775818, 0.25825363397598267, -0.2495916187763214, 0.28328198194503784, 0.048252686858177185, 0.5296273827552795, 0.04700317978858948, -0.36015987396240234, 0.07625178247690201, 0.06326007843017578, -0.2518523633480072, -0.29712221026420593, -0.11998006701469421, -0.11854442954063416, 0.1259622722864151, -0.24015909433364868, -0.32921555638313293, -0.20431748032569885, -0.01000910997390747, -0.06751151382923126, 0.03739885240793228, -0.09400967508554459, 0.06745272129774094, -0.1200440376996994, 0.09465295821428299, 0.14611399173736572, -0.41647568345069885, 0.11936120688915253, 0.11087999492883682, 0.047469113022089005, -0.42991799116134644, 0.35209882259368896, 0.21062412858009338, 0.09377661347389221, 0.2312268614768982, -0.20260204374790192, -0.09935312718153, 0.10869244486093521, 0.08073601126670837, 0.04560421034693718, -0.04386615380644798, 0.437976211309433, 0.2069622278213501, -0.024226248264312744, -0.46840545535087585, -0.2331516593694687, -0.13063690066337585, 0.46029242873191833, 0.08978547155857086, 0.2990950345993042, 0.22389376163482666, -0.01403995230793953, -0.3715575039386749, 0.014429530128836632, -0.04872947558760643, 0.11529282480478287, -0.2191619724035263, 0.16328096389770508, 0.05820111930370331, 0.3037544786930084, 0.37745389342308044, -0.052252396941185, -0.1807083934545517, 0.21169783174991608, -0.10038017481565475, -0.05904093012213707, -0.053490135818719864, -0.14352376759052277, 0.14896675944328308, 0.07074645161628723, -0.3321250379085541, 0.04916020482778549, 0.040488678961992264, -0.06910145282745361, 0.10031691193580627, -0.2362869530916214, -0.08577242493629456, 0.034436363726854324, 0.20416170358657837, -0.5078454613685608, -0.04826401174068451, -0.016592681407928467, 0.06106497347354889, -0.27528899908065796, 0.39211103320121765, -0.3343828320503235, -0.19936241209506989, 0.032570675015449524, 0.17901155352592468, 0.24982969462871552, 0.009407076984643936, 0.13279978930950165, 0.42850548028945923, -0.17550545930862427, -0.3317281901836395, 0.13466118276119232, -0.009663045406341553, -0.5765020847320557, -0.3706549406051636, -0.12823639810085297, 0.20922967791557312, -0.6106880307197571, -0.16114036738872528, -0.5969176292419434, 0.19449441134929657, 0.3304440677165985, 0.07023066282272339, -0.3924803137779236, 0.09420613944530487, 0.19036534428596497, 0.2160070389509201, 0.5251374840736389, 0.22725245356559753, -0.3510283827781677, 0.41375473141670227, -0.13770931959152222, 0.02226170338690281, 0.17883089184761047, 0.16506679356098175, 0.4517054557800293, -0.27438145875930786, 0.23021036386489868, -0.012041028589010239, -0.547255277633667, -0.11709447205066681, -0.23045936226844788, 0.04032544046640396, 0.3741799592971802, 0.04663419350981712, 0.043017152696847916, 0.25044742226600647, 0.4532703757286072, -0.3723925054073334, 0.09699418395757675, 0.112510547041893, -0.1428336501121521, 0.03367561846971512, 0.6735202670097351, 0.10410599410533905, -0.1718372255563736, -0.2886454164981842, -0.022883214056491852, 0.08436185866594315, 0.13683387637138367, -0.44417259097099304, 0.34261640906333923, -0.32966768741607666, -0.14035558700561523, 0.11512165516614914, 0.3602663278579712, 0.025135168805718422, -0.011833664029836655, -0.13851197063922882, -0.04216461628675461, -0.0077974628657102585, -0.09925205260515213, -0.02720796875655651, -0.1675533801317215, -0.301852285861969, 0.4546537697315216, 0.2324678748846054, 0.033753715455532074, 0.009108919650316238, -0.22009789943695068, -0.008985713124275208, 0.15909935534000397, 0.06511550396680832, -0.19956842064857483, 0.07693646848201752, 0.20702221989631653, -0.3075040578842163, 0.1418103277683258, 0.3447071313858032, 0.19087281823158264, 0.09607131779193878, 0.0394720733165741, 0.27175211906433105, 0.21353277564048767, -0.22385811805725098, -0.20006728172302246, 0.3168964385986328, 0.01882014237344265, 0.1871635466814041, -0.04020464047789574, 0.03825025260448456, 0.20278452336788177, -0.09148763120174408, -0.12120825797319412, 0.03818121552467346, 0.1262209117412567, 0.27396321296691895, -0.06783393770456314, 0.23800915479660034, -0.30328643321990967, 0.05928300321102142, 0.39167046546936035, -0.0610118992626667, 0.0013311877846717834, 0.2145422399044037, 0.355715274810791, 0.01879669353365898, 0.3013976812362671, 0.10453993082046509, 0.6633809804916382, 0.37809181213378906, -0.33291658759117126, -0.0906171053647995, 0.14404049515724182, 0.01020866259932518, 0.1558593362569809, 0.03791005536913872, 0.13438338041305542, 0.014372650533914566, 0.14606580138206482, 0.16431035101413727, -0.0245062168687582, -0.26199594140052795, 0.15120431780815125, -0.15257303416728973, -0.024855270981788635, -0.1179589033126831, -0.03193926811218262, -0.2548573315143585, 0.08286596089601517, 0.038239724934101105, -0.047503065317869186, -0.2251361906528473, 0.11188504099845886, -0.011321943253278732, -0.17437578737735748, 0.1434071660041809, -0.5808548331260681, 0.7539013624191284, -0.0037871990352869034, -0.07273612916469574, -0.1565188765525818, -0.04833929240703583, -0.04446898400783539, -0.0035386811941862106, 0.0026922598481178284, -0.14082324504852295, 0.4450814127922058, 0.5670289397239685, 0.44462651014328003, -0.3200169503688812, -0.635463297367096, -0.240263432264328, 0.19705291092395782, 0.3251095116138458, -0.03955133259296417, 0.08587010204792023, -0.03156662359833717, -0.22231683135032654, -0.015180283226072788, 0.11841435730457306, 0.015618069097399712, -0.22860124707221985, 0.15612733364105225, -0.054760754108428955, -0.23412731289863586, -0.045340828597545624, -0.30631837248802185, -0.2547655403614044, -0.07344374060630798, -0.5645946860313416, 0.172432541847229, 0.13854949176311493, -0.12426528334617615, -0.26333701610565186, -0.17806509137153625, -0.06986211240291595, -0.13420811295509338, -0.2411992996931076, 0.1913299411535263, -0.20843292772769928, -0.10730406641960144, -0.17830629646778107, -0.0993313267827034, -0.037490565329790115, 0.22090348601341248, -0.13702014088630676, -0.20506100356578827, -0.20753541588783264, 0.313627690076828, 0.04030796140432358, -0.0852278396487236, 0.4583538770675659, -0.11453191936016083, -0.010741015896201134, -0.0075523145496845245, -0.6940290927886963, 0.020414434373378754, 0.575442373752594, 0.3214511573314667, 0.20120340585708618, 0.7706935405731201, 0.0037765130400657654, 0.5633328557014465, -0.08606322109699249, -0.04840836301445961, 0.32496580481529236, 0.23967088758945465, 0.2387043535709381, -0.0028284043073654175, -0.553389310836792, 0.26580703258514404, 0.11607970297336578, -0.2417924404144287, 0.12663450837135315, 0.03127819672226906, -0.34162062406539917, 0.14989936351776123, -0.31292659044265747, 0.042120471596717834, -0.1396993100643158, -0.05414483696222305, 0.0182790569961071, 0.41857460141181946, -0.20769773423671722, -0.05485549569129944, -0.18522877991199493, 0.16974490880966187, -0.014721181243658066, 0.2590857446193695, 0.35782915353775024, -0.22428062558174133, -0.2489861100912094, -0.10240691155195236, -0.18815338611602783, 0.13029202818870544, 0.24656297266483307, 0.1167277917265892, -0.27589595317840576, 0.20564547181129456, -0.14927171170711517, 0.24349991977214813, 0.6622830629348755, -0.48192310333251953, -0.19550774991512299, -0.0017668716609477997, -0.3046928346157074, -0.28402605652809143, 0.05779765173792839, 0.3182462751865387, 0.31547629833221436, 0.16272178292274475, -0.21074819564819336, -0.1817203164100647, 0.08526040613651276, 0.05959822237491608, -0.21191523969173431, -0.08577211201190948, -0.3107110857963562, 0.34884294867515564, -0.08871768414974213, 0.041671767830848694, 0.024228572845458984, 0.005833674222230911, 0.1700536161661148, 0.19769388437271118, -0.13335752487182617, 0.08578325808048248, -0.1235962063074112, 0.25379276275634766, -0.287750780582428, -0.10331583023071289, 0.3831242024898529, 0.1725609004497528, -0.46155133843421936, 0.18487240374088287, -0.10278452932834625, 0.16730272769927979, -0.24692752957344055, -0.16699379682540894, -0.03807850927114487, -0.027221105992794037, 0.6521240472793579, 0.22454415261745453, 0.17901340126991272, 0.5352817177772522, -0.07517959177494049, 0.07794612646102905, -0.12174319475889206, 0.004326655995100737, -0.08725021779537201, -0.047523897141218185, -0.3374846279621124, -0.33507776260375977, 0.3306466042995453, -0.015106560662388802, -0.07823596894741058, 0.37580356001853943, 0.2898540496826172, -0.32661280035972595, 0.034462928771972656, -0.13636597990989685, 0.7226479053497314, 0.2722491919994354, -0.34965118765830994, -0.412506103515625, -0.1996007263660431, -0.08520953357219696, 0.3742433190345764, -0.14917871356010437, 0.14054270088672638, -0.2792043387889862, -0.026970775797963142, -0.012473128736019135, 0.42879557609558105, 0.2239043265581131, -0.20407649874687195, 0.23858508467674255, -0.06281352043151855, -0.07792837917804718, 0.29895472526550293, 0.38046303391456604, 0.024964753538370132, -0.050506267696619034, 0.34153610467910767, 0.16677848994731903, -0.12087951600551605, -0.16692940890789032, 0.11416178196668625, -0.07157706469297409, 0.3761051595211029, -0.09063835442066193, -0.22294209897518158, -0.20561853051185608, -0.517872154712677, 0.20023468136787415, -0.003864288330078125, -0.026093382388353348, 0.4956532418727875, -0.266683965921402, -0.29218655824661255, 0.22349870204925537, -0.05545443296432495, 0.2565872073173523, 0.0920301079750061, 0.4039791524410248, 0.009913107380270958, -0.10867592692375183, 0.20800469815731049, 0.04781103879213333, -0.016207389533519745, 0.2637440860271454, -0.005534420721232891, -0.6359972357749939, -0.3446316123008728, -0.1295890212059021, 0.26262950897216797, -0.1654105931520462, -0.36578965187072754, 0.016287505626678467, -0.015718266367912292, -0.00908886268734932, 0.12090936303138733, 0.17401914298534393, -0.005666717886924744, 0.5276471972465515, -0.04994838312268257, 0.050563737750053406, -0.13065208494663239, -0.062096886336803436, -0.14282843470573425, -0.01499851606786251, 0.00024415552616119385, -0.37047523260116577, -0.2402050793170929, -0.041999343782663345, 0.012811839580535889, 0.01564996875822544, 0.2253739833831787, 0.06138259544968605, -0.1306576281785965, 0.21449069678783417, 0.13088378310203552, 0.035029929131269455, -0.04968768358230591, 0.20594489574432373, -0.3033420741558075, -0.09649128466844559, -0.12122905999422073, -0.11603344976902008, -0.16984106600284576, 0.16164147853851318, -0.3428654074668884, -0.03578462451696396, -0.13736453652381897, 0.10886505246162415, -0.3114486038684845, -0.14099080860614777, 0.32630473375320435, 0.2208286076784134, -0.0626886785030365, 0.35275954008102417, -0.21934960782527924, -0.1936778724193573, 0.08130503445863724, 0.10849381238222122, 0.09141217172145844, -0.1637749969959259, 0.07689979672431946, 0.11856444925069809, 0.07160677760839462, 0.31727927923202515, -0.00009192526340484619, -0.24305707216262817, -0.0884743481874466, 0.12993234395980835, -0.07456885278224945, 0.07931475341320038, -0.17913377285003662, -0.08774079382419586, -0.04746869578957558, -0.36725977063179016, 0.020288340747356415, 0.4224134385585785, 0.09010662883520126, 0.24374322593212128, 0.05546507611870766, 0.31833744049072266, 0.04391295090317726, -0.017419084906578064, 0.027119912207126617, 0.05452150106430054, -0.07681776583194733, -0.18816113471984863, 0.15510015189647675, 0.13662923872470856, 0.2682476341724396, 0.6486825942993164, -0.01037406362593174, -0.27261847257614136, -0.37148725986480713, 0.2911132276058197, 0.17400729656219482, 0.25992220640182495, -0.02062886580824852, 0.05521933361887932, 0.066342793405056, 0.14508342742919922, 0.13636530935764313, 0.11212258040904999, -0.08306322991847992, 0.17544937133789062, 0.4104861617088318, 0.040453050285577774, 0.04176711291074753, -0.054282598197460175, 0.18329717218875885, 0.3988538086414337, 0.45665231347084045, -0.03705466911196709, 0.41384589672088623, 0.15295952558517456, -0.1069611981511116, 0.051986776292324066, 0.3100075125694275, 0.5486305356025696, 0.08125896751880646, -0.053406182676553726, 0.3338410258293152, 0.002681240439414978, 0.21019640564918518, 0.0755217894911766, -0.3026807904243469, 0.2804390490055084, 0.2271801084280014, -0.6631467938423157, -0.05400973930954933, -0.2999442517757416, 0.028199994936585426, 0.053285952657461166, 0.0017547607421875, 0.18836399912834167, -0.12062401324510574, 0.007044278085231781, 0.25168609619140625, 0.014538180083036423, 0.11475725471973419, -0.019993089139461517, 0.3447188138961792, -0.0634336769580841, -0.1552467942237854, 0.16377879679203033, -0.16623157262802124, -0.0034254826605319977, 0.30768388509750366, -0.1251727044582367, -0.23923413455486298, -0.319399356842041, -0.15157310664653778, 0.36145731806755066, 0.280916303396225, -0.1406053900718689, 0.2987116575241089, 0.15931516885757446, -0.06538799405097961, 0.08527454733848572, -0.1988333761692047, 0.10929074883460999, 0.06351090967655182, -0.14242027699947357, 0.143992617726326, -0.0709470584988594, 0.1673954278230667, -0.002632344141602516, 0.09637551009654999, -0.0035642795264720917, 0.20568563044071198, -0.6024550795555115, 0.23606863617897034, 0.5547357797622681, 0.016766145825386047, 0.033444274216890335, 0.2027183473110199, -0.1303575485944748, -0.4353344738483429, 0.4465717673301697, -0.18991796672344208, -0.07133480906486511, -0.07564134895801544, 0.09111746400594711, -0.23786169290542603, -0.21581336855888367, -0.0013969577848911285, -0.16850802302360535, -0.29649674892425537, -0.1970270872116089, -0.18781156837940216, -0.46669164299964905, 0.2218223512172699, -0.07739196717739105, 0.35630565881729126, 0.09410690516233444, 0.0018729493021965027, 0.07933759689331055, 0.02945827692747116, -0.5522204041481018, 0.048183515667915344, -0.1326054334640503, -0.38223835825920105, -0.07035800814628601, 0.20201753079891205, -0.043230317533016205, 0.06166951358318329, -0.08602890372276306, 0.1807696521282196, -0.10416372865438461, 0.048165880143642426, -0.3057934045791626, 0.2932300865650177, 0.21329213678836823, 0.3334715664386749, -0.017965570092201233, -0.12275046110153198, 0.2824060320854187, 0.005733530968427658, 0.31213945150375366, 0.22922341525554657, 0.019457612186670303, -0.1263727992773056, -0.0795009657740593, -0.04447922483086586, 0.29884397983551025, -0.12960904836654663, -0.3392326533794403, -0.11412324756383896, -0.020329322665929794, -0.1789473444223404, -0.07238231599330902, 0.04625730216503143, -0.14332519471645355, 0.0014029964804649353, -0.02692348323762417, -0.1820961833000183, 0.048445604741573334, 0.03083733096718788, 0.24134163558483124, 0.04610174894332886, -0.08468195050954819, 0.41770249605178833, -0.26109516620635986, -0.21407398581504822, -0.23873819410800934, 0.3140764832496643, -0.470547616481781, 0.2077987641096115, -0.07425287365913391, -0.5415739417076111, 0.4401688873767853, -0.18658235669136047, -0.03901493549346924, 0.43354561924934387, -0.11515834927558899, 0.13209445774555206, -0.004609506577253342, 0.02615315467119217, -0.08918700367212296, -0.12150631844997406, -0.16933102905750275, -0.08739178627729416 ]
https://github.com/huggingface/datasets/issues/3317
Add desc parameter to Dataset filter method
@mariosasko the use case is filtering of a dataset prior to tokenization and subsequent training. As the dataset is huge it's just a matter of giving a user (model trainer) some feedback on what's going on. Otherwise, feedback is given for all steps in training preparation and not for filtering and the filtering in my use case lasts about 4-5 minutes. And yes, if there are more filtering stages, as @lhoestq pointed out, it would be nice to give some feedback. I thought desc is there already and got confused when I got the script error.
**Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A
96
Add desc parameter to Dataset filter method **Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A @mariosasko the use case is filtering of a dataset prior to tokenization and subsequent training. As the dataset is huge it's just a matter of giving a user (model trainer) some feedback on what's going on. Otherwise, feedback is given for all steps in training preparation and not for filtering and the filtering in my use case lasts about 4-5 minutes. And yes, if there are more filtering stages, as @lhoestq pointed out, it would be nice to give some feedback. I thought desc is there already and got confused when I got the script error.
[ -0.24201229214668274, 0.0004970207810401917, -0.12227481603622437, -0.3864947557449341, 0.2071848064661026, -0.20342221856117249, -0.028897184878587723, 0.19767943024635315, 0.009876463562250137, 0.3720797896385193, 0.35737714171409607, 0.28911757469177246, -0.139962300658226, 0.1705908626317978, -0.019987456500530243, 0.016245156526565552, -0.264220654964447, 0.004869155585765839, 0.01430964469909668, 0.14865364134311676, -0.13624393939971924, -0.2062535583972931, 0.00925840437412262, -0.34898048639297485, 0.06229230388998985, 0.1651378870010376, -0.0439625009894371, -0.02398017793893814, -0.11967401951551437, -0.5836014151573181, 0.3514053523540497, 0.5766950845718384, 0.10182151943445206, 0.29141780734062195, -0.00011987081961706281, -0.15719327330589294, 0.4989859461784363, -0.18709677457809448, -0.04682299494743347, 0.02365228533744812, -0.4558931887149811, -0.2083769142627716, -0.058569952845573425, -0.37399211525917053, -0.021225720643997192, 0.621381938457489, -0.1498727649450302, -0.3055015206336975, -0.006255447864532471, 0.2434307336807251, 0.14094574749469757, -0.1353399157524109, -0.5018041133880615, 0.051916178315877914, -0.05261107534170151, 0.6134565472602844, -0.14273665845394135, 0.03254535794258118, 0.7971274852752686, -0.057932689785957336, 0.03244752436876297, -0.0002967364853248, -0.06864893436431885, -0.4227454960346222, 0.2892582416534424, -0.26267820596694946, 0.27463749051094055, -0.34092798829078674, 0.30990174412727356, 0.06935077160596848, 0.566119909286499, -0.03766670823097229, -0.3603062331676483, 0.0954783633351326, 0.0971270352602005, -0.29424160718917847, -0.3372423052787781, -0.15131257474422455, -0.14340463280677795, 0.193977952003479, -0.2696774899959564, -0.21059492230415344, -0.26826417446136475, -0.032425493001937866, 0.04408296197652817, -0.02023189514875412, -0.10394087433815002, 0.13364282250404358, -0.15922485291957855, 0.13624320924282074, 0.06264258921146393, -0.3900071680545807, 0.1310456246137619, 0.18108510971069336, 0.00872061401605606, -0.5507832765579224, 0.3258582353591919, 0.08243750780820847, 0.07209216058254242, 0.3139815926551819, -0.204312264919281, -0.017841171473264694, 0.14313465356826782, 0.1173315942287445, -0.013216517865657806, 0.08941107988357544, 0.4081219434738159, 0.29675108194351196, -0.08842971920967102, -0.3316460847854614, -0.18554478883743286, -0.030641458928585052, 0.3833804726600647, 0.01025038305670023, 0.35873523354530334, 0.3320620656013489, -0.04134143888950348, -0.3051055669784546, -0.16361749172210693, 0.11201687157154083, 0.158735990524292, -0.2233763039112091, 0.2115519791841507, 0.19734853506088257, 0.257671058177948, 0.4000871479511261, 0.10406044125556946, -0.18608173727989197, 0.16493409872055054, -0.16135264933109283, -0.009371988475322723, 0.19137154519557953, -0.2131442278623581, 0.14754752814769745, 0.12633900344371796, -0.16667820513248444, 0.05280157923698425, -0.10379059612751007, -0.12335620820522308, 0.0726654976606369, -0.2992701232433319, -0.0037594232708215714, 0.12074311822652817, 0.17195384204387665, -0.49323391914367676, -0.08252314478158951, 0.026524938642978668, 0.11099310219287872, -0.26060864329338074, 0.3477647304534912, -0.43494802713394165, -0.20784197747707367, 0.04894716292619705, 0.10905258357524872, 0.2849610447883606, 0.02472602389752865, 0.12662987411022186, 0.3713030517101288, -0.0588565394282341, -0.3190893232822418, 0.08430436253547668, -0.059783414006233215, -0.6989243626594543, -0.3195604383945465, -0.04867593199014664, 0.3536750078201294, -0.7523905038833618, -0.11454641819000244, -0.5253288745880127, 0.30340126156806946, 0.44476374983787537, 0.0952511876821518, -0.37699875235557556, 0.2751675844192505, 0.20651832222938538, 0.23326583206653595, 0.4827210009098053, 0.20813259482383728, -0.33009371161460876, 0.42039990425109863, -0.19835148751735687, -0.013285769149661064, 0.2281380295753479, 0.08346644788980484, 0.5409325361251831, -0.32132843136787415, 0.20801450312137604, 0.0009161978960037231, -0.552391767501831, -0.17441506683826447, -0.20824316143989563, 0.09810332208871841, 0.34381169080734253, 0.140140101313591, 0.12451736629009247, 0.22647958993911743, 0.3571223020553589, -0.29229357838630676, 0.250005841255188, 0.14086134731769562, -0.06026754528284073, 0.07842473685741425, 0.6632398962974548, 0.12931039929389954, -0.139195516705513, -0.3048906922340393, 0.06004970148205757, 0.02620125561952591, 0.12191213667392731, -0.4864577054977417, 0.200738787651062, -0.3425098657608032, -0.26826003193855286, 0.24217461049556732, 0.39150938391685486, 0.048330776393413544, -0.11382735520601273, -0.11948379874229431, 0.01830814778804779, -0.1013278067111969, -0.23902063071727753, -0.01240825280547142, -0.23091699182987213, -0.3187182545661926, 0.3748573362827301, 0.18140284717082977, -0.009537240490317345, -0.07775931060314178, -0.19313935935497284, 0.067742720246315, 0.1777583509683609, -0.025813112035393715, -0.17567232251167297, 0.2462613880634308, 0.22293683886528015, -0.45402854681015015, 0.1023230329155922, 0.2566981911659241, 0.06343573331832886, 0.0822383314371109, 0.013611745089292526, 0.3562372326850891, 0.29618820548057556, -0.16044649481773376, -0.07757081836462021, 0.37727057933807373, 0.022778866812586784, 0.11955273151397705, -0.03203151375055313, 0.03303563594818115, 0.18056000769138336, -0.14517337083816528, -0.11748800426721573, -0.017712660133838654, 0.16894596815109253, 0.1712411493062973, -0.08603712916374207, 0.058060966432094574, -0.3098416328430176, 0.0050972700119018555, 0.46449801325798035, -0.13172288239002228, 0.028120383620262146, 0.26517149806022644, 0.5062018632888794, 0.05041127651929855, 0.1506553739309311, 0.07039709389209747, 0.6057813763618469, 0.3058965802192688, -0.4642218053340912, -0.04095356911420822, 0.23968824744224548, 0.055240437388420105, 0.16166549921035767, -0.03044246882200241, 0.04341263324022293, 0.05614352226257324, -0.036828119307756424, 0.1772811859846115, 0.050599195063114166, -0.3213227689266205, 0.14272794127464294, -0.06812714785337448, -0.13815699517726898, -0.08662529289722443, -0.11735238134860992, -0.16994088888168335, 0.05107242241501808, 0.15903186798095703, 0.15101498365402222, -0.16501188278198242, 0.11502021551132202, -0.00599096342921257, -0.1689782291650772, 0.1722230762243271, -0.5718867778778076, 0.6737943887710571, 0.0988856852054596, 0.009191146120429039, -0.22366006672382355, -0.06652357429265976, -0.03004550188779831, -0.08511920273303986, 0.09353257715702057, -0.13994339108467102, 0.3583236634731293, 0.539530873298645, 0.3503645658493042, -0.2984088659286499, -0.556011438369751, -0.22768816351890564, 0.086653932929039, 0.27092310786247253, 0.07148084789514542, 0.08110953867435455, -0.031487174332141876, -0.218253955245018, -0.10137730836868286, -0.01400078646838665, 0.036297671496868134, -0.07692263275384903, 0.15382970869541168, -0.27613672614097595, -0.27189376950263977, 0.009660415351390839, -0.3414786458015442, -0.16982251405715942, -0.20529688894748688, -0.586562991142273, 0.24848593771457672, 0.2069508284330368, -0.10931344330310822, -0.23075008392333984, -0.2866676151752472, -0.07767799496650696, -0.051491495221853256, -0.282733678817749, 0.3075459897518158, -0.1952325403690338, -0.18793457746505737, -0.09651847183704376, -0.15065893530845642, -0.06165599450469017, 0.17831160128116608, -0.11504552513360977, -0.14716120064258575, -0.22532667219638824, 0.18910150229930878, -0.0696755051612854, -0.08318530023097992, 0.5324710607528687, -0.17832282185554504, 0.038439005613327026, -0.06062379479408264, -0.6594769954681396, -0.007597528398036957, 0.4371418356895447, 0.3039066791534424, 0.1501719057559967, 0.8784480690956116, 0.013358764350414276, 0.614207923412323, -0.09493322670459747, -0.11687903106212616, 0.2561686038970947, 0.17605873942375183, 0.21011969447135925, 0.0647156834602356, -0.5172016620635986, 0.21182867884635925, 0.13207411766052246, -0.2545167803764343, 0.13574309647083282, -0.10322494059801102, -0.2580362856388092, 0.13358953595161438, -0.2205531895160675, -0.012095943093299866, -0.18658319115638733, -0.07343585044145584, -0.027364999055862427, 0.4205164909362793, -0.1754331886768341, 0.09774737805128098, -0.15775850415229797, 0.13074055314064026, 0.045249152928590775, 0.2985258102416992, 0.3691956400871277, -0.26223862171173096, -0.2517955005168915, -0.16450615227222443, -0.209928959608078, 0.2190132439136505, 0.1914282590150833, 0.17481930553913116, -0.2546050250530243, 0.20767828822135925, -0.11247782409191132, 0.1945665031671524, 0.7678426504135132, -0.5542522668838501, -0.04346993565559387, -0.06839371472597122, -0.28692638874053955, -0.33311131596565247, 0.034623075276613235, 0.29145991802215576, 0.33111345767974854, 0.06454174220561981, -0.2575526535511017, -0.20321930944919586, 0.03858929127454758, 0.1870506852865219, -0.3144134283065796, -0.08472733199596405, -0.348462849855423, 0.29013076424598694, -0.11758605390787125, -0.027449622750282288, 0.04594609513878822, 0.014713333919644356, 0.12380319088697433, 0.1962999403476715, -0.15485312044620514, 0.1534229815006256, -0.09896842390298843, 0.24719120562076569, -0.2977088987827301, -0.12152960151433945, 0.42083320021629333, 0.18905796110630035, -0.5762966871261597, 0.1611451506614685, -0.10364493727684021, 0.12208835035562515, -0.13241122663021088, -0.18976998329162598, 0.008812298066914082, 0.021179262548685074, 0.7454149127006531, 0.31146374344825745, 0.058242328464984894, 0.5071271061897278, 0.012487691827118397, 0.11554475873708725, -0.04651794210076332, 0.0749102309346199, -0.07971502095460892, -0.0327022485435009, -0.339138388633728, -0.3834356963634491, 0.12270966172218323, -0.06330988556146622, 0.042912766337394714, 0.27754905819892883, 0.20250025391578674, -0.28456801176071167, 0.0664658397436142, -0.16288024187088013, 0.8248215317726135, 0.2188815474510193, -0.2901669442653656, -0.3649190366268158, -0.16193696856498718, -0.17266671359539032, 0.3191770315170288, -0.08803480118513107, 0.04341427609324455, -0.1732403039932251, -0.10781332850456238, 0.0349612720310688, 0.3735792934894562, 0.19032952189445496, -0.25998392701148987, 0.27074310183525085, -0.0430658720433712, -0.09109176695346832, 0.21900996565818787, 0.3959067761898041, 0.06583783030509949, -0.06469026207923889, 0.3292362689971924, 0.08128193765878677, -0.15264484286308289, -0.15736429393291473, 0.10154576599597931, -0.09419853985309601, 0.40990614891052246, -0.14799347519874573, -0.2683020532131195, -0.10174091905355453, -0.5599927306175232, 0.09153579920530319, 0.07712801545858383, -0.04537682607769966, 0.6114585995674133, -0.23011505603790283, -0.34655481576919556, 0.36981549859046936, -0.03188490867614746, 0.28949540853500366, -0.03475691378116608, 0.4139879047870636, -0.0014979399275034666, -0.16967542469501495, 0.326283723115921, 0.09610726684331894, -0.013691440224647522, 0.24368667602539062, 0.0603720024228096, -0.6249886751174927, -0.25510039925575256, -0.16982868313789368, 0.4036007523536682, -0.21165552735328674, -0.4705033004283905, -0.002492368221282959, -0.13484936952590942, -0.02329256571829319, 0.0534031018614769, 0.1296759396791458, -0.115068219602108, 0.493015319108963, -0.0932365357875824, -0.010639749467372894, 0.007503792643547058, -0.10885854810476303, -0.21122443675994873, 0.05022431164979935, 0.10892029106616974, -0.25307130813598633, -0.22013214230537415, -0.04368242621421814, -0.07761488854885101, 0.172215074300766, 0.15262040495872498, 0.061909135431051254, -0.0798330157995224, 0.2667718529701233, 0.2359783947467804, 0.06220703572034836, -0.11607258021831512, 0.22551903128623962, -0.28910279273986816, -0.18022391200065613, -0.19441431760787964, -0.16862687468528748, -0.12282498180866241, 0.11882349848747253, -0.24659404158592224, 0.11667503416538239, -0.1468164622783661, 0.044409848749637604, -0.258442223072052, -0.20215348899364471, 0.2952965199947357, 0.26622921228408813, -0.004969963803887367, 0.31374818086624146, -0.22417683899402618, -0.19126470386981964, 0.01728188805282116, 0.2077847570180893, 0.03265444189310074, -0.08750571310520172, 0.12631499767303467, 0.1706252545118332, 0.09776712208986282, 0.3046642541885376, 0.08986539393663406, -0.22184553742408752, -0.16794703900814056, 0.07008127868175507, -0.10458491742610931, 0.11033277958631516, -0.17850998044013977, 0.022599324584007263, -0.02073029801249504, -0.3152798116207123, 0.0017856433987617493, 0.2988087832927704, 0.003491133451461792, 0.288373202085495, 0.07842093706130981, 0.3407737612724304, 0.08204801380634308, -0.030942417681217194, -0.040126267820596695, 0.10274143517017365, 0.11865716427564621, -0.09819506853818893, 0.23432087898254395, 0.01529097929596901, 0.19613201916217804, 0.570564329624176, 0.09603144973516464, -0.2703203856945038, -0.3971257507801056, 0.23331569135189056, 0.22613728046417236, 0.1661507785320282, -0.011328104883432388, 0.1573185920715332, 0.03741220384836197, 0.218644917011261, 0.11462381482124329, 0.14387094974517822, -0.19633273780345917, 0.1063285768032074, 0.4625176191329956, 0.0913078561425209, 0.055852796882390976, -0.0735790804028511, 0.16819027066230774, 0.38423216342926025, 0.4502861201763153, -0.04996340349316597, 0.40887442231178284, 0.12882079184055328, -0.13837477564811707, 0.02472694404423237, 0.28880593180656433, 0.6389501094818115, 0.05331987142562866, 0.012359902262687683, 0.16879962384700775, -0.017131784930825233, 0.18944522738456726, 0.07761763036251068, -0.2888525724411011, 0.29647162556648254, 0.1654871702194214, -0.6193909049034119, 0.07798418402671814, -0.17343169450759888, 0.0810614675283432, 0.102951280772686, 0.024887841194868088, 0.21844352781772614, -0.23780690133571625, 0.07681206613779068, 0.23105281591415405, -0.0368715263903141, 0.1695113629102707, 0.03498528152704239, 0.2680371105670929, 0.07254510372877121, -0.20000167191028595, 0.2319227010011673, -0.1257229447364807, -0.08931637555360794, 0.3451031446456909, -0.22260889410972595, -0.21820156276226044, -0.31335097551345825, -0.09367223083972931, 0.36723896861076355, 0.18774569034576416, 0.015579521656036377, 0.37352442741394043, 0.07306411117315292, -0.06988351047039032, 0.07056562602519989, -0.15801535546779633, 0.2463320791721344, 0.2129766196012497, -0.10932834446430206, 0.17268820106983185, -0.10168498754501343, 0.09382332861423492, 0.059691138565540314, 0.035495515912771225, 0.1469411551952362, 0.29126492142677307, -0.5233696103096008, 0.15813563764095306, 0.6152459383010864, -0.018152110278606415, -0.14058640599250793, 0.33516544103622437, -0.27226659655570984, -0.4026596248149872, 0.4148384928703308, -0.12042181938886642, -0.059819500893354416, -0.14240962266921997, 0.05266857147216797, -0.2951747477054596, -0.1312318593263626, 0.02341846004128456, -0.21406978368759155, -0.3213302791118622, -0.14214736223220825, -0.13806748390197754, -0.4077449142932892, 0.2813633680343628, -0.19216346740722656, 0.3110911548137665, 0.10737374424934387, 0.021627679467201233, 0.0374574288725853, 0.0690680742263794, -0.587425172328949, -0.03854808583855629, -0.014876201748847961, -0.2851535677909851, -0.024294327944517136, 0.1028786152601242, 0.03860543295741081, 0.030308730900287628, -0.11378584057092667, 0.07873501628637314, -0.20359571278095245, -0.03565780818462372, -0.2708060145378113, 0.18099342286586761, 0.16147421300411224, 0.386581152677536, -0.03728315979242325, -0.18524104356765747, 0.39305537939071655, -0.06380662322044373, 0.3360130488872528, 0.12483353912830353, 0.04830244183540344, -0.1771877557039261, 0.033700160682201385, 0.030438100919127464, 0.30284854769706726, -0.0996931716799736, -0.33960461616516113, -0.18948587775230408, -0.049292195588350296, -0.258104145526886, -0.23166754841804504, 0.09021670371294022, -0.15869586169719696, -0.023373834788799286, 0.049750521779060364, -0.22429509460926056, 0.034345850348472595, 0.06451544165611267, 0.2757311761379242, 0.01966068148612976, -0.08700170367956161, 0.47787970304489136, -0.24053677916526794, -0.30595412850379944, -0.26893556118011475, 0.397305428981781, -0.6262534856796265, 0.17508044838905334, -0.06044065207242966, -0.4723129868507385, 0.2723686099052429, -0.10295408219099045, -0.02710750140249729, 0.5069528818130493, -0.21614930033683777, 0.17693468928337097, 0.06673881411552429, 0.042061351239681244, -0.03607257455587387, -0.09391658008098602, -0.2552049458026886, -0.2274692952632904 ]
https://github.com/huggingface/datasets/issues/3317
Add desc parameter to Dataset filter method
I don't have a strong opinion on that, so having `desc` as a parameter is also OK.
**Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A
17
Add desc parameter to Dataset filter method **Is your feature request related to a problem? Please describe.** As I was filtering very large datasets I noticed the filter method doesn't have the desc parameter which is available in the map method. Why don't we add a desc parameter to the filter method both for consistency and it's nice to give some feedback to users during long operations on Datasets? **Describe the solution you'd like** Add desc parameter to Dataset filter method **Describe alternatives you've considered** N/A **Additional context** N/A I don't have a strong opinion on that, so having `desc` as a parameter is also OK.
[ -0.12875224649906158, -0.0055355504155159, -0.18855397403240204, -0.30547648668289185, 0.13591784238815308, -0.27268803119659424, 0.013256452977657318, 0.12853623926639557, 0.040268730372190475, 0.36438196897506714, 0.2256278544664383, 0.3220193088054657, -0.03922393172979355, 0.13554440438747406, -0.17023833096027374, 0.021724028512835503, -0.1972772479057312, 0.015164799988269806, 0.0741906687617302, 0.06931483745574951, -0.20967558026313782, -0.3124372661113739, 0.07337161898612976, -0.45186305046081543, 0.06926241517066956, 0.1593555510044098, -0.056404419243335724, -0.08604506403207779, -0.19094040989875793, -0.48031777143478394, 0.3382694721221924, 0.5113638639450073, 0.027406051754951477, 0.2691563665866852, -0.00011101945710834116, -0.131485715508461, 0.41672736406326294, -0.15146203339099884, -0.01848001778125763, 0.03081429749727249, -0.5436116456985474, -0.31759268045425415, -0.07475350797176361, -0.33427518606185913, -0.041878290474414825, 0.5702060461044312, -0.20193824172019958, -0.27466893196105957, -0.08289310336112976, 0.16765689849853516, 0.24552743136882782, -0.2117779701948166, -0.44985753297805786, 0.02436002530157566, -0.011933080852031708, 0.5251312255859375, -0.15947656333446503, 0.016540130600333214, 0.8244940042495728, 0.05321480333805084, 0.01795171946287155, 0.028307154774665833, 0.04027356207370758, -0.3217774033546448, 0.24568819999694824, -0.30304133892059326, 0.2266332507133484, -0.2962319850921631, 0.28436413407325745, 0.04277047887444496, 0.5393812656402588, 0.08071981370449066, -0.33345404267311096, 0.07572280615568161, 0.041183698922395706, -0.2079879194498062, -0.2928178012371063, -0.1330280303955078, -0.15208439528942108, 0.13162264227867126, -0.2559990882873535, -0.3349279463291168, -0.19267185032367706, -0.005680084228515625, -0.10672429203987122, 0.05288727208971977, -0.08194544911384583, 0.041177697479724884, -0.11788223683834076, 0.06622736155986786, 0.0997808501124382, -0.3683364987373352, 0.1188313364982605, 0.13668981194496155, 0.03449111431837082, -0.4208340048789978, 0.34028980135917664, 0.21264684200286865, 0.12630850076675415, 0.22014431655406952, -0.18955712020397186, -0.05919116735458374, 0.10775143653154373, 0.10450680553913116, 0.054410405457019806, -0.0729842260479927, 0.410704106092453, 0.1562044471502304, 0.011965557932853699, -0.4749981760978699, -0.26053720712661743, -0.10070721060037613, 0.43621134757995605, 0.08243261277675629, 0.24194703996181488, 0.1800660490989685, 0.01991363614797592, -0.3728679418563843, -0.012973535805940628, -0.032227396965026855, 0.11317526549100876, -0.1897706687450409, 0.1466771513223648, 0.06826403737068176, 0.2862049341201782, 0.38207852840423584, -0.04279039800167084, -0.16865792870521545, 0.2208831012248993, -0.10698141157627106, -0.07539648562669754, -0.05092776194214821, -0.12376527488231659, 0.11338093876838684, 0.08470068871974945, -0.282264769077301, 0.06711310148239136, 0.035748012363910675, -0.10186894237995148, 0.07634444534778595, -0.20944979786872864, -0.09988269209861755, 0.0755472183227539, 0.20598827302455902, -0.5056267380714417, -0.06452836841344833, -0.007019668817520142, 0.03846695274114609, -0.2391226887702942, 0.41769424080848694, -0.35963743925094604, -0.21614333987236023, 0.014880135655403137, 0.19976577162742615, 0.23905064165592194, -0.017793431878089905, 0.16914938390254974, 0.4102729856967926, -0.1721389889717102, -0.3328123688697815, 0.10708439350128174, 0.033870141953229904, -0.5663174986839294, -0.3552455008029938, -0.11284130811691284, 0.16223782300949097, -0.6031168699264526, -0.09297803789377213, -0.5676335692405701, 0.23083317279815674, 0.33116817474365234, 0.11122272908687592, -0.38394230604171753, 0.09136950969696045, 0.17035825550556183, 0.22170500457286835, 0.4890657365322113, 0.24586939811706543, -0.39409634470939636, 0.42663678526878357, -0.15621954202651978, -0.01377003826200962, 0.1715189665555954, 0.14995844662189484, 0.4525526165962219, -0.30602091550827026, 0.27497339248657227, 0.015188049525022507, -0.5393588542938232, -0.11031263321638107, -0.258393257856369, 0.03759526461362839, 0.3604874610900879, 0.05103655532002449, 0.04465800151228905, 0.2472180724143982, 0.46028923988342285, -0.3706734776496887, 0.0908038541674614, 0.08664612472057343, -0.14422950148582458, 0.06820159405469894, 0.6660205125808716, 0.05320192873477936, -0.1853630244731903, -0.30843454599380493, -0.06762582808732986, 0.079167440533638, 0.10551424324512482, -0.44283217191696167, 0.3144758939743042, -0.35525059700012207, -0.18364161252975464, 0.10702184587717056, 0.3641655445098877, 0.04075989872217178, 0.020831327885389328, -0.14762234687805176, -0.05982401221990585, -0.022753894329071045, -0.09074972569942474, -0.07262365520000458, -0.14370428025722504, -0.3230598568916321, 0.411465585231781, 0.2403992861509323, 0.03166670724749565, 0.013605175539851189, -0.1742650419473648, 0.011733125895261765, 0.1625005602836609, 0.09374677389860153, -0.191104918718338, 0.08322981745004654, 0.1922660768032074, -0.2899168133735657, 0.1528961956501007, 0.34177523851394653, 0.1883060783147812, 0.08724705874919891, 0.018458757549524307, 0.27206262946128845, 0.22736823558807373, -0.21644854545593262, -0.2581896483898163, 0.2833387851715088, 0.021018194034695625, 0.1738796830177307, -0.012735936790704727, 0.08050286769866943, 0.2221183180809021, -0.10848468542098999, -0.10038717091083527, 0.0037163197994232178, 0.0939628854393959, 0.29014256596565247, -0.0659789890050888, 0.2828138768672943, -0.3060237765312195, 0.07848207652568817, 0.3969104290008545, -0.06910065561532974, 0.05192434415221214, 0.2445848286151886, 0.3198196291923523, -0.007396077737212181, 0.3463863134384155, 0.14486244320869446, 0.6124714016914368, 0.38372623920440674, -0.30197229981422424, -0.13062255084514618, 0.17208653688430786, 0.0014059636741876602, 0.1737762689590454, 0.029220271855592728, 0.14527693390846252, 0.023133203387260437, 0.16758018732070923, 0.15703345835208893, -0.05641677603125572, -0.22338426113128662, 0.16516806185245514, -0.11753688752651215, -0.009639915078878403, -0.12799493968486786, -0.07191095501184464, -0.21488237380981445, 0.11463635414838791, 0.03618217259645462, -0.0700049102306366, -0.23219001293182373, 0.14428305625915527, 0.0344562828540802, -0.23814521729946136, 0.15142090618610382, -0.548517107963562, 0.7579572200775146, -0.020599182695150375, -0.058427438139915466, -0.18033000826835632, -0.06076652184128761, -0.03732464462518692, 0.03094540536403656, -0.0025640567764639854, -0.10500705987215042, 0.4712754189968109, 0.537236213684082, 0.43442797660827637, -0.33872631192207336, -0.6350771188735962, -0.249431312084198, 0.15508334338665009, 0.3155657947063446, -0.009312428534030914, 0.1266281008720398, -0.06763577461242676, -0.2034597247838974, -0.015623972751200199, 0.12111863493919373, 0.010737145319581032, -0.20577330887317657, 0.13005317747592926, -0.01591166853904724, -0.23654057085514069, -0.04546981304883957, -0.3073340654373169, -0.2994711399078369, -0.048721931874752045, -0.5578939318656921, 0.17786431312561035, 0.1480366289615631, -0.11259189993143082, -0.25834715366363525, -0.1448792815208435, -0.09747457504272461, -0.1533333957195282, -0.22190576791763306, 0.2215544879436493, -0.1939787119626999, -0.10976091027259827, -0.1562926024198532, -0.10613053292036057, -0.057755906134843826, 0.2361236959695816, -0.1239205151796341, -0.24107737839221954, -0.21766191720962524, 0.33873817324638367, 0.035614605993032455, -0.09405069053173065, 0.47743648290634155, -0.11374028772115707, -0.05462363362312317, -0.03645811975002289, -0.6701376438140869, 0.019190512597560883, 0.5955817103385925, 0.31618931889533997, 0.20587816834449768, 0.7391363382339478, 0.07963994145393372, 0.5320222973823547, -0.09617483615875244, -0.027544114738702774, 0.3238452970981598, 0.24846330285072327, 0.21152839064598083, -0.015469610691070557, -0.5373232960700989, 0.2622416913509369, 0.10524965077638626, -0.24336300790309906, 0.14058107137680054, 0.04452130198478699, -0.3460931181907654, 0.16352279484272003, -0.3104647696018219, 0.035424962639808655, -0.14385825395584106, -0.026313675567507744, -0.006704285740852356, 0.423258513212204, -0.1560487300157547, -0.044073086231946945, -0.19715121388435364, 0.13464650511741638, -0.04457587003707886, 0.18892839550971985, 0.39497092366218567, -0.2554600238800049, -0.242936372756958, -0.08513028919696808, -0.22982880473136902, 0.16108304262161255, 0.2690073847770691, 0.14787454903125763, -0.2810570299625397, 0.1882290542125702, -0.14537985622882843, 0.2609977424144745, 0.6999651789665222, -0.5084099173545837, -0.18145810067653656, -0.01884797029197216, -0.2704746723175049, -0.2903294861316681, 0.12138798832893372, 0.32318180799484253, 0.351144939661026, 0.17195075750350952, -0.20775288343429565, -0.18732264637947083, 0.05440106987953186, 0.035741403698921204, -0.20185784995555878, -0.057047124952077866, -0.26511675119400024, 0.3846350908279419, -0.11558009684085846, -0.03656972199678421, 0.042254261672496796, 0.06390628963708878, 0.11938858777284622, 0.20694053173065186, -0.17517901957035065, 0.09058526158332825, -0.1262163519859314, 0.25155580043792725, -0.2970569431781769, -0.06121767312288284, 0.3931533694267273, 0.16941751539707184, -0.4510501027107239, 0.18120339512825012, -0.07460223138332367, 0.19450025260448456, -0.2579909563064575, -0.14074468612670898, -0.0199759341776371, -0.04730653390288353, 0.6656700372695923, 0.28138619661331177, 0.18269918859004974, 0.5184594988822937, -0.055855460464954376, 0.08705882728099823, -0.1393047422170639, 0.002731052227318287, -0.09604139626026154, -0.07460062205791473, -0.31101661920547485, -0.3230663239955902, 0.28724002838134766, -0.03142368048429489, -0.09363202750682831, 0.3507241904735565, 0.2687736749649048, -0.33007872104644775, 0.07423501461744308, -0.09980272501707077, 0.7772384285926819, 0.2567508816719055, -0.33107665181159973, -0.39475134015083313, -0.16855886578559875, -0.07924599200487137, 0.3569999933242798, -0.14918909966945648, 0.1539614349603653, -0.29228031635284424, -0.023015804588794708, -0.006073754280805588, 0.37829387187957764, 0.2523190975189209, -0.20581835508346558, 0.2330402135848999, -0.036526262760162354, -0.0540778674185276, 0.3208872377872467, 0.38282284140586853, 0.025274774059653282, -0.0803898274898529, 0.30325159430503845, 0.19983939826488495, -0.13069510459899902, -0.17847755551338196, 0.09941063076257706, -0.09587793797254562, 0.3741101920604706, -0.11759252101182938, -0.2150169163942337, -0.20837706327438354, -0.5326102375984192, 0.2000165730714798, -0.012348372489213943, -0.06441757827997208, 0.45009374618530273, -0.22469383478164673, -0.3287839889526367, 0.24386514723300934, -0.07090236246585846, 0.2882952392101288, 0.08709631115198135, 0.4348108470439911, 0.025979600846767426, -0.09743254631757736, 0.22645153105258942, 0.01994059607386589, -0.029853396117687225, 0.23660725355148315, -0.03242111951112747, -0.6857349872589111, -0.34227514266967773, -0.12496426701545715, 0.22374309599399567, -0.15811680257320404, -0.3872203528881073, -0.013899452984333038, -0.062419794499874115, -0.03337517008185387, 0.1537131518125534, 0.17694631218910217, -0.0009610028937458992, 0.513674259185791, -0.03283180668950081, 0.0411507785320282, -0.12052063643932343, 0.0019869208335876465, -0.1460607945919037, -0.007380742579698563, 0.035274937748909, -0.33632323145866394, -0.2352655827999115, -0.11331874132156372, 0.015345998108386993, 0.01903207041323185, 0.20777755975723267, 0.10156534612178802, -0.15664486587047577, 0.17127983272075653, 0.12391220778226852, 0.07373185455799103, -0.02526336908340454, 0.14452557265758514, -0.30456024408340454, -0.11183695495128632, -0.14375852048397064, -0.09280441701412201, -0.15640272200107574, 0.14935678243637085, -0.3729199171066284, -0.056708041578531265, -0.1213063970208168, 0.1115816980600357, -0.35086333751678467, -0.09830307960510254, 0.28770995140075684, 0.2579549551010132, -0.06056644767522812, 0.3187394440174103, -0.19905658066272736, -0.2143736481666565, 0.10400646924972534, 0.1231558620929718, 0.061569944024086, -0.20961108803749084, 0.08302532136440277, 0.11057848483324051, 0.06596045196056366, 0.2769223749637604, 0.014325366355478764, -0.23508119583129883, -0.122709721326828, 0.131602481007576, -0.06940224021673203, 0.06466846168041229, -0.17594997584819794, -0.0917278379201889, -0.03228766843676567, -0.34032076597213745, 0.06801417469978333, 0.3636090159416199, 0.08194045722484589, 0.2530640661716461, 0.026898197829723358, 0.30974018573760986, 0.06717558205127716, -0.014285176992416382, 0.0353216677904129, 0.041514430195093155, -0.06034666299819946, -0.18742895126342773, 0.19650128483772278, 0.11551710963249207, 0.23282545804977417, 0.6476921439170837, -0.002126142382621765, -0.2745269536972046, -0.3998776376247406, 0.29099905490875244, 0.1838059425354004, 0.29658299684524536, -0.022696901112794876, 0.03004078008234501, 0.10929635167121887, 0.12212340533733368, 0.14930404722690582, 0.10525625944137573, -0.020522598177194595, 0.12916696071624756, 0.4225776195526123, 0.06608858704566956, 0.023339416831731796, -0.09097056835889816, 0.18130335211753845, 0.3828810453414917, 0.4264976680278778, -0.06275592744350433, 0.3811621367931366, 0.1463189721107483, -0.07753507047891617, 0.10242326557636261, 0.3174201250076294, 0.5222007632255554, 0.06872200220823288, -0.03553036227822304, 0.334736704826355, -0.02438509464263916, 0.24003899097442627, 0.06994955986738205, -0.3088001310825348, 0.29862895607948303, 0.2327222228050232, -0.6038930416107178, -0.05272269621491432, -0.2912174165248871, 0.008143024519085884, 0.05521855875849724, -0.005368553102016449, 0.199313685297966, -0.13697656989097595, -0.0012373775243759155, 0.24201306700706482, -0.02315445803105831, 0.09149728715419769, -0.04288560152053833, 0.36787617206573486, -0.04560054838657379, -0.1248863935470581, 0.13582034409046173, -0.14614582061767578, -0.043145157396793365, 0.2911495864391327, -0.14241550862789154, -0.18385739624500275, -0.3238152265548706, -0.1426512897014618, 0.36566460132598877, 0.26274019479751587, -0.11657164990901947, 0.31079259514808655, 0.09102614223957062, -0.034150052815675735, 0.04994354024529457, -0.2372111678123474, 0.0656299814581871, 0.10242254287004471, -0.16956934332847595, 0.1339280754327774, -0.05174819380044937, 0.1957404911518097, -0.038173824548721313, 0.08266319334506989, -0.000494144856929779, 0.17992927134037018, -0.5479952096939087, 0.23563283681869507, 0.5925402641296387, -0.02420204132795334, 0.01606011390686035, 0.17171066999435425, -0.1114102452993393, -0.44750866293907166, 0.40571513772010803, -0.2122231274843216, -0.03067072480916977, -0.06005868315696716, 0.1111387312412262, -0.23773923516273499, -0.16852980852127075, -0.022945526987314224, -0.1589684784412384, -0.2932935357093811, -0.21389888226985931, -0.21346774697303772, -0.45049741864204407, 0.210013747215271, -0.05820649117231369, 0.372342586517334, 0.08810795098543167, 0.01992640644311905, 0.08174308389425278, -0.007983803749084473, -0.5535171031951904, 0.03568710759282112, -0.09879779815673828, -0.3882814049720764, -0.04541115090250969, 0.21537132561206818, -0.021540185436606407, 0.04252023994922638, -0.11806350201368332, 0.1938333809375763, -0.09867513179779053, 0.07825448364019394, -0.30844569206237793, 0.28853684663772583, 0.17780694365501404, 0.31339994072914124, 0.03580143675208092, -0.07150238752365112, 0.270786851644516, -0.02597634121775627, 0.31211477518081665, 0.2061411440372467, 0.00925727654248476, -0.15974511206150055, -0.07563770562410355, -0.0341617725789547, 0.31957441568374634, -0.1176566332578659, -0.3300204575061798, -0.10142798721790314, -0.012704377993941307, -0.1738203912973404, -0.054868146777153015, 0.02666824497282505, -0.1336730569601059, 0.00032693520188331604, 0.00933750532567501, -0.19514334201812744, 0.04126127436757088, 0.026272986084222794, 0.20823903381824493, 0.025576986372470856, -0.1300167441368103, 0.44201743602752686, -0.24229007959365845, -0.27635326981544495, -0.21357353031635284, 0.3381820321083069, -0.4494327902793884, 0.1906595677137375, -0.024127356708049774, -0.5434308648109436, 0.42246878147125244, -0.17694136500358582, -0.0648670494556427, 0.42473170161247253, -0.11688360571861267, 0.12484295666217804, -0.005741909146308899, 0.06241213157773018, -0.06990762799978256, -0.14206726849079132, -0.16945071518421173, -0.1128677949309349 ]
https://github.com/huggingface/datasets/issues/3313
TriviaQA License Mismatch
Hi ! You're completely right, this must be mentioned in the dataset card. If you're interesting in contributing, feel free to open a pull request to mention this in the `trivia_qa` dataset card in the "Licensing Information" section at https://github.com/huggingface/datasets/blob/master/datasets/trivia_qa/README.md
## Describe the bug TriviaQA Webpage at http://nlp.cs.washington.edu/triviaqa/ says they do not own the copyright to the data. However, Huggingface datasets at https://huggingface.co/datasets/trivia_qa mentions that the dataset is released under Apache License Is the License Information on HuggingFace correct?
40
TriviaQA License Mismatch ## Describe the bug TriviaQA Webpage at http://nlp.cs.washington.edu/triviaqa/ says they do not own the copyright to the data. However, Huggingface datasets at https://huggingface.co/datasets/trivia_qa mentions that the dataset is released under Apache License Is the License Information on HuggingFace correct? Hi ! You're completely right, this must be mentioned in the dataset card. If you're interesting in contributing, feel free to open a pull request to mention this in the `trivia_qa` dataset card in the "Licensing Information" section at https://github.com/huggingface/datasets/blob/master/datasets/trivia_qa/README.md
[ 0.09826771914958954, -0.06615030765533447, -0.00827007181942463, 0.34464597702026367, -0.20295245945453644, 0.1115979328751564, 0.06918194890022278, 0.2062561810016632, -0.2013847827911377, -0.24562393128871918, 0.0544377937912941, 0.17352654039859772, 0.2805503308773041, 0.026340307667851448, 0.0973246842622757, -0.17613139748573303, 0.1311206966638565, -0.25230222940444946, -0.10033540427684784, -0.058406949043273926, -0.1580771505832672, 0.6378142833709717, -0.3034307360649109, 0.19500313699245453, -0.0054563372395932674, -0.2435031533241272, 0.09560200572013855, 0.20894747972488403, 0.10958027094602585, -0.3004065155982971, 0.11294823884963989, 0.07916922122240067, 0.21030132472515106, 0.26338741183280945, -0.00011642125900834799, -0.23556455969810486, 0.03237267583608627, -0.18097007274627686, 0.006518054753541946, 0.18876267969608307, -0.22392940521240234, 0.22844748198986053, -0.2378152310848236, 0.037240080535411835, -0.19094493985176086, -0.014970489777624607, 0.04054039716720581, -0.3948630392551422, 0.31684112548828125, -0.021382426843047142, 0.1625247597694397, 0.4073353111743927, 0.16485968232154846, -0.2726811468601227, -0.05599703639745712, -0.08395235240459442, 0.0543363094329834, 0.3252706825733185, 0.0765431597828865, 0.005929300561547279, -0.06217695027589798, 0.6628661751747131, 0.20184676349163055, 0.05642053857445717, 0.32878491282463074, -0.04092445969581604, -0.07903072983026505, -0.05205415189266205, 0.3920585513114929, 0.25814932584762573, 0.3475058376789093, -0.3202481269836426, -0.28431329131126404, -0.015351958572864532, 0.26683831214904785, 0.17313681542873383, 0.2527676820755005, 0.4681383967399597, -0.05940926820039749, 0.19954799115657806, 0.09152723103761673, -0.24641841650009155, -0.11868597567081451, -0.18015553057193756, -0.19336353242397308, -0.33332449197769165, -0.17858481407165527, 0.10791976004838943, -0.13409677147865295, -0.23518194258213043, -0.032592713832855225, -0.04805546998977661, -0.36276179552078247, 0.11135260760784149, -0.12780870497226715, -0.06231255084276199, -0.3473713994026184, 0.20342406630516052, 0.34672272205352783, 0.25137317180633545, 0.02115308865904808, -0.20712697505950928, -0.2882445156574249, -0.021924041211605072, 0.23368963599205017, 0.03407132253050804, 0.03129064664244652, -0.15000689029693604, 0.18252363801002502, 0.13496781885623932, 0.15461614727973938, -0.04976101964712143, 0.05704030767083168, 0.06379002332687378, -0.5137332081794739, -0.17496854066848755, 0.28904181718826294, -0.3127986788749695, -0.43153586983680725, 0.12306544929742813, -0.42503681778907776, -0.1188841462135315, -0.0729730874300003, 0.2571023106575012, -0.026389222592115402, -0.1087147668004036, 0.04822992533445358, 0.16387733817100525, -0.011466333642601967, -0.3528984785079956, -0.21628321707248688, -0.008597102016210556, 0.2353987991809845, 0.17121683061122894, -0.022426409646868706, -0.11131583154201508, 0.21673861145973206, 0.06538480520248413, 0.26411476731300354, 0.008194852620363235, 0.00684887170791626, 0.058839101344347, 0.029791824519634247, 0.19987238943576813, -0.16029588878154755, 0.15197545289993286, 0.12769576907157898, 0.12757425010204315, -0.19978740811347961, 0.23682984709739685, -0.15351885557174683, -0.10209499299526215, -0.11008937656879425, 0.11930181086063385, -0.11138583719730377, 0.0008592493832111359, 0.3842642307281494, 0.09595844894647598, 0.11848349124193192, -0.2811119854450226, 0.17891588807106018, 0.24979592859745026, -0.0940195620059967, -0.21257713437080383, 0.04043951630592346, 0.5094495415687561, -0.2031284123659134, -0.13932090997695923, 0.1703474223613739, 0.1144620031118393, -0.13245436549186707, 0.39834949374198914, -0.04994012042880058, -0.07622543722391129, -0.2951640486717224, 0.1034930944442749, 0.07183485478162766, -0.537112295627594, -0.33627140522003174, -0.12983708083629608, 0.05260394513607025, -0.24146154522895813, 0.121505506336689, 0.038078900426626205, -0.022472305223345757, -0.010128001682460308, -0.09221518039703369, 0.17984886467456818, 0.07001248747110367, -0.047816116362810135, -0.13516004383563995, -0.4078395664691925, -0.05695810168981552, -0.09217263758182526, -0.22016353905200958, 0.2361743450164795, -0.058416567742824554, 0.2819455564022064, 0.2791220247745514, 0.20935669541358948, -0.2146574705839157, 0.3127374053001404, 0.3320907652378082, 0.22689208388328552, -0.14869630336761475, -0.043358322232961655, -0.2211151123046875, -0.06285693496465683, -0.4411792457103729, 0.21572808921337128, 0.11947685480117798, -0.30309343338012695, -0.3414130210876465, 0.15446531772613525, 0.1291080266237259, -0.4463901221752167, 0.12539593875408173, 0.11955958604812622, 0.23914185166358948, 0.158425435423851, -0.09256154298782349, 0.191939115524292, 0.2253410667181015, 0.19471581280231476, -0.594823956489563, -0.33558860421180725, -0.3503430485725403, 0.25588157773017883, 0.20435434579849243, 0.2738720774650574, 0.1982199251651764, 0.06672324985265732, 0.16236069798469543, 0.27134454250335693, -0.12269033491611481, 0.29623109102249146, 0.2821553945541382, 0.10076583176851273, 0.3997848927974701, -0.19363969564437866, 0.3042711615562439, 0.11428561806678772, 0.04532880708575249, 0.11573848873376846, -0.3623534142971039, 0.2523505687713623, -0.10914570093154907, -0.02182401716709137, -0.10753114521503448, 0.24215668439865112, 0.06637551635503769, 0.24377486109733582, -0.04525388777256012, -0.2596338987350464, -0.059917304664850235, 0.49375391006469727, 0.07300987839698792, 0.12151054292917252, -0.09791447967290878, 0.20745566487312317, 0.33405447006225586, -0.06736093759536743, -0.013222083449363708, -0.25217100977897644, -0.4714125394821167, 0.05341154336929321, 0.5081462860107422, 0.22751854360103607, 0.3568391799926758, 0.16147731244564056, 0.03650914132595062, -0.22547420859336853, 0.1256318986415863, -0.2738889157772064, 0.11432965099811554, -0.02021080255508423, -0.3390912711620331, -0.2217123806476593, -0.05440867319703102, -0.12182217091321945, -0.08327623456716537, 0.09631176292896271, -0.11134976893663406, 0.02046157605946064, -0.2970561385154724, 0.09269583970308304, -0.08344569802284241, -0.4383687973022461, -0.4319061040878296, -0.15641683340072632, -0.6080542206764221, -0.2894662618637085, 0.191977858543396, 0.2717406153678894, -0.05397941544651985, 0.1983705312013626, -0.18364867568016052, 0.18357348442077637, -0.30072757601737976, -0.08280890434980392, -0.06544972956180573, -0.04054473340511322, -0.28849443793296814, 0.08910258114337921, 0.027313999831676483, -0.14393290877342224, 0.1594155877828598, -0.28928688168525696, 0.05308978259563446, -0.38354769349098206, -0.330199271440506, 0.11098869889974594, -0.14063438773155212, 0.14108501374721527, 0.1348467916250229, 0.37850600481033325, -0.1204557865858078, 0.12815457582473755, 0.11435499787330627, 0.05786248296499252, -0.140549436211586, -0.18377633392810822, 0.09053604304790497, 0.25977110862731934, -0.031179867684841156, -0.28637829422950745, 0.10190802812576294, -0.2073943167924881, 0.4722590446472168, 0.021057061851024628, 0.0202002115547657, 0.4913281500339508, -0.28947335481643677, -0.10256749391555786, -0.3753215968608856, 0.1960308998823166, -0.403890997171402, -0.21642407774925232, 0.127927765250206, -0.1228208988904953, -0.367318332195282, 0.1141560971736908, 0.2792817950248718, 0.38368555903434753, -0.23213091492652893, -0.10216428339481354, -0.23371435701847076, -0.17203302681446075, 0.453961044549942, -0.13147419691085815, 0.08744826167821884, 0.2207811176776886, -0.04370097443461418, -0.04539850354194641, -0.15049025416374207, -0.0785345658659935, 0.08774200826883316, 0.08453024923801422, 0.1660197526216507, 0.3420417606830597, -0.0526619553565979, -0.15551169216632843, 0.7847992181777954, 0.5099939107894897, 0.23604626953601837, 0.2462858259677887, -0.13001498579978943, 0.3044464588165283, 0.3006361126899719, 0.003324568271636963, -0.06768473237752914, 0.2706472873687744, 0.24378155171871185, 0.21633392572402954, 0.14352357387542725, 0.9297797083854675, 0.031738243997097015, 0.32364222407341003, -0.4220312237739563, -0.1832604557275772, -0.08550058305263519, -0.1753627359867096, 0.11137642711400986, 0.14495809376239777, 0.37412238121032715, 0.08960539102554321, -0.0948403850197792, 0.37927258014678955, 0.29497453570365906, 0.056227583438158035, 0.12791669368743896, 0.07969284057617188, 0.18060791492462158, -0.41360554099082947, 0.26992934942245483, -0.30846184492111206, 0.3515799045562744, -0.41813504695892334, -0.44724041223526, 0.25404635071754456, 0.2269374281167984, 0.5077680349349976, 0.3427830934524536, -0.0742771178483963, -0.2899529039859772, 0.015694033354520798, -0.1794152706861496, -0.02768821083009243, -0.03510446846485138, -0.14312779903411865, -0.0012669600546360016, -0.07038691639900208, -0.35716184973716736, -0.07649273425340652, 0.20699244737625122, -0.17414134740829468, -0.13713403046131134, -0.08464919775724411, -0.4440937042236328, -0.25539687275886536, -0.29381799697875977, -0.19550541043281555, 0.24090071022510529, 0.2092544585466385, 0.03882559388875961, 0.2893085479736328, 0.016725607216358185, -0.14196863770484924, 0.2242375612258911, 0.32757866382598877, 0.3295961320400238, -0.13064852356910706, -0.14593985676765442, 0.2354642003774643, -0.012327902019023895, 0.12041131407022476, 0.21836747229099274, 0.2255719155073166, -0.3241792619228363, -0.15056195855140686, 0.06665635108947754, 0.06899597495794296, 0.28383076190948486, -0.11789331585168839, 0.31258270144462585, 0.30699247121810913, -0.2956082224845886, -0.3592710793018341, -0.38102009892463684, 0.07928167283535004, -0.11397601664066315, 0.21940535306930542, -0.20030367374420166, 0.4095487892627716, 0.33766478300094604, -0.25771164894104004, 0.1553119421005249, 0.25069814920425415, -0.06126862019300461, -0.09436248242855072, 0.0786999985575676, 1.1435422897338867, -0.1671953648328781, 0.12157408893108368, 0.0029293037950992584, -0.2854772210121155, 0.8576382398605347, -0.10797317326068878, 0.1285802274942398, -0.4733754098415375, 0.03883612900972366, -0.22137480974197388, -0.008705038577318192, 0.0934908390045166, -0.41343623399734497, -0.15766683220863342, 0.31931063532829285, -0.1119304895401001, 0.4405234754085541, -0.08199942111968994, -0.028572887182235718, -0.5859725475311279, -0.025800369679927826, -0.24174684286117554, 0.09318564087152481, -0.17857329547405243, 0.7432101368904114, -0.2721160650253296, -0.24845309555530548, -0.38221317529678345, -0.009367812424898148, -0.4061177968978882, 0.0406683012843132, -0.25040093064308167, 0.007861148566007614, -0.08473506569862366, -0.28632479906082153, -0.035815440118312836, 0.3035023510456085, 0.4002259373664856, -0.16283418238162994, -0.4663960039615631, 0.17414607107639313, -0.025295592844486237, -0.1820010393857956, -0.05296436697244644, 0.2078430950641632, -0.0014813486486673355, -0.09864500164985657, 0.02039281278848648, 0.26589879393577576, 0.05985081195831299, 0.1954803615808487, -0.6819458603858948, 0.19607990980148315, 0.0365438386797905, -0.02418508194386959, 0.06279134750366211, -0.05480688810348511, 0.10780541598796844, -0.0758378803730011, 0.09140412509441376, 0.21468308568000793, -0.030735667794942856, -0.3064030408859253, 0.14386127889156342, -0.22762329876422882, -0.03431310877203941, 0.3653649091720581, 0.0956973060965538, 0.2570618987083435, 0.24999703466892242, 0.092336505651474, -0.006717287003993988, -0.11484187841415405, -0.11867038160562515, -0.2896599769592285, -0.8202395439147949, -0.12454644590616226, 0.22655519843101501, -0.06515492498874664, -0.29917460680007935, 0.37241774797439575, 0.21365733444690704, -0.06307234615087509, -0.1149110347032547, -0.30202722549438477, -0.22391191124916077, 0.296173095703125, -0.6134844422340393, 0.00872572511434555, 0.2392471730709076, -0.014177283272147179, 0.1055876612663269, -0.07709531486034393, -0.24246840178966522, -0.1878979504108429, 0.09062158316373825, -0.2345184087753296, -0.02511797845363617, 0.10646744817495346, 0.0780656561255455, -0.009791182354092598, -0.050358936190605164, 0.03907127305865288, -0.214093878865242, -0.08131269365549088, 0.12175458669662476, 0.14974987506866455, 0.0285795908421278, -0.06037507951259613, -0.48672279715538025, 0.09215886145830154, 0.038530685007572174, 0.10781767219305038, 0.1955319046974182, 0.1424144208431244, 0.24741700291633606, 0.20206531882286072, -0.14064811170101166, 0.18828195333480835, -0.37525445222854614, 0.19524353742599487, 0.1563340276479721, 0.0415465347468853, 0.07778594642877579, 0.02679823338985443, -0.22067706286907196, -0.11304756253957748, -0.1812504380941391, 0.3507945239543915, 0.05351489782333374, -0.028441332280635834, -0.14172816276550293, 0.07714207470417023, -0.10515676438808441, 0.30310481786727905, -0.05001804232597351, 0.21960632503032684, -0.05057992786169052, -0.15188023447990417, -0.05514569580554962, 0.13285863399505615, -0.23068642616271973, 0.19381825625896454, -0.4363829493522644, -0.08549134433269501, -0.19968660175800323, 0.19707442820072174, 0.14847521483898163, 0.26452910900115967, -0.17332257330417633, 0.05920940637588501, 0.3239276707172394, -0.02828243374824524, 0.35763025283813477, 0.3193915784358978, -0.000819820910692215, 0.34126409888267517, 0.2637653946876526, 0.10556671023368835, 0.1281549483537674, -0.11637464165687561, -0.16836553812026978, 0.19328518211841583, 0.17028310894966125, -0.13308361172676086, 0.4832737147808075, -0.1455083191394806, -0.06699854135513306, 0.23288685083389282, 0.3724451959133148, 0.08803892880678177, 0.029101312160491943, 0.3830451965332031, -0.2597019672393799, -0.20464953780174255, -0.4626850485801697, -0.15889094769954681, -0.2632249593734741, -0.17302779853343964, -0.1427808254957199, -0.02307136356830597, 0.22552838921546936, 0.016840070486068726, 0.007793460041284561, -0.24532918632030487, 0.41821232438087463, -0.11955499649047852, -0.1576755940914154, -0.5600911378860474, -0.23163121938705444, 0.332470178604126, 0.0406159944832325, 0.008487850427627563, 0.2584228515625, -0.04635845124721527, -0.08273996412754059, 0.5763524174690247, 0.40126118063926697, 0.45857304334640503, -0.16234327852725983, 0.33526620268821716, -0.008085743524134159, -0.20974166691303253, 0.10801984369754791, 0.26528534293174744, 0.38657304644584656, 0.040163904428482056, 0.05575989931821823, 0.31329232454299927, 0.1208074539899826, 0.01619647815823555, -0.339357852935791, 0.025195710361003876, 0.14241762459278107, -0.2820552885532379, 0.14999431371688843, -0.7456984519958496, -0.11384479701519012, -0.001576453447341919, 0.16153733432292938, -0.10911437124013901, 0.1645306944847107, -0.11881305277347565, -0.012130755931138992, -0.12263904511928558, -0.09782249480485916, 0.042056065052747726, 0.24335935711860657, 0.326113760471344, 0.4896480143070221, 0.02921299822628498, -0.23715302348136902, -0.08318246901035309, -0.49183037877082825, 0.22010187804698944, 0.21968074142932892, 0.1317400187253952, -0.3230975866317749, -0.004969719797372818, 0.23182019591331482, 0.08231623470783234, 0.07017280161380768, 0.03420773893594742, 0.13948728144168854, 0.05176937207579613, -0.20564138889312744, -0.1890890896320343, 0.04547957330942154, -0.25613144040107727, 0.1113566905260086, 0.1206168606877327, 0.28640860319137573, 0.09316369891166687, -0.1360223889350891, -0.14167159795761108, 0.02178686112165451, 0.09203870594501495, -0.008349191397428513, 0.09910984337329865, 0.20412160456180573, 0.006538897752761841, 0.1307080090045929, -0.1458197683095932, -0.01125311478972435, 0.07835444808006287, -0.11674000322818756, 0.19699722528457642, -0.22415634989738464, -0.10694873332977295, 0.047395214438438416, -0.27113771438598633, -0.14228837192058563, 0.9615890383720398, 0.12196908891201019, 0.07578522711992264, -0.4511287808418274, -0.07838213443756104, -0.12251730263233185, -0.22042544186115265, 0.3355658948421478, -0.0038510337471961975, 0.06445363163948059, 0.22537462413311005, -0.15308517217636108, -0.4721430838108063, 0.6222937703132629, -0.3715934455394745, 0.20504313707351685, 0.2726900577545166, 0.25140345096588135, 0.04696687310934067, -0.33537232875823975, -0.9059183597564697, 0.24444761872291565, 0.24088600277900696, 0.02762460708618164, 0.036421794444322586, -0.07637940347194672, -0.4120140075683594, -0.18613193929195404, -0.03051668405532837, 0.6717931032180786, -0.05589006841182709, -0.3063521385192871, 0.36361053586006165, 0.09961976110935211 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi ! Are you having this issue only with this specific dataset, or it also happens with other ones like `squad` ?
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
22
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 Hi ! Are you having this issue only with this specific dataset, or it also happens with other ones like `squad` ?
[ -0.4823263883590698, -0.09418731182813644, -0.12071987986564636, 0.09801706671714783, 0.0666414201259613, -0.07465872913599014, 0.23029333353042603, 0.08071639388799667, 0.04983456805348396, 0.24645665287971497, 0.03144007921218872, 0.61514812707901, 0.07998696714639664, 0.08994460850954056, -0.21506880223751068, 0.07997547090053558, 0.17740797996520996, 0.22267434000968933, -0.3837796449661255, 0.1506044715642929, -0.300224632024765, 0.3312658667564392, -0.32858186960220337, 0.1297631412744522, -0.17771728336811066, -0.24429386854171753, -0.025251461192965508, 0.18260028958320618, 0.046097446233034134, -0.3293398320674896, 0.32067301869392395, -0.2650405168533325, 0.24383997917175293, 0.4518454968929291, -0.00010933181329164654, -0.11185101419687271, 0.3101600408554077, 0.09455212950706482, -0.3214781582355499, -0.03178301453590393, -0.18243342638015747, -0.021772872656583786, 0.1722511202096939, -0.3631680905818939, 0.32207152247428894, 0.2951667606830597, 0.00717216357588768, -0.287442684173584, 0.19738785922527313, 0.4085330069065094, 0.2418861836194992, 0.7135310173034668, 0.14655755460262299, 0.05568763613700867, 0.1848490834236145, -0.1402464658021927, -0.35625943541526794, 0.13774096965789795, 0.30270180106163025, -0.3610857129096985, 0.21521131694316864, 0.1781436949968338, -0.16465435922145844, 0.1518886387348175, 0.08444298058748245, -0.0406351312994957, 0.062037866562604904, -0.31057557463645935, 0.2238103449344635, -0.0043023452162742615, 0.3726014792919159, -0.49755069613456726, -0.2278134673833847, 0.19831401109695435, 0.11897113919258118, -0.2930722236633301, 0.2673714756965637, 0.26004844903945923, -0.11330875754356384, 0.15407632291316986, 0.14765110611915588, 0.33458197116851807, -0.25474005937576294, 0.1963028907775879, -0.11332331597805023, 0.27451133728027344, -0.12273602187633514, 0.09443306922912598, -0.09699170291423798, 0.016161633655428886, 0.02906891703605652, -0.11929136514663696, -0.12531150877475739, 0.16858108341693878, -0.7996681928634644, -0.08709101378917694, -0.05055944621562958, 0.21392706036567688, 0.11830223351716995, -0.008670475333929062, 0.07924394309520721, -0.13229799270629883, 0.33815711736679077, 0.2955600619316101, 0.09830807149410248, -0.1588630974292755, 0.0681329071521759, 0.1116921529173851, 0.37175387144088745, -0.0034810667857527733, -0.14058586955070496, -0.11290266364812851, 0.09672721475362778, -0.24099098145961761, 0.2786034941673279, 0.01616707630455494, 0.4272918701171875, -0.1937427669763565, -0.4776916205883026, 0.5653190016746521, -0.39840516448020935, 0.17990842461585999, -0.06499915570020676, 0.40426185727119446, 0.07976563274860382, -0.16380628943443298, 0.1143714040517807, 0.19634418189525604, -0.3679197430610657, 0.1306266039609909, -0.1418006718158722, 0.000509968027472496, -0.1412118673324585, 0.01953231357038021, 0.15129168331623077, -0.23320436477661133, 0.18941481411457062, 0.2659633159637451, 0.2191423624753952, -0.40168893337249756, 0.11067084968090057, -0.09748764336109161, -0.3781299889087677, 0.25041329860687256, 0.32665175199508667, 0.14341916143894196, -0.0666370540857315, -0.02056317776441574, 0.1484069526195526, 0.27094894647598267, -0.16877126693725586, -0.18890291452407837, -0.392962247133255, 0.2797447144985199, -0.11468493938446045, 0.033850863575935364, -0.10402985662221909, -0.24410246312618256, 0.2317209243774414, -0.10208410024642944, 0.1924036145210266, -0.2675974369049072, 0.14561119675636292, -0.11566083133220673, 0.02361188270151615, 0.15881109237670898, -0.16958260536193848, 0.14167198538780212, -0.17340399324893951, -0.15731123089790344, 0.1927894800901413, 0.27213186025619507, -0.12394517660140991, -0.03910103440284729, -0.34967976808547974, 0.09426343441009521, 0.16991961002349854, -0.10438432544469833, -0.33067992329597473, 0.3258502781391144, -0.08853132277727127, -0.1447172909975052, -0.10561706870794296, -0.020636698231101036, 0.04215716943144798, -0.08501354604959488, -0.1802261769771576, -0.21512649953365326, -0.007593149319291115, 0.15420210361480713, -0.30815309286117554, -0.3051503002643585, 0.05970685929059982, 0.19916120171546936, 0.2608785629272461, -0.03950185328722, 0.37540921568870544, -0.035641416907310486, 0.3499755859375, -0.11754061281681061, -0.09224721789360046, 0.17835399508476257, 0.35566726326942444, -0.229866161942482, 0.05297522246837616, -0.15916985273361206, -0.6702606081962585, 0.18071597814559937, 0.1656576544046402, 0.2113179862499237, -0.07442677021026611, -0.11616037786006927, -0.06882493197917938, 0.3155626356601715, -0.05225963518023491, -0.003840513527393341, 0.1758316606283188, -0.11468587815761566, -0.05994779244065285, -0.147200807929039, -0.24787786602973938, 0.23204776644706726, -0.7155188322067261, 0.1314234584569931, -0.1407741755247116, 0.30058375000953674, -0.18762004375457764, -0.35932180285453796, 0.12070123851299286, -0.19524815678596497, 0.24060678482055664, 0.05937822908163071, -0.3034169673919678, 0.22024577856063843, -0.1401110142469406, 0.5234092473983765, -0.12149196118116379, 0.23038673400878906, -0.052744060754776, -0.3421448767185211, 0.03527846559882164, 0.056943003088235855, 0.1885984241962433, -0.001998431980609894, 0.17052391171455383, 0.1777384877204895, -0.15964002907276154, 0.23277875781059265, -0.1285792887210846, -0.07228683680295944, 0.07222157716751099, -0.13947968184947968, -0.009320035576820374, 0.1415272057056427, 0.3039071261882782, 0.18426930904388428, 0.3013441562652588, -0.15465977787971497, -0.4457629323005676, -0.1569490134716034, 0.2590028643608093, 0.007146421819925308, 0.22566792368888855, 0.08996136486530304, -0.08063598722219467, 0.05966845899820328, 0.3690814971923828, -0.026770737022161484, 0.796668529510498, 0.11773736029863358, -0.07533510029315948, 0.13515573740005493, -0.09051554650068283, -0.21692469716072083, 0.44264474511146545, 0.2501825988292694, 0.17459788918495178, 0.43610531091690063, 0.2811738848686218, 0.03425233066082001, -0.4044073522090912, -0.3952740430831909, -0.019732674583792686, 0.2163795679807663, -0.2601401209831238, 0.25543665885925293, -0.037354983389377594, 0.18225565552711487, -0.0639195367693901, 0.2400015890598297, 0.01716240867972374, -0.07050088793039322, -0.046914003789424896, 0.3004804253578186, -0.08305463194847107, 0.20093970000743866, -0.14339576661586761, -0.036189451813697815, 0.06290480494499207, 0.06526437401771545, -0.32829371094703674, -0.16393175721168518, -0.1558140218257904, 0.06774424016475677, 0.2645581364631653, -0.1575246900320053, 0.28295788168907166, 0.06659796088933945, -0.1457824558019638, -0.35690975189208984, -0.09290719777345657, 0.053434621542692184, 0.012308893725275993, 0.3559880554676056, 0.18353304266929626, 0.2865859866142273, -0.26073235273361206, -0.4826544523239136, 0.09654580801725388, -0.33372762799263, 0.057840436697006226, -0.002546563744544983, -0.2966887950897217, -0.04087807610630989, -0.2729908525943756, -0.34280794858932495, -0.19352678954601288, -0.3901371359825134, -0.05616748332977295, -0.19079716503620148, 0.07787938416004181, -0.14752839505672455, 0.28975144028663635, 0.09843546897172928, 0.3401772081851959, -0.26867666840553284, -0.2965061366558075, -0.31205737590789795, 0.18303488194942474, -0.10289222002029419, -0.21112719178199768, 0.22613582015037537, 0.241812065243721, 0.5197750329971313, 0.032978206872940063, -0.4396684169769287, 0.2005503922700882, -0.07337862253189087, 0.31209641695022583, -0.26642000675201416, 0.14898471534252167, 0.10876693576574326, -0.19283512234687805, -0.02669060416519642, -0.14301243424415588, -0.008037902414798737, -0.22552499175071716, 0.017436988651752472, 0.310172975063324, -0.2037787139415741, 0.4758348762989044, 0.1304405778646469, 0.6477094292640686, 0.14876988530158997, -0.36314892768859863, 0.32812580466270447, -0.06036388874053955, -0.07067489624023438, -0.1189916804432869, -0.1572401076555252, 0.185017928481102, -0.13472852110862732, -0.3503604531288147, 0.11241947114467621, -0.18174225091934204, -0.5196111798286438, -0.0818973258137703, 0.05969475582242012, -0.275860995054245, -0.28071358799934387, -0.041853196918964386, 0.3249349296092987, 0.24459737539291382, -0.04267667233943939, 0.06093665957450867, 0.07619330286979675, -0.07900320738554001, 0.04171763360500336, 0.38971441984176636, -0.19520488381385803, -0.10140421986579895, -0.11774186789989471, -0.26267173886299133, -0.44325006008148193, 0.3169192671775818, -0.15229636430740356, 0.3419368267059326, 0.04830276593565941, 0.10929562896490097, 0.1590946912765503, -0.3131529986858368, 0.36778202652931213, -0.0694475769996643, 0.18701547384262085, 0.05630183592438698, 0.3413409888744354, -0.16243787109851837, -0.19764195382595062, -0.3250181972980499, 0.25476375222206116, 0.3388160169124603, -0.029416240751743317, -0.09522490948438644, 0.0383484773337841, 0.07235616445541382, -0.12582367658615112, 0.1321980059146881, -0.38110774755477905, -0.20742034912109375, -0.2426096796989441, -0.40080031752586365, 0.4213258624076843, -0.028299571946263313, -0.0009479285217821598, -0.24228158593177795, -0.40499842166900635, -0.03219205141067505, -0.044053126126527786, 0.10193026810884476, 0.18150748312473297, -0.1903236210346222, -0.1376047283411026, 0.3349038362503052, -0.2704980969429016, -0.3373209834098816, 0.4276287853717804, 0.24211515486240387, 0.20801444351673126, -0.02771919220685959, 0.3016570508480072, 0.010322845540940762, 0.29193636775016785, 0.23972590267658234, -0.18412333726882935, 0.1279132068157196, 0.0843149721622467, 0.22487550973892212, 0.028562884777784348, 0.09710846841335297, 0.23952345550060272, 0.16410332918167114, -0.030560338869690895, 0.22866928577423096, 0.37670138478279114, -0.07230116426944733, -0.01201242208480835, 0.5393158197402954, -0.11516629159450531, -0.1694132387638092, 0.3050013780593872, 0.054852500557899475, 0.6787364482879639, 0.21217645704746246, -0.05621308460831642, 0.2949627637863159, -0.3407180905342102, 0.33776500821113586, -0.1975850611925125, 0.05735943838953972, -0.39536991715431213, 0.12361983954906464, 0.11689989268779755, -0.08130935579538345, 0.3585178256034851, 0.1677669882774353, 0.06053449586033821, 0.03810914605855942, 0.03125729411840439, 0.27408546209335327, -0.13249577581882477, 0.1294444501399994, -0.5348522067070007, -0.3308458924293518, -0.5394379496574402, 0.19924087822437286, -0.15019220113754272, 0.16934847831726074, -0.32298779487609863, 0.14031827449798584, 0.20160487294197083, -0.31718528270721436, -0.34920626878738403, 0.17861086130142212, -0.38293755054473877, 0.1335160732269287, -0.22253692150115967, -0.41156405210494995, 0.24673396348953247, 0.19070309400558472, -0.03210318833589554, 0.22751370072364807, 0.01426574494689703, 0.4036366939544678, 0.1017352044582367, 0.09052982181310654, -0.020604891702532768, -0.1149621456861496, -0.16744065284729004, -0.047278840094804764, -0.2051321119070053, 0.18924525380134583, -0.09172531217336655, -0.09605547785758972, 0.24298974871635437, 0.1076776459813118, -0.10810436308383942, -0.023465514183044434, -0.1044989675283432, -0.05058339238166809, -0.2246498018503189, -0.23196563124656677, 0.23188333213329315, 0.02241405099630356, -0.12982453405857086, 0.4898679852485657, -0.3267788290977478, -0.050119295716285706, -0.15267102420330048, 0.4751538038253784, -0.12365058809518814, -0.043558839708566666, 0.22535820305347443, 0.424319863319397, -0.08215214312076569, -0.32289940118789673, 0.17919042706489563, -0.3497648239135742, -0.33111992478370667, 0.023110250011086464, 0.07774928212165833, 0.09167216718196869, 0.25638440251350403, 0.25076231360435486, 0.04412465542554855, 0.05846131965517998, 0.08119598031044006, -0.32337644696235657, -0.28593990206718445, 0.025012198835611343, -0.02092885598540306, 0.3900224268436432, 0.32787302136421204, 0.07648633420467377, -0.3376361131668091, -0.09549764543771744, -0.32232236862182617, 0.050323568284511566, -0.2337905764579773, 0.12770333886146545, 0.043101951479911804, 0.0238361656665802, 0.27141624689102173, -0.09619969129562378, 0.1416793018579483, 0.3956422209739685, -0.10802505910396576, -0.2500184178352356, -0.15818025171756744, 0.11860474944114685, 0.1520785093307495, 0.08139635622501373, 0.03050776943564415, -0.18066956102848053, -0.04409724101424217, -0.0020195525139570236, 0.46470504999160767, 0.010993897914886475, -0.21682776510715485, -0.038994088768959045, -0.06225287541747093, -0.0128779336810112, -0.26689350605010986, -0.07644221931695938, 0.06370586901903152, 0.2091442346572876, -0.03523461893200874, 0.1508769392967224, 0.07097424566745758, -0.0007212162017822266, 0.011396924965083599, -0.08497878164052963, -0.23586364090442657, 0.34940996766090393, 0.2537575662136078, -0.26795494556427, -0.26496434211730957, -0.13824090361595154, 0.15592297911643982, 0.22511175274848938, -0.17499175667762756, -0.11647340655326843, 0.0061865574680268764, 0.29750797152519226, -0.08006004989147186, -0.1670023649930954, 0.12884847819805145, 0.00773879699409008, -0.06054575741291046, 0.050879769027233124, -0.037492454051971436, -0.28172409534454346, 0.022859439253807068, 0.07857941091060638, 0.42480555176734924, -0.4623887538909912, 0.02374599128961563, 0.08400289714336395, -0.07696802914142609, 0.20481736958026886, 0.06267039477825165, -0.18700198829174042, 0.2572800815105438, 0.4761088490486145, -0.16210022568702698, 0.06449844688177109, 0.4054139256477356, 0.23495464026927948, 0.11282525956630707, -0.24864700436592102, -0.4075111746788025, -0.05883017182350159, -0.14376288652420044, 0.28440576791763306, 0.19753892719745636, -0.010981455445289612, 0.019836708903312683, 0.018312321975827217, -0.30242297053337097, -0.010711003094911575, -0.32235440611839294, 0.04394369572401047, -0.38080424070358276, -0.03437954932451248, 0.24913820624351501, 0.02804361656308174, -0.04580206796526909, 0.11055916547775269, 0.3311462700366974, 0.24057269096374512, 0.0643303245306015, -0.26679104566574097, -0.03080441802740097, 0.4190954267978668, 0.06626912951469421, -0.18714934587478638, 0.050840385258197784, 0.18163782358169556, -0.07176458835601807, -0.4726986587047577, 0.07900314778089523, 0.6579465270042419, 0.016947707161307335, 0.07194563746452332, 0.12606747448444366, 0.17952297627925873, 0.059440962970256805, 0.07459091395139694, 0.11323686689138412, 0.12075373530387878, 0.2666739821434021, 0.14901117980480194, 0.17023971676826477, -0.16504284739494324, -0.004340015351772308, 0.3387471139431, -0.02101980894804001, -0.2424345314502716, -0.2416345477104187, -0.19542479515075684, -0.10136723518371582, -0.22658178210258484, 0.26398134231567383, -0.31235238909721375, 0.1984805166721344, 0.36638495326042175, 0.008295010775327682, 0.03935752809047699, -0.13455559313297272, 0.10939818620681763, -0.1921631544828415, 0.39062267541885376, 0.11315962672233582, 0.32639074325561523, -0.4209766983985901, -0.15541046857833862, -0.29619377851486206, 0.21313762664794922, 0.0012416765093803406, 0.34483402967453003, -0.05491897463798523, 0.10596605390310287, -0.18245723843574524, 0.03486005216836929, 0.41623353958129883, -0.16791853308677673, 0.12946371734142303, 0.7829437255859375, -0.3156925141811371, -0.12172551453113556, -0.20988471806049347, -0.38246995210647583, 0.053312838077545166, -0.374043345451355, -0.017723355442285538, -0.18713240325450897, -0.012632999569177628, -0.3062945604324341, -0.18582311272621155, 0.10758863389492035, -0.1373320072889328, 0.7154783606529236, -0.044572167098522186, 0.3198084831237793, -0.2935832440853119, 0.02161216549575329, -0.11585098505020142, -0.3517833352088928, 0.1380847841501236, 0.01124558225274086, -0.08525519073009491, 0.4363047480583191, -0.05012854188680649, -0.01910199597477913, -0.026888085529208183, -0.09990247339010239, -0.10238829255104065, -0.24867206811904907, -0.1281943917274475, 0.08251183480024338, -0.23342886567115784, 0.15432535111904144, -0.21591296792030334, 0.44156351685523987, 0.18371105194091797, 0.18199530243873596, -0.4950414299964905, -0.3122367262840271, 0.35077303647994995, -0.28946518898010254, -0.23368559777736664, -0.12077809125185013, 0.36738356947898865, 0.25323352217674255, -0.029961014166474342, -0.4289545714855194, -0.020797722041606903, 0.20657680928707123, -0.14687275886535645, -0.274839848279953, 0.06322093307971954, 0.23940204083919525, -0.010738898068666458, 0.00190797820687294, 0.1302330493927002, 0.16957196593284607, -0.08694041520357132, 0.3067711293697357, -0.4197967052459717 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
@lhoestq It happens also on `squad`. It successfully downloads the whole dataset and then crashes on: ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` I tested it on Ubuntu and its working OK. Didn't test on non-preview version of Windows 11, `Windows-10-10.0.22504-SP0` is a preview version, not sure if this is causing it.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
61
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 @lhoestq It happens also on `squad`. It successfully downloads the whole dataset and then crashes on: ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` I tested it on Ubuntu and its working OK. Didn't test on non-preview version of Windows 11, `Windows-10-10.0.22504-SP0` is a preview version, not sure if this is causing it.
[ -0.5945265293121338, -0.03006216138601303, -0.05127887800335884, 0.22074459493160248, 0.042004235088825226, 0.044369518756866455, 0.09532236307859421, 0.14426060020923615, 0.1222056895494461, 0.14347967505455017, -0.06163482367992401, 0.5850591063499451, 0.03757024183869362, 0.12055503576993942, -0.30808696150779724, 0.03481098264455795, 0.18851211667060852, 0.24041777849197388, -0.4595806300640106, 0.18691718578338623, -0.3032238483428955, 0.3453540802001953, -0.26027601957321167, 0.13463357090950012, 0.04213501885533333, -0.1968775987625122, -0.14885395765304565, 0.20107558369636536, -0.07423083484172821, -0.2864915132522583, 0.29913201928138733, -0.230800598859787, 0.3682495355606079, 0.4272995889186859, -0.00011745539814000949, -0.10026951134204865, 0.35822921991348267, 0.07904380559921265, -0.23586958646774292, -0.04870586097240448, -0.17975318431854248, 0.02433217130601406, 0.07938536256551743, -0.29489246010780334, 0.44477248191833496, 0.2634952664375305, -0.002443978562951088, -0.24479058384895325, 0.16964352130889893, 0.4753597676753998, 0.15132078528404236, 0.8094774484634399, 0.2087617963552475, 0.06301821023225784, 0.15632599592208862, -0.20020835101604462, -0.3551686406135559, 0.10350139439105988, 0.3712545931339264, -0.34398406744003296, 0.21099969744682312, 0.0041114590130746365, -0.1643911600112915, 0.12699328362941742, 0.07125940173864365, -0.0660402923822403, -0.0026303082704544067, -0.39851412177085876, 0.2711314558982849, 0.0063400715589523315, 0.47636717557907104, -0.4716658890247345, -0.22964359819889069, 0.1929728090763092, 0.026052772998809814, -0.28321054577827454, 0.3270210027694702, 0.30155402421951294, -0.255327045917511, 0.11223869025707245, 0.06257754564285278, 0.28556469082832336, -0.21447697281837463, 0.25509393215179443, -0.14030273258686066, 0.24887460470199585, -0.15468990802764893, 0.15991449356079102, -0.011051405221223831, 0.14064927399158478, 0.06881966441869736, -0.26192545890808105, -0.18489891290664673, 0.0704168975353241, -0.744517982006073, -0.13088616728782654, -0.05798778682947159, 0.2496541440486908, 0.13867923617362976, 0.021060556173324585, 0.11534328758716583, -0.16485688090324402, 0.3813509941101074, 0.1840270459651947, 0.24122311174869537, -0.15552730858325958, 0.0887540727853775, 0.10902827233076096, 0.24356335401535034, 0.08394603431224823, 0.05851173773407936, -0.07712016999721527, 0.047091566026210785, -0.15238404273986816, 0.20020896196365356, 0.05272313579916954, 0.275739848613739, -0.21194028854370117, -0.4556531012058258, 0.49257010221481323, -0.3128277659416199, 0.23121178150177002, -0.09610987454652786, 0.46940937638282776, 0.1410818099975586, -0.17829498648643494, 0.04480411857366562, 0.23652754724025726, -0.24757423996925354, 0.20364445447921753, -0.01959143579006195, -0.05833759531378746, -0.11657002568244934, 0.0656609758734703, 0.19043011963367462, -0.2062090039253235, 0.26585063338279724, 0.13596323132514954, 0.014272700995206833, -0.4328814744949341, 0.151279479265213, -0.01859738677740097, -0.3559507429599762, 0.22685347497463226, 0.40957003831863403, 0.28686779737472534, -0.12543334066867828, 0.12992146611213684, 0.049302779138088226, 0.42358386516571045, -0.059913791716098785, -0.13216198980808258, -0.39957723021507263, 0.19667629897594452, -0.2177075892686844, 0.019274963065981865, -0.20268109440803528, -0.15100625157356262, 0.15844008326530457, 0.026794511824846268, 0.22862692177295685, -0.20716647803783417, 0.11359445750713348, -0.06075344234704971, 0.05837500840425491, 0.27312758564949036, -0.19331613183021545, 0.07195401191711426, -0.18986158072948456, -0.22854092717170715, 0.15266720950603485, 0.21970020234584808, -0.1109217032790184, -0.05826602131128311, -0.3346826136112213, 0.08273839950561523, 0.21928970515727997, -0.09435653686523438, -0.3747973144054413, 0.5333964228630066, -0.12597912549972534, -0.11461231857538223, -0.12063375860452652, -0.006232279818505049, 0.1685018688440323, -0.07866067439317703, -0.33365949988365173, -0.14568783342838287, 0.00717519037425518, 0.03945084661245346, -0.2569044828414917, -0.3434803783893585, 0.06299875676631927, 0.19682981073856354, 0.23504221439361572, -0.012635856866836548, 0.2946358919143677, 0.05431842803955078, 0.3523746132850647, -0.05947371944785118, -0.06843244284391403, 0.3224886655807495, 0.29516923427581787, -0.32055461406707764, -0.011647343635559082, -0.19346070289611816, -0.7862319350242615, 0.2362462878227234, 0.14557905495166779, 0.12157642841339111, 0.016222842037677765, -0.09006144106388092, -0.1477847695350647, 0.2923690378665924, -0.057204533368349075, -0.06894466280937195, 0.07392040640115738, -0.09880124032497406, 0.06883314251899719, -0.15239286422729492, -0.23976100981235504, 0.21224701404571533, -0.7878751158714294, 0.16393667459487915, -0.09831786155700684, 0.2302183359861374, -0.2041424810886383, -0.31625962257385254, 0.08341430127620697, -0.2877327501773834, 0.14733579754829407, 0.045514754951000214, -0.24258780479431152, 0.2752542197704315, -0.21636416018009186, 0.5208960771560669, -0.24703752994537354, 0.24310770630836487, 0.021464522927999496, -0.3336755633354187, 0.07744494825601578, 0.04644875228404999, 0.2368069589138031, -0.032127343118190765, 0.06320223212242126, 0.1591186225414276, -0.15594585239887238, 0.23354536294937134, -0.038763098418712616, -0.05901550501585007, -0.034616466611623764, -0.1613657921552658, -0.06303548812866211, 0.16151878237724304, 0.30889633297920227, 0.17013520002365112, 0.04926582798361778, -0.19681239128112793, -0.28605955839157104, -0.15538552403450012, 0.27598315477371216, -0.12791527807712555, 0.22750753164291382, 0.07041580229997635, -0.04150703549385071, 0.11801118403673172, 0.4343196451663971, -0.08088355511426926, 0.9347217082977295, 0.0018429679330438375, 0.03531290963292122, 0.2009410262107849, -0.05809590965509415, -0.19396381080150604, 0.46906766295433044, 0.3363732099533081, 0.07957936823368073, 0.4199272096157074, 0.11056533455848694, 0.11482018232345581, -0.4306532144546509, -0.3719189465045929, 0.08257932960987091, 0.18981431424617767, -0.2700968384742737, 0.15995736420154572, 0.017650721594691277, 0.24660390615463257, -0.14010503888130188, 0.25127893686294556, 0.10024873912334442, -0.030632944777607918, -0.08552096784114838, 0.39623504877090454, -0.12783098220825195, 0.17142027616500854, -0.2369767725467682, -0.08562882244586945, 0.0760541632771492, 0.04433484748005867, -0.20415356755256653, -0.055502574890851974, -0.2001534402370453, 0.001197725534439087, 0.35337021946907043, -0.08259014785289764, 0.2602202296257019, 0.171471506357193, -0.16620492935180664, -0.34801843762397766, -0.10213924944400787, 0.052983906120061874, -0.0016486458480358124, 0.3050311207771301, 0.09114732593297958, 0.35211706161499023, -0.23783515393733978, -0.46821334958076477, 0.02694455161690712, -0.24209922552108765, 0.0018658638000488281, -0.0206026341766119, -0.18884716928005219, -0.16219785809516907, -0.24024812877178192, -0.3338269889354706, -0.07263651490211487, -0.40418827533721924, -0.05654691904783249, -0.20053215324878693, 0.08342874050140381, -0.3380368947982788, 0.3115384578704834, 0.09624277055263519, 0.3443050980567932, -0.2489730715751648, -0.17921192944049835, -0.18616676330566406, 0.1535690724849701, -0.05089636147022247, -0.23932085931301117, 0.24305593967437744, 0.3084745407104492, 0.4400065839290619, 0.154572531580925, -0.5992288589477539, 0.18373285233974457, -0.15064939856529236, 0.1672736257314682, -0.1957254558801651, 0.1524519920349121, 0.05007459968328476, -0.1618422418832779, 0.11411593854427338, -0.01030394434928894, -0.027314158156514168, -0.271912157535553, -0.07254225015640259, 0.32677021622657776, -0.07038359344005585, 0.5273263454437256, 0.20267803966999054, 0.7233592867851257, 0.3773345649242401, -0.29537105560302734, 0.31268399953842163, 0.07199960947036743, 0.09564842283725739, -0.14727842807769775, -0.1434146612882614, 0.27738094329833984, -0.1821620762348175, -0.18531997501850128, 0.0702301561832428, -0.2321488857269287, -0.5769820213317871, -0.09902845323085785, 0.157450333237648, -0.21863248944282532, -0.26394301652908325, 0.07486749440431595, 0.24484315514564514, 0.2539405822753906, -0.07331967353820801, 0.12098970264196396, 0.26553648710250854, -0.09910322725772858, 0.13317124545574188, 0.437966525554657, -0.26148444414138794, -0.03846976161003113, -0.11160795390605927, -0.1724047064781189, -0.5118256211280823, 0.2406245470046997, -0.18862949311733246, 0.5073844194412231, 0.09799447655677795, 0.10496155172586441, 0.08692554384469986, -0.357938289642334, 0.3812227249145508, -0.055045850574970245, 0.20182809233665466, -0.016346262767910957, 0.2828391194343567, -0.17917458713054657, -0.20834536850452423, -0.3531241714954376, 0.23407042026519775, 0.2537628412246704, 0.005059190094470978, -0.06541676819324493, 0.03615356236696243, 0.04761549085378647, -0.19508051872253418, 0.15375284850597382, -0.3294377028942108, -0.16554248332977295, -0.30219942331314087, -0.43603479862213135, 0.3359628915786743, -0.008132612332701683, -0.04370402172207832, -0.2305700182914734, -0.4514521062374115, -0.006683586165308952, -0.06310944259166718, 0.06322183459997177, 0.11666239798069, -0.28522685170173645, -0.11452186107635498, 0.4135977327823639, -0.3531017005443573, -0.3471183180809021, 0.2988021969795227, 0.36254778504371643, 0.12998883426189423, -0.10458531975746155, 0.38315877318382263, -0.03316937014460564, 0.16998496651649475, 0.3341366648674011, -0.1411636769771576, -0.0320504754781723, 0.051683586090803146, 0.06876019388437271, -0.1328260600566864, 0.13182063400745392, 0.3128351867198944, 0.14582665264606476, -0.057439230382442474, 0.341656893491745, 0.42521628737449646, -0.0428810715675354, -0.034233130514621735, 0.6525982022285461, -0.10204103589057922, -0.16029304265975952, 0.3260681629180908, 0.02000812441110611, 0.6784618496894836, 0.16215349733829498, -0.06099797412753105, 0.11739061027765274, -0.4070160388946533, 0.39314618706703186, -0.0751366913318634, 0.11917123198509216, -0.28276175260543823, 0.0084786806255579, 0.03649028390645981, -0.028938252478837967, 0.38854092359542847, 0.14706721901893616, 0.0406048558652401, 0.0707356408238411, 0.1024744063615799, 0.42652586102485657, 0.002830241806805134, 0.13028767704963684, -0.608547568321228, -0.352417916059494, -0.42357102036476135, 0.1457187384366989, -0.040376245975494385, 0.22982412576675415, -0.3128100633621216, 0.19433924555778503, 0.23319143056869507, -0.29960715770721436, -0.6230085492134094, 0.1697419285774231, -0.47826001048088074, 0.07624582201242447, -0.3338227868080139, -0.3413342833518982, 0.28368324041366577, 0.20925424993038177, -0.03683552145957947, 0.2516847252845764, -0.0109358299523592, 0.4111860394477844, 0.048849329352378845, 0.028745831921696663, 0.07376373559236526, -0.11555294692516327, -0.20765827596187592, -0.044364724308252335, -0.06757942587137222, 0.2769898772239685, -0.057736631482839584, -0.05767979100346565, 0.20040839910507202, 0.07221410423517227, 0.04012584686279297, -0.01966911368072033, -0.18229208886623383, -0.06791488826274872, -0.21423761546611786, -0.19972895085811615, 0.13284121453762054, -0.026328541338443756, -0.11799687147140503, 0.4299730956554413, -0.3922121822834015, -0.006176494061946869, -0.15517857670783997, 0.5715019702911377, -0.21438145637512207, -0.21448253095149994, 0.16640551388263702, 0.3999161422252655, -0.022651134058833122, -0.28238627314567566, 0.18763598799705505, -0.24338875710964203, -0.3244299292564392, -0.03961300104856491, -0.002630047732964158, 0.017890483140945435, 0.22256743907928467, 0.2324027568101883, 0.16250981390476227, 0.04701048135757446, 0.020254384726285934, -0.3584124445915222, -0.18231624364852905, 0.029863614588975906, -0.006172288209199905, 0.4070482850074768, 0.09046981483697891, -0.0006928332149982452, -0.2453881800174713, -0.06239372491836548, -0.2192385494709015, 0.08847006410360336, -0.17493383586406708, 0.10475679486989975, 0.2353360503911972, 0.09588004648685455, 0.2981981933116913, -0.04596387967467308, 0.008957570418715477, 0.4484509825706482, -0.06996620446443558, -0.14834848046302795, -0.09251029789447784, 0.1618647277355194, 0.2847222685813904, 0.03895740211009979, 0.009093216620385647, -0.30211544036865234, -0.10045191645622253, 0.041058093309402466, 0.5126984119415283, -0.0007213093340396881, -0.26544421911239624, -0.054946981370449066, -0.05156482383608818, 0.07972095161676407, -0.3798289895057678, -0.02518836408853531, -0.014745637774467468, 0.39853769540786743, 0.012155760079622269, 0.22063346207141876, 0.1868206262588501, 0.0004662945866584778, -0.06575560569763184, -0.03211916983127594, -0.20049206912517548, 0.34704819321632385, 0.2438325583934784, -0.26283496618270874, -0.1885361224412918, -0.11614722013473511, 0.13531441986560822, 0.5015133619308472, -0.20848959684371948, -0.14065732061862946, 0.016949426382780075, 0.19245143234729767, 0.07083398848772049, -0.14631183445453644, 0.032069798558950424, 0.018034901469945908, -0.10159562528133392, 0.0643148273229599, -0.11098480224609375, -0.43860405683517456, 0.07628123462200165, 0.03919551894068718, 0.49534401297569275, -0.3610793948173523, 0.05505838245153427, 0.19248661398887634, -0.08447631448507309, 0.22557426989078522, -0.07776962220668793, -0.15814316272735596, 0.30303099751472473, 0.4272831678390503, -0.14322254061698914, 0.10473299026489258, 0.319629967212677, 0.27093935012817383, 0.08792456239461899, -0.3692186176776886, -0.45913296937942505, -0.07497097551822662, -0.032720789313316345, 0.4876661002635956, 0.2349453866481781, -0.02131197601556778, -0.08997476100921631, -0.11137170344591141, -0.35641247034072876, -0.12411138415336609, -0.27797022461891174, 0.007951440289616585, -0.36924660205841064, -0.027181893587112427, 0.1514747440814972, 0.2016349583864212, -0.06760293245315552, -0.0800025463104248, 0.386618435382843, 0.1281510889530182, -0.08284680545330048, -0.2630200982093811, -0.09889889508485794, 0.3682527244091034, -0.13412678241729736, -0.21181419491767883, 0.1624809205532074, 0.14775894582271576, -0.017271682620048523, -0.49450430274009705, -0.02030092291533947, 0.5871215462684631, 0.08733667433261871, 0.01767606846988201, 0.20216946303844452, 0.2980765700340271, 0.0525115430355072, 0.08300361782312393, 0.22619342803955078, 0.12205491214990616, 0.24261200428009033, 0.20645122230052948, 0.07886336743831635, -0.08633771538734436, 0.020984280854463577, 0.4052415192127228, -0.06871436536312103, -0.22415117919445038, -0.17675969004631042, -0.24391409754753113, 0.039809226989746094, -0.13361813127994537, 0.2067461460828781, -0.3149629831314087, 0.03679972514510155, 0.270901083946228, -0.1248280331492424, -0.00450444221496582, -0.06292244046926498, 0.05226673185825348, -0.2461692988872528, 0.3415250778198242, 0.21683041751384735, 0.2571907341480255, -0.43281692266464233, -0.12976759672164917, -0.25925010442733765, 0.2108003795146942, 0.11081890761852264, 0.3747042715549469, -0.004341321997344494, 0.09043940901756287, -0.24603897333145142, 0.10843116790056229, 0.32690346240997314, -0.020227329805493355, 0.12184757739305496, 0.7604517936706543, -0.31036555767059326, -0.20750229060649872, -0.20113332569599152, -0.3277760446071625, 0.007101830095052719, -0.44128987193107605, 0.031063226982951164, -0.22772003710269928, -0.1403624713420868, -0.3331088423728943, -0.30415600538253784, 0.020361226052045822, -0.20235571265220642, 0.6579101085662842, -0.017096688970923424, 0.3220219314098358, -0.21652239561080933, -0.07540704309940338, -0.2194996178150177, -0.21079246699810028, 0.13225959241390228, 0.012229286134243011, 0.007442265748977661, 0.3169167935848236, -0.16021102666854858, 0.10628841817378998, -0.09019576013088226, -0.16125500202178955, -0.028286907821893692, -0.16549867391586304, -0.13350020349025726, 0.004710821434855461, -0.32998213171958923, 0.14795126020908356, -0.05167939513921738, 0.46684256196022034, 0.16005069017410278, 0.24234749376773834, -0.5066174268722534, -0.2766638696193695, 0.28054147958755493, -0.2836250960826874, -0.19417846202850342, -0.044857319444417953, 0.299254834651947, 0.24313956499099731, 0.029037170112133026, -0.5353298187255859, -0.0006398484110832214, 0.13877113163471222, -0.2683946192264557, -0.28853362798690796, -0.0028227772563695908, 0.1455623209476471, -0.026547763496637344, 0.05722765997052193, 0.22945551574230194, 0.16817712783813477, -0.18404623866081238, 0.3629617393016815, -0.4666094183921814 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I see the same error in Windows-10.0.19042 as of a few days ago: `Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS` python 3.8.12 h7840368_2_cpython conda-forge boto3 1.20.11 pyhd8ed1ab_0 conda-forge botocore 1.23.11 pyhd8ed1ab_0 conda-forge ...but I am not using `datasets` (although I might take a look now that I know about it!) The error has occurred a few times over the last two days, but not consistently enough for me to get it with DEBUG. If there is any interest I can report back here, but it seems not unique to `datasets`.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
95
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 I see the same error in Windows-10.0.19042 as of a few days ago: `Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS` python 3.8.12 h7840368_2_cpython conda-forge boto3 1.20.11 pyhd8ed1ab_0 conda-forge botocore 1.23.11 pyhd8ed1ab_0 conda-forge ...but I am not using `datasets` (although I might take a look now that I know about it!) The error has occurred a few times over the last two days, but not consistently enough for me to get it with DEBUG. If there is any interest I can report back here, but it seems not unique to `datasets`.
[ -0.5499542355537415, -0.051986441016197205, -0.09508079290390015, 0.09246641397476196, 0.035908620804548264, -0.05519711226224899, 0.276456743478775, 0.12071681022644043, 0.06539027392864227, 0.1175079196691513, -0.04873935133218765, 0.6524454355239868, 0.03590280935168266, 0.13385175168514252, -0.24515020847320557, 0.07679871469736099, 0.25223901867866516, 0.21518272161483765, -0.4482089579105377, 0.23734213411808014, -0.2854834198951721, 0.37099868059158325, -0.29468250274658203, 0.11929388344287872, -0.10029065608978271, -0.22873416543006897, -0.19836506247520447, 0.2068600356578827, 0.13150419294834137, -0.3093937039375305, 0.32657575607299805, -0.2388521432876587, 0.2607095539569855, 0.3707391321659088, -0.00011576076212804765, -0.09178554266691208, 0.407168984413147, 0.1486901491880417, -0.31175997853279114, 0.06088438630104065, -0.3279651999473572, 0.09865046292543411, 0.03637152910232544, -0.25651755928993225, 0.40489697456359863, 0.20502334833145142, -0.024998782202601433, -0.28506746888160706, 0.10519816726446152, 0.5059041976928711, 0.1646057814359665, 0.7699397802352905, 0.19439972937107086, -0.04982593283057213, -0.08175695687532425, 0.003118447959423065, -0.2729867398738861, 0.35021865367889404, 0.2688426971435547, -0.36928462982177734, 0.1845424473285675, 0.13684135675430298, -0.1802816241979599, 0.08598457276821136, -0.03474660962820053, -0.09316035360097885, 0.09091129153966904, -0.2314378023147583, 0.23872685432434082, -0.012606769800186157, 0.39918720722198486, -0.48744675517082214, -0.2710629999637604, 0.14339622855186462, 0.09238406270742416, -0.20439094305038452, 0.3033299446105957, 0.23958076536655426, -0.15120437741279602, 0.2067984789609909, 0.17901979386806488, 0.30225706100463867, -0.22046272456645966, 0.1466665267944336, -0.03159376233816147, 0.12474311143159866, -0.17962922155857086, 0.1160249263048172, -0.06410866975784302, 0.02857305482029915, 0.060919277369976044, -0.2030080109834671, -0.22057583928108215, 0.02410667948424816, -0.777759313583374, 0.00452876091003418, -0.03530004620552063, 0.3059517741203308, -0.0020857229828834534, -0.020133592188358307, 0.053015194833278656, -0.2604514956474304, 0.32602646946907043, 0.15835295617580414, 0.08545967191457748, -0.17489585280418396, 0.06494185328483582, 0.09540224820375443, 0.2698766589164734, 0.03684040904045105, 0.04339258745312691, -0.07715679705142975, -0.10671965032815933, -0.44068095088005066, 0.23477496206760406, 0.09638956934213638, 0.4120790958404541, -0.17306305468082428, -0.5890123248100281, 0.49018898606300354, -0.4142448306083679, 0.21294349431991577, -0.08652254939079285, 0.3402364253997803, 0.02415618672966957, -0.09614504128694534, 0.13113845884799957, 0.2550383508205414, -0.37489163875579834, 0.20423346757888794, -0.05025722086429596, 0.09060169756412506, -0.14799921214580536, 0.02545628696680069, 0.21211658418178558, -0.3565872013568878, 0.13564400374889374, 0.2735174000263214, 0.10953308641910553, -0.3662678003311157, 0.02661963365972042, 0.003683316521346569, -0.3870204985141754, 0.3093949258327484, 0.13233037292957306, 0.24634452164173126, -0.013362664729356766, 0.21171237528324127, 0.10058832913637161, 0.32578280568122864, -0.02569282054901123, -0.29298388957977295, -0.4018710255622864, 0.2093168944120407, -0.06287503242492676, 0.09698683768510818, -0.05439718812704086, -0.2722679674625397, 0.2890056073665619, -0.04861241579055786, 0.23528125882148743, -0.2277194708585739, 0.08328287303447723, -0.10516318678855896, 0.033125169575214386, 0.26248836517333984, -0.16511929035186768, 0.1303039938211441, -0.24116250872612, -0.1495911031961441, 0.11351195722818375, 0.16046123206615448, -0.10077139735221863, 0.00897914171218872, -0.4193948805332184, -0.007192350924015045, 0.039526671171188354, -0.07931365072727203, -0.24527791142463684, 0.3874911665916443, -0.035562075674533844, -0.018659833818674088, -0.062049515545368195, -0.16265112161636353, -0.07585614919662476, -0.11044780910015106, -0.01789560168981552, -0.4756786823272705, 0.055936310440301895, -0.00801411084830761, -0.2914661169052124, -0.3126811683177948, 0.10697587579488754, 0.1609325110912323, 0.21301260590553284, -0.04029356688261032, 0.2886611521244049, -0.03924935683608055, 0.3231610059738159, -0.05136961117386818, -0.06603717803955078, 0.21877865493297577, 0.31840360164642334, -0.3267132043838501, 0.05630515143275261, -0.14403966069221497, -0.5493646264076233, 0.24098321795463562, 0.25275683403015137, 0.19630871713161469, -0.0165657177567482, -0.06290648877620697, -0.0942293256521225, 0.3367319405078888, 0.038584426045417786, -0.18202513456344604, 0.09452523291110992, -0.10428740084171295, -0.010358704254031181, -0.13806013762950897, -0.26190710067749023, 0.44133973121643066, -0.667767345905304, 0.11267466098070145, -0.1301286518573761, 0.13679592311382294, -0.23743809759616852, -0.32122036814689636, 0.03519897162914276, -0.14021480083465576, 0.19509899616241455, 0.15806370973587036, -0.25824567675590515, 0.17661124467849731, -0.15781532227993011, 0.48284631967544556, -0.19851386547088623, 0.3389192223548889, 0.03249650076031685, -0.3154916763305664, -0.029428211972117424, 0.14267858862876892, 0.15785670280456543, 0.049950361251831055, 0.2831953465938568, 0.2175726294517517, -0.21824289858341217, 0.2862239480018616, -0.12845422327518463, -0.012051254510879517, 0.030105004087090492, -0.05028291791677475, -0.020029341802001, 0.11486522853374481, 0.41772329807281494, 0.14498423039913177, 0.261011004447937, -0.1689377725124359, -0.43381261825561523, -0.10106907039880753, 0.13448241353034973, -0.06622974574565887, 0.1614035665988922, 0.037726666778326035, -0.03887932747602463, 0.0679812952876091, 0.4430502951145172, -0.10253417491912842, 0.8532711267471313, -0.08478506654500961, -0.08189976215362549, 0.23972195386886597, -0.13523896038532257, -0.21343682706356049, 0.5190563797950745, 0.22317476570606232, 0.08543147146701813, 0.5037111639976501, 0.13698914647102356, 0.12018388509750366, -0.269792377948761, -0.5076431632041931, 0.09771183133125305, 0.20171234011650085, -0.30691078305244446, 0.21552136540412903, -0.006614476442337036, 0.16086113452911377, -0.13768041133880615, 0.19633792340755463, 0.06777045130729675, -0.0010172976180911064, -0.074984110891819, 0.34357762336730957, -0.14977535605430603, 0.20127630233764648, -0.22180238366127014, 0.04723110795021057, -0.06740409880876541, 0.24128457903862, -0.3252986669540405, -0.09446211904287338, -0.2167847752571106, 0.015036139637231827, 0.10823321342468262, -0.16343098878860474, 0.29656147956848145, 0.008710933849215508, -0.05873749777674675, -0.23296399414539337, -0.0927877426147461, 0.008847258985042572, 0.12329503148794174, 0.3535715937614441, 0.23546813428401947, 0.20224186778068542, -0.11048946529626846, -0.5874233245849609, 0.041711341589689255, -0.22713011503219604, -0.007861620746552944, -0.06384909152984619, -0.2713925242424011, 0.005524523556232452, -0.29997456073760986, -0.20543107390403748, -0.023490170016884804, -0.47394272685050964, 0.025204122066497803, -0.44585832953453064, 0.03903616964817047, -0.08380952477455139, 0.17855526506900787, 0.1490820050239563, 0.39935925602912903, -0.13037410378456116, -0.2798658013343811, -0.2293710708618164, 0.04652491956949234, -0.034829214215278625, -0.1626737117767334, 0.15880191326141357, 0.21723158657550812, 0.4926835596561432, 0.07971860468387604, -0.3393377661705017, 0.25801587104797363, -0.11950112879276276, 0.18679212033748627, -0.18114900588989258, 0.04916392266750336, 0.10797630250453949, -0.09564144909381866, 0.033895835280418396, -0.1273283064365387, 0.02978409081697464, -0.19472751021385193, -0.06280086189508438, 0.25593996047973633, -0.0705881342291832, 0.4808875620365143, 0.14839622378349304, 0.46128225326538086, 0.338451087474823, -0.33344146609306335, 0.21881458163261414, 0.07698308676481247, 0.1375109851360321, -0.0855766162276268, -0.26244962215423584, 0.1904401034116745, -0.1460716724395752, -0.377136766910553, 0.033176347613334656, -0.25447458028793335, -0.29176557064056396, -0.10379847884178162, -0.06608127057552338, -0.2650919258594513, -0.3019343614578247, 0.04224592074751854, -0.024174533784389496, 0.2734474837779999, -0.11122798919677734, 0.08018855005502701, 0.1956411451101303, 0.08925122767686844, 0.1346595585346222, 0.5528953075408936, -0.14417621493339539, -0.1667933166027069, -0.02002919837832451, -0.26271599531173706, -0.5973228812217712, 0.2886919379234314, -0.11974772065877914, 0.5577743053436279, -0.0004006028175354004, 0.1118670180439949, 0.05827747657895088, -0.40269312262535095, 0.4368171691894531, -0.12896114587783813, 0.1737026423215866, 0.10100094974040985, 0.24762481451034546, -0.15899743139743805, -0.30695340037345886, -0.25760573148727417, 0.2303997427225113, 0.2549823820590973, 0.0941580981016159, -0.06222192198038101, -0.011913477443158627, 0.009611330926418304, -0.17252568900585175, 0.1112360805273056, -0.3681073784828186, -0.11051687598228455, -0.22722065448760986, -0.3403021991252899, 0.3736662268638611, 0.006628150120377541, 0.06505663692951202, -0.292154997587204, -0.228158637881279, -0.09913740307092667, -0.049895189702510834, 0.09471800178289413, 0.030086982995271683, -0.29444244503974915, -0.20339825749397278, 0.47379839420318604, -0.2385876178741455, -0.2888435125350952, 0.4684761166572571, 0.22336749732494354, 0.16352348029613495, -0.13806433975696564, 0.258283793926239, 0.10145318508148193, 0.191266268491745, 0.25314873456954956, -0.19214995205402374, 0.030221905559301376, 0.11697767674922943, 0.14524918794631958, -0.2197420597076416, 0.14313730597496033, 0.2654211223125458, 0.16525644063949585, -0.2215099334716797, 0.21644990146160126, 0.256633996963501, -0.04510584473609924, -0.1023433655500412, 0.8201965093612671, -0.2270539551973343, -0.20194782316684723, 0.2659204602241516, -0.01223842054605484, 0.6963154077529907, 0.3141005039215088, -0.024849068373441696, 0.274929404258728, -0.47921639680862427, 0.33414068818092346, -0.06885801255702972, 0.12961004674434662, -0.320834219455719, 0.0899105966091156, 0.12031488120555878, -0.05214035511016846, 0.41205108165740967, 0.09191630035638809, 0.09931235015392303, -0.05176213011145592, 0.09758403897285461, 0.274380624294281, 0.0017151013016700745, 0.007282175123691559, -0.5819389820098877, -0.24762752652168274, -0.32461339235305786, 0.12957863509655, -0.06247016042470932, 0.24800385534763336, -0.3686099052429199, 0.21144630014896393, 0.2427600920200348, -0.34619271755218506, -0.6382424831390381, 0.23296871781349182, -0.33442777395248413, 0.22470980882644653, -0.23266005516052246, -0.3397756814956665, 0.16368523240089417, 0.07131495326757431, 0.10189517587423325, 0.22666297852993011, 0.048197999596595764, 0.3509863018989563, 0.1040821373462677, 0.08019336313009262, -0.009279340505599976, -0.2638883590698242, -0.1302827149629593, 0.04412796348333359, -0.19271539151668549, 0.11349661648273468, -0.20446202158927917, -0.07385203242301941, 0.15776696801185608, 0.09271999448537827, -0.23769526183605194, -0.009658034890890121, -0.1157355010509491, -0.011224918067455292, -0.1404125839471817, -0.17568936944007874, 0.1563715785741806, 0.05203354358673096, -0.04569658637046814, 0.4244813024997711, -0.6460199356079102, -0.05266963317990303, -0.14369769394397736, 0.4721561074256897, -0.22375527024269104, -0.08576954901218414, 0.1416807472705841, 0.30413341522216797, -0.050290077924728394, -0.25211578607559204, 0.037028856575489044, -0.23875722289085388, -0.2549445927143097, 0.004627998918294907, 0.010288944467902184, 0.08974747359752655, 0.3478768467903137, 0.21124966442584991, 0.10059037804603577, 0.1137603372335434, 0.09109023213386536, -0.41108840703964233, -0.1661393940448761, 0.1254958063364029, -0.07693375647068024, 0.41918429732322693, 0.196699857711792, 0.1555691361427307, -0.35917720198631287, -0.16090045869350433, -0.2336767315864563, 0.047348812222480774, -0.05703560262918472, 0.0765085443854332, -0.05464532971382141, 0.057404644787311554, 0.365969181060791, -0.09828957915306091, 0.04101516306400299, 0.38515418767929077, -0.009580623358488083, -0.1332188844680786, -0.20897313952445984, 0.13864560425281525, 0.20573025941848755, -0.0426662415266037, 0.18101446330547333, -0.2095533162355423, 0.0834733247756958, 0.006938660982996225, 0.479123592376709, 0.15540459752082825, -0.216448113322258, -0.03086863085627556, -0.031722377985715866, 0.1524515151977539, -0.28287258744239807, 0.027644172310829163, 0.01835363358259201, 0.37287431955337524, 0.008634958416223526, 0.23974069952964783, 0.004708059132099152, 0.04213504493236542, -0.0294802263379097, -0.07035050541162491, -0.3500632643699646, 0.22887828946113586, 0.14858666062355042, -0.19227977097034454, -0.26137325167655945, -0.21579182147979736, 0.29554852843284607, 0.31486111879348755, -0.15338286757469177, -0.10996779054403305, 0.005200923886150122, 0.2159425914287567, 0.02656427025794983, -0.05152662470936775, -0.0216335691511631, 0.003956195432692766, -0.16434091329574585, 0.022222153842449188, -0.0733531266450882, -0.4028477966785431, 0.04132608696818352, 0.012699965387582779, 0.3487914502620697, -0.4518175721168518, 0.15376293659210205, 0.25848761200904846, 0.03904851898550987, 0.28551703691482544, 0.08844641596078873, -0.2318112552165985, 0.4138804078102112, 0.4094993472099304, -0.13690561056137085, 0.0638941079378128, 0.538173258304596, 0.2773176431655884, 0.21090999245643616, -0.3912745416164398, -0.39968207478523254, -0.13560068607330322, -0.19268375635147095, 0.3018335700035095, 0.1556146740913391, -0.15087103843688965, -0.19291900098323822, 0.042224135249853134, -0.32843345403671265, -0.016858890652656555, -0.3345430791378021, -0.0747016966342926, -0.21285800635814667, -0.044255953282117844, 0.305286169052124, 0.07774539291858673, 0.042935557663440704, 0.08824130147695541, 0.4079175591468811, 0.12092547863721848, -0.0558677613735199, -0.3429783880710602, -0.10187741369009018, 0.45070353150367737, 0.02335786074399948, -0.1191105991601944, -0.025294432416558266, 0.30417948961257935, -0.16604554653167725, -0.49218568205833435, 0.23355844616889954, 0.7798629999160767, 0.08038900047540665, -0.01065906323492527, 0.0813807025551796, 0.21629175543785095, 0.18518616259098053, 0.06789225339889526, 0.2161915898323059, 0.11043841391801834, 0.22002677619457245, 0.16159258782863617, 0.10901759564876556, -0.09318548440933228, 0.18711285293102264, 0.40820103883743286, 0.01037243939936161, -0.20208697021007538, -0.152166485786438, -0.25062280893325806, 0.008272901177406311, -0.035150907933712006, 0.4417700171470642, -0.29705125093460083, 0.09940027445554733, 0.4669768810272217, -0.06766913831233978, -0.052726324647665024, -0.025065012276172638, 0.07011944055557251, -0.1502194106578827, 0.35080626606941223, 0.2500776946544647, 0.3387395441532135, -0.4030468761920929, -0.1500459760427475, -0.15154710412025452, 0.22483877837657928, 0.07167825847864151, 0.4849933087825775, -0.15791505575180054, -0.006191465072333813, -0.31279969215393066, -0.11333350837230682, 0.27330830693244934, -0.08332791924476624, 0.12856876850128174, 0.7740317583084106, -0.28597649931907654, -0.10489460825920105, -0.11403942108154297, -0.4571283459663391, 0.08127640932798386, -0.42594385147094727, 0.027748730033636093, -0.1606450229883194, -0.08010251075029373, -0.29164332151412964, -0.20574989914894104, 0.25168678164482117, -0.17210540175437927, 0.6512356400489807, 0.04990852624177933, 0.25786882638931274, -0.1843811273574829, -0.11719529330730438, -0.31428882479667664, -0.3332761824131012, 0.2324327975511551, 0.15678000450134277, -0.043857913464307785, 0.2950526773929596, -0.1348508596420288, -0.0035527683794498444, -0.0330774188041687, -0.14012566208839417, -0.14565622806549072, -0.24641253054141998, -0.12104831635951996, 0.09340610355138779, -0.30210185050964355, 0.017966916784644127, -0.14468584954738617, 0.5091730356216431, 0.15759724378585815, 0.27982279658317566, -0.441778302192688, -0.38221630454063416, 0.16969150304794312, -0.4895388185977936, -0.20890818536281586, -0.16881272196769714, 0.3892956078052521, 0.12362399697303772, 0.039240628480911255, -0.5031626224517822, -0.06456504762172699, 0.22067928314208984, -0.140303373336792, -0.2223505675792694, -0.0022708624601364136, 0.290344774723053, -0.02099776640534401, 0.05556606128811836, 0.3383876085281372, 0.13379624485969543, -0.14492996037006378, 0.356865257024765, -0.3620724081993103 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I'm not sure what `datasets` has to do with a crash that seems related to `aws-c-io`, could it be an issue with your environment ?
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
25
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 I'm not sure what `datasets` has to do with a crash that seems related to `aws-c-io`, could it be an issue with your environment ?
[ -0.5580902695655823, -0.08660528063774109, -0.18001078069210052, 0.23315539956092834, 0.1390400230884552, -0.057807378470897675, 0.10201794654130936, 0.16040602326393127, 0.19599460065364838, 0.2191377878189087, 0.047211818397045135, 0.503542959690094, -0.08148665726184845, 0.1524396687746048, -0.051285624504089355, -0.07057856768369675, 0.22704720497131348, 0.1326991319656372, -0.36356157064437866, 0.26189935207366943, -0.22357936203479767, 0.26272085309028625, -0.20268294215202332, 0.1686505377292633, -0.22370536625385284, -0.1931314468383789, -0.12142324447631836, 0.2672083377838135, -0.13068075478076935, -0.3011423647403717, 0.3730948567390442, -0.26578566431999207, 0.22782786190509796, 0.4516441524028778, -0.00010396241850685328, -0.045709915459156036, 0.2753753066062927, 0.14242008328437805, -0.3168177306652069, -0.0783035010099411, -0.3594653904438019, -0.04928596317768097, 0.07198118418455124, -0.3418896794319153, 0.3768463134765625, 0.13693681359291077, -0.04975125938653946, -0.2243693470954895, 0.18776509165763855, 0.4523930251598358, 0.28536123037338257, 0.6975256204605103, 0.23343409597873688, 0.033898163586854935, 0.24066144227981567, -0.1576882153749466, -0.25853338837623596, 0.2231757491827011, 0.2173849642276764, -0.34061455726623535, 0.20647794008255005, 0.058824680745601654, -0.26166588068008423, 0.058096129447221756, 0.11309175193309784, -0.06895747035741806, 0.011282466351985931, -0.18765246868133545, 0.09073994308710098, -0.08289173990488052, 0.3635473847389221, -0.4973258674144745, -0.12446271628141403, 0.23138192296028137, 0.012884922325611115, -0.31661954522132874, 0.15914583206176758, 0.11354611814022064, -0.10260394215583801, 0.13335421681404114, 0.08531562983989716, 0.18465015292167664, -0.2870873212814331, 0.26600080728530884, -0.19350500404834747, 0.33994534611701965, -0.1535818874835968, 0.07815790176391602, -0.09162528812885284, 0.03500581160187721, 0.008282072842121124, -0.07282230257987976, -0.22773385047912598, 0.10473993420600891, -0.6485288739204407, -0.06612922251224518, 0.0728503167629242, 0.2460373342037201, 0.09913650900125504, 0.007235320284962654, 0.0361945815384388, -0.09463115781545639, 0.19879694283008575, 0.2689354419708252, 0.07515284419059753, 0.031872060149908066, -0.026776738464832306, 0.06998352706432343, 0.33780723810195923, 0.10599981248378754, -0.06805569678544998, -0.16020071506500244, 0.07941064983606339, -0.2515023648738861, 0.24914030730724335, 0.05402175337076187, 0.46651995182037354, -0.23416686058044434, -0.4691081643104553, 0.40845969319343567, -0.3015957176685333, 0.12691809237003326, -0.04506736993789673, 0.42280858755111694, 0.07395204156637192, -0.1321832239627838, 0.16118521988391876, 0.10472188144922256, -0.25703176856040955, 0.14720502495765686, -0.16382862627506256, 0.03978314623236656, -0.22341038286685944, 0.03823661059141159, 0.12196367979049683, -0.22394055128097534, 0.18074381351470947, 0.18383324146270752, 0.11451007425785065, -0.3768922984600067, 0.16911627352237701, 0.01923244446516037, -0.3441358804702759, 0.338466614484787, 0.1876029074192047, 0.15747740864753723, 0.07181167602539062, -0.034882523119449615, 0.12049698084592819, 0.22618186473846436, -0.23061782121658325, -0.31094008684158325, -0.309009313583374, 0.3398906886577606, -0.03651615232229233, 0.06975959241390228, -0.13491737842559814, -0.22452159225940704, 0.1453903466463089, -0.1713082194328308, 0.15087014436721802, -0.24075619876384735, 0.20696213841438293, -0.1823582649230957, 0.13446077704429626, 0.25018447637557983, -0.31477591395378113, 0.14700165390968323, -0.320511132478714, -0.1503468006849289, 0.09136775135993958, 0.25619375705718994, -0.158973827958107, 0.035272371023893356, -0.3089306950569153, 0.030599310994148254, 0.15514719486236572, 0.04643094167113304, -0.31824007630348206, 0.35831600427627563, -0.09580658376216888, -0.1559324413537979, -0.09425605088472366, 0.023484788835048676, -0.09464731812477112, -0.058913759887218475, -0.017480112612247467, -0.26002711057662964, -0.05923125147819519, 0.11457525938749313, -0.23558156192302704, -0.28426113724708557, 0.044661279767751694, 0.19445206224918365, 0.25490203499794006, -0.07101791352033615, 0.3657624423503876, -0.10829359292984009, 0.334753155708313, -0.14033016562461853, -0.16716018319129944, 0.3004723787307739, 0.42610034346580505, -0.15666146576404572, 0.048957448452711105, -0.3304820656776428, -0.49772489070892334, 0.2141333520412445, 0.22265788912773132, 0.2173025906085968, -0.12482495605945587, -0.1662076711654663, -0.17535704374313354, 0.37382975220680237, 0.0586375817656517, -0.05064438655972481, 0.21192598342895508, -0.049781039357185364, -0.016852304339408875, -0.06179432570934296, -0.24810123443603516, 0.2332932949066162, -0.5981221199035645, 0.07095320522785187, -0.2811797559261322, 0.2732841670513153, -0.18923866748809814, -0.3173205256462097, 0.016003213822841644, -0.211274653673172, 0.1684761643409729, 0.03403149172663689, -0.21804511547088623, 0.265749990940094, -0.204420804977417, 0.46863800287246704, -0.20016050338745117, 0.28941571712493896, -0.04851652681827545, -0.3430216908454895, 0.17225150763988495, 0.025545978918671608, 0.1771014779806137, -0.013409603387117386, 0.35648760199546814, 0.20490853488445282, -0.2383439689874649, 0.2057051658630371, -0.058546826243400574, -0.03675771504640579, -0.010089648887515068, -0.10416118800640106, 0.07929759472608566, 0.05723077803850174, 0.32271844148635864, 0.027743589133024216, 0.14519695937633514, -0.2174711376428604, -0.3156680464744568, -0.12503191828727722, 0.26929381489753723, -0.003222765401005745, 0.2474178671836853, -0.018131792545318604, -0.1586836278438568, 0.09847051650285721, 0.4700217843055725, 0.12142926454544067, 0.787345290184021, 0.19028340280056, -0.1476655900478363, 0.1761024296283722, -0.18489506840705872, -0.15043854713439941, 0.41164714097976685, 0.19375383853912354, 0.1181439682841301, 0.2728654742240906, 0.13567881286144257, 0.03566158935427666, -0.4417087435722351, -0.46415239572525024, -0.12096647918224335, 0.254675954580307, -0.2979380786418915, 0.29710131883621216, -0.08885113894939423, 0.09583821147680283, -0.07070382684469223, 0.11682374775409698, 0.02000483311712742, -0.15985560417175293, -0.09149333834648132, 0.3216969668865204, -0.1792338639497757, 0.0909569188952446, -0.15932902693748474, -0.09212903678417206, 0.00935417227447033, 0.09503252804279327, -0.35765039920806885, -0.15986359119415283, -0.17076173424720764, 0.13088756799697876, 0.34840717911720276, 0.002762104384601116, 0.4173462986946106, 0.06192542612552643, -0.11468775570392609, -0.24515235424041748, -0.15734343230724335, -0.020621150732040405, -0.10679905116558075, 0.34809160232543945, 0.20148803293704987, 0.24674473702907562, -0.24522778391838074, -0.428456574678421, 0.06564383208751678, -0.2069745808839798, 0.04093288630247116, 0.0008336920291185379, -0.18012173473834991, -0.1447228193283081, -0.2529624104499817, -0.3234044313430786, -0.22121161222457886, -0.40343180298805237, -0.06658171117305756, -0.1826649308204651, 0.12472380697727203, -0.17308309674263, 0.29746976494789124, 0.18411962687969208, 0.302804559469223, -0.24656590819358826, -0.17780497670173645, -0.27664846181869507, 0.08158519864082336, -0.08004964143037796, -0.10493966937065125, 0.1979304850101471, 0.22952891886234283, 0.4112248420715332, 0.10461496561765671, -0.4618681073188782, 0.2610214650630951, -0.16560383141040802, 0.257293701171875, -0.17802003026008606, 0.1114288866519928, 0.1481209397315979, -0.020637623965740204, -0.05477224290370941, -0.06620500981807709, 0.0480463020503521, -0.32670876383781433, -0.01587175950407982, 0.28835001587867737, -0.13566404581069946, 0.5551945567131042, 0.01785627380013466, 0.6567832231521606, 0.12805363535881042, -0.29480043053627014, 0.3476787507534027, -0.0864531397819519, 0.04290369525551796, -0.15354064106941223, -0.1987634301185608, 0.046523310244083405, -0.06797151267528534, -0.446887731552124, -0.021819815039634705, -0.19744017720222473, -0.35198891162872314, -0.15636692941188812, 0.030411817133426666, -0.21747806668281555, -0.20824068784713745, 0.018519293516874313, 0.19986729323863983, 0.2868543267250061, -0.12165431678295135, -0.005487237125635147, 0.08513559401035309, -0.003065632190555334, 0.06766866147518158, 0.40415167808532715, -0.2816104292869568, -0.16786077618598938, 0.00736013799905777, -0.20586296916007996, -0.5083903670310974, 0.29787203669548035, -0.15281781554222107, 0.23152820765972137, -0.04780104383826256, 0.11664243787527084, 0.024050645530223846, -0.32978421449661255, 0.3545982539653778, -0.18841804563999176, 0.07741180807352066, 0.12788359820842743, 0.29611098766326904, -0.22857548296451569, -0.11951254308223724, -0.3941951096057892, 0.26513034105300903, 0.20770303905010223, 0.043352071195840836, -0.0434824675321579, 0.014780141413211823, 0.1462552845478058, -0.001821291632950306, 0.03202870115637779, -0.2892377972602844, -0.15219688415527344, -0.23840788006782532, -0.2683712840080261, 0.22759968042373657, -0.0112858721986413, -0.08013855665922165, -0.23707056045532227, -0.3360459804534912, -0.09561796486377716, 0.014074239879846573, 0.1676749289035797, 0.15875345468521118, -0.14637315273284912, -0.22794438898563385, 0.26657235622406006, -0.3570805490016937, -0.26058146357536316, 0.4193132817745209, 0.31969332695007324, 0.1631898432970047, -0.0633680522441864, 0.1843385100364685, 0.15520648658275604, 0.25021815299987793, 0.173244446516037, -0.1887725442647934, 0.08938926458358765, 0.16340719163417816, 0.22772033512592316, -0.08418316394090652, 0.10768529772758484, 0.258503258228302, 0.3000776767730713, -0.18614645302295685, 0.14777778089046478, 0.41569116711616516, -0.06259734183549881, -0.03128780052065849, 0.5311102271080017, -0.04239948093891144, -0.2936863899230957, 0.40116119384765625, -0.015329331159591675, 0.6291109323501587, 0.23326154053211212, -0.04156676307320595, 0.31723862886428833, -0.1596607267856598, 0.332485556602478, -0.18397492170333862, 0.04018037021160126, -0.33782264590263367, 0.024087809026241302, 0.03551844507455826, -0.08659188449382782, 0.3674760162830353, 0.03506086394190788, -0.04784778505563736, 0.08129821717739105, 0.027475982904434204, 0.15711557865142822, -0.1843259632587433, 0.04833913594484329, -0.53565514087677, -0.17730626463890076, -0.4494065046310425, 0.29043489694595337, -0.1282731145620346, 0.1330975592136383, -0.298615962266922, 0.19886821508407593, 0.17275187373161316, -0.21851536631584167, -0.4346655011177063, 0.0916939303278923, -0.295257568359375, 0.20242734253406525, -0.3498397767543793, -0.2793516516685486, 0.18956339359283447, 0.1686413437128067, 0.058415886014699936, 0.23128381371498108, -0.055198051035404205, 0.36622029542922974, -0.05008954554796219, -0.05012271925806999, 0.039330750703811646, -0.1577364057302475, -0.08674558997154236, -0.003164011985063553, -0.29369115829467773, 0.28332120180130005, -0.10388021171092987, -0.05455959215760231, 0.1974831223487854, 0.043216243386268616, -0.08796446025371552, -0.0935266837477684, -0.19513200223445892, -0.021184347569942474, -0.17162619531154633, -0.1867472529411316, 0.27208155393600464, -0.002456367015838623, -0.030004579573869705, 0.3711065351963043, -0.3489473760128021, -0.010904520750045776, -0.13157659769058228, 0.43503835797309875, -0.08999251574277878, -0.042640555649995804, 0.17402395606040955, 0.3948286473751068, -0.053666017949581146, -0.34095045924186707, 0.14706683158874512, -0.23699232935905457, -0.271491140127182, 0.005684863775968552, 0.08301115781068802, 0.18003235757350922, 0.2450958788394928, 0.1936039924621582, 0.1923658847808838, 0.05733370780944824, -0.059069275856018066, -0.2522789239883423, -0.3350847661495209, 0.17176401615142822, 0.12618200480937958, 0.4865533709526062, 0.2048872709274292, -0.1615014374256134, -0.34160104393959045, -0.07700233161449432, -0.37820789217948914, 0.03650461137294769, -0.13179948925971985, 0.00003966130316257477, 0.09875229001045227, 0.10317008197307587, 0.28705891966819763, -0.1436670571565628, 0.2116176337003708, 0.37792521715164185, -0.032613255083560944, -0.3035917282104492, -0.08655793964862823, 0.07247097790241241, 0.1420324295759201, 0.04625649005174637, 0.10163655132055283, -0.23916833102703094, 0.03465506434440613, 0.06304579973220825, 0.5821730494499207, 0.07903407514095306, -0.20992641150951385, -0.052797142416238785, -0.01810494437813759, 0.0058810412883758545, -0.2795438766479492, 0.08307217806577682, -0.05788198113441467, 0.2159828245639801, 0.026685509830713272, 0.12867069244384766, 0.08816844969987869, -0.059705279767513275, 0.037523891776800156, -0.048739321529865265, -0.2664937376976013, 0.3595658838748932, 0.3037896752357483, -0.19363243877887726, -0.27949464321136475, -0.21296153962612152, 0.2041947990655899, 0.21990230679512024, -0.19545996189117432, -0.07569748908281326, 0.10353030264377594, 0.3542763292789459, -0.01500007975846529, -0.09442005306482315, -0.017012935131788254, 0.023114603012800217, -0.05341290682554245, -0.00003805011510848999, -0.11012941598892212, -0.30073851346969604, 0.04075052961707115, 0.14658772945404053, 0.32124027609825134, -0.2797973155975342, 0.10661803185939789, 0.11177843809127808, -0.0451677180826664, 0.13656456768512726, 0.006551165133714676, -0.1333213597536087, 0.34485042095184326, 0.49642032384872437, -0.17464065551757812, 0.18044725060462952, 0.27262941002845764, 0.25878193974494934, 0.05688238888978958, -0.28490757942199707, -0.2352343648672104, -0.1550304889678955, -0.23749682307243347, 0.32463061809539795, 0.23102155327796936, 0.010060727596282959, -0.08305903524160385, 0.07418343424797058, -0.33671531081199646, 0.012854240834712982, -0.28790852427482605, 0.11895884573459625, -0.2816355228424072, -0.05630222707986832, 0.21641647815704346, 0.08876265585422516, -0.026938501745462418, 0.015498343855142593, 0.26197582483291626, 0.21158118546009064, -0.03857484459877014, -0.34028616547584534, 0.03140393644571304, 0.3942582607269287, 0.05784114450216293, -0.10061755031347275, 0.06568477302789688, 0.2548573315143585, -0.11004967987537384, -0.5073836445808411, 0.13993686437606812, 0.6200224161148071, 0.05256711319088936, 0.13672906160354614, 0.23949287831783295, 0.229244664311409, -0.019850216805934906, 0.08221390098333359, -0.03153936192393303, 0.09249374270439148, 0.3412429988384247, 0.14360935986042023, 0.27697911858558655, -0.24792689085006714, -0.022534798830747604, 0.21961475908756256, 0.06290243566036224, -0.19333036243915558, -0.2581028640270233, -0.1533578634262085, -0.13049426674842834, -0.1438371241092682, 0.1664336919784546, -0.5015866160392761, 0.03599056228995323, 0.4835571348667145, -0.02361774444580078, 0.06170044094324112, -0.13066981732845306, 0.12750692665576935, -0.19018903374671936, 0.33483144640922546, 0.24857579171657562, 0.3589082360267639, -0.37676748633384705, -0.23702314496040344, -0.22691676020622253, 0.17912861704826355, -0.010913323611021042, 0.28712305426597595, -0.08870753645896912, -0.11715689301490784, -0.10143781453371048, -0.04775041341781616, 0.3598383367061615, -0.002788318321108818, 0.04494841769337654, 0.6793603897094727, -0.32370319962501526, -0.12702909111976624, -0.19545750319957733, -0.41872695088386536, -0.0027543921023607254, -0.3169216811656952, -0.009012069553136826, -0.19494915008544922, 0.05223585665225983, -0.3706085681915283, -0.03538171201944351, 0.08385957777500153, -0.15711194276809692, 0.8148201107978821, -0.038098327815532684, 0.2887337803840637, -0.3294127583503723, -0.006724506616592407, -0.16422533988952637, -0.3030407428741455, 0.18444012105464935, 0.11011546850204468, -0.04203087463974953, 0.4261198341846466, -0.11508917808532715, -0.08891361951828003, -0.09217748790979385, -0.04555211588740349, -0.03499820455908775, -0.21059763431549072, -0.07829824835062027, 0.047582387924194336, -0.21766921877861023, 0.030092211440205574, -0.06810634583234787, 0.39276790618896484, 0.2255888283252716, 0.19900469481945038, -0.30798065662384033, -0.21676777303218842, 0.2779802680015564, -0.13856986165046692, -0.13925592601299286, 0.03474300354719162, 0.25170910358428955, 0.12658070027828217, -0.0456947386264801, -0.4866904020309448, -0.020189717411994934, 0.2172817587852478, -0.14988157153129578, -0.18997147679328918, 0.14605146646499634, 0.24678359925746918, 0.05435098335146904, 0.015165314078330994, 0.235740065574646, 0.07023704051971436, -0.1674107313156128, 0.31573137640953064, -0.36439818143844604 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> I'm not sure what `datasets` has to do with a crash that seems related to `aws-c-io`, could it be an issue with your environment ? Agreed, this issue is not likely a bug in datasets, since I get the identical error without datasets installed.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
45
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 > I'm not sure what `datasets` has to do with a crash that seems related to `aws-c-io`, could it be an issue with your environment ? Agreed, this issue is not likely a bug in datasets, since I get the identical error without datasets installed.
[ -0.5877728462219238, -0.0985601618885994, -0.14411455392837524, 0.21847964823246002, 0.09239888191223145, -0.04794664308428764, 0.10614857077598572, 0.1226169615983963, 0.21122108399868011, 0.189591646194458, 0.0708780512213707, 0.578441858291626, -0.05585116147994995, 0.14291107654571533, -0.10181976854801178, -0.06022787094116211, 0.25093379616737366, 0.1484445333480835, -0.3987596929073334, 0.29078829288482666, -0.24315784871578217, 0.2944349944591522, -0.25793397426605225, 0.1939396858215332, -0.21356013417243958, -0.19254642724990845, -0.14469702541828156, 0.2619643211364746, -0.09193383902311325, -0.3031485080718994, 0.3964146673679352, -0.256061315536499, 0.24351570010185242, 0.4746381342411041, -0.00010610820027068257, -0.08020193129777908, 0.2947806119918823, 0.1537577509880066, -0.2961403429508209, -0.07007130980491638, -0.39318978786468506, -0.004301230423152447, 0.0910915657877922, -0.31301337480545044, 0.40954452753067017, 0.11877693980932236, -0.03553483635187149, -0.25431907176971436, 0.17287297546863556, 0.44584301114082336, 0.24617899954319, 0.6981561183929443, 0.21922574937343597, 0.027631491422653198, 0.16733013093471527, -0.13710418343544006, -0.279489666223526, 0.2411757856607437, 0.23274318873882294, -0.36584678292274475, 0.20374485850334167, 0.06294041872024536, -0.27255499362945557, 0.09171657264232635, 0.15065550804138184, -0.0715622529387474, 0.0003565475344657898, -0.2031453400850296, 0.10823187977075577, -0.07296528667211533, 0.3915717899799347, -0.5057070255279541, -0.11644570529460907, 0.2129105031490326, 0.042573314160108566, -0.30927878618240356, 0.19889649748802185, 0.12773515284061432, -0.13965573906898499, 0.15492847561836243, 0.0949404314160347, 0.19787022471427917, -0.30118528008461, 0.27303534746170044, -0.18239456415176392, 0.275368869304657, -0.15617235004901886, 0.08661384135484695, -0.06511974334716797, 0.05923032760620117, 0.0309843011200428, -0.13132022321224213, -0.20174650847911835, 0.08398394286632538, -0.682388186454773, -0.06543252617120743, 0.07359244674444199, 0.28999269008636475, 0.07984727621078491, -0.03217722475528717, 0.01612032763659954, -0.12025553733110428, 0.20454512536525726, 0.25967589020729065, 0.08855336904525757, -0.028593983501195908, 0.010880164802074432, 0.0731564611196518, 0.326038122177124, 0.09651588648557663, -0.01802097074687481, -0.14286211133003235, 0.08932074904441833, -0.2459665834903717, 0.220429465174675, 0.040636636316776276, 0.47166305780410767, -0.22805668413639069, -0.49933376908302307, 0.4374729096889496, -0.36304643750190735, 0.17606620490550995, -0.06287884712219238, 0.40154141187667847, 0.05523894354701042, -0.1487734317779541, 0.1606702357530594, 0.14765633642673492, -0.28317901492118835, 0.18001168966293335, -0.12388227880001068, 0.04373396188020706, -0.23268617689609528, 0.04046115279197693, 0.12935900688171387, -0.22640188038349152, 0.16809174418449402, 0.22730641067028046, 0.10510292649269104, -0.4078165292739868, 0.18377049267292023, 0.03928833827376366, -0.3672151565551758, 0.31876200437545776, 0.18617838621139526, 0.16179491579532623, 0.061412081122398376, 0.028575971722602844, 0.13893955945968628, 0.2625074088573456, -0.16442352533340454, -0.3175092041492462, -0.29619407653808594, 0.31358301639556885, -0.07163962721824646, 0.07670173048973083, -0.14451175928115845, -0.23782478272914886, 0.1425105780363083, -0.14061135053634644, 0.15293267369270325, -0.25653380155563354, 0.1812170445919037, -0.15055078268051147, 0.08585283160209656, 0.25881698727607727, -0.28994497656822205, 0.13601498305797577, -0.3475252389907837, -0.16441765427589417, 0.07631556689739227, 0.2417825311422348, -0.13932684063911438, 0.021846462041139603, -0.3356441855430603, 0.030200548470020294, 0.14455768465995789, 0.09230673313140869, -0.3059607744216919, 0.38897407054901123, -0.09276125580072403, -0.10989504307508469, -0.13114327192306519, 0.013203667476773262, -0.10809948295354843, -0.07502017170190811, -0.02887239307165146, -0.32615166902542114, -0.06402312219142914, 0.058959342539310455, -0.213788703083992, -0.303615540266037, 0.06533397734165192, 0.21279771625995636, 0.23096826672554016, -0.03343702852725983, 0.360706090927124, -0.08312766999006271, 0.3458634614944458, -0.12140420079231262, -0.16593408584594727, 0.2928098440170288, 0.4134371876716614, -0.1757051944732666, 0.03508877381682396, -0.32583311200141907, -0.5155242085456848, 0.23045572638511658, 0.2795439064502716, 0.22265149652957916, -0.12169207632541656, -0.16521203517913818, -0.16219666600227356, 0.37867045402526855, 0.04945167526602745, -0.05109309032559395, 0.17711776494979858, -0.06308591365814209, -0.05906384438276291, -0.08889177441596985, -0.26875922083854675, 0.2841093838214874, -0.6477702260017395, 0.08530740439891815, -0.2740430533885956, 0.20912010967731476, -0.18130400776863098, -0.3070008158683777, 0.03682436794042587, -0.21173828840255737, 0.14242276549339294, 0.06164126843214035, -0.22394004464149475, 0.2642255127429962, -0.1875465214252472, 0.4725884795188904, -0.2061445713043213, 0.3058319687843323, -0.04770413786172867, -0.37774357199668884, 0.12145788222551346, 0.029355663806200027, 0.16489991545677185, -0.0026104412972927094, 0.3278173804283142, 0.19685031473636627, -0.22269482910633087, 0.24011152982711792, -0.09874977916479111, -0.005367967300117016, -0.034628432244062424, -0.09881718456745148, 0.04127322882413864, 0.08460995554924011, 0.3563321530818939, 0.024886472150683403, 0.13075026869773865, -0.21817292273044586, -0.35485607385635376, -0.13045448064804077, 0.2157481163740158, 0.0052124373614788055, 0.2641455829143524, -0.00640295073390007, -0.12383528798818588, 0.13491716980934143, 0.45506247878074646, 0.07373718917369843, 0.8468413352966309, 0.1617288589477539, -0.12895014882087708, 0.2258804440498352, -0.16585640609264374, -0.1615801453590393, 0.4344460368156433, 0.19325920939445496, 0.13566266000270844, 0.27204638719558716, 0.11331720650196075, 0.03970368951559067, -0.42096513509750366, -0.4879217743873596, -0.08979210257530212, 0.26296505331993103, -0.30186930298805237, 0.2855697274208069, -0.059956327080726624, 0.08855786174535751, -0.07245849817991257, 0.16295157372951508, 0.051241498440504074, -0.1267939954996109, -0.0727090984582901, 0.34332290291786194, -0.17853589355945587, 0.11322766542434692, -0.16452288627624512, -0.08060093224048615, -0.011632680892944336, 0.1421692669391632, -0.35070258378982544, -0.18705561757087708, -0.17305848002433777, 0.1033712774515152, 0.3211435079574585, 0.0019081211648881435, 0.4160151481628418, 0.04937850683927536, -0.12689471244812012, -0.22987382113933563, -0.1113523542881012, -0.011533886194229126, -0.08604643493890762, 0.3279511332511902, 0.23972679674625397, 0.28002306818962097, -0.24221257865428925, -0.3903713822364807, 0.03650505468249321, -0.2309512197971344, 0.04163794219493866, -0.00690174475312233, -0.1970527023077011, -0.11808852851390839, -0.24947433173656464, -0.34865325689315796, -0.16443896293640137, -0.4070204198360443, -0.04930253326892853, -0.2442290484905243, 0.09238322079181671, -0.18769219517707825, 0.29403212666511536, 0.18124918639659882, 0.319443017244339, -0.2857070863246918, -0.19310908019542694, -0.2581540644168854, 0.06818696111440659, -0.047456044703722, -0.10600808262825012, 0.2231670618057251, 0.26555830240249634, 0.4115251898765564, 0.10444384813308716, -0.4842066764831543, 0.2805038094520569, -0.15295317769050598, 0.2557046711444855, -0.17719091475009918, 0.10080908238887787, 0.1254771649837494, -0.04450998455286026, -0.025818809866905212, -0.0750814750790596, 0.06470517814159393, -0.29316431283950806, -0.034903496503829956, 0.30225101113319397, -0.11628752201795578, 0.5645009279251099, 0.06156846508383751, 0.6580147743225098, 0.17305995523929596, -0.2855514585971832, 0.2953933775424957, -0.04886601120233536, 0.051186516880989075, -0.1462797224521637, -0.2019895613193512, 0.049103666096925735, -0.07661622762680054, -0.43181777000427246, -0.030738115310668945, -0.19829702377319336, -0.3751920163631439, -0.1650320589542389, 0.05322466418147087, -0.1936531960964203, -0.21271108090877533, -0.016429731622338295, 0.16110412776470184, 0.31184524297714233, -0.09877552092075348, -0.00810607522726059, 0.13882271945476532, -0.00020739343017339706, 0.0903855562210083, 0.42771512269973755, -0.25271883606910706, -0.1415845900774002, -0.006131011992692947, -0.2123953104019165, -0.5335054993629456, 0.30402523279190063, -0.1477411985397339, 0.2798674404621124, -0.07223115116357803, 0.14504101872444153, 0.01941799372434616, -0.29604995250701904, 0.3518754839897156, -0.19219259917736053, 0.08360730111598969, 0.09409293532371521, 0.3269783854484558, -0.23576194047927856, -0.11421672999858856, -0.3964976370334625, 0.29229608178138733, 0.21481280028820038, 0.017922326922416687, -0.05085768923163414, 0.025261351838707924, 0.10601352155208588, -0.026979848742485046, 0.07634671032428741, -0.36708298325538635, -0.15929724276065826, -0.2227608859539032, -0.26213347911834717, 0.2768201529979706, -0.00988785084336996, -0.07645151019096375, -0.22823092341423035, -0.3526792824268341, -0.062060900032520294, 0.013811860233545303, 0.150883287191391, 0.1341550499200821, -0.18772080540657043, -0.24914686381816864, 0.291171133518219, -0.3398668169975281, -0.31212297081947327, 0.4644319713115692, 0.2932393550872803, 0.18348900973796844, -0.06243312358856201, 0.21193605661392212, 0.12850640714168549, 0.2351512908935547, 0.1885223388671875, -0.19964812695980072, 0.09023062139749527, 0.19847971200942993, 0.2127443552017212, -0.1068151518702507, 0.10906290262937546, 0.27602630853652954, 0.28691157698631287, -0.1655619591474533, 0.15782606601715088, 0.409035861492157, -0.05775770917534828, -0.05178364738821983, 0.5761578679084778, -0.06069044768810272, -0.2606714367866516, 0.35397619009017944, -0.0125717893242836, 0.644641101360321, 0.26182878017425537, -0.08047555387020111, 0.3265305459499359, -0.2221926599740982, 0.3644382357597351, -0.15795013308525085, 0.06670787930488586, -0.3130832016468048, 0.025064490735530853, 0.03931071609258652, -0.1090051531791687, 0.4168553650379181, 0.050614845007658005, -0.02845270372927189, 0.06927235424518585, 0.05295093357563019, 0.1448087841272354, -0.13910460472106934, 0.042932309210300446, -0.5745123624801636, -0.17897498607635498, -0.4493950307369232, 0.2573566734790802, -0.12023131549358368, 0.1495252251625061, -0.3286218047142029, 0.21765191853046417, 0.17806486785411835, -0.20251041650772095, -0.46871352195739746, 0.12035093456506729, -0.28720372915267944, 0.20028193295001984, -0.34716013073921204, -0.27012598514556885, 0.21640512347221375, 0.18185393512248993, 0.04307364672422409, 0.22352847456932068, -0.06657838821411133, 0.3683989346027374, -0.04108051210641861, -0.009900350123643875, 0.07941126823425293, -0.18647363781929016, -0.10697834193706512, 0.0018495246767997742, -0.2770467698574066, 0.27292338013648987, -0.13676126301288605, -0.0587947741150856, 0.22949954867362976, 0.030924394726753235, -0.09780959784984589, -0.0597214475274086, -0.21618828177452087, -0.05308234691619873, -0.15206801891326904, -0.1824541836977005, 0.2448807805776596, 0.011689674109220505, -0.03385847806930542, 0.3932686150074005, -0.42575839161872864, -0.028402645140886307, -0.13286374509334564, 0.43632495403289795, -0.11829081922769547, -0.06352589279413223, 0.14853717386722565, 0.4547610282897949, -0.05488982051610947, -0.3194854259490967, 0.14169073104858398, -0.22960293292999268, -0.2951294779777527, -0.006058352999389172, 0.08213991671800613, 0.18651558458805084, 0.2783505916595459, 0.1861225664615631, 0.16071459650993347, 0.04860846698284149, -0.022837981581687927, -0.27357199788093567, -0.304952472448349, 0.14293426275253296, 0.08600236475467682, 0.4669286608695984, 0.20518898963928223, -0.13077647984027863, -0.348388671875, -0.13000112771987915, -0.3411865830421448, 0.03801986575126648, -0.09702610224485397, 0.01046215184032917, 0.09317530691623688, 0.12981867790222168, 0.2946217358112335, -0.14629806578159332, 0.16244247555732727, 0.3803669214248657, -0.06226731091737747, -0.26029255986213684, -0.08292722702026367, 0.08904795348644257, 0.16552695631980896, 0.04222680628299713, 0.10072143375873566, -0.2739259898662567, 0.031965531408786774, 0.05673117935657501, 0.5843471884727478, 0.09288430958986282, -0.2535738945007324, -0.1031348779797554, -0.04647600278258324, 0.015637733042240143, -0.29795950651168823, 0.05466654151678085, -0.05018502473831177, 0.2156732678413391, 0.0022049215622246265, 0.11402823030948639, 0.09289776533842087, -0.05477181077003479, 0.050487883388996124, -0.03308156132698059, -0.2740887403488159, 0.3323741555213928, 0.2851106822490692, -0.2236778289079666, -0.22722448408603668, -0.2018566131591797, 0.24873360991477966, 0.24202874302864075, -0.1947975754737854, -0.09344953298568726, 0.07023178040981293, 0.3233001232147217, 0.011114753782749176, -0.05097939074039459, 0.017516445368528366, 0.03677617013454437, -0.09674814343452454, 0.008499041199684143, -0.13197922706604004, -0.30170518159866333, 0.03845849633216858, 0.1524217128753662, 0.3105238080024719, -0.3362288475036621, 0.13058297336101532, 0.09849268198013306, -0.05803191289305687, 0.19082477688789368, 0.005528764799237251, -0.1392737627029419, 0.3531440794467926, 0.5201243758201599, -0.14327940344810486, 0.11869607120752335, 0.3514404594898224, 0.2806077003479004, 0.051581550389528275, -0.31075891852378845, -0.27505946159362793, -0.15571296215057373, -0.24798083305358887, 0.31237632036209106, 0.22493284940719604, -0.03912515938282013, -0.12746675312519073, 0.08264012634754181, -0.316258043050766, -0.030911851674318314, -0.3047652840614319, 0.1268812119960785, -0.24485044181346893, -0.055289555341005325, 0.23459306359291077, 0.09064505994319916, -0.023006100207567215, 0.036452148109674454, 0.2739744186401367, 0.19114035367965698, -0.038308873772621155, -0.374128133058548, 0.01526343822479248, 0.40487411618232727, 0.02932727336883545, -0.11005532741546631, 0.00967671163380146, 0.20778486132621765, -0.13290393352508545, -0.5147722959518433, 0.15729954838752747, 0.618325412273407, 0.03770562261343002, 0.11705568432807922, 0.23617276549339294, 0.2545500695705414, 0.016708092764019966, 0.10870985686779022, -0.01600492000579834, 0.092349112033844, 0.35478150844573975, 0.1523865908384323, 0.23257608711719513, -0.21442417800426483, 0.006756681948900223, 0.2578392028808594, 0.11245225369930267, -0.2155691385269165, -0.2507317364215851, -0.20719857513904572, -0.0739070475101471, -0.10591407120227814, 0.2391243875026703, -0.47042596340179443, 0.06875132024288177, 0.5073633790016174, -0.02286371774971485, 0.010957548394799232, -0.13964492082595825, 0.11119420826435089, -0.2067408263683319, 0.35021325945854187, 0.2522878348827362, 0.35048428177833557, -0.39201170206069946, -0.21784275770187378, -0.2204110026359558, 0.1789243519306183, -0.014712486416101456, 0.3271959722042084, -0.070938341319561, -0.1341928392648697, -0.13895216584205627, -0.026681356132030487, 0.3320891261100769, -0.000585328321903944, 0.06217464804649353, 0.7321702241897583, -0.29152169823646545, -0.16180551052093506, -0.19993425905704498, -0.4271439015865326, -0.0064476411789655685, -0.3201335370540619, -0.008366424590349197, -0.22534549236297607, 0.006903123110532761, -0.3423818349838257, -0.06455923616886139, 0.11353848874568939, -0.15633217990398407, 0.7495415210723877, -0.02105950377881527, 0.2820400893688202, -0.2741335332393646, -0.026187827810645103, -0.1591443568468094, -0.31685420870780945, 0.1940864622592926, 0.13932323455810547, -0.045844439417123795, 0.43555116653442383, -0.14754290878772736, -0.07694824039936066, -0.08161164075136185, -0.08035065233707428, -0.05184542015194893, -0.22986291348934174, -0.10164159536361694, 0.04179178923368454, -0.2780907154083252, 0.07945934683084488, -0.07030518352985382, 0.41062626242637634, 0.2392021119594574, 0.2182510942220688, -0.3338561952114105, -0.22270740568637848, 0.25994157791137695, -0.1702156811952591, -0.15340611338615417, 0.014568573795258999, 0.258974552154541, 0.15940231084823608, -0.07116156816482544, -0.5073263049125671, -0.04633171111345291, 0.2009381204843521, -0.1489381492137909, -0.21066465973854065, 0.10456033051013947, 0.229593425989151, 0.04052862152457237, 0.04548139497637749, 0.26111656427383423, 0.09742872416973114, -0.15069644153118134, 0.3761032819747925, -0.34971141815185547 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Will close this issue. Bug in `aws-c-io` shouldn't be in `datasets` repo. Nevertheless, it can be useful to know that it happens. Thanks @leehaust @lhoestq
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
25
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 Will close this issue. Bug in `aws-c-io` shouldn't be in `datasets` repo. Nevertheless, it can be useful to know that it happens. Thanks @leehaust @lhoestq
[ -0.4938255548477173, -0.04352481663227081, -0.16193906962871552, 0.11245709657669067, 0.0005886368453502655, 0.02662283182144165, 0.16308367252349854, 0.1379014551639557, 0.13562704622745514, 0.18602636456489563, 0.09343596547842026, 0.5520920157432556, 0.08049020916223526, 0.13540837168693542, -0.12566770613193512, 0.015579037368297577, 0.2077869027853012, 0.22177305817604065, -0.3824180066585541, 0.19590528309345245, -0.3294414281845093, 0.3910716772079468, -0.3236292600631714, 0.06048112362623215, -0.09101260453462601, -0.20140230655670166, -0.09652678668498993, 0.18385198712348938, -0.07413346320390701, -0.32029011845588684, 0.3773150146007538, -0.15690091252326965, 0.2222907543182373, 0.506547212600708, -0.00010770813969429582, -0.10245874524116516, 0.34700989723205566, 0.11484602093696594, -0.2696467339992523, -0.005339831113815308, -0.36569079756736755, -0.017838843166828156, 0.0270230770111084, -0.3889615833759308, 0.3263218402862549, 0.13106437027454376, -0.09412405639886856, -0.31689611077308655, 0.16113391518592834, 0.47517019510269165, 0.2513315975666046, 0.6279177665710449, 0.30820274353027344, 0.05253268778324127, 0.21814045310020447, -0.13221026957035065, -0.26425206661224365, 0.24336014688014984, 0.25144273042678833, -0.26111307740211487, 0.2589483857154846, 0.18459539115428925, -0.22095054388046265, 0.09922732412815094, 0.054907023906707764, -0.1115628331899643, 0.04176804795861244, -0.1954498440027237, 0.16021132469177246, -0.020048342645168304, 0.40934380888938904, -0.5027355551719666, -0.23498335480690002, 0.23653963208198547, 0.04972294345498085, -0.3314448893070221, 0.30235201120376587, 0.20359709858894348, -0.05320154130458832, 0.20813165605068207, -0.0009450728539377451, 0.14209789037704468, -0.29293292760849, 0.20082987844944, -0.08476363122463226, 0.22131086885929108, -0.17671343684196472, 0.08486388623714447, -0.14947061240673065, -0.00023588165640830994, 0.027447059750556946, -0.23160094022750854, -0.19544582068920135, 0.08801479637622833, -0.6789462566375732, -0.1212131455540657, -0.007813841104507446, 0.2558227777481079, 0.1618284285068512, -0.022484079003334045, 0.014514520764350891, -0.21226516366004944, 0.17992578446865082, 0.2325115203857422, 0.06749266386032104, -0.01868375949561596, -0.05843859165906906, 0.13077010214328766, 0.33593279123306274, 0.07587786018848419, 0.04904024675488472, -0.07891041785478592, 0.164682075381279, -0.20070207118988037, 0.2658083438873291, 0.02054697275161743, 0.44081318378448486, -0.23354433476924896, -0.43073657155036926, 0.5249714851379395, -0.4426816701889038, 0.1415306180715561, -0.09894794970750809, 0.3270319104194641, -0.017387790605425835, -0.1396423578262329, 0.1788656860589981, 0.12769347429275513, -0.3309926986694336, 0.12387595325708389, -0.17078149318695068, 0.05186811462044716, -0.14277759194374084, -0.029405808076262474, 0.10412871837615967, -0.29518377780914307, 0.2292352318763733, 0.2629483938217163, 0.16284982860088348, -0.3638063073158264, 0.10002965480089188, 0.01907298155128956, -0.3357193171977997, 0.3734186589717865, 0.19148248434066772, 0.09032104164361954, -0.03656261786818504, 0.02113492786884308, 0.11069086939096451, 0.28601861000061035, -0.19682419300079346, -0.26916244626045227, -0.325710266828537, 0.2981793284416199, -0.1363745629787445, 0.0681532770395279, -0.2090364694595337, -0.22644995152950287, 0.23762208223342896, -0.14216117560863495, 0.21823136508464813, -0.24702639877796173, 0.14782916009426117, -0.13779319822788239, 0.0856882855296135, 0.19771502912044525, -0.15490297973155975, 0.16667063534259796, -0.33048340678215027, -0.15617334842681885, 0.18923553824424744, 0.2127918154001236, -0.13044607639312744, 0.008981741964817047, -0.4230167269706726, 0.08150394260883331, 0.10465226322412491, -0.04243092238903046, -0.3824841380119324, 0.36946606636047363, -0.07663675397634506, -0.07275361567735672, -0.12108192592859268, -0.08836818486452103, -0.05855266749858856, -0.11339949071407318, -0.11182039976119995, -0.27248305082321167, -0.03166139870882034, 0.06605305522680283, -0.3175024688243866, -0.3639383316040039, 0.05905258283019066, 0.12041504681110382, 0.22599905729293823, 0.08081737905740738, 0.3385002911090851, -0.15020577609539032, 0.38675227761268616, -0.08238480985164642, -0.11079335957765579, 0.20152205228805542, 0.3458760678768158, -0.21848498284816742, 0.0472208596765995, -0.23887088894844055, -0.6032540798187256, 0.21942156553268433, 0.27100512385368347, 0.1674414873123169, -0.10906513035297394, -0.1075146272778511, -0.18846368789672852, 0.36631715297698975, 0.03539251163601875, -0.09380583465099335, 0.17923296988010406, -0.05029721558094025, 0.011566415429115295, -0.12778069078922272, -0.29714322090148926, 0.2983749806880951, -0.7227088212966919, 0.02576245740056038, -0.22770127654075623, 0.30094048380851746, -0.14795176684856415, -0.23968841135501862, 0.11407241225242615, -0.19826406240463257, 0.20015272498130798, 0.0411115437746048, -0.3241811990737915, 0.29238361120224, -0.19776637852191925, 0.5281193852424622, -0.1335332691669464, 0.34780240058898926, -0.03906688839197159, -0.39909976720809937, 0.053382426500320435, 0.09551477432250977, 0.25033804774284363, 0.09103275090456009, 0.2224625051021576, 0.23619942367076874, -0.16713076829910278, 0.24918189644813538, -0.09650638699531555, -0.040475115180015564, 0.08125417679548264, -0.09262283146381378, 0.018407190218567848, 0.07630109786987305, 0.3620202839374542, 0.14254994690418243, 0.22103352844715118, -0.16433173418045044, -0.4189109206199646, -0.12868714332580566, 0.23533548414707184, -0.030920201912522316, 0.19001485407352448, 0.04998896270990372, -0.05096515268087387, 0.021083250641822815, 0.4130220115184784, 0.13570016622543335, 0.7778632044792175, 0.14710965752601624, -0.1436002403497696, 0.1595267504453659, -0.05784682184457779, -0.1983998715877533, 0.47050783038139343, 0.20929744839668274, 0.15999844670295715, 0.35139015316963196, 0.1568637639284134, 0.03717377409338951, -0.32852670550346375, -0.4677332937717438, 0.015176452696323395, 0.23338483273983002, -0.3086656630039215, 0.23895381391048431, -0.04773002862930298, 0.16314104199409485, -0.045996569097042084, 0.18563155829906464, 0.05190243571996689, -0.0745176300406456, -0.06871208548545837, 0.3248959183692932, -0.17964860796928406, 0.17732109129428864, -0.1618947833776474, -0.005705386400222778, 0.009572027251124382, 0.055031418800354004, -0.4102719724178314, -0.12055754661560059, -0.20006510615348816, 0.09869071841239929, 0.2081051468849182, -0.0912708044052124, 0.3833194971084595, -0.005138855427503586, -0.10218819975852966, -0.39124640822410583, -0.125703364610672, 0.01664876565337181, -0.02282770350575447, 0.3393886685371399, 0.2033681571483612, 0.19067075848579407, -0.17431612312793732, -0.32761985063552856, 0.041224200278520584, -0.3089487552642822, -0.008203481324017048, -0.036635078489780426, -0.24714621901512146, 0.0003949785022996366, -0.20489981770515442, -0.3667668402194977, -0.09579607844352722, -0.4197382926940918, -0.03333523869514465, -0.24508647620677948, 0.12480513006448746, -0.15434934198856354, 0.257014662027359, 0.17791235446929932, 0.3634040057659149, -0.24042508006095886, -0.2877764105796814, -0.4224722683429718, 0.1080910786986351, -0.0763237476348877, -0.19329147040843964, 0.22502994537353516, 0.2116156965494156, 0.4474440813064575, 0.12649035453796387, -0.519294798374176, 0.28140416741371155, -0.16716615855693817, 0.3048313558101654, -0.23721322417259216, 0.10330191254615784, 0.1035761758685112, -0.13098829984664917, -0.029581280425190926, -0.164524108171463, 0.002716071903705597, -0.20647242665290833, -0.008689876645803452, 0.24426227807998657, -0.03709680587053299, 0.5199652910232544, 0.05632826313376427, 0.6024194955825806, 0.24638959765434265, -0.26444023847579956, 0.27861350774765015, -0.0005403105169534683, 0.06624294072389603, -0.11564377695322037, -0.1701706498861313, 0.10728102177381516, -0.014008954167366028, -0.38069427013397217, 0.11933182179927826, -0.17549645900726318, -0.40023496747016907, -0.08386024087667465, 0.010952737182378769, -0.22221875190734863, -0.22042107582092285, -0.07654327899217606, 0.12408844381570816, 0.3603115379810333, -0.019693899899721146, -0.046665214002132416, 0.12375187873840332, -0.02520577609539032, 0.03486784175038338, 0.39744263887405396, -0.16467276215553284, -0.11258238554000854, -0.02520390786230564, -0.24954749643802643, -0.5391443371772766, 0.3058203458786011, -0.11539711803197861, 0.36038151383399963, -0.026266340166330338, 0.17173704504966736, 0.09767065942287445, -0.35134533047676086, 0.34393608570098877, -0.20006968080997467, 0.1985863447189331, 0.12324163317680359, 0.30160531401634216, -0.08358614891767502, -0.12609781324863434, -0.32397040724754333, 0.34313684701919556, 0.23006819188594818, 0.017107591032981873, -0.11269013583660126, -0.0178056750446558, 0.157819464802742, -0.09103097766637802, 0.09500777721405029, -0.43414825201034546, -0.17144541442394257, -0.26563560962677, -0.3754628896713257, 0.320028156042099, 0.024538299068808556, -0.013826711103320122, -0.2664598822593689, -0.3430677652359009, -0.08902990818023682, 0.006620634347200394, 0.03620021045207977, 0.06155062094330788, -0.18455129861831665, -0.17371565103530884, 0.34999409317970276, -0.30732986330986023, -0.383515328168869, 0.5117778182029724, 0.26055198907852173, 0.21759749948978424, -0.0351632684469223, 0.1965961754322052, 0.09215869754552841, 0.2051422894001007, 0.12441515922546387, -0.24134311079978943, 0.030294615775346756, 0.2208450734615326, 0.2084415704011917, -0.09636110067367554, 0.1103566437959671, 0.21354985237121582, 0.23693381249904633, -0.16961534321308136, 0.07025760412216187, 0.4531492292881012, -0.05279279872775078, -0.055925145745277405, 0.530897855758667, -0.0300586000084877, -0.21585991978645325, 0.2831307053565979, -0.02603863924741745, 0.6900154948234558, 0.26333606243133545, -0.16232579946517944, 0.2882266044616699, -0.3519695997238159, 0.3659076392650604, -0.1960679590702057, 0.019713204354047775, -0.2932257652282715, 0.13344576954841614, 0.07362283021211624, -0.0702388733625412, 0.378808856010437, 0.0348505899310112, -0.010388169437646866, 0.06460938602685928, 0.060753822326660156, 0.22455798089504242, -0.04650203138589859, 0.06218970566987991, -0.47894391417503357, -0.19549690186977386, -0.4705085754394531, 0.2409900724887848, -0.10429432988166809, 0.13315151631832123, -0.2881864905357361, 0.13842761516571045, 0.17181868851184845, -0.2543371915817261, -0.42989665269851685, 0.1940496861934662, -0.2709249258041382, 0.18287767469882965, -0.3240273892879486, -0.3383997678756714, 0.22151000797748566, 0.13264095783233643, -0.023383036255836487, 0.2830996513366699, -0.0486372634768486, 0.32476696372032166, 0.09957706183195114, 0.011319529265165329, 0.0408688485622406, -0.11751507222652435, -0.14360514283180237, -0.09140875935554504, -0.20647120475769043, 0.1635827273130417, -0.19346746802330017, -0.10674594342708588, 0.29672858119010925, 0.009354174137115479, 0.05990898236632347, -0.01677124574780464, -0.07943329215049744, 0.027761463075876236, -0.16138464212417603, -0.2419341802597046, 0.23965129256248474, 0.09629514068365097, -0.1376480907201767, 0.38584306836128235, -0.368987113237381, -0.08265849202871323, -0.15255212783813477, 0.38737019896507263, -0.036862798035144806, -0.09264292567968369, 0.16636139154434204, 0.3787690997123718, -0.04983193054795265, -0.3401623070240021, 0.1284899115562439, -0.27132052183151245, -0.3731129765510559, 0.13797646760940552, 0.04815208911895752, 0.193023219704628, 0.19840751588344574, 0.2652946710586548, 0.11423978209495544, 0.07212978601455688, 0.10712133347988129, -0.3564755916595459, -0.2840360403060913, 0.02204163745045662, -0.06743930280208588, 0.39709699153900146, 0.26090872287750244, -0.0623898021876812, -0.3939989507198334, -0.1417408436536789, -0.355846107006073, 0.009987859055399895, -0.23395752906799316, 0.045040637254714966, 0.13234174251556396, 0.14343945682048798, 0.29047510027885437, -0.050803810358047485, 0.15316087007522583, 0.3273240923881531, -0.13760431110858917, -0.2678338885307312, -0.09520861506462097, 0.10910223424434662, 0.15251368284225464, -0.005882389843463898, 0.13308362662792206, -0.21656471490859985, -0.07292608916759491, 0.04787537828087807, 0.4800644516944885, 0.02043701335787773, -0.18566744029521942, -0.06154625117778778, -0.008813101798295975, -0.0451696440577507, -0.38472193479537964, 0.007496330887079239, 0.05118023604154587, 0.19713589549064636, -0.09433531761169434, 0.20635098218917847, 0.05339238792657852, -0.06293950974941254, 0.08282550424337387, -0.091725654900074, -0.23987920582294464, 0.3396102488040924, 0.29633885622024536, -0.2343834489583969, -0.18721401691436768, -0.06772574037313461, 0.25351661443710327, 0.1342683732509613, -0.19711630046367645, -0.12643733620643616, 0.04769756272435188, 0.3135504424571991, -0.09635677188634872, -0.06186400726437569, 0.07370099425315857, 0.06199564039707184, -0.05364367365837097, -0.008598856627941132, -0.07449240982532501, -0.1925058662891388, 0.009324140846729279, 0.13769707083702087, 0.3421492576599121, -0.3943101167678833, 0.13460329174995422, 0.1180889755487442, -0.04738945886492729, 0.2589937746524811, 0.07059776782989502, -0.08779565989971161, 0.31095442175865173, 0.5004757642745972, -0.1261429488658905, 0.16027066111564636, 0.5143030285835266, 0.2918740212917328, 0.07852179557085037, -0.33543527126312256, -0.21106068789958954, -0.05522966384887695, -0.19829419255256653, 0.2914002239704132, 0.21909186244010925, -0.08733000606298447, -0.03631683439016342, 0.07286198437213898, -0.30741581320762634, 0.013975672423839569, -0.316714346408844, 0.06929711997509003, -0.23184482753276825, -0.0346018448472023, 0.19597390294075012, 0.04177532717585564, -0.018907759338617325, 0.0932030975818634, 0.37019968032836914, 0.18385478854179382, -0.0065183863043785095, -0.439754456281662, -0.011109616607427597, 0.4317997694015503, 0.051391977816820145, -0.19162508845329285, 0.0046524349600076675, 0.18655863404273987, -0.17798522114753723, -0.5053592920303345, 0.2673546075820923, 0.673977255821228, 0.006238734349608421, 0.2000027745962143, 0.15011969208717346, 0.23163855075836182, 0.028796693310141563, 0.10421217232942581, 0.1397375762462616, 0.0852060541510582, 0.30086225271224976, 0.10815778374671936, 0.19437600672245026, -0.18048334121704102, 0.0828503668308258, 0.34426990151405334, 0.09970059990882874, -0.2889538109302521, -0.1840628981590271, -0.21213103830814362, -0.08855185657739639, -0.1849808245897293, 0.3252618610858917, -0.3353925049304962, 0.11412797123193741, 0.45230069756507874, -0.05784498527646065, -0.01740734837949276, -0.1354142129421234, 0.1180010586977005, -0.21241529285907745, 0.37830644845962524, 0.19311518967151642, 0.3464111089706421, -0.38058724999427795, -0.2291620820760727, -0.24952922761440277, 0.19049930572509766, 0.058065637946128845, 0.3497965335845947, -0.09981753677129745, 0.007661579176783562, -0.18812832236289978, 0.03661428019404411, 0.33332669734954834, -0.07097034156322479, 0.10441675037145615, 0.7122976779937744, -0.23296722769737244, -0.15729564428329468, -0.12620313465595245, -0.4012386202812195, 0.04526645690202713, -0.3279627561569214, -0.027189645916223526, -0.18423663079738617, -0.010144013911485672, -0.3112580180168152, -0.10879099369049072, 0.22548997402191162, -0.19593636691570282, 0.7443270683288574, 0.08373310416936874, 0.23418989777565002, -0.3082323670387268, -0.02791990153491497, -0.17441114783287048, -0.34564316272735596, 0.14688535034656525, 0.05004347115755081, -0.09967179596424103, 0.4120553433895111, -0.17137140035629272, -0.03475857153534889, -0.05423858016729355, -0.1305982619524002, -0.13925409317016602, -0.3047569692134857, -0.11752268671989441, 0.09175422042608261, -0.28813377022743225, 0.08005182445049286, -0.1363859623670578, 0.35708045959472656, 0.22496303915977478, 0.2058822214603424, -0.44428563117980957, -0.3117395341396332, 0.29713746905326843, -0.27010586857795715, -0.1601506471633911, -0.07425997406244278, 0.3998963534832001, 0.23501628637313843, -0.16968901455402374, -0.4783017337322235, 0.007130026817321777, 0.2522349953651428, -0.08559900522232056, -0.2348606139421463, 0.16172949969768524, 0.2126666158437729, 0.04567815735936165, 0.04927797242999077, 0.3330921232700348, 0.09275133162736893, -0.1896277219057083, 0.36518535017967224, -0.40516990423202515 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I have also had this issue since a few days, when running scripts using PyCharm in particular, but it does not seem to affect the script from running, only reporting this error at the end of the run.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
38
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 I have also had this issue since a few days, when running scripts using PyCharm in particular, but it does not seem to affect the script from running, only reporting this error at the end of the run.
[ -0.4791853725910187, -0.14203451573848724, -0.11367617547512054, -0.002579823136329651, 0.04477483034133911, -0.06677574664354324, 0.19853372871875763, 0.18180371820926666, 0.2750210762023926, 0.17014051973819733, 0.2111244648694992, 0.567376434803009, -0.04347933456301689, 0.11073226481676102, -0.12893961369991302, -0.011525072157382965, 0.1479746699333191, 0.26890701055526733, -0.373209148645401, 0.20623932778835297, -0.38598644733428955, 0.4023663401603699, -0.37028247117996216, 0.13707122206687927, -0.13458719849586487, -0.2536206841468811, 0.05657847225666046, 0.2289714813232422, 0.010618533939123154, -0.40346279740333557, 0.12759104371070862, -0.28344836831092834, 0.22689524292945862, 0.38113170862197876, -0.00011271175026195124, -0.22578075528144836, 0.3720545172691345, 0.11983656883239746, -0.258651465177536, -0.07695750892162323, -0.21286541223526, 0.013751765713095665, 0.11815229803323746, -0.3348649740219116, 0.40163126587867737, 0.09991154819726944, -0.0741686001420021, -0.2412116974592209, 0.055600374937057495, 0.49464288353919983, 0.19957825541496277, 0.741338849067688, 0.16382843255996704, 0.05822978913784027, 0.18243412673473358, -0.14729923009872437, -0.30722561478614807, 0.2420126348733902, 0.33409541845321655, -0.41562461853027344, 0.22823840379714966, 0.18073605000972748, -0.36030614376068115, 0.1022273451089859, 0.15029123425483704, -0.1593194603919983, 0.05876695737242699, -0.27739086747169495, 0.23077526688575745, 0.0006792508065700531, 0.30771949887275696, -0.5627328753471375, -0.19311536848545074, 0.1616731584072113, 0.14316165447235107, -0.3116626441478729, 0.27778002619743347, 0.1986829787492752, -0.0919288694858551, 0.177129864692688, 0.15699271857738495, 0.31588152050971985, -0.23393170535564423, 0.24930806457996368, 0.041837386786937714, 0.15701673924922943, -0.08014574646949768, 0.12017899006605148, 0.03816651552915573, 0.02329791709780693, 0.03676611930131912, -0.12709619104862213, -0.12836746871471405, 0.1285528689622879, -0.7083338499069214, -0.0648551732301712, 0.01943584531545639, 0.25013265013694763, 0.17868930101394653, 0.039387185126543045, 0.01507141999900341, -0.16758379340171814, 0.28777557611465454, 0.25196221470832825, 0.05112294852733612, -0.003002895973622799, 0.03352838754653931, 0.10793153196573257, 0.3154439926147461, 0.15330751240253448, 0.00879940390586853, -0.12504085898399353, 0.06527824699878693, -0.32888805866241455, 0.2526634633541107, 0.04553453251719475, 0.4015011191368103, -0.15998928248882294, -0.4319000244140625, 0.6135216951370239, -0.3617453873157501, 0.21695217490196228, -0.04136417433619499, 0.39496859908103943, 0.12820586562156677, -0.016171440482139587, 0.2806602120399475, 0.20519298315048218, -0.43553653359413147, 0.23986005783081055, -0.0960187166929245, 0.11982667446136475, -0.24408172070980072, 0.02966933697462082, 0.15974994003772736, -0.19475460052490234, 0.2497185468673706, 0.2589443027973175, 0.20988477766513824, -0.5270698666572571, 0.1316409558057785, -0.04909434914588928, -0.2060788869857788, 0.37696918845176697, 0.22692781686782837, 0.1544596552848816, -0.06333567202091217, 0.08958858251571655, 0.13580742478370667, 0.37655526399612427, -0.0908319279551506, -0.20801092684268951, -0.28522786498069763, 0.2249116599559784, -0.12476518750190735, 0.11292040348052979, -0.13614922761917114, -0.36915838718414307, 0.27492284774780273, -0.1583840399980545, 0.2870727777481079, -0.45835381746292114, 0.1399252712726593, -0.14717577397823334, 0.0793832391500473, 0.17297717928886414, -0.07312451303005219, 0.1769355833530426, -0.22267812490463257, -0.09448277950286865, -0.01932203769683838, 0.32823076844215393, -0.13060306012630463, 0.04426046833395958, -0.3444483280181885, 0.10714884102344513, 0.08488615602254868, -0.06682183593511581, -0.3346005976200104, 0.3022274076938629, -0.10132552683353424, -0.07048958539962769, -0.01468592882156372, -0.09355002641677856, -0.06063779443502426, -0.11512192338705063, -0.14518292248249054, -0.3779448866844177, 0.048963822424411774, 0.1296023279428482, -0.2453330159187317, -0.34051233530044556, -0.07176096737384796, 0.17786690592765808, 0.3056163191795349, 0.006072998046875, 0.2868512272834778, -0.09452644735574722, 0.39219266176223755, -0.12866739928722382, -0.08979333937168121, 0.20689021050930023, 0.2117273360490799, -0.12857282161712646, 0.09613317996263504, -0.18779587745666504, -0.5211890935897827, 0.10831310600042343, 0.2418379783630371, 0.11645251512527466, -0.2558296322822571, -0.17584896087646484, -0.07466854155063629, 0.4000391364097595, 0.06500126421451569, -0.016053125262260437, 0.11328442394733429, -0.022990942001342773, -0.0873473659157753, -0.06765499711036682, -0.3384796679019928, 0.21112637221813202, -0.5657598972320557, 0.0877687856554985, -0.2623400390148163, 0.19896061718463898, -0.1313176453113556, -0.37761953473091125, 0.12148669362068176, -0.031197860836982727, 0.23927801847457886, 0.15313281118869781, -0.2926524877548218, 0.11964378505945206, -0.09564411640167236, 0.45367878675460815, -0.13666054606437683, 0.258644700050354, -0.1406755894422531, -0.2978079617023468, 0.18088144063949585, 0.04483325034379959, 0.19048795104026794, 0.035459280014038086, 0.32842493057250977, 0.24114291369915009, -0.1837308704853058, 0.28344133496284485, -0.12633103132247925, -0.05485741049051285, 0.040768079459667206, -0.188677579164505, -0.02565396949648857, 0.1063840240240097, 0.46777671575546265, 0.20586253702640533, 0.25219884514808655, -0.28440552949905396, -0.4662547707557678, -0.10630597919225693, 0.3031002879142761, -0.07521271705627441, 0.205430805683136, -0.031199470162391663, -0.10485731810331345, 0.10693161934614182, 0.3299829363822937, -0.06404715031385422, 0.7713698744773865, 0.05216064676642418, -0.21583375334739685, 0.22774960100650787, -0.07261426746845245, -0.2595684230327606, 0.33799976110458374, 0.2300795316696167, 0.11378597468137741, 0.474447101354599, 0.15550731122493744, 0.0010816343128681183, -0.30906549096107483, -0.47273576259613037, -0.062305063009262085, 0.24659357964992523, -0.37285199761390686, 0.22685527801513672, -0.0425034798681736, 0.13874036073684692, -0.044962991029024124, 0.2781447768211365, 0.14500223100185394, -0.02131100371479988, -0.0653410330414772, 0.4111670255661011, -0.15838195383548737, 0.16943170130252838, -0.16957086324691772, -0.04933784902095795, -0.043116241693496704, 0.023428963497281075, -0.33101940155029297, -0.18850953876972198, -0.08846590667963028, 0.02063445746898651, 0.2481108456850052, -0.13525815308094025, 0.32918885350227356, -0.021050026640295982, -0.18123942613601685, -0.24151179194450378, 0.019200921058654785, -0.009942952543497086, 0.005144890397787094, 0.2392566055059433, 0.22420859336853027, 0.25369369983673096, -0.14337053894996643, -0.3871111273765564, 0.0421224944293499, -0.4059312045574188, 0.11239464581012726, 0.00834604911506176, -0.15738974511623383, -0.11960209161043167, -0.259367436170578, -0.3578803837299347, -0.09276966750621796, -0.4032629728317261, -0.027779996395111084, -0.295578271150589, 0.05262930318713188, -0.23917534947395325, 0.3516230583190918, 0.14650236070156097, 0.22523823380470276, -0.2931293547153473, -0.17811058461666107, -0.11520354449748993, 0.032670412212610245, -0.0931658074259758, -0.18382719159126282, 0.2792048156261444, 0.2099521905183792, 0.4480150640010834, 0.10224872827529907, -0.42587488889694214, 0.26445287466049194, -0.04770921170711517, 0.289833128452301, -0.2282150685787201, 0.039470840245485306, 0.15386492013931274, -0.12917211651802063, 0.0281213466078043, -0.1493295431137085, 0.019561849534511566, -0.25588229298591614, -0.18478110432624817, 0.21404984593391418, -0.015459779649972916, 0.5826194882392883, 0.11322467029094696, 0.5693050622940063, 0.16430579125881195, -0.267108678817749, 0.2545524835586548, -0.06821923702955246, 0.02590460702776909, -0.17311838269233704, -0.15865524113178253, 0.10976196825504303, -0.07179218530654907, -0.404912531375885, 0.047188837081193924, -0.22581863403320312, -0.3104003071784973, -0.05131540074944496, 0.03168826550245285, -0.403633713722229, -0.2605583965778351, 0.12396349012851715, 0.18177084624767303, 0.27585044503211975, -0.07967840135097504, 0.0705796405673027, 0.11386999487876892, -0.019954444840550423, -0.02697070501744747, 0.5054667592048645, -0.13495802879333496, -0.09343798458576202, -0.07124204188585281, -0.25109919905662537, -0.4707460403442383, 0.2959163188934326, -0.13636143505573273, 0.4254762530326843, -0.09395147860050201, 0.1317664086818695, 0.07319117337465286, -0.3397786021232605, 0.22716984152793884, -0.13714313507080078, 0.272416353225708, 0.12649008631706238, 0.28319644927978516, -0.11016684770584106, -0.17594102025032043, -0.3124927878379822, 0.17692646384239197, 0.21920858323574066, -0.0558435320854187, -0.039809707552194595, 0.021565407514572144, 0.17813248932361603, -0.0922185629606247, 0.13679468631744385, -0.4245508909225464, -0.1499081552028656, -0.3882656991481781, -0.4443897604942322, 0.3382486402988434, -0.0018150806427001953, -0.10189958661794662, -0.3692874014377594, -0.3286944031715393, 0.05811029672622681, -0.051447007805109024, 0.02892392873764038, 0.1192510724067688, -0.13798555731773376, -0.2728672921657562, 0.33870646357536316, -0.1875678151845932, -0.3908854126930237, 0.5974997878074646, 0.133842334151268, 0.20131179690361023, -0.055570125579833984, 0.19742092490196228, 0.11907278001308441, 0.18200883269309998, 0.22730040550231934, -0.3314230740070343, 0.08015897870063782, 0.17790594696998596, 0.22892296314239502, 0.04648540914058685, 0.09521390497684479, 0.3494821786880493, 0.19297051429748535, -0.08251328766345978, 0.05695761740207672, 0.4016370475292206, -0.011894773691892624, -0.009724050760269165, 0.46990251541137695, -0.2352791577577591, -0.18035122752189636, 0.34469616413116455, -0.08620346337556839, 0.664345383644104, 0.18215447664260864, -0.054773326963186264, 0.34501004219055176, -0.34722983837127686, 0.2718549370765686, -0.1129584088921547, 0.1214367225766182, -0.44041627645492554, 0.2520642578601837, 0.10873670876026154, -0.11683452129364014, 0.35538381338119507, 0.08302224427461624, 0.04584938660264015, 0.06560015678405762, -0.00503125786781311, 0.11139699816703796, -0.02432282455265522, 0.1551983505487442, -0.5489687919616699, -0.2556332051753998, -0.39580172300338745, 0.15748153626918793, -0.1166263073682785, 0.1731773018836975, -0.2785884141921997, 0.13331696391105652, 0.06562530994415283, -0.2896617650985718, -0.4534829258918762, 0.21196570992469788, -0.3212272822856903, 0.07297307252883911, -0.37334051728248596, -0.36674827337265015, 0.17017138004302979, 0.028213949874043465, -0.07353994250297546, 0.3267160654067993, 0.00040351971983909607, 0.33715546131134033, 0.13307887315750122, -0.02611377462744713, 0.13601772487163544, -0.15410684049129486, -0.06988491117954254, -0.005523789674043655, -0.25532975792884827, 0.12337969243526459, -0.09609483927488327, -0.06546612083911896, 0.20980361104011536, -0.010420277714729309, -0.08813197910785675, -0.12057991325855255, -0.19233986735343933, -0.052446797490119934, -0.23168176412582397, -0.2007279098033905, 0.20042334496974945, 0.09315405040979385, -0.07437737286090851, 0.5128723978996277, -0.46899887919425964, -0.07292560487985611, -0.1341204196214676, 0.37026333808898926, -0.13993042707443237, -0.12587609887123108, 0.14722546935081482, 0.48431283235549927, -0.08217114955186844, -0.3258304297924042, 0.06485111266374588, -0.22214023768901825, -0.40786388516426086, 0.12049093842506409, 0.12793168425559998, 0.10962235927581787, 0.25148722529411316, 0.23400385677814484, -0.06231464445590973, 0.07076402008533478, 0.05236634239554405, -0.3447405993938446, -0.2446613907814026, 0.18618308007717133, -0.00013484060764312744, 0.4098973870277405, 0.4089805781841278, 0.11299233138561249, -0.36446452140808105, -0.20625299215316772, -0.2724941670894623, 0.007517604157328606, -0.042783692479133606, 0.11440582573413849, 0.07524123787879944, 0.08849754929542542, 0.33796221017837524, -0.1606566607952118, 0.10178463906049728, 0.39875876903533936, -0.06167500466108322, -0.2091929316520691, -0.14334246516227722, 0.11601745337247849, 0.18182778358459473, 0.05149497091770172, 0.02750018984079361, -0.28898143768310547, 0.05254659801721573, -0.07172174006700516, 0.5444954037666321, 0.08401263505220413, -0.23984475433826447, -0.03335825726389885, -0.016479793936014175, 0.021053165197372437, -0.2110534906387329, 0.11763713508844376, -0.050210773944854736, 0.17287927865982056, -0.03155200555920601, 0.19049231708049774, 0.0545087605714798, 0.02009674161672592, -0.022908298298716545, -0.07501121610403061, -0.3043438196182251, 0.3807206451892853, 0.292515367269516, -0.2849719524383545, -0.23900504410266876, -0.2732951045036316, 0.2994506061077118, 0.2330971658229828, -0.23069407045841217, -0.1883910447359085, -0.06102292239665985, 0.22987544536590576, -0.016565363854169846, -0.03250420466065407, -0.020908500999212265, 0.08149682730436325, -0.1017274484038353, 0.08233574777841568, -0.04979570582509041, -0.3425436317920685, -0.05450555682182312, 0.041627202183008194, 0.4230908751487732, -0.4592684507369995, 0.03141224756836891, 0.07764600962400436, -0.037097230553627014, 0.16616085171699524, -0.015641121193766594, -0.1761009246110916, 0.33991938829421997, 0.45491600036621094, -0.09529765695333481, 0.06809107959270477, 0.5646651387214661, 0.2320546805858612, -0.03530386835336685, -0.31915244460105896, -0.41538748145103455, -0.10194237530231476, -0.15645018219947815, 0.3281700611114502, 0.12406408786773682, -0.14472529292106628, 0.030201241374015808, 0.0921335369348526, -0.18724659085273743, 0.07378695160150528, -0.3565632402896881, 0.08902259171009064, -0.24866627156734467, -0.05284993350505829, 0.2169647514820099, -0.0027763210237026215, -0.035091582685709, 0.21396319568157196, 0.3948681652545929, 0.20453713834285736, -0.04893141984939575, -0.23115180432796478, -0.11260952800512314, 0.40874284505844116, 0.07725067436695099, -0.16626696288585663, -0.015459274873137474, 0.2150430828332901, 0.021783389151096344, -0.46164944767951965, 0.11133474111557007, 0.7915507555007935, 0.014326879754662514, 0.10975530743598938, 0.0730055719614029, 0.13193094730377197, 0.07436855137348175, 0.11131535470485687, 0.12820515036582947, 0.19569435715675354, 0.5089121460914612, 0.13410627841949463, 0.1621892899274826, -0.17148563265800476, 0.08211710304021835, 0.34132879972457886, 0.057975903153419495, -0.19478550553321838, -0.13799205422401428, -0.12029805779457092, -0.23978763818740845, -0.23424002528190613, 0.3061211109161377, -0.3678509593009949, 0.15981851518154144, 0.4887729287147522, 0.04195817932486534, -0.03632780909538269, -0.17649030685424805, 0.0918215736746788, -0.13408668339252472, 0.3707447946071625, 0.18048405647277832, 0.34998223185539246, -0.46046966314315796, -0.11990978568792343, -0.14862626791000366, 0.20486196875572205, -0.05376012250781059, 0.20701336860656738, -0.06834281235933304, -0.05424237996339798, -0.29283806681632996, -0.035589009523391724, 0.4646605849266052, -0.04589737579226494, 0.12572212517261505, 0.7447935342788696, -0.11898620426654816, -0.18091285228729248, -0.19398511946201324, -0.4551100432872772, 0.1367596983909607, -0.3439599573612213, -0.006785739213228226, -0.22188222408294678, -0.015360604971647263, -0.36568593978881836, -0.11942680180072784, 0.17013710737228394, -0.12088406085968018, 0.7393065094947815, -0.01006242260336876, 0.33956944942474365, -0.2833235561847687, -0.03444185107946396, -0.3026345372200012, -0.3736174404621124, 0.10415337234735489, 0.14279478788375854, -0.04414958879351616, 0.4158194959163666, -0.03680701553821564, -0.010864201933145523, -0.05527152121067047, -0.18145887553691864, -0.25085902214050293, -0.2814589738845825, -0.04566159099340439, 0.0006198761984705925, -0.16972284018993378, 0.13515451550483704, -0.16229309141635895, 0.4930018484592438, 0.1826516091823578, 0.2474510222673416, -0.5032013654708862, -0.2913764715194702, 0.29574185609817505, -0.16812008619308472, -0.19786804914474487, -0.01267071720212698, 0.4553818702697754, 0.04794170707464218, -0.0981443002820015, -0.5426843762397766, 0.008432447910308838, 0.13907137513160706, -0.009232517331838608, -0.24071863293647766, 0.14138545095920563, 0.15709929168224335, 0.004113838076591492, 0.10076044499874115, 0.19723515212535858, 0.14224064350128174, -0.15577979385852814, 0.3021905720233917, -0.35154247283935547 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I also get this issue, It appears after my script has finished running. I get the following error message ``` Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ################################################################################ Stack trace: ################################################################################ /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x2aabe0479579] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x48) [0x2aabe04696c8] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x13ad3) [0x2aabe0624ad3] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x113ca) [0x2aabe06223ca] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-crt-cpp.so(_ZN3Aws3Crt2Io15ClientBootstrapD1Ev+0x3a) [0x2aabe041cf5a] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(+0x5f570) [0x2aabe00eb570] /lib64/libc.so.6(+0x39ce9) [0x2aaaab835ce9] /lib64/libc.so.6(+0x39d37) [0x2aaaab835d37] /lib64/libc.so.6(__libc_start_main+0xfc) [0x2aaaab81e55c] python(+0x1c721d) [0x55555571b21d] Aborted ``` I don't get this issue when running my code in a container, and it seems more relevant to PyArrow but thought a more complete stack trace might be helpful to someone
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
95
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 I also get this issue, It appears after my script has finished running. I get the following error message ``` Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ################################################################################ Stack trace: ################################################################################ /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x2aabe0479579] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x48) [0x2aabe04696c8] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x13ad3) [0x2aabe0624ad3] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x113ca) [0x2aabe06223ca] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-crt-cpp.so(_ZN3Aws3Crt2Io15ClientBootstrapD1Ev+0x3a) [0x2aabe041cf5a] /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(+0x5f570) [0x2aabe00eb570] /lib64/libc.so.6(+0x39ce9) [0x2aaaab835ce9] /lib64/libc.so.6(+0x39d37) [0x2aaaab835d37] /lib64/libc.so.6(__libc_start_main+0xfc) [0x2aaaab81e55c] python(+0x1c721d) [0x55555571b21d] Aborted ``` I don't get this issue when running my code in a container, and it seems more relevant to PyArrow but thought a more complete stack trace might be helpful to someone
[ -0.5238193869590759, 0.012454599142074585, -0.15101103484630585, 0.052918124943971634, 0.10228832811117172, -0.0562828928232193, 0.2720828652381897, 0.1647469699382782, 0.13947555422782898, 0.21642807126045227, 0.14497941732406616, 0.6392533183097839, 0.027232006192207336, 0.2679424285888672, -0.152221217751503, 0.048665180802345276, 0.08497700095176697, 0.2248358130455017, -0.5182909965515137, 0.2776283621788025, -0.3364134132862091, 0.40341711044311523, -0.20846161246299744, 0.06231701746582985, -0.17965640127658844, -0.18097572028636932, -0.017990682274103165, 0.28002411127090454, 0.02418619580566883, -0.2930751442909241, 0.280855268239975, -0.17407575249671936, 0.1775284856557846, 0.3455487787723541, -0.00011229710071347654, -0.16956698894500732, 0.32094013690948486, 0.09541459381580353, -0.28189727663993835, -0.0759117603302002, -0.2237418293952942, 0.12254628539085388, -0.018413642421364784, -0.3855496346950531, 0.26650822162628174, 0.2228131890296936, -0.035127632319927216, -0.3130323588848114, 0.06398759037256241, 0.3623967468738556, 0.23111066222190857, 0.6086916923522949, 0.23900361359119415, 0.10658321529626846, 0.17697851359844208, 0.020196590572595596, -0.26007458567619324, 0.31645667552948, 0.20720577239990234, -0.331706702709198, 0.23808369040489197, 0.2161257565021515, -0.21675093472003937, 0.12381671369075775, 0.14809882640838623, -0.1799425184726715, 0.15179795026779175, -0.23836380243301392, 0.22525644302368164, -0.017766624689102173, 0.3117288053035736, -0.5551999807357788, -0.2122279554605484, 0.20234158635139465, 0.06840676069259644, -0.2899758517742157, 0.22886505722999573, 0.2369188666343689, -0.06906454265117645, 0.25072726607322693, 0.19101200997829437, 0.26012739539146423, -0.28637370467185974, 0.18478792905807495, 0.06891745328903198, 0.19110727310180664, -0.18283812701702118, 0.10610408335924149, -0.035849686712026596, 0.018733222037553787, 0.00741761177778244, -0.18290120363235474, -0.12974299490451813, 0.09053294360637665, -0.6190881729125977, -0.12971530854701996, 0.051239121705293655, 0.3003859519958496, 0.08478792756795883, 0.03572634980082512, -0.08934801816940308, -0.18976715207099915, 0.29613542556762695, 0.18647652864456177, -0.0159309022128582, -0.0019254609942436218, -0.04802560806274414, 0.13991650938987732, 0.20846781134605408, 0.22801423072814941, -0.015490356832742691, -0.08082645386457443, 0.07700398564338684, -0.3536374270915985, 0.17915774881839752, 0.21830061078071594, 0.5821419954299927, -0.1923936903476715, -0.5256127715110779, 0.5586885213851929, -0.27276450395584106, 0.11813317984342575, -0.023202653974294662, 0.38897785544395447, 0.08611492812633514, -0.04770173877477646, 0.16526299715042114, 0.21726174652576447, -0.31643199920654297, 0.15614138543605804, -0.12000201642513275, 0.15908192098140717, -0.16407927870750427, 0.009263454005122185, 0.18453358113765717, -0.2929285168647766, 0.23412029445171356, 0.2619325518608093, 0.07790345698595047, -0.49486252665519714, 0.14538823068141937, -0.04772724583745003, -0.3259895145893097, 0.31159570813179016, 0.1820799708366394, 0.12884961068630219, -0.02475755289196968, 0.19245490431785583, 0.11365745216608047, 0.30799195170402527, -0.059653349220752716, -0.3040207326412201, -0.39303815364837646, 0.26537826657295227, -0.08422987163066864, 0.10746511816978455, -0.12936565279960632, -0.3998487889766693, 0.3742222785949707, 0.05340423062443733, 0.23117583990097046, -0.2634417414665222, 0.04322996363043785, -0.146957665681839, -0.044353146106004715, 0.3126033842563629, -0.19662253558635712, 0.17265981435775757, -0.23658503592014313, -0.1387277990579605, 0.263227641582489, 0.1787833869457245, -0.10955561697483063, 0.12977871298789978, -0.3253767788410187, 0.03682856261730194, 0.056840814650058746, -0.048765432089567184, -0.2840600311756134, 0.4315977692604065, -0.19710785150527954, 0.00497799925506115, 0.06622490286827087, -0.13831350207328796, -0.05319277569651604, -0.2159401923418045, -0.04155489057302475, -0.32135260105133057, 0.02900373935699463, 0.10096672922372818, -0.2742826044559479, -0.29744917154312134, 0.02922021597623825, 0.07409380376338959, 0.22056880593299866, -0.02816326916217804, 0.30671319365501404, -0.08095475286245346, 0.3037673830986023, -0.07938720285892487, -0.02037653885781765, 0.2715916335582733, 0.3118670880794525, -0.23592860996723175, 0.010523859411478043, -0.13526873290538788, -0.4974726438522339, 0.157695472240448, 0.15540720522403717, 0.06946317106485367, -0.1817343384027481, -0.21305930614471436, -0.2614331543445587, 0.36625707149505615, 0.0462983138859272, -0.10794608294963837, 0.14340227842330933, -0.023926451802253723, -0.009390085935592651, -0.172345831990242, -0.32107675075531006, 0.24753864109516144, -0.7090712785720825, 0.026624752208590508, -0.2800890803337097, 0.19260765612125397, -0.20585502684116364, -0.3479895293712616, 0.09676538407802582, -0.027068130671977997, 0.28173622488975525, 0.04891108348965645, -0.31394433975219727, 0.20768854022026062, -0.12387979030609131, 0.4942331314086914, -0.24926906824111938, 0.2949223518371582, -0.12480921298265457, -0.2893085181713104, 0.007277041673660278, 0.10472895205020905, 0.19360515475273132, 0.04698958247900009, 0.3869607448577881, 0.3012580871582031, -0.21690700948238373, 0.17067906260490417, -0.15253464877605438, -0.15863528847694397, 0.05308432877063751, -0.14013251662254333, 0.04216117411851883, -0.0549667626619339, 0.3740572929382324, 0.1470421701669693, 0.19338762760162354, -0.1575610637664795, -0.32100072503089905, -0.06527412682771683, 0.21603110432624817, -0.024810338392853737, 0.11331571638584137, -0.03274691104888916, 0.06554374098777771, 0.01473812386393547, 0.3507843315601349, 0.1520659625530243, 0.9047684073448181, 0.002147955121472478, -0.23908400535583496, 0.16239678859710693, -0.018825873732566833, -0.25551509857177734, 0.40893232822418213, 0.08551303297281265, 0.22956804931163788, 0.3951898217201233, 0.07307233661413193, 0.043044865131378174, -0.21548208594322205, -0.5383496284484863, -0.0007860083132982254, 0.21841269731521606, -0.2915555238723755, 0.23863016068935394, -0.02606428973376751, -0.07065644860267639, -0.03309996426105499, 0.20690526068210602, 0.297656774520874, 0.020317355170845985, -0.05562646687030792, 0.3965716063976288, -0.2665339708328247, 0.0989784449338913, -0.14405067265033722, -0.08521883189678192, -0.011218499392271042, 0.18770962953567505, -0.45568689703941345, -0.17373456060886383, -0.03009164333343506, 0.048678237944841385, 0.16713395714759827, -0.1494404822587967, 0.26856961846351624, -0.02216041460633278, -0.23968744277954102, -0.3495422899723053, -0.10853597521781921, -0.07728511095046997, 0.005394507199525833, 0.3346959054470062, 0.2625851035118103, 0.30285346508026123, -0.17262163758277893, -0.49451497197151184, 0.034761808812618256, -0.24602115154266357, 0.037875838577747345, -0.030478445813059807, -0.25700682401657104, -0.11700733751058578, -0.3578950762748718, -0.2480030059814453, -0.07157238572835922, -0.4674209654331207, -0.10762415826320648, -0.2539978325366974, 0.1292697638273239, -0.19856709241867065, 0.2198299914598465, 0.06721330434083939, 0.3614291548728943, -0.19126585125923157, -0.2563483417034149, -0.330959677696228, 0.02195238694548607, -0.13022275269031525, -0.18442665040493011, 0.19952544569969177, 0.14683200418949127, 0.544459879398346, -0.02477862685918808, -0.3840246796607971, 0.22653482854366302, -0.1091860830783844, 0.16174563765525818, -0.24239078164100647, 0.08878318965435028, 0.048463329672813416, -0.01836950145661831, 0.010266227647662163, -0.1978462040424347, 0.09463419020175934, -0.17066863179206848, -0.04721082001924515, 0.20064936578273773, 0.03100607544183731, 0.4837890863418579, 0.058215994387865067, 0.5825470685958862, 0.18784336745738983, -0.3849369287490845, 0.37778565287590027, 0.09940620511770248, 0.06704911589622498, -0.09659839421510696, -0.16379304230213165, 0.062348101288080215, 0.007748499512672424, -0.2918418049812317, 0.040687091648578644, -0.2753083109855652, -0.3136054575443268, -0.045280419290065765, -0.04066605865955353, -0.37525486946105957, -0.2289002388715744, 0.015167536213994026, 0.004692301154136658, 0.27856889367103577, -0.06130700930953026, -0.022951003164052963, 0.17937467992305756, 0.024065934121608734, -0.009843146428465843, 0.4919509291648865, -0.11577732115983963, -0.15600824356079102, -0.023948701098561287, -0.2760780453681946, -0.5187689661979675, 0.3279684782028198, -0.025348566472530365, 0.27826324105262756, -0.03286927193403244, 0.21041640639305115, 0.08913467824459076, -0.22897376120090485, 0.2019929587841034, -0.15665382146835327, 0.26900148391723633, 0.08647088706493378, 0.261430948972702, -0.05298938229680061, -0.21358832716941833, -0.3113914430141449, 0.23868529498577118, 0.2179853767156601, -0.033461473882198334, -0.16066335141658783, -0.041776660829782486, 0.15745587646961212, -0.12755435705184937, 0.1606025993824005, -0.3883020877838135, -0.17661134898662567, -0.37756913900375366, -0.47437700629234314, 0.3095104992389679, 0.07011262327432632, 0.036890581250190735, -0.2892371118068695, -0.32308411598205566, -0.024218594655394554, -0.0682014748454094, 0.04063531756401062, 0.057501163333654404, -0.1503942310810089, -0.1790412962436676, 0.2924632430076599, -0.40437138080596924, -0.40926694869995117, 0.5923687219619751, 0.2270703911781311, 0.2597561776638031, 0.01660884916782379, 0.23800712823867798, 0.18023046851158142, 0.1766861081123352, 0.2217031717300415, -0.33403217792510986, 0.10901175439357758, 0.13835009932518005, 0.17188426852226257, -0.005543184466660023, 0.1367425173521042, 0.1619844287633896, 0.13029585778713226, -0.0665304884314537, 0.08863359689712524, 0.2563491761684418, -0.17842651903629303, 0.01744867116212845, 0.5696470737457275, -0.21605853736400604, -0.18481236696243286, 0.2943899631500244, -0.0368109792470932, 0.7101967930793762, 0.3098267912864685, -0.16631947457790375, 0.2914770245552063, -0.3430125117301941, 0.25665801763534546, -0.06797122955322266, 0.17575952410697937, -0.3866744041442871, 0.16893380880355835, 0.1212034821510315, -0.08789193630218506, 0.33725136518478394, 0.062026407569646835, 0.026197712868452072, 0.0685267224907875, 0.10726742446422577, 0.11097796261310577, -0.08554619550704956, 0.10424098372459412, -0.5484774112701416, -0.1813623011112213, -0.45042136311531067, 0.15827694535255432, -0.15926334261894226, 0.2785451114177704, -0.41959148645401, 0.10763432830572128, 0.18887075781822205, -0.3532426953315735, -0.40902113914489746, 0.24531695246696472, -0.49999091029167175, 0.17257660627365112, -0.2842651605606079, -0.23692616820335388, 0.0869164764881134, 0.11755426228046417, -0.0490226149559021, 0.3551560342311859, 0.16959258913993835, 0.2930406630039215, 0.10833842307329178, 0.022172164171934128, 0.03783256560564041, -0.1258707046508789, -0.10343709588050842, -0.06015252321958542, -0.19360387325286865, 0.11236117780208588, -0.1490301638841629, -0.06632349640130997, 0.35012829303741455, -0.0002154707908630371, -0.11671432852745056, -0.14089727401733398, -0.200810506939888, -0.050073593854904175, -0.25793492794036865, -0.19201016426086426, 0.2030673325061798, 0.03705823794007301, -0.1579820215702057, 0.3377310037612915, -0.527313232421875, -0.09658140689134598, -0.18536657094955444, 0.3383246660232544, -0.10837080329656601, -0.05802139267325401, 0.14400488138198853, 0.3721712529659271, -0.07380867749452591, -0.2951861023902893, 0.07679913192987442, -0.2395220249891281, -0.43951186537742615, 0.12793821096420288, 0.12475023418664932, 0.15125398337841034, 0.28798335790634155, 0.21149741113185883, 0.0896754115819931, 0.2551245093345642, 0.1096625030040741, -0.3678365647792816, -0.2351515293121338, 0.10425121337175369, -0.0167783685028553, 0.42854103446006775, 0.3428308367729187, 0.042170170694589615, -0.44690102338790894, -0.09061379730701447, -0.31838512420654297, -0.01452592946588993, -0.12918467819690704, 0.15386559069156647, 0.17591653764247894, 0.09488368034362793, 0.3161895275115967, -0.03615865856409073, 0.13188108801841736, 0.3583149313926697, -0.057094454765319824, -0.2393099069595337, -0.10212366282939911, 0.10911715030670166, 0.11647660285234451, -0.03236108273267746, 0.02991298958659172, -0.149451345205307, 0.01843884214758873, 0.01364636979997158, 0.5354166626930237, 0.020964492112398148, -0.229389026761055, -0.03670383617281914, -0.03164070472121239, 0.11683236062526703, -0.37755364179611206, -0.0071971118450164795, -0.07861627638339996, 0.35978376865386963, -0.05474971979856491, 0.19681403040885925, 0.10371335595846176, -0.04241529107093811, -0.08667773753404617, -0.1896456480026245, -0.1331111341714859, 0.3766671121120453, 0.23098352551460266, -0.18495668470859528, -0.28813305497169495, -0.20446988940238953, 0.25685474276542664, 0.0885271281003952, -0.17350926995277405, -0.1757408231496811, -0.03937060758471489, 0.2519862949848175, 0.044915102422237396, 0.026814334094524384, 0.020651958882808685, 0.08733066916465759, -0.04788335785269737, 0.17743319272994995, -0.001293223351240158, -0.30993136763572693, 0.08642558753490448, 0.15831413865089417, 0.28671202063560486, -0.3466145992279053, 0.15860611200332642, 0.19038940966129303, -0.024428807199001312, 0.20151792466640472, 0.0038726162165403366, -0.07271526753902435, 0.37780505418777466, 0.3323095440864563, -0.08269583433866501, 0.17501363158226013, 0.5294491648674011, 0.21865475177764893, 0.011918708682060242, -0.3346422016620636, -0.2941824495792389, -0.0057083964347839355, -0.14120930433273315, 0.29129958152770996, 0.25607389211654663, -0.21779552102088928, 0.025824889540672302, 0.06039530411362648, -0.1354137659072876, 0.1729341447353363, -0.38343629240989685, 0.10301443934440613, -0.25410106778144836, 0.029472216963768005, 0.19681721925735474, -0.02828795462846756, 0.019510211423039436, 0.25995177030563354, 0.3505583107471466, 0.19392237067222595, -0.047566547989845276, -0.18087032437324524, 0.07839366048574448, 0.4270767867565155, 0.0859249085187912, -0.1475231945514679, 0.03401310741901398, 0.3218677043914795, -0.060493677854537964, -0.5429970026016235, 0.2187454253435135, 0.7486253380775452, 0.08864361047744751, 0.08601672947406769, 0.11426851898431778, 0.3115684688091278, 0.05388493090867996, 0.1647612750530243, 0.15141698718070984, 0.08231772482395172, 0.34586355090141296, 0.13631156086921692, 0.1718890368938446, -0.19302032887935638, 0.1185339093208313, 0.40825197100639343, 0.07743829488754272, -0.08002354204654694, -0.14307743310928345, -0.2268596589565277, -0.14327138662338257, -0.1960860937833786, 0.39757150411605835, -0.4079410135746002, 0.04345494508743286, 0.4531758427619934, -0.0029951666947454214, 0.022498220205307007, -0.15672582387924194, 0.11364349722862244, -0.10965798795223236, 0.30358076095581055, 0.25034448504447937, 0.2127288579940796, -0.5243704915046692, -0.21926520764827728, -0.07097578793764114, 0.24329301714897156, -0.00026023387908935547, 0.250313401222229, -0.13172867894172668, -0.033406686037778854, -0.32437700033187866, -0.001700572669506073, 0.4104088544845581, -0.25217652320861816, 0.10034935176372528, 0.8069732189178467, -0.19684618711471558, -0.10594490170478821, -0.22103296220302582, -0.5366701483726501, 0.1259061098098755, -0.4087871015071869, -0.09927329421043396, -0.2250424474477768, 0.0007106810808181763, -0.32818853855133057, -0.14825224876403809, 0.1319779008626938, -0.30969712138175964, 0.5868099331855774, 0.052291013300418854, 0.19030249118804932, -0.34482860565185547, -0.049272485077381134, -0.1451999694108963, -0.3112821877002716, 0.21823154389858246, 0.12219500541687012, 0.021723724901676178, 0.45978137850761414, -0.03415609151124954, -0.017774567008018494, -0.17222481966018677, -0.12150195986032486, -0.22167570888996124, -0.2491578906774521, -0.04057696834206581, 0.09319693595170975, -0.3625554144382477, 0.056779466569423676, -0.10761913657188416, 0.3713841140270233, 0.17070387303829193, 0.2806509733200073, -0.4915652275085449, -0.3505580723285675, 0.32091403007507324, -0.1935875415802002, -0.24120841920375824, -0.06848524510860443, 0.4301099479198456, 0.09190148860216141, 0.013024518266320229, -0.43683746457099915, 0.16234910488128662, 0.106545589864254, -0.023383572697639465, -0.20285062491893768, 0.15165691077709198, 0.12477120757102966, 0.039213571697473526, 0.10273067653179169, 0.09459568560123444, 0.11610646545886993, -0.05027628690004349, 0.2304680347442627, -0.4084387421607971 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
@CallumMcMahon Do you have a small reproducer for this problem on Linux? I can reproduce this on Windows but sadly not with linux.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
23
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 @CallumMcMahon Do you have a small reproducer for this problem on Linux? I can reproduce this on Windows but sadly not with linux.
[ -0.4971723258495331, -0.22107835114002228, -0.06424668431282043, 0.17656749486923218, 0.031853996217250824, -0.108729287981987, 0.17706987261772156, 0.0373217798769474, 0.22821760177612305, 0.22503557801246643, 0.16447393596172333, 0.663695752620697, -0.06924117356538773, 0.12720441818237305, -0.16317299008369446, -0.10834024846553802, 0.17697976529598236, 0.1298457682132721, -0.6801731586456299, 0.0820552259683609, -0.1747646927833557, 0.4391155242919922, -0.29512569308280945, 0.023821871727705002, -0.2007174789905548, -0.21746116876602173, -0.12439848482608795, 0.17055733501911163, 0.1157134622335434, -0.15333278477191925, 0.3042348325252533, -0.3391992747783661, 0.12360842525959015, 0.5622190833091736, -0.00011242626351304352, -0.1677456498146057, 0.3591158390045166, 0.10872417688369751, -0.2666861116886139, -0.17455454170703888, -0.2416810691356659, 0.007540559396147728, 0.08853038400411606, -0.3842111825942993, 0.35376015305519104, 0.11546427011489868, -0.010827852413058281, -0.22052013874053955, 0.08200054615736008, 0.2766171097755432, 0.21256192028522491, 0.5830557346343994, 0.1947464942932129, 0.07487250864505768, 0.1517057567834854, 0.061879657208919525, -0.3208602964878082, 0.15288445353507996, 0.22211818397045135, -0.310846745967865, 0.2576705813407898, 0.2405782788991928, -0.19256603717803955, 0.009252064861357212, -0.028122395277023315, -0.12400776892900467, -0.07989082485437393, -0.21056167781352997, 0.1713145673274994, 0.014074049890041351, 0.30974912643432617, -0.42132434248924255, -0.14278745651245117, 0.2894178032875061, 0.13468055427074432, -0.19471122324466705, 0.3737765848636627, 0.24960021674633026, -0.1357896327972412, 0.1493731290102005, 0.08804462105035782, 0.2445414513349533, -0.3302845060825348, 0.3437497615814209, -0.06370742619037628, 0.2953137159347534, -0.10709773749113083, 0.0868818387389183, -0.009112466126680374, -0.06717853993177414, -0.0411534421145916, -0.25088468194007874, -0.10445158183574677, 0.08215522766113281, -0.7284797430038452, -0.058371156454086304, -0.07031770795583725, 0.3240496516227722, 0.06853761523962021, -0.08960826694965363, 0.026997216045856476, -0.20462456345558167, 0.2174302190542221, 0.24886199831962585, 0.010280616581439972, -0.14584927260875702, -0.11057624965906143, 0.2551913559436798, 0.31345582008361816, -0.01845564879477024, -0.08180603384971619, -0.10879144817590714, 0.03898966312408447, -0.2712668180465698, 0.17266394197940826, 0.08143431693315506, 0.48262959718704224, -0.18290485441684723, -0.3514201045036316, 0.4767966568470001, -0.4863795340061188, 0.2622298300266266, 0.0846957117319107, 0.37512049078941345, 0.0065925875678658485, -0.16168898344039917, 0.17124655842781067, 0.19523289799690247, -0.35676512122154236, 0.20686587691307068, -0.12002694606781006, 0.061911020427942276, -0.1951192021369934, -0.04540492594242096, 0.16874757409095764, -0.27965182065963745, 0.22288300096988678, 0.3305128216743469, 0.2694880962371826, -0.446309894323349, 0.173772394657135, -0.12544018030166626, -0.31363824009895325, 0.3841663599014282, 0.09213198721408844, 0.12435133010149002, -0.024793226271867752, 0.24948512017726898, 0.14268550276756287, 0.3251042664051056, -0.1971883773803711, -0.18209335207939148, -0.182064488530159, 0.2366502434015274, -0.04379303380846977, 0.03275753930211067, -0.20091187953948975, -0.23468585312366486, 0.20000624656677246, -0.0514410138130188, 0.23204514384269714, -0.33044707775115967, 0.11434461176395416, -0.06478890776634216, 0.045548632740974426, 0.14540868997573853, -0.04682379588484764, 0.09157371520996094, -0.28046149015426636, -0.015213843435049057, 0.37304696440696716, 0.3103269338607788, -0.006664106156677008, 0.015287496149539948, -0.3445257842540741, 0.03943551331758499, 0.13240721821784973, 0.009087007492780685, -0.34137457609176636, 0.3993125855922699, -0.0052947476506233215, -0.07030173391103745, 0.006280846893787384, 0.024006318300962448, -0.07280974090099335, -0.16161715984344482, -0.15253746509552002, -0.263586163520813, 0.07677823305130005, 0.05574488639831543, -0.2545362412929535, -0.3842116892337799, -0.01240428164601326, 0.1528313010931015, 0.24049746990203857, 0.037074338644742966, 0.41617217659950256, -0.09586865454912186, 0.3665204346179962, -0.13951826095581055, -0.1105784922838211, 0.21662092208862305, 0.4201028048992157, -0.2477773278951645, 0.08191359043121338, -0.21982461214065552, -0.37672215700149536, 0.17960548400878906, 0.2147604376077652, 0.138290137052536, -0.04720279574394226, -0.07277458906173706, -0.07973631471395493, 0.29304230213165283, 0.10455375909805298, 0.0451182946562767, 0.10347840189933777, -0.12329211831092834, -0.07925443351268768, -0.11658863723278046, -0.21377432346343994, 0.22800253331661224, -0.7132330536842346, 0.08266693353652954, -0.13293787837028503, 0.2858530879020691, -0.13974852859973907, -0.29689648747444153, 0.03731372207403183, -0.1497092843055725, 0.2280985713005066, 0.05764929577708244, -0.30946099758148193, 0.18080610036849976, -0.013949915766716003, 0.6140980124473572, -0.14003390073776245, 0.22674378752708435, -0.07448423653841019, -0.29191288352012634, 0.04024021327495575, 0.2479775995016098, 0.18069788813591003, -0.02387562021613121, 0.2635377049446106, 0.1343574821949005, -0.15186119079589844, 0.1887815296649933, -0.1832187920808792, -0.012116803787648678, 0.027323832735419273, -0.0725385993719101, 0.03666850924491882, 0.11349117755889893, 0.582676112651825, 0.04159937798976898, 0.23418547213077545, -0.20232979953289032, -0.542560338973999, -0.2884298861026764, 0.18021051585674286, 0.004413243383169174, 0.34635767340660095, 0.12374472618103027, -0.03778590261936188, 0.16794437170028687, 0.3706900477409363, 0.12305749952793121, 0.7847378253936768, 0.07420182973146439, -0.09099362790584564, 0.2033570110797882, 0.06917210668325424, -0.21022289991378784, 0.4836144745349884, 0.159634530544281, 0.10996904224157333, 0.4181238114833832, 0.14326466619968414, 0.06342843174934387, -0.34024372696876526, -0.45022347569465637, -0.0034488607197999954, 0.20706014335155487, -0.2114511877298355, 0.3344229459762573, -0.1320066601037979, 0.2152189016342163, 0.016026290133595467, 0.30204951763153076, 0.10678964853286743, 0.030748585239052773, -0.09356006979942322, 0.313702791929245, -0.15972188115119934, 0.24797141551971436, -0.02574281208217144, -0.07778938114643097, 0.09865918755531311, 0.01544343214482069, -0.4391578435897827, -0.18242768943309784, -0.13105955719947815, 0.030976716428995132, 0.254940927028656, -0.03923989459872246, 0.3637787103652954, 0.04426951706409454, -0.2046813815832138, -0.29917797446250916, -0.08841036260128021, -0.02531464397907257, 0.05177464336156845, 0.2400110512971878, 0.2649962306022644, 0.23180997371673584, -0.2738065719604492, -0.33015820384025574, 0.0673336610198021, -0.3510270118713379, -0.042121727019548416, 0.038589805364608765, -0.21145521104335785, 0.05419154837727547, -0.2427959144115448, -0.225941002368927, -0.1548723727464676, -0.47213566303253174, 0.015985023230314255, -0.1986341029405594, 0.14536474645137787, -0.007130016572773457, 0.31357622146606445, 0.050363972783088684, 0.3863610327243805, -0.21508172154426575, -0.2300470769405365, -0.2559611201286316, 0.15075452625751495, -0.0343344509601593, -0.19400566816329956, 0.21013110876083374, 0.26249176263809204, 0.3747656047344208, 0.23730364441871643, -0.5420317053794861, 0.30503296852111816, -0.13879802823066711, 0.14838331937789917, -0.2897322475910187, 0.21689893305301666, 0.031779371201992035, -0.1607588529586792, 0.053998224437236786, -0.17527908086776733, 0.15191394090652466, -0.19512471556663513, 0.029525911435484886, 0.25373968482017517, 0.040196195244789124, 0.4799325168132782, 0.031379539519548416, 0.5219051241874695, 0.1732299029827118, -0.22728227078914642, 0.2573491334915161, 0.04976176843047142, -0.0352587066590786, -0.1655822992324829, -0.19938650727272034, 0.13645130395889282, 0.02556028962135315, -0.4722713232040405, 0.02192738652229309, -0.16136831045150757, -0.325993150472641, -0.06310349702835083, -0.02746044471859932, -0.1920197308063507, -0.27617862820625305, -0.02110818214714527, 0.16055378317832947, 0.33289414644241333, -0.0855034738779068, 0.03526392579078674, 0.14183801412582397, -0.009459084831178188, 0.11735612154006958, 0.5136922597885132, -0.20525050163269043, -0.08967053890228271, -0.09095980226993561, -0.23045487701892853, -0.4990655183792114, 0.2941133379936218, -0.17089207470417023, 0.34401339292526245, -0.15957611799240112, 0.174007385969162, 0.18488648533821106, -0.1829463541507721, 0.2574383020401001, -0.10977747291326523, 0.16533613204956055, 0.05675454065203667, 0.16660165786743164, -0.012482739053666592, -0.14184413850307465, -0.3958579897880554, 0.29522863030433655, 0.22501537203788757, -0.008790217339992523, -0.1408633291721344, 0.035137638449668884, -0.005710877478122711, -0.03635512664914131, 0.13584217429161072, -0.5125345587730408, -0.1475124955177307, -0.25088733434677124, -0.2802927792072296, 0.3622227609157562, -0.049141790717840195, 0.008461765944957733, -0.2506294250488281, -0.3330729603767395, -0.18131715059280396, -0.029545053839683533, 0.04758988320827484, 0.040599945932626724, -0.03297920525074005, -0.32620570063591003, 0.3704553246498108, -0.3941352665424347, -0.41152092814445496, 0.6514690518379211, 0.16242384910583496, 0.14798764884471893, 0.13685470819473267, 0.28935539722442627, 0.05388960614800453, 0.12051665037870407, 0.13824699819087982, -0.30844634771347046, 0.13537856936454773, 0.18372659385204315, 0.2781151533126831, -0.10067804157733917, 0.09227250516414642, 0.302299439907074, 0.2459157109260559, -0.13304436206817627, 0.048587240278720856, 0.3794790506362915, -0.06775123625993729, -0.08731043338775635, 0.6828848719596863, -0.1439708024263382, -0.21232159435749054, 0.33286726474761963, -0.06679850071668625, 0.7166987061500549, 0.22038593888282776, -0.047162581235170364, 0.2867046892642975, -0.23643667995929718, 0.4139975309371948, -0.09046993404626846, 0.11876854300498962, -0.3827017843723297, 0.09020525962114334, 0.06680779904127121, -0.09143263101577759, 0.4444935917854309, 0.12885919213294983, -0.027999699115753174, 0.005821037106215954, 0.026443861424922943, 0.09932869672775269, -0.11308164894580841, -0.05665462836623192, -0.5850755572319031, -0.233106791973114, -0.6218171715736389, 0.17295415699481964, -0.07623907923698425, 0.25924164056777954, -0.3276537358760834, 0.13472655415534973, 0.10697242617607117, -0.2743454873561859, -0.3767906427383423, 0.12600648403167725, -0.3432666063308716, 0.2123498171567917, -0.24009504914283752, -0.5442872047424316, 0.22853082418441772, 0.11159668862819672, -0.059766143560409546, 0.32724788784980774, 0.008750710636377335, 0.33531108498573303, 0.0005474016070365906, 0.04149297624826431, 0.0696999654173851, -0.17586348950862885, -0.2889883816242218, -0.025840308517217636, -0.17144227027893066, 0.09126534312963486, -0.18703247606754303, -0.08677273988723755, 0.3532974123954773, 0.07221779972314835, -0.12139527499675751, 0.05639900267124176, -0.24456071853637695, -0.08833132684230804, -0.2110326886177063, -0.2213011085987091, 0.20415352284908295, 0.08456750214099884, -0.206011101603508, 0.4453006088733673, -0.36348697543144226, -0.1007404774427414, -0.09531347453594208, 0.32743707299232483, -0.11203309148550034, -0.05842242389917374, 0.17534011602401733, 0.41173169016838074, -0.05877929925918579, -0.33196961879730225, 0.2507852613925934, -0.35393333435058594, -0.46626710891723633, 0.018779490143060684, 0.09939002990722656, 0.1593627780675888, 0.254457950592041, 0.17648927867412567, 0.039128802716732025, 0.19914481043815613, 0.01917092874646187, -0.3129228353500366, -0.2646099925041199, 0.00662163645029068, -0.15360310673713684, 0.321870893239975, 0.3112281560897827, -0.08579458296298981, -0.521281361579895, -0.15320426225662231, -0.27474141120910645, 0.08599737286567688, -0.17892801761627197, 0.03635136038064957, 0.10799333453178406, 0.08904089033603668, 0.36373770236968994, -0.05278391018509865, 0.10256662964820862, 0.3131002187728882, 0.009320881217718124, -0.20441505312919617, -0.19218702614307404, 0.1285037100315094, 0.07458910346031189, 0.07808471471071243, 0.05496302992105484, -0.24542605876922607, -0.030943598598241806, -0.06085214763879776, 0.4805874824523926, 0.1512591540813446, -0.2359468787908554, -0.09947620332241058, 0.06131034716963768, 0.090409055352211, -0.3775310516357422, 0.08193059265613556, -0.027919568121433258, 0.12887802720069885, -0.07526540756225586, 0.06893652677536011, 0.1515842080116272, 0.009141959249973297, 0.037384044378995895, -0.09447970241308212, -0.20330826938152313, 0.2129131257534027, 0.30033788084983826, -0.17876343429088593, -0.14831385016441345, -0.16288882493972778, 0.3332735598087311, 0.18717914819717407, -0.135393425822258, -0.1983170509338379, 0.15730249881744385, 0.26441264152526855, -0.034341949969530106, -0.15044273436069489, 0.08414873480796814, 0.11149006336927414, -0.08101190626621246, 0.11470648646354675, -0.1408376693725586, -0.3551226854324341, -0.03458757698535919, 0.09752996265888214, 0.1517731100320816, -0.37696224451065063, 0.15192990005016327, 0.07959961146116257, -0.031866852194070816, 0.26516708731651306, -0.16205282509326935, -0.12057149410247803, 0.25219598412513733, 0.440405011177063, -0.08058745414018631, 0.08740893006324768, 0.6006280779838562, 0.19258739054203033, 0.019305065274238586, -0.44714704155921936, -0.3521968126296997, -0.08656737208366394, -0.24213150143623352, 0.2684174180030823, 0.09050501137971878, -0.15751183032989502, -0.0010026264935731888, 0.04102979227900505, -0.19053423404693604, 0.059196263551712036, -0.3275873064994812, 0.016920989379286766, -0.20879432559013367, 0.071731798350811, 0.20070287585258484, -0.06611306965351105, -0.01982743665575981, 0.23016612231731415, 0.2909049093723297, 0.2702828645706177, 0.11127868294715881, -0.30272555351257324, -0.20161765813827515, 0.5016779899597168, 0.08618771284818649, -0.1830071657896042, -0.04235289245843887, 0.23480546474456787, -0.09011527895927429, -0.5622208118438721, 0.17267851531505585, 0.7151888608932495, 0.0335860550403595, 0.10622982680797577, 0.14420174062252045, 0.25485357642173767, 0.14384838938713074, 0.10598008334636688, 0.1368022859096527, 0.1968342363834381, 0.3459874093532562, 0.08238270878791809, 0.09223642945289612, -0.16331392526626587, 0.07770965993404388, 0.3309634327888489, -0.0053165145218372345, -0.2897479236125946, -0.17350247502326965, -0.26439589262008667, -0.02332567796111107, -0.20471641421318054, 0.3469543755054474, -0.48991888761520386, 0.08919970691204071, 0.4869994819164276, -0.017799435183405876, 0.027639642357826233, -0.04778589680790901, 0.08518459647893906, -0.2579788267612457, 0.31071221828460693, 0.21662740409374237, 0.33558064699172974, -0.4481993019580841, -0.2201962172985077, -0.07323457300662994, 0.2702799141407013, -0.12494935095310211, 0.28651994466781616, -0.2597183585166931, -0.09178363531827927, -0.18335267901420593, -0.03049387037754059, 0.43054115772247314, -0.21663010120391846, 0.18072958290576935, 0.8772706985473633, -0.20070023834705353, -0.14215469360351562, -0.19657184183597565, -0.46370503306388855, 0.0604618638753891, -0.33824780583381653, -0.07250505685806274, -0.25259044766426086, 0.01832541823387146, -0.301095187664032, -0.12381966412067413, 0.10756027698516846, -0.004479881376028061, 0.507819414138794, 0.07997395098209381, 0.3265976309776306, -0.2224460244178772, -0.09796833246946335, -0.0942566841840744, -0.5059146881103516, 0.283542662858963, 0.0872032567858696, -0.1010601818561554, 0.3575587868690491, -0.12674857676029205, -0.23563148081302643, -0.06366366893053055, -0.08307274430990219, -0.22078153491020203, -0.29698583483695984, -0.024844368919730186, 0.09226925671100616, -0.3229959011077881, 0.15681244432926178, -0.09768606722354889, 0.484134316444397, 0.24848441779613495, 0.08879072964191437, -0.4254966378211975, -0.28668472170829773, 0.2302609086036682, -0.36459898948669434, -0.2564733624458313, -0.17609819769859314, 0.3744411766529083, 0.11262863874435425, 0.06323246657848358, -0.3321601152420044, -0.03006407618522644, 0.20014913380146027, -0.1493714153766632, -0.08913403749465942, 0.06084471940994263, 0.20161646604537964, 0.02822617068886757, 0.0947970300912857, 0.20541849732398987, 0.15635401010513306, -0.17357461154460907, 0.3999475836753845, -0.3545966148376465 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Any updates on this issue? I started receiving the same error a few days ago on the amazon reviews
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
19
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 Any updates on this issue? I started receiving the same error a few days ago on the amazon reviews
[ -0.43437033891677856, -0.12208396941423416, -0.15394678711891174, 0.1481645405292511, -0.0030960291624069214, -0.0064777955412864685, 0.13753996789455414, 0.12875159084796906, 0.12273892760276794, 0.16436758637428284, 0.10050937533378601, 0.5379976034164429, -0.012943184934556484, 0.12478374689817429, -0.22345425188541412, -0.0377914234995842, 0.26744329929351807, 0.14749044179916382, -0.45730212330818176, 0.18871620297431946, -0.30307939648628235, 0.41579192876815796, -0.39342260360717773, 0.021746426820755005, -0.1183837428689003, -0.2919030785560608, -0.10498277097940445, 0.08162422478199005, -0.059029363095760345, -0.30575838685035706, 0.4282948076725006, -0.24587777256965637, 0.22663579881191254, 0.43481072783470154, -0.00011633963003987446, -0.1635240912437439, 0.37180912494659424, 0.13791301846504211, -0.25592607259750366, -0.07423977553844452, -0.2632628381252289, -0.010464525781571865, 0.17681396007537842, -0.3183670938014984, 0.41488924622535706, 0.07245472818613052, -0.034146226942539215, -0.24243386089801788, 0.0791405588388443, 0.4409169554710388, 0.1862306147813797, 0.6514514684677124, 0.38968995213508606, 0.09471343457698822, 0.24508097767829895, -0.030563123524188995, -0.31845614314079285, 0.1691918671131134, 0.367152601480484, -0.3308427929878235, 0.218526229262352, 0.10961310565471649, -0.22932010889053345, 0.07225893437862396, 0.14081665873527527, -0.17229802906513214, 0.11956598609685898, -0.28231877088546753, 0.1539473980665207, -0.06548872590065002, 0.5564521551132202, -0.474994033575058, -0.24334962666034698, 0.22728347778320312, 0.0782177671790123, -0.259870320558548, 0.2515975534915924, 0.2278774529695511, -0.1301797777414322, 0.06418643146753311, 0.0137327890843153, 0.14087632298469543, -0.28974753618240356, 0.2850796580314636, -0.04884985089302063, 0.25718390941619873, -0.1234273910522461, 0.0997828021645546, -0.04511896148324013, -0.05888689309358597, 0.09696861356496811, -0.1486448347568512, -0.15430928766727448, 0.14673547446727753, -0.7897463440895081, -0.10714679956436157, -0.02718297392129898, 0.2928715944290161, 0.046245403587818146, -0.015389423817396164, -0.002261667512357235, -0.23202970623970032, 0.2482318878173828, 0.22675099968910217, 0.13107448816299438, -0.045451946556568146, 0.00316445529460907, 0.13957028090953827, 0.27175360918045044, 0.0916844978928566, 0.010768130421638489, -0.08176607638597488, 0.06972088664770126, -0.2729423940181732, 0.2578771412372589, 0.04036684334278107, 0.4084640145301819, -0.2550382614135742, -0.440606951713562, 0.6014285087585449, -0.5176275968551636, 0.1922418624162674, -0.0614074282348156, 0.2595565617084503, 0.014173212461173534, -0.12726664543151855, 0.21280984580516815, 0.1791645884513855, -0.31934380531311035, 0.1983916014432907, -0.09086839109659195, 0.13986283540725708, -0.1858203113079071, -0.029659749940037727, 0.1431407630443573, -0.2801095247268677, 0.20446094870567322, 0.23971067368984222, 0.2160252034664154, -0.4364827573299408, 0.07071174681186676, -0.014705831184983253, -0.3322293758392334, 0.3571074306964874, 0.1694466918706894, 0.10007750988006592, -0.07278300821781158, 0.10992446541786194, 0.05235186964273453, 0.3547598719596863, -0.16982918977737427, -0.3153426945209503, -0.4392161965370178, 0.20823192596435547, -0.13086946308612823, -0.010262295603752136, -0.18474030494689941, -0.29865336418151855, 0.2402462661266327, -0.10569034516811371, 0.20200955867767334, -0.29625552892684937, 0.14417658746242523, -0.08935610204935074, 0.07355838268995285, 0.1258593052625656, -0.14260131120681763, 0.21811071038246155, -0.3816341459751129, -0.08559265732765198, 0.12612155079841614, 0.22915148735046387, -0.11844894289970398, 0.06652498245239258, -0.3690643310546875, -0.036096278578042984, 0.08195632696151733, -0.07207688689231873, -0.30481210350990295, 0.414916455745697, -0.0109655000269413, -0.10835416615009308, -0.07187213748693466, -0.02493300475180149, -0.11906929314136505, -0.1307092010974884, -0.1619667261838913, -0.3503587245941162, -0.03433142602443695, 0.07362346351146698, -0.29823800921440125, -0.3973437249660492, 0.10527017712593079, 0.22565515339374542, 0.2875257730484009, 0.017228305339813232, 0.3944510221481323, -0.03720085322856903, 0.35772091150283813, -0.027277778834104538, -0.13169516623020172, 0.2534189224243164, 0.36948493123054504, -0.24445702135562897, 0.04140475019812584, -0.170210063457489, -0.6706469058990479, 0.1603236198425293, 0.20868739485740662, 0.25278735160827637, -0.1667676717042923, -0.05712978541851044, -0.1508173644542694, 0.3647749125957489, 0.06344394385814667, -0.07458332180976868, 0.09503109753131866, -0.24025768041610718, -0.049219563603401184, -0.14287421107292175, -0.2481861412525177, 0.2403784841299057, -0.660249650478363, 0.10611642897129059, -0.2424461990594864, 0.2475283294916153, -0.14231428503990173, -0.34621462225914, 0.14291228353977203, -0.22113361954689026, 0.22308573126792908, 0.08872069418430328, -0.3177033066749573, 0.169344961643219, -0.1849328577518463, 0.6133294105529785, -0.1518196165561676, 0.3669377863407135, -0.05009467154741287, -0.350513219833374, 0.05125271901488304, 0.07851116359233856, 0.20485956966876984, 0.05994799733161926, 0.2205163538455963, 0.21456438302993774, -0.2011154741048813, 0.2378290593624115, -0.1565728485584259, -0.07145242393016815, -0.041168201714754105, -0.04085107892751694, 0.052689261734485626, 0.15413369238376617, 0.41518914699554443, 0.160975381731987, 0.24821962416172028, -0.16404937207698822, -0.4047640264034271, -0.24614766240119934, 0.0943678766489029, 0.0441397987306118, 0.17745733261108398, 0.0775788277387619, 0.03143422678112984, 0.04094170033931732, 0.4656718969345093, -0.021219123154878616, 0.7851934432983398, 0.06497902423143387, -0.1421578824520111, 0.23738466203212738, -0.02757902443408966, -0.19515898823738098, 0.5028315782546997, 0.25497114658355713, 0.16636958718299866, 0.40710967779159546, 0.19939780235290527, 0.014963233843445778, -0.33034464716911316, -0.41485247015953064, 0.053133077919483185, 0.2823182940483093, -0.31682437658309937, 0.20702722668647766, -0.02209465764462948, 0.0666566863656044, -0.06576670706272125, 0.246913343667984, 0.0005254577845335007, -0.09905290603637695, -0.06731929630041122, 0.42747655510902405, -0.1663452684879303, 0.16513021290302277, -0.19120357930660248, -0.006955280900001526, 0.0001452174037694931, 0.009257685393095016, -0.3494289219379425, -0.16420143842697144, -0.12582436203956604, 0.03982880339026451, 0.2530401349067688, -0.14417144656181335, 0.2953763008117676, 0.08510751277208328, -0.03738334774971008, -0.3465907871723175, -0.1142180860042572, -0.009625010192394257, 0.01430460810661316, 0.3045773208141327, 0.2853146195411682, 0.2231062799692154, -0.22311636805534363, -0.5014378428459167, -0.00414682924747467, -0.27449145913124084, 0.042418792843818665, -0.04581364989280701, -0.24951492249965668, 0.018181225284934044, -0.1936352550983429, -0.3512699604034424, -0.12387009710073471, -0.4102572798728943, -0.07398220896720886, -0.3398962914943695, 0.11424147337675095, -0.23125548660755157, 0.3071630597114563, 0.11477355659008026, 0.3465057909488678, -0.2975059151649475, -0.13930456340312958, -0.4097484350204468, 0.16210053861141205, -0.02512379176914692, -0.08090671896934509, 0.27007102966308594, 0.33761996030807495, 0.47656235098838806, 0.14822818338871002, -0.4977210760116577, 0.3461872935295105, -0.07125464826822281, 0.30865442752838135, -0.18088817596435547, 0.11465471982955933, 0.13641108572483063, -0.1139749139547348, 0.03450626879930496, -0.09576940536499023, 0.07895129919052124, -0.25544488430023193, 0.00035685673356056213, 0.3658095598220825, -0.06612326204776764, 0.4697316288948059, 0.1369708627462387, 0.5937590599060059, 0.189498633146286, -0.30758965015411377, 0.34649452567100525, 0.07173340022563934, -0.061012979596853256, -0.11522895842790604, -0.16709598898887634, 0.0534326508641243, -0.10069072246551514, -0.41786283254623413, 0.008144527673721313, -0.18646734952926636, -0.46785226464271545, -0.13506248593330383, -0.023333638906478882, -0.2990792691707611, -0.2501814663410187, -0.03799576312303543, 0.1062544584274292, 0.3707413673400879, -0.10091730952262878, -0.022632014006376266, 0.15374231338500977, -0.07308220118284225, 0.03069811314344406, 0.39459967613220215, -0.18077319860458374, -0.09453148394823074, 0.006025947630405426, -0.2624373435974121, -0.4696846008300781, 0.34606489539146423, -0.09274376183748245, 0.4448275864124298, -0.040418826043605804, 0.17252597212791443, 0.11970122903585434, -0.27261340618133545, 0.3244919776916504, -0.16901445388793945, 0.20297732949256897, 0.04585791751742363, 0.3027981221675873, -0.04726817086338997, -0.19415050745010376, -0.25061216950416565, 0.4237658977508545, 0.24945802986621857, -0.05163070559501648, -0.046456772834062576, -0.021671805530786514, 0.08205366134643555, -0.09972166270017624, 0.12103430926799774, -0.39727848768234253, -0.11579534411430359, -0.20355799794197083, -0.3115370273590088, 0.36951643228530884, 0.010570330545306206, 0.016554705798625946, -0.20685337483882904, -0.30464687943458557, -0.029212160035967827, 0.024281159043312073, 0.057036105543375015, -0.013694047927856445, -0.19576039910316467, -0.20825926959514618, 0.3333359658718109, -0.31510311365127563, -0.4522649347782135, 0.5437402725219727, 0.25945717096328735, 0.1928926706314087, -0.03433968126773834, 0.22657334804534912, 0.09606364369392395, 0.2248757779598236, 0.18310749530792236, -0.19782878458499908, 0.053241629153490067, 0.26143014430999756, 0.15786617994308472, 0.010035967454314232, 0.039723172783851624, 0.2477121651172638, 0.17177902162075043, -0.12135067582130432, 0.18463672697544098, 0.41780954599380493, -0.03560325503349304, -0.04008547589182854, 0.6137415170669556, -0.09616808593273163, -0.22099080681800842, 0.2858428955078125, 0.026554856449365616, 0.6858945488929749, 0.3293444514274597, -0.06105656549334526, 0.19897395372390747, -0.40114855766296387, 0.3514804542064667, -0.18962974846363068, 0.12029069662094116, -0.33509138226509094, 0.20841436088085175, 0.05227310210466385, -0.05685056000947952, 0.3608429431915283, 0.0010978244245052338, 0.086917445063591, 0.062389347702264786, 0.04307884722948074, 0.10039381682872772, -0.06844758242368698, 0.026206374168395996, -0.563377857208252, -0.19798067212104797, -0.4236517548561096, 0.1436828225851059, -0.13853593170642853, 0.2582593560218811, -0.344713419675827, 0.13668383657932281, 0.17738451063632965, -0.28419941663742065, -0.5277093052864075, 0.14941415190696716, -0.18816985189914703, 0.23040257394313812, -0.26353469491004944, -0.42894667387008667, 0.3075233995914459, 0.12092874944210052, -0.09067167341709137, 0.25117236375808716, -0.030152702704072, 0.36560437083244324, 0.09058395028114319, 0.047522589564323425, 0.09370573610067368, -0.10365425050258636, -0.12219920754432678, 0.0026567354798316956, -0.2038675844669342, 0.19422781467437744, -0.1741310954093933, -0.14084547758102417, 0.2239077091217041, -0.0315561443567276, -0.18433725833892822, -0.03537723049521446, -0.18413309752941132, -0.005342856049537659, -0.20433597266674042, -0.20278745889663696, 0.1696261465549469, 0.08386792242527008, -0.10634312778711319, 0.4382166862487793, -0.43260884284973145, -0.048593901097774506, -0.09716513752937317, 0.4997897148132324, -0.07912422716617584, -0.18397973477840424, 0.16880199313163757, 0.5450593829154968, -0.05534764751791954, -0.27933940291404724, 0.1892479658126831, -0.23937411606311798, -0.4745355546474457, 0.08445011079311371, 0.003416510997340083, 0.2311049848794937, 0.22841495275497437, 0.32280123233795166, 0.08351168036460876, 0.1427985429763794, 0.1873866766691208, -0.32089605927467346, -0.2502308785915375, 0.18807384371757507, -0.08289167284965515, 0.4461822509765625, 0.20832404494285583, -0.11387810111045837, -0.27433669567108154, -0.1973234862089157, -0.23411281406879425, 0.11517713963985443, -0.18346641957759857, 0.09743153303861618, 0.06820690631866455, 0.12859292328357697, 0.2945866584777832, -0.13705019652843475, 0.0633685439825058, 0.29204124212265015, -0.08173397183418274, -0.1685832440853119, -0.11612215638160706, 0.1686931997537613, 0.17849141359329224, 0.022862574085593224, 0.09297887235879898, -0.23475989699363708, -0.02051757276058197, 0.10647014528512955, 0.43010589480400085, 0.0217997208237648, -0.25499629974365234, 0.025272108614444733, -0.026449453085660934, -0.004444345831871033, -0.35154294967651367, 0.025060255080461502, 0.09560327976942062, 0.2412104606628418, 0.027278907597064972, 0.17023487389087677, 0.20134474337100983, -0.0162942036986351, 0.020340124145150185, -0.13156822323799133, -0.34651780128479004, 0.2271585464477539, 0.3166801631450653, -0.20875491201877594, -0.23076997697353363, -0.13000358641147614, 0.2730048894882202, 0.2400260865688324, -0.1053062453866005, -0.17081324756145477, 0.06517250835895538, 0.2186354398727417, -0.03716067969799042, -0.10973526537418365, 0.07925668358802795, 0.14360663294792175, -0.18761160969734192, -0.03206168860197067, -0.05940460041165352, -0.23927320539951324, 0.03335132077336311, 0.15949824452400208, 0.37139004468917847, -0.5030919313430786, 0.16056561470031738, 0.06555881351232529, -0.042745545506477356, 0.18271422386169434, -0.036542750895023346, -0.18764609098434448, 0.26141852140426636, 0.5178032517433167, -0.09471724182367325, 0.11904514580965042, 0.5794129371643066, 0.3443913757801056, 0.06511614471673965, -0.2897491157054901, -0.30745929479599, -0.0813727080821991, -0.12883871793746948, 0.35290396213531494, 0.2795904874801636, -0.05228806287050247, 0.07876378297805786, 0.066007599234581, -0.2532903552055359, 0.0008101798593997955, -0.3340747654438019, 0.06641992926597595, -0.26323139667510986, -0.06071719899773598, 0.15694862604141235, 0.0504198856651783, -0.056384745985269547, 0.08386962115764618, 0.3831108808517456, 0.24183140695095062, 0.019970111548900604, -0.44984039664268494, -0.03587109595537186, 0.40289345383644104, 0.1368197798728943, -0.20086640119552612, -0.043073125183582306, 0.2359427511692047, -0.21599087119102478, -0.5410315990447998, 0.20954346656799316, 0.7246570587158203, 0.016744907945394516, 0.039794497191905975, 0.1381855010986328, 0.17091161012649536, 0.08295558393001556, 0.16510114073753357, 0.1006043329834938, 0.16495384275913239, 0.4226403832435608, 0.04726402088999748, 0.10736831277608871, -0.10430225729942322, 0.22170469164848328, 0.3262344300746918, 0.07312430441379547, -0.3037640452384949, -0.20102107524871826, -0.19040699303150177, -0.14032599329948425, -0.1261981576681137, 0.3243488371372223, -0.3819466233253479, 0.12116397172212601, 0.41489458084106445, 0.04364520683884621, -0.09254735708236694, -0.08723269402980804, 0.05576939135789871, -0.20252902805805206, 0.45983266830444336, 0.2723539173603058, 0.42131567001342773, -0.4456338882446289, -0.19065114855766296, -0.21621866524219513, 0.14303749799728394, 0.06994326412677765, 0.37139108777046204, -0.0077355653047561646, 0.006263637915253639, -0.2156103551387787, 0.06262364983558655, 0.30458691716194153, -0.20537400245666504, 0.11365482956171036, 0.8508424758911133, -0.2384064644575119, -0.12987381219863892, -0.14469324052333832, -0.38701948523521423, 0.03161056339740753, -0.29897889494895935, -0.06837218999862671, -0.21155689656734467, -0.0974155068397522, -0.38113564252853394, -0.25647515058517456, 0.1744592785835266, -0.08777803182601929, 0.6516333818435669, -0.003041820600628853, 0.3151870369911194, -0.19886773824691772, -0.0729588121175766, -0.24088969826698303, -0.42541617155075073, 0.21116125583648682, 0.08555837720632553, -0.08341500163078308, 0.4563849866390228, -0.18307934701442719, -0.02111220732331276, -0.059690821915864944, -0.1765427440404892, -0.29975205659866333, -0.2873347997665405, -0.13607032597064972, 0.007073845714330673, -0.2218133509159088, 0.12405367940664291, -0.1727452278137207, 0.42841604351997375, 0.2218281477689743, 0.19353368878364563, -0.5128700733184814, -0.24382559955120087, 0.18576687574386597, -0.22683338820934296, -0.15446843206882477, -0.14748889207839966, 0.3432966470718384, 0.26220640540122986, -0.14370299875736237, -0.514405369758606, -0.0070283859968185425, 0.21580757200717926, -0.06615081429481506, -0.13545243442058563, 0.14825253188610077, 0.2400808334350586, -0.019513074308633804, 0.07763467729091644, 0.23741251230239868, 0.12976139783859253, -0.1504897177219391, 0.278962641954422, -0.437183141708374 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi, I also ran into this issue, Windows only. It caused our massive binary to minidump left and right, very annoying. When the program is doing an exit, the destructors in the exit-handlers want to do cleanup, leading to code in event_loop.c, on line 73-ish: AWS_FATAL_ASSERT( aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS); The fatal_assert end in an abort/minidump. Digging through the code, I found that aws_thread_launch in the Windows version (aws-c-common/source/windows/thread.c) has only ONE reason to return anything other than AWS_OP_SUCCESS: return aws_raise_error(AWS_ERROR_THREAD_INSUFFICIENT_RESOURCE); on line 263, when CreateThread fails. Our conclusion was that, apparently, Windows dislikes launching a new thread while already handling the exit-handlers. And while I appreciate the the fatal_assert is there in case of problems, the cure here is worse than the problem. I "fixed" this in our (Windows) environment by (bluntly) removing the AWS_FATAL_ASSERT. If Windows cannot start a thread, the program is in deep trouble anyway and the chances of that actually happening are acceptable (to us). The exit is going to clean up all resources anyway. A neater fix would probably be to detect somehow that the program is actually in the process of exiting and then not bother (on windows, anyway) to start a cleanup thread. Alternatively, try to start the thread but not fatal-assert when it fails during exit. Or perhaps Windows can be convinced somehow to start the thread under these circumstances? @xhochy : The problem is Windows-only, the aws_thread_launch has two implementations (posix and windows). The problem is in the windows CreateThread which fails.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
254
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 Hi, I also ran into this issue, Windows only. It caused our massive binary to minidump left and right, very annoying. When the program is doing an exit, the destructors in the exit-handlers want to do cleanup, leading to code in event_loop.c, on line 73-ish: AWS_FATAL_ASSERT( aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS); The fatal_assert end in an abort/minidump. Digging through the code, I found that aws_thread_launch in the Windows version (aws-c-common/source/windows/thread.c) has only ONE reason to return anything other than AWS_OP_SUCCESS: return aws_raise_error(AWS_ERROR_THREAD_INSUFFICIENT_RESOURCE); on line 263, when CreateThread fails. Our conclusion was that, apparently, Windows dislikes launching a new thread while already handling the exit-handlers. And while I appreciate the the fatal_assert is there in case of problems, the cure here is worse than the problem. I "fixed" this in our (Windows) environment by (bluntly) removing the AWS_FATAL_ASSERT. If Windows cannot start a thread, the program is in deep trouble anyway and the chances of that actually happening are acceptable (to us). The exit is going to clean up all resources anyway. A neater fix would probably be to detect somehow that the program is actually in the process of exiting and then not bother (on windows, anyway) to start a cleanup thread. Alternatively, try to start the thread but not fatal-assert when it fails during exit. Or perhaps Windows can be convinced somehow to start the thread under these circumstances? @xhochy : The problem is Windows-only, the aws_thread_launch has two implementations (posix and windows). The problem is in the windows CreateThread which fails.
[ -0.4987594485282898, -0.13013438880443573, -0.07362645119428635, -0.00904615968465805, 0.02272728458046913, -0.08680187165737152, 0.0005763769149780273, 0.05415378510951996, 0.1672285497188568, 0.09147810190916061, 0.04081975668668747, 0.3720351755619049, -0.13672992587089539, -0.08037882298231125, -0.3270176649093628, 0.15092724561691284, 0.12362273037433624, 0.2123006284236908, -0.28107568621635437, 0.16424094140529633, -0.40081799030303955, 0.3294807970523834, -0.0970892459154129, 0.00044623762369155884, -0.12779878079891205, -0.20891788601875305, -0.23373985290527344, 0.3797351121902466, 0.003191150724887848, -0.339127779006958, 0.18876884877681732, -0.37320786714553833, 0.15816059708595276, 0.4173385202884674, -0.00011447855649748817, -0.12007993459701538, 0.33726590871810913, 0.2245464026927948, -0.2826928198337555, 0.12193115800619125, -0.13580012321472168, 0.08474455773830414, 0.008861487731337547, -0.1485486775636673, 0.4606342911720276, 0.18262237310409546, 0.07698670029640198, -0.15854278206825256, 0.2077147662639618, 0.31212612986564636, 0.16925273835659027, 0.749003529548645, 0.10100090503692627, 0.08996900916099548, -0.07107415050268173, 0.14462056756019592, -0.26383328437805176, 0.25742512941360474, 0.2251676619052887, -0.44024980068206787, -0.05600794404745102, -0.04192075878381729, -0.15887828171253204, 0.24088314175605774, -0.08114366978406906, -0.08517257124185562, 0.21305695176124573, -0.1690693348646164, 0.11302819848060608, -0.06438382714986801, 0.23070257902145386, -0.31434446573257446, -0.2015671730041504, 0.12995630502700806, 0.08583905547857285, -0.44014257192611694, 0.33433765172958374, 0.22219431400299072, -0.17750442028045654, 0.21492204070091248, 0.21529227495193481, 0.13805073499679565, -0.15445402264595032, 0.14401552081108093, -0.043304476886987686, 0.048219289630651474, -0.061206020414829254, 0.05586573854088783, 0.029504910111427307, 0.214599147439003, 0.013496950268745422, -0.1617179811000824, -0.1336400955915451, 0.03893114626407623, -0.542458176612854, 0.1250750720500946, 0.23817163705825806, 0.26282861828804016, 0.01962876319885254, 0.1306743323802948, 0.0717119500041008, -0.2953334152698517, 0.3277764618396759, 0.075232595205307, -0.08452887833118439, -0.17992280423641205, -0.037316784262657166, -0.21704049408435822, 0.2723881006240845, 0.07552241533994675, 0.11981882154941559, -0.07192401587963104, 0.10048462450504303, -0.34741461277008057, 0.22214941680431366, 0.1367768794298172, 0.3551226258277893, -0.04943805932998657, -0.5605801343917847, 0.3124033510684967, -0.3669542372226715, 0.21688388288021088, -0.030910436064004898, 0.218891441822052, 0.2429027259349823, 0.08366049826145172, 0.2218967229127884, 0.21474578976631165, -0.5233824253082275, 0.317937970161438, -0.11264979094266891, -0.029768947511911392, -0.20995943248271942, 0.06360878795385361, 0.15860408544540405, -0.14820872247219086, 0.11879890412092209, 0.4602961838245392, 0.017191961407661438, -0.21937504410743713, 0.09631337225437164, -0.10649082064628601, -0.2365720272064209, 0.25224530696868896, 0.08125211298465729, 0.3340492844581604, -0.13497987389564514, 0.13091811537742615, 0.1773402988910675, 0.20234715938568115, 0.18057864904403687, -0.3390737473964691, -0.25208523869514465, 0.21370074152946472, -0.12245796620845795, 0.19606414437294006, 0.26991429924964905, -0.09580579400062561, 0.21899917721748352, 0.1265457719564438, 0.19278039038181305, -0.1626216322183609, -0.17210611701011658, -0.18778009712696075, 0.20755979418754578, 0.40822213888168335, -0.30937689542770386, 0.056593768298625946, -0.3331075608730316, -0.18843384087085724, 0.3182264566421509, 0.3555511236190796, 0.05849798396229744, 0.08960308879613876, -0.44333916902542114, -0.017796657979488373, -0.26724860072135925, 0.12333063781261444, -0.367396742105484, 0.343625009059906, -0.25038835406303406, 0.16478592157363892, 0.09282482415437698, -0.14336487650871277, -0.2011333703994751, -0.12028373032808304, 0.047648265957832336, -0.33631378412246704, -0.022504521533846855, -0.11216612905263901, -0.4333995282649994, -0.3203607499599457, -0.09879003465175629, 0.00024996139109134674, 0.2644515633583069, -0.1906401515007019, 0.2539312243461609, -0.03660402446985245, 0.3270832598209381, -0.12213858962059021, -0.001400119625031948, 0.052215296775102615, 0.2667648196220398, -0.5386243462562561, -0.0816626250743866, -0.040120407938957214, -0.30118876695632935, 0.23535409569740295, 0.2400471568107605, 0.3363259434700012, 0.12262557446956635, 0.008760947734117508, -0.15377047657966614, 0.3453137278556824, 0.2302553802728653, -0.19406111538410187, 0.08197980374097824, 0.01657174900174141, -0.10180850327014923, -0.0902557224035263, -0.11328113079071045, 0.2696313261985779, -0.8297439813613892, 0.10059284418821335, -0.040554579347372055, 0.08774539083242416, -0.13626162707805634, -0.32067927718162537, -0.035591937601566315, -0.1106356754899025, 0.00830339640378952, 0.1889924556016922, -0.1955569088459015, 0.2889751195907593, -0.007711092475801706, 0.5697807669639587, -0.14370766282081604, 0.18904444575309753, 0.07236532866954803, -0.1842849850654602, -0.009596278890967369, 0.2635646164417267, 0.017575886100530624, -0.0956127792596817, 0.27432090044021606, 0.25162315368652344, -0.16255176067352295, 0.27531442046165466, -0.16702501475811005, -0.0777588039636612, -0.05151603743433952, -0.06874071806669235, -0.06503649801015854, 0.009691156446933746, 0.4135710895061493, 0.2470569610595703, -0.06432588398456573, -0.0832575336098671, -0.33137965202331543, -0.2509341239929199, 0.07890117168426514, 0.038377467542886734, 0.150814026594162, 0.12700480222702026, -0.07096453756093979, 0.11884305626153946, 0.4702865183353424, -0.041738152503967285, 0.8896483182907104, 0.08606215566396713, 0.026393812149763107, 0.14426252245903015, -0.09074705839157104, -0.24673758447170258, 0.4818277955055237, 0.18675202131271362, -0.03967268392443657, 0.42070135474205017, 0.06379077583551407, -0.025207646191120148, -0.4484618008136749, -0.23093737661838531, -0.04862116277217865, 0.058830492198467255, -0.3649299442768097, -0.04065226763486862, 0.027922799810767174, 0.3467560410499573, -0.05165731906890869, 0.33550846576690674, 0.2185579240322113, 0.07109534740447998, 0.09161064028739929, 0.3874160349369049, -0.35635942220687866, 0.013348416425287724, -0.28998857736587524, -0.03632451593875885, -0.11785382777452469, 0.1191619262099266, -0.28560149669647217, -0.028874680399894714, -0.1306135058403015, 0.09415492415428162, 0.22478808462619781, -0.2313905507326126, 0.2796767055988312, 0.09835627675056458, -0.16374661028385162, -0.10550757497549057, -0.19156992435455322, -0.19014662504196167, -0.03857344388961792, 0.44423162937164307, 0.24298813939094543, 0.1095418632030487, -0.20728419721126556, -0.580251157283783, 0.026006504893302917, -0.27145010232925415, -0.03258098289370537, -0.1479329913854599, -0.18534672260284424, -0.00026231660740450025, -0.359133780002594, -0.2712322771549225, 0.07383428514003754, -0.5209565162658691, 0.1280478835105896, -0.2819267809391022, -0.005362085998058319, -0.1598096638917923, 0.26813286542892456, -0.04489671066403389, 0.5029833316802979, -0.21999990940093994, -0.2978701889514923, -0.22950750589370728, 0.10555112361907959, 0.09562171250581741, -0.06796428561210632, 0.11299963295459747, 0.05014226585626602, 0.37798383831977844, 0.25178414583206177, -0.45633190870285034, 0.20723304152488708, -0.044252216815948486, 0.0714230090379715, -0.11718393862247467, 0.1431736797094345, -0.06676137447357178, 0.016906477510929108, -0.09657103568315506, -0.03890926390886307, 0.07437148690223694, -0.21881043910980225, 0.1298314332962036, 0.4187849164009094, -0.04781748354434967, 0.3860613703727722, 0.2722322344779968, 0.6490603685379028, 0.05932585522532463, -0.13880279660224915, 0.04272527992725372, 0.19247546792030334, 0.1418297290802002, 0.08089953660964966, -0.20904821157455444, 0.30787160992622375, -0.17413043975830078, -0.355612576007843, 0.0979539155960083, -0.011819900944828987, -0.26164329051971436, 0.14399299025535583, 0.1072767823934555, -0.17566528916358948, -0.3442130982875824, 0.1724173128604889, -0.15603755414485931, 0.30798518657684326, -0.1226523369550705, 0.1739373803138733, 0.13718059659004211, 0.08075785636901855, 0.07484219968318939, 0.23126694560050964, 0.009432949125766754, -0.14278167486190796, 0.08434094488620758, 0.008572054095566273, -0.6322447061538696, 0.20521238446235657, -0.05619822070002556, 0.388599157333374, 0.09583912789821625, -0.07848857343196869, 0.15347528457641602, -0.27008959650993347, 0.31354284286499023, 0.04757382720708847, -0.07989707589149475, 0.06795549392700195, 0.25595423579216003, -0.2881220281124115, -0.0975782573223114, -0.22727811336517334, 0.32771095633506775, 0.10435736179351807, -0.18592104315757751, -0.06425675749778748, 0.0019133391324430704, -0.13747213780879974, -0.11926201730966568, 0.10892461240291595, -0.30561837553977966, -0.21010369062423706, -0.2821308672428131, -0.3184100091457367, 0.5463097095489502, -0.01452723704278469, -0.14214898645877838, -0.3155367076396942, -0.15076962113380432, -0.027590101584792137, -0.04743935912847519, 0.16826394200325012, 0.06557059288024902, -0.11324019730091095, -0.3722676932811737, 0.26848721504211426, -0.26602402329444885, -0.4333687722682953, 0.46880531311035156, 0.1241215318441391, 0.18335659801959991, 0.002962633967399597, 0.2789347469806671, 0.17008522152900696, 0.08683216571807861, 0.3182201385498047, -0.053438957780599594, 0.10712525248527527, 0.07411645352840424, 0.0821593776345253, -0.40686529874801636, 0.21133765578269958, 0.29647350311279297, -0.0036926064640283585, 0.057545535266399384, 0.37234726548194885, 0.16074472665786743, -0.028359035030007362, -0.11632315069437027, 0.6996617317199707, -0.027027346193790436, -0.12171831727027893, 0.22680704295635223, 0.12047300487756729, 0.6868041157722473, 0.28179728984832764, -0.18424487113952637, 0.22752392292022705, -0.7014684677124023, 0.2764626741409302, -0.09353557229042053, 0.3236217498779297, -0.1531996726989746, 0.1464841514825821, 0.15749911963939667, 0.004440084099769592, 0.4172319173812866, 0.09987689554691315, 0.1830991804599762, -0.16408756375312805, 0.2687379717826843, 0.27616921067237854, 0.011350803077220917, 0.14651061594486237, -0.6829264760017395, -0.37532252073287964, -0.240288645029068, 0.15559081733226776, 0.11940417438745499, 0.12965722382068634, -0.4043671190738678, 0.2084987312555313, 0.23026195168495178, -0.31399786472320557, -0.4339820146560669, 0.03128577023744583, -0.41007816791534424, 0.14555609226226807, -0.33197087049484253, -0.3381997346878052, 0.23285815119743347, -0.01412903144955635, -0.022480234503746033, 0.2017514705657959, 0.11795321851968765, 0.3055758774280548, 0.3059341311454773, 0.18515390157699585, 0.1212036982178688, -0.3638332486152649, -0.1625797003507614, 0.18945378065109253, -0.20469237864017487, 0.016246534883975983, -0.14517265558242798, -0.11642162501811981, 0.13812032341957092, 0.09045477956533432, -0.12638075649738312, 0.06962188333272934, 0.08821198344230652, 0.014841169118881226, -0.19539567828178406, -0.2232106477022171, 0.18980805575847626, 0.025745805352926254, -0.04935130849480629, 0.5075672268867493, -0.6848941445350647, -0.13368746638298035, -0.21891523897647858, 0.3281417191028595, -0.11398590356111526, 0.03671707212924957, 0.28680604696273804, 0.2791590988636017, 0.013775400817394257, -0.2724810540676117, 0.023922830820083618, -0.1311439573764801, -0.23613858222961426, 0.1833011358976364, 0.187908336520195, -0.034440577030181885, 0.31580841541290283, -0.0969136655330658, 0.1494988054037094, -0.017853230237960815, -0.09927527606487274, -0.12925668060779572, -0.23591527342796326, 0.19446703791618347, -0.13190710544586182, 0.44007089734077454, 0.1781972348690033, 0.17050819098949432, -0.39367830753326416, -0.06563340872526169, -0.2888323664665222, -0.057891182601451874, -0.014390481635928154, 0.10558624565601349, -0.005592808127403259, 0.011467184871435165, 0.28070321679115295, -0.06692525744438171, 0.08738499879837036, 0.39313971996307373, -0.16612258553504944, -0.14740198850631714, -0.14826950430870056, 0.09576062858104706, 0.0626533031463623, -0.058109551668167114, 0.22585727274417877, -0.011137478984892368, 0.17115160822868347, -0.05117085576057434, 0.43824270367622375, 0.06633010506629944, -0.33105146884918213, -0.15168900787830353, 0.045686643570661545, 0.1823902726173401, -0.15057598054409027, -0.055682502686977386, -0.07490597665309906, 0.39865589141845703, -0.053949616849422455, 0.16095095872879028, 0.2249378263950348, -0.021297167986631393, 0.29175883531570435, 0.05178657919168472, -0.1183944046497345, 0.40361788868904114, 0.07868684828281403, 0.19018685817718506, -0.538957953453064, -0.23381181061267853, 0.23624470829963684, 0.3636843264102936, 0.11241792887449265, -0.229455828666687, -0.043558891862630844, 0.2434195578098297, 0.05339381843805313, 0.10757172107696533, -0.12642700970172882, -0.12581126391887665, 0.009416010230779648, 0.01997193694114685, -0.00802699476480484, -0.2554202675819397, -0.09144507348537445, 0.0539577454328537, 0.08320530503988266, -0.49815207719802856, 0.03018077462911606, 0.4146396517753601, -0.048278599977493286, 0.20066994428634644, 0.09106938540935516, -0.3959180414676666, 0.4379855990409851, 0.22865042090415955, 0.06813031435012817, 0.22445033490657806, 0.29835763573646545, 0.322212278842926, 0.042888909578323364, -0.3964979648590088, -0.4873425364494324, -0.327922523021698, -0.061630263924598694, 0.498638391494751, 0.24912676215171814, 0.0907677412033081, -0.08059908449649811, -0.056462451815605164, -0.257409930229187, -0.02803793177008629, -0.310115784406662, -0.1275942176580429, -0.41159123182296753, 0.026584364473819733, 0.21611160039901733, 0.04312263801693916, 0.05547618865966797, -0.030424438416957855, 0.3394876718521118, 0.012852054089307785, -0.0224229097366333, -0.2625194489955902, -0.2855326235294342, 0.33505961298942566, -0.06054241210222244, -0.19686251878738403, -0.1906508207321167, 0.4293009042739868, -0.05136450380086899, -0.5543736815452576, 0.2698516547679901, 0.7222065329551697, 0.031700123101472855, -0.22652462124824524, 0.054313987493515015, 0.3396766781806946, 0.2458357959985733, -0.11099252104759216, 0.31316983699798584, 0.041826698929071426, 0.2646442651748657, 0.003923937678337097, 0.12785659730434418, -0.18893428146839142, 0.03451288491487503, 0.21432098746299744, -0.1900247484445572, -0.1647624522447586, -0.1098264530301094, -0.09211497008800507, 0.029747188091278076, 0.01300341822206974, 0.2590486705303192, -0.14333197474479675, -0.020283769816160202, 0.4025026261806488, -0.33987724781036377, 0.08928472548723221, 0.05988970771431923, 0.09888914972543716, -0.2387690246105194, 0.202073335647583, 0.3395271301269531, 0.22313576936721802, -0.41142144799232483, -0.0794588252902031, -0.2479541003704071, 0.06894551217556, 0.06096365675330162, 0.3570389747619629, -0.39483577013015747, 0.14882409572601318, -0.14754724502563477, -0.12559238076210022, 0.17399096488952637, -0.06598292291164398, 0.16826631128787994, 0.619025707244873, -0.2191346138715744, 0.15669289231300354, -0.21220116317272186, -0.5916678309440613, -0.007917586714029312, -0.3152124583721161, -0.04764724150300026, -0.06352371722459793, -0.0036561787128448486, -0.16480058431625366, -0.20163652300834656, 0.26089754700660706, 0.05277104675769806, 0.6952706575393677, 0.22158953547477722, -0.06878262758255005, -0.3539794683456421, -0.06373728811740875, -0.469221293926239, -0.15804772078990936, 0.11915330588817596, 0.022668790072202682, -0.17693528532981873, 0.5009138584136963, -0.21507781744003296, -0.06672941148281097, -0.053007178008556366, -0.013118920847773552, -0.03902095928788185, -0.27058956027030945, -0.07851921766996384, 0.23661622405052185, -0.5320484042167664, 0.08822165429592133, -0.17053832113742828, 0.458619624376297, 0.11500115692615509, 0.27428147196769714, -0.383075475692749, -0.38537222146987915, -0.005074813961982727, -0.09108898788690567, -0.08755090087652206, -0.14681443572044373, 0.33478352427482605, 0.20867055654525757, 0.1780434399843216, -0.3895657956600189, -0.2053549587726593, 0.09822327643632889, -0.08293748646974564, -0.21302570402622223, -0.009955132380127907, 0.25709617137908936, -0.13364693522453308, 0.0420956127345562, 0.1520152986049652, 0.05606421083211899, -0.1551860272884369, 0.40604349970817566, -0.28442561626434326 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I also encountered the same problem, but I made an error in the multi gpu training environment on Linux, and the single gpu training environment will not make an error. i use accelerate package to do multi gpu training.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
39
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 I also encountered the same problem, but I made an error in the multi gpu training environment on Linux, and the single gpu training environment will not make an error. i use accelerate package to do multi gpu training.
[ -0.496290385723114, -0.2467743456363678, -0.09241664409637451, 0.21509556472301483, 0.04064854234457016, -0.02971820905804634, 0.22802641987800598, 0.06097279489040375, 0.19507384300231934, 0.28012198209762573, 0.15151380002498627, 0.5374244451522827, 0.052729908376932144, 0.18558697402477264, -0.18184565007686615, -0.1643584817647934, 0.22065183520317078, 0.13431847095489502, -0.3977019488811493, 0.11350347101688385, -0.2023954689502716, 0.398191899061203, -0.2918868660926819, 0.15337395668029785, -0.20387722551822662, -0.3034268915653229, -0.09505238384008408, 0.05494609847664833, 0.14558489620685577, -0.1609143167734146, 0.19990754127502441, -0.38241446018218994, 0.19128146767616272, 0.5419797301292419, -0.00011341318895574659, -0.05347369983792305, 0.15066096186637878, 0.030027015134692192, -0.11681023240089417, -0.11159773170948029, -0.22544419765472412, 0.061847835779190063, 0.10972993075847626, -0.41003963351249695, 0.11820503324270248, 0.05775302276015282, -0.12233057618141174, -0.3229750394821167, 0.11192240566015244, 0.37659502029418945, 0.16882012784481049, 0.6047278642654419, 0.22801713645458221, 0.014368744567036629, 0.0307360477745533, -0.11842827498912811, -0.26710864901542664, 0.13021276891231537, 0.08822034299373627, -0.41158753633499146, 0.12391550838947296, 0.34350210428237915, -0.14539851248264313, 0.18512475490570068, -0.05014228820800781, -0.05033542588353157, 0.06286754459142685, -0.20538540184497833, 0.07240614295005798, -0.0772785022854805, 0.07779240608215332, -0.3944229483604431, -0.2327563464641571, 0.2848672866821289, 0.13883686065673828, -0.40713587403297424, 0.2920786142349243, 0.423237144947052, -0.14870646595954895, 0.13804911077022552, 0.0022635944187641144, 0.18751908838748932, -0.3714750409126282, 0.27455562353134155, -0.08016042411327362, 0.45655351877212524, -0.09470577538013458, 0.18315494060516357, 0.029723385348916054, 0.18073421716690063, -0.010015918873250484, -0.046693332493305206, 0.07169172167778015, -0.059076737612485886, -0.902744472026825, 0.014746829867362976, -0.08425845950841904, 0.03768427297472954, 0.029797744005918503, -0.035187363624572754, 0.09422733634710312, -0.2662815749645233, 0.3275962471961975, 0.2832173705101013, -0.16504907608032227, -0.11301693320274353, -0.1557772159576416, 0.20199701189994812, 0.25656330585479736, 0.030396489426493645, -0.14857369661331177, -0.08057770878076553, 0.1053171455860138, -0.26848235726356506, 0.02167092263698578, 0.1974310576915741, 0.2366095930337906, -0.05106595158576965, -0.49499037861824036, 0.4420831799507141, -0.6453845500946045, 0.3485978841781616, 0.08413012325763702, 0.2635297477245331, 0.06760240346193314, -0.06224219501018524, 0.09578680992126465, 0.2884504795074463, -0.41361552476882935, 0.05257194861769676, -0.11920307576656342, 0.24618948996067047, -0.2870107889175415, 0.14736132323741913, 0.1191292256116867, -0.2086765319108963, 0.2702401578426361, 0.345503032207489, 0.2515298128128052, -0.46745413541793823, 0.2806374132633209, -0.21792472898960114, -0.1853119432926178, 0.36656811833381653, 0.2646004855632782, 0.08860401064157486, 0.04624175280332565, 0.14388276636600494, 0.2172480821609497, 0.22789114713668823, -0.3091655373573303, -0.29013726115226746, -0.2632008194923401, 0.20742827653884888, 0.11806647479534149, 0.18134182691574097, -0.09619184583425522, -0.13072378933429718, 0.2858641743659973, -0.15616008639335632, 0.26909202337265015, -0.2940894365310669, 0.02622925117611885, -0.10683068633079529, 0.21114587783813477, 0.0705047994852066, 0.026198815554380417, 0.1367637813091278, -0.06517507135868073, -0.004903174936771393, 0.1743883341550827, 0.48677805066108704, -0.2196737825870514, -0.12084416300058365, -0.3524335026741028, 0.06109978258609772, 0.038093388080596924, -0.1597997397184372, -0.2023339420557022, 0.3664853274822235, -0.14521187543869019, -0.11643833667039871, 0.09177396446466446, -0.09590265154838562, -0.11087989807128906, -0.05112200602889061, 0.05081065371632576, -0.19941091537475586, 0.01898043602705002, 0.07504783570766449, -0.24302798509597778, -0.2883071005344391, 0.18466217815876007, 0.03101276606321335, 0.2953846752643585, -0.05787157267332077, 0.18783524632453918, -0.14634723961353302, 0.3870411813259125, -0.23913440108299255, -0.12967270612716675, 0.25198647379875183, 0.22070258855819702, -0.37417733669281006, -0.04591129347681999, -0.07038168609142303, -0.5543026924133301, 0.18649137020111084, 0.14936278760433197, 0.18024766445159912, 0.02431327849626541, -0.04786244034767151, 0.13812455534934998, 0.2152269184589386, 0.049446914345026016, -0.14791539311408997, 0.09979076683521271, -0.012941606342792511, -0.0177239328622818, -0.16696999967098236, -0.18524156510829926, 0.4084009826183319, -0.6905663013458252, 0.07203369587659836, -0.07372038066387177, 0.2425965517759323, -0.1937951147556305, -0.3563862442970276, 0.044836968183517456, -0.2719567120075226, 0.2341742217540741, -0.03660609573125839, -0.2904873490333557, 0.25020506978034973, -0.10428498685359955, 0.42157477140426636, -0.09572692960500717, 0.2961511015892029, 0.033854395151138306, -0.42005157470703125, -0.17495757341384888, 0.13756154477596283, 0.13801954686641693, 0.031633906066417694, 0.10684993863105774, 0.33906736969947815, -0.04807104542851448, 0.18421025574207306, -0.12419182062149048, -0.028448911383748055, 0.02923806942999363, -0.09359345585107803, -0.04252947121858597, 0.2112574577331543, 0.36262577772140503, 0.17263475060462952, 0.2530028223991394, -0.2272205501794815, -0.6806061267852783, -0.25001105666160583, 0.13190078735351562, 0.13502241671085358, 0.18818551301956177, -0.029828444123268127, 0.13524259626865387, 0.0396621972322464, 0.4430605471134186, -0.05995750427246094, 0.817490816116333, 0.08054385334253311, -0.08345332741737366, 0.148166224360466, -0.22394727170467377, -0.23382222652435303, 0.34468933939933777, 0.1105344295501709, 0.27121931314468384, 0.4085005223751068, 0.14862655103206635, 0.047596897929906845, -0.26792818307876587, -0.4386516809463501, 0.211873397231102, 0.20606601238250732, -0.32217055559158325, 0.3246864378452301, -0.055667947977781296, 0.06883426010608673, -0.07194750756025314, 0.21578052639961243, 0.0965011864900589, 0.1065726950764656, -0.059361256659030914, 0.27589771151542664, -0.16425925493240356, 0.3261251449584961, 0.012569811195135117, -0.0781046599149704, 0.03714241832494736, 0.19364754855632782, -0.2567341923713684, -0.07864820212125778, -0.12131614238023758, -0.03559326380491257, 0.19737012684345245, -0.10566502064466476, 0.27599480748176575, 0.14393581449985504, -0.17337800562381744, -0.306225061416626, -0.07654964923858643, -0.06057310104370117, 0.008239002898335457, 0.2174336314201355, 0.11162154376506805, 0.1489323079586029, -0.28143060207366943, -0.40915432572364807, 0.12168877571821213, -0.4390048682689667, 0.04547008126974106, -0.023944219574332237, -0.281766802072525, 0.06357604265213013, -0.24786069989204407, -0.2870950698852539, -0.09425502270460129, -0.4168497622013092, -0.08989234268665314, -0.2687719762325287, 0.10768121480941772, -0.1583828181028366, 0.3334859609603882, 0.1559094786643982, 0.35191088914871216, -0.16876594722270966, -0.18880657851696014, -0.2617413401603699, 0.00830484926700592, -0.03553768992424011, -0.2464689463376999, 0.13401271402835846, 0.2834228277206421, 0.6220356225967407, 0.3028372526168823, -0.37178361415863037, 0.22364398837089539, 0.024266451597213745, 0.022316236048936844, -0.29606765508651733, 0.07150363177061081, 0.14075422286987305, -0.21197260916233063, -0.06636534631252289, -0.05543122813105583, 0.013468164950609207, -0.027555331587791443, -0.013742994517087936, 0.21860623359680176, -0.12652674317359924, 0.438408762216568, 0.2999807894229889, 0.6486542820930481, 0.3145931661128998, -0.26307398080825806, 0.2624106705188751, 0.029915545135736465, -0.06825625896453857, -0.054258622229099274, -0.18031299114227295, 0.12342698127031326, -0.18130308389663696, -0.3464755415916443, -0.1033782958984375, -0.3177797496318817, -0.3989065885543823, -0.1473492681980133, 0.0973423570394516, -0.21176284551620483, -0.21469585597515106, 0.03625193238258362, 0.01574491709470749, 0.3992173969745636, -0.13920216262340546, -0.024727463722229004, 0.15436223149299622, 0.1398506462574005, 0.1478748470544815, 0.42938071489334106, -0.22084012627601624, -0.018807286396622658, -0.09996506571769714, -0.40680617094039917, -0.24760857224464417, 0.32418131828308105, -0.0963539257645607, 0.456214964389801, -0.024720270186662674, 0.2085672914981842, 0.15965768694877625, -0.33371615409851074, 0.2502472400665283, -0.0910123735666275, 0.034591782838106155, 0.09182365238666534, 0.04935409873723984, -0.01654418185353279, -0.30397161841392517, -0.37052521109580994, 0.17533499002456665, 0.15993957221508026, 0.10773475468158722, -0.07983174920082092, -0.15118630230426788, 0.0878317654132843, -0.2145710587501526, 0.1819719523191452, -0.28142049908638, -0.21335111558437347, -0.1860852837562561, -0.34173280000686646, 0.5724812150001526, 0.014329211786389351, 0.04157240688800812, -0.2224453091621399, -0.29648557305336, -0.07397235929965973, 0.00671730563044548, 0.012221679091453552, -0.05445419251918793, -0.17826759815216064, -0.22820888459682465, 0.17605285346508026, -0.35752466320991516, -0.388351708650589, 0.4994785785675049, 0.0690072551369667, 0.23515769839286804, 0.02920125424861908, 0.2672153413295746, 0.11837959289550781, 0.2802056074142456, 0.2355698049068451, -0.22077862918376923, 0.14982908964157104, 0.1577131301164627, 0.2018330991268158, 0.06767918169498444, 0.2251817286014557, 0.23081785440444946, 0.25024598836898804, -0.10505408048629761, 0.005562843754887581, 0.42348232865333557, 0.09455941617488861, 0.014529302716255188, 0.6993767619132996, -0.11102023720741272, -0.11285345256328583, 0.24999253451824188, 0.17431962490081787, 0.6131013631820679, 0.1719888597726822, 0.07923705875873566, 0.29175540804862976, -0.3350043296813965, 0.40740063786506653, -0.1946679800748825, 0.2604180574417114, -0.22890210151672363, -0.006908209063112736, 0.049744561314582825, -0.07746866345405579, 0.5046575665473938, 0.06817103922367096, 0.061871666461229324, 0.05159876123070717, 0.14319998025894165, 0.13314278423786163, -0.048138655722141266, 0.16297273337841034, -0.23343423008918762, -0.29558703303337097, -0.45412731170654297, 0.09058447927236557, -0.12619051337242126, 0.1367654800415039, -0.22142231464385986, 0.09689021110534668, 0.13122177124023438, -0.210823193192482, -0.4414339065551758, 0.17264464497566223, -0.4905373156070709, 0.3475123643875122, -0.34000250697135925, -0.608405351638794, 0.17509381473064423, 0.15710636973381042, -0.06822904944419861, 0.16511690616607666, -0.009214622899889946, 0.16051650047302246, -0.010427549481391907, -0.003980122972279787, -0.058373406529426575, -0.32664331793785095, 0.0004845559597015381, -0.04919521510601044, -0.1742447167634964, 0.3138968050479889, -0.22960741817951202, -0.06099472567439079, 0.3703235387802124, 0.03383995592594147, -0.16320960223674774, 0.23854762315750122, -0.07194839417934418, -0.03590165078639984, -0.1834418773651123, -0.32095301151275635, 0.1606064736843109, 0.022708293050527573, -0.28220900893211365, 0.29834502935409546, -0.345246285200119, -0.12969675660133362, -0.12266157567501068, 0.5097767114639282, 0.015330949798226357, -0.040776994079351425, 0.13970057666301727, 0.4176706373691559, 0.06946741044521332, -0.31732186675071716, 0.0413709357380867, -0.1441597044467926, -0.34277206659317017, 0.09351025521755219, -0.031231163069605827, 0.11566810309886932, 0.3166845142841339, 0.19941003620624542, 0.16598451137542725, 0.21280699968338013, 0.13681864738464355, -0.18903446197509766, -0.2853727638721466, -0.017927713692188263, -0.1923048347234726, 0.23450526595115662, 0.39546728134155273, 0.1250627189874649, -0.22251097857952118, -0.020458566024899483, -0.2482692152261734, -0.01907125674188137, -0.3250351548194885, 0.07105723023414612, 0.045005522668361664, 0.048275403678417206, 0.18798671662807465, 0.1036275327205658, 0.07023274898529053, 0.3095663785934448, -0.021621227264404297, -0.1530996561050415, -0.1530204564332962, 0.12510839104652405, 0.19709792733192444, 0.2093169093132019, 0.17371022701263428, -0.21467216312885284, -0.10439485311508179, 0.05751385912299156, 0.5158889293670654, 0.00512232631444931, -0.22297267615795135, 0.0035482095554471016, -0.19989021122455597, -0.03438819944858551, -0.39550065994262695, -0.12310288846492767, -0.05232305824756622, -0.00291578471660614, 0.015350311994552612, 0.09056448936462402, 0.23355422914028168, -0.04856529086828232, -0.2118159681558609, -0.05883670598268509, -0.379743754863739, 0.24426957964897156, 0.0842193216085434, -0.29773569107055664, -0.2084721177816391, -0.30813437700271606, 0.2455560266971588, 0.1271452009677887, -0.1376996785402298, -0.05720248073339462, 0.018139280378818512, 0.20488177239894867, -0.06410519778728485, -0.027173660695552826, -0.01707422360777855, -0.0013313079252839088, 0.012681487947702408, 0.17298662662506104, 0.13224533200263977, -0.21669186651706696, -0.006544843316078186, 0.06426357477903366, 0.07142902910709381, -0.4343158006668091, 0.1299179196357727, -0.0460941307246685, -0.03957178443670273, 0.3255968391895294, -0.0989217460155487, -0.1374666392803192, 0.2926025688648224, 0.38151437044143677, -0.10964266210794449, 0.18940947949886322, 0.544022798538208, 0.19980202615261078, 0.008689358830451965, -0.26879245042800903, -0.47415274381637573, -0.20012709498405457, -0.2604755163192749, 0.1631348729133606, -0.03018835186958313, -0.06307654827833176, -0.09597352147102356, -0.21444444358348846, -0.22705121338367462, 0.13469718396663666, -0.36990752816200256, 0.06905631721019745, -0.18765559792518616, 0.0655440017580986, 0.16223777830600739, 0.05950276181101799, 0.07507269829511642, 0.32804471254348755, 0.5660197734832764, 0.2051847130060196, 0.0377672053873539, -0.16226986050605774, -0.17824289202690125, 0.6199174523353577, 0.029283151030540466, -0.18854883313179016, 0.07455258071422577, 0.2806931734085083, -0.3292880356311798, -0.6758551597595215, 0.15168562531471252, 0.6989933848381042, 0.05897584557533264, 0.1855924129486084, 0.09542302042245865, 0.33394429087638855, 0.12919895350933075, 0.19640037417411804, 0.06246569752693176, 0.38247421383857727, 0.3578002452850342, 0.17675800621509552, 0.0643395334482193, -0.1483401656150818, 0.13353148102760315, 0.3538270592689514, 0.09537799656391144, -0.3720516860485077, -0.24478483200073242, -0.2587977945804596, -0.05866121128201485, -0.17504461109638214, 0.34665435552597046, -0.411518394947052, 0.13232263922691345, 0.3962538540363312, -0.08499661833047867, -0.04028121754527092, 0.016974471509456635, 0.05565673112869263, -0.12683671712875366, 0.5536694526672363, 0.1502506583929062, 0.31116896867752075, -0.5888439416885376, -0.24994821846485138, -0.17026516795158386, 0.2634587287902832, -0.12191572785377502, 0.46650898456573486, -0.25170084834098816, 0.13088132441043854, -0.19315066933631897, -0.007590774446725845, 0.4407409429550171, -0.09649170935153961, 0.26352301239967346, 0.8639657497406006, -0.32687005400657654, 0.045571133494377136, -0.28835350275039673, -0.45093420147895813, 0.1513885110616684, -0.18851730227470398, 0.018819622695446014, -0.1477624773979187, -0.046153370290994644, -0.2919182777404785, -0.060121867805719376, 0.2371731996536255, -0.04896869510412216, 0.6066099405288696, -0.04351566731929779, 0.34970033168792725, -0.22690558433532715, -0.06781616061925888, -0.07121522724628448, -0.12150877714157104, 0.14484620094299316, 0.11653421819210052, 0.00743061862885952, 0.4695449769496918, -0.12707531452178955, -0.10431379079818726, -0.09619801491498947, -0.05697648599743843, -0.04234044998884201, -0.3961184024810791, -0.060000546276569366, 0.19522838294506073, -0.21915555000305176, 0.005221290979534388, 0.06435072422027588, 0.5137021541595459, 0.2801705002784729, 0.04543556272983551, -0.6041280031204224, -0.2700730860233307, 0.1633804738521576, -0.2913675010204315, -0.19296665489673615, -0.21122711896896362, 0.4211731553077698, 0.15033186972141266, 0.16298232972621918, -0.49598705768585205, -0.10290365666151047, 0.12580916285514832, -0.03708285838365555, -0.41652911901474, 0.11830927431583405, 0.21762919425964355, -0.03241307660937309, 0.10714051127433777, 0.08588679879903793, 0.10014048963785172, -0.21024306118488312, 0.3700612485408783, -0.3110824227333069 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> I also get this issue, It appears after my script has finished running. I get the following error message > > ``` > Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS > Exiting Application > ################################################################################ > Stack trace: > ################################################################################ > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x2aabe0479579] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x48) [0x2aabe04696c8] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x13ad3) [0x2aabe0624ad3] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x113ca) [0x2aabe06223ca] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-crt-cpp.so(_ZN3Aws3Crt2Io15ClientBootstrapD1Ev+0x3a) [0x2aabe041cf5a] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(+0x5f570) [0x2aabe00eb570] > /lib64/libc.so.6(+0x39ce9) [0x2aaaab835ce9] > /lib64/libc.so.6(+0x39d37) [0x2aaaab835d37] > /lib64/libc.so.6(__libc_start_main+0xfc) [0x2aaaab81e55c] > python(+0x1c721d) [0x55555571b21d] > Aborted > ``` > > I don't get this issue when running my code in a container, and it seems more relevant to PyArrow but thought a more complete stack trace might be helpful to someone Any updates for your issue because I'm getting the same one
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
130
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 > I also get this issue, It appears after my script has finished running. I get the following error message > > ``` > Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS > Exiting Application > ################################################################################ > Stack trace: > ################################################################################ > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x2aabe0479579] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x48) [0x2aabe04696c8] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x13ad3) [0x2aabe0624ad3] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x113ca) [0x2aabe06223ca] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-crt-cpp.so(_ZN3Aws3Crt2Io15ClientBootstrapD1Ev+0x3a) [0x2aabe041cf5a] > /home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(+0x5f570) [0x2aabe00eb570] > /lib64/libc.so.6(+0x39ce9) [0x2aaaab835ce9] > /lib64/libc.so.6(+0x39d37) [0x2aaaab835d37] > /lib64/libc.so.6(__libc_start_main+0xfc) [0x2aaaab81e55c] > python(+0x1c721d) [0x55555571b21d] > Aborted > ``` > > I don't get this issue when running my code in a container, and it seems more relevant to PyArrow but thought a more complete stack trace might be helpful to someone Any updates for your issue because I'm getting the same one
[ -0.5284790992736816, -0.022227488458156586, -0.14636017382144928, 0.06035924702882767, 0.0943962037563324, -0.0397799052298069, 0.23536381125450134, 0.17027056217193604, 0.12577208876609802, 0.19519028067588806, 0.15364108979701996, 0.6447402238845825, 0.021385446190834045, 0.2878294289112091, -0.16321510076522827, 0.06693047285079956, 0.10196556150913239, 0.22479692101478577, -0.501470685005188, 0.2846542000770569, -0.3504225015640259, 0.41477736830711365, -0.23013164103031158, 0.03189209848642349, -0.19977636635303497, -0.183274507522583, -0.0286492221057415, 0.2638334035873413, -0.000002028420567512512, -0.28610512614250183, 0.26799750328063965, -0.1714453101158142, 0.18836703896522522, 0.31436678767204285, -0.0001127324067056179, -0.1936015486717224, 0.3123001456260681, 0.0873950868844986, -0.27914726734161377, -0.0492534339427948, -0.23041114211082458, 0.1073785051703453, -0.029523467645049095, -0.38360098004341125, 0.2787089943885803, 0.20844148099422455, -0.03932284563779831, -0.30695992708206177, 0.06832955777645111, 0.36502736806869507, 0.22638645768165588, 0.623907208442688, 0.2465389221906662, 0.11136998236179352, 0.16411671042442322, 0.01202092319726944, -0.26661863923072815, 0.31766536831855774, 0.19177085161209106, -0.3137683868408203, 0.2536855638027191, 0.22632847726345062, -0.21977271139621735, 0.13093291223049164, 0.1453721672296524, -0.16597481071949005, 0.14610141515731812, -0.25886914134025574, 0.2291627824306488, -0.02807755023241043, 0.3181491196155548, -0.5806047916412354, -0.22100929915905, 0.1998567283153534, 0.07828597724437714, -0.30114054679870605, 0.21564826369285583, 0.22818076610565186, -0.06161116063594818, 0.2516256868839264, 0.2007327824831009, 0.2449456751346588, -0.2657182812690735, 0.18518570065498352, 0.0782339870929718, 0.18948596715927124, -0.1708424687385559, 0.09313210844993591, -0.020941998809576035, 0.029649294912815094, 0.0037299715913832188, -0.19145341217517853, -0.14471060037612915, 0.11813545972108841, -0.6282885670661926, -0.11920413374900818, 0.03930645436048508, 0.29607099294662476, 0.09330146759748459, 0.03264627233147621, -0.1069556251168251, -0.20071229338645935, 0.2844652235507965, 0.17916542291641235, -0.012843601405620575, 0.005994895473122597, -0.05045851320028305, 0.1559251993894577, 0.18039026856422424, 0.23032702505588531, -0.00763021782040596, -0.08696576952934265, 0.07660134881734848, -0.3461531102657318, 0.1808685064315796, 0.2065873146057129, 0.597290575504303, -0.19612810015678406, -0.530921459197998, 0.5676712393760681, -0.26938337087631226, 0.12555882334709167, -0.03812699392437935, 0.3786851763725281, 0.09087104350328445, -0.04026325047016144, 0.18751037120819092, 0.22659839689731598, -0.31394320726394653, 0.16821123659610748, -0.11556130647659302, 0.14125587046146393, -0.15849342942237854, 0.010454312898218632, 0.19310438632965088, -0.2780263125896454, 0.2373352348804474, 0.2818997800350189, 0.08921512961387634, -0.48283666372299194, 0.12529680132865906, -0.04530899599194527, -0.32089486718177795, 0.32183292508125305, 0.17719759047031403, 0.13915498554706573, -0.02396298572421074, 0.2159072309732437, 0.10412266105413437, 0.31635782122612, -0.06207393854856491, -0.29197633266448975, -0.39600715041160583, 0.2606602609157562, -0.08918559551239014, 0.12732285261154175, -0.12154240161180496, -0.3951761722564697, 0.38402315974235535, 0.055340725928545, 0.23071008920669556, -0.26541686058044434, 0.03787040337920189, -0.13898465037345886, -0.022635066881775856, 0.305001437664032, -0.21282611787319183, 0.18101322650909424, -0.22221381962299347, -0.1523621678352356, 0.26752135157585144, 0.16991117596626282, -0.10399243235588074, 0.11034532636404037, -0.3233741223812103, 0.020415805280208588, 0.055882424116134644, -0.05270993337035179, -0.2930266559123993, 0.42184633016586304, -0.19150479137897491, 0.021749963983893394, 0.05503242835402489, -0.1310223489999771, -0.0667063370347023, -0.20043912529945374, -0.0380253791809082, -0.32070034742355347, 0.02282409928739071, 0.095201276242733, -0.27616897225379944, -0.28562092781066895, 0.02468056231737137, 0.07744863629341125, 0.2059708833694458, -0.015679821372032166, 0.290180504322052, -0.0661596953868866, 0.29676735401153564, -0.058188240975141525, -0.018302034586668015, 0.2668765187263489, 0.3096962571144104, -0.2577480673789978, 0.0173276849091053, -0.1495368480682373, -0.5105751156806946, 0.162584125995636, 0.14476372301578522, 0.0913398414850235, -0.18001116812229156, -0.20071786642074585, -0.2536788582801819, 0.36191287636756897, 0.05256328359246254, -0.12148122489452362, 0.14328935742378235, -0.0400402769446373, -0.017915837466716766, -0.16487279534339905, -0.32780957221984863, 0.2594451606273651, -0.7067404389381409, 0.029214296489953995, -0.2706731855869293, 0.1818401962518692, -0.20656435191631317, -0.34520405530929565, 0.09591101109981537, -0.022676415741443634, 0.25702527165412903, 0.06386803090572357, -0.3182099759578705, 0.21428966522216797, -0.11729683727025986, 0.4701351523399353, -0.2634260356426239, 0.29052385687828064, -0.12640179693698883, -0.2871120274066925, -0.007123621180653572, 0.10767893493175507, 0.18489910662174225, 0.034296177327632904, 0.41016465425491333, 0.3057183027267456, -0.207840234041214, 0.18833793699741364, -0.1614801585674286, -0.16134992241859436, 0.04837788641452789, -0.13489431142807007, 0.029521768912672997, -0.05743907019495964, 0.3839563727378845, 0.14698709547519684, 0.20860956609249115, -0.15307946503162384, -0.3165651857852936, -0.06848689168691635, 0.23742622137069702, -0.01710912212729454, 0.10511499643325806, -0.03498230129480362, 0.048923809081315994, 0.027980517596006393, 0.3225313127040863, 0.16440343856811523, 0.9097880125045776, -0.0008491859771311283, -0.2603958547115326, 0.17868275940418243, -0.043189335614442825, -0.23691794276237488, 0.40389731526374817, 0.08631128817796707, 0.24758431315422058, 0.4076635241508484, 0.08173856884241104, 0.04153887927532196, -0.2094588279724121, -0.540372908115387, 0.007840441539883614, 0.22475963830947876, -0.2696927487850189, 0.24624018371105194, -0.01885714754462242, -0.06576599925756454, -0.047877393662929535, 0.2277030497789383, 0.27957963943481445, 0.015678735449910164, -0.05632365494966507, 0.386094868183136, -0.24286915361881256, 0.11000154912471771, -0.15293027460575104, -0.07054568827152252, 0.008627453818917274, 0.17302140593528748, -0.4356202781200409, -0.18243947625160217, -0.035017989575862885, 0.041979532688856125, 0.1620171070098877, -0.12230715900659561, 0.26513049006462097, -0.05042831599712372, -0.23072904348373413, -0.3369947075843811, -0.0938199907541275, -0.06731553375720978, 0.011716045439243317, 0.3419605791568756, 0.2495165318250656, 0.3063868284225464, -0.18057332932949066, -0.5005894303321838, 0.04649385064840317, -0.23322036862373352, 0.019477153196930885, -0.037984978407621384, -0.2682674825191498, -0.11984521895647049, -0.35412874817848206, -0.25315460562705994, -0.06124495714902878, -0.47252559661865234, -0.10883256793022156, -0.26419177651405334, 0.11375045776367188, -0.18709665536880493, 0.20913240313529968, 0.06411678344011307, 0.3796193301677704, -0.1951410472393036, -0.2665068209171295, -0.3341645896434784, 0.043160393834114075, -0.11375104635953903, -0.1847539246082306, 0.19888395071029663, 0.14869214594364166, 0.5351038575172424, -0.017758294939994812, -0.3830195665359497, 0.22835570573806763, -0.09865568578243256, 0.16189326345920563, -0.24876374006271362, 0.08641228079795837, 0.044947218149900436, -0.013755099847912788, 0.019233396276831627, -0.21409091353416443, 0.09596841037273407, -0.17303988337516785, -0.04846246540546417, 0.23645296692848206, 0.047521717846393585, 0.4854077994823456, 0.04299956187605858, 0.5670130252838135, 0.18306083977222443, -0.4038858413696289, 0.3751085698604584, 0.0773964375257492, 0.0758686438202858, -0.09775141626596451, -0.17888319492340088, 0.04348381981253624, -0.011579364538192749, -0.2890390157699585, 0.03254873305559158, -0.2836160659790039, -0.3280709385871887, -0.050405971705913544, -0.013529127463698387, -0.36273524165153503, -0.21930204331874847, 0.019876474514603615, -0.021931782364845276, 0.2939232885837555, -0.05444954335689545, -0.030669022351503372, 0.18842564523220062, 0.03618710860610008, -0.009658903814852238, 0.48216015100479126, -0.10841786116361618, -0.16382059454917908, -0.031005820259451866, -0.28315892815589905, -0.5176455974578857, 0.3137211799621582, -0.019753312692046165, 0.29653075337409973, -0.030162665992975235, 0.21425917744636536, 0.08256784826517105, -0.22246257960796356, 0.2284102737903595, -0.14944417774677277, 0.26183992624282837, 0.10735197365283966, 0.2657853066921234, -0.04921042546629906, -0.21247796714305878, -0.3275560438632965, 0.23967263102531433, 0.24203401803970337, -0.03785538673400879, -0.178500235080719, -0.02619323506951332, 0.14666853845119476, -0.08925807476043701, 0.14875750243663788, -0.3836404085159302, -0.2040328085422516, -0.35883238911628723, -0.4855002462863922, 0.3072151839733124, 0.08510289341211319, 0.04983655735850334, -0.27763524651527405, -0.30228644609451294, -0.03886763006448746, -0.08441381901502609, 0.0254192054271698, 0.07968059182167053, -0.127903014421463, -0.1755514144897461, 0.3035842180252075, -0.39131373167037964, -0.4331396222114563, 0.5941762328147888, 0.2237042933702469, 0.26849034428596497, 0.003878265619277954, 0.23329704999923706, 0.19151386618614197, 0.16351494193077087, 0.2000667154788971, -0.31507301330566406, 0.09751731902360916, 0.13126233220100403, 0.1648510843515396, -0.019570153206586838, 0.14167124032974243, 0.18094903230667114, 0.1237993910908699, -0.08904635906219482, 0.08641118556261063, 0.24980810284614563, -0.16171960532665253, 0.017753899097442627, 0.5787476897239685, -0.22057019174098969, -0.17728164792060852, 0.29100674390792847, -0.04567476361989975, 0.712608814239502, 0.300503671169281, -0.17992982268333435, 0.29069581627845764, -0.3406761884689331, 0.2630411386489868, -0.059440452605485916, 0.17972686886787415, -0.3658076524734497, 0.1603575050830841, 0.12081983685493469, -0.09365683794021606, 0.32795271277427673, 0.06170676648616791, 0.025150489062070847, 0.07371699810028076, 0.12359568476676941, 0.10709711909294128, -0.07595377415418625, 0.08472880721092224, -0.5521531701087952, -0.19221259653568268, -0.455687940120697, 0.15004988014698029, -0.15762916207313538, 0.2821788489818573, -0.41593649983406067, 0.10922583192586899, 0.19781702756881714, -0.36712878942489624, -0.43779629468917847, 0.23581764101982117, -0.4916028082370758, 0.17052169144153595, -0.2786625325679779, -0.2343960851430893, 0.0766676515340805, 0.129951611161232, -0.04435862600803375, 0.36435699462890625, 0.15967249870300293, 0.2864903211593628, 0.11584979295730591, 0.017186392098665237, 0.03435389697551727, -0.14428195357322693, -0.10386717319488525, -0.05385685712099075, -0.18870219588279724, 0.10136641561985016, -0.15243884921073914, -0.06841564178466797, 0.35935211181640625, 0.011128202080726624, -0.12679529190063477, -0.12154419720172882, -0.2205566167831421, -0.04645206034183502, -0.2410157322883606, -0.19831626117229462, 0.20104429125785828, 0.019879169762134552, -0.16198936104774475, 0.3357592225074768, -0.5038567185401917, -0.09638078510761261, -0.1955467313528061, 0.35080698132514954, -0.10173016041517258, -0.06845945119857788, 0.14211371541023254, 0.3849521577358246, -0.06993548572063446, -0.2908680737018585, 0.08300279825925827, -0.24831196665763855, -0.44659218192100525, 0.13228406012058258, 0.12827445566654205, 0.14182354509830475, 0.2708899974822998, 0.22019439935684204, 0.09567031264305115, 0.26671087741851807, 0.10786157846450806, -0.3705798387527466, -0.2429577261209488, 0.11829808354377747, -0.017776139080524445, 0.4475416839122772, 0.3403620719909668, 0.0624828077852726, -0.4483817219734192, -0.08340250700712204, -0.310727596282959, -0.004445559345185757, -0.1176321879029274, 0.16173318028450012, 0.160634845495224, 0.10119716078042984, 0.32020309567451477, -0.050334688276052475, 0.12581822276115417, 0.3625839948654175, -0.05275727063417435, -0.22991102933883667, -0.11356312036514282, 0.10943914949893951, 0.10926930606365204, -0.029458491131663322, 0.03628174588084221, -0.14041343331336975, 0.012845916673541069, -0.001187148503959179, 0.5192658305168152, 0.011632312089204788, -0.2208683043718338, -0.04897821322083473, -0.015881460160017014, 0.11086231470108032, -0.3705090880393982, -0.012260545045137405, -0.08814539015293121, 0.3711857795715332, -0.023255037143826485, 0.19723908603191376, 0.10115816444158554, -0.02517043799161911, -0.10961470007896423, -0.21186485886573792, -0.13427193462848663, 0.3832454979419708, 0.23363611102104187, -0.18219643831253052, -0.28589698672294617, -0.19004486501216888, 0.27601125836372375, 0.08277087658643723, -0.16194571554660797, -0.18179185688495636, -0.03223758190870285, 0.2471684217453003, 0.026291031390428543, 0.010410495102405548, 0.010651360265910625, 0.07580764591693878, -0.05781639739871025, 0.17214296758174896, -0.0017860904335975647, -0.30146080255508423, 0.07881519943475723, 0.16293728351593018, 0.2977229952812195, -0.3423798680305481, 0.16950787603855133, 0.20308297872543335, -0.0045480020344257355, 0.2176290601491928, -0.011212067678570747, -0.08610382676124573, 0.37057095766067505, 0.3347163200378418, -0.09352674335241318, 0.18039704859256744, 0.5542808175086975, 0.22802798449993134, 0.004438996315002441, -0.32721295952796936, -0.31213483214378357, 0.0020642131567001343, -0.15040329098701477, 0.2985713481903076, 0.24422864615917206, -0.2355152666568756, 0.02740003913640976, 0.04785701632499695, -0.13857445120811462, 0.19694633781909943, -0.37571361660957336, 0.09870867431163788, -0.21697281301021576, 0.015378512442111969, 0.20935913920402527, -0.015474988147616386, 0.03976534307003021, 0.26049429178237915, 0.3840857446193695, 0.1910809725522995, -0.04430072009563446, -0.19863514602184296, 0.08266930282115936, 0.4259956479072571, 0.09485208988189697, -0.15994799137115479, 0.02785612642765045, 0.3130697011947632, -0.0588529109954834, -0.542739987373352, 0.21786662936210632, 0.7451121807098389, 0.10396436601877213, 0.08689302206039429, 0.10881169140338898, 0.31035012006759644, 0.06208721548318863, 0.15801440179347992, 0.1437811255455017, 0.08894875645637512, 0.323356032371521, 0.13288192451000214, 0.1681492179632187, -0.1935267299413681, 0.11397036910057068, 0.39574408531188965, 0.07239986211061478, -0.07901117205619812, -0.13533735275268555, -0.22990980744361877, -0.11705797910690308, -0.1995335817337036, 0.4097711145877838, -0.3991480767726898, 0.044870857149362564, 0.4364226758480072, -0.009236390702426434, 0.017282821238040924, -0.12890437245368958, 0.11213472485542297, -0.11985494196414948, 0.31671831011772156, 0.2519613206386566, 0.21664097905158997, -0.5237104296684265, -0.2251923680305481, -0.08223080635070801, 0.22773800790309906, 0.007871869951486588, 0.23798608779907227, -0.13443586230278015, -0.030644871294498444, -0.3274168074131012, 0.01198948360979557, 0.4081963896751404, -0.2636772096157074, 0.10371905565261841, 0.8000922203063965, -0.20391987264156342, -0.11793048679828644, -0.24040959775447845, -0.521763265132904, 0.11960908770561218, -0.40419161319732666, -0.11249907314777374, -0.22012926638126373, -0.0020235739648342133, -0.32746559381484985, -0.15890184044837952, 0.12592175602912903, -0.30317866802215576, 0.582341730594635, 0.05823715776205063, 0.18912270665168762, -0.3425593376159668, -0.06860169023275375, -0.15455764532089233, -0.3359103798866272, 0.23393245041370392, 0.12763428688049316, 0.016424840316176414, 0.45482081174850464, -0.04785972088575363, -0.016669638454914093, -0.17883051931858063, -0.12736591696739197, -0.21516358852386475, -0.25120285153388977, -0.06933757662773132, 0.0978701040148735, -0.3579394221305847, 0.06006503477692604, -0.11475223302841187, 0.3773990571498871, 0.17176808416843414, 0.2949175238609314, -0.4596537947654724, -0.34625256061553955, 0.33222442865371704, -0.1897657811641693, -0.24082987010478973, -0.05460122972726822, 0.42344141006469727, 0.09959378838539124, 0.0023037586361169815, -0.4499931335449219, 0.15330910682678223, 0.10672444105148315, -0.012763239443302155, -0.22984923422336578, 0.1644148975610733, 0.1459892988204956, 0.028830405324697495, 0.10711146891117096, 0.10574405640363693, 0.09940026700496674, -0.06874594837427139, 0.2398555874824524, -0.41023188829421997 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Potentially related AWS issue: https://github.com/aws/aws-sdk-cpp/issues/1809 Ran into this issue today while training a BPE tokenizer on a dataset. Train code: ```python """Train a ByteLevelBPETokenizer based on a given dataset. The dataset must be on the HF Hub. This script is adaptated from the Transformers example in https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling """ from os import PathLike from pathlib import Path from typing import Sequence, Union from datasets import load_dataset from tokenizers import ByteLevelBPETokenizer def train_tokenizer(dataset_name: str = "oscar", dataset_config_name: str = "unshuffled_deduplicated_nl", dataset_split: str = "train", dataset_textcol: str = "text", vocab_size: int = 50265, min_frequency: int = 2, special_tokens: Sequence[str] = ("<s>", "<pad>", "</s>", "<unk>", "<mask>"), dout: Union[str, PathLike] = "."): # load dataset dataset = load_dataset(dataset_name, dataset_config_name, split=dataset_split) # Instantiate tokenizer tokenizer = ByteLevelBPETokenizer() def batch_iterator(batch_size=1024): for i in range(0, len(dataset), batch_size): yield dataset[i: i + batch_size][dataset_textcol] # Customized training tokenizer.train_from_iterator(batch_iterator(), vocab_size=vocab_size, min_frequency=min_frequency, special_tokens=special_tokens) # Save to disk pdout = Path(dout).resolve() pdout.mkdir(exist_ok=True, parents=True) tokenizer.save_model(str(pdout)) def main(): import argparse cparser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter) cparser.add_argument("dataset_name", help="Name of dataset to use for tokenizer training") cparser.add_argument("--dataset_config_name", default=None, help="Name of the config to use for tokenizer training") cparser.add_argument("--dataset_split", default=None, help="Name of the split to use for tokenizer training (typically 'train')") cparser.add_argument("--dataset_textcol", default="text", help="Name of the text column to use for tokenizer training") cparser.add_argument("--vocab_size", type=int, default=50265, help="Vocabulary size") cparser.add_argument("--min_frequency", type=int, default=2, help="Minimal frequency of tokens") cparser.add_argument("--special_tokens", nargs="+", default=["<s>", "<pad>", "</s>", "<unk>", "<mask>"], help="Special tokens to add. Useful for specific training objectives. Note that if you wish" " to use this tokenizer with a default transformers.BartConfig, then make sure that the" " order of at least these special tokens are correct: BOS (0), padding (1), EOS (2)") cparser.add_argument("--dout", default=".", help="Path to directory to save tokenizer.json file") train_tokenizer(**vars(cparser.parse_args())) if __name__ == "__main__": main() ``` Command: ```sh $WDIR="your_tokenizer" python prepare_tokenizer.py dbrd --dataset_config_name plain_text --dataset_split unsupervised --dout $WDIR ``` Output: ``` Reusing dataset dbrd (cache/datasets/dbrd/plain_text/3.0.0/2b12e31348489dfe586c2d0f40694e5d9f9454c9468457ac9f1b51abf686eeb3) [00:00:30] Pre-processing sequences ████████ 0 / 0 [00:00:00] Tokenize words ████████ 333319 / 333319 [00:01:06] Count pairs ████████ 333319 / 333319 [00:00:03] Compute merges ████████ 50004 / 50004 Fatal error condition occurred in /opt/vcpkg/buildtrees/aws-c-io/src/9e6648842a-364b708815.clean/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ################################################################################ Stack trace: ################################################################################ venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x200af06) [0x155106589f06] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x20028e5) [0x1551065818e5] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x1f27e09) [0x1551064a6e09] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x200ba3d) [0x15510658aa3d] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x1f25948) [0x1551064a4948] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x200ba3d) [0x15510658aa3d] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x1ee0b46) [0x15510645fb46] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x194546a) [0x155105ec446a] /lib64/libc.so.6(+0x39b0c) [0x1551075b8b0c] /lib64/libc.so.6(on_exit+0) [0x1551075b8c40] /lib64/libc.so.6(__libc_start_main+0xfa) [0x1551075a249a] python(_start+0x2e) [0x4006ce] Aborted (core dumped) ``` Running on datasets==2.4.0 and pyarrow==9.0.0 on RHEL 8.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
384
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 Potentially related AWS issue: https://github.com/aws/aws-sdk-cpp/issues/1809 Ran into this issue today while training a BPE tokenizer on a dataset. Train code: ```python """Train a ByteLevelBPETokenizer based on a given dataset. The dataset must be on the HF Hub. This script is adaptated from the Transformers example in https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling """ from os import PathLike from pathlib import Path from typing import Sequence, Union from datasets import load_dataset from tokenizers import ByteLevelBPETokenizer def train_tokenizer(dataset_name: str = "oscar", dataset_config_name: str = "unshuffled_deduplicated_nl", dataset_split: str = "train", dataset_textcol: str = "text", vocab_size: int = 50265, min_frequency: int = 2, special_tokens: Sequence[str] = ("<s>", "<pad>", "</s>", "<unk>", "<mask>"), dout: Union[str, PathLike] = "."): # load dataset dataset = load_dataset(dataset_name, dataset_config_name, split=dataset_split) # Instantiate tokenizer tokenizer = ByteLevelBPETokenizer() def batch_iterator(batch_size=1024): for i in range(0, len(dataset), batch_size): yield dataset[i: i + batch_size][dataset_textcol] # Customized training tokenizer.train_from_iterator(batch_iterator(), vocab_size=vocab_size, min_frequency=min_frequency, special_tokens=special_tokens) # Save to disk pdout = Path(dout).resolve() pdout.mkdir(exist_ok=True, parents=True) tokenizer.save_model(str(pdout)) def main(): import argparse cparser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter) cparser.add_argument("dataset_name", help="Name of dataset to use for tokenizer training") cparser.add_argument("--dataset_config_name", default=None, help="Name of the config to use for tokenizer training") cparser.add_argument("--dataset_split", default=None, help="Name of the split to use for tokenizer training (typically 'train')") cparser.add_argument("--dataset_textcol", default="text", help="Name of the text column to use for tokenizer training") cparser.add_argument("--vocab_size", type=int, default=50265, help="Vocabulary size") cparser.add_argument("--min_frequency", type=int, default=2, help="Minimal frequency of tokens") cparser.add_argument("--special_tokens", nargs="+", default=["<s>", "<pad>", "</s>", "<unk>", "<mask>"], help="Special tokens to add. Useful for specific training objectives. Note that if you wish" " to use this tokenizer with a default transformers.BartConfig, then make sure that the" " order of at least these special tokens are correct: BOS (0), padding (1), EOS (2)") cparser.add_argument("--dout", default=".", help="Path to directory to save tokenizer.json file") train_tokenizer(**vars(cparser.parse_args())) if __name__ == "__main__": main() ``` Command: ```sh $WDIR="your_tokenizer" python prepare_tokenizer.py dbrd --dataset_config_name plain_text --dataset_split unsupervised --dout $WDIR ``` Output: ``` Reusing dataset dbrd (cache/datasets/dbrd/plain_text/3.0.0/2b12e31348489dfe586c2d0f40694e5d9f9454c9468457ac9f1b51abf686eeb3) [00:00:30] Pre-processing sequences ████████ 0 / 0 [00:00:00] Tokenize words ████████ 333319 / 333319 [00:01:06] Count pairs ████████ 333319 / 333319 [00:00:03] Compute merges ████████ 50004 / 50004 Fatal error condition occurred in /opt/vcpkg/buildtrees/aws-c-io/src/9e6648842a-364b708815.clean/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ################################################################################ Stack trace: ################################################################################ venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x200af06) [0x155106589f06] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x20028e5) [0x1551065818e5] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x1f27e09) [0x1551064a6e09] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x200ba3d) [0x15510658aa3d] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x1f25948) [0x1551064a4948] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x200ba3d) [0x15510658aa3d] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x1ee0b46) [0x15510645fb46] venv/lib/python3.9/site-packages/pyarrow/libarrow.so.900(+0x194546a) [0x155105ec446a] /lib64/libc.so.6(+0x39b0c) [0x1551075b8b0c] /lib64/libc.so.6(on_exit+0) [0x1551075b8c40] /lib64/libc.so.6(__libc_start_main+0xfa) [0x1551075a249a] python(_start+0x2e) [0x4006ce] Aborted (core dumped) ``` Running on datasets==2.4.0 and pyarrow==9.0.0 on RHEL 8.
[ -0.3610311448574066, -0.21548619866371155, -0.055434808135032654, 0.09325223416090012, 0.20296059548854828, -0.13803182542324066, 0.2029220312833786, 0.22175252437591553, -0.08248165249824524, 0.24296873807907104, 0.16619031131267548, 0.42358332872390747, -0.12692195177078247, 0.10170023888349533, -0.17181210219860077, -0.2426852285861969, 0.09572235494852066, 0.3544943630695343, -0.16558945178985596, 0.1433786302804947, -0.2595706582069397, 0.46143513917922974, -0.27943652868270874, 0.2517147362232208, -0.47528380155563354, -0.08884003758430481, -0.031995244324207306, 0.16122964024543762, 0.0162388626486063, -0.33055150508880615, 0.3332556486129761, -0.2521277368068695, 0.14732009172439575, 0.2572476863861084, -0.00011106924648629501, -0.07341714948415756, 0.2608978748321533, 0.0839318186044693, -0.23836812376976013, -0.2018803507089615, -0.14347335696220398, 0.10639254748821259, -0.03535553812980652, -0.33763056993484497, 0.2786291539669037, 0.11346347630023956, 0.011599516496062279, -0.09345759451389313, 0.2595682740211487, 0.37826091051101685, 0.18998871743679047, 0.7746562957763672, 0.09443408250808716, 0.04146799072623253, 0.15176278352737427, -0.2148473709821701, -0.3078446388244629, 0.018530024215579033, 0.2007492482662201, -0.2059759795665741, 0.0009797066450119019, -0.0031716306693851948, -0.08173847198486328, 0.01637350022792816, 0.08322642743587494, -0.22433556616306305, 0.12810051441192627, -0.22966647148132324, 0.22366634011268616, -0.0751074030995369, 0.1131177693605423, -0.4510766267776489, -0.19727686047554016, 0.14690685272216797, -0.09933611005544662, -0.3253534138202667, 0.45719921588897705, 0.1226816475391388, 0.008532285690307617, 0.12918226420879364, 0.07710245251655579, 0.3092508912086487, -0.261885404586792, 0.17403544485569, -0.052037034183740616, 0.44425344467163086, -0.08289281278848648, 0.09017875790596008, -0.12900879979133606, 0.07538144290447235, 0.06550168246030807, -0.1901051253080368, -0.028439108282327652, 0.19808679819107056, -0.6287851929664612, -0.20769353210926056, -0.06552920490503311, -0.04509828984737396, 0.018063776195049286, 0.1085868775844574, -0.09412027150392532, -0.05471142381429672, 0.13138605654239655, 0.321462482213974, -0.0030419956892728806, 0.06807784736156464, 0.00939207524061203, 0.2573331296443939, 0.17525529861450195, 0.11636201292276382, -0.03084888495504856, -0.038125649094581604, -0.03904920071363449, -0.20245318114757538, 0.13267293572425842, 0.2348807156085968, 0.21506595611572266, -0.14496490359306335, -0.35233041644096375, 0.5745012164115906, -0.4709857404232025, 0.2725469470024109, 0.050917547196149826, 0.3188896179199219, 0.09353302419185638, 0.008085265755653381, 0.1255904585123062, 0.008415799587965012, -0.42953309416770935, 0.21317550539970398, -0.1924453228712082, 0.11396129429340363, -0.2176668643951416, -0.07628099620342255, 0.04940439388155937, -0.07827547192573547, 0.275359570980072, 0.21442893147468567, 0.15125566720962524, -0.3293050229549408, 0.17521819472312927, -0.14045587182044983, -0.3179204761981964, 0.31823837757110596, 0.022774189710617065, 0.13139021396636963, -0.11654576659202576, 0.190299391746521, 0.11212936788797379, 0.2579788863658905, -0.12155380100011826, -0.2536773979663849, -0.2556942403316498, 0.2195778340101242, -0.08729029446840286, 0.15152114629745483, -0.2569151520729065, -0.1474248170852661, 0.2728118598461151, -0.11069050431251526, 0.19968998432159424, -0.32825613021850586, -0.06116132810711861, 0.011522866785526276, 0.014784565195441246, 0.002196893095970154, 0.0694686770439148, -0.1940501481294632, 0.05870414897799492, -0.011121992021799088, 0.3776000440120697, 0.36891618371009827, -0.19996440410614014, 0.1449497938156128, -0.3629092872142792, 0.37495607137680054, -0.037096865475177765, 0.05845259502530098, -0.33489274978637695, 0.32299089431762695, -0.1901213824748993, -0.0829109475016594, -0.13097506761550903, -0.21850252151489258, 0.09854641556739807, -0.20606093108654022, -0.09806562960147858, -0.18198111653327942, 0.08727313578128815, 0.1703828126192093, -0.34889671206474304, -0.44392555952072144, -0.07000720500946045, 0.030085500329732895, 0.4488614499568939, -0.05663537234067917, 0.06188681349158287, 0.29660698771476746, 0.20764154195785522, -0.29305070638656616, 0.1164284273982048, 0.23624660074710846, 0.194850355386734, -0.19804535806179047, 0.0694473534822464, -0.22800156474113464, -0.30636805295944214, 0.21023589372634888, 0.06141210347414017, 0.31779634952545166, -0.1469489187002182, 0.029942378401756287, -0.12859727442264557, 0.27471423149108887, -0.07527543604373932, -0.1318870633840561, 0.11589425802230835, -0.0006426721811294556, -0.1652355194091797, -0.10090626776218414, -0.23090265691280365, 0.11545458436012268, -0.5456066131591797, 0.12322825938463211, -0.146086186170578, 0.27006995677948, -0.17605800926685333, -0.2254416048526764, 0.005693569779396057, -0.0019853636622428894, 0.29086992144584656, 0.02677386999130249, -0.4094478487968445, 0.1274002194404602, -0.19683898985385895, 0.32054805755615234, -0.2147144079208374, 0.45393478870391846, 0.04609796404838562, -0.3119249939918518, -0.04185441881418228, -0.005983242765069008, 0.1580485850572586, 0.024984166026115417, 0.48623892664909363, 0.2962130904197693, -0.04035959020256996, 0.2302393615245819, -0.08984377980232239, -0.12442679703235626, 0.15214450657367706, -0.2116542011499405, 0.04128143936395645, 0.11277598142623901, 0.3895895481109619, 0.2375156432390213, 0.2543056309223175, -0.045860692858695984, -0.2868282198905945, -0.19919443130493164, 0.34366750717163086, -0.05917075276374817, 0.10010320693254471, 0.14167198538780212, -0.00865849107503891, -0.05789097398519516, 0.3133639991283417, -0.05674576759338379, 0.5551030039787292, -0.009991800412535667, -0.18407008051872253, 0.1708405315876007, -0.17452429234981537, -0.309630811214447, 0.4330670237541199, 0.30110859870910645, 0.07359877973794937, 0.4273228645324707, 0.13160602748394012, 0.09756457805633545, -0.43115490674972534, -0.5753446221351624, 0.0983978882431984, 0.17476962506771088, -0.3336746394634247, 0.39285942912101746, -0.11041796952486038, 0.2419462502002716, -0.04960844665765762, 0.05169430375099182, 0.03825856372714043, -0.048053108155727386, 0.0013930108398199081, 0.3131159245967865, -0.18684342503547668, 0.3970167636871338, -0.07944832742214203, 0.056854233145713806, 0.09441341459751129, 0.12089952081441879, -0.42216756939888, -0.07604426890611649, -0.3437366187572479, 0.04667482152581215, 0.2263110876083374, -0.17304450273513794, 0.1839190274477005, 0.06867432594299316, -0.22141318023204803, -0.22672855854034424, -0.18784019351005554, 0.14864575862884521, -0.039868950843811035, 0.22362050414085388, 0.22284933924674988, 0.0038183555006980896, -0.34806084632873535, -0.5703485608100891, 0.06457550078630447, -0.30385518074035645, 0.045041464269161224, 0.11625896394252777, -0.21427176892757416, -0.17360936105251312, -0.22614805400371552, -0.24456873536109924, 0.008885285817086697, -0.2841835021972656, -0.05135015398263931, -0.3614063560962677, 0.21231436729431152, -0.06994111090898514, 0.05544297769665718, 0.13357360661029816, 0.2816318869590759, -0.31546512246131897, -0.24869243800640106, -0.2938055694103241, 0.1004316657781601, 0.004672104958444834, -0.1697307527065277, 0.04434515908360481, -0.05542927235364914, 0.6279026865959167, 0.06928937137126923, -0.30898118019104004, 0.2562297582626343, -0.1321941763162613, 0.14678487181663513, -0.3600257635116577, -0.010860705748200417, 0.13904765248298645, -0.03202060982584953, -0.029177388176321983, -0.1095554456114769, 0.16381505131721497, -0.02951536327600479, 0.09009966999292374, 0.329446405172348, -0.07347871363162994, 0.35190537571907043, 0.3018873631954193, 0.6229639649391174, 0.03772105649113655, -0.2865786552429199, 0.40159425139427185, 0.07300809025764465, -0.16137300431728363, -0.11520262807607651, -0.07856011390686035, 0.18343906104564667, -0.055002838373184204, -0.3951854705810547, 0.17157471179962158, -0.21171224117279053, -0.26056087017059326, 0.09768202900886536, -0.04021789878606796, -0.11842546612024307, -0.29555028676986694, 0.1396855264902115, -0.04073501378297806, 0.37903720140457153, -0.07106053829193115, 0.016655176877975464, 0.12441425025463104, 0.03011365979909897, 0.16425089538097382, 0.38643622398376465, -0.2643842399120331, -0.2008376270532608, 0.08753688633441925, -0.10111240297555923, -0.5678774118423462, 0.16638344526290894, 0.06106303632259369, 0.595855176448822, -0.05136261135339737, 0.20318469405174255, 0.16105753183364868, -0.26021304726600647, 0.3331540524959564, -0.09553612023591995, 0.2597907781600952, 0.11091551184654236, 0.16351187229156494, 0.02544226683676243, -0.18309572339057922, -0.3474558889865875, 0.24225418269634247, 0.2235400229692459, 0.09095264226198196, -0.21929281949996948, -0.01176315639168024, -0.0404340922832489, -0.24619647860527039, 0.15312007069587708, -0.27605926990509033, -0.139105424284935, -0.22729897499084473, -0.4573316276073456, 0.5360004901885986, 0.17624087631702423, 0.10759396106004715, -0.2280532717704773, -0.303833931684494, -0.008881323039531708, -0.14541831612586975, 0.01352672278881073, -0.0008017485961318016, -0.29977327585220337, -0.2551702857017517, 0.2646739184856415, -0.2355661392211914, -0.4064967632293701, 0.40387988090515137, 0.01160493865609169, 0.34431928396224976, -0.14851951599121094, 0.2588576674461365, 0.26900824904441833, 0.13784250617027283, 0.33883291482925415, -0.2496250867843628, 0.2297564446926117, 0.24180877208709717, 0.352003812789917, -0.06933967769145966, 0.3401488959789276, 0.19034838676452637, 0.25540393590927124, -0.22735409438610077, 0.005551286041736603, 0.24145543575286865, -0.09921394288539886, -0.01899593323469162, 0.3480885922908783, -0.02478385716676712, -0.2697920501232147, 0.5982280969619751, 0.06606094539165497, 0.7941620349884033, 0.1621490716934204, -0.04364987835288048, 0.22984135150909424, -0.24435609579086304, 0.3382565975189209, -0.26038816571235657, 0.143734872341156, -0.3819408714771271, 0.14856739342212677, -0.06026719510555267, 0.010271932929754257, 0.38781577348709106, 0.04200591519474983, 0.04223989322781563, 0.06794355064630508, 0.31631994247436523, 0.2557276487350464, -0.08489694446325302, 0.11772724986076355, -0.5105615258216858, -0.42357203364372253, -0.49657517671585083, 0.16877031326293945, -0.19763334095478058, 0.2283334881067276, -0.24978455901145935, 0.09272629767656326, 0.08685661852359772, -0.4548746943473816, -0.35497957468032837, 0.27197080850601196, -0.4931097626686096, 0.2679457664489746, -0.18856169283390045, -0.028340782970190048, 0.33731934428215027, -0.21863701939582825, 0.052584581077098846, 0.29407721757888794, -0.026396511122584343, 0.4027761220932007, 0.020447194576263428, 0.001512171234935522, -0.01724732480943203, -0.20697633922100067, 0.022426366806030273, 0.02659418433904648, -0.1652662754058838, 0.0021129101514816284, -0.12245417386293411, -0.09542037546634674, 0.3667598366737366, -0.047199808061122894, 0.07483227550983429, 0.03792104497551918, -0.08745746314525604, -0.08517390489578247, -0.24170902371406555, -0.3142147660255432, 0.20288801193237305, 0.011477917432785034, -0.27424857020378113, 0.257704496383667, -0.23552913963794708, -0.044786836951971054, -0.052412811666727066, 0.4039348065853119, -0.07255245745182037, -0.1404869556427002, 0.3411906063556671, 0.2716415822505951, -0.05676419287919998, -0.249909907579422, 0.12549686431884766, -0.0870857760310173, -0.43793588876724243, 0.08973928540945053, -0.046047378331422806, -0.09437986463308334, 0.1485414057970047, 0.46514931321144104, 0.07514287531375885, 0.07830628752708435, 0.04011126235127449, -0.24570247530937195, -0.42508983612060547, 0.009406037628650665, -0.16029958426952362, 0.41405734419822693, 0.23089072108268738, 0.40389469265937805, -0.4505125880241394, -0.06141556799411774, -0.2815716862678528, 0.06705530732870102, -0.43080171942710876, 0.21441029012203217, -0.09751784801483154, -0.22655436396598816, 0.3320857584476471, -0.06913697719573975, 0.09975163638591766, 0.5003981590270996, -0.25092968344688416, -0.1919587254524231, -0.420077919960022, 0.13019710779190063, 0.3542881906032562, -0.028093209490180016, -0.15710678696632385, 0.03879553824663162, -0.06401163339614868, -0.07819951325654984, 0.4503837525844574, 0.12862324714660645, -0.16539230942726135, 0.045297037810087204, 0.1948820799589157, 0.09103330969810486, -0.27202486991882324, -0.11758773028850555, 0.14715754985809326, 0.21251457929611206, 0.02208068035542965, 0.1444961428642273, 0.016818968579173088, 0.03679067641496658, -0.008617627434432507, 0.01981962099671364, -0.06693966686725616, 0.29965078830718994, 0.13070085644721985, -0.1580069363117218, -0.2987205684185028, -0.03550862893462181, 0.20433564484119415, 0.19181294739246368, -0.1942186802625656, -0.5059405565261841, 0.11497031152248383, 0.23812828958034515, 0.025747250765562057, -0.15451917052268982, 0.007846804335713387, -0.1179434284567833, -0.09258203953504562, 0.0072454288601875305, 0.17361271381378174, -0.2038854956626892, -0.11756770312786102, 0.11993346363306046, 0.33344554901123047, -0.5553431510925293, 0.11556792259216309, 0.1481420397758484, -0.04915923625230789, 0.37444359064102173, 0.05980588495731354, -0.20787416398525238, 0.4333858788013458, 0.5538257360458374, -0.17254683375358582, 0.1320689469575882, 0.4282784163951874, 0.3908390402793884, 0.016334109008312225, -0.34432926774024963, -0.5148849487304688, -0.14471784234046936, -0.04174602031707764, 0.2929762005805969, 0.1606009155511856, 0.017451241612434387, -0.0036651156842708588, -0.009222362190485, -0.18670029938220978, 0.1103077381849289, -0.4716189503669739, -0.10840941965579987, -0.1735646277666092, 0.024208784103393555, -0.0760999545454979, -0.0013267360627651215, -0.03024846687912941, 0.2916972041130066, 0.26208311319351196, 0.255804181098938, -0.002560153603553772, -0.21255016326904297, -0.18584918975830078, 0.4801141619682312, 0.120029978454113, -0.20343749225139618, 0.11572133749723434, 0.21717366576194763, -0.13927620649337769, -0.513892412185669, 0.02104019746184349, 0.6253136992454529, -0.007426012307405472, 0.0003644060343503952, 0.023338839411735535, 0.1361847221851349, 0.1593368500471115, 0.16091784834861755, 0.2410079687833786, 0.23202353715896606, 0.4500923454761505, 0.028956115245819092, 0.06965125352144241, -0.18583886325359344, -0.015652306377887726, 0.37665867805480957, 0.11982385814189911, -0.06371092051267624, 0.14953827857971191, -0.056667834520339966, 0.0037965625524520874, -0.1680639237165451, 0.3267836570739746, -0.39277589321136475, 0.04905329644680023, 0.27386438846588135, -0.052517350763082504, 0.14370715618133545, 0.0555223673582077, 0.10804611444473267, -0.1832321435213089, 0.4094899594783783, 0.3076365888118744, -0.0011085905134677887, -0.5480519533157349, -0.08321867883205414, -0.1912343055009842, 0.24116972088813782, 0.09507983922958374, 0.4020651876926422, -0.05123361200094223, -0.06334634870290756, -0.2499723732471466, -0.06108327955007553, 0.10509654879570007, 0.09785868227481842, 0.15107549726963043, 0.5914890766143799, -0.24885015189647675, 0.06630775332450867, -0.012046821415424347, -0.42866048216819763, 0.07012774795293808, -0.3607065975666046, 0.03981693834066391, 0.06484325975179672, -0.032582804560661316, -0.277810275554657, -0.26742780208587646, 0.0723213404417038, -0.27428945899009705, 0.6182480454444885, 0.11873645335435867, 0.28381097316741943, -0.39755985140800476, 0.08425205945968628, -0.07541918754577637, -0.32022807002067566, 0.13666246831417084, -0.03711406886577606, -0.08336135745048523, 0.5965815782546997, 0.047040119767189026, 0.06057647988200188, -0.25090762972831726, -0.18557585775852203, -0.14027947187423706, -0.30416926741600037, -0.24713504314422607, 0.2953701913356781, -0.4168478548526764, 0.21042673289775848, -0.2551129460334778, 0.5249083042144775, 0.3013315796852112, 0.23831363022327423, -0.47820818424224854, -0.41670864820480347, 0.4421910345554352, -0.2882205545902252, -0.3750323951244354, -0.04863410070538521, 0.32721802592277527, 0.3662452697753906, -0.12687687575817108, -0.5139716267585754, -0.03946235030889511, 0.09905551373958588, -0.08946039527654648, -0.34666603803634644, 0.12221738696098328, 0.1723041832447052, 0.07284392416477203, -0.07526789605617523, 0.3894248306751251, 0.06849025189876556, -0.20866961777210236, 0.34302082657814026, -0.4513740539550781 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
There is also a discussion here https://issues.apache.org/jira/browse/ARROW-15141 where it is suggested for conda users to use an older version of aws-sdk-cpp: `aws-sdk-cpp=1.8.186`
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
22
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 There is also a discussion here https://issues.apache.org/jira/browse/ARROW-15141 where it is suggested for conda users to use an older version of aws-sdk-cpp: `aws-sdk-cpp=1.8.186`
[ -0.5172092914581299, -0.01593608409166336, -0.1825520396232605, 0.07571372389793396, -0.03214118629693985, -0.12084822356700897, 0.14777755737304688, 0.3093656599521637, -0.2653689980506897, 0.1876027137041092, -0.013480475172400475, 0.6191987991333008, 0.10232728719711304, 0.20539730787277222, -0.25490230321884155, -0.07771599292755127, 0.1546308696269989, 0.2742926776409149, -0.515223503112793, 0.07475721836090088, -0.3579673767089844, 0.3237440586090088, -0.28268107771873474, 0.03913020342588425, -0.2991487979888916, -0.3186725676059723, 0.0024997275322675705, 0.12453693151473999, -0.08589804917573929, -0.240146204829216, 0.35990989208221436, -0.25825345516204834, 0.26710137724876404, 0.37293851375579834, -0.00011157576955156401, -0.038436051458120346, 0.44611668586730957, 0.09535834193229675, -0.33782148361206055, -0.02807760238647461, -0.2740768790245056, 0.05404621362686157, 0.1496240347623825, -0.3242168128490448, 0.36116641759872437, 0.03551148995757103, -0.22571022808551788, -0.26128441095352173, 0.2963619530200958, 0.3977787494659424, 0.23468145728111267, 0.5654504299163818, 0.30087512731552124, -0.013621131889522076, -0.0483219251036644, -0.16348539292812347, -0.3085334300994873, 0.2563871145248413, 0.057624101638793945, -0.2818933427333832, 0.2518389821052551, 0.1751347780227661, -0.11045140773057938, 0.04530049487948418, -0.12656599283218384, -0.12364902347326279, -0.06475027650594711, -0.25060197710990906, 0.23145350813865662, -0.052855297923088074, 0.5559368133544922, -0.45112571120262146, -0.25364992022514343, 0.2668086290359497, 0.01911119371652603, -0.3465440273284912, 0.25725436210632324, 0.03074442222714424, -0.18958333134651184, 0.24898868799209595, 0.11623785644769669, 0.18121136724948883, -0.2887890338897705, 0.18775421380996704, -0.12985940277576447, 0.3546026647090912, -0.10283203423023224, 0.14522644877433777, -0.009365763515233994, -0.0008474886417388916, 0.24197545647621155, 0.03661687299609184, -0.18695005774497986, 0.04620709642767906, -0.6109638810157776, -0.15776295959949493, -0.06116356700658798, -0.16888725757598877, 0.09900461882352829, 0.28899306058883667, -0.03586769104003906, -0.12379433959722519, 0.19965551793575287, 0.2508644461631775, -0.06807644665241241, 0.03994287922978401, 0.14205756783485413, 0.3186261057853699, 0.28237998485565186, -0.09493370354175568, 0.14821484684944153, -0.1486821174621582, -0.00804741121828556, -0.3417964577674866, 0.07624650001525879, -0.019061196595430374, 0.29610490798950195, -0.20943012833595276, -0.37844178080558777, 0.48287880420684814, -0.24991169571876526, 0.19859305024147034, -0.01136747281998396, 0.4341847598552704, 0.14478951692581177, -0.037863172590732574, 0.2380913645029068, 0.24266117811203003, -0.10251825302839279, 0.1768309772014618, -0.07507432997226715, -0.058282140642404556, -0.12847137451171875, -0.0883670300245285, 0.1082695722579956, -0.18735480308532715, 0.36131930351257324, 0.06454983353614807, 0.27936846017837524, -0.37931951880455017, 0.13031958043575287, -0.07228363305330276, -0.29469549655914307, 0.465658962726593, 0.08666267991065979, 0.07461097836494446, -0.012797899544239044, 0.17218807339668274, 0.08794698864221573, 0.26262056827545166, -0.16710269451141357, -0.3535376787185669, -0.5261427760124207, 0.22875025868415833, 0.11730629205703735, 0.09431242942810059, -0.06841907650232315, -0.33071720600128174, 0.2067202925682068, -0.07636676728725433, 0.17323599755764008, -0.09231893718242645, 0.150385320186615, -0.12035825848579407, 0.10684748739004135, 0.1663253903388977, -0.2283761203289032, 0.19805869460105896, -0.11267589777708054, -0.09798203408718109, 0.1647307574748993, 0.1811668872833252, -0.2284209430217743, -0.05990982800722122, -0.2586899995803833, -0.06214486062526703, 0.39563533663749695, -0.12739631533622742, -0.28692692518234253, 0.2728787064552307, 0.06940971314907074, -0.15320393443107605, -0.12315665930509567, -0.1932515799999237, 0.023611344397068024, -0.012854227796196938, -0.010471589863300323, -0.15369388461112976, 0.23829469084739685, -0.01720043644309044, -0.31119659543037415, -0.3563523292541504, -0.21891523897647858, 0.1451052725315094, 0.24046596884727478, 0.04706916958093643, 0.3538767099380493, -0.41947823762893677, 0.30281150341033936, -0.0007768571376800537, -0.03372783958911896, 0.29166918992996216, 0.20630940794944763, -0.37009161710739136, 0.012227160856127739, -0.04911615699529648, -0.5135198831558228, 0.14910846948623657, 0.20498161017894745, 0.07778438925743103, -0.17227418720722198, -0.04514576867222786, -0.19165322184562683, 0.4916232228279114, 0.08669213205575943, 0.013590743765234947, 0.16140708327293396, -0.17392754554748535, 0.17355138063430786, -0.0735609233379364, -0.2903786599636078, 0.3683353066444397, -0.5623568892478943, 0.15413494408130646, 0.05878689885139465, 0.19098550081253052, -0.1776348054409027, -0.24267613887786865, 0.19945578277111053, -0.12978112697601318, 0.29383641481399536, -0.04814611375331879, -0.3794715404510498, 0.2875259518623352, -0.16548140347003937, 0.3558042645454407, -0.12004803866147995, 0.032126814126968384, -0.0937735065817833, -0.19790735840797424, 0.04121960327029228, -0.08857978880405426, 0.15084901452064514, 0.06007906794548035, 0.3671410381793976, 0.24646000564098358, -0.02982160821557045, 0.18425053358078003, -0.09261994063854218, 0.1509426087141037, 0.18696260452270508, -0.098167285323143, 0.06528817117214203, -0.03807799890637398, 0.2880607843399048, 0.2837409973144531, 0.3772416412830353, -0.14652390778064728, -0.3772099018096924, -0.10010949522256851, 0.17558902502059937, -0.10581573843955994, 0.11257980763912201, 0.14859724044799805, -0.0831013098359108, 0.14058461785316467, 0.5137004852294922, 0.2303769737482071, 0.6391216516494751, 0.1044943705201149, -0.06280151009559631, 0.07622688263654709, -0.1757192313671112, -0.20911727845668793, 0.4819001257419586, 0.27578669786453247, 0.4876368045806885, 0.3435395359992981, 0.05398183688521385, -0.10915260016918182, -0.21489378809928894, -0.5158114433288574, -0.015317408367991447, 0.20874318480491638, -0.11600227653980255, 0.2083810418844223, -0.08497561514377594, 0.24373045563697815, -0.01573122665286064, -0.043100904673337936, 0.11784076690673828, -0.07217243313789368, -0.04681885987520218, 0.25037428736686707, -0.14110727608203888, 0.31045645475387573, -0.28588607907295227, -0.01746867597103119, 0.05200453847646713, -0.12995164096355438, -0.531376838684082, -0.1122569888830185, -0.22606122493743896, 0.08346123993396759, 0.31186792254447937, -0.1541074514389038, 0.2826361358165741, -0.02740272879600525, 0.02737414464354515, -0.14013834297657013, -0.14630694687366486, 0.03976716101169586, 0.0037215612828731537, 0.31447622179985046, 0.08264337480068207, 0.14795736968517303, -0.19132256507873535, -0.5577514171600342, 0.021457180380821228, -0.13288135826587677, 0.00542282871901989, -0.00690297968685627, -0.241738960146904, -0.13558652997016907, -0.2783585786819458, -0.33635878562927246, -0.12899577617645264, -0.48378682136535645, 0.11544524878263474, -0.07266999036073685, 0.2057230919599533, -0.1440444141626358, 0.5899496674537659, 0.12970368564128876, 0.3369978070259094, -0.06894797086715698, -0.17974349856376648, -0.34163591265678406, 0.17492802441120148, -0.17095327377319336, -0.2058064192533493, 0.1075964868068695, 0.18516525626182556, 0.6992206573486328, 0.08315033465623856, -0.36914312839508057, 0.21901871263980865, -0.025457823649048805, 0.28517863154411316, -0.3042832911014557, 0.010782096534967422, 0.1758502721786499, 0.07945212721824646, -0.06361957639455795, -0.07345028966665268, 0.042418140918016434, -0.049221791326999664, -0.15820589661598206, 0.2789619266986847, -0.02434587851166725, 0.4924629330635071, 0.03673301264643669, 0.5267522931098938, 0.27687788009643555, -0.3633072078227997, 0.25276198983192444, 0.13180969655513763, 0.08665180951356888, -0.2265816628932953, -0.04170679301023483, 0.145976260304451, -0.04746203124523163, -0.23236887156963348, -0.07963015139102936, -0.16705963015556335, -0.5492042899131775, -0.24846139550209045, -0.017083384096622467, -0.3793778121471405, -0.22970519959926605, -0.018990548327565193, -0.09101526439189911, 0.19102665781974792, -0.07941070199012756, 0.028780169785022736, 0.04145444184541702, 0.21152150630950928, 0.12363301217556, 0.3484644889831543, -0.3384072780609131, -0.2000720351934433, -0.036386508494615555, -0.05677312985062599, -0.5198143124580383, 0.4747841954231262, -0.20828156173229218, 0.3648434579372406, 0.13562814891338348, 0.08583427220582962, 0.0803789347410202, -0.30278143286705017, 0.4927125573158264, -0.12747642397880554, -0.0980241596698761, 0.04994765296578407, 0.37412214279174805, -0.17122770845890045, -0.11104185879230499, -0.17275607585906982, 0.17996607720851898, 0.2830599248409271, 0.04914394021034241, -0.11305932700634003, -0.1297379732131958, 0.08791615068912506, -0.24137358367443085, 0.13790972530841827, -0.2907904386520386, -0.22118601202964783, -0.2907103896141052, -0.41665735840797424, 0.34551846981048584, -0.08898517489433289, -0.03751831874251366, -0.2751934230327606, -0.5072263479232788, -0.28839001059532166, -0.10421272367238998, -0.06246951222419739, 0.2516399323940277, -0.038145337253808975, -0.3816980719566345, 0.2956509590148926, -0.1833648681640625, -0.18030408024787903, 0.6817653775215149, 0.08720216900110245, 0.20884011685848236, -0.05215534567832947, 0.13446667790412903, 0.09816665947437286, 0.32168686389923096, 0.04946146160364151, -0.24328121542930603, -0.02189280092716217, 0.01692933216691017, 0.1445227563381195, 0.1624555140733719, 0.03256780281662941, 0.21996577084064484, 0.3457126319408417, -0.24330706894397736, 0.14756810665130615, 0.41345080733299255, 0.0038260649889707565, -0.0827997475862503, 0.6904730200767517, -0.14590144157409668, -0.08387206494808197, 0.41783684492111206, 0.0817662850022316, 0.7376418709754944, 0.16694241762161255, -0.1661367565393448, 0.3496778607368469, -0.4041304588317871, 0.24682588875293732, -0.2243662178516388, -0.0450180359184742, -0.28250038623809814, 0.15543203055858612, 0.05765517055988312, -0.053423527628183365, 0.40210390090942383, 0.03409138321876526, 0.003292769193649292, -0.04849833622574806, -0.09088190644979477, -0.09479236602783203, -0.08546369522809982, -0.001969948410987854, -0.39959245920181274, -0.2931962013244629, -0.41022902727127075, 0.1765344887971878, -0.038016028702259064, 0.14279387891292572, -0.28685516119003296, 0.07771983742713928, 0.028935018926858902, -0.4253714084625244, -0.2581978142261505, 0.23809251189231873, -0.32782816886901855, 0.20806697010993958, -0.11239887773990631, -0.4619820713996887, 0.041926462203264236, 0.16130466759204865, -0.045650653541088104, 0.1714383065700531, -0.08345276117324829, 0.2762720584869385, 0.013723339885473251, -0.06654743105173111, -0.009545112028717995, -0.19478917121887207, -0.10912622511386871, -0.05571254715323448, -0.22269156575202942, 0.29103347659111023, -0.21470627188682556, -0.14562803506851196, 0.5108506083488464, 0.11905094981193542, -0.05203990638256073, 0.10328719019889832, -0.0917152613401413, 0.12559373676776886, -0.33358317613601685, -0.27652227878570557, 0.22228103876113892, -0.08046011626720428, -0.09005529433488846, 0.40010958909988403, -0.20272617042064667, -0.07203607261180878, -0.09275922179222107, 0.3033691346645355, 0.042818594723939896, 0.04727634787559509, 0.19116045534610748, 0.10833239555358887, -0.140006884932518, -0.3130585849285126, -0.009487118571996689, -0.4186432957649231, -0.3202579915523529, 0.016341688111424446, 0.14121507108211517, -0.02088131010532379, 0.15455825626850128, 0.09987080842256546, 0.06872813403606415, 0.21495321393013, 0.008274752646684647, -0.20137909054756165, -0.3949742019176483, 0.20955875515937805, -0.2842801809310913, 0.4385196268558502, 0.13212546706199646, 0.24197918176651, -0.353303462266922, -0.08618282526731491, -0.2905721068382263, 0.049557045102119446, -0.1981426626443863, -0.001311805099248886, 0.09392952919006348, 0.022537676617503166, 0.35920533537864685, -0.003244493156671524, 0.1177796870470047, 0.43599122762680054, -0.07912565767765045, -0.21037644147872925, -0.20492729544639587, 0.10487302392721176, 0.11647270619869232, -0.019552426412701607, 0.17423224449157715, -0.1629985272884369, -0.10612891614437103, 0.06732617318630219, 0.2563055753707886, -0.10649095475673676, -0.17953763902187347, -0.1448085606098175, 0.04813576489686966, 0.04561297968029976, -0.2654210329055786, 0.0772164911031723, -0.004018962383270264, 0.21147893369197845, -0.14046581089496613, 0.21199087798595428, -0.05815684422850609, -0.03890334814786911, 0.058292023837566376, -0.03822316974401474, -0.2897297143936157, 0.2198219895362854, 0.28012707829475403, -0.12765778601169586, -0.2552588880062103, -0.23141133785247803, 0.18727806210517883, 0.24436962604522705, -0.09738119691610336, -0.18384592235088348, 0.2486424744129181, 0.27408915758132935, -0.15898148715496063, -0.19985724985599518, -0.2090929001569748, 0.09264712780714035, -0.044907644391059875, 0.08552044630050659, -0.10561391711235046, -0.442555695772171, 0.17006544768810272, 0.04995708167552948, 0.06705883890390396, -0.49669313430786133, 0.1858050525188446, 0.2384852021932602, 0.15276487171649933, 0.21676547825336456, 0.2725280523300171, -0.0135384202003479, 0.4472197890281677, 0.3910280466079712, -0.44122493267059326, 0.07731514424085617, 0.430927574634552, 0.3167567551136017, -0.013903282582759857, -0.294406920671463, -0.22626791894435883, -0.12202632427215576, -0.1699410378932953, 0.29675590991973877, 0.17531989514827728, 0.01798389106988907, 0.11868184059858322, 0.05502082034945488, -0.3916065990924835, 0.005661278963088989, -0.2549271583557129, 0.0037737125530838966, -0.3071736991405487, -0.05091794580221176, 0.32185643911361694, 0.020337041467428207, 0.06906753778457642, 0.026196226477622986, 0.5571639537811279, 0.19126880168914795, 0.031731363385915756, -0.35906535387039185, 0.013060284778475761, 0.39044302701950073, 0.07175406068563461, -0.07530032098293304, 0.19189020991325378, 0.20806612074375153, -0.15613341331481934, -0.5538098216056824, 0.26171445846557617, 0.7144938111305237, 0.14191435277462006, 0.21609929203987122, 0.0071221510879695415, 0.22238394618034363, 0.019583208486437798, -0.0535249337553978, 0.21450993418693542, 0.33219850063323975, 0.10998299717903137, 0.11064982414245605, 0.18905781209468842, -0.19143226742744446, -0.019539278000593185, 0.2442476600408554, 0.20253603160381317, -0.24698013067245483, -0.22029495239257812, -0.13541153073310852, -0.1734389364719391, -0.13642312586307526, 0.19545787572860718, -0.3052727282047272, 0.18964754045009613, 0.4370214343070984, -0.09155534952878952, -0.042326584458351135, -0.0616300068795681, 0.09076010435819626, -0.24399593472480774, 0.39417019486427307, 0.13971662521362305, 0.3492834270000458, -0.29602348804473877, -0.25610029697418213, -0.07558935880661011, 0.09664888679981232, 0.02501332201063633, 0.3518805503845215, -0.138113334774971, -0.039572738111019135, -0.054572366178035736, 0.06134747713804245, 0.3532017469406128, -0.04099186137318611, 0.15809808671474457, 0.625243067741394, -0.3489408791065216, 0.0522017739713192, -0.2059352546930313, -0.32884371280670166, 0.13319289684295654, -0.49251821637153625, -0.05118481442332268, -0.028343364596366882, -0.016963046044111252, -0.28188443183898926, -0.04606733098626137, 0.20850521326065063, -0.03455081582069397, 0.8561009764671326, 0.07972633093595505, 0.2283354550600052, -0.29062461853027344, -0.11845005303621292, -0.15872402489185333, -0.41645103693008423, 0.16946808993816376, 0.05338262394070625, 0.12684546411037445, 0.16620275378227234, -0.12622083723545074, -0.02749742940068245, 0.01810503378510475, -0.1236414909362793, -0.11997104436159134, -0.13789497315883636, -0.08238998055458069, 0.04440949857234955, -0.23821493983268738, -0.038773052394390106, -0.11609986424446106, 0.46377748250961304, 0.2113732397556305, 0.15981058776378632, -0.45277535915374756, -0.19643765687942505, 0.30716705322265625, -0.14474965631961823, -0.13793878257274628, 0.15636342763900757, 0.24892623722553253, 0.24200448393821716, -0.05524460971355438, -0.4978741407394409, 0.060992516577243805, 0.1668211668729782, -0.10644110292196274, -0.20861144363880157, 0.17074576020240784, 0.22838805615901947, -0.049156513065099716, -0.08774075657129288, 0.47037869691848755, 0.013265389949083328, -0.15577781200408936, 0.20190340280532837, -0.30386120080947876 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
First of all, I’d never call a downgrade a solution, at most a (very) temporary workaround. Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. From: Bo-Ru (Roy) Lu ***@***.***> Sent: Thursday, 15 September 2022 01:12 To: huggingface/datasets ***@***.***> Cc: Ruurd Beerstra ***@***.***>; Comment ***@***.***> Subject: Re: [huggingface/datasets] Fatal error condition occurred in aws-c-io (Issue #3310) Sent by an external sender. Please be cautious about clicking on links and opening attachments. -------------------------------------------------------------------------------------------------------------------------------- Downgrading pyarrow to 6.0.1 solves the issue. — Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/3310#issuecomment-1247390774>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKYUE3WBCSMHKJOOA2RQELLV6JLSVANCNFSM5IQ3WG7Q>. You are receiving this because you commented.Message ID: ***@***.******@***.***>>
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
111
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 First of all, I’d never call a downgrade a solution, at most a (very) temporary workaround. Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. From: Bo-Ru (Roy) Lu ***@***.***> Sent: Thursday, 15 September 2022 01:12 To: huggingface/datasets ***@***.***> Cc: Ruurd Beerstra ***@***.***>; Comment ***@***.***> Subject: Re: [huggingface/datasets] Fatal error condition occurred in aws-c-io (Issue #3310) Sent by an external sender. Please be cautious about clicking on links and opening attachments. -------------------------------------------------------------------------------------------------------------------------------- Downgrading pyarrow to 6.0.1 solves the issue. — Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/3310#issuecomment-1247390774>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKYUE3WBCSMHKJOOA2RQELLV6JLSVANCNFSM5IQ3WG7Q>. You are receiving this because you commented.Message ID: ***@***.******@***.***>>
[ -0.42748206853866577, -0.04253140091896057, -0.06162776052951813, 0.15320228040218353, 0.06636159121990204, -0.07815480977296829, 0.14571869373321533, 0.2517719864845276, 0.019104287028312683, 0.15186458826065063, -0.044226646423339844, 0.49030327796936035, 0.043228764086961746, 0.05354800820350647, -0.10963229089975357, -0.09074781835079193, 0.2054929882287979, 0.21446073055267334, -0.33256545662879944, 0.2373591810464859, -0.25815707445144653, 0.45841217041015625, -0.20936256647109985, 0.07041220366954803, -0.0979437455534935, -0.21388539671897888, -0.15288646519184113, 0.21794438362121582, -0.19140470027923584, -0.313634991645813, 0.29033946990966797, -0.16665194928646088, 0.282990962266922, 0.27023568749427795, -0.00011413135507609695, -0.10028953850269318, 0.35641634464263916, 0.19792021811008453, -0.3507694900035858, -0.05183020234107971, -0.14753295481204987, 0.09758920222520828, 0.024175282567739487, -0.30599284172058105, 0.30303433537483215, 0.16669687628746033, -0.13627947866916656, -0.06588368117809296, 0.2552647590637207, 0.38444584608078003, 0.18836945295333862, 0.7614620923995972, 0.38301604986190796, 0.045573003590106964, 0.3377394378185272, -0.148971289396286, -0.28614166378974915, 0.4100121557712555, 0.14923790097236633, -0.28293219208717346, 0.11510858684778214, 0.023515138775110245, -0.2095836102962494, -0.022994164377450943, 0.17193147540092468, -0.055581867694854736, 0.07857497036457062, -0.06016067415475845, 0.045421481132507324, -0.07264690846204758, 0.24280253052711487, -0.5867912769317627, -0.33512550592422485, 0.06416194885969162, 0.09367042779922485, -0.5655527710914612, 0.3048248291015625, 0.02541891112923622, -0.2296697497367859, 0.2956317961215973, 0.03568357229232788, 0.20584841072559357, -0.325290709733963, 0.2468622773885727, -0.14877307415008545, 0.18127790093421936, -0.11919258534908295, 0.06271463632583618, 0.018194541335105896, 0.16574491560459137, 0.07412168383598328, -0.12688875198364258, -0.11730591952800751, 0.01345488429069519, -0.4529750943183899, -0.07292443513870239, 0.03508707880973816, 0.3669382929801941, 0.1413668990135193, 0.20418092608451843, -0.0898260548710823, -0.19586586952209473, 0.34242138266563416, 0.23782023787498474, 0.05064347758889198, 0.022063646465539932, -0.12879937887191772, -0.15555739402770996, 0.35814762115478516, 0.2779480814933777, 0.2106143832206726, -0.14043661952018738, 0.10901183634996414, -0.27040427923202515, 0.22020678222179413, 0.0395841971039772, 0.5143134593963623, -0.19742314517498016, -0.49873170256614685, 0.3832564055919647, -0.36035871505737305, 0.2029455006122589, -0.1303471475839615, 0.4257311522960663, -0.007029573433101177, -0.20038563013076782, 0.11054566502571106, 0.0796395018696785, -0.33930352330207825, 0.09803246706724167, -0.04844551533460617, 0.0032286252826452255, -0.21567612886428833, 0.03729721158742905, 0.03245792165398598, -0.30740952491760254, 0.09709230810403824, 0.29345500469207764, 0.21054521203041077, -0.25764280557632446, -0.05138833075761795, -0.0015789931640028954, -0.23191756010055542, 0.3330324590206146, 0.08576445281505585, 0.12998689711093903, -0.09601514041423798, -0.009145945310592651, 0.08207253366708755, 0.2333042025566101, 0.051246240735054016, -0.3093937933444977, -0.4527476727962494, 0.18968841433525085, -0.17874494194984436, 0.15886688232421875, -0.04245593398809433, -0.21063752472400665, 0.07294376939535141, -0.17960457503795624, 0.23915421962738037, -0.230773463845253, 0.14049270749092102, -0.12124606966972351, 0.15512660145759583, 0.3133791983127594, -0.23519499599933624, 0.07574845850467682, -0.3527543842792511, -0.18069884181022644, 0.19757449626922607, 0.3704053461551666, -0.0988374873995781, -0.08286689966917038, -0.33788394927978516, 0.07858532667160034, -0.0748397633433342, 0.16013236343860626, -0.5003253221511841, 0.26143383979797363, -0.21881245076656342, 0.1180538460612297, -0.08882715553045273, 0.0257883183658123, 0.030671002343297005, -0.06020522862672806, -0.11412131786346436, -0.19766417145729065, -0.022550201043486595, -0.04111677408218384, -0.41484934091567993, -0.3115069568157196, 0.011671965941786766, 0.04879685118794441, 0.18662117421627045, -0.07634512335062027, 0.3761880099773407, -0.10376110672950745, 0.3242500424385071, -0.13889092206954956, -0.013582892715930939, 0.23130197823047638, 0.47321686148643494, -0.07606233656406403, -0.01145506463944912, -0.15547463297843933, -0.6440984010696411, 0.21141040325164795, 0.21358999609947205, 0.2154853492975235, -0.24800051748752594, -0.18769414722919464, -0.2788660526275635, 0.37481462955474854, 0.1372063159942627, -0.15854518115520477, 0.08593891561031342, -0.09314918518066406, -0.02181478776037693, -0.026724359020590782, -0.23038432002067566, 0.23693545162677765, -0.5417951345443726, 0.19000855088233948, -0.17806077003479004, 0.2718052864074707, -0.2146155834197998, -0.38115042448043823, 0.14553822576999664, -0.12905892729759216, 0.25613921880722046, 0.08861860632896423, -0.17437267303466797, 0.3137800991535187, -0.1960885226726532, 0.6061477661132812, -0.4857729375362396, 0.23609565198421478, 0.00847851112484932, -0.3515896499156952, -0.022785881534218788, 0.08896350860595703, 0.0761818215250969, 0.16071182489395142, 0.247399240732193, 0.27963221073150635, -0.15657846629619598, 0.18127745389938354, -0.0440952405333519, -0.03649219125509262, -0.16843102872371674, -0.11754804849624634, -0.05443023145198822, 0.07304848730564117, 0.3464353382587433, 0.15165036916732788, 0.304241806268692, -0.10489031672477722, -0.2951686382293701, -0.05021344870328903, 0.30867764353752136, -0.06519606709480286, 0.18013896048069, 0.1352730393409729, -0.07955794781446457, 0.027843765914440155, 0.6127329468727112, 0.054081518203020096, 0.7251369953155518, 0.1429566740989685, -0.09314984083175659, 0.3387434184551239, -0.13412556052207947, -0.22021491825580597, 0.462756484746933, 0.14779946208000183, 0.24773892760276794, 0.27775558829307556, 0.1283234804868698, 0.061318863183259964, -0.4329778254032135, -0.36005279421806335, -0.07573963701725006, 0.13280177116394043, -0.42825502157211304, 0.221217542886734, -0.018514828756451607, 0.06520146876573563, -0.06988341361284256, 0.041123852133750916, -0.0978085845708847, -0.012865563854575157, -0.020526234060525894, 0.43135902285575867, -0.26779523491859436, 0.14002862572669983, -0.06395616382360458, -0.010852128267288208, -0.09600181132555008, -0.016773952171206474, -0.45354416966438293, -0.1823451966047287, -0.1906304955482483, 0.03995293751358986, 0.24230824410915375, -0.18788599967956543, 0.35108208656311035, 0.0735144391655922, -0.191842719912529, -0.36812207102775574, -0.3288320302963257, -0.025893352925777435, -0.182197704911232, 0.4506864547729492, 0.2598629295825958, 0.18368664383888245, -0.2114456295967102, -0.4739569127559662, 0.09886151552200317, -0.3236873745918274, -0.02461211383342743, -0.0948500707745552, -0.21729400753974915, 0.03300292789936066, -0.27754056453704834, -0.27229246497154236, -0.03676299750804901, -0.4043673872947693, 0.22871343791484833, -0.38217759132385254, 0.020520083606243134, -0.09693768620491028, 0.3217182457447052, 0.08599348366260529, 0.1524304747581482, -0.19407875835895538, -0.09150519967079163, -0.24250300228595734, 0.08260858058929443, -0.07108370959758759, -0.20607052743434906, 0.07653394341468811, 0.29803651571273804, 0.4339402914047241, 0.13161200284957886, -0.4178847074508667, 0.20583710074424744, -0.17641721665859222, 0.5005054473876953, -0.049160003662109375, 0.05403595417737961, 0.17503029108047485, -0.07972700148820877, -0.026869334280490875, -0.06059614196419716, -0.10030573606491089, -0.32825967669487, -0.15068340301513672, 0.2674217224121094, -0.07751632481813431, 0.4789755642414093, 0.13139964640140533, 0.6975752115249634, 0.07898277044296265, -0.21158288419246674, 0.3279775381088257, -0.028603235259652138, 0.10536551475524902, -0.07341038435697556, -0.1901017725467682, 0.1520327478647232, -0.2146950662136078, -0.4091150164604187, 0.07063962519168854, -0.15054717659950256, -0.43637290596961975, -0.12099986523389816, -0.08669283986091614, -0.3034569323062897, -0.3403465747833252, -0.028697656467556953, 0.29158103466033936, 0.3161896765232086, 0.0015881787985563278, -0.05727192386984825, 0.15793704986572266, -0.10108159482479095, 0.19282495975494385, 0.36019188165664673, -0.1863955557346344, -0.10913223028182983, 0.13851839303970337, -0.18186931312084198, -0.625360906124115, 0.2950511872768402, 0.008158091455698013, 0.19284944236278534, 0.07233165204524994, 0.03886803239583969, 0.1007583811879158, -0.32105115056037903, 0.43188029527664185, 0.12141574919223785, 0.17329834401607513, 0.13595177233219147, 0.26316037774086, -0.30724409222602844, -0.040356140583753586, -0.2882193922996521, 0.08007369190454483, 0.1807740330696106, -0.14503109455108643, -0.10767892003059387, 0.024679336696863174, 0.1838591992855072, -0.16104772686958313, 0.1983327865600586, -0.3319985866546631, -0.23854364454746246, -0.34278222918510437, -0.2797161042690277, 0.37463581562042236, 0.055243559181690216, 0.009043639525771141, -0.32629919052124023, -0.2923775315284729, 0.011414680629968643, -0.07141280174255371, 0.02197539061307907, 0.12599387764930725, -0.22500848770141602, -0.25273191928863525, 0.2245028018951416, -0.2568610608577728, -0.19537556171417236, 0.558820903301239, 0.24980032444000244, 0.14302048087120056, -0.10622820258140564, 0.06821393966674805, 0.35341450572013855, 0.29142555594444275, 0.3351328372955322, -0.23373323678970337, 0.10898225754499435, 0.15806609392166138, 0.25432485342025757, -0.0988721027970314, -0.00455232709646225, 0.2488289475440979, 0.21627239882946014, 0.026326486840844154, 0.3406096398830414, 0.4073401093482971, -0.062283702194690704, -0.038310710340738297, 0.3591311275959015, 0.25986209511756897, -0.16707226634025574, 0.21466214954853058, 0.13971692323684692, 0.8775879740715027, 0.17909875512123108, 0.046194858849048615, 0.4328523576259613, -0.4663127064704895, 0.44557854533195496, -0.12359853088855743, 0.1480383723974228, -0.32469311356544495, 0.06377560645341873, 0.08330018818378448, 0.008587177842855453, 0.3916166126728058, -0.10846735537052155, 0.04542646184563637, -0.06415937095880508, 0.18992994725704193, 0.297076553106308, 0.03825889527797699, 0.05518920719623566, -0.5869230031967163, -0.19072945415973663, -0.6712071895599365, 0.1334473192691803, -0.00906950980424881, 0.1736360639333725, -0.36711350083351135, 0.10189970582723618, 0.14723117649555206, -0.31807923316955566, -0.3430100083351135, 0.20694169402122498, -0.5112842917442322, 0.04128609597682953, -0.3830188512802124, -0.2803468704223633, 0.2209671139717102, 0.05575377494096756, -0.026335716247558594, 0.20656946301460266, 0.001896969974040985, 0.31569358706474304, 0.0053818002343177795, -0.05580843985080719, 0.09105753898620605, -0.14783355593681335, -0.1560390144586563, -0.05244782567024231, -0.14613522589206696, 0.17700621485710144, -0.07454980909824371, -0.0917988121509552, 0.2853672504425049, -0.053896039724349976, -0.06642155349254608, -0.029704546555876732, 0.06415152549743652, -0.12301477789878845, -0.03616567701101303, -0.3085891604423523, 0.1715560108423233, -0.07757659256458282, -0.003449008334428072, 0.2071945071220398, -0.37224435806274414, -0.11246167123317719, -0.1897156834602356, 0.5529606938362122, -0.2507939040660858, -0.08788850903511047, 0.15593278408050537, 0.4426625669002533, -0.0973665863275528, -0.21255767345428467, 0.04797046631574631, -0.18370860815048218, -0.542565643787384, 0.11320441216230392, 0.07748188078403473, 0.2627530097961426, 0.05525950714945793, 0.2022790163755417, 0.2466287612915039, 0.017452608793973923, 0.03675975278019905, -0.20990173518657684, -0.1808948665857315, 0.19311648607254028, 0.031014369800686836, 0.37106290459632874, 0.31814536452293396, 0.03572513908147812, -0.31164664030075073, -0.11295758187770844, -0.2862167954444885, 0.021174216642975807, -0.07729940116405487, 0.07500305771827698, 0.2293751984834671, 0.02581925131380558, 0.40482670068740845, -0.09230448305606842, 0.11621271073818207, 0.407589316368103, -0.10518872737884521, -0.16511031985282898, -0.21346409618854523, 0.13394169509410858, 0.1556643545627594, -0.0754605233669281, 0.22717688977718353, -0.1137135773897171, 0.015225116163492203, 0.039729468524456024, 0.6571975946426392, 0.1561160683631897, -0.21768270432949066, -0.05595973879098892, 0.044307149946689606, 0.07308477908372879, -0.4589642286300659, -0.10022178292274475, 0.03756224736571312, 0.3497443199157715, 0.01229536347091198, 0.18018801510334015, -0.058300554752349854, -0.014584667980670929, 0.2313353419303894, 0.014314405620098114, -0.1271827667951584, 0.27238932251930237, 0.3305117189884186, -0.13850022852420807, -0.41741472482681274, -0.2005019336938858, 0.35858675837516785, 0.1860654056072235, -0.10587462037801743, -0.1999220997095108, 0.1174117922782898, 0.2144942283630371, -0.10265287011861801, 0.009554840624332428, -0.09632924199104309, -0.041361723095178604, -0.05231792852282524, 0.03943441063165665, -0.07494643330574036, -0.13405489921569824, 0.0007257983088493347, 0.04018053784966469, 0.29260727763175964, -0.14245682954788208, -0.008158812299370766, 0.3262636363506317, -0.014390632510185242, 0.2739810049533844, 0.1222369447350502, -0.11106409132480621, 0.4064118266105652, 0.3711158037185669, -0.3033636808395386, 0.08414153754711151, 0.10872330516576767, 0.4426301121711731, 0.10212039202451706, -0.2576576769351959, -0.23784120380878448, 0.0034261196851730347, -0.07189920544624329, 0.2566969692707062, 0.15225961804389954, 0.16824012994766235, 0.16014651954174042, -0.043525077402591705, -0.14599737524986267, 0.15463297069072723, -0.3044109344482422, -0.01580691710114479, -0.3517623245716095, -0.030243966728448868, 0.05464012920856476, 0.09670497477054596, -0.12299467623233795, -0.05955575406551361, 0.5288938283920288, 0.22160585224628448, 0.08179698884487152, -0.4410949945449829, -0.15751338005065918, 0.35684314370155334, 0.12008330971002579, -0.18392552435398102, 0.10522791743278503, 0.3081897497177124, -0.23698127269744873, -0.5390706062316895, 0.2143917977809906, 0.7627207040786743, -0.07788030058145523, 0.19871176779270172, 0.08354982733726501, 0.17030104994773865, 0.06222914904356003, 0.12428541481494904, 0.1063157171010971, 0.24244211614131927, 0.458669513463974, 0.06174018606543541, 0.12755033373832703, -0.17987248301506042, 0.10285358130931854, 0.2558040916919708, 0.13234230875968933, -0.29624292254447937, -0.12737828493118286, -0.2332322597503662, -0.1753963828086853, -0.1896090805530548, 0.2666442394256592, -0.31483858823776245, 0.07231545448303223, 0.4385724365711212, -0.0682452842593193, -0.0229283906519413, -0.14094911515712738, 0.08795592188835144, -0.1401466429233551, 0.39068886637687683, 0.26105040311813354, 0.34292516112327576, -0.36674222350120544, -0.2936590909957886, -0.2902340888977051, 0.19573050737380981, 0.0036608651280403137, 0.4395698308944702, -0.03130621090531349, -0.15046900510787964, -0.21508574485778809, 0.1505163013935089, 0.28704673051834106, 0.08914452791213989, 0.013102061115205288, 0.5771176815032959, -0.17752906680107117, -0.05844464525580406, -0.08861911296844482, -0.5508223176002502, 0.05959773063659668, -0.27061477303504944, -0.024105709046125412, -0.23256048560142517, -0.10707893967628479, -0.4641910195350647, 0.04833351820707321, 0.0949767529964447, -0.06161998212337494, 0.7351589798927307, 0.08673558384180069, 0.2641007900238037, -0.24666917324066162, -0.2008342444896698, -0.18778230249881744, -0.17561674118041992, 0.14530378580093384, 0.0833529606461525, -0.03808758035302162, 0.4592750668525696, -0.03632069379091263, -0.24727030098438263, -0.12973274290561676, 0.08274364471435547, -0.05951382964849472, -0.21654686331748962, -0.14698471128940582, 0.03548134118318558, -0.33140647411346436, 0.058138784021139145, -0.14308397471904755, 0.4162195324897766, 0.18182580173015594, 0.23324353992938995, -0.6159957647323608, -0.4574607312679291, 0.276126891374588, -0.39364391565322876, -0.05089016258716583, -0.0337221585214138, 0.3774663805961609, 0.2017119824886322, -0.3121570944786072, -0.479648619890213, 0.027468279004096985, 0.14498908817768097, -0.005954369902610779, -0.2982197701931, 0.18072360754013062, 0.16486294567584991, -0.03223378583788872, 0.029134582728147507, 0.40837880969047546, 0.11438242346048355, -0.18416818976402283, 0.33251887559890747, -0.4797820448875427 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> First of all, I’d never call a downgrade a solution, at most a (very) temporary workaround. Very much so! It looks like an apparent fix for the underlying problem [might](https://github.com/awslabs/aws-c-io/pull/515) have landed, but it sounds like it might still be a bit of a [lift](https://github.com/aws/aws-sdk-cpp/issues/1809#issuecomment-1289859795) to get it into aws-sdk-cpp. > Downgrading pyarrow to 6.0.1 solves the issue for me. Sidenote: On conda-forge side, all recent pyarrow releases (all the way up to v9 and soon v10) have carried the respective pin and will not run into this issue. ``` conda install -c conda-forge pyarrow ```
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
97
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 > First of all, I’d never call a downgrade a solution, at most a (very) temporary workaround. Very much so! It looks like an apparent fix for the underlying problem [might](https://github.com/awslabs/aws-c-io/pull/515) have landed, but it sounds like it might still be a bit of a [lift](https://github.com/aws/aws-sdk-cpp/issues/1809#issuecomment-1289859795) to get it into aws-sdk-cpp. > Downgrading pyarrow to 6.0.1 solves the issue for me. Sidenote: On conda-forge side, all recent pyarrow releases (all the way up to v9 and soon v10) have carried the respective pin and will not run into this issue. ``` conda install -c conda-forge pyarrow ```
[ -0.43475341796875, 0.205328106880188, -0.10007892549037933, -0.03934662789106369, 0.0628814771771431, -0.2164609432220459, 0.22705790400505066, 0.34971097111701965, -0.4086267650127411, 0.12738877534866333, 0.03852237015962601, 0.6778659820556641, 0.08586259186267853, 0.18175645172595978, -0.17054834961891174, 0.1503782868385315, 0.21870878338813782, 0.32507115602493286, -0.33457082509994507, 0.13312724232673645, -0.26974737644195557, 0.2997458279132843, -0.2836249768733978, 0.0957632064819336, -0.2740617096424103, -0.02034432627260685, -0.04388634115457535, 0.11353162676095963, -0.18966569006443024, -0.3609714210033417, 0.26273515820503235, -0.19849105179309845, 0.17978636920452118, 0.29138126969337463, -0.00011068730964325368, 0.0017127618193626404, 0.3273773193359375, 0.10119554400444031, -0.31794965267181396, 0.001673877239227295, -0.14787565171718597, 0.16411592066287994, 0.17471836507320404, -0.19528606534004211, 0.32412150502204895, 0.02897823601961136, -0.09515491127967834, 0.26009127497673035, 0.21885353326797485, 0.3462008237838745, 0.2196599841117859, 0.5195666551589966, 0.3446902632713318, -0.027507521212100983, 0.1932552605867386, -0.03654558211565018, -0.26654982566833496, 0.47191861271858215, 0.21175864338874817, -0.36845844984054565, -0.0023641586303710938, 0.05423656478524208, -0.1232932060956955, 0.027287892997264862, -0.00553198903799057, -0.05613214522600174, 0.12103100121021271, -0.16361519694328308, 0.16594278812408447, -0.12363447993993759, 0.21089187264442444, -0.6314663290977478, -0.3102996051311493, 0.08709967881441116, 0.09601277858018875, -0.457835853099823, 0.277828186750412, -0.03682505339384079, -0.2518380880355835, 0.3490435779094696, 0.17348557710647583, 0.1687474250793457, -0.1942385584115982, 0.14354665577411652, -0.09477101266384125, 0.30998581647872925, -0.022765055298805237, 0.12226766347885132, -0.02441556379199028, 0.04177115112543106, 0.31857573986053467, 0.11925329267978668, -0.08433100581169128, 0.03389790281653404, -0.5837114453315735, -0.01710067316889763, 0.008822694420814514, 0.1592082530260086, 0.13839825987815857, 0.16149583458900452, -0.1553083211183548, 0.05644889175891876, 0.5101376175880432, 0.3059362769126892, -0.02848038449883461, -0.0013047102838754654, 0.020242217928171158, 0.06238164007663727, 0.32849299907684326, 0.046617139130830765, 0.15131935477256775, -0.034238919615745544, -0.014128712937235832, -0.4028845727443695, 0.18182633817195892, -0.011989295482635498, 0.406220018863678, -0.20327767729759216, -0.5015257596969604, 0.24165554344654083, -0.42174604535102844, 0.21448081731796265, -0.1268002837896347, 0.40194299817085266, 0.09352180361747742, -0.045268744230270386, 0.20660783350467682, 0.1764000803232193, -0.31678542494773865, 0.05380841717123985, -0.09868840128183365, -0.026859354227781296, -0.1389646977186203, -0.013314735144376755, 0.08038951456546783, -0.2986375689506531, 0.21137692034244537, 0.25536105036735535, 0.2189975529909134, -0.19579993188381195, 0.0007432568818330765, 0.17689405381679535, -0.27125340700149536, 0.4208381175994873, 0.0254400335252285, 0.08276620507240295, -0.08858281373977661, -0.11459288001060486, 0.10744654387235641, 0.31297117471694946, -0.02124234288930893, -0.3210259675979614, -0.41215842962265015, 0.23946784436702728, -0.07119549065828323, 0.17515645921230316, -0.030725426971912384, -0.18557888269424438, 0.17555008828639984, -0.11153896152973175, 0.0638388991355896, -0.26302075386047363, 0.2623440623283386, -0.21254026889801025, 0.18976187705993652, -0.010796219110488892, -0.2792302966117859, 0.03745131194591522, -0.13902105391025543, -0.276043564081192, 0.10806173086166382, 0.1226859837770462, -0.24051401019096375, -0.03066778928041458, -0.20639543235301971, 0.16167095303535461, 0.28362879157066345, 0.04772896692156792, -0.4715069830417633, 0.14951811730861664, -0.08889459818601608, -0.05090414732694626, -0.22826075553894043, -0.11027581244707108, 0.08752467483282089, -0.037174273282289505, 0.05234430357813835, -0.2923792600631714, 0.11585818976163864, -0.06949307769536972, -0.4744645655155182, -0.3778267204761505, 0.07250843942165375, 0.2468813806772232, 0.19124630093574524, -0.057197071611881256, 0.25085747241973877, -0.40519896149635315, 0.30638930201530457, -0.06615862250328064, 0.07497816532850266, 0.08421880751848221, 0.29389724135398865, -0.21237124502658844, 0.14227396249771118, 0.05244016647338867, -0.6165471076965332, 0.2581682503223419, 0.024911101907491684, 0.1669883280992508, -0.3477901816368103, -0.13350224494934082, -0.14524486660957336, 0.4706822335720062, 0.020235922187566757, -0.054009195417165756, 0.17781774699687958, -0.21829316020011902, 0.03607739880681038, -0.06649179756641388, -0.2668423056602478, 0.15389959514141083, -0.36777159571647644, 0.17291836440563202, 0.11557170748710632, 0.26315975189208984, -0.36087581515312195, -0.4440658390522003, 0.1705888956785202, -0.14306211471557617, 0.30217060446739197, 0.02268969640135765, -0.13235023617744446, 0.24320363998413086, -0.18548831343650818, 0.3286118507385254, -0.37938985228538513, 0.16854868829250336, 0.030345726758241653, -0.24539130926132202, 0.003976348787546158, -0.05779821798205376, 0.006516682915389538, 0.01495363563299179, 0.4783565402030945, 0.17413392663002014, -0.05189162865281105, 0.18281623721122742, -0.18886525928974152, 0.04117017984390259, 0.04538492113351822, -0.18579910695552826, 0.06710497289896011, 0.14565934240818024, 0.24587447941303253, 0.2857225239276886, 0.2767484188079834, -0.06550659239292145, -0.313020795583725, 0.1393766701221466, 0.2567470967769623, -0.12628336250782013, 0.08612614125013351, 0.13312400877475739, -0.19286850094795227, 0.0374641939997673, 0.4702991247177124, -0.04611590504646301, 0.5581902861595154, 0.10105874389410019, -0.1107809841632843, 0.2566550672054291, -0.1872168928384781, -0.22490695118904114, 0.3592568039894104, 0.21972978115081787, 0.4161852300167084, 0.4170496463775635, 0.2873165011405945, -0.16196316480636597, -0.3502345681190491, -0.21667470037937164, 0.11351733654737473, 0.2764270603656769, -0.3075145483016968, 0.12353337556123734, -0.09155707061290741, 0.324317991733551, -0.025370068848133087, -0.25965383648872375, -0.02485726773738861, -0.11434214562177658, 0.14397594332695007, 0.34339019656181335, -0.17988857626914978, 0.34194910526275635, -0.10195574164390564, -0.19603072106838226, -0.09482394903898239, -0.15375065803527832, -0.3422935903072357, -0.24482151865959167, -0.2623826265335083, 0.060719024389982224, 0.36028215289115906, -0.09365423768758774, 0.10143544524908066, 0.01184035837650299, -0.2066737562417984, -0.1361033022403717, -0.40160974860191345, -0.03133377432823181, -0.23679544031620026, 0.4259641766548157, 0.2195865362882614, 0.1279965341091156, -0.1359977424144745, -0.6040900349617004, 0.14586149156093597, -0.1991276890039444, -0.06869341433048248, 0.03999582678079605, -0.2366284728050232, -0.015907704830169678, -0.39385589957237244, -0.3407609164714813, -0.07979141920804977, -0.3838586211204529, 0.1965636909008026, -0.10699142515659332, 0.12182425707578659, -0.19945795834064484, 0.4929237961769104, 0.04076358303427696, 0.2530358135700226, -0.17874255776405334, -0.15251873433589935, -0.14614130556583405, 0.27410823106765747, -0.047435738146305084, -0.259988933801651, 0.15525923669338226, 0.1213202178478241, 0.485286682844162, 0.11345097422599792, -0.37812870740890503, 0.023990686982870102, 0.08880259841680527, 0.5832734107971191, -0.16256937384605408, -0.17312605679035187, 0.27475056052207947, 0.17310591042041779, -0.06040825694799423, -0.07028917223215103, -0.00707806833088398, -0.11935368925333023, -0.08644730597734451, 0.13398298621177673, -0.08418861031532288, 0.33886203169822693, 0.18872720003128052, 0.6427712440490723, -0.012617569416761398, -0.3477724492549896, 0.16819976270198822, 0.04189583286643028, 0.038266800343990326, -0.08511912077665329, -0.038237493485212326, 0.19222626090049744, -0.2201044261455536, -0.2494797706604004, 0.05893116816878319, -0.17210876941680908, -0.5246954560279846, -0.1845340132713318, 0.010497964918613434, -0.3400605618953705, -0.31886449456214905, 0.012086735107004642, 0.1719961315393448, 0.1265929639339447, 0.06453438103199005, 0.12297690659761429, 0.09287422895431519, 0.10674227029085159, 0.2185666710138321, 0.06518317759037018, -0.22824355959892273, -0.20004843175411224, -0.058925654739141464, -0.21117471158504486, -0.553680956363678, 0.2819150984287262, -0.024528758600354195, 0.14112110435962677, 0.23625801503658295, -0.15347424149513245, 0.20495471358299255, -0.4674760401248932, 0.5598343014717102, 0.05847468227148056, 0.09890033304691315, 0.2575470507144928, 0.3872191607952118, -0.30527982115745544, -0.19050198793411255, -0.08945206552743912, 0.03755777329206467, 0.3442246913909912, -0.09996749460697174, -0.30250391364097595, -0.1045876145362854, 0.051232755184173584, -0.10867084562778473, 0.18704454600811005, -0.1503257006406784, -0.1966097503900528, -0.39011016488075256, -0.29402458667755127, 0.13502120971679688, -0.04416170343756676, 0.020315788686275482, -0.3467675745487213, -0.3237330913543701, -0.09671378135681152, -0.016489405184984207, -0.1466911882162094, 0.3214469254016876, -0.13269302248954773, -0.4103848934173584, 0.2976438105106354, -0.1543830782175064, -0.24799874424934387, 0.6432958245277405, 0.18310721218585968, 0.28179576992988586, -0.20944499969482422, 0.08827251195907593, 0.17345280945301056, 0.2627406120300293, 0.1415676772594452, -0.1520262062549591, 0.07591623067855835, 0.03986920043826103, 0.174672931432724, -0.12132260948419571, 0.04612591490149498, 0.1644471287727356, 0.04163748770952225, -0.0763285756111145, 0.4032159745693207, 0.44125768542289734, -0.1615532785654068, -0.12359343469142914, 0.4311133325099945, -0.010295718908309937, -0.1382681131362915, 0.389503538608551, 0.1564628630876541, 0.8330777883529663, 0.158355712890625, -0.07422201335430145, 0.46568727493286133, -0.4405585527420044, 0.18140681087970734, -0.1665090024471283, 0.14813272655010223, -0.43932363390922546, -0.05439180135726929, 0.11408360302448273, -0.008810430765151978, 0.17880120873451233, -0.0023930780589580536, -0.019110295921564102, -0.06616430729627609, 0.043541327118873596, 0.2548939287662506, 0.054096825420856476, -0.09333266317844391, -0.2619743049144745, -0.1344945877790451, -0.42970556020736694, 0.17687584459781647, 0.05722734332084656, 0.09424128383398056, -0.23465129733085632, -0.02480766549706459, -0.002070322632789612, -0.4501190781593323, -0.2199629843235016, 0.26941198110580444, -0.5067242980003357, 0.1480940580368042, -0.014594919979572296, -0.4059181809425354, 0.06158812716603279, 0.017010413110256195, -0.13153836131095886, -0.00648876279592514, 0.022431587800383568, 0.35990312695503235, 0.12307158857584, -0.012778966687619686, 0.17247314751148224, -0.1220720112323761, -0.21031111478805542, -0.005620121955871582, -0.23947492241859436, 0.27221590280532837, -0.1570730209350586, -0.13822662830352783, 0.2799586057662964, 0.10667365789413452, -0.009345471858978271, 0.025313008576631546, 0.15189364552497864, -0.02690403163433075, -0.08165313303470612, -0.29338109493255615, 0.20923279225826263, -0.155093252658844, 0.02145599015057087, 0.4339659512042999, -0.3812863826751709, -0.04387621581554413, -0.15589073300361633, 0.5215749144554138, -0.17734169960021973, -0.00810360535979271, 0.213090181350708, 0.2792414724826813, -0.2100437730550766, -0.21203449368476868, -0.17722347378730774, -0.36738917231559753, -0.4397883415222168, -0.12456036359071732, 0.053672563284635544, 0.09316934645175934, 0.19362615048885345, 0.2262447029352188, 0.051432739943265915, 0.11364994943141937, 0.021537121385335922, -0.15362198650836945, -0.29764673113822937, 0.2317749708890915, -0.009687144309282303, 0.3368445634841919, 0.18347561359405518, 0.29526281356811523, -0.28927165269851685, -0.06666962802410126, -0.31795555353164673, 0.08134666085243225, -0.13856826722621918, 0.18981848657131195, 0.01614874228835106, -0.10538380593061447, 0.39916691184043884, -0.03992582485079765, 0.16632242500782013, 0.39603203535079956, -0.026910413056612015, -0.22543984651565552, -0.18391482532024384, 0.10931821167469025, 0.20981371402740479, -0.00792977400124073, 0.1773764193058014, 0.015280306339263916, -0.010302692651748657, 0.06521026045084, 0.5098854899406433, 0.11160943657159805, -0.26066744327545166, -0.040573932230472565, 0.1367916464805603, 0.09978853166103363, -0.23483744263648987, -0.0456310510635376, 0.07225684821605682, 0.30245858430862427, -0.017426148056983948, 0.23539607226848602, -0.12600210309028625, 0.08974868059158325, 0.1322650909423828, 0.07325591146945953, -0.3368223309516907, 0.01622069999575615, 0.3766386806964874, -0.222974494099617, -0.36250102519989014, -0.24521827697753906, 0.2887512147426605, 0.30810415744781494, -0.05583428591489792, -0.22096718847751617, 0.2549666166305542, 0.2909596264362335, -0.228897362947464, -0.08716519176959991, -0.10613791644573212, 0.01994374394416809, -0.07230626046657562, 0.027507953345775604, -0.11418506503105164, -0.45593518018722534, 0.14260068535804749, 0.15712296962738037, 0.20820482075214386, -0.45085322856903076, 0.05091705918312073, 0.3733900487422943, 0.023885708302259445, 0.14879174530506134, 0.28748875856399536, -0.07310955226421356, 0.3572736978530884, 0.3134465217590332, -0.43053752183914185, 0.015323067083954811, 0.10416121035814285, 0.2674020528793335, -0.023156024515628815, -0.180610790848732, -0.4452765882015228, 0.16379141807556152, -0.025862783193588257, 0.021279238164424896, 0.21258632838726044, 0.15285634994506836, 0.3806333839893341, 0.009898073971271515, -0.16990725696086884, 0.19464346766471863, -0.25876477360725403, -0.02247212640941143, -0.2597966194152832, -0.048237647861242294, 0.19795265793800354, 0.064798504114151, 0.009881865233182907, -0.11531670391559601, 0.8192771673202515, 0.2840597331523895, -0.09913085401058197, -0.39712977409362793, -0.028761006891727448, 0.30386820435523987, 0.09178248047828674, -0.1093406230211258, 0.09464012831449509, 0.4052978754043579, -0.252663254737854, -0.4495152235031128, 0.11215479671955109, 0.7664331197738647, 0.02387779951095581, -0.0533539243042469, 0.003296529408544302, 0.006276831962168217, 0.06457564979791641, -0.09284814447164536, 0.1385609209537506, 0.21824754774570465, 0.3150709867477417, 0.16950739920139313, 0.18365329504013062, -0.16959823668003082, -0.07559455931186676, 0.24527934193611145, 0.21568366885185242, -0.07498826086521149, -0.11394552141427994, -0.05804423987865448, -0.24709057807922363, -0.05463439226150513, 0.19935348629951477, -0.16690444946289062, 0.13778376579284668, 0.19606776535511017, 0.000016575446352362633, 0.012239011004567146, -0.12844811379909515, 0.10514095425605774, -0.1754658967256546, 0.37964391708374023, 0.09327390789985657, 0.224219411611557, -0.27061930298805237, -0.23795534670352936, -0.210410475730896, 0.17400512099266052, -0.031528670340776443, 0.3805187940597534, 0.013439792208373547, 0.072707898914814, -0.08298832923173904, 0.08381129801273346, 0.22894221544265747, 0.09668615460395813, 0.07484207302331924, 0.5635461807250977, -0.24201610684394836, 0.09207779169082642, -0.17882995307445526, -0.48239022493362427, 0.07039147615432739, -0.382263720035553, 0.12364643812179565, -0.3454824388027191, 0.017702825367450714, -0.3293648958206177, -0.04400615394115448, 0.21703262627124786, 0.05077848210930824, 0.8750644326210022, 0.04649440944194794, 0.18968382477760315, -0.15309980511665344, -0.13609933853149414, -0.2669000029563904, -0.34228140115737915, 0.06433785706758499, 0.017927203327417374, -0.051996488124132156, 0.23234117031097412, -0.018889471888542175, -0.05176118388772011, -0.11210222542285919, 0.018450550734996796, -0.07317907363176346, -0.11187214404344559, 0.023994626477360725, 0.1767544150352478, -0.1834917813539505, 0.07818074524402618, -0.21121078729629517, 0.24018490314483643, 0.187564879655838, 0.1900046467781067, -0.603883683681488, -0.3645685613155365, 0.28690052032470703, -0.3745913505554199, -0.15760283172130585, 0.023100677877664566, 0.23612967133522034, 0.09444469958543777, -0.16693949699401855, -0.49561238288879395, 0.0015982389450073242, 0.18307146430015564, 0.055941857397556305, -0.30546554923057556, 0.17854608595371246, 0.17003266513347626, -0.09830451011657715, -0.11153002083301544, 0.3794403374195099, 0.04072318598628044, -0.20060710608959198, 0.12776713073253632, -0.3998063802719116 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
For pip people, I confirmed that installing the nightly version of pyarrow also solves this by: `pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ --prefer-binary --pre pyarrow --upgrade`. (See https://arrow.apache.org/docs/python/install.html#installing-nightly-packages) Any version after https://github.com/apache/arrow/pull/14157 would work fine.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
33
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 For pip people, I confirmed that installing the nightly version of pyarrow also solves this by: `pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ --prefer-binary --pre pyarrow --upgrade`. (See https://arrow.apache.org/docs/python/install.html#installing-nightly-packages) Any version after https://github.com/apache/arrow/pull/14157 would work fine.
[ -0.554375946521759, -0.05333153158426285, -0.13785609602928162, 0.006220877170562744, 0.005573263391852379, -0.13947300612926483, 0.20623452961444855, 0.18193639814853668, -0.12260912358760834, 0.13156670331954956, 0.09868578612804413, 0.6705360412597656, -0.02802305296063423, -0.0860929861664772, -0.12411840260028839, -0.0760209709405899, 0.1290893852710724, 0.21074286103248596, -0.37947848439216614, 0.15587687492370605, -0.2489677518606186, 0.23751941323280334, -0.2318740338087082, 0.08232518285512924, -0.2281278520822525, -0.24204087257385254, -0.027948014438152313, 0.15225934982299805, -0.1489054411649704, -0.44366395473480225, 0.301877498626709, -0.2755374312400818, 0.1602286398410797, 0.4327491819858551, -0.0001067497578333132, -0.05668676644563675, 0.3644813895225525, 0.18458805978298187, -0.22419437766075134, 0.0121970996260643, -0.08415155112743378, -0.08790922909975052, 0.3311994969844818, -0.2896898686885834, 0.3143031597137451, -0.10998653620481491, -0.05915962904691696, -0.048811037093400955, 0.3091002106666565, 0.38907933235168457, 0.24768893420696259, 0.6473681926727295, 0.24668999016284943, 0.056500233709812164, 0.4180283546447754, -0.1971425861120224, -0.32006004452705383, 0.30707982182502747, 0.2524433135986328, -0.2855095863342285, 0.09022001177072525, 0.14527523517608643, -0.22438375651836395, 0.193611741065979, 0.12687109410762787, -0.11974067240953445, -0.001319192349910736, -0.1708514392375946, 0.04071563109755516, 0.038471519947052, 0.28747645020484924, -0.47228124737739563, -0.2089938223361969, 0.1138739362359047, 0.008793544955551624, -0.2746521234512329, 0.18013253808021545, 0.2274884283542633, -0.2000834047794342, 0.14726793766021729, 0.19949324429035187, 0.20218169689178467, -0.28615379333496094, 0.24252711236476898, -0.03454810380935669, 0.37304145097732544, -0.058138407766819, 0.13793283700942993, -0.0030357539653778076, 0.010923141613602638, 0.22233836352825165, -0.03738002851605415, -0.25480785965919495, 0.0981660708785057, -0.5477117896080017, -0.0036075040698051453, -0.03512243181467056, 0.17446544766426086, 0.03266647458076477, 0.19774453341960907, 0.23863959312438965, 0.0028733983635902405, 0.3272871673107147, 0.28906872868537903, 0.023455768823623657, 0.01494290865957737, -0.08163473755121231, 0.13895171880722046, 0.3914755582809448, 0.03614535182714462, 0.11997723579406738, -0.04122083634138107, 0.133612260222435, -0.38116455078125, 0.21098639070987701, -0.003115633502602577, 0.4271705746650696, -0.07482355087995529, -0.40152719616889954, 0.32190829515457153, -0.3371586203575134, 0.10811057686805725, -0.06640385091304779, 0.33710339665412903, -0.008349832147359848, -0.056700699031353, 0.20172587037086487, 0.16237403452396393, -0.27643632888793945, 0.13388219475746155, -0.15782257914543152, -0.009174395352602005, -0.23119781911373138, -0.08650785684585571, 0.1114141047000885, -0.17449453473091125, 0.2653611898422241, 0.24211354553699493, 0.022348623722791672, -0.15753301978111267, 0.14745935797691345, 0.018492721021175385, -0.2563647925853729, 0.30509379506111145, 0.10302947461605072, 0.08480006456375122, -0.03917078301310539, 0.041903331875801086, 0.1360241174697876, 0.2326878011226654, -0.053736187517642975, -0.21796707808971405, -0.4174538552761078, 0.2803494334220886, -0.1088390201330185, 0.03345756232738495, -0.20705273747444153, -0.26904189586639404, 0.21820509433746338, -0.12822790443897247, 0.22680717706680298, -0.25554513931274414, 0.31302639842033386, -0.17761872708797455, 0.02937130443751812, 0.07440951466560364, -0.21485978364944458, 0.13033536076545715, -0.2644127905368805, -0.1369023323059082, 0.2040482759475708, 0.20825335383415222, -0.18037927150726318, -0.04424486309289932, -0.2728956639766693, 0.09848767518997192, 0.235332190990448, 0.03691243752837181, -0.383615642786026, 0.24657532572746277, -0.12970787286758423, -0.14975404739379883, -0.04616839438676834, -0.014476940967142582, -0.10683878511190414, 0.008898924104869366, -0.0191536545753479, -0.18491843342781067, 0.05353802070021629, 0.039157502353191376, -0.3300914466381073, -0.31945309042930603, -0.1552170366048813, 0.19451165199279785, 0.20314280688762665, -0.22586074471473694, 0.3661082088947296, -0.36194443702697754, 0.3175247609615326, -0.12160399556159973, 0.05844634026288986, 0.21887393295764923, 0.3577685058116913, -0.1725803017616272, 0.03689475357532501, -0.15993884205818176, -0.5065339207649231, 0.1387290060520172, 0.0023303963243961334, 0.13431799411773682, -0.38723790645599365, -0.10326681286096573, -0.13272571563720703, 0.39276885986328125, -0.004488158971071243, -0.03365528956055641, 0.18054017424583435, -0.06437717378139496, 0.011883892118930817, -0.008162397891283035, -0.23005343973636627, 0.06050374358892441, -0.5269516110420227, 0.14434054493904114, -0.13410834968090057, 0.20195269584655762, -0.16864322125911713, -0.42906540632247925, 0.11396320164203644, -0.19496652483940125, 0.1076028123497963, 0.05252587050199509, -0.2080492079257965, 0.2340305745601654, -0.3040914535522461, 0.5151616334915161, -0.1592862904071808, 0.16037678718566895, -0.05678541213274002, -0.47035351395606995, 0.08078403770923615, 0.19792021811008453, 0.09816594421863556, 0.03523171693086624, 0.24327358603477478, 0.19458848237991333, -0.2178817242383957, 0.21994377672672272, -0.14996425807476044, 0.04646395146846771, 0.019584933295845985, -0.08678700774908066, 0.018361462280154228, 0.13831116259098053, 0.38293105363845825, 0.16051997244358063, 0.37220528721809387, -0.1701093316078186, -0.3248753547668457, -0.011637277901172638, 0.27606019377708435, 0.055377449840307236, 0.2657800316810608, 0.05110997334122658, -0.26888662576675415, 0.05622585862874985, 0.45821890234947205, 0.0629546195268631, 0.6184514760971069, 0.16565674543380737, -0.06254446506500244, 0.16234639286994934, -0.11482325941324234, -0.2506296634674072, 0.3767046332359314, 0.2827191948890686, 0.15803717076778412, 0.37214410305023193, 0.23475265502929688, -0.085433728992939, -0.4054282009601593, -0.3640807271003723, -0.04643841087818146, 0.17188072204589844, -0.23460793495178223, 0.2244800627231598, -0.10539567470550537, 0.15684041380882263, -0.07431747764348984, -0.07775520533323288, 0.028594346717000008, -0.19739077985286713, 0.035243384540081024, 0.339330792427063, -0.29832181334495544, 0.22740651667118073, -0.1763910949230194, -0.09665165841579437, 0.09155655652284622, -0.13260386884212494, -0.38428035378456116, -0.23108938336372375, -0.20634853839874268, 0.114342600107193, 0.30442580580711365, -0.095330148935318, 0.2873125374317169, 0.05380300432443619, -0.01862405240535736, -0.2581179141998291, -0.21840569376945496, -0.04085783660411835, -0.06571317464113235, 0.3458302617073059, 0.22567573189735413, 0.15342849493026733, -0.31610268354415894, -0.4476011097431183, 0.1856287121772766, -0.3521025478839874, 0.01319289393723011, -0.010282645002007484, -0.2513536214828491, -0.07360134273767471, -0.2039739340543747, -0.35678631067276, -0.22486071288585663, -0.5244269371032715, 0.12100127339363098, -0.08803186565637589, 0.025486405938863754, -0.20046892762184143, 0.4113256335258484, 0.14081867039203644, 0.09454213082790375, -0.1549757719039917, -0.08502130955457687, -0.14996248483657837, 0.2561531960964203, -0.15145574510097504, -0.26226091384887695, 0.21184533834457397, 0.036293551325798035, 0.4436074495315552, 0.14766313135623932, -0.4668453335762024, 0.11324890702962875, -0.1703420877456665, 0.4019271731376648, -0.23761001229286194, 0.13944700360298157, 0.15294554829597473, 0.02297343499958515, -0.1257244199514389, -0.09359085559844971, 0.1750563234090805, -0.15491977334022522, -0.09664308279752731, 0.20144371688365936, -0.02610747143626213, 0.37415921688079834, 0.08899180591106415, 0.8563291430473328, 0.13335135579109192, -0.21006371080875397, 0.3668721318244934, -0.11868607252836227, 0.04771358519792557, -0.1058400496840477, -0.04051409661769867, -0.0006611444987356663, -0.11325907707214355, -0.17447343468666077, 0.09115462005138397, -0.0774509608745575, -0.42991903424263, -0.12343015521764755, -0.043468259274959564, -0.2174079418182373, -0.29704755544662476, 0.0918411910533905, 0.08440256863832474, 0.2735458016395569, -0.026151753962039948, 0.11178707331418991, 0.07993477582931519, -0.08142002671957016, 0.11477828025817871, 0.09580738097429276, -0.2635534107685089, -0.09958121925592422, 0.006696000695228577, -0.1592135727405548, -0.5755106210708618, 0.3081704378128052, -0.07209345698356628, 0.21101970970630646, 0.10552610456943512, -0.047530610114336014, 0.12555941939353943, -0.306735098361969, 0.23295171558856964, 0.02593383938074112, 0.08481162786483765, 0.10561800003051758, 0.395943284034729, -0.5498259663581848, -0.08440358936786652, -0.31165197491645813, 0.15363509953022003, 0.04842512309551239, -0.22344648838043213, -0.3155819773674011, 0.01011855062097311, 0.044929809868335724, -0.0037301629781723022, 0.07577857375144958, -0.16745682060718536, -0.14014624059200287, -0.3107508420944214, -0.3001159131526947, 0.2657117247581482, 0.05459613353013992, -0.07115660607814789, -0.2593127489089966, -0.36923035979270935, -0.1346638947725296, 0.05191826820373535, -0.06843259930610657, 0.20794406533241272, -0.0031451648101210594, -0.33426421880722046, 0.2509547173976898, -0.2202291488647461, -0.23939067125320435, 0.5048851370811462, 0.4871196448802948, 0.2797048091888428, -0.11370177567005157, 0.10212612897157669, 0.12931984663009644, 0.2352687418460846, 0.17275014519691467, -0.20817561447620392, 0.12728732824325562, 0.12414547055959702, 0.24809284508228302, 0.06451092660427094, 0.11098567396402359, 0.21211135387420654, 0.10150452703237534, 0.05194814130663872, 0.18794363737106323, 0.5294044613838196, 0.05106406286358833, -0.014793649315834045, 0.5795117020606995, -0.0716310441493988, -0.13057149946689606, 0.39702755212783813, 0.07791269570589066, 0.7573956251144409, 0.3228813409805298, 0.031538225710392, 0.45580604672431946, -0.3723631501197815, 0.14107421040534973, -0.054076552391052246, 0.06044759973883629, -0.39837026596069336, 0.14083325862884521, 0.13827909529209137, -0.10420173406600952, 0.20343828201293945, 0.04943966865539551, 0.059908319264650345, 0.012539902701973915, 0.09225720167160034, 0.17785681784152985, -0.05520398169755936, 0.04125016927719116, -0.48797619342803955, -0.19883979856967926, -0.4290628433227539, 0.20458096265792847, -0.051717132329940796, 0.006924068555235863, -0.28715670108795166, 0.009703154675662518, -0.0127948559820652, -0.41504329442977905, -0.19219958782196045, 0.1970117688179016, -0.3822317123413086, 0.19433975219726562, -0.18646351993083954, -0.4484626054763794, 0.08017590641975403, 0.0771637111902237, -0.24332793056964874, 0.02323179319500923, -0.029848409816622734, 0.39652305841445923, 0.15924230217933655, -0.09016778320074081, 0.003728230483829975, -0.09620317071676254, -0.11892420053482056, -0.05667923390865326, -0.19484099745750427, 0.2710988521575928, -0.15885546803474426, -0.11714929342269897, 0.23820513486862183, 0.1779417097568512, -0.051043398678302765, -0.003123276401311159, -0.026859333738684654, -0.054278209805488586, -0.25779929757118225, -0.24516549706459045, 0.23968392610549927, 0.0390622541308403, -0.05267244577407837, 0.4699551463127136, -0.202684685587883, -0.07346009463071823, -0.14396390318870544, 0.40718546509742737, -0.1805363893508911, 0.08734050393104553, 0.2952738106250763, 0.38719335198402405, -0.16150882840156555, -0.2960985600948334, 0.1028909757733345, -0.216653972864151, -0.6418347954750061, 0.11211904138326645, 0.0738217905163765, 0.17293043434619904, 0.22508719563484192, 0.35139647126197815, 0.06841911375522614, 0.07427310943603516, 0.006798993796110153, -0.2069454789161682, -0.28002721071243286, 0.26905912160873413, 0.07972504198551178, 0.3790431618690491, 0.18892765045166016, -0.062045734375715256, -0.28890183568000793, -0.08893860876560211, -0.36121389269828796, 0.08288250118494034, -0.08434469252824783, 0.1562471091747284, -0.08232712745666504, -0.018185250461101532, 0.35242369771003723, 0.07168294489383698, 0.20254512131214142, 0.3710169792175293, -0.12751725316047668, -0.29085925221443176, -0.08582296967506409, 0.10447239130735397, 0.15078532695770264, -0.030813464894890785, 0.057164862751960754, -0.1878962367773056, -0.007583092898130417, -0.012635070830583572, 0.4217981696128845, 0.008888650685548782, -0.25520986318588257, -0.1618088185787201, 0.09339681267738342, -0.015588156878948212, -0.26139312982559204, 0.047724686563014984, -0.08904941380023956, 0.24238578975200653, -0.12758894264698029, 0.16591191291809082, 0.08763806521892548, -0.03672778978943825, 0.30327898263931274, -0.07952751964330673, -0.10409992933273315, 0.1583133041858673, 0.25639107823371887, -0.261430561542511, -0.3429202735424042, -0.3043280839920044, 0.355609655380249, 0.34354570508003235, -0.14234764873981476, -0.13884709775447845, 0.13739749789237976, 0.34007948637008667, -0.2259560227394104, -0.09908455610275269, -0.1306893229484558, 0.12365291267633438, 0.038657452911138535, -0.0518374964594841, -0.020016279071569443, -0.3674275875091553, 0.014669425785541534, 0.2008785903453827, 0.162344291806221, -0.42921561002731323, 0.03693414852023125, 0.18754926323890686, -0.06144437566399574, 0.03125438839197159, 0.2284463346004486, -0.08790843188762665, 0.3868619203567505, 0.351909339427948, -0.24000966548919678, 0.1494845598936081, 0.3559862971305847, 0.24116353690624237, 0.004687398672103882, -0.19334349036216736, -0.42284339666366577, -0.1271338164806366, 0.00440187007188797, 0.23120105266571045, 0.26832258701324463, 0.24980494379997253, 0.16073843836784363, 0.066536545753479, -0.21706391870975494, 0.10367536544799805, -0.2167053520679474, 0.07084836065769196, -0.3408721685409546, -0.06571464985609055, 0.16247440874576569, 0.07692098617553711, -0.023154836148023605, -0.018767833709716797, 0.4882988929748535, 0.2628176808357239, 0.05692129209637642, -0.424358069896698, 0.07474321126937866, 0.4096469283103943, 0.10702954977750778, -0.14520128071308136, 0.03261466324329376, 0.36943697929382324, -0.1423650085926056, -0.5029392242431641, 0.22569027543067932, 0.6805639863014221, 0.011639336124062538, -0.05354354903101921, 0.13706474006175995, 0.05106916278600693, -0.05392808839678764, -0.037666596472263336, 0.2070624679327011, 0.23151594400405884, 0.20960257947444916, 0.2088620960712433, 0.21104173362255096, -0.2808942198753357, 0.12037871778011322, 0.05717448517680168, 0.11137330532073975, -0.10134263336658478, -0.04344170540571213, -0.17888401448726654, -0.2337779998779297, -0.1604079008102417, 0.08106404542922974, -0.35252824425697327, 0.1289733201265335, 0.46548959612846375, -0.07047902047634125, -0.06465201079845428, -0.2939683794975281, 0.11921708285808563, -0.23047995567321777, 0.44001612067222595, 0.16745872795581818, 0.5127196311950684, -0.24147838354110718, -0.26259732246398926, -0.28262272477149963, 0.2087012529373169, -0.14130043983459473, 0.2597617208957672, -0.0856579914689064, -0.017834194004535675, -0.103156678378582, 0.12077420949935913, 0.4207606315612793, 0.030689625069499016, 0.10751660168170929, 0.7675437927246094, -0.30382004380226135, 0.02911606803536415, -0.1036117672920227, -0.32024914026260376, 0.1252758502960205, -0.4311881363391876, -0.07771208882331848, -0.3043493926525116, 0.04716186970472336, -0.2952396869659424, -0.17633908987045288, 0.21324053406715393, -0.03932181000709534, 0.879814088344574, 0.010181648656725883, 0.21009406447410583, -0.23258444666862488, -0.0004030466079711914, -0.28713566064834595, -0.4086979627609253, 0.07761949300765991, 0.08110207319259644, 0.0073468126356601715, 0.44917601346969604, -0.06993518769741058, -0.12252132594585419, -0.07828021794557571, -0.07652498036623001, -0.20056810975074768, -0.10703177750110626, 0.045681312680244446, 0.06542166322469711, -0.2442997694015503, 0.10977636277675629, -0.2578190863132477, 0.3242921233177185, 0.17113937437534332, 0.10154896229505539, -0.4387257695198059, -0.47819843888282776, 0.3871005177497864, -0.26180222630500793, -0.15491890907287598, 0.11403489112854004, 0.23626789450645447, 0.25483807921409607, -0.11640896648168564, -0.41603824496269226, 0.04688610881567001, 0.22182779014110565, -0.06727207452058792, -0.16322015225887299, 0.04483470693230629, 0.2471872866153717, -0.04870356246829033, -0.031640104949474335, 0.3576243817806244, 0.08457991480827332, -0.15841571986675262, 0.10597826540470123, -0.4384015202522278 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. Do you have a reproducer you could share? I'd like to test if the new versions that supposedly solve this actually do, but we don't have a way to test it...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
52
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 > Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. Do you have a reproducer you could share? I'd like to test if the new versions that supposedly solve this actually do, but we don't have a way to test it...
[ -0.5232232809066772, -0.02847505360841751, -0.05149774253368378, 0.1305069923400879, 0.0417378731071949, -0.1673724502325058, 0.11898872256278992, 0.01769065484404564, -0.062440112233161926, 0.1820984184741974, 0.007510838098824024, 0.6296741962432861, 0.017952702939510345, 0.04466335475444794, -0.11532284319400787, -0.09514938294887543, 0.28535890579223633, 0.20026986300945282, -0.2807163894176483, 0.20514945685863495, -0.2666647434234619, 0.3591361343860626, -0.34237390756607056, 0.15582628548145294, -0.06049882993102074, -0.3017633557319641, -0.20765836536884308, 0.1641680747270584, 0.01627979427576065, -0.26522210240364075, 0.39987045526504517, -0.31176650524139404, 0.1988564282655716, 0.47779083251953125, -0.00011838421050924808, -0.1619998812675476, 0.3430224657058716, 0.2573067247867584, -0.26255908608436584, -0.0283624529838562, -0.11593490093946457, 0.1797657012939453, 0.12482576072216034, -0.28071755170822144, 0.4579693078994751, 0.13452601432800293, -0.0539107471704483, 0.04080016165971756, 0.1000121682882309, 0.2908703088760376, 0.14055953919887543, 0.7729761600494385, 0.23944993317127228, 0.15345215797424316, 0.38031718134880066, -0.13134199380874634, -0.2903304994106293, 0.2830021381378174, 0.2951045632362366, -0.5123926997184753, 0.08998163789510727, 0.0240239966660738, -0.19380556046962738, 0.03843609243631363, 0.08097466826438904, 0.09851591289043427, 0.06337721645832062, -0.11349307000637054, -0.10949329286813736, -0.06375598162412643, 0.3433252274990082, -0.5873016119003296, -0.24260951578617096, 0.16193312406539917, 0.024764589965343475, -0.38327258825302124, 0.3571909964084625, 0.1525145322084427, -0.25500839948654175, 0.15331830084323883, 0.07917100936174393, 0.2384251207113266, -0.39190107583999634, 0.3318030834197998, -0.19403421878814697, 0.20705044269561768, 0.03940178081393242, 0.12793704867362976, 0.035252977162599564, 0.12161434441804886, 0.11497092992067337, -0.13237832486629486, -0.12337245047092438, 0.0680304765701294, -0.5481215119361877, -0.08918775618076324, -0.008734814822673798, 0.36918023228645325, 0.1495608687400818, 0.03023650124669075, 0.015726840123534203, -0.2463282346725464, 0.37761247158050537, 0.32904595136642456, 0.07609724998474121, -0.07913477718830109, -0.09682855755090714, -0.0918520912528038, 0.3926648497581482, -0.009064748883247375, -0.000033736228942871094, -0.07777537405490875, 0.12153425067663193, -0.2369973212480545, 0.4203087091445923, -0.06787123531103134, 0.400174617767334, -0.19219207763671875, -0.3950503170490265, 0.49213099479675293, -0.5312573313713074, 0.17001622915267944, -0.11102903634309769, 0.4030596613883972, 0.04855404049158096, -0.20250332355499268, 0.0993497371673584, 0.14237269759178162, -0.4303106665611267, 0.11320090293884277, -0.02888667769730091, 0.08032393455505371, -0.276848167181015, 0.016447095200419426, 0.11106972396373749, -0.3018849492073059, 0.13147971034049988, 0.31834346055984497, 0.15896174311637878, -0.3015521764755249, 0.1081562489271164, -0.025255855172872543, -0.29656195640563965, 0.2769589126110077, 0.1878444403409958, 0.13428190350532532, -0.17512357234954834, 0.03711192309856415, 0.05096777528524399, 0.37162160873413086, 0.03899596631526947, -0.36361294984817505, -0.44461295008659363, 0.17520347237586975, -0.18870757520198822, 0.0406322218477726, -0.03977546840906143, -0.29556024074554443, 0.2050342857837677, -0.15752050280570984, 0.1999644637107849, -0.32463574409484863, 0.2562074363231659, -0.14278534054756165, 0.037575118243694305, 0.17927300930023193, -0.2521364390850067, 0.1607767641544342, -0.24047274887561798, -0.22681662440299988, 0.1680101454257965, 0.3058954179286957, -0.08363572508096695, 0.037790797650814056, -0.3132307827472687, 0.12889643013477325, 0.02489752322435379, 0.09428954124450684, -0.4893142879009247, 0.333484411239624, -0.019200582057237625, -0.06996466964483261, -0.07105851918458939, 0.007761192042380571, -0.0871882438659668, -0.04214617609977722, -0.1394055187702179, -0.16882528364658356, -0.07402806729078293, 0.0343606099486351, -0.33681148290634155, -0.3214368522167206, 0.0006719678640365601, 0.23278914391994476, 0.27971675992012024, -0.1982317566871643, 0.37392890453338623, -0.15010446310043335, 0.3315342664718628, -0.13909751176834106, -0.14955557882785797, 0.0961180329322815, 0.4879818260669708, -0.22114069759845734, 0.03706861287355423, -0.28387928009033203, -0.5609263181686401, 0.1870567500591278, 0.10090185701847076, 0.19540880620479584, -0.15283547341823578, -0.07801473140716553, -0.11047661304473877, 0.4433787167072296, 0.07673218846321106, -0.02986496314406395, 0.05194869637489319, -0.08870643377304077, 0.05623207613825798, -0.025772832334041595, -0.2077409327030182, 0.10270748287439346, -0.5813892483711243, 0.17682428658008575, -0.052038248628377914, 0.32629135251045227, -0.16260193288326263, -0.5051853060722351, -0.0009106919169425964, -0.14740833640098572, 0.11801863461732864, 0.028240865096449852, -0.21483507752418518, 0.35957130789756775, -0.18493777513504028, 0.6230366826057434, -0.33042481541633606, 0.2757837772369385, 0.01246951799839735, -0.38190770149230957, -0.01849849708378315, 0.06557561457157135, 0.039675239473581314, 0.11277816444635391, 0.3277304768562317, 0.2810463309288025, -0.024857502430677414, 0.18711811304092407, -0.042267948389053345, -0.05530056357383728, -0.12117774039506912, -0.09856826066970825, 0.08391459286212921, 0.20842164754867554, 0.40303799510002136, 0.11961235105991364, 0.2068631649017334, -0.19606007635593414, -0.42674437165260315, -0.20997890830039978, 0.3286691904067993, -0.08277267217636108, 0.2149658203125, 0.02933875471353531, -0.1561051905155182, 0.08336219936609268, 0.586941123008728, -0.13301022350788116, 0.7154735922813416, 0.14922761917114258, -0.13486655056476593, 0.2809349000453949, -0.2588152289390564, -0.16290989518165588, 0.47567594051361084, 0.27615031599998474, 0.16200998425483704, 0.3481801748275757, 0.1829921305179596, 0.01761791482567787, -0.4950205981731415, -0.4096008539199829, -0.0805489718914032, 0.12921734154224396, -0.34439322352409363, 0.2711613178253174, -0.022576626390218735, 0.08392179757356644, -0.028277430683374405, 0.09639722108840942, -0.014663971960544586, -0.08233746141195297, 0.05427752435207367, 0.49827805161476135, -0.21671904623508453, 0.17695352435112, -0.05968639999628067, -0.093870148062706, -0.020027153193950653, -0.06409008800983429, -0.3279512822628021, -0.1705615222454071, -0.2752753794193268, 0.01234779879450798, 0.28998151421546936, -0.23669491708278656, 0.35309284925460815, 0.1551750749349594, -0.08584674447774887, -0.24528846144676208, -0.24696409702301025, 0.09952357411384583, -0.02482748031616211, 0.435588538646698, 0.2001340389251709, 0.028447754681110382, -0.2826174795627594, -0.45135751366615295, 0.09499800205230713, -0.3214881420135498, -0.012770239263772964, 0.048974938690662384, -0.2399437576532364, -0.02940039336681366, -0.23646672070026398, -0.25028806924819946, -0.08089674264192581, -0.30279022455215454, -0.007299266755580902, -0.354373037815094, 0.06331375986337662, -0.18271467089653015, 0.36817651987075806, 0.12172077596187592, 0.13928934931755066, -0.3886849284172058, -0.08290797472000122, -0.19354477524757385, 0.14811038970947266, -0.06714911758899689, -0.11677220463752747, 0.26055610179901123, 0.16240747272968292, 0.3546721041202545, 0.21791020035743713, -0.486900269985199, 0.31753358244895935, -0.06649787724018097, 0.4867823123931885, -0.14983786642551422, 0.09900462627410889, 0.1345662772655487, -0.1378556340932846, 0.057461656630039215, -0.046951960772275925, 0.02670339122414589, -0.27567005157470703, 0.05715451389551163, 0.35109415650367737, -0.12481734901666641, 0.4324266314506531, 0.11626352369785309, 0.7631565928459167, -0.030040232464671135, -0.25944995880126953, 0.25099846720695496, -0.0847683995962143, -0.11403702199459076, -0.03231148421764374, -0.06489145010709763, 0.13048550486564636, -0.18885311484336853, -0.4382203221321106, 0.11401644349098206, -0.06084400415420532, -0.5322717428207397, -0.10228446125984192, -0.06854616105556488, -0.30750805139541626, -0.2485705465078354, 0.04932253807783127, 0.21855555474758148, 0.35935845971107483, -0.11195448040962219, 0.023129649460315704, 0.22235539555549622, -0.05484027415513992, 0.15514440834522247, 0.26056772470474243, -0.15394684672355652, -0.1357535421848297, 0.10738590359687805, -0.2606426179409027, -0.5013806819915771, 0.2967628538608551, -0.015048651956021786, 0.2256612777709961, 0.050728555768728256, 0.06594861298799515, 0.13524754345417023, -0.2797469198703766, 0.3971877098083496, -0.01867983303964138, 0.10818491876125336, 0.057941894978284836, 0.4012954533100128, -0.23460659384727478, -0.2367435097694397, -0.28978750109672546, 0.18372727930545807, 0.10300007462501526, -0.1499829739332199, -0.042846422642469406, 0.13754121959209442, 0.04879319295287132, -0.11480524390935898, 0.07787062227725983, -0.37054288387298584, -0.14929458498954773, -0.29732653498649597, -0.24713629484176636, 0.4940357804298401, -0.05978911370038986, -0.0262422077357769, -0.30256256461143494, -0.37044352293014526, 0.07417253404855728, 0.0034712255001068115, 0.058161452412605286, 0.23889972269535065, -0.19345828890800476, -0.4754675328731537, 0.2674632966518402, -0.3930480480194092, -0.3248825967311859, 0.6335315704345703, 0.1556912213563919, 0.21747544407844543, -0.07673212885856628, 0.25922974944114685, 0.11168164014816284, 0.34754154086112976, 0.177811861038208, -0.24524426460266113, 0.12892599403858185, 0.13999171555042267, 0.18039654195308685, 0.04175153002142906, -0.02577790431678295, 0.2640838623046875, 0.20833805203437805, -0.0221115555614233, 0.35798633098602295, 0.3963986337184906, -0.0498804971575737, -0.05077873170375824, 0.4000289738178253, 0.009580627083778381, -0.16259603202342987, 0.3537849187850952, 0.017778590321540833, 0.7118673920631409, 0.19851918518543243, 0.0010406486690044403, 0.5038390159606934, -0.3790223002433777, 0.299940288066864, -0.12589097023010254, 0.18002291023731232, -0.3493117392063141, 0.19552181661128998, 0.04455356299877167, -0.12153713405132294, 0.37052884697914124, -0.012648016214370728, 0.027583789080381393, -0.11915913224220276, 0.10613037645816803, 0.2728165090084076, -0.006534602493047714, 0.017849259078502655, -0.5380859971046448, -0.14687837660312653, -0.502700686454773, 0.09437916427850723, -0.013142362236976624, 0.18515875935554504, -0.4255830943584442, 0.19542549550533295, 0.09318302571773529, -0.2773051857948303, -0.3611661195755005, 0.1532387137413025, -0.35308021306991577, 0.017306536436080933, -0.2297254204750061, -0.4575979709625244, 0.21024221181869507, 0.07498518377542496, -0.16396461427211761, 0.09477494657039642, 0.020984366536140442, 0.29111602902412415, 0.11358550190925598, 0.08099566400051117, 0.15790517628192902, -0.18712066113948822, -0.16593296825885773, -0.011135157197713852, -0.21331048011779785, 0.2966448962688446, -0.09117980301380157, -0.08534079790115356, 0.20792853832244873, -0.002321489155292511, -0.06372775137424469, -0.03597791865468025, 0.07927955687046051, -0.18433037400245667, -0.18175636231899261, -0.21397562325000763, 0.13629882037639618, -0.010717958211898804, -0.02247449941933155, 0.434439480304718, -0.5014504194259644, -0.026639871299266815, -0.1517517864704132, 0.37127959728240967, -0.14422917366027832, -0.04288746416568756, 0.11144182831048965, 0.4562523365020752, -0.041196227073669434, -0.20579293370246887, 0.1106354221701622, -0.25705796480178833, -0.5250729322433472, -0.01684299111366272, 0.03781062737107277, 0.30189818143844604, 0.20465894043445587, 0.17295421659946442, 0.12963013350963593, 0.08991014957427979, -0.0034614726901054382, -0.26887446641921997, -0.16513516008853912, 0.1904294788837433, 0.07654612511396408, 0.3562682569026947, 0.3348419666290283, 0.09661613404750824, -0.2396799623966217, -0.19477078318595886, -0.22085337340831757, 0.025835787877440453, -0.02463938295841217, 0.12155210971832275, 0.047145843505859375, 0.11501652002334595, 0.2880675494670868, -0.1463484764099121, 0.08020378649234772, 0.3511597514152527, -0.05583219975233078, -0.13862892985343933, -0.13936683535575867, 0.16289642453193665, 0.2146453559398651, 0.040844522416591644, 0.18526041507720947, -0.09804987907409668, 0.1411673128604889, 0.03890160471200943, 0.5420103669166565, -0.008277906104922295, -0.32266414165496826, -0.06405091285705566, 0.11841674149036407, 0.10241284966468811, -0.4322216510772705, 0.009655676782131195, -0.029972955584526062, 0.3213404417037964, 0.02829323336482048, 0.15412619709968567, 0.0694204568862915, -0.046403348445892334, 0.1417454034090042, -0.060550056397914886, -0.25313401222229004, 0.3335837423801422, 0.3733976185321808, -0.1982797235250473, -0.28463077545166016, -0.3242851495742798, 0.26385173201560974, 0.22102245688438416, -0.14283643662929535, -0.22725144028663635, 0.16482192277908325, 0.21880435943603516, -0.008504193276166916, -0.01692703180015087, -0.041258689016103745, 0.05119448900222778, -0.1025063768029213, 0.07441612333059311, -0.03501542657613754, -0.25052595138549805, -0.02660917490720749, 0.06868772953748703, 0.3102821409702301, -0.25479668378829956, -0.04686925560235977, 0.37538158893585205, -0.12226410210132599, 0.3306969106197357, 0.06023956835269928, -0.21054430305957794, 0.2903844118118286, 0.4118043780326843, -0.18599793314933777, 0.04776027798652649, 0.28330495953559875, 0.36814403533935547, 0.08368326723575592, -0.29100579023361206, -0.5055537223815918, -0.1219109296798706, -0.03322269022464752, 0.295015424489975, 0.21256330609321594, 0.09632270038127899, 0.15408922731876373, 0.0729990229010582, -0.21253646910190582, 0.016529420390725136, -0.28101128339767456, 0.054909225553274155, -0.3825623691082001, -0.059652477502822876, 0.22694972157478333, 0.13481976091861725, -0.18358014523983002, -0.06237836182117462, 0.4752882421016693, 0.23992891609668732, 0.018189802765846252, -0.41886991262435913, -0.0311756432056427, 0.34193849563598633, 0.044124215841293335, -0.12722089886665344, 0.09514188021421432, 0.2107522189617157, -0.18449315428733826, -0.6706635355949402, 0.09780461341142654, 0.7388325333595276, 0.013124315068125725, -0.03254624828696251, 0.13760250806808472, 0.17523111402988434, 0.19096805155277252, 0.10282141715288162, 0.06273110210895538, 0.2575452923774719, 0.4535793662071228, 0.0630401074886322, 0.07783175259828568, -0.11633007228374481, 0.17548403143882751, 0.33473843336105347, 0.08587817847728729, -0.3054065406322479, -0.20220321416854858, -0.10917042195796967, -0.22128573060035706, -0.07608423382043839, 0.2687731683254242, -0.31005749106407166, 0.09918904304504395, 0.44794759154319763, 0.08095284551382065, -0.023795386776328087, -0.10323921591043472, 0.04283708333969116, -0.21872982382774353, 0.4207010865211487, 0.3176121115684509, 0.49170881509780884, -0.4121113717556, -0.198001891374588, -0.1916186809539795, 0.23779386281967163, -0.11668035387992859, 0.4423898160457611, -0.044019173830747604, -0.024250153452157974, -0.20270147919654846, 0.1092619076371193, 0.41145074367523193, -0.03388581424951553, -0.039524585008621216, 0.8191968202590942, -0.2640928030014038, -0.17463548481464386, -0.1490183025598526, -0.4697050452232361, -0.05442354083061218, -0.3468973934650421, -0.030793558806180954, -0.2872266471385956, -0.11585180461406708, -0.39134520292282104, -0.13408643007278442, 0.23813241720199585, 0.0027841515839099884, 0.7907992005348206, 0.018447117879986763, 0.20864775776863098, -0.14881384372711182, -0.0026634186506271362, -0.1489325314760208, -0.29230186343193054, 0.16816312074661255, 0.0027267858386039734, -0.13167071342468262, 0.38550442457199097, -0.09246635437011719, -0.0971221774816513, -0.03905123472213745, -0.07014991343021393, -0.1297059804201126, -0.22162458300590515, -0.03715381398797035, -0.038826219737529755, -0.2891939878463745, 0.05836322531104088, -0.1925930380821228, 0.3830376863479614, 0.14016026258468628, 0.1621759980916977, -0.5560576319694519, -0.212687149643898, 0.14665015041828156, -0.33739274740219116, -0.12048614025115967, -0.08173572272062302, 0.2795173227787018, 0.16115015745162964, -0.08927369862794876, -0.39528709650039673, -0.08990039676427841, 0.24882163107395172, -0.060551390051841736, -0.15038903057575226, 0.054789744317531586, 0.3219752907752991, -0.003594491630792618, 0.07342274487018585, 0.2690296769142151, 0.08809797465801239, -0.1720004379749298, 0.2796584963798523, -0.5271034240722656 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi, No – sorry. It is part of a massive eco-system which cannot easily be shared. But I think the problem was summarized quite clearly: Windows does not allow a CreateThread while doing ExitProcess. The cleanup that gets called as part of the exit handler code tries to start a thread, the fatal-assert on that causes the crash, and in windows we get a very big dump file. The fix I applied simply removes that fatal assert, that solves the problem for me. I did not delve into the what the thread was trying to achieve and if that might cause issues when not executed during exit of the process. We did not notice anything of the kind. However, we *did* notice the many, many gigabytes of accumulated dumps of hundreds of processes 😊 I’ll try and upgrade to the latest AWS version and report my findings, but that will be after I return from a month of vacationing… * Regards – Ruurd Beerstra From: h-vetinari ***@***.***> Sent: Friday, 28 October 2022 02:09 To: huggingface/datasets ***@***.***> Cc: Ruurd Beerstra ***@***.***>; Comment ***@***.***> Subject: Re: [huggingface/datasets] Fatal error condition occurred in aws-c-io (Issue #3310) Sent by an external sender. Please be cautious about clicking on links and opening attachments. -------------------------------------------------------------------------------------------------------------------------------- Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. Do you have a reproducer you could share? I'd like to test if the new versions that supposedly solve this actually do, but we don't have a way to test it... — Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/3310#issuecomment-1294251331>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKYUE3SHHPC5AT7KQ4GDAJDWFMKRTANCNFSM5IQ3WG7Q>. You are receiving this because you commented.Message ID: ***@***.******@***.***>>
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
281
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 Hi, No – sorry. It is part of a massive eco-system which cannot easily be shared. But I think the problem was summarized quite clearly: Windows does not allow a CreateThread while doing ExitProcess. The cleanup that gets called as part of the exit handler code tries to start a thread, the fatal-assert on that causes the crash, and in windows we get a very big dump file. The fix I applied simply removes that fatal assert, that solves the problem for me. I did not delve into the what the thread was trying to achieve and if that might cause issues when not executed during exit of the process. We did not notice anything of the kind. However, we *did* notice the many, many gigabytes of accumulated dumps of hundreds of processes 😊 I’ll try and upgrade to the latest AWS version and report my findings, but that will be after I return from a month of vacationing… * Regards – Ruurd Beerstra From: h-vetinari ***@***.***> Sent: Friday, 28 October 2022 02:09 To: huggingface/datasets ***@***.***> Cc: Ruurd Beerstra ***@***.***>; Comment ***@***.***> Subject: Re: [huggingface/datasets] Fatal error condition occurred in aws-c-io (Issue #3310) Sent by an external sender. Please be cautious about clicking on links and opening attachments. -------------------------------------------------------------------------------------------------------------------------------- Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. Do you have a reproducer you could share? I'd like to test if the new versions that supposedly solve this actually do, but we don't have a way to test it... — Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/3310#issuecomment-1294251331>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKYUE3SHHPC5AT7KQ4GDAJDWFMKRTANCNFSM5IQ3WG7Q>. You are receiving this because you commented.Message ID: ***@***.******@***.***>>
[ -0.5608280897140503, -0.09233594685792923, -0.04112626612186432, 0.12283565104007721, 0.07065020501613617, -0.007627047598361969, -0.13015076518058777, -0.03248501941561699, 0.1784239560365677, 0.009046703577041626, -0.11684412509202957, 0.39103519916534424, -0.08151020109653473, 0.07985537499189377, -0.24581733345985413, 0.065282441675663, 0.06980157643556595, 0.13868805766105652, -0.34647536277770996, 0.20723508298397064, -0.4330975413322449, 0.2706242799758911, -0.03971779718995094, 0.10948467999696732, -0.18828199803829193, -0.18193666636943817, -0.1770249903202057, 0.4937785863876343, -0.10331752896308899, -0.2707419991493225, 0.16757258772850037, -0.28563451766967773, 0.255131334066391, 0.5621311068534851, -0.00011479151726234704, -0.150662362575531, 0.3159711956977844, 0.2077413946390152, -0.24454882740974426, 0.1317906379699707, -0.2885206937789917, 0.0831678956747055, -0.07063619792461395, -0.29797613620758057, 0.5717615485191345, 0.09821911156177521, -0.028553014621138573, -0.1940898299217224, 0.35035228729248047, 0.3505430519580841, 0.1829560101032257, 0.6721209287643433, 0.21866367757320404, 0.07455690205097198, 0.10872949659824371, 0.000846371054649353, -0.27124515175819397, 0.21370141208171844, 0.1911625862121582, -0.5183343887329102, -0.03220871835947037, -0.10568760335445404, -0.1056743711233139, 0.08020554482936859, -0.003401864320039749, -0.04967431351542473, 0.11314676702022552, -0.2261488139629364, 0.17406225204467773, 0.11097083240747452, 0.26348569989204407, -0.3826441168785095, -0.15660223364830017, 0.12646803259849548, 0.06692250072956085, -0.43349489569664, 0.3190602660179138, 0.39977920055389404, -0.29687929153442383, 0.26938876509666443, 0.020867696031928062, 0.15316376090049744, -0.30483531951904297, 0.1254541426897049, -0.05399125814437866, -0.08497634530067444, -0.10285957902669907, 0.05389508605003357, 0.06322059780359268, 0.37741953134536743, -0.06201114133000374, -0.22284306585788727, -0.132168248295784, 0.04938458278775215, -0.530059278011322, 0.08072194457054138, 0.19749411940574646, 0.311322957277298, 0.01763879880309105, 0.03419002145528793, -0.14283517003059387, -0.2571393847465515, 0.28057238459587097, 0.13412609696388245, 0.04013979434967041, -0.0920308530330658, -0.04537434130907059, -0.16142535209655762, 0.2161351591348648, -0.08899381756782532, 0.05732639506459236, -0.13036400079727173, 0.08856584876775742, -0.19631263613700867, 0.22454525530338287, -0.03240256384015083, 0.29216599464416504, -0.09516642987728119, -0.378766268491745, 0.567021369934082, -0.20794335007667542, 0.15237265825271606, -0.10842875391244888, 0.41606029868125916, 0.17842090129852295, -0.09969451278448105, 0.2372712343931198, 0.05260978266596794, -0.34423956274986267, 0.2520783245563507, -0.04020264372229576, 0.0024180039763450623, -0.25191575288772583, 0.1408945620059967, 0.08254501223564148, -0.15719079971313477, 0.09190556406974792, 0.22754094004631042, -0.0833827406167984, -0.21379519999027252, 0.24071267247200012, -0.13472114503383636, -0.02804528921842575, 0.34681436419487, 0.28775152564048767, 0.2149786800146103, -0.13996660709381104, 0.10651086270809174, 0.21116489171981812, 0.37611621618270874, 0.11397872865200043, -0.35048067569732666, -0.4851897954940796, 0.23936574161052704, -0.11737006902694702, 0.21080581843852997, -0.09625483304262161, -0.2428758591413498, 0.17240570485591888, 0.21305924654006958, 0.26675814390182495, -0.20703125, -0.004881307482719421, -0.18558843433856964, 0.023941045626997948, 0.33487600088119507, -0.24861009418964386, 0.0975508987903595, -0.4558773338794708, -0.2761048376560211, 0.1735285520553589, 0.4041403830051422, 0.06645551323890686, 0.38123998045921326, -0.4520041048526764, 0.14428572356700897, -0.15132269263267517, 0.1154417097568512, -0.31723886728286743, 0.3755568265914917, -0.2043810784816742, 0.1268962174654007, -0.0632663294672966, -0.1548827886581421, 0.048540517687797546, -0.1813834011554718, -0.047473035752773285, -0.3358162045478821, -0.06996063888072968, -0.10859113186597824, -0.2575131058692932, -0.37658029794692993, -0.2002132683992386, -0.01262396015226841, 0.2054755985736847, -0.039468683302402496, 0.3384794592857361, -0.1283218413591385, 0.42245450615882874, -0.14950762689113617, 0.04686877876520157, 0.24645893275737762, 0.5414113402366638, -0.190029576420784, -0.0829516276717186, -0.2515324354171753, -0.508373498916626, 0.15515366196632385, 0.2245630919933319, 0.24400892853736877, 0.006598636507987976, -0.02994769811630249, -0.2625386714935303, 0.37702327966690063, 0.15156684815883636, -0.07144911587238312, 0.10213649272918701, -0.00028255581855773926, -0.045300934463739395, -0.1311662793159485, -0.18727903068065643, 0.24481208622455597, -0.8604072332382202, 0.04706515371799469, -0.15902888774871826, 0.08326585590839386, -0.044798463582992554, -0.3298569917678833, -0.008843857795000076, -0.16261953115463257, -0.0394953116774559, 0.086711086332798, -0.18311870098114014, 0.24174261093139648, -0.12786336243152618, 0.5219081044197083, -0.14250227808952332, 0.3720724284648895, -0.16004538536071777, -0.30051538348197937, -0.03787526488304138, -0.05139834061264992, 0.1713310182094574, -0.16324540972709656, 0.14536215364933014, 0.18591147661209106, -0.1911744326353073, 0.12216243147850037, -0.03837141394615173, -0.08797764033079147, 0.04976120591163635, -0.17139995098114014, 0.06241323798894882, 0.0627439022064209, 0.38873839378356934, 0.32489410042762756, 0.05473360791802406, -0.1048845648765564, -0.13560743629932404, -0.35418111085891724, 0.2337290346622467, -0.05409269779920578, 0.10010519623756409, 0.18965885043144226, -0.04525814205408096, 0.09759168326854706, 0.4880073070526123, -0.02370442822575569, 1.0012037754058838, 0.0705355852842331, -0.03531040623784065, 0.32249829173088074, -0.08272556215524673, -0.14033064246177673, 0.43321284651756287, 0.1436818242073059, 0.0387895405292511, 0.47139301896095276, 0.023083286359906197, 0.032479606568813324, -0.525985836982727, -0.17023293673992157, -0.08938776701688766, 0.154210165143013, -0.3260266184806824, 0.05543319880962372, 0.1434394121170044, 0.25512897968292236, -0.08356381952762604, 0.24962975084781647, 0.25801196694374084, -0.05361935496330261, 0.028482701629400253, 0.3717838525772095, -0.3618568480014801, 0.0829438641667366, -0.2957850694656372, -0.026455849409103394, -0.04949132353067398, 0.23449671268463135, -0.3273695111274719, -0.1359236240386963, 0.014097506180405617, 0.05739649757742882, 0.2898499369621277, -0.14044344425201416, 0.4283035099506378, 0.2117815613746643, -0.13764506578445435, -0.33110806345939636, -0.14129260182380676, 0.00010972842574119568, 0.007371384650468826, 0.3329809904098511, 0.2044765204191208, 0.11881902813911438, -0.22103442251682281, -0.5522071719169617, -0.003732250304892659, -0.39003750681877136, -0.06878535449504852, -0.14982633292675018, -0.16864414513111115, -0.08049159497022629, -0.25214099884033203, -0.1974683403968811, -0.03636016696691513, -0.42602914571762085, 0.24113358557224274, -0.22425691783428192, -0.0722883939743042, -0.15362219512462616, 0.2229698747396469, 0.11436270922422409, 0.3097928762435913, -0.2560964822769165, -0.22843411564826965, -0.2968035936355591, 0.027551863342523575, -0.07264623790979385, -0.15814755856990814, 0.23087862133979797, 0.05159061402082443, 0.3899068534374237, 0.33832722902297974, -0.40103715658187866, 0.27911585569381714, -0.2325921505689621, 0.25460392236709595, -0.19659879803657532, 0.18403100967407227, -0.0046041980385780334, -0.1165204644203186, -0.003030974417924881, -0.07824474573135376, 0.16381123661994934, -0.15428560972213745, 0.06110965460538864, 0.3591385781764984, -0.17762845754623413, 0.5227047801017761, 0.10110212862491608, 0.579969048500061, 0.20050039887428284, 0.013139389455318451, 0.051763057708740234, 0.15155838429927826, 0.16528739035129547, -0.13655292987823486, -0.17895282804965973, 0.22243082523345947, -0.2029930055141449, -0.4451809525489807, 0.11806212365627289, -0.017454463988542557, -0.2990756332874298, 0.0996047705411911, 0.0974990576505661, -0.32431191205978394, -0.3073779344558716, 0.13531333208084106, 0.29674050211906433, 0.3880707621574402, -0.04432909935712814, -0.08283107727766037, 0.24262076616287231, -0.02895190194249153, 0.1302213817834854, 0.36432164907455444, -0.04074762016534805, -0.16003814339637756, -0.023310795426368713, 0.07538754492998123, -0.5821625590324402, 0.07345228642225266, -0.13679270446300507, 0.2664404511451721, 0.015898611396551132, 0.12050532549619675, 0.08464831113815308, -0.20013508200645447, 0.22878983616828918, 0.02579924836754799, 0.1321830302476883, 0.042717449367046356, 0.24223285913467407, -0.02783411741256714, -0.013331972062587738, -0.3633327782154083, 0.3191729784011841, 0.33624210953712463, -0.162069633603096, -0.08878040313720703, 0.13201314210891724, 0.08622393757104874, -0.14402242004871368, -0.03608185052871704, -0.37723076343536377, -0.028017550706863403, -0.38196247816085815, -0.3134382367134094, 0.37343907356262207, 0.17062458395957947, -0.136250302195549, -0.33613112568855286, -0.1705923229455948, -0.054049596190452576, -0.03989328816533089, 0.10651940107345581, 0.027590520679950714, -0.2762598395347595, -0.29804813861846924, 0.24551060795783997, -0.3640144467353821, -0.25552746653556824, 0.37311264872550964, 0.152744323015213, 0.058705128729343414, -0.11877025663852692, 0.2581539750099182, 0.03967048227787018, 0.2541005611419678, 0.31174227595329285, -0.11786947399377823, -0.002754218876361847, 0.18662738800048828, 0.1840398609638214, -0.3383377492427826, 0.10114534199237823, 0.23377421498298645, 0.09658671915531158, -0.036557577550411224, 0.30267801880836487, 0.3316851854324341, -0.04355718567967415, -0.0726558044552803, 0.6790445446968079, 0.12493327260017395, -0.1280079036951065, 0.1902700662612915, 0.022677205502986908, 0.8417922854423523, 0.16952913999557495, -0.23058366775512695, 0.4025132656097412, -0.5038535594940186, 0.11542721837759018, -0.025477590039372444, 0.11671901494264603, -0.23887072503566742, 0.0723508819937706, 0.11218297481536865, -0.0035234279930591583, 0.5044097900390625, 0.19393938779830933, 0.15669916570186615, -0.12308096885681152, 0.3817265033721924, 0.18579167127609253, 0.0522296279668808, 0.2648134231567383, -0.5236670970916748, -0.3192140460014343, -0.44110697507858276, 0.20281274616718292, 0.1118331030011177, 0.0650937482714653, -0.43921738862991333, 0.24900829792022705, 0.36920782923698425, -0.15317189693450928, -0.46792536973953247, -0.011863122694194317, -0.3234802484512329, 0.24806655943393707, -0.2938121557235718, -0.27719300985336304, 0.08597677946090698, 0.00270867720246315, -0.13071882724761963, 0.15622210502624512, 0.05235942453145981, 0.40956687927246094, 0.10336993634700775, 0.08491691946983337, 0.1371176838874817, -0.30231910943984985, -0.12203776836395264, 0.06741997599601746, -0.14230374991893768, 0.2068726122379303, -0.07176347821950912, -0.23778286576271057, 0.3756142258644104, 0.026247218251228333, -0.04457291215658188, -0.07021217793226242, -0.05583793669939041, -0.11421500146389008, -0.2820262908935547, -0.19597488641738892, 0.1723848581314087, 0.21130216121673584, -0.023287590593099594, 0.4714563190937042, -0.6499138474464417, -0.13722622394561768, -0.28809434175491333, 0.21935266256332397, -0.16960057616233826, -0.0849948450922966, 0.1587514579296112, 0.46042925119400024, -0.08847209811210632, -0.22897115349769592, -0.004504140466451645, -0.3142092823982239, -0.3753742575645447, 0.21425683796405792, 0.24751879274845123, 0.08414486050605774, 0.1729409545660019, 0.026098154485225677, 0.138756662607193, -0.0477648600935936, -0.03428298979997635, -0.25016671419143677, -0.2748866677284241, 0.05031460523605347, -0.015061616897583008, 0.3762529790401459, 0.22771421074867249, 0.05658404529094696, -0.3014391362667084, -0.012383276596665382, -0.28900110721588135, -0.06301452219486237, -0.0018903706222772598, 0.005847437307238579, 0.1920260190963745, -0.02289360761642456, 0.22884927690029144, -0.1651601344347, 0.060830093920230865, 0.49121856689453125, -0.03126832842826843, -0.1948128342628479, -0.12793077528476715, 0.1108376681804657, 0.2402874231338501, -0.06973638385534286, 0.13048769533634186, -0.1305842250585556, 0.022165270522236824, -0.07707889378070831, 0.5507326722145081, 0.27005091309547424, -0.25627338886260986, -0.09429243206977844, 0.1873154491186142, 0.04331260174512863, -0.2060156762599945, 0.025239553302526474, -0.03526202589273453, 0.27258771657943726, -0.13649308681488037, 0.0870334729552269, 0.18615205585956573, -0.022655609995126724, 0.29422545433044434, -0.04604911059141159, 0.0024510473012924194, 0.4107292890548706, 0.20870938897132874, 0.04800258204340935, -0.41202640533447266, -0.1716899573802948, 0.2259090691804886, 0.32580143213272095, -0.059935037046670914, -0.23369096219539642, 0.009151468053460121, 0.2266097515821457, 0.10367536544799805, 0.09300291538238525, -0.019591614603996277, -0.13735637068748474, -0.11431939899921417, 0.00962258130311966, -0.23239481449127197, -0.3243245482444763, -0.15241405367851257, 0.15807771682739258, 0.1584567129611969, -0.42143571376800537, 0.026099907234311104, 0.18923233449459076, -0.024035487323999405, 0.30854353308677673, -0.05327192693948746, -0.10725373029708862, 0.42488613724708557, 0.29899996519088745, 0.17067459225654602, 0.021049661561846733, 0.2409144937992096, 0.3145865797996521, 0.05134251341223717, -0.44888836145401, -0.5337337255477905, -0.2304498553276062, -0.3221433460712433, 0.5407323837280273, 0.10739032924175262, -0.1046956405043602, 0.08258555829524994, 0.1777544766664505, -0.3447798192501068, 0.031262461096048355, -0.3958023488521576, -0.09197741746902466, -0.19725143909454346, 0.06208827346563339, 0.36035966873168945, 0.24920418858528137, -0.07756467163562775, -0.04334118217229843, 0.19917181134223938, 0.06410529464483261, -0.05341161787509918, -0.13123781979084015, -0.0033098869025707245, 0.30209407210350037, -0.07732916623353958, -0.1585010141134262, -0.24492941796779633, 0.3408580422401428, 0.01820707693696022, -0.5593119859695435, 0.37458983063697815, 0.6303460001945496, 0.05603814870119095, -0.011268498376011848, 0.18745119869709015, 0.3921677768230438, 0.10711003839969635, -0.0683412253856659, 0.39403122663497925, 0.06872918456792831, 0.24979367852210999, -0.03850887715816498, 0.16506198048591614, -0.21252009272575378, -0.07030464708805084, 0.3046759366989136, -0.009105861186981201, -0.21116779744625092, -0.12912145256996155, -0.10363736748695374, -0.20624682307243347, 0.006273036822676659, 0.2537965178489685, -0.24205553531646729, 0.04066291078925133, 0.4753902852535248, -0.23449593782424927, 0.0715719610452652, -0.06656376272439957, 0.0992046520113945, -0.40069276094436646, 0.30761030316352844, 0.32231518626213074, 0.1574624478816986, -0.32080405950546265, -0.21020442247390747, -0.23513689637184143, 0.06314645707607269, -0.0766238123178482, 0.1918354630470276, -0.22274862229824066, 0.05401186645030975, -0.23485001921653748, 0.02128678932785988, 0.10216812789440155, -0.06174931302666664, -0.007945455610752106, 0.724873423576355, -0.20694215595722198, -0.02040601521730423, 0.01060432568192482, -0.46174514293670654, -0.06202125921845436, -0.3787190616130829, 0.089546337723732, 0.1918061524629593, 0.004601966589689255, -0.22419460117816925, -0.09214354306459427, 0.18502874672412872, 0.08403375744819641, 0.5044823288917542, 0.18077294528484344, 0.04321535676717758, -0.43158242106437683, -0.01299955602735281, -0.2379632294178009, -0.16231751441955566, 0.2250373363494873, 0.08736026287078857, -0.11293396353721619, 0.41770151257514954, -0.19996188580989838, 0.06390758603811264, -0.0804012268781662, -0.15791235864162445, -0.16112974286079407, -0.25947749614715576, -0.21893443167209625, 0.16312448680400848, -0.3971509635448456, 0.10116787254810333, -0.10413410514593124, 0.489286869764328, 0.08823687583208084, 0.2908661961555481, -0.32383424043655396, -0.29948922991752625, 0.1068255826830864, -0.20398947596549988, -0.17689098417758942, -0.048491280525922775, 0.2604844868183136, 0.1525537520647049, -0.00540020689368248, -0.3964711129665375, -0.09786540269851685, 0.14446379244327545, -0.1365959644317627, -0.16607332229614258, 0.12420552968978882, 0.027052681893110275, -0.014804325997829437, 0.07315097749233246, 0.32792675495147705, 0.1276818811893463, -0.22819635272026062, 0.29236066341400146, -0.25859665870666504 ]
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> No – sorry. It is part of a massive eco-system which cannot easily be shared. OK, was worth a try... > The fix I applied simply removes that fatal assert, that solves the problem for me. This seems to be what https://github.com/awslabs/aws-c-io/pull/515 did upstream. > I’ll try and upgrade to the latest AWS version and report my findings, but that will be after I return from a month of vacationing… caution: aws-sdk-cpp hasn't yet upgraded its bundled(?) aws-c-io and hence doesn't contain the fix AFAICT
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0
86
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS Exiting Application ``` ## Environment info - `datasets` version: 1.15.2.dev0 - Platform: Windows-10-10.0.22504-SP0 - Python version: 3.8.12 - PyArrow version: 6.0.0 > No – sorry. It is part of a massive eco-system which cannot easily be shared. OK, was worth a try... > The fix I applied simply removes that fatal assert, that solves the problem for me. This seems to be what https://github.com/awslabs/aws-c-io/pull/515 did upstream. > I’ll try and upgrade to the latest AWS version and report my findings, but that will be after I return from a month of vacationing… caution: aws-sdk-cpp hasn't yet upgraded its bundled(?) aws-c-io and hence doesn't contain the fix AFAICT
[ -0.5257655382156372, -0.1342376321554184, -0.15620966255664825, -0.011196210980415344, 0.02597537636756897, -0.2224206030368805, 0.1745506078004837, 0.14611150324344635, 0.149041086435318, 0.22458134591579437, 0.0947536826133728, 0.5475189685821533, 0.025451747700572014, 0.2535393536090851, -0.15494035184383392, 0.0702391266822815, 0.15619993209838867, 0.16375504434108734, -0.3927077651023865, 0.1825316697359085, -0.27456799149513245, 0.3633247911930084, -0.17975282669067383, -0.020979002118110657, -0.12414197623729706, -0.19827589392662048, -0.10689869523048401, 0.17112329602241516, -0.04615778475999832, -0.36824047565460205, 0.3034830689430237, -0.12961697578430176, 0.10917827486991882, 0.41750138998031616, -0.00010046694660559297, -0.034384939819574356, 0.3155782222747803, 0.16804298758506775, -0.2271050661802292, 0.046109914779663086, -0.12896263599395752, -0.07143692672252655, 0.10270878672599792, -0.2706592381000519, 0.22810229659080505, 0.18657517433166504, -0.07201738655567169, -0.18154053390026093, 0.24884511530399323, 0.3463034927845001, 0.31910666823387146, 0.6088542938232422, 0.2052074819803238, 0.0030488939955830574, 0.031408216804265976, -0.14862968027591705, -0.24401012063026428, 0.18831191956996918, 0.34887370467185974, -0.3499097228050232, 0.09119721502065659, 0.09963977336883545, -0.1835799515247345, 0.17704498767852783, 0.056508492678403854, -0.16485711932182312, 0.0793251320719719, -0.12942229211330414, 0.16474637389183044, -0.05978959798812866, 0.3351439833641052, -0.37263810634613037, -0.2038077861070633, 0.06606411188840866, 0.017452355474233627, -0.3864603340625763, 0.26920339465141296, 0.13836881518363953, -0.07597832381725311, 0.21680642664432526, 0.14399701356887817, 0.2600345313549042, -0.26064977049827576, 0.1119852215051651, -0.11647015810012817, 0.20633110404014587, -0.1680428683757782, 0.05010075867176056, -0.07662199437618256, -0.023627791553735733, -0.02029915153980255, -0.1694251000881195, -0.12540553510189056, 0.008586399257183075, -0.5411984920501709, -0.09473571181297302, 0.1650441288948059, 0.12343481183052063, 0.06432487070560455, 0.08849821984767914, 0.08346617966890335, -0.02264685556292534, 0.2211853563785553, 0.28413721919059753, 0.1347515881061554, 0.028789065778255463, -0.05165798217058182, 0.06923626363277435, 0.31903594732284546, 0.169906347990036, -0.0024878010153770447, -0.08113507926464081, 0.22923392057418823, -0.2930513322353363, 0.017959363758563995, -0.028264865279197693, 0.341016948223114, -0.11810076236724854, -0.4233955144882202, 0.41277366876602173, -0.23131927847862244, 0.25217851996421814, -0.033836591988801956, 0.3456725478172302, 0.10989920049905777, -0.03868524730205536, 0.1868838518857956, 0.06870313733816147, -0.3437122404575348, 0.12329200655221939, -0.19357678294181824, 0.026098115369677544, -0.1676655262708664, -0.02319861389696598, 0.1955011487007141, -0.18794800341129303, 0.21827365458011627, 0.1759190559387207, 0.1272466480731964, -0.27536606788635254, 0.08736149221658707, 0.06403219699859619, -0.2994195222854614, 0.3288043737411499, 0.20959605276584625, 0.07651910930871964, -0.04738195613026619, -0.06544478237628937, 0.11535488814115524, 0.16577622294425964, -0.04996785521507263, -0.2369571328163147, -0.2917187213897705, 0.3948775827884674, -0.11331342160701752, 0.09561271965503693, -0.14245754480361938, -0.14228637516498566, 0.20831575989723206, -0.1184941828250885, 0.19579340517520905, -0.1782803237438202, 0.15002034604549408, -0.09219951182603836, 0.07267379760742188, 0.18813279271125793, -0.12746986746788025, 0.11565399169921875, -0.3274737298488617, -0.09053777158260345, 0.1686631739139557, 0.2114928960800171, -0.1380445510149002, -0.030865631997585297, -0.39382484555244446, 0.09164784848690033, -0.14345669746398926, 0.025584165006875992, -0.3403358459472656, 0.35719284415245056, -0.13576047122478485, -0.08464492857456207, -0.09343940764665604, -0.1860847771167755, -0.04825625568628311, -0.11386661231517792, -0.07762497663497925, -0.193649023771286, 0.04166163504123688, 0.08156472444534302, -0.4866650700569153, -0.295656681060791, -0.030781105160713196, 0.0748026967048645, 0.23973825573921204, -0.0697760060429573, 0.32342299818992615, -0.19966313242912292, 0.31435132026672363, -0.07535664737224579, -0.02161317877471447, 0.22300837934017181, 0.44319966435432434, -0.23267264664173126, -0.03889380022883415, -0.11527802795171738, -0.46917420625686646, 0.24948441982269287, 0.18553413450717926, 0.18674524128437042, -0.0014163032174110413, -0.13092732429504395, -0.11932197213172913, 0.407970130443573, 0.03637344017624855, -0.17815975844860077, 0.27429911494255066, 0.01687740534543991, -0.02559828571975231, -0.08148877322673798, -0.22551891207695007, 0.19929133355617523, -0.6458357572555542, -0.00659702904522419, -0.12823206186294556, 0.1564951390028, -0.20752674341201782, -0.21552839875221252, 0.17284873127937317, -0.19876286387443542, 0.1768830120563507, 0.04285057634115219, -0.20218029618263245, 0.2556275725364685, -0.2416059970855713, 0.5747411251068115, -0.13162609934806824, 0.31465697288513184, -0.029995223507285118, -0.25530266761779785, 0.027587316930294037, 0.034550510346889496, 0.22547194361686707, -0.0518416166305542, 0.14639905095100403, 0.3369888663291931, -0.13357865810394287, 0.21944507956504822, 0.023435093462467194, 0.01296120323240757, 0.13470086455345154, -0.20586922764778137, 0.008453145623207092, 0.04241432249546051, 0.2981581687927246, 0.11143076419830322, 0.2322968691587448, -0.17892102897167206, -0.3473111093044281, 0.027837105095386505, 0.14765137434005737, 0.042882051318883896, 0.11548924446105957, 0.0650022029876709, -0.022018760442733765, -0.07650243490934372, 0.4980334937572479, 0.11643895506858826, 0.6952883005142212, 0.1395997852087021, -0.04368561878800392, 0.12158819288015366, -0.002647135406732559, -0.22129535675048828, 0.42918315529823303, 0.1801886260509491, -0.01070420816540718, 0.45181435346603394, 0.22597798705101013, -0.06994247436523438, -0.41998937726020813, -0.3517090380191803, 0.07832495868206024, 0.1691029667854309, -0.26538947224617004, 0.23326100409030914, -0.06802298873662949, 0.2196618914604187, 0.01821315661072731, 0.17257577180862427, 0.07100193202495575, -0.2407984435558319, 0.049199867993593216, 0.4410528838634491, -0.32925325632095337, 0.16354237496852875, -0.20360398292541504, 0.0549483597278595, -0.07427669316530228, 0.0865950733423233, -0.338060200214386, -0.19693423807621002, -0.154209166765213, 0.18019920587539673, 0.2657525837421417, -0.051315635442733765, 0.3079333007335663, 0.13236699998378754, -0.12523265182971954, -0.2495597004890442, -0.3163664638996124, 0.0355377197265625, -0.07231023162603378, 0.2769864499568939, 0.1838984191417694, 0.15767210721969604, -0.17403492331504822, -0.460127592086792, 0.05208086222410202, -0.40346577763557434, -0.01112285815179348, 0.037192266434431076, -0.1575508713722229, -0.15933950245380402, -0.3325587809085846, -0.3470970392227173, -0.11931651085615158, -0.45858314633369446, 0.07375889271497726, -0.19434961676597595, 0.02585890144109726, -0.04784368723630905, 0.3424544930458069, 0.12603625655174255, 0.3457077443599701, -0.2483677864074707, -0.30758795142173767, -0.3065577745437622, 0.06044861674308777, -0.1568373143672943, -0.2148120254278183, 0.17470362782478333, 0.16168801486492157, 0.49148306250572205, -0.0554673969745636, -0.4705955982208252, 0.176497682929039, -0.12028971314430237, 0.2795049846172333, -0.11093872785568237, 0.03958773985505104, 0.08859080821275711, -0.062055546790361404, -0.16308040916919708, -0.1732909381389618, 0.05163287743926048, -0.11383949965238571, 0.08148179203271866, 0.21007433533668518, -0.11550595611333847, 0.3395560383796692, 0.16333825886249542, 0.5549125075340271, 0.14729230105876923, -0.19286179542541504, 0.23969320952892303, 0.0716862753033638, 0.11413006484508514, -0.17332252860069275, -0.08490204066038132, 0.19773177802562714, -0.08519402146339417, -0.4091588258743286, 0.14629843831062317, -0.11569655686616898, -0.4289202392101288, -0.07616788148880005, 0.11934177577495575, -0.16129286587238312, -0.3163822293281555, -0.0034643467515707016, 0.15715298056602478, 0.26808246970176697, 0.03506539762020111, -0.034316159784793854, 0.006544340401887894, -0.005025771446526051, 0.007119772955775261, 0.27684640884399414, -0.2155424952507019, -0.16585321724414825, -0.10096801817417145, -0.1434231847524643, -0.5728483200073242, 0.3071426749229431, -0.21381685137748718, 0.23915669322013855, -0.06809587776660919, -0.005478352308273315, 0.13711017370224, -0.4143293797969818, 0.15697228908538818, -0.09658706933259964, 0.1354837417602539, 0.15506672859191895, 0.1840895712375641, -0.09677400439977646, -0.1436808854341507, -0.295421302318573, 0.26773127913475037, 0.23887866735458374, -0.13610845804214478, -0.1016303151845932, 0.010210641659796238, -0.04602941870689392, -0.17936863005161285, 0.0869750827550888, -0.20103636384010315, -0.058073095977306366, -0.3593965470790863, -0.28792276978492737, 0.2536168396472931, 0.11812909692525864, -0.051379621028900146, -0.3529239594936371, -0.24152971804141998, -0.10750792920589447, -0.036527119576931, 0.057969335466623306, 0.10180607438087463, -0.11471054702997208, -0.21553878486156464, 0.3762874901294708, -0.3574376106262207, -0.33456236124038696, 0.4935659170150757, 0.34690067172050476, 0.18038445711135864, 0.06050989776849747, 0.219892680644989, 0.08858382701873779, 0.18896815180778503, 0.2376709282398224, -0.2076166421175003, 0.03383129462599754, 0.1343177855014801, 0.30171799659729004, -0.11765281111001968, 0.13192442059516907, 0.14523404836654663, 0.17941415309906006, -0.045806411653757095, 0.16524307429790497, 0.3715982735157013, -0.058210909366607666, -0.13663873076438904, 0.4814448356628418, -0.15291081368923187, -0.1855640411376953, 0.3389143943786621, -0.04558289796113968, 0.6580764651298523, 0.34969764947891235, -0.12532325088977814, 0.319359689950943, -0.2911708950996399, 0.25621235370635986, -0.15064850449562073, 0.15954169631004333, -0.31788188219070435, 0.08873847126960754, 0.1450459063053131, 0.04161103442311287, 0.3008853495121002, 0.04668955132365227, 0.07455030083656311, -0.09967461973428726, 0.12357047200202942, 0.1907159686088562, -0.15889617800712585, 0.1858310103416443, -0.4801086187362671, -0.2589220404624939, -0.4686552584171295, 0.32815665006637573, -0.047487303614616394, 0.11428219079971313, -0.22674152255058289, 0.016374481841921806, 0.2316567599773407, -0.383878231048584, -0.3287825882434845, 0.20856642723083496, -0.29043373465538025, 0.23872092366218567, -0.267666220664978, -0.31468188762664795, 0.17612868547439575, 0.04977608844637871, -0.12236830592155457, 0.16917188465595245, -0.015297146514058113, 0.4195273220539093, 0.14115393161773682, 0.030731791630387306, -0.019552694633603096, -0.0956500694155693, -0.0889083743095398, -0.044325511902570724, -0.12461522221565247, 0.08784704655408859, -0.13612759113311768, -0.05817535147070885, 0.21877577900886536, 0.07558604329824448, -0.04329077899456024, -0.03442773595452309, 0.013702146708965302, 0.08593077212572098, -0.26933321356773376, -0.3080844581127167, 0.3047199547290802, -0.00820910930633545, -0.08997464925050735, 0.3980875015258789, -0.28624552488327026, -0.035864729434251785, -0.1079462319612503, 0.4617152810096741, -0.10658549517393112, -0.0492834597826004, 0.20416247844696045, 0.38682523369789124, -0.11163888871669769, -0.33495405316352844, 0.06790707260370255, -0.23647503554821014, -0.3456886112689972, 0.1407543420791626, 0.12835106253623962, 0.04650111496448517, 0.34119072556495667, 0.3154960572719574, 0.08684021234512329, 0.09666106849908829, 0.005827378481626511, -0.18360692262649536, -0.28027623891830444, 0.03085917979478836, -0.09775494039058685, 0.47311416268348694, 0.14520010352134705, 0.021266646683216095, -0.335636168718338, -0.03475358337163925, -0.45438680052757263, 0.008178378455340862, -0.15941251814365387, 0.004409803077578545, 0.10986238718032837, -0.06367496401071548, 0.26328274607658386, -0.08967694640159607, 0.22718334197998047, 0.41956788301467896, -0.13170911371707916, -0.3161553144454956, -0.09292452037334442, 0.07491625100374222, 0.1933610737323761, 0.04219172149896622, 0.07478030771017075, -0.11197827011346817, -0.07476246356964111, 0.004527607001364231, 0.4739331603050232, 0.07816653698682785, -0.24513326585292816, -0.13194289803504944, -0.16248847544193268, 0.11415772140026093, -0.1193496510386467, -0.015997853130102158, 0.08312387019395828, 0.2321879267692566, -0.05993296951055527, 0.06203334778547287, 0.09157688915729523, 0.013972550630569458, 0.222019761800766, -0.014436691999435425, -0.2707318663597107, 0.3561987280845642, 0.2839697003364563, -0.15139330923557281, -0.26802724599838257, -0.1469704508781433, 0.27404239773750305, 0.2446926087141037, -0.11349762231111526, -0.1074824407696724, 0.08522170037031174, 0.3851204812526703, -0.14439904689788818, -0.05308577045798302, -0.1517626792192459, 0.0833231657743454, 0.07412989437580109, -0.03637925535440445, 0.012150142341852188, -0.3606811761856079, 0.003177843987941742, 0.2444530427455902, 0.3303653597831726, -0.42768335342407227, 0.16704079508781433, 0.06979025900363922, -0.14956314861774445, 0.15271559357643127, 0.05190490186214447, -0.08931343257427216, 0.3164944648742676, 0.34337133169174194, -0.17364272475242615, 0.13946619629859924, 0.29129812121391296, 0.2191094160079956, 0.05709104239940643, -0.35439249873161316, -0.2618774473667145, -0.08631838858127594, -0.14547426998615265, 0.41028493642807007, 0.18221798539161682, 0.0866960883140564, -0.14473740756511688, 0.044129159301519394, -0.3483163118362427, 0.04525497183203697, -0.3708209991455078, 0.07509483397006989, -0.34103479981422424, -0.020462118089199066, 0.13110072910785675, 0.09710754454135895, 0.01962180808186531, 0.05262579768896103, 0.4948704242706299, 0.1167907565832138, -0.036127373576164246, -0.3629873991012573, -0.10517840832471848, 0.31476086378097534, 0.1908416748046875, -0.16432622075080872, 0.06466254591941833, 0.2551688551902771, -0.1562281847000122, -0.4988692104816437, 0.1744687557220459, 0.6900518536567688, 0.02944651059806347, 0.06434619426727295, 0.16726481914520264, 0.14901800453662872, 0.043357186019420624, -0.035575684159994125, 0.1671753227710724, 0.09481045603752136, 0.24629344046115875, 0.2124709039926529, 0.23671838641166687, -0.25027137994766235, 0.10221032053232193, 0.271183580160141, 0.1374276727437973, -0.14673598110675812, -0.17348453402519226, -0.09856565296649933, -0.04584447294473648, -0.16260850429534912, 0.21654997766017914, -0.3480050265789032, -0.13995949923992157, 0.3074403703212738, -0.07209451496601105, 0.08922794461250305, -0.21929270029067993, 0.17077124118804932, -0.2774905264377594, 0.3735271394252777, 0.08969292789697647, 0.10317671298980713, -0.2755555808544159, -0.17823204398155212, -0.26520806550979614, 0.13435325026512146, -0.005102559924125671, 0.28119519352912903, -0.22608040273189545, 0.03760088235139847, -0.08108607679605484, -0.08857417106628418, 0.21162718534469604, 0.0068404278717935085, 0.0518011599779129, 0.5827192068099976, -0.28233858942985535, 0.025445131585001945, -0.16260065138339996, -0.44415828585624695, 0.10545025765895844, -0.2614849805831909, -0.09234564006328583, -0.11133259534835815, 0.11216587573289871, -0.21853113174438477, -0.05973637476563454, 0.11226600408554077, -0.11858099699020386, 0.674538791179657, 0.1419006884098053, 0.2240944802761078, -0.38778695464134216, -0.07037051767110825, -0.2487119436264038, -0.4025391936302185, 0.07676175236701965, 0.05429353937506676, -0.029749248176813126, 0.39210766553878784, -0.028217094019055367, -0.06987230479717255, -0.05844726040959358, -0.20532003045082092, -0.06246781721711159, -0.20743969082832336, -0.11529859900474548, 0.12975731492042542, -0.290621280670166, 0.2233390063047409, -0.13544805347919464, 0.38963955640792847, 0.17732828855514526, 0.10723446309566498, -0.42000889778137207, -0.5007470846176147, 0.30480024218559265, -0.2224990576505661, -0.15951521694660187, 0.05367755889892578, 0.34845060110092163, 0.23112118244171143, -0.08983570337295532, -0.3829149007797241, -0.03702982887625694, 0.08298841863870621, -0.1521146595478058, -0.15955017507076263, 0.018136387690901756, 0.06855607032775879, -0.07453618943691254, -0.062286127358675, 0.3200238347053528, 0.18547561764717102, -0.169634148478508, 0.27085185050964355, -0.29852402210235596 ]