html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
67
24.7k
body
stringlengths
51
36.2k
โŒ€
comment_length
int64
16
1.45k
text
stringlengths
159
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/6280
Couldn't cast array of type fixed_size_list to Sequence(Value(float64))
Thanks for the quick response @mariosasko! I just installed your branch via `poetry add 'git+https://github.com/huggingface/datasets#fix-array_values'` and I can confirm it works on the example provided. Follow up question for you, should `None`s be supported in these types of features as they are in others? For example, the following script: ``` from datasets import Features, Value, Sequence, ClassLabel, Dataset dataset_features = Features({ 'text': Value('string'), 'embedding': Sequence(Value('double'), length=2), 'categories': Sequence(ClassLabel(names=sorted([ 'one', 'two', 'three' ]))), }) dataset = Dataset.from_dict( { 'text': ['A'] * 10000, "embedding": [None] * 10000, # THIS LINE CHANGED 'categories': [[0]] * 10000, }, features=dataset_features ) def test_mapper(r): r['text'] = list(map(lambda t: t + ' b', r['text'])) return r dataset = dataset.map(test_mapper, batched=True, batch_size=10, features=dataset_features, num_proc=2) ``` fails with ``` Traceback (most recent call last): File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/multiprocess/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1354, in _write_generator_to_queue for i, result in enumerate(func(**kwargs)): File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3493, in _map_single writer.write_batch(batch) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_writer.py", line 549, in write_batch array = cast_array_to_feature(col_values, col_type) if col_type is not None else col_values File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/table.py", line 1831, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/table.py", line 1831, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/table.py", line 2160, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type fixed_size_list<item: double>[2] to Sequence(feature=Value(dtype='float64', id=None), length=2, id=None) ``` Ideally we can have empty embedding columns as well!
### Describe the bug I have a dataset with an embedding column, when I try to map that dataset I get the following exception: ``` Traceback (most recent call last): File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map for rank, done, content in iflatmap_unordered( File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/multiprocess/pool.py", line 774, in get raise self._value TypeError: Couldn't cast array of type fixed_size_list<item: float>[2] to Sequence(feature=Value(dtype='float32', id=None), length=2, id=None) ``` ### Steps to reproduce the bug Here's a simple repro script: ``` from datasets import Features, Value, Sequence, ClassLabel, Dataset dataset_features = Features({ 'text': Value('string'), 'embedding': Sequence(Value('double'), length=2), 'categories': Sequence(ClassLabel(names=sorted([ 'one', 'two', 'three' ]))), }) dataset = Dataset.from_dict( { 'text': ['A'] * 10000, 'embedding': [[0.0, 0.1]] * 10000, 'categories': [[0]] * 10000, }, features=dataset_features ) def test_mapper(r): r['text'] = list(map(lambda t: t + ' b', r['text'])) return r dataset = dataset.map(test_mapper, batched=True, batch_size=10, features=dataset_features, num_proc=2) ``` Removing the embedding column fixes the issue! ### Expected behavior The mapping completes successfully. ### Environment info - `datasets` version: 2.14.4 - Platform: macOS-14.0-arm64-arm-64bit - Python version: 3.10.12 - Huggingface_hub version: 0.17.1 - PyArrow version: 13.0.0 - Pandas version: 2.0.3
234
Couldn't cast array of type fixed_size_list to Sequence(Value(float64)) ### Describe the bug I have a dataset with an embedding column, when I try to map that dataset I get the following exception: ``` Traceback (most recent call last): File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map for rank, done, content in iflatmap_unordered( File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/multiprocess/pool.py", line 774, in get raise self._value TypeError: Couldn't cast array of type fixed_size_list<item: float>[2] to Sequence(feature=Value(dtype='float32', id=None), length=2, id=None) ``` ### Steps to reproduce the bug Here's a simple repro script: ``` from datasets import Features, Value, Sequence, ClassLabel, Dataset dataset_features = Features({ 'text': Value('string'), 'embedding': Sequence(Value('double'), length=2), 'categories': Sequence(ClassLabel(names=sorted([ 'one', 'two', 'three' ]))), }) dataset = Dataset.from_dict( { 'text': ['A'] * 10000, 'embedding': [[0.0, 0.1]] * 10000, 'categories': [[0]] * 10000, }, features=dataset_features ) def test_mapper(r): r['text'] = list(map(lambda t: t + ' b', r['text'])) return r dataset = dataset.map(test_mapper, batched=True, batch_size=10, features=dataset_features, num_proc=2) ``` Removing the embedding column fixes the issue! ### Expected behavior The mapping completes successfully. ### Environment info - `datasets` version: 2.14.4 - Platform: macOS-14.0-arm64-arm-64bit - Python version: 3.10.12 - Huggingface_hub version: 0.17.1 - PyArrow version: 13.0.0 - Pandas version: 2.0.3 Thanks for the quick response @mariosasko! I just installed your branch via `poetry add 'git+https://github.com/huggingface/datasets#fix-array_values'` and I can confirm it works on the example provided. Follow up question for you, should `None`s be supported in these types of features as they are in others? For example, the following script: ``` from datasets import Features, Value, Sequence, ClassLabel, Dataset dataset_features = Features({ 'text': Value('string'), 'embedding': Sequence(Value('double'), length=2), 'categories': Sequence(ClassLabel(names=sorted([ 'one', 'two', 'three' ]))), }) dataset = Dataset.from_dict( { 'text': ['A'] * 10000, "embedding": [None] * 10000, # THIS LINE CHANGED 'categories': [[0]] * 10000, }, features=dataset_features ) def test_mapper(r): r['text'] = list(map(lambda t: t + ' b', r['text'])) return r dataset = dataset.map(test_mapper, batched=True, batch_size=10, features=dataset_features, num_proc=2) ``` fails with ``` Traceback (most recent call last): File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/multiprocess/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1354, in _write_generator_to_queue for i, result in enumerate(func(**kwargs)): File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3493, in _map_single writer.write_batch(batch) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_writer.py", line 549, in write_batch array = cast_array_to_feature(col_values, col_type) if col_type is not None else col_values File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/table.py", line 1831, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/table.py", line 1831, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/home/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/table.py", line 2160, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") TypeError: Couldn't cast array of type fixed_size_list<item: double>[2] to Sequence(feature=Value(dtype='float64', id=None), length=2, id=None) ``` Ideally we can have empty embedding columns as well!
[ 0.013585752807557583, -0.05202486738562584, -0.06949372589588165, -0.06194750964641571, 0.28900039196014404, 0.14561179280281067, 0.07460504025220871, 0.1989031583070755, -0.04872482270002365, -0.012759526260197163, 0.05155529826879501, -0.02075866237282753, 0.040338948369026184, -0.14798246324062347, -0.0015915909316390753, -0.06804890930652618, -0.022133711725473404, -0.14679394662380219, -0.07504342496395111, 0.006526406388729811, -0.22574707865715027, 0.022449765354394913, 0.09382826834917068, 0.013893123716115952, 0.06940803676843643, -0.19170384109020233, -0.06347329914569855, -0.01618434116244316, -0.06446842104196548, -0.12131110578775406, 0.08910967409610748, 0.012872559949755669, 0.09278897196054459, -0.1232227236032486, 0.0000050636976993700955, 0.0742587074637413, 0.13222050666809082, -0.11418358981609344, 0.10557256639003754, -0.052325379103422165, 0.07986646890640259, -0.061908185482025146, -0.03463030233979225, 0.024146929383277893, -0.09213889390230179, -0.10153389722108841, -0.20197202265262604, -0.04027089476585388, -0.04706144705414772, 0.06621939688920975, -0.004364021588116884, -0.10272663086652756, 0.13937881588935852, -0.14724990725517273, -0.12479860335588455, -0.057685405015945435, 0.10409322381019592, 0.016843905672430992, -0.10154350847005844, 0.13579517602920532, 0.010061201639473438, -0.0584094412624836, -0.11121700704097748, 0.03960985690355301, -0.13205403089523315, -0.0385197177529335, -0.0521516278386116, -0.052759524434804916, -0.024156536906957626, 0.1352076381444931, -0.1509324610233307, 0.09647519886493683, -0.11151092499494553, -0.05352269858121872, 0.09410391002893448, -0.14010228216648102, 0.0322679802775383, 0.14278987050056458, 0.008948532864451408, 0.02155180275440216, 0.04476616904139519, 0.06900037080049515, 0.05083676055073738, 0.08788250386714935, -0.1654738485813141, -0.08542709052562714, -0.1542038917541504, 0.20757605135440826, -0.03972911089658737, -0.17367735505104065, -0.10653814673423767, -0.0234190933406353, -0.036900632083415985, -0.018705526366829872, 0.10539429634809494, -0.020695816725492477, -0.0012242244556546211, -0.17273768782615662, 0.04513971135020256, -0.12797993421554565, -0.019709497690200806, -0.10736385732889175, 0.209915429353714, 0.04585777595639229, -0.055571991950273514, 0.0813790038228035, -0.15927031636238098, 0.13676655292510986, -0.013334467075765133, 0.10434794425964355, 0.005962960422039032, 0.03626951202750206, -0.08391251415014267, 0.0780668705701828, 0.1658056676387787, -0.0019187921425327659, 0.07284671068191528, 0.04106488078832626, -0.0789908692240715, 0.19620725512504578, -0.0652683898806572, 0.15764479339122772, 0.004112526308745146, 0.08460689336061478, 0.15584811568260193, 0.10879635810852051, 0.020880665630102158, 0.0618625171482563, 0.02920839563012123, 0.15748655796051025, -0.003925085533410311, 0.13417746126651764, 0.04554401710629463, -0.10361284017562866, 0.15617366135120392, 0.12364725023508072, 0.09536699205636978, -0.25651460886001587, 0.06648959219455719, -0.06755460798740387, -0.00891659501940012, -0.08973617106676102, 0.13416972756385803, -0.015022230334579945, 0.06591586023569107, -0.03566352650523186, 0.15224309265613556, 0.04647184908390045, -0.033757396042346954, 0.00538484426215291, -0.24937862157821655, 0.02409343235194683, -0.10142402350902557, -0.130084827542305, -0.11541673541069031, 0.14203669130802155, 0.17270682752132416, -0.24722100794315338, 0.040702205151319504, -0.11710770428180695, 0.027866173535585403, -0.028231246396899223, -0.003294516820460558, -0.14385771751403809, 0.05303465574979782, -0.08228393644094467, -0.07033072412014008, 0.05015141889452934, -0.11080898344516754, 0.11981679499149323, 0.2133321762084961, -0.03986986726522446, 0.03732330724596977, -0.09031011164188385, -0.0684608593583107, 0.10252071917057037, -0.18118123710155487, 0.11176784336566925, -0.250299870967865, -0.12134797871112823, -0.013811996206641197, -0.08201614767313004, 0.05709204077720642, -0.06173640862107277, 0.14816324412822723, 0.013264309614896774, 0.0991177037358284, 0.04579859972000122, -0.1829136162996292, -0.07392111420631409, 0.014518012292683125, -0.03943343460559845, 0.01102636568248272, -0.3326292335987091, -0.0496755950152874, 0.002354091266170144, -0.07584147155284882, 0.06746423244476318, -0.17769403755664825, -0.05502161756157875, 0.05817254260182381, -0.10932358354330063, 0.045936763286590576, -0.0034895804710686207, -0.032185088843107224, -0.1320340931415558, -0.09489505738019943, -0.11424681544303894, -0.03376607969403267, -0.08681230992078781, -0.24789667129516602, 0.13707932829856873, -0.11603197455406189, 0.07838307321071625, -0.07525942474603653, -0.01904238387942314, -0.008820750750601292, 0.009845097549259663, -0.06607762724161148, 0.16373179852962494, 0.017554285004734993, -0.07421332597732544, -0.05816390737891197, -0.07850331813097, -0.00871785543859005, -0.02401539869606495, -0.04612629860639572, -0.10821419209241867, -0.010830947197973728, 0.18308387696743011, -0.025595134124159813, -0.08019783347845078, 0.10527312755584717, 0.09700211882591248, -0.15516072511672974, -0.22850072383880615, -0.13251538574695587, -0.2066715806722641, -0.0025149143766611814, -0.0890476256608963, -0.1355251967906952, 0.17924338579177856, -0.10151797533035278, 0.10244423151016235, 0.0037893475964665413, 0.16723699867725372, -0.09585026651620865, 0.2409006506204605, 0.029741762205958366, 0.06816835701465607, 0.2815958261489868, 0.008496192283928394, -0.1874472200870514, -0.11431574821472168, 0.01129769068211317, -0.03679797053337097, -0.09750717133283615, 0.022684454917907715, 0.010895558632910252, -0.06307704746723175, 0.3730987012386322, 0.024512043222784996, 0.03475877642631531, -0.047114331275224686, 0.19518998265266418, -0.08720859885215759, -0.018216654658317566, -0.10049264132976532, 0.12740860879421234, 0.02092379704117775, 0.043367113918066025, -0.09079952538013458, -0.05820189416408539, 0.0018392240162938833, -0.02536400966346264, -0.1996711790561676, 0.026333056390285492, -0.06667393445968628, 0.08203426748514175, 0.300263375043869, -0.16416625678539276, 0.07856594771146774, 0.040038395673036575, -0.12356060743331909, -0.014423443004488945, 0.18233275413513184, -0.14084850251674652, 0.13200686872005463, -0.08977976441383362, 0.21853184700012207, 0.0013251391937956214, -0.011411482468247414, 0.0052984291687607765, -0.11066599190235138, -0.048738520592451096, -0.0939275473356247, -0.009447244927287102, -0.10711449384689331, 0.3155675530433655, 0.05901113152503967, 0.009413013234734535, 0.06785786151885986, -0.024900972843170166, -0.05150403454899788, 0.006774130277335644, -0.0210877638310194, 0.17430691421031952, 0.3206404447555542, -0.15387548506259918, -0.042624980211257935, -0.19779805839061737, -0.02500566653907299, -0.04735405370593071, 0.07161039113998413, 0.202052041888237, 0.054767243564128876, 0.02963404171168804, -0.00257251039147377, 0.13297304511070251, -0.1734389364719391, 0.03107129968702793, 0.1430893838405609, -0.10513701289892197, -0.006390358787029982, -0.02427765727043152, 0.100069060921669, -0.15843722224235535, -0.15007008612155914, -0.08580846339464188, 0.006252392195165157, 0.09826884418725967, -0.08239208906888962, -0.03861449658870697, -0.10440212488174438, 0.15966512262821198, -0.248751699924469, -0.1657373458147049, 0.20864716172218323, 0.1434715837240219, -0.07477358728647232, -0.05053858086466789, -0.06470464169979095, -0.060350451618433, -0.004848413169384003, 0.14723162353038788, -0.10239139944314957, -0.05007167160511017, -0.09738686680793762, -0.08340068906545639, -0.10103066265583038, -0.00771483825519681, 0.054607879370450974, 0.0931360051035881, -0.11263209581375122, -0.22935909032821655, 0.24028810858726501, -0.07680881023406982, 0.11110832542181015, -0.13060776889324188, 0.03456344082951546, 0.2055056095123291, 0.20076973736286163, 0.07907336205244064, 0.11408371478319168, -0.06507772207260132, 0.15931305289268494, 0.09318996220827103, -0.13198283314704895, -0.20423738658428192, -0.04160631448030472, -0.02306925505399704, 0.06242264434695244, -0.030421502888202667, -0.03258620575070381, -0.02764701098203659, -0.06882240623235703, 0.06904783099889755, -0.015804676339030266, 0.28144142031669617, 0.07721396535634995, 0.015922270715236664, -0.10854727029800415, -0.1306837797164917, 0.12074221670627594, 0.0008781602373346686, -0.05213493853807449, -0.1398162990808487, -0.20571918785572052, -0.27124732732772827, -0.013476983644068241, 0.22956082224845886, 0.04209240898489952, -0.10695454478263855, -0.0734432190656662, -0.01670452393591404, 0.11234937608242035, 0.27759599685668945, 0.07131903618574142, -0.006758164148777723, 0.09272251278162003, 0.2037762850522995, -0.014572514221072197, -0.03865839168429375, 0.027020955458283424, 0.12182337045669556, 0.18409377336502075, 0.04608443006873131, -0.06924420595169067, 0.05287827551364899, 0.0755927637219429, 0.019797848537564278, 0.08007954061031342, 0.036519356071949005, 0.034310679882764816, 0.06431441754102707, -0.08323830366134644, 0.05802907049655914, 0.10124585777521133, 0.03265659883618355, -0.31885525584220886, -0.15096576511859894, -0.21424764394760132, 0.14913254976272583, 0.22564788162708282, -0.16241511702537537, -0.09685371071100235, -0.019308701157569885, -0.12646320462226868, 0.1197507381439209, -0.016353923827409744, 0.1228809580206871, 0.022056318819522858, 0.057185884565114975, -0.05195920541882515, 0.12644749879837036, -0.09742384403944016, 0.20922282338142395, 0.07375091314315796, 0.11930260062217712, 0.03394424170255661, -0.25265729427337646, -0.0523124597966671, 0.0016443409258499742, -0.15649360418319702, 0.024314148351550102, -0.16789433360099792, -0.03018336556851864, 0.012846805155277252, -0.03326164186000824, 0.032513152807950974, 0.020930688828229904, -0.06283775717020035, 0.002086242660880089, -0.13263021409511566, 0.09614324569702148, 0.03496864065527916, 0.05015790835022926, -0.1784306764602661, -0.06785709410905838, 0.08683551102876663, 0.29089266061782837, -0.036879394203424454, -0.10506709665060043, 0.07270243763923645, 0.28345245122909546, 0.25333717465400696, 0.24313248693943024, 0.06324503570795059, 0.07813695073127747, 0.1754007339477539, 0.0796438530087471, 0.006151179783046246, 0.042622894048690796, 0.12930716574192047, -0.0068291546776890755, -0.11931895464658737, 0.09031517803668976, 0.043094318360090256, -0.07755589485168457, -0.0226368959993124, -0.050691910088062286, -0.0967194214463234, -0.011893779039382935, -0.2426801323890686, 0.15684373676776886, 0.21135413646697998, 0.004650142975151539, 0.021259529516100883, -0.06647387146949768, -0.08788648992776871, -0.13914470374584198, -0.048602987080812454, -0.0740170106291771, -0.05618366599082947, 0.16296441853046417, -0.08354699611663818, 0.1691226065158844, 0.11577538400888443, -0.013032888993620872, -0.023474043235182762, -0.006003233138471842, -0.013605731539428234, -0.037559874355793, -0.030791763216257095, -0.1055222898721695, -0.01915828324854374, -0.002404426923021674, 0.051812827587127686, 0.13816282153129578, 0.0331878587603569, 0.012709514237940311, 0.20868192613124847, -0.0424860343337059, -0.05622416362166405, -0.020788168534636497, 0.04631819203495979, -0.14805756509304047, -0.03282516822218895, 0.03797397390007973, 0.12946298718452454, 0.1148097813129425, -0.013119950890541077, 0.0970068871974945, -0.08870074898004532, -0.04647926241159439, 0.11717614531517029, 0.017078842967748642, -0.01244821585714817, 0.22094516456127167, 0.2324276715517044, 0.03921188786625862, 0.1932229846715927, 0.16887561976909637, -0.05236072838306427, -0.05913478136062622, 0.06829480081796646, 0.02983175404369831, -0.09075985848903656, -0.01941438764333725, -0.14626234769821167, -0.04115721955895424, -0.22882623970508575, -0.04853039234876633, 0.05643691122531891, 0.23822414875030518, 0.07093682140111923, -0.09792106598615646, -0.14457695186138153, -0.023363718762993813, -0.06416554003953934, -0.0918494239449501, 0.007894870825111866, -0.046961575746536255, -0.25762221217155457, 0.03627734258770943, -2.4007193125872566e-32, -0.07094909250736237, -0.07955271005630493, -0.058007579296827316, -0.1053110659122467, -0.1662980616092682, 0.07497261464595795, 0.05808854475617409, 0.19284145534038544, 0.1107151210308075, -0.1327497363090515, -0.05324173346161842, 0.02450604923069477, -0.03386475145816803, -0.01721423678100109, -0.05850826948881149, -0.08994186669588089, -0.005950881168246269, 0.1095002144575119, -0.010479318909347057, -0.027447285130620003, -0.01654815673828125, 0.11729296296834946, -0.011254790239036083, 0.13472570478916168, -0.05767672881484032, 0.19597956538200378, 0.02613718807697296, -0.13954134285449982, 0.23910051584243774, -0.1287463903427124, -0.025451231747865677, 0.19336359202861786, 0.09067317098379135, -0.07711870223283768, 0.011450449004769325, -0.14230728149414062, -0.10930440574884415, -0.04062537103891373, -0.04073599725961685, 0.0809590294957161, 0.06273037195205688, 0.11096978932619095, 0.05389799177646637, -0.06895729154348373, 0.0397140309214592, -0.021634189411997795, 0.07818353176116943, 0.011255878955125809, -0.004522286355495453, -0.0010953436139971018, 0.015161620453000069, -0.14049749076366425, -0.03942957520484924, 0.22666434943675995, 0.0603625550866127, -0.010208864696323872, 0.10301405191421509, 0.2475380152463913, -0.20238745212554932, -0.04970480874180794, 0.11538606137037277, 0.14982475340366364, 0.1261717677116394, -0.098228320479393, -0.08937861025333405, 0.1965179592370987, 0.2298455685377121, -0.05814787745475769, -0.034359391778707504, 0.011984565295279026, -0.07480107992887497, 0.07969264686107635, -0.028820516541600227, -0.07760217040777206, -0.09523501992225647, 0.09409867972135544, -0.12477351725101471, 0.13721932470798492, -0.040804412215948105, -0.1748008280992508, 0.03964336961507797, 0.11058732122182846, 0.1696723848581314, -0.08268588781356812, -0.08219882845878601, 0.008169778622686863, -0.026339983567595482, -0.06979503482580185, -0.021484173834323883, -0.12692907452583313, 0.03256740793585777, 0.05825541168451309, -0.09832290560007095, -0.041647836565971375, -0.2548733055591583, 0.1370851695537567, -0.12833940982818604, 0.08415605127811432, -0.10017876327037811, 0.03646218404173851, -0.021807486191391945, -0.12256946414709091, 0.10091797262430191, -0.01973746344447136, 0.1820097714662552, 0.21759042143821716, 0.09016453474760056, 0.03525480255484581, -0.12449365854263306, -0.09845691174268723, -0.025624478235840797, -0.08617030084133148, 0.04469200596213341, 0.21433255076408386, 0.07432551681995392, -0.08215317875146866, 0.05836240574717522, -0.04005599021911621, 0.09717436134815216, 0.14345599710941315, 0.013817078433930874, -0.07194402813911438, -0.08531744033098221, -0.04386487230658531, 0.026262301951646805, -0.062160514295101166, -0.1968606859445572, 0.0979476198554039, 0.036621760576963425, -0.07704698294401169, 0.08254260569810867, -0.07363002747297287, 7.10938536485628e-7, -0.23125658929347992, 0.1230422854423523, -0.06543732434511185, -0.12409456074237823, -0.09702235460281372, 0.22192691266536713, -0.052092742174863815, 0.1823071837425232, -0.1000484898686409, 0.11253289878368378, 0.1647999882698059, -0.11875209212303162, -0.015019133687019348, -0.11911115795373917, 0.11324430257081985, -0.3345286548137665, -0.005868317559361458, 0.06262670457363129, -0.09213106334209442, -0.028460543602705002, 0.10352188348770142, 0.05887733772397041, 0.12423228472471237, -0.13131268322467804, 0.12865355610847473, -0.010091805830597878, -0.016166701912879944, -0.08487941324710846, 0.13565191626548767, -0.1879865676164627, -0.038570232689380646, -0.037129878997802734, -0.004561416804790497, 0.10984078049659729, -0.07369465380907059, -0.08875145018100739, -0.08380930870771408, -0.05415328964591026, 0.02658204175531864, 0.1514691561460495, -0.08915887027978897, 0.10439637303352356, 0.018480248749256134, 0.006057584658265114, 0.03878025710582733, -0.0573851577937603, -0.21638673543930054, 0.08175092935562134, -0.10579240322113037, 0.09800554066896439, -0.08085891604423523, 0.17564435303211212, 0.08769088238477707, 0.1961580216884613, 0.07419566065073013, 0.005560871679335833, 0.10022410750389099, -0.2958805561065674, 0.2467060685157776, -0.12420423328876495, -0.06397567689418793, 0.006265094969421625, -0.14322814345359802, -0.0028623121324926615, 0.016581689938902855, -0.20840109884738922, -0.12250542640686035, 1.6159409490214895e-34, -0.008224019780755043, 0.08334635198116302, 0.04748212546110153, -0.07177905738353729, -0.033707816153764725, -0.0024732565507292747, 0.18808713555335999, 0.0005893586785532534, 0.1229463517665863, -0.13205347955226898, -0.071082703769207 ]
https://github.com/huggingface/datasets/issues/6280
Couldn't cast array of type fixed_size_list to Sequence(Value(float64))
This part of PyArrow is buggy and inconsistent regarding features implemented across the types, so the only option is to operate on the Arrow buffer level to fix issues such as the above one.
### Describe the bug I have a dataset with an embedding column, when I try to map that dataset I get the following exception: ``` Traceback (most recent call last): File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map for rank, done, content in iflatmap_unordered( File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/multiprocess/pool.py", line 774, in get raise self._value TypeError: Couldn't cast array of type fixed_size_list<item: float>[2] to Sequence(feature=Value(dtype='float32', id=None), length=2, id=None) ``` ### Steps to reproduce the bug Here's a simple repro script: ``` from datasets import Features, Value, Sequence, ClassLabel, Dataset dataset_features = Features({ 'text': Value('string'), 'embedding': Sequence(Value('double'), length=2), 'categories': Sequence(ClassLabel(names=sorted([ 'one', 'two', 'three' ]))), }) dataset = Dataset.from_dict( { 'text': ['A'] * 10000, 'embedding': [[0.0, 0.1]] * 10000, 'categories': [[0]] * 10000, }, features=dataset_features ) def test_mapper(r): r['text'] = list(map(lambda t: t + ' b', r['text'])) return r dataset = dataset.map(test_mapper, batched=True, batch_size=10, features=dataset_features, num_proc=2) ``` Removing the embedding column fixes the issue! ### Expected behavior The mapping completes successfully. ### Environment info - `datasets` version: 2.14.4 - Platform: macOS-14.0-arm64-arm-64bit - Python version: 3.10.12 - Huggingface_hub version: 0.17.1 - PyArrow version: 13.0.0 - Pandas version: 2.0.3
34
Couldn't cast array of type fixed_size_list to Sequence(Value(float64)) ### Describe the bug I have a dataset with an embedding column, when I try to map that dataset I get the following exception: ``` Traceback (most recent call last): File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map for rank, done, content in iflatmap_unordered( File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/multiprocess/pool.py", line 774, in get raise self._value TypeError: Couldn't cast array of type fixed_size_list<item: float>[2] to Sequence(feature=Value(dtype='float32', id=None), length=2, id=None) ``` ### Steps to reproduce the bug Here's a simple repro script: ``` from datasets import Features, Value, Sequence, ClassLabel, Dataset dataset_features = Features({ 'text': Value('string'), 'embedding': Sequence(Value('double'), length=2), 'categories': Sequence(ClassLabel(names=sorted([ 'one', 'two', 'three' ]))), }) dataset = Dataset.from_dict( { 'text': ['A'] * 10000, 'embedding': [[0.0, 0.1]] * 10000, 'categories': [[0]] * 10000, }, features=dataset_features ) def test_mapper(r): r['text'] = list(map(lambda t: t + ' b', r['text'])) return r dataset = dataset.map(test_mapper, batched=True, batch_size=10, features=dataset_features, num_proc=2) ``` Removing the embedding column fixes the issue! ### Expected behavior The mapping completes successfully. ### Environment info - `datasets` version: 2.14.4 - Platform: macOS-14.0-arm64-arm-64bit - Python version: 3.10.12 - Huggingface_hub version: 0.17.1 - PyArrow version: 13.0.0 - Pandas version: 2.0.3 This part of PyArrow is buggy and inconsistent regarding features implemented across the types, so the only option is to operate on the Arrow buffer level to fix issues such as the above one.
[ 0.013585752807557583, -0.05202486738562584, -0.06949372589588165, -0.06194750964641571, 0.28900039196014404, 0.14561179280281067, 0.07460504025220871, 0.1989031583070755, -0.04872482270002365, -0.012759526260197163, 0.05155529826879501, -0.02075866237282753, 0.040338948369026184, -0.14798246324062347, -0.0015915909316390753, -0.06804890930652618, -0.022133711725473404, -0.14679394662380219, -0.07504342496395111, 0.006526406388729811, -0.22574707865715027, 0.022449765354394913, 0.09382826834917068, 0.013893123716115952, 0.06940803676843643, -0.19170384109020233, -0.06347329914569855, -0.01618434116244316, -0.06446842104196548, -0.12131110578775406, 0.08910967409610748, 0.012872559949755669, 0.09278897196054459, -0.1232227236032486, 0.0000050636976993700955, 0.0742587074637413, 0.13222050666809082, -0.11418358981609344, 0.10557256639003754, -0.052325379103422165, 0.07986646890640259, -0.061908185482025146, -0.03463030233979225, 0.024146929383277893, -0.09213889390230179, -0.10153389722108841, -0.20197202265262604, -0.04027089476585388, -0.04706144705414772, 0.06621939688920975, -0.004364021588116884, -0.10272663086652756, 0.13937881588935852, -0.14724990725517273, -0.12479860335588455, -0.057685405015945435, 0.10409322381019592, 0.016843905672430992, -0.10154350847005844, 0.13579517602920532, 0.010061201639473438, -0.0584094412624836, -0.11121700704097748, 0.03960985690355301, -0.13205403089523315, -0.0385197177529335, -0.0521516278386116, -0.052759524434804916, -0.024156536906957626, 0.1352076381444931, -0.1509324610233307, 0.09647519886493683, -0.11151092499494553, -0.05352269858121872, 0.09410391002893448, -0.14010228216648102, 0.0322679802775383, 0.14278987050056458, 0.008948532864451408, 0.02155180275440216, 0.04476616904139519, 0.06900037080049515, 0.05083676055073738, 0.08788250386714935, -0.1654738485813141, -0.08542709052562714, -0.1542038917541504, 0.20757605135440826, -0.03972911089658737, -0.17367735505104065, -0.10653814673423767, -0.0234190933406353, -0.036900632083415985, -0.018705526366829872, 0.10539429634809494, -0.020695816725492477, -0.0012242244556546211, -0.17273768782615662, 0.04513971135020256, -0.12797993421554565, -0.019709497690200806, -0.10736385732889175, 0.209915429353714, 0.04585777595639229, -0.055571991950273514, 0.0813790038228035, -0.15927031636238098, 0.13676655292510986, -0.013334467075765133, 0.10434794425964355, 0.005962960422039032, 0.03626951202750206, -0.08391251415014267, 0.0780668705701828, 0.1658056676387787, -0.0019187921425327659, 0.07284671068191528, 0.04106488078832626, -0.0789908692240715, 0.19620725512504578, -0.0652683898806572, 0.15764479339122772, 0.004112526308745146, 0.08460689336061478, 0.15584811568260193, 0.10879635810852051, 0.020880665630102158, 0.0618625171482563, 0.02920839563012123, 0.15748655796051025, -0.003925085533410311, 0.13417746126651764, 0.04554401710629463, -0.10361284017562866, 0.15617366135120392, 0.12364725023508072, 0.09536699205636978, -0.25651460886001587, 0.06648959219455719, -0.06755460798740387, -0.00891659501940012, -0.08973617106676102, 0.13416972756385803, -0.015022230334579945, 0.06591586023569107, -0.03566352650523186, 0.15224309265613556, 0.04647184908390045, -0.033757396042346954, 0.00538484426215291, -0.24937862157821655, 0.02409343235194683, -0.10142402350902557, -0.130084827542305, -0.11541673541069031, 0.14203669130802155, 0.17270682752132416, -0.24722100794315338, 0.040702205151319504, -0.11710770428180695, 0.027866173535585403, -0.028231246396899223, -0.003294516820460558, -0.14385771751403809, 0.05303465574979782, -0.08228393644094467, -0.07033072412014008, 0.05015141889452934, -0.11080898344516754, 0.11981679499149323, 0.2133321762084961, -0.03986986726522446, 0.03732330724596977, -0.09031011164188385, -0.0684608593583107, 0.10252071917057037, -0.18118123710155487, 0.11176784336566925, -0.250299870967865, -0.12134797871112823, -0.013811996206641197, -0.08201614767313004, 0.05709204077720642, -0.06173640862107277, 0.14816324412822723, 0.013264309614896774, 0.0991177037358284, 0.04579859972000122, -0.1829136162996292, -0.07392111420631409, 0.014518012292683125, -0.03943343460559845, 0.01102636568248272, -0.3326292335987091, -0.0496755950152874, 0.002354091266170144, -0.07584147155284882, 0.06746423244476318, -0.17769403755664825, -0.05502161756157875, 0.05817254260182381, -0.10932358354330063, 0.045936763286590576, -0.0034895804710686207, -0.032185088843107224, -0.1320340931415558, -0.09489505738019943, -0.11424681544303894, -0.03376607969403267, -0.08681230992078781, -0.24789667129516602, 0.13707932829856873, -0.11603197455406189, 0.07838307321071625, -0.07525942474603653, -0.01904238387942314, -0.008820750750601292, 0.009845097549259663, -0.06607762724161148, 0.16373179852962494, 0.017554285004734993, -0.07421332597732544, -0.05816390737891197, -0.07850331813097, -0.00871785543859005, -0.02401539869606495, -0.04612629860639572, -0.10821419209241867, -0.010830947197973728, 0.18308387696743011, -0.025595134124159813, -0.08019783347845078, 0.10527312755584717, 0.09700211882591248, -0.15516072511672974, -0.22850072383880615, -0.13251538574695587, -0.2066715806722641, -0.0025149143766611814, -0.0890476256608963, -0.1355251967906952, 0.17924338579177856, -0.10151797533035278, 0.10244423151016235, 0.0037893475964665413, 0.16723699867725372, -0.09585026651620865, 0.2409006506204605, 0.029741762205958366, 0.06816835701465607, 0.2815958261489868, 0.008496192283928394, -0.1874472200870514, -0.11431574821472168, 0.01129769068211317, -0.03679797053337097, -0.09750717133283615, 0.022684454917907715, 0.010895558632910252, -0.06307704746723175, 0.3730987012386322, 0.024512043222784996, 0.03475877642631531, -0.047114331275224686, 0.19518998265266418, -0.08720859885215759, -0.018216654658317566, -0.10049264132976532, 0.12740860879421234, 0.02092379704117775, 0.043367113918066025, -0.09079952538013458, -0.05820189416408539, 0.0018392240162938833, -0.02536400966346264, -0.1996711790561676, 0.026333056390285492, -0.06667393445968628, 0.08203426748514175, 0.300263375043869, -0.16416625678539276, 0.07856594771146774, 0.040038395673036575, -0.12356060743331909, -0.014423443004488945, 0.18233275413513184, -0.14084850251674652, 0.13200686872005463, -0.08977976441383362, 0.21853184700012207, 0.0013251391937956214, -0.011411482468247414, 0.0052984291687607765, -0.11066599190235138, -0.048738520592451096, -0.0939275473356247, -0.009447244927287102, -0.10711449384689331, 0.3155675530433655, 0.05901113152503967, 0.009413013234734535, 0.06785786151885986, -0.024900972843170166, -0.05150403454899788, 0.006774130277335644, -0.0210877638310194, 0.17430691421031952, 0.3206404447555542, -0.15387548506259918, -0.042624980211257935, -0.19779805839061737, -0.02500566653907299, -0.04735405370593071, 0.07161039113998413, 0.202052041888237, 0.054767243564128876, 0.02963404171168804, -0.00257251039147377, 0.13297304511070251, -0.1734389364719391, 0.03107129968702793, 0.1430893838405609, -0.10513701289892197, -0.006390358787029982, -0.02427765727043152, 0.100069060921669, -0.15843722224235535, -0.15007008612155914, -0.08580846339464188, 0.006252392195165157, 0.09826884418725967, -0.08239208906888962, -0.03861449658870697, -0.10440212488174438, 0.15966512262821198, -0.248751699924469, -0.1657373458147049, 0.20864716172218323, 0.1434715837240219, -0.07477358728647232, -0.05053858086466789, -0.06470464169979095, -0.060350451618433, -0.004848413169384003, 0.14723162353038788, -0.10239139944314957, -0.05007167160511017, -0.09738686680793762, -0.08340068906545639, -0.10103066265583038, -0.00771483825519681, 0.054607879370450974, 0.0931360051035881, -0.11263209581375122, -0.22935909032821655, 0.24028810858726501, -0.07680881023406982, 0.11110832542181015, -0.13060776889324188, 0.03456344082951546, 0.2055056095123291, 0.20076973736286163, 0.07907336205244064, 0.11408371478319168, -0.06507772207260132, 0.15931305289268494, 0.09318996220827103, -0.13198283314704895, -0.20423738658428192, -0.04160631448030472, -0.02306925505399704, 0.06242264434695244, -0.030421502888202667, -0.03258620575070381, -0.02764701098203659, -0.06882240623235703, 0.06904783099889755, -0.015804676339030266, 0.28144142031669617, 0.07721396535634995, 0.015922270715236664, -0.10854727029800415, -0.1306837797164917, 0.12074221670627594, 0.0008781602373346686, -0.05213493853807449, -0.1398162990808487, -0.20571918785572052, -0.27124732732772827, -0.013476983644068241, 0.22956082224845886, 0.04209240898489952, -0.10695454478263855, -0.0734432190656662, -0.01670452393591404, 0.11234937608242035, 0.27759599685668945, 0.07131903618574142, -0.006758164148777723, 0.09272251278162003, 0.2037762850522995, -0.014572514221072197, -0.03865839168429375, 0.027020955458283424, 0.12182337045669556, 0.18409377336502075, 0.04608443006873131, -0.06924420595169067, 0.05287827551364899, 0.0755927637219429, 0.019797848537564278, 0.08007954061031342, 0.036519356071949005, 0.034310679882764816, 0.06431441754102707, -0.08323830366134644, 0.05802907049655914, 0.10124585777521133, 0.03265659883618355, -0.31885525584220886, -0.15096576511859894, -0.21424764394760132, 0.14913254976272583, 0.22564788162708282, -0.16241511702537537, -0.09685371071100235, -0.019308701157569885, -0.12646320462226868, 0.1197507381439209, -0.016353923827409744, 0.1228809580206871, 0.022056318819522858, 0.057185884565114975, -0.05195920541882515, 0.12644749879837036, -0.09742384403944016, 0.20922282338142395, 0.07375091314315796, 0.11930260062217712, 0.03394424170255661, -0.25265729427337646, -0.0523124597966671, 0.0016443409258499742, -0.15649360418319702, 0.024314148351550102, -0.16789433360099792, -0.03018336556851864, 0.012846805155277252, -0.03326164186000824, 0.032513152807950974, 0.020930688828229904, -0.06283775717020035, 0.002086242660880089, -0.13263021409511566, 0.09614324569702148, 0.03496864065527916, 0.05015790835022926, -0.1784306764602661, -0.06785709410905838, 0.08683551102876663, 0.29089266061782837, -0.036879394203424454, -0.10506709665060043, 0.07270243763923645, 0.28345245122909546, 0.25333717465400696, 0.24313248693943024, 0.06324503570795059, 0.07813695073127747, 0.1754007339477539, 0.0796438530087471, 0.006151179783046246, 0.042622894048690796, 0.12930716574192047, -0.0068291546776890755, -0.11931895464658737, 0.09031517803668976, 0.043094318360090256, -0.07755589485168457, -0.0226368959993124, -0.050691910088062286, -0.0967194214463234, -0.011893779039382935, -0.2426801323890686, 0.15684373676776886, 0.21135413646697998, 0.004650142975151539, 0.021259529516100883, -0.06647387146949768, -0.08788648992776871, -0.13914470374584198, -0.048602987080812454, -0.0740170106291771, -0.05618366599082947, 0.16296441853046417, -0.08354699611663818, 0.1691226065158844, 0.11577538400888443, -0.013032888993620872, -0.023474043235182762, -0.006003233138471842, -0.013605731539428234, -0.037559874355793, -0.030791763216257095, -0.1055222898721695, -0.01915828324854374, -0.002404426923021674, 0.051812827587127686, 0.13816282153129578, 0.0331878587603569, 0.012709514237940311, 0.20868192613124847, -0.0424860343337059, -0.05622416362166405, -0.020788168534636497, 0.04631819203495979, -0.14805756509304047, -0.03282516822218895, 0.03797397390007973, 0.12946298718452454, 0.1148097813129425, -0.013119950890541077, 0.0970068871974945, -0.08870074898004532, -0.04647926241159439, 0.11717614531517029, 0.017078842967748642, -0.01244821585714817, 0.22094516456127167, 0.2324276715517044, 0.03921188786625862, 0.1932229846715927, 0.16887561976909637, -0.05236072838306427, -0.05913478136062622, 0.06829480081796646, 0.02983175404369831, -0.09075985848903656, -0.01941438764333725, -0.14626234769821167, -0.04115721955895424, -0.22882623970508575, -0.04853039234876633, 0.05643691122531891, 0.23822414875030518, 0.07093682140111923, -0.09792106598615646, -0.14457695186138153, -0.023363718762993813, -0.06416554003953934, -0.0918494239449501, 0.007894870825111866, -0.046961575746536255, -0.25762221217155457, 0.03627734258770943, -2.4007193125872566e-32, -0.07094909250736237, -0.07955271005630493, -0.058007579296827316, -0.1053110659122467, -0.1662980616092682, 0.07497261464595795, 0.05808854475617409, 0.19284145534038544, 0.1107151210308075, -0.1327497363090515, -0.05324173346161842, 0.02450604923069477, -0.03386475145816803, -0.01721423678100109, -0.05850826948881149, -0.08994186669588089, -0.005950881168246269, 0.1095002144575119, -0.010479318909347057, -0.027447285130620003, -0.01654815673828125, 0.11729296296834946, -0.011254790239036083, 0.13472570478916168, -0.05767672881484032, 0.19597956538200378, 0.02613718807697296, -0.13954134285449982, 0.23910051584243774, -0.1287463903427124, -0.025451231747865677, 0.19336359202861786, 0.09067317098379135, -0.07711870223283768, 0.011450449004769325, -0.14230728149414062, -0.10930440574884415, -0.04062537103891373, -0.04073599725961685, 0.0809590294957161, 0.06273037195205688, 0.11096978932619095, 0.05389799177646637, -0.06895729154348373, 0.0397140309214592, -0.021634189411997795, 0.07818353176116943, 0.011255878955125809, -0.004522286355495453, -0.0010953436139971018, 0.015161620453000069, -0.14049749076366425, -0.03942957520484924, 0.22666434943675995, 0.0603625550866127, -0.010208864696323872, 0.10301405191421509, 0.2475380152463913, -0.20238745212554932, -0.04970480874180794, 0.11538606137037277, 0.14982475340366364, 0.1261717677116394, -0.098228320479393, -0.08937861025333405, 0.1965179592370987, 0.2298455685377121, -0.05814787745475769, -0.034359391778707504, 0.011984565295279026, -0.07480107992887497, 0.07969264686107635, -0.028820516541600227, -0.07760217040777206, -0.09523501992225647, 0.09409867972135544, -0.12477351725101471, 0.13721932470798492, -0.040804412215948105, -0.1748008280992508, 0.03964336961507797, 0.11058732122182846, 0.1696723848581314, -0.08268588781356812, -0.08219882845878601, 0.008169778622686863, -0.026339983567595482, -0.06979503482580185, -0.021484173834323883, -0.12692907452583313, 0.03256740793585777, 0.05825541168451309, -0.09832290560007095, -0.041647836565971375, -0.2548733055591583, 0.1370851695537567, -0.12833940982818604, 0.08415605127811432, -0.10017876327037811, 0.03646218404173851, -0.021807486191391945, -0.12256946414709091, 0.10091797262430191, -0.01973746344447136, 0.1820097714662552, 0.21759042143821716, 0.09016453474760056, 0.03525480255484581, -0.12449365854263306, -0.09845691174268723, -0.025624478235840797, -0.08617030084133148, 0.04469200596213341, 0.21433255076408386, 0.07432551681995392, -0.08215317875146866, 0.05836240574717522, -0.04005599021911621, 0.09717436134815216, 0.14345599710941315, 0.013817078433930874, -0.07194402813911438, -0.08531744033098221, -0.04386487230658531, 0.026262301951646805, -0.062160514295101166, -0.1968606859445572, 0.0979476198554039, 0.036621760576963425, -0.07704698294401169, 0.08254260569810867, -0.07363002747297287, 7.10938536485628e-7, -0.23125658929347992, 0.1230422854423523, -0.06543732434511185, -0.12409456074237823, -0.09702235460281372, 0.22192691266536713, -0.052092742174863815, 0.1823071837425232, -0.1000484898686409, 0.11253289878368378, 0.1647999882698059, -0.11875209212303162, -0.015019133687019348, -0.11911115795373917, 0.11324430257081985, -0.3345286548137665, -0.005868317559361458, 0.06262670457363129, -0.09213106334209442, -0.028460543602705002, 0.10352188348770142, 0.05887733772397041, 0.12423228472471237, -0.13131268322467804, 0.12865355610847473, -0.010091805830597878, -0.016166701912879944, -0.08487941324710846, 0.13565191626548767, -0.1879865676164627, -0.038570232689380646, -0.037129878997802734, -0.004561416804790497, 0.10984078049659729, -0.07369465380907059, -0.08875145018100739, -0.08380930870771408, -0.05415328964591026, 0.02658204175531864, 0.1514691561460495, -0.08915887027978897, 0.10439637303352356, 0.018480248749256134, 0.006057584658265114, 0.03878025710582733, -0.0573851577937603, -0.21638673543930054, 0.08175092935562134, -0.10579240322113037, 0.09800554066896439, -0.08085891604423523, 0.17564435303211212, 0.08769088238477707, 0.1961580216884613, 0.07419566065073013, 0.005560871679335833, 0.10022410750389099, -0.2958805561065674, 0.2467060685157776, -0.12420423328876495, -0.06397567689418793, 0.006265094969421625, -0.14322814345359802, -0.0028623121324926615, 0.016581689938902855, -0.20840109884738922, -0.12250542640686035, 1.6159409490214895e-34, -0.008224019780755043, 0.08334635198116302, 0.04748212546110153, -0.07177905738353729, -0.033707816153764725, -0.0024732565507292747, 0.18808713555335999, 0.0005893586785532534, 0.1229463517665863, -0.13205347955226898, -0.071082703769207 ]
https://github.com/huggingface/datasets/issues/6279
Batched IterableDataset
This is exactly what I was looking for. It would also be very useful for me :-)
### Feature request Hi, could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator. ### Motivation The current implementation loads each element of a batch individually which can be very slow in cases of a big batch_size. I did some experiments [here](https://discuss.huggingface.co/t/slow-dataloader-with-big-batch-size/57224) and using a batched iteration would speed up data loading significantly. ### Your contribution N/A
17
Batched IterableDataset ### Feature request Hi, could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator. ### Motivation The current implementation loads each element of a batch individually which can be very slow in cases of a big batch_size. I did some experiments [here](https://discuss.huggingface.co/t/slow-dataloader-with-big-batch-size/57224) and using a batched iteration would speed up data loading significantly. ### Your contribution N/A This is exactly what I was looking for. It would also be very useful for me :-)
[ -0.1476454734802246, 0.1132344976067543, -0.04827847704291344, -0.09739042073488235, -0.00937233678996563, 0.08001690357923508, 0.25656020641326904, 0.03638194873929024, 0.03297102451324463, 0.15329469740390778, -0.09521880745887756, -0.010468210093677044, -0.2030562460422516, -0.00994382705539465, 0.06039976701140404, -0.1819259226322174, -0.11659184098243713, -0.04933224990963936, -0.1311912089586258, -0.08047764748334885, 0.0029932144097983837, 0.1310422122478485, 0.056919220834970474, -0.13295218348503113, 0.15603014826774597, -0.022710151970386505, -0.14653287827968597, -0.060249630361795425, -0.051232628524303436, -0.16252823173999786, 0.059709582477808, 0.1524553745985031, 0.05317060649394989, 0.09462256729602814, 0.000005452321147458861, 0.11471102386713028, 0.00851023942232132, 0.03842981159687042, -0.1232207715511322, 0.16705884039402008, 0.272674024105072, 0.0034246945288032293, 0.008039864711463451, 0.04236466437578201, 0.007781829684972763, -0.04172399640083313, 0.06777244061231613, -0.09761952608823776, 0.07136533409357071, -0.14639726281166077, 0.03782068192958832, 0.16832642257213593, -0.1894499957561493, -0.16129110753536224, 0.10550492256879807, 0.17817145586013794, -0.02948714978992939, 0.1649235337972641, 0.07121347635984421, 0.07091329246759415, -0.0958680585026741, -0.01320498064160347, -0.007605308201164007, -0.11691770702600479, 0.002915207762271166, -0.14604292809963226, -0.13740754127502441, -0.05736057087779045, -0.0980367660522461, 0.04880199581384659, 0.0357334204018116, -0.26077911257743835, -0.17350582778453827, 0.05241892859339714, -0.14166507124900818, -0.21495410799980164, -0.16653969883918762, 0.04112062603235245, -0.10562531650066376, 0.052634622901678085, -0.057942889630794525, 0.007631157990545034, 0.024470554664731026, -0.07648417353630066, -0.045070111751556396, 0.06520511955022812, 0.04530617594718933, -0.05444493517279625, -0.008792123757302761, -0.03057068958878517, 0.21055592596530914, -0.13635125756263733, -0.05528054013848305, 0.06070428714156151, -0.11111678183078766, -0.06667573750019073, 0.019324742257595062, -0.2122986614704132, 0.17093400657176971, 0.015296326018869877, 0.16889046132564545, 0.06902401149272919, 0.056037772446870804, -0.05974775180220604, 0.1127931997179985, -0.16689012944698334, -0.08067047595977783, -0.18459264934062958, -0.03677025064826012, -0.029454154893755913, 0.0232095830142498, 0.019648391753435135, -0.02100936882197857, -0.07908065617084503, 0.07946295291185379, 0.08562566339969635, -0.00602145679295063, 0.27434125542640686, -0.09435224533081055, -0.22760160267353058, 0.12320411205291748, -0.11303550750017166, 0.11978932470083237, 0.05853196978569031, 0.09779778867959976, -0.022013073787093163, -0.11120259761810303, -0.012437601573765278, 0.017313780263066292, -0.0684623047709465, -0.09596046805381775, -0.058344680815935135, 0.09942816197872162, 0.004037604201585054, 0.28321778774261475, -0.021806534379720688, -0.017212551087141037, -0.22141550481319427, 0.033796221017837524, 0.058458369225263596, 0.12537631392478943, -0.014181852340698242, 0.051032308489084244, -0.15525178611278534, -0.016002507880330086, -0.05324425548315048, 0.02161775901913643, 0.18307285010814667, -0.12151283025741577, 0.11323506385087967, 0.0770038366317749, 0.20732027292251587, -0.08349166810512543, 0.09366708993911743, -0.12691374123096466, 0.07348913699388504, -0.017009615898132324, -0.07176554948091507, -0.2716573178768158, -0.09156437963247299, 0.13223274052143097, -0.0989256426692009, -0.03122345730662346, -0.02679280750453472, 0.0510716587305069, 0.23184341192245483, -0.08353286236524582, -0.03315132111310959, 0.043368492275476456, -0.1048780158162117, 0.06905141472816467, -0.0385708324611187, -0.10782109200954437, -0.009441089816391468, -0.18455934524536133, 0.15331842005252838, -0.062105096876621246, 0.11316964030265808, -0.11287159472703934, 0.12617816030979156, 0.14545322954654694, -0.005873711779713631, 0.17592452466487885, -0.04557435214519501, 0.16557610034942627, -0.19199034571647644, 0.10278692841529846, 0.10302112251520157, -0.23678630590438843, 0.09440977871417999, 0.11081498116254807, 0.05276257172226906, 0.17019665241241455, 0.10911974310874939, 0.0032576441299170256, 0.12307901680469513, -0.04276583716273308, -0.2496950477361679, 0.23714451491832733, -0.12236388027667999, -0.19257867336273193, -0.01077477727085352, 0.022629279643297195, -0.03983885794878006, 0.01808982528746128, -0.1630937159061432, -0.21362023055553436, 0.1803092658519745, 0.18941695988178253, -0.2665354311466217, 0.02225758694112301, 0.02001713216304779, 0.016745299100875854, -0.022166656330227852, -0.173811674118042, -0.0001248993503395468, -0.05424640327692032, 0.14823026955127716, 0.03702918812632561, -0.05526474863290787, -0.10861553251743317, 0.034238748252391815, 0.0049250125885009766, -0.06468821316957474, -0.0044160811230540276, 0.014152011834084988, 0.15779033303260803, -0.1225990280508995, 0.20067468285560608, -0.056925371289253235, -0.09614496678113937, -0.0757916197180748, 0.1525430530309677, 0.09153227508068085, -0.09752905368804932, 0.014987342059612274, 0.1541339010000229, -0.014343718998134136, 0.06474931538105011, 0.0906120240688324, -0.1727718561887741, -0.08892796188592911, -0.13559463620185852, -0.003325946629047394, -0.01654522307217121, 0.16193744540214539, -0.13251425325870514, 0.030589083209633827, 0.045323003083467484, -0.10342217236757278, 0.15319402515888214, 0.14742131531238556, -0.18882475793361664, 0.14137522876262665, -0.10816135257482529, -0.011891370639204979, 0.12673845887184143, -0.09805355966091156, -0.013496801257133484, 0.009395644068717957, 0.08503689616918564, 0.006419006735086441, -0.08083941787481308, 0.006010513752698898, 0.07973769307136536, 0.07134859263896942, 0.1768331378698349, -0.16507765650749207, 0.05016489699482918, 0.06962382048368454, 0.11288299411535263, 0.04423892870545387, 0.24554306268692017, -0.014706562273204327, -0.01182620320469141, -0.1433100402355194, -0.08360474556684494, 0.12755531072616577, 0.07500803470611572, -0.11601030826568604, -0.19275252521038055, -0.2020263522863388, 0.039706964045763016, -0.14185166358947754, 0.07742410898208618, -0.0942210704088211, 0.03745152801275253, -0.08757694065570831, -0.11756215244531631, -0.060720354318618774, 0.035518527030944824, 0.010200117714703083, -0.06245474889874458, 0.012016328051686287, 0.05167226120829582, -0.027436723932623863, -0.024070195853710175, 0.054807331413030624, 0.09864581376314163, -0.020312616601586342, -0.1311977207660675, 0.050387606024742126, 0.14496919512748718, 0.08534898608922958, 0.13216139376163483, -0.10404518991708755, 0.10669487714767456, 0.09281407296657562, -0.004789491184055805, -0.2300403118133545, 0.001080919522792101, 0.035008516162633896, 0.05110432952642441, -0.19919827580451965, 0.15798556804656982, -0.02283768728375435, -0.11383229494094849, -0.17539501190185547, 0.015243793837726116, -0.04401996359229088, 0.07356633991003036, -0.09776938706636429, -0.06027800962328911, -0.043845608830451965, -0.02185163088142872, 0.02003606967628002, -0.1383281648159027, -0.11454084515571594, 0.03297973796725273, -0.03227540850639343, -0.005977958906441927, 0.0591990128159523, 0.05553966760635376, 0.12485089898109436, 0.2066204994916916, -0.2107975035905838, -0.02491643652319908, -0.1022104024887085, 0.18998458981513977, -0.029267804697155952, 0.024229004979133606, -0.017021384090185165, -0.04395107552409172, -0.03681626543402672, 0.15259400010108948, -0.079279825091362, 0.10207445174455643, -0.03423253819346428, -0.03710528463125229, -0.09754765778779984, 0.041486285626888275, 0.04901847243309021, -0.021025363355875015, -0.06163192167878151, 0.04198227450251579, -0.05563205108046532, -0.16591928899288177, -0.009881050325930119, -0.24769356846809387, 0.16415613889694214, 0.003665153170004487, 0.1504743993282318, 0.21348732709884644, -0.1433037668466568, -0.11891862004995346, 0.09982487559318542, 0.2294231504201889, -0.03576577827334404, 0.10084079951047897, -0.2971752882003784, 0.04293779656291008, -0.08797764033079147, -0.03161495551466942, -0.005583600606769323, -0.09179733693599701, -0.12686528265476227, 0.031530264765024185, -0.02683088928461075, 0.17721876502037048, 0.00166680000256747, 0.17039485275745392, -0.2018781304359436, -0.012705570086836815, -0.05287667363882065, 0.06697546690702438, -0.05130978301167488, 0.014232729561626911, 0.0258872602134943, -0.2056877464056015, 0.2320759892463684, -0.044757261872291565, -0.031846221536397934, 0.0585954412817955, -0.2093454748392105, -0.12908458709716797, 0.06762028485536575, 0.12140849977731705, 0.09438066929578781, -0.0582592748105526, 0.04501425474882126, 0.08332378417253494, 0.2873448431491852, -0.018456637859344482, 0.1802741289138794, -0.04758847504854202, -0.031354233622550964, 0.04806460812687874, 0.0042089009657502174, 0.021141376346349716, 0.13285794854164124, 0.09685324877500534, 0.07647954672574997, -0.10012006014585495, -0.11794491857290268, 0.07876455783843994, -0.0951036885380745, -0.17204052209854126, -0.07031557708978653, 0.19979605078697205, -0.05243481695652008, -0.009548809379339218, -0.020597830414772034, 0.07519719749689102, 0.08481045812368393, 0.21447861194610596, 0.009874324314296246, -0.2308717668056488, 0.16581548750400543, 0.08742493391036987, 0.02827804535627365, -0.046746205538511276, 0.18758846819400787, 0.07637634128332138, 0.06070595979690552, 0.130270853638649, -0.012308014556765556, 0.05302552133798599, -0.044348832219839096, -0.07757661491632462, 0.03852935507893562, -0.07947151362895966, 0.0015205380041152239, 0.2792298197746277, -0.08698403090238571, -0.00020400056382641196, -0.16649514436721802, -0.15579579770565033, -0.09464206546545029, -0.10278836637735367, 0.06151646748185158, -0.21423551440238953, -0.2433701902627945, -0.19622941315174103, -0.07627056539058685, 0.1603308618068695, 0.04796050861477852, 0.17109039425849915, -0.1998770833015442, -0.12341852486133575, 0.01443744357675314, 0.010933568701148033, -0.03450895845890045, 0.01827245019376278, -0.016286436468362808, -0.09759622812271118, 0.2743179500102997, 0.04471360519528389, -0.11040201038122177, 0.014859626069664955, 0.010752690955996513, -0.07613959908485413, 0.06299085170030594, 0.015884721651673317, 0.03341181203722954, 0.23759816586971283, 0.005324951838701963, -0.08483696728944778, -0.031420186161994934, -0.05199543759226799, -0.024724269285798073, 0.2559240162372589, -0.1803802102804184, -0.07966507971286774, -0.04523216187953949, 0.016422905027866364, 0.1509554237127304, -0.10212975740432739, 0.08409541845321655, -0.20838510990142822, 0.21131904423236847, -0.013812045566737652, -0.21630032360553741, -0.11780012398958206, 0.03859347850084305, -0.011769931763410568, -0.025922907516360283, -0.07787303626537323, 0.0751863345503807, -0.14980463683605194, 0.17697158455848694, -0.045937567949295044, -0.005552538670599461, 0.15308444201946259, 0.0425264872610569, 0.027090858668088913, -0.23275291919708252, 0.04335533827543259, -0.015089922584593296, 0.08083167672157288, 0.10329370945692062, 0.022707922384142876, 0.021683698520064354, -0.037611812353134155, -0.02576798014342785, 0.06095894053578377, 0.18860679864883423, -0.1817271113395691, -0.012167571112513542, 0.0652308389544487, -0.025021083652973175, -0.039963047951459885, 0.02582009695470333, 0.08951796591281891, -0.09493768960237503, 0.013001768849790096, -0.021933769807219505, 0.14490483701229095, -0.040671456605196, -0.060193758457899094, 0.2019115835428238, -0.07669875025749207, 0.08571944385766983, 0.12710359692573547, 0.07707839459180832, -0.06948293000459671, 0.003424503840506077, 0.0912441685795784, -0.07453257590532303, 0.12424744665622711, -0.09520623832941055, 0.20353010296821594, -0.09709656983613968, 0.1387719213962555, -0.031161777675151825, -0.025070572271943092, -0.14877630770206451, -0.11090616136789322, 0.02350742183625698, -0.0620855949819088, 0.11031992733478546, 0.1316251903772354, 0.053100328892469406, -0.11194118112325668, -0.16638660430908203, 0.0023001073859632015, -2.6035604137132427e-32, 0.03471638262271881, 0.15323108434677124, 0.028846047818660736, 0.1792832911014557, 0.09290286898612976, -0.04206419363617897, -0.04027871415019035, -0.02655450627207756, 0.10882561653852463, 0.028453750535845757, -0.15020476281642914, 0.12824076414108276, 0.10578658431768417, -0.027054451406002045, -0.04524388536810875, 0.03128510341048241, 0.15847529470920563, 0.0709264725446701, -0.04047444462776184, 0.1817137598991394, 0.13313956558704376, -0.08740811049938202, 0.05179808288812637, 0.2164783477783203, -0.11323000490665436, 0.09733469784259796, -0.13205182552337646, 0.06620588153600693, -0.16390886902809143, -0.011962328106164932, -0.050778381526470184, 0.09481443464756012, -0.06500418484210968, -0.036876000463962555, -0.05918394774198532, 0.13910873234272003, -0.21004359424114227, -0.04836501553654671, -0.1083940640091896, 0.02190238982439041, 0.07697713375091553, 0.05868172273039818, 0.09280720353126526, -0.03767958655953407, 0.028069086372852325, 0.13655754923820496, -0.07129069417715073, 0.06729438155889511, -0.004155831877142191, -0.12835639715194702, 0.13633044064044952, 0.08896110951900482, -0.023593446239829063, 0.1277216374874115, 0.11397672444581985, 0.054773662239313126, 0.10750948637723923, 0.04363696649670601, -0.1644670069217682, -0.008577135391533375, 0.10286599397659302, 0.0189207810908556, -0.03808924928307533, 0.0004156766808591783, 0.24645639955997467, -0.06601428985595703, 0.18353575468063354, 0.09897950291633606, 0.18323984742164612, 0.1406688541173935, -0.12611030042171478, 0.016695933416485786, -0.06437211483716965, -0.042121317237615585, -0.24786517024040222, 0.11335959285497665, -0.05558071285486221, 0.041895896196365356, -0.0726224035024643, -0.01875312253832817, 0.022204048931598663, -0.031054699793457985, 0.09969482570886612, -0.0082233976572752, 0.007548058405518532, 0.04994610697031021, 0.0155066242441535, 0.14023250341415405, -0.007353540509939194, -0.025064140558242798, -0.08199092745780945, 0.1631254404783249, -0.059977058321237564, 0.022593814879655838, -0.11315025389194489, 0.20600676536560059, -0.08831130713224411, 0.03237179294228554, 0.023217247799038887, -0.12163055688142776, -0.02455049194395542, -0.04234502464532852, -0.04815690219402313, 0.07642056047916412, 0.047670766711235046, -0.025388354435563087, 0.09966003149747849, 0.10631333291530609, -0.3361113369464874, -0.006966473534703255, -0.10431943833827972, 0.05854976177215576, 0.026314139366149902, -0.008510979823768139, 0.1699938327074051, -0.006119470577687025, 0.12699536979198456, 0.047906141728162766, 0.11888333410024643, -0.06003987044095993, -0.13305561244487762, -0.12406723946332932, -0.036723874509334564, -0.011819644831120968, -0.04004712775349617, -0.004951339680701494, -0.04246961697936058, -0.20458777248859406, 0.1003226488828659, -0.24217341840267181, -0.058247849345207214, 0.06756331026554108, 7.202684741969279e-7, -0.11988082528114319, 0.03422139957547188, 0.1169641837477684, 0.08002238720655441, 0.016314120963215828, 0.04231131449341774, 0.10438331216573715, -0.05812797322869301, 0.08779529482126236, 0.18646442890167236, 0.12118522077798843, -0.06157444417476654, -0.024921108037233353, -0.034939952194690704, 0.02178444154560566, 0.03469913825392723, -0.1451507955789566, 0.21978183090686798, -0.03145155310630798, -0.1133875623345375, 0.09948471188545227, 0.1590396761894226, 0.0901372879743576, -0.12353792786598206, 0.013565422035753727, -0.009977849200367928, 0.040303751826286316, -0.03409241512417793, -0.033191148191690445, 0.0331977978348732, -0.01748768985271454, -0.04529174417257309, -0.09824797511100769, 0.016634879633784294, -0.05203252285718918, -0.048868607729673386, -0.09696794301271439, 0.06046213582158089, 0.04219774901866913, 0.07654870301485062, 0.12120582908391953, -0.09865222871303558, -0.08546295762062073, 0.022370481863617897, 0.17604492604732513, 0.1325557827949524, -0.08035995066165924, 0.1544588953256607, -0.19641050696372986, -0.03219643235206604, -0.06751126050949097, 0.11043072491884232, -0.007542972918599844, 0.2722356915473938, 0.009698184207081795, -0.009793099015951157, -0.17165738344192505, -0.05436893180012703, -0.042832691222429276, -0.20115984976291656, -0.09342999756336212, 0.11210592836141586, -0.10006190836429596, 0.005228265188634396, -0.07686179876327515, -0.016710316762328148, 0.04429987445473671, 2.398879994536006e-34, 0.05916658788919449, 0.04666569083929062, 0.08619215339422226, -0.05410261079668999, 0.02573755756020546, -0.07530021667480469, 0.021083205938339233, 0.06852314621210098, -0.1301189810037613, -0.18447840213775635, -0.20752578973770142 ]
https://github.com/huggingface/datasets/issues/6277
FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either.
`evaluate.load("paws-x", "es")` throws the error because there is no such metric in the `evaluate` lib. So, this is unrelated to our lib.
### Describe the bug I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follows: FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either. ### Steps to reproduce the bug https://colab.research.google.com/drive/11xUUFxloClpmqLvDy_Xxfmo3oUzjY5nx#scrollTo=kUn74FigzhHm ### Expected behavior The the trained model ### Environment info colab, "paws-x" dataset , DistilRoBERTa-base model
22
FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either. ### Describe the bug I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follows: FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either. ### Steps to reproduce the bug https://colab.research.google.com/drive/11xUUFxloClpmqLvDy_Xxfmo3oUzjY5nx#scrollTo=kUn74FigzhHm ### Expected behavior The the trained model ### Environment info colab, "paws-x" dataset , DistilRoBERTa-base model `evaluate.load("paws-x", "es")` throws the error because there is no such metric in the `evaluate` lib. So, this is unrelated to our lib.
[ 0.17501899600028992, 0.010684090666472912, -0.12697921693325043, -0.18182404339313507, 0.15205924212932587, 0.16004475951194763, 0.08504734933376312, 0.13752824068069458, 0.13427942991256714, 0.014860298484563828, -0.009862205013632774, 0.011818666942417622, -0.02322211116552353, 0.14375802874565125, 0.12569376826286316, 0.08859501034021378, 0.022197742015123367, 0.17294146120548248, -0.06228486821055412, 0.02074585109949112, 0.029146244749426842, 0.07651956379413605, -0.011682441458106041, -0.04108559712767601, -0.1305108666419983, -0.08943594247102737, -0.08367805182933807, 0.12959115207195282, -0.04707350209355354, -0.07857150584459305, 0.20733888447284698, 0.027346665039658546, 0.13816198706626892, 0.23305653035640717, 0.000006492572993010981, -0.008955312892794609, 0.09211072325706482, 0.11033056676387787, 0.07829546183347702, -0.223318949341774, 0.2521871328353882, 0.007783246226608753, 0.002466686302796006, 0.006334918551146984, 0.08126572519540787, -0.05550014227628708, 0.02758176252245903, 0.20333567261695862, -0.03961892053484917, 0.16127710044384003, 0.08394957333803177, 0.10674455016851425, 0.038384418934583664, -0.15996307134628296, 0.059332601726055145, -0.04514188691973686, -0.10494111478328705, 0.04265283793210983, -0.033900629729032516, -0.17336875200271606, 0.052288759499788284, 0.08094575256109238, 0.04525051265954971, -0.14739049971103668, -0.023644588887691498, 0.03805459290742874, 0.13086098432540894, -0.17210906744003296, -0.05617180094122887, 0.12622115015983582, -0.009905615821480751, 0.06857222318649292, -0.09105928987264633, -0.013721090741455555, -0.021108146756887436, -0.12149156630039215, 0.11871553212404251, 0.05715196952223778, 0.018090425059199333, 0.0039972178637981415, 0.038660649210214615, -0.16875573992729187, 0.026483705267310143, 0.13819065690040588, 0.015815377235412598, 0.11016492545604706, -0.14319846034049988, -0.12005266547203064, 0.047316085547208786, -0.041495196521282196, 0.26319509744644165, 0.10236825793981552, -0.023191647604107857, -0.17521041631698608, 0.11465375125408173, 0.015235219150781631, 0.1504562944173813, 0.06907980889081955, 0.014238692820072174, 0.045384764671325684, 0.06641833484172821, -0.1414669305086136, -0.09142791479825974, 0.1387728899717331, -0.009480577893555164, 0.21243062615394592, -0.08599089086055756, 0.007537612225860357, 0.054699961096048355, 0.13338060677051544, -0.05495474860072136, 0.06085731461644173, -0.1587151139974594, -0.11466371268033981, -0.01856395974755287, -0.05171803757548332, 0.06360176205635071, 0.039054516702890396, -0.05561380088329315, 0.0130986999720335, 0.03158622980117798, 0.1591212898492813, -0.08063486218452454, 0.1321904957294464, -0.01634076237678528, 0.08040548115968704, 0.06696611642837524, 0.10775011032819748, 0.006841836031526327, 0.05313364416360855, -0.09558374434709549, 0.22464732825756073, -0.16503827273845673, -0.13784419000148773, -0.017263337969779968, -0.04489533230662346, 0.03645288199186325, -0.23990347981452942, 0.1840336173772812, 0.011970131658017635, -0.15267744660377502, -0.1145244836807251, -0.2758561074733734, -0.04508434236049652, 0.13198958337306976, 0.030601777136325836, 0.09756025671958923, -0.12226405739784241, 0.003650429891422391, -0.03891144320368767, -0.10580340027809143, 0.07418694347143173, -0.20403510332107544, 0.02540973387658596, -0.09141027927398682, -0.00205794139765203, -0.1913570910692215, -0.07509292662143707, -0.16851173341274261, -0.08630572259426117, 0.045519471168518066, -0.14144150912761688, 0.01145605742931366, -0.0005716491723433137, 0.006432669702917337, 0.042154666036367416, 0.11159435659646988, 0.0024592396803200245, -0.0009261809755116701, -0.006062161643058062, 0.06016477569937706, 0.015408024191856384, -0.03744371235370636, 0.03128254413604736, -0.1842489391565323, 0.12595972418785095, 0.01794932223856449, -0.07072094827890396, -0.11022838950157166, 0.010869371704757214, 0.030172524973750114, 0.002601100131869316, 0.033438049256801605, -0.1337970644235611, 0.028081707656383514, 0.01826978474855423, -0.13496403396129608, -0.01668146252632141, 0.050957974046468735, -0.06673206388950348, -0.02085668034851551, -0.03697659447789192, 0.019283559173345566, -0.01069832593202591, 0.19525116682052612, -0.12078957259654999, 0.14437764883041382, -0.037030644714832306, 0.06686606258153915, -0.25234174728393555, 0.18290618062019348, -0.11025087535381317, -0.005295848473906517, 0.007874378003180027, 0.07368237525224686, 0.014274941757321358, 0.12874366343021393, 0.17696736752986908, -0.0567791685461998, -0.13659541308879852, -0.10727760940790176, -0.03473652899265289, -0.028183992952108383, 0.038423147052526474, -0.01807459630072117, -0.03264102339744568, 0.017304953187704086, -0.05561736971139908, 0.02292073331773281, 0.09717345237731934, 0.017237035557627678, 0.20649243891239166, 0.12317279726266861, 0.081444151699543, -0.08114700764417648, 0.069488026201725, -0.034847941249608994, -0.07535009831190109, 0.1498379111289978, 0.1474689543247223, -0.2162867933511734, 0.003444596193730831, 0.08059362322092056, -0.05562305822968483, 0.00747892027720809, -0.040777191519737244, 0.050559066236019135, -0.14208361506462097, 0.04067349433898926, 0.017590928822755814, -0.21517314016819, -0.0031612792517989874, -0.028892509639263153, 0.09873440116643906, 0.15796932578086853, -0.13055898249149323, -0.1925123929977417, -0.15001356601715088, -0.0066885934211313725, -0.026463499292731285, 0.17612861096858978, -0.10197155922651291, -0.11572455614805222, 0.1221870630979538, 0.1905021220445633, 0.017185483127832413, 0.12567533552646637, -0.026255717501044273, 0.020121265202760696, -0.17553359270095825, 0.21598011255264282, -0.01283276081085205, 0.002633169759064913, -0.040077876299619675, 0.041221678256988525, -0.034921277314424515, -0.13268440961837769, 0.004503236617892981, 0.1563832014799118, 0.09898104518651962, 0.0080560352653265, -0.004945208318531513, -0.10134429484605789, -0.025948775932192802, -0.056050557643175125, 0.0003291431348770857, -0.03070363961160183, 0.05525153502821922, 0.13170018792152405, -0.01643986627459526, -0.16333618760108948, 0.03784230351448059, 0.05262118577957153, -0.029198922216892242, -0.00981819536536932, -0.052716247737407684, -0.07396254688501358, -0.020462045446038246, 0.04535346478223801, 0.04231852665543556, -0.04865086451172829, 0.03777142986655235, 0.030365025624632835, 0.0561567097902298, -0.045834045857191086, -0.02496403083205223, 0.004826958291232586, -0.16687804460525513, 0.023132940754294395, -0.06367900222539902, -0.06524067372083664, 0.010251144878566265, -0.0788651555776596, -0.021327845752239227, -0.10047692805528641, 0.06531167775392532, 0.056259602308273315, -0.0067858765833079815, 0.052135713398456573, -0.1720116138458252, -0.03004392236471176, -0.20801356434822083, 0.027718279510736465, 0.11030293256044388, 0.018293965607881546, -0.2742811143398285, -0.022376958280801773, -0.10869351774454117, 0.07305554300546646, -0.11488400399684906, 0.011637589894235134, -0.1745961308479309, 0.014603360556066036, -0.0031492013949900866, -0.12421271204948425, 0.06635241955518723, -0.2707293927669525, -0.16335077583789825, 0.0196271650493145, -0.09564704447984695, -0.05719127133488655, -0.12788327038288116, -0.054039642214775085, -0.18165983259677887, -0.07901377230882645, -0.108664870262146, -0.044651616364717484, -0.1233547031879425, 0.2373315542936325, -0.06298276782035828, -0.08800879120826721, -0.003288127016276121, -0.13242600858211517, -0.039504725486040115, -0.056205395609140396, 0.020475542172789574, -0.21639186143875122, -0.018211225047707558, -0.14633913338184357, -0.2027209997177124, 0.16393235325813293, 0.13813184201717377, -0.016100361943244934, -0.11209763586521149, 0.07630272954702377, 0.008257437497377396, -0.09887814521789551, 0.05584731698036194, 0.17308293282985687, -0.07166466861963272, 0.12549804151058197, 0.16540665924549103, 0.00921852421015501, -0.09457121789455414, -0.07960116863250732, 0.1822805553674698, 0.07723693549633026, 0.10666680335998535, 0.0040413313545286655, -0.01778041012585163, 0.01227184385061264, 0.014346337877213955, 0.10494057089090347, 0.1084747165441513, 0.03770594298839569, 0.21480326354503632, -0.18786107003688812, -0.0857047513127327, 0.0875459760427475, 0.029051583260297775, -0.0075015355832874775, -0.06605109572410583, -0.028094885870814323, 0.11678572744131088, 0.0460207462310791, 0.04938294366002083, 0.051697250455617905, 0.20866110920906067, 0.15479837357997894, 0.09619707614183426, 0.0019812912214547396, 0.003798697842285037, -0.09046287834644318, -0.09495800733566284, -0.013376319780945778, -0.11266212910413742, -0.017245544120669365, 0.08886530995368958, -0.013312849216163158, 0.04856432229280472, -0.0013686282327398658, 0.22662511467933655, 0.14605356752872467, -0.08064643293619156, -0.06834590435028076, -0.08909613639116287, -0.04797358438372612, -0.1052546352148056, 0.13229842483997345, -0.1705387979745865, -0.09393581002950668, 0.018772786483168602, 0.11722734570503235, -0.036875076591968536, 0.05626853555440903, -0.09789474308490753, 0.060497019439935684, -0.10791901499032974, -0.1795111894607544, -0.16249269247055054, -0.02337110973894596, -0.10230232775211334, 0.002524877665564418, 0.13434840738773346, 0.011079281568527222, -0.09368044137954712, -0.009940319694578648, -0.13625767827033997, 0.1722177267074585, -0.025991234928369522, 0.03115718811750412, -0.08634187281131744, 0.1577405482530594, 0.05068671330809593, 0.061930954456329346, -0.041186679154634476, 0.14928990602493286, -0.2267669141292572, -0.10947751998901367, -0.00883894506841898, -0.09650534391403198, 0.07206188887357712, 0.005221776198595762, -0.12887641787528992, -0.18652808666229248, -0.05849988013505936, -0.0426502451300621, -0.06196421757340431, 0.20810464024543762, 0.09954635798931122, -0.02252202481031418, -0.08268260210752487, 0.01993499882519245, -0.24023130536079407, 0.06696449965238571, 0.08969061821699142, 0.22706498205661774, 0.031533826142549515, -0.04889782890677452, 0.04679054021835327, -0.07146789878606796, -0.06869183480739594, -0.1344829797744751, -0.11344055086374283, 0.2129778116941452, -0.05868251621723175, 0.18957637250423431, -0.0868135467171669, 0.10396196693181992, 0.08424362540245056, -0.1285097301006317, 0.024309879168868065, -0.04941144213080406, 0.21758002042770386, 0.13688500225543976, -0.0009468336938880384, 0.041750580072402954, -0.02336977981030941, -0.25316715240478516, -0.11465658247470856, 0.12322144210338593, 0.03823958709836006, 0.05069660767912865, -0.05345667526125908, -0.08569610863924026, 0.16848717629909515, 0.051100365817546844, -0.03970169275999069, -0.12207222729921341, -0.1323951780796051, 0.025683367624878883, 0.08010655641555786, 0.06511696428060532, -0.01705845817923546, 0.12897786498069763, 0.11989687383174896, -0.1033744290471077, 0.07149549573659897, 0.033397141844034195, 0.07389207929372787, 0.11086906492710114, 0.051654696464538574, 0.15576213598251343, -0.031942758709192276, -0.10258112847805023, -0.10530461370944977, 0.17981253564357758, 0.036235399544239044, -0.0625036209821701, -0.17586852610111237, 0.0380011647939682, 0.025431042537093163, 0.04035161808133125, -0.12766428291797638, -0.0021111564710736275, 0.06721576303243637, -0.04555688798427582, 0.012820622883737087, -0.0867803618311882, 0.09754110127687454, -0.05600148066878319, -0.037131547927856445, 0.031017731875181198, 0.012411678209900856, 0.0225596334785223, -0.12175621092319489, -0.14925628900527954, 0.012167852371931076, 0.15980781614780426, 0.02261354587972164, -0.03666474297642708, 0.24897605180740356, 0.0048164245672523975, -0.13852444291114807, -0.01779613085091114, -0.08897772431373596, -0.02527623064815998, -0.07427314668893814, 0.03755063936114311, 0.03839914873242378, -0.0864400789141655, -0.19276943802833557, -0.02068420499563217, 0.06780214607715607, -0.047267187386751175, 0.15098153054714203, -0.003422695444896817, -0.03846035152673721, -0.007891708053648472, -0.12450899928808212, -0.05690932273864746, 0.06748582422733307, -0.006102546118199825, -0.004861581604927778, -0.08231841772794724, -2.4638668691134298e-32, 0.06256762892007828, -0.06415043771266937, -0.042241476476192474, -0.04838796705007553, -0.3124939501285553, 0.14662717282772064, -0.08818919211626053, 0.09194204211235046, 0.030575204640626907, -0.1509033441543579, -0.021365169435739517, -0.00622825650498271, 0.014489078894257545, 0.03151603415608406, 0.1275991052389145, 0.2611517608165741, -0.09884368628263474, -0.027810100466012955, -0.056985173374414444, -0.11712746322154999, 0.15800084173679352, 0.0657910704612732, -0.03741103783249855, -0.04315749183297157, -0.073822520673275, 0.07532130181789398, -0.12265985459089279, 0.01607314683496952, -0.010315204039216042, -0.04645123332738876, -0.07374131679534912, -0.02436262182891369, 0.011468705721199512, 0.01070493832230568, -0.06283289939165115, 0.1227046400308609, -0.11542012542486191, -0.05939100310206413, -0.0061928522773087025, -0.07004483044147491, 0.10728523880243301, 0.10325633734464645, -0.1466551423072815, -0.1145380437374115, 0.15351158380508423, 0.12843655049800873, 0.005531831178814173, -0.1236054003238678, 0.21987201273441315, -0.024224260821938515, 0.018755991011857986, 0.11587552726268768, -0.0017845069523900747, 0.008623980917036533, 0.0714593157172203, -0.005578475538641214, 0.05708582326769829, 0.1370820701122284, -0.010255708359181881, 0.014253786765038967, 0.1784476935863495, -0.07164103537797928, 0.07458601146936417, -0.035264331847429276, 0.15699119865894318, 0.09174013882875443, 0.290461927652359, -0.0009253295720554888, 0.08826165646314621, -0.09969334304332733, 0.15908032655715942, 0.0414896160364151, -0.06116688624024391, 0.02913658320903778, -0.19774162769317627, 0.06480712443590164, -0.2227500081062317, 0.008475038222968578, 0.1262020766735077, 0.013653861358761787, 0.0648820772767067, -0.11973031610250473, -0.06538046151399612, 0.03889147937297821, -0.06766816973686218, 0.1591843068599701, -0.004006435628980398, -0.045630116015672684, -0.14380457997322083, 0.15978090465068817, -0.06971415132284164, 0.007646237965673208, -0.05413346365094185, -0.011067739687860012, 0.05567336082458496, -0.1384555995464325, -0.0715397372841835, 0.08556394279003143, 0.04286622256040573, -0.08139445632696152, -0.14558105170726776, -0.05252060294151306, 0.011907187290489674, 0.11733254790306091, 0.1335063874721527, -0.1017182320356369, 0.005599432159215212, -0.021003294736146927, -0.08047929406166077, 0.08961004763841629, 0.023505710065364838, 0.0021744987461715937, 0.19623394310474396, 0.29393470287323, 0.011726041324436665, 0.04886520653963089, -0.16913966834545135, -0.047138527035713196, 0.02945808693766594, 0.1687331199645996, -0.09798523783683777, 0.1227373331785202, -0.06947405636310577, 0.09671074897050858, 0.010791764594614506, 0.041884344071149826, -0.17724794149398804, 0.00637423200532794, -0.010544327087700367, 0.13331326842308044, -0.021907059475779533, -0.034357715398073196, 7.699245543335564e-7, -0.12457714974880219, 0.026909219101071358, 0.11073226481676102, -0.22643402218818665, 0.04646911844611168, 0.07077446579933167, -0.148222878575325, 0.08878301084041595, -0.06820570677518845, 0.03942122310400009, 0.05775429680943489, -0.044650595635175705, -0.09619741141796112, -0.1420917958021164, 0.15221057832241058, 0.004394798073917627, -0.0739653930068016, 0.03775066137313843, 0.04181527718901634, 0.06661462038755417, -0.10932772606611252, 0.0826905146241188, 0.15399934351444244, -0.13590136170387268, -0.05020003020763397, -0.015191665850579739, -0.0065682921558618546, 0.08507116883993149, 0.10170972347259521, -0.12419769167900085, -0.08640418201684952, 0.07536961883306503, -0.08829756081104279, 0.056413959711790085, -0.028396472334861755, -0.029779158532619476, -0.14340923726558685, -0.05616478621959686, 0.10466215759515762, 0.06967569142580032, 0.025319449603557587, 0.031422264873981476, -0.038784969598054886, -0.13580243289470673, 0.11996764689683914, -0.04648786410689354, 0.046845268458127975, -0.10880735516548157, -0.045360371470451355, 0.01234314776957035, 0.13694047927856445, 0.08552949875593185, 0.1283593475818634, 0.13928429782390594, -0.09719641506671906, -0.06731058657169342, 0.13027052581310272, 0.0074583678506314754, 0.08976723998785019, 0.0037223491817712784, -0.09173761308193207, -0.14548370242118835, -0.12129401415586472, -0.08207904547452927, 0.05727175623178482, -0.08438726514577866, 0.007136183325201273, 1.9148003719092563e-35, 0.022589974105358124, 0.00817801896482706, -0.002643448766320944, -0.2292764037847519, 0.026900572702288628, 0.09060461819171906, -0.09773820638656616, -0.14877434074878693, 0.09409642964601517, -0.06826921552419662, -0.06889620423316956 ]
https://github.com/huggingface/datasets/issues/6276
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error
Since you are using Windows, maybe moving the `map` call inside `if __name__ == "__main__"` can fix the issue: ```python if __name__ == "__main__": common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) ``` Otherwise, the only solution is to set `num_proc=1`.
### Describe the bug I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post https://huggingface.co/blog/fine-tune-whisper I tried google collab and it works but because I'm on the free version the training doesn't complete the error comes in jupyter notebook when i run this line `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` here is the error message ``` Map (num_proc=4): 0% 0/2506 [00:52<?, ? examples/s] The above exception was the direct cause of the following exception: NameError Traceback (most recent call last) Cell In[19], line 1 ----> 1 common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:853, in DatasetDict.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, desc) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( --> 853 { 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:854, in <dictcomp>(.0) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( 853 { --> 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:592, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 590 self: "Dataset" = kwargs.pop("self") 591 # apply actual function --> 592 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 593 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 594 for dataset in datasets: 595 # Remove task templates if a column mapping of the template is no longer valid File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:557, in transmit_format.<locals>.wrapper(*args, **kwargs) 550 self_format = { 551 "type": self._format_type, 552 "format_kwargs": self._format_kwargs, 553 "columns": self._format_columns, 554 "output_all_columns": self._output_all_columns, 555 } 556 # apply actual function --> 557 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 558 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 559 # re-apply format to the output File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:3189, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 3182 logger.info(f"Spawning {num_proc} processes") 3183 with logging.tqdm( 3184 disable=not logging.is_progress_bar_enabled(), 3185 unit=" examples", 3186 total=pbar_total, 3187 desc=(desc or "Map") + f" (num_proc={num_proc})", 3188 ) as pbar: -> 3189 for rank, done, content in iflatmap_unordered( 3190 pool, Dataset._map_single, kwargs_iterable=kwargs_per_job 3191 ): 3192 if done: 3193 shards_done += 1 File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in iflatmap_unordered(pool, func, kwargs_iterable) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in <listcomp>(.0) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\multiprocess\pool.py:774, in ApplyResult.get(self, timeout) 772 return self._value 773 else: --> 774 raise self._value NameError: name 'feature_extractor' is not defined ``` ### Steps to reproduce the bug 1. follow the steps in this blog post https://huggingface.co/blog/fine-tune-whisper 2. run this line of code `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` 3. I'm using jupyter notebook from anaconda ### Expected behavior No error message ### Environment info datasets version: 2.8.0 Python version: 3.11 Windows 10
38
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error ### Describe the bug I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post https://huggingface.co/blog/fine-tune-whisper I tried google collab and it works but because I'm on the free version the training doesn't complete the error comes in jupyter notebook when i run this line `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` here is the error message ``` Map (num_proc=4): 0% 0/2506 [00:52<?, ? examples/s] The above exception was the direct cause of the following exception: NameError Traceback (most recent call last) Cell In[19], line 1 ----> 1 common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:853, in DatasetDict.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, desc) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( --> 853 { 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:854, in <dictcomp>(.0) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( 853 { --> 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:592, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 590 self: "Dataset" = kwargs.pop("self") 591 # apply actual function --> 592 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 593 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 594 for dataset in datasets: 595 # Remove task templates if a column mapping of the template is no longer valid File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:557, in transmit_format.<locals>.wrapper(*args, **kwargs) 550 self_format = { 551 "type": self._format_type, 552 "format_kwargs": self._format_kwargs, 553 "columns": self._format_columns, 554 "output_all_columns": self._output_all_columns, 555 } 556 # apply actual function --> 557 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 558 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 559 # re-apply format to the output File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:3189, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 3182 logger.info(f"Spawning {num_proc} processes") 3183 with logging.tqdm( 3184 disable=not logging.is_progress_bar_enabled(), 3185 unit=" examples", 3186 total=pbar_total, 3187 desc=(desc or "Map") + f" (num_proc={num_proc})", 3188 ) as pbar: -> 3189 for rank, done, content in iflatmap_unordered( 3190 pool, Dataset._map_single, kwargs_iterable=kwargs_per_job 3191 ): 3192 if done: 3193 shards_done += 1 File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in iflatmap_unordered(pool, func, kwargs_iterable) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in <listcomp>(.0) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\multiprocess\pool.py:774, in ApplyResult.get(self, timeout) 772 return self._value 773 else: --> 774 raise self._value NameError: name 'feature_extractor' is not defined ``` ### Steps to reproduce the bug 1. follow the steps in this blog post https://huggingface.co/blog/fine-tune-whisper 2. run this line of code `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` 3. I'm using jupyter notebook from anaconda ### Expected behavior No error message ### Environment info datasets version: 2.8.0 Python version: 3.11 Windows 10 Since you are using Windows, maybe moving the `map` call inside `if __name__ == "__main__"` can fix the issue: ```python if __name__ == "__main__": common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) ``` Otherwise, the only solution is to set `num_proc=1`.
[ 0.09523754566907883, 0.01659438945353031, 0.017888270318508148, 0.014276492409408092, 0.2735872268676758, -0.01401198748499155, 0.11820992082357407, 0.04570578783750534, 0.05514794960618019, 0.057444166392087936, -0.1803496778011322, -0.012840925715863705, 0.05464494600892067, 0.17127904295921326, -0.02503468655049801, -0.15509238839149475, 0.02068079635500908, -0.12725019454956055, 0.0448068231344223, -0.009743981063365936, -0.10085160285234451, 0.06560972332954407, -0.056987836956977844, 0.06333602219820023, -0.03345679119229317, -0.32662680745124817, -0.11255965381860733, 0.05255737900733948, -0.0768861472606659, -0.007313491310924292, 0.07201910763978958, 0.01996087096631527, -0.082244873046875, 0.22588925063610077, 0.000005832827810081653, -0.010653550736606121, 0.16098804771900177, 0.0030936929397284985, 0.039498958736658096, -0.019901497289538383, 0.13652382791042328, 0.06946121156215668, -0.13987915217876434, 0.009591499343514442, -0.07452116906642914, 0.024054085835814476, -0.17111214995384216, 0.07872343808412552, 0.23443280160427094, 0.18826737999916077, 0.038286834955215454, -0.028592417016625404, 0.12026559561491013, -0.08646004647016525, 0.005961341317743063, -0.24798230826854706, -0.05611974373459816, -0.0893331840634346, -0.2152881771326065, -0.133069708943367, 0.01362075749784708, 0.03180385008454323, -0.03299387916922569, -0.01860904134809971, 0.045951951295137405, 0.14257293939590454, -0.14024128019809723, -0.23802655935287476, -0.021336078643798828, 0.18363946676254272, 0.04351428896188736, 0.1544659286737442, -0.17320579290390015, 0.02234925888478756, -0.03420386090874672, -0.20674289762973785, -0.01731932908296585, -0.07723192870616913, -0.05148172378540039, -0.06570956856012344, -0.0994459018111229, -0.057518940418958664, 0.014714527875185013, -0.0031631914898753166, 0.0760519951581955, -0.047352761030197144, -0.07610530406236649, 0.03280835598707199, 0.08964795619249344, -0.25488629937171936, 0.08808489888906479, 0.029951075091958046, -0.01472321804612875, -0.011107070371508598, -0.13965490460395813, -0.055207476019859314, -0.07044805586338043, -0.12234005331993103, -0.017032237723469734, -0.07007820904254913, 0.020847657695412636, -0.13937360048294067, 0.08663615584373474, 0.1469144970178604, -0.016484536230564117, 0.07283664494752884, 0.10052763670682907, -0.0250475462526083, 0.13590362668037415, 0.10847017168998718, 0.041228827089071274, 0.09238182753324509, -0.19902396202087402, -0.00870687048882246, -0.03964397311210632, -0.006856310181319714, 0.04156529903411865, 0.01721210777759552, -0.014142083935439587, 0.2381592094898224, 0.14213918149471283, 0.1384163796901703, -0.06747829914093018, 0.09678678959608078, 0.0009477669955231249, -0.10460274666547775, 0.07096892595291138, 0.11471306532621384, -0.1464231163263321, -0.03345854580402374, -0.04136902838945389, 0.1732441633939743, -0.02887607179582119, -0.01982605643570423, 0.11730001866817474, 0.12423104792833328, 0.060606468468904495, -0.10082811117172241, 0.026380399242043495, -0.00904732383787632, 0.02420135959982872, -0.18174424767494202, -0.25925856828689575, 0.009837287478148937, -0.03868452459573746, -0.09634130448102951, 0.18148058652877808, 0.039903149008750916, 0.0616689957678318, -0.13623107969760895, -0.14382143318653107, 0.12252177298069, -0.1088540181517601, 0.09792502224445343, 0.032412029802799225, 0.12617972493171692, -0.004331926815211773, -0.06161046773195267, -0.07667253166437149, -0.03622325509786606, 0.061300959438085556, 0.05394629389047623, -0.013082285411655903, -0.14364105463027954, 0.1074330061674118, 0.016602730378508568, 0.08907525986433029, -0.0187670961022377, -0.0408063642680645, -0.04988928511738777, 0.1008554995059967, 0.13845084607601166, 0.05885423719882965, 0.002379057230427861, -0.018384316936135292, 0.16905055940151215, -0.030400754883885384, -0.01834714412689209, -0.17085613310337067, -0.08952663838863373, -0.0444122850894928, -0.06419625878334045, 0.06823825091123581, -0.07176376134157181, 0.004841903690248728, -0.012241920456290245, 0.18998587131500244, 0.09216878563165665, -0.09743795543909073, -0.07767246663570404, 0.11782176792621613, -0.003992987331002951, -0.1359536498785019, -0.09121295809745789, -0.02665136568248272, -0.06603722274303436, -0.03693116828799248, -0.13704298436641693, 0.027360348030924797, -0.1259104311466217, -0.010964046232402325, -0.03440394252538681, 0.05282590538263321, 0.05727998539805412, -0.07408885657787323, -0.0139514384791255, -0.09235510230064392, -0.04086652770638466, -0.18836042284965515, -0.0963752493262291, -0.06795211136341095, 0.009846781380474567, 0.06913118064403534, -0.12765441834926605, 0.02901981770992279, -0.09593677520751953, 0.09221872687339783, -0.05170043557882309, -0.02125108800828457, -0.017530657351017, -0.02053878642618656, 0.09035893529653549, -0.024117378517985344, -0.02562781237065792, -0.047256700694561005, -0.07519689202308655, -0.11257092654705048, 0.024339774623513222, 0.14784912765026093, 0.12065806984901428, -0.038686785846948624, -0.13509127497673035, 0.06853451579809189, 0.11014360934495926, 0.04504071921110153, -0.16595131158828735, -0.05759236216545105, -0.20745864510536194, -0.08324994891881943, 0.1047084778547287, -0.10840488970279694, 0.07833649218082428, -0.10744544118642807, -0.030811669304966927, 0.07287493348121643, 0.06814883649349213, -0.03322150185704231, 0.04927560314536095, 0.033822569996118546, -0.022076867520809174, 0.18559302389621735, 0.08996333926916122, -0.13338600099086761, 0.04502773657441139, 0.059634532779455185, -0.05740489810705185, 0.011934679932892323, 0.05874926224350929, -0.17693021893501282, -0.27134618163108826, 0.23855195939540863, -0.020226139575242996, 0.12191344052553177, -0.09004967659711838, 0.1525929719209671, -0.0683746188879013, -0.06322792172431946, -0.14627237617969513, 0.029485994949936867, 0.059695325791835785, -0.06057405844330788, 0.0026532653719186783, 0.04718739539384842, -0.14039652049541473, 0.0193362794816494, 0.013032782822847366, 0.2056182473897934, 0.0070931510999798775, -0.029280465096235275, 0.02223462238907814, -0.13058139383792877, 0.0036424777936190367, 0.0743122324347496, 0.04171518236398697, 0.13553179800510406, 0.04395941272377968, 0.02649274282157421, -0.09532763808965683, -0.04947853833436966, 0.10975678265094757, -0.037960756570100784, 0.08599940687417984, 0.03046339377760887, -0.1669771373271942, -0.13637347519397736, 0.11348855495452881, 0.06261543184518814, 0.15005861222743988, 0.01563914492726326, 0.06629245728254318, -0.06685583293437958, -0.00492990342900157, -0.0008840984664857388, 0.04929810017347336, 0.004267336335033178, -0.14088159799575806, 0.15027852356433868, 0.28088805079460144, -0.05619152635335922, -0.01768597774207592, 0.051416922360658646, -0.08385541290044785, -0.07020871341228485, 0.23716458678245544, 0.08402299880981445, 0.06661848723888397, -0.04466700181365013, -0.011246451176702976, 0.08947623521089554, -0.016609253361821175, 0.06775147467851639, -0.024975625798106194, 0.0393415167927742, 0.08635477721691132, 0.04988770931959152, 0.026474764570593834, -0.22573819756507874, -0.12140239030122757, 0.006713094189763069, -0.29906946420669556, 0.00447978125885129, 0.19961851835250854, -0.2082921713590622, 0.03735673055052757, -0.0008390619186684489, 0.039064906537532806, -0.15486787259578705, -0.1495593786239624, 0.24645546078681946, 0.004297909792512655, -0.07391172647476196, -0.006754210218787193, -0.10641059279441833, 0.0622699037194252, -0.04604775831103325, 0.017289262264966965, 0.05986673757433891, -0.02488052099943161, 0.10809582471847534, 0.08965069055557251, 0.022145936265587807, -0.023810630664229393, -0.04221722483634949, -0.06643501669168472, -0.14262214303016663, -0.08703772723674774, -0.15099263191223145, 0.09888258576393127, -0.005995818413794041, 0.01904749684035778, 0.24197599291801453, 0.004795638378709555, 0.03986337408423424, 0.19415530562400818, -0.11451352387666702, 0.09964292496442795, 0.0646093413233757, -0.09540921449661255, -0.10852900892496109, -0.11080244928598404, 0.1351034939289093, 0.06256186962127686, -0.02355434186756611, 0.033113833516836166, 0.04605427011847496, -0.01477218046784401, -0.1429550051689148, -0.14548370242118835, 0.08384779840707779, 0.04426439851522446, 0.06776644289493561, -0.09522580355405807, -0.12927377223968506, 0.055493637919425964, 0.22290277481079102, 0.08638304471969604, 0.011624736711382866, 0.0494549497961998, -0.24578319489955902, 0.178957998752594, 0.0749230608344078, -0.09424666315317154, -0.07533641904592514, -0.2181379646062851, 0.05215015634894371, -0.15028776228427887, 0.21415384113788605, 0.11707470566034317, 0.007204465102404356, -0.02959495410323143, -0.03583981841802597, 0.2851254642009735, -0.10713602602481842, 0.0017513056518509984, -0.07694835215806961, 0.11115913093090057, 0.004005953669548035, 0.038376618176698685, 0.07965710014104843, -0.08241446316242218, 0.14536932110786438, 0.12849143147468567, 0.06551644951105118, 0.07993858307600021, 0.16249245405197144, 0.05741052329540253, 0.015185452066361904, -0.06714855879545212, -0.08843514323234558, -0.12444423139095306, -0.09512298554182053, -0.015729917213320732, -0.05343194678425789, 0.16081975400447845, 0.016226759180426598, 0.01728176884353161, 0.2903081774711609, -0.1798190325498581, 0.11582814157009125, 0.04360770806670189, 0.10350209474563599, -0.03416406363248825, 0.04246728867292404, 0.11331810802221298, 0.10103919357061386, -0.018066419288516045, 0.22541573643684387, -0.05861503258347511, -0.10162799060344696, 0.07654840499162674, -0.0695694163441658, 0.026551946997642517, 0.13258522748947144, 0.012556944042444229, 0.06425796449184418, -0.002517131855711341, 0.011438069865107536, 0.041318271309137344, -0.05680854246020317, 0.09603017568588257, 0.008761056698858738, -0.22746609151363373, -0.04784051328897476, -0.0595485158264637, 0.07639065384864807, 0.07709614932537079, 0.10924743860960007, -0.001620614668354392, -0.06773398071527481, 0.13904209434986115, 0.03096465952694416, -0.0378364734351635, -0.04366074502468109, -0.02476937137544155, -0.004080110229551792, -0.036870863288640976, 0.30369946360588074, -0.28889408707618713, 0.18710105121135712, 0.18414469063282013, -0.06583068519830704, 0.10387624055147171, 0.08511798828840256, 0.014537050388753414, 0.09619496017694473, -0.04962116852402687, 0.06682471185922623, -0.0316983163356781, -0.06806270778179169, -0.026947051286697388, 0.08701729774475098, 0.038063064217567444, 0.1293313354253769, -0.15496093034744263, -0.13712814450263977, 0.21369248628616333, 0.1162920594215393, -0.015390360727906227, 0.01789882220327854, 0.03532334789633751, 0.07257319241762161, -0.022464381530880928, -0.0281352661550045, -0.05055757611989975, 0.1434711366891861, 0.04544428363442421, 0.033981043845415115, 0.028667768463492393, 0.09622650593519211, 0.05130588263273239, 0.20024557411670685, -0.11347924172878265, 0.011119731701910496, 0.23873509466648102, 0.03826657682657242, -0.24132229387760162, 0.1564200520515442, 0.006076784338802099, -0.035588860511779785, -0.04854796454310417, 0.05041758716106415, 0.10645648837089539, -0.03609687462449074, -0.3233909010887146, -0.061742473393678665, -0.05846373736858368, 0.056325118988752365, 0.02646857127547264, -0.18841667473316193, 0.09445645660161972, 0.010224133729934692, 0.12247651070356369, -0.009480430744588375, 0.007140093483030796, -0.03984859585762024, 0.03303823247551918, -0.013250213116407394, 0.09289220720529556, 0.19214271008968353, 0.10562577098608017, -0.08910215646028519, 0.19566480815410614, 0.15648292005062103, 0.004380699712783098, -0.09933920204639435, 0.12594617903232574, 0.1154274046421051, 0.05646374076604843, -0.005951733328402042, 0.011264433152973652, 0.13864223659038544, -0.20049995183944702, 0.06119806692004204, 0.1846417933702469, 0.20043547451496124, 0.20876947045326233, -0.008636653423309326, -0.2170337438583374, -0.04091837257146835, -0.03566575422883034, -0.07534702122211456, 0.01174099463969469, 0.05893545225262642, -0.002292762277647853, 0.06305596977472305, -2.928844092093549e-32, -0.26690226793289185, -0.06969625502824783, -0.031783487647771835, 0.1718810349702835, -0.23130536079406738, 0.03340684995055199, -0.07804499566555023, 0.02210428938269615, -0.0018148913513869047, -0.10060007870197296, -0.11483326554298401, 0.04063005372881889, 0.04408493638038635, -0.030728807672858238, -0.11459528654813766, 0.0704898089170456, 0.04374020919203758, 0.07819847762584686, -0.04140758514404297, 0.05018184706568718, 0.0410614050924778, 0.13381674885749817, 0.011945377103984356, -0.08066754043102264, -0.24541079998016357, 0.09839659929275513, -0.23864708840847015, -0.024963198229670525, -0.09074277430772781, -0.09577865153551102, -0.14011095464229584, 0.09916650503873825, -0.07416965067386627, 0.032196544110774994, -0.023771388456225395, -0.0017035925993695855, -0.08642149716615677, -0.02506502903997898, -0.08072615414857864, 0.06997645646333694, 0.09748171269893646, 0.07457099109888077, 0.021790217608213425, -0.07342707365751266, -0.13244427740573883, 0.15533851087093353, 0.09811543673276901, -0.13054054975509644, -0.008706793189048767, -0.017440306022763252, -0.06305385380983353, 0.08668652921915054, -0.05851040408015251, 0.030127588659524918, 0.0037717665545642376, -0.22508160769939423, -0.07162081450223923, 0.023092497140169144, -0.0960303321480751, -0.0075277783907949924, 0.09307657182216644, 0.0010934267193078995, 0.005260535981506109, 0.05600162595510483, -0.024022694677114487, 0.000009571292139298748, 0.19661478698253632, 0.10755303502082825, 0.015181068331003189, -0.15148258209228516, 0.052809134125709534, -0.053931497037410736, 0.023241685703396797, -0.021999258548021317, -0.20280279219150543, -0.25574663281440735, -0.07409332692623138, -0.00017378773191012442, 0.007507276721298695, -0.062312494963407516, 0.02783902734518051, 0.12310448288917542, -0.0021269384305924177, -0.026246368885040283, -0.2081005871295929, -0.07790426164865494, -0.1399400681257248, 0.06730542331933975, -0.12689480185508728, 0.014133651740849018, 0.03027988411486149, 0.09011506289243698, -0.17186902463436127, -0.06700095534324646, 0.08352738618850708, -0.004498873371630907, 0.06931864470243454, 0.06388712674379349, -0.13002954423427582, -0.05243152379989624, -0.06272576004266739, -0.12176670879125595, 0.10433248430490494, 0.11275263130664825, 0.22595641016960144, -0.013543332926928997, 0.13041207194328308, -0.052469100803136826, -0.15330231189727783, -0.08376353979110718, 0.001038560178130865, -0.03128962591290474, 0.29268425703048706, 0.09734463691711426, -0.015950119122862816, -0.09929444640874863, 0.003842460922896862, 0.058101363480091095, 0.11206908524036407, 0.13165684044361115, -0.1591673046350479, -0.16644786298274994, -0.13328929245471954, -0.0921480730175972, -0.10564213246107101, 0.1016523614525795, -0.0997818186879158, 0.026789812371134758, -0.05754280462861061, -0.0020384967792779207, -0.06251639127731323, -0.05879038944840431, 7.389504617094644e-7, -0.27593761682510376, 0.2001568078994751, -0.012400315143167973, 0.0180814228951931, -0.1586751639842987, 0.06994923204183578, -0.023837197571992874, -0.05848100781440735, -0.05348643660545349, 0.18756531178951263, 0.02381528913974762, -0.09903233498334885, -0.006813327316194773, 0.0037407621275633574, 0.005915708839893341, -0.121828094124794, -0.24915552139282227, 0.06356231123209, -0.17509450018405914, -0.007437893655151129, -0.03146436810493469, 0.08804581314325333, 0.18415683507919312, -0.01875397562980652, 0.07413145154714584, 0.060147903859615326, -0.10523991286754608, -0.007989929057657719, 0.012266132980585098, 0.006397816352546215, -0.019477101042866707, 0.07489029318094254, 0.007830969989299774, 0.11319182068109512, -0.010049193166196346, -0.07733848690986633, -0.10608778148889542, -0.03311435133218765, 0.02203352004289627, 0.03621235862374306, 0.052771810442209244, 0.18436045944690704, 0.046444110572338104, -0.1486952304840088, 0.005768163595348597, 0.11425232887268066, -0.06487204134464264, -0.13812755048274994, -0.07227694988250732, 0.011139779351651669, 0.10664799809455872, -0.04908433184027672, 0.12263868749141693, 0.14791864156723022, -0.05222035199403763, 0.05756116658449173, -0.14208604395389557, -0.12978079915046692, 0.22138451039791107, -0.04352286085486412, -0.03786700591444969, -0.1287641078233719, 0.043624039739370346, -0.07796787470579147, 0.020723244175314903, -0.09808171540498734, 0.008645092137157917, -3.404717794139131e-35, -0.04211992397904396, -0.06597217917442322, -0.003808443434536457, -0.19327813386917114, 0.10011711716651917, 0.039329130202531815, 0.3007398545742035, -0.04168963432312012, 0.10052609443664551, -0.21683458983898163, -0.15740416944026947 ]
https://github.com/huggingface/datasets/issues/6276
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error
> Since you are using Windows, maybe moving the `map` call inside `if __name__ == "__main__"` can fix the issue: > > ```python > if __name__ == "__main__": > common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) > ``` > > Otherwise, the only solution is to set `num_proc=1`. Thank you very much for the response, i eventually tried setting `num_proc=1` and now the jupyter notebook kernel keers dying after running the command, what do you think the issue could be, could it be that my system is not capable of running the command "i'm using a Lenovo Thinkpad T440 with no GPU"
### Describe the bug I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post https://huggingface.co/blog/fine-tune-whisper I tried google collab and it works but because I'm on the free version the training doesn't complete the error comes in jupyter notebook when i run this line `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` here is the error message ``` Map (num_proc=4): 0% 0/2506 [00:52<?, ? examples/s] The above exception was the direct cause of the following exception: NameError Traceback (most recent call last) Cell In[19], line 1 ----> 1 common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:853, in DatasetDict.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, desc) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( --> 853 { 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:854, in <dictcomp>(.0) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( 853 { --> 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:592, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 590 self: "Dataset" = kwargs.pop("self") 591 # apply actual function --> 592 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 593 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 594 for dataset in datasets: 595 # Remove task templates if a column mapping of the template is no longer valid File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:557, in transmit_format.<locals>.wrapper(*args, **kwargs) 550 self_format = { 551 "type": self._format_type, 552 "format_kwargs": self._format_kwargs, 553 "columns": self._format_columns, 554 "output_all_columns": self._output_all_columns, 555 } 556 # apply actual function --> 557 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 558 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 559 # re-apply format to the output File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:3189, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 3182 logger.info(f"Spawning {num_proc} processes") 3183 with logging.tqdm( 3184 disable=not logging.is_progress_bar_enabled(), 3185 unit=" examples", 3186 total=pbar_total, 3187 desc=(desc or "Map") + f" (num_proc={num_proc})", 3188 ) as pbar: -> 3189 for rank, done, content in iflatmap_unordered( 3190 pool, Dataset._map_single, kwargs_iterable=kwargs_per_job 3191 ): 3192 if done: 3193 shards_done += 1 File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in iflatmap_unordered(pool, func, kwargs_iterable) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in <listcomp>(.0) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\multiprocess\pool.py:774, in ApplyResult.get(self, timeout) 772 return self._value 773 else: --> 774 raise self._value NameError: name 'feature_extractor' is not defined ``` ### Steps to reproduce the bug 1. follow the steps in this blog post https://huggingface.co/blog/fine-tune-whisper 2. run this line of code `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` 3. I'm using jupyter notebook from anaconda ### Expected behavior No error message ### Environment info datasets version: 2.8.0 Python version: 3.11 Windows 10
100
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error ### Describe the bug I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post https://huggingface.co/blog/fine-tune-whisper I tried google collab and it works but because I'm on the free version the training doesn't complete the error comes in jupyter notebook when i run this line `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` here is the error message ``` Map (num_proc=4): 0% 0/2506 [00:52<?, ? examples/s] The above exception was the direct cause of the following exception: NameError Traceback (most recent call last) Cell In[19], line 1 ----> 1 common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:853, in DatasetDict.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, desc) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( --> 853 { 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\dataset_dict.py:854, in <dictcomp>(.0) 850 if cache_file_names is None: 851 cache_file_names = {k: None for k in self} 852 return DatasetDict( 853 { --> 854 k: dataset.map( 855 function=function, 856 with_indices=with_indices, 857 with_rank=with_rank, 858 input_columns=input_columns, 859 batched=batched, 860 batch_size=batch_size, 861 drop_last_batch=drop_last_batch, 862 remove_columns=remove_columns, 863 keep_in_memory=keep_in_memory, 864 load_from_cache_file=load_from_cache_file, 865 cache_file_name=cache_file_names[k], 866 writer_batch_size=writer_batch_size, 867 features=features, 868 disable_nullable=disable_nullable, 869 fn_kwargs=fn_kwargs, 870 num_proc=num_proc, 871 desc=desc, 872 ) 873 for k, dataset in self.items() 874 } 875 ) File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:592, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 590 self: "Dataset" = kwargs.pop("self") 591 # apply actual function --> 592 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 593 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 594 for dataset in datasets: 595 # Remove task templates if a column mapping of the template is no longer valid File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:557, in transmit_format.<locals>.wrapper(*args, **kwargs) 550 self_format = { 551 "type": self._format_type, 552 "format_kwargs": self._format_kwargs, 553 "columns": self._format_columns, 554 "output_all_columns": self._output_all_columns, 555 } 556 # apply actual function --> 557 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 558 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 559 # re-apply format to the output File ~\anaconda\Lib\site-packages\datasets\arrow_dataset.py:3189, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 3182 logger.info(f"Spawning {num_proc} processes") 3183 with logging.tqdm( 3184 disable=not logging.is_progress_bar_enabled(), 3185 unit=" examples", 3186 total=pbar_total, 3187 desc=(desc or "Map") + f" (num_proc={num_proc})", 3188 ) as pbar: -> 3189 for rank, done, content in iflatmap_unordered( 3190 pool, Dataset._map_single, kwargs_iterable=kwargs_per_job 3191 ): 3192 if done: 3193 shards_done += 1 File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in iflatmap_unordered(pool, func, kwargs_iterable) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\datasets\utils\py_utils.py:1394, in <listcomp>(.0) 1391 finally: 1392 if not pool_changed: 1393 # we get the result in case there's an error to raise -> 1394 [async_result.get(timeout=0.05) for async_result in async_results] File ~\anaconda\Lib\site-packages\multiprocess\pool.py:774, in ApplyResult.get(self, timeout) 772 return self._value 773 else: --> 774 raise self._value NameError: name 'feature_extractor' is not defined ``` ### Steps to reproduce the bug 1. follow the steps in this blog post https://huggingface.co/blog/fine-tune-whisper 2. run this line of code `common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4)` 3. I'm using jupyter notebook from anaconda ### Expected behavior No error message ### Environment info datasets version: 2.8.0 Python version: 3.11 Windows 10 > Since you are using Windows, maybe moving the `map` call inside `if __name__ == "__main__"` can fix the issue: > > ```python > if __name__ == "__main__": > common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names["train"], num_proc=4) > ``` > > Otherwise, the only solution is to set `num_proc=1`. Thank you very much for the response, i eventually tried setting `num_proc=1` and now the jupyter notebook kernel keers dying after running the command, what do you think the issue could be, could it be that my system is not capable of running the command "i'm using a Lenovo Thinkpad T440 with no GPU"
[ 0.09523754566907883, 0.01659438945353031, 0.017888270318508148, 0.014276492409408092, 0.2735872268676758, -0.01401198748499155, 0.11820992082357407, 0.04570578783750534, 0.05514794960618019, 0.057444166392087936, -0.1803496778011322, -0.012840925715863705, 0.05464494600892067, 0.17127904295921326, -0.02503468655049801, -0.15509238839149475, 0.02068079635500908, -0.12725019454956055, 0.0448068231344223, -0.009743981063365936, -0.10085160285234451, 0.06560972332954407, -0.056987836956977844, 0.06333602219820023, -0.03345679119229317, -0.32662680745124817, -0.11255965381860733, 0.05255737900733948, -0.0768861472606659, -0.007313491310924292, 0.07201910763978958, 0.01996087096631527, -0.082244873046875, 0.22588925063610077, 0.000005832827810081653, -0.010653550736606121, 0.16098804771900177, 0.0030936929397284985, 0.039498958736658096, -0.019901497289538383, 0.13652382791042328, 0.06946121156215668, -0.13987915217876434, 0.009591499343514442, -0.07452116906642914, 0.024054085835814476, -0.17111214995384216, 0.07872343808412552, 0.23443280160427094, 0.18826737999916077, 0.038286834955215454, -0.028592417016625404, 0.12026559561491013, -0.08646004647016525, 0.005961341317743063, -0.24798230826854706, -0.05611974373459816, -0.0893331840634346, -0.2152881771326065, -0.133069708943367, 0.01362075749784708, 0.03180385008454323, -0.03299387916922569, -0.01860904134809971, 0.045951951295137405, 0.14257293939590454, -0.14024128019809723, -0.23802655935287476, -0.021336078643798828, 0.18363946676254272, 0.04351428896188736, 0.1544659286737442, -0.17320579290390015, 0.02234925888478756, -0.03420386090874672, -0.20674289762973785, -0.01731932908296585, -0.07723192870616913, -0.05148172378540039, -0.06570956856012344, -0.0994459018111229, -0.057518940418958664, 0.014714527875185013, -0.0031631914898753166, 0.0760519951581955, -0.047352761030197144, -0.07610530406236649, 0.03280835598707199, 0.08964795619249344, -0.25488629937171936, 0.08808489888906479, 0.029951075091958046, -0.01472321804612875, -0.011107070371508598, -0.13965490460395813, -0.055207476019859314, -0.07044805586338043, -0.12234005331993103, -0.017032237723469734, -0.07007820904254913, 0.020847657695412636, -0.13937360048294067, 0.08663615584373474, 0.1469144970178604, -0.016484536230564117, 0.07283664494752884, 0.10052763670682907, -0.0250475462526083, 0.13590362668037415, 0.10847017168998718, 0.041228827089071274, 0.09238182753324509, -0.19902396202087402, -0.00870687048882246, -0.03964397311210632, -0.006856310181319714, 0.04156529903411865, 0.01721210777759552, -0.014142083935439587, 0.2381592094898224, 0.14213918149471283, 0.1384163796901703, -0.06747829914093018, 0.09678678959608078, 0.0009477669955231249, -0.10460274666547775, 0.07096892595291138, 0.11471306532621384, -0.1464231163263321, -0.03345854580402374, -0.04136902838945389, 0.1732441633939743, -0.02887607179582119, -0.01982605643570423, 0.11730001866817474, 0.12423104792833328, 0.060606468468904495, -0.10082811117172241, 0.026380399242043495, -0.00904732383787632, 0.02420135959982872, -0.18174424767494202, -0.25925856828689575, 0.009837287478148937, -0.03868452459573746, -0.09634130448102951, 0.18148058652877808, 0.039903149008750916, 0.0616689957678318, -0.13623107969760895, -0.14382143318653107, 0.12252177298069, -0.1088540181517601, 0.09792502224445343, 0.032412029802799225, 0.12617972493171692, -0.004331926815211773, -0.06161046773195267, -0.07667253166437149, -0.03622325509786606, 0.061300959438085556, 0.05394629389047623, -0.013082285411655903, -0.14364105463027954, 0.1074330061674118, 0.016602730378508568, 0.08907525986433029, -0.0187670961022377, -0.0408063642680645, -0.04988928511738777, 0.1008554995059967, 0.13845084607601166, 0.05885423719882965, 0.002379057230427861, -0.018384316936135292, 0.16905055940151215, -0.030400754883885384, -0.01834714412689209, -0.17085613310337067, -0.08952663838863373, -0.0444122850894928, -0.06419625878334045, 0.06823825091123581, -0.07176376134157181, 0.004841903690248728, -0.012241920456290245, 0.18998587131500244, 0.09216878563165665, -0.09743795543909073, -0.07767246663570404, 0.11782176792621613, -0.003992987331002951, -0.1359536498785019, -0.09121295809745789, -0.02665136568248272, -0.06603722274303436, -0.03693116828799248, -0.13704298436641693, 0.027360348030924797, -0.1259104311466217, -0.010964046232402325, -0.03440394252538681, 0.05282590538263321, 0.05727998539805412, -0.07408885657787323, -0.0139514384791255, -0.09235510230064392, -0.04086652770638466, -0.18836042284965515, -0.0963752493262291, -0.06795211136341095, 0.009846781380474567, 0.06913118064403534, -0.12765441834926605, 0.02901981770992279, -0.09593677520751953, 0.09221872687339783, -0.05170043557882309, -0.02125108800828457, -0.017530657351017, -0.02053878642618656, 0.09035893529653549, -0.024117378517985344, -0.02562781237065792, -0.047256700694561005, -0.07519689202308655, -0.11257092654705048, 0.024339774623513222, 0.14784912765026093, 0.12065806984901428, -0.038686785846948624, -0.13509127497673035, 0.06853451579809189, 0.11014360934495926, 0.04504071921110153, -0.16595131158828735, -0.05759236216545105, -0.20745864510536194, -0.08324994891881943, 0.1047084778547287, -0.10840488970279694, 0.07833649218082428, -0.10744544118642807, -0.030811669304966927, 0.07287493348121643, 0.06814883649349213, -0.03322150185704231, 0.04927560314536095, 0.033822569996118546, -0.022076867520809174, 0.18559302389621735, 0.08996333926916122, -0.13338600099086761, 0.04502773657441139, 0.059634532779455185, -0.05740489810705185, 0.011934679932892323, 0.05874926224350929, -0.17693021893501282, -0.27134618163108826, 0.23855195939540863, -0.020226139575242996, 0.12191344052553177, -0.09004967659711838, 0.1525929719209671, -0.0683746188879013, -0.06322792172431946, -0.14627237617969513, 0.029485994949936867, 0.059695325791835785, -0.06057405844330788, 0.0026532653719186783, 0.04718739539384842, -0.14039652049541473, 0.0193362794816494, 0.013032782822847366, 0.2056182473897934, 0.0070931510999798775, -0.029280465096235275, 0.02223462238907814, -0.13058139383792877, 0.0036424777936190367, 0.0743122324347496, 0.04171518236398697, 0.13553179800510406, 0.04395941272377968, 0.02649274282157421, -0.09532763808965683, -0.04947853833436966, 0.10975678265094757, -0.037960756570100784, 0.08599940687417984, 0.03046339377760887, -0.1669771373271942, -0.13637347519397736, 0.11348855495452881, 0.06261543184518814, 0.15005861222743988, 0.01563914492726326, 0.06629245728254318, -0.06685583293437958, -0.00492990342900157, -0.0008840984664857388, 0.04929810017347336, 0.004267336335033178, -0.14088159799575806, 0.15027852356433868, 0.28088805079460144, -0.05619152635335922, -0.01768597774207592, 0.051416922360658646, -0.08385541290044785, -0.07020871341228485, 0.23716458678245544, 0.08402299880981445, 0.06661848723888397, -0.04466700181365013, -0.011246451176702976, 0.08947623521089554, -0.016609253361821175, 0.06775147467851639, -0.024975625798106194, 0.0393415167927742, 0.08635477721691132, 0.04988770931959152, 0.026474764570593834, -0.22573819756507874, -0.12140239030122757, 0.006713094189763069, -0.29906946420669556, 0.00447978125885129, 0.19961851835250854, -0.2082921713590622, 0.03735673055052757, -0.0008390619186684489, 0.039064906537532806, -0.15486787259578705, -0.1495593786239624, 0.24645546078681946, 0.004297909792512655, -0.07391172647476196, -0.006754210218787193, -0.10641059279441833, 0.0622699037194252, -0.04604775831103325, 0.017289262264966965, 0.05986673757433891, -0.02488052099943161, 0.10809582471847534, 0.08965069055557251, 0.022145936265587807, -0.023810630664229393, -0.04221722483634949, -0.06643501669168472, -0.14262214303016663, -0.08703772723674774, -0.15099263191223145, 0.09888258576393127, -0.005995818413794041, 0.01904749684035778, 0.24197599291801453, 0.004795638378709555, 0.03986337408423424, 0.19415530562400818, -0.11451352387666702, 0.09964292496442795, 0.0646093413233757, -0.09540921449661255, -0.10852900892496109, -0.11080244928598404, 0.1351034939289093, 0.06256186962127686, -0.02355434186756611, 0.033113833516836166, 0.04605427011847496, -0.01477218046784401, -0.1429550051689148, -0.14548370242118835, 0.08384779840707779, 0.04426439851522446, 0.06776644289493561, -0.09522580355405807, -0.12927377223968506, 0.055493637919425964, 0.22290277481079102, 0.08638304471969604, 0.011624736711382866, 0.0494549497961998, -0.24578319489955902, 0.178957998752594, 0.0749230608344078, -0.09424666315317154, -0.07533641904592514, -0.2181379646062851, 0.05215015634894371, -0.15028776228427887, 0.21415384113788605, 0.11707470566034317, 0.007204465102404356, -0.02959495410323143, -0.03583981841802597, 0.2851254642009735, -0.10713602602481842, 0.0017513056518509984, -0.07694835215806961, 0.11115913093090057, 0.004005953669548035, 0.038376618176698685, 0.07965710014104843, -0.08241446316242218, 0.14536932110786438, 0.12849143147468567, 0.06551644951105118, 0.07993858307600021, 0.16249245405197144, 0.05741052329540253, 0.015185452066361904, -0.06714855879545212, -0.08843514323234558, -0.12444423139095306, -0.09512298554182053, -0.015729917213320732, -0.05343194678425789, 0.16081975400447845, 0.016226759180426598, 0.01728176884353161, 0.2903081774711609, -0.1798190325498581, 0.11582814157009125, 0.04360770806670189, 0.10350209474563599, -0.03416406363248825, 0.04246728867292404, 0.11331810802221298, 0.10103919357061386, -0.018066419288516045, 0.22541573643684387, -0.05861503258347511, -0.10162799060344696, 0.07654840499162674, -0.0695694163441658, 0.026551946997642517, 0.13258522748947144, 0.012556944042444229, 0.06425796449184418, -0.002517131855711341, 0.011438069865107536, 0.041318271309137344, -0.05680854246020317, 0.09603017568588257, 0.008761056698858738, -0.22746609151363373, -0.04784051328897476, -0.0595485158264637, 0.07639065384864807, 0.07709614932537079, 0.10924743860960007, -0.001620614668354392, -0.06773398071527481, 0.13904209434986115, 0.03096465952694416, -0.0378364734351635, -0.04366074502468109, -0.02476937137544155, -0.004080110229551792, -0.036870863288640976, 0.30369946360588074, -0.28889408707618713, 0.18710105121135712, 0.18414469063282013, -0.06583068519830704, 0.10387624055147171, 0.08511798828840256, 0.014537050388753414, 0.09619496017694473, -0.04962116852402687, 0.06682471185922623, -0.0316983163356781, -0.06806270778179169, -0.026947051286697388, 0.08701729774475098, 0.038063064217567444, 0.1293313354253769, -0.15496093034744263, -0.13712814450263977, 0.21369248628616333, 0.1162920594215393, -0.015390360727906227, 0.01789882220327854, 0.03532334789633751, 0.07257319241762161, -0.022464381530880928, -0.0281352661550045, -0.05055757611989975, 0.1434711366891861, 0.04544428363442421, 0.033981043845415115, 0.028667768463492393, 0.09622650593519211, 0.05130588263273239, 0.20024557411670685, -0.11347924172878265, 0.011119731701910496, 0.23873509466648102, 0.03826657682657242, -0.24132229387760162, 0.1564200520515442, 0.006076784338802099, -0.035588860511779785, -0.04854796454310417, 0.05041758716106415, 0.10645648837089539, -0.03609687462449074, -0.3233909010887146, -0.061742473393678665, -0.05846373736858368, 0.056325118988752365, 0.02646857127547264, -0.18841667473316193, 0.09445645660161972, 0.010224133729934692, 0.12247651070356369, -0.009480430744588375, 0.007140093483030796, -0.03984859585762024, 0.03303823247551918, -0.013250213116407394, 0.09289220720529556, 0.19214271008968353, 0.10562577098608017, -0.08910215646028519, 0.19566480815410614, 0.15648292005062103, 0.004380699712783098, -0.09933920204639435, 0.12594617903232574, 0.1154274046421051, 0.05646374076604843, -0.005951733328402042, 0.011264433152973652, 0.13864223659038544, -0.20049995183944702, 0.06119806692004204, 0.1846417933702469, 0.20043547451496124, 0.20876947045326233, -0.008636653423309326, -0.2170337438583374, -0.04091837257146835, -0.03566575422883034, -0.07534702122211456, 0.01174099463969469, 0.05893545225262642, -0.002292762277647853, 0.06305596977472305, -2.928844092093549e-32, -0.26690226793289185, -0.06969625502824783, -0.031783487647771835, 0.1718810349702835, -0.23130536079406738, 0.03340684995055199, -0.07804499566555023, 0.02210428938269615, -0.0018148913513869047, -0.10060007870197296, -0.11483326554298401, 0.04063005372881889, 0.04408493638038635, -0.030728807672858238, -0.11459528654813766, 0.0704898089170456, 0.04374020919203758, 0.07819847762584686, -0.04140758514404297, 0.05018184706568718, 0.0410614050924778, 0.13381674885749817, 0.011945377103984356, -0.08066754043102264, -0.24541079998016357, 0.09839659929275513, -0.23864708840847015, -0.024963198229670525, -0.09074277430772781, -0.09577865153551102, -0.14011095464229584, 0.09916650503873825, -0.07416965067386627, 0.032196544110774994, -0.023771388456225395, -0.0017035925993695855, -0.08642149716615677, -0.02506502903997898, -0.08072615414857864, 0.06997645646333694, 0.09748171269893646, 0.07457099109888077, 0.021790217608213425, -0.07342707365751266, -0.13244427740573883, 0.15533851087093353, 0.09811543673276901, -0.13054054975509644, -0.008706793189048767, -0.017440306022763252, -0.06305385380983353, 0.08668652921915054, -0.05851040408015251, 0.030127588659524918, 0.0037717665545642376, -0.22508160769939423, -0.07162081450223923, 0.023092497140169144, -0.0960303321480751, -0.0075277783907949924, 0.09307657182216644, 0.0010934267193078995, 0.005260535981506109, 0.05600162595510483, -0.024022694677114487, 0.000009571292139298748, 0.19661478698253632, 0.10755303502082825, 0.015181068331003189, -0.15148258209228516, 0.052809134125709534, -0.053931497037410736, 0.023241685703396797, -0.021999258548021317, -0.20280279219150543, -0.25574663281440735, -0.07409332692623138, -0.00017378773191012442, 0.007507276721298695, -0.062312494963407516, 0.02783902734518051, 0.12310448288917542, -0.0021269384305924177, -0.026246368885040283, -0.2081005871295929, -0.07790426164865494, -0.1399400681257248, 0.06730542331933975, -0.12689480185508728, 0.014133651740849018, 0.03027988411486149, 0.09011506289243698, -0.17186902463436127, -0.06700095534324646, 0.08352738618850708, -0.004498873371630907, 0.06931864470243454, 0.06388712674379349, -0.13002954423427582, -0.05243152379989624, -0.06272576004266739, -0.12176670879125595, 0.10433248430490494, 0.11275263130664825, 0.22595641016960144, -0.013543332926928997, 0.13041207194328308, -0.052469100803136826, -0.15330231189727783, -0.08376353979110718, 0.001038560178130865, -0.03128962591290474, 0.29268425703048706, 0.09734463691711426, -0.015950119122862816, -0.09929444640874863, 0.003842460922896862, 0.058101363480091095, 0.11206908524036407, 0.13165684044361115, -0.1591673046350479, -0.16644786298274994, -0.13328929245471954, -0.0921480730175972, -0.10564213246107101, 0.1016523614525795, -0.0997818186879158, 0.026789812371134758, -0.05754280462861061, -0.0020384967792779207, -0.06251639127731323, -0.05879038944840431, 7.389504617094644e-7, -0.27593761682510376, 0.2001568078994751, -0.012400315143167973, 0.0180814228951931, -0.1586751639842987, 0.06994923204183578, -0.023837197571992874, -0.05848100781440735, -0.05348643660545349, 0.18756531178951263, 0.02381528913974762, -0.09903233498334885, -0.006813327316194773, 0.0037407621275633574, 0.005915708839893341, -0.121828094124794, -0.24915552139282227, 0.06356231123209, -0.17509450018405914, -0.007437893655151129, -0.03146436810493469, 0.08804581314325333, 0.18415683507919312, -0.01875397562980652, 0.07413145154714584, 0.060147903859615326, -0.10523991286754608, -0.007989929057657719, 0.012266132980585098, 0.006397816352546215, -0.019477101042866707, 0.07489029318094254, 0.007830969989299774, 0.11319182068109512, -0.010049193166196346, -0.07733848690986633, -0.10608778148889542, -0.03311435133218765, 0.02203352004289627, 0.03621235862374306, 0.052771810442209244, 0.18436045944690704, 0.046444110572338104, -0.1486952304840088, 0.005768163595348597, 0.11425232887268066, -0.06487204134464264, -0.13812755048274994, -0.07227694988250732, 0.011139779351651669, 0.10664799809455872, -0.04908433184027672, 0.12263868749141693, 0.14791864156723022, -0.05222035199403763, 0.05756116658449173, -0.14208604395389557, -0.12978079915046692, 0.22138451039791107, -0.04352286085486412, -0.03786700591444969, -0.1287641078233719, 0.043624039739370346, -0.07796787470579147, 0.020723244175314903, -0.09808171540498734, 0.008645092137157917, -3.404717794139131e-35, -0.04211992397904396, -0.06597217917442322, -0.003808443434536457, -0.19327813386917114, 0.10011711716651917, 0.039329130202531815, 0.3007398545742035, -0.04168963432312012, 0.10052609443664551, -0.21683458983898163, -0.15740416944026947 ]
https://github.com/huggingface/datasets/issues/6275
Would like to Contribute a dataset
Hi! The process of contributing a dataset is explained here: https://huggingface.co/docs/datasets/upload_dataset. Also, check https://huggingface.co/docs/datasets/image_dataset for a more detailed explanation of how to share an image dataset.
I have a dataset of 2500 images that can be used for color-blind machine-learning algorithms. Since , there was no dataset available online , I made this dataset myself and would like to contribute this now to community
26
Would like to Contribute a dataset I have a dataset of 2500 images that can be used for color-blind machine-learning algorithms. Since , there was no dataset available online , I made this dataset myself and would like to contribute this now to community Hi! The process of contributing a dataset is explained here: https://huggingface.co/docs/datasets/upload_dataset. Also, check https://huggingface.co/docs/datasets/image_dataset for a more detailed explanation of how to share an image dataset.
[ 0.016343215480446815, 0.00629084138199687, -0.04012153297662735, 0.008750014938414097, 0.10962290316820145, 0.030689213424921036, 0.2170308530330658, -0.11082601547241211, 0.12508907914161682, 0.05166525021195412, -0.016930781304836273, -0.08480113744735718, -0.07812215387821198, 0.13296499848365784, 0.076119065284729, -0.2713366448879242, -0.13890017569065094, -0.09505513310432434, -0.0708228275179863, -0.1512170135974884, -0.0013670872431248426, 0.02832525037229061, 0.11331149935722351, -0.059428852051496506, -0.01056218333542347, 0.02153787761926651, -0.09227032959461212, 0.11593348532915115, -0.07803378254175186, -0.0350128598511219, 0.02555837109684944, 0.04911623150110245, 0.09829629957675934, 0.14040078222751617, 0.0000053096764531801455, -0.0893002301454544, 0.006061829160898924, 0.06278178840875626, 0.0924108698964119, -0.06106634810566902, 0.12418169528245926, -0.03630460426211357, -0.06170181185007095, 0.038149986416101456, -0.03167763724923134, -0.07113944739103317, 0.22832025587558746, 0.11113449186086655, 0.24528658390045166, 0.18258674442768097, 0.0644032210111618, 0.15440605580806732, 0.054183732718229294, -0.0778985247015953, 0.026910757645964622, 0.18363545835018158, 0.0018303835531696677, 0.17518293857574463, -0.15937605500221252, -0.09818698465824127, 0.02432015910744667, -0.044363733381032944, 0.11238040030002594, -0.09624471515417099, 0.1196562722325325, 0.07432270795106888, -0.29435792565345764, -0.08104708045721054, 0.0033509796485304832, 0.11032036691904068, 0.11185616999864578, 0.012762515805661678, -0.032747890800237656, 0.09518887102603912, -0.12378139048814774, 0.05676696449518204, -0.18823149800300598, 0.1536436229944229, -0.03511831909418106, 0.047267936170101166, -0.18301339447498322, -0.024146882817149162, -0.07257423549890518, -0.12365338951349258, 0.14730066061019897, -0.00033019002876244485, -0.017907164990901947, -0.0005954671651124954, -0.2049470692873001, -0.051540691405534744, 0.018018046393990517, -0.0532987043261528, -0.03225494921207428, 0.00792964082211256, 0.052632372826337814, -0.00546628562733531, -0.13762740790843964, -0.033608365803956985, 0.06869426369667053, -0.0029205563478171825, 0.020696811378002167, -0.11732655018568039, -0.10902483761310577, 0.1440218836069107, 0.06239334121346474, -0.005246657878160477, 0.14361776411533356, -0.24061840772628784, 0.08385318517684937, 0.14814285933971405, 0.055289000272750854, 0.04364783316850662, 0.02970883622765541, 0.0155111039057374, -0.010086238384246826, 0.07856401056051254, -0.07154391705989838, 0.03734135627746582, 0.04881187900900841, -0.10112567245960236, 0.31428399682044983, 0.03243904560804367, -0.02971123531460762, 0.06522174924612045, -0.028308961540460587, -0.05656101554632187, 0.08317592740058899, 0.1086190938949585, 0.09064840525388718, -0.17480090260505676, -0.07841310650110245, -0.026720285415649414, 0.08943668007850647, -0.1406107395887375, 0.1286371350288391, -0.06419866532087326, 0.0011153696104884148, 0.04118863493204117, -0.05145465210080147, -0.06397590786218643, 0.12034468352794647, 0.010427254252135754, -0.15468493103981018, -0.07823917269706726, -0.0012905027251690626, -0.16100740432739258, 0.06830179691314697, 0.005752059165388346, -0.13105785846710205, 0.2062995880842209, 0.08799831569194794, 0.26381349563598633, -0.28114455938339233, 0.05045764520764351, 0.10662513226270676, -0.07892218977212906, 0.00070127536309883, 0.07400348782539368, -0.1840757429599762, -0.0009877659613266587, 0.07949108630418777, -0.09913229942321777, -0.018746912479400635, -0.09163923561573029, -0.034449223428964615, 0.1017225980758667, -0.051529351621866226, 0.1159258559346199, -0.026203591376543045, 0.07705938816070557, -0.0010299085406586528, 0.024878282099962234, 0.009368672035634518, -0.05159728601574898, 0.11172465234994888, 0.1749059408903122, 0.04946943745017052, -0.09975264966487885, -0.13714122772216797, -0.07606560736894608, 0.01858128234744072, -0.3182848393917084, -0.1240728348493576, 0.03881372883915901, 0.050253789871931076, -0.01639222912490368, -0.19514986872673035, 0.23711413145065308, -0.19703388214111328, 0.10172855854034424, -0.09403470158576965, 0.04412197694182396, 0.1326608806848526, 0.2881092131137848, -0.12240700423717499, 0.04851945862174034, 0.08529253304004669, -0.3213498592376709, -0.008789081126451492, -0.1769753396511078, -0.0004769294464495033, -0.05589142069220543, 0.11536925286054611, 0.011023296043276787, -0.11132895201444626, -0.04595375433564186, 0.021408777683973312, -0.0012742913095280528, 0.13880771398544312, -0.10230649262666702, -0.05298817530274391, 0.07252050936222076, -0.11490944772958755, -0.1880500316619873, -0.012202841229736805, 0.03132731094956398, -0.0012907844502478838, 0.01709984429180622, -0.028212876990437508, 0.1647697389125824, -0.0007294488605111837, -0.0189453586935997, -0.0034299183171242476, -0.044117625802755356, 0.11568533629179001, -0.027732182294130325, 0.05038613826036453, -0.03193407505750656, 0.23210637271404266, 0.02865227684378624, 0.05563215911388397, -0.024875560775399208, 0.05965956300497055, 0.1478632390499115, -0.14323537051677704, 0.07512080669403076, 0.20776034891605377, 0.1000722125172615, 0.09483838826417923, -0.2165214568376541, -0.08166748285293579, 0.0010611325269564986, -0.12998494505882263, 0.08145661652088165, -0.0010485317325219512, 0.09962927550077438, -0.21320486068725586, -0.02515174075961113, 0.013390769250690937, 0.15186917781829834, 0.2190963476896286, 0.054180122911930084, 0.03125271201133728, 0.05860468000173569, -0.05729655176401138, -0.08771876245737076, -0.07968515157699585, 0.035101111978292465, -0.19160054624080658, 0.05304297059774399, -0.0947880819439888, 0.03229394927620888, 0.009995750151574612, -0.06648828089237213, 0.09919515252113342, 0.0389474518597126, 0.19417865574359894, 0.009621991775929928, -0.07919345796108246, 0.033889397978782654, -0.08488073945045471, -0.0015746131539344788, -0.0035065189003944397, -0.08977304399013519, 0.020693069323897362, -0.16849707067012787, 0.07649919390678406, -0.06681905686855316, 0.0025269887410104275, 0.13425517082214355, -0.24773378670215607, 0.15905791521072388, 0.05664322152733803, -0.05570647493004799, 0.1339985877275467, 0.14460350573062897, 0.06418751925230026, -0.011769280768930912, -0.05942511186003685, 0.06168859824538231, -0.010210647247731686, 0.07571353763341904, 0.06175747513771057, -0.28461313247680664, -0.13061195611953735, 0.039083074778318405, -0.08611983805894852, 0.10098997503519058, 0.036196380853652954, 0.15069158375263214, -0.1442110687494278, 0.10635275393724442, 0.21995213627815247, 0.04793201759457588, 0.06468503922224045, 0.036093950271606445, 0.22510626912117004, 0.11048009991645813, -0.02435866929590702, 0.014457772485911846, -0.04509272426366806, -0.16481010615825653, -0.005791874136775732, 0.08845339715480804, 0.08990400284528732, -0.003526782151311636, -0.1718660593032837, -0.13739177584648132, 0.0398278534412384, 0.1144987940788269, -0.02010032720863819, -0.1315603256225586, 0.13006211817264557, 0.012396666221320629, 0.018898984417319298, 0.2658005952835083, -0.2355187088251114, -0.1800914853811264, 0.19396138191223145, -0.05133580043911934, -0.06994233280420303, -0.06148490309715271, 0.11795385181903839, -0.04586394876241684, 0.11735931783914566, -0.03228866681456566, 0.12233711034059525, -0.06691154092550278, 0.05702562630176544, -0.10452355444431305, -0.18637166917324066, 0.06489896774291992, 0.030910957604646683, -0.003076257649809122, 0.09144986420869827, -0.06645923852920532, 0.07221997529268265, -0.08096424490213394, -0.10637536644935608, 0.1437779814004898, 0.011406781151890755, 0.10399647057056427, 0.10652602463960648, 0.04333486407995224, -0.020396843552589417, -0.04118837043642998, -0.16589795053005219, 0.1667013168334961, -0.13302013278007507, 0.042811259627342224, -0.007541928440332413, 0.07992932945489883, 0.1677466481924057, 0.05336400493979454, -0.03849976137280464, 0.16678190231323242, 0.05448927730321884, 0.19823956489562988, -0.02224181778728962, -0.19994059205055237, 0.07345690578222275, -0.08671628683805466, 0.05415773764252663, 0.06593173742294312, -0.055748991668224335, -0.14630883932113647, 0.0369524285197258, -0.057991206645965576, -0.07966925203800201, 0.04821173474192619, 0.06477304548025131, -0.15524469316005707, 0.03897099569439888, 0.004203514661639929, -0.11218240112066269, -0.09733041375875473, -0.13198710978031158, -0.06635534018278122, -0.058779746294021606, 0.17433126270771027, -0.08853070437908173, -0.08350004255771637, -0.07705292105674744, -0.1494051069021225, -0.04731925576925278, -0.05935196951031685, -0.04764540493488312, 0.03640484809875488, 0.0358828604221344, 0.13083980977535248, -0.025175560265779495, -0.027921538800001144, -0.09614129364490509, 0.011787512339651585, -0.023967422544956207, -0.003928015474230051, 0.05076923221349716, 0.07320327311754227, 0.03299124911427498, -0.07040441781282425, 0.0060858228243887424, 0.0237538181245327, -0.07485941797494888, 0.04031552001833916, -0.06848233938217163, -0.14004656672477722, -0.13155707716941833, 0.061183661222457886, 0.20298950374126434, -0.1268465667963028, 0.022844837978482246, -0.05117121711373329, 0.14633525907993317, 0.1172441616654396, 0.09220252931118011, 0.03994949162006378, -0.12985453009605408, 0.10298609733581543, 0.10848790407180786, 0.02436939999461174, 0.087869793176651, 0.21284042298793793, -0.07575660198926926, 0.018215226009488106, -0.02144613303244114, -0.13345542550086975, 0.20712998509407043, -0.06968273967504501, -0.03353758528828621, -0.11853478848934174, -0.010802500881254673, -0.008001153357326984, 0.05509604886174202, 0.08985581248998642, 0.055076971650123596, -0.0070551298558712006, 0.06002088263630867, -0.019207937642931938, 0.1794029176235199, -0.029428530484437943, -0.08984602242708206, -0.17147763073444366, -0.09143272042274475, -0.10938430577516556, -0.06421151757240295, -0.06393655389547348, 0.01662546955049038, 0.012347431853413582, 0.1231452152132988, -0.04053119570016861, 0.05573837086558342, -0.044146277010440826, -0.31944918632507324, 0.03562931343913078, -0.2826332449913025, -0.020465651527047157, 0.2474684715270996, 0.05259949341416359, -0.0784190222620964, -0.23590242862701416, -0.10330086946487427, 0.06852308660745621, -0.03538284823298454, -0.06721960008144379, 0.1070019006729126, 0.10775760561227798, -0.1385449767112732, 0.02212510071694851, -0.04641113802790642, 0.0596611313521862, 0.1639663130044937, 0.25218474864959717, -0.026380153372883797, -0.04672611877322197, 0.008256967179477215, 0.20034025609493256, -0.11867713928222656, -0.007019769866019487, -0.29438507556915283, -0.012017717584967613, 0.08065178990364075, -0.04490639269351959, -0.051616668701171875, -0.134876549243927, -0.001303544151596725, -0.06477884948253632, -0.011203738860785961, 0.06752292811870575, 0.1505751758813858, -0.0023213790263980627, -0.050415344536304474, 0.017194731160998344, 0.07980293035507202, 0.0042313141748309135, -0.23016415536403656, -0.20311738550662994, -0.013180471956729889, 0.011262461543083191, -0.061612777411937714, 0.08137647807598114, 0.17036457359790802, 0.15102769434452057, -0.034886110574007034, -0.017828388139605522, 0.08923792093992233, -0.04676245152950287, -0.12711110711097717, -0.024899810552597046, -0.06570589542388916, -0.030933713540434837, 0.002925282111391425, -0.03792374208569527, 0.19208960235118866, 0.08105885982513428, -0.21091774106025696, 0.2831280529499054, 0.17577190697193146, 0.004901431035250425, 0.040070004761219025, 0.1572488695383072, 0.06602083891630173, -0.003062026109546423, 0.0596291646361351, 0.025106217712163925, 0.010196802206337452, 0.24291203916072845, 0.07298872619867325, -0.20581530034542084, 0.07899505645036697, -0.015478711575269699, 0.06137097254395485, -0.16961601376533508, -0.14319756627082825, 0.0712723433971405, 0.10877757519483566, 0.23360514640808105, -0.03165500611066818, -0.07308536022901535, -0.14940431714057922, -0.08962146937847137, 0.002442452358081937, 0.026433277875185013, -0.09891428798437119, -0.12090475857257843, -0.09586523473262787, -2.797215467297934e-32, 0.10618870705366135, -0.14410491287708282, -0.004835991188883781, 0.06077836453914642, -0.13021238148212433, 0.029967252165079117, 0.10445412993431091, -0.23890042304992676, -0.011680159717798233, -0.01129675842821598, -0.03663120046257973, -0.029612405225634575, 0.08326702564954758, 0.24494238197803497, -0.17193438112735748, 0.0038619653787463903, 0.022458214312791824, -0.021478945389389992, 0.049242883920669556, -0.023299504071474075, -0.08209532499313354, -0.13308018445968628, -0.092387355864048, -0.01978892832994461, -0.036525435745716095, 0.02473161555826664, -0.05592910200357437, 0.050952181220054626, 0.003599873511120677, 0.20124681293964386, -0.07720905542373657, 0.11078320443630219, -0.03599398210644722, 0.0805620327591896, 0.1144801452755928, -0.03877341002225876, -0.04402713105082512, 0.06901654601097107, -0.03564520180225372, 0.05358917638659477, -0.09811366349458694, -0.06471610069274902, 0.03257109969854355, -0.1845252513885498, 0.05308724567294121, -0.10570071637630463, 0.07923546433448792, 0.0001655362284509465, -0.048173464834690094, 0.042194608598947525, -0.04118430241942406, 0.0749795138835907, 0.054106805473566055, 0.04077582433819771, -0.02004118077456951, -0.01381246279925108, 0.02632978744804859, -0.025208860635757446, 0.032495271414518356, -0.02796567603945732, 0.09280233085155487, -0.07068149000406265, 0.028723547235131264, 0.10379637777805328, 0.2597551643848419, -0.04445364326238632, 0.006910338532179594, 0.02263300120830536, 0.03978258743882179, -0.0646090880036354, -0.16423609852790833, 0.1482892781496048, 0.05104050785303116, 0.19077159464359283, -0.1531403362751007, 0.07938119024038315, -0.08492214232683182, -0.06111367046833038, 0.062377434223890305, -0.03477368503808975, -0.14189819991588593, -0.12858523428440094, 0.1835438758134842, 0.07882556319236755, 0.09864669293165207, -0.13234125077724457, -0.11658299714326859, -0.05978205054998398, 0.1125919371843338, -0.0045656259171664715, -0.024542028084397316, 0.054509930312633514, -0.07367846369743347, -0.06324576586484909, -0.063538558781147, -0.16724616289138794, 0.02461211197078228, 0.15090370178222656, 0.11102911084890366, -0.10928428918123245, 0.0010092334123328328, 0.1012817770242691, 0.14787457883358002, 0.06880545616149902, 0.0536193810403347, -0.0443490594625473, 0.13415445387363434, 0.1991022378206253, -0.250583678483963, 0.08943115174770355, -0.027951762080192566, 0.16226017475128174, 0.022957250475883484, 0.046904269605875015, 0.08797860145568848, -0.08043423295021057, 0.019933423027396202, -0.013229640200734138, -0.027385443449020386, 0.02807598188519478, -0.20040559768676758, -0.19048385322093964, -0.2649472653865814, -0.021511441096663475, -0.08044219017028809, 0.05837106704711914, 0.027769220992922783, 0.0008279154426418245, -0.045939963310956955, -0.09506954252719879, -0.03830477222800255, -0.017157895490527153, 7.560517474303197e-7, -0.20303933322429657, 0.03732352703809738, -0.07226086407899857, 0.0867122933268547, 0.12724851071834564, -0.08354541659355164, -0.1769682615995407, 0.15999338030815125, -0.1051642969250679, 0.1533282846212387, 0.07703686505556107, -0.09645497053861618, 0.14346644282341003, -0.10112603008747101, 0.02707110531628132, -0.1811656802892685, -0.09492403268814087, 0.0007792816031724215, -0.08212625235319138, 0.017586087808012962, 0.07928317040205002, 0.150197371840477, 0.014309353195130825, 0.018152795732021332, 0.07994179427623749, -0.059433091431856155, 0.07257524877786636, -0.18728289008140564, 0.11783342063426971, -0.13378208875656128, 0.013570371083915234, 0.044989973306655884, 0.025898205116391182, 0.15628138184547424, 0.08215201646089554, -0.07402201741933823, -0.10148440301418304, 0.03442979231476784, -0.0854388177394867, -0.005537960212677717, 0.10544637590646744, 0.03321249410510063, -0.2170437127351761, -0.18172836303710938, 0.1951979547739029, -0.004748757462948561, -0.15659941732883453, -0.009599261917173862, -0.16929233074188232, -0.045960914343595505, 0.11989031732082367, -0.10172510892152786, 0.020901840180158615, 0.027822349220514297, 0.13984185457229614, -0.17146402597427368, -0.12620273232460022, -0.0397510752081871, 0.029768435284495354, -0.09930184483528137, -0.10457920283079147, -0.02007311023771763, 0.06887104362249374, 0.05106673017144203, 0.12195856124162674, 0.018287060782313347, -0.09955752640962601, 1.0917635667889794e-34, -0.05552981421351433, -0.04549391567707062, 0.14045698940753937, -0.05687056481838226, 0.08120450377464294, -0.08705497533082962, 0.012099876068532467, -0.08804968744516373, -0.008177214302122593, -0.15215006470680237, 0.05615600198507309 ]
https://github.com/huggingface/datasets/issues/6274
FileNotFoundError for dataset with multiple builder config
Please tell me if the above info is not enough for solving the problem. I will then make my dataset public temporarily so that you can really reproduce the bug.
### Describe the bug When there is only one config and only the dataset name is entered when using datasets.load_dataset(), it works fine. But if I create a second builder_config for my dataset and enter the config name when using datasets.load_dataset(), the following error will happen. FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/chenx/.cache/huggingface/datasets/my_dataset/0_shot_multiple_choice/1.0.0/97c3854a012cfd6b045e3be4c864739902af2d818bb9235b047baa94c302e9a2.incomplete/my_dataset-test-00000-00000-of-NNNNN.arrow' The "XXX.incomplete folder" in the cache folder of my dataset will disappear before "generating test split", which does not happen when config name is not entered and the config name is "default" C:\Users\chenx\.cache\huggingface\datasets\my_dataset\0_shot_multiple_choice\1.0.0 The folder that is supposed to remain under the above directory will disappear, and the data generator will not have a place to generate data into. ### Steps to reproduce the bug test = load_dataset('my_dataset', '0_shot_multiple_choice') ### Expected behavior FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/chenx/.cache/huggingface/datasets/my_dataset/0_shot_multiple_choice/1.0.0/97c3854a012cfd6b045e3be4c864739902af2d818bb9235b047baa94c302e9a2.incomplete/my_dataset-test-00000-00000-of-NNNNN.arrow' ### Environment info datasets 2.14.5 python 3.8.18
30
FileNotFoundError for dataset with multiple builder config ### Describe the bug When there is only one config and only the dataset name is entered when using datasets.load_dataset(), it works fine. But if I create a second builder_config for my dataset and enter the config name when using datasets.load_dataset(), the following error will happen. FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/chenx/.cache/huggingface/datasets/my_dataset/0_shot_multiple_choice/1.0.0/97c3854a012cfd6b045e3be4c864739902af2d818bb9235b047baa94c302e9a2.incomplete/my_dataset-test-00000-00000-of-NNNNN.arrow' The "XXX.incomplete folder" in the cache folder of my dataset will disappear before "generating test split", which does not happen when config name is not entered and the config name is "default" C:\Users\chenx\.cache\huggingface\datasets\my_dataset\0_shot_multiple_choice\1.0.0 The folder that is supposed to remain under the above directory will disappear, and the data generator will not have a place to generate data into. ### Steps to reproduce the bug test = load_dataset('my_dataset', '0_shot_multiple_choice') ### Expected behavior FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/chenx/.cache/huggingface/datasets/my_dataset/0_shot_multiple_choice/1.0.0/97c3854a012cfd6b045e3be4c864739902af2d818bb9235b047baa94c302e9a2.incomplete/my_dataset-test-00000-00000-of-NNNNN.arrow' ### Environment info datasets 2.14.5 python 3.8.18 Please tell me if the above info is not enough for solving the problem. I will then make my dataset public temporarily so that you can really reproduce the bug.
[ 0.049640778452157974, 0.11337407678365707, -0.1409832090139389, 0.014893134124577045, 0.15319706499576569, 0.11278347671031952, 0.23889175057411194, 0.062459323555231094, -0.0402422696352005, 0.043220143765211105, 0.004625521134585142, -0.11794952303171158, -0.129444882273674, -0.1230144128203392, 0.020382260903716087, 0.09280840307474136, -0.0704134926199913, 0.005598939955234528, -0.07957164198160172, 0.03281964361667633, -0.04586589336395264, 0.06254173070192337, 0.1413625031709671, -0.0016879738541319966, -0.14322952926158905, -0.05901490896940231, -0.09056118875741959, 0.2090781331062317, -0.031347572803497314, -0.19120267033576965, 0.1898794025182724, 0.0830773338675499, 0.0008233972475863993, 0.35335490107536316, 0.0000060001689234923106, 0.006300455424934626, 0.2865663170814514, 0.06002085655927658, -0.18690407276153564, -0.11942164599895477, 0.021537519991397858, 0.10522107779979706, 0.03439682722091675, 0.0049047512002289295, 0.07647008448839188, -0.1409532129764557, 0.02829204685986042, -0.032949745655059814, 0.02210739627480507, 0.11254121363162994, 0.10399159044027328, -0.06642751395702362, -0.0012638246407732368, -0.16977359354496002, 0.1669369488954544, 0.026980698108673096, 0.03650422766804695, 0.05829930678009987, -0.17779073119163513, -0.05682257562875748, 0.04282670095562935, 0.0014098226092755795, 0.04321432486176491, 0.10867597907781601, -0.061501238495111465, -0.06643983721733093, -0.17979134619235992, -0.07236004620790482, 0.023407870903611183, 0.2641007602214813, 0.0734967440366745, 0.06466888636350632, -0.1645106077194214, -0.08911512047052383, -0.05039056017994881, -0.08135106414556503, 0.07382705062627792, 0.09524918347597122, -0.1227816715836525, 0.001970900222659111, -0.0743989422917366, -0.08951989561319351, 0.02196325547993183, -0.027052603662014008, -0.22476646304130554, -0.011720621958374977, -0.17464019358158112, -0.02960728481411934, -0.0613374188542366, -0.0975160300731659, 0.16969846189022064, -0.019686389714479446, -0.13243351876735687, -0.2187058925628662, 0.06021767854690552, 0.07116200774908066, -0.03908800706267357, -0.07041794806718826, 0.00785577017813921, 0.04320257157087326, 0.005639895796775818, -0.21203669905662537, -0.04000166803598404, 0.0655955895781517, 0.07096673548221588, 0.09972551465034485, -0.042290717363357544, 0.013412159867584705, 0.005590816494077444, 0.02998538501560688, -0.06105121970176697, -0.031967077404260635, -0.14566002786159515, -0.1193573921918869, 0.026589136570692062, -0.045622024685144424, 0.07411044090986252, 0.09515378624200821, -0.07187052071094513, 0.02645844966173172, 0.06607136875391006, 0.08471588790416718, 0.02710721641778946, 0.17521488666534424, 0.15003947913646698, -0.036941785365343094, -0.000547676463611424, 0.14549699425697327, 0.11674562096595764, -0.01645946130156517, -0.033011481165885925, 0.047380365431308746, -0.022601595148444176, 0.006304607726633549, 0.1323302835226059, -0.0193063672631979, 0.11927144974470139, -0.282545804977417, 0.03788990154862404, -0.03878714516758919, 0.00806718971580267, -0.1438882201910019, -0.1854090541601181, -0.07223659008741379, 0.08045116811990738, 0.13275574147701263, 0.05361858755350113, 0.011885849758982658, -0.012840046547353268, 0.01643400639295578, -0.10896310210227966, 0.11814948171377182, -0.2550429105758667, 0.048555370420217514, 0.012003873474895954, 0.11707673221826553, -0.0675552487373352, 0.05398271605372429, -0.08851208537817001, -0.14913418889045715, 0.06409604847431183, 0.05814162269234657, -0.026385843753814697, -0.08536117523908615, 0.005507030989974737, 0.042111340910196304, 0.035128187388181686, -0.07380452752113342, -0.053275350481271744, 0.011894591152668, -0.06538670510053635, -0.11538925021886826, -0.17219288647174835, 0.10767616331577301, -0.32880374789237976, 0.16385790705680847, 0.09120673686265945, -0.11142627149820328, -0.06927898526191711, 0.0245001632720232, 0.018632709980010986, 0.03840909153223038, 0.06658881902694702, -0.11799168586730957, -0.003028811188414693, -0.03006078116595745, -0.13046255707740784, -0.0042544458992779255, 0.08920209109783173, -0.047656744718551636, -0.09455229341983795, 0.03101273439824581, -0.052251528948545456, -0.08190207183361053, 0.05061095952987671, -0.10080090165138245, 0.03558150306344032, -0.22624744474887848, 0.11927550286054611, -0.25456252694129944, 0.10093921422958374, 0.029559146612882614, -0.14642111957073212, 0.005579432472586632, -0.08423139154911041, -0.042316410690546036, -0.1886563003063202, 0.2637844979763031, -0.0030473428778350353, -0.26516813039779663, -0.16209901869297028, -0.0026321217883378267, 0.06280897557735443, -0.02282484993338585, -0.11963414400815964, -0.09484537690877914, 0.003503581276163459, 0.19071143865585327, -0.1036481112241745, 0.055438119918107986, -0.005464035086333752, 0.23139013350009918, 0.11760026216506958, 0.0028445557691156864, -0.05123220384120941, 0.05167008936405182, 0.04378601163625717, -0.09116758406162262, 0.12272778898477554, 0.026691732928156853, -0.23277637362480164, -0.019550181925296783, -0.01511447411030531, 0.05697815120220184, 0.05546669661998749, -0.09908803552389145, 0.06301423162221909, -0.3148505985736847, -0.038181405514478683, -0.008164706639945507, -0.14367936551570892, -0.055178605020046234, -0.09455756843090057, -0.03522341325879097, 0.014613309875130653, 0.08264540135860443, -0.15057207643985748, 0.014233945868909359, 0.024252165108919144, -0.03764097020030022, 0.1409163922071457, -0.06097210943698883, -0.13259188830852509, 0.15846380591392517, 0.06839879602193832, -0.01856861263513565, 0.10439690202474594, 0.0794534832239151, -0.04979022592306137, -0.05529067665338516, 0.25189146399497986, -0.02965664304792881, -0.1021139845252037, -0.0719664990901947, 0.030656931921839714, -0.059440094977617264, -0.011186500079929829, 0.1026945486664772, 0.12382669001817703, 0.13888464868068695, 0.04057254642248154, -0.08194456994533539, -0.17853547632694244, -0.0422545000910759, 0.09041809290647507, -0.07171689718961716, 0.12747135758399963, 0.14596323668956757, 0.08585028350353241, 0.023770282045006752, -0.18979275226593018, 0.0943751409649849, 0.19759754836559296, -0.08738451451063156, 0.12673914432525635, 0.07342423498630524, -0.0700751468539238, -0.009517405182123184, -0.09590232372283936, -0.062473513185977936, 0.02666960097849369, -0.09274208545684814, 0.0085922721773386, 0.008636243641376495, 0.00526523357257247, 0.047025542706251144, -0.006485980004072189, -0.08671831339597702, -0.033026278018951416, -0.1767059713602066, -0.04877743124961853, -0.05207665637135506, 0.01636648364365101, -0.06146623566746712, 0.05871037021279335, 0.03535919263958931, 0.10120555013418198, 0.1102549284696579, -0.09889836609363556, -0.19392544031143188, 0.0719822570681572, -0.06770336627960205, 0.13446013629436493, 0.23811884224414825, 0.014722488820552826, -0.07689899951219559, 0.008373919874429703, -0.17662815749645233, 0.08443243056535721, 0.05274911969900131, -0.05741275101900101, 0.07453855872154236, 0.05808881297707558, -0.0728049948811531, 0.004826634656637907, 0.031612083315849304, -0.1329163759946823, -0.1879115104675293, -0.05181830748915672, -0.08539309352636337, -0.0213591568171978, 0.08177623152732849, -0.00387487281113863, -0.17502404749393463, -0.001205156440846622, -0.00423273304477334, -0.06102864071726799, -0.012105676345527172, 0.2500327229499817, -0.13796702027320862, 0.02697218395769596, 0.043247297406196594, -0.07257775217294693, 0.07140050828456879, 0.030977798625826836, -0.055798426270484924, 0.06568112224340439, -0.03753648325800896, 0.07932651042938232, -0.139191135764122, 0.036375775933265686, 0.07138057053089142, 0.048427581787109375, -0.14379768073558807, -0.003433733247220516, 0.11170963197946548, -0.15990297496318817, -0.09992720931768417, 0.0675925686955452, -0.017251400277018547, 0.14826585352420807, -0.05209451913833618, 0.0647653266787529, 0.057618334889411926, -0.05841803923249245, 0.10225950181484222, 0.06805028766393661, 0.08300349861383438, -0.09206200391054153, -0.1054040715098381, 0.13818925619125366, 0.05020516365766525, 0.028361160308122635, -0.012550070881843567, 0.034671884030103683, 0.2042423039674759, -0.12372395396232605, -0.09884507209062576, 0.10217934846878052, -0.037340372800827026, -0.008324957452714443, -0.1602325588464737, -0.033231280744075775, 0.10806670039892197, 0.03044780343770981, -0.009767199866473675, -0.01220701914280653, 0.07763349264860153, 0.021801570430397987, 0.09677253663539886, 0.050511740148067474, 0.0788978636264801, 0.11221254616975784, -0.08712957054376602, 0.02692212350666523, -0.07869131118059158, 0.11489842087030411, 0.05713415890932083, 0.0501864068210125, -0.10434151440858841, 0.07466896623373032, 0.17192888259887695, 0.1411135196685791, 0.04224194958806038, 0.047312624752521515, 0.07209987193346024, -0.07440733164548874, -0.1409469097852707, 0.15648767352104187, 0.03355792164802551, 0.03584358096122742, -0.03241284564137459, 0.14823463559150696, -0.07535913586616516, 0.1399299055337906, 0.05469578504562378, 0.0657673254609108, -0.1362617164850235, -0.15119166672229767, -0.06171021610498428, -0.2808256447315216, -0.11396338045597076, 0.03068668767809868, 0.1695777326822281, -0.04274030402302742, -0.031054915860295296, -0.06640998274087906, -0.13520437479019165, 0.027069518342614174, -0.01643652841448784, 0.06774439662694931, -0.07324159890413284, 0.10477714985609055, 0.10953125357627869, 0.006856434512883425, 0.08695027232170105, 0.3009963631629944, -0.1531045287847519, -0.18758535385131836, 0.16220566630363464, -0.17251712083816528, 0.019174804911017418, 0.13148462772369385, -0.16314323246479034, -0.04303284361958504, -0.10545673966407776, -0.03892841935157776, 0.0786508172750473, 0.09740746021270752, 0.13334155082702637, -0.16357678174972534, -0.12017139792442322, -0.1051609069108963, -0.21546754240989685, -0.02894643321633339, 0.03281411528587341, 0.2065490484237671, -0.040049731731414795, -0.06869598478078842, -0.005863592494279146, -0.2015388458967209, -0.07214415818452835, -0.007886895909905434, 0.050674088299274445, 0.07559315860271454, 0.024584615603089333, 0.24242044985294342, 0.01869686134159565, 0.1059381514787674, 0.09392532706260681, -0.0005722623900510371, 0.1032102182507515, -0.0000698045696481131, 0.16483785212039948, 0.30651870369911194, 0.05322562903165817, 0.04652895778417587, -0.1796870231628418, 0.04485984519124031, -0.07644287496805191, 0.23071157932281494, -0.010225660167634487, 0.13189786672592163, -0.030070019885897636, -0.15339039266109467, 0.22949658334255219, 0.07940724492073059, -0.07184083759784698, -0.11566989868879318, -0.06275413930416107, 0.09284697473049164, -0.08773455768823624, 0.01711280830204487, -0.1904190480709076, 0.08440149575471878, 0.0728328749537468, -0.11676932126283646, 0.0729944109916687, 0.12400185316801071, 0.1392889767885208, -0.0008042437257245183, 0.035720936954021454, 0.0990055650472641, -0.008065198548138142, -0.02032429538667202, -0.2024221569299698, 0.060823630541563034, 0.14428411424160004, -0.02333509363234043, -0.07065548002719879, -0.006234032567590475, -0.07163633406162262, -0.010499132797122002, -0.0037720827385783195, 0.02326374687254429, 0.01743183843791485, -0.06689618527889252, 0.08470468968153, 0.021132992580533028, 0.10388660430908203, -0.04068516567349434, 0.004329397343099117, 0.004037759266793728, -0.04008902981877327, -0.1275322437286377, -0.05774558708071709, -0.11927749216556549, -0.01780131831765175, 0.008825624361634254, 0.011992029845714569, 0.0856163427233696, 0.28599631786346436, -0.026362493634223938, 0.028304997831583023, -0.06391766667366028, 0.03211617469787598, 0.06410399824380875, -0.023727301508188248, 0.1008630096912384, 0.07542063295841217, -0.167007714509964, -0.09672516584396362, 0.0017873803153634071, 0.10851936042308807, 0.04986118897795677, 0.1570122241973877, -0.13253872096538544, -0.054620981216430664, -0.08481867611408234, -0.16729064285755157, 0.09794694185256958, 0.02822626382112503, 0.08001485466957092, 0.03225839510560036, 0.0006444830214604735, -2.4661383650096e-32, -0.023531252518296242, -0.0024453706573694944, 0.04239249601960182, -0.07755016535520554, -0.06799089908599854, 0.12188991904258728, 0.008255896158516407, 0.0379183366894722, -0.06843317300081253, -0.23798564076423645, -0.1167001873254776, -0.11817440390586853, -0.05235022306442261, 0.02293698489665985, 0.04192851111292839, 0.04238135740160942, -0.14668522775173187, 0.06307002902030945, -0.0014715052675455809, 0.005835856311023235, 0.14782926440238953, 0.04244507849216461, 0.15046873688697815, 0.023238003253936768, -0.16285546123981476, -0.04045103117823601, -0.1511775255203247, -0.05897289887070656, 0.0463092103600502, -0.026505935937166214, 0.07163097709417343, 0.04602626711130142, -0.0015318061923608184, -0.001772055635228753, -0.035729289054870605, -0.06224965304136276, -0.09506113827228546, -0.19710727035999298, -0.14025036990642548, -0.04185033589601517, 0.061459723860025406, 0.10009170323610306, -0.013589762151241302, -0.2076069712638855, 0.18049277365207672, 0.017634881660342216, -0.05592114105820656, -0.0017409645952284336, 0.020169401541352272, -0.041663121432065964, -0.034238461405038834, 0.14164279401302338, 0.08943162113428116, 0.07597615569829941, 0.06445762515068054, 0.038761574774980545, 0.03551539406180382, 0.05348654463887215, -0.1677568107843399, 0.10178683698177338, 0.17052753269672394, -0.0664963573217392, 0.09405576437711716, 0.013379721902310848, 0.09450023621320724, 0.05757814645767212, 0.43155089020729065, 0.010022078640758991, 0.10008252412080765, -0.1664130985736847, 0.0887356773018837, 0.1110445186495781, -0.1432003676891327, 0.10462203621864319, -0.00301190628670156, -0.134298637509346, -0.20477885007858276, -0.015613486059010029, 0.09269782900810242, -0.13873882591724396, -0.05462249368429184, -0.10198622196912766, -0.014160651713609695, 0.054448921233415604, -0.1493961066007614, 0.05703166499733925, -0.08085176348686218, 0.054916974157094955, -0.12073300033807755, 0.07766138762235641, -0.025285735726356506, 0.1298273205757141, -0.0072730714455246925, -0.027965176850557327, -0.1030375137925148, 0.18205930292606354, 0.023761112242937088, 0.006043838337063789, -0.13376544415950775, 0.07541872560977936, -0.08068149536848068, -0.14298732578754425, 0.11645632982254028, 0.12269507348537445, 0.027381086722016335, -0.03698979318141937, 0.042061951011419296, -0.00645223306491971, -0.10834231972694397, -0.05215752497315407, 0.029630258679389954, -0.08699691295623779, 0.1096394956111908, 0.021724101155996323, 0.11426714062690735, 0.14179953932762146, -0.143450066447258, -0.11080926656723022, 0.20995253324508667, 0.056076694279909134, -0.17074550688266754, -0.01720334030687809, -0.21849936246871948, 0.05477406084537506, 0.04936777427792549, 0.037067268043756485, -0.09061591327190399, -0.09423814713954926, 0.1472095102071762, 0.08315904438495636, 0.028113629668951035, -0.15304389595985413, 7.689602625760017e-7, -0.08786877989768982, 0.13908860087394714, -0.03954349458217621, -0.04994336515665054, -0.142067551612854, -0.004884395748376846, -0.15942393243312836, -0.015307103283703327, -0.10509748756885529, 0.1491449773311615, 0.15565139055252075, -0.003534049028530717, -0.19863200187683105, -0.01945236138999462, 0.13581864535808563, 0.043996233493089676, 0.05179164558649063, 0.14601585268974304, -0.02634785883128643, 0.10992515832185745, 0.10882972180843353, 0.1663459837436676, 0.13448691368103027, -0.18089227378368378, -0.04599232226610184, 0.011741233989596367, -0.0499376580119133, -0.016361024230718613, 0.12298386543989182, 0.07583993673324585, -0.06647255271673203, -0.05229184776544571, 0.052786439657211304, 0.07293283939361572, 0.03851033374667168, -0.051571398973464966, -0.1065702736377716, -0.012476521544158459, 0.012030577287077904, -0.022503908723592758, 0.13893096148967743, 0.04304167628288269, -0.14590729773044586, 0.04065973311662674, 0.026076411828398705, -0.020340729504823685, -0.003931893035769463, -0.045344892889261246, -0.1044577956199646, 0.1208578497171402, 0.0863952487707138, 0.12983205914497375, 0.2162046730518341, 0.13482671976089478, -0.19036264717578888, -0.03255920112133026, 0.04905874654650688, 0.00833309255540371, 0.2169654816389084, -0.0029895079787820578, -0.10926354676485062, -0.03706050291657448, -0.10248687863349915, -0.08592399954795837, 0.14612290263175964, -0.14746885001659393, -0.05694865807890892, 1.4999537505232784e-34, 0.011675902642309666, 0.0021000143606215715, -0.012554357759654522, -0.15678799152374268, -0.06384442001581192, -0.010129998438060284, 0.12928760051727295, 0.050575271248817444, 0.0035700779408216476, -0.07539393752813339, 0.026135632768273354 ]
https://github.com/huggingface/datasets/issues/6273
Broken Link to PubMed Abstracts dataset .
@lhoestq @albertvillanova @lewtun I don't think we are allowed to host these data files on the Hub (due to DMCA), which means the only option is to use a different dataset in the course (and to re-record the video ๐Ÿ™‚), no?
### Describe the bug The link provided for the dataset is broken, data_files = [https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst](url) The ### Steps to reproduce the bug Steps to reproduce: 1) Head over to [https://huggingface.co/learn/nlp-course/chapter5/4?fw=pt#big-data-datasets-to-the-rescue](url) 2) In the Section "What is the Pile?", you can see a code snippet that contains the broken link. ### Expected behavior The link should Redirect to the "PubMed Abstracts dataset" as expected . ### Environment info .
41
Broken Link to PubMed Abstracts dataset . ### Describe the bug The link provided for the dataset is broken, data_files = [https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst](url) The ### Steps to reproduce the bug Steps to reproduce: 1) Head over to [https://huggingface.co/learn/nlp-course/chapter5/4?fw=pt#big-data-datasets-to-the-rescue](url) 2) In the Section "What is the Pile?", you can see a code snippet that contains the broken link. ### Expected behavior The link should Redirect to the "PubMed Abstracts dataset" as expected . ### Environment info . @lhoestq @albertvillanova @lewtun I don't think we are allowed to host these data files on the Hub (due to DMCA), which means the only option is to use a different dataset in the course (and to re-record the video ๐Ÿ™‚), no?
[ 0.18884272873401642, 0.17499004304409027, -0.021518025547266006, -0.023657958954572678, 0.14042437076568604, 0.12548667192459106, 0.07252739369869232, -0.03304063528776169, -0.008498876355588436, 0.1071895882487297, -0.018692346289753914, 0.0996725782752037, 0.034404318779706955, 0.11051946133375168, 0.14633683860301971, 0.0128150200471282, 0.009446194395422935, -0.009161352179944515, 0.06841442734003067, -0.022587398067116737, 0.008663296699523926, 0.12066228687763214, -0.014975378289818764, -0.055278994143009186, 0.09616465866565704, 0.1243392825126648, -0.158767968416214, -0.09985608607530594, 0.026755670085549355, -0.1940617561340332, 0.05694558098912239, 0.03489549085497856, -0.04505954682826996, 0.06551618129014969, 0.000005951440925855422, -0.10609368979930878, 0.017564257606863976, 0.10164189338684082, -0.003008044557645917, -0.036533817648887634, 0.05253148451447487, -0.003965361509472132, -0.12722116708755493, -0.08679447323083878, 0.019850552082061768, -0.1193908229470253, 0.012157700024545193, 0.12295219302177429, 0.0005120884161442518, 0.040090836584568024, 0.048654161393642426, 0.12479889392852783, 0.2057064324617386, -0.15671810507774353, -0.03947697579860687, 0.12072187662124634, 0.09799452126026154, 0.10779912024736404, -0.1010507196187973, 0.04695451259613037, -0.0016713301884010434, 0.0030203911010175943, 0.06682567298412323, 0.09147001057863235, -0.05279770866036415, 0.0026720399037003517, -0.11253316700458527, -0.12096113711595535, 0.003165490459650755, 0.20379289984703064, 0.12238757312297821, 0.015963057056069374, -0.02877083420753479, 0.09682779759168625, -0.0381106398999691, 0.004510583821684122, 0.03447504714131355, 0.12434850633144379, 0.06870570778846741, 0.07807449251413345, -0.04486178234219551, -0.05867782235145569, 0.06936022639274597, 0.13111405074596405, 0.10069381445646286, -0.10159403830766678, -0.19133970141410828, -0.12133873999118805, 0.005679681897163391, -0.07477620989084244, 0.13299870491027832, 0.05204368755221367, 0.060083840042352676, -0.0923047587275505, 0.17445026338100433, 0.01079359371215105, -0.06822679936885834, -0.09173974394798279, 0.18859797716140747, -0.09201391041278839, -0.06868545711040497, -0.06972743570804596, -0.05609125271439552, -0.17928484082221985, 0.11426158994436264, -0.14348949491977692, 0.016502439975738525, -0.0002319513587281108, 0.2667435109615326, 0.21371160447597504, 0.1913362294435501, -0.001635197433643043, 0.03238394856452942, -0.000738434144295752, 0.03960574045777321, 0.014475005678832531, -0.036668360233306885, -0.11819523572921753, 0.07456555962562561, 0.26337599754333496, 0.016632933169603348, 0.15614844858646393, -0.2761562466621399, 0.1313067525625229, -0.06748021394014359, 0.10445832461118698, 0.09209414571523666, -0.0009340678225271404, -0.0012131299590691924, -0.0513317734003067, 0.002669466193765402, -0.06691162288188934, -0.2363172173500061, 0.09139195084571838, 0.1968633532524109, 0.014505411498248577, -0.0004261527501512319, -0.09010204672813416, 0.1168028712272644, -0.11841435730457306, -0.06501356512308121, -0.0452854186296463, -0.08260486274957657, 0.005887210369110107, 0.23272864520549774, 0.03066125698387623, 0.05225472152233124, 0.026383496820926666, 0.06151663139462471, 0.02919626794755459, -0.3705540597438812, 0.17224633693695068, -0.1701056808233261, -0.1833641529083252, -0.08914967626333237, 0.010067353956401348, -0.010603585280478, -0.10453908890485764, -0.15447884798049927, -0.10145772993564606, -0.03475188836455345, 0.08388067036867142, 0.1068963035941124, -0.17055797576904297, 0.21389923989772797, -0.06157049536705017, 0.17491090297698975, 0.03527101129293442, -0.10713964700698853, 0.1334504932165146, 0.05422860383987427, 0.136411651968956, -0.11666841804981232, -0.0962241068482399, -0.1985846310853958, 0.13225725293159485, -0.01823798380792141, 0.03153768181800842, -0.1946304440498352, -0.09705300629138947, 0.05190787464380264, -0.1495964080095291, -0.24920102953910828, -0.12510442733764648, 0.04136255756020546, -0.012093611061573029, -0.08252158015966415, 0.058129142969846725, 0.10944647341966629, -0.011736185289919376, -0.06662612408399582, 0.04563266411423683, -0.12484820932149887, -0.07005475461483002, 0.1104535460472107, -0.10422145575284958, -0.0014277289155870676, 0.07233783602714539, 0.1049642413854599, 0.09704603254795074, 0.022850308567285538, 0.0029316816944628954, -0.0147977564483881, 0.02826821431517601, 0.11323443055152893, 0.051572270691394806, -0.12608851492404938, -0.06494107842445374, 0.0011615020921453834, 0.004925081040710211, -0.1916937232017517, -0.05050903186202049, -0.08875709027051926, 0.025717608630657196, -0.048550575971603394, -0.009198436513543129, 0.0017595170065760612, -0.08815687149763107, -0.1480286419391632, 0.22590333223342896, -0.054642483592033386, -0.05701941251754761, 0.03867650032043457, -0.02877579815685749, -0.12134254723787308, 0.08453013747930527, -0.1898113191127777, -0.040431514382362366, 0.10118623077869415, -0.03625360503792763, -0.07399303466081619, 0.024379238486289978, 0.2356692999601364, 0.15869636833667755, -0.0529329888522625, 0.19731396436691284, 0.011913775466382504, -0.17031127214431763, 0.22213782370090485, -0.2128610908985138, -0.0577876977622509, 0.14724819362163544, -0.07232435792684555, 0.08132048696279526, 0.21036432683467865, -0.04772672429680824, -0.15224914252758026, 0.0424429252743721, -0.0033116526901721954, 0.1755521595478058, 0.1589696705341339, 0.04058481752872467, -0.16495993733406067, -0.04183914139866829, 0.035954032093286514, 0.16490067541599274, -0.14644618332386017, -0.09760846197605133, -0.13187123835086823, 0.012194115668535233, 0.23108936846256256, -0.059862229973077774, 0.08096365630626678, -0.03220612183213234, -0.04143816977739334, -0.016350753605365753, -0.06714768707752228, 0.07340613007545471, -0.07303445786237717, 0.09478374570608139, 0.04558361694216728, 0.05633910745382309, -0.15171512961387634, -0.12128717452287674, -0.04351949691772461, 0.004925368819385767, -0.1701299399137497, 0.07329397648572922, 0.010792764835059643, -0.06766903400421143, -0.10676770657300949, 0.1398594230413437, -0.0964529886841774, -0.014787774533033371, 0.03955628350377083, 0.009740181267261505, -0.18063153326511383, -0.033010564744472504, -0.16746442019939423, 0.057329799979925156, 0.02584325708448887, -0.008055447600781918, -0.1318264901638031, 0.015252668410539627, -0.13420386612415314, -0.06914586573839188, -0.11779611557722092, 0.08305814117193222, -0.16646608710289001, 0.14718428254127502, 0.03093460202217102, 0.04946928098797798, -0.026340555399656296, -0.0459807850420475, -0.017908988520503044, 0.07701487839221954, 0.050672855228185654, 0.06667689234018326, -0.08432876318693161, -0.22180256247520447, -0.017754031345248222, 0.03279292955994606, 0.2206147164106369, 0.04405802860856056, -0.037184204906225204, -0.09982148557901382, -0.011838720180094242, -0.09421734511852264, 0.05853217840194702, -0.0014378103660419583, 0.1775999814271927, 0.07166732847690582, -0.1769929975271225, -0.004877668805420399, 0.024632900953292847, -0.0829324945807457, -0.1686127930879593, 0.05604802817106247, -0.09729475528001785, 0.005062464624643326, -0.012764967046678066, 0.039600223302841187, 0.043592166155576706, -0.18400417268276215, 0.04126562923192978, -0.17739541828632355, -0.01638633757829666, -0.1177048310637474, 0.2229348123073578, 0.018340636044740677, -0.1286555379629135, -0.022887608036398888, 0.029439283534884453, 0.009289462119340897, 0.017627259716391563, -0.10459838807582855, 0.017593445256352425, 0.02595861256122589, -0.0914362221956253, -0.1141442060470581, 0.08784227818250656, -0.054247401654720306, 0.03671034798026085, -0.14882856607437134, 0.09207155555486679, -0.012919189408421516, 0.004296475555747747, 0.06440987437963486, 0.06658400595188141, 0.10660829395055771, 0.03817707672715187, 0.21029077470302582, 0.11193245649337769, 0.0028657945804297924, -0.11695070564746857, 0.1044289693236351, 0.036162324249744415, 0.12235137820243835, 0.0441177599132061, -0.046327777206897736, -0.046185724437236786, -0.019874757155776024, 0.0595533549785614, 0.07157377153635025, 0.056404516100883484, -0.020501792430877686, -0.05530450493097305, -0.02660345658659935, -0.03148052096366882, -0.20483727753162384, -0.012044791132211685, -0.12095363438129425, 0.00136618094984442, 0.1090063750743866, 0.016687264665961266, 0.00023365496599581093, -0.04241582006216049, 0.08008190244436264, -0.08040262758731842, 0.07470443844795227, 0.02873286046087742, -0.059005290269851685, -0.17826084792613983, -0.06352643668651581, 0.053298477083444595, -0.12026055157184601, 0.2677442729473114, 0.059986330568790436, 0.07294738292694092, 0.08184514194726944, 0.05389555171132088, 0.12716907262802124, -0.13207188248634338, 0.14176806807518005, 0.032028380781412125, 0.30907583236694336, -0.011491985060274601, -0.023953933268785477, 0.042931828647851944, 0.0018292638706043363, 0.1390283703804016, -0.06260374933481216, -0.031179605051875114, 0.03896397724747658, 0.22000887989997864, -0.20846246182918549, 0.10740215331315994, 0.03451281040906906, 0.017124654725193977, -0.20373523235321045, -0.07615209370851517, -0.2091532051563263, 0.22657881677150726, -0.07161315530538559, 0.05866658687591553, -0.135255828499794, 0.06346847862005234, -0.1433785855770111, 0.0833808183670044, -0.24269461631774902, 0.13453559577465057, 0.04661354050040245, 0.011170141398906708, 0.0786336362361908, 0.10571043193340302, -0.03956121951341629, 0.1422824263572693, -0.09538572281599045, -0.1273648589849472, 0.06174945831298828, -0.1498204916715622, -0.03268571197986603, 0.10802905261516571, -0.19135892391204834, -0.18400703370571136, 0.06094064936041832, -0.020519765093922615, -0.07975415140390396, 0.07219196856021881, -0.018064072355628014, -0.04178387671709061, -0.2043389081954956, 0.05291954427957535, -0.007784863002598286, 0.057218488305807114, 0.014430752955377102, 0.2345595508813858, -0.0583525151014328, 0.0014521008124575019, -0.03251469135284424, -0.10703598707914352, -0.0590674951672554, -0.011080600321292877, -0.0810576006770134, 0.08478423953056335, 0.022029176354408264, 0.23455876111984253, -0.22829017043113708, 0.09756062924861908, 0.0521826446056366, -0.030904360115528107, -0.02351621352136135, -0.09471680223941803, 0.010595613159239292, 0.03779244422912598, 0.08116095513105392, 0.0399923101067543, 0.006836414337158203, 0.02899005264043808, -0.03659699484705925, 0.11109240353107452, 0.17182014882564545, -0.05900280177593231, -0.022042477503418922, -0.06900282204151154, 0.002382892882451415, 0.03311373293399811, -0.039846234023571014, -0.08817679435014725, -0.07490094751119614, 0.14878860116004944, 0.048122331500053406, 0.15176555514335632, 0.1833566427230835, 0.05949530377984047, -0.08266551792621613, -0.10129088163375854, -0.055888738483190536, 0.0977667048573494, -0.06163249909877777, 0.20344758033752441, -0.0391959547996521, 0.16235889494419098, -0.17256885766983032, -0.1540871113538742, -0.03266596049070358, 0.07940210402011871, -0.13183638453483582, 0.08041179180145264, -0.19428402185440063, -0.0014230124652385712, 0.12373831868171692, -0.09125572443008423, -0.07264504581689835, 0.026482565328478813, 0.004843762144446373, 0.01165161095559597, 0.0007522382074967027, 0.027993502095341682, 0.059844739735126495, -0.054036516696214676, -0.04568551853299141, 0.037588853389024734, 0.07846792042255402, 0.015757853165268898, 0.15316487848758698, 0.0032419669441878796, 0.03223533555865288, 0.22572079300880432, -0.012264770455658436, 0.03957086428999901, 0.16759365797042847, 0.18532662093639374, -0.16847480833530426, 0.035589415580034256, 0.08962953090667725, -0.00008901199180399999, -0.09591809660196304, 0.012527135200798512, -0.019909974187612534, 0.021410301327705383, -0.1962626427412033, -0.10659525543451309, 0.03362644091248512, 0.14137598872184753, 0.03038221225142479, -0.0921168401837349, 0.13035093247890472, -0.0007204925059340894, -0.12276586890220642, 0.1625727415084839, 0.15777228772640228, 0.012664934620261192, -0.07336907088756561, -0.20165689289569855, -2.3751336494840525e-32, 0.027513902634382248, 0.1301773190498352, -0.08463602513074875, -0.06905803084373474, -0.19588908553123474, 0.12126754969358444, 0.029338130727410316, -0.05303001403808594, -0.166512131690979, -0.02544776163995266, 0.07584767043590546, 0.07180984318256378, -0.03542393445968628, 0.07848595827817917, -0.000009542359293845948, -0.14531388878822327, -0.21325793862342834, -0.21331287920475006, -0.0644022598862648, -0.07356926798820496, 0.024743489921092987, -0.018548838794231415, 0.0322696678340435, -0.1225830614566803, -0.03752557188272476, 0.11990412324666977, -0.12854446470737457, 0.08387119323015213, 0.06515943259000778, 0.07842526584863663, -0.06639008224010468, 0.04239343851804733, -0.04819966107606888, -0.040809135884046555, -0.1520712524652481, -0.06466139853000641, -0.20054231584072113, 0.028886809945106506, -0.07118146866559982, 0.05484773963689804, -0.10399539768695831, 0.11806287616491318, 0.023229006677865982, -0.14845356345176697, 0.06765469908714294, -0.03870841860771179, -0.041925642639398575, 0.05814867466688156, -0.061310600489377975, -0.1300940215587616, 0.007931738160550594, 0.13434654474258423, -0.15168479084968567, 0.06665649265050888, 0.03716237097978592, -0.12569384276866913, 0.006427078042179346, 0.2003600299358368, 0.014173010364174843, -0.08126542717218399, 0.16503575444221497, -0.054429031908512115, 0.10951340943574905, -0.0143744433298707, 0.010486016049981117, 0.1607750803232193, 0.20092816650867462, 0.050092969089746475, -0.04269903525710106, -0.0021609258837997913, 0.01306682825088501, 0.0030739803332835436, 0.07917706668376923, -0.09616303443908691, -0.08326347917318344, 0.11974451690912247, -0.10734584927558899, 0.003016964066773653, -0.03117598593235016, 0.12930914759635925, 0.03779491409659386, 0.12009234726428986, 0.11387445032596588, 0.005765869747847319, -0.09352105855941772, -0.025650739669799805, -0.08767291158437729, 0.01249655894935131, -0.07579634338617325, -0.007193080615252256, 0.014179740101099014, 0.04569855332374573, -0.1857389360666275, -0.04182989150285721, -0.1925874501466751, 0.15043406188488007, -0.0511772520840168, 0.06645116955041885, 0.04970313236117363, -0.11001084744930267, -0.28247392177581787, 0.09710311889648438, 0.11223635077476501, 0.08915826678276062, 0.048279114067554474, -0.10585028678178787, 0.14557108283042908, 0.09447850286960602, -0.0822543352842331, -0.04526471346616745, -0.0509168840944767, 0.04885733127593994, 0.20159289240837097, -0.039871010929346085, 0.056487131863832474, 0.01794748194515705, -0.06455321609973907, -0.009847666136920452, 0.07344323396682739, 0.22130373120307922, -0.03136806562542915, 0.1406712830066681, -0.2782388925552368, -0.058070361614227295, 0.10440327227115631, 0.10404953360557556, -0.1127619668841362, -0.03808732330799103, 0.10525139421224594, -0.15720340609550476, 0.06089862436056137, -0.15409457683563232, 7.808267810105463e-7, -0.05493340641260147, 0.11263952404260635, 0.029712431132793427, -0.009420071728527546, 0.08028024435043335, -0.07754553109407425, -0.16435496509075165, 0.1759546548128128, 0.03606240451335907, 0.05329537391662598, -0.038358427584171295, 0.03967815637588501, 0.0991394892334938, -0.02870085835456848, 0.027675388380885124, -0.03884134069085121, -0.17025581002235413, 0.02161795273423195, -0.036815568804740906, -0.029075155034661293, -0.11524149775505066, 0.11748860776424408, -0.004530876409262419, 0.10136439651250839, 0.05472055450081825, -0.10605227947235107, -0.07681816071271896, -0.050594937056303024, 0.05083168298006058, -0.18722586333751678, -0.10025231540203094, 0.039253175258636475, 0.051346227526664734, -0.07564543187618256, 0.06524967402219772, -0.16494934260845184, -0.25673454999923706, -0.06851664185523987, 0.03650510683655739, 0.15876956284046173, 0.00500172283500433, -0.15859846770763397, 0.06535538285970688, 0.08115499466657639, 0.03538230061531067, -0.0356188528239727, -0.11616659164428711, 0.17081999778747559, -0.10199705511331558, 0.04405736178159714, 0.1357012242078781, 0.053456518799066544, -0.044237565249204636, 0.0789477676153183, -0.16438832879066467, -0.029759684577584267, 0.04076036065816879, -0.05873667821288109, 0.11043518036603928, -0.0755629688501358, 0.09804537892341614, -0.10440051555633545, 0.12302517890930176, -0.11511891335248947, -0.006291715428233147, -0.14517426490783691, -0.07925818860530853, 1.0996345575759404e-34, 0.07618363946676254, 0.013587524183094501, -0.014968202449381351, -0.13679872453212738, 0.08486846834421158, -0.13474217057228088, 0.15356780588626862, 0.04399770125746727, -0.06416219472885132, -0.13136760890483856, 0.03925706818699837 ]
https://github.com/huggingface/datasets/issues/6273
Broken Link to PubMed Abstracts dataset .
"Keeping the video is maybe fine, we can add a note on youtube to suggest to load a dataset with a d(...TRUNCATED)
"### Describe the bug\n\nThe link provided for the dataset is broken,\r\ndata_files = \r\n[https://t(...TRUNCATED)
35
"Broken Link to PubMed Abstracts dataset . \n ### Describe the bug\n\nThe link provided for the data(...TRUNCATED)
[0.19639399647712708,0.1881607621908188,-0.02008688822388649,-0.026863332837820053,0.159860208630561(...TRUNCATED)

Dataset Card for "hf-github-issues-comments-embeddings"

More Information needed

Downloads last month
4
Edit dataset card