html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
In the meantime you can specify yourself the `ReadOptions` config like this:
```python
import pyarrow.csv as pac # PyArrow is installed with `datasets`
read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
dataset = load_dataset('csv', data_files=files, read_options=read_options)
```
| Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 56 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
In the meantime you can specify yourself the `ReadOptions` config like this:
```python
import pyarrow.csv as pac # PyArrow is installed with `datasets`
read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
dataset = load_dataset('csv', data_files=files, read_options=read_options)
```
| [
-0.2411831170320511,
-0.319865345954895,
-0.06815589964389801,
0.4316070079803467,
0.36252546310424805,
0.019154861569404602,
0.5210210084915161,
0.43771302700042725,
0.29491275548934937,
0.032775163650512695,
0.016962695866823196,
-0.11870503425598145,
0.09059164673089981,
0.18028973042964935,
0.03506602719426155,
0.11300927400588989,
0.07302826642990112,
0.3988213837146759,
0.03172004967927933,
0.06997212767601013,
-0.21886035799980164,
0.12086943536996841,
0.0058676376938819885,
0.05751488357782364,
-0.12442260980606079,
0.07236414402723312,
-0.00820845365524292,
0.11691468954086304,
-0.23435144126415253,
-0.4013204574584961,
0.41972312331199646,
0.07845443487167358,
0.33285048604011536,
0.5207664966583252,
-0.00011690515384543687,
0.15647360682487488,
0.2654483914375305,
-0.18562574684619904,
-0.044199466705322266,
-0.5195807218551636,
0.030129767954349518,
-0.5329576730728149,
0.2776658535003662,
-0.1672024428844452,
-0.014489179477095604,
-0.17868046462535858,
-0.11099937558174133,
-0.03580589219927788,
0.30141258239746094,
0.3175452947616577,
0.1804957389831543,
-0.2607496976852417,
0.05989224836230278,
-0.010018667206168175,
0.20529240369796753,
0.037178885191679,
-0.015685752034187317,
0.41754746437072754,
0.11739545315504074,
-0.1267610639333725,
-0.04873094707727432,
-0.19366738200187683,
-0.2392432987689972,
0.35819900035858154,
0.31963518261909485,
0.13993971049785614,
0.07096700370311737,
-0.1089666336774826,
0.2680702805519104,
0.1055053249001503,
0.6067357659339905,
-0.3076421618461609,
-0.14854715764522552,
-0.015400387346744537,
-0.020296946167945862,
-0.4886515736579895,
0.2558155953884125,
0.40449440479278564,
-0.15216007828712463,
0.11733308434486389,
-0.21221239864826202,
0.24844670295715332,
-0.2663930058479309,
0.2028616964817047,
-0.06734703481197357,
-0.35319048166275024,
-0.2522073984146118,
0.2693184018135071,
0.2523401975631714,
0.07374778389930725,
0.33364003896713257,
-0.09374982118606567,
0.026853669434785843,
0.18069645762443542,
-0.5556496381759644,
0.279649555683136,
-0.11766041070222855,
-0.09043673425912857,
0.16374057531356812,
0.0962190255522728,
0.40142199397087097,
0.13706214725971222,
0.04234509542584419,
0.19469785690307617,
0.31912994384765625,
0.18613311648368835,
-0.0428147092461586,
0.06910490989685059,
0.027385514229536057,
0.34621739387512207,
-0.2297833263874054,
-0.2338581681251526,
-0.38813719153404236,
-0.504957914352417,
0.23814241588115692,
-0.1538381278514862,
0.2674439549446106,
-0.2704332172870636,
-0.24793283641338348,
-0.09601990878582001,
-0.036132387816905975,
-0.009422952309250832,
-0.05283479019999504,
0.5738205909729004,
0.21583428978919983,
0.38020431995391846,
-0.05420989543199539,
0.25720924139022827,
-0.21127575635910034,
-0.09865451604127884,
-0.08035243302583694,
0.020115850493311882,
-0.05760239064693451,
0.05229145288467407,
0.3777484893798828,
-0.21668820083141327,
0.12146066874265671,
0.1762952357530594,
-0.043516337871551514,
-0.2938743233680725,
-0.1455058455467224,
-0.4177221357822418,
0.03672413155436516,
0.2833082675933838,
0.2024739384651184,
0.09795275330543518,
0.2341529130935669,
-0.2812092900276184,
-0.060687921941280365,
0.380541056394577,
-0.2301194965839386,
-0.16856931149959564,
0.09726409614086151,
0.09630241990089417,
-0.06611718237400055,
0.16567839682102203,
-0.39563167095184326,
0.15635129809379578,
0.3519502580165863,
-0.4384937584400177,
0.033467844128608704,
-0.21348431706428528,
-0.24112345278263092,
-0.35248106718063354,
0.20189036428928375,
0.2790597677230835,
-0.785466730594635,
0.3429478108882904,
0.05390669032931328,
-0.03174859285354614,
0.11499913036823273,
0.4237147271633148,
-0.14831720292568207,
0.061177998781204224,
-0.2709868550300598,
0.09215261042118073,
0.14062385261058807,
0.007543109357357025,
-0.629366934299469,
0.33075642585754395,
-0.04602794349193573,
0.08954580873250961,
0.31206458806991577,
0.06455278396606445,
0.05121501162648201,
0.08917737752199173,
-0.10802222788333893,
0.018553880974650383,
0.023134589195251465,
0.0440056174993515,
-0.2607477307319641,
-0.12919245660305023,
0.31875085830688477,
0.142624631524086,
-0.06477391719818115,
-0.06767282634973526,
0.23888924717903137,
-0.408738911151886,
0.20254525542259216,
-0.01808762177824974,
0.14161603152751923,
0.17524731159210205,
0.17913173139095306,
-0.1968240886926651,
0.034974098205566406,
0.01043354719877243,
-0.44934940338134766,
0.14338240027427673,
0.2848805785179138,
-0.16870121657848358,
-0.21594424545764923,
-0.07973095774650574,
-0.38411810994148254,
-0.029700713232159615,
-0.2681601941585541,
-0.12419965863227844,
-0.024652723222970963,
0.0725153237581253,
0.05951985344290733,
-0.14405347406864166,
-0.1857398897409439,
0.11611927300691605,
-0.22377678751945496,
-0.011276012286543846,
-0.01584358885884285,
0.1422192007303238,
0.05879932641983032,
-0.12498876452445984,
0.10647206008434296,
-0.06290075927972794,
0.20716780424118042,
-0.04833386465907097,
-0.2763521075248718,
0.24959132075309753,
0.1456867754459381,
0.045615311712026596,
-0.2857957184314728,
-0.17478762567043304,
0.08302010595798492,
-0.2415052205324173,
-0.08720072358846664,
0.023738399147987366,
0.36637139320373535,
-0.1825467050075531,
-0.33928054571151733,
0.2706235647201538,
-0.15670067071914673,
0.3015138804912567,
0.18797563016414642,
-0.35807162523269653,
0.30650147795677185,
0.016720425337553024,
0.17819397151470184,
0.07049177587032318,
0.1380857676267624,
0.07365468889474869,
0.4947434663772583,
0.2995409071445465,
-0.09684166312217712,
-0.1562499701976776,
0.5009899139404297,
-0.04704403504729271,
-0.21856340765953064,
0.31125932931900024,
-0.11817748099565506,
-0.19453522562980652,
0.06843123584985733,
0.08874505758285522,
0.3798213005065918,
0.12937648594379425,
-0.19153094291687012,
0.014664222486317158,
0.14350274205207825,
-0.2500297427177429,
0.12040601670742035,
-0.22043462097644806,
0.14736174046993256,
0.3965649902820587,
0.12700989842414856,
-0.12728585302829742,
-0.1951441466808319,
0.03774373605847359,
0.08758541196584702,
0.325723260641098,
-0.411955863237381,
-0.0675453171133995,
-0.07345385104417801,
-0.00520581379532814,
-0.18028488755226135,
0.09860352426767349,
-0.05557971075177193,
0.0971231609582901,
-0.39961129426956177,
0.33282411098480225,
0.2897822856903076,
-0.0790664404630661,
-0.24312610924243927,
0.08863416314125061,
0.21581275761127472,
-0.33705583214759827,
-0.003460582345724106,
-0.048990845680236816,
-0.29193973541259766,
-0.026176592335104942,
0.33070987462997437,
0.10981905460357666,
-0.0008767265826463699,
-0.021765828132629395,
0.02802533656358719,
-0.05484504997730255,
-0.09253303706645966,
-0.04392474889755249,
-0.07322954386472702,
0.020921867340803146,
-0.05116620659828186,
0.4193308353424072,
0.007607895880937576,
-0.14463084936141968,
0.4017484784126282,
-0.2536608874797821,
-0.048924874514341354,
0.3501361012458801,
0.06369287520647049,
-0.09587976336479187,
-0.1087074726819992,
-0.3498893082141876,
-0.13988791406154633,
-0.4293373227119446,
0.3910629153251648,
0.08475556969642639,
0.04193168133497238,
0.092631496489048,
0.4331052601337433,
-0.026084762066602707,
0.3013547956943512,
-0.031216470524668694,
-0.08480477333068848,
-0.297705739736557,
0.36457401514053345,
-0.05611623451113701,
-0.4676564633846283,
0.011941570788621902,
0.08283552527427673,
0.35919028520584106,
0.16382724046707153,
-0.4252471923828125,
0.3267475664615631,
-0.15090760588645935,
0.16282014548778534,
0.0011047571897506714,
-0.024227259680628777,
0.06095484271645546,
-0.08722764253616333,
-0.0218233410269022,
0.03643060475587845,
-0.24171605706214905,
-0.014179997146129608,
-0.03204439580440521,
0.14758382737636566,
0.05136857554316521,
0.45842885971069336,
-0.03719261288642883,
0.6513363122940063,
0.08746397495269775,
-0.08823134005069733,
0.4855554699897766,
-0.3082401156425476,
0.3818775415420532,
-0.2096707820892334,
-0.3737452030181885,
-0.08557458966970444,
-0.3519814908504486,
-0.19244661927223206,
0.26774847507476807,
-0.03358374536037445,
-0.03341459482908249,
-0.12577567994594574,
0.003518354147672653,
-0.4046856760978699,
-0.03770304471254349,
0.18363235890865326,
0.030696583911776543,
-0.01483028382062912,
-0.10059572756290436,
-0.013301469385623932,
-0.011646009981632233,
-0.237362802028656,
-0.19425834715366364,
0.2739641070365906,
-0.15134218335151672,
0.06338702142238617,
-0.22424794733524323,
-0.061580441892147064,
-0.302937388420105,
0.3292050361633301,
-0.013623456470668316,
0.3102864623069763,
0.010614890605211258,
-0.017695296555757523,
0.09729659557342529,
-0.12522228062152863,
0.7449787855148315,
0.1892857849597931,
-0.1550699919462204,
0.1278296411037445,
-0.024113940075039864,
-0.4415837228298187,
-0.12176112830638885,
0.19063140451908112,
0.30733585357666016,
0.07446150481700897,
0.35486558079719543,
-0.07032592594623566,
-0.00969347171485424,
-0.14434337615966797,
0.35467857122421265,
0.043252650648355484,
-0.3951281011104584,
-0.5194918513298035,
-0.23497897386550903,
-0.3830536901950836,
-0.2121351957321167,
-0.08986641466617584,
0.28827884793281555,
-0.32440733909606934,
-0.14238688349723816,
0.11836159974336624,
-0.29905399680137634,
0.06015683338046074,
0.15338079631328583,
0.2973896265029907,
-0.11291459202766418,
0.14489613473415375,
0.04683535173535347,
0.0698045939207077,
0.37691158056259155,
0.7987189292907715,
-0.07857607305049896,
-0.622077226638794,
0.08484327793121338,
-0.20502634346485138,
0.38534826040267944,
0.04782029241323471,
-0.20320527255535126,
0.12898661196231842,
0.09073472023010254,
0.06203401833772659,
0.037947990000247955,
0.014437409117817879,
0.3036859929561615,
0.04965509474277496,
-0.3454539477825165,
-0.5439224243164062,
0.4874184727668762,
-0.12590846419334412,
0.2102593034505844,
0.3020800054073334,
-0.21199996769428253,
-0.10998106747865677,
0.1555226892232895,
-0.3346247375011444,
0.6592135429382324,
-0.42182987928390503,
0.19383063912391663,
0.3073362112045288,
0.05633615702390671,
0.25842905044555664,
-0.44519680738449097,
0.1323070526123047,
-0.39196813106536865,
-0.2109036147594452,
-0.10431202501058578,
-0.0712030678987503,
0.239385724067688,
0.4321900010108948,
-0.12124530971050262,
0.31186360120773315,
-0.07415001839399338,
0.3325560986995697,
0.11313378065824509,
0.24382546544075012,
-0.1005159318447113,
-0.08646830916404724,
-0.30102071166038513,
0.01042373850941658,
-0.14308081567287445,
-0.034952130168676376,
0.028959106653928757,
0.054464343935251236,
-0.18056756258010864,
-0.20164568722248077,
-0.24611249566078186,
0.2200247049331665,
-0.2911674380302429,
0.11540494114160538,
-0.11095491051673889,
-0.46866488456726074,
0.1963643580675125,
0.23806700110435486,
-0.20870287716388702,
-0.08517903089523315,
-0.12408511340618134,
0.15505348145961761,
0.1596348136663437,
-0.040175680071115494,
-0.20837441086769104,
-0.053695619106292725,
-0.015885574743151665,
0.0761261060833931,
-0.2351241409778595,
0.1545509696006775,
-0.12227920442819595,
-0.09567444026470184,
0.2780734896659851,
0.23765741288661957,
-0.08480723202228546,
-0.5452086925506592,
-0.532619833946228,
-0.4284158945083618,
0.07598119974136353,
-0.1957322657108307,
0.06519807875156403,
-0.04207879304885864,
0.09834162145853043,
-0.16163542866706848,
0.18593519926071167,
-0.46886953711509705,
-0.10202698409557343,
0.3918125033378601,
-0.1116865798830986,
0.09395454823970795,
0.5907300710678101,
0.21935035288333893,
-0.01689293049275875,
-0.14115241169929504,
0.06424085050821304,
0.3081057369709015,
-0.35318857431411743,
0.1170663833618164,
0.11414909362792969,
0.3159496784210205,
0.13925288617610931,
0.2917450964450836,
0.15658080577850342,
-0.07767295092344284,
0.07445482909679413,
-0.5115907192230225,
-0.3249691426753998,
-0.016528956592082977,
-0.0015316978096961975,
0.24795787036418915,
0.16721880435943604,
0.08186677098274231,
0.17267775535583496,
0.2032964527606964,
-0.1562301516532898,
0.1004621610045433,
0.10592921823263168,
-0.08695743978023529,
0.21063311398029327,
0.1420162469148636,
-0.13387268781661987,
-0.1038191169500351,
0.09349779039621353,
0.17764052748680115,
-0.05344494432210922,
-0.1887509524822235,
-0.07985582947731018,
0.15010015666484833,
0.09836078435182571,
0.023286115378141403,
-0.2034451961517334,
-0.2526891231536865,
-0.14970649778842926,
-0.19280517101287842,
0.06640926003456116,
0.029782593250274658,
-0.09811189770698547,
0.07176020741462708,
-0.2987653613090515,
-0.08465392142534256,
-0.5091862678527832,
0.027121789753437042,
-0.5075385570526123,
0.22313250601291656,
0.2992691397666931,
0.04858259856700897,
0.12175723165273666,
0.2004556655883789,
-0.1724264919757843,
-0.03115798532962799,
0.1516263484954834,
-0.13661956787109375,
0.30094656348228455,
-0.40147536993026733,
0.2035067230463028,
-0.05106562376022339,
0.34033772349357605,
0.4848606288433075,
-0.2076413631439209,
0.2197113186120987,
0.03758600354194641,
0.13411511480808258,
-0.3825286030769348,
0.27547687292099,
0.11723117530345917,
-0.06162983924150467,
-0.027484487742185593,
0.1696750521659851,
0.19921168684959412,
-0.20830711722373962,
-0.09577685594558716,
0.00691063329577446,
0.4759885370731354,
-0.007822543382644653,
-0.03395107015967369,
0.4135631322860718,
0.002714499831199646,
0.17896948754787445,
0.2403348684310913,
0.135637566447258,
0.01962074637413025,
0.7002614736557007,
-0.26022869348526,
-0.003964830189943314,
-0.23526856303215027,
0.3014821410179138,
-0.3278696537017822,
-0.7641027569770813,
0.16166481375694275,
0.2355506718158722,
-0.35331013798713684,
-0.16765114665031433,
0.12589791417121887,
0.6017505526542664,
-0.023375172168016434,
0.011492801830172539,
-0.11459315568208694,
-0.044835399836301804,
0.014055008068680763,
0.048389777541160583,
-0.06621351093053818,
-0.25367075204849243,
-0.07082390040159225,
0.18568317592144012,
-0.059555534273386,
0.01455974206328392,
0.2749812602996826,
0.18766385316848755,
-0.1494835466146469,
-0.4457589387893677,
0.06577509641647339,
0.17284920811653137,
0.0665423721075058,
-0.27483880519866943,
0.3666118383407593,
0.2653486728668213,
-0.0859917402267456,
0.1805054098367691,
-0.0413447842001915,
0.6402474045753479,
0.504191517829895,
0.09241169691085815,
-0.06174042448401451,
-0.12157170474529266,
-0.11399092525243759,
-0.17941808700561523,
0.17781716585159302,
0.34881794452667236,
0.4212689697742462,
0.14854425191879272,
0.11359825730323792,
-0.040185242891311646,
0.31608846783638,
0.20678915083408356,
0.09960100054740906,
-0.5459765195846558,
-0.1189197525382042,
-0.20831163227558136,
-0.2577386796474457,
-0.22663316130638123,
0.024151824414730072,
-0.28905951976776123,
0.020943306386470795,
0.4277473986148834,
0.07391566038131714,
0.27722686529159546,
-0.02682255581021309,
0.034567490220069885,
0.07433385401964188,
0.3142198920249939,
0.2397761195898056,
0.40228989720344543,
-0.4218081533908844,
-0.03541836142539978,
-0.7509752511978149,
0.11652792245149612,
-0.3764895796775818,
0.00959269143640995,
-0.03185897693037987,
0.15853829681873322,
0.1377418488264084,
0.08386078476905823,
0.15917232632637024,
0.29942384362220764,
0.11672317236661911,
0.2220778465270996,
-0.05618421733379364,
-0.18462048470973969,
-0.33807069063186646,
0.02648555114865303,
-0.17509248852729797,
-0.46551430225372314,
0.22135992348194122,
-0.1279323399066925,
0.009210947901010513,
-0.22518602013587952,
0.22398850321769714,
0.255967378616333,
-0.0059869736433029175,
0.47772929072380066,
-0.11201165616512299,
0.6255968809127808,
-0.08501801639795303,
0.3190016448497772,
-0.3009392023086548,
-0.0801897868514061,
-0.19280588626861572,
0.5200988054275513,
0.2061503380537033,
0.2713996171951294,
-0.1779927909374237,
-0.10791616141796112,
-0.21530425548553467,
0.15741008520126343,
-0.006548143923282623,
-0.07054738700389862,
0.0667274221777916,
-0.1510603129863739,
-0.0018242709338665009,
-0.05849042534828186,
0.15223149955272675,
0.09204801917076111,
-0.22293895483016968,
-0.07817313820123672,
-0.1745537519454956,
-0.18018533289432526,
0.1810823678970337,
-0.40432873368263245,
-0.3411034047603607,
0.1487179398536682,
0.12612642347812653,
0.10186608880758286,
0.1396922618150711,
-0.45242106914520264,
0.12178962677717209,
0.42447495460510254,
-0.12801724672317505,
-0.41742584109306335,
0.13403187692165375,
-0.21161901950836182,
0.10057024657726288,
-0.12185277044773102,
0.4765018820762634,
0.14110934734344482,
-0.3705090880393982,
-0.16157196462154388,
-0.3583213686943054
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | This did help to load the data. But the problem now is that I get:
ArrowInvalid: CSV parse error: Expected 5 columns, got 187
It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow
But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
| Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 66 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
This did help to load the data. But the problem now is that I get:
ArrowInvalid: CSV parse error: Expected 5 columns, got 187
It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow
But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
| [
-0.2411831170320511,
-0.319865345954895,
-0.06815589964389801,
0.4316070079803467,
0.36252546310424805,
0.019154861569404602,
0.5210210084915161,
0.43771302700042725,
0.29491275548934937,
0.032775163650512695,
0.016962695866823196,
-0.11870503425598145,
0.09059164673089981,
0.18028973042964935,
0.03506602719426155,
0.11300927400588989,
0.07302826642990112,
0.3988213837146759,
0.03172004967927933,
0.06997212767601013,
-0.21886035799980164,
0.12086943536996841,
0.0058676376938819885,
0.05751488357782364,
-0.12442260980606079,
0.07236414402723312,
-0.00820845365524292,
0.11691468954086304,
-0.23435144126415253,
-0.4013204574584961,
0.41972312331199646,
0.07845443487167358,
0.33285048604011536,
0.5207664966583252,
-0.00011690515384543687,
0.15647360682487488,
0.2654483914375305,
-0.18562574684619904,
-0.044199466705322266,
-0.5195807218551636,
0.030129767954349518,
-0.5329576730728149,
0.2776658535003662,
-0.1672024428844452,
-0.014489179477095604,
-0.17868046462535858,
-0.11099937558174133,
-0.03580589219927788,
0.30141258239746094,
0.3175452947616577,
0.1804957389831543,
-0.2607496976852417,
0.05989224836230278,
-0.010018667206168175,
0.20529240369796753,
0.037178885191679,
-0.015685752034187317,
0.41754746437072754,
0.11739545315504074,
-0.1267610639333725,
-0.04873094707727432,
-0.19366738200187683,
-0.2392432987689972,
0.35819900035858154,
0.31963518261909485,
0.13993971049785614,
0.07096700370311737,
-0.1089666336774826,
0.2680702805519104,
0.1055053249001503,
0.6067357659339905,
-0.3076421618461609,
-0.14854715764522552,
-0.015400387346744537,
-0.020296946167945862,
-0.4886515736579895,
0.2558155953884125,
0.40449440479278564,
-0.15216007828712463,
0.11733308434486389,
-0.21221239864826202,
0.24844670295715332,
-0.2663930058479309,
0.2028616964817047,
-0.06734703481197357,
-0.35319048166275024,
-0.2522073984146118,
0.2693184018135071,
0.2523401975631714,
0.07374778389930725,
0.33364003896713257,
-0.09374982118606567,
0.026853669434785843,
0.18069645762443542,
-0.5556496381759644,
0.279649555683136,
-0.11766041070222855,
-0.09043673425912857,
0.16374057531356812,
0.0962190255522728,
0.40142199397087097,
0.13706214725971222,
0.04234509542584419,
0.19469785690307617,
0.31912994384765625,
0.18613311648368835,
-0.0428147092461586,
0.06910490989685059,
0.027385514229536057,
0.34621739387512207,
-0.2297833263874054,
-0.2338581681251526,
-0.38813719153404236,
-0.504957914352417,
0.23814241588115692,
-0.1538381278514862,
0.2674439549446106,
-0.2704332172870636,
-0.24793283641338348,
-0.09601990878582001,
-0.036132387816905975,
-0.009422952309250832,
-0.05283479019999504,
0.5738205909729004,
0.21583428978919983,
0.38020431995391846,
-0.05420989543199539,
0.25720924139022827,
-0.21127575635910034,
-0.09865451604127884,
-0.08035243302583694,
0.020115850493311882,
-0.05760239064693451,
0.05229145288467407,
0.3777484893798828,
-0.21668820083141327,
0.12146066874265671,
0.1762952357530594,
-0.043516337871551514,
-0.2938743233680725,
-0.1455058455467224,
-0.4177221357822418,
0.03672413155436516,
0.2833082675933838,
0.2024739384651184,
0.09795275330543518,
0.2341529130935669,
-0.2812092900276184,
-0.060687921941280365,
0.380541056394577,
-0.2301194965839386,
-0.16856931149959564,
0.09726409614086151,
0.09630241990089417,
-0.06611718237400055,
0.16567839682102203,
-0.39563167095184326,
0.15635129809379578,
0.3519502580165863,
-0.4384937584400177,
0.033467844128608704,
-0.21348431706428528,
-0.24112345278263092,
-0.35248106718063354,
0.20189036428928375,
0.2790597677230835,
-0.785466730594635,
0.3429478108882904,
0.05390669032931328,
-0.03174859285354614,
0.11499913036823273,
0.4237147271633148,
-0.14831720292568207,
0.061177998781204224,
-0.2709868550300598,
0.09215261042118073,
0.14062385261058807,
0.007543109357357025,
-0.629366934299469,
0.33075642585754395,
-0.04602794349193573,
0.08954580873250961,
0.31206458806991577,
0.06455278396606445,
0.05121501162648201,
0.08917737752199173,
-0.10802222788333893,
0.018553880974650383,
0.023134589195251465,
0.0440056174993515,
-0.2607477307319641,
-0.12919245660305023,
0.31875085830688477,
0.142624631524086,
-0.06477391719818115,
-0.06767282634973526,
0.23888924717903137,
-0.408738911151886,
0.20254525542259216,
-0.01808762177824974,
0.14161603152751923,
0.17524731159210205,
0.17913173139095306,
-0.1968240886926651,
0.034974098205566406,
0.01043354719877243,
-0.44934940338134766,
0.14338240027427673,
0.2848805785179138,
-0.16870121657848358,
-0.21594424545764923,
-0.07973095774650574,
-0.38411810994148254,
-0.029700713232159615,
-0.2681601941585541,
-0.12419965863227844,
-0.024652723222970963,
0.0725153237581253,
0.05951985344290733,
-0.14405347406864166,
-0.1857398897409439,
0.11611927300691605,
-0.22377678751945496,
-0.011276012286543846,
-0.01584358885884285,
0.1422192007303238,
0.05879932641983032,
-0.12498876452445984,
0.10647206008434296,
-0.06290075927972794,
0.20716780424118042,
-0.04833386465907097,
-0.2763521075248718,
0.24959132075309753,
0.1456867754459381,
0.045615311712026596,
-0.2857957184314728,
-0.17478762567043304,
0.08302010595798492,
-0.2415052205324173,
-0.08720072358846664,
0.023738399147987366,
0.36637139320373535,
-0.1825467050075531,
-0.33928054571151733,
0.2706235647201538,
-0.15670067071914673,
0.3015138804912567,
0.18797563016414642,
-0.35807162523269653,
0.30650147795677185,
0.016720425337553024,
0.17819397151470184,
0.07049177587032318,
0.1380857676267624,
0.07365468889474869,
0.4947434663772583,
0.2995409071445465,
-0.09684166312217712,
-0.1562499701976776,
0.5009899139404297,
-0.04704403504729271,
-0.21856340765953064,
0.31125932931900024,
-0.11817748099565506,
-0.19453522562980652,
0.06843123584985733,
0.08874505758285522,
0.3798213005065918,
0.12937648594379425,
-0.19153094291687012,
0.014664222486317158,
0.14350274205207825,
-0.2500297427177429,
0.12040601670742035,
-0.22043462097644806,
0.14736174046993256,
0.3965649902820587,
0.12700989842414856,
-0.12728585302829742,
-0.1951441466808319,
0.03774373605847359,
0.08758541196584702,
0.325723260641098,
-0.411955863237381,
-0.0675453171133995,
-0.07345385104417801,
-0.00520581379532814,
-0.18028488755226135,
0.09860352426767349,
-0.05557971075177193,
0.0971231609582901,
-0.39961129426956177,
0.33282411098480225,
0.2897822856903076,
-0.0790664404630661,
-0.24312610924243927,
0.08863416314125061,
0.21581275761127472,
-0.33705583214759827,
-0.003460582345724106,
-0.048990845680236816,
-0.29193973541259766,
-0.026176592335104942,
0.33070987462997437,
0.10981905460357666,
-0.0008767265826463699,
-0.021765828132629395,
0.02802533656358719,
-0.05484504997730255,
-0.09253303706645966,
-0.04392474889755249,
-0.07322954386472702,
0.020921867340803146,
-0.05116620659828186,
0.4193308353424072,
0.007607895880937576,
-0.14463084936141968,
0.4017484784126282,
-0.2536608874797821,
-0.048924874514341354,
0.3501361012458801,
0.06369287520647049,
-0.09587976336479187,
-0.1087074726819992,
-0.3498893082141876,
-0.13988791406154633,
-0.4293373227119446,
0.3910629153251648,
0.08475556969642639,
0.04193168133497238,
0.092631496489048,
0.4331052601337433,
-0.026084762066602707,
0.3013547956943512,
-0.031216470524668694,
-0.08480477333068848,
-0.297705739736557,
0.36457401514053345,
-0.05611623451113701,
-0.4676564633846283,
0.011941570788621902,
0.08283552527427673,
0.35919028520584106,
0.16382724046707153,
-0.4252471923828125,
0.3267475664615631,
-0.15090760588645935,
0.16282014548778534,
0.0011047571897506714,
-0.024227259680628777,
0.06095484271645546,
-0.08722764253616333,
-0.0218233410269022,
0.03643060475587845,
-0.24171605706214905,
-0.014179997146129608,
-0.03204439580440521,
0.14758382737636566,
0.05136857554316521,
0.45842885971069336,
-0.03719261288642883,
0.6513363122940063,
0.08746397495269775,
-0.08823134005069733,
0.4855554699897766,
-0.3082401156425476,
0.3818775415420532,
-0.2096707820892334,
-0.3737452030181885,
-0.08557458966970444,
-0.3519814908504486,
-0.19244661927223206,
0.26774847507476807,
-0.03358374536037445,
-0.03341459482908249,
-0.12577567994594574,
0.003518354147672653,
-0.4046856760978699,
-0.03770304471254349,
0.18363235890865326,
0.030696583911776543,
-0.01483028382062912,
-0.10059572756290436,
-0.013301469385623932,
-0.011646009981632233,
-0.237362802028656,
-0.19425834715366364,
0.2739641070365906,
-0.15134218335151672,
0.06338702142238617,
-0.22424794733524323,
-0.061580441892147064,
-0.302937388420105,
0.3292050361633301,
-0.013623456470668316,
0.3102864623069763,
0.010614890605211258,
-0.017695296555757523,
0.09729659557342529,
-0.12522228062152863,
0.7449787855148315,
0.1892857849597931,
-0.1550699919462204,
0.1278296411037445,
-0.024113940075039864,
-0.4415837228298187,
-0.12176112830638885,
0.19063140451908112,
0.30733585357666016,
0.07446150481700897,
0.35486558079719543,
-0.07032592594623566,
-0.00969347171485424,
-0.14434337615966797,
0.35467857122421265,
0.043252650648355484,
-0.3951281011104584,
-0.5194918513298035,
-0.23497897386550903,
-0.3830536901950836,
-0.2121351957321167,
-0.08986641466617584,
0.28827884793281555,
-0.32440733909606934,
-0.14238688349723816,
0.11836159974336624,
-0.29905399680137634,
0.06015683338046074,
0.15338079631328583,
0.2973896265029907,
-0.11291459202766418,
0.14489613473415375,
0.04683535173535347,
0.0698045939207077,
0.37691158056259155,
0.7987189292907715,
-0.07857607305049896,
-0.622077226638794,
0.08484327793121338,
-0.20502634346485138,
0.38534826040267944,
0.04782029241323471,
-0.20320527255535126,
0.12898661196231842,
0.09073472023010254,
0.06203401833772659,
0.037947990000247955,
0.014437409117817879,
0.3036859929561615,
0.04965509474277496,
-0.3454539477825165,
-0.5439224243164062,
0.4874184727668762,
-0.12590846419334412,
0.2102593034505844,
0.3020800054073334,
-0.21199996769428253,
-0.10998106747865677,
0.1555226892232895,
-0.3346247375011444,
0.6592135429382324,
-0.42182987928390503,
0.19383063912391663,
0.3073362112045288,
0.05633615702390671,
0.25842905044555664,
-0.44519680738449097,
0.1323070526123047,
-0.39196813106536865,
-0.2109036147594452,
-0.10431202501058578,
-0.0712030678987503,
0.239385724067688,
0.4321900010108948,
-0.12124530971050262,
0.31186360120773315,
-0.07415001839399338,
0.3325560986995697,
0.11313378065824509,
0.24382546544075012,
-0.1005159318447113,
-0.08646830916404724,
-0.30102071166038513,
0.01042373850941658,
-0.14308081567287445,
-0.034952130168676376,
0.028959106653928757,
0.054464343935251236,
-0.18056756258010864,
-0.20164568722248077,
-0.24611249566078186,
0.2200247049331665,
-0.2911674380302429,
0.11540494114160538,
-0.11095491051673889,
-0.46866488456726074,
0.1963643580675125,
0.23806700110435486,
-0.20870287716388702,
-0.08517903089523315,
-0.12408511340618134,
0.15505348145961761,
0.1596348136663437,
-0.040175680071115494,
-0.20837441086769104,
-0.053695619106292725,
-0.015885574743151665,
0.0761261060833931,
-0.2351241409778595,
0.1545509696006775,
-0.12227920442819595,
-0.09567444026470184,
0.2780734896659851,
0.23765741288661957,
-0.08480723202228546,
-0.5452086925506592,
-0.532619833946228,
-0.4284158945083618,
0.07598119974136353,
-0.1957322657108307,
0.06519807875156403,
-0.04207879304885864,
0.09834162145853043,
-0.16163542866706848,
0.18593519926071167,
-0.46886953711509705,
-0.10202698409557343,
0.3918125033378601,
-0.1116865798830986,
0.09395454823970795,
0.5907300710678101,
0.21935035288333893,
-0.01689293049275875,
-0.14115241169929504,
0.06424085050821304,
0.3081057369709015,
-0.35318857431411743,
0.1170663833618164,
0.11414909362792969,
0.3159496784210205,
0.13925288617610931,
0.2917450964450836,
0.15658080577850342,
-0.07767295092344284,
0.07445482909679413,
-0.5115907192230225,
-0.3249691426753998,
-0.016528956592082977,
-0.0015316978096961975,
0.24795787036418915,
0.16721880435943604,
0.08186677098274231,
0.17267775535583496,
0.2032964527606964,
-0.1562301516532898,
0.1004621610045433,
0.10592921823263168,
-0.08695743978023529,
0.21063311398029327,
0.1420162469148636,
-0.13387268781661987,
-0.1038191169500351,
0.09349779039621353,
0.17764052748680115,
-0.05344494432210922,
-0.1887509524822235,
-0.07985582947731018,
0.15010015666484833,
0.09836078435182571,
0.023286115378141403,
-0.2034451961517334,
-0.2526891231536865,
-0.14970649778842926,
-0.19280517101287842,
0.06640926003456116,
0.029782593250274658,
-0.09811189770698547,
0.07176020741462708,
-0.2987653613090515,
-0.08465392142534256,
-0.5091862678527832,
0.027121789753437042,
-0.5075385570526123,
0.22313250601291656,
0.2992691397666931,
0.04858259856700897,
0.12175723165273666,
0.2004556655883789,
-0.1724264919757843,
-0.03115798532962799,
0.1516263484954834,
-0.13661956787109375,
0.30094656348228455,
-0.40147536993026733,
0.2035067230463028,
-0.05106562376022339,
0.34033772349357605,
0.4848606288433075,
-0.2076413631439209,
0.2197113186120987,
0.03758600354194641,
0.13411511480808258,
-0.3825286030769348,
0.27547687292099,
0.11723117530345917,
-0.06162983924150467,
-0.027484487742185593,
0.1696750521659851,
0.19921168684959412,
-0.20830711722373962,
-0.09577685594558716,
0.00691063329577446,
0.4759885370731354,
-0.007822543382644653,
-0.03395107015967369,
0.4135631322860718,
0.002714499831199646,
0.17896948754787445,
0.2403348684310913,
0.135637566447258,
0.01962074637413025,
0.7002614736557007,
-0.26022869348526,
-0.003964830189943314,
-0.23526856303215027,
0.3014821410179138,
-0.3278696537017822,
-0.7641027569770813,
0.16166481375694275,
0.2355506718158722,
-0.35331013798713684,
-0.16765114665031433,
0.12589791417121887,
0.6017505526542664,
-0.023375172168016434,
0.011492801830172539,
-0.11459315568208694,
-0.044835399836301804,
0.014055008068680763,
0.048389777541160583,
-0.06621351093053818,
-0.25367075204849243,
-0.07082390040159225,
0.18568317592144012,
-0.059555534273386,
0.01455974206328392,
0.2749812602996826,
0.18766385316848755,
-0.1494835466146469,
-0.4457589387893677,
0.06577509641647339,
0.17284920811653137,
0.0665423721075058,
-0.27483880519866943,
0.3666118383407593,
0.2653486728668213,
-0.0859917402267456,
0.1805054098367691,
-0.0413447842001915,
0.6402474045753479,
0.504191517829895,
0.09241169691085815,
-0.06174042448401451,
-0.12157170474529266,
-0.11399092525243759,
-0.17941808700561523,
0.17781716585159302,
0.34881794452667236,
0.4212689697742462,
0.14854425191879272,
0.11359825730323792,
-0.040185242891311646,
0.31608846783638,
0.20678915083408356,
0.09960100054740906,
-0.5459765195846558,
-0.1189197525382042,
-0.20831163227558136,
-0.2577386796474457,
-0.22663316130638123,
0.024151824414730072,
-0.28905951976776123,
0.020943306386470795,
0.4277473986148834,
0.07391566038131714,
0.27722686529159546,
-0.02682255581021309,
0.034567490220069885,
0.07433385401964188,
0.3142198920249939,
0.2397761195898056,
0.40228989720344543,
-0.4218081533908844,
-0.03541836142539978,
-0.7509752511978149,
0.11652792245149612,
-0.3764895796775818,
0.00959269143640995,
-0.03185897693037987,
0.15853829681873322,
0.1377418488264084,
0.08386078476905823,
0.15917232632637024,
0.29942384362220764,
0.11672317236661911,
0.2220778465270996,
-0.05618421733379364,
-0.18462048470973969,
-0.33807069063186646,
0.02648555114865303,
-0.17509248852729797,
-0.46551430225372314,
0.22135992348194122,
-0.1279323399066925,
0.009210947901010513,
-0.22518602013587952,
0.22398850321769714,
0.255967378616333,
-0.0059869736433029175,
0.47772929072380066,
-0.11201165616512299,
0.6255968809127808,
-0.08501801639795303,
0.3190016448497772,
-0.3009392023086548,
-0.0801897868514061,
-0.19280588626861572,
0.5200988054275513,
0.2061503380537033,
0.2713996171951294,
-0.1779927909374237,
-0.10791616141796112,
-0.21530425548553467,
0.15741008520126343,
-0.006548143923282623,
-0.07054738700389862,
0.0667274221777916,
-0.1510603129863739,
-0.0018242709338665009,
-0.05849042534828186,
0.15223149955272675,
0.09204801917076111,
-0.22293895483016968,
-0.07817313820123672,
-0.1745537519454956,
-0.18018533289432526,
0.1810823678970337,
-0.40432873368263245,
-0.3411034047603607,
0.1487179398536682,
0.12612642347812653,
0.10186608880758286,
0.1396922618150711,
-0.45242106914520264,
0.12178962677717209,
0.42447495460510254,
-0.12801724672317505,
-0.41742584109306335,
0.13403187692165375,
-0.21161901950836182,
0.10057024657726288,
-0.12185277044773102,
0.4765018820762634,
0.14110934734344482,
-0.3705090880393982,
-0.16157196462154388,
-0.3583213686943054
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error. | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 32 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error. | [
-0.2411831170320511,
-0.319865345954895,
-0.06815589964389801,
0.4316070079803467,
0.36252546310424805,
0.019154861569404602,
0.5210210084915161,
0.43771302700042725,
0.29491275548934937,
0.032775163650512695,
0.016962695866823196,
-0.11870503425598145,
0.09059164673089981,
0.18028973042964935,
0.03506602719426155,
0.11300927400588989,
0.07302826642990112,
0.3988213837146759,
0.03172004967927933,
0.06997212767601013,
-0.21886035799980164,
0.12086943536996841,
0.0058676376938819885,
0.05751488357782364,
-0.12442260980606079,
0.07236414402723312,
-0.00820845365524292,
0.11691468954086304,
-0.23435144126415253,
-0.4013204574584961,
0.41972312331199646,
0.07845443487167358,
0.33285048604011536,
0.5207664966583252,
-0.00011690515384543687,
0.15647360682487488,
0.2654483914375305,
-0.18562574684619904,
-0.044199466705322266,
-0.5195807218551636,
0.030129767954349518,
-0.5329576730728149,
0.2776658535003662,
-0.1672024428844452,
-0.014489179477095604,
-0.17868046462535858,
-0.11099937558174133,
-0.03580589219927788,
0.30141258239746094,
0.3175452947616577,
0.1804957389831543,
-0.2607496976852417,
0.05989224836230278,
-0.010018667206168175,
0.20529240369796753,
0.037178885191679,
-0.015685752034187317,
0.41754746437072754,
0.11739545315504074,
-0.1267610639333725,
-0.04873094707727432,
-0.19366738200187683,
-0.2392432987689972,
0.35819900035858154,
0.31963518261909485,
0.13993971049785614,
0.07096700370311737,
-0.1089666336774826,
0.2680702805519104,
0.1055053249001503,
0.6067357659339905,
-0.3076421618461609,
-0.14854715764522552,
-0.015400387346744537,
-0.020296946167945862,
-0.4886515736579895,
0.2558155953884125,
0.40449440479278564,
-0.15216007828712463,
0.11733308434486389,
-0.21221239864826202,
0.24844670295715332,
-0.2663930058479309,
0.2028616964817047,
-0.06734703481197357,
-0.35319048166275024,
-0.2522073984146118,
0.2693184018135071,
0.2523401975631714,
0.07374778389930725,
0.33364003896713257,
-0.09374982118606567,
0.026853669434785843,
0.18069645762443542,
-0.5556496381759644,
0.279649555683136,
-0.11766041070222855,
-0.09043673425912857,
0.16374057531356812,
0.0962190255522728,
0.40142199397087097,
0.13706214725971222,
0.04234509542584419,
0.19469785690307617,
0.31912994384765625,
0.18613311648368835,
-0.0428147092461586,
0.06910490989685059,
0.027385514229536057,
0.34621739387512207,
-0.2297833263874054,
-0.2338581681251526,
-0.38813719153404236,
-0.504957914352417,
0.23814241588115692,
-0.1538381278514862,
0.2674439549446106,
-0.2704332172870636,
-0.24793283641338348,
-0.09601990878582001,
-0.036132387816905975,
-0.009422952309250832,
-0.05283479019999504,
0.5738205909729004,
0.21583428978919983,
0.38020431995391846,
-0.05420989543199539,
0.25720924139022827,
-0.21127575635910034,
-0.09865451604127884,
-0.08035243302583694,
0.020115850493311882,
-0.05760239064693451,
0.05229145288467407,
0.3777484893798828,
-0.21668820083141327,
0.12146066874265671,
0.1762952357530594,
-0.043516337871551514,
-0.2938743233680725,
-0.1455058455467224,
-0.4177221357822418,
0.03672413155436516,
0.2833082675933838,
0.2024739384651184,
0.09795275330543518,
0.2341529130935669,
-0.2812092900276184,
-0.060687921941280365,
0.380541056394577,
-0.2301194965839386,
-0.16856931149959564,
0.09726409614086151,
0.09630241990089417,
-0.06611718237400055,
0.16567839682102203,
-0.39563167095184326,
0.15635129809379578,
0.3519502580165863,
-0.4384937584400177,
0.033467844128608704,
-0.21348431706428528,
-0.24112345278263092,
-0.35248106718063354,
0.20189036428928375,
0.2790597677230835,
-0.785466730594635,
0.3429478108882904,
0.05390669032931328,
-0.03174859285354614,
0.11499913036823273,
0.4237147271633148,
-0.14831720292568207,
0.061177998781204224,
-0.2709868550300598,
0.09215261042118073,
0.14062385261058807,
0.007543109357357025,
-0.629366934299469,
0.33075642585754395,
-0.04602794349193573,
0.08954580873250961,
0.31206458806991577,
0.06455278396606445,
0.05121501162648201,
0.08917737752199173,
-0.10802222788333893,
0.018553880974650383,
0.023134589195251465,
0.0440056174993515,
-0.2607477307319641,
-0.12919245660305023,
0.31875085830688477,
0.142624631524086,
-0.06477391719818115,
-0.06767282634973526,
0.23888924717903137,
-0.408738911151886,
0.20254525542259216,
-0.01808762177824974,
0.14161603152751923,
0.17524731159210205,
0.17913173139095306,
-0.1968240886926651,
0.034974098205566406,
0.01043354719877243,
-0.44934940338134766,
0.14338240027427673,
0.2848805785179138,
-0.16870121657848358,
-0.21594424545764923,
-0.07973095774650574,
-0.38411810994148254,
-0.029700713232159615,
-0.2681601941585541,
-0.12419965863227844,
-0.024652723222970963,
0.0725153237581253,
0.05951985344290733,
-0.14405347406864166,
-0.1857398897409439,
0.11611927300691605,
-0.22377678751945496,
-0.011276012286543846,
-0.01584358885884285,
0.1422192007303238,
0.05879932641983032,
-0.12498876452445984,
0.10647206008434296,
-0.06290075927972794,
0.20716780424118042,
-0.04833386465907097,
-0.2763521075248718,
0.24959132075309753,
0.1456867754459381,
0.045615311712026596,
-0.2857957184314728,
-0.17478762567043304,
0.08302010595798492,
-0.2415052205324173,
-0.08720072358846664,
0.023738399147987366,
0.36637139320373535,
-0.1825467050075531,
-0.33928054571151733,
0.2706235647201538,
-0.15670067071914673,
0.3015138804912567,
0.18797563016414642,
-0.35807162523269653,
0.30650147795677185,
0.016720425337553024,
0.17819397151470184,
0.07049177587032318,
0.1380857676267624,
0.07365468889474869,
0.4947434663772583,
0.2995409071445465,
-0.09684166312217712,
-0.1562499701976776,
0.5009899139404297,
-0.04704403504729271,
-0.21856340765953064,
0.31125932931900024,
-0.11817748099565506,
-0.19453522562980652,
0.06843123584985733,
0.08874505758285522,
0.3798213005065918,
0.12937648594379425,
-0.19153094291687012,
0.014664222486317158,
0.14350274205207825,
-0.2500297427177429,
0.12040601670742035,
-0.22043462097644806,
0.14736174046993256,
0.3965649902820587,
0.12700989842414856,
-0.12728585302829742,
-0.1951441466808319,
0.03774373605847359,
0.08758541196584702,
0.325723260641098,
-0.411955863237381,
-0.0675453171133995,
-0.07345385104417801,
-0.00520581379532814,
-0.18028488755226135,
0.09860352426767349,
-0.05557971075177193,
0.0971231609582901,
-0.39961129426956177,
0.33282411098480225,
0.2897822856903076,
-0.0790664404630661,
-0.24312610924243927,
0.08863416314125061,
0.21581275761127472,
-0.33705583214759827,
-0.003460582345724106,
-0.048990845680236816,
-0.29193973541259766,
-0.026176592335104942,
0.33070987462997437,
0.10981905460357666,
-0.0008767265826463699,
-0.021765828132629395,
0.02802533656358719,
-0.05484504997730255,
-0.09253303706645966,
-0.04392474889755249,
-0.07322954386472702,
0.020921867340803146,
-0.05116620659828186,
0.4193308353424072,
0.007607895880937576,
-0.14463084936141968,
0.4017484784126282,
-0.2536608874797821,
-0.048924874514341354,
0.3501361012458801,
0.06369287520647049,
-0.09587976336479187,
-0.1087074726819992,
-0.3498893082141876,
-0.13988791406154633,
-0.4293373227119446,
0.3910629153251648,
0.08475556969642639,
0.04193168133497238,
0.092631496489048,
0.4331052601337433,
-0.026084762066602707,
0.3013547956943512,
-0.031216470524668694,
-0.08480477333068848,
-0.297705739736557,
0.36457401514053345,
-0.05611623451113701,
-0.4676564633846283,
0.011941570788621902,
0.08283552527427673,
0.35919028520584106,
0.16382724046707153,
-0.4252471923828125,
0.3267475664615631,
-0.15090760588645935,
0.16282014548778534,
0.0011047571897506714,
-0.024227259680628777,
0.06095484271645546,
-0.08722764253616333,
-0.0218233410269022,
0.03643060475587845,
-0.24171605706214905,
-0.014179997146129608,
-0.03204439580440521,
0.14758382737636566,
0.05136857554316521,
0.45842885971069336,
-0.03719261288642883,
0.6513363122940063,
0.08746397495269775,
-0.08823134005069733,
0.4855554699897766,
-0.3082401156425476,
0.3818775415420532,
-0.2096707820892334,
-0.3737452030181885,
-0.08557458966970444,
-0.3519814908504486,
-0.19244661927223206,
0.26774847507476807,
-0.03358374536037445,
-0.03341459482908249,
-0.12577567994594574,
0.003518354147672653,
-0.4046856760978699,
-0.03770304471254349,
0.18363235890865326,
0.030696583911776543,
-0.01483028382062912,
-0.10059572756290436,
-0.013301469385623932,
-0.011646009981632233,
-0.237362802028656,
-0.19425834715366364,
0.2739641070365906,
-0.15134218335151672,
0.06338702142238617,
-0.22424794733524323,
-0.061580441892147064,
-0.302937388420105,
0.3292050361633301,
-0.013623456470668316,
0.3102864623069763,
0.010614890605211258,
-0.017695296555757523,
0.09729659557342529,
-0.12522228062152863,
0.7449787855148315,
0.1892857849597931,
-0.1550699919462204,
0.1278296411037445,
-0.024113940075039864,
-0.4415837228298187,
-0.12176112830638885,
0.19063140451908112,
0.30733585357666016,
0.07446150481700897,
0.35486558079719543,
-0.07032592594623566,
-0.00969347171485424,
-0.14434337615966797,
0.35467857122421265,
0.043252650648355484,
-0.3951281011104584,
-0.5194918513298035,
-0.23497897386550903,
-0.3830536901950836,
-0.2121351957321167,
-0.08986641466617584,
0.28827884793281555,
-0.32440733909606934,
-0.14238688349723816,
0.11836159974336624,
-0.29905399680137634,
0.06015683338046074,
0.15338079631328583,
0.2973896265029907,
-0.11291459202766418,
0.14489613473415375,
0.04683535173535347,
0.0698045939207077,
0.37691158056259155,
0.7987189292907715,
-0.07857607305049896,
-0.622077226638794,
0.08484327793121338,
-0.20502634346485138,
0.38534826040267944,
0.04782029241323471,
-0.20320527255535126,
0.12898661196231842,
0.09073472023010254,
0.06203401833772659,
0.037947990000247955,
0.014437409117817879,
0.3036859929561615,
0.04965509474277496,
-0.3454539477825165,
-0.5439224243164062,
0.4874184727668762,
-0.12590846419334412,
0.2102593034505844,
0.3020800054073334,
-0.21199996769428253,
-0.10998106747865677,
0.1555226892232895,
-0.3346247375011444,
0.6592135429382324,
-0.42182987928390503,
0.19383063912391663,
0.3073362112045288,
0.05633615702390671,
0.25842905044555664,
-0.44519680738449097,
0.1323070526123047,
-0.39196813106536865,
-0.2109036147594452,
-0.10431202501058578,
-0.0712030678987503,
0.239385724067688,
0.4321900010108948,
-0.12124530971050262,
0.31186360120773315,
-0.07415001839399338,
0.3325560986995697,
0.11313378065824509,
0.24382546544075012,
-0.1005159318447113,
-0.08646830916404724,
-0.30102071166038513,
0.01042373850941658,
-0.14308081567287445,
-0.034952130168676376,
0.028959106653928757,
0.054464343935251236,
-0.18056756258010864,
-0.20164568722248077,
-0.24611249566078186,
0.2200247049331665,
-0.2911674380302429,
0.11540494114160538,
-0.11095491051673889,
-0.46866488456726074,
0.1963643580675125,
0.23806700110435486,
-0.20870287716388702,
-0.08517903089523315,
-0.12408511340618134,
0.15505348145961761,
0.1596348136663437,
-0.040175680071115494,
-0.20837441086769104,
-0.053695619106292725,
-0.015885574743151665,
0.0761261060833931,
-0.2351241409778595,
0.1545509696006775,
-0.12227920442819595,
-0.09567444026470184,
0.2780734896659851,
0.23765741288661957,
-0.08480723202228546,
-0.5452086925506592,
-0.532619833946228,
-0.4284158945083618,
0.07598119974136353,
-0.1957322657108307,
0.06519807875156403,
-0.04207879304885864,
0.09834162145853043,
-0.16163542866706848,
0.18593519926071167,
-0.46886953711509705,
-0.10202698409557343,
0.3918125033378601,
-0.1116865798830986,
0.09395454823970795,
0.5907300710678101,
0.21935035288333893,
-0.01689293049275875,
-0.14115241169929504,
0.06424085050821304,
0.3081057369709015,
-0.35318857431411743,
0.1170663833618164,
0.11414909362792969,
0.3159496784210205,
0.13925288617610931,
0.2917450964450836,
0.15658080577850342,
-0.07767295092344284,
0.07445482909679413,
-0.5115907192230225,
-0.3249691426753998,
-0.016528956592082977,
-0.0015316978096961975,
0.24795787036418915,
0.16721880435943604,
0.08186677098274231,
0.17267775535583496,
0.2032964527606964,
-0.1562301516532898,
0.1004621610045433,
0.10592921823263168,
-0.08695743978023529,
0.21063311398029327,
0.1420162469148636,
-0.13387268781661987,
-0.1038191169500351,
0.09349779039621353,
0.17764052748680115,
-0.05344494432210922,
-0.1887509524822235,
-0.07985582947731018,
0.15010015666484833,
0.09836078435182571,
0.023286115378141403,
-0.2034451961517334,
-0.2526891231536865,
-0.14970649778842926,
-0.19280517101287842,
0.06640926003456116,
0.029782593250274658,
-0.09811189770698547,
0.07176020741462708,
-0.2987653613090515,
-0.08465392142534256,
-0.5091862678527832,
0.027121789753437042,
-0.5075385570526123,
0.22313250601291656,
0.2992691397666931,
0.04858259856700897,
0.12175723165273666,
0.2004556655883789,
-0.1724264919757843,
-0.03115798532962799,
0.1516263484954834,
-0.13661956787109375,
0.30094656348228455,
-0.40147536993026733,
0.2035067230463028,
-0.05106562376022339,
0.34033772349357605,
0.4848606288433075,
-0.2076413631439209,
0.2197113186120987,
0.03758600354194641,
0.13411511480808258,
-0.3825286030769348,
0.27547687292099,
0.11723117530345917,
-0.06162983924150467,
-0.027484487742185593,
0.1696750521659851,
0.19921168684959412,
-0.20830711722373962,
-0.09577685594558716,
0.00691063329577446,
0.4759885370731354,
-0.007822543382644653,
-0.03395107015967369,
0.4135631322860718,
0.002714499831199646,
0.17896948754787445,
0.2403348684310913,
0.135637566447258,
0.01962074637413025,
0.7002614736557007,
-0.26022869348526,
-0.003964830189943314,
-0.23526856303215027,
0.3014821410179138,
-0.3278696537017822,
-0.7641027569770813,
0.16166481375694275,
0.2355506718158722,
-0.35331013798713684,
-0.16765114665031433,
0.12589791417121887,
0.6017505526542664,
-0.023375172168016434,
0.011492801830172539,
-0.11459315568208694,
-0.044835399836301804,
0.014055008068680763,
0.048389777541160583,
-0.06621351093053818,
-0.25367075204849243,
-0.07082390040159225,
0.18568317592144012,
-0.059555534273386,
0.01455974206328392,
0.2749812602996826,
0.18766385316848755,
-0.1494835466146469,
-0.4457589387893677,
0.06577509641647339,
0.17284920811653137,
0.0665423721075058,
-0.27483880519866943,
0.3666118383407593,
0.2653486728668213,
-0.0859917402267456,
0.1805054098367691,
-0.0413447842001915,
0.6402474045753479,
0.504191517829895,
0.09241169691085815,
-0.06174042448401451,
-0.12157170474529266,
-0.11399092525243759,
-0.17941808700561523,
0.17781716585159302,
0.34881794452667236,
0.4212689697742462,
0.14854425191879272,
0.11359825730323792,
-0.040185242891311646,
0.31608846783638,
0.20678915083408356,
0.09960100054740906,
-0.5459765195846558,
-0.1189197525382042,
-0.20831163227558136,
-0.2577386796474457,
-0.22663316130638123,
0.024151824414730072,
-0.28905951976776123,
0.020943306386470795,
0.4277473986148834,
0.07391566038131714,
0.27722686529159546,
-0.02682255581021309,
0.034567490220069885,
0.07433385401964188,
0.3142198920249939,
0.2397761195898056,
0.40228989720344543,
-0.4218081533908844,
-0.03541836142539978,
-0.7509752511978149,
0.11652792245149612,
-0.3764895796775818,
0.00959269143640995,
-0.03185897693037987,
0.15853829681873322,
0.1377418488264084,
0.08386078476905823,
0.15917232632637024,
0.29942384362220764,
0.11672317236661911,
0.2220778465270996,
-0.05618421733379364,
-0.18462048470973969,
-0.33807069063186646,
0.02648555114865303,
-0.17509248852729797,
-0.46551430225372314,
0.22135992348194122,
-0.1279323399066925,
0.009210947901010513,
-0.22518602013587952,
0.22398850321769714,
0.255967378616333,
-0.0059869736433029175,
0.47772929072380066,
-0.11201165616512299,
0.6255968809127808,
-0.08501801639795303,
0.3190016448497772,
-0.3009392023086548,
-0.0801897868514061,
-0.19280588626861572,
0.5200988054275513,
0.2061503380537033,
0.2713996171951294,
-0.1779927909374237,
-0.10791616141796112,
-0.21530425548553467,
0.15741008520126343,
-0.006548143923282623,
-0.07054738700389862,
0.0667274221777916,
-0.1510603129863739,
-0.0018242709338665009,
-0.05849042534828186,
0.15223149955272675,
0.09204801917076111,
-0.22293895483016968,
-0.07817313820123672,
-0.1745537519454956,
-0.18018533289432526,
0.1810823678970337,
-0.40432873368263245,
-0.3411034047603607,
0.1487179398536682,
0.12612642347812653,
0.10186608880758286,
0.1396922618150711,
-0.45242106914520264,
0.12178962677717209,
0.42447495460510254,
-0.12801724672317505,
-0.41742584109306335,
0.13403187692165375,
-0.21161901950836182,
0.10057024657726288,
-0.12185277044773102,
0.4765018820762634,
0.14110934734344482,
-0.3705090880393982,
-0.16157196462154388,
-0.3583213686943054
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | > We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
>
> In the meantime you can specify yourself the `ReadOptions` config like this:
>
> ```python
> import pyarrow.csv as pac # PyArrow is installed with `datasets`
>
> read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
> dataset = load_dataset('csv', data_files=files, read_options=read_options)
> ```
This did not work for me, I got
`TypeError: __init__() got an unexpected keyword argument 'read_options'` | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 82 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
> We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
>
> In the meantime you can specify yourself the `ReadOptions` config like this:
>
> ```python
> import pyarrow.csv as pac # PyArrow is installed with `datasets`
>
> read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
> dataset = load_dataset('csv', data_files=files, read_options=read_options)
> ```
This did not work for me, I got
`TypeError: __init__() got an unexpected keyword argument 'read_options'` | [
-0.2411831170320511,
-0.319865345954895,
-0.06815589964389801,
0.4316070079803467,
0.36252546310424805,
0.019154861569404602,
0.5210210084915161,
0.43771302700042725,
0.29491275548934937,
0.032775163650512695,
0.016962695866823196,
-0.11870503425598145,
0.09059164673089981,
0.18028973042964935,
0.03506602719426155,
0.11300927400588989,
0.07302826642990112,
0.3988213837146759,
0.03172004967927933,
0.06997212767601013,
-0.21886035799980164,
0.12086943536996841,
0.0058676376938819885,
0.05751488357782364,
-0.12442260980606079,
0.07236414402723312,
-0.00820845365524292,
0.11691468954086304,
-0.23435144126415253,
-0.4013204574584961,
0.41972312331199646,
0.07845443487167358,
0.33285048604011536,
0.5207664966583252,
-0.00011690515384543687,
0.15647360682487488,
0.2654483914375305,
-0.18562574684619904,
-0.044199466705322266,
-0.5195807218551636,
0.030129767954349518,
-0.5329576730728149,
0.2776658535003662,
-0.1672024428844452,
-0.014489179477095604,
-0.17868046462535858,
-0.11099937558174133,
-0.03580589219927788,
0.30141258239746094,
0.3175452947616577,
0.1804957389831543,
-0.2607496976852417,
0.05989224836230278,
-0.010018667206168175,
0.20529240369796753,
0.037178885191679,
-0.015685752034187317,
0.41754746437072754,
0.11739545315504074,
-0.1267610639333725,
-0.04873094707727432,
-0.19366738200187683,
-0.2392432987689972,
0.35819900035858154,
0.31963518261909485,
0.13993971049785614,
0.07096700370311737,
-0.1089666336774826,
0.2680702805519104,
0.1055053249001503,
0.6067357659339905,
-0.3076421618461609,
-0.14854715764522552,
-0.015400387346744537,
-0.020296946167945862,
-0.4886515736579895,
0.2558155953884125,
0.40449440479278564,
-0.15216007828712463,
0.11733308434486389,
-0.21221239864826202,
0.24844670295715332,
-0.2663930058479309,
0.2028616964817047,
-0.06734703481197357,
-0.35319048166275024,
-0.2522073984146118,
0.2693184018135071,
0.2523401975631714,
0.07374778389930725,
0.33364003896713257,
-0.09374982118606567,
0.026853669434785843,
0.18069645762443542,
-0.5556496381759644,
0.279649555683136,
-0.11766041070222855,
-0.09043673425912857,
0.16374057531356812,
0.0962190255522728,
0.40142199397087097,
0.13706214725971222,
0.04234509542584419,
0.19469785690307617,
0.31912994384765625,
0.18613311648368835,
-0.0428147092461586,
0.06910490989685059,
0.027385514229536057,
0.34621739387512207,
-0.2297833263874054,
-0.2338581681251526,
-0.38813719153404236,
-0.504957914352417,
0.23814241588115692,
-0.1538381278514862,
0.2674439549446106,
-0.2704332172870636,
-0.24793283641338348,
-0.09601990878582001,
-0.036132387816905975,
-0.009422952309250832,
-0.05283479019999504,
0.5738205909729004,
0.21583428978919983,
0.38020431995391846,
-0.05420989543199539,
0.25720924139022827,
-0.21127575635910034,
-0.09865451604127884,
-0.08035243302583694,
0.020115850493311882,
-0.05760239064693451,
0.05229145288467407,
0.3777484893798828,
-0.21668820083141327,
0.12146066874265671,
0.1762952357530594,
-0.043516337871551514,
-0.2938743233680725,
-0.1455058455467224,
-0.4177221357822418,
0.03672413155436516,
0.2833082675933838,
0.2024739384651184,
0.09795275330543518,
0.2341529130935669,
-0.2812092900276184,
-0.060687921941280365,
0.380541056394577,
-0.2301194965839386,
-0.16856931149959564,
0.09726409614086151,
0.09630241990089417,
-0.06611718237400055,
0.16567839682102203,
-0.39563167095184326,
0.15635129809379578,
0.3519502580165863,
-0.4384937584400177,
0.033467844128608704,
-0.21348431706428528,
-0.24112345278263092,
-0.35248106718063354,
0.20189036428928375,
0.2790597677230835,
-0.785466730594635,
0.3429478108882904,
0.05390669032931328,
-0.03174859285354614,
0.11499913036823273,
0.4237147271633148,
-0.14831720292568207,
0.061177998781204224,
-0.2709868550300598,
0.09215261042118073,
0.14062385261058807,
0.007543109357357025,
-0.629366934299469,
0.33075642585754395,
-0.04602794349193573,
0.08954580873250961,
0.31206458806991577,
0.06455278396606445,
0.05121501162648201,
0.08917737752199173,
-0.10802222788333893,
0.018553880974650383,
0.023134589195251465,
0.0440056174993515,
-0.2607477307319641,
-0.12919245660305023,
0.31875085830688477,
0.142624631524086,
-0.06477391719818115,
-0.06767282634973526,
0.23888924717903137,
-0.408738911151886,
0.20254525542259216,
-0.01808762177824974,
0.14161603152751923,
0.17524731159210205,
0.17913173139095306,
-0.1968240886926651,
0.034974098205566406,
0.01043354719877243,
-0.44934940338134766,
0.14338240027427673,
0.2848805785179138,
-0.16870121657848358,
-0.21594424545764923,
-0.07973095774650574,
-0.38411810994148254,
-0.029700713232159615,
-0.2681601941585541,
-0.12419965863227844,
-0.024652723222970963,
0.0725153237581253,
0.05951985344290733,
-0.14405347406864166,
-0.1857398897409439,
0.11611927300691605,
-0.22377678751945496,
-0.011276012286543846,
-0.01584358885884285,
0.1422192007303238,
0.05879932641983032,
-0.12498876452445984,
0.10647206008434296,
-0.06290075927972794,
0.20716780424118042,
-0.04833386465907097,
-0.2763521075248718,
0.24959132075309753,
0.1456867754459381,
0.045615311712026596,
-0.2857957184314728,
-0.17478762567043304,
0.08302010595798492,
-0.2415052205324173,
-0.08720072358846664,
0.023738399147987366,
0.36637139320373535,
-0.1825467050075531,
-0.33928054571151733,
0.2706235647201538,
-0.15670067071914673,
0.3015138804912567,
0.18797563016414642,
-0.35807162523269653,
0.30650147795677185,
0.016720425337553024,
0.17819397151470184,
0.07049177587032318,
0.1380857676267624,
0.07365468889474869,
0.4947434663772583,
0.2995409071445465,
-0.09684166312217712,
-0.1562499701976776,
0.5009899139404297,
-0.04704403504729271,
-0.21856340765953064,
0.31125932931900024,
-0.11817748099565506,
-0.19453522562980652,
0.06843123584985733,
0.08874505758285522,
0.3798213005065918,
0.12937648594379425,
-0.19153094291687012,
0.014664222486317158,
0.14350274205207825,
-0.2500297427177429,
0.12040601670742035,
-0.22043462097644806,
0.14736174046993256,
0.3965649902820587,
0.12700989842414856,
-0.12728585302829742,
-0.1951441466808319,
0.03774373605847359,
0.08758541196584702,
0.325723260641098,
-0.411955863237381,
-0.0675453171133995,
-0.07345385104417801,
-0.00520581379532814,
-0.18028488755226135,
0.09860352426767349,
-0.05557971075177193,
0.0971231609582901,
-0.39961129426956177,
0.33282411098480225,
0.2897822856903076,
-0.0790664404630661,
-0.24312610924243927,
0.08863416314125061,
0.21581275761127472,
-0.33705583214759827,
-0.003460582345724106,
-0.048990845680236816,
-0.29193973541259766,
-0.026176592335104942,
0.33070987462997437,
0.10981905460357666,
-0.0008767265826463699,
-0.021765828132629395,
0.02802533656358719,
-0.05484504997730255,
-0.09253303706645966,
-0.04392474889755249,
-0.07322954386472702,
0.020921867340803146,
-0.05116620659828186,
0.4193308353424072,
0.007607895880937576,
-0.14463084936141968,
0.4017484784126282,
-0.2536608874797821,
-0.048924874514341354,
0.3501361012458801,
0.06369287520647049,
-0.09587976336479187,
-0.1087074726819992,
-0.3498893082141876,
-0.13988791406154633,
-0.4293373227119446,
0.3910629153251648,
0.08475556969642639,
0.04193168133497238,
0.092631496489048,
0.4331052601337433,
-0.026084762066602707,
0.3013547956943512,
-0.031216470524668694,
-0.08480477333068848,
-0.297705739736557,
0.36457401514053345,
-0.05611623451113701,
-0.4676564633846283,
0.011941570788621902,
0.08283552527427673,
0.35919028520584106,
0.16382724046707153,
-0.4252471923828125,
0.3267475664615631,
-0.15090760588645935,
0.16282014548778534,
0.0011047571897506714,
-0.024227259680628777,
0.06095484271645546,
-0.08722764253616333,
-0.0218233410269022,
0.03643060475587845,
-0.24171605706214905,
-0.014179997146129608,
-0.03204439580440521,
0.14758382737636566,
0.05136857554316521,
0.45842885971069336,
-0.03719261288642883,
0.6513363122940063,
0.08746397495269775,
-0.08823134005069733,
0.4855554699897766,
-0.3082401156425476,
0.3818775415420532,
-0.2096707820892334,
-0.3737452030181885,
-0.08557458966970444,
-0.3519814908504486,
-0.19244661927223206,
0.26774847507476807,
-0.03358374536037445,
-0.03341459482908249,
-0.12577567994594574,
0.003518354147672653,
-0.4046856760978699,
-0.03770304471254349,
0.18363235890865326,
0.030696583911776543,
-0.01483028382062912,
-0.10059572756290436,
-0.013301469385623932,
-0.011646009981632233,
-0.237362802028656,
-0.19425834715366364,
0.2739641070365906,
-0.15134218335151672,
0.06338702142238617,
-0.22424794733524323,
-0.061580441892147064,
-0.302937388420105,
0.3292050361633301,
-0.013623456470668316,
0.3102864623069763,
0.010614890605211258,
-0.017695296555757523,
0.09729659557342529,
-0.12522228062152863,
0.7449787855148315,
0.1892857849597931,
-0.1550699919462204,
0.1278296411037445,
-0.024113940075039864,
-0.4415837228298187,
-0.12176112830638885,
0.19063140451908112,
0.30733585357666016,
0.07446150481700897,
0.35486558079719543,
-0.07032592594623566,
-0.00969347171485424,
-0.14434337615966797,
0.35467857122421265,
0.043252650648355484,
-0.3951281011104584,
-0.5194918513298035,
-0.23497897386550903,
-0.3830536901950836,
-0.2121351957321167,
-0.08986641466617584,
0.28827884793281555,
-0.32440733909606934,
-0.14238688349723816,
0.11836159974336624,
-0.29905399680137634,
0.06015683338046074,
0.15338079631328583,
0.2973896265029907,
-0.11291459202766418,
0.14489613473415375,
0.04683535173535347,
0.0698045939207077,
0.37691158056259155,
0.7987189292907715,
-0.07857607305049896,
-0.622077226638794,
0.08484327793121338,
-0.20502634346485138,
0.38534826040267944,
0.04782029241323471,
-0.20320527255535126,
0.12898661196231842,
0.09073472023010254,
0.06203401833772659,
0.037947990000247955,
0.014437409117817879,
0.3036859929561615,
0.04965509474277496,
-0.3454539477825165,
-0.5439224243164062,
0.4874184727668762,
-0.12590846419334412,
0.2102593034505844,
0.3020800054073334,
-0.21199996769428253,
-0.10998106747865677,
0.1555226892232895,
-0.3346247375011444,
0.6592135429382324,
-0.42182987928390503,
0.19383063912391663,
0.3073362112045288,
0.05633615702390671,
0.25842905044555664,
-0.44519680738449097,
0.1323070526123047,
-0.39196813106536865,
-0.2109036147594452,
-0.10431202501058578,
-0.0712030678987503,
0.239385724067688,
0.4321900010108948,
-0.12124530971050262,
0.31186360120773315,
-0.07415001839399338,
0.3325560986995697,
0.11313378065824509,
0.24382546544075012,
-0.1005159318447113,
-0.08646830916404724,
-0.30102071166038513,
0.01042373850941658,
-0.14308081567287445,
-0.034952130168676376,
0.028959106653928757,
0.054464343935251236,
-0.18056756258010864,
-0.20164568722248077,
-0.24611249566078186,
0.2200247049331665,
-0.2911674380302429,
0.11540494114160538,
-0.11095491051673889,
-0.46866488456726074,
0.1963643580675125,
0.23806700110435486,
-0.20870287716388702,
-0.08517903089523315,
-0.12408511340618134,
0.15505348145961761,
0.1596348136663437,
-0.040175680071115494,
-0.20837441086769104,
-0.053695619106292725,
-0.015885574743151665,
0.0761261060833931,
-0.2351241409778595,
0.1545509696006775,
-0.12227920442819595,
-0.09567444026470184,
0.2780734896659851,
0.23765741288661957,
-0.08480723202228546,
-0.5452086925506592,
-0.532619833946228,
-0.4284158945083618,
0.07598119974136353,
-0.1957322657108307,
0.06519807875156403,
-0.04207879304885864,
0.09834162145853043,
-0.16163542866706848,
0.18593519926071167,
-0.46886953711509705,
-0.10202698409557343,
0.3918125033378601,
-0.1116865798830986,
0.09395454823970795,
0.5907300710678101,
0.21935035288333893,
-0.01689293049275875,
-0.14115241169929504,
0.06424085050821304,
0.3081057369709015,
-0.35318857431411743,
0.1170663833618164,
0.11414909362792969,
0.3159496784210205,
0.13925288617610931,
0.2917450964450836,
0.15658080577850342,
-0.07767295092344284,
0.07445482909679413,
-0.5115907192230225,
-0.3249691426753998,
-0.016528956592082977,
-0.0015316978096961975,
0.24795787036418915,
0.16721880435943604,
0.08186677098274231,
0.17267775535583496,
0.2032964527606964,
-0.1562301516532898,
0.1004621610045433,
0.10592921823263168,
-0.08695743978023529,
0.21063311398029327,
0.1420162469148636,
-0.13387268781661987,
-0.1038191169500351,
0.09349779039621353,
0.17764052748680115,
-0.05344494432210922,
-0.1887509524822235,
-0.07985582947731018,
0.15010015666484833,
0.09836078435182571,
0.023286115378141403,
-0.2034451961517334,
-0.2526891231536865,
-0.14970649778842926,
-0.19280517101287842,
0.06640926003456116,
0.029782593250274658,
-0.09811189770698547,
0.07176020741462708,
-0.2987653613090515,
-0.08465392142534256,
-0.5091862678527832,
0.027121789753437042,
-0.5075385570526123,
0.22313250601291656,
0.2992691397666931,
0.04858259856700897,
0.12175723165273666,
0.2004556655883789,
-0.1724264919757843,
-0.03115798532962799,
0.1516263484954834,
-0.13661956787109375,
0.30094656348228455,
-0.40147536993026733,
0.2035067230463028,
-0.05106562376022339,
0.34033772349357605,
0.4848606288433075,
-0.2076413631439209,
0.2197113186120987,
0.03758600354194641,
0.13411511480808258,
-0.3825286030769348,
0.27547687292099,
0.11723117530345917,
-0.06162983924150467,
-0.027484487742185593,
0.1696750521659851,
0.19921168684959412,
-0.20830711722373962,
-0.09577685594558716,
0.00691063329577446,
0.4759885370731354,
-0.007822543382644653,
-0.03395107015967369,
0.4135631322860718,
0.002714499831199646,
0.17896948754787445,
0.2403348684310913,
0.135637566447258,
0.01962074637413025,
0.7002614736557007,
-0.26022869348526,
-0.003964830189943314,
-0.23526856303215027,
0.3014821410179138,
-0.3278696537017822,
-0.7641027569770813,
0.16166481375694275,
0.2355506718158722,
-0.35331013798713684,
-0.16765114665031433,
0.12589791417121887,
0.6017505526542664,
-0.023375172168016434,
0.011492801830172539,
-0.11459315568208694,
-0.044835399836301804,
0.014055008068680763,
0.048389777541160583,
-0.06621351093053818,
-0.25367075204849243,
-0.07082390040159225,
0.18568317592144012,
-0.059555534273386,
0.01455974206328392,
0.2749812602996826,
0.18766385316848755,
-0.1494835466146469,
-0.4457589387893677,
0.06577509641647339,
0.17284920811653137,
0.0665423721075058,
-0.27483880519866943,
0.3666118383407593,
0.2653486728668213,
-0.0859917402267456,
0.1805054098367691,
-0.0413447842001915,
0.6402474045753479,
0.504191517829895,
0.09241169691085815,
-0.06174042448401451,
-0.12157170474529266,
-0.11399092525243759,
-0.17941808700561523,
0.17781716585159302,
0.34881794452667236,
0.4212689697742462,
0.14854425191879272,
0.11359825730323792,
-0.040185242891311646,
0.31608846783638,
0.20678915083408356,
0.09960100054740906,
-0.5459765195846558,
-0.1189197525382042,
-0.20831163227558136,
-0.2577386796474457,
-0.22663316130638123,
0.024151824414730072,
-0.28905951976776123,
0.020943306386470795,
0.4277473986148834,
0.07391566038131714,
0.27722686529159546,
-0.02682255581021309,
0.034567490220069885,
0.07433385401964188,
0.3142198920249939,
0.2397761195898056,
0.40228989720344543,
-0.4218081533908844,
-0.03541836142539978,
-0.7509752511978149,
0.11652792245149612,
-0.3764895796775818,
0.00959269143640995,
-0.03185897693037987,
0.15853829681873322,
0.1377418488264084,
0.08386078476905823,
0.15917232632637024,
0.29942384362220764,
0.11672317236661911,
0.2220778465270996,
-0.05618421733379364,
-0.18462048470973969,
-0.33807069063186646,
0.02648555114865303,
-0.17509248852729797,
-0.46551430225372314,
0.22135992348194122,
-0.1279323399066925,
0.009210947901010513,
-0.22518602013587952,
0.22398850321769714,
0.255967378616333,
-0.0059869736433029175,
0.47772929072380066,
-0.11201165616512299,
0.6255968809127808,
-0.08501801639795303,
0.3190016448497772,
-0.3009392023086548,
-0.0801897868514061,
-0.19280588626861572,
0.5200988054275513,
0.2061503380537033,
0.2713996171951294,
-0.1779927909374237,
-0.10791616141796112,
-0.21530425548553467,
0.15741008520126343,
-0.006548143923282623,
-0.07054738700389862,
0.0667274221777916,
-0.1510603129863739,
-0.0018242709338665009,
-0.05849042534828186,
0.15223149955272675,
0.09204801917076111,
-0.22293895483016968,
-0.07817313820123672,
-0.1745537519454956,
-0.18018533289432526,
0.1810823678970337,
-0.40432873368263245,
-0.3411034047603607,
0.1487179398536682,
0.12612642347812653,
0.10186608880758286,
0.1396922618150711,
-0.45242106914520264,
0.12178962677717209,
0.42447495460510254,
-0.12801724672317505,
-0.41742584109306335,
0.13403187692165375,
-0.21161901950836182,
0.10057024657726288,
-0.12185277044773102,
0.4765018820762634,
0.14110934734344482,
-0.3705090880393982,
-0.16157196462154388,
-0.3583213686943054
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Hi ! Yes because of issues with PyArrow's CSV reader we switched to using the Pandas CSV reader. In particular the `read_options` argument is not supported anymore, but you can pass any parameter of Pandas' `read_csv` function (see the list here in [Pandas documentation](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html)) | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 44 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Hi ! Yes because of issues with PyArrow's CSV reader we switched to using the Pandas CSV reader. In particular the `read_options` argument is not supported anymore, but you can pass any parameter of Pandas' `read_csv` function (see the list here in [Pandas documentation](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html)) | [
-0.2411831170320511,
-0.319865345954895,
-0.06815589964389801,
0.4316070079803467,
0.36252546310424805,
0.019154861569404602,
0.5210210084915161,
0.43771302700042725,
0.29491275548934937,
0.032775163650512695,
0.016962695866823196,
-0.11870503425598145,
0.09059164673089981,
0.18028973042964935,
0.03506602719426155,
0.11300927400588989,
0.07302826642990112,
0.3988213837146759,
0.03172004967927933,
0.06997212767601013,
-0.21886035799980164,
0.12086943536996841,
0.0058676376938819885,
0.05751488357782364,
-0.12442260980606079,
0.07236414402723312,
-0.00820845365524292,
0.11691468954086304,
-0.23435144126415253,
-0.4013204574584961,
0.41972312331199646,
0.07845443487167358,
0.33285048604011536,
0.5207664966583252,
-0.00011690515384543687,
0.15647360682487488,
0.2654483914375305,
-0.18562574684619904,
-0.044199466705322266,
-0.5195807218551636,
0.030129767954349518,
-0.5329576730728149,
0.2776658535003662,
-0.1672024428844452,
-0.014489179477095604,
-0.17868046462535858,
-0.11099937558174133,
-0.03580589219927788,
0.30141258239746094,
0.3175452947616577,
0.1804957389831543,
-0.2607496976852417,
0.05989224836230278,
-0.010018667206168175,
0.20529240369796753,
0.037178885191679,
-0.015685752034187317,
0.41754746437072754,
0.11739545315504074,
-0.1267610639333725,
-0.04873094707727432,
-0.19366738200187683,
-0.2392432987689972,
0.35819900035858154,
0.31963518261909485,
0.13993971049785614,
0.07096700370311737,
-0.1089666336774826,
0.2680702805519104,
0.1055053249001503,
0.6067357659339905,
-0.3076421618461609,
-0.14854715764522552,
-0.015400387346744537,
-0.020296946167945862,
-0.4886515736579895,
0.2558155953884125,
0.40449440479278564,
-0.15216007828712463,
0.11733308434486389,
-0.21221239864826202,
0.24844670295715332,
-0.2663930058479309,
0.2028616964817047,
-0.06734703481197357,
-0.35319048166275024,
-0.2522073984146118,
0.2693184018135071,
0.2523401975631714,
0.07374778389930725,
0.33364003896713257,
-0.09374982118606567,
0.026853669434785843,
0.18069645762443542,
-0.5556496381759644,
0.279649555683136,
-0.11766041070222855,
-0.09043673425912857,
0.16374057531356812,
0.0962190255522728,
0.40142199397087097,
0.13706214725971222,
0.04234509542584419,
0.19469785690307617,
0.31912994384765625,
0.18613311648368835,
-0.0428147092461586,
0.06910490989685059,
0.027385514229536057,
0.34621739387512207,
-0.2297833263874054,
-0.2338581681251526,
-0.38813719153404236,
-0.504957914352417,
0.23814241588115692,
-0.1538381278514862,
0.2674439549446106,
-0.2704332172870636,
-0.24793283641338348,
-0.09601990878582001,
-0.036132387816905975,
-0.009422952309250832,
-0.05283479019999504,
0.5738205909729004,
0.21583428978919983,
0.38020431995391846,
-0.05420989543199539,
0.25720924139022827,
-0.21127575635910034,
-0.09865451604127884,
-0.08035243302583694,
0.020115850493311882,
-0.05760239064693451,
0.05229145288467407,
0.3777484893798828,
-0.21668820083141327,
0.12146066874265671,
0.1762952357530594,
-0.043516337871551514,
-0.2938743233680725,
-0.1455058455467224,
-0.4177221357822418,
0.03672413155436516,
0.2833082675933838,
0.2024739384651184,
0.09795275330543518,
0.2341529130935669,
-0.2812092900276184,
-0.060687921941280365,
0.380541056394577,
-0.2301194965839386,
-0.16856931149959564,
0.09726409614086151,
0.09630241990089417,
-0.06611718237400055,
0.16567839682102203,
-0.39563167095184326,
0.15635129809379578,
0.3519502580165863,
-0.4384937584400177,
0.033467844128608704,
-0.21348431706428528,
-0.24112345278263092,
-0.35248106718063354,
0.20189036428928375,
0.2790597677230835,
-0.785466730594635,
0.3429478108882904,
0.05390669032931328,
-0.03174859285354614,
0.11499913036823273,
0.4237147271633148,
-0.14831720292568207,
0.061177998781204224,
-0.2709868550300598,
0.09215261042118073,
0.14062385261058807,
0.007543109357357025,
-0.629366934299469,
0.33075642585754395,
-0.04602794349193573,
0.08954580873250961,
0.31206458806991577,
0.06455278396606445,
0.05121501162648201,
0.08917737752199173,
-0.10802222788333893,
0.018553880974650383,
0.023134589195251465,
0.0440056174993515,
-0.2607477307319641,
-0.12919245660305023,
0.31875085830688477,
0.142624631524086,
-0.06477391719818115,
-0.06767282634973526,
0.23888924717903137,
-0.408738911151886,
0.20254525542259216,
-0.01808762177824974,
0.14161603152751923,
0.17524731159210205,
0.17913173139095306,
-0.1968240886926651,
0.034974098205566406,
0.01043354719877243,
-0.44934940338134766,
0.14338240027427673,
0.2848805785179138,
-0.16870121657848358,
-0.21594424545764923,
-0.07973095774650574,
-0.38411810994148254,
-0.029700713232159615,
-0.2681601941585541,
-0.12419965863227844,
-0.024652723222970963,
0.0725153237581253,
0.05951985344290733,
-0.14405347406864166,
-0.1857398897409439,
0.11611927300691605,
-0.22377678751945496,
-0.011276012286543846,
-0.01584358885884285,
0.1422192007303238,
0.05879932641983032,
-0.12498876452445984,
0.10647206008434296,
-0.06290075927972794,
0.20716780424118042,
-0.04833386465907097,
-0.2763521075248718,
0.24959132075309753,
0.1456867754459381,
0.045615311712026596,
-0.2857957184314728,
-0.17478762567043304,
0.08302010595798492,
-0.2415052205324173,
-0.08720072358846664,
0.023738399147987366,
0.36637139320373535,
-0.1825467050075531,
-0.33928054571151733,
0.2706235647201538,
-0.15670067071914673,
0.3015138804912567,
0.18797563016414642,
-0.35807162523269653,
0.30650147795677185,
0.016720425337553024,
0.17819397151470184,
0.07049177587032318,
0.1380857676267624,
0.07365468889474869,
0.4947434663772583,
0.2995409071445465,
-0.09684166312217712,
-0.1562499701976776,
0.5009899139404297,
-0.04704403504729271,
-0.21856340765953064,
0.31125932931900024,
-0.11817748099565506,
-0.19453522562980652,
0.06843123584985733,
0.08874505758285522,
0.3798213005065918,
0.12937648594379425,
-0.19153094291687012,
0.014664222486317158,
0.14350274205207825,
-0.2500297427177429,
0.12040601670742035,
-0.22043462097644806,
0.14736174046993256,
0.3965649902820587,
0.12700989842414856,
-0.12728585302829742,
-0.1951441466808319,
0.03774373605847359,
0.08758541196584702,
0.325723260641098,
-0.411955863237381,
-0.0675453171133995,
-0.07345385104417801,
-0.00520581379532814,
-0.18028488755226135,
0.09860352426767349,
-0.05557971075177193,
0.0971231609582901,
-0.39961129426956177,
0.33282411098480225,
0.2897822856903076,
-0.0790664404630661,
-0.24312610924243927,
0.08863416314125061,
0.21581275761127472,
-0.33705583214759827,
-0.003460582345724106,
-0.048990845680236816,
-0.29193973541259766,
-0.026176592335104942,
0.33070987462997437,
0.10981905460357666,
-0.0008767265826463699,
-0.021765828132629395,
0.02802533656358719,
-0.05484504997730255,
-0.09253303706645966,
-0.04392474889755249,
-0.07322954386472702,
0.020921867340803146,
-0.05116620659828186,
0.4193308353424072,
0.007607895880937576,
-0.14463084936141968,
0.4017484784126282,
-0.2536608874797821,
-0.048924874514341354,
0.3501361012458801,
0.06369287520647049,
-0.09587976336479187,
-0.1087074726819992,
-0.3498893082141876,
-0.13988791406154633,
-0.4293373227119446,
0.3910629153251648,
0.08475556969642639,
0.04193168133497238,
0.092631496489048,
0.4331052601337433,
-0.026084762066602707,
0.3013547956943512,
-0.031216470524668694,
-0.08480477333068848,
-0.297705739736557,
0.36457401514053345,
-0.05611623451113701,
-0.4676564633846283,
0.011941570788621902,
0.08283552527427673,
0.35919028520584106,
0.16382724046707153,
-0.4252471923828125,
0.3267475664615631,
-0.15090760588645935,
0.16282014548778534,
0.0011047571897506714,
-0.024227259680628777,
0.06095484271645546,
-0.08722764253616333,
-0.0218233410269022,
0.03643060475587845,
-0.24171605706214905,
-0.014179997146129608,
-0.03204439580440521,
0.14758382737636566,
0.05136857554316521,
0.45842885971069336,
-0.03719261288642883,
0.6513363122940063,
0.08746397495269775,
-0.08823134005069733,
0.4855554699897766,
-0.3082401156425476,
0.3818775415420532,
-0.2096707820892334,
-0.3737452030181885,
-0.08557458966970444,
-0.3519814908504486,
-0.19244661927223206,
0.26774847507476807,
-0.03358374536037445,
-0.03341459482908249,
-0.12577567994594574,
0.003518354147672653,
-0.4046856760978699,
-0.03770304471254349,
0.18363235890865326,
0.030696583911776543,
-0.01483028382062912,
-0.10059572756290436,
-0.013301469385623932,
-0.011646009981632233,
-0.237362802028656,
-0.19425834715366364,
0.2739641070365906,
-0.15134218335151672,
0.06338702142238617,
-0.22424794733524323,
-0.061580441892147064,
-0.302937388420105,
0.3292050361633301,
-0.013623456470668316,
0.3102864623069763,
0.010614890605211258,
-0.017695296555757523,
0.09729659557342529,
-0.12522228062152863,
0.7449787855148315,
0.1892857849597931,
-0.1550699919462204,
0.1278296411037445,
-0.024113940075039864,
-0.4415837228298187,
-0.12176112830638885,
0.19063140451908112,
0.30733585357666016,
0.07446150481700897,
0.35486558079719543,
-0.07032592594623566,
-0.00969347171485424,
-0.14434337615966797,
0.35467857122421265,
0.043252650648355484,
-0.3951281011104584,
-0.5194918513298035,
-0.23497897386550903,
-0.3830536901950836,
-0.2121351957321167,
-0.08986641466617584,
0.28827884793281555,
-0.32440733909606934,
-0.14238688349723816,
0.11836159974336624,
-0.29905399680137634,
0.06015683338046074,
0.15338079631328583,
0.2973896265029907,
-0.11291459202766418,
0.14489613473415375,
0.04683535173535347,
0.0698045939207077,
0.37691158056259155,
0.7987189292907715,
-0.07857607305049896,
-0.622077226638794,
0.08484327793121338,
-0.20502634346485138,
0.38534826040267944,
0.04782029241323471,
-0.20320527255535126,
0.12898661196231842,
0.09073472023010254,
0.06203401833772659,
0.037947990000247955,
0.014437409117817879,
0.3036859929561615,
0.04965509474277496,
-0.3454539477825165,
-0.5439224243164062,
0.4874184727668762,
-0.12590846419334412,
0.2102593034505844,
0.3020800054073334,
-0.21199996769428253,
-0.10998106747865677,
0.1555226892232895,
-0.3346247375011444,
0.6592135429382324,
-0.42182987928390503,
0.19383063912391663,
0.3073362112045288,
0.05633615702390671,
0.25842905044555664,
-0.44519680738449097,
0.1323070526123047,
-0.39196813106536865,
-0.2109036147594452,
-0.10431202501058578,
-0.0712030678987503,
0.239385724067688,
0.4321900010108948,
-0.12124530971050262,
0.31186360120773315,
-0.07415001839399338,
0.3325560986995697,
0.11313378065824509,
0.24382546544075012,
-0.1005159318447113,
-0.08646830916404724,
-0.30102071166038513,
0.01042373850941658,
-0.14308081567287445,
-0.034952130168676376,
0.028959106653928757,
0.054464343935251236,
-0.18056756258010864,
-0.20164568722248077,
-0.24611249566078186,
0.2200247049331665,
-0.2911674380302429,
0.11540494114160538,
-0.11095491051673889,
-0.46866488456726074,
0.1963643580675125,
0.23806700110435486,
-0.20870287716388702,
-0.08517903089523315,
-0.12408511340618134,
0.15505348145961761,
0.1596348136663437,
-0.040175680071115494,
-0.20837441086769104,
-0.053695619106292725,
-0.015885574743151665,
0.0761261060833931,
-0.2351241409778595,
0.1545509696006775,
-0.12227920442819595,
-0.09567444026470184,
0.2780734896659851,
0.23765741288661957,
-0.08480723202228546,
-0.5452086925506592,
-0.532619833946228,
-0.4284158945083618,
0.07598119974136353,
-0.1957322657108307,
0.06519807875156403,
-0.04207879304885864,
0.09834162145853043,
-0.16163542866706848,
0.18593519926071167,
-0.46886953711509705,
-0.10202698409557343,
0.3918125033378601,
-0.1116865798830986,
0.09395454823970795,
0.5907300710678101,
0.21935035288333893,
-0.01689293049275875,
-0.14115241169929504,
0.06424085050821304,
0.3081057369709015,
-0.35318857431411743,
0.1170663833618164,
0.11414909362792969,
0.3159496784210205,
0.13925288617610931,
0.2917450964450836,
0.15658080577850342,
-0.07767295092344284,
0.07445482909679413,
-0.5115907192230225,
-0.3249691426753998,
-0.016528956592082977,
-0.0015316978096961975,
0.24795787036418915,
0.16721880435943604,
0.08186677098274231,
0.17267775535583496,
0.2032964527606964,
-0.1562301516532898,
0.1004621610045433,
0.10592921823263168,
-0.08695743978023529,
0.21063311398029327,
0.1420162469148636,
-0.13387268781661987,
-0.1038191169500351,
0.09349779039621353,
0.17764052748680115,
-0.05344494432210922,
-0.1887509524822235,
-0.07985582947731018,
0.15010015666484833,
0.09836078435182571,
0.023286115378141403,
-0.2034451961517334,
-0.2526891231536865,
-0.14970649778842926,
-0.19280517101287842,
0.06640926003456116,
0.029782593250274658,
-0.09811189770698547,
0.07176020741462708,
-0.2987653613090515,
-0.08465392142534256,
-0.5091862678527832,
0.027121789753437042,
-0.5075385570526123,
0.22313250601291656,
0.2992691397666931,
0.04858259856700897,
0.12175723165273666,
0.2004556655883789,
-0.1724264919757843,
-0.03115798532962799,
0.1516263484954834,
-0.13661956787109375,
0.30094656348228455,
-0.40147536993026733,
0.2035067230463028,
-0.05106562376022339,
0.34033772349357605,
0.4848606288433075,
-0.2076413631439209,
0.2197113186120987,
0.03758600354194641,
0.13411511480808258,
-0.3825286030769348,
0.27547687292099,
0.11723117530345917,
-0.06162983924150467,
-0.027484487742185593,
0.1696750521659851,
0.19921168684959412,
-0.20830711722373962,
-0.09577685594558716,
0.00691063329577446,
0.4759885370731354,
-0.007822543382644653,
-0.03395107015967369,
0.4135631322860718,
0.002714499831199646,
0.17896948754787445,
0.2403348684310913,
0.135637566447258,
0.01962074637413025,
0.7002614736557007,
-0.26022869348526,
-0.003964830189943314,
-0.23526856303215027,
0.3014821410179138,
-0.3278696537017822,
-0.7641027569770813,
0.16166481375694275,
0.2355506718158722,
-0.35331013798713684,
-0.16765114665031433,
0.12589791417121887,
0.6017505526542664,
-0.023375172168016434,
0.011492801830172539,
-0.11459315568208694,
-0.044835399836301804,
0.014055008068680763,
0.048389777541160583,
-0.06621351093053818,
-0.25367075204849243,
-0.07082390040159225,
0.18568317592144012,
-0.059555534273386,
0.01455974206328392,
0.2749812602996826,
0.18766385316848755,
-0.1494835466146469,
-0.4457589387893677,
0.06577509641647339,
0.17284920811653137,
0.0665423721075058,
-0.27483880519866943,
0.3666118383407593,
0.2653486728668213,
-0.0859917402267456,
0.1805054098367691,
-0.0413447842001915,
0.6402474045753479,
0.504191517829895,
0.09241169691085815,
-0.06174042448401451,
-0.12157170474529266,
-0.11399092525243759,
-0.17941808700561523,
0.17781716585159302,
0.34881794452667236,
0.4212689697742462,
0.14854425191879272,
0.11359825730323792,
-0.040185242891311646,
0.31608846783638,
0.20678915083408356,
0.09960100054740906,
-0.5459765195846558,
-0.1189197525382042,
-0.20831163227558136,
-0.2577386796474457,
-0.22663316130638123,
0.024151824414730072,
-0.28905951976776123,
0.020943306386470795,
0.4277473986148834,
0.07391566038131714,
0.27722686529159546,
-0.02682255581021309,
0.034567490220069885,
0.07433385401964188,
0.3142198920249939,
0.2397761195898056,
0.40228989720344543,
-0.4218081533908844,
-0.03541836142539978,
-0.7509752511978149,
0.11652792245149612,
-0.3764895796775818,
0.00959269143640995,
-0.03185897693037987,
0.15853829681873322,
0.1377418488264084,
0.08386078476905823,
0.15917232632637024,
0.29942384362220764,
0.11672317236661911,
0.2220778465270996,
-0.05618421733379364,
-0.18462048470973969,
-0.33807069063186646,
0.02648555114865303,
-0.17509248852729797,
-0.46551430225372314,
0.22135992348194122,
-0.1279323399066925,
0.009210947901010513,
-0.22518602013587952,
0.22398850321769714,
0.255967378616333,
-0.0059869736433029175,
0.47772929072380066,
-0.11201165616512299,
0.6255968809127808,
-0.08501801639795303,
0.3190016448497772,
-0.3009392023086548,
-0.0801897868514061,
-0.19280588626861572,
0.5200988054275513,
0.2061503380537033,
0.2713996171951294,
-0.1779927909374237,
-0.10791616141796112,
-0.21530425548553467,
0.15741008520126343,
-0.006548143923282623,
-0.07054738700389862,
0.0667274221777916,
-0.1510603129863739,
-0.0018242709338665009,
-0.05849042534828186,
0.15223149955272675,
0.09204801917076111,
-0.22293895483016968,
-0.07817313820123672,
-0.1745537519454956,
-0.18018533289432526,
0.1810823678970337,
-0.40432873368263245,
-0.3411034047603607,
0.1487179398536682,
0.12612642347812653,
0.10186608880758286,
0.1396922618150711,
-0.45242106914520264,
0.12178962677717209,
0.42447495460510254,
-0.12801724672317505,
-0.41742584109306335,
0.13403187692165375,
-0.21161901950836182,
0.10057024657726288,
-0.12185277044773102,
0.4765018820762634,
0.14110934734344482,
-0.3705090880393982,
-0.16157196462154388,
-0.3583213686943054
] |
https://github.com/huggingface/datasets/issues/835 | Wikipedia postprocessing | Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect.
As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool | Hi, thanks for this library!
Running this code:
```py
import datasets
wikipedia = datasets.load_dataset("wikipedia", "20200501.de")
print(wikipedia['train']['text'][0])
```
I get:
```
mini|Ricardo Flores Magón
mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930.
Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World.
Politische Biografie
Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde.
mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917
[...]
```
so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup?
Apologies if this has been asked before. | 38 | Wikipedia postprocessing
Hi, thanks for this library!
Running this code:
```py
import datasets
wikipedia = datasets.load_dataset("wikipedia", "20200501.de")
print(wikipedia['train']['text'][0])
```
I get:
```
mini|Ricardo Flores Magón
mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930.
Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World.
Politische Biografie
Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde.
mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917
[...]
```
so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup?
Apologies if this has been asked before.
Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect.
As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool | [
-0.03763066604733467,
0.11600163578987122,
-0.19094105064868927,
0.45003801584243774,
0.29546499252319336,
-0.21973741054534912,
0.3712629973888397,
0.2625177800655365,
-0.00288541242480278,
0.06707745790481567,
0.16373248398303986,
0.3684879243373871,
0.04031345248222351,
-0.06343390792608261,
-0.052520424127578735,
-0.28005847334861755,
0.001012355089187622,
0.10886898636817932,
-0.27587729692459106,
-0.21415287256240845,
-0.2710888683795929,
0.17248225212097168,
-0.2704939842224121,
0.19909530878067017,
-0.3585416376590729,
0.08350026607513428,
0.038028039038181305,
-0.16643020510673523,
-0.1340273767709732,
0.05899066478013992,
-0.12309232354164124,
-0.011390473693609238,
-0.23232664167881012,
0.5959073305130005,
-0.00010385645146016032,
0.09380213916301727,
0.26598095893859863,
-0.14833562076091766,
0.16510069370269775,
-0.2740635275840759,
0.03815910965204239,
0.1320968121290207,
-0.018275180831551552,
-0.48836997151374817,
-0.15066102147102356,
-0.09731396287679672,
-0.10264627635478973,
-0.00801941379904747,
0.16422919929027557,
0.10896530747413635,
0.27796629071235657,
-0.2608304023742676,
0.0990447849035263,
-0.08155357092618942,
0.40712788701057434,
-0.03915918618440628,
0.0021225344389677048,
-0.05679355189204216,
-0.10487619042396545,
0.0740148276090622,
0.08532674610614777,
0.4533437490463257,
-0.06691267341375351,
-0.1527017205953598,
-0.039059437811374664,
-0.08014095574617386,
0.11496181786060333,
-0.22991210222244263,
0.35983285307884216,
0.39708393812179565,
0.482342928647995,
-0.23701921105384827,
-0.0033172443509101868,
0.13493382930755615,
-0.056278690695762634,
-0.06274808198213577,
0.13822144269943237,
0.24851685762405396,
-0.24639928340911865,
0.19988249242305756,
0.10861320793628693,
-0.04250280186533928,
-0.15706473588943481,
0.3849436640739441,
-0.3486665189266205,
0.761557936668396,
-0.14706245064735413,
0.08903571963310242,
-0.07138341665267944,
-0.06185784190893173,
-0.26555776596069336,
0.06475561857223511,
0.4067403972148895,
0.11511392891407013,
0.2293580025434494,
0.062362298369407654,
0.09520082920789719,
-0.18791857361793518,
-0.15811043977737427,
-0.22979594767093658,
-0.3073722720146179,
-0.03055252507328987,
-0.0009033773094415665,
0.031290940940380096,
0.0951707512140274,
-0.06777659058570862,
-0.188222736120224,
0.14485642313957214,
0.12710249423980713,
0.19561704993247986,
-0.32052725553512573,
0.1341058909893036,
-0.07264074683189392,
-0.058856893330812454,
-0.010966410860419273,
0.049391746520996094,
0.18807926774024963,
-0.15100517868995667,
-0.050171080976724625,
0.11978595703840256,
-0.40613529086112976,
-0.1329095959663391,
-0.26249998807907104,
0.3644144833087921,
-0.35372596979141235,
0.32172462344169617,
0.13394400477409363,
-0.041071824729442596,
0.04270762950181961,
0.20190660655498505,
-0.3462700843811035,
0.31849583983421326,
-0.257484495639801,
0.02149536833167076,
-0.08061693608760834,
-0.11439178884029388,
0.32686224579811096,
0.018394742161035538,
-0.05530891567468643,
-0.317583829164505,
-0.09002076089382172,
-0.46571555733680725,
0.3773738145828247,
0.11645568162202835,
-0.13730984926223755,
0.08536766469478607,
0.18213984370231628,
-0.4203639030456543,
-0.06110584735870361,
0.07399562746286392,
-0.011776447296142578,
-0.04309261217713356,
-0.1845545619726181,
0.2914002239704132,
0.12533806264400482,
0.11421897262334824,
0.23240867257118225,
0.34841614961624146,
0.34611496329307556,
0.12789979577064514,
0.20486851036548615,
0.07987723499536514,
-0.29362952709198,
-0.19887229800224304,
0.3602202832698822,
0.13983850181102753,
-0.4822922646999359,
-0.12393678724765778,
0.15420936048030853,
0.11740468442440033,
0.4012052118778229,
0.09025761485099792,
-0.03072209842503071,
0.5387803912162781,
-0.05755624920129776,
0.25036317110061646,
0.06930874288082123,
-0.13907678425312042,
0.017772210761904716,
-0.009497621096670628,
-0.005656294524669647,
-0.03302375599741936,
0.20786219835281372,
-0.05137743428349495,
0.19357021152973175,
0.2120354324579239,
0.5239934325218201,
0.07951226830482483,
0.2428407222032547,
0.18650569021701813,
-0.17700278759002686,
-0.16952672600746155,
0.191265270113945,
-0.01313874963670969,
0.17840203642845154,
-0.0867692306637764,
-0.06578057259321213,
0.27855923771858215,
0.39170384407043457,
-0.017707426100969315,
0.033679474145174026,
0.27488505840301514,
-0.15719780325889587,
-0.04024071991443634,
0.15080684423446655,
-0.18684986233711243,
0.25863125920295715,
-0.09473180770874023,
0.30097687244415283,
0.37398120760917664,
-0.27934324741363525,
-0.3215063810348511,
-0.4420488178730011,
-0.03061690367758274,
-0.08593803644180298,
-0.1259203404188156,
0.3621973991394043,
-0.007593967020511627,
-0.14336399734020233,
0.16673217713832855,
0.14752796292304993,
-0.04814641922712326,
-0.44521892070770264,
-0.062342558056116104,
-0.3474648892879486,
0.2008010596036911,
-0.28425484895706177,
-0.07039549946784973,
-0.1780649870634079,
0.3738848567008972,
0.08640424907207489,
0.09872763603925705,
0.036689549684524536,
0.06813976913690567,
0.16142605245113373,
0.1951446384191513,
0.08720218390226364,
0.1368032693862915,
-0.13544492423534393,
-0.3788893222808838,
0.10416437685489655,
0.44651228189468384,
0.21200931072235107,
-0.0876878872513771,
-0.21078884601593018,
0.405606746673584,
0.2071242332458496,
-0.024010710418224335,
0.10081931948661804,
-0.21865226328372955,
0.12748108804225922,
0.06698720157146454,
-0.1606179028749466,
-0.3407887816429138,
-0.02281966432929039,
0.3535308837890625,
-0.12065942585468292,
0.23332780599594116,
-0.3192092180252075,
0.07477881014347076,
0.5386908650398254,
0.13435174524784088,
0.4133020341396332,
-0.09016995877027512,
-0.5303298234939575,
-0.15796232223510742,
-0.016101228073239326,
0.17995977401733398,
-0.10504093766212463,
0.1875387728214264,
0.17148244380950928,
0.07865358889102936,
-0.018909770995378494,
-0.14085081219673157,
0.3554646074771881,
0.2964964509010315,
0.40859341621398926,
0.27114564180374146,
0.03597680851817131,
0.16824404895305634,
-0.251855731010437,
-0.03415969759225845,
-0.20957477390766144,
0.37953975796699524,
-0.25744202733039856,
0.1205543652176857,
-0.1207629069685936,
-0.07120174169540405,
-0.08849240094423294,
-0.20954996347427368,
-0.2182871699333191,
-0.13729993999004364,
-0.04135037213563919,
-0.12369725108146667,
0.04275709018111229,
0.22434280812740326,
-0.120394766330719,
-0.04271318018436432,
0.25015103816986084,
-0.1579013615846634,
-0.026358136907219887,
-0.2779901921749115,
-0.022865984588861465,
0.19258750975131989,
-0.19251690804958344,
0.18515293300151825,
0.11409129947423935,
-0.11334606260061264,
-0.33167916536331177,
0.024760138243436813,
-0.4591089189052582,
0.3076532781124115,
-0.284123957157135,
0.01780848577618599,
0.13158203661441803,
0.26305001974105835,
-0.1862814724445343,
-0.2981850504875183,
0.126071035861969,
-0.10227537155151367,
-0.07185056060552597,
-0.07292034476995468,
-0.21297380328178406,
0.11517441272735596,
-0.054950013756752014,
-0.6069827079772949,
-0.18439841270446777,
-0.25222697854042053,
0.17534217238426208,
0.4133390784263611,
0.17656850814819336,
0.44919341802597046,
0.2899245023727417,
0.1499411165714264,
0.2895771861076355,
0.1858319640159607,
-0.36908113956451416,
-0.08209473639726639,
0.3819563090801239,
0.18319293856620789,
-0.10031110048294067,
-0.04037615656852722,
-0.12143027782440186,
-0.1555100530385971,
0.03503204509615898,
-0.32844114303588867,
-0.0780135989189148,
0.1545451134443283,
0.009956572204828262,
0.060340069234371185,
0.07012031972408295,
0.3381592631340027,
0.059965092688798904,
-0.23738054931163788,
-0.07418326288461685,
-0.054302506148815155,
-0.06725092977285385,
-0.18042096495628357,
0.12280254065990448,
-0.22155120968818665,
0.19717130064964294,
0.07453793287277222,
0.5646961331367493,
-0.021905232220888138,
-0.09455528855323792,
-0.13015133142471313,
-0.1098465844988823,
0.04678752273321152,
0.014261394739151001,
-0.1725401133298874,
0.11838655918836594,
-0.0657220333814621,
-0.11288417875766754,
0.2858284115791321,
0.021897638216614723,
-0.311371386051178,
-0.08233935385942459,
0.2434459924697876,
-0.5951212048530579,
-0.2337571531534195,
0.073885478079319,
0.20721350610256195,
0.3250173032283783,
-0.2242448627948761,
0.018139995634555817,
-0.1529427170753479,
-0.198520690202713,
-0.07430848479270935,
0.27208179235458374,
-0.12949159741401672,
-0.18008731305599213,
-0.003994006663560867,
0.04553687199950218,
-0.3112497329711914,
0.08975975215435028,
0.10630249232053757,
-0.2374596893787384,
0.01940074935555458,
-0.3281233012676239,
0.18425944447517395,
-0.12816894054412842,
0.2043619453907013,
-0.16404731571674347,
-0.10164514183998108,
0.23064011335372925,
0.026648595929145813,
-0.21656620502471924,
-0.017609797418117523,
-0.36301809549331665,
0.1319011151790619,
0.5669854283332825,
0.40437841415405273,
-0.42177310585975647,
-0.15305161476135254,
0.51556396484375,
-0.09205830842256546,
-0.03687015175819397,
-0.1138463094830513,
-0.2131606489419937,
-0.10642610490322113,
-0.2825678586959839,
0.2626236379146576,
0.03995070606470108,
0.12825413048267365,
-0.00027036748360842466,
-0.14414747059345245,
0.30492517352104187,
0.34090569615364075,
0.10481516271829605,
0.11391212046146393,
0.16598907113075256,
0.15086358785629272,
-0.2560140788555145,
-0.2157398760318756,
0.08270400762557983,
-0.3168414235115051,
0.12270517647266388,
0.09640868753194809,
-0.0023285672068595886,
-0.09338764101266861,
-0.45829278230667114,
0.1420147716999054,
0.2253708839416504,
-0.19541755318641663,
0.2062245011329651,
0.1236635148525238,
0.04877611994743347,
0.011188529431819916,
0.10063687711954117,
0.35777726769447327,
-0.1785045862197876,
-0.0160645991563797,
-0.38246244192123413,
0.3698532283306122,
-0.04427836090326309,
-0.11382143944501877,
0.007945828139781952,
-0.3191574215888977,
-0.2880117893218994,
0.23508897423744202,
-0.023370489478111267,
1.0900640487670898,
0.19162823259830475,
0.06018020585179329,
0.07984796911478043,
0.3357888460159302,
0.40705278515815735,
0.05038502812385559,
-0.035732243210077286,
-0.4293992817401886,
0.1830921173095703,
-0.10922133922576904,
0.1870461106300354,
-0.032311901450157166,
-0.006355680525302887,
-0.32011741399765015,
-0.028861334547400475,
-0.22330673038959503,
0.04163738340139389,
-0.0022939229384064674,
-0.2610449194908142,
0.27940502762794495,
-0.07144671678543091,
-0.194061741232872,
0.18435166776180267,
-0.00854828953742981,
0.013244446367025375,
0.008396746590733528,
0.11594536155462265,
-0.24183784425258636,
-0.14553527534008026,
-0.39455991983413696,
-0.0565447136759758,
-0.34397587180137634,
0.20612072944641113,
0.17367252707481384,
-0.40402644872665405,
-0.12350642681121826,
0.03246871381998062,
0.12901322543621063,
0.38514965772628784,
-0.04019206017255783,
0.12452687323093414,
-0.014995820820331573,
-0.1153455376625061,
0.10514248162508011,
0.12752074003219604,
0.3020907938480377,
-0.05963722616434097,
-0.3325280547142029,
0.04742860794067383,
-0.0684778094291687,
-0.28407996892929077,
-0.11407777667045593,
-0.12027649581432343,
0.18802094459533691,
-0.0775805339217186,
-0.09440235793590546,
0.27152371406555176,
-0.1659890115261078,
-0.38255205750465393,
0.22036603093147278,
-0.1223534345626831,
-0.21464338898658752,
0.11289411783218384,
0.24874407052993774,
-0.4793300926685333,
0.07014088332653046,
0.2678937017917633,
0.39935827255249023,
0.2682988941669464,
0.3634386658668518,
0.4402482807636261,
-0.3178362250328064,
-0.4193704426288605,
-0.3453828692436218,
-0.34438878297805786,
-0.3034403920173645,
-0.22730077803134918,
0.12756550312042236,
-0.044207796454429626,
0.03227418661117554,
0.2528114318847656,
0.1267944574356079,
-0.04560047388076782,
-0.18095873296260834,
-0.44426071643829346,
-0.13788872957229614,
0.17699939012527466,
-0.007820699363946915,
0.10693804919719696,
0.26016849279403687,
-0.0003517530858516693,
0.13147509098052979,
0.0718078464269638,
-0.45963630080223083,
0.09546113014221191,
-0.4010986387729645,
0.2911186218261719,
0.24986612796783447,
-0.24247610569000244,
-0.19119437038898468,
0.007912950590252876,
0.34041252732276917,
-0.08433576673269272,
-0.12272368371486664,
-0.41862422227859497,
-0.1275818943977356,
0.07919866591691971,
0.039013490080833435,
-0.20213259756565094,
0.14408859610557556,
0.13279443979263306,
-0.235494464635849,
-0.1377093344926834,
-0.09160956740379333,
0.13271918892860413,
0.15286308526992798,
0.2610372304916382,
-0.05775552615523338,
0.36097797751426697,
-0.299899697303772,
-0.22520965337753296,
0.04533202946186066,
0.21987700462341309,
0.08759191632270813,
0.13924196362495422,
0.11419563740491867,
-0.06573989987373352,
-0.36459776759147644,
0.08501824736595154,
-0.02039273828268051,
0.3905954360961914,
0.35121265053749084,
-0.05034733563661575,
-0.04277617111802101,
0.3029699921607971,
0.2377178966999054,
0.24427612125873566,
-0.20005926489830017,
-0.0955432653427124,
-0.04121539369225502,
0.344333291053772,
-0.33810317516326904,
0.21906518936157227,
0.44381773471832275,
-0.27968597412109375,
0.15342415869235992,
0.3051404058933258,
0.11399270594120026,
0.06466731429100037,
0.17229531705379486,
0.12307608872652054,
-0.028941452503204346,
-0.3710553050041199,
0.14935675263404846,
0.08027798682451248,
0.14465820789337158,
0.08206886798143387,
0.00833011046051979,
0.32752346992492676,
0.1921265870332718,
0.4157090187072754,
0.5534648895263672,
0.045823145657777786,
0.048522837460041046,
0.09340770542621613,
-0.21240326762199402,
-0.17372260987758636,
0.3782322108745575,
0.2508527338504791,
-0.3872354328632355,
-0.042576342821121216,
0.06901915371417999,
-0.09577647596597672,
0.19581809639930725,
0.2206193506717682,
-0.1258995085954666,
0.20726974308490753,
-0.10612643510103226,
-0.28026437759399414,
-0.26699596643447876,
-0.21623915433883667,
-0.12545698881149292,
-0.2240757942199707,
0.19852697849273682,
0.0819864422082901,
0.04285839945077896,
0.0007926821708679199,
-0.16527016460895538,
-0.31716156005859375,
0.19637185335159302,
-0.3757815361022949,
0.3776465952396393,
-0.24757744371891022,
0.10262919962406158,
-0.1802189201116562,
0.264024555683136,
-0.35529837012290955,
0.45722344517707825,
0.18672338128089905,
-0.03975571691989899,
-0.3567962944507599,
-0.1345352679491043,
-0.18196502327919006,
-0.1360783576965332,
-0.10036829859018326,
-0.05086934566497803,
0.4067142605781555,
0.004941267892718315,
0.16460788249969482,
0.29867979884147644,
-0.3479202687740326,
0.035278186202049255,
0.35359278321266174,
0.03314076364040375,
0.08747579157352448,
-0.08712797611951828,
0.19857873022556305,
-0.15335215628147125,
-0.18705828487873077,
0.04490548372268677,
-0.3499828279018402,
0.2425699681043625,
0.3185034692287445,
0.1421525478363037,
0.20898741483688354,
-0.1796863079071045,
0.14990538358688354,
0.08747570216655731,
0.13935309648513794,
0.45062440633773804,
0.14688639342784882,
0.01609058491885662,
-0.12779700756072998,
-0.28832390904426575,
0.34579670429229736,
0.006506234407424927,
0.03813064843416214,
0.009068786166608334,
0.3338783383369446,
0.2970463037490845,
0.10663872212171555,
0.02006126195192337,
-0.25539442896842957,
0.07143951207399368,
0.05637942999601364,
-0.1783147007226944,
0.08413249254226685,
-0.017305918037891388,
-0.13602732121944427,
-0.04983939230442047,
-0.17776396870613098,
-0.14651931822299957,
-0.28322741389274597,
0.3031674921512604,
-0.062472060322761536,
-0.39201125502586365,
0.024139992892742157,
0.15905123949050903,
0.384121298789978,
-0.1318284422159195,
0.17542746663093567,
-0.3827269375324249,
0.0820530354976654,
-0.002654094249010086,
-0.0795917734503746,
0.010524160228669643,
0.5436722636222839,
0.11639834940433502,
0.11789985001087189,
0.1743745356798172,
-0.026804324239492416,
-0.01467094011604786,
0.27370360493659973,
-0.0396733321249485,
-0.34054112434387207,
-0.19383051991462708,
-0.05948437750339508,
0.06999426335096359,
0.0680813118815422,
-0.2632055878639221,
0.12692661583423615,
-0.15162256360054016,
0.03319927304983139,
-0.20770364999771118,
-0.5855808258056641,
0.21620868146419525,
-0.07805243879556656,
-0.5391715168952942,
-0.3936990797519684,
0.16472631692886353,
0.06639623641967773,
0.49913784861564636,
-0.43313068151474,
0.18305203318595886,
0.36605724692344666,
-0.1315496563911438,
-0.33803144097328186,
-0.05781448259949684,
-0.13943137228488922,
0.16077329218387604,
-0.10687276721000671,
0.051150642335414886,
-0.20778465270996094,
-0.19169490039348602,
-0.25908783078193665,
-0.3279493451118469
] |
https://github.com/huggingface/datasets/issues/834 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset | Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl? | ## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 48 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset
## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl? | [
-0.20528964698314667,
0.31998932361602783,
0.07221481204032898,
0.5395575165748596,
0.13003745675086975,
0.21938064694404602,
0.12779977917671204,
-0.18642394244670868,
-0.028953509405255318,
-0.06992658972740173,
0.27437612414360046,
0.0008880306268110871,
-0.4298551678657532,
0.20579592883586884,
0.30813440680503845,
-0.2922179698944092,
0.005448698997497559,
-0.20331332087516785,
0.02058234065771103,
-0.18204903602600098,
-0.1673908531665802,
0.46525609493255615,
0.11991424858570099,
0.050336748361587524,
-0.46859902143478394,
-0.02665633149445057,
-0.22141896188259125,
0.43151620030403137,
-0.09263461083173752,
-0.19537870585918427,
-0.03455676883459091,
0.03964453935623169,
0.1316576451063156,
0.4354017972946167,
-0.00012477950076572597,
-0.1571824550628662,
0.2606927752494812,
-0.20819267630577087,
-0.09278489649295807,
-0.22355331480503082,
-0.3300049304962158,
-0.19960662722587585,
-0.19160808622837067,
-0.12804432213306427,
0.17592427134513855,
0.12831054627895355,
-0.08041511476039886,
0.1652437001466751,
-0.2902434468269348,
0.042633190751075745,
0.11849546432495117,
-0.054692719131708145,
0.17708340287208557,
-0.028124071657657623,
0.3376813232898712,
-0.2312234491109848,
-0.027202552184462547,
0.5546994805335999,
-0.07334883511066437,
0.11992587149143219,
-0.12266875058412552,
0.4144373834133148,
-0.10189247131347656,
-0.1896880567073822,
0.008397083729505539,
0.21093963086605072,
0.0017850026488304138,
-0.07744286209344864,
0.13753418624401093,
0.281803697347641,
0.8164933323860168,
-0.23187217116355896,
-0.06239302456378937,
-0.11281126737594604,
-0.15599225461483002,
-0.17653734982013702,
0.4124317467212677,
0.16128015518188477,
-0.02717665582895279,
0.05349503830075264,
0.0535363033413887,
-0.5035983920097351,
-0.13520583510398865,
0.2228756994009018,
-0.02049729973077774,
0.40111199021339417,
0.06534427404403687,
0.023537620902061462,
0.4362437129020691,
0.24807099997997284,
-0.18706388771533966,
-0.09656856209039688,
-0.3789025843143463,
0.15656353533267975,
0.018785156309604645,
-0.250907838344574,
0.023838356137275696,
0.23255670070648193,
0.11420751363039017,
-0.09795054793357849,
0.03921050950884819,
0.04812062531709671,
-0.09541729837656021,
0.08086267113685608,
0.34943345189094543,
0.23026692867279053,
-0.2853444814682007,
-0.03235486149787903,
0.2578543424606323,
-0.1746077984571457,
0.19032692909240723,
-0.024763643741607666,
-0.11244519054889679,
-0.15190762281417847,
-0.35186412930488586,
-0.15811589360237122,
-0.3366398811340332,
0.12243622541427612,
0.07587353140115738,
0.10926187038421631,
-0.22498562932014465,
-0.21286021173000336,
0.10060182213783264,
0.0871744155883789,
0.2883942127227783,
-0.2428625226020813,
-0.0612187534570694,
0.39983803033828735,
0.2928890883922577,
0.17778503894805908,
0.05843031033873558,
0.26946455240249634,
-0.08287052810192108,
0.20985835790634155,
-0.18897993862628937,
0.08467511832714081,
0.12403533607721329,
-0.08540834486484528,
-0.20841245353221893,
-0.1505703330039978,
0.010884454473853111,
0.0665663629770279,
-0.1833895742893219,
0.15589851140975952,
0.37994271516799927,
0.38687703013420105,
0.006978213787078857,
-0.6324934959411621,
-0.30968743562698364,
0.13325396180152893,
-0.1716109812259674,
-0.306024968624115,
-0.27274924516677856,
-0.021412163972854614,
-0.20759998261928558,
-0.33386120200157166,
-0.2829800248146057,
0.5032010078430176,
0.09784020483493805,
-0.37813040614128113,
0.09740118682384491,
0.42587560415267944,
0.03819359466433525,
-0.17415882647037506,
-0.20048092305660248,
0.3255687654018402,
-0.28595516085624695,
0.049120619893074036,
-0.22338862717151642,
-0.006354432553052902,
0.3607915937900543,
0.2327745407819748,
-0.04935269430279732,
0.08604958653450012,
-0.26951462030410767,
0.4979100227355957,
0.25232136249542236,
-0.11209478974342346,
-0.14197835326194763,
0.15146945416927338,
-0.457485556602478,
0.013494277372956276,
0.19281113147735596,
0.353247731924057,
-0.07077958434820175,
-0.1276388168334961,
-0.12204338610172272,
0.2550142705440521,
0.17409823834896088,
0.0441155880689621,
-0.36704641580581665,
-0.43609967827796936,
0.22769951820373535,
0.12961134314537048,
0.20960210263729095,
-0.14167052507400513,
0.384723424911499,
0.3507203757762909,
0.20133739709854126,
-0.25459375977516174,
0.143292635679245,
0.13561975955963135,
0.20108655095100403,
0.047083061188459396,
-0.07009535282850266,
0.087850421667099,
-0.42583465576171875,
0.03981064260005951,
0.4841701090335846,
0.42874157428741455,
0.24250195920467377,
-0.04371034353971481,
0.11106763035058975,
-0.06406313925981522,
-0.21433483064174652,
-0.17033395171165466,
-0.0034962445497512817,
0.39950817823410034,
-0.07881084829568863,
0.23764903843402863,
-0.07324150949716568,
-0.2341182678937912,
-0.2306234985589981,
-0.12148212641477585,
0.038196414709091187,
0.31707242131233215,
-0.11879316717386246,
0.07988981157541275,
-0.11657986044883728,
0.2972484230995178,
-0.20579692721366882,
-0.04729935899376869,
-0.034514009952545166,
0.1623503863811493,
-0.103703074157238,
0.3616386651992798,
0.6724396347999573,
0.7141320109367371,
0.08225506544113159,
-0.2385074943304062,
0.34588345885276794,
-0.06271383166313171,
0.244979590177536,
-0.14944815635681152,
-0.07298334687948227,
0.2659511864185333,
-0.003939405083656311,
0.06680161505937576,
0.07375627756118774,
0.23552486300468445,
0.2932620644569397,
-0.019925255328416824,
-0.0440586656332016,
-0.33057844638824463,
0.3704817295074463,
0.2180640697479248,
-0.24172142148017883,
0.1267596036195755,
-0.29778704047203064,
0.007666327059268951,
0.4142894148826599,
-0.05028544366359711,
0.47854551672935486,
0.21857395768165588,
-0.3042885661125183,
-0.30602800846099854,
-0.024924369528889656,
0.6103758811950684,
0.3237771689891815,
0.08085492253303528,
0.3784131407737732,
0.061727650463581085,
0.10762490332126617,
-0.18828697502613068,
0.3658088445663452,
0.08724884688854218,
-0.07825461775064468,
0.5172122716903687,
-0.1013428270816803,
-0.06577365100383759,
-0.28070446848869324,
0.12972216308116913,
0.0327550545334816,
0.20474590361118317,
-0.14998769760131836,
-0.021675851196050644,
-0.05121353268623352,
-0.11576619744300842,
-0.13551266491413116,
-0.7797604203224182,
-0.6879053711891174,
-0.3252255916595459,
0.1452033370733261,
-0.17661309242248535,
-0.1035035252571106,
0.023351814597845078,
0.13824526965618134,
0.19640886783599854,
-0.4809717535972595,
-0.39891329407691956,
-0.08776910603046417,
-0.4259750247001648,
-0.12957355380058289,
-0.03611082583665848,
0.4199082553386688,
-0.031305503100156784,
0.2916487157344818,
0.019221456721425056,
0.1689302623271942,
-0.24392423033714294,
-0.4900277554988861,
0.3283204734325409,
-0.16851656138896942,
0.25418606400489807,
0.07567033916711807,
-0.11802473664283752,
0.08988870680332184,
-0.4692745506763458,
0.1869603544473648,
0.2557249963283539,
0.10165396332740784,
-0.04970341920852661,
0.00467575341463089,
-0.02297525480389595,
0.04500119015574455,
0.04119390249252319,
-0.2943646013736725,
-0.26002898812294006,
-0.0858580619096756,
0.0822591632604599,
0.10400496423244476,
-0.21546563506126404,
-0.04005914553999901,
0.2880851626396179,
0.06359148025512695,
-0.1582784205675125,
-0.38318613171577454,
-0.137821763753891,
0.3207925856113434,
-0.1182924434542656,
-0.24658142030239105,
0.2720310688018799,
-0.24531924724578857,
0.34342166781425476,
-0.08151613175868988,
-0.47440242767333984,
-0.29747816920280457,
0.14566358923912048,
-0.011608259752392769,
0.4878692328929901,
0.12111744284629822,
0.32668638229370117,
0.11659923940896988,
-0.01311715878546238,
-0.03400491923093796,
-0.2883884906768799,
0.10659260302782059,
0.3647941052913666,
0.2817762494087219,
0.13087327778339386,
0.33225980401039124,
0.19528275728225708,
0.6535801887512207,
-0.07460793852806091,
0.23402056097984314,
0.25764745473861694,
-0.2271132469177246,
0.3407441973686218,
-0.09390503913164139,
-0.10107336193323135,
-0.03774641454219818,
-0.12385120987892151,
-0.4158323407173157,
0.314083993434906,
0.2167859673500061,
-0.5161982178688049,
-0.0897720605134964,
0.0016288496553897858,
-0.2928321957588196,
-0.29467564821243286,
0.2758500576019287,
0.09458908438682556,
0.024147503077983856,
-0.12342086434364319,
-0.24130812287330627,
-0.05039038881659508,
-0.26460742950439453,
0.11669933795928955,
0.8497217297554016,
-0.2143949568271637,
0.07824088633060455,
-0.3703140318393707,
-0.2512575387954712,
-0.10827936977148056,
0.17504091560840607,
0.25748929381370544,
-0.04865526780486107,
-0.3461049199104309,
-0.11421216279268265,
0.15859951078891754,
-0.3126896619796753,
0.1028866171836853,
-0.593087375164032,
-0.18341507017612457,
0.058501679450273514,
-0.17293095588684082,
0.45938119292259216,
0.21657057106494904,
0.034656625241041183,
-0.2776295840740204,
0.5621842741966248,
-0.23146632313728333,
-0.23119142651557922,
0.035175714641809464,
0.25576937198638916,
0.0068301912397146225,
-0.22773072123527527,
0.17194972932338715,
-0.08798210322856903,
-0.46062299609184265,
-0.48782601952552795,
-0.20784908533096313,
-0.04193588346242905,
0.04940919950604439,
0.23444901406764984,
0.10141637921333313,
0.03817050904035568,
-0.14550450444221497,
0.029703699052333832,
-0.17962345480918884,
0.04044194519519806,
0.18856368958950043,
-0.2332446128129959,
0.24941964447498322,
0.1618935763835907,
-0.015109965577721596,
0.21666443347930908,
0.11740624904632568,
0.389698326587677,
0.1741848587989807,
-0.5150281190872192,
0.6288018822669983,
0.36091554164886475,
0.08631671965122223,
-0.07620511204004288,
0.10403835773468018,
-0.2789348363876343,
-0.3891699016094208,
0.0016886875964701176,
0.08448852598667145,
0.22167758643627167,
-0.2243635207414627,
-0.2750701606273651,
0.5395458340644836,
0.03456253185868263,
-0.25130581855773926,
0.14928829669952393,
0.2535790205001831,
-0.48515716195106506,
0.055954813957214355,
0.12287174165248871,
1.2584302425384521,
0.17317192256450653,
0.27151811122894287,
0.17338600754737854,
-0.10962052643299103,
0.08591046929359436,
0.05614222586154938,
0.19983120262622833,
-0.3550170063972473,
0.5552224516868591,
-0.22700545191764832,
0.04510379210114479,
-0.1872149407863617,
-0.08584187924861908,
-0.1615123748779297,
-0.03764856234192848,
-0.04891984537243843,
0.09345155954360962,
-0.16448667645454407,
0.30353492498397827,
-0.24913084506988525,
-0.23791825771331787,
0.04875567927956581,
-0.017788030207157135,
0.23212064802646637,
0.23641429841518402,
-0.12328420579433441,
-0.4004276394844055,
-0.09267281740903854,
-0.3229566216468811,
-0.7480208277702332,
-0.14622661471366882,
0.016425197944045067,
-0.02472451701760292,
-0.45671674609184265,
-0.5324656367301941,
-0.10038231313228607,
0.3304930031299591,
-0.237831249833107,
-0.13384154438972473,
-0.19630062580108643,
0.02188660204410553,
-0.571880578994751,
-0.054390016943216324,
0.24092116951942444,
-0.0025457083247601986,
0.14206571877002716,
-0.10236562043428421,
0.1303030252456665,
0.019263319671154022,
0.004667133092880249,
-0.4703744053840637,
-0.15944162011146545,
-0.18926744163036346,
0.03613369166851044,
0.24552971124649048,
-0.025802062824368477,
0.4970342218875885,
-0.19069619476795197,
-0.2556155323982239,
0.033537231385707855,
0.07218270748853683,
0.1186017394065857,
-0.01515137404203415,
-0.09993810951709747,
0.012991540133953094,
-0.16185088455677032,
0.2606790065765381,
-0.07992517948150635,
-0.267770379781723,
0.13657993078231812,
0.27394288778305054,
-0.2539982795715332,
-0.15616059303283691,
0.04968035966157913,
0.02891959436237812,
-0.2983616888523102,
-0.10932771116495132,
0.1146741583943367,
-0.17200492322444916,
-0.18534903228282928,
0.2532089650630951,
0.30531859397888184,
0.009273342788219452,
-0.3213847279548645,
-0.41742226481437683,
-0.13865934312343597,
0.3139130771160126,
-0.13475161790847778,
0.3784934878349304,
-0.7157734036445618,
-0.31949013471603394,
0.25600188970565796,
0.07395713031291962,
-0.18835070729255676,
0.05776439607143402,
-0.15611551702022552,
-0.15096992254257202,
0.6616250276565552,
0.11794917285442352,
0.30817535519599915,
0.16881020367145538,
-0.06100716441869736,
-0.4879077076911926,
-0.1559157520532608,
0.06414397060871124,
-0.124269500374794,
0.2141112983226776,
0.41911622881889343,
-0.090552419424057,
0.03145010024309158,
-0.3898131847381592,
-0.13372096419334412,
0.12040413171052933,
0.21080954372882843,
-0.15714851021766663,
-0.28586697578430176,
0.017323005944490433,
-0.15691137313842773,
0.2881869077682495,
-0.19987323880195618,
0.07621800899505615,
0.11887870728969574,
0.5915828347206116,
0.15839245915412903,
-0.03141574561595917,
0.0030103870667517185,
-0.0456661731004715,
0.46241965889930725,
0.4269460141658783,
0.18927010893821716,
0.07286770641803741,
0.17127209901809692,
0.01558828353881836,
0.11977384984493256,
0.3151099383831024,
0.19321706891059875,
0.014500491321086884,
-0.13900688290596008,
-0.04339611530303955,
0.1849905550479889,
0.0005181338638067245,
0.029346436262130737,
-0.31665265560150146,
-0.2396707534790039,
-0.13440172374248505,
-0.06026467680931091,
0.22850902378559113,
0.4845859110355377,
0.04890154302120209,
-0.1327948421239853,
-0.17686596512794495,
0.5035765171051025,
-0.2242099791765213,
-0.10810348391532898,
0.11325381696224213,
-0.4795011281967163,
0.523234486579895,
0.1773429811000824,
0.3323856294155121,
0.2191065102815628,
0.10330164432525635,
-0.13096758723258972,
0.054930515587329865,
0.38814061880111694,
0.014244850724935532,
-0.0708746388554573,
-0.19777244329452515,
0.05580079182982445,
0.2556622624397278,
0.3525906801223755,
-0.019886568188667297,
0.09490112215280533,
0.03652486205101013,
0.20330044627189636,
0.4621012806892395,
-0.2480403631925583,
0.20133918523788452,
-0.039263829588890076,
-0.07659603655338287,
-0.2275441735982895,
-0.2805991768836975,
-0.32517093420028687,
0.41586804389953613,
-0.22216978669166565,
-0.18135425448417664,
0.055677566677331924,
-0.023571565747261047,
0.20052266120910645,
-0.1309473216533661,
0.2222486436367035,
-0.027143262326717377,
-0.3678199052810669,
-0.27605077624320984,
0.09574003517627716,
0.16041897237300873,
0.1875728964805603,
0.011954426765441895,
0.050594329833984375,
0.18830424547195435,
0.09126987308263779,
-0.07135654985904694,
-0.07081862539052963,
-0.28978046774864197,
0.18854260444641113,
-0.16393141448497772,
0.5140031576156616,
0.15088984370231628,
0.0002556145191192627,
0.1288575828075409,
-0.02401154488325119,
-0.08344482630491257,
0.17770427465438843,
0.36469581723213196,
-0.08157399296760559,
0.29004085063934326,
0.49895182251930237,
-0.006933271884918213,
0.06164861470460892,
-0.10755372047424316,
0.01195923238992691,
-0.2995433807373047,
-0.18399764597415924,
0.408057302236557,
-0.08617465198040009,
0.10353562235832214,
-0.019886765629053116,
-0.027610165998339653,
0.22685100138187408,
0.34669825434684753,
0.16516348719596863,
0.23255130648612976,
-0.15310783684253693,
-0.14601674675941467,
-0.5308955311775208,
-0.0676826611161232,
0.3016185462474823,
0.042708106338977814,
-0.19041693210601807,
0.1468808650970459,
0.2609977424144745,
0.3723936080932617,
0.10109622776508331,
0.284065306186676,
-0.03580700233578682,
-0.036949820816516876,
0.006053119897842407,
0.298329621553421,
0.24341516196727753,
0.1828007847070694,
-0.27558258175849915,
0.012772835791110992,
-0.0651869922876358,
-0.1498202532529831,
-0.09016428142786026,
-0.2980969548225403,
0.14322176575660706,
-0.374891459941864,
0.16403049230575562,
0.3807448744773865,
-0.1049274206161499,
0.5162323713302612,
-0.22713890671730042,
0.06072567403316498,
-0.31344929337501526,
-0.06318719685077667,
-0.1761237382888794,
-0.14923441410064697,
-0.02567332610487938,
0.08781855553388596,
-0.28927046060562134,
0.4012243449687958,
-0.1729557067155838,
-0.16986475884914398,
-0.0885792151093483,
0.5634931921958923,
-0.18659758567810059,
0.08590000122785568,
0.00045804306864738464,
0.02169756032526493,
0.44825437664985657,
0.23924392461776733,
0.16352364420890808,
0.04562341421842575,
-0.21020284295082092,
0.05889149755239487,
0.09383983165025711,
0.045802902430295944,
-0.046933747828006744,
0.01480607409030199,
0.14030738174915314,
0.36755722761154175,
0.1528908759355545,
-0.3563583791255951,
-0.09936545789241791,
0.202864870429039,
0.28687983751296997,
-0.1886311024427414,
0.14832819998264313,
0.2838776707649231,
-0.31203025579452515,
0.027751300483942032,
-0.3410733938217163,
-0.05031336098909378,
-0.27969080209732056,
-0.19440318644046783,
-0.2609977424144745
] |
https://github.com/huggingface/datasets/issues/834 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset | Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem)
You can use it for example to load the French to English translation with:
```python
from datasets import load_dataset
wikilingua = load_dataset("gem", "wiki_lingua_french_fr")
```
Closed by https://github.com/huggingface/datasets/pull/1807 | ## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 42 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset
## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem)
You can use it for example to load the French to English translation with:
```python
from datasets import load_dataset
wikilingua = load_dataset("gem", "wiki_lingua_french_fr")
```
Closed by https://github.com/huggingface/datasets/pull/1807 | [
-0.2764138877391815,
0.002687796950340271,
-0.1001025140285492,
0.31070977449417114,
-0.1134149581193924,
0.1402345895767212,
0.010671772062778473,
0.2736695408821106,
-0.049723271280527115,
0.14254418015480042,
-0.06661245226860046,
0.23884490132331848,
0.033216703683137894,
0.32905417680740356,
0.1007775366306305,
-0.5720514059066772,
0.012426115572452545,
0.05063983052968979,
-0.18946939706802368,
-0.09385855495929718,
0.04965655505657196,
0.291767954826355,
-0.15411376953125,
0.03448217362165451,
-0.07429036498069763,
0.16732828319072723,
-0.2920973300933838,
-0.062164969742298126,
0.05806446820497513,
-0.16945183277130127,
-0.049449846148490906,
0.10799352824687958,
0.11473187804222107,
0.11207809299230576,
-0.00009707690333016217,
-0.23571400344371796,
0.11734966933727264,
-0.09347742795944214,
-0.08322986960411072,
-0.3354901075363159,
0.05689461529254913,
-0.4867474138736725,
-0.08984163403511047,
-0.152728870511055,
-0.02868008054792881,
-0.07993537932634354,
-0.022539028897881508,
0.36183613538742065,
0.17118743062019348,
-0.016323570162057877,
0.30158475041389465,
-0.24136509001255035,
0.1877078413963318,
-0.09825034439563751,
0.040979426354169846,
-0.33529508113861084,
-0.18769682943820953,
0.16406883299350739,
-0.02432408183813095,
-0.05625929683446884,
-0.2111862301826477,
0.5608848333358765,
-0.05093604326248169,
-0.25315871834754944,
-0.29006078839302063,
-0.012694702483713627,
-0.10527276247739792,
-0.0649605467915535,
0.11656373739242554,
0.4845500886440277,
0.5298594236373901,
-0.16814970970153809,
-0.27337169647216797,
-0.011979032307863235,
-0.1028650626540184,
-0.13364174962043762,
-0.06890644878149033,
0.19958791136741638,
0.06820936501026154,
0.28217414021492004,
0.11977265775203705,
-0.2527919411659241,
-0.1005488932132721,
0.2251766175031662,
0.12478426098823547,
0.4762437343597412,
-0.05820862948894501,
-0.0441964790225029,
0.29888617992401123,
-0.16750453412532806,
-0.5653139352798462,
0.1359977126121521,
-0.1074618548154831,
0.2373197078704834,
-0.08557252585887909,
-0.12352770566940308,
0.15287798643112183,
0.07998111099004745,
0.19662269949913025,
-0.25330281257629395,
-0.152831569314003,
0.4855697453022003,
0.05062122642993927,
0.18057256937026978,
0.21769236028194427,
0.17505933344364166,
0.0759466290473938,
-0.054726146161556244,
-0.014844417572021484,
0.12781625986099243,
-0.04115210846066475,
0.029295288026332855,
-0.024341613054275513,
0.06436794251203537,
-0.24456088244915009,
-0.08198823779821396,
-0.4378209710121155,
0.0686349868774414,
0.20605377852916718,
0.23397015035152435,
0.1268784999847412,
-0.12932392954826355,
-0.15844355523586273,
0.35308584570884705,
0.09576321393251419,
0.23727667331695557,
-0.07811085879802704,
0.26950833201408386,
-0.2140507996082306,
-0.126119926571846,
-0.12363044917583466,
0.2545529305934906,
-0.17588414251804352,
0.19461455941200256,
-0.17697454988956451,
0.08412238955497742,
0.22076913714408875,
0.011975863017141819,
0.2674369215965271,
-0.19199086725711823,
0.0756383165717125,
0.05225610360503197,
-0.08069174736738205,
-0.23251907527446747,
0.29448065161705017,
0.06887371838092804,
0.2538158893585205,
-0.41394108533859253,
-0.2517583966255188,
-0.12961804866790771,
-0.22868135571479797,
-0.08998424559831619,
-0.3403102159500122,
0.2785220444202423,
0.03785718232393265,
-0.24254155158996582,
-0.27791744470596313,
0.7183286547660828,
0.1214742511510849,
-0.3903104364871979,
0.09702808409929276,
0.2184334397315979,
-0.2372530698776245,
0.02628747932612896,
0.10791472345590591,
0.4262576103210449,
-0.08575049042701721,
-0.13688704371452332,
-0.009469243697822094,
-0.08782586455345154,
0.08174926787614822,
0.17718546092510223,
-0.07131443917751312,
-0.11792612820863724,
-0.132496640086174,
0.42852526903152466,
0.11942442506551743,
-0.15092380344867706,
-0.17361566424369812,
0.020186102017760277,
-0.10531538724899292,
0.28856420516967773,
-0.0036447569727897644,
0.0764426663517952,
0.02639438770711422,
-0.02835909090936184,
0.13019628822803497,
0.10246004909276962,
0.1560315042734146,
0.13532570004463196,
-0.22205395996570587,
-0.3277808427810669,
0.09018972516059875,
0.19360670447349548,
0.03246188908815384,
-0.19083383679389954,
0.21952906250953674,
0.19911077618598938,
0.29377371072769165,
-0.2792626619338989,
0.12364941835403442,
0.2130652517080307,
-0.1529015153646469,
0.14650505781173706,
0.054680753499269485,
-0.264177143573761,
0.025185752660036087,
0.11132311075925827,
0.3206298351287842,
0.35763439536094666,
0.2289249300956726,
-0.2382943034172058,
-0.04648624733090401,
-0.17052099108695984,
-0.30597183108329773,
-0.2131439596414566,
0.33407455682754517,
0.12075599282979965,
0.029873140156269073,
0.3504919409751892,
0.057147618383169174,
-0.2722000181674957,
-0.39504706859588623,
-0.27958858013153076,
-0.07886810600757599,
0.0020738523453474045,
-0.15849171578884125,
-0.06422366946935654,
-0.09971180558204651,
0.38936901092529297,
-0.27123692631721497,
0.0983206257224083,
0.01543377060443163,
0.151748925447464,
-0.0550842359662056,
0.4982585906982422,
0.4569425582885742,
0.2020406424999237,
-0.07170866429805756,
-0.5005125999450684,
0.10146312415599823,
-0.12695340812206268,
0.040557391941547394,
0.014174789190292358,
0.002655480057001114,
0.45990949869155884,
0.2683025300502777,
0.12849293649196625,
0.17289391160011292,
0.07769021391868591,
0.43817463517189026,
0.06491100788116455,
-0.13732218742370605,
-0.32992494106292725,
0.3048831522464752,
0.07827594876289368,
-0.43332111835479736,
-0.12211011350154877,
-0.17124390602111816,
0.17326128482818604,
0.5744446516036987,
0.1377798616886139,
0.511950671672821,
0.21643829345703125,
-0.09746790677309036,
-0.20438188314437866,
-0.014423759654164314,
-0.055819250643253326,
-0.17341823875904083,
0.2701699137687683,
0.3225533962249756,
0.13849623501300812,
0.1292920559644699,
0.04103689268231392,
0.25126180052757263,
-0.08562573790550232,
0.04526286572217941,
0.19730913639068604,
0.09132087975740433,
-0.11873697489500046,
-0.3444887101650238,
0.06858354806900024,
-0.23776595294475555,
-0.0307475533336401,
0.13568061590194702,
0.1075928583741188,
-0.07175277173519135,
-0.04454806074500084,
-0.18384923040866852,
-0.30299240350723267,
-0.23440393805503845,
-0.16165047883987427,
0.2162351906299591,
-0.22007599472999573,
-0.24005934596061707,
0.12845270335674286,
0.11678360402584076,
-0.11293451488018036,
-0.252980500459671,
-0.10243126004934311,
-0.013842765241861343,
-0.5788553357124329,
-0.25555387139320374,
0.18014854192733765,
0.04823221266269684,
-0.045007750391960144,
0.3994947075843811,
-0.40125757455825806,
-0.15521328151226044,
0.03560594469308853,
-0.6449289917945862,
0.27204465866088867,
-0.16221436858177185,
0.02005404606461525,
-0.010631024837493896,
-0.0697958767414093,
-0.3605293035507202,
-0.3130764663219452,
0.30768972635269165,
0.032535895705223083,
-0.02895977720618248,
0.12614081799983978,
0.03770221024751663,
0.011712056584656239,
-0.035280678421258926,
-0.5705177187919617,
-0.19807346165180206,
-0.40709394216537476,
0.3077455163002014,
0.054562654346227646,
0.14866772294044495,
-0.3104326128959656,
0.29559293389320374,
0.19082364439964294,
-0.1759013533592224,
0.3428911566734314,
-0.34202367067337036,
-0.09230007231235504,
0.11209358274936676,
-0.1527305543422699,
-0.37906455993652344,
0.07316550612449646,
-0.20055845379829407,
0.36509859561920166,
-0.10576171427965164,
-0.2588934898376465,
-0.10581723600625992,
0.17911618947982788,
0.03263384476304054,
0.18196116387844086,
0.23680776357650757,
0.2737874388694763,
0.13043928146362305,
-0.20748163759708405,
0.07251575589179993,
0.03776441887021065,
-0.03181742876768112,
-0.12068865448236465,
0.0855490043759346,
-0.21008232235908508,
0.3565775454044342,
0.2325439155101776,
0.6987835764884949,
0.16900983452796936,
0.3995888829231262,
0.303180456161499,
-0.1493191123008728,
0.12141312658786774,
-0.37278735637664795,
-0.11833294481039047,
-0.06676558405160904,
-0.16181570291519165,
-0.0017635077238082886,
0.43743443489074707,
0.2114107310771942,
-0.6284599900245667,
-0.19206441938877106,
-0.2594238221645355,
-0.42234325408935547,
-0.2361975759267807,
0.30576109886169434,
0.0923372358083725,
0.35457491874694824,
-0.10092639923095703,
-0.2588638365268707,
0.015134245157241821,
-0.17671236395835876,
0.16950024664402008,
0.39793187379837036,
-0.27942001819610596,
0.1074104756116867,
-0.49182963371276855,
-0.1902904510498047,
0.06738395988941193,
0.17288871109485626,
0.4474492073059082,
-0.08079488575458527,
-0.22054389119148254,
-0.13007184863090515,
-0.13024060428142548,
-0.2977634072303772,
-0.031453996896743774,
-0.27452558279037476,
-0.2566509246826172,
-0.0925142914056778,
-0.29935187101364136,
0.05582508444786072,
0.08358033001422882,
-0.16842205822467804,
-0.3951658606529236,
0.5567396879196167,
0.14196661114692688,
-0.3097411096096039,
0.026045039296150208,
0.11450212448835373,
0.3811563551425934,
-0.2633333206176758,
0.22271066904067993,
-0.2694184482097626,
-0.19328168034553528,
-0.5281083583831787,
0.16913872957229614,
-0.03996917977929115,
0.046584244817495346,
0.16901935636997223,
0.03219711408019066,
0.08846207708120346,
0.08042895048856735,
-0.05948956310749054,
0.061630744487047195,
0.268617182970047,
0.12302668392658234,
-0.10827913880348206,
-0.04063624143600464,
-0.23641681671142578,
-0.10765504837036133,
0.27830615639686584,
0.07753930985927582,
-0.1844509243965149,
-0.33066412806510925,
-0.2572510838508606,
0.310132771730423,
0.003528580069541931,
0.22626638412475586,
0.010780766606330872,
0.19836565852165222,
-0.1305653601884842,
-0.3597176969051361,
-0.03556095436215401,
-0.01160440780222416,
0.3058980703353882,
-0.10584262758493423,
-0.43166059255599976,
0.4495401680469513,
-0.10733167827129364,
0.015891551971435547,
-0.026342876255512238,
0.24215270578861237,
-0.26528647541999817,
0.23031169176101685,
0.07787486910820007,
0.9278440475463867,
0.23548753559589386,
0.2578747570514679,
0.10341542214155197,
0.10181799530982971,
0.17263121902942657,
0.061822183430194855,
0.020433003082871437,
-0.25022825598716736,
0.2777409553527832,
-0.003972427919507027,
0.30776137113571167,
-0.24421027302742004,
-0.00573309138417244,
-0.45879530906677246,
0.16285930573940277,
-0.21380625665187836,
-0.06948576867580414,
-0.03572960942983627,
0.038915835320949554,
-0.3852994740009308,
-0.2546166479587555,
-0.07492157816886902,
0.21581196784973145,
0.1608700007200241,
-0.14273427426815033,
-0.0968836173415184,
-0.16396552324295044,
0.06751736998558044,
-0.11555109173059464,
-0.5750615000724792,
0.20376357436180115,
0.3043476343154907,
0.09765451401472092,
-0.26667916774749756,
-0.13273271918296814,
0.050124090164899826,
0.3451716899871826,
-0.19380800426006317,
0.025229262188076973,
-0.08239567279815674,
-0.03415198251605034,
-0.4138204753398895,
-0.1523543745279312,
0.1776982992887497,
0.05732493847608566,
0.26580727100372314,
-0.1814178228378296,
-0.25106456875801086,
0.06416649371385574,
0.1339985728263855,
0.05570673197507858,
-0.2997831702232361,
-0.13337300717830658,
0.3854404091835022,
0.18514886498451233,
-0.09516450762748718,
0.4663963317871094,
-0.26128312945365906,
-0.3155129551887512,
0.26193028688430786,
0.07028799504041672,
-0.22862201929092407,
-0.11062981933355331,
0.14301066100597382,
0.003654003143310547,
0.07399645447731018,
0.2212083339691162,
0.2505520284175873,
-0.3267938494682312,
0.26219743490219116,
0.32973355054855347,
-0.2598974108695984,
-0.32720947265625,
-0.2419426143169403,
-0.12529461085796356,
-0.33353444933891296,
-0.13878142833709717,
0.07489358633756638,
-0.11599008738994598,
-0.1452166587114334,
0.09492085129022598,
0.03135239705443382,
0.04805615544319153,
-0.2062578946352005,
-0.2742917537689209,
0.0370924174785614,
0.3391435146331787,
0.12596479058265686,
0.1663530319929123,
-0.03849207982420921,
-0.23755015432834625,
-0.03250119835138321,
0.2613563537597656,
-0.4619375169277191,
-0.1443137377500534,
-0.13483908772468567,
-0.0458180233836174,
0.46087175607681274,
0.12760967016220093,
-0.00036978162825107574,
0.19959890842437744,
0.20017093420028687,
-0.0017004497349262238,
-0.20890572667121887,
-0.3422905504703522,
-0.311621755361557,
0.05226108431816101,
0.05388011038303375,
0.20888419449329376,
0.15134042501449585,
-0.138846755027771,
0.18148863315582275,
-0.3803017735481262,
0.13573767244815826,
-0.1391916126012802,
-0.1668485552072525,
0.3987882137298584,
-0.2156239002943039,
0.4115796685218811,
-0.09300722181797028,
-0.15413182973861694,
0.021098926663398743,
0.24264806509017944,
0.03621140122413635,
-0.07639220356941223,
0.02332399971783161,
-0.09440338611602783,
0.15072885155677795,
0.20315533876419067,
0.17408466339111328,
0.17674791812896729,
0.12572193145751953,
0.25381729006767273,
0.21547552943229675,
0.11996649205684662,
0.22611701488494873,
-0.006514355540275574,
-0.11902060359716415,
-0.11538403481245041,
0.16238388419151306,
0.3639621138572693,
-0.2695581316947937,
-0.10944891721010208,
-0.18999536335468292,
-0.3089712858200073,
0.19340074062347412,
0.24680361151695251,
0.15799282491207123,
-0.06538520008325577,
0.08840585500001907,
-0.1375381052494049,
-0.08796877413988113,
-0.34784460067749023,
0.1863395869731903,
0.1399739384651184,
-0.09002356231212616,
0.12396152317523956,
-0.19457702338695526,
-0.024020429700613022,
0.20981672406196594,
0.1813306212425232,
-0.13639762997627258,
0.33505260944366455,
0.17225652933120728,
0.3454720377922058,
-0.1401737630367279,
0.01125827431678772,
0.37536752223968506,
0.22065991163253784,
0.3333483934402466,
0.2926027476787567,
0.03763705492019653,
0.030217859894037247,
0.3496355712413788,
0.2469121515750885,
-0.19017715752124786,
0.334648460149765,
-0.10677192360162735,
-0.2746526598930359,
-0.0019897185266017914,
-0.29649245738983154,
-0.2400924414396286,
0.13277891278266907,
0.11898736655712128,
0.06317336857318878,
0.08431465178728104,
0.126461461186409,
0.18821606040000916,
-0.24655567109584808,
0.07111969590187073,
0.0024900324642658234,
0.1469147801399231,
-0.25754624605178833,
-0.003994284197688103,
0.38816511631011963,
-0.015042491257190704,
-0.2881394028663635,
0.16520211100578308,
0.21570824086666107,
0.03870030865073204,
-0.11212660372257233,
0.22154363989830017,
-0.05798754468560219,
0.09887680411338806,
-0.14751702547073364,
0.08604857325553894,
0.19665230810642242,
0.20502252876758575,
0.12412884831428528,
0.24337053298950195,
-0.3616890609264374,
0.08294132351875305,
0.2663656771183014,
-0.0936805009841919,
0.007011685520410538,
0.17932316660881042,
0.04999341443181038,
0.3326556384563446,
-0.24428126215934753,
0.13019295036792755,
-0.40373694896698,
-0.09277305752038956,
0.3473381996154785,
0.10631486028432846,
-0.03241151571273804,
-0.13381177186965942,
0.16362346708774567,
0.3008716106414795,
0.28633975982666016,
0.23913222551345825,
0.17174047231674194,
0.05511299520730972,
-0.14677877724170685,
-0.3187093734741211,
0.07492591440677643,
0.13803181052207947,
0.006469568237662315,
0.03533816337585449,
0.332395076751709,
0.2515554130077362,
0.4170932173728943,
-0.02929675579071045,
-0.19629840552806854,
-0.017417490482330322,
0.1513735055923462,
-0.033827971667051315,
0.12291662395000458,
0.14771246910095215,
0.15130233764648438,
0.050927914679050446,
-0.11688560247421265,
-0.25032997131347656,
-0.07869876176118851,
0.18066585063934326,
-0.24515782296657562,
-0.02482355386018753,
-0.15878131985664368,
-0.3033142685890198,
0.27249446511268616,
-0.08480143547058105,
0.20592063665390015,
-0.3882676661014557,
-0.07118688523769379,
0.10931968688964844,
-0.28377947211265564,
-0.018401987850666046,
0.35393574833869934,
-0.04922940954566002,
0.21335968375205994,
-0.06021823734045029,
0.01249808631837368,
0.05512632057070732,
-0.11497673392295837,
0.09854939579963684,
0.16418996453285217,
-0.15214811265468597,
-0.010429023765027523,
0.4137113094329834,
-0.229392409324646,
-0.03545625880360603,
0.688697338104248,
0.07792534679174423,
-0.05946824699640274,
-0.023343876004219055,
-0.18270325660705566,
-0.08375388383865356,
-0.13092967867851257,
-0.27041199803352356,
0.05650410056114197,
0.03468529134988785,
0.10692726820707321,
-0.04410196840763092,
-0.4928300678730011,
0.07255952805280685,
0.24906328320503235,
0.4061499238014221,
-0.07929712533950806,
0.20875410735607147,
0.1567540168762207,
-0.15365220606327057,
-0.05040500685572624,
-0.08005587756633759,
0.043657805770635605,
-0.16642458736896515,
-0.020954027771949768,
-0.3597683906555176
] |
https://github.com/huggingface/datasets/issues/827 | [GEM] MultiWOZ dialogue dataset | Hi @yjernite can I help in adding this dataset?
I am excited about this because this will be my first contribution to the datasets library as well as to hugginface. | ## Adding a Dataset
- **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz)
- **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side.
- **Paper:** https://arxiv.org/pdf/2007.12720.pdf
- **Data:** https://github.com/budzianowski/multiwoz
- **Motivation:** Will likely be part of the GEM shared task
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 30 | [GEM] MultiWOZ dialogue dataset
## Adding a Dataset
- **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz)
- **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side.
- **Paper:** https://arxiv.org/pdf/2007.12720.pdf
- **Data:** https://github.com/budzianowski/multiwoz
- **Motivation:** Will likely be part of the GEM shared task
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @yjernite can I help in adding this dataset?
I am excited about this because this will be my first contribution to the datasets library as well as to hugginface. | [
-0.04955967515707016,
-0.12617576122283936,
0.04844265058636665,
0.5216314792633057,
0.028047174215316772,
0.24420469999313354,
0.22579006850719452,
-0.12951363623142242,
-0.07643049955368042,
-0.03523041307926178,
-0.3937835097312927,
0.028376024216413498,
-0.41572877764701843,
0.3712359666824341,
0.2753162384033203,
-0.48786500096321106,
-0.040131740272045135,
-0.1847285032272339,
-0.057380884885787964,
-0.06621602922677994,
0.054446153342723846,
0.26526424288749695,
-0.08374946564435959,
-0.01416517049074173,
-0.708276629447937,
-0.25764647126197815,
-0.24596351385116577,
0.5358041524887085,
-0.059367090463638306,
-0.21356524527072906,
-0.10258915275335312,
-0.025392156094312668,
-0.10535982996225357,
0.47877076268196106,
-0.00011666065256576985,
-0.2765089273452759,
0.24153703451156616,
-0.07049521058797836,
-0.1584603190422058,
-0.1901417225599289,
-0.3039591908454895,
-0.10108901560306549,
-0.15780045092105865,
0.04852653294801712,
-0.06728506088256836,
0.11104016751050949,
-0.2357475906610489,
0.07208044826984406,
0.11612874269485474,
0.21362042427062988,
0.14362461864948273,
0.1713850051164627,
0.2292737513780594,
-0.1413152515888214,
-0.0795614942908287,
0.1754792183637619,
-0.13600802421569824,
0.12175405025482178,
0.16606789827346802,
0.12985415756702423,
0.1339406967163086,
0.2862461507320404,
-0.286877304315567,
-0.33875834941864014,
0.037869956344366074,
-0.15657328069210052,
-0.11373875290155411,
-0.2021169513463974,
-0.12083400040864944,
0.6377721428871155,
0.7825872898101807,
-0.04603385925292969,
-0.45875808596611023,
-0.18238896131515503,
0.16621831059455872,
0.18907086551189423,
-0.015109159052371979,
0.20748110115528107,
-0.1902398318052292,
0.08808091282844543,
-0.49979570508003235,
-0.30240166187286377,
-0.111786387860775,
0.15204894542694092,
0.16944310069084167,
0.48941367864608765,
-0.004837316460907459,
0.14982064068317413,
0.040699176490306854,
-0.012935977429151535,
-0.6592088937759399,
0.0461835078895092,
-0.1632288098335266,
-0.07825648039579391,
-0.5269983410835266,
-0.23132121562957764,
0.005497455596923828,
0.2764655649662018,
0.2792701721191406,
0.24186450242996216,
0.1933353692293167,
0.03438610956072807,
-0.4858173429965973,
-0.0963607206940651,
0.35654523968696594,
-0.03575517609715462,
0.23550918698310852,
-0.4836921691894531,
-0.07681246101856232,
-0.3012523651123047,
0.23713186383247375,
0.12385820597410202,
-0.2489853799343109,
0.056861910969018936,
-0.04543554037809372,
-0.19125917553901672,
0.07785438001155853,
0.00987548753619194,
0.10153835266828537,
-0.004685662686824799,
-0.18816539645195007,
-0.19040070474147797,
0.39876073598861694,
0.3084571361541748,
-0.21767854690551758,
0.031023843213915825,
-0.24667564034461975,
0.5173609852790833,
0.21409651637077332,
-0.2750447392463684,
-0.10066282749176025,
0.20847053825855255,
-0.018594250082969666,
0.25779932737350464,
0.04165275767445564,
-0.13724584877490997,
0.3089645802974701,
0.07684505730867386,
0.4037558436393738,
0.02513846755027771,
0.0357508659362793,
0.07236821949481964,
0.030919987708330154,
0.061165399849414825,
0.026569556444883347,
0.20061041414737701,
0.12791882455348969,
0.13859450817108154,
-0.025920536369085312,
0.05559529736638069,
-0.05417056381702423,
-0.42408624291419983,
-0.821995735168457,
0.04196285083889961,
-0.3433515429496765,
-0.452216237783432,
-0.09663143008947372,
0.2801697850227356,
0.07589520514011383,
-0.11191897094249725,
0.08984876424074173,
0.19271641969680786,
-0.20061326026916504,
-0.2603943347930908,
0.11810480803251266,
0.46603578329086304,
-0.07393603026866913,
0.01999124139547348,
-0.005179047118872404,
0.04893230274319649,
0.15146712958812714,
0.22659505903720856,
-0.20792201161384583,
0.0020904764533042908,
0.03704765439033508,
0.5209838151931763,
0.0974760353565216,
-0.13544480502605438,
-0.009141776710748672,
0.12619392573833466,
-0.15794424712657928,
0.45584240555763245,
0.22698357701301575,
0.4218326807022095,
0.0401255264878273,
-0.0735236406326294,
0.23793555796146393,
0.21384766697883606,
0.08579731732606888,
0.00934138335287571,
-0.12745004892349243,
-0.21497230231761932,
0.35452890396118164,
0.14506420493125916,
-0.14849762618541718,
-0.2715403437614441,
0.021877184510231018,
-0.05330454185605049,
0.39941880106925964,
-0.07280880212783813,
0.21406735479831696,
0.18874412775039673,
-0.04590143635869026,
0.32787346839904785,
0.006484706420451403,
-0.35883525013923645,
-0.04015437513589859,
0.04632481932640076,
0.40601736307144165,
0.3642265200614929,
0.21335935592651367,
-0.09134528040885925,
-0.05938011035323143,
0.020901156589388847,
-0.1971767395734787,
-0.30144327878952026,
-0.020997852087020874,
0.3040893077850342,
0.019214622676372528,
-0.21103620529174805,
-0.3215514123439789,
0.6143257021903992,
0.23473073542118073,
-0.023854194208979607,
-0.38859593868255615,
0.15351596474647522,
0.06428338587284088,
-0.09546602517366409,
-0.049388229846954346,
0.46579909324645996,
-0.10185710340738297,
-0.10154309868812561,
0.02563551813364029,
0.3633406460285187,
-0.3810468018054962,
-0.019166916608810425,
0.25273826718330383,
0.21156015992164612,
0.14555466175079346,
-0.037694498896598816,
0.38085365295410156,
-0.3574175536632538,
0.09353642165660858,
-0.1666320264339447,
-0.031677424907684326,
0.023786433041095734,
0.06880717724561691,
-0.11386056989431381,
-0.3425866961479187,
0.33346182107925415,
0.13235332071781158,
-0.060071442276239395,
-0.23784400522708893,
-0.05019912123680115,
0.28431302309036255,
-0.39680925011634827,
-0.20879310369491577,
0.0861886516213417,
-0.5717892646789551,
0.25532734394073486,
0.2885805368423462,
-0.2681143879890442,
0.3120870590209961,
-0.007546722888946533,
-0.27822667360305786,
-0.2280254364013672,
-0.06771939247846603,
-0.23924335837364197,
0.13109084963798523,
0.3073767125606537,
0.026866573840379715,
-0.226240873336792,
0.007741445209830999,
0.046137772500514984,
0.11795815825462341,
0.1477181762456894,
0.1421055793762207,
0.2155930995941162,
0.1317404955625534,
0.19539842009544373,
-0.06003565341234207,
-0.18588335812091827,
0.09173432737588882,
0.06127078831195831,
-0.22027073800563812,
-0.37770992517471313,
-0.23157618939876556,
0.0206584669649601,
-0.003179526887834072,
-0.8598551750183105,
-0.37761709094047546,
0.02108641527593136,
0.18540816009044647,
-0.20863667130470276,
0.1864880621433258,
0.14099746942520142,
0.17103634774684906,
0.09055308997631073,
-0.16137541830539703,
-0.0967269241809845,
-0.24730418622493744,
-0.47410309314727783,
0.059915654361248016,
0.07063458859920502,
0.12548622488975525,
-0.07127262651920319,
0.3366226255893707,
0.14794225990772247,
0.1586923748254776,
-0.12485045939683914,
-0.3355081081390381,
-0.04752345383167267,
-0.32140374183654785,
0.36329758167266846,
0.18610480427742004,
0.0045006126165390015,
0.1736132800579071,
-0.5391616821289062,
0.09401898086071014,
0.06364060938358307,
-0.10325255990028381,
0.07961028814315796,
-0.05865510180592537,
-0.3287821114063263,
0.034388016909360886,
-0.13300833106040955,
-0.20422498881816864,
-0.44641411304473877,
0.29322975873947144,
-0.08222532272338867,
0.06810764223337173,
0.1388569176197052,
-0.21830889582633972,
0.3125796318054199,
-0.22824139893054962,
0.2930271327495575,
-0.2374429851770401,
-0.43911001086235046,
0.3867270052433014,
-0.1543562263250351,
-0.15795409679412842,
-0.04082270339131355,
-0.25972220301628113,
0.2749284505844116,
-0.20689241588115692,
-0.12639126181602478,
-0.23679399490356445,
-0.11961498856544495,
-0.12238134443759918,
0.1548679769039154,
0.007425360381603241,
0.3379831910133362,
0.15043793618679047,
-0.1130659431219101,
-0.07591135054826736,
-0.4116903841495514,
0.10021044313907623,
0.47978144884109497,
0.32204777002334595,
-0.022416584193706512,
0.015180632472038269,
0.027829837054014206,
0.42630845308303833,
0.25951123237609863,
0.19404691457748413,
0.14560702443122864,
-0.04165961593389511,
-0.05033818259835243,
-0.12766021490097046,
-0.602187991142273,
0.3620354235172272,
-0.10722768306732178,
0.18035000562667847,
0.3086300492286682,
0.35063961148262024,
0.029750941321253777,
0.005174949765205383,
-0.3613120913505554,
-0.4042975902557373,
-0.24869482219219208,
0.03083786927163601,
-0.13754470646381378,
-0.1656925082206726,
-0.30352869629859924,
-0.3996589779853821,
-0.2994043827056885,
-0.24511995911598206,
0.2551678717136383,
0.4556032419204712,
-0.18718552589416504,
0.06742202490568161,
-0.05540574714541435,
0.20807959139347076,
-0.11675769835710526,
0.2883276641368866,
0.2834436297416687,
-0.2426147758960724,
-0.32764381170272827,
-0.006807809695601463,
0.10106430947780609,
0.2707679867744446,
0.8676865100860596,
-0.3521385192871094,
-0.4406840205192566,
-0.018991922959685326,
-0.07738392055034637,
-0.11042018234729767,
0.20622174441814423,
0.06789307296276093,
0.21545778214931488,
0.2241029441356659,
0.4616440534591675,
-0.08059926331043243,
-0.04212695360183716,
0.49252137541770935,
0.24513228237628937,
0.04028240218758583,
-0.09428780525922775,
0.11541193723678589,
-0.2007339596748352,
-0.4446721076965332,
0.048264387995004654,
-0.12066244333982468,
0.22483225166797638,
0.41229650378227234,
-0.25884926319122314,
0.1395415961742401,
0.24765819311141968,
0.46592622995376587,
-0.28569263219833374,
-0.0763510912656784,
0.4765968918800354,
0.12371917068958282,
0.1571487933397293,
-0.006901063024997711,
-0.0467526838183403,
0.2670633792877197,
0.3491561710834503,
-0.007356919348239899,
-0.28861120343208313,
-0.36716726422309875,
0.6399362087249756,
0.24582861363887787,
0.25992345809936523,
-0.004392705857753754,
-0.049690768122673035,
0.2666395306587219,
-0.07027307152748108,
0.09053635597229004,
-0.03801094740629196,
0.21933917701244354,
-0.3569740951061249,
-0.2911619544029236,
0.2542301416397095,
-0.056671805679798126,
-0.1089182049036026,
0.34812864661216736,
0.13936510682106018,
0.09175299108028412,
0.05751229077577591,
-0.07080888003110886,
1.2208232879638672,
-0.12197515368461609,
0.2385091632604599,
0.18320530652999878,
0.11858746409416199,
0.3062671720981598,
-0.3133833408355713,
0.043400585651397705,
-0.08879239857196808,
0.49186670780181885,
-0.10586007684469223,
0.05004148557782173,
0.07738282531499863,
0.06891688704490662,
-0.27230918407440186,
-0.1200607419013977,
-0.12556959688663483,
-0.3180554509162903,
-0.17284582555294037,
0.17630797624588013,
0.16790929436683655,
-0.4396863281726837,
0.19480380415916443,
0.09140484035015106,
0.02681400068104267,
0.09911677986383438,
0.19320213794708252,
-0.47064530849456787,
-0.24781973659992218,
-0.006186764687299728,
-0.5756502151489258,
-0.10301373153924942,
-0.1777900606393814,
-0.07515853643417358,
0.15107643604278564,
-0.4125763177871704,
0.2650753855705261,
0.6566467881202698,
-0.045836105942726135,
-0.036484744399785995,
-0.19065438210964203,
-0.02705947682261467,
-0.30976489186286926,
-0.1800449937582016,
-0.02907162718474865,
0.014604971744120121,
0.5625344514846802,
-0.085646852850914,
-0.46163037419319153,
0.19136852025985718,
-0.04054572433233261,
-0.1574317216873169,
-0.21438106894493103,
0.09393523633480072,
0.35139936208724976,
-0.12341353297233582,
0.08407333493232727,
0.4758816957473755,
0.16323478519916534,
-0.18820220232009888,
0.0587330162525177,
0.37526780366897583,
-0.27262046933174133,
0.10034440457820892,
-0.08244253695011139,
-0.20022037625312805,
-0.19213725626468658,
0.10645250976085663,
-0.0451689213514328,
0.06491075456142426,
0.3358595371246338,
0.20783929526805878,
0.004655703902244568,
-0.16522809863090515,
-0.11716826260089874,
0.012607495300471783,
-0.029769696295261383,
-0.21180863678455353,
0.5123295783996582,
-0.1869952529668808,
-0.04498794674873352,
0.01609151065349579,
0.1603279411792755,
0.1677423119544983,
-0.08149145543575287,
-0.3418285548686981,
-0.17187844216823578,
0.15770995616912842,
0.015029756352305412,
0.035760387778282166,
-0.2085578441619873,
0.11394532024860382,
0.2710705101490021,
0.46995875239372253,
-0.27575501799583435,
0.01677006669342518,
-0.28065726161003113,
-0.0290529727935791,
0.5896807909011841,
-0.23007339239120483,
0.1488165408372879,
-0.07899144291877747,
0.0771973505616188,
-0.42007172107696533,
-0.1101442202925682,
-0.08854074776172638,
-0.36101922392845154,
0.16844971477985382,
0.07487261295318604,
-0.15407681465148926,
0.2706820070743561,
0.015806343406438828,
-0.08948050439357758,
-0.22507232427597046,
0.33200564980506897,
0.23769888281822205,
-0.07032234966754913,
0.046286411583423615,
-0.24844710528850555,
-0.019693419337272644,
-0.3048241138458252,
0.13482317328453064,
0.1987127810716629,
0.07256424427032471,
-0.03848192095756531,
-0.07032033801078796,
0.04900265857577324,
-0.2940417528152466,
0.21466241776943207,
0.2510721683502197,
0.1416674554347992,
-0.05680292099714279,
-0.033081889152526855,
0.14401015639305115,
-0.025385936722159386,
0.3045448958873749,
0.3379099667072296,
-0.29671019315719604,
0.11204732954502106,
0.28421539068222046,
0.07079566270112991,
0.04391191154718399,
-0.20232895016670227,
-0.14327917993068695,
0.1610293984413147,
-0.24417470395565033,
0.05296577885746956,
0.1319926232099533,
-0.051185816526412964,
0.13435746729373932,
0.008550725877285004,
-0.33713242411613464,
0.09456882625818253,
-0.17361663281917572,
-0.05588776245713234,
0.041296087205410004,
-0.4468115270137787,
-0.13861589133739471,
0.31727516651153564,
0.24802690744400024,
0.2894785404205322,
0.16978618502616882,
0.01318977028131485,
0.23502495884895325,
0.014064954593777657,
0.08100844919681549,
0.022241801023483276,
-0.13086284697055817,
0.2727144956588745,
-0.062115028500556946,
0.13890159130096436,
-0.09646669775247574,
-0.012795090675354004,
0.84894859790802,
-0.05316569283604622,
0.09395446628332138,
-0.18235339224338531,
0.40933945775032043,
-0.038564883172512054,
0.019860850647091866,
0.18632234632968903,
-0.1902029812335968,
-0.2819327116012573,
-0.18897384405136108,
0.030458267778158188,
-0.19395263493061066,
0.5753382444381714,
0.10229545086622238,
0.1599070280790329,
-0.5247253775596619,
-0.11948602646589279,
0.06229763478040695,
-0.21868905425071716,
-0.3328734040260315,
0.1273476481437683,
0.4176216721534729,
-0.23353904485702515,
0.2680818438529968,
0.2843908369541168,
0.5901280045509338,
0.05816657096147537,
0.05921921506524086,
0.32453614473342896,
-0.25793591141700745,
-0.0714358538389206,
0.040238164365291595,
0.36000964045524597,
0.19420111179351807,
0.12069909274578094,
0.13784585893154144,
-0.005047488026320934,
-0.1075204610824585,
0.27803879976272583,
-0.09807728230953217,
-0.06319025158882141,
-0.3260616958141327,
0.27016738057136536,
-0.17114369571208954,
-0.32032859325408936,
-0.28235939145088196,
0.009438037872314453,
-0.4559192359447479,
-0.4043712019920349,
0.3326563537120819,
0.02350037544965744,
-0.2665003836154938,
-0.23152819275856018,
0.05257783830165863,
0.0410168394446373,
0.4060002267360687,
0.34727832674980164,
0.17927491664886475,
0.07046468555927277,
0.29598814249038696,
-0.6454319953918457,
-0.15854313969612122,
0.3647210896015167,
-0.0800442174077034,
-0.01597313955426216,
-0.1301049143075943,
0.5115670561790466,
0.19025185704231262,
0.08101436495780945,
-0.3565247356891632,
-0.07543593645095825,
0.07003220170736313,
-0.17610511183738708,
0.441886305809021,
0.4003625512123108,
0.17969606816768646,
0.2914292514324188,
0.23232218623161316,
0.027497008442878723,
-0.013661826960742474,
-0.06434036791324615,
-0.09573344886302948,
-0.10599371045827866,
0.00853419303894043,
-0.398272305727005,
0.2332935780286789,
-0.13172109425067902,
0.6390529870986938,
-0.13946443796157837,
0.10828619450330734,
-0.09358131885528564,
-0.001177468802779913,
-0.1551579385995865,
0.11792179197072983,
0.04441564530134201,
0.6158030033111572,
-0.151068776845932,
0.06702286750078201,
0.012199154123663902,
-0.1279338002204895,
-0.2693745493888855,
0.3373311460018158,
0.012192899361252785,
0.14586114883422852,
-0.09135060757398605,
-0.11882763355970383,
0.30918702483177185,
0.26245856285095215,
-0.05213071405887604,
0.10513440519571304,
0.01855771243572235,
-0.07952985912561417,
0.5583523511886597,
-0.07033846527338028,
-0.2576853930950165,
-0.41206997632980347,
0.19722850620746613,
0.09154878556728363,
-0.05192979425191879,
-0.5948373079299927,
0.028434962034225464,
0.1802099645137787,
0.30532240867614746,
-0.22468848526477814,
0.40319713950157166,
0.12770837545394897,
-0.18630175292491913,
-0.002488367259502411,
0.04751048982143402,
-0.03975284844636917,
0.0446498766541481,
0.21816250681877136,
-0.0562603697180748
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;) | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 72 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;) | [
-0.630070686340332,
0.205890953540802,
-0.010249797254800797,
0.13883280754089355,
0.19344674050807953,
-0.17377158999443054,
0.5314207673072815,
0.08316385746002197,
0.35007357597351074,
0.2367117553949356,
0.130647674202919,
-0.06461665779352188,
-0.11494860798120499,
0.4892580509185791,
-0.06132413446903229,
-0.03587714582681656,
-0.16644763946533203,
-0.037064388394355774,
-0.2075221836566925,
0.16657637059688568,
-0.19222387671470642,
-0.163462832570076,
-0.5264272093772888,
-0.1563565731048584,
-0.2378029078245163,
-0.2821217477321625,
-0.05079570412635803,
0.14344334602355957,
-0.06754949688911438,
-0.32444196939468384,
0.2889086604118347,
0.13823546469211578,
0.22350238263607025,
0.4449354112148285,
-0.00010756037954706699,
0.04597119987010956,
0.08171234279870987,
0.04249940067529678,
-0.21935953199863434,
-0.3220709562301636,
-0.27401766180992126,
-0.5323529839515686,
0.17921380698680878,
-0.3614761531352997,
-0.22613948583602905,
-0.10602015256881714,
-0.0022873450070619583,
-0.48437756299972534,
0.35584694147109985,
0.28958189487457275,
0.19220755994319916,
0.6198387145996094,
-0.22992342710494995,
-0.24319827556610107,
-0.167720228433609,
-0.16562102735042572,
-0.18673861026763916,
0.3589767813682556,
0.16425013542175293,
-0.0384121835231781,
-0.07064539939165115,
0.09212030470371246,
-0.10443466901779175,
0.09724478423595428,
0.434920996427536,
0.09935693442821503,
-0.14205950498580933,
-0.07171474397182465,
0.17416802048683167,
0.5084941387176514,
0.5811342000961304,
-0.23777610063552856,
-0.2352236658334732,
-0.2079225778579712,
-0.11210134625434875,
-0.47876793146133423,
0.0884915217757225,
0.17630097270011902,
0.04405832290649414,
0.3034043312072754,
-0.4777003526687622,
-0.2545405626296997,
-0.32633596658706665,
0.1942959576845169,
-0.40162110328674316,
0.2013925313949585,
-0.1917240470647812,
0.1068928986787796,
-0.18274565041065216,
0.15339036285877228,
-0.007584043778479099,
-0.2337023913860321,
0.15502949059009552,
-0.13029219210147858,
-0.3167186379432678,
-0.014024466276168823,
0.082517109811306,
0.2733769118785858,
0.039420098066329956,
0.1726534366607666,
0.16442988812923431,
0.029657313600182533,
0.07031024247407913,
0.038814373314380646,
0.37895357608795166,
0.21983806788921356,
-0.12092240899801254,
-0.3116757273674011,
0.6292069554328918,
0.006875099614262581,
0.029025133699178696,
-0.242212176322937,
0.35724154114723206,
-0.3322310447692871,
0.12502725422382355,
-0.00047626905143260956,
0.3401120901107788,
-0.09635823965072632,
-0.12813064455986023,
0.06240050494670868,
0.18315643072128296,
-0.15755857527256012,
0.08854063600301743,
0.21606454253196716,
-0.261776328086853,
0.030571922659873962,
0.1420488953590393,
0.41521334648132324,
-0.2527971863746643,
-0.30338940024375916,
-0.07049568742513657,
-0.17856934666633606,
-0.0896870344877243,
0.13402698934078217,
0.31636711955070496,
0.25986745953559875,
0.025487298145890236,
-0.03438480943441391,
0.17149440944194794,
-0.013372760266065598,
0.4245752990245819,
-0.09018810093402863,
0.13615745306015015,
0.30183145403862,
0.11570771038532257,
-0.060055531561374664,
0.059158533811569214,
-0.11812622845172882,
0.05986776202917099,
0.012717004865407944,
-0.11565928906202316,
-0.3404824733734131,
0.27084624767303467,
0.2129340022802353,
-0.5129677653312683,
-0.10994613170623779,
-0.3253319561481476,
0.0677998885512352,
-0.3322138488292694,
-0.11214582622051239,
-0.003190465271472931,
-0.15885134041309357,
-0.3020486831665039,
-0.21838758885860443,
0.2850364148616791,
0.6506158709526062,
-0.5364611148834229,
0.15313519537448883,
-0.03369024023413658,
-0.1371338963508606,
-0.14964261651039124,
0.09439265727996826,
-0.3362305760383606,
0.665483295917511,
-0.011888975277543068,
-0.3396769165992737,
0.45337334275245667,
-0.4085681438446045,
-0.25886070728302,
0.2776842713356018,
-0.32866114377975464,
-0.0729338526725769,
-0.06540492922067642,
0.20602701604366302,
0.42113739252090454,
0.06577737629413605,
0.09295511245727539,
0.1874692142009735,
-0.0519748255610466,
-0.024404797703027725,
-0.19456680119037628,
-0.26329147815704346,
0.29119521379470825,
0.2045404464006424,
0.33464136719703674,
0.06694182753562927,
0.30812105536460876,
-0.17368006706237793,
0.04351724684238434,
-0.18464858829975128,
0.2528408467769623,
0.015408176928758621,
0.17284637689590454,
-0.02177482098340988,
-0.11278059333562851,
-0.17365652322769165,
-0.6063698530197144,
0.3064253330230713,
0.023170199245214462,
0.09688100218772888,
-0.1869291216135025,
-0.11879605799913406,
0.024095918983221054,
-0.19196271896362305,
-0.09548859298229218,
0.05047786235809326,
0.10247689485549927,
-0.22549092769622803,
0.08084948360919952,
0.12836779654026031,
-0.2564835846424103,
0.20296704769134521,
-0.11895698308944702,
-0.009911012835800648,
0.04384426772594452,
0.2811490595340729,
-0.04895872622728348,
0.029021743685007095,
0.03810378909111023,
0.0005988627672195435,
0.02143917977809906,
-0.2149716168642044,
-0.017181195318698883,
0.48937612771987915,
0.000606222078204155,
0.139884352684021,
0.24352815747261047,
0.47668999433517456,
0.38646000623703003,
-0.1545751988887787,
0.5698555707931519,
-0.020958732813596725,
0.2697752118110657,
-0.2345481812953949,
-0.25906941294670105,
0.5913995504379272,
-0.19499751925468445,
0.21102026104927063,
0.08512867987155914,
-0.00375562347471714,
0.14914201200008392,
-0.016528353095054626,
-0.46469271183013916,
-0.07183386385440826,
-0.007502224296331406,
0.001672087237238884,
0.1255863904953003,
-0.10014156997203827,
-0.30273905396461487,
0.07621195912361145,
0.33095505833625793,
0.08893419802188873,
0.2562536895275116,
-0.18486204743385315,
-0.08068696409463882,
0.09444492310285568,
-0.014334091916680336,
0.02077322080731392,
0.538850724697113,
0.1315513402223587,
0.048894673585891724,
0.2817276120185852,
-0.015803415328264236,
-0.3472718298435211,
0.12460853904485703,
0.21989475190639496,
-0.022870870307087898,
0.0908929631114006,
0.031137092038989067,
-0.029393021017313004,
-0.12876862287521362,
0.026460926979780197,
0.012082235887646675,
-0.02860555611550808,
-0.2554803490638733,
0.24541990458965302,
-0.39867472648620605,
0.03958769142627716,
-0.056514352560043335,
0.09324273467063904,
-0.37123236060142517,
-0.23911119997501373,
0.04685274511575699,
0.13364997506141663,
-0.2514071464538574,
0.1489570140838623,
-0.16662098467350006,
0.5206561088562012,
-0.24187617003917694,
-0.14735035598278046,
0.1968582570552826,
-0.5571703314781189,
-0.11493190377950668,
0.08467037975788116,
0.3601268529891968,
0.2178107500076294,
0.4645654559135437,
-0.048988670110702515,
-0.08494578301906586,
-0.3521951138973236,
-0.1436621993780136,
0.025949373841285706,
-0.03724797070026398,
0.30275285243988037,
0.04372137784957886,
0.21295879781246185,
-0.030940819531679153,
0.21634027361869812,
0.3268575370311737,
-0.34768301248550415,
0.26100966334342957,
0.01459696888923645,
0.012082371860742569,
-0.14285926520824432,
-0.32492029666900635,
-0.5815702080726624,
-0.5232006907463074,
-0.335482120513916,
0.15991713106632233,
0.005976073443889618,
-0.060207366943359375,
0.04779266566038132,
0.0959358885884285,
0.04866233840584755,
0.06341414153575897,
0.05416422337293625,
-0.15722106397151947,
-0.4133060872554779,
0.1801297664642334,
-0.17369776964187622,
-0.5983690619468689,
0.40908247232437134,
0.14456483721733093,
0.1866307109594345,
0.44468116760253906,
-0.43297845125198364,
-0.17863349616527557,
0.09994788467884064,
0.4149427115917206,
0.2194604128599167,
0.36986806988716125,
0.4159148335456848,
-0.026358911767601967,
-0.004490211606025696,
-0.1017860546708107,
0.1604263335466385,
0.21315458416938782,
-0.05015924572944641,
-0.07273084670305252,
0.1946498155593872,
0.1170220822095871,
-0.09093013405799866,
0.549308180809021,
-0.05984310060739517,
0.06260450929403305,
0.22847434878349304,
-0.11739643663167953,
0.6396970152854919,
-0.16416135430335999,
-0.08310047537088394,
0.13868863880634308,
-0.06559489667415619,
-0.23004212975502014,
0.259974867105484,
-0.0657806396484375,
0.040643904358148575,
-0.6198846101760864,
0.0020192526280879974,
-0.3696753680706024,
-0.4392198622226715,
0.09879688173532486,
0.26682180166244507,
0.4354862868785858,
0.21883150935173035,
0.2344520390033722,
-0.20261965692043304,
-0.14014294743537903,
-0.043229326605796814,
0.295032799243927,
0.11437768489122391,
-0.009512155316770077,
-0.16620077192783356,
0.07182272523641586,
-0.3588618338108063,
0.31795018911361694,
-0.13878080248832703,
0.3281266391277313,
-0.04747677594423294,
-0.01832100749015808,
-0.06091095507144928,
-0.04837553948163986,
0.3537321388721466,
-0.42965593934059143,
0.008043337613344193,
0.2310296595096588,
-0.08944161236286163,
-0.25905030965805054,
0.048131559044122696,
-0.30235522985458374,
-0.10707206279039383,
0.12329423427581787,
0.23126554489135742,
-0.009061746299266815,
-0.2890510559082031,
-0.093575119972229,
0.4394933581352234,
-0.33069175481796265,
-0.1491357833147049,
-0.13003882765769958,
-0.0264645516872406,
-0.2965608537197113,
0.1153249442577362,
-0.11981149017810822,
-0.017298143357038498,
-0.23137733340263367,
0.09640917181968689,
-0.1704922616481781,
0.16864702105522156,
-0.05812464654445648,
0.06910881400108337,
0.06910014152526855,
-0.23439545929431915,
0.2624780833721161,
0.25589051842689514,
0.15092520415782928,
0.5121372938156128,
0.24539238214492798,
-0.055690374225378036,
-0.08110785484313965,
0.15705716609954834,
-0.07040684670209885,
0.41123464703559875,
0.49236032366752625,
-0.11256775259971619,
-0.17653515934944153,
0.24346590042114258,
0.25880658626556396,
-0.5872603058815002,
-0.09392049163579941,
0.08925697952508926,
0.1319001466035843,
-0.1381252110004425,
-0.28073349595069885,
0.2145858108997345,
0.14363527297973633,
-0.04983413964509964,
-0.02802770584821701,
0.27524980902671814,
-0.24845357239246368,
0.045635346323251724,
-0.059779249131679535,
0.7471334338188171,
-0.05035465210676193,
0.2299506813287735,
0.1710411012172699,
0.13450740277767181,
0.38205400109291077,
-0.3570560812950134,
0.02425755374133587,
0.008344095200300217,
-0.26090675592422485,
-0.11216627806425095,
-0.15179747343063354,
0.3989059627056122,
0.11965177953243256,
-0.1589445173740387,
0.5752493143081665,
-0.04881340637803078,
0.37875691056251526,
-0.30569154024124146,
0.2353718876838684,
-0.06900174170732498,
-0.15093550086021423,
-0.2804447114467621,
0.1945442259311676,
0.08410467952489853,
0.13250571489334106,
-0.2965492904186249,
-0.1999385952949524,
0.0805012583732605,
0.10320556163787842,
0.01997426152229309,
-0.1605798900127411,
-0.09080343693494797,
0.07508901506662369,
-0.20808133482933044,
0.011015161871910095,
0.18451350927352905,
0.07235483080148697,
0.448883056640625,
0.23549659550189972,
-0.4055701196193695,
0.023927781730890274,
-0.47459322214126587,
0.16891475021839142,
-0.01476427260786295,
0.22578740119934082,
0.21196214854717255,
-0.20739814639091492,
-0.27589452266693115,
0.05849330127239227,
-0.09012725204229355,
0.05208177864551544,
0.42168092727661133,
-0.09121823310852051,
-0.11359542608261108,
-0.2078426331281662,
0.1400362104177475,
0.23370112478733063,
0.12709438800811768,
-0.11889638006687164,
0.1302800178527832,
0.17504438757896423,
0.11431718617677689,
0.4348137378692627,
-0.048992764204740524,
-0.1153586208820343,
-0.22522993385791779,
0.30773481726646423,
-0.1198248639702797,
-0.1528266966342926,
-0.08789950609207153,
0.27354100346565247,
-0.20318914949893951,
-0.33840522170066833,
0.19644871354103088,
0.046517059206962585,
0.044906213879585266,
0.2258601039648056,
0.4077037572860718,
0.41825687885284424,
-0.11939525604248047,
0.4594062864780426,
0.034866634756326675,
-0.17338240146636963,
-0.13168206810951233,
-0.33363184332847595,
-0.31154412031173706,
0.2858288884162903,
0.4760395288467407,
0.1319064348936081,
0.04295831173658371,
0.013514199294149876,
0.08008328825235367,
-0.16909824311733246,
-0.37567001581192017,
-0.008008689619600773,
-0.030188994482159615,
0.0805656760931015,
0.17344018816947937,
-0.16461017727851868,
0.3184395432472229,
-0.1392023116350174,
-0.0031448844820261,
-0.19642482697963715,
-0.4073614478111267,
-0.21969127655029297,
-0.00560164637863636,
0.21712273359298706,
0.07291337847709656,
-0.44103771448135376,
0.07734692841768265,
-0.5827117562294006,
-0.2432710826396942,
-0.1612299531698227,
0.2887277901172638,
0.4088554382324219,
-0.19862420856952667,
0.013257947750389576,
-0.032388243824243546,
0.389784038066864,
-0.19864331185817719,
0.13789606094360352,
0.08113107085227966,
0.2517085671424866,
-0.11562027782201767,
0.2089473009109497,
0.11446597427129745,
0.045565322041511536,
0.087654709815979,
0.0893077403306961,
0.16646648943424225,
0.16183778643608093,
0.41945701837539673,
-0.22427375614643097,
0.025539088994264603,
0.1512095332145691,
0.52651047706604,
0.25310447812080383,
-0.04037618264555931,
0.11892029643058777,
0.12351309508085251,
0.196049764752388,
-0.3990577161312103,
0.03411966934800148,
0.12564820051193237,
0.16306784749031067,
0.34315067529678345,
0.06985816359519958,
0.4620225727558136,
-0.040850408375263214,
-0.20965959131717682,
0.017808780074119568,
0.26000502705574036,
-0.2919554114341736,
0.21901394426822662,
0.023190103471279144,
0.013568948954343796,
0.14649970829486847,
0.020375419408082962,
0.393259733915329,
-0.060255102813243866,
0.24684825539588928,
-0.3339202404022217,
0.23506049811840057,
0.07476966083049774,
0.12309499084949493,
-0.19126063585281372,
-0.43488383293151855,
0.24127651751041412,
-0.07318452000617981,
-0.1855635643005371,
-0.27163374423980713,
-0.29432788491249084,
0.03324747458100319,
-0.39441248774528503,
-0.06907572597265244,
-0.18657279014587402,
0.09166576713323593,
-0.12385643273591995,
0.010789694264531136,
-0.3834720551967621,
-0.3246239125728607,
0.03489619493484497,
0.10556189715862274,
0.09627707302570343,
-0.04373270273208618,
-0.006471134722232819,
0.08199259638786316,
0.07595348358154297,
-0.10923966765403748,
0.16547971963882446,
-0.07992681115865707,
0.043488696217536926,
-0.03020702861249447,
-0.03926730901002884,
0.25232067704200745,
0.07016897201538086,
0.14733897149562836,
0.3580792248249054,
0.26183417439460754,
0.03868129104375839,
-0.2227417230606079,
0.20190368592739105,
-0.010304059833288193,
-0.11178584396839142,
-0.16314013302326202,
0.1722760647535324,
0.006302967667579651,
0.030221208930015564,
0.37163636088371277,
0.12454061210155487,
-0.11983153223991394,
0.3440980911254883,
-0.133833110332489,
-0.1742621809244156,
-0.45635226368904114,
0.2229207158088684,
0.17969845235347748,
-0.16422341763973236,
-0.10597963631153107,
-0.1711060106754303,
-0.0731738731265068,
0.055052533745765686,
0.4335773289203644,
0.011454007588326931,
0.15843594074249268,
-0.20451553165912628,
0.09112833440303802,
0.0008951239287853241,
0.5557247400283813,
0.166542649269104,
0.2724841237068176,
-0.2918747067451477,
0.04347236454486847,
-0.811744213104248,
-0.16830238699913025,
-0.21911904215812683,
0.41503745317459106,
-0.0744277611374855,
0.08999830484390259,
0.09127260744571686,
0.4602125287055969,
0.09219598770141602,
0.16430708765983582,
0.042702816426754,
-0.19500815868377686,
-0.3067817687988281,
-0.08964769542217255,
-0.1256374716758728,
-0.04479057341814041,
-0.04254406690597534,
-0.25630033016204834,
0.1380435675382614,
-0.35281410813331604,
-0.025443430989980698,
0.02787509188055992,
0.1930949091911316,
-0.15982243418693542,
-0.0996004194021225,
0.4608580470085144,
0.11999814957380295,
0.441441148519516,
0.19766324758529663,
-0.01575377769768238,
-0.19625473022460938,
0.07384680956602097,
-0.07166653126478195,
0.12750814855098724,
-0.028934713453054428,
-0.005290839821100235,
-0.17572641372680664,
-0.13766996562480927,
-0.18859291076660156,
0.18718321621418,
0.02935275435447693,
0.08233098685741425,
-0.08898959308862686,
-0.12226007878780365,
-0.07350018620491028,
0.13611145317554474,
0.05416097864508629,
0.028136225417256355,
-0.14151830971240997,
0.16708074510097504,
-0.19070154428482056,
-0.06346714496612549,
0.32723772525787354,
-0.09474123269319534,
0.0126257985830307,
-0.5545053482055664,
0.33337435126304626,
0.0527847483754158,
0.05717528611421585,
-0.3271183371543884,
0.15053683519363403,
0.2696192264556885,
-0.21434801816940308,
-0.11047126352787018,
0.2254103124141693,
-0.2465934157371521,
-0.2582942545413971,
-0.03566296026110649,
0.2865625023841858,
-0.2709176540374756,
-0.22240720689296722,
-0.16858571767807007,
-0.12922215461730957
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine.
@mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like? | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 57 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine.
@mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like? | [
-0.4731810390949249,
0.24578425288200378,
-0.012630607932806015,
0.14121410250663757,
0.28335559368133545,
-0.14702095091342926,
0.6012277007102966,
0.012776054441928864,
0.26878106594085693,
0.1312778890132904,
-0.024036673828959465,
-0.02398519590497017,
-0.024662315845489502,
0.4021066427230835,
-0.09124042838811874,
-0.1021379828453064,
-0.17223358154296875,
0.03887713700532913,
-0.154004767537117,
0.13259455561637878,
-0.14081060886383057,
-0.1281197965145111,
-0.37270915508270264,
-0.028236113488674164,
-0.16281431913375854,
-0.18658731877803802,
0.009141897782683372,
0.14202134311199188,
-0.15723156929016113,
-0.2762962877750397,
0.285410612821579,
0.18052437901496887,
0.2238958477973938,
0.4791247546672821,
-0.00010423075582366437,
0.14376704394817352,
0.0545552521944046,
-0.013488591648638248,
-0.20690268278121948,
-0.33818697929382324,
-0.1917753517627716,
-0.39793652296066284,
0.23375734686851501,
-0.40073758363723755,
-0.21508455276489258,
0.036537379026412964,
-0.07347274571657181,
-0.39583781361579895,
0.315073698759079,
0.30793827772140503,
0.25268855690956116,
0.6633718013763428,
-0.1480613499879837,
-0.32286980748176575,
-0.172331303358078,
0.010202296078205109,
-0.2392338514328003,
0.39254650473594666,
0.06179077550768852,
-0.07088685780763626,
-0.1110987439751625,
0.11631782352924347,
-0.11929123103618622,
0.011944581754505634,
0.35922950506210327,
0.09901531785726547,
-0.04360601305961609,
-0.09265755116939545,
0.1286546289920807,
0.4549902081489563,
0.38576802611351013,
-0.22564655542373657,
-0.32339149713516235,
-0.41150322556495667,
-0.12132848799228668,
-0.39928504824638367,
0.07776397466659546,
0.0915818065404892,
-0.05180187150835991,
0.2859632670879364,
-0.450861394405365,
-0.2770608067512512,
-0.36881232261657715,
0.0866333618760109,
-0.34369367361068726,
0.12905901670455933,
-0.22098100185394287,
0.05185994133353233,
-0.05945241078734398,
0.17649848759174347,
-0.17837584018707275,
-0.28105127811431885,
0.13426473736763,
-0.13189223408699036,
-0.2653568983078003,
-0.07102599740028381,
0.16602450609207153,
0.04895022138953209,
0.13250181078910828,
0.08357030153274536,
0.24560408294200897,
0.013486400246620178,
0.06306155771017075,
0.07287217676639557,
0.4931010603904724,
0.2701188921928406,
-0.06640515476465225,
-0.16545191407203674,
0.5901669859886169,
0.16802763938903809,
0.01540706679224968,
-0.2984619736671448,
0.34388110041618347,
-0.24740906059741974,
0.051143866032361984,
-0.004453470930457115,
0.39344072341918945,
-0.2904766798019409,
-0.070559062063694,
-0.028938859701156616,
0.2609570622444153,
-0.04225023463368416,
0.23024767637252808,
0.2531335949897766,
-0.20073525607585907,
0.023909378796815872,
0.0023877620697021484,
0.37070298194885254,
-0.25833141803741455,
-0.2877788245677948,
-0.06917772442102432,
-0.25147780776023865,
-0.15245750546455383,
0.09091462194919586,
0.19420479238033295,
0.09884855151176453,
0.09316457062959671,
-0.03527873009443283,
0.279915988445282,
0.019317559897899628,
0.27842581272125244,
-0.06133425235748291,
-0.0014956295490264893,
0.30235984921455383,
0.1102336049079895,
-0.06810864061117172,
0.12143737077713013,
-0.1861233413219452,
0.02575162798166275,
0.056542713195085526,
-0.06533385068178177,
-0.4622018337249756,
0.17617878317832947,
0.21972060203552246,
-0.67320716381073,
-0.22239965200424194,
-0.273034006357193,
0.15556620061397552,
-0.23693621158599854,
-0.21249593794345856,
0.02358683943748474,
0.018460713326931,
-0.21189451217651367,
-0.21170605719089508,
0.2878769636154175,
0.5173382759094238,
-0.46038880944252014,
0.01295025646686554,
0.044710274785757065,
-0.2136070281267166,
-0.2071647047996521,
0.1019178181886673,
-0.41491958498954773,
0.6289387345314026,
0.010753661394119263,
-0.38167518377304077,
0.5595378279685974,
-0.3048190474510193,
-0.314029335975647,
0.2726418972015381,
-0.16057255864143372,
-0.004587428644299507,
-0.05343211442232132,
0.10875441879034042,
0.4603525400161743,
0.08486714214086533,
-0.09082341194152832,
0.25211694836616516,
-0.1281452178955078,
-0.013010215014219284,
-0.26151078939437866,
-0.3172563910484314,
0.19561408460140228,
0.32601794600486755,
0.32254213094711304,
0.1708086133003235,
0.2575955390930176,
-0.18613682687282562,
-0.008525148034095764,
-0.16226918995380402,
0.12020493298768997,
0.042387705296278,
0.22556191682815552,
0.06719586998224258,
-0.01023123785853386,
-0.16534090042114258,
-0.5502771139144897,
0.2796308696269989,
-0.02870912291109562,
0.2188272923231125,
-0.21580247581005096,
-0.21077801287174225,
-0.027634650468826294,
-0.1952417641878128,
-0.18108680844306946,
-0.07955946028232574,
0.11711087822914124,
-0.19782611727714539,
0.08592219650745392,
0.09828892350196838,
-0.2900712490081787,
0.11372994631528854,
-0.011981463059782982,
0.021742375567555428,
-0.15843629837036133,
0.30122309923171997,
-0.04983893036842346,
0.0836622416973114,
-0.15510958433151245,
0.05628944933414459,
-0.05459880828857422,
-0.16224321722984314,
-0.09545842558145523,
0.5110427141189575,
-0.02388588897883892,
0.056326091289520264,
0.23493963479995728,
0.5590961575508118,
0.3679667115211487,
0.004376020282506943,
0.49562910199165344,
-0.050213444977998734,
0.32130903005599976,
-0.11147019267082214,
-0.39842021465301514,
0.7357342839241028,
-0.1440514773130417,
0.2574731409549713,
0.0989936888217926,
-0.016456391662359238,
0.2910701632499695,
-0.026504674926400185,
-0.4488825500011444,
-0.02203666791319847,
0.018365662544965744,
0.014575822278857231,
0.2139872908592224,
-0.0351545512676239,
-0.3072078227996826,
0.007390841841697693,
0.36606845259666443,
0.0653328150510788,
0.15091362595558167,
-0.0016659833490848541,
-0.07140108197927475,
0.061856403946876526,
-0.08471046388149261,
0.09613892436027527,
0.5059413909912109,
0.22251059114933014,
-0.0020843707025051117,
0.2222689837217331,
-0.0752183124423027,
-0.2918921411037445,
0.16224493086338043,
0.27840203046798706,
0.01177908480167389,
0.09482131898403168,
0.11065012961626053,
-0.013544264249503613,
-0.26066476106643677,
-0.08511982858181,
0.0104153361171484,
0.052130326628685,
-0.31714367866516113,
0.30235517024993896,
-0.1921413242816925,
0.04467962682247162,
0.011666187085211277,
0.10387907177209854,
-0.5033851861953735,
-0.1916295886039734,
0.17389340698719025,
0.08669812977313995,
-0.27683892846107483,
0.16115036606788635,
-0.08169301599264145,
0.5301485061645508,
-0.18624147772789001,
-0.17227089405059814,
0.1785867065191269,
-0.5872236490249634,
-0.06184152513742447,
0.09926609694957733,
0.32912948727607727,
0.031592752784490585,
0.4697211980819702,
0.11053172498941422,
-0.10048878192901611,
-0.22674989700317383,
-0.25936537981033325,
0.07752898335456848,
-0.04443242400884628,
0.3455694615840912,
0.0793805718421936,
0.042769044637680054,
0.0755399763584137,
0.29211151599884033,
0.4025549292564392,
-0.29502296447753906,
0.25151947140693665,
0.1761239916086197,
-0.12414399534463882,
-0.040173545479774475,
-0.3764845132827759,
-0.43204429745674133,
-0.3803492784500122,
-0.4162004888057709,
0.2004622370004654,
-0.0402468666434288,
-0.042193926870822906,
0.28949758410453796,
0.180433988571167,
0.06995642185211182,
-0.07126175612211227,
0.09051725268363953,
-0.13966651260852814,
-0.44039344787597656,
0.2246844470500946,
-0.1572478860616684,
-0.5371837615966797,
0.20842111110687256,
0.16662095487117767,
0.1439090371131897,
0.27611464262008667,
-0.5148002505302429,
-0.30842897295951843,
0.05916822701692581,
0.3579503893852234,
0.18133656680583954,
0.2270389050245285,
0.39894476532936096,
-0.10222466289997101,
-0.022411445155739784,
-0.08096665889024734,
0.06943130493164062,
0.2551831007003784,
0.04150102660059929,
-0.014629043638706207,
0.04076288640499115,
0.32040828466415405,
0.012463469058275223,
0.4728292226791382,
-0.06553741544485092,
0.06200217455625534,
0.2407367080450058,
-0.0948774442076683,
0.6474260687828064,
-0.25963371992111206,
-0.14854255318641663,
-0.07322904467582703,
-0.04690513014793396,
-0.34583884477615356,
0.26466265320777893,
0.028572846204042435,
-0.015796354040503502,
-0.5687806606292725,
-0.016319025307893753,
-0.24866262078285217,
-0.44401389360427856,
0.18490780889987946,
0.2254670411348343,
0.34177157282829285,
0.14934152364730835,
0.2687123715877533,
-0.2899605333805084,
-0.0377981960773468,
-0.055485162883996964,
0.2830595374107361,
0.06359413266181946,
-0.11718089133501053,
-0.24029456079006195,
0.08819007128477097,
-0.36292505264282227,
0.2781031131744385,
-0.20161466300487518,
0.1761331707239151,
-0.03933863714337349,
-0.05416028946638107,
0.05599256232380867,
-0.07584434747695923,
0.4782179594039917,
-0.38191986083984375,
-0.11644527316093445,
0.25264471769332886,
-0.10346482694149017,
-0.31540560722351074,
0.04721974954009056,
-0.20720240473747253,
-0.011011062189936638,
0.18806111812591553,
0.2789720892906189,
-0.09352542459964752,
-0.28632834553718567,
-0.014317568391561508,
0.2607755661010742,
-0.3398853838443756,
-0.2257453054189682,
-0.2240484356880188,
-0.04733677953481674,
-0.35305893421173096,
0.050126682966947556,
-0.16760559380054474,
-0.023787571117281914,
-0.09883014112710953,
0.10710272192955017,
-0.15963268280029297,
0.18465876579284668,
-0.07270607352256775,
0.1555313616991043,
0.09379743039608002,
-0.30151504278182983,
0.2017154097557068,
0.28915688395500183,
0.05543137714266777,
0.24392123520374298,
0.3130553662776947,
-0.07576717436313629,
-0.2507779002189636,
0.21849295496940613,
-0.04491320252418518,
0.3743799924850464,
0.44749966263771057,
-0.007546618580818176,
-0.1503683626651764,
0.2359786480665207,
0.29093801975250244,
-0.43079060316085815,
-0.13248535990715027,
0.11488573998212814,
0.0783318430185318,
-0.13668371737003326,
-0.40677428245544434,
0.24734434485435486,
-0.004963280633091927,
-0.051208510994911194,
-0.09436380863189697,
0.15853899717330933,
-0.23933516442775726,
0.31746160984039307,
-0.10686542838811874,
0.7930582761764526,
-0.0637972503900528,
0.24429123103618622,
0.22235387563705444,
-0.01196032389998436,
0.4988226592540741,
-0.32526838779449463,
-0.02294924110174179,
-0.034001536667346954,
-0.1787107288837433,
-0.03138203173875809,
-0.0793323665857315,
0.4078507721424103,
0.054872311651706696,
-0.13534659147262573,
0.5168305039405823,
-0.03389443829655647,
0.3856006860733032,
-0.28574255108833313,
0.12908238172531128,
0.050179533660411835,
-0.2691267430782318,
-0.5489073991775513,
0.2034657746553421,
0.0918538048863411,
0.07320865988731384,
-0.22242605686187744,
-0.279491126537323,
0.06744237244129181,
0.06276360154151917,
-0.026670604944229126,
-0.1881912648677826,
-0.03251662850379944,
0.07577592134475708,
-0.13961398601531982,
0.051858559250831604,
0.07644559442996979,
0.12277160584926605,
0.40034037828445435,
0.12157958745956421,
-0.4199988842010498,
0.05892251804471016,
-0.39850157499313354,
0.154727503657341,
0.022546948865056038,
0.1779077649116516,
0.18130846321582794,
-0.18881654739379883,
-0.2497040331363678,
-0.008885577321052551,
-0.10917151719331741,
-0.10673089325428009,
0.44055384397506714,
-0.12163487076759338,
0.007392711937427521,
-0.3226773142814636,
0.1737305223941803,
0.18594278395175934,
0.2177404761314392,
-0.16453474760055542,
0.163095161318779,
0.2032279223203659,
0.08970422297716141,
0.3784291744232178,
-0.14693975448608398,
-0.1935921013355255,
-0.24168790876865387,
0.2845241129398346,
-0.11098333448171616,
-0.14885693788528442,
-0.07576023042201996,
0.22454629838466644,
-0.18763591349124908,
-0.30617958307266235,
0.22682860493659973,
0.0737868919968605,
-0.2808648943901062,
0.28507184982299805,
0.37679365277290344,
0.23318947851657867,
-0.11650478094816208,
0.29912862181663513,
0.06431974470615387,
-0.28711944818496704,
-0.16111613810062408,
-0.3281609117984772,
-0.383701890707016,
0.2428535670042038,
0.4140171408653259,
0.1610078662633896,
0.07819418609142303,
-0.03976347669959068,
-0.006338581442832947,
-0.18761958181858063,
-0.4073794484138489,
0.021793805062770844,
-0.05920334905385971,
0.06519927084445953,
0.2616647481918335,
-0.21078839898109436,
0.3878108859062195,
-0.20935487747192383,
0.05358783155679703,
-0.1886051446199417,
-0.41142016649246216,
-0.27938228845596313,
-0.03712412342429161,
0.18726418912410736,
0.03429882228374481,
-0.32168471813201904,
-0.048438627272844315,
-0.45394283533096313,
-0.39113616943359375,
-0.14260214567184448,
0.2971310615539551,
0.4522983729839325,
-0.140037402510643,
0.011962304823100567,
-0.17946882545948029,
0.4436798691749573,
-0.15155358612537384,
0.0933164656162262,
0.05384305119514465,
0.2722330689430237,
0.07948143780231476,
0.24185504019260406,
-0.12428384274244308,
0.06629206240177155,
0.0052192965522408485,
0.18621250987052917,
0.2457854300737381,
0.1565166562795639,
0.48036426305770874,
-0.1563786119222641,
0.1423412710428238,
0.32020631432533264,
0.5329149961471558,
0.12676891684532166,
-0.055424559861421585,
0.1896502822637558,
0.0750890001654625,
0.2618722915649414,
-0.4182620346546173,
0.055513642728328705,
0.05591173097491264,
0.06920775771141052,
0.34516391158103943,
0.16567927598953247,
0.4651872217655182,
0.1580529510974884,
-0.012030988931655884,
0.04495662450790405,
0.3792151212692261,
-0.08369678258895874,
0.2313953936100006,
0.1390158087015152,
0.05454885587096214,
0.1466524302959442,
0.09786356985569,
0.36789119243621826,
0.02795460820198059,
0.2849602699279785,
-0.32147538661956787,
0.17723938822746277,
0.04468148201704025,
0.10182727873325348,
-0.1581350862979889,
-0.41243425011634827,
0.2898586094379425,
-0.04971475899219513,
-0.05460125207901001,
-0.18236401677131653,
-0.2525886595249176,
0.18638131022453308,
-0.4326294958591461,
0.011693727225065231,
-0.2156715840101242,
0.06467019766569138,
-0.07989883422851562,
0.010311499238014221,
-0.37220752239227295,
-0.34594109654426575,
-0.021677270531654358,
0.11335410177707672,
0.03383247181773186,
-0.012865297496318817,
0.04881070554256439,
-0.0818491131067276,
0.09189525246620178,
-0.2111901491880417,
0.14605501294136047,
0.058045536279678345,
0.07766088098287582,
-0.03075399063527584,
0.031486108899116516,
0.23070105910301208,
0.0295003242790699,
0.15513764321804047,
0.4924817681312561,
0.2937018871307373,
0.030628181993961334,
-0.2166263461112976,
0.19122883677482605,
-0.025114048272371292,
-0.09476233273744583,
-0.11528350412845612,
0.11651845276355743,
0.05720287561416626,
0.17249087989330292,
0.3164793848991394,
0.1543089598417282,
-0.2009878158569336,
0.36223214864730835,
-0.2038220912218094,
-0.06954993307590485,
-0.4959084987640381,
0.3163033127784729,
0.17312298715114594,
-0.14835403859615326,
-0.04045305401086807,
-0.26296019554138184,
-0.16181537508964539,
-0.24255572259426117,
0.39934906363487244,
-0.018727779388427734,
0.14774766564369202,
-0.196957066655159,
0.10605728626251221,
0.027128875255584717,
0.445311576128006,
0.15252865850925446,
0.25807705521583557,
-0.270478755235672,
0.22323985397815704,
-0.7864071130752563,
-0.15928560495376587,
-0.07892973721027374,
0.34298449754714966,
-0.01797042228281498,
0.10013226419687271,
0.11753681302070618,
0.4013320207595825,
0.05786016583442688,
0.06575639545917511,
0.14404132962226868,
-0.17057466506958008,
-0.2648237943649292,
-0.08721114695072174,
-0.13769204914569855,
-0.059619881212711334,
-0.022880515083670616,
-0.2512316405773163,
0.11766725778579712,
-0.2488216757774353,
-0.011526115238666534,
0.01070768665522337,
0.14541591703891754,
-0.11412188410758972,
-0.06540774554014206,
0.4388481080532074,
0.10178738087415695,
0.36002033948898315,
0.2547398805618286,
-0.06510245054960251,
-0.10997208952903748,
0.013845095410943031,
-0.09835423529148102,
0.04164399206638336,
-0.08221301436424255,
0.023216672241687775,
-0.17899566888809204,
-0.1889514923095703,
-0.1935422271490097,
0.139534130692482,
0.09017319977283478,
-0.08383340388536453,
-0.20448528230190277,
0.022094538435339928,
0.0032964199781417847,
0.1341685950756073,
0.0018570143729448318,
0.07419535517692566,
-0.10655200481414795,
0.1723717302083969,
-0.1570727676153183,
0.06434640288352966,
0.36166322231292725,
-0.0158099215477705,
-0.051304303109645844,
-0.3619365394115448,
0.2845938801765442,
0.24544087052345276,
0.016016772016882896,
-0.6187481880187988,
0.059200532734394073,
0.2603124976158142,
-0.17047417163848877,
-0.10797911882400513,
0.29657185077667236,
-0.1877589076757431,
-0.233869269490242,
-0.018962601199746132,
0.28341007232666016,
-0.26333901286125183,
-0.247262105345726,
0.001866467297077179,
-0.12850823998451233
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | here is my way to load a dataset offline, but it **requires** an online machine
1. (online machine)
```
import datasets
data = datasets.load_dataset(...)
data.save_to_disk(/YOUR/DATASET/DIR)
```
2. copy the dir from online to the offline machine
3. (offline machine)
```
import datasets
data = datasets.load_from_disk(/SAVED/DATA/DIR)
```
HTH. | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 47 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
here is my way to load a dataset offline, but it **requires** an online machine
1. (online machine)
```
import datasets
data = datasets.load_dataset(...)
data.save_to_disk(/YOUR/DATASET/DIR)
```
2. copy the dir from online to the offline machine
3. (offline machine)
```
import datasets
data = datasets.load_from_disk(/SAVED/DATA/DIR)
```
HTH. | [
-0.49025747179985046,
0.2288963496685028,
-0.03322089463472366,
0.13887350261211395,
0.2363724559545517,
-0.08911534398794174,
0.5481935143470764,
0.06737257540225983,
0.2955961525440216,
0.2450515627861023,
-0.010174613445997238,
-0.06949257850646973,
0.027625681832432747,
0.38272854685783386,
-0.10571826249361038,
-0.021846622228622437,
-0.1530393660068512,
0.05366148427128792,
-0.17722868919372559,
0.08962278068065643,
-0.16522878408432007,
-0.09213332831859589,
-0.4337232708930969,
-0.07040636241436005,
-0.01813312992453575,
-0.15042586624622345,
-0.08321233093738556,
0.2194388508796692,
-0.16612522304058075,
-0.28075218200683594,
0.23882047832012177,
0.16331394016742706,
0.22919721901416779,
0.4750615358352661,
-0.00010338117863284424,
0.026317395269870758,
0.008209295570850372,
-0.0013800133019685745,
-0.22697404026985168,
-0.4025886058807373,
-0.21580475568771362,
-0.5285044312477112,
0.17964857816696167,
-0.4550704061985016,
-0.20320343971252441,
-0.05820450559258461,
-0.07459720969200134,
-0.4929271340370178,
0.31648045778274536,
0.34986719489097595,
0.2593775689601898,
0.5757412910461426,
-0.1358262598514557,
-0.27544501423835754,
-0.16067972779273987,
-0.15148717164993286,
-0.1493048071861267,
0.43661585450172424,
-0.014577426016330719,
-0.008213112130761147,
-0.0025774016976356506,
0.09523361921310425,
-0.19615641236305237,
0.04138564318418503,
0.31634095311164856,
0.05868125706911087,
-0.10160987824201584,
-0.10181748867034912,
0.21980208158493042,
0.3930845260620117,
0.42616164684295654,
-0.27378031611442566,
-0.24700340628623962,
-0.33900442719459534,
-0.00234118290245533,
-0.45674753189086914,
0.0788487046957016,
0.1836712509393692,
0.024228516966104507,
0.22488391399383545,
-0.37972143292427063,
-0.31823933124542236,
-0.33132463693618774,
0.16381338238716125,
-0.3214628994464874,
0.01116897165775299,
-0.253679484128952,
0.06930140405893326,
-0.061244431883096695,
0.09133507311344147,
-0.1768205463886261,
-0.28515323996543884,
0.07391154766082764,
-0.06194661185145378,
-0.259450227022171,
0.026855535805225372,
0.11837878823280334,
0.06844925880432129,
0.1312054991722107,
0.06520559638738632,
0.2398013025522232,
-0.01881808415055275,
0.07910698652267456,
0.049734439700841904,
0.44076424837112427,
0.2978353500366211,
0.007579796016216278,
-0.17687168717384338,
0.5290125012397766,
0.0910339280962944,
-0.02419457398355007,
-0.29890722036361694,
0.25659674406051636,
-0.3073081076145172,
0.13212090730667114,
0.013798009604215622,
0.36540883779525757,
-0.30480828881263733,
-0.1587880253791809,
-0.013998701237142086,
0.13926103711128235,
-0.04246271029114723,
0.16893252730369568,
0.2522919774055481,
-0.2716248631477356,
0.045141756534576416,
0.06977394968271255,
0.39693522453308105,
-0.29897817969322205,
-0.2657657861709595,
-0.05894845351576805,
-0.12591958045959473,
-0.11281117796897888,
0.06377117335796356,
0.17899081110954285,
0.000059977173805236816,
0.05204356461763382,
-0.04112791270017624,
0.2421656996011734,
-0.0735091120004654,
0.2981469929218292,
-0.09517255425453186,
0.08237794786691666,
0.2353084236383438,
0.2750589847564697,
-0.08741859346628189,
0.07691607624292374,
-0.20032183825969696,
0.03791584074497223,
0.038790687918663025,
-0.14262732863426208,
-0.35825711488723755,
0.17065675556659698,
0.27655676007270813,
-0.628930926322937,
-0.17536644637584686,
-0.3216267228126526,
0.03676003962755203,
-0.31611406803131104,
-0.1942731887102127,
-0.03085387498140335,
-0.06167105585336685,
-0.1780046820640564,
-0.24536608159542084,
0.3240116834640503,
0.5668388605117798,
-0.38396960496902466,
0.10502652823925018,
0.08440616726875305,
-0.16043390333652496,
-0.1781919300556183,
0.023398704826831818,
-0.31484001874923706,
0.5233694314956665,
-0.013056274503469467,
-0.3010377883911133,
0.5681833624839783,
-0.35509154200553894,
-0.26516011357307434,
0.2487459033727646,
-0.1917608678340912,
-0.10596577823162079,
-0.10386111587285995,
0.09011455625295639,
0.4400767683982849,
0.0750485211610794,
-0.08439382910728455,
0.28901034593582153,
-0.03517092019319534,
0.00046729668974876404,
-0.21861132979393005,
-0.2369781881570816,
0.16731761395931244,
0.283759206533432,
0.2555622458457947,
0.11290064454078674,
0.3047424256801605,
-0.1972569078207016,
0.03916279971599579,
-0.2821211814880371,
0.11916565895080566,
0.1654857099056244,
0.16971951723098755,
0.10239703953266144,
-0.044208187609910965,
-0.18281471729278564,
-0.4893231987953186,
0.2718423902988434,
0.047884173691272736,
0.15719613432884216,
-0.19920198619365692,
-0.13791576027870178,
-0.020389363169670105,
-0.183131143450737,
-0.1769694983959198,
0.0272824726998806,
0.14106427133083344,
-0.11078819632530212,
0.1724628210067749,
0.12936840951442719,
-0.25989845395088196,
0.17829258739948273,
0.01078810729086399,
0.002460820134729147,
-0.1300739049911499,
0.29034003615379333,
-0.04923687130212784,
0.06460011750459671,
-0.028928890824317932,
0.08814715594053268,
0.058181315660476685,
-0.19372199475765228,
-0.11858341842889786,
0.525969922542572,
-0.0300906952470541,
0.06162960082292557,
0.26878517866134644,
0.38185638189315796,
0.3064643144607544,
-0.012045145034790039,
0.5338498950004578,
-0.0427260659635067,
0.3334376811981201,
-0.0925101637840271,
-0.32285431027412415,
0.7542522549629211,
-0.1525753140449524,
0.21712684631347656,
0.10252608358860016,
0.018324123695492744,
0.2599797248840332,
0.0012788660824298859,
-0.4040779173374176,
-0.035952113568782806,
0.11844862997531891,
0.0022457726299762726,
0.18113751709461212,
-0.08507364243268967,
-0.30645936727523804,
-0.015291370451450348,
0.33124661445617676,
-0.018839746713638306,
0.17788459360599518,
-0.06607449799776077,
-0.030485130846500397,
0.13060474395751953,
-0.08317303657531738,
0.0887688547372818,
0.5169286727905273,
0.2506967782974243,
0.05195744335651398,
0.22982555627822876,
-0.03137853741645813,
-0.2562144994735718,
0.13256655633449554,
0.23213589191436768,
0.04924146085977554,
0.0684337466955185,
0.10048212110996246,
-0.023727018386125565,
-0.20638114213943481,
-0.05208319053053856,
-0.05471891164779663,
0.02327202446758747,
-0.2868105173110962,
0.284301221370697,
-0.2516609728336334,
-0.01631499081850052,
0.047051891684532166,
0.11078958958387375,
-0.4484028220176697,
-0.20029954612255096,
0.06472042202949524,
0.07769667357206345,
-0.23188193142414093,
0.1336178183555603,
-0.1268712431192398,
0.39075249433517456,
-0.24031277000904083,
-0.2388581484556198,
0.2622435688972473,
-0.48724591732025146,
-0.12277636677026749,
0.10722863674163818,
0.30648142099380493,
0.1311013251543045,
0.508796751499176,
0.02142011933028698,
-0.09715374559164047,
-0.3305742144584656,
-0.15721824765205383,
0.015584714710712433,
-0.06593607366085052,
0.277890682220459,
0.08092062175273895,
0.057819265872240067,
-0.04538038745522499,
0.3248309791088104,
0.38750457763671875,
-0.3374926447868347,
0.20367631316184998,
0.1821811944246292,
-0.05648762360215187,
-0.09171288460493088,
-0.34320759773254395,
-0.4313032329082489,
-0.4415455758571625,
-0.3976588845252991,
0.1741931438446045,
0.034977007657289505,
-0.05292626470327377,
0.18278919160366058,
0.15197311341762543,
0.10292722284793854,
0.0166772548109293,
0.18532294034957886,
-0.1828436553478241,
-0.46745187044143677,
0.17848613858222961,
-0.18080565333366394,
-0.6038357019424438,
0.29095134139060974,
0.23115603625774384,
0.15280160307884216,
0.3490709066390991,
-0.4436717629432678,
-0.3765624165534973,
0.06810632348060608,
0.4156065881252289,
0.10857732594013214,
0.3436669111251831,
0.3434487581253052,
-0.07028131186962128,
-0.03828630596399307,
-0.0923793762922287,
0.09284006059169769,
0.17694680392742157,
0.05897194892168045,
-0.1342712640762329,
0.03360597789287567,
0.25433510541915894,
-0.029424823820590973,
0.3790816068649292,
-0.03754846751689911,
0.09186223894357681,
0.23645833134651184,
-0.15787675976753235,
0.6929190754890442,
-0.1827818751335144,
-0.15251702070236206,
-0.03947831690311432,
-0.05371136963367462,
-0.32495415210723877,
0.24910132586956024,
0.024523522704839706,
0.006816627457737923,
-0.6647500991821289,
-0.04201787710189819,
-0.3744180202484131,
-0.40795189142227173,
0.09886380285024643,
0.12205935269594193,
0.3661217987537384,
0.11318664252758026,
0.2727557420730591,
-0.2575812339782715,
-0.08721707761287689,
-0.08682483434677124,
0.25321123003959656,
0.07752928137779236,
-0.07182234525680542,
-0.24946138262748718,
0.02458667755126953,
-0.3649160861968994,
0.38078993558883667,
-0.14542897045612335,
0.19983212649822235,
-0.034633636474609375,
-0.02304210141301155,
-0.012695036828517914,
-0.16827963292598724,
0.3438606262207031,
-0.31693997979164124,
-0.012938469648361206,
0.296735942363739,
-0.06794063746929169,
-0.31900984048843384,
0.06565135717391968,
-0.21159304678440094,
-0.024579770863056183,
0.18760669231414795,
0.16614609956741333,
-0.10674982517957687,
-0.3034745454788208,
0.012663410976529121,
0.4440042972564697,
-0.29345762729644775,
-0.19761566817760468,
-0.23405729234218597,
-0.16527138650417328,
-0.3448304533958435,
-0.007720254361629486,
-0.20222274959087372,
0.06967106461524963,
-0.12043338268995285,
0.18467114865779877,
-0.25448742508888245,
0.16877180337905884,
-0.0028252601623535156,
0.10414911806583405,
0.12790948152542114,
-0.23415163159370422,
0.2522113025188446,
0.25474464893341064,
0.1065211221575737,
0.32324546575546265,
0.3494309186935425,
-0.05301879718899727,
-0.2862739562988281,
0.16815972328186035,
-0.016018878668546677,
0.3586544990539551,
0.37667179107666016,
-0.09663423150777817,
-0.14043807983398438,
0.13751934468746185,
0.27444034814834595,
-0.419171541929245,
-0.1013081818819046,
0.14703424274921417,
0.17960083484649658,
-0.11906630545854568,
-0.39145761728286743,
0.26411324739456177,
0.10821399092674255,
-0.02581523358821869,
-0.028694547712802887,
0.1335446834564209,
-0.20774886012077332,
0.19106781482696533,
-0.1117650642991066,
0.7465305328369141,
-0.08776594698429108,
0.22428621351718903,
0.2535329759120941,
0.0000769495964050293,
0.44187238812446594,
-0.21456436812877655,
-0.039279039949178696,
-0.041099559515714645,
-0.2529997229576111,
-0.004827333614230156,
-0.08334273099899292,
0.4119865298271179,
0.004282303154468536,
-0.08891211450099945,
0.5612853765487671,
-0.02958693355321884,
0.2540520429611206,
-0.30483123660087585,
0.21572202444076538,
-0.02316461317241192,
-0.22042755782604218,
-0.5347031950950623,
0.22364267706871033,
0.11935301125049591,
0.10174550116062164,
-0.1956091821193695,
-0.22880631685256958,
0.08236844837665558,
0.07364945858716965,
0.039321765303611755,
-0.07162751257419586,
-0.005105847027152777,
0.09715667366981506,
-0.25117751955986023,
-0.011619620025157928,
-0.007524286396801472,
0.14216983318328857,
0.356661319732666,
0.14511746168136597,
-0.30176088213920593,
0.023751888424158096,
-0.37423357367515564,
0.16231666505336761,
0.04893183708190918,
0.23895542323589325,
0.17136776447296143,
-0.2298681139945984,
-0.2295820116996765,
0.07708210498094559,
-0.09000726789236069,
-0.009264633059501648,
0.4244621992111206,
-0.04890991002321243,
-0.009292729198932648,
-0.23481999337673187,
0.14177179336547852,
0.18841059505939484,
0.19095607101917267,
-0.12081718444824219,
0.1698993295431137,
0.2535116672515869,
0.05310048162937164,
0.32660382986068726,
-0.11337947845458984,
-0.22215603291988373,
-0.22905908524990082,
0.324675589799881,
-0.14617705345153809,
-0.21636423468589783,
-0.02816540002822876,
0.20714522898197174,
-0.17578183114528656,
-0.3009602129459381,
0.28286564350128174,
-0.0069938721135258675,
-0.12597359716892242,
0.23317478597164154,
0.3803783357143402,
0.3927209973335266,
-0.11483456939458847,
0.2829951345920563,
0.018474441021680832,
-0.24705365300178528,
-0.06750719249248505,
-0.38316285610198975,
-0.26314693689346313,
0.2048703134059906,
0.4791598618030548,
0.12001605331897736,
0.1498100757598877,
-0.08352583646774292,
0.04036080837249756,
-0.2564299702644348,
-0.4158099293708801,
0.05774968862533569,
-0.04619721695780754,
0.045512016862630844,
0.2434919774532318,
-0.1222788468003273,
0.3542178273200989,
-0.21562595665454865,
0.09928875416517258,
-0.2353145331144333,
-0.31578126549720764,
-0.2837585210800171,
-0.0089738629758358,
0.17351390421390533,
-0.046274445950984955,
-0.308957040309906,
-0.002945818705484271,
-0.6132438778877258,
-0.33310437202453613,
-0.1570519059896469,
0.24114197492599487,
0.4147736728191376,
-0.1820589154958725,
-0.01971024088561535,
-0.19572116434574127,
0.4264014959335327,
-0.19011551141738892,
0.10958806425333023,
0.04686057195067406,
0.27683162689208984,
-0.030418461188673973,
0.2757187485694885,
-0.04496759548783302,
0.042467519640922546,
-0.048031050711870193,
0.09655526280403137,
0.1639404594898224,
0.09033055603504181,
0.3923720419406891,
-0.25776731967926025,
0.15437673032283783,
0.2673698663711548,
0.5688076019287109,
0.19750267267227173,
-0.06053626909852028,
0.20262381434440613,
0.1057218611240387,
0.2705928087234497,
-0.3872043788433075,
0.059255607426166534,
-0.006890004500746727,
0.10270406305789948,
0.3957238495349884,
0.09983500838279724,
0.33551016449928284,
0.10895241796970367,
-0.0963626503944397,
-0.012912046164274216,
0.33614614605903625,
-0.10542792081832886,
0.23784199357032776,
0.12431669235229492,
0.0390206016600132,
0.13910311460494995,
0.013683419674634933,
0.4197918176651001,
-0.010713756084442139,
0.31402653455734253,
-0.32909923791885376,
0.24282245337963104,
0.1165318414568901,
0.08710256963968277,
-0.29794052243232727,
-0.45738139748573303,
0.289607435464859,
0.021438390016555786,
-0.03851139545440674,
-0.1695445477962494,
-0.2580640912055969,
0.18175217509269714,
-0.5244927406311035,
-0.08152835816144943,
-0.14983898401260376,
0.10359916090965271,
-0.06626731902360916,
0.050469864159822464,
-0.4011797606945038,
-0.3025000989437103,
-0.033132459968328476,
0.11974890530109406,
0.08928351104259491,
-0.08833274245262146,
-0.0261479914188385,
0.024443943053483963,
0.10787710547447205,
-0.20801140367984772,
0.1284509003162384,
0.06607785075902939,
0.06189122796058655,
-0.03481285274028778,
0.023081790655851364,
0.20329166948795319,
0.06344043463468552,
0.11439621448516846,
0.4303234815597534,
0.3389606773853302,
0.03864627704024315,
-0.1788983792066574,
0.17778055369853973,
-0.018888965249061584,
-0.12378828972578049,
-0.09619629383087158,
0.08789633959531784,
0.015653230249881744,
0.1670670360326767,
0.3728032410144806,
0.1951119750738144,
-0.2173011302947998,
0.3377446234226227,
-0.07064603269100189,
-0.1390169858932495,
-0.46471136808395386,
0.26698926091194153,
0.19128385186195374,
-0.10771778970956802,
-0.11948253214359283,
-0.28018301725387573,
-0.1833825707435608,
-0.10936129093170166,
0.3616841435432434,
0.02548476681113243,
0.10699071735143661,
-0.1845504343509674,
0.12727083265781403,
0.0930405706167221,
0.4290940761566162,
0.18219302594661713,
0.30786386132240295,
-0.2852391302585602,
0.11136011779308319,
-0.8087355494499207,
-0.15015867352485657,
-0.1427769809961319,
0.23500505089759827,
-0.05234508216381073,
0.10854572057723999,
0.08479642868041992,
0.438723623752594,
0.06591382622718811,
0.15793178975582123,
0.16264653205871582,
-0.18133696913719177,
-0.28863489627838135,
-0.1446578949689865,
-0.08162637054920197,
-0.08609022200107574,
-0.03142617270350456,
-0.329349160194397,
0.07899259030818939,
-0.38525864481925964,
0.02629096806049347,
0.07758241891860962,
0.19740566611289978,
-0.20243942737579346,
-0.13281695544719696,
0.45995303988456726,
0.024359269067645073,
0.4064575433731079,
0.1564125418663025,
-0.1124190241098404,
-0.06522433459758759,
0.035319581627845764,
-0.057773783802986145,
0.1724691390991211,
-0.03386755660176277,
-0.02690555527806282,
-0.13797473907470703,
-0.1405126005411148,
-0.16621065139770508,
0.2008039802312851,
0.06668920814990997,
-0.011972983367741108,
-0.11379404366016388,
-0.035999514162540436,
0.08679480105638504,
0.14186252653598785,
0.0072059547528624535,
0.04317411035299301,
-0.1489286571741104,
0.2132105976343155,
-0.20265868306159973,
0.045329004526138306,
0.33938246965408325,
-0.03502388298511505,
0.012711789458990097,
-0.37223315238952637,
0.39237573742866516,
0.16448284685611725,
0.0008877795189619064,
-0.4804069995880127,
0.23654058575630188,
0.3327222168445587,
-0.1532108187675476,
-0.14727868139743805,
0.3244405686855316,
-0.25227445363998413,
-0.20016328990459442,
0.007167007774114609,
0.25441956520080566,
-0.2700771689414978,
-0.3051464557647705,
0.0650707483291626,
-0.14096778631210327
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | > here is my way to load a dataset offline, but it **requires** an online machine
>
> 1. (online machine)
>
> ```
>
> import datasets
>
> data = datasets.load_dataset(...)
>
> data.save_to_disk(/YOUR/DATASET/DIR)
>
> ```
>
> 2. copy the dir from online to the offline machine
>
> 3. (offline machine)
>
> ```
>
> import datasets
>
> data = datasets.load_from_disk(/SAVED/DATA/DIR)
>
> ```
>
>
>
> HTH.
| `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 76 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
> here is my way to load a dataset offline, but it **requires** an online machine
>
> 1. (online machine)
>
> ```
>
> import datasets
>
> data = datasets.load_dataset(...)
>
> data.save_to_disk(/YOUR/DATASET/DIR)
>
> ```
>
> 2. copy the dir from online to the offline machine
>
> 3. (offline machine)
>
> ```
>
> import datasets
>
> data = datasets.load_from_disk(/SAVED/DATA/DIR)
>
> ```
>
>
>
> HTH.
| [
-0.4992602467536926,
0.22699770331382751,
-0.03246933966875076,
0.1418720781803131,
0.23695099353790283,
-0.10291716456413269,
0.5442941188812256,
0.07441107928752899,
0.2753627598285675,
0.24428828060626984,
-0.008833487518131733,
-0.06653963029384613,
0.028085775673389435,
0.3756229281425476,
-0.09889985620975494,
-0.041955530643463135,
-0.16233298182487488,
0.05635461583733559,
-0.18303638696670532,
0.10765455663204193,
-0.1633777916431427,
-0.08695143461227417,
-0.4333001971244812,
-0.06250801682472229,
-0.01593896932899952,
-0.1606818288564682,
-0.07989808171987534,
0.21157225966453552,
-0.17174963653087616,
-0.2845187783241272,
0.24363429844379425,
0.16650114953517914,
0.19889159500598907,
0.4731358587741852,
-0.0001034733431879431,
0.03702370077371597,
0.01192161813378334,
0.01048935018479824,
-0.22773171961307526,
-0.384957492351532,
-0.22434738278388977,
-0.5146490931510925,
0.1638059765100479,
-0.45466431975364685,
-0.20701059699058533,
-0.037957027554512024,
-0.06889118999242783,
-0.5084755420684814,
0.3095601499080658,
0.3518121838569641,
0.2570660710334778,
0.5904160737991333,
-0.1282707005739212,
-0.27924272418022156,
-0.15584880113601685,
-0.15226292610168457,
-0.1556977927684784,
0.4283834993839264,
-0.017295822501182556,
0.0013684146106243134,
-0.02224387228488922,
0.10412965714931488,
-0.1752348244190216,
0.03465990349650383,
0.3222213089466095,
0.06727886945009232,
-0.109740249812603,
-0.08459016680717468,
0.22063302993774414,
0.3967524468898773,
0.42471814155578613,
-0.28843435645103455,
-0.2519190013408661,
-0.3396161198616028,
-0.007588943466544151,
-0.4678495526313782,
0.09609871357679367,
0.15655192732810974,
0.021752633154392242,
0.22918082773685455,
-0.39443159103393555,
-0.30916258692741394,
-0.3443601727485657,
0.15244700014591217,
-0.3242223262786865,
0.0023705363273620605,
-0.26090335845947266,
0.07101423293352127,
-0.061124708503484726,
0.09298725426197052,
-0.19791221618652344,
-0.2828267514705658,
0.06065123900771141,
-0.07426038384437561,
-0.2604788541793823,
0.01412992924451828,
0.12018086016178131,
0.06370159983634949,
0.14024236798286438,
0.05883766710758209,
0.24869541823863983,
-0.009834997355937958,
0.09796854108572006,
0.05103827640414238,
0.4422777593135834,
0.2957017719745636,
0.007449261844158173,
-0.18953903019428253,
0.5416593551635742,
0.09937017410993576,
-0.007566869258880615,
-0.2980292737483978,
0.28207966685295105,
-0.3101070523262024,
0.13364875316619873,
0.007375377230346203,
0.3609674572944641,
-0.295488178730011,
-0.1674436777830124,
-0.012540222145617008,
0.1405460238456726,
-0.04265587404370308,
0.18352530896663666,
0.24835842847824097,
-0.2873729467391968,
0.02999059297144413,
0.06376834213733673,
0.3856903314590454,
-0.2997952401638031,
-0.254665732383728,
-0.06163222715258598,
-0.13591286540031433,
-0.12915782630443573,
0.07275379449129105,
0.18642577528953552,
0.008041881956160069,
0.04455346614122391,
-0.03349096328020096,
0.24024006724357605,
-0.06911838054656982,
0.3054918050765991,
-0.10393388569355011,
0.07850246876478195,
0.23368443548679352,
0.25203877687454224,
-0.09576708823442459,
0.06249666213989258,
-0.19691161811351776,
0.03824634104967117,
0.041058339178562164,
-0.10746654123067856,
-0.3596406877040863,
0.17836885154247284,
0.27268481254577637,
-0.6226018667221069,
-0.17106491327285767,
-0.30796411633491516,
0.05818534642457962,
-0.30643242597579956,
-0.1984429657459259,
-0.015349440276622772,
-0.04602985084056854,
-0.19359484314918518,
-0.2405308187007904,
0.33769479393959045,
0.5559728741645813,
-0.39829424023628235,
0.09689795970916748,
0.07916367799043655,
-0.17718884348869324,
-0.1863669753074646,
0.019553527235984802,
-0.30825701355934143,
0.5199752449989319,
-0.0187853891402483,
-0.29418739676475525,
0.5648747682571411,
-0.3655904531478882,
-0.2701430320739746,
0.24698206782341003,
-0.18696488440036774,
-0.11204145103693008,
-0.09344174712896347,
0.09128852933645248,
0.4447419345378876,
0.08528809249401093,
-0.09592320024967194,
0.2809373140335083,
-0.045861996710300446,
-0.0005545523017644882,
-0.2211623638868332,
-0.23946034908294678,
0.15443792939186096,
0.2881146967411041,
0.27238181233406067,
0.0969032421708107,
0.30917057394981384,
-0.1952723115682602,
0.028024718165397644,
-0.27875518798828125,
0.13509617745876312,
0.1634458750486374,
0.15330033004283905,
0.09200991690158844,
-0.043815888464450836,
-0.1929369866847992,
-0.4884028434753418,
0.26470792293548584,
0.041078999638557434,
0.16328823566436768,
-0.20425941050052643,
-0.13886266946792603,
-0.021051622927188873,
-0.18907111883163452,
-0.1622338891029358,
0.013333149254322052,
0.13976123929023743,
-0.1002766340970993,
0.1611434519290924,
0.11377906799316406,
-0.25634732842445374,
0.17995290458202362,
0.02015606500208378,
0.007480031810700893,
-0.138511523604393,
0.2693670392036438,
-0.05760366469621658,
0.06681808829307556,
-0.036815095692873,
0.0932568684220314,
0.042402610182762146,
-0.19589273631572723,
-0.10610861331224442,
0.5290296077728271,
-0.03096909262239933,
0.04685284197330475,
0.2650735378265381,
0.3803907632827759,
0.3248946964740753,
-0.011337611824274063,
0.5266873836517334,
-0.04401661828160286,
0.32419031858444214,
-0.09702926874160767,
-0.3409501612186432,
0.7555660009384155,
-0.1524326652288437,
0.21270209550857544,
0.1112290471792221,
0.011511115357279778,
0.26559141278266907,
0.002492375671863556,
-0.4044690430164337,
-0.02973879873752594,
0.10320639610290527,
0.0016840025782585144,
0.19528335332870483,
-0.08575361222028732,
-0.326873242855072,
-0.0021084845066070557,
0.34893909096717834,
-0.01389253418892622,
0.1751537322998047,
-0.061336077749729156,
-0.03181485831737518,
0.12014273554086685,
-0.07345372438430786,
0.08592987060546875,
0.5219720602035522,
0.2544083297252655,
0.06123853847384453,
0.23070231080055237,
-0.04146985709667206,
-0.2559097707271576,
0.13679435849189758,
0.22504398226737976,
0.03423584625124931,
0.07031254470348358,
0.08283448219299316,
-0.035455260425806046,
-0.21827271580696106,
-0.05210113525390625,
-0.04135012999176979,
0.016514921560883522,
-0.2833814024925232,
0.28712886571884155,
-0.24826326966285706,
-0.028777193278074265,
0.05715104565024376,
0.13270075619220734,
-0.44999635219573975,
-0.1922510266304016,
0.07581068575382233,
0.08342643082141876,
-0.23478220403194427,
0.13678604364395142,
-0.1147693395614624,
0.4157857894897461,
-0.24178536236286163,
-0.21620948612689972,
0.2557034194469452,
-0.4892723858356476,
-0.12540850043296814,
0.11391930282115936,
0.2904764413833618,
0.12110716104507446,
0.5174883604049683,
0.01821945793926716,
-0.097228042781353,
-0.3355346620082855,
-0.1610652506351471,
0.03558231145143509,
-0.07128286361694336,
0.28297868371009827,
0.09335065633058548,
0.0530732236802578,
-0.06716364622116089,
0.3253515958786011,
0.3937315046787262,
-0.32719188928604126,
0.1934456080198288,
0.17926491796970367,
-0.049717340618371964,
-0.08718876540660858,
-0.35299497842788696,
-0.428215354681015,
-0.43206965923309326,
-0.39198037981987,
0.1926201432943344,
0.013244077563285828,
-0.057436391711235046,
0.18983754515647888,
0.14822180569171906,
0.11652801930904388,
0.005847108084708452,
0.18889978528022766,
-0.18831901252269745,
-0.47609949111938477,
0.1688491404056549,
-0.1892995983362198,
-0.601670503616333,
0.28062066435813904,
0.22950904071331024,
0.16576336324214935,
0.3582720160484314,
-0.4448157548904419,
-0.3781498372554779,
0.07329194247722626,
0.4401059150695801,
0.11024219542741776,
0.33426523208618164,
0.3533637523651123,
-0.059358518570661545,
-0.04304688423871994,
-0.09738723933696747,
0.07812042534351349,
0.19092850387096405,
0.05161754786968231,
-0.12343687564134598,
0.03781848028302193,
0.2629092037677765,
-0.028633318841457367,
0.4023735523223877,
-0.03312084823846817,
0.09678000211715698,
0.22856225073337555,
-0.15662653744220734,
0.7003893256187439,
-0.18450897932052612,
-0.14877161383628845,
-0.018866892904043198,
-0.0512378066778183,
-0.31763994693756104,
0.24771811068058014,
0.020270956680178642,
0.0034449798986315727,
-0.6579136848449707,
-0.030888719484210014,
-0.3640882074832916,
-0.41016680002212524,
0.10232418775558472,
0.12379632890224457,
0.3612007200717926,
0.1131150871515274,
0.2846207618713379,
-0.2655315399169922,
-0.08067977428436279,
-0.08379009366035461,
0.26372382044792175,
0.07059001177549362,
-0.08213330060243607,
-0.2368568778038025,
0.03539109230041504,
-0.3795091509819031,
0.3788212537765503,
-0.12523581087589264,
0.19933481514453888,
-0.049495115876197815,
-0.02056596800684929,
-0.015860944986343384,
-0.16019073128700256,
0.3575392961502075,
-0.3219274878501892,
-0.018434986472129822,
0.30517351627349854,
-0.07237819582223892,
-0.30489084124565125,
0.07500417530536652,
-0.21854591369628906,
-0.01870887540280819,
0.18014949560165405,
0.16951990127563477,
-0.1195448637008667,
-0.300476610660553,
0.016726672649383545,
0.43107348680496216,
-0.2822127938270569,
-0.19584064185619354,
-0.22202469408512115,
-0.1508185714483261,
-0.33539554476737976,
0.011330738663673401,
-0.19399438798427582,
0.0724310427904129,
-0.10425855219364166,
0.17091216146945953,
-0.25316867232322693,
0.16413074731826782,
-0.016891151666641235,
0.112128347158432,
0.12095925211906433,
-0.24639737606048584,
0.24926596879959106,
0.25446486473083496,
0.10754435509443283,
0.3158959746360779,
0.3369899392127991,
-0.057844165712594986,
-0.2881182134151459,
0.18518617749214172,
-0.021638980135321617,
0.3540465831756592,
0.38048797845840454,
-0.1084253191947937,
-0.12979081273078918,
0.15628360211849213,
0.27723103761672974,
-0.4221791923046112,
-0.10582279413938522,
0.1520666927099228,
0.18993507325649261,
-0.1318843960762024,
-0.383070170879364,
0.24210843443870544,
0.10584697127342224,
-0.04281109943985939,
-0.0279097780585289,
0.14056652784347534,
-0.21628832817077637,
0.16577573120594025,
-0.12047498673200607,
0.7463242411613464,
-0.08539465069770813,
0.22619518637657166,
0.2716045081615448,
-0.010598961263895035,
0.4589012563228607,
-0.21827076375484467,
-0.01723409816622734,
-0.029943302273750305,
-0.258078932762146,
-0.001866919919848442,
-0.08380177617073059,
0.4105693995952606,
0.012097213417291641,
-0.1015060544013977,
0.5569251775741577,
0.002353169023990631,
0.2621748745441437,
-0.3156481385231018,
0.2068285346031189,
-0.02626839466392994,
-0.2241598516702652,
-0.5295379757881165,
0.22278490662574768,
0.11169319599866867,
0.09080927073955536,
-0.19659662246704102,
-0.229691281914711,
0.08920583128929138,
0.07330691814422607,
0.020982518792152405,
-0.08815809339284897,
-0.014726663008332253,
0.09104378521442413,
-0.24712520837783813,
-0.011325009167194366,
0.0023112595081329346,
0.11687852442264557,
0.36628931760787964,
0.15408770740032196,
-0.30085885524749756,
0.0407700389623642,
-0.39167171716690063,
0.1758880317211151,
0.04319257661700249,
0.23530197143554688,
0.17323698103427887,
-0.23165854811668396,
-0.22949789464473724,
0.07112304121255875,
-0.09329831600189209,
-0.02298312447965145,
0.4466134309768677,
-0.053458988666534424,
-0.0299997478723526,
-0.2270330935716629,
0.17019742727279663,
0.18720018863677979,
0.17420119047164917,
-0.1272592544555664,
0.16901275515556335,
0.24697495996952057,
0.06463583558797836,
0.33248403668403625,
-0.11856292188167572,
-0.2234358936548233,
-0.2319290190935135,
0.3323865234851837,
-0.14817523956298828,
-0.21637848019599915,
-0.034010156989097595,
0.21277572214603424,
-0.19113382697105408,
-0.3022422790527344,
0.27182891964912415,
0.005080484785139561,
-0.12829357385635376,
0.23439931869506836,
0.38825803995132446,
0.37624305486679077,
-0.1151658371090889,
0.27027755975723267,
0.031987614929676056,
-0.24230697751045227,
-0.07314249873161316,
-0.3703364431858063,
-0.2799697816371918,
0.20772691071033478,
0.4752340018749237,
0.12351374328136444,
0.1477682888507843,
-0.08008360862731934,
0.04716600477695465,
-0.2568989396095276,
-0.41482260823249817,
0.04279736429452896,
-0.057988885790109634,
0.049095239490270615,
0.2588079571723938,
-0.12581142783164978,
0.36290356516838074,
-0.2199748307466507,
0.09443148970603943,
-0.2352960854768753,
-0.3346163332462311,
-0.28382444381713867,
-0.006551915779709816,
0.17334473133087158,
-0.04421618580818176,
-0.3215044438838959,
-0.00920918770134449,
-0.5947601199150085,
-0.333467960357666,
-0.15249459445476532,
0.24984315037727356,
0.41373491287231445,
-0.17987903952598572,
-0.026801351457834244,
-0.19731764495372772,
0.4317832887172699,
-0.17644132673740387,
0.09491538256406784,
0.06300607323646545,
0.2877400517463684,
-0.03423883020877838,
0.2798078656196594,
-0.05040191113948822,
0.03823315352201462,
-0.029126238077878952,
0.10646624863147736,
0.16398176550865173,
0.07929322868585587,
0.39104753732681274,
-0.25404906272888184,
0.14306363463401794,
0.25833624601364136,
0.5726851224899292,
0.19121405482292175,
-0.053906913846731186,
0.18754622340202332,
0.09839490056037903,
0.27155888080596924,
-0.3790972828865051,
0.0600377656519413,
-0.0015361420810222626,
0.10761107504367828,
0.41349053382873535,
0.08459669351577759,
0.32913511991500854,
0.11033880710601807,
-0.09633949398994446,
-0.00930784735828638,
0.3304804265499115,
-0.11191633343696594,
0.22328105568885803,
0.130768820643425,
0.04391832277178764,
0.14179503917694092,
0.03111952915787697,
0.43788212537765503,
-0.007967770099639893,
0.3239942789077759,
-0.33903640508651733,
0.23513783514499664,
0.11554982513189316,
0.1127718836069107,
-0.2816656529903412,
-0.44085264205932617,
0.28789669275283813,
0.030565455555915833,
-0.048553988337516785,
-0.18208658695220947,
-0.24641087651252747,
0.18192613124847412,
-0.5260388851165771,
-0.08454283326864243,
-0.145372211933136,
0.09366624057292938,
-0.07735251635313034,
0.06396128237247467,
-0.4059833288192749,
-0.3086448311805725,
-0.031753409653902054,
0.12277433276176453,
0.07723008841276169,
-0.07368762791156769,
-0.002429582178592682,
0.014509908854961395,
0.11013153940439224,
-0.20595182478427887,
0.1357245147228241,
0.05308622866868973,
0.06743216514587402,
-0.03144565969705582,
0.03158489614725113,
0.2038814127445221,
0.07596303522586823,
0.11629471182823181,
0.4558700621128082,
0.3250943124294281,
0.027959158644080162,
-0.1732877641916275,
0.179121196269989,
-0.017409436404705048,
-0.12570121884346008,
-0.10850192606449127,
0.09677743911743164,
0.027115359902381897,
0.13168063759803772,
0.3657476305961609,
0.18959638476371765,
-0.20768427848815918,
0.3444927930831909,
-0.0761372447013855,
-0.15048252046108246,
-0.45688125491142273,
0.25051915645599365,
0.18464665114879608,
-0.11699196696281433,
-0.10645550489425659,
-0.2874947786331177,
-0.18890100717544556,
-0.10830475389957428,
0.3725976347923279,
0.01947677880525589,
0.11053303629159927,
-0.1914428323507309,
0.12801165878772736,
0.10188023746013641,
0.4391464591026306,
0.1733892560005188,
0.29392507672309875,
-0.2876729965209961,
0.1159934252500534,
-0.8045642971992493,
-0.14938214421272278,
-0.1259216070175171,
0.25739338994026184,
-0.05180852487683296,
0.10918886959552765,
0.08756089955568314,
0.4373384714126587,
0.07446421682834625,
0.15854071080684662,
0.1727094203233719,
-0.18016527593135834,
-0.30030274391174316,
-0.13470026850700378,
-0.0624394416809082,
-0.10021409392356873,
-0.03152802959084511,
-0.31961873173713684,
0.09199744462966919,
-0.3633931875228882,
0.022914960980415344,
0.06731824576854706,
0.20422473549842834,
-0.20613278448581696,
-0.12975512444972992,
0.4416775703430176,
0.043307024985551834,
0.3950859010219574,
0.14411070942878723,
-0.1122506856918335,
-0.05289618298411369,
0.037974946200847626,
-0.06393871456384659,
0.17010372877120972,
-0.03610847517848015,
-0.03288866579532623,
-0.11447639763355255,
-0.14136379957199097,
-0.15950043499469757,
0.2147667109966278,
0.06328528374433517,
-0.01112945657223463,
-0.10949478298425674,
-0.03615782409906387,
0.07759077101945877,
0.13357804715633392,
0.0008277725428342819,
0.04459903761744499,
-0.14516228437423706,
0.21255794167518616,
-0.20440074801445007,
0.03149900585412979,
0.33396250009536743,
-0.034063976258039474,
0.01811281591653824,
-0.3719013035297394,
0.38346004486083984,
0.17423342168331146,
-0.006817854940891266,
-0.493170827627182,
0.2285158932209015,
0.32179874181747437,
-0.16859838366508484,
-0.14056427776813507,
0.3053506016731262,
-0.2599492073059082,
-0.1895597130060196,
0.0004529394209384918,
0.2614341974258423,
-0.2595776915550232,
-0.2974051535129547,
0.05708650127053261,
-0.14739356935024261
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | I opened a PR that allows to reload modules that have already been loaded once even if there's no internet.
Let me know if you know other ways that can make the offline mode experience better. I'd be happy to add them :)
I already note the "freeze" modules option, to prevent local modules updates. It would be a cool feature.
----------
> @mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like?
Indeed `load_dataset` allows to load remote dataset script (squad, glue, etc.) but also you own local ones.
For example if you have a dataset script at `./my_dataset/my_dataset.py` then you can do
```python
load_dataset("./my_dataset")
```
and the dataset script will generate your dataset once and for all.
----------
About I'm looking into having `csv`, `json`, `text`, `pandas` dataset builders already included in the `datasets` package, so that they are available offline by default, as opposed to the other datasets that require the script to be downloaded.
cf #1724 | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 179 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
I opened a PR that allows to reload modules that have already been loaded once even if there's no internet.
Let me know if you know other ways that can make the offline mode experience better. I'd be happy to add them :)
I already note the "freeze" modules option, to prevent local modules updates. It would be a cool feature.
----------
> @mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like?
Indeed `load_dataset` allows to load remote dataset script (squad, glue, etc.) but also you own local ones.
For example if you have a dataset script at `./my_dataset/my_dataset.py` then you can do
```python
load_dataset("./my_dataset")
```
and the dataset script will generate your dataset once and for all.
----------
About I'm looking into having `csv`, `json`, `text`, `pandas` dataset builders already included in the `datasets` package, so that they are available offline by default, as opposed to the other datasets that require the script to be downloaded.
cf #1724 | [
-0.47164812684059143,
0.29022690653800964,
-0.047672007232904434,
0.13344208896160126,
0.2106890231370926,
-0.21222546696662903,
0.5858259201049805,
0.05341675877571106,
0.2833409905433655,
0.18411299586296082,
0.031059516593813896,
0.0326387882232666,
0.0011810194700956345,
0.3333258032798767,
-0.07214386016130447,
-0.058541834354400635,
-0.19054263830184937,
-0.0051049888134002686,
-0.16585852205753326,
0.0827915221452713,
-0.08703474700450897,
-0.17246843874454498,
-0.424715518951416,
-0.11953167617321014,
-0.06756041944026947,
-0.1688150316476822,
-0.024211540818214417,
0.21167266368865967,
-0.19261448085308075,
-0.44537386298179626,
0.2666607201099396,
0.2000293880701065,
0.15709368884563446,
0.42298588156700134,
-0.00010433599527459592,
0.05918869376182556,
0.07977452874183655,
0.012605717405676842,
-0.28293365240097046,
-0.35053789615631104,
-0.2376178801059723,
-0.4724886119365692,
0.24548959732055664,
-0.4179917871952057,
-0.17655575275421143,
-0.03197123855352402,
-0.11496387422084808,
-0.49646514654159546,
0.25497958064079285,
0.33320072293281555,
0.2521955072879791,
0.5795009136199951,
-0.17738179862499237,
-0.25776562094688416,
-0.09307137876749039,
-0.045576050877571106,
-0.2170030176639557,
0.4130170941352844,
0.14518113434314728,
-0.011996584944427013,
-0.09174764901399612,
0.042796723544597626,
-0.20566602051258087,
0.05553554743528366,
0.342639297246933,
0.0692111924290657,
-0.1012876108288765,
-0.07574731111526489,
0.16549375653266907,
0.40968307852745056,
0.4384513795375824,
-0.2788178622722626,
-0.23378786444664001,
-0.3661538362503052,
-0.059990789741277695,
-0.41580575704574585,
0.05799642205238342,
0.084262914955616,
-0.0501420795917511,
0.2703287601470947,
-0.41784974932670593,
-0.2782535254955292,
-0.36316972970962524,
0.18717212975025177,
-0.2958254814147949,
0.08009781688451767,
-0.21904632449150085,
0.05719124153256416,
-0.03457264229655266,
0.12171065807342529,
-0.1603946089744568,
-0.28749728202819824,
0.12319675087928772,
-0.05523347482085228,
-0.24581913650035858,
-0.04832207038998604,
0.1733662635087967,
0.02620813250541687,
0.14559626579284668,
0.10752996802330017,
0.1663132905960083,
0.05547004193067551,
0.006958403624594212,
0.05163685977458954,
0.46850648522377014,
0.2116456925868988,
0.011062368750572205,
-0.20973290503025055,
0.549405574798584,
0.1489723175764084,
0.00905824825167656,
-0.23407518863677979,
0.2657727897167206,
-0.25246548652648926,
0.0911979228258133,
0.07008777558803558,
0.3765208125114441,
-0.3214930295944214,
-0.02298487350344658,
0.03531411662697792,
0.15973246097564697,
-0.06210369989275932,
0.16163797676563263,
0.17477986216545105,
-0.28472480177879333,
0.0129404217004776,
-0.029524818062782288,
0.3609689474105835,
-0.27713361382484436,
-0.3468531370162964,
-0.03897671774029732,
-0.21186411380767822,
-0.17805102467536926,
0.09204471111297607,
0.2455185502767563,
0.030936244875192642,
0.05106057971715927,
-0.014772766269743443,
0.24244064092636108,
-0.03684617951512337,
0.30183887481689453,
-0.08095003664493561,
0.06594777852296829,
0.21205878257751465,
0.11961714923381805,
-0.07656995952129364,
0.12485970556735992,
-0.15601573884487152,
0.006711453199386597,
0.06666764616966248,
-0.051434941589832306,
-0.43861404061317444,
0.23742865025997162,
0.22378657758235931,
-0.6274787783622742,
-0.18716537952423096,
-0.19690203666687012,
0.07779023051261902,
-0.3017686605453491,
-0.17387624084949493,
0.021495379507541656,
0.07558488100767136,
-0.16909322142601013,
-0.2382545918226242,
0.29874926805496216,
0.6010071635246277,
-0.5180039405822754,
0.08190576732158661,
0.04580329731106758,
-0.18163958191871643,
-0.1889687180519104,
0.028321174904704094,
-0.3945119380950928,
0.5864564180374146,
0.003940563648939133,
-0.3889361023902893,
0.567828893661499,
-0.30959415435791016,
-0.30935192108154297,
0.2875797748565674,
-0.18025115132331848,
-0.059503182768821716,
-0.03820326179265976,
0.11968874931335449,
0.4773571491241455,
0.0809495821595192,
-0.007813684642314911,
0.26667484641075134,
-0.07702410221099854,
-0.009542174637317657,
-0.29568150639533997,
-0.2896500825881958,
0.09854287654161453,
0.2965259253978729,
0.27046987414360046,
0.12806937098503113,
0.3454582393169403,
-0.2366921305656433,
0.027660034596920013,
-0.13620023429393768,
0.13635055720806122,
0.09909982234239578,
0.23302774131298065,
0.12394256889820099,
-0.06952318549156189,
-0.1321176290512085,
-0.5115552544593811,
0.3242625296115875,
0.03975103795528412,
0.1621357500553131,
-0.2056601196527481,
-0.15331107378005981,
-0.04016527161002159,
-0.21691973507404327,
-0.13856637477874756,
-0.03778650239109993,
0.12345154583454132,
-0.0895906388759613,
0.08697463572025299,
0.17630678415298462,
-0.2977677285671234,
0.13516120612621307,
-0.018293846398591995,
-0.005147512070834637,
-0.15002180635929108,
0.34001481533050537,
-0.031437307596206665,
0.056506410241127014,
-0.10150112956762314,
0.09041498601436615,
0.012300413101911545,
-0.1740996390581131,
-0.10554547607898712,
0.48379257321357727,
0.04152853786945343,
0.11835486441850662,
0.2707456648349762,
0.42328184843063354,
0.3186860978603363,
0.024552684277296066,
0.5603362321853638,
-0.12719003856182098,
0.3274112343788147,
-0.11851777136325836,
-0.3417673110961914,
0.7027888894081116,
-0.1783437877893448,
0.2728155255317688,
0.11503133177757263,
-0.03400537744164467,
0.20388180017471313,
-0.09402208030223846,
-0.40444105863571167,
-0.0952029898762703,
0.0663551539182663,
0.0030851811170578003,
0.19933992624282837,
0.01687714457511902,
-0.293121874332428,
0.05046219378709793,
0.3374180793762207,
0.013531729578971863,
0.13642269372940063,
-0.060463935136795044,
-0.017177455127239227,
0.11304941028356552,
-0.02549036405980587,
0.13787998259067535,
0.5132736563682556,
0.23082102835178375,
0.043037451803684235,
0.3077920079231262,
0.03528749197721481,
-0.2593405842781067,
0.11889711767435074,
0.16875779628753662,
-0.018509257584810257,
0.12123856693506241,
0.09633899480104446,
-0.011798563413321972,
-0.13999368250370026,
-0.031938426196575165,
0.003812342882156372,
0.059035688638687134,
-0.3146696984767914,
0.2902596890926361,
-0.35456007719039917,
-0.027913106605410576,
0.013022320345044136,
0.13092754781246185,
-0.48070746660232544,
-0.210281640291214,
0.11700591444969177,
0.056921932846307755,
-0.2447335124015808,
0.17129240930080414,
-0.08770693838596344,
0.4514833688735962,
-0.2693449556827545,
-0.26088759303092957,
0.24277788400650024,
-0.5937603712081909,
-0.0655435174703598,
0.08480046689510345,
0.3401409089565277,
0.1822124868631363,
0.5658236145973206,
0.05939904600381851,
-0.1411336362361908,
-0.27103954553604126,
-0.1447024792432785,
0.08929331600666046,
-0.01160760223865509,
0.31521525979042053,
0.10839840769767761,
0.020331837236881256,
0.027070797979831696,
0.4002491235733032,
0.38586100935935974,
-0.29799991846084595,
0.1902172863483429,
0.12723983824253082,
-0.09454536437988281,
-0.03227158263325691,
-0.3383331894874573,
-0.4963887631893158,
-0.39923328161239624,
-0.46776166558265686,
0.17008155584335327,
-0.05277736485004425,
0.010701913386583328,
0.22977864742279053,
0.20387554168701172,
0.11094610393047333,
-0.07051579654216766,
0.11048643290996552,
-0.17224223911762238,
-0.4613296687602997,
0.14505234360694885,
-0.17928141355514526,
-0.49374446272850037,
0.2537621855735779,
0.21924902498722076,
0.1917007565498352,
0.3427464962005615,
-0.5899967551231384,
-0.31778791546821594,
0.10433096438646317,
0.3914318084716797,
0.10402382910251617,
0.2679329514503479,
0.3933202028274536,
-0.07943166792392731,
-0.05855540931224823,
-0.09038524329662323,
0.05749799683690071,
0.20767436921596527,
0.0564015693962574,
-0.10910329967737198,
0.14945590496063232,
0.2685929238796234,
0.016762565821409225,
0.5026161074638367,
-0.07983452081680298,
0.10981656610965729,
0.2587999701499939,
-0.11742237955331802,
0.7056586146354675,
-0.18252336978912354,
-0.16715532541275024,
-0.04138517752289772,
0.014881625771522522,
-0.3247092366218567,
0.17284125089645386,
-0.01798224076628685,
-0.01590672880411148,
-0.6336120367050171,
-0.07981573045253754,
-0.24845203757286072,
-0.45507797598838806,
0.18346770107746124,
0.15974083542823792,
0.32477813959121704,
0.10586151480674744,
0.2193622887134552,
-0.27079689502716064,
-0.025644464418292046,
-0.09192036092281342,
0.2632632851600647,
-0.014952220022678375,
-0.07748997211456299,
-0.250724196434021,
0.1369999498128891,
-0.3115706145763397,
0.29557281732559204,
-0.13525044918060303,
0.21626442670822144,
-0.04390685260295868,
-0.0313425175845623,
0.08267340064048767,
-0.03918430209159851,
0.2991417646408081,
-0.4082178771495819,
-0.09436927735805511,
0.32934948801994324,
-0.021643586456775665,
-0.3531908392906189,
0.07643724977970123,
-0.1722090095281601,
0.0019435365684330463,
0.15991592407226562,
0.15819363296031952,
-0.06794288009405136,
-0.34836310148239136,
-0.006039880216121674,
0.3597087562084198,
-0.2774299383163452,
-0.21776685118675232,
-0.200127974152565,
-0.04233081638813019,
-0.42750784754753113,
-0.005213990807533264,
-0.2545892596244812,
-0.09843575954437256,
-0.08035674691200256,
0.11828817427158356,
-0.15449200570583344,
0.21917590498924255,
-0.13801047205924988,
0.07399687170982361,
0.11023373156785965,
-0.3203084468841553,
0.22734111547470093,
0.2977679669857025,
0.05530084669589996,
0.33093926310539246,
0.35064777731895447,
-0.11811797320842743,
-0.14827975630760193,
0.20862427353858948,
-0.04334672912955284,
0.41138193011283875,
0.485465407371521,
-0.009593876078724861,
-0.08460124582052231,
0.14470815658569336,
0.2892354130744934,
-0.4037904739379883,
-0.1615213304758072,
0.10788006335496902,
0.05929841846227646,
-0.10008516162633896,
-0.46734052896499634,
0.18348971009254456,
-0.040534138679504395,
-0.07383880019187927,
-0.003525126725435257,
0.12941743433475494,
-0.1851622611284256,
0.2416010946035385,
-0.09198220819234848,
0.8122488856315613,
0.026365187019109726,
0.22195403277873993,
0.1739807426929474,
-0.007891014218330383,
0.4734133183956146,
-0.30288606882095337,
-0.04558391124010086,
-0.06026500463485718,
-0.04364343360066414,
0.018221387639641762,
-0.07604048401117325,
0.44108283519744873,
0.01068950816988945,
-0.20546947419643402,
0.4934927225112915,
-0.07494084537029266,
0.2824130654335022,
-0.33753013610839844,
0.10760149359703064,
0.02022388204932213,
-0.22647923231124878,
-0.5203983187675476,
0.20282401144504547,
0.10815128684043884,
0.10281983017921448,
-0.18519315123558044,
-0.24358414113521576,
0.03425302729010582,
0.14930382370948792,
0.00956650823354721,
-0.18984967470169067,
-0.05260535702109337,
0.030810173600912094,
-0.2059032917022705,
0.056067898869514465,
0.0032339785248041153,
0.04502621665596962,
0.3648868203163147,
0.14686298370361328,
-0.3398708999156952,
0.013886934146285057,
-0.35569098591804504,
0.1691974699497223,
0.03607754036784172,
0.17526187002658844,
0.1566656529903412,
-0.19859471917152405,
-0.33446449041366577,
0.0011108741164207458,
-0.11166399717330933,
-0.02555258944630623,
0.4310031533241272,
-0.054841265082359314,
0.0942334309220314,
-0.2805885672569275,
0.17674915492534637,
0.23031090199947357,
0.2608218789100647,
-0.09356167912483215,
0.17464576661586761,
0.21108199656009674,
0.07506036758422852,
0.3884124755859375,
-0.1253613531589508,
-0.2212534099817276,
-0.2144702970981598,
0.3347359895706177,
-0.1247464194893837,
-0.15533901751041412,
-0.08336537331342697,
0.22263531386852264,
-0.1695808470249176,
-0.33650049567222595,
0.302530974149704,
-0.005420566536486149,
-0.22300848364830017,
0.19864125549793243,
0.3504719138145447,
0.29631686210632324,
-0.02601766772568226,
0.20465518534183502,
0.010253559798002243,
-0.18800288438796997,
-0.16794085502624512,
-0.2753778100013733,
-0.3178841173648834,
0.16600756347179413,
0.4533551335334778,
0.1563890278339386,
0.04735712707042694,
-0.09701046347618103,
-0.014807104133069515,
-0.2212059497833252,
-0.42416590452194214,
0.06605011969804764,
-0.06835468113422394,
0.08642937242984772,
0.28571826219558716,
-0.1539197564125061,
0.30052459239959717,
-0.2875231206417084,
0.07204864174127579,
-0.21196849644184113,
-0.42712676525115967,
-0.2759726941585541,
-0.05654663220047951,
0.1780339777469635,
-0.03753377124667168,
-0.32554924488067627,
-0.027078155428171158,
-0.5326859354972839,
-0.31239959597587585,
-0.1282409280538559,
0.2727523148059845,
0.44099557399749756,
-0.1296408623456955,
0.005306391976773739,
-0.2117782086133957,
0.5039591193199158,
-0.14663295447826385,
0.16231203079223633,
0.02962963655591011,
0.33178889751434326,
0.008961871266365051,
0.20383214950561523,
-0.09911543875932693,
0.0761970579624176,
0.08180339634418488,
0.15743789076805115,
0.21227335929870605,
0.12287309020757675,
0.44521552324295044,
-0.1462508887052536,
0.15636761486530304,
0.24989186227321625,
0.5009359121322632,
0.16290181875228882,
-0.07047175616025925,
0.1216588020324707,
0.20804792642593384,
0.26383355259895325,
-0.33409354090690613,
0.006575353909283876,
0.07387252897024155,
0.14300957322120667,
0.3401827812194824,
0.14444880187511444,
0.45269379019737244,
0.0953586995601654,
0.005179122090339661,
0.01263817772269249,
0.34352028369903564,
-0.07535018771886826,
0.2237221598625183,
0.073891781270504,
0.04698553308844566,
0.059664949774742126,
-0.037816114723682404,
0.3901124894618988,
0.04712498560547829,
0.2782624661922455,
-0.3217485547065735,
0.2200014889240265,
0.08603930473327637,
0.15097463130950928,
-0.24488919973373413,
-0.47545698285102844,
0.41145628690719604,
0.07126808166503906,
-0.1015760749578476,
-0.18773990869522095,
-0.2861897647380829,
0.2244446575641632,
-0.3701643645763397,
-0.05365966260433197,
-0.07750031352043152,
0.08453778922557831,
-0.06990141421556473,
0.08859492838382721,
-0.38110947608947754,
-0.3510325849056244,
-0.07359438389539719,
0.11835096776485443,
0.052844516932964325,
-0.02411092072725296,
0.027261532843112946,
-0.0347059965133667,
0.09389731287956238,
-0.31021884083747864,
0.14470449090003967,
0.04021739959716797,
0.09825898706912994,
-0.0307619608938694,
0.03108103945851326,
0.18606790900230408,
0.02186768501996994,
0.14004531502723694,
0.43245452642440796,
0.28055721521377563,
0.0885331779718399,
-0.18219846487045288,
0.17896783351898193,
0.009646521881222725,
-0.06145717203617096,
-0.1308431327342987,
0.07283801585435867,
0.006597116589546204,
0.11478908360004425,
0.3294236958026886,
0.15862907469272614,
-0.1999017298221588,
0.3588384985923767,
-0.13050371408462524,
-0.22178857028484344,
-0.4970715641975403,
0.23960018157958984,
0.23929286003112793,
-0.12374526262283325,
-0.05840776860713959,
-0.2656489908695221,
-0.2500070631504059,
-0.2632143199443817,
0.44732892513275146,
-0.009919579140841961,
0.14950761198997498,
-0.23250706493854523,
0.11047737300395966,
-0.003966774791479111,
0.4872245192527771,
0.13599269092082977,
0.2626900374889374,
-0.24672022461891174,
0.1591033786535263,
-0.8487075567245483,
-0.10102509707212448,
-0.13505752384662628,
0.26252350211143494,
-0.0060989586636424065,
0.07039327919483185,
0.12941983342170715,
0.497467041015625,
0.07324065268039703,
0.1348399519920349,
0.19894078373908997,
-0.17261481285095215,
-0.31127309799194336,
-0.15946760773658752,
-0.0758785605430603,
-0.0788235068321228,
-0.06832215189933777,
-0.24027395248413086,
0.06171324476599693,
-0.34754127264022827,
-0.0013596899807453156,
0.02756221406161785,
0.10042738914489746,
-0.08791491389274597,
-0.012023665010929108,
0.5188177824020386,
0.028613978996872902,
0.3453909456729889,
0.3027183711528778,
-0.1201028972864151,
-0.107994943857193,
0.07161661237478256,
-0.02325798198580742,
0.058346495032310486,
-0.03804278001189232,
-0.05177425965666771,
-0.19845154881477356,
-0.21233908832073212,
-0.23148562014102936,
0.22407978773117065,
0.08032932877540588,
0.023161910474300385,
-0.07774896919727325,
-0.050850167870521545,
0.09004468470811844,
0.1569572240114212,
-0.0631006509065628,
0.034296609461307526,
-0.09619152545928955,
0.24042804539203644,
-0.25288599729537964,
0.08049558848142624,
0.3342810273170471,
0.01795496791601181,
0.017515115439891815,
-0.3761807084083557,
0.3429667055606842,
0.23217886686325073,
0.017630482092499733,
-0.5226219892501831,
0.09299878031015396,
0.3145463764667511,
-0.15647205710411072,
-0.04333724081516266,
0.32584619522094727,
-0.2541511058807373,
-0.1967097669839859,
0.0114058256149292,
0.2230951339006424,
-0.27748194336891174,
-0.2227727472782135,
0.06501626968383789,
-0.11797737330198288
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
You can now use them offline
```python
datasets = load_dataset('text', data_files=data_files)
```
We'll do a new release soon | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 38 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
You can now use them offline
```python
datasets = load_dataset('text', data_files=data_files)
```
We'll do a new release soon | [
-0.4490845501422882,
0.20950791239738464,
-0.059819020330905914,
0.12935009598731995,
0.26219409704208374,
-0.13128599524497986,
0.5469669699668884,
0.09492601454257965,
0.31543922424316406,
0.22943252325057983,
0.051040053367614746,
-0.0031581243965774775,
0.04794223979115486,
0.4036749601364136,
-0.1032213419675827,
-0.11917740106582642,
-0.10968149453401566,
0.08062488585710526,
-0.17092680931091309,
0.09250278770923615,
-0.18166480958461761,
-0.0897320806980133,
-0.37507617473602295,
-0.02556147426366806,
-0.10498370975255966,
-0.1746591180562973,
-0.10713962465524673,
0.15669569373130798,
-0.21037445962429047,
-0.33272019028663635,
0.24911345541477203,
0.11758793890476227,
0.16342896223068237,
0.4241688847541809,
-0.00009998220775742084,
0.042135223746299744,
0.10690423846244812,
0.03799441456794739,
-0.22034737467765808,
-0.4199167490005493,
-0.19817602634429932,
-0.4793080985546112,
0.24183820188045502,
-0.4018024802207947,
-0.17578232288360596,
-0.1275016814470291,
-0.05988422781229019,
-0.48078837990760803,
0.29747068881988525,
0.342646062374115,
0.29182079434394836,
0.535609245300293,
-0.08033956587314606,
-0.28139054775238037,
-0.12166253477334976,
-0.05861818790435791,
-0.17785830795764923,
0.4252842664718628,
0.07335694134235382,
-0.012379329651594162,
-0.08388292044401169,
0.088844433426857,
-0.15316373109817505,
0.09564022719860077,
0.3111796975135803,
0.07130667567253113,
-0.09246522933244705,
-0.15283237397670746,
0.20285534858703613,
0.3944031000137329,
0.4603176712989807,
-0.3109177350997925,
-0.29497507214546204,
-0.34113916754722595,
-0.04790140688419342,
-0.43618783354759216,
0.12745627760887146,
0.14417313039302826,
0.009027061983942986,
0.2339836061000824,
-0.36327221989631653,
-0.2975686490535736,
-0.3418594300746918,
0.16949376463890076,
-0.28169819712638855,
0.018106572329998016,
-0.2516750395298004,
0.04136895760893822,
-0.08324234187602997,
0.07528586685657501,
-0.15514999628067017,
-0.3205272853374481,
0.09862121939659119,
-0.07936349511146545,
-0.18882761895656586,
-0.016531314700841904,
0.15342804789543152,
0.008187972009181976,
0.12179789692163467,
0.07514916360378265,
0.15253691375255585,
-0.006045527756214142,
0.09262797981500626,
0.06802235543727875,
0.44271424412727356,
0.31814631819725037,
0.01885535567998886,
-0.24477268755435944,
0.5638324618339539,
0.06074921786785126,
-0.004647690802812576,
-0.2882612943649292,
0.3297569751739502,
-0.28732728958129883,
0.03615626320242882,
-0.01608632504940033,
0.3358892798423767,
-0.2712709903717041,
-0.09168325364589691,
0.0604369081556797,
0.14952147006988525,
-0.08216485381126404,
0.15366904437541962,
0.2071382701396942,
-0.2203720211982727,
0.02957773022353649,
0.034621015191078186,
0.39587992429733276,
-0.2415049821138382,
-0.2347968965768814,
-0.10894785821437836,
-0.10661876201629639,
-0.1055867001414299,
0.07447027415037155,
0.18881727755069733,
-0.013108719140291214,
0.12140966206789017,
-0.04023933783173561,
0.21052266657352448,
-0.03415454179048538,
0.2786369323730469,
-0.15745005011558533,
0.04799904674291611,
0.25003811717033386,
0.18725910782814026,
-0.10623445361852646,
0.05678114295005798,
-0.23557204008102417,
0.038120366632938385,
-0.0035783573985099792,
-0.04362691938877106,
-0.40498748421669006,
0.09631049633026123,
0.2798316776752472,
-0.5623056292533875,
-0.16805537045001984,
-0.2548445165157318,
0.12977062165737152,
-0.2823045551776886,
-0.09712646901607513,
0.020675212144851685,
-0.00974329560995102,
-0.14495135843753815,
-0.19830796122550964,
0.23908263444900513,
0.5462026596069336,
-0.4452946186065674,
0.08768711984157562,
0.12178301066160202,
-0.18718354403972626,
-0.17599308490753174,
0.06420409679412842,
-0.3431008458137512,
0.534393310546875,
0.05175917595624924,
-0.2778847813606262,
0.5229827761650085,
-0.35826075077056885,
-0.23452119529247284,
0.28883886337280273,
-0.1610284149646759,
-0.14413940906524658,
-0.06670642644166946,
0.04982805997133255,
0.38998404145240784,
0.1192971020936966,
0.00014355778694152832,
0.2430986762046814,
-0.05644892156124115,
0.019568534567952156,
-0.25364306569099426,
-0.3235277533531189,
0.1407233625650406,
0.24940134584903717,
0.30652132630348206,
0.12399125844240189,
0.27923378348350525,
-0.2578682601451874,
-0.04059872031211853,
-0.26234567165374756,
0.1654425859451294,
0.1579168438911438,
0.20993174612522125,
0.10231678187847137,
-0.048367004841566086,
-0.20590868592262268,
-0.47607558965682983,
0.225261390209198,
0.03370027244091034,
0.23208844661712646,
-0.2302199751138687,
-0.14966154098510742,
-0.008371889591217041,
-0.17970867455005646,
-0.1597646325826645,
-0.042528148740530014,
0.1691495031118393,
-0.13886691629886627,
0.18496759235858917,
0.17605197429656982,
-0.3189760744571686,
0.14390842616558075,
-0.05626591295003891,
0.02598668821156025,
-0.1155400425195694,
0.2796730697154999,
-0.08094602823257446,
0.0232008658349514,
0.04264067858457565,
0.08386653661727905,
-0.00707419216632843,
-0.18599192798137665,
-0.10737372189760208,
0.49203917384147644,
-0.060011547058820724,
0.05086232349276543,
0.3152642548084259,
0.36137938499450684,
0.3560878038406372,
0.03976242616772652,
0.5095089077949524,
-0.12183918058872223,
0.31119754910469055,
-0.07704310119152069,
-0.33568909764289856,
0.6987398266792297,
-0.14568398892879486,
0.20384901762008667,
0.0956835150718689,
0.00291401706635952,
0.3142004609107971,
-0.0028086602687835693,
-0.3935573697090149,
-0.06533809751272202,
0.07977060228586197,
-0.04444025829434395,
0.21489574015140533,
-0.06780747324228287,
-0.3889353275299072,
-0.02299824357032776,
0.37562450766563416,
-0.0001716185361146927,
0.1845306158065796,
-0.00014184415340423584,
0.01949511095881462,
0.06274524331092834,
-0.0596938282251358,
0.08411999046802521,
0.5141693353652954,
0.23863887786865234,
0.03796849399805069,
0.25228503346443176,
-0.0703067034482956,
-0.31523197889328003,
0.13953140377998352,
0.2154901772737503,
0.009247079491615295,
0.07897698879241943,
0.0899747684597969,
-0.003388029523193836,
-0.30997106432914734,
-0.053568728268146515,
-0.029213394969701767,
0.08147139847278595,
-0.2326800376176834,
0.24594472348690033,
-0.3154214918613434,
-0.05202064663171768,
0.04224160313606262,
0.11195539683103561,
-0.44370582699775696,
-0.23124200105667114,
0.0868251770734787,
0.03582873195409775,
-0.2842276990413666,
0.14750032126903534,
-0.08974213898181915,
0.452481210231781,
-0.20497041940689087,
-0.13876186311244965,
0.1279342770576477,
-0.5095138549804688,
-0.10333145409822464,
0.13387081027030945,
0.3391275703907013,
0.14795804023742676,
0.49925342202186584,
0.008695371448993683,
-0.07728921622037888,
-0.2907150983810425,
-0.18749657273292542,
0.06619907170534134,
-0.08808539807796478,
0.31891876459121704,
0.06686339527368546,
0.0481230765581131,
-0.04875709116458893,
0.2254350334405899,
0.41934752464294434,
-0.3061971664428711,
0.17071345448493958,
0.08558648079633713,
-0.05209856107831001,
-0.1553381234407425,
-0.34591832756996155,
-0.48720505833625793,
-0.4130057394504547,
-0.4035462439060211,
0.2704868018627167,
0.026738349348306656,
-0.029248960316181183,
0.12431110441684723,
0.15803849697113037,
0.100103460252285,
-0.017612280324101448,
0.20505569875240326,
-0.21885597705841064,
-0.4933127462863922,
0.12404075264930725,
-0.23167641460895538,
-0.5781071782112122,
0.20558783411979675,
0.19681020081043243,
0.1813315749168396,
0.23949767649173737,
-0.4866483211517334,
-0.3747948408126831,
0.042255815118551254,
0.39738598465919495,
0.18707534670829773,
0.31775128841400146,
0.36600643396377563,
-0.024660833179950714,
-0.07663118094205856,
-0.0784323662519455,
0.0246603824198246,
0.20007316768169403,
0.09790147095918655,
-0.12540310621261597,
0.07419029623270035,
0.31684932112693787,
-0.059534117579460144,
0.4317931532859802,
-0.01110884826630354,
0.04961509257555008,
0.2642008662223816,
-0.11141545325517654,
0.6812878847122192,
-0.2694686949253082,
-0.14404286444187164,
0.013288275338709354,
-0.05878697335720062,
-0.2512553930282593,
0.21060693264007568,
0.01576477847993374,
-0.036257512867450714,
-0.6542543172836304,
-0.00970429927110672,
-0.4030832350254059,
-0.3856448531150818,
0.08409055322408676,
0.1315925121307373,
0.3249270021915436,
0.12207883596420288,
0.23257982730865479,
-0.28019681572914124,
0.007008480839431286,
-0.07424575090408325,
0.24773117899894714,
0.06175938993692398,
-0.09989454597234726,
-0.2681439220905304,
0.009503480046987534,
-0.3775533437728882,
0.33664876222610474,
-0.12583878636360168,
0.2580752968788147,
-0.07711329311132431,
-0.030522342771291733,
0.007170073688030243,
-0.12932005524635315,
0.3594416677951813,
-0.3762824833393097,
-0.16146543622016907,
0.28913092613220215,
-0.09685607999563217,
-0.27328595519065857,
0.08449035882949829,
-0.19723452627658844,
0.049610674381256104,
0.14479732513427734,
0.2760511636734009,
-0.0842924490571022,
-0.30760011076927185,
0.061062153428792953,
0.35047999024391174,
-0.2497546672821045,
-0.18823876976966858,
-0.17179147899150848,
-0.1545335352420807,
-0.32993844151496887,
0.05285540223121643,
-0.2317129522562027,
0.0491185262799263,
-0.08698130398988724,
0.1136053055524826,
-0.1949666291475296,
0.15583673119544983,
-0.06425999104976654,
0.09747330844402313,
0.07337173074483871,
-0.27163925766944885,
0.22727882862091064,
0.23076939582824707,
0.11610481142997742,
0.3351893126964569,
0.3377740979194641,
-0.123374342918396,
-0.24711540341377258,
0.18110862374305725,
-0.056474603712558746,
0.3620418310165405,
0.44655096530914307,
-0.07299037277698517,
-0.0975193902850151,
0.15274794399738312,
0.27581101655960083,
-0.42008206248283386,
-0.14561913907527924,
0.20552468299865723,
0.17815130949020386,
-0.06869231164455414,
-0.3760145604610443,
0.24424225091934204,
0.11299110949039459,
-0.05332091450691223,
0.015025027096271515,
0.1230333149433136,
-0.18846212327480316,
0.22140288352966309,
-0.059303514659404755,
0.7759802341461182,
-0.06803829967975616,
0.15732866525650024,
0.22853204607963562,
-0.0460263155400753,
0.48079293966293335,
-0.3189847469329834,
0.017278632149100304,
-0.040138088166713715,
-0.1941189169883728,
0.003633325919508934,
-0.10702276229858398,
0.4337184429168701,
-0.041574880480766296,
-0.07330714166164398,
0.5114350914955139,
0.04939211905002594,
0.3181031346321106,
-0.3153335750102997,
0.2438226044178009,
-0.07387746870517731,
-0.20791150629520416,
-0.5192403793334961,
0.2445126473903656,
0.11848176270723343,
0.08330361545085907,
-0.2140757143497467,
-0.24249319732189178,
0.07302744686603546,
0.04494982212781906,
-0.0016652271151542664,
-0.16838806867599487,
0.024412184953689575,
0.09009137749671936,
-0.16062778234481812,
-0.026860032230615616,
-0.010151385329663754,
0.10606518387794495,
0.43753230571746826,
0.136661559343338,
-0.32997769117355347,
0.007785258814692497,
-0.39497196674346924,
0.157768115401268,
0.026052430272102356,
0.20851373672485352,
0.20681284368038177,
-0.21949368715286255,
-0.2341149002313614,
0.019460927695035934,
-0.11119160056114197,
-0.04316320642828941,
0.3716807961463928,
-0.09794723987579346,
-0.07604029774665833,
-0.24627238512039185,
0.18239718675613403,
0.20293045043945312,
0.1959373950958252,
-0.11741586029529572,
0.20119602978229523,
0.21460215747356415,
0.12221897393465042,
0.35258105397224426,
-0.1376955211162567,
-0.20146793127059937,
-0.29379090666770935,
0.32053065299987793,
-0.08456266671419144,
-0.17774781584739685,
-0.07223263382911682,
0.2106572836637497,
-0.23534424602985382,
-0.31381577253341675,
0.2293105125427246,
0.0463181734085083,
-0.11343971639871597,
0.2572034001350403,
0.33158865571022034,
0.24621345102787018,
-0.1465514898300171,
0.26909303665161133,
0.07185506820678711,
-0.1856536865234375,
-0.07777852565050125,
-0.32748040556907654,
-0.3413892984390259,
0.2560737729072571,
0.4513776898384094,
0.15582330524921417,
0.1147611066699028,
-0.0552724190056324,
0.08663783222436905,
-0.19717229902744293,
-0.44087526202201843,
0.06798611581325531,
-0.10292511433362961,
0.06602901220321655,
0.24939417839050293,
-0.17308056354522705,
0.3766627013683319,
-0.19028568267822266,
0.10507412254810333,
-0.17152896523475647,
-0.33767378330230713,
-0.3105427622795105,
0.0400695763528347,
0.14592796564102173,
-0.012359149754047394,
-0.29672861099243164,
-0.0252780020236969,
-0.5543745160102844,
-0.3203279376029968,
-0.13491718471050262,
0.208537295460701,
0.4151889383792877,
-0.19135208427906036,
0.027603309601545334,
-0.18675008416175842,
0.37407463788986206,
-0.03890640288591385,
0.08199302852153778,
0.03259168192744255,
0.30306392908096313,
-0.003083073301240802,
0.24330125749111176,
-0.029512878507375717,
0.043057575821876526,
0.02539423294365406,
0.10726100951433182,
0.08517048507928848,
0.13141794502735138,
0.41547685861587524,
-0.22441540658473969,
0.1076868325471878,
0.2965518832206726,
0.548305869102478,
0.2145422399044037,
-0.0864294171333313,
0.18920165300369263,
0.16145554184913635,
0.30012884736061096,
-0.3635789155960083,
0.003281650599092245,
0.02434028685092926,
0.1369246393442154,
0.36103978753089905,
0.06150859221816063,
0.4126151204109192,
0.022325843572616577,
-0.0799301415681839,
0.02209562063217163,
0.32851046323776245,
-0.10955953598022461,
0.22453075647354126,
0.12351566553115845,
0.06353975832462311,
0.10752555727958679,
0.08228578418493271,
0.4752016067504883,
0.016164183616638184,
0.33805131912231445,
-0.27611106634140015,
0.19018791615962982,
0.035806894302368164,
0.16101031005382538,
-0.19966024160385132,
-0.38033327460289,
0.37358322739601135,
0.012612998485565186,
-0.09095603227615356,
-0.227502703666687,
-0.22773632407188416,
0.25177255272865295,
-0.4506409466266632,
-0.06101040169596672,
-0.17156477272510529,
0.1333201825618744,
-0.12181384116411209,
0.024879612028598785,
-0.3979059159755707,
-0.31764018535614014,
0.015623562037944794,
0.12472589313983917,
0.07117865979671478,
-0.048028118908405304,
0.006253153085708618,
-0.04222708195447922,
0.07728687673807144,
-0.186949223279953,
0.19665637612342834,
-0.044591858983039856,
0.09621111303567886,
-0.010903432965278625,
0.02591794729232788,
0.22085562348365784,
-0.005506724119186401,
0.05313067510724068,
0.49758654832839966,
0.33803167939186096,
0.04152767360210419,
-0.23034986853599548,
0.14561493694782257,
-0.05220053717494011,
-0.1474350541830063,
-0.10493677854537964,
0.1791229248046875,
0.03733127564191818,
0.11591728031635284,
0.37948840856552124,
0.208116814494133,
-0.2256065309047699,
0.39586570858955383,
-0.11642156541347504,
-0.11571669578552246,
-0.4289548993110657,
0.23676154017448425,
0.21513396501541138,
-0.1547233909368515,
-0.04183465987443924,
-0.30537277460098267,
-0.1934448778629303,
-0.16616201400756836,
0.4117182493209839,
-0.0004996028728783131,
0.13323190808296204,
-0.25208836793899536,
0.14978736639022827,
0.10071942210197449,
0.4505884349346161,
0.18467432260513306,
0.24237540364265442,
-0.2392035722732544,
0.07929609715938568,
-0.6985384821891785,
-0.16707760095596313,
-0.1281273514032364,
0.32637637853622437,
-0.07358361780643463,
0.10575492680072784,
0.1115695983171463,
0.4124388098716736,
-0.006309300661087036,
0.17601291835308075,
0.05969749391078949,
-0.21316906809806824,
-0.3156404197216034,
-0.0660589188337326,
-0.12220019102096558,
-0.12911835312843323,
0.007462684065103531,
-0.22769248485565186,
0.14308103919029236,
-0.33697667717933655,
0.03819753974676132,
0.0014568939805030823,
0.22137930989265442,
-0.17708605527877808,
-0.1268349438905716,
0.4185495376586914,
0.10407913476228714,
0.3364277482032776,
0.1634533405303955,
-0.08263330906629562,
-0.046754930168390274,
-0.002985680941492319,
-0.06484032422304153,
0.1943533718585968,
-0.07710349559783936,
-0.03476591780781746,
-0.16950295865535736,
-0.17485740780830383,
-0.16514228284358978,
0.19062547385692596,
0.04054117202758789,
0.02373817004263401,
-0.14283756911754608,
-0.049061499536037445,
0.05873573571443558,
0.061684876680374146,
0.052843283861875534,
0.08251363784074783,
-0.11660310626029968,
0.21324710547924042,
-0.16736581921577454,
0.01565052755177021,
0.3196123540401459,
-0.06937649846076965,
0.009910684078931808,
-0.3681204319000244,
0.2837968170642853,
0.2504257559776306,
-0.03425586223602295,
-0.4602257013320923,
0.1561269760131836,
0.29614248871803284,
-0.183213472366333,
-0.15913575887680054,
0.29707828164100647,
-0.2199123054742813,
-0.18535830080509186,
-0.050660718232393265,
0.1897985339164734,
-0.22448891401290894,
-0.2536657452583313,
0.013835836201906204,
-0.159210205078125
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | @albertvillanova
datasets version: 2.10.1
I load_dataset and save_to_disk sucessfully on windows10, and I copy the dataset dir
into a ubuntu system, and when I load_from_disk(dir), something weird happens:
```
load_from_disk('/LLM/data/wiki')
File "/usr/local/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1874, in load_from_disk
return DatasetDict.load_from_disk(dataset_path, keep_in_memory=keep_in_memory, storage_options=storage_options)
File "/usr/local/miniconda3/lib/python3.8/site-packages/datasets/dataset_dict.py", line 1309, in load_from_disk
dataset_dict[k] = Dataset.load_from_disk(
File "/usr/local/miniconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1543, in load_from_disk
fs_token_paths = fsspec.get_fs_token_paths(dataset_path, storage_options=storage_options)
File "/usr/local/miniconda3/lib/python3.8/site-packages/fsspec/core.py", line 610, in get_fs_token_paths
chain = _un_chain(urlpath0, storage_options or {})
File "/usr/local/miniconda3/lib/python3.8/site-packages/fsspec/core.py", line 325, in _un_chain
cls = get_filesystem_class(protocol)
File "/usr/local/miniconda3/lib/python3.8/site-packages/fsspec/registry.py", line 232, in get_filesystem_class
raise ValueError(f"Protocol not known: {protocol}")
ValueError: Protocol not known: /LLM/data/wiki
```
It seems that something went wrong on the arrow file?
How can I solve this , since currently I can not save_to_disk on ubuntu system | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 122 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
@albertvillanova
datasets version: 2.10.1
I load_dataset and save_to_disk sucessfully on windows10, and I copy the dataset dir
into a ubuntu system, and when I load_from_disk(dir), something weird happens:
```
load_from_disk('/LLM/data/wiki')
File "/usr/local/miniconda3/lib/python3.8/site-packages/datasets/load.py", line 1874, in load_from_disk
return DatasetDict.load_from_disk(dataset_path, keep_in_memory=keep_in_memory, storage_options=storage_options)
File "/usr/local/miniconda3/lib/python3.8/site-packages/datasets/dataset_dict.py", line 1309, in load_from_disk
dataset_dict[k] = Dataset.load_from_disk(
File "/usr/local/miniconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1543, in load_from_disk
fs_token_paths = fsspec.get_fs_token_paths(dataset_path, storage_options=storage_options)
File "/usr/local/miniconda3/lib/python3.8/site-packages/fsspec/core.py", line 610, in get_fs_token_paths
chain = _un_chain(urlpath0, storage_options or {})
File "/usr/local/miniconda3/lib/python3.8/site-packages/fsspec/core.py", line 325, in _un_chain
cls = get_filesystem_class(protocol)
File "/usr/local/miniconda3/lib/python3.8/site-packages/fsspec/registry.py", line 232, in get_filesystem_class
raise ValueError(f"Protocol not known: {protocol}")
ValueError: Protocol not known: /LLM/data/wiki
```
It seems that something went wrong on the arrow file?
How can I solve this , since currently I can not save_to_disk on ubuntu system | [
-0.5006126165390015,
0.293903112411499,
-0.014487328939139843,
0.19085446000099182,
0.2995647192001343,
-0.020032793283462524,
0.5612807273864746,
0.017048368230462074,
0.223615363240242,
0.21794316172599792,
-0.025961294770240784,
0.07420795410871506,
0.04964810609817505,
0.19785015285015106,
-0.15376195311546326,
0.0023218579590320587,
-0.12688124179840088,
0.004654355347156525,
-0.21990370750427246,
0.027505621314048767,
-0.23770573735237122,
-0.0256276223808527,
-0.4360056519508362,
-0.12980026006698608,
-0.0947675034403801,
-0.2921588718891144,
-0.1284722089767456,
0.2521870732307434,
-0.1592574268579483,
-0.34306660294532776,
0.271135151386261,
0.047836996614933014,
0.18990550935268402,
0.5136016011238098,
-0.00010723852028604597,
0.028385646641254425,
0.10707521438598633,
0.04766375571489334,
-0.27477172017097473,
-0.346194326877594,
-0.21414366364479065,
-0.5285133719444275,
0.16257216036319733,
-0.41495010256767273,
-0.056048374623060226,
0.03399607539176941,
-0.14868780970573425,
-0.5413678288459778,
0.2377937138080597,
0.32255518436431885,
0.24256156384944916,
0.5615043640136719,
-0.20780639350414276,
-0.25431475043296814,
-0.12494795769453049,
-0.11060260236263275,
-0.1704605668783188,
0.4943785071372986,
0.05728556960821152,
-0.09148738533258438,
-0.03360404819250107,
0.06986762583255768,
-0.17844898998737335,
0.021269256249070168,
0.3085792362689972,
0.08876432478427887,
-0.03858935832977295,
-0.14099635183811188,
0.28014153242111206,
0.4465644359588623,
0.4884013831615448,
-0.32901203632354736,
-0.24460239708423615,
-0.3243929147720337,
0.045788154006004333,
-0.3200405240058899,
0.12694042921066284,
0.18377679586410522,
-0.007926525548100471,
0.16087958216667175,
-0.42105603218078613,
-0.23143427073955536,
-0.28959593176841736,
0.13945141434669495,
-0.3120788335800171,
0.020215220749378204,
-0.25969505310058594,
0.06484866887331009,
-0.1149802953004837,
0.1557641327381134,
-0.07896841317415237,
-0.38088804483413696,
0.05630956590175629,
-0.07525870949029922,
-0.23681683838367462,
0.080264613032341,
0.06582729518413544,
0.07709352672100067,
0.07678131014108658,
0.08137369155883789,
0.3158884346485138,
-0.09616050869226456,
0.15360450744628906,
0.06854994595050812,
0.43968260288238525,
0.29305410385131836,
-0.03545543551445007,
-0.1955249309539795,
0.543041467666626,
0.06538724899291992,
0.05947672203183174,
-0.25610533356666565,
0.2161368727684021,
-0.29808828234672546,
0.16622890532016754,
0.002054942771792412,
0.4182395935058594,
-0.223012313246727,
-0.25102898478507996,
0.024845080450177193,
0.20012524724006653,
-0.006816239096224308,
0.14070351421833038,
0.2083859145641327,
-0.2281007617712021,
0.0552668571472168,
-0.026282677426934242,
0.40947723388671875,
-0.3269050121307373,
-0.12250814586877823,
-0.07309909164905548,
-0.2480773776769638,
-0.0902886614203453,
0.05597580969333649,
0.21798895299434662,
-0.07636392116546631,
0.06066601723432541,
0.019267886877059937,
0.12389837205410004,
-0.04722374677658081,
0.25425097346305847,
-0.10069772601127625,
0.055127665400505066,
0.2617943584918976,
0.2154679000377655,
0.08185449987649918,
0.09955760091543198,
-0.2744542360305786,
0.010215923190116882,
0.09517616033554077,
-0.15148472785949707,
-0.24084965884685516,
0.09050415456295013,
0.27075573801994324,
-0.5637912154197693,
-0.13989965617656708,
-0.1983676254749298,
0.04863965883851051,
-0.14979436993598938,
-0.13746418058872223,
0.04952692613005638,
-0.08131574839353561,
-0.22731979191303253,
-0.2543683350086212,
0.29221251606941223,
0.566800594329834,
-0.5922080278396606,
0.13108789920806885,
0.08867640793323517,
-0.18894322216510773,
-0.11424276977777481,
0.022243324667215347,
-0.23916153609752655,
0.5093852877616882,
-0.09355340152978897,
-0.17066717147827148,
0.40881165862083435,
-0.41761311888694763,
-0.3719935715198517,
0.2924875319004059,
-0.1913783699274063,
-0.09808862954378128,
-0.11913933604955673,
0.09788930416107178,
0.5338796377182007,
0.0364680215716362,
-0.012367062270641327,
0.22405540943145752,
-0.026674432680010796,
-0.03737160190939903,
-0.28976792097091675,
-0.19688934087753296,
0.174309641122818,
0.1746210902929306,
0.22430409491062164,
0.16417479515075684,
0.43061310052871704,
-0.0719534382224083,
0.03168877214193344,
-0.1557723730802536,
0.14012832939624786,
0.18054327368736267,
0.23491834104061127,
0.03461303189396858,
-0.017912037670612335,
-0.13348236680030823,
-0.4318321943283081,
0.3012319803237915,
0.05749915540218353,
0.09143975377082825,
-0.21482877433300018,
-0.0971066802740097,
-0.02166777476668358,
-0.12789979577064514,
-0.2068198174238205,
0.032201070338487625,
0.12145395576953888,
-0.11707253754138947,
0.1381341814994812,
0.21547946333885193,
-0.17212867736816406,
0.18737727403640747,
-0.15298013389110565,
-0.013866422697901726,
-0.21071739494800568,
0.3085578978061676,
-0.09160366654396057,
0.06233663484454155,
-0.10356956720352173,
0.06342459470033646,
0.038116391748189926,
-0.15860235691070557,
-0.11286630481481552,
0.5315651297569275,
-0.04211558774113655,
0.10153600573539734,
0.1585462987422943,
0.24485093355178833,
0.31044644117355347,
-0.04031241685152054,
0.5726787447929382,
0.03988082706928253,
0.33929187059402466,
-0.17557930946350098,
-0.2715820074081421,
0.6267721056938171,
-0.23915939033031464,
0.22974130511283875,
0.06357485055923462,
0.031931258738040924,
0.22013860940933228,
0.07782603800296783,
-0.38654324412345886,
-0.10399198532104492,
0.09322482347488403,
0.10982877016067505,
0.30544137954711914,
-0.11654898524284363,
-0.20471735298633575,
0.005317240953445435,
0.3635227680206299,
-0.0900297462940216,
0.22184979915618896,
-0.015032649040222168,
-0.14987197518348694,
0.1336221992969513,
-0.026814209297299385,
0.2088596671819687,
0.6478060483932495,
0.18355856835842133,
0.1449224203824997,
0.26712319254875183,
-0.10344181209802628,
-0.30407610535621643,
0.1780361831188202,
0.28569120168685913,
0.025021493434906006,
0.16146355867385864,
0.07016272842884064,
0.028675934299826622,
-0.19403934478759766,
0.02123059332370758,
-0.030309878289699554,
0.05083687603473663,
-0.3748854994773865,
0.3444773554801941,
-0.3048979640007019,
0.08854546397924423,
0.03852584585547447,
0.1757211536169052,
-0.3773137331008911,
-0.2603330910205841,
0.0222427137196064,
0.12856687605381012,
-0.16360805928707123,
0.14226491749286652,
-0.16765844821929932,
0.4352262318134308,
-0.2050628811120987,
-0.21197201311588287,
0.177676260471344,
-0.4917278289794922,
-0.21907871961593628,
0.08211812376976013,
0.37418368458747864,
0.06744424998760223,
0.47973260283470154,
0.009354986250400543,
-0.08102357387542725,
-0.283313125371933,
-0.13951429724693298,
-0.008753623813390732,
-0.08428532630205154,
0.3298853039741516,
0.10605425387620926,
-0.016705378890037537,
-0.0932384729385376,
0.277431845664978,
0.32699713110923767,
-0.2932590842247009,
0.11339156329631805,
0.24482867121696472,
-0.07063943892717361,
-0.09736420959234238,
-0.3490755259990692,
-0.4222734868526459,
-0.4420025646686554,
-0.3330693244934082,
0.1456252932548523,
-0.026979101821780205,
-0.0771535336971283,
0.22603006660938263,
0.2756928503513336,
0.1618192195892334,
0.05178862810134888,
0.06701143831014633,
-0.20283716917037964,
-0.5006719827651978,
0.27888718247413635,
-0.14917536079883575,
-0.6559880375862122,
0.33403342962265015,
0.22025057673454285,
0.03374131768941879,
0.34460508823394775,
-0.46373528242111206,
-0.30028682947158813,
0.060185253620147705,
0.4118386209011078,
0.1546173095703125,
0.34141653776168823,
0.3439638018608093,
-0.08812453597784042,
-0.0021496713161468506,
-0.14531859755516052,
0.07659097015857697,
0.15520687401294708,
0.029051316902041435,
-0.07622871547937393,
0.031606946140527725,
0.2395242154598236,
-0.02285384200513363,
0.3138236701488495,
0.06969457864761353,
0.10920239984989166,
0.25316566228866577,
-0.05892030894756317,
0.7709227800369263,
-0.1964215338230133,
-0.13005544245243073,
0.0029396468307822943,
-0.09730951488018036,
-0.3300405740737915,
0.2630476951599121,
0.04495466500520706,
-0.044849954545497894,
-0.521703839302063,
-0.03950365632772446,
-0.26458582282066345,
-0.35993728041648865,
0.07188904285430908,
0.02519317716360092,
0.2901519536972046,
0.12901994585990906,
0.38144800066947937,
-0.19889743626117706,
-0.11685389280319214,
-0.10599195957183838,
0.24253898859024048,
-0.04607177525758743,
-0.024140458554029465,
-0.2536403238773346,
-0.001441202824935317,
-0.422955185174942,
0.32319095730781555,
-0.11249380558729172,
0.3287164568901062,
-0.08834387362003326,
-0.10546204447746277,
0.020360074937343597,
-0.12800967693328857,
0.38876694440841675,
-0.37460553646087646,
0.048814352601766586,
0.3216704726219177,
0.03216669708490372,
-0.3440864384174347,
0.004545368254184723,
-0.3022691309452057,
-0.07973827421665192,
0.05318432301282883,
0.16533705592155457,
0.0047576576471328735,
-0.21347194910049438,
-0.11797912418842316,
0.40539631247520447,
-0.26660001277923584,
-0.14952582120895386,
-0.27363359928131104,
-0.29102611541748047,
-0.24897965788841248,
-0.014545217156410217,
-0.23560933768749237,
0.06963514536619186,
-0.20579849183559418,
0.14005091786384583,
-0.2692163586616516,
0.1312384307384491,
-0.06580503284931183,
0.10409194231033325,
0.10715891420841217,
-0.2510426938533783,
0.31127288937568665,
0.18542206287384033,
0.10205288231372833,
0.43604567646980286,
0.33601561188697815,
-0.13717931509017944,
-0.23142355680465698,
0.25421544909477234,
-0.13134348392486572,
0.24667862057685852,
0.4109334945678711,
-0.12304960936307907,
-0.2294890284538269,
0.08021660149097443,
0.24141013622283936,
-0.46342137455940247,
-0.11615143716335297,
0.21620012819766998,
0.16859428584575653,
-0.17781700193881989,
-0.29158100485801697,
0.24507910013198853,
0.05149584636092186,
-0.02881791442632675,
0.05443130433559418,
0.08948473632335663,
-0.3017147481441498,
0.17674818634986877,
-0.03237242251634598,
0.7389325499534607,
-0.06123783439397812,
0.2203812599182129,
0.23210647702217102,
-0.09631688892841339,
0.4667811989784241,
-0.16395412385463715,
-0.02186274155974388,
-0.09567762911319733,
-0.2585487365722656,
-0.05921563133597374,
-0.06116329878568649,
0.4294472932815552,
0.06467369943857193,
-0.12184904515743256,
0.4185381233692169,
-0.11387880146503448,
0.3259190618991852,
-0.23082976043224335,
0.16402152180671692,
-0.07445896416902542,
-0.20273414254188538,
-0.4499133229255676,
0.2304917275905609,
0.17040598392486572,
0.07278808951377869,
-0.18789032101631165,
-0.13244536519050598,
0.035772938281297684,
0.0869588851928711,
-0.011834889650344849,
-0.0590616799890995,
-0.02953645959496498,
0.12644174695014954,
-0.24622535705566406,
-0.19207251071929932,
0.028494518250226974,
0.17574158310890198,
0.43528205156326294,
0.10304446518421173,
-0.3177244961261749,
0.010633841156959534,
-0.3586471974849701,
0.23521116375923157,
0.10242096334695816,
0.21325404942035675,
0.1252109408378601,
-0.1827397346496582,
-0.22059282660484314,
0.003623649477958679,
-0.09144861251115799,
0.060147300362586975,
0.354133665561676,
0.00794704258441925,
-0.11822628974914551,
-0.19616790115833282,
0.2112734615802765,
0.08539960533380508,
0.24771669507026672,
-0.2053038775920868,
0.15256808698177338,
0.10236136615276337,
0.10631643235683441,
0.464611679315567,
-0.15506047010421753,
-0.2921221852302551,
-0.20336826145648956,
0.3657732903957367,
-0.19361752271652222,
-0.1259039044380188,
0.025559552013874054,
0.16202235221862793,
-0.21078121662139893,
-0.32189780473709106,
0.40684786438941956,
-0.047959599643945694,
-0.12117870151996613,
0.09364315122365952,
0.34435245394706726,
0.3884798288345337,
-0.11153288930654526,
0.2852267622947693,
0.05246882513165474,
-0.24771612882614136,
-0.12377388775348663,
-0.3838160037994385,
-0.25658008456230164,
0.11171116679906845,
0.468213826417923,
0.13082255423069,
0.14359617233276367,
-0.13877351582050323,
0.06646975874900818,
-0.2229461818933487,
-0.38656848669052124,
0.07125643640756607,
-0.09658003598451614,
-0.038063324987888336,
0.13004866242408752,
-0.08902896195650101,
0.3482476770877838,
-0.2611868679523468,
0.06805165857076645,
-0.2205715924501419,
-0.298944354057312,
-0.2696569263935089,
0.007077055051922798,
0.17203253507614136,
-0.024811137467622757,
-0.3514450490474701,
0.013088361360132694,
-0.5638437271118164,
-0.2751779556274414,
-0.15323936939239502,
0.23697832226753235,
0.43524399399757385,
-0.15452814102172852,
0.021243687719106674,
-0.21163110435009003,
0.5069655776023865,
-0.161833256483078,
0.10289841890335083,
-0.0033500194549560547,
0.29353588819503784,
-0.024415113031864166,
0.24244548380374908,
0.052067358046770096,
0.07253244519233704,
-0.14065422117710114,
0.09259603917598724,
0.1330181360244751,
0.11479730159044266,
0.4638184905052185,
-0.3239510655403137,
0.21722713112831116,
0.18095213174819946,
0.5096148252487183,
0.2549036145210266,
-0.10288878530263901,
0.04305166006088257,
0.19418811798095703,
0.24518224596977234,
-0.3124173581600189,
-0.0471624918282032,
-0.02456687018275261,
0.12031640112400055,
0.29541221261024475,
0.1200815737247467,
0.3562955856323242,
0.01645607501268387,
-0.09941349923610687,
-0.015822378918528557,
0.5235153436660767,
-0.09297790378332138,
0.22773993015289307,
0.3458941578865051,
0.06752592325210571,
0.26515305042266846,
0.01430603489279747,
0.36509090662002563,
-0.05374375730752945,
0.44259828329086304,
-0.25944963097572327,
0.32073071599006653,
0.02329210564494133,
0.13375942409038544,
-0.33536919951438904,
-0.5445821285247803,
0.3404708802700043,
-0.025049179792404175,
-0.1448241025209427,
-0.1840726137161255,
-0.2679923474788666,
0.23755228519439697,
-0.547919750213623,
-0.1364688277244568,
-0.14350983500480652,
-0.01801598072052002,
-0.1393863558769226,
-0.003719387575984001,
-0.5069402456283569,
-0.3003555238246918,
0.12085698544979095,
0.12147139012813568,
0.060304753482341766,
-0.06270933151245117,
0.0644245594739914,
-0.020650163292884827,
-0.01368633657693863,
-0.2826501131057739,
0.16238272190093994,
0.04766334593296051,
-0.026624418795108795,
-0.03783249109983444,
0.029922926798462868,
0.18109673261642456,
0.1734342873096466,
0.06874647736549377,
0.40414178371429443,
0.3933543860912323,
0.1537022888660431,
-0.13384699821472168,
0.13748648762702942,
0.018281200900673866,
-0.11980132013559341,
-0.0296685378998518,
0.11929259449243546,
0.036519605666399,
0.04051254689693451,
0.3766201138496399,
0.16594327986240387,
-0.1589827835559845,
0.40463539958000183,
0.03265862911939621,
-0.20847046375274658,
-0.36460375785827637,
0.23456406593322754,
0.09714760631322861,
-0.10284117609262466,
-0.08760887384414673,
-0.28536924719810486,
-0.12819312512874603,
0.006169529631733894,
0.47890549898147583,
0.0001846514642238617,
0.1372697353363037,
-0.13627399504184723,
0.1167462170124054,
0.02858428657054901,
0.43633151054382324,
0.19627055525779724,
0.16579365730285645,
-0.27020201086997986,
0.0929984301328659,
-0.8050808310508728,
-0.09341695159673691,
-0.1508389711380005,
0.2677166759967804,
-0.05730234831571579,
0.13019315898418427,
0.09634862095117569,
0.3606465458869934,
0.08785288035869598,
0.18377752602100372,
0.078706294298172,
-0.1228293627500534,
-0.29229599237442017,
-0.19138382375240326,
-0.1134318858385086,
-0.09771579504013062,
-0.1044352576136589,
-0.35368025302886963,
0.11452246457338333,
-0.31866177916526794,
-0.009490147233009338,
0.0436009056866169,
0.26858416199684143,
-0.2382054328918457,
-0.11944006383419037,
0.47647929191589355,
0.09099631011486053,
0.3870106041431427,
0.19318878650665283,
-0.02825339324772358,
-0.14386601746082306,
0.036035001277923584,
-0.03588797152042389,
0.17200756072998047,
-0.06248455122113228,
-0.02944820560514927,
-0.2250412553548813,
-0.2000788301229477,
-0.14110404253005981,
0.23651592433452606,
0.097023606300354,
0.1759415566921234,
-0.18259240686893463,
0.0326332151889801,
0.06667659431695938,
0.15696309506893158,
0.1171562522649765,
-0.007146712392568588,
-0.09323140978813171,
0.2956729829311371,
-0.25986963510513306,
-0.033850014209747314,
0.2650768756866455,
-0.049911752343177795,
-0.0077188890427351,
-0.3452846109867096,
0.40164756774902344,
0.0965217873454094,
-0.0170066449791193,
-0.47910061478614807,
0.168479323387146,
0.3681561350822449,
-0.2595859467983246,
-0.2121678590774536,
0.3329334557056427,
-0.2569124400615692,
-0.12703579664230347,
0.026257876306772232,
0.260482519865036,
-0.2469595968723297,
-0.2792312204837799,
0.11184428632259369,
-0.21578848361968994
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | It looks like a bug in `fsspec`, can you try updating `fsspec` (and maybe `datasets` as well) ? | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 18 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
It looks like a bug in `fsspec`, can you try updating `fsspec` (and maybe `datasets` as well) ? | [
-0.5497544407844543,
0.1564037799835205,
-0.002022773027420044,
0.19531956315040588,
0.4145311713218689,
-0.25600680708885193,
0.38192445039749146,
0.023217003792524338,
0.2758582830429077,
0.29854652285575867,
0.10410413891077042,
-0.05073922127485275,
0.10569112747907639,
0.5318765640258789,
-0.17633973062038422,
0.0144074447453022,
-0.11365824192762375,
0.05376633256673813,
-0.2260860800743103,
0.11995162069797516,
-0.09720899909734726,
0.023098092526197433,
-0.44460099935531616,
-0.052467361092567444,
-0.22636908292770386,
-0.11012319475412369,
-0.1347300410270691,
0.21642088890075684,
-0.2146834135055542,
-0.39303576946258545,
0.30726054310798645,
0.019331278279423714,
0.11388961970806122,
0.38201022148132324,
-0.0001067433986463584,
-0.035440195351839066,
0.1361241340637207,
0.027776727452874184,
-0.1128714382648468,
-0.2957841753959656,
-0.28963202238082886,
-0.42003747820854187,
0.16868531703948975,
-0.38414111733436584,
-0.19404208660125732,
-0.04747286066412926,
-0.03161921352148056,
-0.4717460572719574,
0.27331751585006714,
0.5544977188110352,
0.27985072135925293,
0.5563244819641113,
-0.16402241587638855,
-0.34968364238739014,
-0.08535303920507431,
-0.1732516586780548,
-0.20803998410701752,
0.16485153138637543,
-0.10446670651435852,
-0.13119865953922272,
0.015545494854450226,
-0.019127583131194115,
-0.08454915881156921,
0.0018023457378149033,
0.2806914150714874,
0.02919871360063553,
-0.03433313965797424,
-0.14859452843666077,
0.1925639808177948,
0.31925055384635925,
0.3791508972644806,
-0.2233947515487671,
-0.20863783359527588,
-0.2670961618423462,
-0.029503416270017624,
-0.4174128770828247,
0.056882478296756744,
0.003261417616158724,
-0.017286013811826706,
0.1389295756816864,
-0.19616705179214478,
-0.20769456028938293,
-0.2375738024711609,
0.13852384686470032,
-0.2739110589027405,
-0.18092161417007446,
-0.31425145268440247,
0.08999788761138916,
-0.06687204539775848,
0.031169503927230835,
-0.33629652857780457,
-0.2421378493309021,
-0.02063586190342903,
-0.12285590171813965,
-0.3047340512275696,
0.010423757135868073,
0.23821672797203064,
-0.005973838269710541,
0.08935841917991638,
0.1084190085530281,
0.07407356798648834,
-0.029295217245817184,
0.0766678899526596,
0.07258956879377365,
0.4179397225379944,
0.27137142419815063,
0.09418731927871704,
-0.18648989498615265,
0.46721017360687256,
0.0020239909645169973,
-0.14827179908752441,
-0.31745609641075134,
0.3658396005630493,
-0.35602593421936035,
-0.0018346644937992096,
0.10756997764110565,
0.35690104961395264,
-0.3368034064769745,
-0.24302084743976593,
0.11865471303462982,
0.28083106875419617,
-0.007019406650215387,
0.10977503657341003,
0.3173369765281677,
-0.1936688870191574,
0.19422471523284912,
0.09162606298923492,
0.34227120876312256,
-0.41344866156578064,
-0.22591522336006165,
-0.1465802639722824,
-0.13357263803482056,
-0.2908474802970886,
0.1317499876022339,
0.1148742288351059,
0.11658667027950287,
0.09968066215515137,
-0.051568664610385895,
0.14740699529647827,
-0.15617984533309937,
0.1183006763458252,
-0.160910502076149,
0.03341466188430786,
0.3547596037387848,
0.12348935008049011,
-0.05732923746109009,
0.11376412212848663,
-0.15557914972305298,
0.10020770877599716,
-0.0024082213640213013,
-0.10572854429483414,
-0.30159705877304077,
0.15510186553001404,
0.2471599280834198,
-0.5289964079856873,
-0.16583344340324402,
-0.3319150507450104,
0.0593847930431366,
-0.3147127330303192,
-0.2514427602291107,
0.003577113151550293,
-0.08225124329328537,
-0.3183269798755646,
-0.18007178604602814,
0.2044011801481247,
0.6024364829063416,
-0.3229154646396637,
0.018703214824199677,
0.06846778839826584,
-0.2686440348625183,
-0.04681449383497238,
0.0909159779548645,
-0.190652996301651,
0.4815886616706848,
-0.09243574738502502,
-0.10700752586126328,
0.48413747549057007,
-0.42643722891807556,
-0.27841851115226746,
0.3289175033569336,
-0.13081885874271393,
-0.18331749737262726,
-0.058983393013477325,
-0.013820859603583813,
0.48200803995132446,
0.12429944425821304,
-0.1124371886253357,
0.1338416337966919,
-0.08010151237249374,
0.026315899565815926,
-0.24220658838748932,
-0.25301405787467957,
0.1486629843711853,
0.19493769109249115,
0.3301807940006256,
0.2285701334476471,
0.34044328331947327,
-0.3058514893054962,
0.029428016394376755,
-0.16999302804470062,
0.06820030510425568,
0.22975055873394012,
0.3323284387588501,
0.10081292688846588,
-0.04812319576740265,
-0.3473209738731384,
-0.40729761123657227,
0.2580359876155853,
-0.010022612288594246,
0.14209334552288055,
-0.09532180428504944,
-0.07095848023891449,
-0.032068803906440735,
-0.15423230826854706,
-0.0926620215177536,
-0.1157853752374649,
0.09303870797157288,
-0.1517978012561798,
0.06224408373236656,
0.11057117581367493,
-0.2263980507850647,
0.21632026135921478,
-0.005535148084163666,
-0.03410322219133377,
-0.13355565071105957,
0.4027334749698639,
-0.06198213994503021,
-0.05855946987867355,
-0.04269266501069069,
0.17992408573627472,
0.2738242745399475,
-0.06356371939182281,
-0.1632722020149231,
0.49786242842674255,
0.2972387969493866,
-0.04669250547885895,
0.29392704367637634,
0.4526181221008301,
0.2827504873275757,
-0.14230646193027496,
0.33067524433135986,
0.003224281594157219,
0.35871973633766174,
-0.12555745244026184,
-0.18708738684654236,
0.6161836981773376,
-0.03093574568629265,
0.3238743543624878,
0.13137845695018768,
0.053288839757442474,
0.28045371174812317,
-0.07145778834819794,
-0.3150007724761963,
0.017589688301086426,
0.21177436411380768,
0.08077666163444519,
0.1750577986240387,
-0.01359534077346325,
-0.2367641180753708,
0.06559842079877853,
0.36993512511253357,
0.011720597743988037,
0.04648502916097641,
0.058241553604602814,
0.01122862845659256,
0.0931338518857956,
0.07263267040252686,
-0.038137830793857574,
0.6293134093284607,
0.2328094244003296,
-0.07097063958644867,
0.3038780689239502,
0.005778244696557522,
-0.25954824686050415,
0.1853792667388916,
0.1729506552219391,
0.039172474294900894,
0.13178089261054993,
0.13970947265625,
0.01064822357147932,
-0.37700384855270386,
-0.09775374829769135,
-0.1042633056640625,
0.10448672622442245,
-0.35102578997612,
0.30394360423088074,
-0.34656378626823425,
-0.08150863647460938,
0.0852055475115776,
0.3182431757450104,
-0.35525450110435486,
-0.24410606920719147,
0.008553072810173035,
0.1642279028892517,
-0.25371885299682617,
0.15849068760871887,
-0.08696438372135162,
0.4865906238555908,
-0.16162677109241486,
-0.01625622622668743,
0.09718349575996399,
-0.47728562355041504,
-0.17065638303756714,
0.04701518639922142,
0.3122614026069641,
0.18021461367607117,
0.3754115700721741,
0.1285998523235321,
-0.07328712940216064,
-0.4127438962459564,
-0.17305190861225128,
0.07310202717781067,
0.004982590675354004,
0.36444205045700073,
0.1138625517487526,
0.04041554033756256,
0.06393148005008698,
0.3001534640789032,
0.36256498098373413,
-0.3659450113773346,
0.0988209918141365,
0.23162028193473816,
-0.08364417403936386,
-0.20834487676620483,
-0.3917398154735565,
-0.4075923264026642,
-0.34040355682373047,
-0.36342838406562805,
0.23237837851047516,
-0.14334972202777863,
-0.05087397247552872,
0.2311476469039917,
0.14049699902534485,
0.0020362655632197857,
-0.1882093995809555,
0.060642220079898834,
-0.2867591977119446,
-0.3860236704349518,
0.036934833973646164,
-0.2015908658504486,
-0.6814804673194885,
0.23134499788284302,
0.2333514541387558,
0.031027868390083313,
0.19788160920143127,
-0.4770445227622986,
-0.3436199426651001,
-0.06886640191078186,
0.44179829955101013,
0.03224879503250122,
0.28669673204421997,
0.47047796845436096,
-0.09265513718128204,
-0.11555125564336777,
-0.18771153688430786,
-0.010341072455048561,
0.2648880183696747,
0.08915825188159943,
-0.06051170080900192,
-0.11690690368413925,
0.219585120677948,
-0.05581625550985336,
0.40929001569747925,
0.16516879200935364,
0.07498477399349213,
0.3293691873550415,
-0.25779104232788086,
0.6572548747062683,
-0.2311614453792572,
-0.15973274409770966,
0.15454886853694916,
-0.06806591153144836,
-0.27188894152641296,
0.23876245319843292,
0.011179471388459206,
-0.025772010907530785,
-0.5529298782348633,
0.12169872224330902,
-0.34712129831314087,
-0.3739917576313019,
0.009097444824874401,
0.09424859285354614,
0.3468181788921356,
0.15871299803256989,
0.36593228578567505,
-0.2282113879919052,
0.034710921347141266,
-0.09927678108215332,
0.23569828271865845,
0.055185895413160324,
-0.19401490688323975,
-0.23203855752944946,
0.013481536880135536,
-0.4660766124725342,
0.3360152244567871,
-0.1543911248445511,
0.3456776440143585,
-0.2524883449077606,
0.0398111417889595,
0.060603152960538864,
-0.09950903058052063,
0.5489909052848816,
-0.355436772108078,
-0.033386021852493286,
0.32844415307044983,
0.01430150493979454,
-0.3764761686325073,
0.044494207948446274,
-0.15049424767494202,
-0.014862572774291039,
0.1425805240869522,
0.11415287852287292,
-0.12141376733779907,
-0.3020972013473511,
-0.06642143428325653,
0.1738627701997757,
-0.2253357619047165,
-0.1600205898284912,
-0.2044907659292221,
-0.08093123137950897,
-0.1699957400560379,
-0.016710437834262848,
-0.18238352239131927,
0.04260037839412689,
-0.16168253123760223,
0.1462908387184143,
-0.22606143355369568,
0.13941535353660583,
-0.06847995519638062,
0.03484185039997101,
0.18214574456214905,
-0.2557066082954407,
0.3002696931362152,
0.19263866543769836,
0.03240406885743141,
0.34820517897605896,
0.40002942085266113,
-0.08084382116794586,
-0.2923583388328552,
0.30732443928718567,
0.0760776549577713,
0.35501858592033386,
0.4503348469734192,
-0.13343532383441925,
-0.03222070634365082,
0.07314588129520416,
0.37481075525283813,
-0.5400586128234863,
-0.02505786530673504,
0.337911993265152,
0.2090001106262207,
-0.07494156807661057,
-0.2698257565498352,
0.25680938363075256,
0.09297385811805725,
-0.005915112793445587,
0.026256509125232697,
0.1264452487230301,
-0.14712278544902802,
0.2748745083808899,
-0.24579495191574097,
0.7679340839385986,
0.013451613485813141,
0.20163646340370178,
0.23355907201766968,
-0.01901688426733017,
0.3679291009902954,
-0.28739601373672485,
-0.10534849017858505,
-0.04107750952243805,
-0.2523139417171478,
0.0037200991064310074,
-0.04873834177851677,
0.5150024890899658,
-0.018740326166152954,
-0.07539154589176178,
0.5894646644592285,
0.004748523235321045,
0.14578630030155182,
-0.18708042800426483,
0.17440484464168549,
0.039663925766944885,
-0.1920909285545349,
-0.4875223636627197,
0.26370376348495483,
0.09792390465736389,
0.13929346203804016,
-0.14922398328781128,
-0.20162877440452576,
0.12836754322052002,
-0.029706455767154694,
-0.204210102558136,
0.02049761638045311,
-0.06604581326246262,
0.05898638442158699,
-0.10056626796722412,
0.1804460734128952,
0.0508163683116436,
0.13966071605682373,
0.2587661147117615,
0.1826428771018982,
-0.35234561562538147,
0.19272366166114807,
-0.3376539349555969,
0.16851675510406494,
0.015943115577101707,
0.15890967845916748,
0.06308497488498688,
-0.20946025848388672,
-0.31647244095802307,
-0.04360669106245041,
-0.12140707671642303,
-0.01907859928905964,
0.42804473638534546,
0.013391628861427307,
0.0008166171610355377,
-0.2571699321269989,
0.13330209255218506,
0.21001622080802917,
0.230464905500412,
-0.20590947568416595,
0.16932164132595062,
0.21439391374588013,
0.03448975458741188,
0.4447638690471649,
-0.09032225608825684,
-0.2545796036720276,
-0.16774116456508636,
0.4045926630496979,
-0.2383628487586975,
-0.14196014404296875,
-0.025960378348827362,
0.10812687873840332,
-0.2356017827987671,
-0.3366759419441223,
0.22814315557479858,
0.046592921018600464,
-0.08531467616558075,
0.19621002674102783,
0.3537673056125641,
0.24502582848072052,
-0.04494026303291321,
0.48838290572166443,
-0.021674826741218567,
-0.26331496238708496,
-0.028826557099819183,
-0.3666989207267761,
-0.23401986062526703,
0.08634956181049347,
0.2975969612598419,
0.1292591392993927,
0.09114819020032883,
0.06987608969211578,
-0.061087995767593384,
-0.17822302877902985,
-0.393152117729187,
0.13052690029144287,
-0.16209961473941803,
0.09403325617313385,
0.2826251685619354,
-0.18630793690681458,
0.4671300947666168,
-0.33891981840133667,
0.07966013997793198,
-0.06550812721252441,
-0.35320138931274414,
-0.2721923887729645,
-0.06135063245892525,
0.16906514763832092,
0.10983346402645111,
-0.30380305647850037,
-0.07807378470897675,
-0.4598389267921448,
-0.3389582931995392,
-0.15472179651260376,
0.14763422310352325,
0.5329206585884094,
-0.22504375874996185,
0.11022058874368668,
-0.20910091698169708,
0.39011919498443604,
-0.0075314342975616455,
0.15761524438858032,
0.10974130779504776,
0.3174822926521301,
0.031769391149282455,
0.24944539368152618,
-0.11926411837339401,
0.07557722926139832,
0.07906298339366913,
0.09413188695907593,
0.16183897852897644,
0.15896418690681458,
0.38156136870384216,
-0.22095192968845367,
0.0673103928565979,
0.2511061131954193,
0.5051453113555908,
0.22311542928218842,
-0.0991898849606514,
0.16397979855537415,
0.1660875678062439,
0.27184221148490906,
-0.37250834703445435,
0.03415616974234581,
0.0787525326013565,
0.15851640701293945,
0.35152149200439453,
-0.020595557987689972,
0.3619800806045532,
-0.03997242823243141,
0.041475147008895874,
0.06865078955888748,
0.10444721579551697,
0.015291085466742516,
0.2996988296508789,
-0.13764925301074982,
0.07801136374473572,
0.1450982689857483,
0.10952151566743851,
0.32274502515792847,
-0.051876671612262726,
0.48771965503692627,
-0.20049577951431274,
0.2745705842971802,
-0.03997929394245148,
0.08982281386852264,
-0.2780039310455322,
-0.5290833115577698,
0.37518438696861267,
-0.10281214118003845,
-0.08460600674152374,
-0.20940649509429932,
-0.2790259122848511,
0.33724188804626465,
-0.5158856511116028,
-0.2552841603755951,
-0.13803941011428833,
0.06044745445251465,
-0.11491576582193375,
-0.02232050895690918,
-0.23263616859912872,
-0.18975648283958435,
0.016142472624778748,
0.07202915847301483,
0.10258828848600388,
-0.05804654210805893,
0.19803474843502045,
0.027111046016216278,
-0.01374729722738266,
-0.2423110455274582,
-0.0006239451467990875,
0.1279158890247345,
0.15851348638534546,
0.020434986799955368,
0.1797693371772766,
-0.015199407935142517,
0.04548577964305878,
0.15860125422477722,
0.4741716682910919,
0.3719038665294647,
0.052525706589221954,
-0.17607934772968292,
0.09867409616708755,
0.017257438972592354,
-0.10818357020616531,
-0.03757915645837784,
0.1987607181072235,
-0.021115541458129883,
0.19299599528312683,
0.3571278750896454,
0.1477702111005783,
-0.229185089468956,
0.24504369497299194,
-0.09559667110443115,
-0.05570389702916145,
-0.49715372920036316,
0.280577152967453,
0.12334289401769638,
0.05809289962053299,
-0.15915073454380035,
-0.2251494824886322,
-0.3124348521232605,
-0.11146565526723862,
0.418786883354187,
-0.08542782068252563,
0.19522976875305176,
-0.2572968602180481,
0.1136900931596756,
-0.015944384038448334,
0.3724335730075836,
0.16967706382274628,
0.33537033200263977,
-0.33341625332832336,
0.04524335265159607,
-0.722804844379425,
-0.12831899523735046,
-0.13731515407562256,
0.34958070516586304,
-0.02952215075492859,
0.10983103513717651,
-0.07128816097974777,
0.21792615950107574,
0.15493354201316833,
0.17724935710430145,
0.21666473150253296,
-0.06694591790437698,
-0.3911055624485016,
0.024021226912736893,
-0.16654707491397858,
-0.14746896922588348,
0.04064691811800003,
-0.35396429896354675,
0.12114135921001434,
-0.23721745610237122,
0.02448069304227829,
0.1224132776260376,
0.05139707028865814,
-0.32668575644493103,
-0.2549802362918854,
0.4392705261707306,
0.10789955407381058,
0.47062787413597107,
0.10670875757932663,
-0.06678953766822815,
-0.08847483992576599,
-0.15045343339443207,
0.07429917901754379,
0.07989895343780518,
-0.06980530917644501,
-0.009302648715674877,
-0.13282617926597595,
0.0520130917429924,
-0.20567859709262848,
0.1861865520477295,
0.11353711783885956,
-0.07739247381687164,
-0.2015019953250885,
0.09710311144590378,
-0.01415792852640152,
0.18433155119419098,
-0.16866332292556763,
0.04143080115318298,
-0.10916431248188019,
0.2620648741722107,
-0.13456405699253082,
-0.01664150506258011,
0.5015368461608887,
-0.08687539398670197,
-0.02031424641609192,
-0.37987324595451355,
0.470913290977478,
0.13218462467193604,
-0.0851193442940712,
-0.5044192671775818,
0.05705254524946213,
0.21999628841876984,
-0.1480238437652588,
-0.1750226765871048,
0.3294735252857208,
-0.4595572352409363,
-0.21777309477329254,
-0.013296429067850113,
0.42126962542533875,
-0.1313687562942505,
-0.20658931136131287,
0.3149784803390503,
-0.23333165049552917
] |
https://github.com/huggingface/datasets/issues/823 | how processing in batch works in datasets | Hi I don’t think this is a request for a dataset like you labeled it.
I also think this would be better suited for the forum at https://discuss.huggingface.co. we try to keep the issue for the repo for bug reports and new features/dataset requests and have usage questions discussed on the forum. Thanks. | Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
| 53 | how processing in batch works in datasets
Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
Hi I don’t think this is a request for a dataset like you labeled it.
I also think this would be better suited for the forum at https://discuss.huggingface.co. we try to keep the issue for the repo for bug reports and new features/dataset requests and have usage questions discussed on the forum. Thanks. | [
-0.5023795962333679,
-0.17439483106136322,
-0.22950232028961182,
0.1301569938659668,
0.17803548276424408,
0.0317944660782814,
0.29556140303611755,
0.17130397260189056,
-0.1484706699848175,
0.17807698249816895,
0.00912182405591011,
0.12478051334619522,
0.06411977112293243,
0.2456236332654953,
-0.05616506189107895,
-0.03589154779911041,
-0.07459747046232224,
0.04837709292769432,
0.1096089705824852,
0.0072340890765190125,
-0.3676089942455292,
0.06899750232696533,
-0.4043075442314148,
0.05223412811756134,
-0.22304680943489075,
-0.2693563997745514,
-0.061245258897542953,
-0.03925689309835434,
-0.004413064569234848,
-0.15258879959583282,
-0.002225443720817566,
0.23349496722221375,
0.20883946120738983,
0.43265029788017273,
-0.00010495645256014541,
0.07853114604949951,
0.24677583575248718,
0.03938253968954086,
-0.2903352975845337,
0.22262781858444214,
-0.04940001666545868,
-0.169552743434906,
-0.10629840940237045,
-0.3042084276676178,
-0.10083643347024918,
-0.08600081503391266,
-0.1385589987039566,
-0.33743008971214294,
0.3848307132720947,
0.175383061170578,
0.2844720780849457,
0.28025513887405396,
-0.14760532975196838,
0.1414177566766739,
0.061004042625427246,
0.071453757584095,
0.08511261641979218,
-0.3902091979980469,
0.06823217123746872,
0.14792729914188385,
-0.048406489193439484,
0.14961999654769897,
-0.2720299959182739,
0.08594105392694473,
-0.2550972104072571,
0.02188817411661148,
0.026098143309354782,
-0.38470301032066345,
0.08848479390144348,
-0.1349761188030243,
0.28465965390205383,
-0.21236294507980347,
-0.24407489597797394,
-0.3842584490776062,
-0.272465318441391,
-0.4653170108795166,
-0.026978880167007446,
0.11313202977180481,
-0.06848220527172089,
0.10127107053995132,
-0.0785875916481018,
0.24084646999835968,
-0.0737227201461792,
-0.16669417917728424,
0.11142706871032715,
0.25681108236312866,
-0.2119234949350357,
0.21988186240196228,
0.07004088163375854,
0.08878855407238007,
0.1648152470588684,
-0.23507198691368103,
-0.00043381378054618835,
0.2723602056503296,
-0.49079686403274536,
-0.08711923658847809,
-0.1117742732167244,
-0.15199124813079834,
-0.1408957988023758,
0.05416052043437958,
-0.12841255962848663,
0.1272302120923996,
0.31612735986709595,
0.15641829371452332,
-0.02959592640399933,
0.16435618698596954,
0.11872155964374542,
0.2562074363231659,
-0.0771184116601944,
-0.3050594925880432,
-0.2260430008172989,
0.027757257223129272,
-0.07858867198228836,
-0.32984668016433716,
0.14713919162750244,
0.3610415756702423,
0.2499246448278427,
0.03027760609984398,
-0.48716476559638977,
-0.09039229154586792,
-0.01904170773923397,
-0.05809762328863144,
0.14209319651126862,
0.2845914661884308,
-0.24076297879219055,
0.250846266746521,
-0.08102615177631378,
-0.15231674909591675,
-0.29263511300086975,
-0.046195778995752335,
-0.30273810029029846,
-0.11525727808475494,
-0.149619922041893,
0.07027894258499146,
0.13497738540172577,
-0.17215996980667114,
0.3239186108112335,
0.07558325678110123,
0.0962868183851242,
-0.17466042935848236,
0.5014522671699524,
-0.3949419856071472,
0.2224128246307373,
0.2599134147167206,
0.1795816421508789,
0.2426498979330063,
0.053201187402009964,
0.20976652204990387,
0.03996173292398453,
0.07378122210502625,
-0.6257674694061279,
-0.17911767959594727,
0.24746330082416534,
0.3138490915298462,
-0.050551846623420715,
0.0014614760875701904,
-0.5935843586921692,
-0.08692243695259094,
0.32132667303085327,
0.09062673151493073,
0.11970964819192886,
-0.1754259467124939,
-0.18599559366703033,
-0.19467958807945251,
0.20039673149585724,
0.08525849878787994,
-0.4504089653491974,
0.06793272495269775,
-0.11536458134651184,
-0.3227444589138031,
0.5454285144805908,
0.1242685616016388,
-0.11386711150407791,
0.6199548244476318,
-0.3095552921295166,
0.37830305099487305,
0.19371876120567322,
-0.318939208984375,
-0.2815083861351013,
0.5390690565109253,
-0.25751227140426636,
0.018087035045027733,
0.039820462465286255,
0.03250711411237717,
0.5586631298065186,
-0.06028754264116287,
0.036230169236660004,
0.37874358892440796,
-0.11922885477542877,
0.0902983769774437,
-0.09956955909729004,
0.11563748121261597,
0.08595331013202667,
-0.017408115789294243,
0.10389268398284912,
0.043863799422979355,
-0.21674269437789917,
-0.04455369710922241,
0.1737813949584961,
0.05349879711866379,
0.29659974575042725,
0.24967443943023682,
0.011494364589452744,
0.2087978571653366,
0.1932460516691208,
-0.045412324368953705,
-0.29646506905555725,
0.09573233872652054,
-0.020332789048552513,
-0.18323351442813873,
0.04056452587246895,
-0.3565838932991028,
-0.14273816347122192,
0.14648383855819702,
-0.40808436274528503,
-0.17031410336494446,
0.21879339218139648,
0.0912245512008667,
0.02236040309071541,
-0.3133271336555481,
0.005141671746969223,
0.32892611622810364,
-0.018437014892697334,
0.03201226890087128,
-0.19385391473770142,
-0.022045420482754707,
0.007847605273127556,
-0.15076391398906708,
-0.06133371964097023,
-0.07919991761445999,
0.2228216826915741,
0.007429874502122402,
-0.04933391883969307,
0.35336533188819885,
0.274745374917984,
0.06399571895599365,
-0.03651590645313263,
-0.12384657561779022,
-0.01024857722222805,
0.11414748430252075,
-0.0905265137553215,
-0.03585420548915863,
0.21717336773872375,
-0.12560704350471497,
0.24783077836036682,
0.42528194189071655,
-0.04693366959691048,
0.26575833559036255,
-0.03825564682483673,
-0.2736453711986542,
0.22645235061645508,
-0.07021650671958923,
-0.042867496609687805,
0.1976909041404724,
-0.0458722747862339,
0.00152587890625,
0.340833842754364,
0.044004444032907486,
-0.055947862565517426,
0.17708724737167358,
0.42730358242988586,
-0.004344938322901726,
-0.16920283436775208,
-0.01923035830259323,
-0.20830503106117249,
0.10800882428884506,
0.15949594974517822,
-0.025841768831014633,
0.12190850079059601,
0.16937164962291718,
0.11964854598045349,
-0.10231410712003708,
0.10452348738908768,
-0.03796319290995598,
0.08203011751174927,
0.3170751929283142,
0.18051964044570923,
0.16187390685081482,
-0.09162594377994537,
-0.05618174001574516,
-0.0036793313920497894,
-0.11006943881511688,
0.19136227667331696,
0.23988445103168488,
-0.36543339490890503,
0.21321982145309448,
-0.14592988789081573,
-0.0898105576634407,
-0.15111775696277618,
-0.03144609555602074,
0.1613282710313797,
-0.1398266851902008,
-0.076407790184021,
0.21738915145397186,
-0.1582912653684616,
0.028309112414717674,
-0.08624467253684998,
0.03933723270893097,
0.27152204513549805,
-0.3807459771633148,
-0.16086287796497345,
-0.05961766466498375,
-0.18188261985778809,
0.20186223089694977,
0.06786850094795227,
0.10808628797531128,
0.4683229327201843,
0.0514347180724144,
0.03878499194979668,
-0.11555048078298569,
-0.15221759676933289,
0.07787910103797913,
-0.19765235483646393,
0.1767098307609558,
0.016944989562034607,
0.1401747316122055,
-0.1079597920179367,
-0.3839942514896393,
0.1391078680753708,
-0.18394118547439575,
-0.33134979009628296,
-0.08557280898094177,
-0.01734696887433529,
0.04050062224268913,
-0.20870719850063324,
-0.43180856108665466,
-0.23302169144153595,
-0.17911137640476227,
0.021623380482196808,
-0.06954988837242126,
0.2032478004693985,
-0.00936905574053526,
-0.01788986474275589,
0.14972135424613953,
0.26238393783569336,
-0.15724745392799377,
-0.08772142231464386,
-0.48812609910964966,
0.1246124655008316,
-0.2836304306983948,
-0.01973259076476097,
-0.0922570675611496,
-0.10247053951025009,
0.422354519367218,
0.30863893032073975,
-0.19039367139339447,
0.11806013435125351,
-0.08892610669136047,
0.24083212018013,
-0.09775321185588837,
-0.02653520740568638,
0.19540753960609436,
-0.07893342524766922,
-0.09966503083705902,
-0.11733517795801163,
0.07362304627895355,
0.11769810318946838,
-0.2414381504058838,
0.06471496820449829,
-0.017784729599952698,
0.6492412686347961,
-0.01928257755935192,
0.9116162657737732,
0.08709467947483063,
-0.0874783843755722,
0.1329250931739807,
0.004422841593623161,
-0.15793950855731964,
-0.012976616621017456,
-0.30091673135757446,
0.09074537456035614,
0.027977831661701202,
-0.18693625926971436,
0.19288833439350128,
-0.1721879243850708,
-0.008558075875043869,
0.07027649879455566,
-0.01714853011071682,
-0.6442943811416626,
-0.06746687740087509,
0.07695311307907104,
0.0041396282613277435,
0.3435702323913574,
-0.1565954089164734,
0.0682593360543251,
-0.2833538055419922,
-0.059069324284791946,
-0.09082823991775513,
0.046469785273075104,
0.23815947771072388,
-0.18369098007678986,
-0.3598339855670929,
0.08883601427078247,
-0.2709054946899414,
0.2956254780292511,
0.06683962047100067,
0.3335529863834381,
0.027602780610322952,
-0.04001679643988609,
0.111262246966362,
-0.13172532618045807,
0.7860841751098633,
-0.04430217295885086,
0.06751684099435806,
0.057194460183382034,
-0.24339795112609863,
-0.16150979697704315,
-0.0845041573047638,
-0.339153528213501,
0.20839989185333252,
0.5520217418670654,
0.2944181263446808,
-0.21103763580322266,
-0.36287975311279297,
0.017312921583652496,
-0.18864187598228455,
-0.16484618186950684,
-0.29953157901763916,
-0.3377783000469208,
-0.14936664700508118,
-0.3823862075805664,
0.31098392605781555,
0.2597947418689728,
0.11348220705986023,
-0.43688780069351196,
-0.3712887167930603,
-0.3057020306587219,
-0.08963429182767868,
0.19536422193050385,
-0.06653864681720734,
0.028661014512181282,
0.023897694423794746,
0.2161182016134262,
0.02199602499604225,
0.28753870725631714,
0.3828943371772766,
0.21269568800926208,
-0.17296357452869415,
-0.33728402853012085,
0.1827811896800995,
-0.09838762134313583,
0.48431113362312317,
0.028597019612789154,
-0.2987978160381317,
0.3437284827232361,
-0.03737928345799446,
0.1920202523469925,
-0.45076093077659607,
0.5018010139465332,
0.4323754608631134,
0.18065065145492554,
-0.5321661829948425,
-0.5739416480064392,
0.1534672975540161,
0.33902227878570557,
-0.09803441166877747,
0.13715294003486633,
-0.23289187252521515,
-0.27702656388282776,
0.1009882315993309,
0.19510191679000854,
0.6205471754074097,
-0.025613300502300262,
-0.0886719673871994,
0.10174809396266937,
0.2892382740974426,
0.0657995194196701,
-0.20645692944526672,
0.10265807062387466,
-0.3231613039970398,
0.004105583764612675,
0.03233429789543152,
-0.17724351584911346,
0.2091563642024994,
0.40434545278549194,
-0.13527049124240875,
0.19735629856586456,
-0.15097621083259583,
0.21516315639019012,
-0.15519081056118011,
0.30898067355155945,
0.04214157909154892,
-0.23292900621891022,
-0.050695136189460754,
0.2430500090122223,
-0.13156117498874664,
0.21989299356937408,
-0.15606549382209778,
-0.11211638897657394,
0.12239842116832733,
-0.10483375936746597,
0.20299769937992096,
0.02853121981024742,
-0.4526079297065735,
-0.032790396362543106,
-0.18331362307071686,
-0.15974614024162292,
0.013376999646425247,
-0.08203798532485962,
0.3468184471130371,
0.25189244747161865,
0.18600185215473175,
-0.004145320504903793,
0.03325042128562927,
0.14275075495243073,
-0.008819582872092724,
-0.3308890461921692,
0.3472426235675812,
-0.0457744225859642,
-0.17525885999202728,
0.04881700873374939,
0.053034909069538116,
-0.2700374126434326,
-0.01716136932373047,
-0.016213394701480865,
0.4081457853317261,
-0.437567800283432,
-0.07313454151153564,
-0.06176863610744476,
-0.1597326397895813,
-0.09741276502609253,
0.18807080388069153,
-0.08199945092201233,
-0.2776877284049988,
0.44533252716064453,
-0.19184371829032898,
-0.20453272759914398,
-0.04585343971848488,
0.17013785243034363,
0.2722025513648987,
-0.26612427830696106,
0.5271491408348083,
-0.008169431239366531,
-0.20395952463150024,
-0.2986089885234833,
0.11816688627004623,
0.24067530035972595,
-0.178926482796669,
0.30723243951797485,
0.1491335928440094,
0.18016158044338226,
0.23993279039859772,
0.0652860626578331,
-0.24526922404766083,
0.045620452612638474,
-0.19461192190647125,
-0.25122135877609253,
-0.4587336778640747,
-0.22725258767604828,
-0.14536182582378387,
0.2936919033527374,
0.3126309812068939,
0.2828490436077118,
-0.04983910173177719,
0.3358572721481323,
-0.4065794348716736,
-0.11494116485118866,
-0.15313208103179932,
0.27281737327575684,
0.1524820476770401,
0.012861352413892746,
-0.006706777960062027,
0.22807197272777557,
0.1662236601114273,
0.27890798449516296,
-0.05580641329288483,
-0.3985132873058319,
0.0245184525847435,
0.045940101146698,
-0.13302460312843323,
-0.06215186417102814,
0.0371132418513298,
-0.021833764389157295,
-0.24584302306175232,
-0.10736297816038132,
0.25165387988090515,
0.01316329836845398,
0.13181528449058533,
0.20925873517990112,
0.44279929995536804,
0.3391917943954468,
0.11982229351997375,
0.10461761057376862,
-0.14008517563343048,
0.05194273963570595,
0.03908664733171463,
0.29159992933273315,
0.07285533100366592,
-0.009759798645973206,
-0.008776402100920677,
-0.27145180106163025,
0.6143183708190918,
0.06378431618213654,
0.019337836652994156,
-0.39355045557022095,
-0.27918681502342224,
0.12814748287200928,
0.08865915238857269,
0.29241782426834106,
0.05750015377998352,
-0.2814285159111023,
0.3145102262496948,
0.356189489364624,
0.03744843602180481,
0.3104780614376068,
0.16915272176265717,
-0.1325732171535492,
0.12919732928276062,
0.13975770771503448,
-0.061644673347473145,
0.25249165296554565,
0.10081752389669418,
0.16905584931373596,
0.2947505712509155,
-0.27979785203933716,
0.1288771778345108,
0.1937781572341919,
0.08811327815055847,
0.0643601045012474,
0.3061845898628235,
0.09502384066581726,
0.09196449816226959,
0.4118395447731018,
0.1421424150466919,
0.5869659185409546,
0.15627001225948334,
0.13302338123321533,
0.03606542572379112,
-0.407105952501297,
-0.341354101896286,
0.20977136492729187,
-0.3046942353248596,
0.1884256899356842,
-0.014216847717761993,
0.2182081937789917,
0.1494465172290802,
-0.1891222596168518,
-0.08786424249410629,
0.38388827443122864,
-0.46587568521499634,
-0.11966599524021149,
-0.5270377397537231,
-0.06187332421541214,
0.047066815197467804,
-0.15252555906772614,
0.14220106601715088,
0.00033467262983322144,
-0.026842959225177765,
0.02093939110636711,
-0.04460589587688446,
0.03610994666814804,
-0.28754061460494995,
0.2877538204193115,
-0.06748653203248978,
-0.15694426000118256,
0.0797993391752243,
-0.02604980766773224,
0.1523936688899994,
-0.006878584623336792,
0.21889503300189972,
0.37610724568367004,
0.32299384474754333,
-0.192214697599411,
-0.09409606456756592,
0.05172966793179512,
-0.06287156045436859,
-0.16198469698429108,
0.25494885444641113,
-0.192280113697052,
-0.005392439663410187,
0.3815493881702423,
0.2739575505256653,
-0.24998340010643005,
-0.3349291980266571,
0.025707967579364777,
-0.021838776767253876,
-0.041347868740558624,
0.4966602921485901,
0.11915786564350128,
-0.10868065059185028,
-0.28611668944358826,
-0.026095494627952576,
-0.42549508810043335,
-0.04938489943742752,
0.5210604667663574,
-0.41027945280075073,
0.10819444060325623,
-0.18439644575119019,
0.12379689514636993,
-0.2985061705112457,
0.4248542785644531,
0.30588555335998535,
0.28504207730293274,
-0.46722790598869324,
0.015920326113700867,
-0.2836149036884308,
0.22864243388175964,
-0.050108809024095535,
0.0008189883083105087,
-0.24609020352363586,
0.24277378618717194,
-0.2073599100112915,
0.06424181163311005,
-0.06586156785488129,
-0.14118602871894836,
0.08984842896461487,
0.3890625834465027,
-0.34447047114372253,
0.0781765729188919,
-0.3071107864379883,
-0.02714446373283863,
0.13910934329032898,
-0.31648412346839905,
0.16173775494098663,
0.11416051536798477,
0.15744245052337646,
-0.15649718046188354,
0.027107983827590942,
0.29524728655815125,
-0.18972532451152802,
0.25101369619369507,
0.2174009084701538,
0.35639315843582153,
-0.21160182356834412,
0.4840889573097229,
-0.09924432635307312,
0.05625324696302414,
-0.3012342154979706,
-0.16344121098518372,
0.14305473864078522,
0.17657652497291565,
0.022572392597794533,
0.026949230581521988,
-0.2492118775844574,
-0.08632716536521912,
0.08038072288036346,
-0.1846027821302414,
0.033137112855911255,
0.067121721804142,
-0.05809301137924194,
0.03570094704627991,
0.0681234672665596,
0.19037237763404846,
0.2587810754776001,
0.23001188039779663,
-0.42246735095977783,
-0.4245304763317108,
0.40236449241638184,
-0.38838642835617065,
-0.30135393142700195,
-0.3631489872932434,
0.2955275774002075,
0.059014298021793365,
0.09622541069984436,
-0.15730436146259308,
0.001029573380947113,
0.44452178478240967,
-0.058370478451251984,
-0.007165286689996719,
0.3775200843811035,
0.17068301141262054,
0.2029896229505539,
-0.17770668864250183,
-0.11001551151275635,
0.11934828013181686,
-0.0026776399463415146,
0.07206238806247711,
-0.3162921667098999
] |
https://github.com/huggingface/datasets/issues/823 | how processing in batch works in datasets | Hi Thomas,
what I do not get from documentation is that why when you set batched=True,
this is processed in batch, while data is not divided to batched
beforehand, basically this is a question on the documentation and I do not
get the batched=True, but sure, if you think this is more appropriate in
forum I will post it there.
thanks
Best
Rabeeh
On Tue, Nov 10, 2020 at 12:21 PM Thomas Wolf <notifications@github.com>
wrote:
> Hi I don’t think this is a request for a dataset like you labeled it.
>
> I also think this would be better suited for the forum at
> https://discuss.huggingface.co. we try to keep the issue for the repo for
> bug reports and new features/dataset requests and have usage questions
> discussed on the forum. Thanks.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/823#issuecomment-724639476>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHH4FIPFHVVUHANAE4F3SPEO2JANCNFSM4TQQVEXQ>
> .
>
| Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
| 167 | how processing in batch works in datasets
Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
Hi Thomas,
what I do not get from documentation is that why when you set batched=True,
this is processed in batch, while data is not divided to batched
beforehand, basically this is a question on the documentation and I do not
get the batched=True, but sure, if you think this is more appropriate in
forum I will post it there.
thanks
Best
Rabeeh
On Tue, Nov 10, 2020 at 12:21 PM Thomas Wolf <notifications@github.com>
wrote:
> Hi I don’t think this is a request for a dataset like you labeled it.
>
> I also think this would be better suited for the forum at
> https://discuss.huggingface.co. we try to keep the issue for the repo for
> bug reports and new features/dataset requests and have usage questions
> discussed on the forum. Thanks.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/823#issuecomment-724639476>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHH4FIPFHVVUHANAE4F3SPEO2JANCNFSM4TQQVEXQ>
> .
>
| [
-0.5023795962333679,
-0.17439483106136322,
-0.22950232028961182,
0.1301569938659668,
0.17803548276424408,
0.0317944660782814,
0.29556140303611755,
0.17130397260189056,
-0.1484706699848175,
0.17807698249816895,
0.00912182405591011,
0.12478051334619522,
0.06411977112293243,
0.2456236332654953,
-0.05616506189107895,
-0.03589154779911041,
-0.07459747046232224,
0.04837709292769432,
0.1096089705824852,
0.0072340890765190125,
-0.3676089942455292,
0.06899750232696533,
-0.4043075442314148,
0.05223412811756134,
-0.22304680943489075,
-0.2693563997745514,
-0.061245258897542953,
-0.03925689309835434,
-0.004413064569234848,
-0.15258879959583282,
-0.002225443720817566,
0.23349496722221375,
0.20883946120738983,
0.43265029788017273,
-0.00010495645256014541,
0.07853114604949951,
0.24677583575248718,
0.03938253968954086,
-0.2903352975845337,
0.22262781858444214,
-0.04940001666545868,
-0.169552743434906,
-0.10629840940237045,
-0.3042084276676178,
-0.10083643347024918,
-0.08600081503391266,
-0.1385589987039566,
-0.33743008971214294,
0.3848307132720947,
0.175383061170578,
0.2844720780849457,
0.28025513887405396,
-0.14760532975196838,
0.1414177566766739,
0.061004042625427246,
0.071453757584095,
0.08511261641979218,
-0.3902091979980469,
0.06823217123746872,
0.14792729914188385,
-0.048406489193439484,
0.14961999654769897,
-0.2720299959182739,
0.08594105392694473,
-0.2550972104072571,
0.02188817411661148,
0.026098143309354782,
-0.38470301032066345,
0.08848479390144348,
-0.1349761188030243,
0.28465965390205383,
-0.21236294507980347,
-0.24407489597797394,
-0.3842584490776062,
-0.272465318441391,
-0.4653170108795166,
-0.026978880167007446,
0.11313202977180481,
-0.06848220527172089,
0.10127107053995132,
-0.0785875916481018,
0.24084646999835968,
-0.0737227201461792,
-0.16669417917728424,
0.11142706871032715,
0.25681108236312866,
-0.2119234949350357,
0.21988186240196228,
0.07004088163375854,
0.08878855407238007,
0.1648152470588684,
-0.23507198691368103,
-0.00043381378054618835,
0.2723602056503296,
-0.49079686403274536,
-0.08711923658847809,
-0.1117742732167244,
-0.15199124813079834,
-0.1408957988023758,
0.05416052043437958,
-0.12841255962848663,
0.1272302120923996,
0.31612735986709595,
0.15641829371452332,
-0.02959592640399933,
0.16435618698596954,
0.11872155964374542,
0.2562074363231659,
-0.0771184116601944,
-0.3050594925880432,
-0.2260430008172989,
0.027757257223129272,
-0.07858867198228836,
-0.32984668016433716,
0.14713919162750244,
0.3610415756702423,
0.2499246448278427,
0.03027760609984398,
-0.48716476559638977,
-0.09039229154586792,
-0.01904170773923397,
-0.05809762328863144,
0.14209319651126862,
0.2845914661884308,
-0.24076297879219055,
0.250846266746521,
-0.08102615177631378,
-0.15231674909591675,
-0.29263511300086975,
-0.046195778995752335,
-0.30273810029029846,
-0.11525727808475494,
-0.149619922041893,
0.07027894258499146,
0.13497738540172577,
-0.17215996980667114,
0.3239186108112335,
0.07558325678110123,
0.0962868183851242,
-0.17466042935848236,
0.5014522671699524,
-0.3949419856071472,
0.2224128246307373,
0.2599134147167206,
0.1795816421508789,
0.2426498979330063,
0.053201187402009964,
0.20976652204990387,
0.03996173292398453,
0.07378122210502625,
-0.6257674694061279,
-0.17911767959594727,
0.24746330082416534,
0.3138490915298462,
-0.050551846623420715,
0.0014614760875701904,
-0.5935843586921692,
-0.08692243695259094,
0.32132667303085327,
0.09062673151493073,
0.11970964819192886,
-0.1754259467124939,
-0.18599559366703033,
-0.19467958807945251,
0.20039673149585724,
0.08525849878787994,
-0.4504089653491974,
0.06793272495269775,
-0.11536458134651184,
-0.3227444589138031,
0.5454285144805908,
0.1242685616016388,
-0.11386711150407791,
0.6199548244476318,
-0.3095552921295166,
0.37830305099487305,
0.19371876120567322,
-0.318939208984375,
-0.2815083861351013,
0.5390690565109253,
-0.25751227140426636,
0.018087035045027733,
0.039820462465286255,
0.03250711411237717,
0.5586631298065186,
-0.06028754264116287,
0.036230169236660004,
0.37874358892440796,
-0.11922885477542877,
0.0902983769774437,
-0.09956955909729004,
0.11563748121261597,
0.08595331013202667,
-0.017408115789294243,
0.10389268398284912,
0.043863799422979355,
-0.21674269437789917,
-0.04455369710922241,
0.1737813949584961,
0.05349879711866379,
0.29659974575042725,
0.24967443943023682,
0.011494364589452744,
0.2087978571653366,
0.1932460516691208,
-0.045412324368953705,
-0.29646506905555725,
0.09573233872652054,
-0.020332789048552513,
-0.18323351442813873,
0.04056452587246895,
-0.3565838932991028,
-0.14273816347122192,
0.14648383855819702,
-0.40808436274528503,
-0.17031410336494446,
0.21879339218139648,
0.0912245512008667,
0.02236040309071541,
-0.3133271336555481,
0.005141671746969223,
0.32892611622810364,
-0.018437014892697334,
0.03201226890087128,
-0.19385391473770142,
-0.022045420482754707,
0.007847605273127556,
-0.15076391398906708,
-0.06133371964097023,
-0.07919991761445999,
0.2228216826915741,
0.007429874502122402,
-0.04933391883969307,
0.35336533188819885,
0.274745374917984,
0.06399571895599365,
-0.03651590645313263,
-0.12384657561779022,
-0.01024857722222805,
0.11414748430252075,
-0.0905265137553215,
-0.03585420548915863,
0.21717336773872375,
-0.12560704350471497,
0.24783077836036682,
0.42528194189071655,
-0.04693366959691048,
0.26575833559036255,
-0.03825564682483673,
-0.2736453711986542,
0.22645235061645508,
-0.07021650671958923,
-0.042867496609687805,
0.1976909041404724,
-0.0458722747862339,
0.00152587890625,
0.340833842754364,
0.044004444032907486,
-0.055947862565517426,
0.17708724737167358,
0.42730358242988586,
-0.004344938322901726,
-0.16920283436775208,
-0.01923035830259323,
-0.20830503106117249,
0.10800882428884506,
0.15949594974517822,
-0.025841768831014633,
0.12190850079059601,
0.16937164962291718,
0.11964854598045349,
-0.10231410712003708,
0.10452348738908768,
-0.03796319290995598,
0.08203011751174927,
0.3170751929283142,
0.18051964044570923,
0.16187390685081482,
-0.09162594377994537,
-0.05618174001574516,
-0.0036793313920497894,
-0.11006943881511688,
0.19136227667331696,
0.23988445103168488,
-0.36543339490890503,
0.21321982145309448,
-0.14592988789081573,
-0.0898105576634407,
-0.15111775696277618,
-0.03144609555602074,
0.1613282710313797,
-0.1398266851902008,
-0.076407790184021,
0.21738915145397186,
-0.1582912653684616,
0.028309112414717674,
-0.08624467253684998,
0.03933723270893097,
0.27152204513549805,
-0.3807459771633148,
-0.16086287796497345,
-0.05961766466498375,
-0.18188261985778809,
0.20186223089694977,
0.06786850094795227,
0.10808628797531128,
0.4683229327201843,
0.0514347180724144,
0.03878499194979668,
-0.11555048078298569,
-0.15221759676933289,
0.07787910103797913,
-0.19765235483646393,
0.1767098307609558,
0.016944989562034607,
0.1401747316122055,
-0.1079597920179367,
-0.3839942514896393,
0.1391078680753708,
-0.18394118547439575,
-0.33134979009628296,
-0.08557280898094177,
-0.01734696887433529,
0.04050062224268913,
-0.20870719850063324,
-0.43180856108665466,
-0.23302169144153595,
-0.17911137640476227,
0.021623380482196808,
-0.06954988837242126,
0.2032478004693985,
-0.00936905574053526,
-0.01788986474275589,
0.14972135424613953,
0.26238393783569336,
-0.15724745392799377,
-0.08772142231464386,
-0.48812609910964966,
0.1246124655008316,
-0.2836304306983948,
-0.01973259076476097,
-0.0922570675611496,
-0.10247053951025009,
0.422354519367218,
0.30863893032073975,
-0.19039367139339447,
0.11806013435125351,
-0.08892610669136047,
0.24083212018013,
-0.09775321185588837,
-0.02653520740568638,
0.19540753960609436,
-0.07893342524766922,
-0.09966503083705902,
-0.11733517795801163,
0.07362304627895355,
0.11769810318946838,
-0.2414381504058838,
0.06471496820449829,
-0.017784729599952698,
0.6492412686347961,
-0.01928257755935192,
0.9116162657737732,
0.08709467947483063,
-0.0874783843755722,
0.1329250931739807,
0.004422841593623161,
-0.15793950855731964,
-0.012976616621017456,
-0.30091673135757446,
0.09074537456035614,
0.027977831661701202,
-0.18693625926971436,
0.19288833439350128,
-0.1721879243850708,
-0.008558075875043869,
0.07027649879455566,
-0.01714853011071682,
-0.6442943811416626,
-0.06746687740087509,
0.07695311307907104,
0.0041396282613277435,
0.3435702323913574,
-0.1565954089164734,
0.0682593360543251,
-0.2833538055419922,
-0.059069324284791946,
-0.09082823991775513,
0.046469785273075104,
0.23815947771072388,
-0.18369098007678986,
-0.3598339855670929,
0.08883601427078247,
-0.2709054946899414,
0.2956254780292511,
0.06683962047100067,
0.3335529863834381,
0.027602780610322952,
-0.04001679643988609,
0.111262246966362,
-0.13172532618045807,
0.7860841751098633,
-0.04430217295885086,
0.06751684099435806,
0.057194460183382034,
-0.24339795112609863,
-0.16150979697704315,
-0.0845041573047638,
-0.339153528213501,
0.20839989185333252,
0.5520217418670654,
0.2944181263446808,
-0.21103763580322266,
-0.36287975311279297,
0.017312921583652496,
-0.18864187598228455,
-0.16484618186950684,
-0.29953157901763916,
-0.3377783000469208,
-0.14936664700508118,
-0.3823862075805664,
0.31098392605781555,
0.2597947418689728,
0.11348220705986023,
-0.43688780069351196,
-0.3712887167930603,
-0.3057020306587219,
-0.08963429182767868,
0.19536422193050385,
-0.06653864681720734,
0.028661014512181282,
0.023897694423794746,
0.2161182016134262,
0.02199602499604225,
0.28753870725631714,
0.3828943371772766,
0.21269568800926208,
-0.17296357452869415,
-0.33728402853012085,
0.1827811896800995,
-0.09838762134313583,
0.48431113362312317,
0.028597019612789154,
-0.2987978160381317,
0.3437284827232361,
-0.03737928345799446,
0.1920202523469925,
-0.45076093077659607,
0.5018010139465332,
0.4323754608631134,
0.18065065145492554,
-0.5321661829948425,
-0.5739416480064392,
0.1534672975540161,
0.33902227878570557,
-0.09803441166877747,
0.13715294003486633,
-0.23289187252521515,
-0.27702656388282776,
0.1009882315993309,
0.19510191679000854,
0.6205471754074097,
-0.025613300502300262,
-0.0886719673871994,
0.10174809396266937,
0.2892382740974426,
0.0657995194196701,
-0.20645692944526672,
0.10265807062387466,
-0.3231613039970398,
0.004105583764612675,
0.03233429789543152,
-0.17724351584911346,
0.2091563642024994,
0.40434545278549194,
-0.13527049124240875,
0.19735629856586456,
-0.15097621083259583,
0.21516315639019012,
-0.15519081056118011,
0.30898067355155945,
0.04214157909154892,
-0.23292900621891022,
-0.050695136189460754,
0.2430500090122223,
-0.13156117498874664,
0.21989299356937408,
-0.15606549382209778,
-0.11211638897657394,
0.12239842116832733,
-0.10483375936746597,
0.20299769937992096,
0.02853121981024742,
-0.4526079297065735,
-0.032790396362543106,
-0.18331362307071686,
-0.15974614024162292,
0.013376999646425247,
-0.08203798532485962,
0.3468184471130371,
0.25189244747161865,
0.18600185215473175,
-0.004145320504903793,
0.03325042128562927,
0.14275075495243073,
-0.008819582872092724,
-0.3308890461921692,
0.3472426235675812,
-0.0457744225859642,
-0.17525885999202728,
0.04881700873374939,
0.053034909069538116,
-0.2700374126434326,
-0.01716136932373047,
-0.016213394701480865,
0.4081457853317261,
-0.437567800283432,
-0.07313454151153564,
-0.06176863610744476,
-0.1597326397895813,
-0.09741276502609253,
0.18807080388069153,
-0.08199945092201233,
-0.2776877284049988,
0.44533252716064453,
-0.19184371829032898,
-0.20453272759914398,
-0.04585343971848488,
0.17013785243034363,
0.2722025513648987,
-0.26612427830696106,
0.5271491408348083,
-0.008169431239366531,
-0.20395952463150024,
-0.2986089885234833,
0.11816688627004623,
0.24067530035972595,
-0.178926482796669,
0.30723243951797485,
0.1491335928440094,
0.18016158044338226,
0.23993279039859772,
0.0652860626578331,
-0.24526922404766083,
0.045620452612638474,
-0.19461192190647125,
-0.25122135877609253,
-0.4587336778640747,
-0.22725258767604828,
-0.14536182582378387,
0.2936919033527374,
0.3126309812068939,
0.2828490436077118,
-0.04983910173177719,
0.3358572721481323,
-0.4065794348716736,
-0.11494116485118866,
-0.15313208103179932,
0.27281737327575684,
0.1524820476770401,
0.012861352413892746,
-0.006706777960062027,
0.22807197272777557,
0.1662236601114273,
0.27890798449516296,
-0.05580641329288483,
-0.3985132873058319,
0.0245184525847435,
0.045940101146698,
-0.13302460312843323,
-0.06215186417102814,
0.0371132418513298,
-0.021833764389157295,
-0.24584302306175232,
-0.10736297816038132,
0.25165387988090515,
0.01316329836845398,
0.13181528449058533,
0.20925873517990112,
0.44279929995536804,
0.3391917943954468,
0.11982229351997375,
0.10461761057376862,
-0.14008517563343048,
0.05194273963570595,
0.03908664733171463,
0.29159992933273315,
0.07285533100366592,
-0.009759798645973206,
-0.008776402100920677,
-0.27145180106163025,
0.6143183708190918,
0.06378431618213654,
0.019337836652994156,
-0.39355045557022095,
-0.27918681502342224,
0.12814748287200928,
0.08865915238857269,
0.29241782426834106,
0.05750015377998352,
-0.2814285159111023,
0.3145102262496948,
0.356189489364624,
0.03744843602180481,
0.3104780614376068,
0.16915272176265717,
-0.1325732171535492,
0.12919732928276062,
0.13975770771503448,
-0.061644673347473145,
0.25249165296554565,
0.10081752389669418,
0.16905584931373596,
0.2947505712509155,
-0.27979785203933716,
0.1288771778345108,
0.1937781572341919,
0.08811327815055847,
0.0643601045012474,
0.3061845898628235,
0.09502384066581726,
0.09196449816226959,
0.4118395447731018,
0.1421424150466919,
0.5869659185409546,
0.15627001225948334,
0.13302338123321533,
0.03606542572379112,
-0.407105952501297,
-0.341354101896286,
0.20977136492729187,
-0.3046942353248596,
0.1884256899356842,
-0.014216847717761993,
0.2182081937789917,
0.1494465172290802,
-0.1891222596168518,
-0.08786424249410629,
0.38388827443122864,
-0.46587568521499634,
-0.11966599524021149,
-0.5270377397537231,
-0.06187332421541214,
0.047066815197467804,
-0.15252555906772614,
0.14220106601715088,
0.00033467262983322144,
-0.026842959225177765,
0.02093939110636711,
-0.04460589587688446,
0.03610994666814804,
-0.28754061460494995,
0.2877538204193115,
-0.06748653203248978,
-0.15694426000118256,
0.0797993391752243,
-0.02604980766773224,
0.1523936688899994,
-0.006878584623336792,
0.21889503300189972,
0.37610724568367004,
0.32299384474754333,
-0.192214697599411,
-0.09409606456756592,
0.05172966793179512,
-0.06287156045436859,
-0.16198469698429108,
0.25494885444641113,
-0.192280113697052,
-0.005392439663410187,
0.3815493881702423,
0.2739575505256653,
-0.24998340010643005,
-0.3349291980266571,
0.025707967579364777,
-0.021838776767253876,
-0.041347868740558624,
0.4966602921485901,
0.11915786564350128,
-0.10868065059185028,
-0.28611668944358826,
-0.026095494627952576,
-0.42549508810043335,
-0.04938489943742752,
0.5210604667663574,
-0.41027945280075073,
0.10819444060325623,
-0.18439644575119019,
0.12379689514636993,
-0.2985061705112457,
0.4248542785644531,
0.30588555335998535,
0.28504207730293274,
-0.46722790598869324,
0.015920326113700867,
-0.2836149036884308,
0.22864243388175964,
-0.050108809024095535,
0.0008189883083105087,
-0.24609020352363586,
0.24277378618717194,
-0.2073599100112915,
0.06424181163311005,
-0.06586156785488129,
-0.14118602871894836,
0.08984842896461487,
0.3890625834465027,
-0.34447047114372253,
0.0781765729188919,
-0.3071107864379883,
-0.02714446373283863,
0.13910934329032898,
-0.31648412346839905,
0.16173775494098663,
0.11416051536798477,
0.15744245052337646,
-0.15649718046188354,
0.027107983827590942,
0.29524728655815125,
-0.18972532451152802,
0.25101369619369507,
0.2174009084701538,
0.35639315843582153,
-0.21160182356834412,
0.4840889573097229,
-0.09924432635307312,
0.05625324696302414,
-0.3012342154979706,
-0.16344121098518372,
0.14305473864078522,
0.17657652497291565,
0.022572392597794533,
0.026949230581521988,
-0.2492118775844574,
-0.08632716536521912,
0.08038072288036346,
-0.1846027821302414,
0.033137112855911255,
0.067121721804142,
-0.05809301137924194,
0.03570094704627991,
0.0681234672665596,
0.19037237763404846,
0.2587810754776001,
0.23001188039779663,
-0.42246735095977783,
-0.4245304763317108,
0.40236449241638184,
-0.38838642835617065,
-0.30135393142700195,
-0.3631489872932434,
0.2955275774002075,
0.059014298021793365,
0.09622541069984436,
-0.15730436146259308,
0.001029573380947113,
0.44452178478240967,
-0.058370478451251984,
-0.007165286689996719,
0.3775200843811035,
0.17068301141262054,
0.2029896229505539,
-0.17770668864250183,
-0.11001551151275635,
0.11934828013181686,
-0.0026776399463415146,
0.07206238806247711,
-0.3162921667098999
] |
https://github.com/huggingface/datasets/issues/823 | how processing in batch works in datasets | Yes the forum is perfect for that. You can post in the `datasets` section.
Thanks a lot! | Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
| 17 | how processing in batch works in datasets
Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
Yes the forum is perfect for that. You can post in the `datasets` section.
Thanks a lot! | [
-0.5023795962333679,
-0.17439483106136322,
-0.22950232028961182,
0.1301569938659668,
0.17803548276424408,
0.0317944660782814,
0.29556140303611755,
0.17130397260189056,
-0.1484706699848175,
0.17807698249816895,
0.00912182405591011,
0.12478051334619522,
0.06411977112293243,
0.2456236332654953,
-0.05616506189107895,
-0.03589154779911041,
-0.07459747046232224,
0.04837709292769432,
0.1096089705824852,
0.0072340890765190125,
-0.3676089942455292,
0.06899750232696533,
-0.4043075442314148,
0.05223412811756134,
-0.22304680943489075,
-0.2693563997745514,
-0.061245258897542953,
-0.03925689309835434,
-0.004413064569234848,
-0.15258879959583282,
-0.002225443720817566,
0.23349496722221375,
0.20883946120738983,
0.43265029788017273,
-0.00010495645256014541,
0.07853114604949951,
0.24677583575248718,
0.03938253968954086,
-0.2903352975845337,
0.22262781858444214,
-0.04940001666545868,
-0.169552743434906,
-0.10629840940237045,
-0.3042084276676178,
-0.10083643347024918,
-0.08600081503391266,
-0.1385589987039566,
-0.33743008971214294,
0.3848307132720947,
0.175383061170578,
0.2844720780849457,
0.28025513887405396,
-0.14760532975196838,
0.1414177566766739,
0.061004042625427246,
0.071453757584095,
0.08511261641979218,
-0.3902091979980469,
0.06823217123746872,
0.14792729914188385,
-0.048406489193439484,
0.14961999654769897,
-0.2720299959182739,
0.08594105392694473,
-0.2550972104072571,
0.02188817411661148,
0.026098143309354782,
-0.38470301032066345,
0.08848479390144348,
-0.1349761188030243,
0.28465965390205383,
-0.21236294507980347,
-0.24407489597797394,
-0.3842584490776062,
-0.272465318441391,
-0.4653170108795166,
-0.026978880167007446,
0.11313202977180481,
-0.06848220527172089,
0.10127107053995132,
-0.0785875916481018,
0.24084646999835968,
-0.0737227201461792,
-0.16669417917728424,
0.11142706871032715,
0.25681108236312866,
-0.2119234949350357,
0.21988186240196228,
0.07004088163375854,
0.08878855407238007,
0.1648152470588684,
-0.23507198691368103,
-0.00043381378054618835,
0.2723602056503296,
-0.49079686403274536,
-0.08711923658847809,
-0.1117742732167244,
-0.15199124813079834,
-0.1408957988023758,
0.05416052043437958,
-0.12841255962848663,
0.1272302120923996,
0.31612735986709595,
0.15641829371452332,
-0.02959592640399933,
0.16435618698596954,
0.11872155964374542,
0.2562074363231659,
-0.0771184116601944,
-0.3050594925880432,
-0.2260430008172989,
0.027757257223129272,
-0.07858867198228836,
-0.32984668016433716,
0.14713919162750244,
0.3610415756702423,
0.2499246448278427,
0.03027760609984398,
-0.48716476559638977,
-0.09039229154586792,
-0.01904170773923397,
-0.05809762328863144,
0.14209319651126862,
0.2845914661884308,
-0.24076297879219055,
0.250846266746521,
-0.08102615177631378,
-0.15231674909591675,
-0.29263511300086975,
-0.046195778995752335,
-0.30273810029029846,
-0.11525727808475494,
-0.149619922041893,
0.07027894258499146,
0.13497738540172577,
-0.17215996980667114,
0.3239186108112335,
0.07558325678110123,
0.0962868183851242,
-0.17466042935848236,
0.5014522671699524,
-0.3949419856071472,
0.2224128246307373,
0.2599134147167206,
0.1795816421508789,
0.2426498979330063,
0.053201187402009964,
0.20976652204990387,
0.03996173292398453,
0.07378122210502625,
-0.6257674694061279,
-0.17911767959594727,
0.24746330082416534,
0.3138490915298462,
-0.050551846623420715,
0.0014614760875701904,
-0.5935843586921692,
-0.08692243695259094,
0.32132667303085327,
0.09062673151493073,
0.11970964819192886,
-0.1754259467124939,
-0.18599559366703033,
-0.19467958807945251,
0.20039673149585724,
0.08525849878787994,
-0.4504089653491974,
0.06793272495269775,
-0.11536458134651184,
-0.3227444589138031,
0.5454285144805908,
0.1242685616016388,
-0.11386711150407791,
0.6199548244476318,
-0.3095552921295166,
0.37830305099487305,
0.19371876120567322,
-0.318939208984375,
-0.2815083861351013,
0.5390690565109253,
-0.25751227140426636,
0.018087035045027733,
0.039820462465286255,
0.03250711411237717,
0.5586631298065186,
-0.06028754264116287,
0.036230169236660004,
0.37874358892440796,
-0.11922885477542877,
0.0902983769774437,
-0.09956955909729004,
0.11563748121261597,
0.08595331013202667,
-0.017408115789294243,
0.10389268398284912,
0.043863799422979355,
-0.21674269437789917,
-0.04455369710922241,
0.1737813949584961,
0.05349879711866379,
0.29659974575042725,
0.24967443943023682,
0.011494364589452744,
0.2087978571653366,
0.1932460516691208,
-0.045412324368953705,
-0.29646506905555725,
0.09573233872652054,
-0.020332789048552513,
-0.18323351442813873,
0.04056452587246895,
-0.3565838932991028,
-0.14273816347122192,
0.14648383855819702,
-0.40808436274528503,
-0.17031410336494446,
0.21879339218139648,
0.0912245512008667,
0.02236040309071541,
-0.3133271336555481,
0.005141671746969223,
0.32892611622810364,
-0.018437014892697334,
0.03201226890087128,
-0.19385391473770142,
-0.022045420482754707,
0.007847605273127556,
-0.15076391398906708,
-0.06133371964097023,
-0.07919991761445999,
0.2228216826915741,
0.007429874502122402,
-0.04933391883969307,
0.35336533188819885,
0.274745374917984,
0.06399571895599365,
-0.03651590645313263,
-0.12384657561779022,
-0.01024857722222805,
0.11414748430252075,
-0.0905265137553215,
-0.03585420548915863,
0.21717336773872375,
-0.12560704350471497,
0.24783077836036682,
0.42528194189071655,
-0.04693366959691048,
0.26575833559036255,
-0.03825564682483673,
-0.2736453711986542,
0.22645235061645508,
-0.07021650671958923,
-0.042867496609687805,
0.1976909041404724,
-0.0458722747862339,
0.00152587890625,
0.340833842754364,
0.044004444032907486,
-0.055947862565517426,
0.17708724737167358,
0.42730358242988586,
-0.004344938322901726,
-0.16920283436775208,
-0.01923035830259323,
-0.20830503106117249,
0.10800882428884506,
0.15949594974517822,
-0.025841768831014633,
0.12190850079059601,
0.16937164962291718,
0.11964854598045349,
-0.10231410712003708,
0.10452348738908768,
-0.03796319290995598,
0.08203011751174927,
0.3170751929283142,
0.18051964044570923,
0.16187390685081482,
-0.09162594377994537,
-0.05618174001574516,
-0.0036793313920497894,
-0.11006943881511688,
0.19136227667331696,
0.23988445103168488,
-0.36543339490890503,
0.21321982145309448,
-0.14592988789081573,
-0.0898105576634407,
-0.15111775696277618,
-0.03144609555602074,
0.1613282710313797,
-0.1398266851902008,
-0.076407790184021,
0.21738915145397186,
-0.1582912653684616,
0.028309112414717674,
-0.08624467253684998,
0.03933723270893097,
0.27152204513549805,
-0.3807459771633148,
-0.16086287796497345,
-0.05961766466498375,
-0.18188261985778809,
0.20186223089694977,
0.06786850094795227,
0.10808628797531128,
0.4683229327201843,
0.0514347180724144,
0.03878499194979668,
-0.11555048078298569,
-0.15221759676933289,
0.07787910103797913,
-0.19765235483646393,
0.1767098307609558,
0.016944989562034607,
0.1401747316122055,
-0.1079597920179367,
-0.3839942514896393,
0.1391078680753708,
-0.18394118547439575,
-0.33134979009628296,
-0.08557280898094177,
-0.01734696887433529,
0.04050062224268913,
-0.20870719850063324,
-0.43180856108665466,
-0.23302169144153595,
-0.17911137640476227,
0.021623380482196808,
-0.06954988837242126,
0.2032478004693985,
-0.00936905574053526,
-0.01788986474275589,
0.14972135424613953,
0.26238393783569336,
-0.15724745392799377,
-0.08772142231464386,
-0.48812609910964966,
0.1246124655008316,
-0.2836304306983948,
-0.01973259076476097,
-0.0922570675611496,
-0.10247053951025009,
0.422354519367218,
0.30863893032073975,
-0.19039367139339447,
0.11806013435125351,
-0.08892610669136047,
0.24083212018013,
-0.09775321185588837,
-0.02653520740568638,
0.19540753960609436,
-0.07893342524766922,
-0.09966503083705902,
-0.11733517795801163,
0.07362304627895355,
0.11769810318946838,
-0.2414381504058838,
0.06471496820449829,
-0.017784729599952698,
0.6492412686347961,
-0.01928257755935192,
0.9116162657737732,
0.08709467947483063,
-0.0874783843755722,
0.1329250931739807,
0.004422841593623161,
-0.15793950855731964,
-0.012976616621017456,
-0.30091673135757446,
0.09074537456035614,
0.027977831661701202,
-0.18693625926971436,
0.19288833439350128,
-0.1721879243850708,
-0.008558075875043869,
0.07027649879455566,
-0.01714853011071682,
-0.6442943811416626,
-0.06746687740087509,
0.07695311307907104,
0.0041396282613277435,
0.3435702323913574,
-0.1565954089164734,
0.0682593360543251,
-0.2833538055419922,
-0.059069324284791946,
-0.09082823991775513,
0.046469785273075104,
0.23815947771072388,
-0.18369098007678986,
-0.3598339855670929,
0.08883601427078247,
-0.2709054946899414,
0.2956254780292511,
0.06683962047100067,
0.3335529863834381,
0.027602780610322952,
-0.04001679643988609,
0.111262246966362,
-0.13172532618045807,
0.7860841751098633,
-0.04430217295885086,
0.06751684099435806,
0.057194460183382034,
-0.24339795112609863,
-0.16150979697704315,
-0.0845041573047638,
-0.339153528213501,
0.20839989185333252,
0.5520217418670654,
0.2944181263446808,
-0.21103763580322266,
-0.36287975311279297,
0.017312921583652496,
-0.18864187598228455,
-0.16484618186950684,
-0.29953157901763916,
-0.3377783000469208,
-0.14936664700508118,
-0.3823862075805664,
0.31098392605781555,
0.2597947418689728,
0.11348220705986023,
-0.43688780069351196,
-0.3712887167930603,
-0.3057020306587219,
-0.08963429182767868,
0.19536422193050385,
-0.06653864681720734,
0.028661014512181282,
0.023897694423794746,
0.2161182016134262,
0.02199602499604225,
0.28753870725631714,
0.3828943371772766,
0.21269568800926208,
-0.17296357452869415,
-0.33728402853012085,
0.1827811896800995,
-0.09838762134313583,
0.48431113362312317,
0.028597019612789154,
-0.2987978160381317,
0.3437284827232361,
-0.03737928345799446,
0.1920202523469925,
-0.45076093077659607,
0.5018010139465332,
0.4323754608631134,
0.18065065145492554,
-0.5321661829948425,
-0.5739416480064392,
0.1534672975540161,
0.33902227878570557,
-0.09803441166877747,
0.13715294003486633,
-0.23289187252521515,
-0.27702656388282776,
0.1009882315993309,
0.19510191679000854,
0.6205471754074097,
-0.025613300502300262,
-0.0886719673871994,
0.10174809396266937,
0.2892382740974426,
0.0657995194196701,
-0.20645692944526672,
0.10265807062387466,
-0.3231613039970398,
0.004105583764612675,
0.03233429789543152,
-0.17724351584911346,
0.2091563642024994,
0.40434545278549194,
-0.13527049124240875,
0.19735629856586456,
-0.15097621083259583,
0.21516315639019012,
-0.15519081056118011,
0.30898067355155945,
0.04214157909154892,
-0.23292900621891022,
-0.050695136189460754,
0.2430500090122223,
-0.13156117498874664,
0.21989299356937408,
-0.15606549382209778,
-0.11211638897657394,
0.12239842116832733,
-0.10483375936746597,
0.20299769937992096,
0.02853121981024742,
-0.4526079297065735,
-0.032790396362543106,
-0.18331362307071686,
-0.15974614024162292,
0.013376999646425247,
-0.08203798532485962,
0.3468184471130371,
0.25189244747161865,
0.18600185215473175,
-0.004145320504903793,
0.03325042128562927,
0.14275075495243073,
-0.008819582872092724,
-0.3308890461921692,
0.3472426235675812,
-0.0457744225859642,
-0.17525885999202728,
0.04881700873374939,
0.053034909069538116,
-0.2700374126434326,
-0.01716136932373047,
-0.016213394701480865,
0.4081457853317261,
-0.437567800283432,
-0.07313454151153564,
-0.06176863610744476,
-0.1597326397895813,
-0.09741276502609253,
0.18807080388069153,
-0.08199945092201233,
-0.2776877284049988,
0.44533252716064453,
-0.19184371829032898,
-0.20453272759914398,
-0.04585343971848488,
0.17013785243034363,
0.2722025513648987,
-0.26612427830696106,
0.5271491408348083,
-0.008169431239366531,
-0.20395952463150024,
-0.2986089885234833,
0.11816688627004623,
0.24067530035972595,
-0.178926482796669,
0.30723243951797485,
0.1491335928440094,
0.18016158044338226,
0.23993279039859772,
0.0652860626578331,
-0.24526922404766083,
0.045620452612638474,
-0.19461192190647125,
-0.25122135877609253,
-0.4587336778640747,
-0.22725258767604828,
-0.14536182582378387,
0.2936919033527374,
0.3126309812068939,
0.2828490436077118,
-0.04983910173177719,
0.3358572721481323,
-0.4065794348716736,
-0.11494116485118866,
-0.15313208103179932,
0.27281737327575684,
0.1524820476770401,
0.012861352413892746,
-0.006706777960062027,
0.22807197272777557,
0.1662236601114273,
0.27890798449516296,
-0.05580641329288483,
-0.3985132873058319,
0.0245184525847435,
0.045940101146698,
-0.13302460312843323,
-0.06215186417102814,
0.0371132418513298,
-0.021833764389157295,
-0.24584302306175232,
-0.10736297816038132,
0.25165387988090515,
0.01316329836845398,
0.13181528449058533,
0.20925873517990112,
0.44279929995536804,
0.3391917943954468,
0.11982229351997375,
0.10461761057376862,
-0.14008517563343048,
0.05194273963570595,
0.03908664733171463,
0.29159992933273315,
0.07285533100366592,
-0.009759798645973206,
-0.008776402100920677,
-0.27145180106163025,
0.6143183708190918,
0.06378431618213654,
0.019337836652994156,
-0.39355045557022095,
-0.27918681502342224,
0.12814748287200928,
0.08865915238857269,
0.29241782426834106,
0.05750015377998352,
-0.2814285159111023,
0.3145102262496948,
0.356189489364624,
0.03744843602180481,
0.3104780614376068,
0.16915272176265717,
-0.1325732171535492,
0.12919732928276062,
0.13975770771503448,
-0.061644673347473145,
0.25249165296554565,
0.10081752389669418,
0.16905584931373596,
0.2947505712509155,
-0.27979785203933716,
0.1288771778345108,
0.1937781572341919,
0.08811327815055847,
0.0643601045012474,
0.3061845898628235,
0.09502384066581726,
0.09196449816226959,
0.4118395447731018,
0.1421424150466919,
0.5869659185409546,
0.15627001225948334,
0.13302338123321533,
0.03606542572379112,
-0.407105952501297,
-0.341354101896286,
0.20977136492729187,
-0.3046942353248596,
0.1884256899356842,
-0.014216847717761993,
0.2182081937789917,
0.1494465172290802,
-0.1891222596168518,
-0.08786424249410629,
0.38388827443122864,
-0.46587568521499634,
-0.11966599524021149,
-0.5270377397537231,
-0.06187332421541214,
0.047066815197467804,
-0.15252555906772614,
0.14220106601715088,
0.00033467262983322144,
-0.026842959225177765,
0.02093939110636711,
-0.04460589587688446,
0.03610994666814804,
-0.28754061460494995,
0.2877538204193115,
-0.06748653203248978,
-0.15694426000118256,
0.0797993391752243,
-0.02604980766773224,
0.1523936688899994,
-0.006878584623336792,
0.21889503300189972,
0.37610724568367004,
0.32299384474754333,
-0.192214697599411,
-0.09409606456756592,
0.05172966793179512,
-0.06287156045436859,
-0.16198469698429108,
0.25494885444641113,
-0.192280113697052,
-0.005392439663410187,
0.3815493881702423,
0.2739575505256653,
-0.24998340010643005,
-0.3349291980266571,
0.025707967579364777,
-0.021838776767253876,
-0.041347868740558624,
0.4966602921485901,
0.11915786564350128,
-0.10868065059185028,
-0.28611668944358826,
-0.026095494627952576,
-0.42549508810043335,
-0.04938489943742752,
0.5210604667663574,
-0.41027945280075073,
0.10819444060325623,
-0.18439644575119019,
0.12379689514636993,
-0.2985061705112457,
0.4248542785644531,
0.30588555335998535,
0.28504207730293274,
-0.46722790598869324,
0.015920326113700867,
-0.2836149036884308,
0.22864243388175964,
-0.050108809024095535,
0.0008189883083105087,
-0.24609020352363586,
0.24277378618717194,
-0.2073599100112915,
0.06424181163311005,
-0.06586156785488129,
-0.14118602871894836,
0.08984842896461487,
0.3890625834465027,
-0.34447047114372253,
0.0781765729188919,
-0.3071107864379883,
-0.02714446373283863,
0.13910934329032898,
-0.31648412346839905,
0.16173775494098663,
0.11416051536798477,
0.15744245052337646,
-0.15649718046188354,
0.027107983827590942,
0.29524728655815125,
-0.18972532451152802,
0.25101369619369507,
0.2174009084701538,
0.35639315843582153,
-0.21160182356834412,
0.4840889573097229,
-0.09924432635307312,
0.05625324696302414,
-0.3012342154979706,
-0.16344121098518372,
0.14305473864078522,
0.17657652497291565,
0.022572392597794533,
0.026949230581521988,
-0.2492118775844574,
-0.08632716536521912,
0.08038072288036346,
-0.1846027821302414,
0.033137112855911255,
0.067121721804142,
-0.05809301137924194,
0.03570094704627991,
0.0681234672665596,
0.19037237763404846,
0.2587810754776001,
0.23001188039779663,
-0.42246735095977783,
-0.4245304763317108,
0.40236449241638184,
-0.38838642835617065,
-0.30135393142700195,
-0.3631489872932434,
0.2955275774002075,
0.059014298021793365,
0.09622541069984436,
-0.15730436146259308,
0.001029573380947113,
0.44452178478240967,
-0.058370478451251984,
-0.007165286689996719,
0.3775200843811035,
0.17068301141262054,
0.2029896229505539,
-0.17770668864250183,
-0.11001551151275635,
0.11934828013181686,
-0.0026776399463415146,
0.07206238806247711,
-0.3162921667098999
] |
https://github.com/huggingface/datasets/issues/822 | datasets freezes | Pytorch is unable to convert strings to tensors unfortunately.
You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids.
This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns | Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))
| 52 | datasets freezes
Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))
Pytorch is unable to convert strings to tensors unfortunately.
You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids.
This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns | [
-0.16190913319587708,
-0.3347923457622528,
-0.04657973721623421,
0.5367452502250671,
0.3581033945083618,
0.21252110600471497,
0.5072587728500366,
0.39032405614852905,
-0.01512828841805458,
0.12072203308343887,
-0.21651780605316162,
0.29290032386779785,
-0.118535615503788,
-0.16308468580245972,
-0.11313021183013916,
-0.5349527597427368,
0.11543121933937073,
-0.09518322348594666,
-0.3404097259044647,
0.09904949367046356,
0.05008694529533386,
0.06382066011428833,
-0.15158969163894653,
-0.14784900844097137,
-0.4358992278575897,
0.007512407377362251,
0.09530724585056305,
0.05039225518703461,
-0.13597559928894043,
-0.06770162284374237,
0.11454460024833679,
-0.07181671261787415,
0.08651833236217499,
0.7834657430648804,
-0.00012119270832045004,
0.05314385145902634,
0.3045334219932556,
0.15747623145580292,
-0.10294701159000397,
-0.19955594837665558,
0.383846253156662,
-0.13631975650787354,
0.17542362213134766,
-0.2181674987077713,
-0.1345921754837036,
0.010250882245600224,
-0.28822582960128784,
-0.6952759623527527,
0.3244413733482361,
0.4434759020805359,
0.09370876848697662,
0.5506078004837036,
0.04228288307785988,
0.0736013725399971,
0.31157198548316956,
-0.010086946189403534,
-0.20931296050548553,
-0.11750474572181702,
0.3612826466560364,
0.19513089954853058,
0.1336321085691452,
0.25325560569763184,
-0.4077240526676178,
-0.06825585663318634,
0.09495726227760315,
0.07328899204730988,
-0.6647982001304626,
-0.46441176533699036,
0.08641619980335236,
0.3095061182975769,
0.5834821462631226,
-0.45910701155662537,
-0.1308523267507553,
-0.11184526234865189,
0.00035532540641725063,
0.014329323545098305,
0.09959454089403152,
0.14607937633991241,
-0.18738757073879242,
-0.0970856100320816,
-0.34167274832725525,
-0.18623869121074677,
-0.24472647905349731,
0.23888756334781647,
-0.18022707104682922,
-0.17472517490386963,
0.0037159500643610954,
0.19244709610939026,
0.13587075471878052,
-0.027029234915971756,
0.4467359781265259,
-0.30423417687416077,
0.18535634875297546,
-0.04351234436035156,
-0.3819192051887512,
-0.02450859360396862,
-0.5991339683532715,
-0.32325488328933716,
-0.021916093304753304,
-0.08324116468429565,
-0.02572457864880562,
0.19937831163406372,
0.059495795518159866,
0.18352347612380981,
-0.00410531647503376,
0.2055942863225937,
0.0165228471159935,
0.3655204772949219,
0.1646527796983719,
-0.4713941216468811,
-0.08307193219661713,
0.1285175234079361,
-0.06531697511672974,
-0.5972931385040283,
-0.056686773896217346,
-0.1479666829109192,
0.145204558968544,
-0.28214988112449646,
-0.22865815460681915,
0.03994366526603699,
-0.25444120168685913,
0.016060927882790565,
0.18403740227222443,
0.3908999562263489,
-0.28087902069091797,
0.2990472614765167,
0.3615899682044983,
0.14523367583751678,
-0.27396970987319946,
-0.012022796086966991,
-0.03261203691363335,
0.12974804639816284,
-0.12497931718826294,
-0.04473697394132614,
0.2628992795944214,
-0.42236047983169556,
-0.07430718094110489,
0.3290855288505554,
0.10349805653095245,
0.10942505300045013,
0.2540252208709717,
-0.24385669827461243,
0.2168106734752655,
0.04042017087340355,
0.06728342175483704,
0.20158185064792633,
0.08067595958709717,
0.37926632165908813,
-0.012376464903354645,
0.34439805150032043,
-0.26136550307273865,
0.15232884883880615,
-0.2981988191604614,
0.06037488579750061,
0.059114985167980194,
0.010531459003686905,
0.07159149646759033,
0.10194003582000732,
0.3803878426551819,
-0.13684828579425812,
0.213163822889328,
-0.2690628170967102,
-0.12275436520576477,
-0.03984967619180679,
0.16071423888206482,
0.36564335227012634,
-0.20274357497692108,
0.08068263530731201,
0.5047174692153931,
0.004964910447597504,
-0.027620024979114532,
0.3383365869522095,
-0.16617944836616516,
-0.03409893810749054,
0.02723941020667553,
-0.11631173640489578,
0.34519490599632263,
-0.2792835533618927,
0.036060042679309845,
0.08294662088155746,
-0.06111203134059906,
-0.07698441296815872,
0.1463356763124466,
0.1638711541891098,
0.14019076526165009,
-0.022537438198924065,
0.2774900496006012,
0.18594005703926086,
-0.12862491607666016,
0.011531857773661613,
-0.15664339065551758,
-0.013268660753965378,
0.5077599287033081,
0.06478118896484375,
0.08226580917835236,
-0.00900307297706604,
-0.2542731761932373,
0.20986570417881012,
-0.06292808800935745,
-0.18819840252399445,
0.05602457374334335,
0.4037213921546936,
-0.34406834840774536,
0.07131577283143997,
0.056215908378362656,
-0.42362406849861145,
-0.44355571269989014,
0.06341023743152618,
0.20908182859420776,
0.15496160089969635,
0.12225537747144699,
-0.01000560075044632,
-0.006007743999361992,
-0.14040915668010712,
0.03337469696998596,
0.24744835495948792,
-0.07419069111347198,
-0.3382626175880432,
0.05788161978125572,
0.00567806139588356,
-0.08650512993335724,
0.30333811044692993,
-0.11100701242685318,
0.25472480058670044,
-0.29049742221832275,
0.3031732439994812,
-0.05619407445192337,
-0.32079726457595825,
-0.08833479881286621,
0.2030959129333496,
0.09991276264190674,
-0.0701330378651619,
-0.09036169201135635,
0.22298577427864075,
-0.004175685811787844,
0.06249217316508293,
-0.4371134638786316,
-0.15114013850688934,
0.27525606751441956,
-0.10572852194309235,
0.33640819787979126,
0.007038280367851257,
-0.012484526261687279,
-0.13474172353744507,
-0.11444171518087387,
0.11000748723745346,
-0.1437339186668396,
0.21963298320770264,
-0.03822726011276245,
0.010415049269795418,
-0.21663068234920502,
0.10874313116073608,
-0.12339729070663452,
0.03735952824354172,
0.3091333210468292,
-0.1157444566488266,
0.2992342412471771,
0.08626261353492737,
-0.6952056288719177,
-0.05411133915185928,
0.3723340630531311,
-0.05155353993177414,
0.035734873265028,
0.05959780886769295,
-0.22021484375,
0.12800344824790955,
0.17813846468925476,
-0.3011557459831238,
0.23734301328659058,
0.19932396709918976,
0.03742704540491104,
-0.006050901487469673,
-0.3070226013660431,
-0.1291009783744812,
0.21570944786071777,
0.14721539616584778,
0.015388855710625648,
0.06936686486005783,
0.022596092894673347,
-0.17709577083587646,
-0.023974154144525528,
0.16972258687019348,
0.1075284406542778,
0.07904785871505737,
-0.37097474932670593,
0.14854469895362854,
-0.08512315899133682,
0.0055117979645729065,
-0.28979435563087463,
-0.02266482636332512,
-0.229074627161026,
-0.2103305608034134,
-0.0848410353064537,
0.3650321662425995,
0.20181481540203094,
0.09820083528757095,
0.11913421750068665,
-0.2002100795507431,
0.21100980043411255,
-0.16409370303153992,
-0.19575493037700653,
-0.21561633050441742,
-0.1579662561416626,
-0.019952043890953064,
0.4141779839992523,
-0.03925101459026337,
0.26611974835395813,
-0.08109764009714127,
0.11953045427799225,
-0.3094356954097748,
-0.10376636683940887,
0.13923415541648865,
-0.2589545249938965,
-0.12650823593139648,
-0.12126147747039795,
0.29666924476623535,
-0.01753668673336506,
-0.06503431499004364,
0.11175388842821121,
0.04580078274011612,
-0.04475823789834976,
0.28861773014068604,
0.09609752893447876,
-0.03501351922750473,
-0.0744965672492981,
-0.5995054244995117,
-0.21129143238067627,
-0.14450865983963013,
-0.06214514374732971,
-0.38636884093284607,
-0.029269829392433167,
-0.12032557278871536,
0.46042704582214355,
0.2548903524875641,
0.014104489237070084,
0.1126452162861824,
-0.02985023520886898,
-0.2954285740852356,
0.5208237767219543,
-0.27490493655204773,
-0.4628776013851166,
-0.07792417705059052,
0.272907018661499,
-0.04775455966591835,
0.31540727615356445,
-0.15078899264335632,
0.025472484529018402,
-0.4094627797603607,
0.045413706451654434,
-0.1422855257987976,
-0.05490730702877045,
0.41839098930358887,
0.10740168392658234,
0.0682939812541008,
-0.08471213281154633,
0.04603167250752449,
-0.03185046464204788,
-0.19163557887077332,
0.09710764139890671,
-0.07289223372936249,
0.37074440717697144,
0.016202647238969803,
0.4566968083381653,
-0.1325986683368683,
-0.4772818386554718,
0.12532839179039001,
-0.10246706753969193,
0.33996379375457764,
-0.06326667219400406,
-0.4580646753311157,
0.03259693458676338,
-0.16380998492240906,
0.020384106785058975,
-0.1377483606338501,
-0.07338713109493256,
-0.15640555322170258,
-0.20653431117534637,
0.24948319792747498,
0.046786367893218994,
-0.11627422273159027,
0.2099992334842682,
-0.5037885904312134,
0.089996837079525,
-0.11944860219955444,
0.35035842657089233,
-0.22005395591259003,
-0.2446116805076599,
0.08949810266494751,
-0.026219025254249573,
0.09321143478155136,
0.04525353014469147,
-0.5232162475585938,
-0.04822256416082382,
-0.30114907026290894,
0.327544629573822,
0.285108745098114,
0.3945767283439636,
-0.18789541721343994,
0.08806385844945908,
0.14054137468338013,
-0.012141060084104538,
0.5735448598861694,
0.07731088995933533,
-0.3306095004081726,
0.07146494090557098,
-0.06549836695194244,
-0.697970449924469,
0.18238593637943268,
-0.14509527385234833,
0.1250784993171692,
0.0778573751449585,
0.39853325486183167,
-0.24468392133712769,
-0.5145688056945801,
0.16610302031040192,
0.5513155460357666,
-0.06793975085020065,
-0.1278383582830429,
-0.12228241562843323,
-0.007419303059577942,
-0.37319859862327576,
-0.04677359014749527,
0.3043915927410126,
0.12928050756454468,
-0.3400331139564514,
-0.30425870418548584,
-0.14978468418121338,
0.07175809890031815,
0.42784351110458374,
-0.007884412072598934,
0.19841492176055908,
-0.1825619488954544,
0.31173765659332275,
0.18056021630764008,
0.33639416098594666,
0.20418831706047058,
0.14298269152641296,
-0.26417121291160583,
0.002830907702445984,
0.19764479994773865,
0.15781766176223755,
0.31430956721305847,
0.13887999951839447,
-0.02753540873527527,
0.044460080564022064,
-0.32257160544395447,
0.10537251830101013,
-0.14787882566452026,
0.3770977556705475,
0.4117920398712158,
0.41017067432403564,
-0.569395124912262,
-0.45819640159606934,
0.16017960011959076,
0.29493948817253113,
0.1253018081188202,
0.5142188668251038,
-0.13982851803302765,
-0.16023465991020203,
0.21743188798427582,
0.18582206964492798,
0.9097227454185486,
-0.5160057544708252,
0.3435388207435608,
0.10180152207612991,
-0.16087988018989563,
0.39244645833969116,
-0.4085097908973694,
0.04748847708106041,
-0.40146034955978394,
-0.08573278039693832,
-0.07880303263664246,
-0.3112160861492157,
0.3145551085472107,
-0.1096249371767044,
-0.2194160521030426,
0.11117547750473022,
-0.28526145219802856,
0.36282652616500854,
-0.13126727938652039,
0.4157397449016571,
-0.25649282336235046,
-0.30525100231170654,
0.009684198535978794,
0.11241382360458374,
-0.14206908643245697,
0.03919978067278862,
0.13074105978012085,
0.017185674980282784,
-0.23725321888923645,
0.0918160229921341,
-0.2067212164402008,
0.19552811980247498,
-0.3046236038208008,
0.08340328186750412,
-0.285232275724411,
-0.667952835559845,
0.2832607626914978,
0.8073207139968872,
0.39816606044769287,
0.0669003427028656,
-0.08345521241426468,
0.09718552231788635,
-0.169528067111969,
-0.25044938921928406,
0.026905549690127373,
-0.3444748520851135,
0.20137882232666016,
0.07987428456544876,
-0.12970592081546783,
0.23502957820892334,
0.05757032334804535,
-0.10773792862892151,
-0.08959926664829254,
-0.008602060377597809,
0.2334493100643158,
-0.4762616753578186,
-0.26836273074150085,
0.014507055282592773,
0.025803454220294952,
-0.08515462279319763,
0.058798521757125854,
0.028217431157827377,
0.038364239037036896,
0.156238853931427,
-0.05423292890191078,
-0.13529928028583527,
0.08464261889457703,
0.6563454270362854,
-0.006126847118139267,
-0.09610280394554138,
0.577140212059021,
0.6213271021842957,
-0.22046884894371033,
-0.20953157544136047,
0.20487335324287415,
0.40028828382492065,
-0.3191524147987366,
0.06890374422073364,
-0.1601974070072174,
-0.15291377902030945,
-0.13040168583393097,
0.05284234508872032,
-0.17038753628730774,
-0.19084814190864563,
-0.038295552134513855,
-0.002424202859401703,
-0.5649743676185608,
0.09484034776687622,
0.2658153176307678,
0.4143564701080322,
0.17664563655853271,
0.06761719286441803,
-0.22998522222042084,
-0.10040048509836197,
-0.17006278038024902,
0.14614073932170868,
0.018631307408213615,
0.18119467794895172,
0.16926376521587372,
-0.13514864444732666,
0.1340319961309433,
-0.4327126443386078,
-0.011748486198484898,
0.26930856704711914,
0.12070437520742416,
-0.16115343570709229,
0.0037206504493951797,
0.06099855899810791,
-0.14939236640930176,
-0.21789127588272095,
-0.2222035676240921,
-0.36547696590423584,
0.1486220359802246,
-0.19586263597011566,
0.2625584304332733,
0.5388055443763733,
-0.13170133531093597,
0.05770492181181908,
-0.12440942227840424,
0.21131303906440735,
-0.06800295412540436,
0.0010778754949569702,
-0.1793113648891449,
0.03371036797761917,
0.09583502262830734,
0.09737000614404678,
0.31139636039733887,
-0.03639731556177139,
-0.36011016368865967,
0.1446572244167328,
0.4241943359375,
-0.08606967329978943,
0.09850259125232697,
-0.21359433233737946,
0.09525991976261139,
-0.005807079374790192,
0.197954922914505,
0.3417719006538391,
-0.1832295060157776,
-0.02984004095196724,
0.27805572748184204,
0.08767784386873245,
0.0256880521774292,
-0.08578807860612869,
-0.3014295697212219,
-0.19107890129089355,
-0.06777780503034592,
0.036064572632312775,
-0.09077656269073486,
0.44081103801727295,
-0.18419499695301056,
0.24495059251785278,
0.2201443761587143,
-0.053762875497341156,
0.167048841714859,
0.3690185248851776,
0.11422425508499146,
-0.03239044174551964,
0.22925913333892822,
0.11145412921905518,
-0.03827289491891861,
-0.04215332865715027,
0.14519959688186646,
0.6161940097808838,
0.3098064363002777,
0.2715207636356354,
0.3532733619213104,
0.06548038125038147,
-0.21124307811260223,
-0.06878837943077087,
0.039396822452545166,
-0.022406749427318573,
-0.0484439879655838,
0.471245139837265,
-0.19501055777072906,
-0.4782600998878479,
-0.07938031107187271,
0.19359217584133148,
-0.20540562272071838,
-0.01676207035779953,
-0.15583619475364685,
-0.16689851880073547,
0.1748679280281067,
-0.017022233456373215,
-0.05806540325284004,
-0.08948712050914764,
0.3186838924884796,
0.3166029751300812,
-0.05158591270446777,
-0.04815385490655899,
0.10590528696775436,
0.20066609978675842,
-0.09356827288866043,
0.030572902411222458,
0.12622015178203583,
0.13437309861183167,
-0.13111279904842377,
0.021478943526744843,
0.210524782538414,
0.3595515787601471,
0.19740340113639832,
-0.37754392623901367,
0.1038367971777916,
0.0788813978433609,
-0.13750292360782623,
0.4146793484687805,
0.2447698414325714,
-0.0010707005858421326,
0.0035328026860952377,
0.3206641376018524,
0.11156938970088959,
-0.13621820509433746,
-0.16748102009296417,
-0.07209818065166473,
0.0024068765342235565,
-0.22861628234386444,
0.36325350403785706,
-0.14282672107219696,
-0.25218701362609863,
-0.224745512008667,
-0.29585522413253784,
-0.398568332195282,
-0.058464884757995605,
0.6664866805076599,
-0.13300096988677979,
-0.128268301486969,
-0.022890739142894745,
0.011174647137522697,
0.2890184223651886,
0.5228797197341919,
0.056159764528274536,
0.236677348613739,
-0.35117799043655396,
0.025796785950660706,
-0.22194086015224457,
-0.038684405386447906,
-0.08672492206096649,
0.0581289678812027,
-0.04933788254857063,
0.04156754910945892,
0.10330954194068909,
0.30678892135620117,
0.08084241300821304,
-0.08795219659805298,
0.11356539279222488,
0.28939753770828247,
-0.3699815273284912,
-0.06381800770759583,
-0.022777989506721497,
0.10178998112678528,
0.1345227062702179,
-0.3856545686721802,
0.2077292501926422,
0.13594356179237366,
-0.0244488175958395,
-0.36762142181396484,
0.17862629890441895,
0.18857017159461975,
-0.0352402925491333,
0.20211324095726013,
-0.06086663156747818,
0.6809902191162109,
0.15462753176689148,
0.0014239884912967682,
0.10013695061206818,
-0.20808711647987366,
-0.029639948159456253,
0.028834134340286255,
0.037290532141923904,
0.22592592239379883,
-0.19350191950798035,
-0.28979477286338806,
-0.2599354684352875,
0.4156820476055145,
-0.0505487285554409,
-0.03989244997501373,
-0.13451245427131653,
0.1093740239739418,
0.03201015293598175,
0.1095598116517067,
0.2725988030433655,
0.5703670978546143,
0.09213300049304962,
0.4067798852920532,
-0.3857578635215759,
-0.16452227532863617,
0.5223591327667236,
-0.27461376786231995,
-0.35604315996170044,
-0.0018258916679769754,
-0.0017388910055160522,
0.5570198893547058,
0.08818937093019485,
-0.7385704517364502,
-0.091550312936306,
-0.006558776833117008,
-0.23299744725227356,
0.04508182778954506,
0.2087853103876114,
0.1827595978975296,
0.1478167623281479,
-0.12870459258556366,
0.3528146743774414,
0.07562010735273361,
-0.0020415950566530228,
-0.2567732632160187,
-0.2446456402540207
] |
https://github.com/huggingface/datasets/issues/822 | datasets freezes | Ultimately, we decided to return a list instead of an error when formatting a string column with the format type `"torch"`.
If you think an error would be more appropriate, please open a new issue. | Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))
| 35 | datasets freezes
Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))
Ultimately, we decided to return a list instead of an error when formatting a string column with the format type `"torch"`.
If you think an error would be more appropriate, please open a new issue. | [
-0.2519761919975281,
-0.3132404685020447,
-0.13274399936199188,
0.5602666139602661,
0.44274193048477173,
0.29321953654289246,
0.36282601952552795,
0.3522286117076874,
-0.06875552982091904,
0.12339413911104202,
-0.3223203718662262,
0.3264632225036621,
-0.07355104386806488,
-0.06804665178060532,
-0.15562450885772705,
-0.5071398019790649,
0.21248877048492432,
-0.1388123780488968,
-0.25622087717056274,
0.13424447178840637,
0.04269767552614212,
0.1081351488828659,
-0.21612216532230377,
-0.14180833101272583,
-0.20697693526744843,
-0.019010452553629875,
0.09345435351133347,
0.10422655940055847,
-0.13132983446121216,
-0.2172057032585144,
0.12765918672084808,
0.00427643209695816,
0.11071866750717163,
0.7001391053199768,
-0.00011842643289128318,
-0.0776224359869957,
0.3865617513656616,
0.1083860844373703,
-0.25895392894744873,
-0.2187245637178421,
0.06892985850572586,
-0.1051592156291008,
0.2757396996021271,
-0.08196546882390976,
-0.2025907337665558,
0.10083410143852234,
-0.398843377828598,
-0.7702928781509399,
0.2767731845378876,
0.34045740962028503,
0.15557615458965302,
0.34238937497138977,
0.03484611585736275,
-0.0979255884885788,
0.3326149880886078,
0.07667887210845947,
-0.15958423912525177,
-0.02779773250222206,
0.49399620294570923,
0.2965490520000458,
0.27620670199394226,
0.15796323120594025,
-0.3976435959339142,
-0.1877245008945465,
0.0031740404665470123,
-0.14586010575294495,
-0.6531034111976624,
-0.3496968746185303,
0.2458765208721161,
0.23943084478378296,
0.7315148711204529,
-0.3081400394439697,
-0.0888654887676239,
0.05649958550930023,
-0.006889394484460354,
0.0031755231320858,
0.05902300029993057,
0.2598850131034851,
-0.08801549673080444,
-0.010164361447095871,
-0.5094874501228333,
-0.1697763204574585,
-0.006799355149269104,
0.07968501001596451,
-0.199932262301445,
-0.044793397188186646,
-0.052884213626384735,
0.22578901052474976,
0.03752698004245758,
-0.10205475986003876,
0.38673701882362366,
-0.3155720829963684,
0.0026777945458889008,
-0.058073077350854874,
-0.460116982460022,
0.032024577260017395,
-0.5905370712280273,
0.1428656280040741,
0.03063703328371048,
0.1175016313791275,
-0.008572130464017391,
0.19444149732589722,
0.02219569683074951,
0.04174016788601875,
0.06689833104610443,
-0.022400572896003723,
0.15704232454299927,
0.2937334179878235,
0.116371750831604,
-0.36053547263145447,
-0.11527159810066223,
0.023061508312821388,
-0.08979514986276627,
-0.49337536096572876,
-0.10754258930683136,
-0.00033671222627162933,
0.0404539555311203,
-0.4646936357021332,
-0.2756516933441162,
0.06463249027729034,
-0.08981915563344955,
-0.13259045779705048,
0.20208756625652313,
0.42766276001930237,
-0.16309398412704468,
0.2777051627635956,
0.21440939605236053,
0.08330453932285309,
-0.19296927750110626,
-0.0630892738699913,
-0.028660112991929054,
-0.0030744392424821854,
-0.17368535697460175,
-0.097777359187603,
0.07526391744613647,
-0.6053947806358337,
-0.007576463278383017,
0.35332709550857544,
-0.16231048107147217,
0.13865350186824799,
0.17720681428909302,
-0.31316810846328735,
0.20675601065158844,
-0.05954599753022194,
0.11709854006767273,
0.2823328375816345,
0.1294858753681183,
0.36535000801086426,
-0.01686779409646988,
0.2757275104522705,
-0.22083455324172974,
0.19535107910633087,
-0.33524826169013977,
0.0646047443151474,
0.18753953278064728,
0.06631148606538773,
-0.06199035793542862,
0.1403466761112213,
0.27436214685440063,
-0.20482107996940613,
0.12829017639160156,
-0.18243132531642914,
-0.0867854431271553,
-0.08577907085418701,
0.24068817496299744,
0.49877262115478516,
-0.3584243655204773,
0.18312819302082062,
0.37843194603919983,
-0.15222778916358948,
-0.061219148337841034,
0.18776392936706543,
-0.16290760040283203,
-0.07606729120016098,
-0.23415490984916687,
-0.2363683581352234,
0.3154601752758026,
-0.3022668659687042,
0.09976868331432343,
0.19464784860610962,
-0.08818601816892624,
-0.16952618956565857,
0.1913384050130844,
0.03244117647409439,
0.19305774569511414,
-0.19705243408679962,
0.1503932774066925,
0.23854878544807434,
-0.16613832116127014,
-0.001484990119934082,
-0.1571274995803833,
0.0453004315495491,
0.42775607109069824,
-0.12751850485801697,
-0.11074073612689972,
-0.029796205461025238,
-0.016372263431549072,
0.18162427842617035,
0.0022385790944099426,
-0.08504712581634521,
0.016423188149929047,
0.44024789333343506,
-0.3921266794204712,
0.05745778977870941,
-0.10501949489116669,
-0.2937869727611542,
-0.4315359890460968,
-0.036825865507125854,
0.32258546352386475,
-0.08638526499271393,
0.12822067737579346,
-0.024433154612779617,
-0.2062665820121765,
-0.13949903845787048,
-0.07101066410541534,
0.11107243597507477,
-0.032892823219299316,
-0.1196749359369278,
0.11824430525302887,
0.00983862578868866,
-0.006547141820192337,
0.23279981315135956,
0.013511599972844124,
0.18754525482654572,
-0.3767856955528259,
0.3595024049282074,
-0.024298639968037605,
-0.27247095108032227,
0.008192133158445358,
0.1003841757774353,
0.15966570377349854,
-0.12466493993997574,
-0.14071175456047058,
0.4121873378753662,
-0.011250501498579979,
0.17249839007854462,
-0.09411893039941788,
-0.36582624912261963,
0.22182191908359528,
-0.13052064180374146,
0.343462198972702,
-0.00569339282810688,
0.14834147691726685,
-0.2010655403137207,
-0.2460726499557495,
0.16992613673210144,
-0.20878355205059052,
0.26041775941848755,
0.017597712576389313,
0.012486597523093224,
-0.13847491145133972,
0.19994640350341797,
0.01686241291463375,
-0.0213753804564476,
0.1786862015724182,
0.04877724125981331,
0.46668827533721924,
0.03667755797505379,
-0.6723576188087463,
-0.04095601290464401,
0.3711574077606201,
0.005301278084516525,
0.021097257733345032,
-0.04011496901512146,
-0.2270505726337433,
0.1047765389084816,
0.2523312568664551,
-0.3101671636104584,
0.4001992344856262,
0.25680744647979736,
0.047710154205560684,
-0.13259674608707428,
0.03141671419143677,
-0.12166572362184525,
0.2971929609775543,
0.03799767047166824,
-0.0508543998003006,
0.03855004906654358,
0.11158174276351929,
-0.22826841473579407,
0.051654212176799774,
0.03351903334259987,
0.011189203709363937,
-0.022388508543372154,
-0.2861202359199524,
0.07310996949672699,
-0.30063095688819885,
0.15427520871162415,
-0.35050129890441895,
-0.13387134671211243,
-0.20150941610336304,
-0.34335067868232727,
-0.2720799446105957,
0.25236746668815613,
0.2656943202018738,
0.057082243263721466,
0.04676435515284538,
-0.25313544273376465,
0.271389901638031,
0.040662821382284164,
-0.07083823531866074,
-0.0936453640460968,
-0.22240328788757324,
0.0013664048165082932,
0.5251042246818542,
-0.015444358810782433,
0.33510318398475647,
-0.12793579697608948,
0.13157090544700623,
-0.346919983625412,
0.04200947284698486,
0.11401388049125671,
-0.2837461233139038,
-0.039564162492752075,
0.06698824465274811,
0.3752099871635437,
-0.06067434698343277,
0.050381265580654144,
0.09050313383340836,
0.08391876518726349,
-0.007665775716304779,
0.21716952323913574,
0.15298739075660706,
0.04226914420723915,
0.03739386424422264,
-0.48284414410591125,
-0.22849246859550476,
-0.20480571687221527,
-0.18246936798095703,
-0.43100228905677795,
-0.14324475824832916,
-0.25131309032440186,
0.40813112258911133,
0.2593618631362915,
-0.03194219991564751,
0.053457111120224,
-0.03421862795948982,
-0.39877161383628845,
0.4526933431625366,
-0.22807274758815765,
-0.36841195821762085,
0.0371231772005558,
0.4159044623374939,
-0.06216258183121681,
0.19136758148670197,
-0.12560468912124634,
0.11569689959287643,
-0.41365230083465576,
-0.025533249601721764,
-0.12411515414714813,
0.07647965103387833,
0.2886046767234802,
0.13748395442962646,
0.019519178196787834,
-0.041356392204761505,
-0.009795371443033218,
-0.09980648010969162,
-0.3908982276916504,
0.22704750299453735,
0.049648467451334,
0.5241380929946899,
-0.1311887949705124,
0.31403273344039917,
-0.03865360468626022,
-0.3405112028121948,
0.3575933575630188,
0.024787016212940216,
0.3609415292739868,
-0.20467883348464966,
-0.40060922503471375,
0.09573256969451904,
0.027648478746414185,
0.06499089300632477,
0.05737118422985077,
0.03303869441151619,
-0.10839613527059555,
-0.2166714370250702,
0.04895761236548424,
0.037083759903907776,
-0.012716935947537422,
0.07071007043123245,
-0.49865251779556274,
0.015382576733827591,
-0.1648360937833786,
0.3792436122894287,
-0.06617876887321472,
-0.2810795307159424,
0.04174915328621864,
0.07182678580284119,
0.1162288710474968,
0.03447103127837181,
-0.4289400577545166,
0.0015379979740828276,
-0.22751489281654358,
0.42646682262420654,
0.20305033028125763,
0.33267664909362793,
-0.26680824160575867,
0.035530537366867065,
0.13691365718841553,
0.018968675285577774,
0.6106137633323669,
0.01093150395900011,
-0.2464323192834854,
-0.012571165338158607,
-0.015592489391565323,
-0.5057131052017212,
0.1067652553319931,
-0.0883941799402237,
0.22152568399906158,
0.02884526364505291,
0.21384064853191376,
-0.24695152044296265,
-0.5586567521095276,
0.05929712578654289,
0.51419997215271,
0.008287161588668823,
-0.10086707025766373,
-0.08838315308094025,
0.033165305852890015,
-0.35000747442245483,
-0.00357094407081604,
0.1513984352350235,
0.1215258464217186,
-0.4152595102787018,
-0.3954351544380188,
-0.1740618646144867,
-0.07225321233272552,
0.4036124348640442,
-0.01927303336560726,
0.36880165338516235,
-0.2186320573091507,
0.2098427265882492,
0.09965716302394867,
0.3290722370147705,
0.3188200294971466,
0.21983498334884644,
-0.2583872675895691,
0.16099628806114197,
0.28715255856513977,
-0.020910270512104034,
0.3012821078300476,
0.24166147410869598,
-0.06939972192049026,
0.014955893158912659,
-0.49726131558418274,
0.14481976628303528,
0.03451060131192207,
0.08949265629053116,
0.28091031312942505,
0.337080717086792,
-0.7498463988304138,
-0.4548757076263428,
0.0620710514485836,
0.27699926495552063,
0.11351518332958221,
0.3069324195384979,
-0.11698447167873383,
-0.2536241114139557,
0.23206764459609985,
0.19714877009391785,
0.912932276725769,
-0.4162942171096802,
0.20715740323066711,
-0.11034586280584335,
-0.25645750761032104,
0.27478310465812683,
-0.24749541282653809,
-0.17568336427211761,
-0.40027254819869995,
-0.08961150050163269,
-0.08640702813863754,
-0.23880033195018768,
0.3814053535461426,
-0.05524487793445587,
-0.33632874488830566,
0.32855555415153503,
-0.5331794619560242,
0.34525683522224426,
-0.22651036083698273,
0.2900605797767639,
-0.2422243356704712,
-0.14492519199848175,
-0.28034114837646484,
0.14428360760211945,
-0.1288650929927826,
-0.14347991347312927,
0.07256677746772766,
-0.052605558186769485,
-0.30782434344291687,
0.11306002736091614,
-0.1618463695049286,
0.12799710035324097,
-0.18380309641361237,
0.08691432327032089,
-0.3808031380176544,
-0.7389323711395264,
0.3737702965736389,
0.8334012031555176,
0.4130987524986267,
0.19285427033901215,
-0.041696131229400635,
0.07518009841442108,
-0.01742059737443924,
-0.1258564442396164,
-0.12197347730398178,
-0.2748873233795166,
0.13366533815860748,
0.10085923224687576,
-0.08454561978578568,
0.2640877664089203,
0.054653048515319824,
0.02447286993265152,
-0.149278461933136,
0.11066117882728577,
0.3732030987739563,
-0.5344370007514954,
-0.4427478015422821,
-0.1523047387599945,
0.13960173726081848,
-0.13504046201705933,
0.07670587301254272,
0.022653479129076004,
0.07265343517065048,
0.059047453105449677,
0.15089040994644165,
-0.0911349207162857,
-0.0158836767077446,
0.6240208745002747,
-0.08481436967849731,
-0.042751628905534744,
0.5890536308288574,
0.6772629022598267,
-0.22499999403953552,
-0.25189974904060364,
0.35793301463127136,
0.5350773930549622,
-0.3934735059738159,
0.0423719622194767,
-0.13955768942832947,
0.044116124510765076,
0.05938204750418663,
0.14485788345336914,
-0.25526636838912964,
-0.138971745967865,
0.0400436632335186,
-0.14081509411334991,
-0.37340986728668213,
-0.03714536130428314,
0.07803137600421906,
0.49901509284973145,
0.12864837050437927,
-0.002857903018593788,
-0.16095693409442902,
-0.05649673938751221,
-0.19704440236091614,
0.12497822940349579,
-0.07899154722690582,
0.2127930074930191,
0.03581111505627632,
-0.015104837715625763,
0.028092743828892708,
-0.3413635194301605,
0.08083095401525497,
0.3172847628593445,
0.034251127392053604,
-0.19960609078407288,
0.13585031032562256,
0.09315627813339233,
-0.25765976309776306,
-0.12224013358354568,
-0.23325517773628235,
-0.2393924444913864,
0.17800776660442352,
-0.17491158843040466,
0.1799509972333908,
0.30903080105781555,
-0.0084410160779953,
-0.23046424984931946,
0.16981740295886993,
0.16312181949615479,
-0.10058791935443878,
0.07699839770793915,
-0.055507734417915344,
-0.010079242289066315,
0.054690416902303696,
0.07530078291893005,
0.2677081227302551,
-0.09459977596998215,
-0.2633196711540222,
0.1518486589193344,
0.5682008266448975,
0.06132282316684723,
0.04787077009677887,
-0.12074266374111176,
0.09092998504638672,
0.23839540779590607,
0.26075029373168945,
0.36771270632743835,
-0.09168337285518646,
-0.09119293838739395,
0.22112822532653809,
0.11852546781301498,
0.11893315613269806,
0.000874475808814168,
-0.14126114547252655,
-0.12834212183952332,
-0.16294895112514496,
0.08255141228437424,
-0.018796388059854507,
0.30289533734321594,
-0.2584688663482666,
0.2363659143447876,
0.31603237986564636,
0.016939066350460052,
0.18197117745876312,
0.43037182092666626,
0.3070603907108307,
-0.029567081481218338,
0.21475107967853546,
0.00521855428814888,
-0.16826647520065308,
0.028432196006178856,
0.13892987370491028,
0.6025773286819458,
0.4204671084880829,
0.3368132412433624,
0.33318063616752625,
-0.194251149892807,
0.0512913316488266,
0.023970790207386017,
0.13611595332622528,
-0.05712459236383438,
0.021093003451824188,
0.4939049184322357,
-0.11371976882219315,
-0.5982328653335571,
-0.021188024431467056,
0.2929118871688843,
-0.1832486391067505,
-0.15960459411144257,
-0.04683690145611763,
-0.1977103352546692,
-0.020859386771917343,
0.03773074969649315,
-0.03370531275868416,
-0.05886266380548477,
0.29386866092681885,
0.25899335741996765,
0.12864179909229279,
-0.3497522473335266,
0.13468080759048462,
0.19357115030288696,
-0.16263872385025024,
-0.04411458224058151,
0.20548507571220398,
0.09231700003147125,
0.02364616096019745,
0.2162555456161499,
0.11514543741941452,
0.3751799166202545,
0.2510150074958801,
-0.20123641192913055,
-0.01620294153690338,
0.11270086467266083,
-0.15722382068634033,
0.44468238949775696,
0.15360243618488312,
-0.09215958416461945,
0.0460861399769783,
0.3634023070335388,
0.16766886413097382,
-0.10985777527093887,
-0.11139373481273651,
-0.006668072193861008,
0.045559950172901154,
-0.2717154622077942,
0.045660365372896194,
-0.14230652153491974,
-0.10090003907680511,
-0.3222099244594574,
-0.3321200907230377,
-0.5501279234886169,
0.04555753245949745,
0.40308016538619995,
-0.08596581965684891,
-0.10277096182107925,
-0.0038420618511736393,
0.02816498652100563,
0.2555208206176758,
0.3617611229419708,
0.04967527464032173,
0.13948139548301697,
-0.3616018295288086,
-0.23756194114685059,
-0.1783229112625122,
-0.09792383760213852,
0.06947953999042511,
0.09467363357543945,
-0.1865663081407547,
-0.0311737097799778,
0.0893937423825264,
0.24471284449100494,
0.18402068316936493,
0.060424525290727615,
0.17829079926013947,
0.544587254524231,
-0.4391920268535614,
-0.16035021841526031,
-0.025434158742427826,
0.005242106504738331,
-0.03638320043683052,
-0.16927945613861084,
0.22944776713848114,
0.13293780386447906,
0.021387435495853424,
-0.3915281295776367,
0.019912488758563995,
0.1725223958492279,
-0.0976211428642273,
0.1614726483821869,
0.029450654983520508,
0.5860629081726074,
0.16663938760757446,
-0.04576689004898071,
-0.034295838326215744,
-0.1489587277173996,
0.053815510123968124,
0.1406237781047821,
0.034320153295993805,
0.3167709410190582,
-0.20993436872959137,
-0.23743925988674164,
-0.22552093863487244,
0.47411662340164185,
-0.1517823338508606,
0.26062628626823425,
-0.25761330127716064,
-0.06926055997610092,
0.053912654519081116,
-0.012158799916505814,
0.1841375231742859,
0.4425095021724701,
0.12392155826091766,
0.4881383776664734,
-0.39161211252212524,
-0.1793327033519745,
0.37378183007240295,
-0.11579219996929169,
-0.3536491096019745,
0.1135510578751564,
-0.09920310974121094,
0.5290907621383667,
-0.018506774678826332,
-0.7358011603355408,
0.04139050096273422,
0.0458218976855278,
-0.21403008699417114,
0.13364972174167633,
0.18953299522399902,
0.20729392766952515,
0.2505330741405487,
-0.12176309525966644,
0.158735454082489,
0.1392838954925537,
0.09250520169734955,
-0.13792376220226288,
-0.11586226522922516
] |
https://github.com/huggingface/datasets/issues/816 | [Caching] Dill globalvars() output order is not deterministic and can cause cache issues. | To show the issue:
```
python -c "from datasets.fingerprint import Hasher; a=[]; func = lambda : len(a); print(Hasher.hash(func))"
```
doesn't always return the same ouput since `globs` is a dictionary with "a" and "len" as keys but sometimes not in the same order | Dill uses `dill.detect.globalvars` to get the globals used by a function in a recursive dump. `globalvars` returns a dictionary of all the globals that a dumped function needs. However the order of the keys in this dict is not deterministic and can cause caching issues.
To fix that one could register an implementation of dill's `save_function` in the `datasets` pickler that sorts the globals keys before dumping a function. | 43 | [Caching] Dill globalvars() output order is not deterministic and can cause cache issues.
Dill uses `dill.detect.globalvars` to get the globals used by a function in a recursive dump. `globalvars` returns a dictionary of all the globals that a dumped function needs. However the order of the keys in this dict is not deterministic and can cause caching issues.
To fix that one could register an implementation of dill's `save_function` in the `datasets` pickler that sorts the globals keys before dumping a function.
To show the issue:
```
python -c "from datasets.fingerprint import Hasher; a=[]; func = lambda : len(a); print(Hasher.hash(func))"
```
doesn't always return the same ouput since `globs` is a dictionary with "a" and "len" as keys but sometimes not in the same order | [
-0.08192698657512665,
-0.04951898008584976,
-0.08793119341135025,
0.12161439657211304,
0.08929172158241272,
-0.15636204183101654,
0.1671694815158844,
0.2433266043663025,
-0.09968429803848267,
0.08036401867866516,
-0.08278700709342957,
0.26741617918014526,
-0.18599016964435577,
-0.2689152956008911,
0.007719662506133318,
0.3598429262638092,
-0.07975738495588303,
0.029141992330551147,
-0.4379902780056,
-0.27463123202323914,
-0.26194196939468384,
-0.09081024676561356,
-0.12036137282848358,
-0.19323928654193878,
-0.4216752350330353,
0.0018896162509918213,
-0.049869902431964874,
0.2467164695262909,
0.039786312729120255,
-0.3421671688556671,
-0.18333251774311066,
0.1572594940662384,
0.03082427754998207,
0.18965941667556763,
-0.00011149655620101839,
-0.1850808560848236,
0.26401394605636597,
-0.008145783096551895,
-0.2726577818393707,
0.09022146463394165,
0.015426993370056152,
0.13841775059700012,
-0.04097583144903183,
-0.21227699518203735,
0.11432170122861862,
-0.16812820732593536,
0.028657684102654457,
-0.6539843082427979,
0.03266794979572296,
0.09993103891611099,
0.27724891901016235,
0.1996295303106308,
-0.13891296088695526,
0.13665026426315308,
0.3288570046424866,
-0.08152444660663605,
-0.002226250246167183,
0.288501501083374,
0.010408639907836914,
-0.09369455277919769,
-0.30711814761161804,
0.28132104873657227,
-0.19136570394039154,
0.08084595203399658,
0.35184353590011597,
0.1796080321073532,
0.017283551394939423,
0.06774771958589554,
0.19123142957687378,
0.059743862599134445,
0.33753257989883423,
-0.5688878893852234,
-0.44618096947669983,
-0.25346019864082336,
-0.1146053597331047,
-0.07631471753120422,
0.1631680130958557,
-0.15364514291286469,
0.15362566709518433,
0.16983625292778015,
-0.13453973829746246,
0.09915436059236526,
0.24952709674835205,
0.09856923669576645,
-0.009267345070838928,
0.15770062804222107,
0.06776780635118484,
-0.04196745157241821,
0.016090892255306244,
-0.12328264117240906,
0.28646913170814514,
-0.20803220570087433,
0.10855822265148163,
-0.05593377724289894,
0.016890596598386765,
-0.022473091259598732,
0.37886667251586914,
0.19549506902694702,
0.1477338671684265,
0.06383547186851501,
0.09117811918258667,
0.018221404403448105,
0.1135685071349144,
0.03523418307304382,
0.12876927852630615,
0.24734379351139069,
0.15208019316196442,
0.3575176000595093,
0.3471332788467407,
-0.5027477145195007,
-0.35696953535079956,
0.1133541539311409,
0.2867189645767212,
-0.0380505733191967,
0.6074771285057068,
0.13038425147533417,
-0.07437506318092346,
-0.049563899636268616,
-0.031439159065485,
0.3266492784023285,
-0.020053958520293236,
-0.20201779901981354,
0.27175796031951904,
0.4664556086063385,
-0.34191766381263733,
0.19820159673690796,
-0.0471675731241703,
-0.27863794565200806,
-0.18592938780784607,
0.3082939386367798,
-0.3718247413635254,
-0.15416304767131805,
-0.14058101177215576,
0.2501673698425293,
0.009541019797325134,
-0.13290563225746155,
0.15809643268585205,
0.12851102650165558,
0.2983818054199219,
0.19379091262817383,
0.08732481300830841,
-0.30416062474250793,
0.39305081963539124,
0.13538223505020142,
-0.09533071517944336,
0.2159697264432907,
0.047216664999723434,
-0.06364461779594421,
-0.4521885812282562,
0.04861706122756004,
-0.01598586142063141,
-0.21039390563964844,
-0.023089664056897163,
0.2847321927547455,
-0.23868663609027863,
0.0968027114868164,
0.1912355124950409,
-0.2342095822095871,
0.24904096126556396,
-0.1804463267326355,
-0.0749652162194252,
-0.3261180520057678,
-0.3251354396343231,
-0.4191175103187561,
0.09440700709819794,
0.41023486852645874,
-0.33413082361221313,
-0.09406731277704239,
-0.17769180238246918,
0.2597625255584717,
0.14738549292087555,
0.10983601212501526,
-0.028269264847040176,
-0.04544062167406082,
-0.31664401292800903,
0.20879124104976654,
0.06500464677810669,
-0.3961067795753479,
-0.5688531398773193,
0.06140798702836037,
-0.11326947808265686,
0.23275060951709747,
-0.0886431410908699,
0.11382745206356049,
0.45951947569847107,
-0.0851631686091423,
0.13035990297794342,
0.2083604633808136,
0.26072385907173157,
0.20125941932201385,
-0.3684203028678894,
-0.037623289972543716,
0.05325665697455406,
-0.06962327659130096,
-0.059240054339170456,
-0.06640156358480453,
0.10566040873527527,
-0.10162273794412613,
0.08019887655973434,
-0.061517808586359024,
0.020489955320954323,
0.1380247175693512,
0.39634642004966736,
0.08724676817655563,
0.22724026441574097,
-0.08928731828927994,
-0.6030646562576294,
0.37172600626945496,
-0.03491701930761337,
-0.4906652569770813,
-0.20422197878360748,
-0.37592440843582153,
0.1311759650707245,
0.15936429798603058,
-0.03345586732029915,
0.07599519938230515,
0.08853272348642349,
0.31692737340927124,
0.26586323976516724,
0.2659105360507965,
0.057376835495233536,
0.1314195841550827,
-0.1487332284450531,
-0.26969555020332336,
0.012214221060276031,
0.04697434604167938,
-0.19589948654174805,
-0.2563336491584778,
0.03521602600812912,
0.001454375684261322,
0.042727164924144745,
0.06915846467018127,
-0.11593461781740189,
0.2138013243675232,
0.18775323033332825,
-0.07654668390750885,
0.0036102794110774994,
0.3865776062011719,
-0.1713905781507492,
-0.02232024446129799,
0.23905350267887115,
0.1847981959581375,
0.06413993239402771,
-0.1483222246170044,
-0.1509425938129425,
0.6806603670120239,
0.11768394708633423,
0.08925453573465347,
-0.06013024225831032,
-0.15755383670330048,
-0.07743372768163681,
0.09119716286659241,
0.01736086793243885,
-0.4390445947647095,
0.052310291677713394,
-0.1941671371459961,
0.6369011998176575,
0.3142586350440979,
-0.24419522285461426,
0.41893160343170166,
0.6483616828918457,
0.040000852197408676,
0.239437073469162,
0.12241596728563309,
0.017577990889549255,
-0.2655008137226105,
0.11217260360717773,
-0.1683272421360016,
0.4186323285102844,
0.2538231909275055,
0.16028791666030884,
-0.08794856071472168,
0.0060966731980443,
-0.14084714651107788,
0.04320962727069855,
-0.24336524307727814,
-0.05741392448544502,
0.22972321510314941,
0.18168102204799652,
-0.07873116433620453,
-0.13046541810035706,
0.07156792283058167,
-0.09222328662872314,
0.15611590445041656,
-0.13338226079940796,
0.0872974544763565,
-0.4846899211406708,
0.1538638174533844,
0.07266916334629059,
-0.19946080446243286,
-0.26684698462486267,
-0.28216347098350525,
0.10827797651290894,
0.04814330115914345,
-0.199100062251091,
0.19225426018238068,
-0.20880405604839325,
0.14492972195148468,
0.2055569291114807,
-0.3224640488624573,
-0.2208682745695114,
-0.19141681492328644,
-0.20889270305633545,
0.005867823958396912,
0.13952377438545227,
-0.1580909937620163,
0.3791802227497101,
0.05020163208246231,
-0.14328813552856445,
-0.24706584215164185,
-0.19588971138000488,
-0.0793742835521698,
0.16514745354652405,
0.08863544464111328,
0.048524562269449234,
-0.2080032378435135,
-0.2918451428413391,
-0.31916171312332153,
0.17110291123390198,
-0.39428773522377014,
-0.3049253523349762,
-0.26809147000312805,
0.10643953084945679,
0.0693444013595581,
-0.09697751700878143,
-0.09727735072374344,
-0.1017933115363121,
-0.2493077963590622,
-0.11946365237236023,
0.08025611937046051,
0.24882419407367706,
-0.03639484569430351,
-0.10888045281171799,
-0.014639440923929214,
0.05941075086593628,
0.12864558398723602,
-0.4220731854438782,
-0.37231510877609253,
0.36547353863716125,
-0.2404797375202179,
-0.20157194137573242,
-0.2894230782985687,
-0.2820839285850525,
-0.20847010612487793,
0.12742331624031067,
-0.471321702003479,
-0.4080056846141815,
-0.2187340408563614,
0.38934817910194397,
0.10957617312669754,
0.005151249468326569,
0.17648325860500336,
-0.039925478398799896,
-0.05636199191212654,
-0.22307103872299194,
-0.23138290643692017,
0.03136236220598221,
-0.04640532284975052,
0.13645997643470764,
0.026225119829177856,
-0.005842994898557663,
0.07989539206027985,
0.8998242616653442,
-0.01132574025541544,
-0.37790346145629883,
0.014630939811468124,
0.17561013996601105,
0.3247362971305847,
-0.27755826711654663,
-0.2364739626646042,
0.14910225570201874,
0.08126939088106155,
0.10213877260684967,
0.3682427406311035,
-0.0651271864771843,
-0.23166166245937347,
0.06267380714416504,
0.27696162462234497,
-0.4035155475139618,
-0.28649798035621643,
0.14814777672290802,
-0.31173425912857056,
-0.12622249126434326,
0.17355599999427795,
0.3351285755634308,
-0.29343846440315247,
0.04297541081905365,
0.021133221685886383,
-0.14943507313728333,
0.2826308310031891,
-0.05908115208148956,
-0.010806996375322342,
0.29907065629959106,
-0.3614237606525421,
0.34347695112228394,
0.23584112524986267,
0.11085852235555649,
0.0882391482591629,
-0.40104320645332336,
0.14342530071735382,
-0.13494865596294403,
0.5495234727859497,
-0.1641131192445755,
0.12604504823684692,
0.1582793891429901,
-0.48423561453819275,
-0.09562358260154724,
-0.03040030598640442,
0.11848504841327667,
0.19680210947990417,
0.25513550639152527,
0.03884418308734894,
-0.34026235342025757,
0.04985016584396362,
-0.0500081405043602,
0.04869109019637108,
-0.06879091262817383,
-0.32148006558418274,
-0.20814718306064606,
-0.03724304959177971,
0.029493624344468117,
0.054701730608940125,
-0.2114490270614624,
0.11448810249567032,
-0.1402606964111328,
-0.0664147287607193,
-0.2791723608970642,
-0.21110427379608154,
0.19201090931892395,
0.07559113204479218,
0.3900792896747589,
-0.12253356724977493,
0.41457599401474,
0.2395905703306198,
0.4274953603744507,
0.03295396268367767,
0.13874253630638123,
-0.39232751727104187,
-0.11958201229572296,
0.10177043080329895,
0.09480224549770355,
-0.15820935368537903,
0.31117159128189087,
-0.04079150781035423,
-0.022208482027053833,
0.05542616918683052,
0.02184220775961876,
-0.11872365325689316,
0.11405602097511292,
0.010884314775466919,
0.10727797448635101,
-0.3166213035583496,
-0.40291833877563477,
0.2768455743789673,
0.2825396656990051,
-0.1167236790060997,
0.591508150100708,
-0.1340254247188568,
-0.13369256258010864,
0.1936587691307068,
0.4005235731601715,
1.1834956407546997,
-0.2322784811258316,
0.23837225139141083,
0.020689770579338074,
0.17869068682193756,
0.06639113277196884,
0.22751997411251068,
-0.0020096637308597565,
-0.4197835326194763,
-0.2278662472963333,
0.14505186676979065,
-0.13763612508773804,
-0.042806558310985565,
-0.14630138874053955,
-0.22761911153793335,
0.02682165801525116,
-0.30413222312927246,
0.3562985956668854,
-0.12158742547035217,
0.2969777584075928,
-0.050946928560733795,
-0.05157686397433281,
0.31127679347991943,
0.2058664709329605,
0.1518607884645462,
0.12178730964660645,
-0.09882478415966034,
0.1393095701932907,
-0.12246936559677124,
-0.1717008352279663,
0.006999284029006958,
-0.00006035156548023224,
-0.08792199939489365,
0.42570042610168457,
0.029025642201304436,
-0.396664023399353,
-0.42035654187202454,
0.47770628333091736,
0.13342000544071198,
0.21346203982830048,
0.035522133111953735,
0.12813548743724823,
0.04228752851486206,
0.34176892042160034,
0.04047074913978577,
-0.2964975833892822,
0.1377900391817093,
0.12439470738172531,
-0.09290342032909393,
-0.012252278625965118,
0.25149857997894287,
-0.4036675691604614,
-0.29883652925491333,
0.46653348207473755,
-0.19796247780323029,
-0.09912672638893127,
-0.021511316299438477,
0.0649687647819519,
-0.11092464625835419,
-0.15028154850006104,
0.1958770900964737,
0.3595411777496338,
-0.046289049088954926,
0.5922560691833496,
-0.2799721360206604,
-0.15503866970539093,
-0.21391627192497253,
0.6729285717010498,
0.20950472354888916,
0.30164143443107605,
0.036868855357170105,
0.017652306705713272,
-0.4765997529029846,
-0.133456289768219,
-0.12716305255889893,
-0.4220750629901886,
0.13669663667678833,
0.42943888902664185,
-0.06954305619001389,
-0.03919897973537445,
-0.11249814182519913,
-0.08527567982673645,
-0.08712835609912872,
0.1773781180381775,
-0.3132677972316742,
-0.029630251228809357,
-0.1486729383468628,
-0.04503919184207916,
-0.1579335331916809,
0.2434314787387848,
-0.015973836183547974,
0.13891857862472534,
-0.39367514848709106,
0.33328554034233093,
-0.4051205813884735,
-0.1230916902422905,
-0.20807133615016937,
0.04401068389415741,
-0.18883490562438965,
-0.25655969977378845,
0.18087272346019745,
-0.1447153091430664,
0.22799274325370789,
0.27501869201660156,
-0.10629987716674805,
-0.2835400700569153,
-0.02802581712603569,
0.09198392182588577,
-0.08449236303567886,
0.11046206951141357,
-0.03898148238658905,
-0.09295020997524261,
-0.007598426192998886,
-0.3970494568347931,
0.27982857823371887,
0.5578256845474243,
0.03094477951526642,
0.09722424298524857,
0.087760791182518,
-0.11424035578966141,
0.32573401927948,
0.28582629561424255,
-0.25438714027404785,
0.12938931584358215,
-0.22791682183742523,
0.3314228355884552,
-0.0536840595304966,
-0.08295051008462906,
0.32159119844436646,
0.030604228377342224,
-0.08610393106937408,
-0.16762316226959229,
0.2974959909915924,
0.04006515443325043,
-0.23997241258621216,
0.23878176510334015,
0.42611250281333923,
0.19391009211540222,
-0.020507626235485077,
-0.41336870193481445,
0.3929363787174225,
0.23046903312206268,
-0.1804400086402893,
-0.37631991505622864,
0.059188295155763626,
0.07848697900772095,
0.1060819923877716,
0.13276663422584534,
-0.08958250284194946,
-0.014472469687461853,
-0.0005603954195976257,
-0.044650569558143616,
0.23149041831493378,
-0.10616552829742432,
0.14972904324531555,
0.17256416380405426,
0.3157947361469269,
0.023083217442035675,
0.460791677236557,
0.18742512166500092,
0.18096625804901123,
0.3305392861366272,
-0.12411021441221237,
0.1913287341594696,
-0.18209558725357056,
0.01028217002749443,
0.008898034691810608,
-0.5474197268486023,
0.4308393895626068,
0.3629773259162903,
-0.1097002774477005,
0.29568514227867126,
0.07351817190647125,
0.18321269750595093,
0.016428440809249878,
0.10662204027175903,
-0.18484996259212494,
0.15074555575847626,
-0.24675267934799194,
-0.03448796644806862,
0.11135484278202057,
-0.02152186632156372,
0.16397742927074432,
0.07040990889072418,
-0.08898113667964935,
-0.2862017750740051,
0.340304970741272,
0.1530378758907318,
-0.034016698598861694,
-0.2817852795124054,
0.20285868644714355,
-0.3229219317436218,
0.2571032643318176,
-0.1704561412334442,
-0.047323524951934814,
0.1258995682001114,
0.1614992320537567,
-0.16581889986991882,
0.13661256432533264,
0.24503807723522186,
0.5118283033370972,
-0.06086098775267601,
0.10656768828630447,
-0.007779477164149284,
-0.05862053483724594,
-0.49521228671073914,
0.3433310389518738,
-0.31258532404899597,
-0.3157384395599365,
0.35303568840026855,
0.20929647982120514,
-0.25332197546958923,
0.06424427032470703,
0.06967665255069733,
0.2718546986579895,
0.2033100575208664,
0.15902253985404968,
0.015067750588059425,
0.11300446838140488,
0.024057181552052498,
0.2794401943683624,
-0.26630881428718567,
-0.22402699291706085,
0.3107815086841583,
0.013221509754657745,
0.14720413088798523,
-0.2555629312992096,
0.0890769511461258,
-0.16602115333080292,
0.31528788805007935,
0.38313978910446167,
0.3086490333080292,
-0.11634510010480881,
0.05312982201576233,
-0.35218244791030884,
0.38372209668159485,
-0.138605996966362,
-0.0015886463224887848,
-0.08007556945085526,
0.41944676637649536,
-0.11310140043497086,
-0.10837522149085999,
0.07125811278820038,
0.31922051310539246,
-0.001782108098268509,
0.3947656452655792,
-0.4328177869319916,
0.13716313242912292,
-0.5196850895881653,
-0.29130229353904724,
0.13947924971580505,
-0.5391647815704346,
0.19587720930576324,
-0.034905873239040375,
0.20481336116790771,
-0.2840932607650757,
0.11393070220947266,
-0.0007827822118997574,
0.16371506452560425,
0.5047903060913086,
0.3265344500541687,
0.2440892606973648,
-0.12141738086938858,
0.08809491246938705,
-0.040560390800237656,
-0.10042067617177963,
-0.05617247894406319,
-0.23007503151893616,
0.0645582377910614,
0.11270582675933838,
-0.3109334111213684,
-0.34686753153800964,
-0.15345799922943115,
0.6476136445999146,
0.0630401149392128,
-0.05047602578997612,
0.06644829362630844,
-0.0019148681312799454,
-0.2814871668815613,
0.006839770823717117,
-0.19151340425014496,
0.3433917760848999,
0.019212108105421066,
0.14410701394081116,
-0.20248517394065857,
-0.34115472435951233,
0.6150743961334229,
-0.0810101106762886,
0.03454625979065895,
-0.24433478713035583,
0.2873254418373108,
0.2199001908302307,
-0.16810768842697144,
-0.2365332543849945,
-0.1594698578119278,
0.2943345010280609,
0.10658881068229675,
-0.18173779547214508,
0.08410896360874176,
0.02917759120464325,
0.2167297750711441,
-0.1901472508907318,
-0.06646853685379028,
-0.03469580411911011,
-0.27941009402275085,
0.16842950880527496,
-0.3506389856338501
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hello !
Could you give more details ?
If you mean iter through one dataset then yes, `Dataset` object does implement the `__iter__` method so you can use
```python
for example in dataset:
# do something
```
If you want to iter through several datasets you can first concatenate them
```python
from datasets import concatenate_datasets
new_dataset = concatenate_datasets([dataset1, dataset2])
```
Let me know if this helps ! | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 67 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hello !
Could you give more details ?
If you mean iter through one dataset then yes, `Dataset` object does implement the `__iter__` method so you can use
```python
for example in dataset:
# do something
```
If you want to iter through several datasets you can first concatenate them
```python
from datasets import concatenate_datasets
new_dataset = concatenate_datasets([dataset1, dataset2])
```
Let me know if this helps ! | [
-0.2620127499103546,
-0.29162847995758057,
-0.1804151087999344,
0.11397119611501694,
0.060651231557130814,
-0.026536930352449417,
0.2819751501083374,
0.16877438127994537,
0.11090229451656342,
0.08455172181129456,
0.15545952320098877,
0.24818623065948486,
-0.35543644428253174,
0.3489527702331543,
0.17110031843185425,
-0.06561962515115738,
0.020535096526145935,
0.13697096705436707,
-0.6233144998550415,
-0.0821492075920105,
0.08253996074199677,
-0.12743909657001495,
-0.26662760972976685,
-0.17412824928760529,
0.052319154143333435,
-0.3682791292667389,
-0.39575204253196716,
-0.14224457740783691,
-0.22422222793102264,
-0.36304667592048645,
0.21437254548072815,
0.2408524453639984,
0.40664273500442505,
0.5543972253799438,
-0.00010314801329514012,
-0.13468541204929352,
0.1404356062412262,
-0.0824473425745964,
-0.172360360622406,
-0.245779350399971,
-0.1541208028793335,
-0.26730668544769287,
0.08497060835361481,
-0.4197580814361572,
-0.03271802142262459,
-0.13103367388248444,
0.08736248314380646,
-0.32897552847862244,
0.26964324712753296,
0.13272474706172943,
0.27951812744140625,
-0.21985436975955963,
0.13026295602321625,
-0.021149426698684692,
-0.031762927770614624,
0.07261932641267776,
-0.05838475376367569,
0.22053317725658417,
0.17179521918296814,
0.15654583275318146,
0.12111198902130127,
0.028726724907755852,
0.16558797657489777,
-0.0035961605608463287,
0.3876423239707947,
-0.09656503051519394,
-0.04425758868455887,
-0.4276584982872009,
-0.1730998456478119,
0.06600251793861389,
0.8125042915344238,
-0.44125503301620483,
-0.3938428461551666,
0.04908561706542969,
0.04307663440704346,
-0.5168247222900391,
-0.15270701050758362,
0.14919115602970123,
0.06414341926574707,
0.058670781552791595,
-0.134823739528656,
-0.26214826107025146,
-0.26987677812576294,
0.12406863272190094,
-0.12026926875114441,
0.1766420304775238,
-0.13961847126483917,
0.09773827344179153,
0.15541285276412964,
-0.178771510720253,
0.31914523243904114,
-0.005835864692926407,
0.18436454236507416,
0.28499042987823486,
-0.5635165572166443,
-0.3246942460536957,
0.008889451622962952,
0.3077014684677124,
0.3426326513290405,
0.3845377564430237,
0.06103336438536644,
-0.05311170965433121,
-0.16387401521205902,
0.21538680791854858,
0.5052186846733093,
-0.057583168148994446,
-0.09676539152860641,
0.07736226171255112,
0.13713102042675018,
-0.07462270557880402,
-0.17876489460468292,
-0.08501208573579788,
-0.203622967004776,
-0.23511840403079987,
0.13543814420700073,
-0.16733992099761963,
-0.010803241282701492,
-0.08981512486934662,
-0.0006081331521272659,
-0.21413259208202362,
-0.24790620803833008,
-0.26657429337501526,
0.16424678266048431,
0.23584619164466858,
-0.2475820630788803,
0.18323060870170593,
-0.27187180519104004,
-0.12472286820411682,
0.038181185722351074,
0.2522243857383728,
-0.10042434930801392,
0.4507006108760834,
-0.377098947763443,
0.03218130022287369,
-0.0641271322965622,
-0.36359044909477234,
0.06662891805171967,
0.09463060647249222,
0.10861504077911377,
-0.08915387094020844,
0.1355140209197998,
-0.27288517355918884,
0.37566033005714417,
-0.003879595547914505,
-0.04900629073381424,
-0.002254791557788849,
-0.13856522738933563,
0.05652201920747757,
-0.42629531025886536,
0.01912025362253189,
-0.39384186267852783,
-0.04655031859874725,
-0.03729073703289032,
0.2154167890548706,
-0.18311385810375214,
-0.21765297651290894,
0.07980065047740936,
0.1534952074289322,
0.07347454875707626,
-0.11235535144805908,
0.015881873667240143,
-0.10772654414176941,
-0.03388131037354469,
-0.2993711531162262,
0.08833456039428711,
0.1641411930322647,
-0.35705217719078064,
0.07766576111316681,
0.08042888343334198,
0.04919544979929924,
0.13622672855854034,
0.22188903391361237,
-0.2568957507610321,
0.2136600911617279,
-0.21269139647483826,
-0.07079728692770004,
0.5765585899353027,
-0.2613781690597534,
-0.14355291426181793,
0.2921445071697235,
0.07466922700405121,
-0.002798464149236679,
0.1206454262137413,
0.19943566620349884,
-0.05240635201334953,
-0.01693391241133213,
-0.16867895424365997,
0.23800179362297058,
-0.011463982984423637,
-0.10067445039749146,
-0.005255144089460373,
0.10090761631727219,
0.1932472437620163,
0.040152233093976974,
0.08938682824373245,
0.23519805073738098,
0.05823691189289093,
0.11276400834321976,
0.4554220736026764,
-0.2984420359134674,
0.1082942858338356,
0.21042919158935547,
0.3090747892856598,
0.11489983648061752,
0.1462794989347458,
-0.3679894506931305,
0.1484365463256836,
0.09863639622926712,
0.2785971164703369,
0.05204792693257332,
0.2340695708990097,
-0.06934857368469238,
-0.04428763687610626,
0.07640714198350906,
-0.2159167379140854,
-0.057887058705091476,
0.18849363923072815,
0.16734084486961365,
0.17427466809749603,
-0.11896149814128876,
-0.5899414420127869,
0.21855853497982025,
-0.21632252633571625,
-0.11844774335622787,
-0.5084577202796936,
0.21473145484924316,
0.15422314405441284,
-0.010816880501806736,
0.09650298953056335,
0.11695775389671326,
-0.1846950352191925,
-0.4343790113925934,
0.2691550850868225,
0.27708128094673157,
0.04409976676106453,
-0.07131211459636688,
0.07927395403385162,
0.3585069179534912,
0.27717509865760803,
-0.12153862416744232,
0.06655015051364899,
-0.19132213294506073,
0.3170201778411865,
-0.03046364337205887,
0.2445865273475647,
0.47543787956237793,
-0.15990528464317322,
0.18923404812812805,
0.451546847820282,
-0.13987450301647186,
0.06978876888751984,
-0.07834124565124512,
-0.37812352180480957,
0.12512345612049103,
-0.11088831722736359,
-0.16471779346466064,
0.4323980510234833,
-0.1913583129644394,
-0.43870002031326294,
-0.26006290316581726,
0.48458996415138245,
-0.0010404214262962341,
-0.004696682095527649,
0.06547560542821884,
-0.07338655740022659,
0.007284197956323624,
-0.05278903990983963,
0.13742712140083313,
0.3874972462654114,
0.0551786907017231,
0.20383301377296448,
0.0640801191329956,
0.011907760985195637,
0.12592780590057373,
0.15377873182296753,
0.06874283403158188,
0.3130617141723633,
-0.019404225051403046,
0.034760501235723495,
0.056490495800971985,
-0.16358712315559387,
-0.3934367001056671,
-0.07631901651620865,
0.1618543565273285,
-0.02113616280257702,
0.36872100830078125,
-0.32971516251564026,
-0.3494110703468323,
-0.3988717496395111,
-0.23844724893569946,
0.11402511596679688,
0.03615695983171463,
-0.2951517701148987,
-0.041035618633031845,
0.3395088016986847,
0.13552184402942657,
0.1492672711610794,
0.17121711373329163,
0.08567148447036743,
0.024713536724448204,
0.055949270725250244,
-0.024967586621642113,
-0.015380360186100006,
0.19651682674884796,
0.27426639199256897,
-0.1589585244655609,
0.5873370170593262,
0.000730372965335846,
-0.08041660487651825,
-0.368033766746521,
-0.18619117140769958,
0.1703965663909912,
-0.01284320279955864,
0.03514024242758751,
0.25133442878723145,
-0.004581950604915619,
-0.04899913817644119,
-0.09182277321815491,
0.023535575717687607,
-0.33676978945732117,
0.17294786870479584,
-0.22048430144786835,
-0.101742684841156,
0.10092269629240036,
0.09097768366336823,
-0.29244357347488403,
-0.5083229541778564,
-0.24750898778438568,
0.24295611679553986,
0.43553271889686584,
0.26851099729537964,
0.16043336689472198,
0.06893402338027954,
0.21235473453998566,
0.1988353431224823,
0.07734739035367966,
0.022662200033664703,
-0.2997835576534271,
0.1812630295753479,
-0.3456684350967407,
-0.2615364193916321,
-0.0005996152758598328,
-0.012473100796341896,
0.4389669597148895,
0.144929438829422,
-0.2703377604484558,
-0.11316262930631638,
0.00786207988858223,
-0.016493860632181168,
0.06934484094381332,
0.5041057467460632,
0.12708990275859833,
-0.22682780027389526,
-0.08355648070573807,
-0.06643904745578766,
0.05312785878777504,
-0.06647173315286636,
-0.14305365085601807,
0.2096247375011444,
0.45484980940818787,
0.35928818583488464,
-0.04600200057029724,
0.34331631660461426,
0.23416882753372192,
-0.41429805755615234,
0.35872259736061096,
-0.31389671564102173,
-0.16214708983898163,
-0.05677398294210434,
-0.2992810308933258,
0.09555023908615112,
-0.32899487018585205,
-0.2866767644882202,
0.07652951776981354,
-0.13286185264587402,
-0.3404940068721771,
-0.3377615809440613,
0.11425141990184784,
0.014496400952339172,
-0.017097488045692444,
-0.008165903389453888,
-0.33365023136138916,
0.25203222036361694,
-0.24628180265426636,
-0.18163436651229858,
-0.11595731973648071,
0.07891865074634552,
-0.026201622560620308,
0.09997841715812683,
0.10926736891269684,
-0.12819181382656097,
-0.5397811532020569,
-0.18718424439430237,
-0.2831956148147583,
0.08104270696640015,
-0.10943790525197983,
0.24233295023441315,
0.37010282278060913,
-0.1744753122329712,
0.07191590964794159,
-0.3205094635486603,
0.35528266429901123,
-0.011020312085747719,
-0.5156717300415039,
0.0702780932188034,
-0.4106996953487396,
0.0827040746808052,
0.11707444489002228,
-0.30596476793289185,
0.5226396322250366,
0.18024097383022308,
-0.0700213760137558,
-0.12327834963798523,
-0.2890225052833557,
0.3584614098072052,
0.16389577090740204,
0.003358732908964157,
-0.27478694915771484,
-0.025492290034890175,
-0.2516486942768097,
-0.2371177226305008,
-0.11535825580358505,
-0.11301293224096298,
0.001542131882160902,
-0.07153718173503876,
-0.0634528174996376,
-0.25320470333099365,
0.05917799472808838,
0.22962826490402222,
-0.05857286602258682,
0.03059036284685135,
-0.018770664930343628,
0.1887829750776291,
0.058987945318222046,
0.33230018615722656,
0.3582288324832916,
0.35316208004951477,
-0.12572506070137024,
-0.074266716837883,
0.18782564997673035,
0.2395171970129013,
0.4375709295272827,
0.009445637464523315,
-0.07419634610414505,
0.185392826795578,
-0.21985287964344025,
-0.01618780940771103,
-0.38058915734291077,
-0.03862212970852852,
0.3348108232021332,
-0.0018568122759461403,
-0.6414479613304138,
-0.8713585138320923,
0.5688753724098206,
0.26136305928230286,
0.004065223038196564,
0.3360832929611206,
-0.12262731790542603,
-0.10235194861888885,
-0.090293288230896,
0.1467006653547287,
0.6982848048210144,
0.08367855101823807,
0.09443052113056183,
0.1957821249961853,
0.291090726852417,
0.47425490617752075,
-0.023177001625299454,
0.09571513533592224,
-0.47121551632881165,
-0.24249978363513947,
-0.15763577818870544,
-0.13528956472873688,
0.3274857997894287,
0.09737422317266464,
-0.2673662602901459,
0.46175751090049744,
0.08613216876983643,
-0.019161585718393326,
-0.07813331484794617,
0.2627311646938324,
-0.2957577109336853,
-0.1491946280002594,
-0.3420797288417816,
0.20871032774448395,
0.13754533231258392,
0.13050495088100433,
-0.16799849271774292,
-0.19627180695533752,
0.32504385709762573,
0.12176460027694702,
-0.025998137891292572,
-0.14700379967689514,
-0.10144833475351334,
0.01577574387192726,
0.12716510891914368,
-0.3621404767036438,
0.2924301326274872,
0.19122491776943207,
0.2234525978565216,
-0.013315554708242416,
-0.041263647377491,
0.028185604140162468,
-0.14523941278457642,
-0.03710011765360832,
-0.022826410830020905,
0.15727755427360535,
0.5331595540046692,
-0.05378293618559837,
-0.06487517058849335,
0.294696182012558,
0.09658293426036835,
-0.0767127126455307,
-0.08373236656188965,
0.21737614274024963,
0.21056725084781647,
-0.13782426714897156,
-0.13686005771160126,
0.45206570625305176,
-0.11386868357658386,
-0.0730501115322113,
0.1984199583530426,
0.19279515743255615,
-0.25028395652770996,
0.43455034494400024,
-0.026524867862462997,
-0.12063498795032501,
-0.16845503449440002,
0.174799844622612,
0.29539746046066284,
-0.15483450889587402,
0.2711716890335083,
0.02778167650103569,
-0.20301632583141327,
-0.2583882808685303,
0.1134038046002388,
0.1887512356042862,
0.047032423317432404,
0.03577513247728348,
0.05638525262475014,
0.36416417360305786,
0.2256298065185547,
0.1616133451461792,
-0.004046153277158737,
0.07574297487735748,
-0.3522454798221588,
-0.16990427672863007,
-0.21051304042339325,
0.044839683920145035,
0.17359031736850739,
0.3234500586986542,
-0.050631530582904816,
-0.08213658630847931,
0.1715504676103592,
0.0824962705373764,
-0.38107922673225403,
-0.06566710025072098,
-0.15188494324684143,
0.11207561939954758,
0.09019477665424347,
0.03440743684768677,
-0.24114015698432922,
0.30609115958213806,
0.1729075163602829,
0.15131551027297974,
-0.2065100222826004,
-0.27996137738227844,
-0.0027321092784404755,
0.0741402879357338,
-0.04069780558347702,
-0.050637684762477875,
0.14847582578659058,
-0.19191771745681763,
-0.2478049099445343,
-0.08396142721176147,
0.1618691086769104,
-0.04110105335712433,
0.004889674484729767,
0.21550126373767853,
0.18617430329322815,
-0.38001009821891785,
-0.07858503609895706,
-0.058096788823604584,
0.13997972011566162,
-0.012056656181812286,
0.15605159103870392,
0.31665903329849243,
0.014145629480481148,
-0.29482030868530273,
-0.23388496041297913,
0.14367234706878662,
0.2659362554550171,
-0.18826454877853394,
0.35872167348861694,
-0.26164114475250244,
0.16915474832057953,
0.08737985789775848,
0.4440041780471802,
0.681908905506134,
-0.18314774334430695,
0.1529594361782074,
0.26603493094444275,
0.25141212344169617,
-0.13199099898338318,
-0.06443853676319122,
-0.024232588708400726,
-0.09626776725053787,
0.09156431257724762,
0.2693864405155182,
0.15115103125572205,
0.11225484311580658,
-0.21587060391902924,
-0.2792432904243469,
0.12783180177211761,
-0.29287493228912354,
0.1434125453233719,
0.2993031442165375,
-0.08221007883548737,
-0.11246232688426971,
0.25491613149642944,
0.4423462450504303,
0.19819505512714386,
0.5453613996505737,
-0.014114923775196075,
0.6302165389060974,
0.10675516724586487,
-0.11123381555080414,
-0.025092773139476776,
-0.1928500086069107,
-0.024217229336500168,
0.20769833028316498,
0.1615586280822754,
0.07000522315502167,
-0.03115413337945938,
0.22564023733139038,
0.18232393264770508,
-0.10273096710443497,
0.018373658880591393,
0.31251564621925354,
0.0823238417506218,
-0.12384134531021118,
-0.21008096635341644,
-0.16356581449508667,
-0.18094196915626526,
-0.07083103060722351,
-0.18970848619937897,
-0.11256596446037292,
0.25261741876602173,
0.08508315682411194,
0.2983176112174988,
-0.41085493564605713,
0.3159434497356415,
-0.10585693269968033,
0.37037062644958496,
-0.29706940054893494,
0.20145833492279053,
-0.07242399454116821,
0.10503119230270386,
-0.3055816888809204,
0.171609565615654,
0.30796563625335693,
0.484897643327713,
0.10292643308639526,
0.04771062359213829,
-0.2340177744626999,
-0.1359863132238388,
0.11418552696704865,
0.003201548010110855,
-0.08179676532745361,
-0.05141637101769447,
0.49613478779792786,
0.13366596400737762,
-0.09628076106309891,
0.4675193428993225,
0.07621635496616364,
-0.027522709220647812,
-0.8000183701515198,
0.047810476273298264,
0.08329813182353973,
-0.03781260550022125,
-0.09303411841392517,
0.2179272174835205,
-0.46557238698005676,
-0.04687071219086647,
0.48061904311180115,
-0.4441664516925812,
-0.007359083741903305,
-0.17567574977874756,
0.10240156948566437,
-0.3209998309612274,
0.6157894134521484,
0.1939956247806549,
0.5805901288986206,
-0.014538927935063839,
-0.3817858099937439,
-0.30626654624938965,
-0.033671148121356964,
-0.08667129278182983,
-0.14955249428749084,
-0.07630647718906403,
0.1704973578453064,
0.10771949589252472,
0.09878477454185486,
-0.17353112995624542,
-0.4373108744621277,
-0.20290209352970123,
0.40544337034225464,
-0.2589811086654663,
-0.2440919131040573,
-0.429806649684906,
0.363832950592041,
0.07268431782722473,
-0.19712182879447937,
-0.04251057282090187,
-0.4353248178958893,
0.053401149809360504,
0.0012333821505308151,
0.17786942422389984,
0.19275806844234467,
-0.20716172456741333,
0.4288683235645294,
-0.01926763541996479,
0.34665367007255554,
-0.150936096906662,
0.03776531666517258,
-0.12435576319694519,
-0.19714267551898956,
-0.19977937638759613,
0.38288363814353943,
0.1541641503572464,
0.024766404181718826,
-0.09303094446659088,
-0.04083320125937462,
-0.0006957966834306717,
0.019273173063993454,
0.0890781432390213,
0.018827548250555992,
-0.020981162786483765,
-0.22718898952007294,
0.10047236829996109,
-0.03827599436044693,
0.09663059562444687,
0.6581109166145325,
-0.14701272547245026,
0.06554087996482849,
-0.2018078863620758,
-0.08851707726716995,
0.2630487382411957,
-0.18442779779434204,
-0.19976301491260529,
-0.31869298219680786,
0.030083030462265015,
0.06526044011116028,
-0.15347890555858612,
-0.44773516058921814,
0.08257699757814407,
0.4290878176689148,
-0.0004234965890645981,
-0.28468576073646545,
0.39609211683273315,
0.3302381932735443,
0.05547669157385826,
-0.06149117648601532,
0.1827526092529297,
-0.07854068279266357,
-0.11478482931852341,
-0.015291521325707436,
-0.2455786019563675
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hi Huggingface/Datasets team,
I want to use the datasets inside Seq2SeqDataset here
https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
and there I need to return back each line from the datasets and I am not
sure how to access each line and implement this?
It seems it also has get_item attribute? so I was not sure if this is
iterative dataset? or if this is non-iterable datasets?
thanks.
On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <notifications@github.com>
wrote:
> Hello !
> Could you give more details ?
>
> If you mean iter through one dataset then yes, Dataset object does
> implement the __iter__ method so you can use
>
> for example in dataset:
> # do something
>
> If you want to iter through several datasets you can first concatenate them
>
> from datasets import concatenate_datasets
> new_dataset = concatenate_datasets([dataset1, dataset2])
>
> Let me know if this helps !
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
> .
>
| Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 185 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hi Huggingface/Datasets team,
I want to use the datasets inside Seq2SeqDataset here
https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
and there I need to return back each line from the datasets and I am not
sure how to access each line and implement this?
It seems it also has get_item attribute? so I was not sure if this is
iterative dataset? or if this is non-iterable datasets?
thanks.
On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <notifications@github.com>
wrote:
> Hello !
> Could you give more details ?
>
> If you mean iter through one dataset then yes, Dataset object does
> implement the __iter__ method so you can use
>
> for example in dataset:
> # do something
>
> If you want to iter through several datasets you can first concatenate them
>
> from datasets import concatenate_datasets
> new_dataset = concatenate_datasets([dataset1, dataset2])
>
> Let me know if this helps !
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
> .
>
| [
-0.02254367433488369,
-0.3792019188404083,
-0.07171972095966339,
0.3793147802352905,
0.07945950329303741,
-0.154981791973114,
0.27637532353401184,
0.08281740546226501,
0.07116234302520752,
-0.1428879052400589,
-0.06436228007078171,
0.011118998751044273,
-0.24549691379070282,
0.3429045081138611,
0.15793633460998535,
-0.07029925286769867,
-0.10003075748682022,
0.00746329128742218,
-0.7639597654342651,
-0.044630177319049835,
0.06033629924058914,
0.2321564257144928,
-0.27114444971084595,
-0.010925590991973877,
-0.03694769740104675,
-0.2411499321460724,
-0.3265107274055481,
-0.06277322769165039,
-0.2232867032289505,
-0.3062739372253418,
0.37058451771736145,
0.26766303181648254,
0.3039005398750305,
0.5059754848480225,
-0.00011498265666887164,
-0.08657950162887573,
-0.013672031462192535,
-0.11190491914749146,
-0.26054129004478455,
-0.26024168729782104,
-0.24706962704658508,
-0.12101086229085922,
0.1278483271598816,
-0.3559494614601135,
-0.04556990787386894,
0.037800613790750504,
0.16675573587417603,
-0.308089941740036,
0.6174594759941101,
0.17397086322307587,
0.1636670082807541,
0.12573368847370148,
0.09915874898433685,
-0.02021126262843609,
-0.0610702708363533,
0.23068539798259735,
0.06806949526071548,
0.10132712125778198,
0.24604807794094086,
0.16167038679122925,
0.08731697499752045,
0.14191225171089172,
0.16909651458263397,
-0.13224910199642181,
0.22843101620674133,
0.025135308504104614,
-0.10975704342126846,
-0.3999996483325958,
-0.07696673274040222,
0.23076751828193665,
0.7655306458473206,
-0.4036311209201813,
-0.4934118688106537,
-0.23890134692192078,
-0.08458501100540161,
-0.3491232991218567,
-0.060726799070835114,
0.08783479779958725,
0.0615789033472538,
0.20741838216781616,
-0.27502870559692383,
-0.17992304265499115,
-0.28719770908355713,
-0.07147583365440369,
-0.08420402556657791,
-0.12330812215805054,
-0.35710760951042175,
0.03754311427474022,
0.13684162497520447,
-0.23895905911922455,
-0.12844344973564148,
0.18228712677955627,
0.11190006136894226,
0.35836729407310486,
-0.6574565172195435,
-0.16446182131767273,
0.03246540203690529,
0.2509855031967163,
0.5292327404022217,
0.5199730396270752,
0.07081659138202667,
-0.07283175736665726,
-0.059563565999269485,
0.13559919595718384,
0.35473135113716125,
0.21677641570568085,
0.1332976520061493,
0.014836500398814678,
-0.04683502018451691,
-0.01567607745528221,
0.008092373609542847,
-0.18747654557228088,
-0.1975456029176712,
-0.2633073925971985,
-0.028897810727357864,
-0.18126478791236877,
0.1243736743927002,
-0.1571447104215622,
-0.0886649638414383,
-0.14236454665660858,
-0.21866834163665771,
-0.24807001650333405,
0.21557453274726868,
0.17979584634304047,
0.014784782193601131,
-0.009271219372749329,
-0.1977040320634842,
0.1596265286207199,
0.023329047486186028,
0.16188853979110718,
-0.08999402076005936,
0.29390621185302734,
-0.33235445618629456,
0.3278655707836151,
-0.1063363254070282,
-0.5168439745903015,
0.12413021177053452,
-0.04980643093585968,
-0.014522843062877655,
-0.18956485390663147,
0.013115284964442253,
-0.15611782670021057,
0.2389707863330841,
0.04168781638145447,
-0.1350613236427307,
0.16811378300189972,
-0.10381349921226501,
-0.006343226879835129,
-0.40264806151390076,
-0.36203330755233765,
-0.2837929129600525,
-0.27243179082870483,
-0.0047700535506010056,
0.08283153176307678,
-0.28923481702804565,
-0.049335941672325134,
0.0017671510577201843,
0.29952019453048706,
0.04285116493701935,
-0.05313969776034355,
0.15761303901672363,
-0.0021380670368671417,
-0.26327165961265564,
-0.027477961033582687,
0.13874605298042297,
0.5703588128089905,
-0.517187774181366,
-0.16935262084007263,
0.19017063081264496,
-0.06138644739985466,
0.06472647190093994,
0.49105337262153625,
-0.18456672132015228,
0.2792845666408539,
-0.2950097322463989,
0.1451636552810669,
0.4489826560020447,
-0.12013605237007141,
-0.3379768431186676,
0.3601588010787964,
-0.05147620290517807,
0.12091334909200668,
0.2169084995985031,
-0.0967276468873024,
0.14119555056095123,
0.07713355123996735,
-0.13100625574588776,
0.030713573098182678,
0.10120629519224167,
-0.2649410367012024,
-0.04938827455043793,
-0.07647356390953064,
0.12186072021722794,
-0.07273277640342712,
-0.01816747710108757,
0.3623620867729187,
0.08065325021743774,
0.18907080590724945,
0.4062774181365967,
-0.21538910269737244,
0.2619221806526184,
0.2413794994354248,
0.18417219817638397,
0.156609445810318,
0.12639400362968445,
-0.31206294894218445,
-0.2084101140499115,
0.14972177147865295,
0.10032224655151367,
-0.09746862947940826,
-0.02709197998046875,
-0.03136076778173447,
-0.2901251018047333,
0.08990750461816788,
-0.2494383305311203,
-0.2793980538845062,
0.1004122644662857,
0.2482922524213791,
0.37795010209083557,
-0.0617014542222023,
-0.4771333634853363,
0.5368736982345581,
0.039899177849292755,
0.11377152055501938,
-0.8209340572357178,
0.22695046663284302,
0.29163992404937744,
-0.04191991686820984,
0.009273696690797806,
0.2299206554889679,
-0.04435345530509949,
-0.3739894926548004,
0.4070417284965515,
0.29185083508491516,
-0.2554706633090973,
0.1345612108707428,
0.17518270015716553,
0.413870632648468,
0.2163657248020172,
-0.049322597682476044,
-0.03061847575008869,
-0.33022281527519226,
0.2782609462738037,
-0.07022926956415176,
0.1413685381412506,
0.44779080152511597,
-0.20191806554794312,
0.4001392722129822,
0.20180602371692657,
-0.03998682647943497,
-0.03888864815235138,
-0.026811663061380386,
-0.6704294681549072,
0.10829000174999237,
0.08742251247167587,
-0.1647336483001709,
0.49419236183166504,
-0.13775213062763214,
-0.27605316042900085,
-0.10871755331754684,
0.41381993889808655,
-0.09440399706363678,
-0.020049698650836945,
0.22254523634910583,
-0.14515596628189087,
-0.07462888956069946,
0.05746827274560928,
-0.07527513056993484,
0.2247610092163086,
-0.04990663751959801,
0.21739672124385834,
0.019704271107912064,
0.1520121991634369,
0.04906580597162247,
0.03436855226755142,
0.13756166398525238,
0.26762717962265015,
-0.06308348476886749,
0.022344043478369713,
0.0916069895029068,
-0.18215495347976685,
-0.3705841600894928,
-0.1461513638496399,
0.03575073927640915,
-0.20608606934547424,
0.443092405796051,
-0.25895288586616516,
-0.2633572816848755,
-0.4498879313468933,
-0.0666273832321167,
0.013217061758041382,
0.016912739723920822,
-0.341353178024292,
-0.08775284886360168,
0.32872116565704346,
0.02749214507639408,
0.12296794354915619,
0.38272571563720703,
0.23547957837581635,
0.062202416360378265,
-0.2230381816625595,
-0.06257832050323486,
0.14045152068138123,
0.05045780912041664,
0.11743314564228058,
-0.17442017793655396,
0.41477668285369873,
-0.011087382212281227,
0.020394276827573776,
-0.33502522110939026,
-0.23262625932693481,
0.36294037103652954,
-0.03032469004392624,
0.20290572941303253,
0.25269806385040283,
0.0050781965255737305,
-0.07271180301904678,
-0.2006014734506607,
-0.0021758826915174723,
-0.16804498434066772,
-0.024172110483050346,
0.05514838546514511,
-0.08468301594257355,
0.2222282737493515,
0.11610136926174164,
-0.2689584493637085,
-0.33768048882484436,
-0.10862624645233154,
0.7068125009536743,
0.08232587575912476,
0.1625308096408844,
0.2160709947347641,
-0.14670231938362122,
0.374201238155365,
-0.17920304834842682,
0.2425268441438675,
-0.08224869519472122,
-0.4794168472290039,
0.2723619341850281,
-0.3086800277233124,
-0.20704516768455505,
-0.06159329041838646,
-0.11149569600820541,
0.5452196002006531,
0.04741647467017174,
-0.28791624307632446,
-0.2418958991765976,
-0.08896135538816452,
-0.05769024044275284,
0.1043202355504036,
0.2547333538532257,
0.31472158432006836,
-0.21800196170806885,
0.05303068459033966,
0.03929311782121658,
-0.0398629754781723,
0.14310750365257263,
-0.029665566980838776,
0.11790309846401215,
0.3721631169319153,
0.6116316914558411,
0.20339317619800568,
0.528332531452179,
0.5597792863845825,
0.044153206050395966,
0.13390102982521057,
-0.20301781594753265,
-0.14824339747428894,
-0.0539470836520195,
-0.4497843384742737,
0.10089309513568878,
-0.35203614830970764,
-0.22420428693294525,
0.10325855016708374,
-0.08209342509508133,
-0.007276453077793121,
-0.1764744073152542,
0.23434048891067505,
-0.31533083319664,
-0.17513234913349152,
-0.11594809591770172,
-0.05245412886142731,
0.22765767574310303,
-0.15145279467105865,
-0.10100662708282471,
-0.0028497381135821342,
0.11663850396871567,
-0.062475670129060745,
0.24953335523605347,
0.2291751503944397,
0.14048628509044647,
-0.4873243570327759,
-0.11917342245578766,
-0.5276035070419312,
0.09911748766899109,
-0.06580472737550735,
0.08162176609039307,
0.17649488151073456,
-0.17039337754249573,
0.2090616375207901,
-0.19728204607963562,
0.706855833530426,
0.3709079325199127,
-0.4413895606994629,
0.01671072095632553,
-0.6154155135154724,
-0.09449661523103714,
0.2515733540058136,
-0.30185386538505554,
0.24641679227352142,
0.4119482934474945,
-0.11153322458267212,
-0.4199149012565613,
-0.2527621388435364,
0.183279886841774,
-0.03986745327711105,
-0.06152412295341492,
-0.16579143702983856,
0.12371517717838287,
-0.13154426217079163,
-0.17791303992271423,
-0.03466399759054184,
-0.029793914407491684,
0.14315728843212128,
-0.06130702793598175,
0.016755525022745132,
-0.19514046609401703,
-0.10090705752372742,
0.2924518585205078,
0.002170249819755554,
0.1355208158493042,
-0.07170547544956207,
0.10208311676979065,
0.39702966809272766,
0.1857028752565384,
0.18295906484127045,
0.5120192766189575,
0.0045760031789541245,
-0.016341648995876312,
0.24431392550468445,
0.11494874209165573,
0.37135639786720276,
0.22974041104316711,
-0.22431717813014984,
0.13118818402290344,
-0.20829074084758759,
0.062460675835609436,
-0.4876963794231415,
-0.06465473771095276,
0.3882623016834259,
0.004207320511341095,
-0.4003355801105499,
-0.5670480132102966,
0.4350758194923401,
0.0636788159608841,
-0.0679374411702156,
-0.11329221725463867,
0.21992923319339752,
-0.21935005486011505,
-0.06352926790714264,
-0.04802749305963516,
0.8930820226669312,
-0.07986390590667725,
0.17763398587703705,
0.27114832401275635,
0.31257110834121704,
0.6791244149208069,
-0.10454095155000687,
0.03737328201532364,
-0.3593169152736664,
-0.12837529182434082,
-0.17617955803871155,
-0.14329545199871063,
0.23939499258995056,
0.2416951209306717,
-0.31687861680984497,
0.47400230169296265,
0.23648153245449066,
-0.08763377368450165,
-0.2001953125,
0.13418170809745789,
-0.25053083896636963,
-0.1713341623544693,
-0.5428104996681213,
0.07975731790065765,
0.19763515889644623,
0.34964272379875183,
-0.20354357361793518,
-0.15898987650871277,
0.38721364736557007,
0.01087682694196701,
-0.19578272104263306,
-0.1961764395236969,
-0.1912955790758133,
-0.11987987160682678,
0.31081706285476685,
-0.45031094551086426,
0.24837222695350647,
0.2719878554344177,
0.3074178695678711,
-0.02027994766831398,
-0.23374399542808533,
-0.17066536843776703,
-0.1715364158153534,
-0.057598892599344254,
-0.044353682547807693,
0.11914926767349243,
0.5094355344772339,
0.08621620386838913,
0.009827814996242523,
0.2524539828300476,
0.12276987731456757,
0.05521401762962341,
-0.12339329719543457,
0.027991320937871933,
0.024711590260267258,
-0.3799901604652405,
0.04457354545593262,
0.4037042558193207,
0.013900119811296463,
-0.07517687976360321,
0.07091595232486725,
0.354855477809906,
-0.1962820440530777,
0.20547670125961304,
-0.022468704730272293,
-0.1437734067440033,
-0.17218562960624695,
0.3500182628631592,
-0.11830378323793411,
-0.14915022253990173,
0.4499128460884094,
0.2053413838148117,
-0.2025938481092453,
-0.1555677354335785,
0.10783473402261734,
0.3016616404056549,
-0.5539580583572388,
-0.05514797195792198,
0.01581193320453167,
0.29550957679748535,
0.12318838387727737,
0.2468167394399643,
0.157518208026886,
-0.1966640055179596,
-0.1688225120306015,
-0.3144055902957916,
-0.11280851811170578,
0.2498926967382431,
0.15687596797943115,
0.2673363983631134,
0.013314742594957352,
-0.0962870717048645,
0.04662763327360153,
0.21907533705234528,
-0.27460211515426636,
0.0008878805674612522,
-0.1824958622455597,
0.027025168761610985,
0.3159905672073364,
-0.13113462924957275,
0.13407635688781738,
0.299402117729187,
0.004985891282558441,
0.2990652918815613,
-0.2860029637813568,
-0.1493281126022339,
-0.1430826336145401,
0.1100986897945404,
-0.04327569901943207,
-0.11824939399957657,
0.12561681866645813,
0.05384792387485504,
-0.13961626589298248,
-0.17663733661174774,
0.37313148379325867,
0.10632041841745377,
0.2922571897506714,
0.28736910223960876,
0.3195649981498718,
-0.18831822276115417,
-0.1875494420528412,
0.024497974663972855,
0.21931816637516022,
-0.031958624720573425,
0.16335715353488922,
0.3162524700164795,
-0.33846670389175415,
-0.23437102138996124,
-0.13016200065612793,
0.40805932879447937,
0.44077593088150024,
-0.21459907293319702,
0.34469813108444214,
-0.33727824687957764,
0.011561788618564606,
0.016249917447566986,
0.5546605587005615,
0.5000160932540894,
-0.11147793382406235,
0.12327322363853455,
0.238549143075943,
0.12892192602157593,
-0.013140777125954628,
0.14483901858329773,
-0.1646965593099594,
-0.015505037270486355,
0.03921591117978096,
0.39147230982780457,
-0.06367877125740051,
0.19085222482681274,
0.30730414390563965,
-0.15462183952331543,
0.20587606728076935,
-0.2311471849679947,
0.02482704445719719,
0.14020204544067383,
-0.0052891261875629425,
-0.04668118432164192,
0.35998106002807617,
0.5259147882461548,
0.2698191702365875,
0.30386167764663696,
-0.19874119758605957,
0.33674120903015137,
-0.29600510001182556,
0.3056204617023468,
0.15450634062290192,
-0.1887044459581375,
-0.2669292092323303,
0.22993159294128418,
0.12979860603809357,
0.0332544781267643,
-0.3204917907714844,
0.5874297022819519,
0.2111530303955078,
0.005056094378232956,
-0.0595761314034462,
0.4466044306755066,
0.08981136977672577,
-0.45918750762939453,
-0.07468913495540619,
-0.21792727708816528,
-0.19435399770736694,
-0.14878718554973602,
-0.2237694263458252,
-0.18778912723064423,
0.23101304471492767,
-0.0714443027973175,
0.44188499450683594,
-0.5277565121650696,
0.03588341549038887,
-0.0264715775847435,
0.05271889641880989,
-0.2840574383735657,
0.24447934329509735,
-0.0745941549539566,
0.11000117659568787,
-0.0017720013856887817,
0.3280363380908966,
0.21348316967487335,
0.12448350340127945,
0.042742326855659485,
0.12686769664287567,
-0.23455043137073517,
-0.1080712303519249,
-0.026248563081026077,
0.18872769176959991,
-0.21010109782218933,
-0.12022240459918976,
0.5229052901268005,
-0.008196264505386353,
-0.02206149324774742,
0.26869064569473267,
-0.12943744659423828,
0.09056107699871063,
-0.9172282218933105,
0.22842833399772644,
-0.1415834128856659,
0.013081103563308716,
-0.1373816728591919,
0.09406077116727829,
-0.4923454821109772,
0.04726237803697586,
0.15628878772258759,
-0.4805275797843933,
0.14942321181297302,
-0.0902925655245781,
0.04869689792394638,
-0.22704334557056427,
0.4418410360813141,
0.3467172086238861,
0.3968276381492615,
-0.0014267414808273315,
-0.16028308868408203,
-0.28638750314712524,
-0.11421287804841995,
0.16624726355075836,
-0.010550983250141144,
0.02622675709426403,
0.33248841762542725,
-0.02631857991218567,
0.09761428833007812,
-0.24438117444515228,
-0.5556640028953552,
-0.43092653155326843,
0.23823361098766327,
-0.17232100665569305,
-0.18357710540294647,
-0.33014512062072754,
0.2728572487831116,
0.08617579191923141,
0.06682728976011276,
0.1457107812166214,
-0.33831340074539185,
-0.0964507907629013,
-0.0013656485825777054,
0.28985533118247986,
-0.08880657702684402,
-0.283011257648468,
0.12891510128974915,
0.1943981945514679,
0.022676892578601837,
-0.05490443855524063,
0.1512880176305771,
-0.36076244711875916,
-0.3699644207954407,
-0.008843092247843742,
0.24263995885849,
-0.010173488408327103,
0.24837303161621094,
-0.20000728964805603,
-0.2119709998369217,
-0.0647168904542923,
0.010786101222038269,
0.18080376088619232,
-0.11114674806594849,
-0.081697978079319,
-0.005394374020397663,
-0.03154788538813591,
-0.06517437100410461,
0.05533560737967491,
0.6036368012428284,
-0.02092929184436798,
0.21413743495941162,
-0.04752032086253166,
-0.18005254864692688,
0.41600725054740906,
-0.47847139835357666,
-0.040721792727708817,
-0.03851722180843353,
0.09723611176013947,
0.3208361566066742,
-0.47035327553749084,
-0.4702591896057129,
0.12630560994148254,
0.391402006149292,
0.07029177248477936,
-0.15300941467285156,
0.1964988261461258,
0.2747024595737457,
-0.059407807886600494,
-0.2626430094242096,
0.3028579354286194,
0.16394123435020447,
0.032369568943977356,
0.15233974158763885,
-0.23884691298007965
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | could you tell me please if datasets also has __getitem__ any idea on how
to integrate it with Seq2SeqDataset is appreciated thanks
On Mon, Nov 9, 2020 at 10:22 AM Rabeeh Karimi Mahabadi <rabeeh@google.com>
wrote:
> Hi Huggingface/Datasets team,
> I want to use the datasets inside Seq2SeqDataset here
> https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
> and there I need to return back each line from the datasets and I am not
> sure how to access each line and implement this?
> It seems it also has get_item attribute? so I was not sure if this is
> iterative dataset? or if this is non-iterable datasets?
> thanks.
>
>
>
> On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <notifications@github.com>
> wrote:
>
>> Hello !
>> Could you give more details ?
>>
>> If you mean iter through one dataset then yes, Dataset object does
>> implement the __iter__ method so you can use
>>
>> for example in dataset:
>> # do something
>>
>> If you want to iter through several datasets you can first concatenate
>> them
>>
>> from datasets import concatenate_datasets
>> new_dataset = concatenate_datasets([dataset1, dataset2])
>>
>> Let me know if this helps !
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
>> .
>>
>
| Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 236 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
could you tell me please if datasets also has __getitem__ any idea on how
to integrate it with Seq2SeqDataset is appreciated thanks
On Mon, Nov 9, 2020 at 10:22 AM Rabeeh Karimi Mahabadi <rabeeh@google.com>
wrote:
> Hi Huggingface/Datasets team,
> I want to use the datasets inside Seq2SeqDataset here
> https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
> and there I need to return back each line from the datasets and I am not
> sure how to access each line and implement this?
> It seems it also has get_item attribute? so I was not sure if this is
> iterative dataset? or if this is non-iterable datasets?
> thanks.
>
>
>
> On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <notifications@github.com>
> wrote:
>
>> Hello !
>> Could you give more details ?
>>
>> If you mean iter through one dataset then yes, Dataset object does
>> implement the __iter__ method so you can use
>>
>> for example in dataset:
>> # do something
>>
>> If you want to iter through several datasets you can first concatenate
>> them
>>
>> from datasets import concatenate_datasets
>> new_dataset = concatenate_datasets([dataset1, dataset2])
>>
>> Let me know if this helps !
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
>> .
>>
>
| [
-0.1425880789756775,
-0.3471773564815521,
-0.1183144599199295,
0.3518550992012024,
0.08034637570381165,
-0.0877770259976387,
0.22364541888237,
0.23742973804473877,
0.03323592618107796,
-0.12688353657722473,
-0.038506776094436646,
0.050097208470106125,
-0.2673038840293884,
0.3630911707878113,
0.07597539573907852,
-0.03308497369289398,
-0.08173469454050064,
-0.011020191013813019,
-0.7120333909988403,
-0.05418499559164047,
0.06370025873184204,
0.21445581316947937,
-0.27819064259529114,
-0.07417061924934387,
-0.004789093509316444,
-0.2388821542263031,
-0.3776049017906189,
-0.02511364221572876,
-0.20680491626262665,
-0.36443158984184265,
0.22853635251522064,
0.25932154059410095,
0.29906168580055237,
0.500732958316803,
-0.0001083228926290758,
-0.18448132276535034,
0.02410358190536499,
-0.06989136338233948,
-0.3096702992916107,
-0.22508935630321503,
-0.28246334195137024,
-0.2135336846113205,
0.06899130344390869,
-0.3665151596069336,
-0.054031483829021454,
0.027377616614103317,
0.15812383592128754,
-0.3098551630973816,
0.5706965327262878,
0.15498283505439758,
0.2261648178100586,
0.13554540276527405,
0.09204398095607758,
-0.05052722990512848,
-0.07467418164014816,
0.13219086825847626,
0.060759276151657104,
0.1077914834022522,
0.2328062653541565,
0.15018896758556366,
0.021425761282444,
0.14858627319335938,
0.09689006209373474,
-0.1199045330286026,
0.262096643447876,
-0.05198799818754196,
-0.11569786816835403,
-0.34409472346305847,
-0.020975977182388306,
0.15129995346069336,
0.7606998682022095,
-0.3858965337276459,
-0.566101610660553,
-0.30095574259757996,
-0.04006187617778778,
-0.4118645191192627,
-0.05461037904024124,
0.14724864065647125,
0.08200554549694061,
0.15404215455055237,
-0.21217234432697296,
-0.16372953355312347,
-0.2180507928133011,
-0.13876965641975403,
-0.04147876799106598,
-0.09697318077087402,
-0.3794800341129303,
-0.021191827952861786,
0.049067556858062744,
-0.22376160323619843,
-0.153407484292984,
0.1326577216386795,
0.1087394505739212,
0.36035940051078796,
-0.6488003730773926,
-0.2567499279975891,
0.05327613651752472,
0.3321327567100525,
0.5177852511405945,
0.5682513117790222,
0.0786653384566307,
-0.021927520632743835,
-0.04386074095964432,
0.1380574256181717,
0.3656168580055237,
0.1424453854560852,
0.10610257089138031,
-0.06191873550415039,
-0.05289211869239807,
0.03911340609192848,
0.07967568933963776,
-0.12600046396255493,
-0.1406911313533783,
-0.22160063683986664,
-0.07711929082870483,
-0.1565043032169342,
0.08320672065019608,
-0.17706899344921112,
-0.10232533514499664,
-0.1652235984802246,
-0.16189603507518768,
-0.21602798998355865,
0.1148148700594902,
0.14968498051166534,
-0.10816501080989838,
-0.037021659314632416,
-0.2981792688369751,
0.08415918052196503,
-0.02310076355934143,
0.12773628532886505,
-0.1204519122838974,
0.3016717731952667,
-0.2454104721546173,
0.28560125827789307,
-0.13888214528560638,
-0.5510952472686768,
0.16535969078540802,
0.0034498805180191994,
-0.05008222907781601,
-0.09725002199411392,
-0.03867732733488083,
-0.20352786779403687,
0.13371212780475616,
0.010753244161605835,
-0.097194604575634,
0.17575640976428986,
-0.15115685760974884,
-0.04823639988899231,
-0.4053090810775757,
-0.35469871759414673,
-0.2803289294242859,
-0.17455418407917023,
0.04283343255519867,
0.14551734924316406,
-0.2266249656677246,
-0.05437854677438736,
0.04254546016454697,
0.34366080164909363,
0.017928004264831543,
-0.10247654467821121,
0.12682954967021942,
0.04946336895227432,
-0.31425055861473083,
-0.05439562350511551,
0.14243389666080475,
0.5140595436096191,
-0.4476078152656555,
-0.2488468885421753,
0.19390077888965607,
-0.01895047351717949,
0.02482910454273224,
0.4461153447628021,
-0.11794918775558472,
0.22488391399383545,
-0.27957525849342346,
0.14106489717960358,
0.36733561754226685,
-0.10723090171813965,
-0.2978147864341736,
0.3310321867465973,
-0.12257847189903259,
0.12774555385112762,
0.21516934037208557,
-0.11889525502920151,
0.1472868025302887,
0.02098296955227852,
-0.11251260340213776,
0.027641311287879944,
0.00955522432923317,
-0.2397179752588272,
-0.12441612780094147,
-0.05349484831094742,
0.013372855260968208,
-0.031795285642147064,
-0.015501532703638077,
0.22561341524124146,
0.12911584973335266,
0.16527137160301208,
0.43206679821014404,
-0.17591622471809387,
0.217091903090477,
0.2566935122013092,
0.22209079563617706,
0.049851998686790466,
0.08869293332099915,
-0.292487770318985,
-0.2623613178730011,
0.19293296337127686,
0.12362922728061676,
-0.014333665370941162,
-0.07342225313186646,
-0.017404908314347267,
-0.23493742942810059,
0.007940823212265968,
-0.2194012850522995,
-0.3230404555797577,
0.17344535887241364,
0.22210460901260376,
0.398891419172287,
-0.05379217118024826,
-0.46868205070495605,
0.5173090100288391,
0.045780301094055176,
0.1597616821527481,
-0.8009339570999146,
0.16254259645938873,
0.24338527023792267,
-0.02656513825058937,
0.07284959405660629,
0.19858276844024658,
-0.09027277678251266,
-0.36398252844810486,
0.3573990762233734,
0.28230947256088257,
-0.17996138334274292,
0.14754387736320496,
0.19065797328948975,
0.4468783736228943,
0.2049320936203003,
0.025962945073843002,
-0.019239140674471855,
-0.3458396792411804,
0.2969488203525543,
-0.04367503151297569,
0.04612191021442413,
0.4764792323112488,
-0.1672108918428421,
0.32033368945121765,
0.25743454694747925,
-0.04819244146347046,
0.0035501662641763687,
-0.040269844233989716,
-0.5831553936004639,
0.1241912692785263,
0.11089830100536346,
0.01700693927705288,
0.4671846628189087,
-0.10747101902961731,
-0.28278809785842896,
-0.07363355904817581,
0.35930365324020386,
-0.10441124439239502,
-0.03667537122964859,
0.15070220828056335,
-0.18475261330604553,
-0.10700331628322601,
0.10777641832828522,
-0.07392822206020355,
0.24777936935424805,
0.006855668034404516,
0.24358680844306946,
0.040648482739925385,
0.17173203825950623,
0.021413803100585938,
0.062102191150188446,
0.1553303599357605,
0.19259575009346008,
-0.036520808935165405,
0.07504500448703766,
0.12747147679328918,
-0.15545274317264557,
-0.35187697410583496,
-0.11055265367031097,
0.05704601854085922,
-0.17784127593040466,
0.38654613494873047,
-0.23910793662071228,
-0.2566683292388916,
-0.3890228867530823,
0.10475309938192368,
-0.05652559921145439,
0.003964575007557869,
-0.22414787113666534,
-0.07421146333217621,
0.3099527359008789,
0.05569993704557419,
0.11411893367767334,
0.4600074291229248,
0.2347169667482376,
0.08805609494447708,
-0.1795244812965393,
-0.06208435073494911,
0.15436908602714539,
0.12188632786273956,
0.18599866330623627,
-0.13438203930854797,
0.5079182386398315,
-0.005306599661707878,
-0.0006819730624556541,
-0.3153592646121979,
-0.2890061140060425,
0.30992233753204346,
-0.11567753553390503,
0.23226210474967957,
0.18177901208400726,
-0.060330942273139954,
-0.06148387864232063,
-0.1326134353876114,
-0.046731553971767426,
-0.1158418282866478,
-0.09542302787303925,
-0.04021305590867996,
-0.044616006314754486,
0.21408711373806,
0.10735046863555908,
-0.23053652048110962,
-0.2717319130897522,
-0.21170027554035187,
0.7207006812095642,
0.1371040940284729,
0.22463876008987427,
0.19080372154712677,
-0.1179901659488678,
0.33468613028526306,
-0.19433537125587463,
0.32526955008506775,
-0.06252022832632065,
-0.47877728939056396,
0.3021918535232544,
-0.3026356101036072,
-0.1847880631685257,
-0.10383513569831848,
-0.12538018822669983,
0.62474524974823,
0.041987936943769455,
-0.3094746172428131,
-0.2259993851184845,
-0.054165974259376526,
0.05369235947728157,
0.10947238653898239,
0.24077606201171875,
0.3135148286819458,
-0.16269606351852417,
-0.03293010964989662,
0.037129051983356476,
0.01012875884771347,
0.04262443631887436,
-0.04738391935825348,
0.08935155719518661,
0.34454089403152466,
0.54817134141922,
0.21903282403945923,
0.5223554372787476,
0.5356538891792297,
0.013891566544771194,
0.14005327224731445,
-0.09835153073072433,
-0.09804251790046692,
-0.027752622961997986,
-0.4531846046447754,
0.1973811537027359,
-0.34638190269470215,
-0.25295019149780273,
0.15704144537448883,
-0.09511827677488327,
-0.06565017998218536,
-0.21821558475494385,
0.19415313005447388,
-0.23583662509918213,
-0.19595834612846375,
-0.10572206974029541,
0.012224167585372925,
0.22265830636024475,
-0.2190306931734085,
-0.10039936006069183,
0.05212438479065895,
0.13727456331253052,
0.004771164618432522,
0.2026715874671936,
0.1884460151195526,
0.056349463760852814,
-0.5617636442184448,
-0.005713099613785744,
-0.48966193199157715,
0.10851792991161346,
-0.03633316606283188,
0.007099091075360775,
0.23396877944469452,
-0.2241961658000946,
0.12686000764369965,
-0.21348322927951813,
0.5830466747283936,
0.3160966634750366,
-0.45662862062454224,
-0.020244359970092773,
-0.5475601553916931,
-0.047463469207286835,
0.28057193756103516,
-0.295329213142395,
0.2513093054294586,
0.3468484580516815,
-0.02951468527317047,
-0.4579988718032837,
-0.3302730917930603,
0.1355597972869873,
0.020940691232681274,
-0.046124182641506195,
-0.13471615314483643,
0.11148661375045776,
-0.13270631432533264,
-0.23984484374523163,
0.03224877268075943,
-0.001758374273777008,
0.18184274435043335,
-0.07063651829957962,
0.03699750080704689,
-0.23859329521656036,
-0.1215209811925888,
0.24132613837718964,
-0.05314517393708229,
0.10677193850278854,
-0.02176450379192829,
0.2209535837173462,
0.3449825644493103,
0.18267637491226196,
0.19491347670555115,
0.5341262817382812,
-0.04011688008904457,
-0.06373147666454315,
0.24196264147758484,
0.10996182262897491,
0.3433796167373657,
0.2787805199623108,
-0.11879181116819382,
0.15428990125656128,
-0.1969992071390152,
0.13716644048690796,
-0.49497538805007935,
-0.06500899791717529,
0.3207849860191345,
0.021466277539730072,
-0.3879271149635315,
-0.5668643116950989,
0.3979650139808655,
0.09453541040420532,
-0.02979246899485588,
-0.11148212850093842,
0.17853552103042603,
-0.18912814557552338,
-0.11387535184621811,
-0.008327364921569824,
0.8772635459899902,
0.03192749619483948,
0.13293983042240143,
0.23817989230155945,
0.28413790464401245,
0.623485267162323,
-0.02800722047686577,
0.017828086391091347,
-0.37469202280044556,
-0.2490861564874649,
-0.11633407324552536,
-0.12356044352054596,
0.2895084619522095,
0.2170463502407074,
-0.3202974796295166,
0.5073504447937012,
0.24757905304431915,
-0.12270747125148773,
-0.16061478853225708,
0.21311262249946594,
-0.2810666263103485,
-0.23577889800071716,
-0.5983778238296509,
0.14584136009216309,
0.16003745794296265,
0.2836301028728485,
-0.17968812584877014,
-0.13908664882183075,
0.407688170671463,
-0.001784149557352066,
-0.1486612856388092,
-0.2349318265914917,
-0.24777837097644806,
-0.10419896245002747,
0.2241986244916916,
-0.4196968078613281,
0.25444942712783813,
0.2264542579650879,
0.27702605724334717,
0.03339602053165436,
-0.2222713828086853,
-0.15691375732421875,
-0.18303903937339783,
0.002903418615460396,
-0.005330689251422882,
0.05569172650575638,
0.6071690917015076,
0.05039375275373459,
0.15158331394195557,
0.25823089480400085,
0.08908172696828842,
0.05716576427221298,
-0.0774366557598114,
-0.01981460303068161,
-0.10269911587238312,
-0.3565378785133362,
0.006769883446395397,
0.3971954584121704,
0.009059499949216843,
-0.07015921175479889,
0.13328216969966888,
0.35461193323135376,
-0.14639870822429657,
0.2365441620349884,
0.04349217191338539,
-0.14037415385246277,
-0.1912480890750885,
0.4071803689002991,
-0.1181037500500679,
-0.1983419805765152,
0.4554194509983063,
0.16617615520954132,
-0.22873561084270477,
-0.20777049660682678,
0.11402156203985214,
0.3227916359901428,
-0.4184870421886444,
-0.06398237496614456,
-0.020124010741710663,
0.29537999629974365,
0.0926588624715805,
0.20440451800823212,
0.15478333830833435,
-0.16196396946907043,
-0.06414484232664108,
-0.2246101051568985,
-0.10524480789899826,
0.3154667019844055,
0.22701965272426605,
0.2550220489501953,
-0.024013442918658257,
-0.1522892415523529,
0.03297889232635498,
0.26159629225730896,
-0.35846075415611267,
-0.010518265888094902,
-0.17339956760406494,
0.06650303304195404,
0.3252337872982025,
-0.09544210880994797,
0.1232604905962944,
0.27106839418411255,
0.1061672568321228,
0.2823156714439392,
-0.32064634561538696,
-0.233921617269516,
-0.1526695191860199,
0.08691231906414032,
0.016980284824967384,
-0.06334548443555832,
0.10549211502075195,
0.055790774524211884,
-0.13186894357204437,
-0.21053215861320496,
0.30065324902534485,
0.009110167622566223,
0.29768937826156616,
0.23149332404136658,
0.39647263288497925,
-0.11853056401014328,
-0.15763001143932343,
0.06005579233169556,
0.1846354454755783,
-0.04666639864444733,
0.15685079991817474,
0.2884027063846588,
-0.3015138804912567,
-0.2241450995206833,
-0.05600482597947121,
0.3923472464084625,
0.40733784437179565,
-0.2339116632938385,
0.3088849186897278,
-0.2933991551399231,
-0.010380685329437256,
0.1303735226392746,
0.5188378095626831,
0.5250545740127563,
-0.12416860461235046,
0.05553746223449707,
0.28792253136634827,
0.2092597931623459,
-0.07275615632534027,
0.11127608269453049,
-0.24979394674301147,
-0.09849531948566437,
0.1296977549791336,
0.3832818567752838,
-0.08506332337856293,
0.166986882686615,
0.21327722072601318,
-0.11507586389780045,
0.19876128435134888,
-0.21426844596862793,
0.01888580620288849,
0.07977821677923203,
0.030060280114412308,
-0.07991442084312439,
0.37380021810531616,
0.4228506088256836,
0.2139606475830078,
0.26338624954223633,
-0.27599936723709106,
0.39732444286346436,
-0.22645524144172668,
0.24187099933624268,
0.17152392864227295,
-0.18573829531669617,
-0.1389620304107666,
0.28136149048805237,
0.15320076048374176,
-0.004225008189678192,
-0.24049577116966248,
0.5388869047164917,
0.1678977757692337,
-0.05435178801417351,
0.009778713807463646,
0.4228822588920593,
0.050314079970121384,
-0.3581233620643616,
-0.07114064693450928,
-0.2430216372013092,
-0.22503715753555298,
-0.12382033467292786,
-0.2629264295101166,
-0.23531360924243927,
0.2613814175128937,
-0.056610822677612305,
0.36446213722229004,
-0.5372340679168701,
0.0038964655250310898,
-0.02199826017022133,
0.11325973272323608,
-0.33501768112182617,
0.17127032577991486,
-0.051197558641433716,
0.08642973005771637,
-0.09589016437530518,
0.3389080762863159,
0.25420811772346497,
0.11174692213535309,
0.007334988564252853,
0.03471428528428078,
-0.23525504767894745,
-0.10129605978727341,
-0.006268353201448917,
0.1274978518486023,
-0.2548772096633911,
-0.1391126960515976,
0.5069291591644287,
0.056419774889945984,
-0.08765041083097458,
0.25284743309020996,
-0.07872381806373596,
0.009690171107649803,
-0.9196890592575073,
0.21161893010139465,
-0.08651753515005112,
0.06495603173971176,
-0.11833865940570831,
0.09581901878118515,
-0.5051102638244629,
0.08177243173122406,
0.16017015278339386,
-0.4940122067928314,
0.09813771396875381,
-0.08705966174602509,
0.10442768037319183,
-0.19232872128486633,
0.48987147212028503,
0.3311973214149475,
0.3033387362957001,
-0.03293135017156601,
-0.15358710289001465,
-0.3243841230869293,
-0.14240142703056335,
0.17046687006950378,
0.034686312079429626,
-0.04490919038653374,
0.37713882327079773,
0.05648428946733475,
0.16023609042167664,
-0.2984936237335205,
-0.5570547580718994,
-0.30351391434669495,
0.24983802437782288,
-0.25316280126571655,
-0.12067583203315735,
-0.37168318033218384,
0.24285800755023956,
0.1048692911863327,
0.07821283489465714,
0.14687876403331757,
-0.3805568218231201,
-0.028953086584806442,
-0.01923222467303276,
0.2883635461330414,
-0.06512428820133209,
-0.32018372416496277,
0.17729410529136658,
0.1361568123102188,
0.005562245845794678,
-0.1212320625782013,
0.0008987095206975937,
-0.3256332278251648,
-0.3225671648979187,
-0.1099894568324089,
0.3711661398410797,
-0.04313464090228081,
0.2471925914287567,
-0.12252698838710785,
-0.22829477488994598,
-0.02025829255580902,
0.14382165670394897,
0.13439442217350006,
-0.1148286834359169,
-0.05915031582117081,
-0.015218425542116165,
0.06246483325958252,
-0.02281956933438778,
-0.020400937646627426,
0.5253514647483826,
-0.02255973219871521,
0.23984022438526154,
-0.1348942071199417,
-0.2718341648578644,
0.39100196957588196,
-0.4392783045768738,
0.039168793708086014,
-0.12116038799285889,
0.10236446559429169,
0.254471093416214,
-0.4025707542896271,
-0.4000900089740753,
0.11321716755628586,
0.43127357959747314,
0.04535927623510361,
-0.14513692259788513,
0.2790006697177887,
0.28424057364463806,
-0.0681634172797203,
-0.28414908051490784,
0.3456372320652008,
0.1041298508644104,
-0.062475427985191345,
0.18749657273292542,
-0.2553834319114685
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | `datasets.Dataset` objects implement indeed `__getitem__`. It returns a dictionary with one field per column.
We've not added the integration of the datasets library for the seq2seq utilities yet. The current seq2seq utilities are based on text files.
However as soon as you have a `datasets.Dataset` with columns "tgt_texts" (str), "src_texts" (str), and "id" (int) you should be able to implement your own Seq2SeqDataset class that wraps your dataset object. Does that make sense to you ? | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 76 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
`datasets.Dataset` objects implement indeed `__getitem__`. It returns a dictionary with one field per column.
We've not added the integration of the datasets library for the seq2seq utilities yet. The current seq2seq utilities are based on text files.
However as soon as you have a `datasets.Dataset` with columns "tgt_texts" (str), "src_texts" (str), and "id" (int) you should be able to implement your own Seq2SeqDataset class that wraps your dataset object. Does that make sense to you ? | [
-0.10601609945297241,
-0.06535813212394714,
-0.07446178048849106,
0.27289581298828125,
0.02120343968272209,
-0.00954362004995346,
0.2350490689277649,
0.2607482671737671,
0.017850134521722794,
-0.18112243711948395,
0.20077729225158691,
0.21176402270793915,
-0.38756561279296875,
0.19634753465652466,
0.09090519696474075,
0.00991491973400116,
-0.12219838052988052,
0.017719082534313202,
-0.658469557762146,
-0.13311715424060822,
-0.012551773339509964,
0.1090284064412117,
-0.37339282035827637,
-0.012581050395965576,
-0.057337455451488495,
-0.2997433841228485,
-0.35477620363235474,
-0.0941217914223671,
-0.3227386176586151,
-0.3790434002876282,
0.16800907254219055,
0.32446202635765076,
0.4530280530452728,
0.3990267813205719,
-0.00010454701259732246,
-0.38364624977111816,
0.02715335600078106,
-0.09922733902931213,
-0.2510544955730438,
-0.17701883614063263,
-0.2945176959037781,
-0.2617831230163574,
0.1364847719669342,
-0.4748810827732086,
-0.08046293258666992,
-0.058418694883584976,
0.0909326821565628,
-0.37033554911613464,
0.27633047103881836,
0.09610127657651901,
0.2760344445705414,
-0.42484450340270996,
-0.03442348912358284,
-0.0648907721042633,
0.022560201585292816,
0.04966457188129425,
-0.07036896049976349,
-0.04184168949723244,
0.3111680746078491,
0.3059270679950714,
-0.01559244841337204,
-0.031184999272227287,
0.12187708914279938,
-0.19812528789043427,
0.34052708745002747,
-0.07729397714138031,
-0.08791481703519821,
-0.33617502450942993,
0.002359949052333832,
0.08403734862804413,
1.1303712129592896,
-0.22628158330917358,
-0.3061944246292114,
0.02343728393316269,
-0.015231317840516567,
-0.4028497040271759,
-0.1640855073928833,
0.2946574091911316,
0.1456298679113388,
0.1291963756084442,
-0.20350593328475952,
-0.396923691034317,
-0.2363090068101883,
-0.10071341693401337,
-0.12622293829917908,
-0.048916295170784,
-0.16817571222782135,
0.08407600224018097,
-0.02034783735871315,
-0.2884941101074219,
0.1532580554485321,
0.16953226923942566,
0.015281600877642632,
0.22501535713672638,
-0.6152790188789368,
-0.31896790862083435,
0.03596664220094681,
0.3883177638053894,
0.41298383474349976,
0.3702382445335388,
0.06248753145337105,
0.03175196051597595,
0.00294357817620039,
0.20475292205810547,
0.43328917026519775,
0.011759603396058083,
0.0783098042011261,
0.047911085188388824,
0.04882073774933815,
-0.1845351606607437,
-0.20502643287181854,
-0.08070353418588638,
-0.2166115939617157,
-0.15979008376598358,
0.10615077614784241,
-0.16454952955245972,
-0.1567523032426834,
-0.1790120005607605,
-0.0017528105527162552,
0.0000935206189751625,
-0.2421872615814209,
-0.13766759634017944,
0.1298845112323761,
0.10936258733272552,
-0.09025043249130249,
-0.027475249022245407,
-0.12732645869255066,
0.14985445141792297,
0.11428060382604599,
-0.02078590914607048,
-0.062212925404310226,
0.4749680459499359,
-0.29800310730934143,
0.08472546935081482,
-0.06866675615310669,
-0.3925188481807709,
0.07345548272132874,
0.05308952182531357,
-0.17717674374580383,
-0.07551250606775284,
0.08491522073745728,
-0.23222097754478455,
0.17440330982208252,
-0.10724493861198425,
-0.168242409825325,
0.1184782162308693,
-0.19148537516593933,
-0.1652151197195053,
-0.41689714789390564,
-0.15302124619483948,
-0.33785390853881836,
-0.11868464946746826,
-0.12203766405582428,
0.15120543539524078,
-0.17209333181381226,
-0.19005568325519562,
0.19951535761356354,
0.4862644672393799,
-0.018718257546424866,
-0.17018087208271027,
0.04553826153278351,
-0.1141483336687088,
-0.2942236065864563,
-0.12011933326721191,
-0.027305111289024353,
0.4135945439338684,
-0.7152239680290222,
0.11270271241664886,
0.0177286509424448,
0.19900445640087128,
0.04400518536567688,
0.3204880654811859,
-0.14332649111747742,
0.28754013776779175,
-0.17358186841011047,
0.08322674036026001,
0.4689073860645294,
0.026181932538747787,
-0.22161740064620972,
0.199501171708107,
-0.10154035687446594,
-0.16794149577617645,
0.17961148917675018,
0.08204931765794754,
0.27481937408447266,
-0.058665353804826736,
-0.11352509260177612,
0.010004237294197083,
0.02618943154811859,
-0.21521680057048798,
-0.12326875329017639,
-0.03967944532632828,
0.1559775471687317,
0.014444082975387573,
0.0755378007888794,
0.2684825360774994,
0.191897451877594,
0.2799931466579437,
0.207963764667511,
-0.15325598418712616,
0.24483822286128998,
0.07872074842453003,
0.3107311427593231,
-0.00928054004907608,
0.10979586094617844,
-0.18227627873420715,
-0.09916777163743973,
0.19893521070480347,
0.3425956666469574,
-0.03362209349870682,
0.0973452553153038,
0.00933389738202095,
-0.12030009180307388,
-0.03387923538684845,
-0.13235053420066833,
-0.18539507687091827,
0.19363555312156677,
-0.019462063908576965,
0.3257060945034027,
-0.1215665340423584,
-0.3612462878227234,
0.2648515999317169,
-0.027811042964458466,
-0.07165472954511642,
-0.635612964630127,
0.11847792565822601,
0.2372145801782608,
-0.06313885748386383,
0.11881496012210846,
0.1731710433959961,
-0.16993972659111023,
-0.27273258566856384,
0.300148069858551,
0.3359163701534271,
-0.03599538654088974,
-0.07349024713039398,
0.2832365334033966,
0.5574184656143188,
0.11778198927640915,
0.0026028864085674286,
0.2196706086397171,
-0.41447004675865173,
0.29169371724128723,
0.04192014038562775,
-0.021846957504749298,
0.4437407851219177,
-0.178473562002182,
0.1090889573097229,
0.13699029386043549,
-0.026168862357735634,
0.07415793091058731,
0.016071777790784836,
-0.5682401657104492,
0.08494220674037933,
-0.25836554169654846,
0.14111104607582092,
0.2531069815158844,
-0.09213292598724365,
-0.38934990763664246,
-0.11870075017213821,
0.4135909080505371,
0.02478470280766487,
0.07983925193548203,
0.17740768194198608,
-0.111607126891613,
-0.10650425404310226,
-0.029609723016619682,
-0.007532525807619095,
0.3253001570701599,
-0.03908955678343773,
0.18857741355895996,
-0.019513336941599846,
0.0985068678855896,
0.07135286927223206,
0.1269073635339737,
0.07375518232584,
0.17535635828971863,
-0.1058320626616478,
0.09456630796194077,
0.0835995227098465,
-0.1805025339126587,
-0.2936789393424988,
0.05059629678726196,
0.21808144450187683,
-0.055790022015571594,
0.30495238304138184,
-0.4185897409915924,
-0.11848326772451401,
-0.37560951709747314,
0.21547116339206696,
0.2625839412212372,
0.08788393437862396,
-0.042827241122722626,
-0.1942446231842041,
0.40513160824775696,
0.012076657265424728,
-0.07706746459007263,
0.558769941329956,
0.23482589423656464,
0.06406740099191666,
-0.06636492908000946,
-0.11189668625593185,
0.038416117429733276,
0.1578056365251541,
0.1735127717256546,
-0.08936052769422531,
0.507777988910675,
0.048774056136608124,
0.24023301899433136,
-0.4060036838054657,
-0.3096456527709961,
0.3122245669364929,
-0.011064033955335617,
0.24632520973682404,
0.2539362907409668,
-0.1717473715543747,
-0.056187503039836884,
-0.17731663584709167,
-0.03352797031402588,
-0.2286296933889389,
0.08619815111160278,
0.011395398527383804,
-0.0456724688410759,
0.07880454510450363,
0.09785500168800354,
-0.38360631465911865,
-0.16609694063663483,
-0.12796242535114288,
0.42350834608078003,
0.21919380128383636,
0.30200180411338806,
-0.047600921243429184,
-0.05798851326107979,
0.28344494104385376,
-0.031226733699440956,
0.19590042531490326,
-0.12841178476810455,
-0.4388583302497864,
0.3763957917690277,
-0.2919609546661377,
-0.19781573116779327,
0.06049352511763573,
-0.10550902783870697,
0.6279435157775879,
0.06797632575035095,
-0.2470659762620926,
0.10480009019374847,
0.17673572897911072,
0.13710978627204895,
0.2523691654205322,
0.1300072968006134,
0.2665620446205139,
-0.1598164588212967,
-0.04307979345321655,
0.03758905082941055,
-0.10771454870700836,
0.22469469904899597,
0.2038494348526001,
0.22651049494743347,
0.3720063269138336,
0.6611022353172302,
0.036840636283159256,
0.4294278025627136,
0.30310094356536865,
-0.20277471840381622,
0.22965893149375916,
-0.053575947880744934,
-0.237057164311409,
-0.048728086054325104,
-0.20131276547908783,
0.20201881229877472,
-0.35565558075904846,
-0.4386445879936218,
0.28256645798683167,
-0.11134133487939835,
-0.39144906401634216,
-0.23498550057411194,
0.4713565409183502,
-0.3060867488384247,
-0.06371283531188965,
-0.08919798582792282,
-0.29128098487854004,
0.10656057298183441,
-0.1391034871339798,
-0.11376143991947174,
0.09091344475746155,
0.05347035825252533,
-0.04485369473695755,
0.09334051609039307,
0.1892963945865631,
0.012202455662190914,
-0.5341048836708069,
-0.15907888114452362,
-0.2637723684310913,
0.03190786391496658,
-0.31494826078414917,
0.12588967382907867,
0.30088427662849426,
-0.213064044713974,
0.2733725607395172,
-0.21548545360565186,
0.35346007347106934,
0.03851599618792534,
-0.5208888053894043,
0.022639170289039612,
-0.39924365282058716,
0.04779307544231415,
0.014536458998918533,
-0.2505374848842621,
0.29938915371894836,
0.3013770878314972,
-0.1759861409664154,
-0.41635018587112427,
-0.25571855902671814,
0.13833414018154144,
-0.09872078150510788,
-0.1172994077205658,
-0.23265598714351654,
0.18054455518722534,
-0.08965682983398438,
-0.08273893594741821,
-0.014718160033226013,
-0.10374649614095688,
0.03144069015979767,
-0.1423359513282776,
-0.1396666020154953,
-0.22433306276798248,
-0.08719736337661743,
0.1617322415113449,
-0.03420078754425049,
0.061901215463876724,
0.040625832974910736,
0.293537437915802,
0.2934238314628601,
0.297014445066452,
0.1757422238588333,
0.3449499011039734,
0.014671476557850838,
0.3328721523284912,
0.5411562323570251,
-0.08699151873588562,
0.40873247385025024,
0.09271106868982315,
-0.13792812824249268,
0.1165257915854454,
-0.47870174050331116,
-0.05226998031139374,
-0.437134712934494,
-0.274616539478302,
0.4635876715183258,
-0.11997389048337936,
-0.3364783823490143,
-0.6614847779273987,
0.40979233384132385,
0.07749472558498383,
-0.10661296546459198,
-0.1306641548871994,
-0.08999761939048767,
-0.1915471851825714,
-0.026228072121739388,
0.3491607904434204,
0.7590565085411072,
-0.13074730336666107,
-0.04480202868580818,
0.04509647935628891,
0.29707229137420654,
0.6364306211471558,
-0.2961924076080322,
0.02319219708442688,
-0.6081210374832153,
-0.16432328522205353,
-0.1351260095834732,
-0.09632446616888046,
0.26755401492118835,
0.3350672125816345,
-0.47365838289260864,
0.42878803610801697,
0.1272197961807251,
-0.15283651649951935,
-0.10922427475452423,
0.3182109296321869,
-0.10119693726301193,
-0.11165353655815125,
-0.24659791588783264,
0.17435532808303833,
0.08118966966867447,
0.0533638522028923,
-0.2265838086605072,
-0.023798853158950806,
0.300613135099411,
0.14771391451358795,
-0.14135625958442688,
-0.2302381992340088,
0.11327601969242096,
-0.013440053910017014,
0.16371259093284607,
-0.3163621127605438,
0.4583556354045868,
0.29646798968315125,
0.10530921816825867,
0.11516278982162476,
-0.24909505248069763,
-0.07751750946044922,
0.016733326017856598,
0.09953076392412186,
0.19778147339820862,
0.09733710438013077,
0.554822564125061,
0.0285494402050972,
0.12496403604745865,
0.3597329258918762,
0.001149626448750496,
0.004922062158584595,
-0.16267435252666473,
-0.017896130681037903,
0.14859384298324585,
-0.302582710981369,
-0.13483227789402008,
0.35319527983665466,
0.04560892656445503,
-0.04489808529615402,
0.17353059351444244,
0.32857203483581543,
-0.0790313109755516,
0.47232165932655334,
0.05736982077360153,
-0.1232927218079567,
-0.14565791189670563,
0.2969469428062439,
0.05543510615825653,
-0.03281279653310776,
0.32973477244377136,
0.08981509506702423,
-0.1387702226638794,
-0.20939946174621582,
0.21700358390808105,
0.21617676317691803,
-0.20254725217819214,
-0.17394505441188812,
-0.09044278413057327,
0.21531711518764496,
0.37130504846572876,
0.12877768278121948,
0.06770092993974686,
-0.14506128430366516,
-0.2804507613182068,
-0.17088435590267181,
-0.1562744677066803,
0.12912499904632568,
0.1656690090894699,
0.12167789041996002,
-0.1157601922750473,
-0.3182609975337982,
0.04464927315711975,
0.27728429436683655,
-0.37662309408187866,
0.024658137932419777,
-0.12772847712039948,
0.20633600652217865,
0.07930861413478851,
0.07118015736341476,
-0.2723809778690338,
0.31499946117401123,
0.07939466089010239,
0.1331266164779663,
-0.224443256855011,
-0.189485102891922,
-0.07070602476596832,
0.06896793097257614,
0.04984733462333679,
0.03680121898651123,
0.12048131972551346,
-0.1745670735836029,
-0.3809267282485962,
-0.06270479410886765,
0.12928743660449982,
-0.08883114904165268,
0.11951011419296265,
0.2746076285839081,
0.4228076636791229,
-0.308616578578949,
-0.17670370638370514,
-0.02471437305212021,
0.1111767366528511,
-0.018024392426013947,
0.17138539254665375,
0.3880264163017273,
-0.15271499752998352,
-0.3117511570453644,
-0.18229885399341583,
0.4856968820095062,
0.13042932748794556,
-0.19209659099578857,
0.5589896440505981,
-0.2203163355588913,
0.2540806233882904,
0.22540931403636932,
0.37428995966911316,
0.7063227295875549,
-0.1053045392036438,
-0.15006764233112335,
0.28660157322883606,
0.23897123336791992,
-0.05598893016576767,
0.010843144729733467,
-0.33349379897117615,
0.0441768504679203,
-0.011842630803585052,
0.3476697504520416,
0.05353725329041481,
0.031817346811294556,
-0.027301780879497528,
-0.22897258400917053,
0.13749195635318756,
-0.2728152275085449,
0.026736663654446602,
0.31641361117362976,
-0.027272697538137436,
-0.08460120856761932,
0.45059171319007874,
0.2930503785610199,
0.17732849717140198,
0.4294731616973877,
0.04424811527132988,
0.40792709589004517,
0.08126553893089294,
0.20504127442836761,
0.08391173183917999,
-0.15202175080776215,
-0.015287823975086212,
0.29977893829345703,
0.20013095438480377,
-0.06825011223554611,
-0.17552241683006287,
0.4081977307796478,
0.3399287164211273,
-0.002996581606566906,
-0.22763769328594208,
0.2862159013748169,
-0.04473075270652771,
-0.3045305907726288,
-0.2824455499649048,
-0.4127628207206726,
-0.24041847884655,
0.007038544863462448,
-0.43022364377975464,
-0.010657630860805511,
0.1558200716972351,
-0.03507469594478607,
0.378248929977417,
-0.43007799983024597,
0.2995268702507019,
-0.16360828280448914,
0.03057914227247238,
-0.35161927342414856,
0.2129736691713333,
-0.15838907659053802,
0.042732033878564835,
0.12240587174892426,
0.1994774490594864,
0.0034862421452999115,
0.42587152123451233,
-0.1050933450460434,
-0.1495065838098526,
-0.2400674670934677,
-0.12113123387098312,
0.05179336667060852,
0.20022347569465637,
-0.06452886760234833,
-0.24363921582698822,
0.5186989903450012,
0.03831885755062103,
-0.056418564170598984,
0.3666825294494629,
0.06175866350531578,
0.053837850689888,
-0.8294042348861694,
0.007472999393939972,
0.22308747470378876,
-0.030853230506181717,
0.09675242006778717,
0.08525265008211136,
-0.29678186774253845,
-0.08646611869335175,
0.14516180753707886,
-0.4347529113292694,
0.016929764300584793,
-0.16161958873271942,
0.11824184656143188,
-0.2994227707386017,
0.5220744609832764,
0.1555446833372116,
0.13693800568580627,
-0.008749167434871197,
-0.27536797523498535,
-0.2950529158115387,
-0.07296288758516312,
0.13845504820346832,
0.04682855308055878,
0.019116900861263275,
0.48808032274246216,
0.14086484909057617,
0.18540027737617493,
-0.4162905812263489,
-0.400313138961792,
-0.48762229084968567,
0.4227482080459595,
-0.20969076454639435,
-0.07716278731822968,
-0.44759368896484375,
0.29590579867362976,
-0.09304168820381165,
0.11260639876127243,
0.05681275203824043,
-0.3815957009792328,
0.012830719351768494,
-0.007426951080560684,
0.12379196286201477,
0.0027803443372249603,
-0.30251893401145935,
0.3909684419631958,
0.0033500399440526962,
-0.0014871209859848022,
-0.05799049139022827,
0.1699952632188797,
-0.29265132546424866,
-0.21347498893737793,
-0.09510555863380432,
0.3746212422847748,
0.029518509283661842,
0.14590945839881897,
0.07567298412322998,
0.17625492811203003,
0.055902525782585144,
0.01002225000411272,
0.01128535345196724,
-0.05173753947019577,
-0.2107517123222351,
-0.1740843504667282,
-0.0035118795931339264,
0.06194441020488739,
-0.005361171439290047,
0.5795051455497742,
0.01605807989835739,
0.19839374721050262,
-0.1722988486289978,
-0.06280580163002014,
0.20137882232666016,
-0.17210601270198822,
-0.05508575588464737,
-0.24022981524467468,
0.1379254162311554,
0.20165303349494934,
-0.2732508182525635,
-0.1337059885263443,
-0.018290430307388306,
0.4118083715438843,
0.02643110230565071,
-0.08246396481990814,
0.14402851462364197,
0.3610609471797943,
0.059081148356199265,
-0.2883606255054474,
0.28521814942359924,
-0.02566302940249443,
0.06569413840770721,
-0.08448893576860428,
-0.25869137048721313
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hi
I am sorry for asking it multiple times but I am not getting the dataloader
type, could you confirm if the dataset library returns back an iterable
type dataloader or a mapping type one where one has access to __getitem__,
in the former case, one can iterate with __iter__, and how I can configure
it to return the data back as the iterative type? I am dealing with
large-scale datasets and I do not want to bring all in memory
thanks for your help
Best regards
Rabeeh
On Mon, Nov 9, 2020 at 11:17 AM Quentin Lhoest <notifications@github.com>
wrote:
> datasets.Dataset objects implement indeed __getitem__. It returns a
> dictionary with one field per column.
>
> We've not added the integration of the datasets library for the seq2seq
> utilities yet. The current seq2seq utilities are based on text files.
>
> However as soon as you have a datasets.Dataset with columns "tgt_texts"
> (str), "src_texts" (str), and "id" (int) you should be able to implement
> your own Seq2SeqDataset class that wraps your dataset object. Does that
> make sense ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723915556>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYOC22EM7F666BZSOTSO66R3ANCNFSM4TPB7OWA>
> .
>
| Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 217 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hi
I am sorry for asking it multiple times but I am not getting the dataloader
type, could you confirm if the dataset library returns back an iterable
type dataloader or a mapping type one where one has access to __getitem__,
in the former case, one can iterate with __iter__, and how I can configure
it to return the data back as the iterative type? I am dealing with
large-scale datasets and I do not want to bring all in memory
thanks for your help
Best regards
Rabeeh
On Mon, Nov 9, 2020 at 11:17 AM Quentin Lhoest <notifications@github.com>
wrote:
> datasets.Dataset objects implement indeed __getitem__. It returns a
> dictionary with one field per column.
>
> We've not added the integration of the datasets library for the seq2seq
> utilities yet. The current seq2seq utilities are based on text files.
>
> However as soon as you have a datasets.Dataset with columns "tgt_texts"
> (str), "src_texts" (str), and "id" (int) you should be able to implement
> your own Seq2SeqDataset class that wraps your dataset object. Does that
> make sense ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723915556>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYOC22EM7F666BZSOTSO66R3ANCNFSM4TPB7OWA>
> .
>
| [
-0.16995839774608612,
-0.171406090259552,
-0.06893117725849152,
0.29238826036453247,
0.10094978660345078,
-0.08452481031417847,
0.3338168263435364,
0.24669021368026733,
0.17970123887062073,
-0.12653394043445587,
0.06800967454910278,
0.14424867928028107,
-0.37888631224632263,
0.4128895401954651,
0.1700597107410431,
-0.03180898725986481,
-0.09198810905218124,
0.011577919125556946,
-0.6868840456008911,
-0.11749798059463501,
0.029025085270404816,
0.1487230807542801,
-0.2845766544342041,
-0.039639756083488464,
-0.09257707744836807,
-0.2904193103313446,
-0.283288836479187,
0.008811596781015396,
-0.3676559031009674,
-0.3626949191093445,
0.3347040116786957,
0.28956684470176697,
0.4941839277744293,
0.5043627023696899,
-0.00010578401997918263,
-0.2772064805030823,
0.05280943214893341,
-0.1300344467163086,
-0.22467041015625,
-0.21065716445446014,
-0.24122929573059082,
-0.205168679356575,
0.1279393583536148,
-0.36852753162384033,
-0.04453113302588463,
-0.08597972989082336,
0.037985894829034805,
-0.32430046796798706,
0.32844576239585876,
0.07557363063097,
0.2515382468700409,
-0.23509548604488373,
0.040056806057691574,
-0.08844384551048279,
-0.012563124299049377,
0.1745034158229828,
-0.06493804603815079,
0.0631423145532608,
0.26341474056243896,
0.1847219467163086,
-0.10058442503213882,
-0.020125605165958405,
0.1368313580751419,
-0.1201777458190918,
0.3518398702144623,
-0.11171344667673111,
-0.13454380631446838,
-0.35027265548706055,
-0.06874295324087143,
0.17952364683151245,
1.1247754096984863,
-0.22662007808685303,
-0.33152782917022705,
-0.10519440472126007,
-0.10770438611507416,
-0.38430386781692505,
0.05196963995695114,
0.16139566898345947,
0.13763846457004547,
0.0931483656167984,
-0.21763379871845245,
-0.23206160962581635,
-0.2463388442993164,
-0.09893418848514557,
-0.197727233171463,
-0.21850544214248657,
-0.30837586522102356,
0.02847975865006447,
0.10639646649360657,
-0.31170082092285156,
-0.005823907442390919,
0.11244527250528336,
0.15068934857845306,
0.2845991551876068,
-0.6823302507400513,
-0.3560847043991089,
-0.016467824578285217,
0.2891712486743927,
0.4668385982513428,
0.37244606018066406,
0.0903385728597641,
-0.046071089804172516,
-0.1429629921913147,
0.13617369532585144,
0.485732764005661,
0.15365087985992432,
0.09142270684242249,
-0.03318658471107483,
0.054819006472826004,
-0.004066632129251957,
0.011173255741596222,
-0.09943217784166336,
-0.20332621037960052,
-0.1721983253955841,
0.04534688964486122,
-0.18719249963760376,
-0.08445292711257935,
-0.2436036467552185,
0.012319287285208702,
-0.05720863491296768,
-0.06947550922632217,
-0.13901187479496002,
0.1348978877067566,
0.15472036600112915,
-0.05900711938738823,
0.1231464147567749,
-0.11200844496488571,
0.08748182654380798,
0.01841018535196781,
0.0013463133946061134,
-0.0628620982170105,
0.36802831292152405,
-0.3997499346733093,
0.1252012848854065,
-0.014913858845829964,
-0.4068548083305359,
0.048110418021678925,
0.12765653431415558,
-0.19413577020168304,
0.017158612608909607,
-0.04306583106517792,
-0.22388024628162384,
0.10483381897211075,
-0.07255691289901733,
-0.20107339322566986,
0.23336352407932281,
-0.2167593389749527,
0.024723872542381287,
-0.3907792270183563,
-0.1400691270828247,
-0.38421374559402466,
-0.09070669114589691,
-0.10056173801422119,
0.15383170545101166,
-0.20439349114894867,
-0.23097380995750427,
-0.14315882325172424,
0.3670680522918701,
-0.06544076651334763,
-0.11741741001605988,
0.07045149803161621,
-0.101589635014534,
-0.2147192806005478,
-0.10857535153627396,
0.01367066241800785,
0.41576099395751953,
-0.7381816506385803,
-0.07446745038032532,
0.04109528288245201,
-0.016411565244197845,
0.16205266118049622,
0.41422492265701294,
-0.1477149873971939,
0.27111196517944336,
-0.24538086354732513,
0.14807532727718353,
0.3742130696773529,
0.006946679204702377,
-0.26980894804000854,
0.26988697052001953,
-0.060334689915180206,
0.005440095439553261,
0.11928720772266388,
0.00765699939802289,
0.23251484334468842,
-0.08254048228263855,
-0.16766659915447235,
0.14853613078594208,
0.08038604259490967,
-0.13969990611076355,
-0.1522194892168045,
-0.10512318462133408,
0.1615738719701767,
0.05912559852004051,
0.07205574214458466,
0.27005311846733093,
0.15096557140350342,
0.2775503396987915,
0.22258004546165466,
-0.17028523981571198,
0.29854437708854675,
0.09768563508987427,
0.29496318101882935,
0.054856862872838974,
0.07045408338308334,
-0.2696399390697479,
-0.22629550099372864,
0.22093620896339417,
0.1445794254541397,
-0.0016943290829658508,
0.19035577774047852,
0.09316079318523407,
-0.16111770272254944,
-0.08796508610248566,
-0.20352642238140106,
-0.17197072505950928,
0.17661069333553314,
0.09916286170482635,
0.2849123179912567,
-0.0842205211520195,
-0.4242134392261505,
0.3340345323085785,
-0.12328696995973587,
-0.0024318303912878036,
-0.7031782269477844,
0.16372685134410858,
0.31303250789642334,
-0.08723098039627075,
0.08734831213951111,
0.10986987501382828,
-0.14716392755508423,
-0.28299468755722046,
0.23504790663719177,
0.3226822316646576,
-0.09623613953590393,
0.12962377071380615,
0.25102999806404114,
0.4881448745727539,
0.1757107526063919,
0.02334638312458992,
0.2103520929813385,
-0.43882322311401367,
0.2086118906736374,
-0.05782788246870041,
0.08173035830259323,
0.4162716269493103,
-0.24191273748874664,
0.11879485845565796,
0.11143246293067932,
-0.02891501784324646,
0.009803330525755882,
-0.022269845008850098,
-0.49332571029663086,
0.22123777866363525,
-0.06135024502873421,
0.061806436628103256,
0.2879592776298523,
-0.09016015380620956,
-0.25798648595809937,
-0.18663212656974792,
0.4187477231025696,
-0.06326498091220856,
0.004646953195333481,
0.23106461763381958,
-0.2082144021987915,
-0.09754117578268051,
0.06692065298557281,
-0.03331930935382843,
0.30833670496940613,
-0.046655043959617615,
0.26228779554367065,
-0.057266347110271454,
0.12781985104084015,
0.08573334664106369,
0.12891623377799988,
0.016978345811367035,
0.27071520686149597,
0.010503243654966354,
0.05801618844270706,
0.07790354639291763,
-0.27382150292396545,
-0.21946905553340912,
-0.010961017571389675,
0.13132168352603912,
-0.08744189888238907,
0.18339309096336365,
-0.40292951464653015,
-0.10495494306087494,
-0.3309219181537628,
0.12385080009698868,
0.03872128203511238,
0.06420847773551941,
-0.1184799075126648,
-0.09658338129520416,
0.40582460165023804,
0.06569208204746246,
-0.022972367703914642,
0.5276073813438416,
0.29444974660873413,
0.013787738047540188,
-0.16944997012615204,
0.03579219803214073,
0.04329279437661171,
0.17963415384292603,
0.23747201263904572,
-0.20354196429252625,
0.4684324860572815,
0.026202833279967308,
0.07831446081399918,
-0.41204553842544556,
-0.2755686938762665,
0.3278047740459442,
-0.10764341056346893,
0.2515528202056885,
0.3064383864402771,
0.004472807049751282,
-0.02061842568218708,
-0.04632490500807762,
0.034168142825365067,
-0.34380853176116943,
-0.005020622164011002,
-0.026404382660984993,
-0.06407386064529419,
0.24539807438850403,
0.08821363747119904,
-0.4056176543235779,
-0.22200873494148254,
-0.20969687402248383,
0.5581911206245422,
0.21814285218715668,
0.2245461642742157,
0.16355451941490173,
-0.06326822936534882,
0.3151679039001465,
-0.06178279593586922,
0.21078792214393616,
-0.2140311449766159,
-0.5315759181976318,
0.3878295421600342,
-0.2561227083206177,
-0.2005532681941986,
0.04065603390336037,
-0.004740636795759201,
0.5716432332992554,
0.024063698947429657,
-0.3571438789367676,
0.016693562269210815,
0.041993990540504456,
0.1119484156370163,
0.18735063076019287,
0.24018262326717377,
0.268887460231781,
-0.24229170382022858,
-0.028738772496581078,
0.0596933588385582,
-0.09243206679821014,
0.15892243385314941,
0.16217195987701416,
0.3196927011013031,
0.4330100119113922,
0.5967087149620056,
0.04114245995879173,
0.5284714698791504,
0.3443605899810791,
-0.173518568277359,
0.2482471764087677,
-0.032503001391887665,
-0.2144194394350052,
-0.11311342567205429,
-0.26723527908325195,
0.2950756847858429,
-0.3456633388996124,
-0.2737658619880676,
0.1929449439048767,
-0.1302107572555542,
-0.3075440227985382,
-0.19886057078838348,
0.31184497475624084,
-0.19824782013893127,
-0.02392488904297352,
0.04832892864942551,
-0.1083725243806839,
0.12053799629211426,
-0.24764367938041687,
-0.19207832217216492,
0.007960012182593346,
0.012811083346605301,
0.06046946719288826,
0.1921093761920929,
0.2455522119998932,
0.0608973391354084,
-0.6099674701690674,
0.05823943018913269,
-0.3910823166370392,
0.07394687831401825,
-0.2808958888053894,
0.021932024508714676,
0.16500625014305115,
-0.24158725142478943,
0.22209608554840088,
-0.10121840983629227,
0.5630614757537842,
0.10984387993812561,
-0.5177440047264099,
-0.0360054150223732,
-0.4384682774543762,
0.08713708817958832,
0.03222247585654259,
-0.28000983595848083,
0.29832708835601807,
0.25034472346305847,
-0.1287992149591446,
-0.44481784105300903,
-0.24253325164318085,
0.13339763879776,
-0.0708024874329567,
-0.045437272638082504,
-0.3161967098712921,
0.16280242800712585,
-0.03718138858675957,
-0.1041879877448082,
0.008777104318141937,
-0.08637545257806778,
0.0807393416762352,
-0.17422764003276825,
-0.15647928416728973,
-0.17781269550323486,
-0.02056029811501503,
0.22387844324111938,
-0.034271106123924255,
0.12132078409194946,
0.041735026985406876,
0.2217038869857788,
0.4037610590457916,
0.3132407069206238,
0.27583691477775574,
0.4043896794319153,
0.01064092293381691,
0.23908182978630066,
0.5203077793121338,
0.05078071355819702,
0.3208162486553192,
0.18479770421981812,
-0.15326547622680664,
0.045321572571992874,
-0.277481347322464,
0.029679320752620697,
-0.6391440033912659,
-0.20001810789108276,
0.4938613772392273,
-0.054789990186691284,
-0.3791228234767914,
-0.632264256477356,
0.5206332802772522,
0.1117023229598999,
-0.05003681033849716,
-0.03227069228887558,
0.040966324508190155,
-0.20902462303638458,
-0.17754891514778137,
0.20716442167758942,
0.8239883184432983,
-0.21358303725719452,
-0.04382384940981865,
0.11202145367860794,
0.41501933336257935,
0.6200094223022461,
-0.2753100097179413,
0.0017931042239069939,
-0.4699942171573639,
-0.18573524057865143,
-0.16359302401542664,
-0.1298050433397293,
0.25414976477622986,
0.2704182267189026,
-0.3658443093299866,
0.48259788751602173,
0.19027437269687653,
-0.07502014935016632,
-0.16674396395683289,
0.3217434585094452,
-0.19602756202220917,
-0.24296817183494568,
-0.4122354984283447,
0.1731429100036621,
0.05247742682695389,
0.1378442794084549,
-0.1709500551223755,
-0.04851982742547989,
0.3666975796222687,
0.0627639964222908,
-0.10551142692565918,
-0.22992229461669922,
-0.11494568735361099,
-0.137687548995018,
0.2727747857570648,
-0.25813502073287964,
0.47006428241729736,
0.24154821038246155,
0.09900828450918198,
0.031700313091278076,
-0.2596079707145691,
-0.11584332585334778,
-0.0806150957942009,
0.10892561078071594,
0.1270158439874649,
0.08837200701236725,
0.600108802318573,
0.013309292495250702,
0.13903087377548218,
0.22494718432426453,
0.010950655676424503,
-0.04012466222047806,
-0.1303885281085968,
-0.057948291301727295,
0.1187087669968605,
-0.44557633996009827,
-0.06707921624183655,
0.28090906143188477,
0.07695876061916351,
0.001568712294101715,
0.15746895968914032,
0.3391575217247009,
-0.08161814510822296,
0.3666168749332428,
0.10408765077590942,
-0.07054344564676285,
-0.17031241953372955,
0.33241036534309387,
0.06926514208316803,
-0.14041879773139954,
0.4218542277812958,
0.15576469898223877,
-0.2226470559835434,
-0.15183305740356445,
0.1414203941822052,
0.33994290232658386,
-0.2813919186592102,
-0.053952816873788834,
-0.010200545191764832,
0.14735271036624908,
0.20521262288093567,
0.23660805821418762,
0.13827088475227356,
-0.19783005118370056,
-0.20859785377979279,
-0.18667766451835632,
-0.18387015163898468,
0.19255122542381287,
0.02231794036924839,
0.23908817768096924,
-0.017047805711627007,
-0.2921164035797119,
0.10268495231866837,
0.1451328843832016,
-0.36578214168548584,
0.08496608585119247,
-0.11268587410449982,
0.14988484978675842,
0.12553595006465912,
-0.014216147363185883,
-0.040560293942689896,
0.2896202802658081,
0.07117430120706558,
0.14062416553497314,
-0.2981959283351898,
-0.20439180731773376,
-0.051988691091537476,
0.08344674110412598,
0.023546284064650536,
-0.052292294800281525,
0.15465925633907318,
-0.14827489852905273,
-0.2841727137565613,
-0.10037177801132202,
0.21051457524299622,
-0.15366244316101074,
0.09821014106273651,
0.20744124054908752,
0.3586407005786896,
-0.3746783137321472,
-0.15859518945217133,
0.07845686376094818,
0.19119760394096375,
-0.08169980347156525,
0.12153655290603638,
0.3406086564064026,
-0.19404849410057068,
-0.302609384059906,
-0.22827325761318207,
0.5108464956283569,
0.29226094484329224,
-0.13360130786895752,
0.471301406621933,
-0.3304155468940735,
0.05640118941664696,
0.27895236015319824,
0.5351674556732178,
0.6012008190155029,
-0.15145862102508545,
-0.08802947402000427,
0.18121814727783203,
0.22082588076591492,
-0.02558230236172676,
0.13702735304832458,
-0.1873173713684082,
0.03378400206565857,
0.03269673511385918,
0.34331783652305603,
0.11928413808345795,
0.025399036705493927,
0.12655013799667358,
-0.1984066367149353,
0.15949150919914246,
-0.2759273052215576,
0.08624880015850067,
0.23145915567874908,
-0.13052035868167877,
-0.028599511831998825,
0.595168948173523,
0.3472753167152405,
0.04566079378128052,
0.39390432834625244,
-0.02508295327425003,
0.2953464090824127,
-0.06128215789794922,
0.2569729685783386,
0.09524513781070709,
-0.30015650391578674,
-0.08457837998867035,
0.39150699973106384,
0.09788986295461655,
0.0029345639050006866,
-0.20828166604042053,
0.5517613887786865,
0.13469906151294708,
-0.11318880319595337,
-0.21751423180103302,
0.2635154128074646,
-0.13592448830604553,
-0.24106474220752716,
-0.28391337394714355,
-0.37820422649383545,
-0.2725359797477722,
-0.019667424261569977,
-0.41877877712249756,
-0.0917319655418396,
0.2842944860458374,
-0.047254741191864014,
0.2933638393878937,
-0.5206663608551025,
0.12711572647094727,
-0.13050749897956848,
0.07933974266052246,
-0.3140774369239807,
0.33209216594696045,
-0.19686920940876007,
0.08307516574859619,
0.02451971545815468,
0.3627670705318451,
0.07949463278055191,
0.34400856494903564,
0.024147693067789078,
-0.053160734474658966,
-0.1260976493358612,
-0.08118890225887299,
0.13187672197818756,
0.23790012300014496,
-0.15643756091594696,
-0.21957533061504364,
0.4602530598640442,
0.07064071297645569,
-0.06131593510508537,
0.2296069860458374,
-0.11030599474906921,
0.1432422697544098,
-0.806282103061676,
-0.041423358023166656,
0.10842045396566391,
0.14046883583068848,
-0.06495660543441772,
0.07201522588729858,
-0.40940162539482117,
-0.023150894790887833,
0.17703582346439362,
-0.45901358127593994,
0.09710700809955597,
-0.14917074143886566,
0.12162874639034271,
-0.2849753201007843,
0.4401840567588806,
0.25934889912605286,
0.07210539281368256,
-0.015086171217262745,
-0.16013255715370178,
-0.27538707852363586,
-0.06810600310564041,
0.17769880592823029,
0.0814497247338295,
-0.03269975259900093,
0.43839383125305176,
0.19726422429084778,
0.1426796019077301,
-0.23459984362125397,
-0.5380966663360596,
-0.3567993938922882,
0.31725767254829407,
-0.21026916801929474,
-0.05986027792096138,
-0.34889334440231323,
0.32446014881134033,
-0.02788246050477028,
0.04782760888338089,
0.1658545434474945,
-0.27294114232063293,
-0.0488029308617115,
0.01916477456688881,
0.23624813556671143,
-0.07490658760070801,
-0.35559791326522827,
0.31926196813583374,
0.12846827507019043,
0.03838864713907242,
-0.046624697744846344,
0.032739073038101196,
-0.3662340044975281,
-0.3125418424606323,
-0.12999440729618073,
0.2862895727157593,
-0.05758059397339821,
0.28021812438964844,
-0.01036841981112957,
0.0820518359541893,
-0.07835648208856583,
0.04654712229967117,
-0.031776972115039825,
-0.04408983513712883,
-0.2918260097503662,
-0.17785747349262238,
-0.006485726684331894,
-0.104586161673069,
0.030218496918678284,
0.5602524876594543,
0.022652648389339447,
0.15675099194049835,
-0.18892470002174377,
-0.18420040607452393,
0.24024562537670135,
-0.2860485911369324,
-0.05866213142871857,
-0.09462235122919083,
0.03492032736539841,
0.2588541507720947,
-0.19698315858840942,
-0.35834407806396484,
0.15099364519119263,
0.35380470752716064,
0.010613908991217613,
-0.03844214603304863,
0.1908852607011795,
0.233361154794693,
0.05603336915373802,
-0.2807215750217438,
0.20726536214351654,
0.04766315966844559,
0.09482134133577347,
0.013448357582092285,
-0.27738523483276367
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | `datasets.Dataset` objects are both iterative and mapping types: it has both `__iter__` and `__getitem__`
For example you can do
```python
for example in dataset:
# do something
```
or
```python
for i in range(len(dataset)):
example = dataset[i]
# do something
```
When you do that, one and only one example is loaded into memory at a time. | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 57 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
`datasets.Dataset` objects are both iterative and mapping types: it has both `__iter__` and `__getitem__`
For example you can do
```python
for example in dataset:
# do something
```
or
```python
for i in range(len(dataset)):
example = dataset[i]
# do something
```
When you do that, one and only one example is loaded into memory at a time. | [
-0.1967022866010666,
-0.41206127405166626,
-0.15225858986377716,
0.1939138025045395,
0.05039370805025101,
0.009160131216049194,
0.2521877586841583,
0.06103913486003876,
0.1378222107887268,
-0.0013330578804016113,
0.22775106132030487,
0.2708902657032013,
-0.4278084337711334,
0.17694731056690216,
0.20244137942790985,
-0.08895500004291534,
0.012983329594135284,
0.047229163348674774,
-0.6187959909439087,
-0.007837101817131042,
0.13693636655807495,
-0.07782794535160065,
-0.3001038730144501,
-0.16721366345882416,
0.05710933357477188,
-0.42466652393341064,
-0.3100513219833374,
-0.18555670976638794,
-0.19067935645580292,
-0.42673784494400024,
0.26555246114730835,
0.17860211431980133,
0.41275832056999207,
0.519077718257904,
-0.00010686080349842086,
-0.20872586965560913,
0.17242947220802307,
-0.07241927832365036,
-0.15705358982086182,
-0.25258868932724,
-0.19458335638046265,
-0.1432824730873108,
-0.013276039622724056,
-0.3930826485157013,
-0.07785585522651672,
-0.2569580674171448,
0.16188806295394897,
-0.3726498782634735,
0.21776175498962402,
0.08239010721445084,
0.2613908648490906,
-0.2673081159591675,
0.014085698872804642,
-0.034347593784332275,
0.029136061668395996,
0.14200860261917114,
-0.18959282338619232,
0.31463873386383057,
0.2581833600997925,
0.25927063822746277,
0.0707305371761322,
-0.0838770717382431,
0.18353271484375,
-0.029351703822612762,
0.5176255106925964,
-0.1810385137796402,
-0.028457924723625183,
-0.3781053125858307,
-0.13168039917945862,
0.18006671965122223,
0.9738008975982666,
-0.33254051208496094,
-0.18056802451610565,
0.09250945597887039,
0.07839471846818924,
-0.41614940762519836,
-0.07893013209104538,
0.20878124237060547,
0.09147226810455322,
0.16897499561309814,
-0.3774551451206207,
-0.2158586084842682,
-0.2636706233024597,
0.15692712366580963,
-0.01147143542766571,
0.020218759775161743,
-0.148339182138443,
0.14544716477394104,
0.14696907997131348,
-0.22271664440631866,
0.34945449233055115,
-0.037408675998449326,
0.09567251801490784,
0.293446809053421,
-0.3548884987831116,
-0.31466564536094666,
-0.0452602282166481,
0.4222281277179718,
0.47865915298461914,
0.3207342028617859,
0.2023727148771286,
-0.11104898899793625,
-0.22337129712104797,
0.2842499911785126,
0.4751826524734497,
0.003990184515714645,
-0.04898471385240555,
0.09342698007822037,
0.11619941890239716,
-0.019266603514552116,
-0.14627283811569214,
-0.02105998620390892,
-0.2141520082950592,
-0.07895117998123169,
0.30762046575546265,
-0.29204681515693665,
-0.12301499396562576,
-0.06973078101873398,
0.027317481115460396,
-0.10939368605613708,
-0.2524135112762451,
-0.1942872554063797,
0.26120346784591675,
0.23290079832077026,
-0.14849087595939636,
0.13408641517162323,
-0.3233181834220886,
-0.09127563238143921,
0.1094377413392067,
0.29104429483413696,
-0.044973473995923996,
0.44221261143684387,
-0.5005633234977722,
0.023853518068790436,
-0.03574901074171066,
-0.22785893082618713,
0.20859934389591217,
0.15320318937301636,
-0.1350087672472,
-0.10784927755594254,
0.14835618436336517,
-0.366976797580719,
0.4331790804862976,
-0.03547588363289833,
-0.19225002825260162,
0.006436338648200035,
-0.2999885380268097,
0.15474820137023926,
-0.39553847908973694,
0.04803478717803955,
-0.22603535652160645,
0.058067042380571365,
-0.042960867285728455,
0.16447335481643677,
-0.20568904280662537,
-0.2527209520339966,
-0.025475911796092987,
0.3109801709651947,
0.12158051133155823,
-0.10920450091362,
0.11437968909740448,
-0.21275347471237183,
-0.16316355764865875,
-0.311535507440567,
0.07650966942310333,
0.2239908128976822,
-0.38577136397361755,
0.13304932415485382,
0.03149428591132164,
0.04694700241088867,
0.1477140486240387,
0.2904069423675537,
-0.24066582322120667,
0.22747009992599487,
-0.16162510216236115,
-0.11822304129600525,
0.4186885356903076,
-0.13543082773685455,
-0.17916421592235565,
0.3351471424102783,
0.20163248479366302,
-0.09809453785419464,
0.06815965473651886,
0.29716765880584717,
-0.0122090894728899,
0.022421516478061676,
-0.20338916778564453,
0.21343615651130676,
0.024325784295797348,
-0.14715373516082764,
-0.0023535825312137604,
-0.02152949385344982,
0.17239443957805634,
0.010499399155378342,
0.04069431498646736,
0.2140856385231018,
0.09025266766548157,
0.13900722563266754,
0.27317628264427185,
-0.2391560971736908,
0.19004324078559875,
0.2386128008365631,
0.3220142722129822,
0.04920336604118347,
0.09455797076225281,
-0.4822584092617035,
0.02548796311020851,
0.15563377737998962,
0.18615229427814484,
-0.1578350067138672,
0.2956635355949402,
-0.006758734583854675,
-0.12622487545013428,
0.07986415177583694,
-0.16188254952430725,
-0.0565619133412838,
0.1256805807352066,
0.06633611023426056,
0.20562924444675446,
-0.09015768766403198,
-0.5047392249107361,
0.09982014447450638,
-0.203054741024971,
-0.20805110037326813,
-0.5096107721328735,
0.12906764447689056,
0.22708487510681152,
-0.07794640958309174,
0.03276042640209198,
0.01528690755367279,
-0.2983112037181854,
-0.49792301654815674,
0.2777377963066101,
0.39694514870643616,
0.1560831218957901,
-0.00792200118303299,
0.10196040570735931,
0.3819926977157593,
0.3212149143218994,
-0.17462390661239624,
0.14620980620384216,
-0.19910037517547607,
0.28820422291755676,
-0.018185317516326904,
0.10070424526929855,
0.41944801807403564,
-0.21945883333683014,
0.05787311866879463,
0.370763897895813,
-0.16723912954330444,
0.0571274533867836,
-0.05736716836690903,
-0.4465523958206177,
0.1243523508310318,
-0.10406497120857239,
-0.1959182769060135,
0.4206417202949524,
-0.1265028417110443,
-0.3818364441394806,
-0.32349488139152527,
0.4590497314929962,
-0.030902327969670296,
0.029166314750909805,
0.05015755444765091,
-0.10869602113962173,
-0.06678587198257446,
0.05522634834051132,
0.029928717762231827,
0.3643381595611572,
-0.016723714768886566,
0.22284670174121857,
0.021102357655763626,
0.0027690562419593334,
0.19368904829025269,
0.18388628959655762,
-0.02136598527431488,
0.3514574468135834,
-0.16702783107757568,
-0.03304748609662056,
0.023264579474925995,
-0.26845476031303406,
-0.329987108707428,
0.01652969978749752,
0.15019822120666504,
0.05754561349749565,
0.2963261604309082,
-0.4058510363101959,
-0.19071638584136963,
-0.3694968819618225,
-0.11141655594110489,
0.20521098375320435,
0.10909676551818848,
-0.32054686546325684,
0.04242837429046631,
0.4008632004261017,
0.12202542275190353,
0.08508448302745819,
0.21481281518936157,
0.05838840454816818,
0.02478097938001156,
-0.060326214879751205,
0.009148098528385162,
-0.10009794682264328,
0.186086505651474,
0.28783002495765686,
-0.21730320155620575,
0.6166128516197205,
0.09098441153764725,
-0.0911397635936737,
-0.40594327449798584,
-0.16211837530136108,
0.1468193233013153,
0.05027332156896591,
0.09212194383144379,
0.24907852709293365,
-0.0362275093793869,
-0.1754503697156906,
-0.041832901537418365,
0.0035598641261458397,
-0.4967639744281769,
0.15901222825050354,
-0.1841692477464676,
-0.12019627541303635,
0.04136206954717636,
0.06199246272444725,
-0.19264662265777588,
-0.35547512769699097,
-0.14898332953453064,
0.3245445489883423,
0.39479508996009827,
0.1792876124382019,
0.1702628880739212,
0.05260281637310982,
0.3306017518043518,
0.11374931782484055,
0.0347362719476223,
-0.03129776194691658,
-0.3998980224132538,
0.1823968142271042,
-0.3657863140106201,
-0.27892619371414185,
0.05302317067980766,
0.054412491619586945,
0.4394407272338867,
0.19198104739189148,
-0.3579132556915283,
-0.026459291577339172,
-0.06157948821783066,
0.053384896367788315,
0.09291736036539078,
0.39493420720100403,
0.09135007858276367,
-0.2753694951534271,
-0.026698732748627663,
-0.04482700675725937,
-0.05333949625492096,
0.07771378010511398,
-0.059941478073596954,
0.3174925148487091,
0.5418891906738281,
0.33695992827415466,
-0.06128479540348053,
0.5106343030929565,
0.3213930130004883,
-0.4664488136768341,
0.38192638754844666,
-0.29490843415260315,
-0.2295011430978775,
-0.10067633539438248,
-0.18041867017745972,
0.12389465421438217,
-0.253370076417923,
-0.2882227301597595,
0.13761085271835327,
-0.08531669527292252,
-0.5046302676200867,
-0.28603190183639526,
0.18998461961746216,
0.007504083216190338,
0.08541354537010193,
-0.06802040338516235,
-0.4584962725639343,
0.2238839864730835,
-0.3123106062412262,
-0.16726160049438477,
-0.08395892381668091,
-0.035122476518154144,
-0.003793545998632908,
0.1022481918334961,
0.10631952434778214,
0.02552744746208191,
-0.6367226839065552,
-0.07807120680809021,
-0.21954941749572754,
-0.01600441336631775,
-0.22934465110301971,
0.22840705513954163,
0.20317356288433075,
-0.15508773922920227,
0.20905879139900208,
-0.27040600776672363,
0.34645092487335205,
0.025589430704712868,
-0.36955153942108154,
-0.015466399490833282,
-0.338834673166275,
0.10336361080408096,
0.11398671567440033,
-0.2592839300632477,
0.5021613240242004,
0.16617242991924286,
-0.049961984157562256,
-0.09050063043832779,
-0.20152324438095093,
0.2595628798007965,
-0.00006145739462226629,
0.058348897844552994,
-0.42642977833747864,
0.09127017855644226,
-0.19133657217025757,
-0.0521199032664299,
-0.1042875275015831,
-0.025658858940005302,
-0.156927227973938,
0.05985356867313385,
-0.22748823463916779,
-0.238785520195961,
0.09253829717636108,
0.23684078454971313,
-0.01912544295191765,
-0.07043029367923737,
0.021805938333272934,
0.17990854382514954,
0.1561618149280548,
0.2901683449745178,
0.2923648953437805,
0.2780868113040924,
-0.06889389455318451,
0.09685544669628143,
0.2517821192741394,
0.2262895554304123,
0.3292231559753418,
-0.07466007769107819,
-0.06404761224985123,
0.0011870861053466797,
-0.09502765536308289,
-0.013751231133937836,
-0.42954978346824646,
-0.07027789205312729,
0.3990364670753479,
-0.028546784073114395,
-0.6849337816238403,
-0.8001822829246521,
0.5862557888031006,
0.20335865020751953,
-0.04241330176591873,
0.4010370075702667,
-0.1833680421113968,
-0.12305420637130737,
-0.08829926699399948,
0.19376108050346375,
0.7383266091346741,
-0.11394186317920685,
0.04900795593857765,
0.14444220066070557,
0.30999404191970825,
0.4590803384780884,
-0.016373420134186745,
-0.05308181792497635,
-0.4539550244808197,
-0.1515326201915741,
-0.13916335999965668,
-0.1917884200811386,
0.2685104012489319,
0.18640004098415375,
-0.2638259530067444,
0.39061129093170166,
0.10171350836753845,
0.06968435645103455,
-0.15796850621700287,
0.30085283517837524,
-0.2609701156616211,
-0.08589309453964233,
-0.33244508504867554,
0.20694537460803986,
0.1299762725830078,
0.10094715654850006,
-0.18999797105789185,
-0.08607189357280731,
0.31699469685554504,
0.28214001655578613,
-0.12554433941841125,
-0.12767279148101807,
-0.10945753008127213,
0.06896676123142242,
0.12392769753932953,
-0.29885992407798767,
0.4001437723636627,
0.2613200545310974,
0.14222648739814758,
-0.06041489914059639,
-0.16625230014324188,
0.06324504315853119,
-0.09751284867525101,
-0.03834068030118942,
0.0007145616691559553,
0.17949341237545013,
0.4892556369304657,
-0.08089525252580643,
-0.032554417848587036,
0.26234203577041626,
0.11852468550205231,
-0.03521646931767464,
-0.11419130116701126,
0.13867107033729553,
0.243378683924675,
-0.1255544126033783,
-0.22669705748558044,
0.40803593397140503,
-0.053063295781612396,
0.0059411972761154175,
0.16510631144046783,
0.26010310649871826,
-0.1499892771244049,
0.45057252049446106,
-0.02528945729136467,
-0.0643577128648758,
-0.18765462934970856,
0.1663486212491989,
0.24505802989006042,
-0.09242449700832367,
0.22257180511951447,
0.0322856567800045,
-0.1779787391424179,
-0.20870450139045715,
0.24943917989730835,
0.25262346863746643,
-0.04920231178402901,
0.015658516436815262,
0.06796452403068542,
0.27038782835006714,
0.2758459448814392,
0.13124023377895355,
0.12329986691474915,
-0.10120848566293716,
-0.3609987497329712,
-0.11271217465400696,
-0.36966559290885925,
0.010942451655864716,
0.09227778017520905,
0.2632909417152405,
-0.07850313186645508,
-0.22781632840633392,
0.21123963594436646,
0.08895014971494675,
-0.32704025506973267,
0.0319068469107151,
-0.11105699092149734,
0.15687008202075958,
0.04028729349374771,
-0.04382745921611786,
-0.2527572214603424,
0.2932387590408325,
0.1048412024974823,
-0.003678657114505768,
-0.3037315607070923,
-0.20585882663726807,
-0.0077899666503071785,
0.09332900494337082,
-0.03422146290540695,
-0.12230480462312698,
0.1276143342256546,
-0.3852507472038269,
-0.2536256015300751,
-0.14413896203041077,
0.16458143293857574,
-0.007397383451461792,
0.0032502636313438416,
0.2268618941307068,
0.23019719123840332,
-0.35314521193504333,
-0.07000236213207245,
-0.008867312222719193,
0.12020516395568848,
-0.14761117100715637,
0.10634629428386688,
0.2929707169532776,
0.12955649197101593,
-0.3645475506782532,
-0.4189196527004242,
0.23022571206092834,
0.2601177990436554,
-0.22662314772605896,
0.4598795175552368,
-0.18360351026058197,
0.28355926275253296,
0.1864103227853775,
0.38997071981430054,
0.5834119319915771,
-0.1510755568742752,
0.07219599932432175,
0.16975265741348267,
0.20217514038085938,
-0.010421130806207657,
-0.061800744384527206,
-0.06801997125148773,
0.06934265047311783,
0.031097281724214554,
0.17413194477558136,
0.13259701430797577,
0.13978852331638336,
-0.30492496490478516,
-0.3196585178375244,
0.17437271773815155,
-0.4326549768447876,
0.0685202032327652,
0.3156372308731079,
-0.05054156482219696,
-0.09201723337173462,
0.349154531955719,
0.5144849419593811,
0.25121980905532837,
0.4923088550567627,
0.21639785170555115,
0.5837099552154541,
0.1487668752670288,
0.07950864732265472,
0.10276958346366882,
-0.2135758399963379,
-0.06694716215133667,
0.3401179611682892,
0.11389929056167603,
0.1707928478717804,
-0.00263841450214386,
0.25102198123931885,
0.21710243821144104,
-0.1438947319984436,
-0.11521102488040924,
0.15530073642730713,
0.056076254695653915,
-0.23642787337303162,
-0.20334292948246002,
-0.15768255293369293,
-0.17104050517082214,
-0.07080074399709702,
-0.32689493894577026,
-0.06284879148006439,
0.3587137758731842,
0.09651882946491241,
0.22638832032680511,
-0.3642050325870514,
0.4352070987224579,
-0.1042160615324974,
0.33282384276390076,
-0.30095967650413513,
0.28571823239326477,
-0.23622165620326996,
0.12626683712005615,
-0.335714727640152,
0.14774787425994873,
0.1616247445344925,
0.45227453112602234,
0.07842123508453369,
0.06377001106739044,
-0.1715228408575058,
-0.13463415205478668,
0.03482547774910927,
0.18074101209640503,
0.005523510277271271,
-0.15034033358097076,
0.4830392599105835,
0.07878242433071136,
-0.02996426820755005,
0.4317761957645416,
0.03929878771305084,
-0.04901115223765373,
-0.761978268623352,
0.030807435512542725,
-0.07388295978307724,
-0.10408230125904083,
0.0386139377951622,
0.20588864386081696,
-0.35889843106269836,
0.031015947461128235,
0.34949827194213867,
-0.5118253231048584,
0.011284826323390007,
-0.12811493873596191,
0.09080811589956284,
-0.44382187724113464,
0.5806401968002319,
0.23582041263580322,
0.3683757185935974,
0.06463281065225601,
-0.35478270053863525,
-0.2148439586162567,
-0.000003077089786529541,
-0.06460870802402496,
0.03301174193620682,
0.002392322290688753,
0.26005715131759644,
0.047909438610076904,
0.08153757452964783,
-0.21019409596920013,
-0.4015124440193176,
-0.3318654000759125,
0.4715471863746643,
-0.14072661101818085,
-0.11856646835803986,
-0.5041669607162476,
0.4238242208957672,
0.06883236765861511,
-0.13729822635650635,
0.0028390102088451385,
-0.47695499658584595,
-0.05667203664779663,
-0.0586550235748291,
0.13391683995723724,
0.17110460996627808,
-0.2130337655544281,
0.43446993827819824,
0.050215430557727814,
0.1733374148607254,
-0.040956102311611176,
0.050623565912246704,
-0.20028722286224365,
-0.2317834496498108,
-0.056071314960718155,
0.4207938015460968,
0.09361575543880463,
0.01823403686285019,
-0.1480524092912674,
0.03005324676632881,
0.15064048767089844,
0.007269478403031826,
-0.017286749556660652,
0.025136368349194527,
-0.09878917783498764,
-0.40878093242645264,
-0.03841765969991684,
-0.01415762398391962,
0.16126687824726105,
0.7226053476333618,
-0.19826483726501465,
-0.0007436089217662811,
-0.17634302377700806,
0.05558834969997406,
0.1908268928527832,
-0.12029186636209488,
-0.11761832237243652,
-0.18912163376808167,
-0.005644641816616058,
0.09312358498573303,
-0.2571720480918884,
-0.4581367075443268,
0.1177973523736,
0.4690544307231903,
-0.07871384173631668,
-0.19974251091480255,
0.31557855010032654,
0.2660444378852844,
0.06409920752048492,
-0.01372559368610382,
0.35689711570739746,
-0.16058650612831116,
-0.1009712666273117,
0.021461937576532364,
-0.26460087299346924
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hi there,
Here is what I am trying, this is not working for me in map-style datasets, could you please tell me how to use datasets with being able to access ___getitem__ ? could you assist me please correcting this example? I need map-style datasets which is formed from concatenation of two datasets from your library. thanks
```
import datasets
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.map(lambda example: {"src_texts": "question: {0} context: {1} ".format(
example["question"], example["context"]),
"tgt_texts": example["answers"]["text"][0]}, remove_columns=dataset1.column_names)
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.map(lambda example: {"src_texts": "imdb: " + example["text"],
"tgt_texts": str(example["label"])}, remove_columns=dataset2.column_names)
train_dataset = datasets.concatenate_datasets([dataset1, dataset2])
train_dataset.set_format(type='torch', columns=['src_texts', 'tgt_texts'])
dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=32)
for id, batch in enumerate(dataloader):
print(batch)
``` | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 113 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hi there,
Here is what I am trying, this is not working for me in map-style datasets, could you please tell me how to use datasets with being able to access ___getitem__ ? could you assist me please correcting this example? I need map-style datasets which is formed from concatenation of two datasets from your library. thanks
```
import datasets
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.map(lambda example: {"src_texts": "question: {0} context: {1} ".format(
example["question"], example["context"]),
"tgt_texts": example["answers"]["text"][0]}, remove_columns=dataset1.column_names)
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.map(lambda example: {"src_texts": "imdb: " + example["text"],
"tgt_texts": str(example["label"])}, remove_columns=dataset2.column_names)
train_dataset = datasets.concatenate_datasets([dataset1, dataset2])
train_dataset.set_format(type='torch', columns=['src_texts', 'tgt_texts'])
dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=32)
for id, batch in enumerate(dataloader):
print(batch)
``` | [
-0.30167117714881897,
-0.39162346720695496,
-0.12449996173381805,
0.404502272605896,
0.1218658909201622,
0.08152613788843155,
0.23458074033260345,
0.1949106752872467,
-0.044543780386447906,
-0.025844261050224304,
0.044025614857673645,
0.33468836545944214,
-0.3416888117790222,
0.01935759000480175,
-0.0354217030107975,
-0.1522008180618286,
-0.1350664496421814,
-0.10912643373012543,
-0.5712975263595581,
-0.09419448673725128,
0.16442574560642242,
-0.06078040599822998,
-0.39450138807296753,
-0.18522270023822784,
-0.015444045886397362,
-0.4847175180912018,
-0.2174985706806183,
0.003764227032661438,
-0.12766286730766296,
-0.3302406966686249,
0.18253293633460999,
0.0282143447548151,
0.4424453675746918,
0.6334050893783569,
-0.00011079794057877734,
-0.13626155257225037,
0.11614631861448288,
-0.17688177525997162,
-0.15353135764598846,
-0.31364303827285767,
-0.01096147671341896,
-0.11651092767715454,
-0.01740417629480362,
-0.48198530077934265,
-0.17750707268714905,
-0.12921059131622314,
0.0617712065577507,
-0.5960795283317566,
0.3605300784111023,
0.17476752400398254,
0.19652602076530457,
-0.160891592502594,
0.03737601265311241,
-0.05173414573073387,
0.1932126134634018,
0.15505167841911316,
-0.0881127193570137,
0.21969571709632874,
0.4312991499900818,
0.28176960349082947,
-0.01503395289182663,
0.04724547639489174,
0.09159146249294281,
-0.07210993766784668,
0.15257343649864197,
0.00004938151687383652,
-0.2120264768600464,
-0.49278154969215393,
-0.011081967502832413,
0.18458744883537292,
0.9366441369056702,
-0.2746398150920868,
-0.29699236154556274,
-0.035129621624946594,
0.016817543655633926,
-0.17416512966156006,
-0.06891178339719772,
0.24120976030826569,
0.07034599781036377,
0.14415021240711212,
-0.333439439535141,
-0.10515636950731277,
-0.18605321645736694,
0.22163859009742737,
0.0751473605632782,
0.24187971651554108,
0.0030300901271402836,
0.2312335968017578,
0.046220939606428146,
-0.21950091421604156,
0.4654045104980469,
-0.132929265499115,
0.08923691511154175,
0.39922118186950684,
-0.4541882872581482,
-0.1844448447227478,
-0.03493979573249817,
0.21448048949241638,
0.4375273585319519,
0.26162049174308777,
0.16510339081287384,
-0.10799580067396164,
-0.2650264501571655,
0.23070695996284485,
0.24533523619174957,
0.07750856876373291,
-0.013284459710121155,
0.2721356451511383,
0.09229913353919983,
-0.1410166621208191,
-0.010839816182851791,
0.022102704271674156,
-0.26151564717292786,
-0.44893667101860046,
0.0846838653087616,
0.036822184920310974,
-0.10157199949026108,
0.034956786781549454,
-0.00309159979224205,
-0.2123388797044754,
-0.2890574634075165,
-0.24834974110126495,
0.350886732339859,
0.21041801571846008,
-0.21134595572948456,
0.022354356944561005,
-0.11016280204057693,
0.17632944881916046,
0.2847445011138916,
0.3477299213409424,
-0.06335243582725525,
0.4023628830909729,
-0.46227458119392395,
-0.02749737538397312,
0.04328043386340141,
-0.39233994483947754,
0.11612887680530548,
0.1986759901046753,
-0.17079241573810577,
0.06776119768619537,
0.11512534320354462,
-0.3227120041847229,
0.4243603050708771,
-0.13877156376838684,
0.022962916642427444,
0.007193410769104958,
-0.07570213079452515,
0.21802331507205963,
-0.3226845860481262,
0.0705006867647171,
-0.4101574122905731,
-0.010066226124763489,
-0.18240049481391907,
0.12459517270326614,
-0.06858108192682266,
-0.10549977421760559,
-0.17918583750724792,
0.18547652661800385,
0.2596290409564972,
-0.14453764259815216,
0.25097012519836426,
0.050789572298526764,
-0.14882470667362213,
-0.2530643343925476,
0.09713093936443329,
0.379682719707489,
-0.35043996572494507,
0.043640799820423126,
0.3202689290046692,
0.15157325565814972,
0.1543481945991516,
0.34830713272094727,
-0.3904184103012085,
0.25391900539398193,
-0.34024009108543396,
-0.1352609097957611,
0.741756796836853,
-0.36350947618484497,
-0.1803586781024933,
0.23649249970912933,
-0.05996904894709587,
-0.24980175495147705,
0.31004878878593445,
0.006149282678961754,
-0.0729997381567955,
0.07179410010576248,
0.19283747673034668,
0.1711915135383606,
0.0321158766746521,
-0.1606433391571045,
0.01014808937907219,
-0.028559371829032898,
0.33515894412994385,
-0.025440631434321404,
0.07909856736660004,
0.15702950954437256,
0.2761317491531372,
-0.061923399567604065,
0.4041701853275299,
-0.2901448905467987,
0.18817058205604553,
0.28395307064056396,
0.01803632825613022,
-0.1514427214860916,
0.051078811287879944,
-0.17032065987586975,
-0.21524575352668762,
0.2737482488155365,
0.05890081077814102,
-0.19499336183071136,
0.11007639020681381,
0.016198448836803436,
0.028813272714614868,
-0.14006982743740082,
-0.20779193937778473,
-0.049193818122148514,
0.06504760682582855,
0.12359689921140671,
0.20509368181228638,
-0.27526605129241943,
-0.3432316780090332,
0.053630053997039795,
-0.22693617641925812,
-0.15224215388298035,
-0.5957725644111633,
0.28309366106987,
0.15693402290344238,
-0.18391752243041992,
0.08864542841911316,
0.10523171722888947,
-0.022042930126190186,
-0.34508389234542847,
0.17710885405540466,
0.39114564657211304,
-0.04035606235265732,
0.16954365372657776,
0.18768760561943054,
0.25031089782714844,
0.3719841241836548,
-0.04357641190290451,
0.1544358730316162,
-0.3036028742790222,
0.201995849609375,
-0.16441726684570312,
0.10887905955314636,
0.41755515336990356,
-0.17900027334690094,
0.13908658921718597,
0.294519305229187,
-0.1620006263256073,
0.050043150782585144,
0.03386712446808815,
-0.34560152888298035,
0.09511066973209381,
-0.10286076366901398,
0.02854001149535179,
0.4338840842247009,
-0.22184838354587555,
-0.4662245213985443,
-0.2694393992424011,
0.31250911951065063,
0.09446536004543304,
0.04982760176062584,
-0.03947214037179947,
-0.16150057315826416,
0.007086846977472305,
0.2433333396911621,
-0.2581152319908142,
0.4800899624824524,
0.01307460106909275,
0.242373988032341,
0.006555100902915001,
0.15035298466682434,
0.06433043628931046,
0.19351442158222198,
0.0452767014503479,
0.3508189022541046,
0.1702406257390976,
0.204691544175148,
0.11709923297166824,
-0.04012036323547363,
-0.3137161433696747,
0.01634853333234787,
0.0010912735015153885,
-0.13284333050251007,
0.23851637542247772,
-0.29777762293815613,
0.024162642657756805,
-0.4486702084541321,
-0.1598944067955017,
0.1747913956642151,
0.07700271904468536,
-0.3366314172744751,
0.04925147816538811,
0.4261990189552307,
0.18667709827423096,
0.1212240606546402,
0.0822213739156723,
0.3265719413757324,
-0.11024882644414902,
-0.03547418862581253,
-0.14021067321300507,
0.0021170489490032196,
0.14685751497745514,
0.2564623951911926,
-0.31356698274612427,
0.511441707611084,
0.046542249619960785,
-0.00014880485832691193,
-0.5351336598396301,
-0.12054043263196945,
0.3685363531112671,
-0.1301974207162857,
-0.09732677042484283,
0.2938462495803833,
-0.16013874113559723,
-0.1209714338183403,
-0.1281892955303192,
0.0786626860499382,
-0.24530614912509918,
0.08660990744829178,
-0.11015578359365463,
-0.22115977108478546,
-0.07384070754051208,
0.09101608395576477,
-0.334584504365921,
-0.5138568878173828,
-0.25992351770401,
0.27393627166748047,
0.3042730987071991,
0.1782878339290619,
0.19476400315761566,
0.15139366686344147,
0.41639482975006104,
0.2766895294189453,
0.17466339468955994,
-0.1345503330230713,
-0.5078077912330627,
0.43659237027168274,
-0.4433949887752533,
-0.32233572006225586,
-0.06711137294769287,
-0.08911385387182236,
0.40154486894607544,
0.2927370071411133,
-0.22754189372062683,
-0.09199145436286926,
0.06416291743516922,
0.21968144178390503,
-0.06442606449127197,
0.4492763578891754,
0.37788039445877075,
-0.17479410767555237,
-0.033265020698308945,
-0.04648734629154205,
0.13206735253334045,
-0.018378697335720062,
0.07690892368555069,
0.5140582919120789,
0.4622369110584259,
0.3192087411880493,
0.056448113173246384,
0.7233351469039917,
0.236875981092453,
-0.42316925525665283,
0.4203621447086334,
-0.2912536859512329,
-0.20604471862316132,
-0.14175772666931152,
-0.3200323283672333,
0.11631602793931961,
-0.2672158479690552,
-0.20390981435775757,
0.08295299112796783,
-0.20759212970733643,
-0.45043647289276123,
-0.3630998432636261,
0.1615888923406601,
-0.13454017043113708,
-0.03641260415315628,
-0.0008958578109741211,
-0.44310423731803894,
0.151937797665596,
-0.3746410310268402,
-0.0247340127825737,
-0.14444956183433533,
-0.06649002432823181,
0.0708448737859726,
-0.04811862111091614,
0.026807263493537903,
-0.007490724325180054,
-0.5318666696548462,
-0.07767320424318314,
-0.22263965010643005,
0.28680312633514404,
0.042620256543159485,
0.09285089373588562,
0.3301154673099518,
-0.10337179154157639,
0.13806064426898956,
-0.18110491335391998,
0.5042598843574524,
-0.061723776161670685,
-0.23571665585041046,
-0.027392562478780746,
-0.2021426111459732,
-0.019854698330163956,
0.07301805913448334,
-0.2566607892513275,
0.42140212655067444,
0.3614584803581238,
0.12368764728307724,
-0.13629212975502014,
-0.27268898487091064,
0.10960130393505096,
-0.22791650891304016,
0.1190546303987503,
-0.24915118515491486,
0.08459362387657166,
0.01857505738735199,
-0.2972390353679657,
-0.14717057347297668,
0.08121644705533981,
0.019629251211881638,
0.0006562204798683524,
-0.1931224912405014,
-0.2530003786087036,
0.01501002162694931,
0.17612262070178986,
-0.0630652904510498,
0.13443055748939514,
0.16551999747753143,
0.16402648389339447,
0.3385932445526123,
0.4019484519958496,
0.3491041362285614,
0.4574618339538574,
-0.04971715435385704,
0.12409244477748871,
0.38400799036026,
0.1247086226940155,
0.3458283841609955,
0.12290402501821518,
-0.1199505478143692,
-0.08574787527322769,
-0.3532610535621643,
-0.05420108139514923,
-0.31541070342063904,
-0.009128378704190254,
0.38374143838882446,
-0.0855124294757843,
-0.6794342994689941,
-0.7689774036407471,
0.40150517225265503,
0.22264991700649261,
-0.13364462554454803,
0.34402188658714294,
-0.38198918104171753,
-0.31832820177078247,
-0.09105021506547928,
0.27105191349983215,
0.8402191400527954,
0.032299742102622986,
0.1525251269340515,
0.022631438449025154,
0.33664005994796753,
0.284359335899353,
0.030587516725063324,
0.04688218608498573,
-0.5196399092674255,
-0.13651448488235474,
-0.24166540801525116,
-0.3081584572792053,
0.2897692918777466,
0.27487483620643616,
-0.3071191906929016,
0.4338349401950836,
-0.08967936784029007,
0.2778542935848236,
-0.14435140788555145,
0.29080528020858765,
-0.1449633538722992,
-0.21226024627685547,
-0.3896154463291168,
0.09860849380493164,
0.1021098643541336,
0.11092621088027954,
-0.15673324465751648,
-0.12719331681728363,
0.033391062170267105,
0.04838147759437561,
-0.09175454080104828,
-0.04422835260629654,
-0.5501813888549805,
0.27392327785491943,
0.15985599160194397,
-0.5914470553398132,
0.29468926787376404,
0.676075279712677,
0.1154298186302185,
-0.011979825794696808,
-0.1408446878194809,
0.03844074904918671,
0.20609357953071594,
-0.15621896088123322,
-0.07250861078500748,
0.09753485769033432,
0.47581246495246887,
0.05284398794174194,
0.00484485924243927,
0.42238327860832214,
0.1397077441215515,
-0.009587693959474564,
-0.1689719408750534,
0.1133895292878151,
0.2828722298145294,
-0.27844521403312683,
-0.2333349883556366,
0.3246432840824127,
-0.08050425350666046,
0.015166528522968292,
0.09097594022750854,
0.21670867502689362,
-0.16753773391246796,
0.20515814423561096,
0.10292940586805344,
-0.08481697738170624,
-0.07633097469806671,
0.4706704616546631,
0.12022656947374344,
-0.09813225269317627,
0.2479032278060913,
0.12953829765319824,
-0.1596691906452179,
-0.12347465008497238,
0.25347384810447693,
0.21452908217906952,
-0.14984814822673798,
-0.15393149852752686,
0.07416603714227676,
0.1245177835226059,
0.23289616405963898,
0.28497883677482605,
0.12007086724042892,
0.06644665449857712,
-0.1610541045665741,
-0.1804707944393158,
-0.3888455033302307,
0.06108834221959114,
0.10048425197601318,
0.325347363948822,
0.10528784245252609,
-0.2224455028772354,
0.029328478500247,
0.07683534920215607,
-0.282328337430954,
0.02492402493953705,
0.010996947064995766,
0.1962829977273941,
0.13648508489131927,
-0.10939591377973557,
-0.10343427211046219,
0.13556607067584991,
0.0608205646276474,
0.13723962008953094,
-0.26500892639160156,
-0.195461243391037,
-0.06208476796746254,
0.0954936221241951,
-0.010229941457509995,
-0.17167866230010986,
0.015568333677947521,
-0.4823231101036072,
-0.1556379497051239,
-0.1742752343416214,
0.2260727882385254,
0.09729620069265366,
0.14880302548408508,
0.04383143410086632,
0.24196311831474304,
-0.2362685203552246,
-0.08095008134841919,
-0.05541079491376877,
0.05088271200656891,
-0.15842165052890778,
0.12084925174713135,
0.30512577295303345,
-0.07018417865037918,
-0.27844393253326416,
-0.29765576124191284,
0.162058025598526,
0.4519221782684326,
0.06735031306743622,
0.2465279996395111,
-0.25745195150375366,
0.09971840679645538,
0.09098143130540848,
0.2638574540615082,
0.42302659153938293,
-0.16003569960594177,
0.05205046385526657,
0.12562468647956848,
0.12485996633768082,
-0.09703317284584045,
-0.0173531211912632,
-0.2267063856124878,
0.029307805001735687,
0.1059303730726242,
0.22145377099514008,
0.07976327836513519,
0.18182799220085144,
-0.37657278776168823,
-0.2088659107685089,
0.22121484577655792,
-0.3223404288291931,
0.18886056542396545,
0.3121756613254547,
-0.024801652878522873,
-0.11892606317996979,
0.3131515383720398,
0.47819632291793823,
0.1840549111366272,
0.11278695613145828,
-0.006975084543228149,
0.5928166508674622,
0.25998663902282715,
-0.07004404067993164,
0.18105581402778625,
-0.23844070732593536,
-0.12359507381916046,
0.1346115916967392,
0.07866847515106201,
0.17646774649620056,
-0.13589763641357422,
0.569229006767273,
0.29924410581588745,
-0.16049166023731232,
0.09066382050514221,
0.36865925788879395,
0.11357831209897995,
-0.29992470145225525,
-0.33454084396362305,
-0.23540261387825012,
-0.13830189406871796,
-0.11452814936637878,
-0.2687356472015381,
-0.03433224558830261,
0.3106899857521057,
0.15264835953712463,
0.3058913052082062,
-0.21367786824703217,
0.3738524615764618,
-0.07769648730754852,
0.10088494420051575,
-0.31421664357185364,
0.3480847179889679,
-0.16416440904140472,
0.14375287294387817,
-0.21533799171447754,
0.08323110640048981,
0.25061550736427307,
0.3648098111152649,
-0.14234739542007446,
-0.011288329027593136,
-0.06852886080741882,
-0.11979234218597412,
0.11056244373321533,
0.0994919165968895,
0.025687649846076965,
-0.37523767352104187,
0.5009598135948181,
0.07273493707180023,
-0.0831470862030983,
0.33622774481773376,
0.025489192456007004,
-0.08608999848365784,
-0.5171756744384766,
0.02851458638906479,
-0.0760778933763504,
-0.16160514950752258,
-0.0029653534293174744,
0.03221740573644638,
-0.3494994044303894,
-0.05348004400730133,
0.3596716523170471,
-0.48144787549972534,
0.10965428501367569,
-0.07124405354261398,
0.06761448085308075,
-0.20869259536266327,
0.5480341911315918,
0.21128085255622864,
0.37160709500312805,
-0.043883875012397766,
-0.17019090056419373,
-0.19883963465690613,
-0.06921566277742386,
0.17779815196990967,
0.04276108741760254,
-0.12375923991203308,
0.2416924089193344,
0.03628465160727501,
0.11098091304302216,
-0.00824013352394104,
-0.5410219430923462,
-0.22051551938056946,
0.4227231740951538,
-0.182037353515625,
-0.21949340403079987,
-0.33662062883377075,
0.4020095765590668,
0.08840334415435791,
-0.3076232373714447,
-0.026384767144918442,
-0.30749085545539856,
-0.03617309033870697,
-0.2024131566286087,
0.02370748668909073,
0.024954285472631454,
-0.2743130326271057,
0.5059763193130493,
-0.13715402781963348,
0.39937201142311096,
-0.19356951117515564,
0.11270525306463242,
-0.21254512667655945,
-0.37147387862205505,
0.052838023751974106,
0.37006211280822754,
0.29809436202049255,
0.2023140788078308,
-0.24370507895946503,
-0.07318739593029022,
0.08783910423517227,
0.08885333687067032,
0.11979691684246063,
-0.07435331493616104,
-0.1931866854429245,
-0.23614858090877533,
0.003297664225101471,
-0.05908763036131859,
-0.03591534495353699,
0.6751524209976196,
-0.1143779307603836,
0.21191997826099396,
-0.11916536092758179,
-0.34948715567588806,
0.4321635961532593,
-0.2436608523130417,
-0.16234689950942993,
-0.08970526605844498,
-0.10914427042007446,
0.2427259087562561,
0.013438653200864792,
-0.4573642909526825,
0.09172754734754562,
0.415738582611084,
-0.06913701444864273,
-0.19676098227500916,
0.18735800683498383,
0.28470149636268616,
0.07364706695079803,
-0.16825513541698456,
0.17445823550224304,
-0.1274976134300232,
-0.12218618392944336,
-0.16169562935829163,
-0.34812480211257935
] |
https://github.com/huggingface/datasets/issues/813 | How to implement DistributedSampler with datasets | Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks. | Hi,
I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them.
I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks. | 40 | How to implement DistributedSampler with datasets
Hi,
I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them.
I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks.
Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks. | [
-0.17623046040534973,
-0.2129814475774765,
0.041827816516160965,
0.14582645893096924,
0.2960066795349121,
-0.21450507640838623,
0.20662793517112732,
-0.05965965613722801,
0.07366117835044861,
0.3631313443183899,
-0.1494351327419281,
0.2770119309425354,
-0.3263441026210785,
0.15066102147102356,
-0.02920268103480339,
-0.5932837724685669,
-0.08712036162614822,
0.23080848157405853,
-0.24944552779197693,
-0.0329340398311615,
0.24965250492095947,
-0.0033959802240133286,
-0.1133737564086914,
-0.07345591485500336,
-0.10531823337078094,
-0.1739126592874527,
-0.35901567339897156,
-0.018264465034008026,
-0.1748267412185669,
-0.2580240070819855,
0.43718665838241577,
0.39873141050338745,
0.6609327793121338,
0.4599098861217499,
-0.0001257403491763398,
0.07446138560771942,
0.10183446109294891,
-0.15351641178131104,
-0.25749436020851135,
-0.14249242842197418,
0.05453439801931381,
0.2479480803012848,
0.1367185264825821,
-0.23220473527908325,
-0.1759774088859558,
0.03773646429181099,
0.1900281012058258,
0.02647194266319275,
0.5198241472244263,
-0.14746788144111633,
0.0699760913848877,
-0.052443064749240875,
-0.24222469329833984,
-0.2215251922607422,
-0.19936373829841614,
0.3077504634857178,
-0.04101134464144707,
0.20773836970329285,
0.39817944169044495,
-0.0075885276310145855,
-0.43238991498947144,
-0.024221152067184448,
0.033029571175575256,
0.21756109595298767,
0.007219471037387848,
-0.1358048915863037,
-0.20363137125968933,
-0.23513275384902954,
-0.39698201417922974,
0.16026470065116882,
0.6051856279373169,
-0.2570728063583374,
-0.3713669180870056,
-0.17742878198623657,
-0.2501279413700104,
0.05001881718635559,
-0.19252142310142517,
0.051046326756477356,
-0.1837785542011261,
0.28231436014175415,
-0.1530061960220337,
-0.11604607850313187,
-0.31170469522476196,
0.12746918201446533,
-0.15682923793792725,
0.418639600276947,
-0.1393892616033554,
0.1281801164150238,
0.09365083277225494,
0.20983681082725525,
0.10633794963359833,
0.04158806800842285,
0.2194644808769226,
0.14385610818862915,
-0.2232528179883957,
-0.3640875518321991,
0.00954463705420494,
0.2747446298599243,
0.48821699619293213,
0.5775042772293091,
0.04991603270173073,
-0.09424712508916855,
-0.008049079217016697,
-0.00706317275762558,
0.3743908405303955,
-0.0001499764621257782,
-0.1673378348350525,
0.47950252890586853,
0.022830147296190262,
0.2750387191772461,
-0.026657702401280403,
-0.135481059551239,
-0.16549082100391388,
0.06681570410728455,
0.009090606123209,
-0.14418891072273254,
0.0008440054953098297,
-0.1314394176006317,
0.07698771357536316,
-0.4496326744556427,
0.26520177721977234,
-0.237909734249115,
-0.17900218069553375,
0.17996425926685333,
-0.10001672804355621,
0.07081551849842072,
-0.12669974565505981,
0.13428360223770142,
-0.020694617182016373,
-0.11324650049209595,
-0.1113281100988388,
0.12971217930316925,
-0.2131316363811493,
0.2274453341960907,
-0.007410593330860138,
-0.39208123087882996,
0.37608039379119873,
-0.09818454086780548,
0.35293006896972656,
0.04786492884159088,
0.14216391742229462,
-0.12914873659610748,
-0.1584922969341278,
-0.08737808465957642,
-0.07182370126247406,
0.11390578001737595,
-0.1525045931339264,
0.31687963008880615,
-0.2817801535129547,
0.039124660193920135,
-0.413408488035202,
-0.34019845724105835,
0.1583731472492218,
-0.02311599999666214,
-0.28173696994781494,
-0.22678083181381226,
-0.2778124511241913,
0.20355340838432312,
0.017786942422389984,
0.009934574365615845,
-0.04638177901506424,
-0.05780252069234848,
-0.17427629232406616,
-0.15285634994506836,
0.2357305884361267,
0.40273749828338623,
-0.20606182515621185,
-0.2215585559606552,
-0.0437944233417511,
-0.1560465395450592,
0.3560597896575928,
0.25362494587898254,
-0.17807462811470032,
0.30561506748199463,
-0.18697522580623627,
0.1814306527376175,
0.4120990037918091,
-0.4824192523956299,
-0.4623405337333679,
0.3475456237792969,
-0.17740869522094727,
0.08414194732904434,
0.3403626084327698,
-0.07657869905233383,
0.49556058645248413,
-0.19906148314476013,
-0.3674895465373993,
0.5588451027870178,
-0.21154186129570007,
-0.12844149768352509,
-0.19923166930675507,
-0.21203456819057465,
0.1296750009059906,
0.39947766065597534,
0.09639044106006622,
0.38840392231941223,
0.03291083499789238,
0.09278736263513565,
0.3912802040576935,
-0.011190202087163925,
0.530236005783081,
-0.03982669860124588,
0.16534072160720825,
0.09334106743335724,
0.12600144743919373,
-0.33394792675971985,
0.029170554131269455,
0.08820398896932602,
0.13469198346138,
0.16387039422988892,
0.14311283826828003,
-0.006923666223883629,
0.018116168677806854,
-0.24392564594745636,
-0.440256804227829,
-0.19331009685993195,
-0.06433849036693573,
0.2180052399635315,
0.6305691599845886,
-0.32454684376716614,
-0.32235726714134216,
-0.05644693225622177,
0.09571246802806854,
0.0224034171551466,
-0.3555351793766022,
0.4854137897491455,
0.17501193284988403,
-0.13788624107837677,
-0.062398917973041534,
-0.15493470430374146,
-0.2792487144470215,
-0.3736245632171631,
0.10423481464385986,
0.27545201778411865,
-0.04929124936461449,
0.1374744027853012,
0.24448347091674805,
-0.11446137726306915,
0.11965610086917877,
-0.2800707221031189,
0.14478833973407745,
0.15170203149318695,
0.02629968896508217,
-0.036920517683029175,
0.10565367341041565,
0.4488392472267151,
-0.1263558268547058,
0.1596805304288864,
-0.03176053613424301,
0.12207794934511185,
0.23917153477668762,
-0.06158542260527611,
-0.2905208170413971,
0.09445065259933472,
0.010796450078487396,
-0.28862279653549194,
0.23361696302890778,
-0.18025396764278412,
-0.39409148693084717,
-0.008952759206295013,
-0.1615947037935257,
-0.197767436504364,
0.0055990442633628845,
0.09276746213436127,
-0.05836880952119827,
0.2213355302810669,
0.11539590358734131,
0.22066093981266022,
0.45450347661972046,
0.014322151429951191,
0.12673360109329224,
0.02295674942433834,
0.21725055575370789,
0.03286457434296608,
-0.06222756952047348,
-0.010402493178844452,
-0.07828773558139801,
0.08005523681640625,
-0.23203465342521667,
0.029357846826314926,
0.06923576444387436,
-0.32649049162864685,
-0.03124476969242096,
0.10349921882152557,
-0.015905968844890594,
-0.055841147899627686,
-0.2748687267303467,
-0.12626521289348602,
-0.47737884521484375,
-0.08579843491315842,
0.11581994593143463,
0.28401899337768555,
-0.234359011054039,
0.1120985746383667,
0.2257264256477356,
0.20187638700008392,
0.09996066987514496,
0.6861437559127808,
-0.06811343133449554,
0.29380735754966736,
-0.03799867630004883,
-0.08659098297357559,
0.08617900311946869,
0.03257327526807785,
-0.005466639995574951,
0.017247701063752174,
0.3180839419364929,
-0.10718569904565811,
-0.1507677584886551,
-0.14215704798698425,
0.13965776562690735,
0.15727296471595764,
-0.006113458424806595,
0.19086287915706635,
0.2596522867679596,
0.09427070617675781,
0.014771200716495514,
0.30155524611473083,
-0.014425639994442463,
-0.18509338796138763,
-0.07257141172885895,
0.020059384405612946,
-0.02200154960155487,
0.10534074902534485,
0.07141980528831482,
0.13506987690925598,
-0.5741368532180786,
-0.11031962931156158,
0.15144647657871246,
0.4341517686843872,
0.16206112504005432,
-0.30811333656311035,
0.07415549457073212,
-0.20468220114707947,
-0.08378405123949051,
0.06113872677087784,
0.19346661865711212,
-0.680810809135437,
0.2450161576271057,
-0.23071768879890442,
-0.1710999757051468,
-0.25177001953125,
-0.002217186614871025,
0.021586433053016663,
0.3401458263397217,
-0.21494121849536896,
-0.3724903464317322,
0.16690826416015625,
0.12882333993911743,
0.15068885684013367,
0.4997430145740509,
0.33595913648605347,
0.018559318035840988,
0.2461111694574356,
-0.12614770233631134,
-0.09856116771697998,
0.3742201626300812,
-0.03229450434446335,
0.10802549123764038,
0.35463646054267883,
0.21770009398460388,
-0.06276986747980118,
0.6847826242446899,
0.3673388361930847,
-0.0072777606546878815,
0.25193631649017334,
0.06046399474143982,
-0.37717944383621216,
0.26247692108154297,
0.05321713536977768,
0.38723447918891907,
-0.06926438212394714,
-0.004258040338754654,
0.38966256380081177,
0.06886626034975052,
0.2607913017272949,
-0.3597646951675415,
-0.19888240098953247,
-0.010938569903373718,
0.07322731614112854,
-0.10003168880939484,
-0.26450955867767334,
0.25020545721054077,
-0.3910621404647827,
-0.22631648182868958,
-0.09377139806747437,
0.12065242975950241,
-0.016600530594587326,
0.2696187496185303,
0.4421637952327728,
0.23454619944095612,
-0.3730182349681854,
0.22323490679264069,
-0.2388782799243927,
-0.12379340827465057,
-0.08178001642227173,
-0.015676241368055344,
0.22562627494335175,
0.021743252873420715,
0.31569385528564453,
-0.012642545625567436,
0.3779897093772888,
-0.23378171026706696,
-0.09383299946784973,
-0.4844173192977905,
-0.43113264441490173,
0.11222631484270096,
-0.08733075857162476,
-0.35380399227142334,
0.44627848267555237,
-0.5912218689918518,
0.15685027837753296,
-0.3123331367969513,
-0.15186947584152222,
0.11503834277391434,
-0.004351057577878237,
-0.3764212429523468,
-0.2770942449569702,
-0.11945357918739319,
-0.4327889680862427,
-0.06401146948337555,
-0.11208028346300125,
-0.045089155435562134,
-0.06222863495349884,
-0.04812789708375931,
0.10544593632221222,
-0.2978591322898865,
0.13723689317703247,
0.15048575401306152,
-0.05141737684607506,
0.022347576916217804,
-0.19552786648273468,
0.10630019009113312,
0.37058648467063904,
0.3044505715370178,
0.3851686716079712,
0.4489291310310364,
-0.49124303460121155,
-0.3861004412174225,
-0.04087146371603012,
0.1253974437713623,
0.2308129370212555,
0.008794888854026794,
0.08275012671947479,
0.30020490288734436,
-0.05726451426744461,
-0.06785890460014343,
-0.5000568628311157,
-0.2672553062438965,
0.024462325498461723,
0.02009405568242073,
-0.47282880544662476,
-0.7147168517112732,
0.2241029143333435,
0.1522470861673355,
-0.13680821657180786,
-0.032178379595279694,
-0.06947647035121918,
-0.2612040638923645,
0.2622140049934387,
0.2249399721622467,
0.870749831199646,
-0.1021604984998703,
-0.042065661400556564,
0.07383972406387329,
0.2748678922653198,
0.7067091464996338,
0.31991952657699585,
0.10016471892595291,
-0.28272148966789246,
-0.3105248212814331,
-0.19791211187839508,
-0.11090665310621262,
-0.005718708038330078,
0.5164129734039307,
-0.5429210066795349,
0.36059463024139404,
0.02192806452512741,
-0.0996975302696228,
0.14445392787456512,
0.09366963803768158,
0.13575421273708344,
-0.1352735459804535,
-0.30158621072769165,
0.02539069950580597,
-0.19551678001880646,
0.24856358766555786,
-0.13899248838424683,
-0.26323938369750977,
0.19338402152061462,
0.2051694244146347,
0.20742858946323395,
-0.06681806594133377,
-0.012124532833695412,
-0.10470407456159592,
0.4981997609138489,
-0.08495283871889114,
0.24544301629066467,
0.0036703087389469147,
0.31818991899490356,
-0.25707152485847473,
0.0013377908617258072,
-0.05765402689576149,
-0.10815531760454178,
-0.10825937241315842,
-0.036055270582437515,
0.06418903917074203,
0.43727344274520874,
0.056912101805210114,
-0.22568804025650024,
0.23043763637542725,
0.1575969010591507,
-0.2838330864906311,
-0.17873527109622955,
-0.20391355454921722,
0.15997740626335144,
-0.31951606273651123,
-0.14816831052303314,
-0.022609755396842957,
0.0651274174451828,
-0.03487689420580864,
-0.08008326590061188,
0.3441619873046875,
-0.31701236963272095,
0.3526710569858551,
0.0027459226548671722,
0.10891826450824738,
-0.10811498761177063,
0.2389674186706543,
0.24485307931900024,
-0.06834578514099121,
0.07959361374378204,
-0.1228288859128952,
0.03937695175409317,
0.005526665598154068,
-0.31980863213539124,
0.13805270195007324,
-0.5434175729751587,
0.2638339400291443,
-0.1851094365119934,
0.24794454872608185,
-0.10677175968885422,
0.20948247611522675,
0.263400137424469,
-0.06447862833738327,
-0.21666058897972107,
-0.35314035415649414,
-0.35308918356895447,
-0.15703915059566498,
-0.04424365237355232,
0.12845207750797272,
0.07065122574567795,
0.04631936550140381,
-0.01583508960902691,
0.2757922112941742,
-0.1610548198223114,
-0.10023246705532074,
-0.034160204231739044,
0.10603994876146317,
0.38854238390922546,
0.2384243905544281,
-0.34578052163124084,
0.2648662328720093,
-0.10201267898082733,
0.11184768378734589,
-0.013522868975996971,
0.023610148578882217,
-0.06516414880752563,
0.216843843460083,
0.21072059869766235,
-0.22150768339633942,
-0.08264077454805374,
0.016009528189897537,
-0.1435130387544632,
-0.0845794528722763,
0.181100994348526,
-0.020693838596343994,
-0.14976835250854492,
0.2486894577741623,
0.7305865287780762,
-0.43849894404411316,
-0.4540945887565613,
0.4001857340335846,
0.20967042446136475,
-0.13511289656162262,
0.06734959781169891,
0.3071465790271759,
0.17548954486846924,
-0.20532789826393127,
-0.0024752113968133926,
0.2844797372817993,
0.6360434889793396,
0.10420213639736176,
0.3212507665157318,
-0.24103350937366486,
0.33202892541885376,
-0.010444814339280128,
0.4907318651676178,
0.4158388674259186,
-0.14456340670585632,
0.006138898432254791,
0.3453768491744995,
0.07190869748592377,
-0.06379349529743195,
0.12392809242010117,
0.17775049805641174,
0.16276666522026062,
-0.1147245317697525,
0.5678815841674805,
-0.24392232298851013,
-0.018773123621940613,
-0.3228300213813782,
0.06917712092399597,
0.40235376358032227,
0.19334222376346588,
-0.0950634777545929,
0.3029840290546417,
0.24839071929454803,
0.0796128660440445,
0.27000781893730164,
0.3157452642917633,
0.1950949728488922,
-0.09589985013008118,
-0.20323702692985535,
0.760236382484436,
-0.2201538383960724,
-0.15916892886161804,
-0.029441379010677338,
-0.46861734986305237,
0.3586597442626953,
0.363435834646225,
0.21234838664531708,
-0.06844238191843033,
-0.1370851993560791,
0.5740581154823303,
-0.1270180344581604,
-0.2321830540895462,
-0.002575993537902832,
0.3248000741004944,
0.060699984431266785,
-0.37785303592681885,
-0.34095218777656555,
-0.18541169166564941,
-0.12402462959289551,
0.047657717019319534,
-0.10815057158470154,
0.0553419403731823,
0.5609661340713501,
-0.11904729902744293,
0.07118438184261322,
-0.5261397957801819,
-0.34531623125076294,
0.319418340921402,
0.11496387422084808,
-0.0742407962679863,
0.2584960460662842,
-0.06266094744205475,
0.07442311942577362,
0.1308412104845047,
0.40964755415916443,
0.019416220486164093,
0.24992777407169342,
0.009658681228756905,
0.03828582540154457,
-0.07249358296394348,
0.11483588814735413,
0.0892685130238533,
0.10268452763557434,
-0.29613861441612244,
-0.1933670938014984,
0.4360489249229431,
-0.05942525714635849,
0.023124635219573975,
0.1797007918357849,
0.14177480340003967,
-0.10730339586734772,
-0.4729667901992798,
0.15202806890010834,
0.021126363426446915,
-0.04998055845499039,
0.21130284667015076,
0.12678971886634827,
-0.396258682012558,
-0.058754973113536835,
0.07345294952392578,
-0.5963249802589417,
0.037945717573165894,
-0.1534634679555893,
-0.03253299370408058,
-0.13564272224903107,
0.4952050745487213,
0.47380998730659485,
0.14622469246387482,
-0.11245130747556686,
-0.37794411182403564,
-0.25964781641960144,
0.25360581278800964,
-0.2000001221895218,
-0.3475934863090515,
-0.28606417775154114,
-0.020396985113620758,
0.06257990002632141,
0.1093219593167305,
-0.5165189504623413,
0.26767608523368835,
0.015499605797231197,
0.6406426429748535,
-0.007847622036933899,
-0.3341733515262604,
-0.2320222109556198,
0.4174201190471649,
0.12653495371341705,
-0.19671985507011414,
-0.08519843220710754,
0.1007872149348259,
-0.10882417857646942,
0.07886499166488647,
0.23054024577140808,
0.11266778409481049,
-0.35312196612358093,
0.10948766767978668,
0.12743006646633148,
0.3620074391365051,
-0.059372350573539734,
0.19481897354125977,
0.0756569504737854,
0.1606430560350418,
-0.3826024830341339,
-0.19719088077545166,
0.06561104953289032,
0.07941686362028122,
-0.12152595072984695,
0.15128464996814728,
-0.3343372046947479,
-0.29857200384140015,
0.2322644740343094,
0.17948439717292786,
-0.18850724399089813,
0.01760377176105976,
-0.26116999983787537,
-0.03827745467424393,
0.4513548016548157,
0.27865955233573914,
-0.08302976191043854,
-0.008342902176082134,
-0.1770675778388977,
-0.06894639134407043,
0.24327528476715088,
-0.3367725908756256,
-0.0019331034272909164,
-0.24295170605182648,
-0.03597825765609741,
-0.3963620066642761,
-0.338698148727417,
-0.6620272994041443,
0.15875619649887085,
0.22873607277870178,
-0.007101327180862427,
0.06440161168575287,
0.2964562475681305,
0.2667255103588104,
-0.04617701843380928,
-0.08403509855270386,
0.12056328356266022,
0.06325610727071762,
-0.06286639720201492,
0.021628428250551224,
-0.13021573424339294
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | Hi ! Thanks for reporting :)
I agree these one should be hidden when the logging level is warning, we'll fix that | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 22 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
Hi ! Thanks for reporting :)
I agree these one should be hidden when the logging level is warning, we'll fix that | [
-0.09395572543144226,
-0.13829264044761658,
-0.11098212003707886,
0.11790531873703003,
0.3646462559700012,
0.13861694931983948,
0.3069939911365509,
0.5121562480926514,
0.1688758134841919,
-0.010042369365692139,
0.09551204741001129,
0.06016813963651657,
-0.4101085662841797,
0.05728033185005188,
-0.23605266213417053,
0.2184813916683197,
0.09927032887935638,
-0.11772032082080841,
-0.23109692335128784,
-0.13838359713554382,
-0.04633909836411476,
-0.026428570970892906,
-0.0634162425994873,
0.050245124846696854,
-0.7488371729850769,
-0.12223614007234573,
0.21669059991836548,
0.017117656767368317,
-0.1799691915512085,
-0.4650103747844696,
-0.09187757223844528,
0.20499162375926971,
0.18334560096263885,
0.23775172233581543,
-0.00010856355220312253,
-0.20621250569820404,
0.30495285987854004,
0.0561281219124794,
-0.2948625087738037,
0.3130481541156769,
-0.17657923698425293,
-0.45361003279685974,
0.26463499665260315,
-0.12874990701675415,
-0.032002005726099014,
-0.5764788389205933,
0.12004861980676651,
-0.5471827983856201,
0.19710397720336914,
0.24207788705825806,
0.2531926929950714,
0.17216642200946808,
-0.11710721999406815,
0.18365132808685303,
0.160465806722641,
0.19549459218978882,
-0.046443719416856766,
-0.04269411787390709,
0.2407291829586029,
-0.14497986435890198,
-0.28976669907569885,
0.5247581601142883,
-0.2106172740459442,
-0.09366406500339508,
0.2563077211380005,
0.07429561764001846,
-0.006666488945484161,
-0.4359252154827118,
0.2002311646938324,
0.22936147451400757,
0.2505165934562683,
-0.4348903000354767,
-0.2396632581949234,
-0.539596438407898,
0.15251049399375916,
-0.20230090618133545,
-0.03930389881134033,
0.11880838125944138,
0.025944463908672333,
0.2967512011528015,
-0.316810667514801,
-0.12531685829162598,
0.07272793352603912,
-0.19463448226451874,
0.28145405650138855,
0.09045210480690002,
-0.09544219821691513,
-0.019959717988967896,
0.24265442788600922,
-0.2031737118959427,
-0.0055367182940244675,
0.019085917621850967,
-0.1287659853696823,
0.0733041912317276,
-0.36839914321899414,
-0.17602646350860596,
0.27142253518104553,
0.4546545743942261,
-0.010676287114620209,
0.15692898631095886,
-0.5877218842506409,
0.030809540301561356,
0.14492745697498322,
-0.06871605664491653,
0.2483416497707367,
0.0682763159275055,
0.38152530789375305,
0.4842720627784729,
0.06955018639564514,
0.002366351895034313,
0.21825262904167175,
0.1636326014995575,
0.32791903614997864,
-0.38597142696380615,
0.5891590714454651,
0.09341535717248917,
0.4714004397392273,
-0.24332118034362793,
-0.05034156143665314,
-0.001793835312128067,
-0.09076088666915894,
-0.14494934678077698,
0.09983766078948975,
0.21864944696426392,
0.25736117362976074,
-0.11249233037233353,
-0.020949266850948334,
0.1804550439119339,
-0.17871534824371338,
-0.11130926012992859,
-0.3608376383781433,
0.22656525671482086,
-0.03868832439184189,
0.18143713474273682,
0.1555701643228531,
-0.01320694386959076,
-0.03370486572384834,
0.16456538438796997,
-0.09999638795852661,
-0.006474778056144714,
0.254564493894577,
-0.08882343769073486,
0.11272314935922623,
0.4412611424922943,
-0.21116526424884796,
0.12934648990631104,
0.0744355171918869,
-0.10914371907711029,
-0.21725434064865112,
-0.00957641750574112,
0.02665160968899727,
-0.3440961241722107,
-0.11746641993522644,
0.24349795281887054,
-0.33806169033050537,
0.06317365914583206,
0.04157181456685066,
0.060549959540367126,
0.2659909725189209,
0.26765626668930054,
0.2104022055864334,
-0.17640730738639832,
-0.12357896566390991,
-0.1606825441122055,
0.04692023992538452,
0.7568492293357849,
-0.10104150325059891,
-0.15242516994476318,
-0.15447686612606049,
-0.3426133096218109,
0.3341269791126251,
0.28437772393226624,
0.035680755972862244,
0.28312402963638306,
-0.3132161498069763,
0.11707274615764618,
-0.07237573713064194,
-0.390097051858902,
-0.012004029005765915,
0.3230903148651123,
-0.2881065607070923,
0.10075803846120834,
0.5861544609069824,
0.10280157625675201,
0.0012951125390827656,
-0.23835286498069763,
0.009368441998958588,
-0.16937732696533203,
0.09350462257862091,
-0.057939350605010986,
-0.20757277309894562,
-0.18307015299797058,
-0.015759434551000595,
0.18083100020885468,
-0.10682167112827301,
-0.2202104926109314,
-0.046431176364421844,
0.005320320837199688,
0.34380340576171875,
-0.10566778481006622,
0.0014574015513062477,
0.2216455340385437,
0.2044258415699005,
-0.13549506664276123,
-0.1259177178144455,
-0.13560403883457184,
-0.38639646768569946,
-0.04772134870290756,
-0.08313043415546417,
0.05287060886621475,
-0.4278615713119507,
-0.5052878856658936,
0.08258974552154541,
0.000372912734746933,
-0.18546603620052338,
-0.22810986638069153,
0.13089682161808014,
0.003578178584575653,
-0.21276383101940155,
-0.10323135554790497,
-0.24435466527938843,
0.3279072046279907,
-0.09351455420255661,
0.22454559803009033,
-0.3384841978549957,
-0.3394961357116699,
0.09674108028411865,
-0.12398648262023926,
0.3080798387527466,
0.0880165621638298,
0.3376414477825165,
0.023552238941192627,
0.23049458861351013,
0.2799666225910187,
-0.022796986624598503,
0.6912989020347595,
0.09087928384542465,
0.3066890239715576,
0.05186867341399193,
0.10615803301334381,
0.12134461104869843,
-0.09176306426525116,
-0.20698434114456177,
-0.04157216101884842,
0.017287813127040863,
0.34558066725730896,
0.09090188145637512,
0.029907599091529846,
-0.2113512009382248,
-0.042397696524858475,
-0.120610810816288,
-0.07281212508678436,
-0.12424634397029877,
-0.5477370023727417,
0.3308844566345215,
0.05193108320236206,
0.060607824474573135,
0.26494845747947693,
0.03946860134601593,
0.33602023124694824,
0.4038296341896057,
-0.21072982251644135,
0.12445944547653198,
0.08450059592723846,
0.015938550233840942,
0.04634084552526474,
0.17571207880973816,
0.15417695045471191,
0.1422487050294876,
0.3217693567276001,
0.04952503740787506,
0.23993037641048431,
0.22445249557495117,
-0.20688769221305847,
0.23462903499603271,
0.012448102235794067,
-0.19780299067497253,
-0.04437364637851715,
-0.20632587373256683,
-0.204421728849411,
-0.14085549116134644,
-0.16017559170722961,
-0.3429882526397705,
0.29012781381607056,
-0.39853498339653015,
0.003581864759325981,
-0.3858216404914856,
-0.28592348098754883,
-0.1935073882341385,
0.08093669265508652,
0.08048272132873535,
-0.29558247327804565,
0.2598422169685364,
-0.09686495363712311,
-0.3056240975856781,
0.20365957915782928,
-0.1606089174747467,
0.0606580525636673,
0.1127743124961853,
0.12309505045413971,
-0.18396499752998352,
0.10992918908596039,
-0.03641834110021591,
0.08533032238483429,
0.07215730845928192,
-0.0706835612654686,
0.41715627908706665,
-0.12392042577266693,
-0.053624045103788376,
-0.19751602411270142,
-0.2242770493030548,
-0.032281823456287384,
-0.20841215550899506,
0.029885709285736084,
0.262364000082016,
0.09610026329755783,
0.14628943800926208,
-0.05397265776991844,
-0.32153037190437317,
0.029573330655694008,
0.14257702231407166,
-0.030725501477718353,
-0.1538362205028534,
0.06016874685883522,
-0.16859276592731476,
-0.32983657717704773,
-0.20520445704460144,
-0.24791263043880463,
0.10571971535682678,
-0.025824442505836487,
0.09145258367061615,
0.3211137652397156,
-0.10659842938184738,
0.15683095157146454,
-0.3661251962184906,
0.3012649416923523,
-0.028612574562430382,
-0.27436599135398865,
0.23136146366596222,
0.07944664359092712,
-0.01372263953089714,
0.006579902023077011,
0.00033626332879066467,
-0.3040708303451538,
-0.2560656666755676,
-0.5025678873062134,
-0.10283754765987396,
-0.48061496019363403,
-0.08178949356079102,
-0.11250686645507812,
0.10758184641599655,
0.2545316219329834,
0.2832552194595337,
-0.20986288785934448,
0.06348700076341629,
0.10328826308250427,
-0.041731156408786774,
-0.4492866098880768,
0.19218489527702332,
-0.22490385174751282,
0.25744858384132385,
0.1716228872537613,
0.24377921223640442,
0.6294998526573181,
0.07638105750083923,
-0.06252700090408325,
-0.06628591567277908,
0.520775318145752,
-0.02750921994447708,
-0.2754186987876892,
-0.06888820976018906,
0.233981192111969,
-0.27321088314056396,
0.03312906622886658,
0.028368385508656502,
0.31332919001579285,
0.03145007789134979,
-0.07863712310791016,
0.11964579671621323,
-0.34984591603279114,
-0.032478176057338715,
0.13527002930641174,
-0.12618687748908997,
-0.19916081428527832,
0.2758156359195709,
0.08508670330047607,
-0.12635084986686707,
-0.01749630644917488,
0.3585096001625061,
0.1847478449344635,
-0.019992312416434288,
-0.29381680488586426,
0.1961054652929306,
-0.6184138655662537,
0.2171832174062729,
-0.18617931008338928,
-0.17569540441036224,
-0.2718890309333801,
-0.21144169569015503,
0.055484838783741,
0.35621094703674316,
0.22291356325149536,
-0.14500120282173157,
0.19608169794082642,
0.0035946834832429886,
0.1036258190870285,
-0.23645754158496857,
0.0014581270515918732,
-0.3731633722782135,
0.24737288057804108,
0.5612366199493408,
0.21653875708580017,
-0.1743338257074356,
-0.2276817411184311,
0.20848891139030457,
0.22374774515628815,
0.053588513284921646,
-0.3068559169769287,
-0.29493606090545654,
-0.14525106549263,
-0.33265188336372375,
0.08715616166591644,
0.18666474521160126,
-0.03431506082415581,
-0.266240656375885,
-0.05461876466870308,
0.25020554661750793,
-0.23603597283363342,
0.4416201114654541,
-0.25121980905532837,
0.162615567445755,
0.04650701954960823,
0.21306493878364563,
0.05702955275774002,
0.07404862344264984,
0.1904066503047943,
0.48027801513671875,
0.09432961046695709,
-0.21194928884506226,
-0.1666473150253296,
-0.029910873621702194,
0.20812347531318665,
0.4218255579471588,
-0.283120721578598,
0.20686115324497223,
0.22845415771007538,
0.4665273427963257,
-0.20720741152763367,
0.07177688926458359,
0.24876560270786285,
0.0010954095050692558,
-0.2626175582408905,
-0.02393586002290249,
0.28683561086654663,
0.3003080189228058,
-0.13520358502864838,
0.34848302602767944,
0.22361218929290771,
-0.3694554567337036,
0.03694029152393341,
0.006765797734260559,
0.8249834775924683,
-0.11589173972606659,
0.12409621477127075,
0.034090396016836166,
-0.2363859862089157,
0.4835706949234009,
0.1011437475681305,
-0.07393333315849304,
-0.1816159039735794,
-0.24031023681163788,
0.1836618036031723,
-0.04529541730880737,
0.22296172380447388,
-0.22613681852817535,
-0.10830383002758026,
0.23677678406238556,
-0.5038363933563232,
-0.05483309552073479,
-0.32177773118019104,
0.5082199573516846,
-0.4011695384979248,
-0.12093372642993927,
-0.14829853177070618,
0.10567265748977661,
-0.09436988830566406,
0.20239490270614624,
-0.015598869882524014,
-0.1245628148317337,
0.3061550557613373,
-0.17720964550971985,
-0.19292083382606506,
-0.168296217918396,
0.19284263253211975,
-0.008725818246603012,
-0.25351250171661377,
-0.0676528587937355,
-0.021643806248903275,
0.18624864518642426,
0.23380930721759796,
0.398384690284729,
-0.07481429725885391,
-0.11492472887039185,
0.03965229168534279,
0.15706562995910645,
0.01707994006574154,
0.02755553275346756,
0.39776498079299927,
0.08577477931976318,
-0.26723840832710266,
0.06582122296094894,
0.1803516000509262,
-0.17077012360095978,
-0.22676639258861542,
-0.17777563631534576,
-0.0832260251045227,
-0.26620247960090637,
0.12974245846271515,
0.09296127408742905,
-0.206599161028862,
0.08400869369506836,
0.18873830139636993,
0.44457727670669556,
-0.02162867970764637,
0.18242689967155457,
-0.05483843758702278,
-0.4765104651451111,
-0.39524006843566895,
0.5040402412414551,
0.15104377269744873,
-0.12668082118034363,
0.555683970451355,
0.2504143714904785,
-0.38119059801101685,
-0.35524579882621765,
0.1111970916390419,
0.3435373902320862,
-0.0773274227976799,
0.0663195550441742,
0.23604848980903625,
0.08890144526958466,
0.08911806344985962,
-0.17126259207725525,
0.041853826493024826,
-0.03768830746412277,
-0.041665222495794296,
-0.15878573060035706,
-0.6313865780830383,
0.20760108530521393,
-0.2095310539007187,
0.2792847454547882,
-0.11715929955244064,
-0.003209304064512253,
-0.05828618258237839,
0.06908754259347916,
-0.37415194511413574,
-0.27776655554771423,
0.0515776053071022,
-0.1663174033164978,
0.25836366415023804,
0.048993758857250214,
0.30957603454589844,
-0.056815411895513535,
0.16221384704113007,
-0.1277162879705429,
-0.29461124539375305,
-0.21399801969528198,
0.03178650513291359,
0.0622517466545105,
-0.38520553708076477,
0.034021951258182526,
-0.009654650464653969,
-0.1907471865415573,
0.010017277672886848,
-0.08253297209739685,
0.2864009439945221,
0.5032939314842224,
0.2410668134689331,
0.3299827575683594,
-0.06502775847911835,
-0.17378798127174377,
0.09012433886528015,
-0.378275066614151,
-0.07901941239833832,
-0.01891595870256424,
-0.1019781157374382,
-0.009223125874996185,
-0.08756055682897568,
0.0033160969614982605,
0.04003462567925453,
0.05692001432180405,
0.09824051707983017,
0.2117709219455719,
0.013917449861764908,
0.16335883736610413,
-0.1465502232313156,
0.4369925260543823,
0.3946341574192047,
0.0505322590470314,
-0.2457548975944519,
-0.2233487069606781,
-0.1581209897994995,
0.25089508295059204,
-0.11088275164365768,
-0.11317995935678482,
-0.10438127815723419,
0.3248177468776703,
-0.06886880099773407,
0.38233089447021484,
-0.1952054798603058,
-0.053776517510414124,
0.40824687480926514,
0.18217891454696655,
0.04270030930638313,
-0.3116481900215149,
0.10419107973575592,
-0.1105656623840332,
-0.24897490441799164,
-0.24023549258708954,
0.38374388217926025,
0.209957554936409,
0.18747873604297638,
0.32552850246429443,
-0.25003930926322937,
0.4886868894100189,
-0.08363143354654312,
0.028243251144886017,
-0.12581127882003784,
-0.19165559113025665,
0.12839365005493164,
0.4202001988887787,
-0.3408842384815216,
-0.2257044017314911,
0.10944325476884842,
0.10030661523342133,
0.09106624126434326,
0.1164528876543045,
-0.059287890791893005,
0.020625658333301544,
-0.11056821793317795,
0.0652010440826416,
0.5272231698036194,
0.1469578742980957,
-0.02232053130865097,
-0.14546994864940643,
0.00021144747734069824,
-0.15075132250785828,
0.0020217597484588623,
0.06916025280952454,
-0.07585491240024567,
-0.08886783570051193,
0.39560338854789734,
-0.1575431227684021,
0.554114818572998,
-0.2218860536813736,
-0.16205358505249023,
0.025440238416194916,
0.13491159677505493,
0.2545053958892822,
0.23124545812606812,
0.6053707599639893,
0.3216747045516968,
0.28312182426452637,
0.27450692653656006,
-0.06131729856133461,
0.007472394034266472,
-0.08455043286085129,
0.4589727222919464,
-0.13633231818675995,
0.1556658297777176,
0.12653468549251556,
0.16852296888828278,
-0.18025612831115723,
0.16416975855827332,
0.07891680300235748,
-0.023204904049634933,
-0.19700929522514343,
0.5414174199104309,
0.10354132950305939,
-0.26830193400382996,
-0.22377213835716248,
0.05059300363063812,
-0.2667416036128998,
-0.15998046100139618,
0.3896867632865906,
0.10844527184963226,
0.07840012013912201,
-0.4151425063610077,
0.09780702739953995,
-0.15140964090824127,
0.07097498327493668,
0.2777141034603119,
-0.022612906992435455,
-0.3228413164615631,
0.22790484130382538,
-0.3644593060016632,
0.13530701398849487,
-0.04623987898230553,
-0.2501852214336395,
-0.1109028309583664,
-0.02607664093375206,
-0.14007166028022766,
0.2400045394897461,
0.32846856117248535,
-0.2272973209619522,
-0.05514555424451828,
-0.41290995478630066,
-0.11180488765239716,
-0.029239866882562637,
0.013213299214839935,
-0.05222528427839279,
0.06363809108734131,
-0.0837535411119461,
0.4917406141757965,
-0.5058587193489075,
0.1113726869225502,
-0.10336366295814514,
0.007877171039581299,
0.11511056125164032,
0.24922142922878265,
0.27126795053482056,
0.12121840566396713,
0.20577144622802734,
-0.11389047652482986,
-0.05247659236192703,
-0.3292320966720581,
0.03831913694739342,
-0.2527835965156555,
0.17102420330047607,
0.1203138679265976,
0.13783596456050873,
-0.33076557517051697,
-0.35934415459632874,
-0.22845041751861572,
0.4239186942577362,
-0.04584210366010666,
-0.2112402468919754,
-0.04084950312972069,
0.09432998299598694,
0.23764526844024658,
0.017799265682697296,
0.014066099189221859,
0.15964275598526,
0.09412860870361328,
0.28669628500938416,
-0.08308874815702438,
-0.6573039293289185,
0.584288477897644,
-0.3260943293571472,
-0.08060815930366516,
0.02145535871386528,
0.6829883456230164,
0.2588311433792114,
-0.24251121282577515,
-0.6747084259986877,
0.15404802560806274,
0.16017936170101166,
-0.18865981698036194,
0.008441727608442307,
0.439855694770813,
-0.22759772837162018,
0.017099779099225998,
0.15933790802955627,
0.2672630250453949,
0.12336430698633194,
0.14501966536045074,
0.03842790052294731,
-0.38692742586135864
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | +1, the amount of logging is excessive.
Most of it indeed comes from `filelock.py`, though there are occasionally messages from other sources too. Below is an example (all of these messages were logged after I already called `datasets.logging.set_verbosity_error()`)
```
I1109 21:26:01.742688 139785006901056 filelock.py:318] Lock 139778216292192 released on /home/kitaev/.cache/huggingface/datasets/9ed4f2e133395826175a892c70611f68522c7bc61a35476e8b51a31afb76e4bf.e6f3e3f3e3875a07469d1cfd32e16e1d06b149616b11eef2d081c43d515b492d.py.lock
I1109 21:26:01.747898 139785006901056 filelock.py:274] Lock 139778216290176 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748258 139785006901056 filelock.py:318] Lock 139778216290176 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748412 139785006901056 filelock.py:274] Lock 139778215853024 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748497 139785006901056 filelock.py:318] Lock 139778215853024 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:07:17.029001 140301730502464 filelock.py:274] Lock 140289479304360 acquired on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.029341 140301730502464 filelock.py:318] Lock 140289479304360 released on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.058964 140301730502464 filelock.py:274] Lock 140251889388120 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.060933 140301730502464 filelock.py:318] Lock 140251889388120 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.061067 140301730502464 filelock.py:274] Lock 140296072521488 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.069736 140301730502464 metric.py:400] Removing /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow
I1109 21:07:17.069949 140301730502464 filelock.py:318] Lock 140296072521488 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
``` | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 145 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
+1, the amount of logging is excessive.
Most of it indeed comes from `filelock.py`, though there are occasionally messages from other sources too. Below is an example (all of these messages were logged after I already called `datasets.logging.set_verbosity_error()`)
```
I1109 21:26:01.742688 139785006901056 filelock.py:318] Lock 139778216292192 released on /home/kitaev/.cache/huggingface/datasets/9ed4f2e133395826175a892c70611f68522c7bc61a35476e8b51a31afb76e4bf.e6f3e3f3e3875a07469d1cfd32e16e1d06b149616b11eef2d081c43d515b492d.py.lock
I1109 21:26:01.747898 139785006901056 filelock.py:274] Lock 139778216290176 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748258 139785006901056 filelock.py:318] Lock 139778216290176 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748412 139785006901056 filelock.py:274] Lock 139778215853024 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748497 139785006901056 filelock.py:318] Lock 139778215853024 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:07:17.029001 140301730502464 filelock.py:274] Lock 140289479304360 acquired on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.029341 140301730502464 filelock.py:318] Lock 140289479304360 released on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.058964 140301730502464 filelock.py:274] Lock 140251889388120 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.060933 140301730502464 filelock.py:318] Lock 140251889388120 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.061067 140301730502464 filelock.py:274] Lock 140296072521488 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.069736 140301730502464 metric.py:400] Removing /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow
I1109 21:07:17.069949 140301730502464 filelock.py:318] Lock 140296072521488 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
``` | [
-0.07459424436092377,
-0.03153740614652634,
-0.05137292668223381,
0.13141745328903198,
0.2844706177711487,
0.21792852878570557,
0.2618088722229004,
0.4838850796222687,
0.051746007055044174,
-0.17403362691402435,
0.10809904336929321,
0.01367170736193657,
-0.4307378828525543,
-0.0791788399219513,
-0.15349827706813812,
0.18969488143920898,
0.08666546642780304,
-0.2138255536556244,
-0.26654499769210815,
-0.08118029683828354,
0.034307561814785004,
0.0029079578816890717,
0.06775841116905212,
0.07365429401397705,
-0.8763466477394104,
-0.15772613883018494,
0.1634812355041504,
0.04119867831468582,
-0.13455848395824432,
-0.3958105444908142,
-0.11704150587320328,
0.21720269322395325,
0.1443825662136078,
0.22530493140220642,
-0.00011298509343760088,
-0.24672073125839233,
0.25067657232284546,
0.09044942259788513,
-0.35062599182128906,
0.37973737716674805,
-0.07836025208234787,
-0.4808189570903778,
0.25776195526123047,
-0.09239592403173447,
0.11044991761445999,
-0.5984713435173035,
0.15237213671207428,
-0.5589925646781921,
0.23843176662921906,
0.2718779742717743,
0.1834261417388916,
0.151607945561409,
0.0547521598637104,
0.0827171802520752,
0.1596710979938507,
0.30575504899024963,
0.05173903703689575,
0.020801987498998642,
0.3077189028263092,
-0.12238432466983795,
-0.28753262758255005,
0.44295430183410645,
-0.1540035903453827,
-0.1464921087026596,
0.3328671157360077,
-0.02424805611371994,
-0.05486511439085007,
-0.3220506012439728,
0.203245609998703,
0.3037864565849304,
0.2530049681663513,
-0.4261765778064728,
-0.33716946840286255,
-0.6361058354377747,
0.148800328373909,
-0.10595913231372833,
-0.07728410512208939,
0.12713535130023956,
-0.025131460279226303,
0.31213656067848206,
-0.1953439563512802,
-0.17197762429714203,
0.12325650453567505,
-0.22169677913188934,
0.2597731649875641,
-0.005338877439498901,
-0.06399530917406082,
-0.027045540511608124,
0.3266192674636841,
-0.14457525312900543,
-0.03019675612449646,
0.03247590363025665,
-0.13136671483516693,
-0.04204411059617996,
-0.4276966154575348,
-0.07212531566619873,
0.3259897828102112,
0.39037367701530457,
0.007360752671957016,
0.16435116529464722,
-0.5164458751678467,
0.050092704594135284,
0.1268523633480072,
-0.1393422782421112,
0.36067378520965576,
0.08566774427890778,
0.2658693492412567,
0.5355192422866821,
0.011528443545103073,
-0.07765980809926987,
0.18877927958965302,
0.18499642610549927,
0.35286250710487366,
-0.41278234124183655,
0.6333889365196228,
-0.04390907287597656,
0.38816553354263306,
-0.18327055871486664,
-0.05608874931931496,
0.07869619876146317,
-0.1461774706840515,
-0.07090064138174057,
0.13230305910110474,
0.11573022603988647,
0.18939045071601868,
-0.11162791401147842,
-0.032627999782562256,
0.21614013612270355,
-0.18187014758586884,
-0.09525138884782791,
-0.25708097219467163,
0.29128724336624146,
-0.0619751401245594,
0.23724356293678284,
0.13155151903629303,
-0.09192200005054474,
-0.1203426793217659,
0.15080641210079193,
-0.19845212996006012,
-0.14331194758415222,
0.14493244886398315,
-0.0918431431055069,
0.05441012978553772,
0.25324052572250366,
-0.16342879831790924,
0.1583191305398941,
0.10938441753387451,
-0.09304378926753998,
-0.2132110893726349,
-0.1570730209350586,
-0.002967923879623413,
-0.41977187991142273,
-0.15087483823299408,
0.17698533833026886,
-0.36092931032180786,
0.12281551957130432,
0.05733155459165573,
0.0382685549557209,
0.20154345035552979,
0.21921274065971375,
0.12701280415058136,
-0.1874305009841919,
0.04740225151181221,
-0.09192631393671036,
0.06884734332561493,
0.8149480223655701,
-0.1338517814874649,
-0.11494198441505432,
-0.19923675060272217,
-0.2495591938495636,
0.21149462461471558,
0.3670789301395416,
0.08831150084733963,
0.45359504222869873,
-0.27581098675727844,
0.1275879442691803,
-0.13108563423156738,
-0.3799779713153839,
-0.05293770879507065,
0.2603453993797302,
-0.34332531690597534,
0.13159622251987457,
0.5908985137939453,
0.17577078938484192,
0.09650224447250366,
-0.15540064871311188,
0.19577854871749878,
-0.19101400673389435,
0.12595275044441223,
-0.14103400707244873,
-0.13252177834510803,
-0.1077742725610733,
-0.14863641560077667,
0.2916974425315857,
-0.15313012897968292,
-0.3589290678501129,
0.05633915215730667,
0.1525658369064331,
0.28836506605148315,
-0.17124909162521362,
-0.05819860100746155,
0.3116375803947449,
0.17867767810821533,
0.026767339557409286,
-0.17985175549983978,
-0.10121884196996689,
-0.3404594361782074,
-0.053014859557151794,
-0.12267205119132996,
-0.03831213712692261,
-0.47330182790756226,
-0.38945478200912476,
0.07731377333402634,
0.08421178162097931,
-0.14817242324352264,
-0.1231566071510315,
0.08246321976184845,
0.16497516632080078,
-0.22239382565021515,
-0.11057297885417938,
-0.17339640855789185,
0.5379334092140198,
-0.2286853790283203,
0.2063635140657425,
-0.39146241545677185,
-0.32226815819740295,
0.16216659545898438,
-0.2050783485174179,
0.37686845660209656,
0.23217076063156128,
0.12375635653734207,
-0.04487135261297226,
0.3035089075565338,
0.29356956481933594,
0.11051890254020691,
0.7735787034034729,
0.15060342848300934,
0.28286850452423096,
0.04505138844251633,
0.03711162880063057,
0.0559084489941597,
-0.10277141630649567,
-0.20857512950897217,
-0.06228497251868248,
-0.11439520865678787,
0.27692848443984985,
0.06412039697170258,
0.013107270002365112,
-0.1927531361579895,
0.017503878101706505,
-0.060406941920518875,
-0.0479673370718956,
-0.15715396404266357,
-0.46947580575942993,
0.3884257972240448,
0.03541973605751991,
0.15134349465370178,
0.3073643743991852,
0.09335818886756897,
0.2709864675998688,
0.380700945854187,
-0.32041117548942566,
0.21586710214614868,
0.18951603770256042,
-0.03378937393426895,
-0.05324314162135124,
0.09269357472658157,
0.17289724946022034,
0.14856815338134766,
0.25630202889442444,
0.06063894182443619,
0.21340766549110413,
0.270539253950119,
-0.15009824931621552,
0.20709656178951263,
-0.0006098151206970215,
-0.23615828156471252,
-0.031083732843399048,
-0.1758473962545395,
-0.10369326919317245,
-0.09507037699222565,
-0.12842893600463867,
-0.33637121319770813,
0.35295015573501587,
-0.4624253213405609,
0.06963062286376953,
-0.4349552094936371,
-0.11109056323766708,
-0.2090223729610443,
0.22916164994239807,
0.06480233371257782,
-0.45131275057792664,
0.1271878331899643,
-0.027210135012865067,
-0.23790347576141357,
0.056979842483997345,
-0.06790919601917267,
0.08435013890266418,
0.21016831696033478,
0.017513232305645943,
-0.08165789395570755,
-0.08848108351230621,
-0.10318798571825027,
0.0086282417178154,
0.14402781426906586,
-0.020474525168538094,
0.3767584562301636,
-0.17952880263328552,
0.030474063009023666,
-0.26233232021331787,
-0.23682600259780884,
-0.03198860585689545,
-0.11962127685546875,
0.11114972084760666,
0.314639687538147,
0.11304733902215958,
0.0980319231748581,
-0.10441756248474121,
-0.3348390758037567,
0.07842689752578735,
0.15604466199874878,
0.05410068482160568,
-0.2534640431404114,
-0.05490419268608093,
0.02376513183116913,
-0.2233605682849884,
-0.29454612731933594,
-0.2709878981113434,
0.26209306716918945,
-0.05070892348885536,
0.025469515472650528,
0.37995484471321106,
-0.0819750502705574,
0.2585391402244568,
-0.48554036021232605,
0.47204315662384033,
0.03245353698730469,
-0.19486932456493378,
0.24672463536262512,
0.1571182906627655,
-0.018105320632457733,
-0.02502688392996788,
0.03431173786520958,
-0.36092835664749146,
-0.19471515715122223,
-0.5805233120918274,
-0.06692582368850708,
-0.41844844818115234,
-0.07790985703468323,
-0.054952770471572876,
0.19386141002178192,
0.19249039888381958,
0.2107669860124588,
-0.14804798364639282,
0.16881611943244934,
0.05953152850270271,
0.014063537120819092,
-0.3548661470413208,
0.18526071310043335,
-0.2460646629333496,
0.17794889211654663,
0.26438817381858826,
0.18771304190158844,
0.727731466293335,
0.03530352935194969,
-0.04184306412935257,
-0.12230599671602249,
0.6265467405319214,
-0.10646366328001022,
-0.3333909213542938,
-0.03439198061823845,
0.1379607617855072,
-0.2627513110637665,
0.029381997883319855,
0.0989602729678154,
0.43340760469436646,
0.0009448342025279999,
-0.14642705023288727,
0.03779395669698715,
-0.5074546933174133,
0.05417527258396149,
0.17588794231414795,
0.03158202022314072,
-0.20654630661010742,
0.30238139629364014,
0.03839868679642677,
-0.17403119802474976,
0.05838899686932564,
0.33135873079299927,
0.19770494103431702,
0.001887078513391316,
-0.2859821617603302,
0.19398874044418335,
-0.47525447607040405,
0.31707069277763367,
-0.18663758039474487,
-0.05709155648946762,
-0.37112921476364136,
-0.17165398597717285,
-0.02793038636445999,
0.28965428471565247,
0.11757390946149826,
-0.01375335268676281,
0.10209447145462036,
-0.12675610184669495,
0.14490996301174164,
-0.3711961805820465,
0.01835354045033455,
-0.3257528245449066,
0.18763481080532074,
0.5697364807128906,
0.24303047358989716,
-0.26586249470710754,
-0.028630472719669342,
0.04512893408536911,
0.2988789975643158,
-0.025916440412402153,
-0.25424790382385254,
-0.014869675040245056,
-0.21852144598960876,
-0.2875649034976959,
0.014141201972961426,
0.0502200573682785,
0.0327838659286499,
0.11819306015968323,
-0.04664034768939018,
0.2007245421409607,
-0.24781259894371033,
0.43090158700942993,
-0.287055641412735,
0.22009214758872986,
-0.01096766721457243,
0.1372254341840744,
0.0054600052535533905,
0.06652698665857315,
0.21362899243831635,
0.39954274892807007,
0.09923265874385834,
-0.16748583316802979,
-0.1256909966468811,
-0.10755240172147751,
0.1943858414888382,
0.47592854499816895,
-0.2531186044216156,
0.11031149327754974,
0.25239863991737366,
0.36253267526626587,
-0.259071409702301,
0.1302042305469513,
0.30830660462379456,
0.05625765770673752,
-0.2572057545185089,
-0.0783732607960701,
0.17770400643348694,
0.37568899989128113,
-0.056673262268304825,
0.3477584421634674,
0.28917527198791504,
-0.34659525752067566,
0.040070343762636185,
0.05031610652804375,
0.8999297022819519,
-0.0925031453371048,
0.11473770439624786,
0.11900205910205841,
-0.26703840494155884,
0.5149235129356384,
0.015337266027927399,
-0.13426299393177032,
-0.08837461471557617,
-0.2309797704219818,
0.21347637474536896,
-0.12057957053184509,
0.22709345817565918,
-0.20720241963863373,
-0.04721708595752716,
0.18169283866882324,
-0.5165390372276306,
-0.15731368958950043,
-0.33180904388427734,
0.5256656408309937,
-0.48855042457580566,
-0.20178650319576263,
-0.2265622913837433,
0.09994871914386749,
-0.12947173416614532,
0.08254832029342651,
0.013237567618489265,
-0.11969000101089478,
0.3383234441280365,
-0.10663218051195145,
-0.35346347093582153,
-0.24319273233413696,
0.22967422008514404,
-0.06424291431903839,
-0.17783232033252716,
0.005114473402500153,
-0.09523548185825348,
0.08437108993530273,
0.18775731325149536,
0.42908358573913574,
-0.003918292000889778,
-0.08739034831523895,
-0.04802011698484421,
0.16648195683956146,
0.14776398241519928,
-0.07885200530290604,
0.4667826294898987,
0.12068387120962143,
-0.14232590794563293,
0.043677181005477905,
0.14458738267421722,
-0.27513566613197327,
-0.12258491665124893,
-0.21056251227855682,
-0.11631761491298676,
-0.1738653928041458,
0.05482277274131775,
0.1270003318786621,
-0.3204523026943207,
0.16296957433223724,
0.1537240892648697,
0.5195235013961792,
-0.07847540080547333,
0.22953489422798157,
-0.3311520218849182,
-0.4457036852836609,
-0.33629462122917175,
0.43382662534713745,
-0.02390502765774727,
-0.17914621531963348,
0.5448346138000488,
0.3414294719696045,
-0.3074028491973877,
-0.2703460156917572,
0.22223341464996338,
0.4122692942619324,
-0.11888045072555542,
-0.012039334513247013,
0.12023907154798508,
0.11677981913089752,
0.13986656069755554,
-0.18416544795036316,
0.24816109240055084,
-0.04164484143257141,
-0.031138116493821144,
-0.21106716990470886,
-0.5866542458534241,
0.22378896176815033,
-0.07959035038948059,
0.2755914330482483,
-0.04282832145690918,
-0.0358392708003521,
-0.1454816460609436,
0.16870072484016418,
-0.31603169441223145,
-0.36707934737205505,
0.04134501516819,
-0.1166430115699768,
0.38348618149757385,
-0.10878681391477585,
0.25679904222488403,
-0.15507175028324127,
0.14988066256046295,
-0.08771480619907379,
-0.23344513773918152,
-0.15530794858932495,
-0.04794012010097504,
0.06707775592803955,
-0.29719361662864685,
0.08072437345981598,
0.023491907864809036,
-0.32905787229537964,
0.025459598749876022,
-0.2064298838376999,
0.12088310718536377,
0.5310436487197876,
0.1693325638771057,
0.10673996806144714,
-0.13821029663085938,
-0.10640648752450943,
0.0611087828874588,
-0.4175785779953003,
-0.04769694805145264,
0.03172002732753754,
-0.010250039398670197,
-0.042482152581214905,
-0.08302037417888641,
-0.011373117566108704,
-0.17951060831546783,
0.23157015442848206,
0.2190892994403839,
0.07272674143314362,
0.027221236377954483,
0.1846977025270462,
-0.1117708683013916,
0.4301353394985199,
0.4489693343639374,
0.10831268876791,
-0.16536574065685272,
-0.1348164677619934,
-0.13610637187957764,
0.16622625291347504,
-0.015243669971823692,
-0.16493433713912964,
-0.1768234819173813,
0.2942757308483124,
-0.17068703472614288,
0.3220426142215729,
-0.14764072000980377,
-0.11591315269470215,
0.230276420712471,
0.16601496934890747,
0.08980099111795425,
-0.2617785334587097,
0.18572843074798584,
-0.008595626801252365,
-0.2405252754688263,
-0.21373675763607025,
0.30523189902305603,
0.20499694347381592,
0.19118410348892212,
0.3457421660423279,
-0.35344648361206055,
0.4051070511341095,
-0.16047117114067078,
0.03632935509085655,
0.03165965899825096,
-0.1979001760482788,
0.20811113715171814,
0.44159993529319763,
-0.18586865067481995,
-0.09132256358861923,
-0.010175622999668121,
0.12988662719726562,
-0.05197102203965187,
0.18386201560497284,
-0.16898111999034882,
0.1603250801563263,
-0.08874810487031937,
0.13979896903038025,
0.5731912851333618,
0.12163970619440079,
-0.026440396904945374,
-0.08529172837734222,
0.008286755532026291,
-0.21317653357982635,
-0.11582666635513306,
0.14469629526138306,
-0.12492802739143372,
-0.17002572119235992,
0.2997601330280304,
-0.22380688786506653,
0.5274558663368225,
-0.292784720659256,
-0.1664266437292099,
0.07054030895233154,
0.052305012941360474,
0.24411122500896454,
0.20154969394207,
0.6094141602516174,
0.2762208580970764,
0.28369367122650146,
0.3810276985168457,
-0.05565742775797844,
0.0009149443358182907,
-0.08819703012704849,
0.39486780762672424,
-0.20489287376403809,
0.021859411150217056,
0.11504264175891876,
0.1665734201669693,
-0.18449440598487854,
0.1279636025428772,
-0.021736208349466324,
0.08724987506866455,
-0.2614971101284027,
0.5596359968185425,
0.07698553800582886,
-0.1684877872467041,
-0.20723862946033478,
0.1250966191291809,
-0.27939334511756897,
-0.2924647629261017,
0.43318572640419006,
0.1771562397480011,
0.04257459193468094,
-0.3949587941169739,
0.07022569328546524,
-0.18250581622123718,
0.16417798399925232,
0.37757909297943115,
-0.10038744658231735,
-0.3024153411388397,
0.21739383041858673,
-0.3926463723182678,
0.07196909189224243,
-0.06926222145557404,
-0.3006959557533264,
-0.04507329314947128,
-0.05409027636051178,
-0.08683503419160843,
0.27865540981292725,
0.2691422700881958,
-0.27314493060112,
-0.12384448200464249,
-0.3865232765674591,
-0.07905038446187973,
-0.0171065554022789,
0.16888514161109924,
-0.07702118158340454,
0.0011860355734825134,
-0.015831805765628815,
0.537428081035614,
-0.523034393787384,
0.10718251019716263,
-0.025707677006721497,
-0.06058494374155998,
0.009846150875091553,
0.2962513864040375,
0.20232020318508148,
0.09592737257480621,
0.18490570783615112,
-0.07118378579616547,
-0.12876635789871216,
-0.47693926095962524,
-0.006059314589947462,
-0.1987171322107315,
0.2148762047290802,
0.022325530648231506,
0.1559688001871109,
-0.27972176671028137,
-0.45306164026260376,
-0.28878292441368103,
0.45501577854156494,
-0.00726902112364769,
-0.3219812512397766,
-0.07488355040550232,
0.022479338571429253,
0.13118594884872437,
0.0952373743057251,
0.24878399074077606,
0.2188137173652649,
0.13110020756721497,
0.3162854313850403,
-0.10643941909074783,
-0.5914750099182129,
0.4044467806816101,
-0.4396307170391083,
-0.0449230931699276,
0.05108940228819847,
0.6391752362251282,
0.21683281660079956,
-0.23731428384780884,
-0.4576917588710785,
0.13112109899520874,
0.16097363829612732,
-0.20208242535591125,
0.041087064892053604,
0.3844127357006073,
-0.20666883885860443,
-0.0029248110949993134,
0.13180296123027802,
0.19157004356384277,
0.17706915736198425,
0.062466591596603394,
0.05416392907500267,
-0.33146482706069946
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | In the latest version of the lib the logs about locks are at the DEBUG level so you won't see them by default.
Also `set_verbosity_warning` does take into account these logs now.
Can you try to update the lib ?
```
pip install --upgrade datasets
``` | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 46 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
In the latest version of the lib the logs about locks are at the DEBUG level so you won't see them by default.
Also `set_verbosity_warning` does take into account these logs now.
Can you try to update the lib ?
```
pip install --upgrade datasets
``` | [
-0.38420048356056213,
-0.12105709314346313,
-0.07823027670383453,
0.12130692601203918,
0.30270540714263916,
0.01852095127105713,
0.19532492756843567,
0.3992016315460205,
0.2092474400997162,
-0.0036372244358062744,
0.08699505776166916,
0.22930032014846802,
-0.3797934949398041,
-0.05430816113948822,
-0.19467203319072723,
0.12470860779285431,
0.059584956616163254,
-0.012090764939785004,
-0.2965027391910553,
-0.054845042526721954,
-0.00475851446390152,
0.17238056659698486,
-0.042692285031080246,
-0.042226940393447876,
-0.6513227820396423,
-0.0713219940662384,
0.22961869835853577,
0.09828042984008789,
-0.3177294135093689,
-0.5122997760772705,
0.0021840669214725494,
0.3213413655757904,
0.09339532256126404,
0.34806913137435913,
-0.00011145612370455638,
-0.20080743730068207,
0.3850497007369995,
0.08131533116102219,
-0.3874274492263794,
0.15845300257205963,
-0.12737536430358887,
-0.6889067888259888,
0.3180121183395386,
-0.1518697738647461,
-0.013295378535985947,
-0.39146581292152405,
0.1741172969341278,
-0.4228617548942566,
0.3276726007461548,
0.22036367654800415,
0.2372915893793106,
0.2560487389564514,
0.1950724571943283,
-0.06566838920116425,
0.16965463757514954,
0.12763339281082153,
-0.1257704347372055,
0.06135113909840584,
0.39562898874282837,
0.021628176793456078,
-0.215338796377182,
0.4811875820159912,
-0.21724361181259155,
-0.01822766661643982,
0.15973849594593048,
0.06849105656147003,
-0.19424158334732056,
-0.2886529564857483,
0.20932984352111816,
0.335280179977417,
0.29715973138809204,
-0.4165317714214325,
-0.41689538955688477,
-0.4985828399658203,
0.10360608249902725,
-0.14005351066589355,
0.012078389525413513,
0.039966877549886703,
-0.04327560216188431,
0.26323482394218445,
-0.23672768473625183,
-0.2274615615606308,
0.11784863471984863,
-0.08803755044937134,
0.367496520280838,
0.015248522162437439,
-0.12001398205757141,
-0.06434329599142075,
0.3860507309436798,
-0.19223827123641968,
-0.08389785140752792,
0.23202259838581085,
-0.16486914455890656,
-0.0848817378282547,
-0.3075750768184662,
-0.005967523902654648,
0.26175811886787415,
0.5459193587303162,
0.017349548637866974,
0.23180490732192993,
-0.4413783848285675,
0.1197400763630867,
0.17550820112228394,
-0.07728264480829239,
0.12950216233730316,
0.09514787793159485,
0.2877976596355438,
0.4277957081794739,
0.13004693388938904,
0.11008771508932114,
0.06668901443481445,
0.06800878793001175,
0.36308738589286804,
-0.4080972373485565,
0.48650795221328735,
0.009688262827694416,
0.4269075393676758,
-0.2582695782184601,
0.013898352161049843,
0.011720754206180573,
0.021114736795425415,
-0.14056485891342163,
0.08850455284118652,
0.323678582906723,
0.03895764797925949,
-0.1044980064034462,
0.032559625804424286,
0.14725017547607422,
-0.31505700945854187,
-0.012561673298478127,
-0.2725060284137726,
0.1832265704870224,
-0.10483355820178986,
0.1756085604429245,
0.1836133599281311,
-0.15657559037208557,
0.22223946452140808,
0.2806105315685272,
-0.047044865787029266,
-0.01097843423485756,
0.08083181828260422,
0.055573370307683945,
-0.03644409030675888,
0.36218947172164917,
-0.11342975497245789,
0.10943242162466049,
-0.004141185432672501,
-0.12164255231618881,
-0.16174480319023132,
-0.09085343033075333,
0.020026065409183502,
-0.33120155334472656,
-0.2264629453420639,
0.18025994300842285,
-0.320067822933197,
0.0009689144790172577,
0.12560220062732697,
0.04056215286254883,
0.17517894506454468,
0.01968240737915039,
0.11856074631214142,
-0.244959756731987,
0.02201499417424202,
-0.12129433453083038,
0.1891784518957138,
0.712480366230011,
-0.11605493724346161,
-0.10595440864562988,
-0.214663565158844,
-0.28462350368499756,
0.1850433349609375,
0.20230473577976227,
0.07739631086587906,
0.14506664872169495,
-0.16170236468315125,
0.050767362117767334,
-0.03737447410821915,
-0.48247209191322327,
-0.27557918429374695,
0.1520286202430725,
-0.15363484621047974,
0.023588834330439568,
0.5440295338630676,
0.1484094113111496,
0.14242246747016907,
-0.06620359420776367,
-0.09974871575832367,
-0.21157103776931763,
0.1937682032585144,
-0.15890911221504211,
-0.1838151216506958,
-0.16170692443847656,
-0.19492574036121368,
0.1878439337015152,
-0.1351664513349533,
-0.24372944235801697,
0.05797513574361801,
0.25881171226501465,
0.2267545759677887,
-0.10322342813014984,
-0.14164741337299347,
0.37220412492752075,
0.32567402720451355,
0.12426316738128662,
-0.14124202728271484,
-0.21584248542785645,
-0.4205310344696045,
0.023169077932834625,
-0.06521135568618774,
0.06385623663663864,
-0.3778136968612671,
-0.362758994102478,
-0.05196112394332886,
0.07101574540138245,
-0.15085457265377045,
-0.20551197230815887,
0.10374556481838226,
0.1855565309524536,
-0.06404697149991989,
-0.008680090308189392,
-0.23169073462486267,
0.48919424414634705,
-0.1248554214835167,
0.2356145828962326,
-0.4816491901874542,
-0.28077027201652527,
-0.023193592205643654,
-0.26563987135887146,
0.2748297154903412,
0.2632429897785187,
0.14869952201843262,
-0.027144672349095345,
0.17570585012435913,
0.38045167922973633,
0.029885055497288704,
0.6424677968025208,
-0.013993442058563232,
0.1570061296224594,
0.03260616585612297,
0.10463078320026398,
0.14064377546310425,
-0.12516625225543976,
-0.2521865963935852,
0.03024774044752121,
-0.01970738172531128,
0.27084457874298096,
0.01901809126138687,
0.022034935653209686,
-0.14443737268447876,
-0.03262227773666382,
-0.030790895223617554,
-0.10973455011844635,
-0.12635335326194763,
-0.4837382137775421,
0.4376622438430786,
-0.028498027473688126,
0.22038321197032928,
0.1991182118654251,
-0.057332880795001984,
0.19227853417396545,
0.550957441329956,
-0.10268509387969971,
0.21221524477005005,
0.15746550261974335,
0.0063919201493263245,
0.06183933466672897,
0.19044947624206543,
0.17449553310871124,
0.20847100019454956,
0.3503154516220093,
0.011670172214508057,
0.20738448202610016,
0.11127270013093948,
-0.18604157865047455,
0.18649831414222717,
-0.05092082917690277,
-0.3102308511734009,
0.03561981022357941,
-0.19389867782592773,
-0.17168419063091278,
-0.22919920086860657,
-0.06392865628004074,
-0.401371568441391,
0.3197188377380371,
-0.3461950421333313,
-0.08563356846570969,
-0.4944000542163849,
-0.045920319855213165,
-0.1702394038438797,
-0.005961697548627853,
0.008713455870747566,
-0.3549369275569916,
0.22532112896442413,
0.054603900760412216,
-0.1508045792579651,
0.20467855036258698,
-0.03111836686730385,
-0.0979536920785904,
0.06765138357877731,
0.04171593859791756,
-0.18862700462341309,
-0.016510650515556335,
-0.1442105770111084,
0.02593187615275383,
0.09925477206707001,
0.011595936492085457,
0.369841992855072,
-0.18252240121364594,
0.007197503000497818,
-0.21612855792045593,
-0.3328985273838043,
-0.08649805188179016,
-0.31661397218704224,
0.2226390689611435,
0.3451015055179596,
0.21870020031929016,
0.11864744126796722,
-0.07335212826728821,
-0.09377872943878174,
-0.02639824151992798,
0.035233743488788605,
-0.06868185847997665,
-0.15680983662605286,
-0.05603596940636635,
-0.10928769409656525,
-0.44986894726753235,
-0.2963135540485382,
-0.40606051683425903,
0.333810031414032,
-0.003132060170173645,
0.08612246811389923,
0.3134586215019226,
0.07368674874305725,
0.267902135848999,
-0.45394861698150635,
0.4992463290691376,
0.0025511200074106455,
-0.20840944349765778,
0.24330006539821625,
0.02370406500995159,
-0.0945894867181778,
-0.015724539756774902,
0.12617410719394684,
-0.20337453484535217,
-0.29799526929855347,
-0.47415977716445923,
-0.21524913609027863,
-0.43983882665634155,
0.048287395387887955,
-0.039397820830345154,
0.2068231999874115,
0.3207937180995941,
0.18732407689094543,
-0.1971336305141449,
-0.020514119416475296,
0.0013086125254631042,
-0.03307212144136429,
-0.36988845467567444,
0.20655548572540283,
-0.17432695627212524,
0.29022538661956787,
0.07092994451522827,
0.28904831409454346,
0.6024171710014343,
-0.009356454014778137,
0.052062492817640305,
-0.18855111300945282,
0.6065214276313782,
-0.21014100313186646,
-0.4003717303276062,
-0.1404462456703186,
0.14285379648208618,
-0.17765480279922485,
0.0030570700764656067,
0.0743747353553772,
0.400626003742218,
-0.0758654773235321,
0.062279026955366135,
0.011046640574932098,
-0.44289132952690125,
-0.029437271878123283,
0.20068669319152832,
-0.08293422311544418,
-0.16949482262134552,
0.42230331897735596,
0.1286735087633133,
-0.1203920915722847,
0.07833646237850189,
0.293412446975708,
-0.00038217008113861084,
-0.008783346973359585,
-0.22601337730884552,
0.09142966568470001,
-0.5675861239433289,
0.32307764887809753,
-0.18622629344463348,
-0.03586428239941597,
-0.3785843551158905,
-0.15631750226020813,
0.0676024779677391,
0.2389381378889084,
0.16447585821151733,
-0.12559740245342255,
0.03407298028469086,
-0.059337884187698364,
0.07168581336736679,
-0.3205621838569641,
0.04097660258412361,
-0.4133750796318054,
0.16802695393562317,
0.553818941116333,
0.21878953278064728,
-0.4402225613594055,
-0.09633892774581909,
0.1497092843055725,
0.20321299135684967,
0.04249522462487221,
-0.1779584437608719,
-0.23028866946697235,
-0.1540994644165039,
-0.39520353078842163,
0.11866303533315659,
0.08680606633424759,
0.012411365285515785,
-0.03901313990354538,
-0.06344618648290634,
0.19770702719688416,
-0.24588245153427124,
0.32116758823394775,
-0.1554294228553772,
0.27387940883636475,
-0.0506214015185833,
0.15283319354057312,
0.04397456720471382,
0.010364200919866562,
0.11421173810958862,
0.5003360509872437,
-0.12692253291606903,
-0.06732417643070221,
-0.2192164659500122,
-0.003670129459351301,
0.16620215773582458,
0.3981063663959503,
-0.21102550625801086,
0.1152876615524292,
0.3053019940853119,
0.4079304337501526,
-0.15939803421497345,
0.10656280070543289,
0.3676128685474396,
0.15672573447227478,
-0.19732794165611267,
-0.08052191883325577,
0.32281890511512756,
0.3746464252471924,
-0.08003121614456177,
0.3842601478099823,
0.2945858836174011,
-0.23954205214977264,
0.12314556539058685,
0.010687373578548431,
0.8338340520858765,
-0.05296654999256134,
0.06659934669733047,
0.09492448717355728,
-0.2706328332424164,
0.48829853534698486,
0.056097373366355896,
-0.17704229056835175,
-0.13286545872688293,
-0.19684575498104095,
0.1891278475522995,
0.02120281383395195,
0.2278795838356018,
-0.3805391788482666,
-0.3188483715057373,
0.20963650941848755,
-0.3555569052696228,
-0.02655806764960289,
-0.3779291808605194,
0.4703407883644104,
-0.5139926075935364,
-0.16693325340747833,
-0.17790450155735016,
0.16172058880329132,
-0.10759016871452332,
0.21700818836688995,
-0.05180653929710388,
-0.1411406397819519,
0.20186775922775269,
-0.1970670074224472,
-0.5171785354614258,
-0.12228132784366608,
0.09330826997756958,
-0.048053063452243805,
-0.09549660980701447,
-0.18008938431739807,
-0.044267743825912476,
0.12786133587360382,
0.1890404224395752,
0.45621007680892944,
-0.15902508795261383,
0.03975038230419159,
-0.11588770896196365,
0.060080599039793015,
0.05545827001333237,
-0.030899599194526672,
0.39431577920913696,
0.0699739009141922,
-0.2352166473865509,
-0.05090019106864929,
0.06845737248659134,
-0.2278549075126648,
-0.06015180051326752,
-0.08725759387016296,
-0.11938191950321198,
-0.2786221504211426,
-0.029649948701262474,
0.10046184062957764,
-0.2291882038116455,
0.02364872768521309,
0.1905825138092041,
0.35191893577575684,
-0.00794287770986557,
0.31245580315589905,
-0.07208123803138733,
-0.4334869980812073,
-0.35174283385276794,
0.5259715914726257,
-0.04115903377532959,
-0.11521843075752258,
0.5203579664230347,
0.3307601809501648,
-0.37199753522872925,
-0.2682919502258301,
-0.0019071362912654877,
0.26981836557388306,
-0.2570613920688629,
0.059938255697488785,
0.1953253597021103,
0.01935182511806488,
0.30730709433555603,
-0.12090575695037842,
0.13882318139076233,
-0.11463432759046555,
-0.1912720948457718,
-0.20036567747592926,
-0.594733715057373,
0.25159335136413574,
-0.13418422639369965,
0.35780659317970276,
-0.05075164511799812,
-0.13880887627601624,
-0.010576103813946247,
0.11376012116670609,
-0.3678404986858368,
-0.29758602380752563,
-0.0328446589410305,
-0.1245168149471283,
0.4510899484157562,
-0.09543973952531815,
0.37451863288879395,
-0.09781138598918915,
0.15546362102031708,
0.10996658354997635,
-0.35942143201828003,
-0.19136792421340942,
-0.014662266708910465,
0.07487443834543228,
-0.29069769382476807,
0.16377411782741547,
-0.1543097347021103,
-0.23343567550182343,
0.08835001289844513,
-0.15573497116565704,
0.18954621255397797,
0.45218750834465027,
0.13265833258628845,
0.2487800568342209,
-0.12105976045131683,
0.04389151185750961,
0.20112460851669312,
-0.30457639694213867,
-0.0797944962978363,
-0.033763617277145386,
-0.0070996154099702835,
-0.012931417673826218,
-0.007921251468360424,
0.027497217059135437,
-0.06529184430837631,
0.11294510960578918,
0.27502354979515076,
0.09451358765363693,
0.08135508000850677,
0.10387744009494781,
-0.06388437747955322,
0.4160509705543518,
0.5061018466949463,
0.15238675475120544,
-0.053241949528455734,
-0.1462581604719162,
-0.01989659294486046,
0.23743987083435059,
-0.1275089681148529,
-0.08340431749820709,
-0.013637270778417587,
0.34744080901145935,
-0.064524807035923,
0.2793581485748291,
-0.08073951303958893,
-0.06902958452701569,
0.32589301466941833,
0.21437904238700867,
0.17916935682296753,
-0.3216133117675781,
0.2039734572172165,
0.043535154312849045,
-0.19332008063793182,
-0.17936722934246063,
0.34501776099205017,
0.18382127583026886,
0.14498203992843628,
0.3770673871040344,
-0.31187719106674194,
0.5273197889328003,
-0.13305729627609253,
0.15019436180591583,
-0.007829807698726654,
-0.12902192771434784,
0.09464265406131744,
0.2455659657716751,
-0.04187247157096863,
-0.10481325536966324,
-0.025420911610126495,
0.38194581866264343,
-0.12248631566762924,
0.1320405751466751,
-0.1750381886959076,
0.2013733834028244,
-0.19892141222953796,
-0.07819944620132446,
0.5095499157905579,
0.13464325666427612,
-0.04716809093952179,
-0.0738072395324707,
0.05452427268028259,
-0.14645229279994965,
0.05528940260410309,
0.1259680837392807,
-0.14589497447013855,
-0.3475182354450226,
0.23712214827537537,
-0.1874280869960785,
0.4338357746601105,
-0.18791960179805756,
0.031336043030023575,
0.09922810643911362,
-0.028884336352348328,
0.10708445310592651,
0.3526531457901001,
0.6822695732116699,
0.2854704260826111,
0.20229271054267883,
0.2540794312953949,
-0.1048102080821991,
0.022765064612030983,
-0.1309242993593216,
0.47439417243003845,
-0.12506921589374542,
0.13972710072994232,
0.13261494040489197,
0.16739606857299805,
-0.26665976643562317,
0.17413538694381714,
-0.09647296369075775,
0.0576641745865345,
-0.17895512282848358,
0.5616602897644043,
0.039782050997018814,
-0.24261149764060974,
-0.22398695349693298,
0.08672843873500824,
-0.3847687244415283,
-0.14596228301525116,
0.32301148772239685,
0.12465169280767441,
-0.018932675942778587,
-0.5199958682060242,
0.09881497919559479,
-0.09915485978126526,
0.23486900329589844,
0.3353746831417084,
0.004465069621801376,
-0.2047855108976364,
0.13039140403270721,
-0.5033692121505737,
0.0234636589884758,
-0.039775263518095016,
-0.26647308468818665,
-0.15722154080867767,
0.01975232921540737,
-0.1950364112854004,
0.2984103560447693,
0.3773123025894165,
-0.3138502240180969,
0.05019398033618927,
-0.24269217252731323,
-0.19934453070163727,
0.08372603356838226,
0.1342654824256897,
-0.18945930898189545,
0.1656034290790558,
0.031353987753391266,
0.3460463583469391,
-0.46976539492607117,
0.04817170649766922,
-0.1129009872674942,
-0.04120159149169922,
0.10140058398246765,
0.2144017368555069,
0.2249889373779297,
0.10702789574861526,
0.22561249136924744,
-0.12528041005134583,
-0.13266435265541077,
-0.4260476529598236,
-0.06518696248531342,
-0.1742410957813263,
0.14163906872272491,
0.0835433155298233,
0.2157324254512787,
-0.3106633722782135,
-0.38514384627342224,
-0.3129425048828125,
0.4378100335597992,
-0.04151950776576996,
-0.2413823902606964,
0.037381380796432495,
-0.05215892940759659,
0.19794529676437378,
0.008982058614492416,
0.130804643034935,
0.18921008706092834,
0.09275365620851517,
0.37300699949264526,
-0.2739180326461792,
-0.6905544996261597,
0.5269719958305359,
-0.32449930906295776,
0.01476597785949707,
0.09477275609970093,
0.49461936950683594,
0.24824273586273193,
-0.3155158460140228,
-0.7181564569473267,
0.13574635982513428,
0.05348341166973114,
-0.10453981906175613,
0.07335160672664642,
0.4127817749977112,
-0.1984713226556778,
0.08154584467411041,
0.08826468884944916,
0.3735581636428833,
0.19681110978126526,
0.0937991812825203,
0.1009654700756073,
-0.2316855788230896
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | Thanks. For some reason I have to use the older version. Is that possible I can fix this by some surface-level trick?
I'm still using 1.13 version datasets. | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 28 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
Thanks. For some reason I have to use the older version. Is that possible I can fix this by some surface-level trick?
I'm still using 1.13 version datasets. | [
-0.18454748392105103,
-0.049645498394966125,
-0.06277716159820557,
0.11527101695537567,
0.3269053101539612,
0.2235255241394043,
0.2482614666223526,
0.5285163521766663,
0.06550811231136322,
-0.11483392119407654,
0.033185169100761414,
0.07348570227622986,
-0.3805568218231201,
0.09453344345092773,
-0.1415008157491684,
0.04969809576869011,
0.09959376603364944,
-0.13451458513736725,
-0.23687073588371277,
-0.004086244851350784,
0.03681037575006485,
-0.05542042851448059,
-0.028310231864452362,
-0.027666181325912476,
-0.6987550854682922,
-0.05755964666604996,
0.14996573328971863,
-0.0849989578127861,
-0.12586364150047302,
-0.43278080224990845,
0.043550632894039154,
0.2825656235218048,
0.3471221625804901,
0.20780988037586212,
-0.00011423350952100009,
-0.1720217764377594,
0.40311479568481445,
0.09166309982538223,
-0.3014632761478424,
0.33005306124687195,
-0.0656789094209671,
-0.4610651731491089,
0.23763076961040497,
-0.0499526746571064,
-0.02542562037706375,
-0.5238727331161499,
0.18424059450626373,
-0.4831921458244324,
0.34424862265586853,
0.14563100039958954,
0.23530268669128418,
0.10667784512042999,
0.03805384412407875,
0.013993877917528152,
0.09037382155656815,
0.3014705181121826,
-0.0019082985818386078,
0.0512065626680851,
0.3469894230365753,
-0.1349480003118515,
-0.1935211420059204,
0.4127216041088104,
-0.17360948026180267,
-0.10430148243904114,
0.31824934482574463,
0.012809029780328274,
-0.07422380894422531,
-0.29599276185035706,
0.3224028944969177,
0.21556535363197327,
0.2681923508644104,
-0.38113102316856384,
-0.39957404136657715,
-0.5169013738632202,
0.08630645275115967,
-0.24606451392173767,
-0.061599694192409515,
0.04120201990008354,
-0.0013884920626878738,
0.3254365026950836,
-0.2808995246887207,
-0.32498013973236084,
0.10877120494842529,
-0.17224612832069397,
0.2617557942867279,
0.0027785450220108032,
-0.03689074516296387,
-0.03745725750923157,
0.3654302954673767,
-0.14198990166187286,
0.08542250096797943,
0.22432798147201538,
-0.1866133213043213,
-0.11861269176006317,
-0.4022972881793976,
-0.08640913665294647,
0.2720978856086731,
0.5041313767433167,
-0.07414771616458893,
0.28949248790740967,
-0.6020694375038147,
0.03336002677679062,
0.1272955983877182,
-0.2467958927154541,
0.27202799916267395,
0.07357634603977203,
0.3732909858226776,
0.5536037087440491,
0.07656052708625793,
-0.02173561230301857,
0.18507002294063568,
0.07596590369939804,
0.29137974977493286,
-0.4003852605819702,
0.6298021674156189,
-0.03343430906534195,
0.47332334518432617,
-0.29393813014030457,
0.19940228760242462,
-0.10416458547115326,
-0.09365024417638779,
-0.08248001337051392,
0.006430605426430702,
0.2301987111568451,
0.2105497568845749,
-0.15131720900535583,
0.01799580454826355,
0.20426365733146667,
-0.19320684671401978,
-0.22174812853336334,
-0.2325339913368225,
0.22599448263645172,
0.0028698109090328217,
0.20765285193920135,
0.2626854479312897,
-0.17966090142726898,
-0.14441685378551483,
0.19590869545936584,
-0.23138926923274994,
-0.07597354054450989,
0.1347891241312027,
-0.07094680517911911,
-0.0010423585772514343,
0.21483048796653748,
-0.1866116225719452,
0.19010254740715027,
-0.035965558141469955,
-0.13111720979213715,
-0.2601167857646942,
-0.04664178937673569,
-0.050082504749298096,
-0.3688071072101593,
-0.17430730164051056,
0.15163972973823547,
-0.2515850067138672,
0.000514540821313858,
-0.046286292374134064,
0.10825341939926147,
0.19054409861564636,
0.20312714576721191,
0.058156196027994156,
-0.2059943825006485,
-0.21356835961341858,
-0.027373433113098145,
0.08470392972230911,
0.7543078064918518,
-0.1837233453989029,
-0.10741132497787476,
-0.3210380971431732,
-0.24459359049797058,
0.18471179902553558,
0.2475203573703766,
0.1200602725148201,
0.32976198196411133,
-0.28835582733154297,
0.02146696299314499,
-0.07180774956941605,
-0.4368184506893158,
-0.21537050604820251,
0.14183343946933746,
-0.1801401972770691,
0.04695246368646622,
0.5603654980659485,
0.1465415209531784,
0.21351608633995056,
-0.2289566844701767,
0.05649157986044884,
-0.17787587642669678,
0.07072222232818604,
-0.14449618756771088,
-0.17454266548156738,
-0.17418035864830017,
-0.05785045772790909,
0.25976914167404175,
-0.037726957350969315,
-0.1251596212387085,
0.010942496359348297,
0.05616043508052826,
0.30138951539993286,
-0.20529744029045105,
0.006251126527786255,
0.32077282667160034,
0.20690177381038666,
-0.1019970029592514,
-0.1961967647075653,
-0.18753975629806519,
-0.45239168405532837,
-0.05308915674686432,
-0.08058252930641174,
0.04374682903289795,
-0.3083762526512146,
-0.5036981701850891,
-0.018729811534285545,
-0.028476113453507423,
-0.10092860460281372,
-0.11775645613670349,
0.03848247230052948,
0.17604629695415497,
-0.09637072682380676,
-0.19066718220710754,
-0.09799282252788544,
0.39419203996658325,
-0.10135988891124725,
0.12747889757156372,
-0.48817896842956543,
-0.22947517037391663,
0.06850222498178482,
-0.17843176424503326,
0.4208119213581085,
0.18585185706615448,
0.18705180287361145,
-0.003834620350971818,
0.22055336833000183,
0.2407076358795166,
-0.03296615555882454,
0.7907809615135193,
0.064471036195755,
0.33715391159057617,
-0.08824076503515244,
0.11619164049625397,
0.062146954238414764,
-0.05834412947297096,
-0.28878793120384216,
-0.02983659878373146,
-0.04130988568067551,
0.4230465888977051,
0.20497770607471466,
0.11188448220491409,
-0.12870490550994873,
0.043872080743312836,
-0.11693064123392105,
-0.1507565826177597,
-0.08413667231798172,
-0.5032484531402588,
0.4043028652667999,
-0.0699332058429718,
0.17615529894828796,
0.20059025287628174,
-0.07133493572473526,
0.3584009110927582,
0.47148776054382324,
-0.21767476201057434,
0.23579141497612,
0.28734081983566284,
-0.020874038338661194,
0.021378330886363983,
0.13993187248706818,
0.18802496790885925,
0.10885538160800934,
0.2872408628463745,
0.014891114085912704,
0.34303754568099976,
0.3121272623538971,
-0.05549313873052597,
0.3003987967967987,
-0.031819842755794525,
-0.24436603486537933,
-0.17324534058570862,
-0.029862692579627037,
-0.1476171910762787,
-0.006639871746301651,
0.03835371509194374,
-0.40034765005111694,
0.37638288736343384,
-0.4999679625034332,
0.05954645574092865,
-0.6568225026130676,
-0.29704973101615906,
-0.2544572949409485,
0.19025662541389465,
0.039268724620342255,
-0.3844945728778839,
0.13923373818397522,
0.09047119319438934,
-0.14526039361953735,
0.1740478128194809,
-0.04400577396154404,
0.11548131704330444,
0.08970391750335693,
0.15752151608467102,
-0.33213528990745544,
-0.02293636091053486,
-0.1803099513053894,
0.029976412653923035,
0.2657265365123749,
-0.005944595672190189,
0.4097062051296234,
-0.2006053328514099,
-0.051324065774679184,
-0.2849326729774475,
-0.3416576385498047,
-0.0627894476056099,
-0.10049761831760406,
0.17434652149677277,
0.23687121272087097,
0.11163109540939331,
0.06714913249015808,
0.033029068261384964,
-0.1913241595029831,
-0.09414760023355484,
0.09592050313949585,
-0.03224669396877289,
-0.29142293334007263,
0.12757523357868195,
-0.07602909207344055,
-0.327640175819397,
-0.22108733654022217,
-0.24386194348335266,
0.36120373010635376,
-0.042597874999046326,
0.11030735075473785,
0.3691273629665375,
-0.1180833950638771,
0.08150807023048401,
-0.41320106387138367,
0.42201918363571167,
-0.011591058224439621,
-0.22377926111221313,
0.25472021102905273,
0.09985415637493134,
-0.03890387341380119,
-0.06936971843242645,
0.0822911188006401,
-0.3534398376941681,
-0.2201089859008789,
-0.5487345457077026,
-0.23411908745765686,
-0.41504043340682983,
-0.09394414722919464,
-0.0649745762348175,
0.18555589020252228,
0.28997737169265747,
0.1923263818025589,
-0.08759738504886627,
0.16455042362213135,
-0.055161572992801666,
-0.047819264233112335,
-0.38749054074287415,
0.14054778218269348,
-0.0966753363609314,
0.28426191210746765,
0.19763489067554474,
0.3441001772880554,
0.5574743151664734,
0.04247807711362839,
-0.07543569803237915,
-0.21410387754440308,
0.5718837976455688,
-0.2818309962749481,
-0.30393072962760925,
-0.1314203292131424,
0.11560167372226715,
-0.18213620781898499,
-0.09458190202713013,
0.0998169332742691,
0.3431897461414337,
-0.059125788509845734,
-0.1497662514448166,
0.0663815289735794,
-0.5078800916671753,
-0.01915295608341694,
0.2249498963356018,
-0.02656058967113495,
-0.12098844349384308,
0.28786200284957886,
0.015621710568666458,
-0.23634624481201172,
0.17018331587314606,
0.2459600865840912,
0.10290670394897461,
0.032391197979450226,
-0.4344901740550995,
0.166449636220932,
-0.7213894128799438,
0.44665592908859253,
-0.10410383343696594,
0.03412345051765442,
-0.21043996512889862,
-0.15613645315170288,
0.0077645257115364075,
0.3723122477531433,
0.21939483284950256,
-0.14937016367912292,
0.22641360759735107,
-0.019622137770056725,
0.03731895983219147,
-0.32745519280433655,
0.015356741845607758,
-0.3497525453567505,
0.28221628069877625,
0.5570353269577026,
0.16236338019371033,
-0.17926523089408875,
-0.18037018179893494,
0.1766921877861023,
0.2699889540672302,
-0.0373564176261425,
-0.1949123740196228,
-0.10925588011741638,
-0.19630396366119385,
-0.2780589759349823,
-0.0031819939613342285,
0.10131797939538956,
0.0660795122385025,
-0.02306418865919113,
0.04052334651350975,
0.04064717888832092,
-0.31048789620399475,
0.37319445610046387,
-0.3377862870693207,
0.24817204475402832,
0.03254085034132004,
0.2477480173110962,
0.019248683005571365,
0.10799762606620789,
0.2164222151041031,
0.36392948031425476,
0.08868356049060822,
-0.21771857142448425,
-0.1563558280467987,
-0.012332855723798275,
0.20178480446338654,
0.46315905451774597,
-0.24484652280807495,
0.22310522198677063,
0.18159545958042145,
0.38189178705215454,
-0.3454273045063019,
0.0008875830098986626,
0.18655341863632202,
0.11667301505804062,
-0.2835586667060852,
-0.0918460264801979,
0.28942954540252686,
0.36480778455734253,
-0.1354423314332962,
0.42234060168266296,
0.28256577253341675,
-0.40379798412323,
0.059598930180072784,
-0.013428449630737305,
1.0228244066238403,
-0.09584897756576538,
0.08208373188972473,
0.09641800820827484,
-0.25698554515838623,
0.4764893352985382,
0.19289593398571014,
-0.047642529010772705,
-0.21660414338111877,
-0.3129029870033264,
0.15421384572982788,
-0.03624813258647919,
0.15454000234603882,
-0.3156777620315552,
0.020474519580602646,
0.36212795972824097,
-0.4943404793739319,
-0.0015031509101390839,
-0.2654561996459961,
0.4618157744407654,
-0.37821707129478455,
-0.15743109583854675,
-0.30057671666145325,
0.07802718877792358,
-0.0972103476524353,
0.07930131256580353,
-0.09832899272441864,
-0.08610131591558456,
0.3254990875720978,
-0.15866664052009583,
-0.3358670473098755,
-0.2780640423297882,
0.24629883468151093,
-0.12895192205905914,
-0.0743100494146347,
-0.0947829857468605,
-0.011602216400206089,
0.09515471756458282,
0.253631591796875,
0.3788897395133972,
-0.1345607340335846,
-0.08647377789020538,
-0.18258053064346313,
0.17690809071063995,
0.17706163227558136,
-0.07512856274843216,
0.2750741243362427,
0.07011555880308151,
-0.15782485902309418,
-0.00402408093214035,
0.1588582992553711,
-0.3066469430923462,
-0.1811250001192093,
-0.18314333260059357,
-0.08247466385364532,
-0.14029009640216827,
0.0432116836309433,
0.07775168865919113,
-0.2249748557806015,
0.07772992551326752,
0.14577189087867737,
0.2886357307434082,
0.09717587381601334,
0.14941594004631042,
-0.14606310427188873,
-0.32542914152145386,
-0.305671751499176,
0.5781705975532532,
0.06221460551023483,
-0.044951312243938446,
0.5925277471542358,
0.32701921463012695,
-0.2988738417625427,
-0.27086731791496277,
0.0871444121003151,
0.3117557764053345,
-0.21209824085235596,
0.08585675060749054,
0.08647289127111435,
0.1492684930562973,
0.20553137362003326,
-0.13474446535110474,
0.02233012020587921,
-0.017757520079612732,
-0.033233642578125,
-0.21652859449386597,
-0.5762382745742798,
0.2602948546409607,
-0.15698489546775818,
0.2617206275463104,
-0.09032399952411652,
-0.014218484982848167,
-0.1747014820575714,
0.11996961385011673,
-0.32744938135147095,
-0.3087000846862793,
0.21294714510440826,
-0.12597347795963287,
0.30046942830085754,
-0.05678717792034149,
0.21298326551914215,
-0.19677625596523285,
0.09442335367202759,
0.08550986647605896,
-0.2549469769001007,
-0.16760292649269104,
0.03859322518110275,
0.09780632704496384,
-0.40139615535736084,
0.035588547587394714,
0.057662855833768845,
-0.20811405777931213,
-0.06977222859859467,
-0.18695926666259766,
0.12422293424606323,
0.5812003016471863,
0.17849813401699066,
0.2072705328464508,
-0.11502493917942047,
-0.08376321941614151,
0.0948123037815094,
-0.26711878180503845,
0.011661455035209656,
0.10672537982463837,
-0.07395659387111664,
0.0972132608294487,
-0.03975295647978783,
0.09582068026065826,
-0.036928169429302216,
0.12559348344802856,
0.19790640473365784,
0.08525365591049194,
0.08827842026948929,
0.23241740465164185,
-0.1626403033733368,
0.5327462553977966,
0.4566965103149414,
0.08355867117643356,
-0.23914764821529388,
-0.11677933484315872,
-0.030613064765930176,
0.1834723800420761,
-0.13486671447753906,
-0.07002679258584976,
-0.03584381565451622,
0.2857699692249298,
-0.2206106185913086,
0.4170992970466614,
-0.10203136503696442,
-0.12288151681423187,
0.27439212799072266,
0.1356433629989624,
0.08896955102682114,
-0.25867462158203125,
0.2499249130487442,
-0.011815536767244339,
-0.1307217925786972,
-0.3220926523208618,
0.4062693119049072,
0.23197722434997559,
0.16938987374305725,
0.3233451247215271,
-0.28021523356437683,
0.38179710507392883,
-0.11673272401094437,
0.21751464903354645,
-0.0006148964166641235,
-0.26542872190475464,
0.12762372195720673,
0.5195828676223755,
-0.1552278995513916,
-0.08187618106603622,
-0.08692170679569244,
0.11883525550365448,
0.11338615417480469,
0.05469554290175438,
-0.20937642455101013,
0.1882803589105606,
-0.015123795717954636,
-0.03881433606147766,
0.557555079460144,
0.11633706837892532,
-0.04079591855406761,
-0.0006745122373104095,
-0.027240727096796036,
-0.2548865079879761,
-0.06621752679347992,
0.11046307533979416,
-0.07524393498897552,
-0.25032365322113037,
0.3213798999786377,
-0.14198815822601318,
0.647157609462738,
-0.24814832210540771,
-0.11841506510972977,
-0.0314657986164093,
-0.02071341872215271,
0.24527129530906677,
0.24816271662712097,
0.6147254109382629,
0.1973525732755661,
0.2949056923389435,
0.38332080841064453,
-0.07754282653331757,
0.03474952280521393,
-0.04576369747519493,
0.3528991639614105,
-0.04213251173496246,
0.04352676123380661,
0.0527082122862339,
0.1348370611667633,
-0.09719580411911011,
0.2719748616218567,
-0.10691994428634644,
0.12926258146762848,
-0.4247209429740906,
0.557888925075531,
0.12494806200265884,
-0.18922805786132812,
-0.15465889871120453,
0.07681390643119812,
-0.14171183109283447,
-0.29657694697380066,
0.4082416296005249,
0.17666028439998627,
0.028353188186883926,
-0.3209652304649353,
0.07600094377994537,
-0.2978372573852539,
0.15634459257125854,
0.3977247476577759,
-0.06688058376312256,
-0.2303662747144699,
0.06550978124141693,
-0.35577577352523804,
0.04614723473787308,
-0.024877656251192093,
-0.17489184439182281,
-0.011325262486934662,
-0.04862191528081894,
-0.08896521478891373,
0.19237877428531647,
0.37812697887420654,
-0.3197564482688904,
0.055016905069351196,
-0.36382877826690674,
-0.05713389813899994,
-0.02377285435795784,
0.07044438272714615,
-0.09158146381378174,
0.11097913980484009,
-0.12780436873435974,
0.4835259020328522,
-0.5077933669090271,
0.05089201778173447,
-0.050323404371738434,
0.008006691932678223,
0.011828206479549408,
0.21306288242340088,
0.2893226146697998,
0.14437147974967957,
0.16054891049861908,
-0.03319783881306648,
-0.08122467994689941,
-0.4489471912384033,
-0.013101959601044655,
-0.302480548620224,
0.30076757073402405,
-0.05220000818371773,
0.13983634114265442,
-0.39967676997184753,
-0.3157457709312439,
-0.3180854916572571,
0.4130193889141083,
-0.06543740630149841,
-0.23225441575050354,
-0.1681167483329773,
0.06595069169998169,
0.07821347564458847,
0.07384499162435532,
0.10942602157592773,
0.15926098823547363,
0.056410424411296844,
0.3194158673286438,
-0.2590789198875427,
-0.5449333190917969,
0.5200134515762329,
-0.3985484838485718,
-0.0734977126121521,
0.0006205737590789795,
0.6537173986434937,
0.2560562491416931,
-0.34643930196762085,
-0.5534007549285889,
0.07773467153310776,
0.1594492793083191,
-0.10886336117982864,
0.12419262528419495,
0.42429259419441223,
-0.29836487770080566,
0.13547205924987793,
0.11672386527061462,
0.33010560274124146,
0.19540417194366455,
0.057199157774448395,
0.07803867757320404,
-0.3463287949562073
] |
https://github.com/huggingface/datasets/issues/809 | Add Google Taskmaster dataset | Hey @yjernite. Was going to start working on this but found taskmaster 1,2 & 3 in the datasets library already so think this can be closed now? | ## Adding a Dataset
- **Name:** Taskmaster
- **Description:** A large dataset of task-oriented dialogue with annotated goals (55K dialogues covering entertainment and travel reservations)
- **Paper:** https://arxiv.org/abs/1909.05358
- **Data:** https://github.com/google-research-datasets/Taskmaster
- **Motivation:** One of few annotated datasets of this size for goal-oriented dialogue
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 27 | Add Google Taskmaster dataset
## Adding a Dataset
- **Name:** Taskmaster
- **Description:** A large dataset of task-oriented dialogue with annotated goals (55K dialogues covering entertainment and travel reservations)
- **Paper:** https://arxiv.org/abs/1909.05358
- **Data:** https://github.com/google-research-datasets/Taskmaster
- **Motivation:** One of few annotated datasets of this size for goal-oriented dialogue
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hey @yjernite. Was going to start working on this but found taskmaster 1,2 & 3 in the datasets library already so think this can be closed now? | [
-0.26148879528045654,
0.05524764955043793,
-0.15951359272003174,
0.21565917134284973,
0.16742825508117676,
-0.03795098140835762,
0.33362168073654175,
0.0670081377029419,
0.13231924176216125,
0.1240415945649147,
-0.2129535973072052,
0.26625335216522217,
-0.48644062876701355,
0.5283167362213135,
0.18952611088752747,
-0.04972781240940094,
0.08314266800880432,
-0.0871647447347641,
0.17146509885787964,
0.16608411073684692,
-0.17177684605121613,
0.09008375555276871,
-0.14506036043167114,
0.023761790245771408,
-0.19849231839179993,
-0.2001333385705948,
0.027907604351639748,
-0.01201687753200531,
-0.19240935146808624,
-0.31317153573036194,
-0.030132310464978218,
0.3213687241077423,
-0.09662335366010666,
0.7043563723564148,
-0.00010072726581711322,
-0.3078632652759552,
0.1542026400566101,
-0.1997464895248413,
-0.3623103201389313,
-0.03762258589267731,
-0.10350043326616287,
0.039705388247966766,
-0.17691382765769958,
-0.006224356591701508,
-0.21349817514419556,
-0.18621183931827545,
0.03739456087350845,
0.06312175840139389,
0.12475571036338806,
0.479236900806427,
0.2868831157684326,
0.03144947066903114,
0.02378835901618004,
-0.31390252709388733,
-0.08928010612726212,
0.1673177033662796,
-0.3250298798084259,
0.18353360891342163,
0.24507859349250793,
0.03020884282886982,
-0.12053950875997543,
0.3014373779296875,
-0.18184877932071686,
-0.1398770958185196,
0.2054291069507599,
-0.2605782151222229,
-0.1797826588153839,
-0.2628006041049957,
0.1561325639486313,
0.3817877173423767,
0.5788028836250305,
-0.16345497965812683,
-0.1290091574192047,
-0.42471471428871155,
-0.028869789093732834,
-0.140326127409935,
-0.16434407234191895,
0.2142508178949356,
-0.1045961081981659,
0.13219980895519257,
-0.23907402157783508,
-0.3919069766998291,
-0.05096985772252083,
0.024520371109247208,
0.045348234474658966,
0.1810939610004425,
-0.27196478843688965,
-0.11659551411867142,
0.11772328615188599,
-0.2911084294319153,
-0.10918276757001877,
0.0246927160769701,
-0.13970886170864105,
-0.0661735087633133,
-0.5199308395385742,
-0.38467860221862793,
0.3971691429615021,
0.24867013096809387,
0.33833804726600647,
0.18674549460411072,
0.1201629713177681,
-0.011986523866653442,
0.009405207820236683,
-0.06152921915054321,
0.4166887402534485,
0.12919974327087402,
0.0020519867539405823,
-0.06195744499564171,
0.17983314394950867,
0.23643319308757782,
0.12099716067314148,
0.25609061121940613,
-0.17279621958732605,
-0.005141760688275099,
-0.06726737320423126,
-0.01645192876458168,
-0.02752915769815445,
0.1008455902338028,
-0.30659255385398865,
0.20584051311016083,
-0.15209919214248657,
0.044488389045000076,
0.1388908326625824,
0.2740320563316345,
-0.2231862097978592,
0.0721614807844162,
-0.09894884377717972,
0.1962263137102127,
0.0454922616481781,
-0.008953310549259186,
-0.06785450130701065,
0.11560927331447601,
-0.2882877588272095,
0.30449604988098145,
0.16198360919952393,
0.22451047599315643,
0.04067286103963852,
-0.16724933683872223,
-0.06422905623912811,
-0.09413474053144455,
0.1624990552663803,
-0.17091603577136993,
-0.03060891479253769,
-0.11188194155693054,
0.01234232634305954,
-0.3497445583343506,
-0.20845147967338562,
0.00896870344877243,
-0.17209461331367493,
-0.02181607484817505,
0.18497192859649658,
-0.21417833864688873,
-0.11630083620548248,
0.294146865606308,
-0.15909501910209656,
-0.20600010454654694,
-0.32340186834335327,
0.7503319382667542,
-0.07134441286325455,
-0.0585385337471962,
0.2222457230091095,
0.2418699711561203,
-0.3724501430988312,
-0.14130650460720062,
-0.05112750828266144,
0.34890976548194885,
0.06211317703127861,
-0.011533636599779129,
-0.13975349068641663,
-0.14621464908123016,
-0.42289769649505615,
0.3107072412967682,
0.06363929808139801,
0.4232715368270874,
-0.15663795173168182,
0.05773058533668518,
-0.06164870411157608,
-0.26386553049087524,
-0.2786206007003784,
0.1703374981880188,
-0.5045642256736755,
0.062013834714889526,
0.2612503170967102,
0.1390814334154129,
0.47373560070991516,
-0.4069022536277771,
0.5480490922927856,
0.23503521084785461,
-0.15164677798748016,
0.025838514789938927,
-0.10848160833120346,
-0.3002912402153015,
0.009679850190877914,
0.3743724822998047,
0.18097731471061707,
-0.2353052794933319,
-0.11139694601297379,
-0.1721191555261612,
0.007716570049524307,
-0.15114207565784454,
0.017735686153173447,
0.15716320276260376,
0.37819644808769226,
0.14480823278427124,
-0.07464771717786789,
-0.352077841758728,
-0.44019603729248047,
-0.27147769927978516,
0.0580170601606369,
0.12378145009279251,
0.2761163115501404,
-0.4302569031715393,
-0.1637153923511505,
-0.010626038536429405,
-0.013066869229078293,
-0.14670605957508087,
0.2628629803657532,
0.12870901823043823,
0.06230602040886879,
-0.1343761831521988,
-0.17631302773952484,
0.5124228000640869,
-0.1791611760854721,
-0.08889660984277725,
0.127249076962471,
0.04619196802377701,
0.005045132711529732,
-0.0523158460855484,
0.2747648060321808,
0.40758946537971497,
-0.0309087336063385,
0.10271380096673965,
0.2287939190864563,
0.16351017355918884,
-0.0730135440826416,
0.2508265972137451,
0.2525401711463928,
0.400234580039978,
-0.004086265340447426,
-0.20295698940753937,
-0.01499665342271328,
0.2142481505870819,
0.023582562804222107,
-0.09603648632764816,
-0.254267156124115,
0.2681888937950134,
0.2542665898799896,
0.09107692539691925,
0.08218549191951752,
0.17350614070892334,
0.11345045268535614,
-0.20933905243873596,
-0.18328991532325745,
0.029800139367580414,
0.18739324808120728,
0.21380120515823364,
-0.06301086395978928,
0.11442673951387405,
-0.6919629573822021,
0.16508781909942627,
0.35366514325141907,
-0.01793888956308365,
0.40912240743637085,
0.18302977085113525,
-0.12757623195648193,
-0.30613046884536743,
-0.003522820770740509,
-0.353486567735672,
0.10445913672447205,
0.42464345693588257,
0.06308205425739288,
-0.0029151979833841324,
0.23787179589271545,
-0.16653819382190704,
0.1324300765991211,
0.08924664556980133,
0.00020860905351582915,
0.267831951379776,
0.2840034067630768,
-0.04704064503312111,
-0.2962802052497864,
-0.21912963688373566,
-0.005309488624334335,
0.03155865520238876,
-0.19694021344184875,
-0.19977527856826782,
0.14386944472789764,
-0.28177815675735474,
-0.01448842417448759,
-0.02047570049762726,
-0.010461792349815369,
-0.0066535454243421555,
0.24919115006923676,
0.14840953052043915,
-0.06251972913742065,
0.1598893702030182,
0.2966144382953644,
0.5640655159950256,
-0.23807895183563232,
0.09703429788351059,
-0.10082270950078964,
-0.5919598340988159,
0.003471124917268753,
0.23797819018363953,
0.15739215910434723,
-0.29121094942092896,
0.598755419254303,
-0.04768494889140129,
0.12348425388336182,
-0.5213541388511658,
-0.43037745356559753,
0.21263152360916138,
-0.31366509199142456,
0.2960091829299927,
0.1633022576570511,
0.06630643457174301,
-0.03808420151472092,
0.06350155919790268,
-0.2227795124053955,
0.16216783225536346,
-0.06548973172903061,
-0.22625033557415009,
-0.19133225083351135,
0.08952651172876358,
-0.015522854402661324,
-0.3140380084514618,
-0.07927537709474564,
-0.6464053988456726,
0.5182403326034546,
-0.16466960310935974,
0.1542171835899353,
0.34521105885505676,
-0.15288588404655457,
0.10420779138803482,
-0.11296997964382172,
0.06731034815311432,
-0.31765303015708923,
0.12815599143505096,
0.1276368498802185,
-0.2890617549419403,
-0.14191792905330658,
-0.21761660277843475,
-0.270998477935791,
0.1267264187335968,
-0.09543366730213165,
-0.3981802463531494,
0.13591350615024567,
-0.06615924090147018,
0.09535904228687286,
-0.05314189940690994,
-0.2207903414964676,
0.2568976581096649,
-0.016948461532592773,
-0.2660770118236542,
-0.06536492705345154,
-0.3890552520751953,
0.1412205696105957,
0.2797259986400604,
0.06797439604997635,
0.06808177381753922,
0.07809580117464066,
0.035067636519670486,
0.2983904480934143,
-0.03973769396543503,
0.22796081006526947,
0.1530386507511139,
0.008908320218324661,
0.3236822485923767,
-0.08994369953870773,
-0.27349114418029785,
0.5499249696731567,
0.20220941305160522,
-0.05003970488905907,
0.41992902755737305,
0.06430678069591522,
-0.1487179398536682,
-0.07764191925525665,
-0.15735942125320435,
-0.07766296714544296,
-0.14413148164749146,
0.1170259490609169,
-0.16536808013916016,
0.23103544116020203,
-0.21097736060619354,
-0.16825729608535767,
-0.2618766129016876,
-0.04103904962539673,
-0.010537094436585903,
0.1600435972213745,
0.05788930878043175,
-0.24614836275577545,
-0.11575369536876678,
0.3369307816028595,
-0.34250813722610474,
0.10583334416151047,
-0.022083787247538567,
-0.09031336009502411,
-0.2629335820674896,
0.10583815723657608,
-0.19200976192951202,
0.03672152757644653,
0.4593254327774048,
-0.08431322127580643,
-0.2236308604478836,
-0.0058130789548158646,
0.32027366757392883,
-0.044281840324401855,
0.30113568902015686,
0.013720422983169556,
0.09521206468343735,
0.25490036606788635,
0.6941002607345581,
-0.3379405438899994,
0.0444253608584404,
0.41667839884757996,
-0.05314069613814354,
0.10038991272449493,
-0.07567701488733292,
0.03544829413294792,
-0.27379587292671204,
-0.06572108715772629,
0.4045338034629822,
0.1714749038219452,
0.10806116461753845,
0.4278351366519928,
-0.12852054834365845,
0.1964721381664276,
-0.07498639076948166,
0.20832744240760803,
-0.2814508378505707,
0.015827802941203117,
0.2705777883529663,
0.18650232255458832,
-0.1502009779214859,
-0.08520753681659698,
0.21002675592899323,
0.3960522711277008,
0.16591893136501312,
-0.1972728967666626,
0.14413318037986755,
-0.2553133964538574,
0.372699111700058,
0.2760240435600281,
0.23140881955623627,
0.1951170563697815,
-0.013276927173137665,
0.49305951595306396,
-0.25135406851768494,
0.10690240561962128,
0.09101839363574982,
-0.004525668919086456,
-0.5179161429405212,
-0.44198569655418396,
0.13233885169029236,
0.15440069139003754,
-0.06533776968717575,
0.4278353154659271,
-0.08700807392597198,
-0.19381767511367798,
-0.2065759003162384,
0.049564674496650696,
0.9224179983139038,
0.004204295575618744,
0.21195879578590393,
0.40518563985824585,
-0.5795304179191589,
0.06949664652347565,
-0.2566623091697693,
0.12292132526636124,
-0.04511376842856407,
0.283530592918396,
0.06159909814596176,
0.052759211510419846,
-0.18642398715019226,
0.19100159406661987,
-0.4328393042087555,
0.09303723275661469,
0.06152741611003876,
0.14654910564422607,
0.13449475169181824,
0.4971315860748291,
-0.15695711970329285,
-0.3890841007232666,
-0.2649882733821869,
0.253927618265152,
-0.14056289196014404,
-0.0713890790939331,
-0.06380701065063477,
-0.161477193236351,
0.031006213277578354,
-0.05307932570576668,
-0.5341102480888367,
-0.12804505228996277,
-0.26718491315841675,
-0.19892056286334991,
0.08456259965896606,
-0.5190033316612244,
0.27433112263679504,
-0.12119410932064056,
0.01685188338160515,
0.15049970149993896,
-0.30638760328292847,
0.10297031700611115,
0.046102374792099,
0.0080747464671731,
-0.013041938655078411,
-0.07696051895618439,
0.44760459661483765,
-0.030644632875919342,
-0.0582415871322155,
0.06678642332553864,
0.2132108509540558,
-0.1285063624382019,
-0.54718416929245,
0.09721747040748596,
0.0421939343214035,
-0.11747132241725922,
0.014150422066450119,
0.10936418175697327,
-0.11677870154380798,
-0.2550393342971802,
0.2261781543493271,
0.1129065603017807,
0.021429480984807014,
-0.07004020363092422,
0.016977453604340553,
-0.13252314925193787,
-0.22558440268039703,
0.05639764294028282,
0.13701429963111877,
-0.19527949392795563,
0.1854114979505539,
0.4506288766860962,
-0.15309226512908936,
-0.5877164006233215,
0.005971148610115051,
0.29405784606933594,
0.0000035017728805541992,
0.2696414291858673,
0.09142260253429413,
-0.2956959009170532,
0.04643979296088219,
0.3118737041950226,
0.023787589743733406,
-0.03983087092638016,
0.0400153286755085,
-0.010781798511743546,
-0.4449401795864105,
0.2384043037891388,
-0.32417041063308716,
0.16042910516262054,
-0.14419426023960114,
-0.021320033818483353,
0.220315083861351,
0.04238011687994003,
-0.4860435128211975,
-0.0637272447347641,
-0.41091054677963257,
0.06737087666988373,
0.335968017578125,
-0.18163195252418518,
-0.05662121996283531,
0.005761977285146713,
0.20047710835933685,
-0.19147442281246185,
-0.2832294702529907,
-0.3187800645828247,
-0.17699025571346283,
0.08310138434171677,
0.034659989178180695,
0.2209993451833725,
0.005538507364690304,
0.005361273884773254,
-0.34747597575187683,
-0.058581165969371796,
0.31220296025276184,
0.3366638720035553,
-0.011006347835063934,
-0.1279553472995758,
-0.33252114057540894,
-0.0652843788266182,
0.2533949613571167,
-0.12364879250526428,
0.1806524693965912,
0.10770328342914581,
0.03461108356714249,
-0.008513394743204117,
0.24834786355495453,
-0.05882692337036133,
-0.11016640812158585,
0.43262210488319397,
0.42962294816970825,
-0.06562168151140213,
0.16555671393871307,
0.03954915702342987,
-0.031777866184711456,
0.2534835636615753,
0.16564686596393585,
-0.012733802199363708,
-0.03429151698946953,
0.04836311191320419,
0.10877083986997604,
0.31114038825035095,
-0.09674578905105591,
0.23822446167469025,
0.1319248527288437,
-0.36406785249710083,
0.24683839082717896,
0.18560576438903809,
-0.002898242324590683,
0.24477997422218323,
0.08753588795661926,
0.14296507835388184,
0.09313570708036423,
0.06039612367749214,
0.19902895390987396,
-0.153216153383255,
0.09718193113803864,
-0.06411321461200714,
0.570142924785614,
0.178361713886261,
0.32128840684890747,
0.0907500684261322,
0.29581403732299805,
0.24646852910518646,
0.060643941164016724,
0.11941677331924438,
0.4031062722206116,
-0.020017845556139946,
-0.10443311929702759,
-0.15902510285377502,
-0.15920302271842957,
-0.04865310341119766,
-0.08688691258430481,
0.5234044194221497,
-0.2786831557750702,
0.13937978446483612,
-0.0019496455788612366,
0.012419294565916061,
-0.2311098277568817,
0.19007334113121033,
-0.024069365113973618,
-0.269741952419281,
-0.14293146133422852,
0.022310666739940643,
0.02096678502857685,
-0.11664807796478271,
0.15731871128082275,
-0.020657017827033997,
0.09621600806713104,
-0.209402397274971,
0.11803607642650604,
0.23263129591941833,
0.14624008536338806,
-0.32400909066200256,
0.06976731866598129,
-0.24878062307834625,
0.1303093135356903,
0.09857192635536194,
0.5581968426704407,
0.19264622032642365,
0.11277060955762863,
-0.3313204348087311,
0.05880758538842201,
-0.23643167316913605,
-0.13309720158576965,
-0.062124453485012054,
0.15942785143852234,
0.2089761197566986,
0.06707525253295898,
0.2844000458717346,
0.23944371938705444,
-0.28127506375312805,
0.2649778127670288,
0.20160843431949615,
-0.4137316048145294,
-0.35842230916023254,
-0.032857753336429596,
-0.027371663600206375,
-0.25703129172325134,
-0.2707478106021881,
-0.07777529209852219,
-0.4774097204208374,
-0.16502352058887482,
0.1326693594455719,
-0.0494089312851429,
0.015492871403694153,
-0.3788835406303406,
0.15651829540729523,
-0.1011170744895935,
0.3919009864330292,
0.34756597876548767,
0.4866899251937866,
-0.09844788163900375,
-0.14288431406021118,
-0.3140195906162262,
0.15232965350151062,
-0.0063520073890686035,
-0.14100846648216248,
-0.01028040237724781,
-0.04322116822004318,
0.07569178193807602,
0.3448820114135742,
-0.11295570433139801,
-0.011736629530787468,
-0.04045422002673149,
-0.05936458706855774,
-0.3465915024280548,
0.22852171957492828,
0.37384939193725586,
0.2461613416671753,
0.12554875016212463,
-0.07476698607206345,
-0.0023522190749645233,
0.012315976433455944,
0.15396836400032043,
-0.21393199265003204,
-0.07135932892560959,
0.08292479813098907,
-0.16945013403892517,
0.24671903252601624,
-0.2851562798023224,
0.36186543107032776,
-0.16379672288894653,
-0.12174385040998459,
-0.10987353324890137,
0.1035013273358345,
-0.13924540579319,
-0.185943603515625,
0.11508108675479889,
0.36917924880981445,
-0.11660321056842804,
-0.05767742916941643,
-0.06113171577453613,
-0.029461247846484184,
-0.041259557008743286,
0.286552369594574,
0.07004284858703613,
0.17877544462680817,
0.04879654198884964,
-0.07155910134315491,
-0.07513242959976196,
0.11261158436536789,
-0.02512870728969574,
-0.06604970246553421,
-0.09300781041383743,
-0.36222347617149353,
0.2840491235256195,
-0.029528643935918808,
-0.4029163122177124,
-0.12932878732681274,
0.2246689796447754,
0.04811852052807808,
-0.1693308800458908,
-0.5357699394226074,
0.11124195903539658,
0.21906423568725586,
0.24210742115974426,
0.031920697540044785,
0.302137166261673,
-0.13882094621658325,
-0.07034383714199066,
-0.034476615488529205,
0.010381467640399933,
0.02694682590663433,
0.16423270106315613,
-0.2071317732334137,
-0.3559950590133667
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | Hi !
The url works on my side.
Is the url working in your navigator ?
Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 30 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
Hi !
The url works on my side.
Is the url working in your navigator ?
Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | > Hi !
> The url works on my side.
>
> Is the url working in your navigator ?
> Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
I tried another server, it's working now. Thanks a lot.
And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 69 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> Hi !
> The url works on my side.
>
> Is the url working in your navigator ?
> Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
I tried another server, it's working now. Thanks a lot.
And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR |
> > Hi !
> > The url works on my side.
> > Is the url working in your navigator ?
> > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
>
> I tried another server, it's working now. Thanks a lot.
>
> And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
Thanks :D | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 103 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> > Hi !
> > The url works on my side.
> > Is the url working in your navigator ?
> > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
>
> I tried another server, it's working now. Thanks a lot.
>
> And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
Thanks :D | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | hello, how did you solve this problems?
> > > Hi !
> > > The url works on my side.
> > > Is the url working in your navigator ?
> > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> >
> >
> > I tried another server, it's working now. Thanks a lot.
> > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
>
> I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
>
> Thanks :D
hello, I tried this. but it still failed. how do you fix this error? | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 136 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
hello, how did you solve this problems?
> > > Hi !
> > > The url works on my side.
> > > Is the url working in your navigator ?
> > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> >
> >
> > I tried another server, it's working now. Thanks a lot.
> > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
>
> I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
>
> Thanks :D
hello, I tried this. but it still failed. how do you fix this error? | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | > hello, how did you solve this problems?
>
> > > > Hi !
> > > > The url works on my side.
> > > > Is the url working in your navigator ?
> > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > >
> > >
> > > I tried another server, it's working now. Thanks a lot.
> > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> >
> >
> > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > Thanks :D
>
> hello, I tried this. but it still failed. how do you fix this error?
你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
| ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 155 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> hello, how did you solve this problems?
>
> > > > Hi !
> > > > The url works on my side.
> > > > Is the url working in your navigator ?
> > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > >
> > >
> > > I tried another server, it's working now. Thanks a lot.
> > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> >
> >
> > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > Thanks :D
>
> hello, I tried this. but it still failed. how do you fix this error?
你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
| [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | > > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
好的好的!解决了,感谢感谢!!! | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 174 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
好的好的!解决了,感谢感谢!!! | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | >
>
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
我照着做了,然后报错。
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-fd2106a3f053> in <module>
----> 1 dataset = load_dataset('C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets/csv.py', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
296 local_dataset_infos_path = cached_path(
297 dataset_infos,
--> 298 download_config=download_config,
299 )
300 except (FileNotFoundError, ConnectionError):
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
316 else:
317 # Something unknown
--> 318 raise ValueError("unable to parse {} as a URL or as a local path".format(url_or_filename))
319
320 if download_config.extract_compressed_file and output_path is not None:
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
` | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 316 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
>
>
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
我照着做了,然后报错。
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-fd2106a3f053> in <module>
----> 1 dataset = load_dataset('C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets/csv.py', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
296 local_dataset_infos_path = cached_path(
297 dataset_infos,
--> 298 download_config=download_config,
299 )
300 except (FileNotFoundError, ConnectionError):
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
316 else:
317 # Something unknown
--> 318 raise ValueError("unable to parse {} as a URL or as a local path".format(url_or_filename))
319
320 if download_config.extract_compressed_file and output_path is not None:
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
` | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | I also experienced this issue this morning. Looks like something specific to windows.
I'm working on a fix | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 18 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
I also experienced this issue this morning. Looks like something specific to windows.
I'm working on a fix | [
-0.32471221685409546,
0.016105175018310547,
-0.10880465805530548,
0.02600424364209175,
0.24204310774803162,
0.019868597388267517,
0.7173694372177124,
0.37563633918762207,
0.25092148780822754,
0.1337040811777115,
-0.03423210233449936,
0.14970451593399048,
0.07979956269264221,
0.02118345908820629,
-0.126931294798851,
-0.17728224396705627,
-0.12715736031532288,
0.2743320167064667,
-0.41879913210868835,
0.014496840536594391,
-0.12488488107919693,
-0.002357417717576027,
-0.03493824228644371,
0.14053399860858917,
-0.20246383547782898,
-0.006238440051674843,
0.11578239500522614,
0.13127726316452026,
-0.0276919137686491,
-0.4939202070236206,
0.33652183413505554,
0.04024992510676384,
0.3237726390361786,
0.3632175624370575,
-0.00010603086411720142,
0.21352408826351166,
0.2517404556274414,
-0.028866808861494064,
-0.42790883779525757,
-0.46111100912094116,
-0.10899219661951065,
-0.3690284490585327,
0.4228138327598572,
-0.398617684841156,
0.0005739554762840271,
-0.11989779025316238,
-0.06735818833112717,
-0.31619951128959656,
0.4313887357711792,
0.4785008132457733,
0.2786397635936737,
0.4154755771160126,
0.01658288761973381,
-0.11103459447622299,
0.07182170450687408,
0.05553413927555084,
-0.06249232590198517,
0.4061277210712433,
0.05162442848086357,
-0.18499116599559784,
-0.2426789402961731,
0.08461219072341919,
-0.1926981806755066,
0.3955322802066803,
0.19060400128364563,
0.08309634029865265,
0.03777061030268669,
-0.1966337412595749,
0.12522658705711365,
0.10768340528011322,
0.4764900207519531,
-0.23145583271980286,
-0.23214679956436157,
-0.05849960446357727,
-0.19948174059391022,
-0.18815654516220093,
0.16607406735420227,
0.0867297425866127,
-0.16833801567554474,
0.1474405825138092,
-0.26384127140045166,
0.09908028692007065,
-0.39075222611427307,
0.14945493638515472,
-0.11051245033740997,
0.15475697815418243,
-0.0671839714050293,
0.19474509358406067,
0.1582646369934082,
-0.056483469903469086,
0.40368887782096863,
-0.2070341855287552,
0.1916099339723587,
0.1276622861623764,
-0.3377646207809448,
0.13115765154361725,
0.13940516114234924,
-0.3861350119113922,
-0.10645692050457001,
0.04989415407180786,
-0.036173321306705475,
-0.053590886294841766,
0.1335502415895462,
0.2916465997695923,
0.1983623057603836,
0.07914337515830994,
-0.1308651566505432,
0.2947736084461212,
0.2687249779701233,
0.13256213068962097,
0.04226167872548103,
-0.062485046684741974,
-0.08005715906620026,
-0.35580652952194214,
0.16349761188030243,
0.19997969269752502,
0.4894585609436035,
-0.04742840677499771,
-0.28160029649734497,
0.13264060020446777,
0.012910470366477966,
-0.10737264156341553,
0.01896924152970314,
0.35893136262893677,
-0.08796811103820801,
0.20431584119796753,
0.04245312511920929,
0.013688651844859123,
-0.22352759540081024,
0.08454298228025436,
-0.2120840847492218,
0.03795526176691055,
-0.11933058500289917,
-0.06953262537717819,
0.3813321590423584,
-0.07908964157104492,
0.04663315415382385,
-0.014668634161353111,
0.09893107414245605,
0.05034898221492767,
0.2611701488494873,
-0.2932826280593872,
0.049182917922735214,
0.412932425737381,
0.05615389719605446,
0.2478839010000229,
0.40952596068382263,
-0.1842341274023056,
-0.10606053471565247,
0.08659075200557709,
-0.20454281568527222,
-0.33716917037963867,
-0.33854779601097107,
0.24021172523498535,
0.03689008951187134,
0.10894134640693665,
-0.018466398119926453,
-0.3302738070487976,
0.09865888953208923,
-0.27471664547920227,
-0.15415921807289124,
-0.3237558603286743,
-0.03890502452850342,
-0.21599142253398895,
0.30818748474121094,
0.6463355422019958,
-0.4303187131881714,
0.042956218123435974,
0.05663648620247841,
-0.12991653382778168,
0.14145952463150024,
0.25084763765335083,
-0.3076963424682617,
0.08512569963932037,
-0.2284606695175171,
-0.09667675942182541,
0.23148208856582642,
-0.3093755841255188,
-0.30328190326690674,
0.5005198121070862,
-0.23734550178050995,
-0.07294366508722305,
0.2169772982597351,
0.012615930289030075,
0.29105618596076965,
0.18582841753959656,
0.26151522994041443,
0.30004775524139404,
-0.10075998306274414,
0.11755294352769852,
-0.07992309331893921,
-0.22256040573120117,
0.19735854864120483,
0.11645616590976715,
0.009816601872444153,
0.22318404912948608,
0.3249673843383789,
-0.2579796612262726,
0.1741141974925995,
-0.07687215507030487,
0.14479206502437592,
0.13450771570205688,
0.17397187650203705,
0.041984133422374725,
-0.0606001578271389,
-0.021664313971996307,
-0.5085177421569824,
0.13815593719482422,
0.13109250366687775,
0.090300552546978,
-0.4376564621925354,
-0.016269367188215256,
-0.3771234452724457,
0.005172345787286758,
-0.2671601176261902,
-0.03024207428097725,
0.21001751720905304,
0.3415309190750122,
-0.01915949583053589,
-0.052317410707473755,
-0.048857200890779495,
0.325691282749176,
-0.11661305278539658,
-0.019255850464105606,
-0.4156303107738495,
0.33955541253089905,
-0.354468435049057,
-0.06900264322757721,
0.05235404521226883,
-0.031419940292835236,
0.16264986991882324,
-0.18255557119846344,
-0.2719683051109314,
0.35612383484840393,
-0.09558556228876114,
0.21822473406791687,
0.01704990863800049,
-0.004438877105712891,
0.052620500326156616,
-0.24509896337985992,
0.03237740695476532,
0.03111402504146099,
0.1533316671848297,
0.04318294674158096,
-0.26131385564804077,
0.3525981605052948,
-0.0953487753868103,
0.16336984932422638,
0.050653934478759766,
0.07041212171316147,
0.4514213800430298,
0.011994283646345139,
-0.11404740810394287,
-0.10850904881954193,
0.10549506545066833,
0.23892122507095337,
0.226236030459404,
0.04910349100828171,
-0.1802719384431839,
-0.18862369656562805,
0.20185862481594086,
-0.1532275378704071,
0.011607781052589417,
0.09235356748104095,
-0.10862190276384354,
-0.04428187012672424,
0.21468506753444672,
0.23191948235034943,
0.5149133801460266,
0.1026022657752037,
-0.1526021510362625,
-0.018321355804800987,
-0.05032367631793022,
-0.1338229775428772,
0.1102774515748024,
-0.03869204968214035,
0.04487739875912666,
0.32726365327835083,
0.07598234713077545,
0.10698063671588898,
-0.24100738763809204,
-0.3630867302417755,
-0.04194937273859978,
0.2638891339302063,
-0.349300742149353,
0.2479264885187149,
-0.1645679920911789,
0.018282171338796616,
-0.26590147614479065,
-0.0503300204873085,
-0.11050000786781311,
-0.17807415127754211,
-0.3695806860923767,
0.3607570230960846,
-0.07638253271579742,
0.23725174367427826,
-0.27900174260139465,
-0.05164127051830292,
0.38798385858535767,
-0.44983264803886414,
-0.07305997610092163,
-0.2081661969423294,
-0.1601460874080658,
0.09248049557209015,
0.09350964426994324,
-0.15689237415790558,
0.30316489934921265,
-0.09899183362722397,
0.02052650973200798,
-0.16106246411800385,
-0.02383427694439888,
-0.08211711049079895,
0.01252821646630764,
0.12830594182014465,
0.18785426020622253,
0.44752275943756104,
0.12060244381427765,
-0.5035606622695923,
0.31845468282699585,
-0.08349722623825073,
0.04819396883249283,
0.19645652174949646,
-0.05370195209980011,
-0.20325540006160736,
0.0006877221167087555,
-0.6345345973968506,
-0.5991461277008057,
-0.4698640704154968,
0.1375342309474945,
0.06650851666927338,
0.2132316678762436,
0.2955246865749359,
0.22690217196941376,
0.20992344617843628,
0.08665835857391357,
0.0757489800453186,
-0.059612855315208435,
-0.15918414294719696,
0.3499981462955475,
-0.23495997488498688,
-0.35702818632125854,
-0.11339622735977173,
-0.11525443941354752,
0.12194421887397766,
0.13648714125156403,
-0.44477593898773193,
-0.023616168648004532,
-0.17468379437923431,
0.35653993487358093,
-0.046724095940589905,
0.05170465260744095,
0.46627795696258545,
0.1686570644378662,
-0.17062893509864807,
0.11266040056943893,
-0.24418722093105316,
-0.14081141352653503,
0.19425618648529053,
0.08437025547027588,
0.0044104959815740585,
0.4593695104122162,
-0.1589594930410385,
0.6532877087593079,
-0.07980887591838837,
-0.18970966339111328,
0.28843072056770325,
-0.13622517883777618,
0.34296715259552,
-0.1845073103904724,
-0.630850613117218,
-0.09177804738283157,
-0.30622968077659607,
-0.20188398659229279,
0.010753199458122253,
-0.22972875833511353,
-0.2305866926908493,
-0.36419975757598877,
0.01869993656873703,
-0.30493301153182983,
-0.3137825131416321,
0.13632600009441376,
-0.11969803273677826,
0.36354199051856995,
0.04688193276524544,
-0.013035919517278671,
-0.2529374659061432,
-0.060057688504457474,
-0.24862757325172424,
0.36598676443099976,
-0.006222285330295563,
-0.09316631406545639,
-0.26687857508659363,
0.10691341012716293,
-0.28108134865760803,
0.2432359755039215,
0.08004990965127945,
0.562286913394928,
-0.20270881056785583,
-0.18679583072662354,
-0.03779327869415283,
0.05815781280398369,
0.4028225541114807,
0.08844415098428726,
0.08746376633644104,
0.25638771057128906,
-0.05159086361527443,
-0.31206056475639343,
-0.08621141314506531,
-0.08868368715047836,
0.22119517624378204,
0.22769863903522491,
0.4607944190502167,
0.05911540240049362,
-0.12697744369506836,
0.316906213760376,
0.23591388761997223,
-0.08725593984127045,
-0.17905393242835999,
-0.28387510776519775,
-0.050811123102903366,
-0.321552038192749,
-0.10537377744913101,
-0.11184176802635193,
0.17903201282024384,
-0.17329055070877075,
-0.12812717258930206,
0.07372359186410904,
-0.1710195541381836,
0.0011049658060073853,
0.11932013928890228,
-0.1456993818283081,
0.09597741067409515,
0.21791774034500122,
0.19069790840148926,
0.26288697123527527,
0.2021610587835312,
0.44293129444122314,
-0.2094508707523346,
-0.5551648736000061,
0.177261620759964,
-0.014554675668478012,
0.10783110558986664,
0.10523758828639984,
-0.13693584501743317,
-0.14875847101211548,
0.17527449131011963,
0.18085600435733795,
-0.1539572924375534,
0.19385294616222382,
0.24986675381660461,
-0.11665403842926025,
-0.35298722982406616,
-0.41480690240859985,
0.13144418597221375,
-0.200593039393425,
-0.09675206243991852,
0.19510293006896973,
-0.3385472297668457,
-0.0635155737400055,
0.2595239281654358,
-0.15831100940704346,
0.6695192456245422,
-0.12689349055290222,
0.18091730773448944,
0.16285285353660583,
-0.13451401889324188,
0.4483829438686371,
-0.1574920266866684,
0.11926218867301941,
-0.34411484003067017,
-0.23600411415100098,
-0.0994972512125969,
-0.24985739588737488,
0.32185420393943787,
0.00986802950501442,
-0.09696094691753387,
0.23642073571681976,
-0.06141700595617294,
0.2813481092453003,
0.06527969241142273,
0.22038090229034424,
0.061279311776161194,
-0.23026925325393677,
-0.18300899863243103,
0.1901203840970993,
-0.09313638508319855,
0.41345542669296265,
0.029971040785312653,
-0.11374127864837646,
-0.01248515397310257,
-0.3615666627883911,
-0.043139271438121796,
0.05932149291038513,
-0.2830667793750763,
0.413662850856781,
0.048829469829797745,
-0.35365498065948486,
-0.05514152720570564,
0.13816963136196136,
-0.15337583422660828,
0.07832987606525421,
-0.1498510241508484,
-0.07945619523525238,
-0.10809154063463211,
-0.06119567155838013,
-0.11690104752779007,
-0.0029085143469274044,
0.14739945530891418,
0.0824844166636467,
-0.2685490548610687,
0.27557238936424255,
-0.11783167719841003,
-0.3403717875480652,
0.1828363537788391,
0.27734044194221497,
0.26229190826416016,
-0.5065496563911438,
-0.13994792103767395,
-0.3102683424949646,
-0.1075604110956192,
-0.12932074069976807,
0.20053181052207947,
-0.11239317059516907,
0.02567298896610737,
0.0055946409702301025,
-0.08788879215717316,
-0.31055203080177307,
-0.041963186115026474,
0.6014828085899353,
-0.07181441783905029,
-0.06635020673274994,
0.3271544575691223,
0.06249122694134712,
-0.1843171864748001,
-0.2428678274154663,
0.19904041290283203,
-0.004432317800819874,
-0.46779757738113403,
-0.09300771355628967,
0.06877988576889038,
0.058695659041404724,
-0.11389058828353882,
0.07177556306123734,
0.2206760197877884,
0.10313381999731064,
0.035783614963293076,
-0.48031002283096313,
-0.5924566984176636,
-0.09012292325496674,
-0.01208806037902832,
0.14931274950504303,
0.4447919726371765,
0.22306935489177704,
0.05577903240919113,
0.10906711965799332,
-0.35995426774024963,
-0.0675610825419426,
-0.18956883251667023,
0.15761546790599823,
0.5117645263671875,
-0.2647099792957306,
0.17706550657749176,
-0.15527121722698212,
0.24091115593910217,
-0.14292341470718384,
-0.12628696858882904,
-0.3133458197116852,
0.0018986314535140991,
0.06184520572423935,
0.020244643092155457,
-0.3433458209037781,
-0.3376551568508148,
-0.2684757709503174,
-0.01480984315276146,
-0.07406332343816757,
-0.0003411807119846344,
0.2130770981311798,
-0.11873142421245575,
0.2121608853340149,
-0.24539344012737274,
0.08101487904787064,
-0.13400842249393463,
0.13505597412586212,
-0.27996641397476196,
0.24027669429779053,
0.02708270028233528,
0.28273922204971313,
-0.07186440378427505,
-0.019442453980445862,
-0.487189382314682,
-0.05400257557630539,
0.010926730930805206,
0.09868715703487396,
0.30709537863731384,
-0.18013733625411987,
-0.13732145726680756,
0.005328965838998556,
0.39912354946136475,
0.2806527614593506,
-0.2605665326118469,
0.01644839532673359,
0.12060531228780746,
0.30771714448928833,
-0.21690915524959564,
-0.11241768300533295,
0.15963612496852875,
0.0255126953125,
0.20569932460784912,
-0.02333984524011612,
0.08173909783363342,
-0.1946602612733841,
0.2731689512729645,
0.035482197999954224,
0.4447312653064728,
-0.0881807878613472,
0.2025936394929886,
0.6118387579917908,
0.01973911002278328,
-0.0029397718608379364,
0.1617918610572815,
0.17206883430480957,
0.19419848918914795,
0.4270904064178467,
-0.17929229140281677,
-0.08740773797035217,
-0.060371242463588715,
0.16990801692008972,
-0.17825308442115784,
-0.47331422567367554,
0.14328068494796753,
-0.15970668196678162,
-0.29882875084877014,
-0.06702283769845963,
0.04967454820871353,
0.2803225517272949,
-0.2598402202129364,
0.07498686760663986,
-0.10565526783466339,
0.16085663437843323,
-0.09228954464197159,
-0.1408548653125763,
0.08977143466472626,
-0.07309729605913162,
-0.12902602553367615,
-0.042556244879961014,
0.11327151954174042,
0.08388672769069672,
0.2775798439979553,
0.2630506157875061,
-0.08818809688091278,
-0.20061540603637695,
0.1970880925655365,
0.22083675861358643,
-0.055748678743839264,
-0.11386743187904358,
0.15573668479919434,
0.34453627467155457,
0.1739409863948822,
-0.13112898170948029,
0.1761198341846466,
0.6315092444419861,
0.3470619320869446,
0.0025094617158174515,
0.20304904878139496,
-0.1124480664730072,
-0.14246542751789093,
-0.08644451946020126,
0.025158854201436043,
-0.09247459471225739,
0.2070283591747284,
0.35639438033103943,
0.3213752806186676,
-0.1901988685131073,
0.33391332626342773,
-0.046394433826208115,
-0.1453462541103363,
-0.19388744235038757,
0.37078195810317993,
0.07530129700899124,
-0.28416708111763,
-0.12542127072811127,
0.015040338039398193,
-0.4021414816379547,
0.06934294104576111,
0.4656215310096741,
0.010683705098927021,
0.29247209429740906,
0.0018877615220844746,
0.10944388806819916,
-0.09056177735328674,
0.4269731938838959,
0.14451193809509277,
0.3763491213321686,
-0.4452262222766876,
0.011287927627563477,
-0.5027251243591309,
0.18294686079025269,
-0.0391797237098217,
0.05342038720846176,
-0.04423629865050316,
0.17016857862472534,
0.010517202317714691,
0.20270253717899323,
-0.14749903976917267,
-0.05667027458548546,
0.01785220578312874,
0.12563401460647583,
0.026940148323774338,
-0.16315500438213348,
-0.20206911861896515,
0.05830031633377075,
-0.0021005477756261826,
-0.39048635959625244,
0.2174811214208603,
0.021084126085042953,
0.14057981967926025,
-0.26310980319976807,
-0.06372429430484772,
0.19547773897647858,
0.12738966941833496,
0.39073920249938965,
0.16002370417118073,
0.6441079378128052,
-0.10564837604761124,
0.08293703198432922,
-0.0683102011680603,
-0.25430789589881897,
0.015144133009016514,
0.19531702995300293,
0.2678668200969696,
0.21443597972393036,
-0.08898652344942093,
-0.3141358196735382,
-0.47147315740585327,
0.3997180163860321,
-0.054113227874040604,
-0.0857379361987114,
-0.04443302005529404,
-0.10151340812444687,
-0.02954067289829254,
0.04289218783378601,
0.038194313645362854,
-0.03309377282857895,
0.011734679341316223,
0.21084879338741302,
-0.17600449919700623,
-0.4096623361110687,
0.41831231117248535,
-0.26436203718185425,
-0.25048595666885376,
-0.1710999310016632,
0.2781779170036316,
-0.04632927477359772,
0.28937843441963196,
-0.2773316204547882,
0.2958226203918457,
0.45240285992622375,
-0.211067795753479,
-0.21477773785591125,
0.22343941032886505,
0.01906939595937729,
0.2123963087797165,
-0.039661988615989685,
0.46950119733810425,
0.10085891932249069,
-0.24279704689979553,
-0.1551303267478943,
-0.2195899933576584
] |
https://github.com/huggingface/datasets/issues/806 | Quail dataset urls are out of date | Hi ! Thanks for reporting.
We should fix the urls and use quail 1.3.
If you want to contribute feel free to fix the urls and open a PR :) | <h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore. | 30 | Quail dataset urls are out of date
<h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore.
Hi ! Thanks for reporting.
We should fix the urls and use quail 1.3.
If you want to contribute feel free to fix the urls and open a PR :) | [
0.11141955852508545,
0.2604743540287018,
-0.06152282655239105,
0.08691426366567612,
0.05529186129570007,
0.11656814068555832,
-0.10393841564655304,
0.2843019366264343,
-0.14580443501472473,
-0.026925653219223022,
-0.05009341239929199,
-0.10960250347852707,
0.061760615557432175,
0.05294910818338394,
0.03669002279639244,
0.09923623502254486,
0.09575095772743225,
-0.10737694799900055,
-0.4846735894680023,
-0.1207498088479042,
-0.2975239157676697,
0.3327789604663849,
-0.1629835069179535,
0.0764409601688385,
-0.3429378569126129,
0.13600307703018188,
-0.2239770144224167,
0.28330501914024353,
-0.27906349301338196,
-0.4246111512184143,
0.23278425633907318,
0.026277758181095123,
0.2541757822036743,
0.400409460067749,
-0.00010590338933980092,
-0.023691143840551376,
0.2455451488494873,
0.09278982132673264,
-0.12044443190097809,
-0.129503533244133,
-0.35780227184295654,
-0.12044581025838852,
0.03053935430943966,
-0.06332886219024658,
-0.07230862975120544,
-0.029333412647247314,
-0.06990538537502289,
-0.12183543294668198,
0.21485117077827454,
0.46336862444877625,
0.290118545293808,
0.0463864803314209,
0.09498180449008942,
-0.20835727453231812,
0.23871180415153503,
-0.310674786567688,
-0.06414011865854263,
0.31288182735443115,
0.1509220004081726,
0.05179016292095184,
0.26248982548713684,
0.42076271772384644,
0.03203301131725311,
-0.2172015756368637,
0.14150309562683105,
0.062082331627607346,
0.16031545400619507,
-0.22672444581985474,
-0.14605659246444702,
0.05531735718250275,
0.2769092321395874,
-0.1575433313846588,
-0.5258876085281372,
-0.05713625252246857,
0.09286507964134216,
-0.529796302318573,
0.16485801339149475,
-0.07382973283529282,
0.2400810718536377,
0.25227800011634827,
-0.14425425231456757,
-0.04968984052538872,
-0.02881881222128868,
0.22174426913261414,
0.06364844739437103,
0.1838526427745819,
-0.09209488332271576,
-0.10475607961416245,
-0.08814787864685059,
-0.04828102886676788,
0.22483699023723602,
0.11132914572954178,
-0.09771984815597534,
0.0737549439072609,
-0.22852180898189545,
-0.04616682976484299,
0.03852499648928642,
0.14690595865249634,
-0.028078213334083557,
0.2144792526960373,
0.010471695102751255,
-0.12327220290899277,
0.06615608185529709,
-0.173008531332016,
0.1355983018875122,
0.3790610134601593,
0.1448470950126648,
-0.3184601664543152,
0.151891827583313,
0.461867094039917,
-0.18420261144638062,
-0.0007187463343143463,
0.059594105929136276,
-0.532623291015625,
-0.287617951631546,
0.039734579622745514,
0.2821308374404907,
-0.3005323112010956,
-0.02545197680592537,
-0.05133529752492905,
-0.29087603092193604,
-0.029741385951638222,
0.01980116404592991,
0.24928435683250427,
-0.22161875665187836,
0.10719221830368042,
0.023361295461654663,
0.19798225164413452,
-0.05253398418426514,
-0.25857892632484436,
-0.2975824773311615,
0.030634792521595955,
-0.09175680577754974,
0.08914045989513397,
-0.2212427854537964,
-0.18227043747901917,
0.23918916285037994,
0.0033655809238553047,
0.20549865067005157,
-0.09995394945144653,
-0.11023672670125961,
0.16545121371746063,
-0.17958495020866394,
0.16934356093406677,
0.0045815035700798035,
0.2769615054130554,
0.2565433382987976,
-0.09070271253585815,
-0.14999358355998993,
-0.03873971104621887,
-0.5298556089401245,
-0.44997528195381165,
0.08724731206893921,
0.2952365577220917,
-0.14096498489379883,
-0.25852757692337036,
-0.06539680808782578,
-0.03851008787751198,
-0.16150391101837158,
-0.034794047474861145,
0.02786526083946228,
-0.2688952684402466,
-0.15625089406967163,
-0.1804729402065277,
0.08386490494012833,
0.26798611879348755,
0.05159415677189827,
0.0013738945126533508,
-0.0037768082693219185,
0.07854999601840973,
-0.06510760635137558,
0.17834419012069702,
-0.1268857717514038,
-0.09051980823278427,
-0.2397110015153885,
-0.18526792526245117,
0.34404271841049194,
-0.4733639359474182,
-0.10897709429264069,
-0.008411870338022709,
-0.19699101150035858,
-0.04934085160493851,
-0.2570843994617462,
0.04294735938310623,
-0.19606196880340576,
-0.13699136674404144,
0.16925908625125885,
0.0898360162973404,
0.20928384363651276,
-0.11851318925619125,
-0.33409565687179565,
-0.4222736358642578,
-0.3132748603820801,
0.03987695649266243,
-0.0930718332529068,
0.17236897349357605,
0.06422368437051773,
-0.1694263517856598,
0.20527693629264832,
-0.0010918639600276947,
-0.09837177395820618,
0.7106882333755493,
0.4781782627105713,
0.3526976704597473,
-0.04946574196219444,
-0.06775262206792831,
-0.19247359037399292,
0.30613914132118225,
-0.07220204174518585,
0.2881503403186798,
0.1848902404308319,
-0.1361597180366516,
-0.13988912105560303,
-0.005865284241735935,
-0.20051436126232147,
-0.22964218258857727,
0.16984443366527557,
-0.13805101811885834,
0.2528866231441498,
0.3219490647315979,
-0.19778496026992798,
0.23688165843486786,
-0.18125887215137482,
0.20859047770500183,
-0.2242487519979477,
0.27811527252197266,
-0.06381085515022278,
0.06245894730091095,
0.21140235662460327,
0.29792943596839905,
0.20142140984535217,
0.0791991651058197,
0.011929312720894814,
0.3588084876537323,
-0.09724966436624527,
0.17098116874694824,
0.33103108406066895,
0.3559352159500122,
0.08287341147661209,
-0.23671221733093262,
-0.19304834306240082,
0.08902063965797424,
-0.2096584290266037,
0.29080620408058167,
0.178555428981781,
0.4742392897605896,
-0.15549539029598236,
0.1294759064912796,
0.2113696187734604,
0.11688133329153061,
0.0017111953347921371,
-0.09780804812908173,
0.07564432173967361,
-0.3420625627040863,
0.15945996344089508,
0.2844245731830597,
0.2542976140975952,
0.02593737654387951,
-0.11379853636026382,
0.3069623112678528,
0.4033266305923462,
0.023038897663354874,
-0.0536019429564476,
0.0925995334982872,
-0.1973935067653656,
0.020906522870063782,
0.01255006529390812,
0.4818215072154999,
0.04719547927379608,
0.239919051527977,
0.05220026522874832,
0.19053713977336884,
-0.025711067020893097,
-0.33616286516189575,
0.20261543989181519,
0.024099383503198624,
0.20857182145118713,
-0.10787127166986465,
0.22981777787208557,
0.039315059781074524,
-0.3651343584060669,
-0.015752138569951057,
-0.020476985722780228,
0.16020846366882324,
-0.21301649510860443,
-0.10760831832885742,
-0.47007089853286743,
-0.2990798056125641,
-0.457379549741745,
-0.41930240392684937,
-0.5098846554756165,
-0.4655085504055023,
0.3162050247192383,
-0.15035443007946014,
-0.14228779077529907,
0.24902087450027466,
-0.2312074452638626,
-0.0797581821680069,
-0.09335695952177048,
-0.06610161811113358,
-0.0052240751683712006,
0.09062778204679489,
-0.3036707639694214,
0.1049535721540451,
0.030569210648536682,
-0.014088744297623634,
0.044840916991233826,
-0.15429136157035828,
0.10435447096824646,
-0.34269577264785767,
-0.40597668290138245,
-0.07758225500583649,
-0.08435281366109848,
0.5491734743118286,
0.10175032913684845,
0.0014881119132041931,
-0.10844280570745468,
0.08050777018070221,
0.32339853048324585,
-0.06754756718873978,
-0.11654003709554672,
-0.05430794507265091,
-0.025354761630296707,
0.20588801801204681,
0.11209829151630402,
-0.3937985599040985,
-0.012275779619812965,
-0.22869986295700073,
0.02064690738916397,
-0.029260337352752686,
-0.05962421000003815,
0.1615992784500122,
0.03504598140716553,
0.18218587338924408,
-0.10963816940784454,
-0.05025924742221832,
-0.07753098011016846,
-0.602164089679718,
0.3979027271270752,
-0.16120313107967377,
-0.27276796102523804,
0.03993683680891991,
0.22591708600521088,
0.16215091943740845,
-0.16569238901138306,
-0.5440137386322021,
-0.46495670080184937,
-0.12290704250335693,
0.1300370842218399,
0.32753312587738037,
-0.16095088422298431,
0.30478888750076294,
-0.054741278290748596,
-0.26066452264785767,
-0.05747019872069359,
-0.03537304326891899,
0.09417298436164856,
0.1546821892261505,
0.2533334493637085,
-0.06917344778776169,
0.6103906631469727,
0.08461667597293854,
0.8092584609985352,
0.25970199704170227,
0.3382928669452667,
0.24704132974147797,
-0.1527680903673172,
0.2351430058479309,
-0.016895785927772522,
-0.056572385132312775,
0.05158587545156479,
-0.12410950660705566,
-0.055576324462890625,
0.09639845788478851,
0.37876591086387634,
0.6186670064926147,
-0.06979598104953766,
0.20157089829444885,
-0.29371073842048645,
-0.037119295448064804,
-0.17552299797534943,
0.20903438329696655,
0.2424323856830597,
0.05913687124848366,
-0.15370026230812073,
0.00783119723200798,
-0.14378222823143005,
0.2146521806716919,
0.2838849425315857,
-0.11203207820653915,
0.18232376873493195,
-0.6854104995727539,
-0.11316828429698944,
-0.24817097187042236,
0.4097760319709778,
-0.010677577927708626,
0.0811438262462616,
0.09550938010215759,
-0.0941072404384613,
0.0324125736951828,
-0.10749686509370804,
0.36261093616485596,
-0.06966791301965714,
0.06811706721782684,
0.18990890681743622,
-0.31696563959121704,
-0.1392083764076233,
-0.17250989377498627,
0.02360517904162407,
-0.2791008949279785,
0.41099226474761963,
0.3146066665649414,
-0.019766271114349365,
-0.31561729311943054,
0.05469643324613571,
-0.08998360484838486,
-0.18120108544826508,
0.11677127331495285,
-0.36297929286956787,
-0.3824225068092346,
-0.0023275520652532578,
-0.30536967515945435,
-0.020320916548371315,
0.11604224145412445,
-0.21917608380317688,
-0.026988640427589417,
0.16599586606025696,
-0.129185289144516,
-0.037384405732154846,
-0.001379484310746193,
0.2292928695678711,
0.10559506714344025,
0.007170975208282471,
0.18884895741939545,
-0.012166939675807953,
0.4028804898262024,
0.6721406579017639,
-0.1860484480857849,
-0.5906394720077515,
-0.2913389801979065,
0.22490230202674866,
0.2447507083415985,
0.3056870698928833,
-0.03624851256608963,
0.3247110843658447,
0.20091612637043,
0.09973955899477005,
-0.03965699300169945,
0.044598132371902466,
0.4839007556438446,
-0.06896018981933594,
-0.13994227349758148,
-0.4995940029621124,
0.656871497631073,
0.09780903160572052,
0.013736620545387268,
0.26683562994003296,
0.24611108005046844,
-0.17832772433757782,
-0.1669570803642273,
0.17246031761169434,
0.8291385173797607,
-0.04096850007772446,
0.23106001317501068,
0.39609116315841675,
-0.4848235249519348,
0.5719251036643982,
0.12026312947273254,
0.1941400021314621,
-0.37304002046585083,
-0.06337853521108627,
-0.008090680465102196,
-0.09199230372905731,
0.013527527451515198,
0.009493224322795868,
-0.007185433059930801,
0.33375677466392517,
-0.14169277250766754,
0.060310520231723785,
-0.11298087239265442,
0.01182519644498825,
-0.14286676049232483,
0.27735763788223267,
-0.515390932559967,
0.21487979590892792,
0.16524630784988403,
0.23827210068702698,
-0.19992291927337646,
-0.20566245913505554,
-0.10375654697418213,
-0.09229578077793121,
0.02424430102109909,
0.1859455704689026,
-0.381582111120224,
0.21161094307899475,
0.08494564890861511,
-0.20990851521492004,
-0.3028818964958191,
0.4327215850353241,
0.1628584861755371,
-0.1900705248117447,
-0.2635911703109741,
0.3623174726963043,
0.27311599254608154,
-0.06810352951288223,
0.16150306165218353,
-0.030141983181238174,
0.2988239526748657,
-0.30356815457344055,
-0.055388450622558594,
0.28544703125953674,
0.02795613929629326,
-0.5376612544059753,
-0.28949686884880066,
-0.0722665935754776,
-0.37658023834228516,
-0.15077832341194153,
-0.13214336335659027,
0.12796995043754578,
0.25195837020874023,
-0.30336323380470276,
0.1605207622051239,
0.1552582085132599,
0.15563082695007324,
-0.264599084854126,
0.056770436465740204,
-0.23915868997573853,
-0.17194879055023193,
0.3282777667045593,
-0.11237818747758865,
0.0018015652894973755,
0.4858085513114929,
0.3341839015483856,
0.03925585746765137,
-0.1379556655883789,
0.012377679347991943,
0.22582010924816132,
-0.23583272099494934,
0.19733472168445587,
-0.04332651570439339,
0.2427884191274643,
0.25121450424194336,
0.46155986189842224,
0.16520237922668457,
-0.18670612573623657,
0.035004403442144394,
-0.1815742701292038,
0.009483706206083298,
0.4817073345184326,
0.15770672261714935,
-0.008813068270683289,
-0.1952926516532898,
0.18235747516155243,
-0.07507150620222092,
-0.22570359706878662,
-0.3950365483760834,
0.203848734498024,
-0.14390158653259277,
-0.2771145701408386,
-0.35824254155158997,
0.0014214776456356049,
0.2592720687389374,
0.1789800226688385,
0.09735767543315887,
-0.2925741672515869,
-0.3537396192550659,
-0.16604769229888916,
-0.17085352540016174,
0.07086081802845001,
0.033423978835344315,
-0.08885876834392548,
0.09841015934944153,
-0.20008955895900726,
-0.06274637579917908,
0.012801237404346466,
-0.1373794972896576,
0.3463507890701294,
0.08125297725200653,
0.10522668808698654,
-0.002763953059911728,
-0.11826025694608688,
0.12217970192432404,
0.016588127240538597,
0.03415415808558464,
-0.0321347713470459,
0.28204289078712463,
0.09881889820098877,
-0.047556351870298386,
0.045597001910209656,
0.13921990990638733,
-0.01885513961315155,
-0.2877013683319092,
-0.023275092244148254,
0.2466728389263153,
-0.3490713834762573,
0.019790682941675186,
0.43900173902511597,
0.4129158556461334,
0.33391422033309937,
-0.23367807269096375,
-0.06594175100326538,
0.03395858779549599,
0.25426891446113586,
-0.2860066890716553,
-0.05366477370262146,
-0.3654850721359253,
0.18744754791259766,
-0.1943541169166565,
-0.01310991495847702,
0.07159341871738434,
0.06685739755630493,
0.10992259532213211,
0.30077674984931946,
0.2003920078277588,
-0.025467395782470703,
0.33980950713157654,
-0.15508629381656647,
0.07494908571243286,
0.11955083906650543,
0.31867650151252747,
-0.030823964625597,
0.1462729424238205,
0.12110314518213272,
0.11832467466592789,
0.24090984463691711,
0.1301385462284088,
0.10853900760412216,
-0.0022799819707870483,
-0.18707314133644104,
0.008457865566015244,
0.28937506675720215,
-0.14138898253440857,
-0.0005286931991577148,
-0.08315403759479523,
0.407268226146698,
-0.3353334665298462,
-0.029764723032712936,
-0.37190011143684387,
0.16792255640029907,
-0.041868455708026886,
-0.15755727887153625,
0.16522975265979767,
-0.18972456455230713,
0.10797776281833649,
0.05763813480734825,
-0.14316727221012115,
-0.23840998113155365,
-0.04647746682167053,
-0.056688085198402405,
-0.2598980665206909,
-0.506502628326416,
-0.26892369985580444,
0.172284334897995,
0.30498358607292175,
0.009284734725952148,
0.13465899229049683,
0.2707107663154602,
-0.23903581500053406,
0.2845743000507355,
0.4439420700073242,
0.332648366689682,
0.19323503971099854,
0.13351976871490479,
-0.11421111226081848,
0.0171820055693388,
-0.011442539282143116,
0.09067907929420471,
0.16139471530914307,
0.1812470257282257,
0.1034269779920578,
0.3300352394580841,
0.24589702486991882,
-0.21242892742156982,
0.16319721937179565,
-0.2599750757217407,
0.2762044072151184,
-0.4183765947818756,
0.4726521670818329,
-0.19548144936561584,
0.03019651025533676,
-0.13528098165988922,
0.21227726340293884,
-0.33654284477233887,
0.09226161986589432,
0.3247302770614624,
-0.13565810024738312,
-0.16072732210159302,
-0.12372185289859772,
0.138381227850914,
0.1564609855413437,
0.3751397430896759,
0.6169624924659729,
0.10070481151342392,
-0.10288000851869583,
-0.46282273530960083,
-0.6122585535049438,
0.020003914833068848,
-0.11227469146251678,
0.195114865899086,
-0.014568492770195007,
-0.07920685410499573,
-0.057173825800418854,
-0.08581042289733887,
0.20855292677879333,
-0.24715156853199005,
-0.3349531590938568,
-0.20942535996437073,
-0.33588817715644836,
0.1395668238401413,
-0.160365492105484,
0.1280805766582489,
-0.020531700924038887,
0.037192776799201965,
0.02846977487206459,
0.06944206357002258,
0.04522146284580231,
0.11958515644073486,
0.0844079852104187,
0.008262202143669128,
-0.3566029667854309,
0.29020917415618896,
0.14187800884246826,
0.049436651170253754,
0.10124153643846512,
-0.27471402287483215,
-0.35107913613319397,
-0.6006178855895996,
-0.1752646416425705,
0.21371591091156006,
-0.39932847023010254,
0.3152039051055908,
-0.11927628517150879,
-0.16635417938232422,
-0.24798373878002167,
0.397148072719574,
0.0729333683848381,
-0.32658034563064575,
-0.19884905219078064,
0.108714260160923,
0.11680755764245987,
0.022336946800351143,
0.2624645233154297,
0.4446199834346771,
0.04125354066491127,
0.16930629312992096,
-0.130850687623024,
-0.2479739487171173,
0.4088897109031677,
-0.5502561926841736,
0.12548306584358215,
-0.14244017004966736,
0.20961318910121918,
0.39310234785079956,
-0.06791790574789047,
-0.43120381236076355,
-0.1493133008480072,
0.4588048458099365,
0.4916499853134155,
-0.2030232846736908,
0.4504624903202057,
-0.01850195974111557,
-0.07818977534770966,
-0.0022149235010147095,
0.4493299424648285,
-0.0151742585003376,
-0.3239266276359558,
0.15133178234100342,
-0.09474242478609085
] |
https://github.com/huggingface/datasets/issues/806 | Quail dataset urls are out of date | Done! PR [https://github.com/huggingface/datasets/pull/820](https://github.com/huggingface/datasets/pull/820)
Updated links and also regenerated the metadata and dummy data for v1.3 in order to pass verifications as described here: [https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset](https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset). | <h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore. | 24 | Quail dataset urls are out of date
<h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore.
Done! PR [https://github.com/huggingface/datasets/pull/820](https://github.com/huggingface/datasets/pull/820)
Updated links and also regenerated the metadata and dummy data for v1.3 in order to pass verifications as described here: [https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset](https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset). | [
0.18143847584724426,
0.2633906900882721,
-0.030796097591519356,
0.05924561992287636,
0.04189120605587959,
0.12300201505422592,
-0.12396804988384247,
0.27636224031448364,
-0.19367794692516327,
-0.033901020884513855,
-0.07967721670866013,
-0.06463871151208878,
0.04962928965687752,
0.05433464050292969,
0.05471703037619591,
0.11283236742019653,
0.06956944614648819,
-0.1595681607723236,
-0.43161889910697937,
-0.10874257981777191,
-0.1913980096578598,
0.28268367052078247,
-0.13568457961082458,
-0.0009310618042945862,
-0.3394690155982971,
0.15082639455795288,
-0.23232533037662506,
0.36468562483787537,
-0.33223164081573486,
-0.4802742898464203,
0.25408557057380676,
0.09761320054531097,
0.13200388848781586,
0.4148569405078888,
-0.0001096010601031594,
-0.03297683596611023,
0.2606881260871887,
0.07207739353179932,
-0.3000725507736206,
-0.2538607716560364,
-0.33038240671157837,
-0.05347837507724762,
0.06425347924232483,
0.005197294056415558,
-0.11150383949279785,
0.008726314641535282,
-0.10955065488815308,
-0.15800167620182037,
0.22638630867004395,
0.4945196807384491,
0.24062670767307281,
0.16530360281467438,
0.12513603270053864,
-0.20521964132785797,
0.165878564119339,
-0.21568726003170013,
-0.023003190755844116,
0.44263818860054016,
0.1209791898727417,
0.14892585575580597,
0.1896131932735443,
0.45622560381889343,
0.0909186452627182,
-0.18026813864707947,
0.19111916422843933,
-0.024254661053419113,
0.05993664637207985,
-0.1483265608549118,
-0.12774670124053955,
0.027397269383072853,
0.20830127596855164,
-0.1990525722503662,
-0.5881252884864807,
-0.17602092027664185,
0.016502946615219116,
-0.4174695909023285,
0.1901533007621765,
-0.0808427557349205,
0.15513481199741364,
0.24806611239910126,
-0.2717455327510834,
-0.053940389305353165,
-0.0046206191182136536,
0.1716926395893097,
0.06387828290462494,
0.17188748717308044,
-0.10850750654935837,
-0.09880637377500534,
0.01242297887802124,
-0.026307061314582825,
0.12573684751987457,
0.07496725022792816,
-0.12733131647109985,
0.08490249514579773,
-0.1319330781698227,
-0.03597893565893173,
0.11388636380434036,
0.19780749082565308,
0.1343405544757843,
0.2857430577278137,
-0.03850115090608597,
-0.14742246270179749,
0.025824174284934998,
-0.19689133763313293,
0.06184780225157738,
0.3826510012149811,
0.15768031775951385,
-0.27020567655563354,
0.08010892570018768,
0.579771101474762,
-0.1599886566400528,
-0.015953104943037033,
0.1051405742764473,
-0.43485432863235474,
-0.32973605394363403,
0.09254860877990723,
0.2865138053894043,
-0.31870147585868835,
-0.06324029713869095,
0.010816124267876148,
-0.35023945569992065,
-0.07683983445167542,
0.06381633877754211,
0.2661099433898926,
-0.19277825951576233,
0.019029168412089348,
0.010239534080028534,
0.17837154865264893,
-0.07185154408216476,
-0.2222544550895691,
-0.2589593529701233,
0.09369716048240662,
-0.06321333348751068,
0.10311959683895111,
-0.07978032529354095,
-0.27121081948280334,
0.3014896512031555,
0.04334869980812073,
0.2006923258304596,
-0.19853320717811584,
-0.08812111616134644,
0.1705401986837387,
-0.027503930032253265,
0.15189321339130402,
-0.03453866392374039,
0.2503410577774048,
0.2580696940422058,
-0.1316424161195755,
-0.15061065554618835,
-0.16882455348968506,
-0.4042608439922333,
-0.4505808353424072,
0.11569210886955261,
0.2677430808544159,
-0.21154402196407318,
-0.2300754189491272,
-0.024117611348628998,
-0.05810524895787239,
-0.22641998529434204,
-0.044995881617069244,
0.05953878536820412,
-0.09667502343654633,
-0.11485999822616577,
-0.10251384228467941,
0.19102637469768524,
0.42678117752075195,
0.06518816947937012,
-0.02611980214715004,
0.02571268193423748,
0.03804023563861847,
-0.2048698365688324,
0.10641825199127197,
-0.08681376278400421,
-0.06545978039503098,
-0.334954172372818,
-0.20915764570236206,
0.1974397897720337,
-0.5608176589012146,
-0.09420231729745865,
0.048544421792030334,
-0.18074166774749756,
0.0936727225780487,
-0.16273635625839233,
-0.10186076909303665,
-0.2574155330657959,
-0.17297255992889404,
0.0969286635518074,
0.005984380841255188,
0.18155521154403687,
-0.17355677485466003,
-0.3533761203289032,
-0.33010968565940857,
-0.30044692754745483,
0.01616036891937256,
-0.08343349397182465,
0.11495231837034225,
0.07645690441131592,
-0.14231939613819122,
0.2333594262599945,
-0.07526792585849762,
-0.055865295231342316,
0.6734699010848999,
0.4449433982372284,
0.30453574657440186,
-0.12108752876520157,
-0.07601722329854965,
-0.2076108455657959,
0.3075021207332611,
-0.04865419492125511,
0.3698553144931793,
0.05295586958527565,
-0.21976375579833984,
-0.26232174038887024,
-0.03225020691752434,
-0.18723641335964203,
-0.3644116222858429,
0.1521928757429123,
0.0017651021480560303,
0.32936394214630127,
0.3688013255596161,
-0.1308612823486328,
0.24536049365997314,
-0.09269972890615463,
0.2844385504722595,
-0.3363262712955475,
0.20504175126552582,
-0.07534165680408478,
0.12986356019973755,
0.18031878769397736,
0.3316281735897064,
0.1685500293970108,
-0.047092925757169724,
0.06215820834040642,
0.4803515076637268,
0.024109967052936554,
0.22607921063899994,
0.29934999346733093,
0.38879626989364624,
0.1408165842294693,
-0.15285100042819977,
-0.26590779423713684,
0.05047415569424629,
-0.19810724258422852,
0.28524917364120483,
0.0042883604764938354,
0.5125675201416016,
-0.2272345870733261,
0.04371383786201477,
0.3117082715034485,
0.0802914947271347,
-0.025398408994078636,
-0.1287054866552353,
-0.06305375695228577,
-0.3391026556491852,
0.1343839317560196,
0.19053833186626434,
0.2555982172489166,
0.06941033154726028,
-0.08656459301710129,
0.2544049918651581,
0.30822497606277466,
0.0007833931595087051,
-0.11999111622571945,
0.04390257969498634,
-0.16330984234809875,
-0.030239351093769073,
0.0362187922000885,
0.4918470084667206,
0.046303875744342804,
0.18905074894428253,
0.14360348880290985,
0.26708871126174927,
-0.10659924894571304,
-0.3105114996433258,
0.20721302926540375,
-0.0025296658277511597,
0.12407674640417099,
-0.07945538312196732,
0.16050277650356293,
0.07900141179561615,
-0.3271408677101135,
-0.010496605187654495,
0.06674040108919144,
0.1396941989660263,
-0.3313041031360626,
-0.07371252030134201,
-0.41841304302215576,
-0.3264889717102051,
-0.4596143364906311,
-0.4717083275318146,
-0.5129225850105286,
-0.44993263483047485,
0.28552114963531494,
-0.056538764387369156,
-0.16175441443920135,
0.26722559332847595,
-0.21559472382068634,
-0.053165242075920105,
-0.07354869693517685,
-0.15256884694099426,
-0.028565367683768272,
0.16143763065338135,
-0.2533704936504364,
0.08040983974933624,
0.0947548896074295,
0.004785589408129454,
0.08358688652515411,
-0.1914670318365097,
0.07420658320188522,
-0.372344970703125,
-0.46358606219291687,
-0.056441374123096466,
-0.14089824259281158,
0.5550057291984558,
0.18130075931549072,
-0.021527327597141266,
-0.11950145661830902,
0.08605089038610458,
0.2670641541481018,
-0.09643752127885818,
-0.1470891386270523,
-0.09609664976596832,
0.004129239358007908,
0.21653087437152863,
-0.019194647669792175,
-0.39634010195732117,
0.09231791645288467,
-0.1952122151851654,
0.15194973349571228,
0.006909705698490143,
-0.13811996579170227,
0.22251011431217194,
0.04844317585229874,
0.21656003594398499,
-0.17572562396526337,
-0.009417746216058731,
-0.14964716136455536,
-0.5822510123252869,
0.2848048806190491,
-0.17670515179634094,
-0.23909737169742584,
0.025704745203256607,
0.16596317291259766,
0.2770978510379791,
-0.18859103322029114,
-0.49246931076049805,
-0.5709947347640991,
-0.06442511081695557,
0.1746457815170288,
0.23722606897354126,
-0.13558349013328552,
0.35873815417289734,
-0.0854974165558815,
-0.21942353248596191,
-0.09851683676242828,
-0.053788501769304276,
0.06148690730333328,
-0.021650146692991257,
0.250501424074173,
-0.18857279419898987,
0.4891974627971649,
0.17696820199489594,
0.843183696269989,
0.2600775361061096,
0.26094871759414673,
0.23622916638851166,
-0.1968095898628235,
0.3244536519050598,
0.04721308499574661,
-0.08102353662252426,
0.0727609172463417,
-0.10169529914855957,
-0.0037914570420980453,
0.042997825890779495,
0.30666518211364746,
0.7679780721664429,
-0.09145577251911163,
0.1827276349067688,
-0.3247428238391876,
-0.131031796336174,
-0.18171906471252441,
0.03568827733397484,
0.30205145478248596,
0.11696603894233704,
-0.042544834315776825,
0.01719825342297554,
-0.10266514122486115,
0.23174349963665009,
0.331600546836853,
-0.013530656695365906,
0.17323236167430878,
-0.6399103403091431,
-0.03650754690170288,
-0.3518027365207672,
0.37971019744873047,
0.06451879441738129,
0.13964788615703583,
0.05562654510140419,
-0.12337633222341537,
-0.05071455240249634,
-0.116081602871418,
0.4085841774940491,
-0.06917599588632584,
0.10590404272079468,
0.13506655395030975,
-0.3020002841949463,
-0.24611812829971313,
-0.088584303855896,
-0.02723037078976631,
-0.3619993031024933,
0.45751067996025085,
0.4446384906768799,
-0.16566577553749084,
-0.309814989566803,
0.056243933737277985,
-0.14170274138450623,
-0.053233642131090164,
0.2052561193704605,
-0.34869587421417236,
-0.4430466294288635,
-0.054642558097839355,
-0.2301967442035675,
-0.007173798978328705,
0.147079199552536,
-0.26783475279808044,
0.08680495619773865,
0.19137999415397644,
-0.06772416830062866,
0.06395497173070908,
0.0318148136138916,
0.24380192160606384,
0.14177396893501282,
0.019861120730638504,
0.27201002836227417,
0.015374865382909775,
0.40656742453575134,
0.691436231136322,
-0.13545455038547516,
-0.4697493314743042,
-0.3509453237056732,
0.2945716083049774,
0.25907233357429504,
0.326310932636261,
-0.04765847325325012,
0.3299770653247833,
0.19127994775772095,
0.07776155322790146,
-0.20937174558639526,
0.10485607385635376,
0.4534516930580139,
-0.04093722254037857,
-0.08530402183532715,
-0.3975670039653778,
0.5780666470527649,
0.08594207465648651,
0.02810315042734146,
0.25313717126846313,
0.33087968826293945,
-0.24439941346645355,
-0.18555034697055817,
0.22003284096717834,
0.842585563659668,
0.027327895164489746,
0.24988321959972382,
0.4652482569217682,
-0.48657745122909546,
0.6284451484680176,
0.11389167606830597,
0.11679093539714813,
-0.33045694231987,
-0.06226404756307602,
-0.005784118548035622,
-0.1061190515756607,
0.008202742785215378,
-0.06390306353569031,
-0.13778823614120483,
0.26580220460891724,
-0.06027901917695999,
0.0859861746430397,
-0.06797023862600327,
0.1801135241985321,
-0.2645600736141205,
0.2733730971813202,
-0.4418810307979584,
0.21285270154476166,
0.24513469636440277,
0.2972654402256012,
-0.22243565320968628,
-0.20040994882583618,
-0.15610277652740479,
-0.19804958999156952,
-0.01800614595413208,
0.18516159057617188,
-0.3557875454425812,
0.13905304670333862,
0.17248612642288208,
-0.10213389992713928,
-0.27566128969192505,
0.30335694551467896,
0.2223784625530243,
-0.07625745236873627,
-0.26802724599838257,
0.41688600182533264,
0.1282348930835724,
-0.04314166679978371,
0.18617463111877441,
-0.03400253877043724,
0.3404320478439331,
-0.23314058780670166,
-0.06306765973567963,
0.13821527361869812,
-0.07672596722841263,
-0.4391549825668335,
-0.23902644217014313,
-0.11839261651039124,
-0.44305557012557983,
-0.20567135512828827,
-0.04224814102053642,
0.06941786408424377,
0.11496499180793762,
-0.2710414230823517,
0.12994284927845,
0.04799754545092583,
0.10400072485208511,
-0.30767497420310974,
0.06995265930891037,
-0.28542619943618774,
-0.1601448804140091,
0.42543137073516846,
-0.32187238335609436,
-0.006744440644979477,
0.48138949275016785,
0.2502380609512329,
0.11230860650539398,
-0.11103541404008865,
-0.03719896823167801,
0.23809750378131866,
-0.29291725158691406,
0.16111178696155548,
-0.017208047211170197,
0.2694163918495178,
0.1723063439130783,
0.40408557653427124,
0.23765189945697784,
-0.09559316188097,
0.08369690179824829,
-0.2066100686788559,
0.02780027873814106,
0.4206291437149048,
0.11706411838531494,
0.05660035461187363,
-0.23264971375465393,
0.321002334356308,
0.0009796936064958572,
-0.11525684595108032,
-0.3622204661369324,
0.24784956872463226,
-0.1676051914691925,
-0.1988886296749115,
-0.2702733874320984,
-0.05736831575632095,
0.2942206561565399,
0.08232036232948303,
0.06733319163322449,
-0.19604292511940002,
-0.38535526394844055,
-0.12691935896873474,
-0.2115199714899063,
0.09006529301404953,
0.03981107100844383,
-0.12166281789541245,
0.06215067580342293,
-0.056266143918037415,
-0.06487686932086945,
-0.003202947787940502,
-0.13050098717212677,
0.31666263937950134,
0.0318104512989521,
0.08921024948358536,
-0.013513099402189255,
-0.040049806237220764,
0.10377073287963867,
-0.1322864592075348,
0.10112832486629486,
-0.012904092669487,
0.2341836392879486,
0.07587830722332001,
-0.19528217613697052,
0.0338548943400383,
0.17497092485427856,
0.11172614991664886,
-0.15577462315559387,
-0.06630655378103256,
0.23099583387374878,
-0.1855960190296173,
-0.053636353462934494,
0.30815184116363525,
0.46729299426078796,
0.37779635190963745,
-0.2285107523202896,
0.002617480233311653,
0.06090214475989342,
0.2245689183473587,
-0.20258384943008423,
0.03074304573237896,
-0.36187583208084106,
0.15366233885288239,
-0.06390631943941116,
0.005316868424415588,
0.14857657253742218,
0.09132452309131622,
0.18645524978637695,
0.2460992932319641,
0.21544502675533295,
0.0055521633476018906,
0.30465731024742126,
-0.16074097156524658,
-0.03494476526975632,
0.08004461228847504,
0.3350791335105896,
-0.1089567244052887,
0.16983184218406677,
-0.0041717104613780975,
0.11209441721439362,
0.29561537504196167,
-0.006813008338212967,
0.1529407948255539,
0.01029188185930252,
-0.1873323917388916,
-0.033222224563360214,
0.24695917963981628,
-0.13386769592761993,
0.03004305809736252,
-0.09037469327449799,
0.4863060712814331,
-0.4023510217666626,
-0.05685951188206673,
-0.36286661028862,
0.18429794907569885,
0.03693310171365738,
-0.19368049502372742,
0.11986947059631348,
-0.2513342797756195,
0.017705880105495453,
0.037014108151197433,
-0.04214915260672569,
-0.2770985960960388,
0.0040443092584609985,
-0.08287660777568817,
-0.24855415523052216,
-0.558395266532898,
-0.35070398449897766,
0.22205498814582825,
0.31338930130004883,
-0.02068076655268669,
0.19667036831378937,
0.36269837617874146,
-0.21105775237083435,
0.31591087579727173,
0.44627729058265686,
0.38882264494895935,
0.08953762799501419,
0.19719338417053223,
-0.04787644371390343,
-0.09101946651935577,
0.04385494440793991,
0.1091187447309494,
0.2886356711387634,
0.18979251384735107,
-0.00250934436917305,
0.4184229373931885,
0.2127280980348587,
-0.19552186131477356,
0.09284086525440216,
-0.29015564918518066,
0.21782462298870087,
-0.48558616638183594,
0.5161001682281494,
-0.23690372705459595,
0.09150005131959915,
-0.18255451321601868,
0.22030600905418396,
-0.37142395973205566,
0.1440790742635727,
0.26041191816329956,
-0.10470911860466003,
-0.05374538525938988,
-0.17214460670948029,
0.10955353081226349,
0.2026277631521225,
0.4219174087047577,
0.6534842252731323,
0.08876936137676239,
-0.178646981716156,
-0.558600664138794,
-0.686691403388977,
-0.0761818215250969,
-0.08748345077037811,
0.10364952683448792,
-0.09778036177158356,
-0.057117611169815063,
-0.09617023915052414,
-0.06899821013212204,
0.07693293690681458,
-0.2398114800453186,
-0.2191077023744583,
-0.24074849486351013,
-0.31127241253852844,
0.1616436243057251,
-0.2100406140089035,
0.058540597558021545,
0.0036477409303188324,
0.05390286445617676,
0.056127626448869705,
0.051027845591306686,
0.03608456254005432,
0.1960178017616272,
0.1249704509973526,
-0.01879940927028656,
-0.2710782289505005,
0.2645251452922821,
0.1476808488368988,
0.12950894236564636,
0.04239196330308914,
-0.3390609622001648,
-0.44375163316726685,
-0.4303646981716156,
-0.14745622873306274,
0.22990036010742188,
-0.3755777180194855,
0.3490489721298218,
-0.055729418992996216,
-0.22737537324428558,
-0.23841720819473267,
0.43887463212013245,
0.146150141954422,
-0.3155902922153473,
-0.2409459948539734,
0.11137866228818893,
-0.01859695091843605,
0.11044833809137344,
0.2772139012813568,
0.5209018588066101,
-0.031076975166797638,
0.26828595995903015,
-0.19458237290382385,
-0.29830172657966614,
0.5188693404197693,
-0.5274544358253479,
0.12734609842300415,
-0.1431819349527359,
0.24428485333919525,
0.29394081234931946,
-0.16053080558776855,
-0.5092291235923767,
-0.07872003316879272,
0.4858420193195343,
0.4363698363304138,
-0.21809911727905273,
0.40783852338790894,
-0.06994973123073578,
-0.04904337599873543,
0.005398590117692947,
0.5054845213890076,
0.024407681077718735,
-0.24261203408241272,
0.2663946747779846,
-0.01705186814069748
] |
https://github.com/huggingface/datasets/issues/805 | On loading a metric from datasets, I get the following error | Hi ! We support only pyarrow > 0.17.1 so that we have access to the `PyExtensionType` object.
Could you update pyarrow and try again ?
```
pip install --upgrade pyarrow
``` | `from datasets import load_metric`
`metric = load_metric('bleurt')`
Traceback:
210 class _ArrayXDExtensionType(pa.PyExtensionType):
211
212 ndims: int = None
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'
Any help will be appreciated. Thank you. | 31 | On loading a metric from datasets, I get the following error
`from datasets import load_metric`
`metric = load_metric('bleurt')`
Traceback:
210 class _ArrayXDExtensionType(pa.PyExtensionType):
211
212 ndims: int = None
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'
Any help will be appreciated. Thank you.
Hi ! We support only pyarrow > 0.17.1 so that we have access to the `PyExtensionType` object.
Could you update pyarrow and try again ?
```
pip install --upgrade pyarrow
``` | [
-0.4477338492870331,
0.04323546588420868,
-0.029589621350169182,
0.4208563566207886,
0.525189220905304,
0.10357332974672318,
0.16477690637111664,
0.19409063458442688,
0.109688401222229,
0.13626329600811005,
-0.10965181142091751,
0.3368699252605438,
-0.06277678906917572,
-0.16685864329338074,
0.1410338282585144,
-0.24637791514396667,
-0.027194775640964508,
0.19206054508686066,
0.09220932424068451,
-0.0036332979798316956,
-0.3685493469238281,
-0.1364811807870865,
-0.3558759093284607,
0.1456972360610962,
-0.16290585696697235,
0.2254023253917694,
0.1931554079055786,
0.009009651839733124,
-0.39829158782958984,
-0.7526150345802307,
0.3747635781764984,
-0.11199937760829926,
0.38160187005996704,
0.3474770784378052,
-0.00012406126188579947,
-0.053221575915813446,
0.4694945812225342,
0.06905315071344376,
-0.032565344125032425,
-0.15558861196041107,
-0.047249361872673035,
-0.5924623012542725,
0.47467300295829773,
-0.2663750648498535,
0.1151430532336235,
-0.38191524147987366,
-0.08037079125642776,
0.01068241149187088,
0.00004240870475769043,
0.32557782530784607,
0.11467774957418442,
0.2620677947998047,
0.17252306640148163,
-0.04340335726737976,
0.23120522499084473,
-0.20004115998744965,
-0.02619156613945961,
0.7022870779037476,
0.3933602273464203,
-0.07418841123580933,
0.04539385437965393,
-0.13261760771274567,
-0.2683166265487671,
0.3054686188697815,
0.6438339352607727,
0.04710589349269867,
0.7276010513305664,
0.11253365129232407,
-0.0025624223053455353,
0.20774361491203308,
0.5605260133743286,
-0.39929959177970886,
-0.18721528351306915,
-0.005595449358224869,
0.11980505287647247,
-0.5990043878555298,
-0.0057863518595695496,
0.15547771751880646,
-0.08632302284240723,
-0.029774878174066544,
-0.15595723688602448,
-0.27718260884284973,
-0.3049781620502472,
0.382737934589386,
-0.4256870150566101,
0.19994127750396729,
-0.0028613312169909477,
0.1904507577419281,
0.0421304814517498,
0.10369129478931427,
0.36129704117774963,
0.12350684404373169,
-0.034314606338739395,
0.320645809173584,
-0.19708268344402313,
0.3396156430244446,
-0.013392440974712372,
0.004550732672214508,
0.16329413652420044,
0.013046486303210258,
-0.11882922053337097,
0.018344372510910034,
0.2028711587190628,
0.3485451638698578,
0.16148249804973602,
0.30779552459716797,
0.16724629700183868,
0.011028890497982502,
0.05597198009490967,
-0.004024645313620567,
0.08306540548801422,
-0.0670679584145546,
-0.21604065597057343,
-0.4661630392074585,
0.5968539714813232,
0.06680022180080414,
0.3012463450431824,
-0.11603596806526184,
-0.4341299831867218,
-0.11299926042556763,
-0.086591437458992,
-0.09438827633857727,
0.04979855567216873,
0.25138092041015625,
-0.19973841309547424,
0.09123912453651428,
0.06776806712150574,
0.3696971535682678,
-0.2501341700553894,
-0.1857694387435913,
-0.1952723264694214,
0.10661156475543976,
-0.2625359296798706,
0.00002961140125989914,
0.08918026089668274,
-0.056817229837179184,
0.05680781602859497,
0.003025517798960209,
0.09761961549520493,
-0.11976392567157745,
-0.036867983639240265,
0.0555892251431942,
-0.3641161322593689,
0.29438215494155884,
-0.020761743187904358,
0.06735432147979736,
0.15511302649974823,
-0.2252226024866104,
-0.24458017945289612,
0.4579227864742279,
-0.6061690449714661,
-0.20870251953601837,
-0.15681402385234833,
0.1332366168498993,
-0.3736673593521118,
-0.10925523936748505,
-0.35283827781677246,
0.011628938838839531,
0.007776692509651184,
-0.41299471259117126,
-0.07132364064455032,
-0.31131941080093384,
-0.1520630121231079,
-0.3541126549243927,
0.20458188652992249,
-0.02271634340286255,
-0.5203088521957397,
-0.35177135467529297,
-0.012967752292752266,
-0.2946338653564453,
0.275132417678833,
-0.05845428630709648,
-0.16627010703086853,
0.30132660269737244,
0.015981806442141533,
0.1851959377527237,
0.6382396817207336,
-0.47526320815086365,
-0.3443495035171509,
-0.19503289461135864,
-0.0009899437427520752,
-0.2643800377845764,
-0.1600806713104248,
0.04090958461165428,
0.15011416375637054,
0.06417541205883026,
0.29806995391845703,
0.20621761679649353,
-0.0031768176704645157,
-0.15942969918251038,
-0.17330875992774963,
-0.2832827866077423,
0.4397924542427063,
0.34132063388824463,
0.30448514223098755,
-0.059127502143383026,
0.16991405189037323,
-0.17380201816558838,
0.1014140248298645,
-0.07185354828834534,
-0.15426920354366302,
0.18489210307598114,
0.32175636291503906,
-0.035723552107810974,
0.05504625663161278,
-0.4485323429107666,
-0.1258920133113861,
0.18921461701393127,
-0.3106262981891632,
-0.1679632067680359,
0.004241764545440674,
0.10948328673839569,
-0.43469029664993286,
0.23672915995121002,
-0.11085934937000275,
0.33394184708595276,
-0.02711522951722145,
-0.25892114639282227,
-0.21482324600219727,
0.18709173798561096,
-0.27716517448425293,
-0.1958680897951126,
-0.09498093277215958,
0.14484642446041107,
0.030930791050195694,
0.3782993257045746,
-0.07872896641492844,
-0.24149811267852783,
-0.05937344208359718,
0.25610917806625366,
0.307748943567276,
0.022154297679662704,
-0.15376299619674683,
0.2603685259819031,
0.16005107760429382,
0.08089408278465271,
-0.21384286880493164,
0.30931395292282104,
0.1825261414051056,
-0.46853843331336975,
0.11979899555444717,
-0.06687465310096741,
0.049430422484874725,
-0.09012284874916077,
0.4214506149291992,
0.3279109597206116,
0.23515190184116364,
0.13854999840259552,
-0.21114662289619446,
0.06768004596233368,
-0.059608496725559235,
0.1601518988609314,
0.1424189954996109,
-0.08541766554117203,
0.26261281967163086,
0.04199475795030594,
0.13802950084209442,
-0.10820800065994263,
0.2867133617401123,
-0.3000457286834717,
0.28927770256996155,
-0.16762782633304596,
0.3101269602775574,
0.05006927251815796,
-0.46734291315078735,
-0.0493842251598835,
-0.09229785203933716,
-0.45014628767967224,
0.38054072856903076,
0.19281767308712006,
-0.14069807529449463,
0.2333020716905594,
-0.04761652275919914,
-0.05488835647702217,
0.10004749149084091,
0.1550489068031311,
0.1539151966571808,
0.2955876588821411,
0.13725844025611877,
-0.052283067256212234,
-0.2871319353580475,
0.07655338943004608,
0.007502065971493721,
0.3762490153312683,
-0.4939359724521637,
0.0020112991333007812,
-0.2372107356786728,
0.32360419631004333,
0.10418416559696198,
-0.6289691925048828,
-0.2238152027130127,
-0.22102344036102295,
-0.008297353982925415,
0.07739325612783432,
0.2758723199367523,
0.2762279212474823,
0.07565058767795563,
0.02635595202445984,
0.10772210359573364,
-0.3396797478199005,
-0.04535433650016785,
-0.4383215606212616,
-0.23476529121398926,
-0.07685359567403793,
0.07770784199237823,
0.11925258487462997,
0.20987951755523682,
-0.3348410725593567,
0.27304548025131226,
-0.19019216299057007,
-0.26355162262916565,
-0.1309446394443512,
0.02199598215520382,
0.4793188273906708,
0.16227169334888458,
0.17294952273368835,
0.08530788123607635,
0.18293139338493347,
0.5639777183532715,
-0.3476022183895111,
-0.06824630498886108,
0.34825605154037476,
-0.44112810492515564,
-0.04496894031763077,
0.06623820960521698,
-0.05660989135503769,
-0.3273490071296692,
-0.24493011832237244,
-0.1256789267063141,
0.2227710634469986,
0.017765939235687256,
0.06135539710521698,
0.27822190523147583,
0.24756941199302673,
0.12726499140262604,
0.048237405717372894,
-0.21414420008659363,
-0.06036144122481346,
0.29594555497169495,
-0.1059393659234047,
-0.34649524092674255,
0.23845046758651733,
0.06307433545589447,
0.15602867305278778,
0.12192478030920029,
-0.2076561152935028,
-0.5688385963439941,
0.06592249870300293,
0.464195191860199,
-0.15306425094604492,
0.06020202487707138,
0.2451774626970291,
0.04058600217103958,
0.08111664652824402,
-0.13580402731895447,
-0.11963813006877899,
-0.18698793649673462,
0.05056116729974747,
0.20267383754253387,
-0.22582387924194336,
0.07873328030109406,
-0.32948312163352966,
0.5184358358383179,
-0.09823086857795715,
-0.0923544317483902,
0.2856253385543823,
-0.23087602853775024,
0.22271454334259033,
0.045764949172735214,
-0.2934776246547699,
0.11641828715801239,
0.08457621186971664,
-0.0986219123005867,
0.13520848751068115,
-0.09327298402786255,
-0.12192412465810776,
-0.07201638072729111,
-0.16411353647708893,
-0.16997495293617249,
-0.08420376479625702,
-0.015313701704144478,
0.11534756422042847,
0.23118707537651062,
-0.07529723644256592,
0.09692021459341049,
-0.3751876950263977,
-0.16731849312782288,
0.10902810096740723,
0.1622147411108017,
-0.06802361458539963,
-0.015293944627046585,
0.09406355023384094,
-0.3395543396472931,
-0.18212029337882996,
0.3705577850341797,
0.14563360810279846,
0.09415707737207413,
-0.06664960086345673,
0.2181900143623352,
0.2654320001602173,
0.025083350017666817,
0.48704010248184204,
-0.10977815836668015,
0.08953030407428741,
0.18711811304092407,
0.2904040217399597,
-0.7096180319786072,
-0.11577223241329193,
-0.09557598829269409,
-0.18597646057605743,
-0.1485859900712967,
0.02027105912566185,
-0.2645126283168793,
-0.027764052152633667,
0.14522957801818848,
0.43434950709342957,
-0.2057579904794693,
-0.183966264128685,
-0.37835192680358887,
-0.3793315291404724,
-0.12078270316123962,
-0.24273452162742615,
-0.13332410156726837,
0.5662703514099121,
0.2243228256702423,
0.09475645422935486,
-0.24993722140789032,
-0.00469125434756279,
0.15375760197639465,
0.07574363052845001,
0.23250234127044678,
-0.3217102587223053,
-0.1023775190114975,
0.13287383317947388,
-0.21038934588432312,
0.4325806498527527,
0.3238074779510498,
0.16683132946491241,
-0.6007298827171326,
-0.019283607602119446,
0.21328875422477722,
0.46578842401504517,
-0.06891456246376038,
-0.1712118238210678,
-0.00010804086923599243,
-0.24393314123153687,
0.06992123275995255,
-0.0859472006559372,
0.0014569838531315327,
0.434957891702652,
0.15077638626098633,
-0.2472899705171585,
-0.16912586987018585,
0.7192628383636475,
0.23620609939098358,
-0.0063842907547950745,
0.24471020698547363,
0.18610996007919312,
-0.15082576870918274,
0.03866512328386307,
0.26080602407455444,
0.8751798868179321,
-0.1485058069229126,
-0.035645123571157455,
0.6681917309761047,
0.06531423330307007,
-0.04343876987695694,
-0.20776624977588654,
-0.04419776424765587,
-0.3461955785751343,
-0.07067597657442093,
-0.13250645995140076,
-0.17457962036132812,
0.273408442735672,
-0.16513805091381073,
-0.0012431815266609192,
0.16315515339374542,
-0.37369054555892944,
0.12837420403957367,
0.20243607461452484,
-0.1762661337852478,
0.021101361140608788,
0.02032475173473358,
-0.14749860763549805,
0.07333991676568985,
-0.31769663095474243,
0.05135536193847656,
-0.2012733519077301,
0.07912284880876541,
0.025773320347070694,
0.042831167578697205,
-0.1739720106124878,
-0.15666508674621582,
-0.23340199887752533,
0.09200291335582733,
0.16689413785934448,
-0.31587648391723633,
-0.01820630393922329,
0.31532949209213257,
0.12520982325077057,
-0.19869579374790192,
-0.2998599112033844,
0.3306168019771576,
-0.35926389694213867,
-0.16492047905921936,
0.004581905901432037,
0.1117534264922142,
0.06928654760122299,
-0.1395101547241211,
-0.36706358194351196,
0.35937249660491943,
-0.013040250167250633,
-0.05930502712726593,
0.17107230424880981,
0.1315305382013321,
0.20788393914699554,
-0.29341408610343933,
-0.11841925978660583,
-0.3731434941291809,
0.4853236675262451,
-0.14371825754642487,
0.07635129988193512,
0.20601412653923035,
-0.13669078052043915,
0.2870104908943176,
0.14144906401634216,
-0.27497225999832153,
0.040708236396312714,
0.21115729212760925,
0.07841911911964417,
-0.15415632724761963,
0.3545111417770386,
-0.010618112981319427,
-0.014559011906385422,
-0.11024243384599686,
0.050998203456401825,
0.19057124853134155,
-0.2955194115638733,
0.15420953929424286,
0.386225163936615,
0.3326420187950134,
-0.01596514880657196,
0.4168640077114105,
0.2138175219297409,
-0.24623757600784302,
-0.1240968406200409,
-0.5434439182281494,
-0.12335537374019623,
0.32227766513824463,
0.01833437569439411,
0.024310875684022903,
-0.09609802067279816,
0.14999748766422272,
-0.045715007930994034,
-0.021949512884020805,
-0.20240679383277893,
0.2412581890821457,
0.023240773007273674,
0.07978597283363342,
-0.11437921226024628,
0.013966016471385956,
-0.003854987910017371,
-0.03837873041629791,
0.048350125551223755,
-0.23400069773197174,
-0.19786988198757172,
-0.15494975447654724,
-0.1765662580728531,
0.2169446349143982,
0.02597006782889366,
0.05017288029193878,
0.19632233679294586,
-0.12542784214019775,
-0.15402309596538544,
-0.09309521317481995,
-0.04823080450296402,
0.1811448335647583,
-0.17590641975402832,
0.2702621817588806,
0.3743319511413574,
0.17919106781482697,
-0.21392787992954254,
0.17775575816631317,
0.024697590619325638,
0.4639773368835449,
-0.07396191358566284,
0.015664251521229744,
0.09108349680900574,
0.15063469111919403,
-0.04549693316221237,
0.08571085333824158,
0.3387265205383301,
-0.2733120918273926,
0.3574755787849426,
-0.39033669233322144,
0.31229066848754883,
-0.11713560670614243,
0.188155859708786,
0.21427883207798004,
-0.30701372027397156,
0.18321722745895386,
0.018659666180610657,
0.12433061003684998,
-0.3278881013393402,
-0.0417940616607666,
0.3054872453212738,
0.08743686974048615,
-0.10003548860549927,
0.10187690705060959,
0.17637144029140472,
0.010102100670337677,
0.04365716129541397,
-0.030397266149520874,
0.33715927600860596,
0.07319709658622742,
-0.01853751763701439,
0.4552444815635681,
0.03249884024262428,
0.0711442306637764,
0.5597203373908997,
0.2887056767940521,
0.10784173756837845,
0.44978398084640503,
-0.3665195405483246,
0.39618030190467834,
-0.11664403229951859,
0.10726204514503479,
-0.13343527913093567,
-0.3418039083480835,
-0.08030913770198822,
0.0999024286866188,
0.1469048410654068,
-0.29098719358444214,
-0.10951189696788788,
0.5688399076461792,
-0.12331122905015945,
-0.12631674110889435,
-0.23147700726985931,
0.20868492126464844,
-0.022388506680727005,
-0.0030339001677930355,
-0.28001582622528076,
-0.03938024118542671,
0.06382779777050018,
-0.1271587312221527,
-0.01918971911072731,
-0.22867538034915924,
0.06519345939159393,
0.12370782345533371,
-0.1528433859348297,
-0.4439595937728882,
0.153446763753891,
0.33289673924446106,
-0.06956746429204941,
0.0009245537221431732,
0.14205048978328705,
0.02213156223297119,
-0.04310549795627594,
0.11551979184150696,
0.3692893981933594,
0.44029951095581055,
0.2888292372226715,
-0.25575098395347595,
-0.164584219455719,
-0.27273842692375183,
-0.1934589445590973,
0.021460093557834625,
0.20226562023162842,
0.28297823667526245,
0.12087219953536987,
0.05732347443699837,
0.14223931729793549,
-0.11750585585832596,
0.28808143734931946,
-0.05098565295338631,
0.07161050289869308,
-0.16487784683704376,
0.3716294765472412,
-0.1357869803905487,
-0.2858303189277649,
-0.34384068846702576,
-0.22971239686012268,
-0.1930752694606781,
0.18203365802764893,
0.40441960096359253,
0.21935459971427917,
-0.046959102153778076,
-0.023800700902938843,
-0.009036474861204624,
-0.10814167559146881,
0.328502357006073,
0.3346221148967743,
0.45299232006073,
-0.3661452531814575,
-0.0021698176860809326,
-0.7485195994377136,
0.33436068892478943,
-0.1507086604833603,
0.0019649844616651535,
0.42477768659591675,
-0.029755163937807083,
-0.2588002681732178,
0.30205845832824707,
0.2716752290725708,
0.465641587972641,
0.2638261616230011,
-0.016076192259788513,
-0.4723949432373047,
-0.22783009707927704,
0.07900309562683105,
-0.09509150683879852,
-0.22664810717105865,
-0.24805235862731934,
0.15624241530895233,
-0.6433685421943665,
-0.06598018854856491,
-0.11069527268409729,
0.01698390394449234,
0.05310629680752754,
0.37802815437316895,
0.6841909289360046,
-0.04897058755159378,
0.8348817825317383,
0.17600959539413452,
0.33359986543655396,
-0.08119790256023407,
-0.29640910029411316,
-0.12336656451225281,
0.14390411972999573,
-0.18884840607643127,
0.018038112670183182,
-0.20531176030635834,
-0.03964022174477577,
-0.1567748486995697,
0.4555692672729492,
-0.09517134726047516,
-0.28281328082084656,
-0.24446973204612732,
0.13477076590061188,
-0.09881383925676346,
0.12095659226179123,
-0.08767371624708176,
-0.1292891502380371,
0.11707049608230591,
0.3384662866592407,
-0.18730595707893372,
-0.2736491858959198,
0.5236209630966187,
-0.2739258110523224,
-0.3627234399318695,
0.16662819683551788,
0.17331331968307495,
0.10412324965000153,
-0.16060130298137665,
-0.5872604250907898,
0.08500238507986069,
0.5146577954292297,
0.0195271298289299,
-0.26080846786499023,
0.279998242855072,
-0.17409218847751617,
0.09328660368919373,
-0.04097786918282509,
0.3139173984527588,
-0.13617151975631714,
-0.020124275237321854,
-0.205331951379776,
-0.17220449447631836
] |
https://github.com/huggingface/datasets/issues/804 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa') | Yes: TriviaQA has a private test set for the leaderboard [here](https://competitions.codalab.org/competitions/17208)
For the KILT training and validation portions, you need to link the examples from the TriviaQA dataset as detailed here:
https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md | # The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
``` | 32 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa')
# The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
```
Yes: TriviaQA has a private test set for the leaderboard [here](https://competitions.codalab.org/competitions/17208)
For the KILT training and validation portions, you need to link the examples from the TriviaQA dataset as detailed here:
https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md | [
0.4346868395805359,
-0.3452416956424713,
-0.08128143846988678,
0.1217549666762352,
0.2600175738334656,
-0.0797688439488411,
0.4260968267917633,
0.46186262369155884,
0.13298143446445465,
0.26882725954055786,
0.09468234330415726,
0.2613142430782318,
-0.06708568334579468,
0.5240861177444458,
0.06833281368017197,
0.25987789034843445,
-0.11342576891183853,
0.0808696299791336,
-0.144695445895195,
-0.22198647260665894,
-0.21169240772724152,
0.02704615704715252,
-0.21685585379600525,
-0.12449528276920319,
-0.31291085481643677,
0.009797519072890282,
-0.045857883989810944,
-0.04119078814983368,
0.04880256950855255,
-0.37934237718582153,
0.20509624481201172,
0.0018789246678352356,
-0.4776946008205414,
0.25080257654190063,
-0.00012658922059927136,
-0.0889236181974411,
0.19938696920871735,
-0.1674763560295105,
-0.4454840421676636,
-0.14416803419589996,
-0.6783220767974854,
0.01412774808704853,
0.17040342092514038,
-0.24822300672531128,
-0.37044593691825867,
0.33240610361099243,
0.004520857706665993,
-0.3541147708892822,
0.37150633335113525,
0.4303570091724396,
0.0710940957069397,
0.30916792154312134,
-0.3334417939186096,
-0.11235932260751724,
-0.01772855967283249,
0.0783429816365242,
-0.22809039056301117,
0.08036591112613678,
0.21976228058338165,
-0.12707637250423431,
0.05331989750266075,
0.3302710950374603,
0.15313397347927094,
0.1341964304447174,
-0.04234924167394638,
0.11158547550439835,
0.1451227366924286,
-0.5243436098098755,
0.27119508385658264,
0.4891029894351959,
0.1355249285697937,
-0.02599804848432541,
-0.47156062722206116,
-0.37028637528419495,
-0.0004938456695526838,
-0.20809535682201385,
0.2873295247554779,
0.36262843012809753,
-0.2731274664402008,
-0.0013897418975830078,
-0.37795472145080566,
0.08809331059455872,
-0.19872114062309265,
-0.031892791390419006,
-0.6022472381591797,
0.2828425168991089,
-0.04195231944322586,
0.056307896971702576,
-0.2972772419452667,
0.05859924852848053,
-0.12149576097726822,
-0.25798067450523376,
0.055312689393758774,
0.2168535441160202,
-0.5435726642608643,
-0.08048536628484726,
0.24165746569633484,
-0.10616185516119003,
0.021168161183595657,
-0.15630942583084106,
0.08600128442049026,
0.03188012167811394,
-0.24773377180099487,
0.13397276401519775,
0.4812695384025574,
0.41122743487358093,
0.4215256869792938,
0.11924111098051071,
0.11235412955284119,
0.0562160462141037,
-0.15399563312530518,
0.0744720920920372,
0.03481797128915787,
0.1464502066373825,
-0.19807036221027374,
0.0675947517156601,
0.3355777859687805,
-0.41466474533081055,
-0.5860320925712585,
0.14215442538261414,
-0.33261504769325256,
0.08644470572471619,
-0.106722392141819,
0.3205637037754059,
-0.2858099639415741,
0.25361308455467224,
-0.1336444914340973,
0.42430031299591064,
-0.27771592140197754,
0.07955867797136307,
-0.1509978026151657,
-0.004697620868682861,
-0.2762499749660492,
0.19312264025211334,
0.22470508515834808,
0.03464172035455704,
0.12162057310342789,
0.1096353605389595,
0.02741619199514389,
-0.09197691082954407,
0.15318451821804047,
-0.2339351922273636,
0.434416264295578,
0.1880722939968109,
0.1408805102109909,
0.11890531331300735,
0.2922717332839966,
-0.14103929698467255,
0.03182544559240341,
0.4630863070487976,
-0.03873450309038162,
-0.15310566127300262,
0.2196509689092636,
0.11768710613250732,
-0.536198079586029,
0.06122755631804466,
-0.06975484639406204,
0.368198961019516,
0.2204563319683075,
0.05228820815682411,
0.06394844502210617,
-0.17597433924674988,
-0.09188242256641388,
-0.1526440531015396,
0.29485493898391724,
0.15813183784484863,
-0.47794127464294434,
-0.10723145306110382,
0.216258704662323,
0.0987299382686615,
-0.17956757545471191,
0.08343973755836487,
-0.005962554831057787,
0.3908628225326538,
-0.23752333223819733,
0.0595923513174057,
0.14955423772335052,
-0.5808665752410889,
-0.04919920861721039,
-0.25242820382118225,
0.010969407856464386,
0.31003817915916443,
-0.01822490245103836,
-0.10820247232913971,
0.19286924600601196,
0.17972442507743835,
0.038076166063547134,
0.03077104315161705,
-0.03853195160627365,
-0.12820668518543243,
-0.27702999114990234,
-0.004810873419046402,
0.20653970539569855,
0.12269648909568787,
0.2405066192150116,
-0.015521802008152008,
-0.140945702791214,
0.0033427365124225616,
0.18041902780532837,
0.015043150633573532,
0.1349630206823349,
0.04773653671145439,
0.41596996784210205,
-0.03340458869934082,
-0.08101221174001694,
0.14351102709770203,
-0.22646504640579224,
0.27954044938087463,
-0.09048524498939514,
0.4886127710342407,
-0.05794140696525574,
-0.26431241631507874,
-0.2712049186229706,
-0.1003054529428482,
-0.5140524506568909,
-0.6296908855438232,
0.06578472256660461,
0.04233548790216446,
0.02345697209239006,
0.09346336126327515,
-0.17820145189762115,
0.05062177777290344,
0.037933848798274994,
-0.16568779945373535,
-0.3817005455493927,
0.25125908851623535,
0.05964537337422371,
0.007679848000407219,
-0.3221113383769989,
0.508358359336853,
-0.057330720126628876,
0.07280760258436203,
0.10127200186252594,
-0.09024902433156967,
0.08239702880382538,
-0.06171350181102753,
0.10811708867549896,
0.33627623319625854,
0.33239734172821045,
-0.12987571954727173,
-0.28182467818260193,
0.34821832180023193,
0.09352000802755356,
-0.24798551201820374,
-0.544437825679779,
0.5965659618377686,
0.007142737507820129,
0.41997066140174866,
0.05163776874542236,
0.02228592522442341,
-0.06768923252820969,
-0.2766862213611603,
-0.21883252263069153,
-0.14782938361167908,
-0.04635049030184746,
-0.22629737854003906,
0.18643537163734436,
0.10024606436491013,
-0.29564523696899414,
0.20279863476753235,
0.41888949275016785,
0.021040812134742737,
0.20853686332702637,
-0.30533477663993835,
0.01804615929722786,
-0.030768578872084618,
0.18428966403007507,
0.023152057081460953,
0.4413943886756897,
0.08458023518323898,
0.23868298530578613,
0.07269525527954102,
0.16043655574321747,
-0.2435353547334671,
0.15271367132663727,
-0.02302815020084381,
0.17297856509685516,
0.38987302780151367,
0.3559093773365021,
-0.16465583443641663,
-0.09035196900367737,
0.33590537309646606,
0.07503597438335419,
0.1385468691587448,
-0.32680651545524597,
-0.1666373610496521,
-0.1502794325351715,
-0.04198772460222244,
-0.1752016246318817,
0.05233428627252579,
0.024841295555233955,
-0.4100831151008606,
0.3285828232765198,
-0.03108874335885048,
-0.2622549533843994,
0.24476510286331177,
-0.02835387922823429,
0.18851226568222046,
-0.05952422320842743,
-0.3672984838485718,
-0.01290387287735939,
-0.5210819244384766,
-0.24303889274597168,
0.13837796449661255,
-0.16499468684196472,
-0.19139938056468964,
0.139903262257576,
-0.11326470226049423,
-0.5428167581558228,
-0.21947629749774933,
-0.4293459951877594,
0.14604820311069489,
-0.20558226108551025,
0.3748725950717926,
0.07411216199398041,
0.47478944063186646,
-0.3547726273536682,
-0.03228827938437462,
0.5146632194519043,
0.021866003051400185,
-0.36928892135620117,
0.012095298618078232,
0.15776337683200836,
0.09290369600057602,
-0.13277380168437958,
-0.7486938238143921,
-0.10534364730119705,
-0.2937639057636261,
0.2660326063632965,
-0.08606063574552536,
0.19858801364898682,
0.39759740233421326,
-0.11532315611839294,
-0.039976440370082855,
-0.19416457414627075,
-0.19326120615005493,
-0.19470538198947906,
0.04865367338061333,
0.16621236503124237,
-0.13805021345615387,
-0.3828948438167572,
0.08767803013324738,
-0.20035292208194733,
0.556600034236908,
-0.004373176954686642,
-0.4171011447906494,
-0.442428320646286,
0.004663638770580292,
0.509113073348999,
0.2116536647081375,
-0.11507678031921387,
0.20269575715065002,
0.02641254849731922,
-0.04594404250383377,
-0.1555679887533188,
0.013156197965145111,
0.5017898082733154,
0.35553255677223206,
0.10793296247720718,
0.06524080038070679,
0.024799732491374016,
0.3510318994522095,
0.6415975093841553,
0.37862449884414673,
0.36389485001564026,
0.12898457050323486,
-0.2493530511856079,
0.3066883981227875,
-0.31295132637023926,
-0.3488161563873291,
0.30505576729774475,
0.13179028034210205,
-0.08711355924606323,
0.3041985034942627,
0.02394002117216587,
0.4075458347797394,
-0.20449692010879517,
0.2693421244621277,
-0.5056167244911194,
-0.318582683801651,
0.04996897280216217,
-0.3135150671005249,
0.19144973158836365,
0.12797871232032776,
0.21958410739898682,
0.13103196024894714,
-0.12259557098150253,
0.05166797712445259,
-0.08255159854888916,
0.14239001274108887,
-0.04204792156815529,
-0.45060041546821594,
-0.22514550387859344,
-0.18298032879829407,
0.13232716917991638,
0.015557941049337387,
0.1016555204987526,
-0.1608114093542099,
-0.25906914472579956,
0.22627601027488708,
0.1118173748254776,
0.8663641810417175,
-0.002316368743777275,
-0.027138955891132355,
-0.02491869032382965,
-0.1305045336484909,
-0.36164602637290955,
-0.09368006885051727,
-0.3786868751049042,
-0.10360009223222733,
0.07403005659580231,
0.2937026023864746,
-0.27112820744514465,
-0.11672651767730713,
-0.07295576483011246,
0.02010985091328621,
-0.16357913613319397,
-0.027010038495063782,
-0.34078240394592285,
-0.22464686632156372,
-0.012965232133865356,
0.16195692121982574,
0.07004193961620331,
0.4928731918334961,
-0.31837260723114014,
-0.1965547353029251,
-0.05942140519618988,
0.08941546827554703,
0.28544867038726807,
0.3582049608230591,
0.29591476917266846,
-0.005901671946048737,
0.1324230283498764,
-0.01496313139796257,
-0.14604245126247406,
-0.14466390013694763,
0.48545587062835693,
-0.0010810866951942444,
0.036275479942560196,
0.1864044964313507,
-0.27702540159225464,
0.3975396156311035,
0.40376052260398865,
0.13266782462596893,
0.13540732860565186,
-0.25063154101371765,
-0.015214525163173676,
-0.1475255936384201,
0.11114508658647537,
0.07270356267690659,
-0.06185273826122284,
0.07889777421951294,
-0.41282957792282104,
0.22292062640190125,
-0.040577858686447144,
-0.16962510347366333,
0.2048560380935669,
0.0768691822886467,
-0.20174074172973633,
-0.03513207286596298,
0.09746155142784119,
0.8919267654418945,
-0.06621171534061432,
0.41345420479774475,
0.6620020270347595,
0.2334071546792984,
0.3648495078086853,
-0.006940461695194244,
0.28217947483062744,
-0.3736187219619751,
-0.11210301518440247,
0.02003760077059269,
-0.13168886303901672,
-0.026899494230747223,
0.2928866744041443,
-0.14613309502601624,
0.6321948766708374,
-0.0056274086236953735,
0.5025165677070618,
-0.004844017326831818,
-0.3010719418525696,
-0.013427497819066048,
0.20095477998256683,
-0.5890645384788513,
0.026461508125066757,
0.0050040073692798615,
0.4218776524066925,
-0.14187407493591309,
-0.0885392427444458,
-0.3659605085849762,
-0.050475530326366425,
-0.01322975754737854,
0.27547767758369446,
-0.42452651262283325,
-0.04546545445919037,
0.37580493092536926,
-0.3739210367202759,
-0.23522302508354187,
0.5581881999969482,
0.00995287299156189,
0.18034568428993225,
-0.17301930487155914,
0.20480597019195557,
0.08449968695640564,
0.30164003372192383,
0.2449369579553604,
0.252637654542923,
0.20853619277477264,
-0.1569751501083374,
-0.381891667842865,
0.2623745799064636,
-0.24109023809432983,
0.24312154948711395,
-0.29899680614471436,
0.41516661643981934,
0.22723743319511414,
-0.19528809189796448,
-0.41412585973739624,
-0.006097957491874695,
0.21157240867614746,
-0.15608930587768555,
0.06611661612987518,
-0.1261323094367981,
-0.2398512363433838,
0.25142917037010193,
0.01969735138118267,
-0.28739410638809204,
0.1271049678325653,
0.273132860660553,
0.17482304573059082,
0.05255358666181564,
0.7209168672561646,
-0.04289501532912254,
0.00045739859342575073,
-0.23846393823623657,
0.08221762627363205,
0.16357514262199402,
-0.09442181140184402,
0.2792905271053314,
0.17269612848758698,
-0.13657289743423462,
-0.005263166967779398,
0.5161392688751221,
0.07682265341281891,
0.08293727785348892,
-0.05607512220740318,
-0.395974338054657,
0.05809684097766876,
0.29017242789268494,
-0.04141576215624809,
0.1876639574766159,
-0.14686477184295654,
0.0004630899056792259,
0.20055997371673584,
-0.18003299832344055,
-0.25123387575149536,
-0.27294835448265076,
-0.4118514358997345,
0.4171561598777771,
0.03752480447292328,
0.042851075530052185,
0.2883037030696869,
-0.1083398312330246,
0.08450770378112793,
-0.3131255507469177,
-0.34299713373184204,
-0.21588090062141418,
0.034330885857343674,
0.1953561156988144,
0.24345675110816956,
0.152054563164711,
0.03189096227288246,
0.026794124394655228,
-0.001787738874554634,
-0.21902872622013092,
0.36368411779403687,
0.2121642827987671,
-0.010455712676048279,
0.2798038721084595,
-0.06378409266471863,
0.3293093740940094,
-0.212748721241951,
0.0035485215485095978,
0.03963606059551239,
-0.135297492146492,
0.2089325487613678,
-0.11675862967967987,
0.0492621585726738,
-0.03002328798174858,
0.166513130068779,
0.13370177149772644,
-0.04541684687137604,
-0.06792046874761581,
-0.029807470738887787,
-0.23521746695041656,
0.012488540261983871,
-0.05123187229037285,
0.166179358959198,
0.26026350259780884,
-0.20535209774971008,
0.21541240811347961,
-0.057104721665382385,
0.1771765947341919,
-0.2969948947429657,
0.36539509892463684,
-0.0021927133202552795,
0.11827824264764786,
0.13469438254833221,
0.27471426129341125,
0.17550477385520935,
-0.4053771495819092,
0.35373401641845703,
0.19535481929779053,
-0.18741779029369354,
-0.5741313695907593,
0.28709474205970764,
0.40745997428894043,
-0.10711376368999481,
0.04906049370765686,
0.040418680757284164,
-0.35182490944862366,
-0.3844278156757355,
0.03694840893149376,
-0.008321329951286316,
0.3608299493789673,
0.049773942679166794,
-0.1657889485359192,
0.20719587802886963,
0.08413876593112946,
-0.06629793345928192,
0.021983236074447632,
-0.287925124168396,
-0.06014867126941681,
0.12514401972293854,
0.29440680146217346,
-0.19056935608386993,
-0.24901334941387177,
0.10384760051965714,
-0.19337044656276703,
-0.14301246404647827,
-0.07697595655918121,
-0.11411946266889572,
-0.2166653275489807,
-0.034094713628292084,
-0.14445313811302185,
0.06585383415222168,
-0.32977020740509033,
0.43579351902008057,
-0.02828572690486908,
0.01850118488073349,
-0.3719080984592438,
0.009090285748243332,
0.46414560079574585,
0.35658398270606995,
0.1119125634431839,
0.5008338093757629,
0.21571744978427887,
0.13414007425308228,
0.20784038305282593,
0.6149325966835022,
0.25867316126823425,
0.34192460775375366,
-0.3233904540538788,
0.11925961077213287,
-0.03369573503732681,
-0.28115108609199524,
0.029010381549596786,
0.2035486102104187,
0.1608709692955017,
-0.07421250641345978,
0.3146442770957947,
0.08175540715456009,
-0.04660682752728462,
0.20618373155593872,
0.1415969580411911,
-0.10395756363868713,
-0.20966742932796478,
0.3489554524421692,
0.07704761624336243,
-0.14076265692710876,
0.10816752910614014,
-0.07658160477876663,
-0.5496801733970642,
-0.12222129106521606,
0.06634661555290222,
0.2608990967273712,
0.20805728435516357,
-0.013395417481660843,
0.048225536942481995,
-0.08407452702522278,
0.12651896476745605,
0.13578999042510986,
0.2407110035419464,
-0.3984413743019104,
0.21946080029010773,
-0.506574273109436,
0.2775186598300934,
0.10636617243289948,
-0.15800827741622925,
-0.22289206087589264,
0.12812307476997375,
-0.012584269046783447,
0.08071011304855347,
-0.1649157553911209,
-0.2625877559185028,
0.31323131918907166,
-0.027287177741527557,
-0.6367023587226868,
-0.032688748091459274,
0.23906956613063812,
-0.07832951843738556,
-0.086359404027462,
-0.27879345417022705,
0.006923787295818329,
-0.02963631972670555,
-0.11672449856996536,
0.2831626534461975,
0.062232792377471924,
0.06596565246582031,
0.10938780009746552,
0.03912131115794182,
0.2266281396150589,
0.5997710227966309,
0.03509581834077835,
0.11226924508810043,
-0.0781707614660263,
-0.08435771614313126,
-0.07852137088775635,
0.10045120120048523,
0.0732874870300293,
0.2886969745159149,
0.2508956789970398,
-0.2273733764886856,
0.04806238040328026,
0.2219943106174469,
0.22414393723011017,
-0.04245791211724281,
0.06555160880088806,
0.09789777547121048,
0.12459168583154678,
-0.03459707647562027,
0.03199059143662453,
0.0805554986000061,
-0.06927202641963959,
0.016645705327391624,
-0.25650554895401,
-0.42558953166007996,
0.36372804641723633,
-0.5796006917953491,
-0.3352660536766052,
-0.2134290337562561,
0.18661965429782867,
0.034283291548490524,
-0.2241687774658203,
-0.9314984083175659,
-0.19212894141674042,
0.35692304372787476,
-0.20975306630134583,
-0.04263213276863098,
0.14563244581222534,
-0.26745590567588806,
-0.10380103439092636,
-0.15685832500457764,
0.12176798284053802,
0.030860858038067818,
-0.05446575582027435,
-0.13671483099460602,
-0.422246515750885
] |
https://github.com/huggingface/datasets/issues/804 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa') | Oh ok, I guess I read the paper too fast 😅, thank you for your answer! | # The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
``` | 16 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa')
# The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
```
Oh ok, I guess I read the paper too fast 😅, thank you for your answer! | [
0.46811819076538086,
-0.4883507788181305,
-0.11691725254058838,
0.0633329302072525,
0.3016149401664734,
-0.061881955713033676,
0.5027802586555481,
0.4417296051979065,
0.14433005452156067,
0.29519709944725037,
0.1505081057548523,
0.2478305697441101,
-0.10581699013710022,
0.4204444885253906,
0.034329742193222046,
0.20402254164218903,
-0.018228456377983093,
0.13410484790802002,
-0.22425037622451782,
-0.24635757505893707,
-0.24946075677871704,
-0.0017765164375305176,
-0.2310020476579666,
-0.13405102491378784,
-0.31488320231437683,
0.019281703978776932,
-0.018374335020780563,
-0.04412935674190521,
-0.006669798865914345,
-0.2820153534412384,
0.2964688837528229,
0.04168279841542244,
-0.5087097883224487,
0.27961552143096924,
-0.0001253977679880336,
0.017660126090049744,
0.16554342210292816,
-0.16275915503501892,
-0.30214589834213257,
-0.2690976858139038,
-0.5443491339683533,
0.0034596771001815796,
0.20093849301338196,
-0.2457510530948639,
-0.3536373972892761,
0.2595885396003723,
-0.0016623493283987045,
-0.24291011691093445,
0.320855975151062,
0.44144633412361145,
0.08853310346603394,
0.34025195240974426,
-0.29831862449645996,
-0.09769164025783539,
0.10077150911092758,
0.17366483807563782,
-0.21276527643203735,
0.10061144828796387,
0.3349827826023102,
-0.18392246961593628,
0.06615521013736725,
0.4312535524368286,
0.11574855446815491,
0.07655724883079529,
-0.009521149098873138,
0.08505351841449738,
0.1928475797176361,
-0.5020108222961426,
0.22595548629760742,
0.4908401370048523,
0.11945545673370361,
0.01170562207698822,
-0.4616633653640747,
-0.36169901490211487,
-0.0677117332816124,
-0.16158461570739746,
0.23915836215019226,
0.25633466243743896,
-0.3226279318332672,
0.05452302470803261,
-0.380676805973053,
0.009127803146839142,
-0.1806761920452118,
-0.015691407024860382,
-0.5306882262229919,
0.3866954743862152,
-0.06290022283792496,
0.06665108352899551,
-0.23400576412677765,
0.005801847204566002,
-0.09444867819547653,
-0.22782811522483826,
0.1065993532538414,
0.19179977476596832,
-0.4877150058746338,
-0.07865966111421585,
0.24689128994941711,
-0.17499405145645142,
0.017060954123735428,
-0.1575658917427063,
0.14094166457653046,
-0.010139618068933487,
-0.23792971670627594,
0.18093830347061157,
0.4561164081096649,
0.3717736303806305,
0.38369232416152954,
0.11709681898355484,
0.12539154291152954,
0.024882065132260323,
-0.17799760401248932,
0.06830094754695892,
-0.013252758421003819,
0.1049450933933258,
-0.1730804443359375,
0.04447396844625473,
0.38151252269744873,
-0.3759961724281311,
-0.5460976362228394,
0.10283426940441132,
-0.3343900144100189,
0.08620171993970871,
-0.12804828584194183,
0.4136289358139038,
-0.2671583592891693,
0.3237053453922272,
-0.17537350952625275,
0.48480868339538574,
-0.24236860871315002,
0.16227801144123077,
-0.1694837212562561,
0.008382230065762997,
-0.2954888343811035,
0.03383037820458412,
0.18201948702335358,
0.03457234054803848,
0.1677875518798828,
0.07919009029865265,
-0.06823603808879852,
-0.0843571275472641,
0.1491899937391281,
-0.29161614179611206,
0.5289234519004822,
0.21743141114711761,
0.1086588203907013,
0.13719940185546875,
0.31131455302238464,
-0.13873647153377533,
-0.030689973384141922,
0.4569900333881378,
-0.10734344273805618,
-0.08853957056999207,
0.1621473729610443,
0.13513903319835663,
-0.47020846605300903,
0.00008309632539749146,
0.01734922081232071,
0.39948391914367676,
0.27396222949028015,
0.062444668263196945,
0.1275002360343933,
-0.14876320958137512,
-0.03524953871965408,
-0.18992692232131958,
0.20556649565696716,
0.15859311819076538,
-0.37157872319221497,
-0.17337778210639954,
0.3192159831523895,
0.04794084280729294,
-0.128881573677063,
0.09269120544195175,
-0.04329971224069595,
0.4183748662471771,
-0.24190981686115265,
0.05455128848552704,
0.15261855721473694,
-0.6342747807502747,
-0.01669147238135338,
-0.2027660757303238,
-0.008007928729057312,
0.3960757851600647,
0.016104236245155334,
-0.14641059935092926,
0.1910933554172516,
0.20444214344024658,
0.24363240599632263,
-0.04924912750720978,
-0.016389282420277596,
-0.10141292959451675,
-0.283925324678421,
-0.02789173275232315,
0.28033027052879333,
0.03848648443818092,
0.26532211899757385,
-0.03815195709466934,
-0.142851322889328,
-0.0613696463406086,
0.23564520478248596,
-0.040807854384183884,
0.08998701721429825,
0.14946532249450684,
0.4336163401603699,
-0.005379214882850647,
-0.039072491228580475,
0.019861720502376556,
-0.2733379602432251,
0.16538646817207336,
-0.014529172331094742,
0.43955081701278687,
-0.014358796179294586,
-0.25403892993927,
-0.23234522342681885,
-0.10236795246601105,
-0.4545465409755707,
-0.5898593068122864,
0.0748969316482544,
0.014747291803359985,
-0.03679271042346954,
0.0872122049331665,
-0.15519776940345764,
0.020757773891091347,
0.044589631259441376,
-0.12497752159833908,
-0.3414302170276642,
0.31593582034111023,
0.05893578380346298,
0.028890404850244522,
-0.35742706060409546,
0.39233002066612244,
-0.07111639529466629,
0.08700855821371078,
0.11090946197509766,
-0.09629558771848679,
0.12158086895942688,
-0.03672237694263458,
0.017124079167842865,
0.34874069690704346,
0.31604474782943726,
-0.1571757048368454,
-0.33396920561790466,
0.27806147933006287,
0.12887254357337952,
-0.2391919493675232,
-0.5651102662086487,
0.5706454515457153,
-0.015483703464269638,
0.42279335856437683,
0.11109086871147156,
0.0158539991825819,
0.015812600031495094,
-0.30554261803627014,
-0.25954338908195496,
-0.154880553483963,
0.018057849258184433,
-0.29673317074775696,
0.17318198084831238,
0.1353038251399994,
-0.3907075822353363,
0.11228881031274796,
0.41770139336586,
0.04910553619265556,
0.22027188539505005,
-0.29793259501457214,
-0.01753181219100952,
-0.03964313119649887,
0.15668343007564545,
-0.03675248473882675,
0.42761319875717163,
0.1694587767124176,
0.22563527524471283,
0.012789123691618443,
0.20909231901168823,
-0.24300888180732727,
0.1855030506849289,
-0.04027126729488373,
0.21828246116638184,
0.45492351055145264,
0.3547092080116272,
-0.12468651682138443,
-0.19346186518669128,
0.2973787486553192,
0.07030471414327621,
0.13839386403560638,
-0.3260529339313507,
-0.2424042522907257,
-0.12734507024288177,
0.018237244337797165,
-0.13018503785133362,
0.031325504183769226,
0.09626506268978119,
-0.39910030364990234,
0.3158450126647949,
0.0024839527904987335,
-0.33202439546585083,
0.22520841658115387,
-0.10300233960151672,
0.1633104681968689,
-0.0388343408703804,
-0.3680046796798706,
-0.04821282997727394,
-0.48997578024864197,
-0.2169424593448639,
0.16138479113578796,
-0.19522812962532043,
-0.1368519365787506,
0.14127132296562195,
-0.12729191780090332,
-0.5312886834144592,
-0.1544179767370224,
-0.5428311824798584,
0.16988235712051392,
-0.22211773693561554,
0.31411364674568176,
0.13052117824554443,
0.4695054292678833,
-0.3395380973815918,
-0.04614415392279625,
0.47250452637672424,
0.002518000081181526,
-0.40220996737480164,
0.016170885413885117,
0.16014467179775238,
0.07886717468500137,
-0.16043029725551605,
-0.7739168405532837,
-0.06428105384111404,
-0.3372272849082947,
0.2867163121700287,
-0.16386833786964417,
0.18090304732322693,
0.4482070505619049,
-0.07105114310979843,
-0.058788176625967026,
-0.21288013458251953,
-0.19254277646541595,
-0.16310901939868927,
0.002102825790643692,
0.1418822556734085,
-0.07210063189268112,
-0.3668021857738495,
0.00777912512421608,
-0.22055913507938385,
0.3654290735721588,
0.0932498425245285,
-0.4009138345718384,
-0.41072821617126465,
-0.031559690833091736,
0.4304036796092987,
0.2287757247686386,
-0.0975351333618164,
0.26795893907546997,
-0.0008595404215157032,
-0.07744372636079788,
-0.24505269527435303,
0.001896776258945465,
0.5727343559265137,
0.3348306119441986,
0.04696844145655632,
0.1178131252527237,
-0.027169890701770782,
0.32681354880332947,
0.5415535569190979,
0.35040879249572754,
0.3235519826412201,
0.18224471807479858,
-0.24086815118789673,
0.38344088196754456,
-0.2624073624610901,
-0.39723944664001465,
0.20475216209888458,
0.15888287127017975,
-0.12851780652999878,
0.25118064880371094,
0.01589539274573326,
0.30369237065315247,
-0.24241364002227783,
0.1569153517484665,
-0.5188213586807251,
-0.2767142355442047,
0.13166368007659912,
-0.3602774441242218,
0.10447824001312256,
0.14898601174354553,
0.14820992946624756,
0.09649714827537537,
-0.05588323622941971,
0.06004335358738899,
0.01618092507123947,
0.20400652289390564,
-0.07650555670261383,
-0.5741510987281799,
-0.23221760988235474,
-0.24830248951911926,
0.10440245270729065,
0.049724943935871124,
0.0934285894036293,
-0.1396414190530777,
-0.2572353184223175,
0.22309178113937378,
0.07435740530490875,
0.984188973903656,
-0.11245504766702652,
-0.02239815890789032,
-0.016353406012058258,
-0.13717979192733765,
-0.3577505648136139,
-0.057590167969465256,
-0.4521738886833191,
-0.06354936957359314,
0.19537487626075745,
0.4829489588737488,
-0.27192968130111694,
-0.18404005467891693,
-0.061023786664009094,
-0.07806672900915146,
-0.13773246109485626,
-0.05517524108290672,
-0.2825157940387726,
-0.24713784456253052,
0.024351397529244423,
0.17923696339130402,
0.19690507650375366,
0.4291003942489624,
-0.26047855615615845,
-0.3233049213886261,
-0.12446039915084839,
0.12806811928749084,
0.32462817430496216,
0.3263873755931854,
0.2666051983833313,
-0.06627112627029419,
0.08422629535198212,
-0.08256856352090836,
-0.07211162149906158,
0.02577904984354973,
0.5085006952285767,
-0.14032039046287537,
-0.023904472589492798,
0.2063494324684143,
-0.2590043544769287,
0.4047762453556061,
0.36510562896728516,
0.14478760957717896,
0.13557231426239014,
-0.20590968430042267,
-0.018225185573101044,
-0.1303577721118927,
0.0782126858830452,
0.11643298715353012,
0.025486420840024948,
-0.036110006272792816,
-0.39831238985061646,
0.1516757309436798,
-0.003575330600142479,
-0.18815720081329346,
0.23310424387454987,
0.06840259581804276,
-0.2754633128643036,
0.08543886244297028,
0.06740197539329529,
0.9151232838630676,
-0.0583755299448967,
0.3912844955921173,
0.6253468990325928,
0.19349220395088196,
0.397529661655426,
-0.07127945870161057,
0.2521810531616211,
-0.2924402356147766,
-0.1937762200832367,
0.01851474680006504,
-0.1295040100812912,
-0.009107857942581177,
0.34280216693878174,
-0.21547769010066986,
0.5422403216362,
0.013914339244365692,
0.5060142278671265,
-0.03693953901529312,
-0.3477811813354492,
-0.03694816678762436,
0.2454443722963333,
-0.6066042184829712,
0.019946172833442688,
0.09031601995229721,
0.44949567317962646,
-0.15453436970710754,
-0.10682100802659988,
-0.3858295977115631,
-0.1560794562101364,
-0.02281264215707779,
0.23156726360321045,
-0.40611061453819275,
-0.010961074382066727,
0.3604067862033844,
-0.23470477759838104,
-0.2855454087257385,
0.4578830599784851,
-0.043679378926754,
0.2006644308567047,
-0.20601755380630493,
0.18751855194568634,
0.09581859409809113,
0.3202328085899353,
0.21161580085754395,
0.22977833449840546,
0.3145464360713959,
-0.13250131905078888,
-0.4006200432777405,
0.18190762400627136,
-0.2952144742012024,
0.19371405243873596,
-0.21609705686569214,
0.39127272367477417,
0.11765199899673462,
-0.24372056126594543,
-0.48993733525276184,
0.04950425401329994,
0.2228691577911377,
-0.20343077182769775,
0.06225964426994324,
-0.1620173156261444,
-0.20528386533260345,
0.29879069328308105,
0.06184794381260872,
-0.3066732883453369,
0.13035781681537628,
0.250444233417511,
0.27147433161735535,
-0.028301209211349487,
0.705974817276001,
-0.08002500981092453,
-0.06373776495456696,
-0.3099607229232788,
0.07060045748949051,
0.26374807953834534,
-0.1664155125617981,
0.3383423686027527,
0.13936246931552887,
-0.12032195925712585,
0.020878706127405167,
0.4957878291606903,
0.07645190507173538,
0.14817622303962708,
-0.10191904008388519,
-0.4340780973434448,
0.004864368587732315,
0.38714146614074707,
-0.040783774107694626,
0.25591400265693665,
-0.07308937609195709,
0.010748608037829399,
0.2000339925289154,
-0.1717749983072281,
-0.28469374775886536,
-0.22800956666469574,
-0.3947718143463135,
0.40531212091445923,
0.020616905763745308,
0.03400052338838577,
0.2809012234210968,
-0.1246357411146164,
0.10634267330169678,
-0.3126683831214905,
-0.316510409116745,
-0.2303076684474945,
0.02330150455236435,
0.19479164481163025,
0.1834425926208496,
0.14391681551933289,
0.04073157534003258,
0.01591084897518158,
-0.018492981791496277,
-0.23112307488918304,
0.3753025531768799,
0.35588324069976807,
0.007342174649238586,
0.2380223423242569,
0.0011618919670581818,
0.3851644694805145,
-0.1636800915002823,
0.01802518032491207,
0.05363254249095917,
-0.17862437665462494,
0.2189992219209671,
-0.12340646982192993,
0.08615768700838089,
0.010321572422981262,
0.14566420018672943,
0.13107772171497345,
-0.017346598207950592,
-0.07071662694215775,
-0.0687459334731102,
-0.2028094083070755,
0.008788730949163437,
-0.04723282903432846,
0.1345522552728653,
0.25895142555236816,
-0.18515875935554504,
0.26714059710502625,
-0.010320868343114853,
0.219846710562706,
-0.3239840269088745,
0.33875447511672974,
0.11910831928253174,
0.07815920561552048,
0.12212663888931274,
0.18459782004356384,
0.14127960801124573,
-0.3834759294986725,
0.3110426366329193,
0.21374595165252686,
-0.1532917320728302,
-0.3943416476249695,
0.2703731954097748,
0.40164506435394287,
-0.04948340728878975,
0.0024953000247478485,
-0.01007910631597042,
-0.2710437774658203,
-0.2409229278564453,
0.004264432936906815,
0.06562988460063934,
0.304170161485672,
0.02512817457318306,
-0.12273752689361572,
0.15863853693008423,
0.023434266448020935,
-0.006612706929445267,
0.021222934126853943,
-0.3439190089702606,
-0.02879522740840912,
0.12357589602470398,
0.2682909667491913,
-0.03859122470021248,
-0.2265937775373459,
0.1016586497426033,
-0.08920620381832123,
-0.18534138798713684,
-0.16918140649795532,
-0.07965704053640366,
-0.23566100001335144,
-0.01602759212255478,
-0.18681474030017853,
0.06693195551633835,
-0.3150314688682556,
0.4789045751094818,
-0.045336589217185974,
0.02148604393005371,
-0.37901297211647034,
0.08132469654083252,
0.37504059076309204,
0.31841862201690674,
0.08981937170028687,
0.5027285218238831,
0.25527089834213257,
0.08812937140464783,
0.18712496757507324,
0.6208723783493042,
0.32280200719833374,
0.4014383852481842,
-0.17185983061790466,
0.032834406942129135,
-0.061205070465803146,
-0.30690479278564453,
-0.06833427399396896,
0.2621801495552063,
0.22244715690612793,
-0.003069605678319931,
0.3125355839729309,
0.10996927320957184,
-0.07542024552822113,
0.30121123790740967,
0.1460099071264267,
-0.0650470107793808,
-0.19635272026062012,
0.24360334873199463,
0.05706550180912018,
-0.08410980552434921,
0.097019262611866,
-0.09057905524969101,
-0.5747674107551575,
-0.18794964253902435,
0.09150470793247223,
0.18479056656360626,
0.2719125747680664,
-0.029270384460687637,
0.05293762683868408,
-0.07632346451282501,
0.0537511482834816,
0.15150269865989685,
0.13623443245887756,
-0.336058646440506,
0.24091972410678864,
-0.46184858679771423,
0.2489725947380066,
0.0628395527601242,
-0.0488862469792366,
-0.22335998713970184,
0.15979383885860443,
0.014421254396438599,
0.027680447325110435,
-0.152435764670372,
-0.15175069868564606,
0.3210308253765106,
0.055877771228551865,
-0.6173197627067566,
0.06947719305753708,
0.22266775369644165,
-0.03164314478635788,
0.0072418563067913055,
-0.3014620244503021,
-0.031890977174043655,
0.004165546037256718,
-0.10231920331716537,
0.18854737281799316,
0.12361763417720795,
0.0946241170167923,
0.05502168461680412,
0.07967077195644379,
0.2517285645008087,
0.6537090539932251,
-0.03988524153828621,
0.09442763775587082,
-0.07591600716114044,
-0.18577298521995544,
-0.11363695561885834,
0.07847502827644348,
0.17458876967430115,
0.27375540137290955,
0.19055062532424927,
-0.28349533677101135,
0.14796431362628937,
0.11630932241678238,
0.1791388988494873,
-0.1351218968629837,
0.07136887311935425,
0.10456385463476181,
0.13887739181518555,
-0.06692057102918625,
0.015468641184270382,
0.028779255226254463,
-0.02406584471464157,
-0.04093121737241745,
-0.25230902433395386,
-0.5186446905136108,
0.38934195041656494,
-0.5014829039573669,
-0.34246987104415894,
-0.2832125425338745,
0.1933732032775879,
0.10383109748363495,
-0.18909919261932373,
-1.0374090671539307,
-0.18324975669384003,
0.39998888969421387,
-0.16234710812568665,
-0.025781553238630295,
0.2184676080942154,
-0.26889568567276,
-0.12323597073554993,
-0.1669478863477707,
0.05540855973958969,
0.028815297409892082,
-0.10888369381427765,
-0.17260868847370148,
-0.46128934621810913
] |
https://github.com/huggingface/datasets/issues/801 | How to join two datasets? | Hi ! Currently the only way to add new fields to a dataset is by using `.map` and picking items from the other dataset
| Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks! | 24 | How to join two datasets?
Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks!
Hi ! Currently the only way to add new fields to a dataset is by using `.map` and picking items from the other dataset
| [
-0.08071357756853104,
-0.023198314011096954,
-0.008704178035259247,
0.075832299888134,
-0.08046422153711319,
0.19386309385299683,
-0.09644493460655212,
0.15029975771903992,
0.09170261025428772,
-0.13724921643733978,
-0.15640206634998322,
0.26321062445640564,
0.26520636677742004,
0.05539444088935852,
0.03182482346892357,
-0.16234803199768066,
0.27537092566490173,
0.13668788969516754,
-0.14975331723690033,
0.018272586166858673,
0.028148047626018524,
0.0739852786064148,
-0.17607346177101135,
-0.09647516906261444,
-0.2948450446128845,
0.06383652240037918,
-0.16937579214572906,
-0.2055225372314453,
-0.007480897009372711,
-0.17885226011276245,
0.10816715657711029,
0.2946747839450836,
0.02376249060034752,
0.5012590885162354,
-0.00012002508447039872,
-0.1821822226047516,
0.14823201298713684,
-0.11886725574731827,
-0.09780582785606384,
-0.5917367339134216,
-0.4379110634326935,
-0.19377097487449646,
-0.03721606731414795,
-0.2641339898109436,
-0.17093655467033386,
-0.2597177028656006,
-0.009276127442717552,
-0.39622795581817627,
0.187996044754982,
-0.007791634649038315,
0.05178109556436539,
-0.21810020506381989,
0.3178337812423706,
-0.2899111211299896,
0.368132084608078,
0.06007695943117142,
0.23139142990112305,
0.20463578402996063,
0.46678632497787476,
0.09246095269918442,
0.3536241054534912,
0.03182798996567726,
-0.2515162527561188,
-0.17782890796661377,
0.26569730043411255,
0.1065581738948822,
-0.272517591714859,
-0.5039494037628174,
0.13122698664665222,
0.5253685712814331,
0.8458825349807739,
-0.19581425189971924,
-0.20375435054302216,
-0.14369842410087585,
0.26158592104911804,
0.16773797571659088,
-0.16267985105514526,
0.06555595993995667,
0.05718347802758217,
-0.10857835412025452,
-0.017295697703957558,
-0.47837117314338684,
-0.014689195901155472,
0.146067813038826,
-0.05187016725540161,
0.41982799768447876,
0.11977887153625488,
0.11235576122999191,
-0.12016436457633972,
-0.35362720489501953,
-0.002178664319217205,
-0.10288920998573303,
-0.23143261671066284,
0.39641615748405457,
-0.13572685420513153,
-0.3579384386539459,
-0.4266594648361206,
-0.20768627524375916,
0.2877582311630249,
-0.23251406848430634,
-0.10939973592758179,
-0.13125333189964294,
-0.30933400988578796,
0.22626036405563354,
0.41352277994155884,
-0.17651821672916412,
0.40259575843811035,
0.16798044741153717,
-0.14977973699569702,
-0.29195722937583923,
-0.6388096213340759,
-0.09562637656927109,
0.07344397902488708,
-0.2497820407152176,
-0.012318531051278114,
-0.16128331422805786,
0.12322883307933807,
-0.09547355771064758,
0.1156068965792656,
0.11665663123130798,
-0.38036802411079407,
-0.17964017391204834,
-0.4582116901874542,
-0.017227865755558014,
0.047373831272125244,
-0.17916816473007202,
-0.09471134841442108,
0.3156733512878418,
0.06255757063627243,
-0.20517681539058685,
0.02256140112876892,
-0.022560711950063705,
0.07530750334262848,
0.13594405353069305,
-0.3133121430873871,
0.06784021854400635,
0.21152323484420776,
0.24217401444911957,
0.11653171479701996,
-0.09144256263971329,
0.1404796838760376,
-0.32146382331848145,
0.08820142596960068,
-0.2670935392379761,
0.2662124037742615,
0.36482855677604675,
0.03328658640384674,
-0.36616384983062744,
-0.07746808230876923,
0.3192603588104248,
-0.3424716591835022,
0.09190744161605835,
-0.18116112053394318,
0.050341472029685974,
-0.03477340564131737,
-0.36905714869499207,
0.1503407210111618,
0.4734445810317993,
0.2010742425918579,
-0.37921908497810364,
-0.0435686931014061,
0.18884246051311493,
-0.443276971578598,
-0.14353595674037933,
0.09959173202514648,
0.0958332046866417,
-0.6108899116516113,
-0.24677684903144836,
0.13053686916828156,
0.18384629487991333,
-0.21991991996765137,
0.2735759913921356,
0.004582544788718224,
0.47099682688713074,
0.019358990713953972,
0.09795835614204407,
0.2940157651901245,
0.00654945895075798,
-0.13891834020614624,
0.23826003074645996,
-0.0610201396048069,
-0.11163128912448883,
-0.08561471849679947,
0.3941877484321594,
0.3761972486972809,
-0.11488447338342667,
0.2615612745285034,
0.13338446617126465,
-0.20540297031402588,
-0.2404525727033615,
0.17245064675807953,
-0.25006967782974243,
0.20035672187805176,
-0.3064526617527008,
-0.02097727730870247,
-0.04512444883584976,
0.20413294434547424,
0.09405685216188431,
0.1203068196773529,
-0.2302706241607666,
0.23883920907974243,
0.3612513542175293,
0.042579784989356995,
0.403847873210907,
-0.1544986069202423,
-0.3849763572216034,
-0.35766828060150146,
-0.06401675939559937,
-0.15533825755119324,
0.20919765532016754,
0.37121349573135376,
-0.23151841759681702,
-0.19188368320465088,
-0.36997056007385254,
0.3332962691783905,
-0.009556621313095093,
0.006970353424549103,
-0.19311988353729248,
-0.11519615352153778,
-0.12684620916843414,
-0.11348160356283188,
-0.07291188091039658,
0.22757922112941742,
-0.1046023964881897,
-0.2657742500305176,
0.2795618176460266,
0.13916897773742676,
-0.004333858378231525,
-0.24931755661964417,
0.385337769985199,
0.08726286143064499,
0.18688447773456573,
0.16615474224090576,
0.03044046275317669,
-0.09989744424819946,
0.3716399669647217,
0.24936118721961975,
-0.23304210603237152,
0.009554469957947731,
-0.5110841393470764,
-0.13984957337379456,
-0.23620931804180145,
-0.04403695836663246,
-0.26564496755599976,
-0.23912489414215088,
0.14308729767799377,
-0.013934783637523651,
0.2417300045490265,
0.1318974792957306,
-0.02502371184527874,
0.18060587346553802,
-0.04070139676332474,
-0.07618632912635803,
-0.2563686966896057,
-0.05061795189976692,
0.13484537601470947,
0.19297315180301666,
0.3609316647052765,
-0.22969163954257965,
0.0628194659948349,
0.034248918294906616,
0.09149868786334991,
0.18999063968658447,
-0.24393394589424133,
-0.46832460165023804,
0.006616454571485519,
-0.2882344722747803,
0.09601187705993652,
0.16452442109584808,
0.34665632247924805,
0.1398826390504837,
0.0730472058057785,
-0.04211234673857689,
-0.023618193343281746,
0.017769165337085724,
0.04432157054543495,
0.3303337097167969,
0.1095842719078064,
0.2567801773548126,
0.07420812547206879,
0.3293255567550659,
0.2420233190059662,
0.12248239666223526,
-0.13840588927268982,
-0.13481184840202332,
-0.28419867157936096,
0.10675850510597229,
-0.24841755628585815,
-0.4215637147426605,
-0.18756519258022308,
-0.18454119563102722,
-0.1230122521519661,
-0.014928415417671204,
0.1865077018737793,
-0.056198254227638245,
0.14038676023483276,
0.05542908236384392,
0.15597599744796753,
-0.15277473628520966,
-0.019122028723359108,
0.13314543664455414,
-0.5160619020462036,
0.25922882556915283,
0.15659070014953613,
0.1139577105641365,
0.1209731251001358,
0.4721936881542206,
-0.11596328765153885,
-0.2033683806657791,
-0.5184361934661865,
-0.55858314037323,
0.038999609649181366,
-0.11048080027103424,
0.26224616169929504,
-0.12797968089580536,
0.14810922741889954,
-0.14930753409862518,
-0.028961338102817535,
0.2102094441652298,
0.28623247146606445,
0.019050346687436104,
-0.3370532691478729,
-0.19562773406505585,
0.07669853419065475,
0.2599276304244995,
-0.4277593791484833,
-0.18027152121067047,
0.002860814332962036,
0.18755298852920532,
0.0680031031370163,
0.026582658290863037,
-0.4053651690483093,
0.11256375908851624,
-0.12206292897462845,
-0.16763503849506378,
0.057435497641563416,
-0.09193700551986694,
-0.3873729705810547,
0.2161988615989685,
-0.07845445722341537,
-0.25951674580574036,
0.19285273551940918,
-0.01590270921587944,
-0.0558183453977108,
-0.2051001638174057,
0.12677744030952454,
0.13076798617839813,
-0.1578676551580429,
0.103242427110672,
0.22490453720092773,
0.1547764092683792,
0.18334758281707764,
0.11173349618911743,
0.06859849393367767,
-0.17568612098693848,
-0.14817386865615845,
0.2685072124004364,
0.09282514452934265,
0.11187394708395004,
-0.06060170382261276,
0.22221922874450684,
-0.347222238779068,
0.3986665606498718,
0.5254833698272705,
0.1192842423915863,
-0.05949249863624573,
-0.2288450300693512,
0.35870617628097534,
-0.2458244264125824,
-0.1056104451417923,
-0.2335337996482849,
0.14080974459648132,
-0.10529123246669769,
0.17879872024059296,
0.07623398303985596,
-0.13672327995300293,
-0.16919299960136414,
0.0806472897529602,
-0.28163260221481323,
-0.0469958558678627,
0.1670810431241989,
-0.4001505970954895,
0.22658562660217285,
-0.0490959957242012,
-0.48981547355651855,
-0.31748273968696594,
-0.323275089263916,
-0.19708916544914246,
-0.350502073764801,
0.2054470181465149,
-0.08044521510601044,
-0.4070582985877991,
-0.05954854562878609,
-0.2789444029331207,
0.19438503682613373,
0.37423738837242126,
-0.019000694155693054,
-0.09549087285995483,
-0.06745295226573944,
-0.1392032653093338,
0.21432343125343323,
0.17796368896961212,
-0.5429996848106384,
-0.2740234136581421,
0.06342549622058868,
0.35563328862190247,
-0.09078233689069748,
0.2844599485397339,
-0.14930015802383423,
-0.1365782618522644,
0.22120776772499084,
0.3323837220668793,
-0.2749548852443695,
0.15162330865859985,
0.25887158513069153,
0.35306814312934875,
-0.22724400460720062,
-0.0717947781085968,
0.16380499303340912,
0.1854698657989502,
-0.3372762203216553,
-0.15390241146087646,
0.1404722034931183,
-0.0018165926449000835,
0.31705617904663086,
-0.10686405003070831,
0.10110341012477875,
0.299617737531662,
0.461078405380249,
0.18621940910816193,
0.05857549235224724,
0.1290239840745926,
0.19608338177204132,
0.37007781863212585,
-0.09763100743293762,
0.08147766441106796,
0.6518192291259766,
-0.20904569327831268,
-0.3070389926433563,
-0.18773332238197327,
-0.2284006029367447,
0.6691729426383972,
-0.06140322983264923,
0.36832916736602783,
0.33657506108283997,
0.0028093624860048294,
-0.0528605580329895,
-0.13128066062927246,
-0.10787242650985718,
0.1989753097295761,
0.13819760084152222,
-0.6152011752128601,
-0.44910597801208496,
0.23150977492332458,
0.1934194415807724,
-0.3068053722381592,
-0.1744425743818283,
0.11856389045715332,
-0.21608711779117584,
0.5841506719589233,
0.04948838800191879,
1.0757408142089844,
0.029367491602897644,
0.0874437466263771,
-0.3162234127521515,
-0.1883554905653,
1.0178570747375488,
0.13053227961063385,
-0.1236891895532608,
-0.1478772908449173,
-0.08500958979129791,
-0.229445680975914,
-0.1666284054517746,
-0.05729782581329346,
0.5215896964073181,
-0.23045553267002106,
0.3305688202381134,
0.11107614636421204,
0.248663067817688,
0.10225474834442139,
0.07120751589536667,
0.482122004032135,
-0.05735327675938606,
0.019261563196778297,
0.015868663787841797,
0.10440176725387573,
-0.20792511105537415,
-0.17858868837356567,
0.027290061116218567,
-0.28073185682296753,
0.08258455991744995,
-0.4025101661682129,
-0.01666439324617386,
0.12520912289619446,
-0.040347520262002945,
0.06722782552242279,
-0.179091677069664,
0.14754779636859894,
0.622215986251831,
0.38847124576568604,
0.20478972792625427,
-0.2520727813243866,
0.1811257004737854,
-0.04998825490474701,
0.059085577726364136,
0.14294444024562836,
-0.15821120142936707,
0.2772466242313385,
0.1772700548171997,
-0.32606613636016846,
0.2746417224407196,
0.08582548052072525,
-0.14542493224143982,
-0.4181196689605713,
-0.05140449106693268,
0.18513146042823792,
-0.13829457759857178,
-0.5660066604614258,
0.40743184089660645,
0.16032278537750244,
-0.32359248399734497,
0.002353265881538391,
-0.0015481486916542053,
0.05569041147828102,
0.05811365693807602,
0.10352296382188797,
-0.30341243743896484,
0.046176183968782425,
0.38589078187942505,
0.3112260699272156,
0.02763202041387558,
0.42552080750465393,
0.38088226318359375,
0.14324454963207245,
-0.0935772955417633,
0.05103215575218201,
0.0641195997595787,
-0.4438188374042511,
-0.26193931698799133,
0.22406397759914398,
0.11070309579372406,
-0.2755553424358368,
0.027521256357431412,
0.2948092818260193,
0.2812788486480713,
0.11319348216056824,
-0.15400028228759766,
-0.30264636874198914,
0.29836633801460266,
0.19902700185775757,
0.18868088722229004,
0.1341678500175476,
0.10640183091163635,
-0.06670732796192169,
0.6051506400108337,
-0.1955350637435913,
0.10303643345832825,
0.09476364403963089,
0.24168641865253448,
0.5612391233444214,
0.32110103964805603,
-0.30370184779167175,
-0.35296595096588135,
0.052425771951675415,
-0.25630515813827515,
0.3680342733860016,
-0.1653796136379242,
-0.03431960940361023,
0.18002909421920776,
0.1391874998807907,
0.014135611243546009,
-0.12974220514297485,
-0.22688516974449158,
0.3054672181606293,
-0.3553519546985626,
0.10369028151035309,
0.20477604866027832,
0.14609093964099884,
-0.1658952534198761,
0.28829866647720337,
0.1458718478679657,
-0.6236060857772827,
0.31579938530921936,
0.14285439252853394,
0.15660321712493896,
-0.21864372491836548,
-0.16644884645938873,
0.2113189399242401,
-0.029422633349895477,
0.2234191596508026,
0.02873467653989792,
0.42431527376174927,
-0.00887339562177658,
0.021281912922859192,
-0.011898860335350037,
0.06415979564189911,
0.26442068815231323,
0.24632158875465393,
-0.2564180791378021,
0.03906719759106636,
0.07520997524261475,
0.14354181289672852,
0.11950169503688812,
-0.32496538758277893,
-0.05259648337960243,
0.5134181976318359,
-0.13269564509391785,
0.056138087064027786,
0.06786613166332245,
-0.12982262670993805,
0.391614705324173,
-0.25968390703201294,
0.011347483843564987,
0.058318473398685455,
-0.10299049317836761,
0.21193093061447144,
0.4004092812538147,
0.4970457851886749,
-0.08682917058467865,
0.030479885637760162,
0.1863889992237091,
0.20960313081741333,
0.2692551910877228,
0.24161061644554138,
0.11770210415124893,
0.5011903047561646,
0.11954431235790253,
0.5809904932975769,
0.1392076462507248,
0.37846702337265015,
0.3143639862537384,
0.3798806667327881,
-0.31434395909309387,
-0.03988915681838989,
0.10344801843166351,
0.20289841294288635,
-0.25745394825935364,
0.14830873906612396,
0.47239962220191956,
-0.029881246387958527,
-0.29769620299339294,
-0.08580952882766724,
-0.3873428404331207,
0.09485657513141632,
-0.07329830527305603,
-0.07690092921257019,
-0.3153764605522156,
0.13354262709617615,
-0.13978438079357147,
0.1501646786928177,
-0.1131894588470459,
0.052400801330804825,
-0.09057394415140152,
-0.002275437116622925,
-0.22574174404144287,
0.33385881781578064,
-0.19651912152767181,
-0.09320183098316193,
0.2818796634674072,
0.6687042117118835,
0.19016920030117035,
0.19669601321220398,
-0.04688214883208275,
0.4440394937992096,
0.04267098009586334,
-0.1884840577840805,
0.14074158668518066,
-0.05432543903589249,
-0.09360963106155396,
-0.4418235719203949,
0.22292262315750122,
0.17428508400917053,
-0.05125885829329491,
0.1346777379512787,
0.031151708215475082,
0.3035238981246948,
-0.06948407739400864,
-0.16975253820419312,
-0.06499526649713516,
-0.1368069350719452,
0.09628017246723175,
-0.0222410187125206,
-0.32772913575172424,
-0.0021430812776088715,
0.10965383052825928,
-0.24665194749832153,
0.04727950692176819,
0.04128320515155792,
0.051709502935409546,
0.09941835701465607,
0.281690776348114,
0.4313214123249054,
0.0839763656258583,
-0.2127910852432251,
-0.19452300667762756,
-0.5713773369789124,
0.08902637660503387,
-0.1803855448961258,
0.06449645757675171,
-0.4097460210323334,
-0.017854388803243637,
0.34090569615364075,
0.1188746988773346,
0.21144115924835205,
0.012333350256085396,
-0.3273976743221283,
0.09218456596136093,
-0.139460027217865,
-0.3116660416126251,
0.11990286409854889,
0.03576527163386345,
-0.09218797087669373,
0.08519124239683151,
0.024665966629981995,
0.14294877648353577,
-0.12991955876350403,
-0.015678420662879944,
-0.1433272510766983,
0.10779492557048798,
-0.29147669672966003,
0.07853421568870544,
0.08364786952733994,
0.7063452005386353,
-0.36091578006744385,
0.04046611487865448,
0.45821651816368103,
-0.31411468982696533,
-0.07884524762630463,
0.5984272956848145,
0.06941685825586319,
0.24887695908546448,
-0.34875941276550293,
0.1082897037267685,
0.220029816031456,
-0.4537164270877838,
-0.3922596573829651,
0.14369209110736847,
-0.662385880947113,
-0.05042105168104172,
-0.0922139436006546,
-0.02603142149746418,
-0.03477170318365097,
0.19688433408737183,
0.005590770393610001,
0.3021910488605499,
0.2433599978685379,
-0.151622012257576,
0.040215328335762024,
-0.11626960337162018,
-0.2251850962638855,
-0.25872597098350525,
-0.04557982087135315,
0.2406250536441803,
-0.0868319571018219,
-0.3463822305202484,
0.07249700278043747,
0.49070799350738525,
0.11029716581106186,
0.0547940619289875,
0.13350912928581238,
-0.0682988166809082,
0.006559684872627258,
-0.2171507030725479,
0.24882075190544128,
0.019087960943579674,
0.007792280986905098,
-0.44087204337120056,
-0.3627171516418457
] |
https://github.com/huggingface/datasets/issues/801 | How to join two datasets? | Closing this one. Feel free to re-open if you have other questions about this issue.
Also linking another discussion about joining datasets: #853 | Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks! | 23 | How to join two datasets?
Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks!
Closing this one. Feel free to re-open if you have other questions about this issue.
Also linking another discussion about joining datasets: #853 | [
-0.0025698579847812653,
-0.05012335628271103,
0.007704578340053558,
0.07763022929430008,
-0.001898735761642456,
0.17297378182411194,
-0.05921299383044243,
0.15285436809062958,
-0.02389507368206978,
-0.10775946080684662,
-0.2796117663383484,
0.22843021154403687,
0.3064368665218353,
0.05116637051105499,
0.04576590284705162,
-0.21212151646614075,
0.297707200050354,
0.087845578789711,
-0.13958890736103058,
0.06776654720306396,
0.08774268627166748,
0.1052057147026062,
-0.24178631603717804,
-0.07961037755012512,
-0.30178970098495483,
0.1389433592557907,
-0.10653878003358841,
-0.17864397168159485,
0.025756429880857468,
-0.08233866095542908,
0.25091999769210815,
0.23384955525398254,
0.05786357820034027,
0.5224128365516663,
-0.00011893444025190547,
-0.15731415152549744,
0.17340996861457825,
-0.1755611151456833,
-0.06744332611560822,
-0.6412492394447327,
-0.43056607246398926,
-0.16816356778144836,
-0.06306234747171402,
-0.225420743227005,
-0.16109508275985718,
-0.1915007084608078,
-0.014182085171341896,
-0.377686470746994,
0.28501927852630615,
-0.046443745493888855,
0.07305139303207397,
-0.2338414043188095,
0.3569043278694153,
-0.2776046097278595,
0.2534078359603882,
0.11005891859531403,
0.2291911244392395,
0.2513783276081085,
0.4053724706172943,
-0.019634515047073364,
0.3723791539669037,
0.04019427299499512,
-0.2859000265598297,
-0.1112813651561737,
0.26738688349723816,
0.048269741237163544,
-0.24334394931793213,
-0.5618749856948853,
0.12425080686807632,
0.5158067345619202,
0.8751184940338135,
-0.1637456715106964,
-0.11893434822559357,
-0.10581476241350174,
0.22808335721492767,
0.298470675945282,
-0.14581233263015747,
0.12571072578430176,
0.0739402323961258,
-0.07439766824245453,
-0.07137097418308258,
-0.38050377368927,
-0.0199618861079216,
0.05703609436750412,
-0.19119276106357574,
0.3875505328178406,
0.1164398342370987,
0.08352984488010406,
-0.11517754197120667,
-0.3857499957084656,
0.037471186369657516,
-0.07492630183696747,
-0.17946523427963257,
0.320514440536499,
-0.1373661905527115,
-0.300545334815979,
-0.4265519976615906,
-0.040618352591991425,
0.3847050070762634,
-0.21800313889980316,
-0.10969913750886917,
-0.17190149426460266,
-0.2832713723182678,
0.1812516748905182,
0.44210085272789,
-0.1709420084953308,
0.3890821635723114,
0.20385022461414337,
-0.15734760463237762,
-0.2631591558456421,
-0.7858476638793945,
-0.014169517904520035,
0.038581863045692444,
-0.34690943360328674,
-0.0002779550850391388,
-0.14539292454719543,
0.05572565644979477,
-0.17590771615505219,
0.06012553721666336,
0.11429376900196075,
-0.5267910957336426,
-0.10422933846712112,
-0.49128830432891846,
-0.02848978340625763,
0.0544901043176651,
-0.1384902000427246,
-0.04926568269729614,
0.3209952116012573,
-0.029386211186647415,
-0.21454891562461853,
0.0017575635574758053,
-0.04589082673192024,
0.03295541927218437,
0.09262104332447052,
-0.29352623224258423,
0.012367736548185349,
0.14793236553668976,
0.2374410778284073,
0.17955534160137177,
-0.12961387634277344,
0.11285640299320221,
-0.28889235854148865,
0.12975271046161652,
-0.23242734372615814,
0.2570160925388336,
0.3389839231967926,
0.0836738795042038,
-0.28092795610427856,
-0.0974411815404892,
0.32029879093170166,
-0.34678906202316284,
0.09682752192020416,
-0.07511153817176819,
0.04822535067796707,
-0.10776837915182114,
-0.3144003450870514,
0.13938935101032257,
0.3638126254081726,
0.19113296270370483,
-0.3920111656188965,
-0.059124983847141266,
0.047458499670028687,
-0.42727309465408325,
-0.16956539452075958,
0.12705166637897491,
0.08359883725643158,
-0.5973299741744995,
-0.21136599779129028,
0.18704429268836975,
0.17157137393951416,
-0.16907688975334167,
0.30931371450424194,
-0.00037782875006087124,
0.41185349225997925,
0.04783941060304642,
0.1017807126045227,
0.18833506107330322,
-0.03193975239992142,
-0.22283774614334106,
0.294530987739563,
-0.1456041783094406,
-0.06781324744224548,
-0.10442032665014267,
0.34204646944999695,
0.32041284441947937,
-0.18754145503044128,
0.3151746988296509,
0.1449415683746338,
-0.1745816469192505,
-0.20852042734622955,
0.11556264758110046,
-0.22702684998512268,
0.15724581480026245,
-0.31243929266929626,
-0.0611690990626812,
-0.11681058257818222,
0.11180657148361206,
0.058508045971393585,
0.1921534687280655,
-0.15004585683345795,
0.15556353330612183,
0.3324893116950989,
0.011677417904138565,
0.34208744764328003,
-0.09012452512979507,
-0.2835853099822998,
-0.32401129603385925,
-0.06446611136198044,
-0.09286744892597198,
0.1528823971748352,
0.2960217595100403,
-0.2420349419116974,
-0.19247454404830933,
-0.4010331928730011,
0.35089311003685,
0.009865716099739075,
0.014594167470932007,
-0.26982223987579346,
-0.12201657891273499,
-0.06578272581100464,
-0.06294088065624237,
-0.014488313347101212,
0.2110171765089035,
-0.15041062235832214,
-0.31791651248931885,
0.3872096836566925,
0.11764054745435715,
0.057158462703228,
-0.16791018843650818,
0.35869622230529785,
0.0484534427523613,
0.20305050909519196,
0.1642742156982422,
-0.027234166860580444,
-0.22417691349983215,
0.3396661877632141,
0.2753729820251465,
-0.25686371326446533,
-0.02501513995230198,
-0.6368869543075562,
-0.12419671565294266,
-0.21416012942790985,
-0.0337924063205719,
-0.3123406767845154,
-0.235254168510437,
0.17315196990966797,
-0.03454051539301872,
0.27159836888313293,
0.06344377994537354,
0.04015244543552399,
0.11139370501041412,
-0.059119269251823425,
-0.17646649479866028,
-0.16730353236198425,
0.09022064507007599,
0.09071308374404907,
0.14487113058567047,
0.384431928396225,
-0.2436363697052002,
0.048285890370607376,
-0.028450433164834976,
0.07648161053657532,
0.1372896432876587,
-0.32641735672950745,
-0.45921486616134644,
0.007492721080780029,
-0.22704730927944183,
0.1214907169342041,
0.2082410752773285,
0.3492424190044403,
0.15271684527397156,
0.04569918289780617,
-0.0921819880604744,
-0.021365847438573837,
-0.010589644312858582,
0.06810262054204941,
0.3793623447418213,
0.021930407732725143,
0.2481967806816101,
0.09161031246185303,
0.3852549195289612,
0.21680676937103271,
0.01367410272359848,
-0.20233023166656494,
-0.1696556657552719,
-0.23345737159252167,
0.06892374157905579,
-0.2786012887954712,
-0.37395498156547546,
-0.19198279082775116,
-0.24633300304412842,
-0.1471281796693802,
-0.08102168142795563,
0.11993947625160217,
-0.04075232148170471,
0.1887604147195816,
-0.029687585309147835,
0.12758535146713257,
-0.20645771920681,
-0.10420907288789749,
0.16540764272212982,
-0.4634034037590027,
0.25841107964515686,
0.1879545897245407,
0.1876952052116394,
0.17747139930725098,
0.4568808972835541,
-0.21745464205741882,
-0.18170611560344696,
-0.45731377601623535,
-0.49301403760910034,
0.042001333087682724,
-0.15479902923107147,
0.2963697910308838,
-0.16151073575019836,
0.1329652965068817,
-0.2619118094444275,
0.04215538874268532,
0.21444034576416016,
0.3131141662597656,
0.005343310534954071,
-0.36175671219825745,
-0.12953418493270874,
0.15239806473255157,
0.2682896554470062,
-0.35976555943489075,
-0.15270620584487915,
0.012595269829034805,
0.15494611859321594,
-0.027792826294898987,
0.01474667713046074,
-0.4901637136936188,
0.09067302942276001,
-0.1672896444797516,
-0.13090084493160248,
-0.006718859076499939,
-0.10170342028141022,
-0.3829984664916992,
0.21682612597942352,
-0.051635898649692535,
-0.2362244576215744,
0.20389190316200256,
0.027913719415664673,
-0.011724326759576797,
-0.21065738797187805,
0.07603131234645844,
0.1673894077539444,
-0.1541047990322113,
0.03745308890938759,
0.22765444219112396,
0.13972176611423492,
0.09238782525062561,
0.1287388950586319,
0.056455351412296295,
-0.1926453411579132,
-0.1596468836069107,
0.21663925051689148,
0.06163493171334267,
0.1089245080947876,
-0.00984250009059906,
0.1810975968837738,
-0.3064340353012085,
0.44064879417419434,
0.596153736114502,
0.06694754958152771,
-0.15431755781173706,
-0.05524463951587677,
0.31912121176719666,
-0.22411587834358215,
-0.14441438019275665,
-0.21626658737659454,
0.13551609218120575,
-0.11042474210262299,
0.20122551918029785,
0.14698359370231628,
-0.20111364126205444,
-0.22671957314014435,
0.027612213045358658,
-0.29668644070625305,
-0.08669956028461456,
0.14831258356571198,
-0.3616517186164856,
0.22800126671791077,
0.002827836200594902,
-0.4828450381755829,
-0.2542802691459656,
-0.2783205807209015,
-0.19920474290847778,
-0.27583158016204834,
0.32781484723091125,
-0.0452023521065712,
-0.35288169980049133,
-0.0166932363063097,
-0.3142630457878113,
0.24065035581588745,
0.3664999306201935,
-0.08433880656957626,
-0.0907217487692833,
-0.06041892617940903,
-0.12921619415283203,
0.2606252431869507,
0.15429285168647766,
-0.5128046274185181,
-0.16334304213523865,
0.1516353040933609,
0.40621060132980347,
-0.06504411995410919,
0.2887904644012451,
-0.09171194583177567,
-0.11308590322732925,
0.24880103766918182,
0.2509053945541382,
-0.25837793946266174,
0.15706290304660797,
0.24470412731170654,
0.4032778739929199,
-0.17364105582237244,
-0.13138428330421448,
0.20572976768016815,
0.16526156663894653,
-0.23621739447116852,
-0.09626021236181259,
0.19562499225139618,
-0.0006140721961855888,
0.27403223514556885,
-0.06939436495304108,
0.036595672369003296,
0.2171507179737091,
0.539698600769043,
0.12097746133804321,
0.08115262538194656,
0.08038005232810974,
0.23573264479637146,
0.45303410291671753,
-0.03202933073043823,
0.1378335952758789,
0.6700579524040222,
-0.21454720199108124,
-0.32927948236465454,
-0.19343549013137817,
-0.13117419183254242,
0.6428802013397217,
0.006216898560523987,
0.3512900769710541,
0.19892266392707825,
0.0188849288970232,
-0.12091556191444397,
-0.04907964915037155,
-0.24524225294589996,
0.079212985932827,
0.19843368232250214,
-0.7353708744049072,
-0.41211625933647156,
0.2752217650413513,
0.29853442311286926,
-0.3370000720024109,
-0.20359086990356445,
0.11120698601007462,
-0.20031267404556274,
0.49471014738082886,
0.06121468544006348,
1.1625703573226929,
0.04100899398326874,
0.11799219250679016,
-0.3089980185031891,
-0.1229390949010849,
0.9703681468963623,
0.19300980865955353,
-0.12722112238407135,
-0.09684732556343079,
-0.11371900141239166,
-0.25657227635383606,
-0.22482077777385712,
-0.13756129145622253,
0.5079172253608704,
-0.1840537041425705,
0.37348225712776184,
0.031072817742824554,
0.18759244680404663,
0.13695847988128662,
-0.0327434316277504,
0.5116966962814331,
0.0012902626767754555,
-0.006474202498793602,
0.022987287491559982,
0.11525788903236389,
-0.09022444486618042,
-0.18498408794403076,
-0.02974926307797432,
-0.30259376764297485,
0.11892448365688324,
-0.38475632667541504,
0.00039663165807724,
0.06506924331188202,
-0.04813597351312637,
0.0850299596786499,
-0.23552069067955017,
0.19551624357700348,
0.7198817729949951,
0.35632914304733276,
0.19222648441791534,
-0.2848260700702667,
0.17266283929347992,
-0.009222351014614105,
0.0049920459277927876,
0.162931889295578,
-0.12815625965595245,
0.27804967761039734,
0.1617685854434967,
-0.2777027487754822,
0.19499778747558594,
0.10211598873138428,
-0.08998099714517593,
-0.4744350016117096,
0.012307681143283844,
0.09800801426172256,
-0.09453804045915604,
-0.5388154983520508,
0.3663734495639801,
0.17678186297416687,
-0.185652494430542,
0.013199973851442337,
0.0001882314682006836,
0.0749184638261795,
0.09355178475379944,
0.11230027675628662,
-0.3210185766220093,
0.06061713397502899,
0.3731016516685486,
0.36472341418266296,
-0.06295960396528244,
0.3424707055091858,
0.3815137445926666,
0.08557556569576263,
-0.08728521317243576,
0.08147268742322922,
0.028808720409870148,
-0.3980548083782196,
-0.196998730301857,
0.1057751402258873,
0.2387946993112564,
-0.3082546889781952,
-0.010020453482866287,
0.3829265236854553,
0.18974384665489197,
0.17229624092578888,
-0.1259191930294037,
-0.262646347284317,
0.3369966149330139,
0.13917547464370728,
0.16330832242965698,
0.049050964415073395,
0.08623084425926208,
-0.010135618969798088,
0.5093472599983215,
-0.20704233646392822,
0.158070906996727,
0.09070751070976257,
0.20063072443008423,
0.5335079431533813,
0.3277244567871094,
-0.34545648097991943,
-0.36694249510765076,
0.06433014571666718,
-0.20484435558319092,
0.31088918447494507,
-0.19222164154052734,
0.048088815063238144,
0.16925448179244995,
0.10162191838026047,
0.022129127755761147,
-0.04696110263466835,
-0.21702037751674652,
0.30407506227493286,
-0.3163800835609436,
0.03548269718885422,
0.23010674118995667,
0.2214176505804062,
-0.26301223039627075,
0.29812803864479065,
0.1858421266078949,
-0.5612170696258545,
0.3651364743709564,
0.1390029788017273,
0.131363183259964,
-0.31202757358551025,
-0.22731709480285645,
0.2362157255411148,
-0.026892732828855515,
0.24117279052734375,
-0.029440924525260925,
0.3321395516395569,
0.05703882500529289,
-0.008374929428100586,
-0.02732308954000473,
-0.0005378164350986481,
0.24429218471050262,
0.30786338448524475,
-0.22124114632606506,
-0.024002155289053917,
0.10118553042411804,
0.1767583191394806,
0.12899072468280792,
-0.22267277538776398,
-0.039465297013521194,
0.5133666396141052,
-0.03804014250636101,
-0.03750187158584595,
0.04380982369184494,
-0.12907996773719788,
0.36359789967536926,
-0.272466242313385,
0.08442936837673187,
0.12329957634210587,
-0.13094577193260193,
0.14436817169189453,
0.41395124793052673,
0.5091971158981323,
-0.06378999352455139,
0.043281055986881256,
0.16815651953220367,
0.23424208164215088,
0.2636001706123352,
0.22626641392707825,
0.12491212040185928,
0.5415754914283752,
0.1831616759300232,
0.6217488646507263,
0.21456356346607208,
0.23058848083019257,
0.36158379912376404,
0.2951469123363495,
-0.31016066670417786,
-0.07335704565048218,
0.1703612506389618,
0.12692353129386902,
-0.2907979488372803,
0.12741617858409882,
0.44340980052948,
0.00408712774515152,
-0.24229809641838074,
-0.06039389967918396,
-0.41705334186553955,
0.10444478690624237,
-0.05967829376459122,
-0.09443672001361847,
-0.296503484249115,
0.201725035905838,
-0.12774205207824707,
0.13284745812416077,
-0.10016033053398132,
0.038920942693948746,
-0.08151634782552719,
0.04568871855735779,
-0.20553861558437347,
0.21780452132225037,
-0.2609122395515442,
-0.09361790120601654,
0.27766796946525574,
0.642724335193634,
0.2933252155780792,
0.13034206628799438,
-0.10996431112289429,
0.32805413007736206,
0.01630391925573349,
-0.11352258175611496,
0.14166630804538727,
-0.014613725244998932,
-0.08066675066947937,
-0.5470135807991028,
0.26320338249206543,
0.17302478849887848,
-0.040936268866062164,
0.1357988566160202,
-0.013734560459852219,
0.32550686597824097,
-0.12096136808395386,
-0.17098277807235718,
-0.2564886212348938,
-0.09637083113193512,
0.08074629306793213,
-0.056978337466716766,
-0.295318603515625,
0.05914679542183876,
0.05854266136884689,
-0.15126560628414154,
0.04655977338552475,
0.038109295070171356,
0.060706183314323425,
0.043383195996284485,
0.19293256103992462,
0.45720598101615906,
0.1805943250656128,
-0.2380101978778839,
-0.22304828464984894,
-0.6116509437561035,
0.11560068279504776,
-0.24245384335517883,
0.08798861503601074,
-0.4129205346107483,
-0.06581735610961914,
0.3155342936515808,
0.18274784088134766,
0.15823398530483246,
0.036564722657203674,
-0.3021135628223419,
0.1524006426334381,
-0.1534937024116516,
-0.32422056794166565,
0.1552170217037201,
-0.02078411541879177,
-0.11281084269285202,
0.07634658366441727,
0.018195636570453644,
0.04545076563954353,
-0.11441151797771454,
0.0254976786673069,
-0.1378241777420044,
0.17563776671886444,
-0.18704162538051605,
0.08899522572755814,
0.15027697384357452,
0.7541152238845825,
-0.30901405215263367,
0.06066641956567764,
0.43287649750709534,
-0.32227611541748047,
-0.0024948837235569954,
0.6328266859054565,
0.018893476575613022,
0.22345496714115143,
-0.3817554712295532,
0.1293928027153015,
0.25896260142326355,
-0.5065020322799683,
-0.33964085578918457,
0.34462714195251465,
-0.682917058467865,
-0.20210736989974976,
-0.08832888305187225,
-0.018174568191170692,
-0.09172365814447403,
0.22667768597602844,
-0.030380718410015106,
0.2706250548362732,
0.22216250002384186,
-0.15568970143795013,
0.10929995775222778,
-0.1322837471961975,
-0.2360173612833023,
-0.21238678693771362,
-0.0463719516992569,
0.29065969586372375,
-0.03492169827222824,
-0.3357981741428375,
0.05412585288286209,
0.44437751173973083,
0.1232089102268219,
0.06236724928021431,
0.12912945449352264,
-0.07157327234745026,
0.044642020016908646,
-0.231186181306839,
0.1862354576587677,
-0.02857913076877594,
-0.004689190536737442,
-0.44833722710609436,
-0.3373032212257385
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi ! Indeed there's an issue with those links.
We should probably use the target urls of the redirections instead | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 20 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi ! Indeed there's an issue with those links.
We should probably use the target urls of the redirections instead | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi, the same issue here, could you tell me how to download it through datasets? thanks | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 16 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi, the same issue here, could you tell me how to download it through datasets? thanks | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Actually it's already fixed on the master branch since #740
I'll do the 1.1.3 release soon | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 16 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Actually it's already fixed on the master branch since #740
I'll do the 1.1.3 release soon | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi
thanks, but I did tried to install from the pip install git+... and it does
not work for me,. thanks for the help. I have the same issue with wmt16,
"ro-en"
thanks.
Best
Rabeeh
On Mon, Nov 16, 2020 at 10:29 AM Quentin Lhoest <notifications@github.com>
wrote:
> Actually it's already fixed on the master branch since #740
> <https://github.com/huggingface/datasets/pull/740>
> I'll do the 1.1.3 release soon
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/798#issuecomment-727854736>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCEUBJKPOCLABXCKMPDSQDWH3ANCNFSM4TJBUKSA>
> .
>
| ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 98 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi
thanks, but I did tried to install from the pip install git+... and it does
not work for me,. thanks for the help. I have the same issue with wmt16,
"ro-en"
thanks.
Best
Rabeeh
On Mon, Nov 16, 2020 at 10:29 AM Quentin Lhoest <notifications@github.com>
wrote:
> Actually it's already fixed on the master branch since #740
> <https://github.com/huggingface/datasets/pull/740>
> I'll do the 1.1.3 release soon
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/798#issuecomment-727854736>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCEUBJKPOCLABXCKMPDSQDWH3ANCNFSM4TJBUKSA>
> .
>
| [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | I just tested on google colab using
```python
!pip install git+https://github.com/huggingface/datasets.git
from datasets import load_dataset
load_dataset("trec")
```
and it works.
Can you detail how you got the issue even when using the latest version on master ?
Also about wmt we'll look into it, thanks for reporting ! | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 48 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
I just tested on google colab using
```python
!pip install git+https://github.com/huggingface/datasets.git
from datasets import load_dataset
load_dataset("trec")
```
and it works.
Can you detail how you got the issue even when using the latest version on master ?
Also about wmt we'll look into it, thanks for reporting ! | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | I think the new url with .edu is also broken:
```
ConnectionError: Couldn't reach https://cogcomp.seas.upenn.edu/Data/QA/QC/train_5500.label
```
Cant download the dataset anymore. | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 21 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
I think the new url with .edu is also broken:
```
ConnectionError: Couldn't reach https://cogcomp.seas.upenn.edu/Data/QA/QC/train_5500.label
```
Cant download the dataset anymore. | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi ! The URL seems to work fine on my side, can you try again ? | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 16 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi ! The URL seems to work fine on my side, can you try again ? | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Forgot to update, i wrote an email to the webmaster of seas.upenn.edu because i couldnt reach the url on any machine. This was the answer:
```
Thank you for your report. The server was offline for maintenance and is now available again.
```
Guess all back to normal now 🙂 | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 50 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Forgot to update, i wrote an email to the webmaster of seas.upenn.edu because i couldnt reach the url on any machine. This was the answer:
```
Thank you for your report. The server was offline for maintenance and is now available again.
```
Guess all back to normal now 🙂 | [
-0.16917267441749573,
0.016836240887641907,
0.06266529858112335,
0.3633995056152344,
0.29187673330307007,
-0.17967821657657623,
0.21995848417282104,
-0.0434449128806591,
-0.1838141679763794,
0.06295822560787201,
-0.32389914989471436,
0.13601793348789215,
0.07222899794578552,
0.1577586978673935,
-0.05791383981704712,
-0.09452761709690094,
-0.1901097297668457,
-0.20005598664283752,
-0.06888352334499359,
0.2535368800163269,
-0.13285425305366516,
0.47539880871772766,
-0.20731376111507416,
0.20469088852405548,
-0.41125035285949707,
0.01206698827445507,
0.21743042767047882,
0.4217192828655243,
-0.22421756386756897,
-0.6152895092964172,
0.4672030806541443,
0.09182140231132507,
0.25832101702690125,
0.6301941275596619,
-0.00012121880718041211,
0.04387731850147247,
0.3747946619987488,
-0.08091147243976593,
-0.36822012066841125,
-0.5027561187744141,
-0.5078125596046448,
-0.07905204594135284,
0.2648391127586365,
0.2292863428592682,
-0.3196890652179718,
0.42855721712112427,
0.07915336638689041,
-0.3250606656074524,
0.33820393681526184,
0.6332945227622986,
0.0820835754275322,
-0.07683773338794708,
0.09451238811016083,
-0.1623592972755432,
0.30161839723587036,
-0.148898184299469,
-0.07061027735471725,
0.4869537949562073,
0.21551348268985748,
-0.03863845020532608,
0.05493692681193352,
-0.021642984822392464,
-0.027104681357741356,
-0.011704660952091217,
0.17982754111289978,
-0.07429246604442596,
-0.11018478125333786,
-0.4340970516204834,
0.42413055896759033,
0.3522651195526123,
0.6402145028114319,
-0.1733745038509369,
-0.22726880013942719,
0.1454126238822937,
-0.08126450330018997,
-0.43023577332496643,
0.30031830072402954,
0.32170790433883667,
-0.12212404608726501,
0.1870259791612625,
-0.40782880783081055,
-0.2597644031047821,
-0.36862891912460327,
0.004372678697109222,
-0.4164089262485504,
0.12703482806682587,
-0.266398549079895,
0.13153064250946045,
0.2910034954547882,
0.015295127406716347,
0.33889010548591614,
0.22372420132160187,
-0.44704538583755493,
-0.0075070904567837715,
-0.6929903626441956,
0.1829681545495987,
-0.14821091294288635,
-0.03634673357009888,
0.09349405020475388,
0.369732141494751,
0.31743791699409485,
0.036896657198667526,
-0.28630539774894714,
0.406568706035614,
0.08699198067188263,
0.34218019247055054,
0.043239254504442215,
0.18729746341705322,
0.32423388957977295,
0.18371783196926117,
-0.013220913708209991,
-0.09307920187711716,
-0.19508303701877594,
-0.2066054791212082,
-0.13308916985988617,
0.18090519309043884,
0.09734192490577698,
-0.27020907402038574,
-0.3912982642650604,
0.1465577483177185,
-0.4139412045478821,
0.009193388745188713,
0.12256433814764023,
0.454131156206131,
-0.27559134364128113,
-0.024243712425231934,
-0.03852489963173866,
0.22082222998142242,
-0.09657065570354462,
-0.16265563666820526,
-0.06601264327764511,
0.22614459693431854,
-0.23264548182487488,
0.13177025318145752,
0.3380996584892273,
-0.18130898475646973,
0.1413070559501648,
-0.1649179756641388,
-0.06684476137161255,
-0.2156006246805191,
-0.008650442585349083,
-0.26765450835227966,
-0.106719471514225,
0.43074876070022583,
0.07769343256950378,
0.056267231702804565,
0.12437885999679565,
-0.37195777893066406,
-0.035264309495687485,
0.01337948814034462,
-0.5714358687400818,
-0.3518604338169098,
0.06211625784635544,
0.07057828456163406,
-0.12042901664972305,
0.021902812644839287,
-0.34435462951660156,
0.0012691430747509003,
-0.004354096949100494,
-0.18004275858402252,
-0.1748715043067932,
-0.27044492959976196,
-0.333465039730072,
-0.3149198591709137,
0.34587621688842773,
0.4514569640159607,
-0.5566045641899109,
-0.027075253427028656,
0.09684021025896072,
0.0743107944726944,
0.16746048629283905,
0.3314797282218933,
-0.19075439870357513,
-0.09515251964330673,
-0.218122661113739,
-0.10006676614284515,
0.09560149163007736,
-0.31128811836242676,
-0.2985933721065521,
-0.0033586937934160233,
-0.019407708197832108,
-0.048356954008340836,
-0.23692360520362854,
-0.10341370850801468,
0.013775461353361607,
0.061603620648384094,
0.6465599536895752,
0.2157903015613556,
-0.1283167600631714,
-0.17619390785694122,
-0.15029370784759521,
-0.2762145698070526,
-0.2542465925216675,
0.0869562178850174,
0.1214701235294342,
0.005973301827907562,
0.23639684915542603,
-0.47641444206237793,
0.07022909075021744,
0.041881367564201355,
-0.0073057059198617935,
0.3011593818664551,
0.3711312711238861,
-0.05341614782810211,
-0.19651120901107788,
0.25416433811187744,
-0.45123744010925293,
0.37018662691116333,
-0.07186076045036316,
0.2864067256450653,
-0.253454327583313,
0.15393540263175964,
-0.2667069137096405,
0.14493975043296814,
-0.05388116464018822,
-0.13384148478507996,
-0.05917181074619293,
0.09799952059984207,
0.22506797313690186,
0.2401248663663864,
-0.11998502910137177,
0.5677846074104309,
0.1352924406528473,
0.13874785602092743,
-0.2335025668144226,
0.2586084008216858,
0.021819550544023514,
0.06880758702754974,
0.13291676342487335,
0.010632183402776718,
0.21421098709106445,
-0.2170555293560028,
-0.06412195414304733,
0.3186342120170593,
0.2173629105091095,
0.04179593548178673,
0.05746160075068474,
0.157719224691391,
0.2542839050292969,
-0.3891913890838623,
-0.0997394397854805,
0.04728827252984047,
-0.00862424261868,
-0.025269869714975357,
-0.04055413603782654,
0.24257303774356842,
0.06485966593027115,
0.4205702841281891,
0.14002354443073273,
0.0894206091761589,
0.32157468795776367,
0.02985890582203865,
-0.016004713252186775,
0.17947423458099365,
0.17520013451576233,
0.21789155900478363,
0.02306191995739937,
-0.08385099470615387,
-0.36023110151290894,
0.1493658721446991,
-0.1642056703567505,
0.04955894127488136,
-0.1129637137055397,
0.12475509941577911,
-0.15479746460914612,
-0.02208043821156025,
0.0700041726231575,
0.3708673119544983,
0.22012752294540405,
0.04904788359999657,
-0.20052045583724976,
0.18741001188755035,
0.060527410358190536,
-0.2058146446943283,
-0.04450111836194992,
0.10965382307767868,
0.36466675996780396,
0.2655831575393677,
0.4266875386238098,
-0.048763174563646317,
-0.09510767459869385,
-0.37876415252685547,
-0.035897694528102875,
0.2614511251449585,
-0.27078863978385925,
0.40087780356407166,
-0.24347113072872162,
-0.3584270179271698,
0.09380491822957993,
-0.31619611382484436,
-0.34494760632514954,
-0.2649381458759308,
-0.11771012842655182,
0.43751364946365356,
0.11630897223949432,
0.062328748404979706,
-0.2111104279756546,
0.3716546595096588,
0.025430435314774513,
-0.5300379991531372,
-0.02368844300508499,
-0.2573986351490021,
-0.31983643770217896,
0.015924111008644104,
0.33339062333106995,
-0.22138850390911102,
0.06986188143491745,
-0.25470399856567383,
0.0297970250248909,
-0.125546395778656,
-0.20304381847381592,
0.161563903093338,
0.1523071527481079,
0.3011631965637207,
-0.06698088347911835,
0.22677667438983917,
-0.24250438809394836,
0.09405995160341263,
0.2750999927520752,
0.06796093285083771,
0.10234023630619049,
0.04893413931131363,
-0.04008699208498001,
0.044108156114816666,
0.024912681430578232,
-0.2555709481239319,
-0.4800461232662201,
-0.3582807779312134,
0.17842280864715576,
0.019613906741142273,
0.34588485956192017,
0.2960086166858673,
0.038249142467975616,
-0.08666234463453293,
0.06418056041002274,
-0.07696384191513062,
-0.15337508916854858,
-0.3865545094013214,
0.1724115014076233,
-0.27867910265922546,
-0.24313388764858246,
0.250968873500824,
0.07473916560411453,
0.3847602605819702,
0.07639531046152115,
-0.6094401478767395,
-0.15641093254089355,
-0.12646035850048065,
0.10489989817142487,
0.025826137512922287,
-0.2825920283794403,
0.3334428369998932,
-0.0882081463932991,
-0.005147790536284447,
0.21606436371803284,
-0.44045254588127136,
0.03233363479375839,
0.3356821835041046,
0.39132413268089294,
0.27374714612960815,
0.3707468509674072,
-0.170944944024086,
0.4239252209663391,
0.20260965824127197,
0.048543527722358704,
0.3296657204627991,
-0.15722373127937317,
0.33412036299705505,
-0.08921775966882706,
-0.2969244122505188,
-0.2172846496105194,
-0.2103469967842102,
-0.3245609998703003,
0.16177241504192352,
0.26366451382637024,
-0.03441530466079712,
-0.49671071767807007,
0.11736242473125458,
-0.08014045655727386,
-0.32768815755844116,
0.05564819276332855,
0.16797475516796112,
0.11108821630477905,
0.003879062831401825,
-0.03782592713832855,
0.22122859954833984,
-0.21193861961364746,
-0.31723520159721375,
0.36299991607666016,
0.08038102835416794,
0.07254946976900101,
-0.13046658039093018,
-0.016119521111249924,
-0.8267483711242676,
0.3045908510684967,
0.004353292286396027,
0.3990241587162018,
-0.3158366084098816,
0.06142985820770264,
0.07918919622898102,
-0.10680591315031052,
0.11924567073583603,
-0.30705419182777405,
-0.08182695508003235,
0.30878251791000366,
0.06008540838956833,
-0.21097306907176971,
-0.2092311978340149,
0.126994788646698,
0.18553775548934937,
0.4327664375305176,
0.36028388142585754,
0.013694435358047485,
0.005340602248907089,
0.07416067272424698,
0.14800675213336945,
-0.0896286889910698,
0.02308303862810135,
-0.3215015232563019,
-0.4804899990558624,
-0.23763835430145264,
-0.07142778486013412,
-0.0627247765660286,
0.2982814908027649,
0.1305006444454193,
0.08491981029510498,
0.2911788523197174,
-0.2723357379436493,
0.2081022560596466,
0.09229554235935211,
0.01886729896068573,
0.1057649552822113,
0.10276447236537933,
0.09913845360279083,
0.06249083951115608,
0.33541133999824524,
0.9395025968551636,
0.10092216730117798,
-0.1204165369272232,
0.3544929325580597,
0.39620712399482727,
0.07355217635631561,
0.22873568534851074,
-0.051834166049957275,
0.1031673327088356,
-0.04554865509271622,
0.13107192516326904,
0.04727761074900627,
0.3104488253593445,
-0.24123167991638184,
-0.012339837849140167,
-0.844632625579834,
-0.1633535474538803,
0.3940391540527344,
-0.11573995649814606,
-0.09637843072414398,
-0.08853162825107574,
0.19186899065971375,
-0.12238273024559021,
0.06642720848321915,
-0.07983347028493881,
0.9389854669570923,
-0.2157410830259323,
-0.11394689977169037,
0.0964188501238823,
-0.1470552384853363,
0.4845152199268341,
-0.5781700611114502,
0.47805172204971313,
-0.3271457254886627,
-0.15969061851501465,
-0.2196512669324875,
-0.2689324915409088,
-0.11416155844926834,
-0.17540529370307922,
-0.0028668269515037537,
0.4294499456882477,
-0.13750267028808594,
0.17971102893352509,
0.41035178303718567,
0.031249791383743286,
0.16680532693862915,
0.03137996047735214,
-0.15632282197475433,
0.074226513504982,
-0.068473219871521,
0.37951451539993286,
-0.07533729821443558,
-0.08797424286603928,
-0.2208288609981537,
-0.023257659748196602,
-0.33054429292678833,
0.2558436393737793,
-0.7046299576759338,
0.09517046809196472,
0.0003451444208621979,
-0.20279920101165771,
0.13872869312763214,
0.14910022914409637,
0.20197640359401703,
0.1502193659543991,
-0.31032517552375793,
0.26503852009773254,
-0.047306910157203674,
-0.15062744915485382,
-0.009702247567474842,
-0.015875812619924545,
0.010616742074489594,
-0.057882554829120636,
-0.08001773059368134,
0.44516509771347046,
-0.013192611746490002,
-0.4016886353492737,
0.049770742654800415,
0.04142608121037483,
0.015600752085447311,
-0.06720060110092163,
0.13102003931999207,
-0.09139595925807953,
0.033471811562776566,
0.06900843977928162,
0.02713089808821678,
0.12051790207624435,
0.15398700535297394,
-0.019632235169410706,
0.22829259932041168,
-0.2593364715576172,
-0.015715502202510834,
0.3636074960231781,
-0.013595644384622574,
-0.031950101256370544,
0.1860431730747223,
0.4898224472999573,
-0.002025369554758072,
-0.07053124904632568,
-0.1395794004201889,
0.21268852055072784,
-0.3972614109516144,
0.11640312522649765,
-0.04323413223028183,
0.14965389668941498,
0.03337973728775978,
0.34728094935417175,
0.3143410086631775,
0.03172602877020836,
0.38761621713638306,
-0.5564651489257812,
-0.2944401204586029,
0.05444727838039398,
-0.16902458667755127,
0.18416666984558105,
0.10408858209848404,
-0.16329380869865417,
-0.22763970494270325,
-0.0018328912556171417,
-0.19226008653640747,
0.07231101393699646,
-0.35878852009773254,
-0.175902858376503,
0.17263776063919067,
-0.11618591099977493,
0.5185418725013733,
-0.13682785630226135,
-0.047945111989974976,
-0.018405303359031677,
-0.35812702775001526,
-0.05649181455373764,
-0.014560454525053501,
0.20178943872451782,
0.17124176025390625,
-0.4430915415287018,
-0.17554345726966858,
-0.07752794027328491,
0.04856894910335541,
0.054394908249378204,
0.18474391102790833,
0.19843944907188416,
-0.1803075224161148,
-0.32938504219055176,
-0.4175057113170624,
0.008154358714818954,
-0.3177667260169983,
0.36757826805114746,
0.23192957043647766,
0.4606677293777466,
0.21742114424705505,
0.24356681108474731,
-0.016910618171095848,
-0.13365906476974487,
-0.11765868216753006,
0.21299701929092407,
-0.053510457277297974,
-0.26453331112861633,
0.19652312994003296,
-0.43278229236602783,
0.06015926972031593,
-0.24055500328540802,
0.23243576288223267,
0.07866373658180237,
-0.21387454867362976,
0.14287668466567993,
0.18814429640769958,
0.05251706764101982,
-0.07040463387966156,
-0.032833728939294815,
0.14138855040073395,
-0.027203135192394257,
0.03104882314801216,
0.22503091394901276,
0.3868727385997772,
-0.17842277884483337,
0.07996723800897598,
0.24590584635734558,
0.5618063807487488,
0.1223890632390976,
0.1421128809452057,
-0.12369704246520996,
-0.12370570003986359,
0.1257033795118332,
0.4094531238079071,
0.008992966264486313,
0.032767489552497864,
0.021118909120559692,
-0.3650708496570587,
-0.034925952553749084,
-0.005955088883638382,
0.018313933163881302,
0.03327479213476181,
-0.5767635107040405,
0.10643799602985382,
0.14117643237113953,
-0.17957791686058044,
-0.1717037558555603,
-0.08942221105098724,
0.4524858593940735,
-0.21002966165542603,
-0.017403673380613327,
-0.3908970355987549,
0.1880071610212326,
-0.02424013242125511,
-0.03971382975578308,
0.11829213798046112,
-0.441590815782547,
-0.1305992752313614,
0.24272683262825012,
0.006992027163505554,
-0.15939614176750183,
-0.004667617380619049,
0.08597676455974579,
-0.23882891237735748,
-0.3000749349594116,
-0.07559314370155334,
0.3069646954536438,
-0.04264756292104721,
-0.09364816546440125,
0.44977128505706787,
0.027335800230503082,
-0.17066113650798798,
0.15570329129695892,
0.015389658510684967,
0.6272585391998291,
0.2654237747192383,
0.18237513303756714,
0.10876861959695816,
-0.12664195895195007,
0.007131053134799004,
0.16971591114997864,
0.08836497366428375,
0.19004106521606445,
-0.33221566677093506,
0.16854138672351837,
0.07864845544099808,
0.02584640309214592,
0.2831474840641022,
-0.0928126871585846,
0.3121070861816406,
0.029457945376634598,
0.01797923445701599,
-0.14604151248931885,
0.11181577295064926,
-0.15921004116535187,
0.042283471673727036,
-0.3145124912261963,
0.17835752665996552,
0.386251837015152,
-0.14028577506542206,
0.26938214898109436,
0.15430310368537903,
0.008642362430691719,
-0.17800690233707428,
0.45999112725257874,
0.3405543863773346,
0.23232927918434143,
-0.3487296402454376,
-0.18991005420684814,
-0.24735336005687714,
-0.005519144237041473,
-0.11154629290103912,
0.20730899274349213,
-0.04169255867600441,
0.15027405321598053,
-0.20463496446609497,
0.30326366424560547,
-0.12179408967494965,
0.3058776259422302,
0.0848771259188652,
0.00639864057302475,
-0.2651688754558563,
0.06634163111448288,
0.009094372391700745,
0.04983022063970566,
-0.15377359092235565,
-0.2624775767326355,
0.08155719190835953,
-0.3734000623226166,
-0.0794995129108429,
-0.11991928517818451,
0.1511416882276535,
0.04269968345761299,
-0.26439169049263,
0.29913878440856934,
0.24583935737609863,
0.733687162399292,
0.26307564973831177,
-0.00937465950846672,
-0.13824278116226196,
-0.3809230327606201,
-0.022565972059965134,
0.009369131177663803,
0.3737495243549347,
0.28382307291030884,
0.08536731451749802,
-0.2404979020357132,
-0.3851110637187958,
0.49888962507247925,
0.06524711102247238,
0.2366233617067337,
0.16505813598632812,
-0.0864071398973465,
-0.018205270171165466,
0.08529724925756454,
-0.07599501311779022,
-0.10944066196680069,
0.19041432440280914,
0.1407318413257599,
-0.13634148240089417,
-0.3142249882221222,
0.5675711631774902,
-0.34544187784194946,
0.11282473802566528,
-0.1528615951538086,
0.2606036067008972,
0.3078804910182953,
0.020560558885335922,
-0.2705269455909729,
0.12397543340921402,
0.21452303230762482,
-0.13280725479125977,
-0.41260161995887756,
0.33553600311279297,
-0.2914165258407593,
-0.06480807065963745,
-0.06114561855792999,
0.14645452797412872,
0.0038933921605348587,
-0.3008676767349243,
-0.2765823006629944,
-0.026671472936868668
] |
https://github.com/huggingface/datasets/issues/792 | KILT dataset: empty string in triviaqa input field | Just found out about https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md
(Not very clear in https://huggingface.co/datasets/kilt_tasks links to http://github.com/huggingface/datasets/datasets/kilt_tasks/README.md which is dead, closing the issue though :)) | # What happened
Both train and test splits of the triviaqa dataset (part of the KILT benchmark) seem to have empty string in their input field (unlike the natural questions dataset, part of the same benchmark)
# Versions
KILT version is `1.0.0`
`datasets` version is `1.1.2`
[more here](https://gist.github.com/PaulLerner/3768c8d25f723edbac20d99b6a4056c1)
# How to reproduce
```py
In [1]: from datasets import load_dataset
In [4]: dataset = load_dataset("kilt_tasks")
# everything works fine, removed output for a better readibility
Dataset kilt_tasks downloaded and prepared to /people/lerner/.cache/huggingface/datasets/kilt_tasks/all_tasks/1.0.0/821c4295a2c35db2847585918d9c47d7f028f1a26b78825d8e77cd3aeb2621a1. Subsequent calls will reuse this data.
# empty string in triviaqa input field
In [36]: dataset['train_triviaqa'][0]
Out[36]:
{'id': 'dpql_5197',
'input': '',
'meta': {'left_context': '',
'mention': '',
'obj_surface': {'text': []},
'partial_evidence': {'end_paragraph_id': [],
'meta': [],
'section': [],
'start_paragraph_id': [],
'title': [],
'wikipedia_id': []},
'right_context': '',
'sub_surface': {'text': []},
'subj_aliases': {'text': []},
'template_questions': {'text': []}},
'output': {'answer': ['five £', '5 £', '£5', 'five £'],
'meta': [],
'provenance': [{'bleu_score': [1.0],
'end_character': [248],
'end_paragraph_id': [30],
'meta': [],
'section': ['Section::::Question of legal tender.\n'],
'start_character': [246],
'start_paragraph_id': [30],
'title': ['Banknotes of the pound sterling'],
'wikipedia_id': ['270680']}]}}
In [35]: dataset['train_triviaqa']['input'][:10]
Out[35]: ['', '', '', '', '', '', '', '', '', '']
# same with test set
In [37]: dataset['test_triviaqa']['input'][:10]
Out[37]: ['', '', '', '', '', '', '', '', '', '']
# works fine with natural questions
In [34]: dataset['train_nq']['input'][:10]
Out[34]:
['how i.met your mother who is the mother',
'who had the most wins in the nfl',
'who played mantis guardians of the galaxy 2',
'what channel is the premier league on in france',
"god's not dead a light in the darkness release date",
'who is the current president of un general assembly',
'when do the eclipse supposed to take place',
'what is the name of the sea surrounding dubai',
'who holds the nba record for most points in a career',
'when did the new maze runner movie come out']
```
Stay safe :) | 21 | KILT dataset: empty string in triviaqa input field
# What happened
Both train and test splits of the triviaqa dataset (part of the KILT benchmark) seem to have empty string in their input field (unlike the natural questions dataset, part of the same benchmark)
# Versions
KILT version is `1.0.0`
`datasets` version is `1.1.2`
[more here](https://gist.github.com/PaulLerner/3768c8d25f723edbac20d99b6a4056c1)
# How to reproduce
```py
In [1]: from datasets import load_dataset
In [4]: dataset = load_dataset("kilt_tasks")
# everything works fine, removed output for a better readibility
Dataset kilt_tasks downloaded and prepared to /people/lerner/.cache/huggingface/datasets/kilt_tasks/all_tasks/1.0.0/821c4295a2c35db2847585918d9c47d7f028f1a26b78825d8e77cd3aeb2621a1. Subsequent calls will reuse this data.
# empty string in triviaqa input field
In [36]: dataset['train_triviaqa'][0]
Out[36]:
{'id': 'dpql_5197',
'input': '',
'meta': {'left_context': '',
'mention': '',
'obj_surface': {'text': []},
'partial_evidence': {'end_paragraph_id': [],
'meta': [],
'section': [],
'start_paragraph_id': [],
'title': [],
'wikipedia_id': []},
'right_context': '',
'sub_surface': {'text': []},
'subj_aliases': {'text': []},
'template_questions': {'text': []}},
'output': {'answer': ['five £', '5 £', '£5', 'five £'],
'meta': [],
'provenance': [{'bleu_score': [1.0],
'end_character': [248],
'end_paragraph_id': [30],
'meta': [],
'section': ['Section::::Question of legal tender.\n'],
'start_character': [246],
'start_paragraph_id': [30],
'title': ['Banknotes of the pound sterling'],
'wikipedia_id': ['270680']}]}}
In [35]: dataset['train_triviaqa']['input'][:10]
Out[35]: ['', '', '', '', '', '', '', '', '', '']
# same with test set
In [37]: dataset['test_triviaqa']['input'][:10]
Out[37]: ['', '', '', '', '', '', '', '', '', '']
# works fine with natural questions
In [34]: dataset['train_nq']['input'][:10]
Out[34]:
['how i.met your mother who is the mother',
'who had the most wins in the nfl',
'who played mantis guardians of the galaxy 2',
'what channel is the premier league on in france',
"god's not dead a light in the darkness release date",
'who is the current president of un general assembly',
'when do the eclipse supposed to take place',
'what is the name of the sea surrounding dubai',
'who holds the nba record for most points in a career',
'when did the new maze runner movie come out']
```
Stay safe :)
Just found out about https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md
(Not very clear in https://huggingface.co/datasets/kilt_tasks links to http://github.com/huggingface/datasets/datasets/kilt_tasks/README.md which is dead, closing the issue though :)) | [
0.41542503237724304,
-0.3093395233154297,
-0.030962469056248665,
0.030844464898109436,
0.2169787436723709,
0.04815562814474106,
0.6097391843795776,
0.41963857412338257,
0.18411849439144135,
0.19524897634983063,
0.3654615581035614,
0.517955482006073,
-0.04680798947811127,
0.443081796169281,
0.045261502265930176,
0.02973732352256775,
0.026294372975826263,
0.08160930871963501,
0.24497906863689423,
-0.13490773737430573,
-0.07026098668575287,
0.11851555854082108,
-0.5049004554748535,
-0.3920860290527344,
-0.6020738482475281,
0.07151316851377487,
-0.14711894094944,
0.10561318695545197,
0.1308475136756897,
-0.3451220989227295,
0.2047564685344696,
-0.19662389159202576,
-0.2979109287261963,
0.2347998470067978,
-0.00012331550533417612,
-0.15181627869606018,
0.44055163860321045,
-0.19111581146717072,
-0.5569393634796143,
-0.2748938202857971,
-0.5155445337295532,
0.041486479341983795,
0.11268150061368942,
-0.3192621171474457,
-0.05202861130237579,
0.37834882736206055,
-0.05568888038396835,
-0.5345301628112793,
0.1037185862660408,
0.3284577429294586,
0.08281879127025604,
0.2482215166091919,
-0.4270975589752197,
-0.01553204096853733,
0.06783522665500641,
0.23252838850021362,
-0.09633716940879822,
-0.1887252777814865,
-0.0307343527674675,
0.009067799896001816,
-0.029226787388324738,
0.37496161460876465,
0.055250562727451324,
0.051204755902290344,
-0.08717193454504013,
0.14638780057430267,
-0.10524020344018936,
-0.5381205081939697,
0.43759438395500183,
0.49029725790023804,
0.002271398901939392,
-0.07521027326583862,
-0.34286537766456604,
-0.3614497780799866,
0.07465977966785431,
0.03526098281145096,
0.11278967559337616,
0.45878151059150696,
-0.19108228385448456,
-0.12804000079631805,
-0.05158718675374985,
0.019721530377864838,
-0.061624135822057724,
-0.04678741842508316,
-0.5572407245635986,
0.3227188289165497,
0.02755003049969673,
-0.03522910922765732,
-0.11864772439002991,
-0.079226054251194,
0.061516810208559036,
-0.32931485772132874,
-0.22642377018928528,
0.13639004528522491,
-0.43275195360183716,
-0.013339407742023468,
0.07350128889083862,
0.004605434834957123,
0.07144848257303238,
-0.06067418307065964,
0.09528301656246185,
0.13809651136398315,
0.08095578104257584,
0.03622400388121605,
0.32648423314094543,
0.21314643323421478,
0.606731116771698,
-0.23365050554275513,
-0.10193966329097748,
-0.014645867049694061,
-0.28993403911590576,
0.02370632067322731,
0.015417159534990788,
0.22610171139240265,
-0.14524056017398834,
-0.10478340834379196,
0.5170950293540955,
-0.16385117173194885,
-0.4324895739555359,
0.19471140205860138,
-0.31157171726226807,
0.00008497340604662895,
-0.2510182857513428,
0.118045873939991,
-0.2242426574230194,
0.45530757308006287,
-0.26906266808509827,
0.3509600758552551,
-0.1322486251592636,
-0.36372700333595276,
-0.24356518685817719,
0.08254868537187576,
0.07698644697666168,
0.07198895514011383,
0.16215425729751587,
-0.3181547522544861,
0.24770903587341309,
0.16279608011245728,
-0.07973334193229675,
-0.1926606297492981,
0.30626094341278076,
-0.27962633967399597,
0.16481667757034302,
0.23426544666290283,
0.1821507066488266,
0.10107100754976273,
0.27215775847435,
-0.1779695451259613,
0.1281518042087555,
0.4900314509868622,
-0.21724411845207214,
-0.15912994742393494,
-0.16403013467788696,
0.09029059112071991,
-0.5352227091789246,
-0.1692020148038864,
0.007725268602371216,
0.3015994727611542,
-0.04436451941728592,
-0.015721099451184273,
-0.038980431854724884,
-0.0784885361790657,
-0.018175464123487473,
-0.13675251603126526,
0.3983204960823059,
0.4051305055618286,
-0.6290894150733948,
-0.019426673650741577,
-0.12459481507539749,
0.4337555468082428,
0.028434470295906067,
-0.08469486236572266,
0.002301661064848304,
0.4501259922981262,
0.04501638561487198,
0.48834049701690674,
0.15949973464012146,
-0.6423999071121216,
0.12343721836805344,
0.11090918630361557,
0.07653321325778961,
0.2729052007198334,
0.017095930874347687,
-0.15204286575317383,
0.22716116905212402,
0.31211385130882263,
0.15354716777801514,
0.07571430504322052,
-0.11064477264881134,
-0.03577027469873428,
-0.4687986373901367,
-0.24150137603282928,
0.3733980655670166,
0.15707747638225555,
0.05014495551586151,
-0.11752591282129288,
-0.01630336046218872,
0.311297208070755,
0.1443440020084381,
0.015937019139528275,
0.14076010882854462,
0.2728123068809509,
0.4098912477493286,
-0.1147984117269516,
-0.06658333539962769,
0.05183940380811691,
-0.41125211119651794,
0.18282896280288696,
0.02530687302350998,
0.42655298113822937,
0.05406865477561951,
-0.27538031339645386,
-0.33566221594810486,
-0.04227662831544876,
-0.36615025997161865,
-0.5387890338897705,
0.06389616429805756,
-0.09779660403728485,
0.026656299829483032,
0.2791166603565216,
-0.22979459166526794,
0.049998655915260315,
-0.06834524869918823,
0.02336311712861061,
-0.41887950897216797,
0.14384955167770386,
0.10576393455266953,
-0.0649687796831131,
-0.33973053097724915,
0.44724997878074646,
0.0299085546284914,
-0.027710705995559692,
0.07624884694814682,
0.23491621017456055,
0.3358789086341858,
0.015541866421699524,
0.39394283294677734,
-0.15051208436489105,
0.22316773235797882,
-0.10096243768930435,
-0.03896889090538025,
0.26088425517082214,
0.2673655152320862,
-0.2982000410556793,
-0.5522270798683167,
0.49468564987182617,
0.0474158376455307,
0.1908847987651825,
-0.1122225821018219,
0.004903296008706093,
-0.211770161986351,
-0.17569677531719208,
-0.10373203456401825,
-0.07380826026201248,
-0.048536498099565506,
-0.4181036353111267,
0.09155026078224182,
0.054891571402549744,
-0.24733015894889832,
0.2331141233444214,
0.3761439323425293,
0.18272395431995392,
0.1425500214099884,
-0.1430836319923401,
-0.27386099100112915,
-0.13779103755950928,
0.10528659075498581,
0.19024012982845306,
0.29236435890197754,
0.1332271844148636,
0.08500739932060242,
-0.19864316284656525,
0.27074161171913147,
-0.19874416291713715,
0.2556266486644745,
0.2737278938293457,
0.022274013608694077,
0.30038949847221375,
0.26719486713409424,
0.010933628305792809,
-0.06196349114179611,
0.22273629903793335,
0.2534608542919159,
0.13604623079299927,
-0.12223604321479797,
-0.0501960813999176,
-0.2849494516849518,
-0.11902016401290894,
-0.036240022629499435,
-0.046209897845983505,
-0.11452846229076385,
-0.5389604568481445,
-0.061560966074466705,
-0.14734748005867004,
-0.05175958201289177,
0.032714925706386566,
-0.12259989976882935,
0.2000129669904709,
0.15894603729248047,
-0.42462775111198425,
-0.2907561659812927,
-0.4309130012989044,
-0.2542894184589386,
0.014486439526081085,
0.05692663788795471,
0.05489862337708473,
-0.007812468335032463,
0.06467239558696747,
-0.15381011366844177,
-0.11301281303167343,
-0.5093662142753601,
-0.014738202095031738,
-0.33509838581085205,
0.49820274114608765,
0.013105377554893494,
0.49667972326278687,
-0.37863868474960327,
-0.08842658996582031,
0.32205668091773987,
0.05067330598831177,
-0.22153101861476898,
0.10994067788124084,
0.17430421710014343,
0.1307165026664734,
-0.4416176378726959,
-0.7334840893745422,
-0.02263534627854824,
-0.09645932912826538,
0.05667342245578766,
0.05830659344792366,
-0.11010889708995819,
0.4022309482097626,
-0.030614208430051804,
0.3108605742454529,
0.06322605907917023,
-0.3287021815776825,
-0.15135852992534637,
-0.15706834197044373,
0.3093300759792328,
-0.07679266482591629,
-0.33702483773231506,
0.2594735026359558,
-0.2156601846218109,
0.43044838309288025,
-0.17137697339057922,
-0.4541923999786377,
-0.11877395212650299,
-0.014037782326340675,
0.4953696131706238,
0.10774615406990051,
-0.2205434888601303,
0.17020556330680847,
-0.041014671325683594,
0.05682239681482315,
-0.10341876745223999,
0.022384826093912125,
0.276143878698349,
0.29576921463012695,
0.203599214553833,
-0.011686641722917557,
0.1253974735736847,
0.2966403365135193,
0.4599233865737915,
0.07361955940723419,
0.31234732270240784,
0.13464421033859253,
-0.3639744818210602,
0.27835774421691895,
-0.2543642818927765,
-0.06318081170320511,
0.2531128227710724,
0.012764856219291687,
0.000265415757894516,
0.3142949640750885,
-0.07568899542093277,
0.3516097962856293,
-0.14413315057754517,
0.24366924166679382,
-0.44026049971580505,
-0.2558327615261078,
0.03118857368826866,
-0.3067445456981659,
0.17706266045570374,
0.1730920672416687,
0.36191684007644653,
-0.0012299250811338425,
-0.26523107290267944,
-0.07782749831676483,
-0.2306249886751175,
0.10610315948724747,
-0.09548571705818176,
-0.2690642774105072,
0.062183927744627,
-0.24012914299964905,
0.1976780891418457,
0.24813306331634521,
0.2003750205039978,
0.0504099540412426,
-0.355770081281662,
0.14613968133926392,
-0.07043643295764923,
0.7759656310081482,
-0.08562298864126205,
-0.13601820170879364,
0.10711272060871124,
0.06044384837150574,
-0.4118792414665222,
-0.06265000253915787,
-0.2942464351654053,
-0.13856343924999237,
0.28757327795028687,
0.2528022527694702,
-0.2654586434364319,
-0.009564177133142948,
0.11421540379524231,
0.24177849292755127,
-0.1778237223625183,
0.15979118645191193,
-0.3231334090232849,
-0.28901907801628113,
0.03305573761463165,
-0.12197529524564743,
-0.06334207952022552,
0.5701521039009094,
-0.1483333557844162,
0.03151044622063637,
-0.2093765288591385,
0.059303946793079376,
0.37173956632614136,
0.1712847799062729,
0.5655802488327026,
-0.12462132424116135,
0.21353909373283386,
-0.07584897428750992,
-0.30371516942977905,
-0.21197018027305603,
0.3906046152114868,
0.09800027310848236,
0.04907844960689545,
0.07804630696773529,
-0.3931383192539215,
0.4202159643173218,
0.44309860467910767,
0.17914220690727234,
0.3714132606983185,
-0.22204534709453583,
-0.03313520550727844,
-0.18602558970451355,
0.1904967874288559,
0.08332154154777527,
-0.15194380283355713,
-0.023209374397993088,
-0.20014981925487518,
0.23318549990653992,
-0.10878568887710571,
0.12119461596012115,
0.15512683987617493,
0.11079324781894684,
-0.008556898683309555,
0.2784826159477234,
0.12619344890117645,
0.8261992335319519,
0.18778614699840546,
0.32580292224884033,
0.49419471621513367,
0.2213578075170517,
0.20218969881534576,
-0.20138314366340637,
0.05703762173652649,
-0.45869824290275574,
-0.039289213716983795,
-0.027079980820417404,
0.08089540898799896,
0.2617103159427643,
0.01043124869465828,
-0.22321996092796326,
0.1786380559206009,
-0.029130060225725174,
0.3884908854961395,
0.026564128696918488,
0.05434893071651459,
-0.11138837784528732,
0.06849375367164612,
-0.0016607604920864105,
0.06882274895906448,
-0.028620973229408264,
0.12489418685436249,
0.08138595521450043,
-0.14255434274673462,
-0.23231513798236847,
-0.052559223026037216,
-0.0902596041560173,
0.277101069688797,
-0.18112501502037048,
-0.020635023713111877,
0.43775758147239685,
-0.2984696626663208,
-0.15906833112239838,
0.6575036644935608,
0.19158142805099487,
0.15584369003772736,
-0.17076928913593292,
0.340254008769989,
0.14249606430530548,
0.055643416941165924,
0.3146826922893524,
0.14608867466449738,
0.1573823094367981,
0.027013175189495087,
-0.3823419213294983,
0.33585092425346375,
-0.37319135665893555,
0.2302522510290146,
-0.47028234601020813,
0.28576499223709106,
0.11929234862327576,
-0.25722330808639526,
-0.5466191172599792,
-0.04847745597362518,
0.17503543198108673,
-0.10812212526798248,
0.060101862996816635,
-0.207710400223732,
-0.07429924607276917,
0.10680559277534485,
-0.01230837032198906,
-0.3217719793319702,
0.02589135430753231,
0.1559457778930664,
-0.014476541429758072,
0.19365794956684113,
0.6203403472900391,
-0.031207246705889702,
0.054793089628219604,
-0.2772301137447357,
0.38821858167648315,
-0.17925916612148285,
-0.08772081881761551,
0.16485735774040222,
0.1916462630033493,
-0.03527234494686127,
0.03819878771901131,
0.48185357451438904,
-0.1220283955335617,
-0.043136097490787506,
-0.10347605496644974,
-0.28853660821914673,
0.1736021786928177,
0.26716768741607666,
-0.07289445400238037,
0.16296961903572083,
0.1281937062740326,
-0.015042705461382866,
0.18160927295684814,
0.058527909219264984,
-0.1931363046169281,
0.14721795916557312,
-0.20938518643379211,
0.35087278485298157,
-0.13399533927440643,
-0.06594236940145493,
0.5642384886741638,
-0.1818610280752182,
0.058410607278347015,
0.0066460128873586655,
0.13396519422531128,
-0.1970188319683075,
-0.2558172941207886,
0.15851503610610962,
0.17885828018188477,
0.28308987617492676,
-0.08590695261955261,
0.018623463809490204,
-0.03936165198683739,
-0.14349499344825745,
0.16188114881515503,
0.0761125460267067,
-0.09855073690414429,
0.32530298829078674,
0.20540957152843475,
0.45615193247795105,
-0.4297525882720947,
-0.04627537727355957,
0.02253175899386406,
-0.07287582755088806,
0.12149208784103394,
0.0392029695212841,
0.04219042882323265,
0.13835285604000092,
0.04079914465546608,
0.057799406349658966,
-0.1012861579656601,
-0.3686126172542572,
0.04665519297122955,
-0.4157794713973999,
0.06773610413074493,
-0.10169965773820877,
-0.09814590215682983,
0.260565847158432,
-0.36602675914764404,
0.1142999678850174,
0.020420130342245102,
0.1428682655096054,
-0.18889100849628448,
0.3221551775932312,
-0.11793455481529236,
0.19580629467964172,
0.07146310806274414,
0.2107003927230835,
0.12863017618656158,
-0.1363975554704666,
0.2871665060520172,
0.11758025735616684,
0.03641593083739281,
-0.6664679646492004,
0.37558668851852417,
0.36288636922836304,
-0.03508548066020012,
0.030982255935668945,
-0.0771123617887497,
-0.25203460454940796,
-0.3919234871864319,
0.4506192207336426,
0.06295353919267654,
0.4828096628189087,
0.14768216013908386,
-0.23087337613105774,
-0.10546012967824936,
-0.007099347189068794,
0.08785334974527359,
0.11008454859256744,
-0.2691178619861603,
0.013935189694166183,
0.1670452356338501,
0.5890688300132751,
0.01499699242413044,
-0.3044739067554474,
-0.005515756085515022,
-0.200338676571846,
-0.21050453186035156,
-0.12672773003578186,
-0.08362730592489243,
-0.10831807553768158,
-0.0754740759730339,
-0.043657999485731125,
0.23669952154159546,
-0.10121680796146393,
0.1387133002281189,
0.21776403486728668,
-0.03270567208528519,
-0.2060094028711319,
-0.1638246774673462,
0.3368452787399292,
0.3360431492328644,
-0.06873194873332977,
0.3295075595378876,
0.11545317620038986,
0.06558922678232193,
0.34558239579200745,
0.20136907696723938,
0.279466450214386,
0.14239205420017242,
-0.42560434341430664,
0.0391974151134491,
-0.09182378649711609,
-0.27680307626724243,
0.25724372267723083,
0.1200452595949173,
0.1936911642551422,
0.22008520364761353,
0.43998441100120544,
0.08907096087932587,
-0.07374047487974167,
-0.06688417494297028,
0.3249744176864624,
-0.13887447118759155,
-0.3395921289920807,
0.38110625743865967,
0.041378751397132874,
-0.00534164160490036,
-0.06758484989404678,
-0.022470623254776,
-0.4967591464519501,
-0.04743719846010208,
-0.02207173779606819,
0.3517429828643799,
0.03260141611099243,
-0.011429806239902973,
0.0394003689289093,
-0.06623777747154236,
0.1697603166103363,
0.1508941650390625,
-0.016464076936244965,
-0.26060226559638977,
-0.04598969966173172,
-0.7141708135604858,
-0.005446173250675201,
-0.05816732719540596,
-0.2517247796058655,
0.018905572593212128,
0.16416588425636292,
-0.1548174023628235,
-0.06261920183897018,
-0.3487445116043091,
-0.2288343757390976,
0.15305736660957336,
-0.10760273039340973,
-0.6533303260803223,
-0.06718362867832184,
-0.0007708147168159485,
-0.2528155446052551,
-0.09749260544776917,
-0.21041232347488403,
0.052048973739147186,
0.028256766498088837,
-0.11570730805397034,
0.14715629816055298,
-0.26262640953063965,
0.06554564833641052,
0.0791369378566742,
-0.28172677755355835,
-0.16712552309036255,
0.47709524631500244,
0.1151682510972023,
0.06766655296087265,
-0.17488566040992737,
0.08076383918523788,
-0.02956513687968254,
0.05885409936308861,
0.14631739258766174,
0.3296321630477905,
0.1459769457578659,
-0.19905002415180206,
0.14635802805423737,
0.45785069465637207,
0.27632784843444824,
-0.011740109883248806,
-0.1037369817495346,
0.17733751237392426,
-0.09812664240598679,
0.15416817367076874,
0.14406393468379974,
0.22314059734344482,
-0.12467367947101593,
0.21932296454906464,
-0.11631957441568375,
-0.25399601459503174,
0.26659277081489563,
-0.5438082218170166,
-0.35368940234184265,
-0.2601950168609619,
0.10494057089090347,
0.05369561165571213,
-0.1772625744342804,
-0.9156133532524109,
-0.29311293363571167,
0.2973383367061615,
-0.08632265031337738,
0.008624203503131866,
0.15122143924236298,
-0.017213288694620132,
0.09259235858917236,
-0.2654481530189514,
-0.15976591408252716,
0.07335773855447769,
0.053111523389816284,
0.04304245486855507,
-0.2308627963066101
] |
https://github.com/huggingface/datasets/issues/790 | Error running pip install -e ".[dev]" on MacOS 10.13.6: faiss/python does not exist | I saw that `faiss-cpu` 1.6.4.post2 was released recently to fix the installation on macos. It should work now | I was following along with https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset when I ran into this error.
```sh
git clone https://github.com/huggingface/datasets
cd datasets
virtualenv venv -p python3 --system-site-packages
source venv/bin/activate
pip install -e ".[dev]"
```


Python 3.7.7
| 18 | Error running pip install -e ".[dev]" on MacOS 10.13.6: faiss/python does not exist
I was following along with https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset when I ran into this error.
```sh
git clone https://github.com/huggingface/datasets
cd datasets
virtualenv venv -p python3 --system-site-packages
source venv/bin/activate
pip install -e ".[dev]"
```


Python 3.7.7
I saw that `faiss-cpu` 1.6.4.post2 was released recently to fix the installation on macos. It should work now | [
-0.07691353559494019,
-0.47444120049476624,
-0.11490058898925781,
-0.03132501244544983,
0.047035958617925644,
0.0747043713927269,
-0.2394818812608719,
0.2321130484342575,
0.3420986235141754,
0.024670124053955078,
-0.07138092070817947,
0.23753058910369873,
0.0024272194132208824,
0.06625830382108688,
0.01265844888985157,
0.03989293426275253,
0.4198973476886749,
0.22603070735931396,
-0.0316479429602623,
-0.23290158808231354,
0.0014591813087463379,
0.30705660581588745,
-0.019177772104740143,
0.0570395365357399,
-0.1384631097316742,
0.06295192986726761,
-0.2245895117521286,
0.09824897348880768,
-0.27843356132507324,
-0.4324711263179779,
0.132474884390831,
-0.11668294668197632,
0.023135334253311157,
0.4486962854862213,
-0.00012481975136324763,
0.1516881138086319,
0.21498356759548187,
0.09741342067718506,
-0.2460973858833313,
-0.3716700077056885,
-0.1054946631193161,
-0.3073149025440216,
0.1879504770040512,
-0.049127791076898575,
0.15651223063468933,
-0.049658697098493576,
0.04735672473907471,
-0.10546479374170303,
0.29970884323120117,
0.19500403106212616,
0.11071132123470306,
0.4596009850502014,
0.36563318967819214,
-0.19967594742774963,
0.08758217096328735,
0.17472021281719208,
-0.23234646022319794,
0.19024229049682617,
0.23689495027065277,
0.17770732939243317,
0.5242681503295898,
0.10322615504264832,
-0.024086082354187965,
-0.049830954521894455,
0.005252320319414139,
-0.04106437414884567,
0.2971595525741577,
-0.2509605288505554,
-0.12558850646018982,
0.08832274377346039,
-0.07813290506601334,
-0.2779028117656708,
-0.48388954997062683,
-0.11233996599912643,
0.1949889212846756,
-0.14757737517356873,
0.2691461443901062,
0.24066925048828125,
-0.26615577936172485,
0.28061679005622864,
-0.08451014012098312,
-0.5820128917694092,
-0.11155817657709122,
0.07738548517227173,
0.14762982726097107,
0.040331851691007614,
-0.1895342767238617,
0.04332617297768593,
0.24591052532196045,
0.041901782155036926,
-0.30364975333213806,
0.02131734788417816,
0.24084460735321045,
0.2564200460910797,
-0.21953509747982025,
-0.11846838146448135,
-0.07943742722272873,
-0.08240624517202377,
0.07610095292329788,
-0.20718300342559814,
-0.6648668646812439,
-0.31384456157684326,
-0.26154497265815735,
0.22304809093475342,
-0.03236779198050499,
-0.09022259712219238,
-0.08567874878644943,
-0.005655377171933651,
-0.0009374134242534637,
0.023170970380306244,
0.24617108702659607,
0.016670599579811096,
-0.1541399210691452,
-0.13522429764270782,
-0.7007263898849487,
-0.35488271713256836,
0.24980632960796356,
-0.13182248175144196,
-0.46213433146476746,
0.16044992208480835,
0.07448714226484299,
0.06554453819990158,
0.08227183669805527,
0.38527458906173706,
0.028805334120988846,
-0.10565891116857529,
0.10263220965862274,
0.2561386823654175,
-0.23777076601982117,
0.14406847953796387,
-0.04807312414050102,
0.18993979692459106,
-0.12150035798549652,
-0.011137636378407478,
0.12129552662372589,
-0.32225239276885986,
0.3431434631347656,
0.11374834924936295,
0.03465647995471954,
0.13655318319797516,
-0.20193517208099365,
0.1111452728509903,
-0.20676976442337036,
0.5875925421714783,
0.05399034544825554,
0.1794099062681198,
0.14315181970596313,
0.17925602197647095,
-0.17603589594364166,
0.15736350417137146,
-0.24108514189720154,
-0.24450911581516266,
-0.2892548739910126,
0.06983143091201782,
-0.2390056848526001,
-0.11534640192985535,
-0.061810098588466644,
-0.25754791498184204,
-0.08985988050699234,
0.10622377693653107,
0.06461486220359802,
-0.04251265525817871,
0.18206949532032013,
-0.10514814406633377,
0.14277660846710205,
0.0718972310423851,
-0.1721661239862442,
-0.22538946568965912,
-0.2511170208454132,
-0.1698784977197647,
-0.09332936257123947,
0.3640250265598297,
0.27833491563796997,
0.22005924582481384,
-0.268833190202713,
-0.12689954042434692,
0.43515121936798096,
-0.5085306167602539,
0.012208936735987663,
0.2115214467048645,
0.027188636362552643,
-0.11931286007165909,
0.10288286209106445,
-0.12877464294433594,
-0.4710635244846344,
0.102034792304039,
-0.09780077636241913,
0.04650462046265602,
-0.018176471814513206,
-0.2232404500246048,
-0.16551606357097626,
-0.5149333477020264,
-0.016365911811590195,
0.3023715317249298,
0.15327240526676178,
-0.07267377525568008,
-0.03837054222822189,
-0.3819713592529297,
0.1565912663936615,
-0.04429936036467552,
0.027356965467333794,
0.4160860776901245,
0.8438924551010132,
0.5213232040405273,
-0.08739478886127472,
-0.36665666103363037,
0.25488796830177307,
0.2190488576889038,
0.08219539374113083,
0.061598096042871475,
-0.43361663818359375,
-0.11646851897239685,
-0.190964013338089,
0.42145204544067383,
0.05273303762078285,
-0.1817915290594101,
-0.049355484545230865,
-0.008457161486148834,
0.2206203043460846,
0.2580861747264862,
-0.3192431330680847,
0.21478049457073212,
-0.034165918827056885,
0.3442050516605377,
-0.45349425077438354,
0.16508474946022034,
-0.27492305636405945,
-0.09541935473680496,
-0.1468304693698883,
0.3459371328353882,
-0.0019024014472961426,
-0.062054332345724106,
0.07658826559782028,
0.28941643238067627,
0.059569839388132095,
-0.261538565158844,
0.29326745867729187,
-0.06171627342700958,
0.074986033141613,
-0.2080416977405548,
0.15047192573547363,
-0.05341845378279686,
-0.0314478725194931,
0.39637649059295654,
0.05430876463651657,
0.01092122495174408,
-0.026062924414873123,
0.135711669921875,
0.2305479794740677,
0.24022826552391052,
0.2736193835735321,
0.06629279255867004,
0.09416612982749939,
-0.2988327443599701,
0.3442799746990204,
0.035348452627658844,
0.30083340406417847,
-0.18414264917373657,
0.11901594698429108,
-0.06376264244318008,
0.1355282962322235,
-0.00060235895216465,
0.043398719280958176,
0.21183431148529053,
-0.09629588574171066,
0.24987134337425232,
0.03975513577461243,
-0.3664266765117645,
0.5468242764472961,
0.08316550403833389,
-0.2761651575565338,
0.18397362530231476,
-0.05541832000017166,
-0.04882749170064926,
0.270050972700119,
0.00765179842710495,
0.09888879954814911,
-0.10480194538831711,
-0.05991896241903305,
-0.08629773557186127,
-0.21696648001670837,
-0.4104289710521698,
-0.09999030083417892,
0.20723161101341248,
-0.36126846075057983,
-0.018649673089385033,
-0.03936191275715828,
0.0769585594534874,
-0.12090618908405304,
-0.366556316614151,
-0.4147289991378784,
-0.16035908460617065,
0.26631098985671997,
0.04463046416640282,
0.09944859147071838,
0.20247893035411835,
-0.0282274316996336,
0.035003259778022766,
0.07854168862104416,
-0.12829335033893585,
-0.24492835998535156,
-0.07394997030496597,
0.0042513832449913025,
-0.0038532763719558716,
-0.144931361079216,
0.008759886026382446,
0.33553197979927063,
-0.18962761759757996,
-0.1491672843694687,
-0.38149023056030273,
-0.39651936292648315,
0.2551423907279968,
-0.42972469329833984,
0.441501647233963,
0.3835310935974121,
0.07211483269929886,
-0.09866240620613098,
0.08968687802553177,
0.27080032229423523,
-0.378528356552124,
-0.3092988431453705,
-0.05528062582015991,
0.0339287631213665,
-0.2750464975833893,
-0.19425849616527557,
-0.20932981371879578,
-0.3411788046360016,
-0.09500777721405029,
0.35611748695373535,
-0.017916034907102585,
-0.08848458528518677,
0.19341826438903809,
0.3617050349712372,
0.1097223088145256,
-0.09509836882352829,
0.06941437721252441,
-0.30111631751060486,
-0.3425505459308624,
0.08252624422311783,
-0.26468443870544434,
-0.2384742647409439,
0.333169162273407,
0.15141142904758453,
0.44452565908432007,
0.07198666781187057,
-0.37102144956588745,
-0.2489832639694214,
-0.22364339232444763,
0.4790894389152527,
-0.12390977144241333,
0.6306267380714417,
0.18990108370780945,
0.008816797286272049,
0.042411088943481445,
-0.1913038194179535,
0.10983747243881226,
-0.13456368446350098,
-0.15927642583847046,
0.29640212655067444,
-0.13105657696723938,
0.4414907693862915,
-0.15399445593357086,
0.8269537091255188,
0.3067978024482727,
0.028553146868944168,
0.2114061713218689,
-0.21272432804107666,
0.6402560472488403,
-0.005048505961894989,
-0.26454511284828186,
0.16216149926185608,
0.3845384120941162,
0.028123345226049423,
0.07110521197319031,
0.08099249750375748,
0.38340863585472107,
-0.06176923215389252,
0.13071845471858978,
-0.3502662777900696,
0.012170586735010147,
-0.17113396525382996,
0.03331099450588226,
0.43691033124923706,
-0.1325216144323349,
0.016750983893871307,
-0.09214417636394501,
-0.0246126689016819,
0.01598281040787697,
0.4872440695762634,
0.24053779244422913,
0.11354374140501022,
-0.011384692043066025,
-0.4339253008365631,
-0.4145161807537079,
0.1889890730381012,
-0.11341774463653564,
0.3609558343887329,
-0.19973698258399963,
0.14500203728675842,
0.22089529037475586,
0.12926188111305237,
0.7559739351272583,
-0.06841491162776947,
-0.21228154003620148,
-0.07926365733146667,
-0.02764829993247986,
-0.6903051137924194,
-0.1361578404903412,
-0.15788160264492035,
0.06702356040477753,
0.4556030333042145,
0.021314989775419235,
-0.2783055007457733,
-0.1888047158718109,
0.32213881611824036,
0.026691783219575882,
0.08814893662929535,
-0.36716482043266296,
-0.45451611280441284,
-0.42099305987358093,
-0.326537162065506,
-0.0843285396695137,
0.09370335936546326,
-0.036388497799634933,
-0.1579378843307495,
0.2681916356086731,
-0.057695552706718445,
0.10779222100973129,
0.10957106202840805,
0.09963274002075195,
0.03580266237258911,
-0.24229644238948822,
0.209824338555336,
0.13467076420783997,
-0.024849601089954376,
0.1933077871799469,
0.5703616142272949,
-0.09885440766811371,
-0.6263927221298218,
-0.10727385431528091,
0.10948936641216278,
0.3423619270324707,
0.20462273061275482,
-0.18045727908611298,
0.03366567939519882,
0.15687215328216553,
0.2679294943809509,
-0.07990752905607224,
-0.09836242347955704,
0.37391066551208496,
0.21747872233390808,
-0.09900668263435364,
-0.09266138821840286,
0.23813238739967346,
0.3819631338119507,
0.1373058259487152,
-0.10196606814861298,
0.3287506699562073,
-0.0422450453042984,
0.23446369171142578,
-0.10598314553499222,
0.7789865732192993,
-0.08670249581336975,
0.15908190608024597,
0.6274837255477905,
-0.07650422304868698,
0.8931115865707397,
-0.3930594325065613,
0.07220316678285599,
-0.23303569853305817,
0.07848966866731644,
0.02084885723888874,
-0.13310323655605316,
0.4661637842655182,
-0.028378836810588837,
-0.17052215337753296,
0.2575984597206116,
0.33623528480529785,
-0.12261456251144409,
0.16748234629631042,
0.06264281272888184,
-0.127091184258461,
-0.10525339841842651,
-0.3380540609359741,
0.1101871132850647,
0.048546575009822845,
0.33557021617889404,
-0.1552785336971283,
0.21168576180934906,
-0.3033246397972107,
-0.1789359450340271,
-0.3892087936401367,
-0.0364009253680706,
0.04439552128314972,
0.35371941328048706,
0.43385088443756104,
-0.04438556730747223,
0.2167692482471466,
-0.21524229645729065,
0.6817353963851929,
0.1902536153793335,
-0.32603010535240173,
0.3821088671684265,
-0.2835859954357147,
-0.232562854886055,
0.08738099038600922,
0.037180475890636444,
0.08135956525802612,
-0.1498854160308838,
-0.41122081875801086,
0.06436051428318024,
-0.11442999541759491,
-0.13162502646446228,
-0.2042655199766159,
-0.0707615464925766,
-0.25709861516952515,
-0.18155212700366974,
-0.31022465229034424,
-0.052833348512649536,
0.2538765072822571,
-0.013730410486459732,
0.005024095997214317,
0.26532381772994995,
-0.24928897619247437,
0.24173301458358765,
-0.27859777212142944,
-0.04180866852402687,
-0.22038652002811432,
0.1574951559305191,
0.11258585751056671,
-0.3182969093322754,
0.06299670785665512,
0.049942780286073685,
-0.16366927325725555,
-0.039562076330184937,
-0.36385616660118103,
-0.1107880175113678,
-0.26697438955307007,
-0.08406870812177658,
0.34267541766166687,
-0.20995350182056427,
-0.03030303865671158,
0.018671460449695587,
0.1352366805076599,
-0.3024705946445465,
0.021545488387346268,
-0.3745928108692169,
-0.01515745185315609,
0.10551344603300095,
-0.10559377074241638,
0.15610234439373016,
0.27247267961502075,
0.28675416111946106,
-0.011406430043280125,
-0.10350121557712555,
-0.14044427871704102,
0.05882208049297333,
0.04973112791776657,
-0.07307184487581253,
0.26192760467529297,
-0.028207920491695404,
0.23384670913219452,
-0.2521377205848694,
0.07643866539001465,
-0.1887470930814743,
-0.1489500105381012,
-0.038876719772815704,
0.044918011873960495,
0.17105263471603394,
0.08942674100399017,
0.006613976787775755,
0.004243907518684864,
-0.0406661182641983,
-0.2779262959957123,
-0.08153407275676727,
0.19865545630455017,
0.17878082394599915,
-0.232716903090477,
0.20870542526245117,
-0.4240727722644806,
-0.07514900714159012,
0.030208170413970947,
0.15743142366409302,
0.09575092792510986,
0.3788108229637146,
0.20758488774299622,
0.20722325146198273,
-0.12403715401887894,
0.12776926159858704,
-0.11835029721260071,
-0.0022444650530815125,
0.12054254859685898,
0.17746275663375854,
0.15495827794075012,
-0.28927475214004517,
-0.12217287719249725,
-0.14259284734725952,
0.3925548791885376,
0.3052445948123932,
-0.11551490426063538,
0.1737232655286789,
0.4368038475513458,
0.09982512146234512,
-0.3585013449192047,
0.03401557728648186,
0.43737876415252686,
0.028970487415790558,
-0.017687950283288956,
0.29949742555618286,
0.21533069014549255,
-0.010513171553611755,
0.25997447967529297,
0.2954029142856598,
0.25357580184936523,
0.18911047279834747,
0.1018955409526825,
-0.11949604749679565,
0.17338238656520844,
0.073744997382164,
-0.03076072968542576,
0.10635699331760406,
0.11974816769361496,
0.5863202810287476,
-0.1923641562461853,
0.16030405461788177,
-0.13879474997520447,
0.1327587366104126,
0.15392355620861053,
-0.23219352960586548,
0.129373237490654,
-0.23086634278297424,
0.1097538024187088,
-0.06122671812772751,
-0.18601515889167786,
0.28695979714393616,
-0.24518002569675446,
-0.2856753170490265,
-0.2843364477157593,
0.32530197501182556,
-0.13507840037345886,
-0.07879598438739777,
0.29509684443473816,
0.08361298590898514,
-0.023171693086624146,
-0.03775233402848244,
0.2906120717525482,
-0.4265971779823303,
0.1664597988128662,
0.3014778792858124,
-0.09525081515312195,
-0.4780466556549072,
-0.059268295764923096,
0.45195692777633667,
0.07460516691207886,
0.09841650724411011,
0.25710728764533997,
-0.01594547927379608,
-0.39975684881210327,
-0.1361054927110672,
0.3688996434211731,
0.7117064595222473,
0.1954544633626938,
0.10449734330177307,
0.15158692002296448,
-0.20346486568450928,
0.14907492697238922,
-0.08968234807252884,
0.12616392970085144,
-0.11061234772205353,
0.32284310460090637,
0.02420315518975258,
0.09705393016338348,
-0.020511042326688766,
-0.3307764530181885,
-0.006104175001382828,
0.21469877660274506,
-0.27820372581481934,
0.1584499329328537,
-0.23802649974822998,
-0.08548597246408463,
-0.08624739199876785,
0.04798455908894539,
-0.6899208426475525,
0.14938944578170776,
0.24616070091724396,
0.12704786658287048,
-0.17311280965805054,
-0.32183441519737244,
-0.011932951398193836,
-0.10006694495677948,
0.17471808195114136,
0.6672796607017517,
0.3155691921710968,
-0.24675321578979492,
-0.1719846874475479,
-0.3748021721839905,
0.12807215750217438,
-0.24150821566581726,
-0.286724716424942,
0.07837443053722382,
0.03264810889959335,
-0.06080508977174759,
0.13589444756507874,
0.32292503118515015,
-0.07123926281929016,
-0.0536537691950798,
0.044173479080200195,
-0.09277461469173431,
-0.15435121953487396,
-0.163870170712471,
-0.2126150131225586,
0.21310067176818848,
0.07460293173789978,
-0.004010837525129318,
-0.15278087556362152,
-0.14404791593551636,
-0.1683674305677414,
0.18016444146633148,
-0.040971774607896805,
-0.3412228524684906,
0.5376930236816406,
0.21971407532691956,
0.27435994148254395,
-0.005446000024676323,
-0.3348967134952545,
-0.2708342969417572,
-0.2661760449409485,
-0.11135648190975189,
0.3895547688007355,
-0.10459977388381958,
0.0746268630027771,
-0.36368227005004883,
-0.3409644067287445,
-0.33718612790107727,
0.49854016304016113,
0.2556685209274292,
-0.4602465033531189,
0.01960820145905018,
0.32155731320381165,
-0.32603394985198975,
0.42325615882873535,
0.17070651054382324,
0.25099900364875793,
-0.11472083628177643,
0.5524252653121948,
-0.21265053749084473,
-0.1802525818347931,
0.3853517770767212,
-0.1864650696516037,
-0.2123773843050003,
-0.10889989882707596,
0.26617681980133057,
0.20092853903770447,
-0.18193556368350983,
-0.8109849095344543,
0.03785873204469681,
0.1709185391664505,
0.2873198986053467,
-0.12085075676441193,
0.10789747536182404,
-0.018306154757738113,
-0.0817394107580185,
-0.00005838274955749512,
0.49480947852134705,
-0.19482362270355225,
-0.03301973640918732,
0.4954162538051605,
-0.09783121943473816
] |
https://github.com/huggingface/datasets/issues/786 | feat(dataset): multiprocessing _generate_examples | I agree that would be cool :)
Right now the only distributed dataset builder is based on Apache Beam so you can use distributed processing frameworks like Dataflow, Spark, Flink etc. to build your dataset but it's not really well suited for single-worker parallel processing afaik | forking this out of #741, this issue is only regarding multiprocessing
I'd love if there was a dataset configuration parameter `workers`, where when it is `1` it behaves as it does right now, and when its `>1` maybe `_generate_examples` can also get the `pool` and return an iterable using the pool.
In my use case, I would instead of:
```python
for datum in data:
yield self.load_datum(datum)
```
do:
```python
return pool.map(self.load_datum, data)
```
As the dataset in question, as an example, has **only** 7000 rows, and takes 10 seconds to load each row on average, it takes almost 20 hours to load the entire dataset.
If this was a larger dataset (and many such datasets exist), it would take multiple days to complete.
Using multiprocessing, for example, 40 cores, could speed it up dramatically. For this dataset, hopefully to fully load in under an hour. | 46 | feat(dataset): multiprocessing _generate_examples
forking this out of #741, this issue is only regarding multiprocessing
I'd love if there was a dataset configuration parameter `workers`, where when it is `1` it behaves as it does right now, and when its `>1` maybe `_generate_examples` can also get the `pool` and return an iterable using the pool.
In my use case, I would instead of:
```python
for datum in data:
yield self.load_datum(datum)
```
do:
```python
return pool.map(self.load_datum, data)
```
As the dataset in question, as an example, has **only** 7000 rows, and takes 10 seconds to load each row on average, it takes almost 20 hours to load the entire dataset.
If this was a larger dataset (and many such datasets exist), it would take multiple days to complete.
Using multiprocessing, for example, 40 cores, could speed it up dramatically. For this dataset, hopefully to fully load in under an hour.
I agree that would be cool :)
Right now the only distributed dataset builder is based on Apache Beam so you can use distributed processing frameworks like Dataflow, Spark, Flink etc. to build your dataset but it's not really well suited for single-worker parallel processing afaik | [
-0.564568817615509,
-0.12574167549610138,
-0.11738534271717072,
-0.16663286089897156,
-0.07130590826272964,
-0.0848812460899353,
0.3084898293018341,
0.3450709879398346,
0.10161551833152771,
0.40088462829589844,
0.25867581367492676,
0.176006019115448,
0.0299798846244812,
0.12424048036336899,
0.10664823651313782,
0.09380596876144409,
0.019551381468772888,
0.13133668899536133,
-0.2605704665184021,
-0.04889420419931412,
-0.35636308789253235,
-0.021741917356848717,
-0.028543751686811447,
-0.14317645132541656,
-0.30561065673828125,
-0.16534532606601715,
-0.08609558641910553,
0.08222351968288422,
0.0034814318642020226,
-0.22135044634342194,
0.1820412129163742,
0.5444225668907166,
0.2789004147052765,
0.4126896858215332,
-0.00010320148430764675,
-0.03907513618469238,
0.296944260597229,
0.0052963122725486755,
-0.36102160811424255,
-0.1338660567998886,
-0.13567405939102173,
-0.3160058856010437,
0.020558947697281837,
-0.25970447063446045,
0.02118602767586708,
-0.18797577917575836,
0.24615871906280518,
-0.47335726022720337,
0.05967250466346741,
-0.12504984438419342,
0.23031610250473022,
0.3476170003414154,
-0.2190508097410202,
-0.20336699485778809,
-0.15402913093566895,
-0.021298125386238098,
-0.16016235947608948,
0.14142458140850067,
0.5995050668716431,
-0.3429676294326782,
-0.17964109778404236,
0.16889986395835876,
-0.026812078431248665,
0.321469783782959,
0.25887033343315125,
0.028034552931785583,
0.2928668260574341,
-0.4736997187137604,
-0.03222852945327759,
0.25869640707969666,
0.3223206102848053,
-0.06537212431430817,
-0.44116848707199097,
-0.4137697219848633,
0.1503237932920456,
-0.17807264626026154,
0.09810755401849747,
0.42713457345962524,
-0.36253756284713745,
0.17949959635734558,
-0.32710155844688416,
0.030963636934757233,
-0.0444258414208889,
-0.022891119122505188,
0.04598233103752136,
0.45821690559387207,
0.13881196081638336,
0.1611201912164688,
0.2576366066932678,
0.09652984142303467,
0.36225631833076477,
-0.13684168457984924,
0.37201544642448425,
0.09391161799430847,
-0.37850669026374817,
-0.05035099387168884,
0.10096095502376556,
-0.17616653442382812,
0.24986174702644348,
-0.021128378808498383,
0.2596454620361328,
-0.0036765150725841522,
-0.04632170870900154,
0.29760366678237915,
0.31919583678245544,
-0.32737967371940613,
-0.1877821683883667,
-0.07947773486375809,
0.244190514087677,
-0.18388783931732178,
-0.011003844439983368,
0.04017503559589386,
-0.04845154657959938,
-0.21982631087303162,
0.27788683772087097,
0.08125071227550507,
0.01877964660525322,
0.16214069724082947,
-0.15372706949710846,
-0.2023276537656784,
0.02090451866388321,
-0.0703684389591217,
0.07258566468954086,
0.08114234358072281,
-0.04977324977517128,
0.5781406760215759,
-0.1443653404712677,
0.06511806696653366,
-0.20283770561218262,
-0.19455258548259735,
-0.0828360915184021,
0.031129851937294006,
-0.22068999707698822,
0.2142319530248642,
0.3574271500110626,
0.03541587293148041,
0.09633053094148636,
0.2090110033750534,
0.2967509925365448,
-0.010973908007144928,
0.47881361842155457,
-0.1122947633266449,
0.14742372930049896,
0.15673205256462097,
0.08701010048389435,
-0.12289711833000183,
-0.1640133112668991,
-0.1195182353258133,
-0.22533592581748962,
0.14519429206848145,
-0.06995617598295212,
-0.4257088899612427,
-0.1593768149614334,
0.24951159954071045,
-0.05549097806215286,
0.10533421486616135,
-0.12630781531333923,
0.2614250183105469,
0.13108181953430176,
0.18033303320407867,
-0.09152259677648544,
-0.15755563974380493,
-0.2608852684497833,
-0.060251131653785706,
0.3258066475391388,
0.28316259384155273,
-0.1300891786813736,
0.27800750732421875,
0.04425106197595596,
0.08563558757305145,
0.11659058928489685,
0.12387590110301971,
-0.11026912182569504,
0.21282178163528442,
-0.1414511501789093,
-0.05214958265423775,
0.2380712926387787,
-0.11730143427848816,
-0.08124010264873505,
0.31363093852996826,
-0.057997774332761765,
0.038903869688510895,
0.16179397702217102,
0.13473539054393768,
0.2970615327358246,
-0.09065362811088562,
0.24213707447052002,
0.4703308343887329,
-0.37589016556739807,
0.21936234831809998,
-0.21167197823524475,
-0.17388518154621124,
-0.16884800791740417,
0.24700038135051727,
0.15680260956287384,
0.2567705512046814,
-0.07407812029123306,
-0.24900683760643005,
0.4859025776386261,
-0.2836576998233795,
0.29440543055534363,
-0.09350879490375519,
-0.08243221044540405,
0.1030862107872963,
0.13913437724113464,
-0.4160620868206024,
-0.24206912517547607,
0.37609243392944336,
0.1697993278503418,
-0.05676446110010147,
0.095912866294384,
-0.19600147008895874,
0.05447535961866379,
0.13229785859584808,
-0.08760331571102142,
0.1565963476896286,
0.11579269170761108,
0.10266689956188202,
-0.06035342812538147,
-0.4413427412509918,
-0.37515032291412354,
0.19578732550144196,
-0.058425601571798325,
-0.1846155822277069,
-0.17081397771835327,
0.136948823928833,
0.21262545883655548,
-0.24574998021125793,
0.15780046582221985,
0.08275505900382996,
-0.03188740462064743,
-0.14568538963794708,
0.05263872817158699,
0.25075650215148926,
-0.09951847046613693,
0.3289550542831421,
0.18441665172576904,
0.3626998960971832,
0.1138869896531105,
0.1689620316028595,
0.05482679605484009,
0.019790705293416977,
0.03136079013347626,
-0.08202849328517914,
-0.15652841329574585,
0.4870260953903198,
-0.3659534156322479,
0.3455130457878113,
0.17573751509189606,
0.1759544014930725,
0.43135249614715576,
0.15705768764019012,
-0.16422024369239807,
0.08361949026584625,
0.08563126623630524,
-0.00010012276470661163,
0.3367013931274414,
-0.010957462713122368,
-0.45146602392196655,
0.31994545459747314,
0.15716297924518585,
-0.18239200115203857,
0.03319624066352844,
0.04228966683149338,
0.3300045430660248,
-0.11012405157089233,
0.1448797732591629,
0.22912569344043732,
0.5229934453964233,
0.21548542380332947,
0.21878568828105927,
-0.16155923902988434,
-0.1944315880537033,
-0.06886298954486847,
0.15020719170570374,
-0.010294511914253235,
0.32090505957603455,
0.07039467245340347,
0.1357901692390442,
-0.23691581189632416,
-0.3364008367061615,
-0.38293251395225525,
0.11677498370409012,
0.03662592172622681,
-0.0017934925854206085,
0.11083223670721054,
-0.010828673839569092,
0.1982709765434265,
-0.25546860694885254,
0.21441064774990082,
-0.0470125712454319,
-0.3206000328063965,
-0.04061191529035568,
0.5437673330307007,
-0.09951730072498322,
0.1028352752327919,
-0.0570218488574028,
0.23255857825279236,
-0.1785200536251068,
0.12159382551908493,
-0.18590964376926422,
-0.09883498400449753,
-0.0075363218784332275,
0.09079515933990479,
-0.08575330674648285,
0.06735578924417496,
0.4577215313911438,
-0.003693433478474617,
-0.10432837158441544,
-0.42358654737472534,
0.13136768341064453,
0.06953932344913483,
0.03521522134542465,
0.18064670264720917,
0.21002456545829773,
0.03486470878124237,
0.15395759046077728,
-0.2294793426990509,
0.1865982860326767,
-0.267128050327301,
0.10108259320259094,
-0.1395898163318634,
-0.15016791224479675,
-0.04378058388829231,
-0.07803565263748169,
-0.0934932753443718,
-0.3203544616699219,
-0.4222767651081085,
0.1101502776145935,
-0.020285509526729584,
0.23650284111499786,
-0.21057173609733582,
0.0797266960144043,
-0.1382807493209839,
0.32850489020347595,
-0.05093023180961609,
-0.14236274361610413,
-0.6931467056274414,
0.2833702266216278,
-0.2654668092727661,
-0.15141500532627106,
-0.18692393600940704,
-0.1685640662908554,
0.07718424499034882,
0.4729090929031372,
-0.16211557388305664,
-0.057804644107818604,
-0.2334815114736557,
0.19058583676815033,
-0.16429418325424194,
0.09985355287790298,
0.23695874214172363,
0.11016833782196045,
-0.07866677641868591,
-0.19191431999206543,
-0.16307668387889862,
0.08093050867319107,
0.0563189871609211,
-0.1001625582575798,
0.17887428402900696,
0.25678133964538574,
0.04139293357729912,
0.7725029587745667,
0.21941323578357697,
0.19881021976470947,
0.24022094905376434,
0.007834484800696373,
-0.08333709836006165,
0.022149767726659775,
-0.284435898065567,
0.08309606462717056,
-0.23488464951515198,
-0.03294721990823746,
0.055926501750946045,
0.06161433830857277,
-0.338767945766449,
-0.020814061164855957,
0.01036578044295311,
-0.22486338019371033,
-0.26320943236351013,
0.17908646166324615,
-0.3586714565753937,
0.3584166169166565,
0.0024201981723308563,
0.033950433135032654,
-0.49188530445098877,
0.17249399423599243,
-0.19600710272789001,
-0.03993070125579834,
0.36791324615478516,
-0.10989324003458023,
-0.2278316468000412,
0.04423471540212631,
-0.6570861339569092,
0.07784286141395569,
0.08627073466777802,
0.304276704788208,
0.3668857216835022,
-0.017518237233161926,
0.09849047660827637,
-0.17233902215957642,
0.7410869598388672,
-0.2485455721616745,
0.10694463551044464,
0.0468890480697155,
-0.401409387588501,
-0.18666765093803406,
-0.1299877166748047,
-0.0900295227766037,
0.5101510286331177,
-0.0021257810294628143,
0.17097072303295135,
-0.27824240922927856,
-0.34816470742225647,
0.31250160932540894,
0.04525793343782425,
-0.14663492143154144,
-0.4707903265953064,
-0.2848755121231079,
-0.35560399293899536,
-0.15812182426452637,
0.14616213738918304,
0.07101994007825851,
0.2442399114370346,
-0.1179487332701683,
-0.26937249302864075,
-0.11283126473426819,
0.04515673965215683,
0.1888672411441803,
0.2391284853219986,
-0.196051687002182,
-0.07997531443834305,
0.3443271517753601,
0.31949543952941895,
-0.11298543214797974,
-0.04404307156801224,
0.2980952858924866,
-0.24025630950927734,
-0.19704821705818176,
0.22735819220542908,
-0.13428518176078796,
0.3759777545928955,
0.279330313205719,
0.0216841958463192,
-0.09374750405550003,
0.08570730686187744,
0.27030304074287415,
-0.4555909335613251,
-0.15940961241722107,
0.1810453087091446,
0.027332019060850143,
-0.26007044315338135,
-0.7640826106071472,
0.39551612734794617,
0.13336101174354553,
-0.02824552357196808,
0.5454920530319214,
-0.46787285804748535,
-0.06739084422588348,
0.2504842281341553,
0.16167527437210083,
0.6716318726539612,
-0.43814992904663086,
-0.009694434702396393,
-0.05433241277933121,
0.17368461191654205,
0.25333163142204285,
-0.4068734645843506,
0.3735172748565674,
-0.2473713606595993,
-0.4962449371814728,
0.04331434518098831,
-0.04017706587910652,
-0.0403905063867569,
0.5621019005775452,
-0.10479646921157837,
0.2637282907962799,
0.2577420473098755,
-0.09861865639686584,
-0.1023864671587944,
0.5208840370178223,
-0.40471017360687256,
-0.49029526114463806,
-0.35341402888298035,
0.1612682342529297,
0.144407719373703,
-0.15427690744400024,
-0.20182085037231445,
-0.04914213344454765,
0.33021029829978943,
0.03527428209781647,
-0.27615779638290405,
-0.0581100769340992,
0.030856508761644363,
0.14200599491596222,
0.17244377732276917,
-0.15200543403625488,
0.0007068756967782974,
-0.0017293542623519897,
-0.060059383511543274,
-0.0428902693092823,
-0.04317969083786011,
0.0672827884554863,
-0.07353576272726059,
0.3222302496433258,
-0.0456898994743824,
-0.14481884241104126,
0.14788919687271118,
-0.11736678332090378,
-0.35600700974464417,
-0.017421595752239227,
0.06590259075164795,
-0.2980068624019623,
-0.05243886262178421,
0.0876123234629631,
0.19001342356204987,
0.07767264544963837,
0.17396527528762817,
0.22074568271636963,
-0.07747586071491241,
-0.2634599506855011,
0.1773032248020172,
0.2592161297798157,
-0.15912921726703644,
0.4121062755584717,
-0.13346797227859497,
-0.17215844988822937,
-0.0717407763004303,
0.018980763852596283,
0.14351481199264526,
0.29831796884536743,
0.19755063951015472,
0.22814367711544037,
-0.1307229995727539,
-0.29153332114219666,
-0.0961620956659317,
-0.01462030503898859,
-0.2505439221858978,
0.38302358984947205,
-0.10701265931129456,
-0.21703356504440308,
0.12763766944408417,
0.03637247905135155,
0.14224058389663696,
-0.08980738371610641,
-0.1092834621667862,
-0.31869712471961975,
0.02993190847337246,
-0.05896684527397156,
-0.05723419412970543,
0.12044982612133026,
0.11068438738584518,
0.06271359324455261,
0.13374744355678558,
0.16239933669567108,
-0.42239105701446533,
-0.24373075366020203,
-0.3316541910171509,
0.2030826061964035,
-0.089718759059906,
-0.08812972158193588,
-0.30600425601005554,
0.1548282355070114,
0.1843590885400772,
0.042753346264362335,
-0.15689054131507874,
-0.27566245198249817,
-0.14216665923595428,
0.10927852243185043,
-0.20879998803138733,
-0.042071692645549774,
0.3286159634590149,
-0.11366023123264313,
-0.47733649611473083,
-0.45026910305023193,
0.0990394800901413,
-0.016869904473423958,
-0.10172726213932037,
-0.042443279176950455,
0.4718868136405945,
-0.04756684601306915,
-0.12522703409194946,
0.08596473932266235,
0.05606581270694733,
0.07058759033679962,
-0.2048032283782959,
0.4086613059043884,
0.37377670407295227,
-0.14392989873886108,
0.21861061453819275,
0.06270086020231247,
0.08578339964151382,
0.07128999382257462,
0.3711377680301666,
0.09882237017154694,
-0.021229630336165428,
0.18422235548496246,
0.4321994483470917,
0.3389216363430023,
0.07686903327703476,
0.13105295598506927,
0.07684261351823807,
0.30618640780448914,
-0.2509644031524658,
-0.24065077304840088,
0.19404932856559753,
0.05349114537239075,
0.3035956621170044,
0.36341583728790283,
0.060406800359487534,
-0.07095971703529358,
0.11781345307826996,
-0.001364927738904953,
0.14019325375556946,
-0.5134751200675964,
0.04884001612663269,
-0.07163801789283752,
0.16033737361431122,
0.030135586857795715,
0.2439596801996231,
-0.018875882029533386,
0.06726346909999847,
0.310954213142395,
0.095486119389534,
0.40057775378227234,
0.20803335309028625,
0.1054888442158699,
0.17099666595458984,
-0.3073979616165161,
0.05868738889694214,
-0.06875617802143097,
-0.194405198097229,
0.19138199090957642,
0.0423525907099247,
0.03219092637300491,
-0.581371009349823,
0.10255851596593857,
-0.3715049922466278,
0.09908285737037659,
-0.009724996984004974,
-0.1769031137228012,
-0.09221073985099792,
-0.2176009714603424,
-0.059144049882888794,
-0.05306524410843849,
-0.014271702617406845,
-0.022808216512203217,
0.6877744197845459,
-0.016342930495738983,
0.33825457096099854,
-0.3257792890071869,
0.11435969918966293,
-0.14253324270248413,
0.3084830641746521,
-0.35586440563201904,
-0.02182636968791485,
0.16390858590602875,
-0.1802687644958496,
-0.1380155086517334,
0.44356876611709595,
0.22273306548595428,
0.557306706905365,
-0.16427986323833466,
0.2105739414691925,
-0.2797248065471649,
0.004336012527346611,
-0.4294217824935913,
0.10437411814928055,
-0.0820271372795105,
0.07299984991550446,
0.3381594121456146,
0.19283360242843628,
-0.14128535985946655,
-0.15356884896755219,
0.18155437707901,
-0.16772085428237915,
-0.4397653043270111,
0.23384544253349304,
0.23897972702980042,
-0.18498404324054718,
0.03351259604096413,
0.21206343173980713,
-0.1895168125629425,
-0.03477216511964798,
0.4634000062942505,
-0.3911525309085846,
0.030899398028850555,
-0.07860080897808075,
0.1328497678041458,
-0.13139484822750092,
0.6261086463928223,
0.033356718719005585,
0.19732940196990967,
-0.23472900688648224,
-0.06864291429519653,
-0.46030861139297485,
-0.06859303265810013,
-0.38933199644088745,
0.07623361796140671,
0.19152133166790009,
0.4422731101512909,
0.009624458849430084,
0.254731148481369,
0.030656978487968445,
0.09152735024690628,
-0.06733221560716629,
0.4843100905418396,
-0.20872490108013153,
-0.34801462292671204,
-0.040616877377033234,
0.10163635015487671,
0.03758128732442856,
-0.5921881794929504,
0.2953975796699524,
-0.14193116128444672,
0.17976897954940796,
-0.1234486848115921,
-0.039219245314598083,
0.47719573974609375,
-0.1351541429758072,
0.23897263407707214,
0.17789776623249054,
0.13986244797706604,
-0.23257997632026672,
-0.02927309088408947,
-0.28650227189064026,
0.02022375725209713,
-0.2869168817996979,
0.1610235869884491,
0.04410656541585922,
0.06869645416736603,
-0.211084246635437,
0.1074424535036087,
-0.31952163577079773,
0.03396818786859512,
-0.10483846068382263,
0.15965542197227478,
-0.10114537924528122,
0.1625242829322815,
-0.17859651148319244,
0.1942610740661621,
-0.08938529342412949,
0.3384363055229187,
-0.007113710045814514,
0.009689323604106903,
-0.19547654688358307,
-0.2716714143753052,
0.15823839604854584,
-0.4215097725391388,
-0.5883424282073975,
-0.5599814653396606,
0.22548846900463104,
-0.035987257957458496,
0.15333689749240875,
-0.19419512152671814,
-0.03576895594596863,
0.2993844151496887,
-0.02293887361884117,
-0.1977112889289856,
0.23846788704395294,
0.11192493140697479,
-0.23391422629356384,
-0.17139331996440887,
0.12607328593730927,
-0.022645238786935806,
-0.4274657070636749,
0.015132486820220947,
-0.3583347797393799
] |
https://github.com/huggingface/datasets/issues/786 | feat(dataset): multiprocessing _generate_examples | `_generate_examples` can now be run in parallel thanks to https://github.com/huggingface/datasets/pull/5107. You can find more info [here](https://huggingface.co/docs/datasets/dataset_script#sharding). | forking this out of #741, this issue is only regarding multiprocessing
I'd love if there was a dataset configuration parameter `workers`, where when it is `1` it behaves as it does right now, and when its `>1` maybe `_generate_examples` can also get the `pool` and return an iterable using the pool.
In my use case, I would instead of:
```python
for datum in data:
yield self.load_datum(datum)
```
do:
```python
return pool.map(self.load_datum, data)
```
As the dataset in question, as an example, has **only** 7000 rows, and takes 10 seconds to load each row on average, it takes almost 20 hours to load the entire dataset.
If this was a larger dataset (and many such datasets exist), it would take multiple days to complete.
Using multiprocessing, for example, 40 cores, could speed it up dramatically. For this dataset, hopefully to fully load in under an hour. | 16 | feat(dataset): multiprocessing _generate_examples
forking this out of #741, this issue is only regarding multiprocessing
I'd love if there was a dataset configuration parameter `workers`, where when it is `1` it behaves as it does right now, and when its `>1` maybe `_generate_examples` can also get the `pool` and return an iterable using the pool.
In my use case, I would instead of:
```python
for datum in data:
yield self.load_datum(datum)
```
do:
```python
return pool.map(self.load_datum, data)
```
As the dataset in question, as an example, has **only** 7000 rows, and takes 10 seconds to load each row on average, it takes almost 20 hours to load the entire dataset.
If this was a larger dataset (and many such datasets exist), it would take multiple days to complete.
Using multiprocessing, for example, 40 cores, could speed it up dramatically. For this dataset, hopefully to fully load in under an hour.
`_generate_examples` can now be run in parallel thanks to https://github.com/huggingface/datasets/pull/5107. You can find more info [here](https://huggingface.co/docs/datasets/dataset_script#sharding). | [
-0.428702712059021,
-0.33601710200309753,
-0.09072424471378326,
-0.15744668245315552,
-0.048498935997486115,
-0.09850704669952393,
0.2867682874202728,
0.2890758216381073,
0.0880843847990036,
0.3356677293777466,
0.13101571798324585,
0.21615689992904663,
0.038699984550476074,
0.2627372145652771,
0.14194372296333313,
0.10435208678245544,
0.01593519002199173,
0.127242773771286,
-0.33962130546569824,
0.03111466020345688,
-0.33400022983551025,
0.1387334167957306,
-0.04267537593841553,
-0.11487318575382233,
-0.3268625736236572,
-0.05731864273548126,
-0.04512539505958557,
0.1871197521686554,
0.018256980925798416,
-0.24371099472045898,
0.2584414780139923,
0.5171844959259033,
0.20237956941127777,
0.4111036956310272,
-0.00010550453589530662,
-0.05142054334282875,
0.28082597255706787,
0.04802590608596802,
-0.35196593403816223,
-0.20783038437366486,
-0.05732499435544014,
-0.2689838409423828,
0.08704524487257004,
-0.22871330380439758,
-0.03787625953555107,
-0.02268914133310318,
0.251912385225296,
-0.3319982886314392,
0.2106436789035797,
-0.187383234500885,
0.2082616686820984,
0.5149447917938232,
-0.21953177452087402,
-0.19421155750751495,
-0.01759672909975052,
0.0835217535495758,
-0.12248252332210541,
0.2390100359916687,
0.5323182344436646,
-0.2804739475250244,
-0.12601560354232788,
0.32315900921821594,
0.04906851053237915,
0.2794996500015259,
0.21274816989898682,
0.1495048999786377,
0.11770519614219666,
-0.39966505765914917,
0.05668334662914276,
0.29008468985557556,
0.18150076270103455,
-0.1845119595527649,
-0.4767056107521057,
-0.5223965048789978,
0.146325021982193,
-0.42209935188293457,
0.1485811173915863,
0.30018627643585205,
-0.25738245248794556,
0.155599445104599,
-0.3349399268627167,
0.1615753024816513,
0.0013206377625465393,
-0.07570751011371613,
0.07201001048088074,
0.233937606215477,
-0.05680931359529495,
0.08501478284597397,
0.4289311170578003,
0.01575770415365696,
0.07476380467414856,
-0.03309379145503044,
0.29324448108673096,
0.14227540791034698,
-0.4482281804084778,
-0.04711439087986946,
0.18425863981246948,
-0.06048489362001419,
0.32178953289985657,
0.00496826134622097,
0.2769351303577423,
0.12385909259319305,
-0.10720067471265793,
0.3482678532600403,
0.30447614192962646,
-0.2575123906135559,
-0.07761117070913315,
-0.1546839475631714,
0.30258774757385254,
-0.034948889166116714,
0.005545824766159058,
0.03716640546917915,
-0.07830685377120972,
-0.2370554506778717,
0.2590431272983551,
-0.00032915733754634857,
0.14731018245220184,
0.04291418567299843,
-0.1521969735622406,
-0.10093354433774948,
0.03490840643644333,
-0.030539454892277718,
0.09214802831411362,
0.22879400849342346,
0.0009237327612936497,
0.34984326362609863,
-0.12997810542583466,
0.060041509568691254,
-0.2546651363372803,
-0.11633192002773285,
-0.14942567050457,
0.006604187190532684,
-0.22782862186431885,
0.2116549164056778,
0.3389212191104889,
-0.12163516879081726,
0.1613749861717224,
0.22155731916427612,
0.36129581928253174,
-0.009540658444166183,
0.3461851477622986,
-0.13275344669818878,
0.1377284824848175,
0.22114749252796173,
0.0457114614546299,
-0.08854500949382782,
-0.1301962286233902,
-0.09630825370550156,
-0.23571008443832397,
0.038900069892406464,
0.042859941720962524,
-0.3760205805301666,
-0.09629364311695099,
0.22331485152244568,
-0.1150006502866745,
0.12387791275978088,
-0.19190096855163574,
0.3437488079071045,
0.17694351077079773,
0.2908082902431488,
-0.08561938256025314,
-0.15322981774806976,
-0.39285796880722046,
-0.0534968338906765,
0.3647018074989319,
0.3164934515953064,
-0.026128726080060005,
0.13744676113128662,
0.18906377255916595,
-0.03172170743346214,
0.057096101343631744,
0.22370639443397522,
-0.15791980922222137,
0.11302509903907776,
-0.1673901081085205,
0.09804318845272064,
0.17225752770900726,
0.021786745637655258,
-0.1280856728553772,
0.21204018592834473,
-0.12263567745685577,
0.1123393103480339,
0.2102692872285843,
0.0646868348121643,
0.2185559719800949,
-0.013582269661128521,
0.29288041591644287,
0.3614293336868286,
-0.2739194631576538,
0.21283838152885437,
-0.15324589610099792,
-0.11332358419895172,
-0.1993119865655899,
0.21764124929904938,
0.010625332593917847,
0.2038687765598297,
-0.15426117181777954,
-0.31790024042129517,
0.5088921785354614,
-0.31980323791503906,
0.21880611777305603,
-0.0699840858578682,
0.006035938858985901,
0.1708369106054306,
0.14534229040145874,
-0.3708014190196991,
-0.33873313665390015,
0.3467171788215637,
0.13383758068084717,
-0.06638076901435852,
0.013432569801807404,
-0.2906492352485657,
0.04093269631266594,
0.20937219262123108,
-0.11146789789199829,
0.11614082753658295,
0.09873054921627045,
0.14766249060630798,
0.057900529354810715,
-0.3858163356781006,
-0.4191184341907501,
0.15365809202194214,
-0.21508276462554932,
-0.09177911281585693,
-0.41145139932632446,
0.07313010841608047,
0.32997414469718933,
-0.2531244456768036,
0.07834640145301819,
0.10306262969970703,
-0.03266148269176483,
-0.19307926297187805,
0.12862156331539154,
0.2153508961200714,
-0.069757379591465,
0.37499135732650757,
0.06584817916154861,
0.41981592774391174,
0.09616218507289886,
0.24840915203094482,
-0.026227733120322227,
-0.08571751415729523,
0.055874865502119064,
-0.07243804633617401,
-0.2224648892879486,
0.6158754229545593,
-0.3443256914615631,
0.31980451941490173,
0.1767035871744156,
0.014023782685399055,
0.3926651179790497,
0.19380918145179749,
-0.27894553542137146,
0.08674183487892151,
0.2312016636133194,
-0.021158747375011444,
0.2791895270347595,
-0.036621399223804474,
-0.5830321907997131,
0.3288712501525879,
0.24201799929141998,
-0.262358695268631,
0.00891856849193573,
0.1507623940706253,
0.2987942695617676,
-0.10047999769449234,
0.11448352038860321,
0.10912437736988068,
0.5047864317893982,
0.20570437610149384,
0.25810423493385315,
-0.11427532881498337,
-0.20246624946594238,
-0.13447827100753784,
0.17423583567142487,
0.010926984250545502,
0.16637812554836273,
-0.007832452654838562,
0.16609510779380798,
-0.26469916105270386,
-0.4954109191894531,
-0.23053264617919922,
0.03735458105802536,
0.07685913890600204,
-0.1269177943468094,
0.1104397103190422,
0.03307761996984482,
0.19671666622161865,
-0.2523488402366638,
0.1297125518321991,
0.02557537332177162,
-0.33114612102508545,
-0.09423097968101501,
0.6661767959594727,
-0.15803435444831848,
0.12125160545110703,
-0.0029534902423620224,
0.1688787043094635,
-0.1699044108390808,
0.1361142098903656,
-0.2509256601333618,
-0.04424269124865532,
0.05286382883787155,
0.05425618216395378,
-0.0620795413851738,
-0.054288145154714584,
0.45492684841156006,
-0.14641807973384857,
-0.17708638310432434,
-0.4002041816711426,
-0.04927875101566315,
0.1349593997001648,
-0.01976623758673668,
0.18482725322246552,
0.2845373749732971,
0.09629400074481964,
0.047718651592731476,
-0.24325700104236603,
0.276089608669281,
-0.26033449172973633,
-0.022815683856606483,
-0.037067241966724396,
-0.12013642489910126,
0.039757534861564636,
-0.2125757485628128,
-0.05693136900663376,
-0.17486776411533356,
-0.36730191111564636,
0.4110252857208252,
-0.08577096462249756,
0.19903872907161713,
-0.003945242613554001,
0.04358411580324173,
0.08451417833566666,
0.07964914292097092,
0.08111798018217087,
-0.23441128432750702,
-0.6534571051597595,
0.24845005571842194,
-0.2432999461889267,
-0.22120921313762665,
-0.1992187798023224,
-0.17568019032478333,
0.013521578162908554,
0.3523552417755127,
-0.1467214822769165,
-0.2955811619758606,
-0.3700956702232361,
0.19738399982452393,
-0.11467650532722473,
0.12073611468076706,
0.21361029148101807,
0.07649366557598114,
-0.12914979457855225,
-0.13625118136405945,
-0.2780618369579315,
0.15684625506401062,
0.04786035791039467,
-0.2500782012939453,
0.14515362679958344,
0.40136516094207764,
0.058811161667108536,
0.6614834666252136,
0.3009486198425293,
0.12923690676689148,
0.2319461554288864,
-0.06057784706354141,
0.02455529198050499,
-0.05318344384431839,
-0.30072373151779175,
0.0010801854077726603,
-0.193934828042984,
-0.050421811640262604,
0.12556715309619904,
0.09083063900470734,
-0.18953245878219604,
0.006973322480916977,
-0.03919713944196701,
-0.25816506147384644,
-0.3600265085697174,
0.2273833304643631,
-0.059819191694259644,
0.20114850997924805,
0.019814278930425644,
0.13831445574760437,
-0.3870377242565155,
0.23032507300376892,
-0.185181125998497,
0.10194338858127594,
0.3468298316001892,
-0.11190376430749893,
-0.3217017352581024,
-0.03478454425930977,
-0.8643885254859924,
0.08415933698415756,
0.004433881491422653,
0.21953366696834564,
0.3073218762874603,
-0.149033784866333,
0.10994990170001984,
-0.2347700148820877,
0.8604755401611328,
-0.006303595378994942,
0.1067141443490982,
0.012279268354177475,
-0.597078800201416,
-0.17002815008163452,
-0.062140271067619324,
-0.20111356675624847,
0.5428285002708435,
0.08284962177276611,
0.32488054037094116,
-0.41908547282218933,
-0.32863473892211914,
0.34307345747947693,
0.06238073110580444,
-0.04375673457980156,
-0.36648324131965637,
-0.3873804807662964,
-0.4703863263130188,
-0.21664372086524963,
0.2160203903913498,
0.09391465038061142,
0.20533215999603271,
-0.1409715861082077,
-0.2116466611623764,
-0.05219893902540207,
-0.09161971509456635,
0.24315141141414642,
0.33363667130470276,
-0.07410308718681335,
0.02321760728955269,
0.3566388487815857,
0.3993912935256958,
-0.1600836217403412,
-0.09338516741991043,
0.3395850360393524,
-0.21308071911334991,
-0.2615966796875,
0.16782113909721375,
-0.03546726331114769,
0.33542296290397644,
0.4148058593273163,
-0.012097053229808807,
0.06615626811981201,
0.10861469805240631,
0.3141331374645233,
-0.4574790298938751,
-0.08076683431863785,
0.2661871314048767,
0.1187765821814537,
-0.19843600690364838,
-0.6743354201316833,
0.4216911792755127,
0.03868667781352997,
-0.024880215525627136,
0.5281715393066406,
-0.24449215829372406,
-0.0816931203007698,
0.12375311553478241,
0.013740584254264832,
0.7692452073097229,
-0.44107794761657715,
0.09153596311807632,
0.06386682391166687,
0.1089029610157013,
0.3445693552494049,
-0.14253674447536469,
0.2962881922721863,
-0.26223745942115784,
-0.4407573342323303,
0.1263652741909027,
-0.03134522587060928,
-0.07097553461790085,
0.3927679657936096,
-0.1005384549498558,
0.2833665907382965,
0.1690797060728073,
0.06318863481283188,
-0.1565050184726715,
0.41511261463165283,
-0.42849355936050415,
-0.5289092063903809,
-0.5801829695701599,
0.1337340921163559,
0.19721490144729614,
-0.07511487603187561,
-0.19096967577934265,
-0.0240522138774395,
0.3964022397994995,
-0.048059284687042236,
-0.19709599018096924,
-0.006476776674389839,
-0.09811960905790329,
0.04514125734567642,
0.19248360395431519,
-0.23245546221733093,
-0.029101036489009857,
0.03636862337589264,
0.04082386940717697,
-0.07155409455299377,
-0.04922683537006378,
0.02536606788635254,
-0.11069176346063614,
0.37216615676879883,
-0.07772336900234222,
-0.14439436793327332,
0.10295877605676651,
-0.07956373691558838,
-0.31667637825012207,
-0.05997466295957565,
0.16759712994098663,
-0.21504218876361847,
0.05807666480541229,
0.13109196722507477,
-0.00014400482177734375,
-0.0712132528424263,
0.07857102155685425,
0.1332530826330185,
-0.07586145401000977,
-0.32411065697669983,
0.14947509765625,
0.34038543701171875,
-0.1765681356191635,
0.3021901547908783,
-0.08756043016910553,
-0.21260543167591095,
-0.10439850389957428,
0.143636092543602,
0.007482750341296196,
0.3433580696582794,
0.29413750767707825,
0.3514482080936432,
-0.11329679191112518,
-0.23437407612800598,
-0.17236942052841187,
0.10810250043869019,
-0.3629314601421356,
0.4162689745426178,
0.05250503495335579,
-0.18634437024593353,
0.04353182762861252,
0.0868421345949173,
0.026334695518016815,
-0.18566593527793884,
-0.09624908864498138,
-0.2872543931007385,
-0.07895487546920776,
0.06704328954219818,
0.051201920956373215,
0.22181881964206696,
0.11240289360284805,
0.13142390549182892,
0.05037775635719299,
0.11465903371572495,
-0.42400285601615906,
-0.2387879639863968,
-0.36102381348609924,
0.1335100680589676,
0.022713642567396164,
-0.13831695914268494,
0.019015619531273842,
0.1514616310596466,
0.18449285626411438,
0.18232236802577972,
-0.2455786168575287,
-0.287041038274765,
-0.18855755031108856,
0.1217520609498024,
-0.2797781229019165,
-0.056660473346710205,
0.3066895306110382,
0.05252715200185776,
-0.4306190013885498,
-0.515533447265625,
0.2715974748134613,
0.02861088514328003,
-0.008826829493045807,
-0.01556104514747858,
0.4063873291015625,
0.05742451176047325,
0.011259898543357849,
-0.02933693677186966,
0.036262430250644684,
-0.014800988137722015,
-0.2258157879114151,
0.31742438673973083,
0.13045434653759003,
-0.09829264134168625,
0.31794285774230957,
0.1303626000881195,
0.2447943091392517,
-0.10334441810846329,
0.24039611220359802,
0.05355015769600868,
-0.14132575690746307,
0.14115512371063232,
0.5675787925720215,
0.38134709000587463,
0.08171721547842026,
0.12730258703231812,
0.036410026252269745,
0.29155710339546204,
-0.24833180010318756,
-0.16955596208572388,
0.16054147481918335,
0.029180992394685745,
0.33852440118789673,
0.3722633123397827,
-0.017503321170806885,
0.15255001187324524,
0.13077090680599213,
0.008996250107884407,
0.12471289932727814,
-0.4687955379486084,
0.05752934515476227,
-0.05223987624049187,
0.1000761091709137,
-0.0065189264714717865,
0.26052337884902954,
0.0889008641242981,
0.14784839749336243,
0.20882190763950348,
0.0011944100260734558,
0.3720685541629791,
-0.12074951082468033,
0.15572987496852875,
0.15177232027053833,
-0.4887097477912903,
-0.032219503074884415,
0.11298473924398422,
-0.18039125204086304,
0.2740591764450073,
-0.01598559319972992,
0.28361356258392334,
-0.5195633769035339,
0.1726844310760498,
-0.4393356740474701,
0.1572382152080536,
-0.06751043349504471,
-0.32663869857788086,
-0.026526829227805138,
-0.2161737084388733,
-0.0652913972735405,
-0.03805357217788696,
-0.025441985577344894,
-0.022146031260490417,
0.6375433206558228,
-0.13002586364746094,
0.37768441438674927,
-0.35374534130096436,
-0.0024407505989074707,
-0.1237524226307869,
0.3654561936855316,
-0.3019707500934601,
0.017315879464149475,
0.2531032860279083,
-0.05528759956359863,
-0.07952195405960083,
0.4465549886226654,
0.2708936929702759,
0.40927502512931824,
-0.08571362495422363,
0.27311545610427856,
-0.3333173394203186,
0.027184149250388145,
-0.4145144522190094,
0.15734973549842834,
-0.17755603790283203,
0.024614587426185608,
0.38001978397369385,
0.1928410530090332,
-0.2046751230955124,
-0.20491699874401093,
0.10700860619544983,
-0.12081781029701233,
-0.45380154252052307,
0.14642919600009918,
0.06331366300582886,
-0.13430412113666534,
-0.07341816276311874,
0.13616396486759186,
-0.16013719141483307,
-0.0563029944896698,
0.3878627419471741,
-0.2722693979740143,
0.03896452486515045,
-0.0435032993555069,
0.1502559632062912,
-0.07201825082302094,
0.6348996758460999,
-0.02965157851576805,
0.1979435682296753,
-0.19355696439743042,
0.004911743104457855,
-0.5160555243492126,
-0.07292065769433975,
-0.28368377685546875,
0.09560148417949677,
0.29725953936576843,
0.4051178991794586,
0.03559062257409096,
0.20005719363689423,
0.027915462851524353,
-0.04618781805038452,
-0.0035496801137924194,
0.28838539123535156,
-0.13964834809303284,
-0.2924462854862213,
-0.10050393640995026,
-0.06501517444849014,
0.12671904265880585,
-0.5510305166244507,
0.23162046074867249,
-0.2663045823574066,
0.13243094086647034,
-0.17214569449424744,
0.1982651948928833,
0.24649298191070557,
-0.18324953317642212,
0.2699463367462158,
0.18336376547813416,
0.09331640601158142,
-0.2993302643299103,
-0.13406945765018463,
-0.25373372435569763,
-0.11650979518890381,
-0.35761016607284546,
0.17747050523757935,
-0.04093820974230766,
0.13606205582618713,
-0.11766384541988373,
-0.08465009927749634,
-0.25465941429138184,
0.13732072710990906,
-0.022879119962453842,
-0.04657308757305145,
-0.06306609511375427,
0.30109307169914246,
-0.15243330597877502,
0.16424812376499176,
-0.10894084721803665,
0.4652884006500244,
0.0005795098841190338,
0.09468251466751099,
-0.19814294576644897,
-0.3717682361602783,
0.35447070002555847,
-0.5177382230758667,
-0.5084079504013062,
-0.4494681656360626,
0.2733939290046692,
0.10054441541433334,
-0.05261610448360443,
-0.39091965556144714,
0.0721096619963646,
0.18747885525226593,
0.06171511486172676,
-0.2888941466808319,
0.3377895951271057,
0.05252867937088013,
-0.2955954074859619,
-0.16881819069385529,
0.332180380821228,
0.061980415135622025,
-0.4348865747451782,
0.1338488906621933,
-0.3935700058937073
] |
https://github.com/huggingface/datasets/issues/784 | Issue with downloading Wikipedia data for low resource language | Hello, maybe you could ty to use another date for the wikipedia dump (see the available [dates](https://dumps.wikimedia.org/jvwiki) here for `jv`) ? | Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks! | 21 | Issue with downloading Wikipedia data for low resource language
Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks!
Hello, maybe you could ty to use another date for the wikipedia dump (see the available [dates](https://dumps.wikimedia.org/jvwiki) here for `jv`) ? | [
0.19471466541290283,
-0.05373477190732956,
0.025463730096817017,
0.442693829536438,
0.16262832283973694,
0.04455540329217911,
0.031790196895599365,
0.41505879163742065,
0.06906209886074066,
-0.005341008305549622,
-0.24613432586193085,
-0.15708181262016296,
0.38392576575279236,
-0.22932563722133636,
-0.1017463430762291,
-0.5121184587478638,
0.187539204955101,
0.015904076397418976,
0.0008709654211997986,
-0.045276086777448654,
-0.19959712028503418,
-0.052532970905303955,
-0.18490242958068848,
0.03291533887386322,
-0.2519637942314148,
-0.05890485644340515,
-0.024784665554761887,
-0.030920319259166718,
-0.33566632866859436,
-0.25338152050971985,
0.2615026533603668,
0.19388577342033386,
0.3040902316570282,
0.3966016173362732,
-0.00012327195145189762,
-0.08041959255933762,
0.5516072511672974,
-0.09585101902484894,
-0.5192887783050537,
0.10045737028121948,
-0.26224085688591003,
-0.43499287962913513,
-0.24894499778747559,
-0.4146050810813904,
0.10611925274133682,
-0.16548793017864227,
0.2590544819831848,
-0.2643604874610901,
0.2706867754459381,
-0.057004235684871674,
0.11586448550224304,
0.1668393909931183,
0.03647651895880699,
-0.23297804594039917,
0.41319215297698975,
0.18984867632389069,
0.03903461992740631,
0.029266946017742157,
-0.1451525241136551,
0.06369592249393463,
0.05425475537776947,
0.23192079365253448,
-0.25389406085014343,
-0.022560372948646545,
0.15144217014312744,
0.008227847516536713,
-0.3298269212245941,
-0.47019752860069275,
0.44264569878578186,
0.4518274664878845,
0.9045654535293579,
-0.01912638545036316,
-0.5640506148338318,
0.05857328325510025,
-0.12373531609773636,
0.09843453764915466,
0.21930855512619019,
0.088886559009552,
0.05143038555979729,
0.07752804458141327,
0.23212827742099762,
-0.2720440626144409,
-0.16567358374595642,
0.5533047914505005,
-0.024797718971967697,
0.2829122543334961,
-0.056255824863910675,
0.058128587901592255,
-0.14148442447185516,
-0.3711191415786743,
-0.18177415430545807,
-0.3521576225757599,
-0.07461220026016235,
0.416182279586792,
0.0065641850233078,
-0.005654867738485336,
-0.06063144654035568,
0.04835899546742439,
0.1835201382637024,
-0.3325105905532837,
-0.09417279064655304,
0.0016863904893398285,
-0.1492670476436615,
0.06138060241937637,
0.3583228886127472,
-0.3411814868450165,
0.16155077517032623,
-0.09281553328037262,
0.6022840142250061,
0.20459604263305664,
0.3402929902076721,
-0.12075632065534592,
0.14365914463996887,
-0.2561021149158478,
-0.47325044870376587,
-0.13153806328773499,
0.34414106607437134,
-0.3749167323112488,
-0.021750759333372116,
0.22559617459774017,
-0.2683691084384918,
-0.13826988637447357,
-0.161924809217453,
0.2328360676765442,
-0.19262182712554932,
0.4905364513397217,
0.26410597562789917,
0.31500911712646484,
-0.3032970726490021,
-0.26047253608703613,
-0.03650293126702309,
0.20983649790287018,
0.06976622343063354,
0.11547518521547318,
0.1212366372346878,
0.12548255920410156,
0.30965834856033325,
0.1305270791053772,
-0.40900522470474243,
-0.1776619851589203,
-0.18420977890491486,
-0.3713511824607849,
-0.33498069643974304,
0.12220989167690277,
0.16116759181022644,
0.6101632714271545,
-0.19690075516700745,
-0.03262883424758911,
-0.18640649318695068,
0.05770101770758629,
-0.305912584066391,
0.04717006906867027,
0.03319445624947548,
0.06513147056102753,
-0.330011785030365,
0.12947657704353333,
-0.10134220868349075,
0.2805509567260742,
0.11382030695676804,
-0.08707531541585922,
-0.04202353209257126,
0.1421462744474411,
-0.5038465857505798,
-0.23221254348754883,
0.31213414669036865,
0.5738980174064636,
-0.2841930389404297,
-0.21173076331615448,
-0.2771611511707306,
-0.052761804312467575,
0.3993544578552246,
0.32857438921928406,
-0.17669078707695007,
0.529211163520813,
-0.13882020115852356,
0.334192156791687,
0.3454706370830536,
0.0033041909337043762,
-0.2640669047832489,
0.32989707589149475,
0.09333333373069763,
-0.010324036702513695,
0.15767528116703033,
0.05655848607420921,
0.3707053065299988,
-0.20292028784751892,
0.02569669485092163,
0.41089850664138794,
0.17302489280700684,
-0.005599990487098694,
-0.46276867389678955,
-0.18433590233325958,
0.11909375339746475,
0.008906122297048569,
0.4738459587097168,
-0.15733498334884644,
0.2517452836036682,
0.8539654016494751,
0.1662379652261734,
-0.07642066478729248,
0.338064581155777,
0.4670501947402954,
-0.1945725828409195,
-0.08289188146591187,
0.08622375875711441,
0.0015231966972351074,
-0.0667475089430809,
0.17408272624015808,
-0.01288435235619545,
0.07224763929843903,
-0.04815204441547394,
-0.0805419534444809,
-0.43369242548942566,
-0.13219326734542847,
0.07811576128005981,
0.22171220183372498,
0.06278747320175171,
0.0161711648106575,
0.12568409740924835,
0.40312284231185913,
0.3853699564933777,
-0.28600093722343445,
0.027452172711491585,
-0.07651448249816895,
-0.25279369950294495,
0.3991636633872986,
-0.11519033461809158,
0.13576330244541168,
0.11575856804847717,
-0.11026116460561752,
0.4241468012332916,
0.09139979630708694,
-0.0832197368144989,
0.12222562730312347,
0.14899827539920807,
0.2598077356815338,
0.19983699917793274,
-0.20019157230854034,
0.4503699541091919,
-0.10481119155883789,
0.3533118963241577,
0.5322103500366211,
0.3143361806869507,
-0.18738839030265808,
-0.06333934515714645,
0.42489200830459595,
-0.09307116270065308,
-0.05436693876981735,
-0.12473302334547043,
0.003204580396413803,
0.43071478605270386,
-0.018759146332740784,
0.2190227061510086,
-0.14075545966625214,
0.2445392608642578,
0.30824482440948486,
-0.14214849472045898,
0.1383502334356308,
-0.42339888215065,
-0.16384989023208618,
0.28584548830986023,
-0.18431434035301208,
0.24338117241859436,
-0.04082173854112625,
-0.2044891119003296,
-0.06033936142921448,
0.22062277793884277,
-0.059147220104932785,
0.12757524847984314,
0.10274636745452881,
0.23283816874027252,
-0.2996247112751007,
0.23651176691055298,
-0.200473353266716,
0.11677800118923187,
0.23465730249881744,
0.2534104287624359,
0.1489505022764206,
0.07077334076166153,
0.05596151947975159,
-0.13113296031951904,
0.3252009153366089,
0.003400089219212532,
0.3112410008907318,
-0.1408686488866806,
-0.18172618746757507,
-0.3317089378833771,
-0.3425326645374298,
-0.22657427191734314,
0.09984219074249268,
-0.3634951412677765,
-0.3806312680244446,
0.1673060953617096,
0.12903040647506714,
-0.37076741456985474,
0.03896787762641907,
-0.2124539613723755,
-0.15537448227405548,
0.01964269019663334,
0.0361521914601326,
-0.20181843638420105,
-0.2261243313550949,
-0.20626148581504822,
-0.04524315148591995,
0.4151233434677124,
0.2590596377849579,
0.12066060304641724,
-0.11632932722568512,
-0.4247232675552368,
-0.5023557543754578,
-0.18355929851531982,
0.0773841068148613,
0.09997540712356567,
0.1563127189874649,
-0.06535449624061584,
0.5579110980033875,
-0.05104631558060646,
-0.045251183211803436,
0.12259278446435928,
-0.006121283397078514,
-0.08575267344713211,
0.11557672917842865,
-0.07134568691253662,
0.18992751836776733,
-0.1455582231283188,
-0.25897425413131714,
-0.1714494824409485,
-0.3056754171848297,
-0.07070530951023102,
-0.05721138417720795,
0.11680351942777634,
-0.29596635699272156,
0.18750616908073425,
-0.018197938799858093,
0.25884193181991577,
0.2227543443441391,
-0.25542590022087097,
-0.09848684072494507,
0.5742366313934326,
-0.08384835720062256,
-0.4717203676700592,
0.1295848786830902,
-0.14848315715789795,
0.007613670080900192,
0.18798162043094635,
-0.279701828956604,
0.12193255871534348,
0.11807937920093536,
0.17069239914417267,
0.260259747505188,
0.09073040634393692,
0.05542881041765213,
-0.2978804111480713,
0.10816620290279388,
-0.052497219294309616,
0.22238382697105408,
-0.14971923828125,
-0.17315733432769775,
0.45687368512153625,
0.37949374318122864,
0.46065881848335266,
0.00420958548784256,
0.7833336591720581,
0.08993516862392426,
0.29615268111228943,
0.3146291971206665,
0.4288240969181061,
0.24463757872581482,
0.12490853667259216,
0.01236075721681118,
0.014898312278091908,
0.06303511559963226,
-0.005877021700143814,
0.3074187636375427,
0.06474782526493073,
-0.21913886070251465,
-0.3265363574028015,
-0.4428032338619232,
-0.3569612205028534,
-0.326186865568161,
-0.14516638219356537,
0.18182209134101868,
0.20523592829704285,
0.03869972005486488,
0.3887411653995514,
-0.05832760035991669,
-0.30969807505607605,
0.21003490686416626,
0.20911595225334167,
0.20575490593910217,
0.2603681683540344,
-0.20302870869636536,
0.02001004107296467,
-0.6251592040061951,
0.3266807794570923,
0.03762916475534439,
0.44890373945236206,
0.12113434076309204,
-0.042608898133039474,
-0.0064909979701042175,
-0.011412810534238815,
0.19115950167179108,
-0.22584541141986847,
0.24868009984493256,
-0.0369805246591568,
0.004988085478544235,
-0.33698558807373047,
0.030682239681482315,
-0.2206842005252838,
0.32591286301612854,
0.5136587619781494,
0.1297413408756256,
-0.6778855323791504,
-0.2252325862646103,
0.04360954463481903,
0.28590407967567444,
-0.0816384106874466,
-0.00030214153230190277,
-0.12392610311508179,
-0.3683079183101654,
-0.19829115271568298,
-0.0900636538863182,
-0.022052092477679253,
0.16231201589107513,
-0.16826631128787994,
0.25827738642692566,
-0.22031927108764648,
0.37459564208984375,
0.05114560201764107,
0.06592148542404175,
0.2008274495601654,
0.01510135643184185,
0.19743327796459198,
0.2343122512102127,
-0.004597015678882599,
0.28463539481163025,
0.3751892149448395,
0.13199155032634735,
-0.28749510645866394,
-0.04212702810764313,
-0.08918607234954834,
-0.20773708820343018,
0.2224481999874115,
-0.06967563182115555,
0.22122502326965332,
0.22677791118621826,
-0.14865747094154358,
-0.047920409590005875,
-0.02206970378756523,
0.18862174451351166,
-0.08271881192922592,
-0.3992476165294647,
-0.14235827326774597,
0.4184012711048126,
0.19389067590236664,
-0.08002819865942001,
-0.14628006517887115,
0.13739101588726044,
-0.20488980412483215,
0.042297378182411194,
0.11781720072031021,
0.901756227016449,
-0.1378929316997528,
0.10995838046073914,
-0.008432820439338684,
0.00483284518122673,
0.7497715353965759,
-0.0360589399933815,
0.03833544999361038,
-0.31552180647850037,
0.09126920253038406,
-0.043776340782642365,
0.34152159094810486,
0.11268191784620285,
0.035424042493104935,
-0.19192320108413696,
0.40767815709114075,
0.19494827091693878,
0.25753679871559143,
0.016374828293919563,
0.4060836136341095,
0.0624973326921463,
-0.23454973101615906,
-0.5463212728500366,
0.04620477557182312,
-0.31446629762649536,
0.4104982316493988,
-0.23535758256912231,
-0.23598137497901917,
-0.20679719746112823,
-0.26715075969696045,
-0.05668342486023903,
0.14180982112884521,
-0.03468026593327522,
0.29814958572387695,
-0.07137343287467957,
-0.44029247760772705,
0.17216672003269196,
0.2931361198425293,
0.11639659851789474,
0.22524000704288483,
-0.24506798386573792,
0.05529524385929108,
-0.5325861573219299,
-0.3806130588054657,
-0.1697792261838913,
0.15765777230262756,
0.11665535718202591,
-0.025761961936950684,
-0.19546616077423096,
0.09033721685409546,
-0.11230206489562988,
0.11753199994564056,
-0.22127282619476318,
0.004160210490226746,
-0.38346076011657715,
0.05329488590359688,
-0.4173184633255005,
-0.09473240375518799,
-0.15727105736732483,
-0.20402146875858307,
0.06885173916816711,
0.10827675461769104,
0.019343141466379166,
-0.1349882185459137,
0.09425115585327148,
-0.06339865922927856,
-0.02774622291326523,
0.589821994304657,
0.20643162727355957,
0.21214205026626587,
0.43504834175109863,
0.1797178089618683,
-0.4563695192337036,
-0.14930157363414764,
-0.030924923717975616,
-0.5784887075424194,
-0.2278081178665161,
-0.03562280535697937,
-0.22842970490455627,
0.18572567403316498,
-0.20332030951976776,
-0.16422902047634125,
0.046321600675582886,
-0.3468266427516937,
0.22724445164203644,
-0.4120404124259949,
-0.15290682017803192,
0.4245545268058777,
0.008602946996688843,
0.005323261022567749,
0.19622263312339783,
-0.12252447009086609,
0.04110982269048691,
0.05026945471763611,
-0.1607210636138916,
0.1442897468805313,
-0.29054296016693115,
0.20152556896209717,
0.2590174078941345,
0.09225715696811676,
-0.07890424877405167,
-0.09520378708839417,
-0.013244223780930042,
-0.1834615170955658,
-0.054305821657180786,
-0.011722594499588013,
-0.13040432333946228,
0.19483380019664764,
0.11450841277837753,
-0.1623736172914505,
0.20889396965503693,
-0.3206484317779541,
0.14756201207637787,
-0.1380583792924881,
-0.1336161345243454,
0.2696513533592224,
-0.02938169240951538,
0.18712118268013,
0.27669742703437805,
0.20426049828529358,
-0.27104341983795166,
0.3788250684738159,
0.07928290218114853,
0.45948606729507446,
-0.011709967628121376,
0.38628020882606506,
0.442372590303421,
-0.025481469929218292,
-0.2803550958633423,
0.026686925441026688,
-0.03596632182598114,
-0.21746903657913208,
0.30515679717063904,
-0.18160924315452576,
-0.055670104920864105,
0.431566059589386,
0.10159648954868317,
0.2603601813316345,
-0.015609943307936192,
0.08559592068195343,
0.19569042325019836,
0.0698101818561554,
-0.36466047167778015,
-0.15194056928157806,
0.43773141503334045,
-0.02035350725054741,
-0.11069995909929276,
0.22617711126804352,
0.09326717257499695,
-0.22877809405326843,
0.0955599844455719,
0.1222153976559639,
-0.05295255035161972,
-0.009708065539598465,
0.21005132794380188,
0.1276116967201233,
0.42848390340805054,
0.14116165041923523,
0.06254533678293228,
-0.11870348453521729,
0.009821437299251556,
-0.05782322585582733,
-0.07740407437086105,
0.2355455756187439,
0.07428416609764099,
0.1460341364145279,
-0.25582098960876465,
-0.44922521710395813,
-0.09688952565193176,
0.38461780548095703,
-0.2090793251991272,
0.09106497466564178,
-0.09181493520736694,
0.13477125763893127,
0.28713396191596985,
-0.0784626305103302,
-0.24682028591632843,
0.21378472447395325,
-0.11079714447259903,
-0.1801239401102066,
-0.34088626503944397,
-0.3482738435268402,
-0.11324577033519745,
0.13992257416248322,
0.06258158385753632,
-0.3009450435638428,
0.3215267062187195,
0.20969919860363007,
-0.13007478415966034,
-0.5181474685668945,
0.6111894845962524,
0.10737769305706024,
0.11829818785190582,
-0.3415501117706299,
-0.019242068752646446,
-0.17154620587825775,
-0.11202238500118256,
0.05449758470058441,
0.35611915588378906,
0.23284517228603363,
0.19884665310382843,
-0.2760937511920929,
-0.08597671985626221,
0.2533798813819885,
-0.02292517013847828,
0.08363480865955353,
0.06066706031560898,
0.12588629126548767,
0.014750642701983452,
0.40334439277648926,
0.021388767287135124,
-0.031434815376996994,
-0.21441783010959625,
0.31130340695381165,
-0.07794778048992157,
-0.05631416663527489,
-0.09228577464818954,
-0.22811079025268555,
-0.0808217003941536,
-0.05379877984523773,
-0.19177654385566711,
-0.42380574345588684,
0.026481643319129944,
-0.01899557188153267,
0.15615946054458618,
0.20948264002799988,
-0.152703195810318,
-0.006661815568804741,
-0.2599538564682007,
0.23863102495670319,
0.3384193778038025,
0.07217391580343246,
-0.27102431654930115,
-0.10188283771276474,
-0.4817110300064087,
-0.0006000027060508728,
-0.5397921204566956,
0.050552815198898315,
-0.0656437799334526,
0.346938818693161,
-0.06868048757314682,
0.07693672180175781,
0.10089471936225891,
-0.1663619577884674,
0.01663053408265114,
0.19903826713562012,
-0.30844846367836,
-0.17131584882736206,
-0.127511128783226,
0.013870278373360634,
-0.2212381362915039,
-0.4771665632724762,
0.2828768193721771,
-0.33650273084640503,
-0.07908464223146439,
-0.02881283313035965,
-0.013041432946920395,
0.031174536794424057,
0.25631457567214966,
0.21920152008533478,
0.10509294271469116,
0.11116643249988556,
-0.13930627703666687,
-0.09276683628559113,
-0.2995743751525879,
-0.16831856966018677,
-0.06257804483175278,
0.2928657829761505,
-0.12257492542266846,
0.4750663638114929,
-0.15180255472660065,
0.12828542292118073,
-0.17484048008918762,
0.46847590804100037,
-0.28085654973983765,
0.17354246973991394,
-0.145772784948349,
0.09480054676532745,
-0.3616303503513336,
0.053470149636268616,
-0.0626034289598465,
0.013030946254730225,
-0.2021166980266571,
0.10324955731630325,
-0.4907824397087097,
-0.15331768989562988,
0.18491512537002563,
-0.2853299379348755,
-0.10769955813884735,
-0.280659943819046,
0.0994235947728157,
0.2337031066417694,
0.22239428758621216,
-0.4161424934864044,
0.18070706725120544,
0.26650989055633545,
-0.0033006034791469574,
-0.09166336804628372,
-0.07899583876132965,
-0.08805269002914429,
-0.30812981724739075,
-0.04428371414542198,
-0.05992989242076874,
0.028439367190003395,
-0.4647623300552368,
-0.030237197875976562,
-0.2713385820388794
] |
https://github.com/huggingface/datasets/issues/784 | Issue with downloading Wikipedia data for low resource language | @lhoestq
I've tried `load_dataset('wikipedia', '20200501.zh', beam_runner='DirectRunner')` and got the same `FileNotFoundError` as @SamuelCahyawijaya.
Also, using another date (e.g. `load_dataset('wikipedia', '20201120.zh', beam_runner='DirectRunner')`) will give the following error message.
```
ValueError: BuilderConfig 20201120.zh not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
I am pretty sure that `https://dumps.wikimedia.org/enwiki/20201120/dumpstatus.json` exists. | Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks! | 342 | Issue with downloading Wikipedia data for low resource language
Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks!
@lhoestq
I've tried `load_dataset('wikipedia', '20200501.zh', beam_runner='DirectRunner')` and got the same `FileNotFoundError` as @SamuelCahyawijaya.
Also, using another date (e.g. `load_dataset('wikipedia', '20201120.zh', beam_runner='DirectRunner')`) will give the following error message.
```
ValueError: BuilderConfig 20201120.zh not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
I am pretty sure that `https://dumps.wikimedia.org/enwiki/20201120/dumpstatus.json` exists. | [
0.05334751680493355,
0.037484973669052124,
0.059783268719911575,
0.48692888021469116,
0.170536607503891,
0.023359470069408417,
0.09322984516620636,
0.4074786603450775,
0.16699987649917603,
0.10148239135742188,
-0.18089279532432556,
-0.1391495019197464,
0.41886067390441895,
-0.17327192425727844,
-0.09404443204402924,
-0.4950679838657379,
0.18777421116828918,
0.03998430073261261,
0.012665338814258575,
-0.06551176309585571,
-0.2115677297115326,
-0.048074543476104736,
-0.1926138699054718,
0.06271129846572876,
-0.30571016669273376,
-0.005631113424897194,
0.0016469527035951614,
-0.036464624106884,
-0.3302689492702484,
-0.2426016479730606,
0.2610393464565277,
0.18200111389160156,
0.2705381214618683,
0.4148353338241577,
-0.0001278781273867935,
-0.04970692843198776,
0.5732787847518921,
-0.11515079438686371,
-0.5644017457962036,
0.08896703273057938,
-0.21099421381950378,
-0.4145156443119049,
-0.19653217494487762,
-0.3739248216152191,
0.039236314594745636,
-0.16278858482837677,
0.23407681286334991,
-0.2813851237297058,
0.29318904876708984,
-0.02906365692615509,
0.06792545318603516,
0.13024146854877472,
0.10006476938724518,
-0.21704690158367157,
0.3911057412624359,
0.11382241547107697,
0.046374015510082245,
0.017777184024453163,
-0.07914474606513977,
0.08694595098495483,
0.028114259243011475,
0.2152741551399231,
-0.2443997859954834,
-0.04136407747864723,
0.21118181943893433,
-0.020784690976142883,
-0.22147536277770996,
-0.5394378900527954,
0.4275812804698944,
0.506501317024231,
0.9873850345611572,
-0.0341155007481575,
-0.5420719385147095,
0.020863190293312073,
-0.08844319730997086,
0.17179690301418304,
0.25173622369766235,
0.07730022817850113,
-0.02165556699037552,
0.006418846547603607,
0.1908416748046875,
-0.3481394946575165,
-0.1752084195613861,
0.5972657799720764,
-0.045815810561180115,
0.343545138835907,
-0.029370728880167007,
0.12448295950889587,
-0.1325082778930664,
-0.40685075521469116,
-0.19645290076732635,
-0.4271182417869568,
-0.050539012998342514,
0.44340166449546814,
0.0007427297532558441,
0.005780018866062164,
-0.100186787545681,
0.06499329209327698,
0.16020721197128296,
-0.2895125150680542,
-0.0883786603808403,
0.040581114590168,
-0.14431264996528625,
0.10574836283922195,
0.29516950249671936,
-0.25290465354919434,
0.16399744153022766,
-0.16669738292694092,
0.6046066880226135,
0.18778632581233978,
0.32684361934661865,
-0.06068674474954605,
0.04512093961238861,
-0.2781890332698822,
-0.587760329246521,
-0.11933396011590958,
0.23419632017612457,
-0.3487764000892639,
-0.047572650015354156,
0.18883827328681946,
-0.2759738564491272,
-0.18630680441856384,
-0.1490030735731125,
0.2405673861503601,
-0.22684398293495178,
0.45288142561912537,
0.3064103126525879,
0.28690415620803833,
-0.3019838035106659,
-0.2889586389064789,
-0.004438132978975773,
0.24045568704605103,
0.057796549052000046,
0.1191030889749527,
0.1557951122522354,
0.007608405314385891,
0.2810477912425995,
0.12952791154384613,
-0.35996586084365845,
-0.17277666926383972,
-0.22139613330364227,
-0.27362751960754395,
-0.3288102149963379,
0.12630905210971832,
0.1419118195772171,
0.5926676988601685,
-0.17785142362117767,
-0.1102338433265686,
-0.19159778952598572,
0.05993420258164406,
-0.3075917065143585,
0.029011521488428116,
-0.038854919373989105,
0.0066992673091590405,
-0.3058396577835083,
0.14488571882247925,
-0.10233647376298904,
0.2594459056854248,
0.09318751841783524,
-0.12982837855815887,
-0.08106479793787003,
0.13336241245269775,
-0.4865556061267853,
-0.23101672530174255,
0.40185126662254333,
0.6183562278747559,
-0.34194430708885193,
-0.2550346255302429,
-0.22468864917755127,
-0.037941161543130875,
0.3226378262042999,
0.24058322608470917,
-0.19627119600772858,
0.5838983058929443,
-0.11569953709840775,
0.14310942590236664,
0.3990395963191986,
-0.06260158121585846,
-0.24517986178398132,
0.34164494276046753,
0.1305209994316101,
-0.019029997289180756,
0.18552182614803314,
0.06440375745296478,
0.27841657400131226,
-0.1964818388223648,
0.04873673617839813,
0.40777653455734253,
0.1818937361240387,
-0.007827388122677803,
-0.3822374939918518,
-0.23699131608009338,
0.13555671274662018,
0.07467138767242432,
0.48702943325042725,
-0.09409710019826889,
0.24868285655975342,
0.8490919470787048,
0.2026953101158142,
-0.08568954467773438,
0.32606786489486694,
0.46469539403915405,
-0.3252142667770386,
-0.09395058453083038,
0.07967627048492432,
0.016032930463552475,
-0.08190279453992844,
0.22736889123916626,
-0.03340845927596092,
0.04444476217031479,
0.022186972200870514,
-0.012481838464736938,
-0.3875284790992737,
-0.10598038882017136,
0.029392585158348083,
0.23333850502967834,
0.0024628862738609314,
0.06681478768587112,
0.18383820354938507,
0.35884684324264526,
0.3215923607349396,
-0.18831171095371246,
0.00018323026597499847,
-0.08739560097455978,
-0.27110645174980164,
0.4411357343196869,
-0.09714197367429733,
0.11788591742515564,
0.12426057457923889,
-0.0658244714140892,
0.45695212483406067,
0.03739549219608307,
-0.08783518522977829,
0.1333165168762207,
0.12802359461784363,
0.2300780862569809,
0.09697693586349487,
-0.14526991546154022,
0.41246163845062256,
-0.0279224906116724,
0.3956127166748047,
0.5580113530158997,
0.2673853933811188,
-0.16243146359920502,
-0.08201969414949417,
0.42176705598831177,
-0.023517679423093796,
0.06808530539274216,
-0.07626975327730179,
0.0021345820277929306,
0.3455212116241455,
-0.004545845091342926,
0.21488657593727112,
-0.12228072434663773,
0.2748681306838989,
0.30643829703330994,
-0.11889983713626862,
0.17610014975070953,
-0.40962374210357666,
-0.14042121171951294,
0.32709407806396484,
-0.16610418260097504,
0.2058766782283783,
-0.042485110461711884,
-0.21587064862251282,
-0.026497794315218925,
0.25040268898010254,
-0.042212244123220444,
0.021961942315101624,
0.09337444603443146,
0.14141657948493958,
-0.2690081000328064,
0.18565700948238373,
-0.19095419347286224,
0.11787360161542892,
0.2861928641796112,
0.36136680841445923,
0.21444281935691833,
0.032679107040166855,
0.06317838281393051,
-0.09839683771133423,
0.2702800929546356,
0.01776156760752201,
0.2583778500556946,
-0.18332159519195557,
-0.1620481312274933,
-0.35061410069465637,
-0.37414872646331787,
-0.28710395097732544,
0.0854787826538086,
-0.38980910181999207,
-0.3666177988052368,
0.14914017915725708,
0.15534013509750366,
-0.2938445806503296,
0.13243699073791504,
-0.1568158119916916,
-0.11000774800777435,
-0.01551597286015749,
-0.06307654082775116,
-0.21393781900405884,
-0.24593551456928253,
-0.2690540552139282,
-0.11066308617591858,
0.4098205864429474,
0.19540029764175415,
0.05751960724592209,
-0.16002924740314484,
-0.38494014739990234,
-0.5117305517196655,
-0.1947421431541443,
0.17385825514793396,
0.083174929022789,
0.17871280014514923,
-0.08224150538444519,
0.5658929944038391,
0.003005165606737137,
-0.050543420016765594,
0.11834486573934555,
0.02404426969587803,
-0.08233613520860672,
0.11181430518627167,
-0.10795531421899796,
0.16110877692699432,
-0.12917308509349823,
-0.25552481412887573,
-0.18482168018817902,
-0.35495316982269287,
-0.13262470066547394,
0.04029647633433342,
0.1444680392742157,
-0.18029476702213287,
0.19037894904613495,
-0.016534656286239624,
0.31945374608039856,
0.28452643752098083,
-0.18322713673114777,
-0.14169088006019592,
0.5626682043075562,
-0.09186401218175888,
-0.45361921191215515,
0.1298018842935562,
-0.15634238719940186,
-0.014834463596343994,
0.15880964696407318,
-0.30097395181655884,
0.22767682373523712,
0.14874570071697235,
0.10698966681957245,
0.2487148493528366,
0.0975351333618164,
0.0849277451634407,
-0.27701061964035034,
0.15480181574821472,
-0.06106322631239891,
0.13947999477386475,
-0.13911721110343933,
-0.19060766696929932,
0.474879652261734,
0.43919557332992554,
0.4500228762626648,
-0.06180530786514282,
0.741689920425415,
0.13546553254127502,
0.2463318556547165,
0.3136911988258362,
0.36801066994667053,
0.24789918959140778,
0.01939203590154648,
0.022702893242239952,
0.10155254602432251,
0.12703730165958405,
0.04435691982507706,
0.3230534791946411,
0.04360697418451309,
-0.18441717326641083,
-0.39105379581451416,
-0.46202513575553894,
-0.250282347202301,
-0.324694961309433,
-0.18037375807762146,
0.08657312393188477,
0.24447759985923767,
0.03447030112147331,
0.4447144567966461,
-0.11632682383060455,
-0.3504456579685211,
0.21780483424663544,
0.18916526436805725,
0.23169633746147156,
0.2817643880844116,
-0.12592928111553192,
-0.06610555201768875,
-0.5629531145095825,
0.32825255393981934,
0.0698234960436821,
0.41106343269348145,
0.017947006970643997,
-0.005972016602754593,
0.03197384625673294,
-0.027552850544452667,
0.21410250663757324,
-0.21733830869197845,
0.22549043595790863,
0.04068779945373535,
-0.030443692579865456,
-0.463086873292923,
-0.011597391217947006,
-0.1469060629606247,
0.30919021368026733,
0.44780847430229187,
0.11469736695289612,
-0.6934031248092651,
-0.3136427402496338,
0.07117410004138947,
0.35815510153770447,
-0.11457215994596481,
0.023810364305973053,
-0.10174062848091125,
-0.2344864010810852,
-0.3066960871219635,
-0.12528815865516663,
-0.10915248095989227,
0.2267962396144867,
-0.12509451806545258,
0.22640030086040497,
-0.18110880255699158,
0.37919673323631287,
0.026508741080760956,
0.06610977649688721,
0.20378848910331726,
0.09094177186489105,
0.1747339516878128,
0.25883162021636963,
0.06164200231432915,
0.2426660656929016,
0.33153900504112244,
0.19635406136512756,
-0.13879376649856567,
0.013874410651624203,
-0.12425306439399719,
-0.19766885042190552,
0.2619456648826599,
-0.07867762446403503,
0.14160755276679993,
0.23715557157993317,
-0.11814890801906586,
-0.09225372970104218,
-0.07548429816961288,
0.18069438636302948,
-0.11169245839118958,
-0.4302590787410736,
-0.16903269290924072,
0.4821285307407379,
0.18467946350574493,
-0.09955325722694397,
-0.08321985602378845,
0.1816088706254959,
-0.18518829345703125,
0.08709161728620529,
0.15572239458560944,
0.959774911403656,
-0.13391557335853577,
0.13923408091068268,
-0.013901397585868835,
0.042007215321063995,
0.7529658675193787,
-0.12893185019493103,
0.056846849620342255,
-0.368758887052536,
0.14605063199996948,
-0.08033684641122818,
0.3275383412837982,
0.11961227655410767,
0.03418152779340744,
-0.16960185766220093,
0.4756477177143097,
0.17363683879375458,
0.2811531126499176,
-0.009662702679634094,
0.4018617272377014,
0.021716510877013206,
-0.26012590527534485,
-0.487260639667511,
-0.007310083135962486,
-0.29323750734329224,
0.4567650556564331,
-0.2152504026889801,
-0.2132640928030014,
-0.18951794505119324,
-0.2625997066497803,
-0.08690976351499557,
0.19099757075309753,
-0.08713877946138382,
0.3240567445755005,
-0.00483747199177742,
-0.44578850269317627,
0.17790092527866364,
0.32984375953674316,
0.16162094473838806,
0.19725608825683594,
-0.24070465564727783,
0.08119760453701019,
-0.5297272801399231,
-0.3864915370941162,
-0.16773946583271027,
0.17965228855609894,
0.20713673532009125,
-0.06247236579656601,
-0.2309257984161377,
0.10350846499204636,
-0.17933931946754456,
0.09264668822288513,
-0.22396498918533325,
-0.06170205771923065,
-0.2331026941537857,
0.13216160237789154,
-0.3695800006389618,
-0.07161669433116913,
-0.15250028669834137,
-0.20293694734573364,
0.026637790724635124,
0.035256531089544296,
0.03396345302462578,
-0.1284421980381012,
0.09658751636743546,
-0.09237179905176163,
0.004738520830869675,
0.5840378999710083,
0.17348924279212952,
0.22685396671295166,
0.49515780806541443,
0.21956084668636322,
-0.4367140531539917,
-0.13382455706596375,
-0.04822729155421257,
-0.48388174176216125,
-0.20812499523162842,
-0.08983723819255829,
-0.18860302865505219,
0.14799891412258148,
-0.18880069255828857,
0.019745346158742905,
-0.0024590156972408295,
-0.37033554911613464,
0.19322840869426727,
-0.4431475102901459,
-0.1510879248380661,
0.3806108832359314,
-0.02772952988743782,
0.04239269718527794,
0.22797060012817383,
-0.09804421663284302,
0.0965980663895607,
-0.01285710372030735,
-0.11240134388208389,
0.07979555428028107,
-0.3406734764575958,
0.1945510059595108,
0.3010060489177704,
0.19719752669334412,
-0.10288650542497635,
-0.04323741793632507,
-0.07497967034578323,
-0.26925158500671387,
-0.09393398463726044,
0.045276202261447906,
-0.12200315296649933,
0.22404900193214417,
0.14751844108104706,
-0.12615351378917694,
0.24647578597068787,
-0.3998473882675171,
0.08734287321567535,
-0.1955198049545288,
-0.0513407364487648,
0.15898051857948303,
-0.055908769369125366,
0.1787535697221756,
0.19600915908813477,
0.21175003051757812,
-0.31490516662597656,
0.3788197338581085,
0.11587586253881454,
0.5302125215530396,
-0.012899147346615791,
0.36537158489227295,
0.37199142575263977,
-0.02657916024327278,
-0.36284253001213074,
0.10022086650133133,
-0.08643636107444763,
-0.2152407169342041,
0.36739426851272583,
-0.23509152233600616,
-0.024295693263411522,
0.39403635263442993,
0.08385198563337326,
0.21597561240196228,
-0.02552647888660431,
0.09321796894073486,
0.13950207829475403,
-0.004354385659098625,
-0.36249840259552,
-0.1738434135913849,
0.5092689990997314,
-0.015003415755927563,
-0.08851367235183716,
0.2642079293727875,
0.15878096222877502,
-0.2973441481590271,
0.19717247784137726,
0.11738454550504684,
-0.010572546161711216,
-0.11014540493488312,
0.1757882982492447,
0.1708861142396927,
0.4562655985355377,
0.18976886570453644,
0.05893254280090332,
-0.08926819264888763,
0.014299660921096802,
0.006784018129110336,
-0.08893408626317978,
0.20767562091350555,
0.09536552429199219,
0.14601366221904755,
-0.2269897162914276,
-0.43864884972572327,
0.029536696150898933,
0.3851924240589142,
-0.1301937997341156,
-0.012492954730987549,
-0.11778604984283447,
0.12432001531124115,
0.28822872042655945,
-0.0849064290523529,
-0.31042224168777466,
0.23915629088878632,
-0.09783314913511276,
-0.17533458769321442,
-0.4473359286785126,
-0.3883265256881714,
-0.09263838827610016,
0.15554475784301758,
0.1127261072397232,
-0.29997724294662476,
0.2941487729549408,
0.24093738198280334,
-0.12092578411102295,
-0.5600200295448303,
0.6237096190452576,
0.10353703796863556,
0.0964277908205986,
-0.3249094784259796,
0.1133994609117508,
-0.23213748633861542,
-0.06692606210708618,
0.08399166166782379,
0.36598384380340576,
0.27636995911598206,
0.1966903805732727,
-0.3062683343887329,
-0.07828172296285629,
0.2343597710132599,
-0.026193760335445404,
0.093402199447155,
0.017287015914916992,
0.07097112387418747,
-0.003841053694486618,
0.43317463994026184,
-0.01641753874719143,
0.005920614115893841,
-0.28778722882270813,
0.3169853389263153,
-0.0339478962123394,
-0.06571504473686218,
-0.0700167790055275,
-0.18997074663639069,
-0.045191794633865356,
-0.07291583716869354,
-0.1918238401412964,
-0.4208928644657135,
0.05705190822482109,
-0.025830578058958054,
0.20270580053329468,
0.19514131546020508,
-0.1792076677083969,
-0.03396971523761749,
-0.28268787264823914,
0.2591366767883301,
0.236092209815979,
0.0933159738779068,
-0.2518784701824188,
-0.13416075706481934,
-0.4866867661476135,
-0.05872025340795517,
-0.4086298942565918,
0.0708175003528595,
-0.05416212975978851,
0.29857027530670166,
-0.04279191046953201,
0.054275285452604294,
0.14047738909721375,
-0.205230712890625,
0.047735318541526794,
0.14222325384616852,
-0.31906217336654663,
-0.1981557458639145,
-0.03813876211643219,
0.056787729263305664,
-0.24918708205223083,
-0.4527914822101593,
0.2786124646663666,
-0.39105477929115295,
-0.12764564156532288,
0.034198883920907974,
-0.06783341616392136,
0.09691183269023895,
0.14399480819702148,
0.2436261624097824,
0.019980181008577347,
0.15726014971733093,
-0.1167750209569931,
-0.04871375858783722,
-0.29965221881866455,
-0.12571103870868683,
-0.05966642126441002,
0.25545570254325867,
-0.14386722445487976,
0.5094139575958252,
-0.22200417518615723,
0.14598296582698822,
-0.24538806080818176,
0.3832652270793915,
-0.2661609351634979,
0.20203614234924316,
-0.12023169547319412,
0.08432202786207199,
-0.4251120388507843,
0.17100191116333008,
-0.01901509240269661,
0.004625044763088226,
-0.1791452169418335,
0.10418126732110977,
-0.5216531157493591,
-0.09871909022331238,
0.23113150894641876,
-0.2941538393497467,
-0.1555871218442917,
-0.26602423191070557,
0.060328707098960876,
0.2114715576171875,
0.18883419036865234,
-0.35883983969688416,
0.22540023922920227,
0.2415473759174347,
-0.032040785998106,
-0.11889012157917023,
-0.13376811146736145,
-0.1148090660572052,
-0.23884958028793335,
-0.06295116990804672,
-0.178137868642807,
0.012849422171711922,
-0.4606751799583435,
-0.1186596155166626,
-0.25789403915405273
] |
https://github.com/huggingface/datasets/issues/784 | Issue with downloading Wikipedia data for low resource language | For posterity, here's how I got the data I needed: I needed Bengali, so I had to check which dumps are available here: https://dumps.wikimedia.org/bnwiki/ , then I ran:
```
load_dataset("wikipedia", language="bn", date="20211101",
beam_runner="DirectRunner")
``` | Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks! | 34 | Issue with downloading Wikipedia data for low resource language
Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks!
For posterity, here's how I got the data I needed: I needed Bengali, so I had to check which dumps are available here: https://dumps.wikimedia.org/bnwiki/ , then I ran:
```
load_dataset("wikipedia", language="bn", date="20211101",
beam_runner="DirectRunner")
``` | [
0.18422400951385498,
-0.05817735940217972,
0.011209547519683838,
0.4411028027534485,
0.16953913867473602,
0.0318271741271019,
0.03863408416509628,
0.40885820984840393,
0.08137795329093933,
-0.002966776490211487,
-0.2646799385547638,
-0.18347156047821045,
0.3728417158126831,
-0.2051680088043213,
-0.07235334068536758,
-0.5031830072402954,
0.2173892706632614,
0.02283971756696701,
0.06465532630681992,
-0.0733707994222641,
-0.20144148170948029,
-0.04227151721715927,
-0.1895211935043335,
0.04647812619805336,
-0.250905841588974,
-0.004859393462538719,
0.007204065099358559,
-0.02286345511674881,
-0.33081138134002686,
-0.19498680531978607,
0.30617865920066833,
0.19610145688056946,
0.24383962154388428,
0.3593723475933075,
-0.0001229588669957593,
-0.05440257862210274,
0.5495912432670593,
-0.09782195836305618,
-0.49127620458602905,
0.004013270139694214,
-0.24950289726257324,
-0.44543445110321045,
-0.22794555127620697,
-0.3935522437095642,
0.11221986263990402,
-0.18358296155929565,
0.27408716082572937,
-0.24969671666622162,
0.2385207563638687,
-0.05580510199069977,
0.12107405066490173,
0.13389632105827332,
-0.01212242990732193,
-0.21067066490650177,
0.45131316781044006,
0.23755276203155518,
0.05545491725206375,
-0.012531587854027748,
-0.09846669435501099,
0.06568985432386398,
0.02681604027748108,
0.234527125954628,
-0.2863786518573761,
-0.0447692908346653,
0.11631269007921219,
-0.0015278849750757217,
-0.3468816876411438,
-0.4977552592754364,
0.47946369647979736,
0.4737914204597473,
0.8442748188972473,
0.004601221531629562,
-0.538409948348999,
0.03316729515790939,
-0.11139201372861862,
0.11121344566345215,
0.23515459895133972,
0.11247153580188751,
0.02282174676656723,
0.06903952360153198,
0.19272056221961975,
-0.25564050674438477,
-0.13474130630493164,
0.5621656179428101,
-0.05249567702412605,
0.2717708647251129,
-0.05749564617872238,
0.05986916273832321,
-0.13282088935375214,
-0.36881983280181885,
-0.19328562915325165,
-0.35078081488609314,
-0.06577649712562561,
0.3892229199409485,
-0.056202005594968796,
0.06232539564371109,
-0.021005704998970032,
0.05249559134244919,
0.19179800152778625,
-0.30677086114883423,
-0.11697642505168915,
0.06691303849220276,
-0.16210617125034332,
0.06267482042312622,
0.32605016231536865,
-0.3407636284828186,
0.17385819554328918,
-0.07786013931035995,
0.5702997446060181,
0.19263722002506256,
0.31619566679000854,
-0.09168311208486557,
0.12491889297962189,
-0.236668661236763,
-0.5126217007637024,
-0.13942918181419373,
0.3146573305130005,
-0.3560968339443207,
-0.07245193421840668,
0.2883738875389099,
-0.2865234315395355,
-0.14538942277431488,
-0.12336327880620956,
0.20369961857795715,
-0.13391733169555664,
0.5179426074028015,
0.29821836948394775,
0.30381107330322266,
-0.3278166949748993,
-0.25406622886657715,
-0.02116762101650238,
0.20390242338180542,
0.02312813326716423,
0.1362648904323578,
0.1199016124010086,
0.1104363203048706,
0.3128019869327545,
0.11074241995811462,
-0.3744213581085205,
-0.15863099694252014,
-0.19136931002140045,
-0.3921233117580414,
-0.2933778166770935,
0.12617181241512299,
0.17268109321594238,
0.6361402869224548,
-0.19003209471702576,
-0.06662086397409439,
-0.1566777527332306,
0.03395892679691315,
-0.32671216130256653,
0.05505232885479927,
0.015145447105169296,
0.06054123863577843,
-0.327328085899353,
0.15861764550209045,
-0.1109117940068245,
0.3376908302307129,
0.11732929199934006,
-0.10492286086082458,
-0.008224740624427795,
0.12746088206768036,
-0.497820109128952,
-0.21385248005390167,
0.3126983046531677,
0.5953323841094971,
-0.31359434127807617,
-0.18511371314525604,
-0.29153335094451904,
-0.03765410557389259,
0.4077919125556946,
0.30561140179634094,
-0.21885667741298676,
0.5591304302215576,
-0.11772044748067856,
0.3358743190765381,
0.39517781138420105,
0.022392790764570236,
-0.26235610246658325,
0.29255610704421997,
0.123920738697052,
0.0408448725938797,
0.12880198657512665,
0.0077933138236403465,
0.3497216999530792,
-0.20551328361034393,
0.09457065165042877,
0.3914223313331604,
0.18771837651729584,
-0.010973403230309486,
-0.40244749188423157,
-0.17103314399719238,
0.1444333791732788,
0.06237884983420372,
0.5195037722587585,
-0.20343688130378723,
0.2514820694923401,
0.8731661438941956,
0.18318922817707062,
-0.09382626414299011,
0.33912962675094604,
0.4350098967552185,
-0.2459397166967392,
-0.0714772492647171,
0.052601154893636703,
-0.04832174628973007,
-0.03143812716007233,
0.21112671494483948,
-0.058117177337408066,
0.09678323566913605,
-0.08000251650810242,
-0.012828854843974113,
-0.4011957347393036,
-0.1340048909187317,
0.08001267910003662,
0.22159121930599213,
0.08068092912435532,
0.0674152746796608,
0.07192514836788177,
0.36998113989830017,
0.33692482113838196,
-0.2911366820335388,
0.0421011745929718,
-0.09573725610971451,
-0.2730640172958374,
0.4055635631084442,
-0.05287528783082962,
0.0807260125875473,
0.09917952120304108,
-0.08464280515909195,
0.43391892313957214,
0.08910436183214188,
-0.08818958699703217,
0.14348909258842468,
0.14928245544433594,
0.23376286029815674,
0.19636398553848267,
-0.19927363097667694,
0.42553842067718506,
-0.09396110475063324,
0.3312922716140747,
0.4810965359210968,
0.3032815158367157,
-0.17824308574199677,
-0.05550827085971832,
0.35927557945251465,
-0.061014968901872635,
-0.004280216991901398,
-0.10605724155902863,
0.024104395881295204,
0.42843934893608093,
0.0023236535489559174,
0.21958662569522858,
-0.11643128097057343,
0.2630825638771057,
0.32678285241127014,
-0.15340019762516022,
0.18499892950057983,
-0.404165655374527,
-0.1354706585407257,
0.2976030111312866,
-0.18961690366268158,
0.25382721424102783,
-0.048617348074913025,
-0.2241094708442688,
-0.04190140217542648,
0.26037830114364624,
-0.060193683952093124,
0.14251412451267242,
0.0995980054140091,
0.22030700743198395,
-0.3262496888637543,
0.23103076219558716,
-0.23566193878650665,
0.11770731210708618,
0.25148946046829224,
0.28106969594955444,
0.19338104128837585,
0.10269610583782196,
-0.0038804011419415474,
-0.19056743383407593,
0.33517366647720337,
0.01254289411008358,
0.28887149691581726,
-0.12637898325920105,
-0.12773022055625916,
-0.34529566764831543,
-0.2878988981246948,
-0.22197702527046204,
0.06449927389621735,
-0.3378765881061554,
-0.39407071471214294,
0.12147843837738037,
0.06976884603500366,
-0.36930540204048157,
0.02066645957529545,
-0.22398917376995087,
-0.20447726547718048,
-0.009006742388010025,
-0.040645502507686615,
-0.1930987685918808,
-0.24008667469024658,
-0.2265387773513794,
-0.05120907723903656,
0.43715643882751465,
0.3024931252002716,
0.0755089521408081,
-0.11437128484249115,
-0.41475027799606323,
-0.5120034217834473,
-0.16606837511062622,
0.08262273669242859,
0.05023641139268875,
0.11437749862670898,
-0.05435292422771454,
0.5414712429046631,
-0.10685799270868301,
-0.0764501616358757,
0.1659405529499054,
0.04849815368652344,
-0.07984959334135056,
0.16367225348949432,
-0.04984842613339424,
0.17006734013557434,
-0.11344875395298004,
-0.28229135274887085,
-0.1761108636856079,
-0.3117094933986664,
-0.09622234106063843,
-0.03358208388090134,
0.1293969601392746,
-0.2546256184577942,
0.20747610926628113,
-0.0002653305418789387,
0.28094083070755005,
0.2127450406551361,
-0.2763460576534271,
-0.0757424607872963,
0.5759846568107605,
-0.06145766004920006,
-0.4606330394744873,
0.12267053127288818,
-0.11521890759468079,
0.009703528136014938,
0.23437687754631042,
-0.27426260709762573,
0.1766478717327118,
0.1256103515625,
0.1635240912437439,
0.2701587677001953,
0.1058925986289978,
0.04779248312115669,
-0.27580058574676514,
0.09895460307598114,
-0.04391288384795189,
0.20631690323352814,
-0.17596712708473206,
-0.18967175483703613,
0.4950904846191406,
0.3496001660823822,
0.3793676197528839,
-0.005783252418041229,
0.7121012210845947,
0.05697276070713997,
0.29388731718063354,
0.2979911267757416,
0.4623817801475525,
0.22558316588401794,
0.12471282482147217,
-0.057358287274837494,
0.032304730266332626,
0.02654431015253067,
-0.04259060323238373,
0.32553336024284363,
0.04373665899038315,
-0.24376638233661652,
-0.3523828387260437,
-0.40219801664352417,
-0.390676885843277,
-0.3430945575237274,
-0.12323643267154694,
0.12068464607000351,
0.1984216868877411,
0.029595252126455307,
0.4019576907157898,
-0.04594770446419716,
-0.29929959774017334,
0.20810914039611816,
0.18608896434307098,
0.1698552966117859,
0.21597400307655334,
-0.17853648960590363,
-0.011609422974288464,
-0.6008847951889038,
0.32617536187171936,
0.02678566612303257,
0.4545503854751587,
0.08817601203918457,
-0.02089614048600197,
-0.009240873157978058,
-0.027182696387171745,
0.18704429268836975,
-0.2470458298921585,
0.195052370429039,
-0.009368382394313812,
-0.004678450524806976,
-0.3588564693927765,
-0.013991732150316238,
-0.25174546241760254,
0.3396541178226471,
0.4902348220348358,
0.1815750151872635,
-0.7124365568161011,
-0.21909354627132416,
0.04429525136947632,
0.25706881284713745,
-0.0436675027012825,
0.0031188102439045906,
-0.1446419656276703,
-0.39238396286964417,
-0.17840488255023956,
-0.1384063959121704,
-0.07712637633085251,
0.1772804856300354,
-0.1561441421508789,
0.2250794917345047,
-0.1892370581626892,
0.39779141545295715,
0.07433019578456879,
0.0665280669927597,
0.1463591456413269,
0.07634463161230087,
0.11544051766395569,
0.23553131520748138,
0.0401747040450573,
0.2300618588924408,
0.41187548637390137,
0.12961456179618835,
-0.2944786250591278,
-0.012818146497011185,
-0.05082349851727486,
-0.21173825860023499,
0.238942950963974,
-0.06777707487344742,
0.18527188897132874,
0.2178448587656021,
-0.1946917325258255,
-0.019846320152282715,
-0.042719487100839615,
0.18585580587387085,
-0.07166934758424759,
-0.3859539330005646,
-0.14378076791763306,
0.44327858090400696,
0.1628168225288391,
-0.10311044752597809,
-0.19943755865097046,
0.14125511050224304,
-0.2291523814201355,
0.09116952866315842,
0.16009952127933502,
0.9271133542060852,
-0.15485386550426483,
0.05945471674203873,
-0.009631644934415817,
0.03612949699163437,
0.7885259389877319,
-0.12214212864637375,
0.03516172617673874,
-0.3013249337673187,
0.07778589427471161,
-0.04477626085281372,
0.3443167209625244,
0.10867558419704437,
0.06914173811674118,
-0.15679936110973358,
0.3911784589290619,
0.21913586556911469,
0.23665551841259003,
0.02403533272445202,
0.36853358149528503,
0.06844279170036316,
-0.26137685775756836,
-0.6115052103996277,
0.07297281175851822,
-0.33134758472442627,
0.3894525170326233,
-0.24409693479537964,
-0.20149408280849457,
-0.24793653190135956,
-0.2265235334634781,
-0.09817944467067719,
0.17015519738197327,
-0.0680897980928421,
0.2936490774154663,
-0.047314826399087906,
-0.4425261616706848,
0.18496234714984894,
0.27540504932403564,
0.0959625169634819,
0.246024027466774,
-0.2661029100418091,
0.07237088680267334,
-0.5269498229026794,
-0.35935428738594055,
-0.14919310808181763,
0.09855978935956955,
0.17033809423446655,
0.0349288135766983,
-0.24656984210014343,
0.1424792855978012,
-0.07763592898845673,
0.14890539646148682,
-0.22634071111679077,
-0.006730794906616211,
-0.3501858115196228,
0.07353835552930832,
-0.4028870463371277,
-0.09156782925128937,
-0.14515356719493866,
-0.19117599725723267,
0.07356689870357513,
0.07350480556488037,
0.012554571963846684,
-0.14495444297790527,
0.09232024103403091,
-0.055177442729473114,
0.0023600850254297256,
0.5868329405784607,
0.2029937207698822,
0.16537538170814514,
0.4105144441127777,
0.23458640277385712,
-0.4634014368057251,
-0.13354776799678802,
-0.04915834218263626,
-0.5260647535324097,
-0.18443328142166138,
-0.08160407841205597,
-0.22121672332286835,
0.1513572782278061,
-0.16959655284881592,
-0.1654263138771057,
0.04898262768983841,
-0.34747809171676636,
0.22898490726947784,
-0.40205639600753784,
-0.13398189842700958,
0.4330764412879944,
0.050881724804639816,
0.021949779242277145,
0.18384581804275513,
-0.21213914453983307,
0.08225768804550171,
0.06293198466300964,
-0.15670539438724518,
0.12246590852737427,
-0.34732556343078613,
0.229220911860466,
0.23237527906894684,
0.09356454014778137,
-0.0909370630979538,
-0.11529390513896942,
-0.010177139192819595,
-0.19435743987560272,
-0.0749552920460701,
-0.02251887135207653,
-0.09223383665084839,
0.19610941410064697,
0.16782644391059875,
-0.15656593441963196,
0.2242192029953003,
-0.33356159925460815,
0.21570949256420135,
-0.1956983208656311,
-0.10950206220149994,
0.26607561111450195,
-0.05070928484201431,
0.14866451919078827,
0.28798991441726685,
0.19086766242980957,
-0.2725387513637543,
0.3485669791698456,
0.06468963623046875,
0.4279116988182068,
-0.0060974895022809505,
0.34620141983032227,
0.5183969140052795,
-0.03701789304614067,
-0.2826116681098938,
0.06777834892272949,
0.00416141003370285,
-0.16339239478111267,
0.3200366795063019,
-0.20003275573253632,
-0.023917509242892265,
0.4125940799713135,
0.09942179918289185,
0.27710604667663574,
-0.017679709941148758,
0.06702201068401337,
0.16692450642585754,
0.07649005949497223,
-0.3427852690219879,
-0.1556912362575531,
0.47677814960479736,
-0.0038964999839663506,
-0.115902841091156,
0.217293843626976,
0.08111748099327087,
-0.2996648848056793,
0.06262677907943726,
0.12752708792686462,
-0.0967235192656517,
0.0020748693495988846,
0.19874848425388336,
0.1476438343524933,
0.4270268976688385,
0.13088320195674896,
0.0490468330681324,
-0.17386747896671295,
-0.02567184716463089,
-0.01515170931816101,
-0.10393636673688889,
0.26670798659324646,
0.06260854750871658,
0.12926419079303741,
-0.25373557209968567,
-0.4299645721912384,
-0.05918057635426521,
0.3715328276157379,
-0.21336594223976135,
0.09754502773284912,
-0.10800449550151825,
0.13729327917099,
0.2753455638885498,
-0.09182532876729965,
-0.248132586479187,
0.234873428940773,
-0.12792909145355225,
-0.1595342457294464,
-0.3641761839389801,
-0.3661608099937439,
-0.151807963848114,
0.1266396939754486,
0.06498672068119049,
-0.30291926860809326,
0.3505985736846924,
0.2369900643825531,
-0.1555919647216797,
-0.48273617029190063,
0.6136407256126404,
0.047105349600315094,
0.08581482619047165,
-0.35077783465385437,
-0.020106183364987373,
-0.12583112716674805,
-0.12155009806156158,
0.0426194928586483,
0.3631495535373688,
0.196198970079422,
0.2576178312301636,
-0.2872310280799866,
-0.09801534563302994,
0.24815872311592102,
0.011483507230877876,
0.06674883514642715,
0.1137956902384758,
0.08686240017414093,
0.04900680482387543,
0.379967600107193,
0.03553701192140579,
-0.04414923116564751,
-0.2596738338470459,
0.34137433767318726,
-0.09962981939315796,
-0.06947991251945496,
-0.08736876398324966,
-0.22033271193504333,
-0.06793826818466187,
-0.08134656399488449,
-0.1937381625175476,
-0.44491782784461975,
0.019369859248399734,
-0.01288340799510479,
0.18321344256401062,
0.23054027557373047,
-0.13413862884044647,
0.0006929095834493637,
-0.23482945561408997,
0.2933221757411957,
0.3240308463573456,
0.012402679771184921,
-0.28750401735305786,
-0.08198244124650955,
-0.4557195007801056,
0.008493870496749878,
-0.5040402412414551,
0.05980867147445679,
-0.06060998886823654,
0.3379020690917969,
-0.031523168087005615,
0.12960284948349,
0.044180430471897125,
-0.12633225321769714,
0.006875528953969479,
0.18654614686965942,
-0.3257720172405243,
-0.17008592188358307,
-0.10837008059024811,
-0.0020762868225574493,
-0.2598437964916229,
-0.44663476943969727,
0.27314338088035583,
-0.31991782784461975,
-0.05900269001722336,
-0.021291006356477737,
-0.05399579927325249,
0.07761453092098236,
0.21340562403202057,
0.2402752935886383,
0.12543760240077972,
0.1058243066072464,
-0.12928584218025208,
-0.06216779351234436,
-0.3213852345943451,
-0.1486058533191681,
-0.0030958778224885464,
0.3434608280658722,
-0.17139752209186554,
0.5078704357147217,
-0.1118917390704155,
0.13814231753349304,
-0.17435230314731598,
0.48900848627090454,
-0.26555636525154114,
0.14744623005390167,
-0.1639413833618164,
0.072664774954319,
-0.3710719048976898,
0.040503062307834625,
-0.10020049661397934,
0.015493828803300858,
-0.19507986307144165,
0.12434688210487366,
-0.4994713068008423,
-0.14795821905136108,
0.16528427600860596,
-0.3241266906261444,
-0.1899728775024414,
-0.24252142012119293,
0.118177630007267,
0.2426593005657196,
0.2529580295085907,
-0.44378966093063354,
0.16766688227653503,
0.2508133351802826,
0.015453656204044819,
-0.09323783963918686,
-0.09547607600688934,
-0.12078186869621277,
-0.3056078851222992,
-0.07680143415927887,
-0.16437214612960815,
0.02452080324292183,
-0.4360067844390869,
-0.035134732723236084,
-0.2541995644569397
] |
https://github.com/huggingface/datasets/issues/778 | Unexpected behavior when loading cached csv file? | Hi ! Thanks for reporting.
The same issue was reported in #730 (but with the encodings instead of the delimiter). It was fixed by #770 .
The fix will be available in the next release :) | I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :) | 36 | Unexpected behavior when loading cached csv file?
I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :)
Hi ! Thanks for reporting.
The same issue was reported in #730 (but with the encodings instead of the delimiter). It was fixed by #770 .
The fix will be available in the next release :) | [
0.12032398581504822,
-0.14724478125572205,
-0.14466294646263123,
0.39730745553970337,
0.05969066917896271,
0.15631869435310364,
0.7675090432167053,
-0.10106955468654633,
0.32705792784690857,
0.08220398426055908,
-0.03244897723197937,
-0.0013564401306211948,
0.10880282521247864,
-0.2761227786540985,
-0.11626178026199341,
0.1431804597377777,
0.1974261999130249,
0.1384889781475067,
-0.0753115564584732,
-0.07117174565792084,
-0.2949307858943939,
0.22514840960502625,
-0.1458897590637207,
-0.18372635543346405,
-0.021259138360619545,
0.3673399090766907,
-0.0063924118876457214,
0.27042537927627563,
0.18430088460445404,
-0.3755671977996826,
0.4452942907810211,
0.20417991280555725,
0.2709942162036896,
0.35570117831230164,
-0.0001234260416822508,
-0.08472941815853119,
0.04217512905597687,
-0.24606366455554962,
-0.18249966204166412,
-0.2576674818992615,
-0.34440869092941284,
-0.32552897930145264,
0.16597895324230194,
-0.6405019164085388,
-0.08312780410051346,
0.41933727264404297,
0.010472331196069717,
-0.3650921583175659,
0.0418630912899971,
0.28998875617980957,
0.164239764213562,
-0.2764173746109009,
-0.4180564284324646,
0.3066488206386566,
0.2418937087059021,
-0.1092139482498169,
-0.20153740048408508,
0.10776923596858978,
-0.0016693249344825745,
0.21701446175575256,
-0.06735903769731522,
0.09886597096920013,
-0.2695137560367584,
0.3476353585720062,
0.3233603239059448,
0.2655830979347229,
-0.11128892749547958,
0.12094602733850479,
0.2490367889404297,
0.09577029943466187,
0.5434870719909668,
-0.01609017699956894,
-0.1401773989200592,
-0.3993292450904846,
-0.18293239176273346,
-0.9000107645988464,
0.4474705755710602,
0.11726967245340347,
0.29490357637405396,
0.2847469747066498,
-0.12212223559617996,
0.17493918538093567,
0.001711830496788025,
-0.027042947709560394,
-0.2510721683502197,
0.004283010959625244,
-0.30403631925582886,
0.11810484528541565,
-0.13769446313381195,
0.07990427315235138,
0.29396188259124756,
-0.3672233819961548,
-0.08929087221622467,
0.08883607387542725,
-0.20340342819690704,
0.2997891306877136,
-0.17134854197502136,
0.05271388217806816,
-0.19507086277008057,
0.0510888546705246,
0.1519305408000946,
-0.09218152612447739,
0.05245232209563255,
0.08868288993835449,
-0.09519064426422119,
0.27077823877334595,
0.1342918574810028,
0.1440228521823883,
0.13215205073356628,
0.027706995606422424,
-0.361052930355072,
-0.11319207400083542,
-0.04047015309333801,
-0.05746617168188095,
0.7582937479019165,
-0.024059582501649857,
-0.13366922736167908,
-0.14462018013000488,
-0.24977003037929535,
0.13100187480449677,
-0.053961098194122314,
-0.19436991214752197,
-0.31050315499305725,
0.15827202796936035,
-0.09374020248651505,
0.007411550730466843,
-0.25721830129623413,
0.12833157181739807,
-0.12474007159471512,
-0.12626631557941437,
0.013780657202005386,
-0.2658878266811371,
-0.27477341890335083,
-0.0999716967344284,
0.16765671968460083,
-0.03543416038155556,
0.13492286205291748,
0.0876382365822792,
-0.2041488140821457,
-0.3977516293525696,
-0.0401848629117012,
-0.040093645453453064,
0.494118332862854,
0.1790117472410202,
-0.03414536640048027,
0.3948509693145752,
0.2257198989391327,
-0.7923139929771423,
-0.12966251373291016,
0.2836401164531708,
-0.44829005002975464,
-0.10997825115919113,
0.0770924836397171,
0.04870561882853508,
-0.41736871004104614,
-0.057383619248867035,
-0.24082711338996887,
0.13230302929878235,
0.4306553304195404,
-0.23436161875724792,
0.07491818070411682,
-0.2795862555503845,
-0.31888535618782043,
-0.40572667121887207,
-0.12431038916110992,
0.5804480910301208,
-0.615284264087677,
-0.13548511266708374,
-0.2932516038417816,
0.045496806502342224,
0.07961973547935486,
0.21075253188610077,
-0.02807263284921646,
-0.3229221999645233,
-0.40874528884887695,
0.054459914565086365,
0.11525782942771912,
-0.17351071536540985,
-0.514596164226532,
-0.038758765906095505,
-0.16846294701099396,
0.5907815098762512,
0.34136536717414856,
0.07577158510684967,
0.4065319299697876,
-0.05890290066599846,
0.1259220838546753,
0.2793930172920227,
0.25397443771362305,
0.020392509177327156,
-0.12496459484100342,
-0.06295149773359299,
0.37297725677490234,
-0.03673267364501953,
-0.024683106690645218,
0.27013981342315674,
0.34312185645103455,
-0.47091737389564514,
0.2977422773838043,
0.10177965462207794,
-0.10567796975374222,
0.11670608818531036,
-0.16579394042491913,
0.19362133741378784,
0.21695801615715027,
-0.08564876765012741,
-0.4177289605140686,
0.15804529190063477,
0.1372051239013672,
-0.3520216643810272,
-0.11613565683364868,
-0.05021399259567261,
-0.26204177737236023,
-0.15707124769687653,
-0.17901065945625305,
-0.0666503757238388,
0.017043717205524445,
0.2542368173599243,
0.02281668782234192,
-0.002280924469232559,
0.08988797664642334,
0.47979894280433655,
0.006874049082398415,
0.1321927309036255,
-0.26797187328338623,
-0.23310261964797974,
0.020711064338684082,
-0.03529047966003418,
-0.5559324622154236,
-0.019975490868091583,
0.23222970962524414,
-0.1991238296031952,
-0.2429984211921692,
0.4130984842777252,
0.2121966928243637,
0.30527275800704956,
-0.06562837958335876,
0.17397795617580414,
0.027164995670318604,
0.23317116498947144,
0.11749488860368729,
-0.008733795955777168,
0.15518873929977417,
-0.11894247680902481,
0.16742588579654694,
0.5678286552429199,
0.07828819751739502,
0.2709798812866211,
-0.20864753425121307,
-0.18897952139377594,
0.33827489614486694,
-0.051222752779722214,
0.03601381927728653,
-0.33989959955215454,
0.15691007673740387,
0.09348037838935852,
0.06175839528441429,
0.24206534028053284,
-0.18842841684818268,
-0.09718222171068192,
0.2958269417285919,
-0.1709134578704834,
-0.06931110471487045,
-0.06971678882837296,
-0.3157297968864441,
0.06404361128807068,
0.10985007882118225,
0.42251136898994446,
0.5408830642700195,
0.03558924421668053,
-0.027028437703847885,
-0.12263868004083633,
0.08773943781852722,
-0.3477230966091156,
0.2842808663845062,
0.05676916986703873,
-0.0782579779624939,
0.20364448428153992,
0.2016816884279251,
-0.01297346968203783,
-0.36127564311027527,
0.20478884875774384,
0.1962147355079651,
-0.3082537055015564,
-0.3972663879394531,
0.2769382894039154,
-0.42017126083374023,
0.016920752823352814,
-0.24801859259605408,
-0.05324048921465874,
-0.1965266764163971,
-0.21774396300315857,
-0.2575783133506775,
0.33691835403442383,
0.19368316233158112,
-0.11858858913183212,
-0.3190779387950897,
0.4337731599807739,
-0.1746448576450348,
-0.5059753060340881,
0.137748122215271,
-0.04159008711576462,
-0.22724410891532898,
-0.05129200220108032,
-0.057353075593709946,
-0.18902269005775452,
-0.024926407262682915,
-0.13294914364814758,
0.07262855023145676,
0.08946876972913742,
-0.15083850920200348,
-0.15774303674697876,
0.12791672348976135,
0.27754902839660645,
-0.1862485706806183,
0.04290146753191948,
0.047885432839393616,
-0.005169474985450506,
-0.06784917414188385,
0.24591699242591858,
0.21649502217769623,
-0.026062101125717163,
0.17688420414924622,
-0.07592663168907166,
-0.0018828511238098145,
-0.2840176522731781,
-0.30813127756118774,
0.024739567190408707,
0.031239453703165054,
0.04040846601128578,
0.11324641108512878,
-0.0014865826815366745,
-0.3966304659843445,
-0.19579710066318512,
0.17629152536392212,
0.12167257070541382,
-0.41136717796325684,
-0.3755250871181488,
0.47566890716552734,
-0.22183161973953247,
-0.08784882724285126,
0.14510612189769745,
-0.03379228338599205,
-0.06690719723701477,
-0.04336746782064438,
-0.3657761216163635,
0.43102219700813293,
-0.262676864862442,
0.254251629114151,
0.23469652235507965,
-0.23925848305225372,
0.25659674406051636,
-0.023465892300009727,
0.21685713529586792,
-0.21948444843292236,
-0.3927707374095917,
0.19542893767356873,
0.12328388541936874,
0.3100219666957855,
0.15949469804763794,
0.1339704990386963,
-0.02793683484196663,
0.7450910210609436,
-0.17182262241840363,
-0.09831129014492035,
0.3850102126598358,
0.07509924471378326,
0.34123432636260986,
-0.01812778413295746,
-0.07120487093925476,
-0.03781324625015259,
-0.12658140063285828,
-0.3021034598350525,
0.28341859579086304,
0.10661949217319489,
-0.2146606147289276,
-0.1131851077079773,
0.1987176239490509,
-0.2486717402935028,
-0.3150980472564697,
-0.004506928846240044,
-0.1817227154970169,
-0.09723939746618271,
0.3563120365142822,
0.061451688408851624,
-0.2178485095500946,
-0.2576107084751129,
-0.21463793516159058,
0.4987209439277649,
0.24520587921142578,
-0.08135697990655899,
0.03624759241938591,
-0.07812484353780746,
-0.03855150192975998,
0.286327987909317,
0.20014306902885437,
0.17608053982257843,
0.02477322891354561,
-0.17576900124549866,
0.19130989909172058,
0.21364307403564453,
0.7930593490600586,
-0.2811439633369446,
0.15688571333885193,
0.09410159289836884,
0.09948092699050903,
0.020585181191563606,
-0.294854998588562,
0.07980595529079437,
0.19794265925884247,
0.02108336240053177,
0.21698138117790222,
0.09038832038640976,
0.162583127617836,
-0.06342895328998566,
0.2885497212409973,
-0.17607975006103516,
-0.43018558621406555,
-0.18134450912475586,
0.2266562581062317,
0.024566838517785072,
-0.08184673637151718,
-0.10827051848173141,
0.10652316361665726,
-0.32591959834098816,
0.017532851547002792,
-0.15573285520076752,
0.14712050557136536,
0.05698618292808533,
0.06967209279537201,
0.15171071887016296,
-0.035504184663295746,
-0.017529349774122238,
0.24422681331634521,
0.10197542607784271,
0.12028969824314117,
0.45389828085899353,
-0.261204332113266,
-0.39222705364227295,
-0.0007031578570604324,
-0.19609478116035461,
0.027452751994132996,
0.1697658747434616,
-0.10677989572286606,
0.2334296703338623,
-0.07907047867774963,
-0.2604858875274658,
-0.003510197624564171,
-0.18146811425685883,
0.1122141107916832,
0.20381993055343628,
-0.4512125551700592,
-0.40586280822753906,
0.3258875906467438,
-0.055478498339653015,
-0.25592947006225586,
0.1496507227420807,
-0.09499213099479675,
-0.47655436396598816,
0.38971227407455444,
-0.21410787105560303,
0.7907222509384155,
-0.0782906711101532,
0.23483796417713165,
-0.27942195534706116,
-0.35388970375061035,
0.0862283930182457,
0.03831647336483002,
0.12606030702590942,
-0.23946692049503326,
-0.49583831429481506,
-0.1892155408859253,
0.10015030205249786,
0.34394630789756775,
0.2582055330276489,
0.1379610002040863,
0.3105573058128357,
-0.40349602699279785,
0.45322349667549133,
-0.02895074151456356,
-0.12057144194841385,
0.04074617475271225,
-0.1886201649904251,
-0.019752535969018936,
0.01880047842860222,
0.039160095155239105,
0.22141970694065094,
0.07358867675065994,
0.13054326176643372,
-0.03309789299964905,
0.05067978799343109,
-0.24187594652175903,
-0.132867693901062,
-0.042451489716768265,
0.0774860754609108,
-0.20335185527801514,
-0.5004673004150391,
0.11649882793426514,
0.4811640679836273,
0.09561800956726074,
0.06970516592264175,
0.09791241586208344,
0.29056254029273987,
0.4477479159832001,
0.20443162322044373,
0.042296070605516434,
-0.14407479763031006,
0.08523918688297272,
0.2692611813545227,
-0.030807748436927795,
0.03128628805279732,
-0.23425473272800446,
-0.2706262469291687,
0.0721677839756012,
0.21938583254814148,
-0.0028328225016593933,
-0.23970527946949005,
-0.4396776258945465,
-0.3141617178916931,
0.06720161437988281,
-0.032040826976299286,
0.025117972865700722,
-0.1814769059419632,
0.0804365947842598,
0.15778279304504395,
-0.2707759141921997,
-0.604049801826477,
-0.25272560119628906,
0.48607394099235535,
0.13384664058685303,
-0.22659482061862946,
0.4920772314071655,
-0.25276297330856323,
-0.17197878658771515,
0.025106877088546753,
0.17293983697891235,
-0.19216854870319366,
-0.07065147906541824,
0.10882540047168732,
0.0554744228720665,
0.17798186838626862,
-0.04067670553922653,
-0.05616471543908119,
0.12890592217445374,
0.18949416279792786,
-0.18919019401073456,
-0.512854278087616,
-0.01397799327969551,
-0.27736562490463257,
-0.17631493508815765,
-0.032136838883161545,
0.3331453204154968,
-0.35265764594078064,
-0.09277787804603577,
-0.18667052686214447,
-0.14700132608413696,
0.23972423374652863,
0.23965874314308167,
0.07130400836467743,
0.30873405933380127,
0.2459811568260193,
0.07091954350471497,
-0.06964807212352753,
0.05927246809005737,
0.07211121171712875,
0.06865563988685608,
-0.11273898929357529,
-0.32640761137008667,
0.2004229873418808,
-0.040980249643325806,
0.10222100466489792,
-0.25323283672332764,
-0.37421995401382446,
0.10082608461380005,
-0.3272666037082672,
0.14541207253932953,
0.3303660452365875,
0.09030723571777344,
0.14556489884853363,
0.039387062191963196,
0.14868003129959106,
-0.3327030539512634,
0.16661284863948822,
-0.3360438346862793,
0.18825732171535492,
0.13420815765857697,
0.1283867061138153,
-0.3437959551811218,
0.23365506529808044,
-0.3437272608280182,
-0.09053238481283188,
-0.20872579514980316,
0.16935649514198303,
0.38302478194236755,
-0.3520565629005432,
0.21398958563804626,
0.4557954668998718,
0.29274022579193115,
0.27568191289901733,
-0.11299026012420654,
-0.277230441570282,
0.13143418729305267,
0.03612624108791351,
-0.02823576144874096,
-0.12416816502809525,
0.15957653522491455,
0.0667332336306572,
-0.031117670238018036,
0.36783844232559204,
0.21502330899238586,
0.04458598792552948,
0.06523779779672623,
-0.015162673778831959,
0.7256935834884644,
-0.26096493005752563,
0.4738337993621826,
0.4797535836696625,
0.2778431475162506,
0.36332669854164124,
0.4889659881591797,
0.018202155828475952,
-0.056457243859767914,
0.7593064308166504,
0.12221816182136536,
0.18373043835163116,
0.5540968775749207,
0.07046575844287872,
-0.3536398410797119,
-0.5032404065132141,
0.23173841834068298,
0.14060257375240326,
-0.43016529083251953,
0.5627184510231018,
0.37287119030952454,
0.18791604042053223,
-0.3548077344894409,
0.01792999543249607,
-0.34998783469200134,
-0.10776251554489136,
-0.13464578986167908,
-0.3442689776420593,
0.19182683527469635,
-0.10224741697311401,
0.06102357804775238,
0.14658041298389435,
-0.2583983540534973,
0.1731935441493988,
0.2608605623245239,
-0.003771170973777771,
-0.04253706336021423,
-0.4601890742778778,
0.08375995606184006,
-0.18450963497161865,
0.4517957270145416,
-0.1802871972322464,
0.09525150805711746,
-0.03905715048313141,
-0.04515936225652695,
0.4648660123348236,
-0.3121075928211212,
0.3018798828125,
0.2521137595176697,
0.3326144218444824,
-0.22773809731006622,
-0.05516144260764122,
-0.03242721036076546,
0.038237202912569046,
0.32123586535453796,
0.12877203524112701,
0.020046435296535492,
0.14614447951316833,
0.08918989449739456,
-0.037931133061647415,
0.5240590572357178,
0.4534054100513458,
0.27709493041038513,
-0.5207792520523071,
-0.3061744272708893,
0.026979215443134308,
0.000631473958492279,
-0.2785097360610962,
-0.09139328449964523,
-0.03443194925785065,
0.09435102343559265,
0.2659898102283478,
0.04184382036328316,
0.31210562586784363,
0.22372405230998993,
0.012419089674949646,
0.2612023651599884,
0.1443602591753006,
0.23283042013645172,
-0.09914463013410568,
-0.2329225391149521,
0.21417690813541412,
-0.7888928055763245,
0.05324432998895645,
0.22868485748767853,
0.18594323098659515,
-0.012466950342059135,
0.06989562511444092,
-0.005308650434017181,
0.019603852182626724,
0.13030223548412323,
0.04901725798845291,
0.2602849304676056,
0.4160325527191162,
-0.029749564826488495,
-0.3272881507873535,
0.13273459672927856,
-0.10522519052028656,
-0.20893636345863342,
-0.3332625925540924,
0.13372743129730225,
0.256519079208374,
-0.07383564114570618,
-0.13680656254291534,
-0.0006605163216590881,
0.15044674277305603,
0.34593644738197327,
0.3318856358528137,
0.008983226493000984,
0.47527384757995605,
0.026408512145280838,
0.1231701448559761,
-0.17901191115379333,
-0.09658678621053696,
-0.25013843178749084,
0.13033388555049896,
0.036344900727272034,
0.13600200414657593,
-0.3375626504421234,
0.04012172296643257,
0.010268558748066425,
0.31920960545539856,
0.15898793935775757,
-0.075591541826725,
-0.3314597010612488,
-0.1442616879940033,
-0.16625891625881195,
0.09043636918067932,
0.04696061089634895,
0.28563785552978516,
0.034699127078056335,
0.41233882308006287,
0.1802205890417099,
-0.18005266785621643,
0.10230766236782074,
-0.1942434012889862,
-0.17626100778579712,
0.12691935896873474,
0.252234548330307,
0.01303119957447052,
-0.09838611632585526,
-0.2418578863143921,
0.017954841256141663,
0.5038870573043823,
-0.2512522339820862,
-0.14801223576068878,
0.12069544196128845,
-0.07644112408161163,
0.12615570425987244,
-0.2026413083076477,
0.4905097186565399,
0.3065372109413147,
-0.3316526412963867,
-0.05541454255580902,
-0.2716313600540161
] |
https://github.com/huggingface/datasets/issues/778 | Unexpected behavior when loading cached csv file? | Thanks for the prompt reply and terribly sorry for the spam!
Looking forward to the new release! | I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :) | 17 | Unexpected behavior when loading cached csv file?
I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :)
Thanks for the prompt reply and terribly sorry for the spam!
Looking forward to the new release! | [
0.06356354057788849,
-0.1376713663339615,
-0.16112247109413147,
0.3697884678840637,
0.024029361084103584,
0.1698583960533142,
0.7317380905151367,
-0.0952794998884201,
0.34567612409591675,
0.062181342393159866,
-0.019688541069626808,
0.026357874274253845,
0.09261885285377502,
-0.2516990303993225,
-0.12035827338695526,
0.1674453616142273,
0.21845972537994385,
0.15186361968517303,
-0.1047641932964325,
-0.07660799473524094,
-0.2986096441745758,
0.23354904353618622,
-0.15578985214233398,
-0.20520426332950592,
0.003821012331172824,
0.3678065538406372,
0.009452475234866142,
0.26381629705429077,
0.147474005818367,
-0.3517836928367615,
0.4878273606300354,
0.28490179777145386,
0.2567985951900482,
0.35356834530830383,
-0.00012406818859744817,
-0.10253512859344482,
0.03308429569005966,
-0.25037261843681335,
-0.1672683209180832,
-0.22471804916858673,
-0.30109545588493347,
-0.32426369190216064,
0.18650729954242706,
-0.6597777009010315,
-0.08492230623960495,
0.42067673802375793,
0.014171285554766655,
-0.38347184658050537,
-0.00654236227273941,
0.26769763231277466,
0.1516818106174469,
-0.20331630110740662,
-0.42388272285461426,
0.28953269124031067,
0.3160741627216339,
-0.12042593955993652,
-0.2209731489419937,
0.11174218356609344,
0.011641860008239746,
0.20739150047302246,
-0.06467398256063461,
0.12265874445438385,
-0.25822320580482483,
0.37901070713996887,
0.40348151326179504,
0.24933335185050964,
-0.15648478269577026,
0.14347361028194427,
0.2393331229686737,
0.11486994475126266,
0.6052812337875366,
-0.05864366888999939,
-0.1364406794309616,
-0.40687522292137146,
-0.1744261533021927,
-0.8670362830162048,
0.43613824248313904,
0.0539969801902771,
0.3069911003112793,
0.24677643179893494,
-0.12642966210842133,
0.14848670363426208,
-0.03155418112874031,
-0.019789569079875946,
-0.24629247188568115,
0.023623190820217133,
-0.29510241746902466,
0.14033713936805725,
-0.1081196516752243,
0.1042862981557846,
0.2891932725906372,
-0.3306141495704651,
-0.1047821193933487,
0.11542225629091263,
-0.22472964227199554,
0.2880321145057678,
-0.14132681488990784,
0.063646100461483,
-0.1719518005847931,
0.10048110783100128,
0.1826496720314026,
-0.07900024950504303,
0.0503775030374527,
0.04908999800682068,
-0.028729982674121857,
0.28903868794441223,
0.1269848644733429,
0.12086115032434464,
0.16396144032478333,
-0.007472521159797907,
-0.355106920003891,
-0.11577057093381882,
-0.0323820561170578,
-0.06729945540428162,
0.7882556915283203,
-0.050297632813453674,
-0.12804019451141357,
-0.1559325009584427,
-0.23306366801261902,
0.10187064856290817,
-0.014427032321691513,
-0.2141038328409195,
-0.25983554124832153,
0.1710566282272339,
-0.10397344082593918,
0.0490737110376358,
-0.27298855781555176,
0.08230026066303253,
-0.14718717336654663,
-0.04794660210609436,
0.017731057479977608,
-0.2720465660095215,
-0.3006330132484436,
-0.10743360221385956,
0.1478467434644699,
-0.036641884595155716,
0.1687694936990738,
0.07547156512737274,
-0.20455731451511383,
-0.3488113582134247,
0.00925241969525814,
-0.04012969136238098,
0.49402284622192383,
0.21629129350185394,
-0.05319482460618019,
0.4039781093597412,
0.15931136906147003,
-0.7147267460823059,
-0.15183261036872864,
0.27303269505500793,
-0.43158072233200073,
-0.15691092610359192,
0.07633630931377411,
0.049202218651771545,
-0.39406484365463257,
-0.06746336072683334,
-0.22174736857414246,
0.11517460644245148,
0.40865960717201233,
-0.24358399212360382,
0.13091909885406494,
-0.29051101207733154,
-0.25524166226387024,
-0.42074334621429443,
-0.14564983546733856,
0.5577815771102905,
-0.6230275630950928,
-0.162529855966568,
-0.31367775797843933,
-0.01592642068862915,
0.011561058461666107,
0.19590945541858673,
-0.04124213382601738,
-0.3160282373428345,
-0.4081633985042572,
0.05110953748226166,
0.18886756896972656,
-0.2318173497915268,
-0.5006058216094971,
-0.0646834522485733,
-0.11671562492847443,
0.5130482912063599,
0.36481934785842896,
0.12948159873485565,
0.35245025157928467,
-0.03673749789595604,
0.12973888218402863,
0.25712698698043823,
0.2665058374404907,
-0.002544017508625984,
-0.07710768282413483,
-0.06752773374319077,
0.34319835901260376,
-0.024657713249325752,
-0.01689673587679863,
0.246048241853714,
0.3091089129447937,
-0.43245643377304077,
0.2762362062931061,
0.10572165250778198,
-0.1308591365814209,
0.07794942706823349,
-0.17778415977954865,
0.22335952520370483,
0.2501088082790375,
-0.10727569460868835,
-0.42297792434692383,
0.1568692922592163,
0.1533784717321396,
-0.3806137442588806,
-0.06885869801044464,
-0.08610422909259796,
-0.2696952819824219,
-0.15010756254196167,
-0.13606242835521698,
-0.07379965484142303,
-0.005573578178882599,
0.2782977521419525,
0.051058705896139145,
-0.054014384746551514,
0.0189768485724926,
0.4882964789867401,
-0.002305930480360985,
0.14750736951828003,
-0.30202892422676086,
-0.28915074467658997,
0.02960769645869732,
-0.028103183954954147,
-0.548979640007019,
-0.01583017408847809,
0.2357131540775299,
-0.2063463032245636,
-0.19935855269432068,
0.4474979639053345,
0.21407940983772278,
0.3029049038887024,
-0.04887989163398743,
0.1910492181777954,
0.02597682736814022,
0.30046507716178894,
0.12069962173700333,
-0.03385427966713905,
0.14117394387722015,
-0.12104546278715134,
0.16551852226257324,
0.5786076188087463,
0.04641124978661537,
0.2709972560405731,
-0.18223412334918976,
-0.18571120500564575,
0.32851341366767883,
-0.03271069377660751,
0.03954952955245972,
-0.33517658710479736,
0.14688648283481598,
0.11177405714988708,
0.08774833381175995,
0.20427286624908447,
-0.19070649147033691,
-0.10305090993642807,
0.26954302191734314,
-0.1807534545660019,
-0.08293355256319046,
-0.13250672817230225,
-0.3261301517486572,
0.035743504762649536,
0.13225232064723969,
0.4256303012371063,
0.5540504455566406,
0.04659191146492958,
-0.01945696398615837,
-0.11377698928117752,
0.033629778772592545,
-0.32710587978363037,
0.31686338782310486,
0.04379826784133911,
-0.14390721917152405,
0.19177088141441345,
0.1746734082698822,
-0.07265039533376694,
-0.4310671389102936,
0.1965797394514084,
0.20528261363506317,
-0.3256497383117676,
-0.3820697069168091,
0.2823597490787506,
-0.36169886589050293,
-0.01122279278934002,
-0.2117985337972641,
-0.06396576017141342,
-0.18378913402557373,
-0.2088838368654251,
-0.25683140754699707,
0.3508310616016388,
0.1859334111213684,
-0.1418527066707611,
-0.3276413679122925,
0.46344447135925293,
-0.17666001617908478,
-0.4898567795753479,
0.12857496738433838,
-0.06693901866674423,
-0.19741880893707275,
-0.057151760905981064,
-0.1172996386885643,
-0.16587278246879578,
0.022438490763306618,
-0.15321950614452362,
0.08540360629558563,
0.05786120146512985,
-0.1726195514202118,
-0.1545439064502716,
0.1547122746706009,
0.2643894553184509,
-0.09850892424583435,
0.03521508723497391,
0.11348791420459747,
0.0029838131740689278,
-0.10295117646455765,
0.21510231494903564,
0.20498766005039215,
-0.08997360616922379,
0.1729828119277954,
-0.03936787322163582,
-0.0015086084604263306,
-0.28963997960090637,
-0.265674889087677,
0.03365215286612511,
0.038593556731939316,
0.09365569055080414,
0.11152784526348114,
0.04079195111989975,
-0.44113558530807495,
-0.17202526330947876,
0.19781388342380524,
0.13513462245464325,
-0.4718315899372101,
-0.372562974691391,
0.463690847158432,
-0.24609890580177307,
-0.060399238020181656,
0.14534053206443787,
-0.025406967848539352,
-0.0932396650314331,
0.025303661823272705,
-0.346701979637146,
0.3654436767101288,
-0.2504650056362152,
0.26985669136047363,
0.24204213917255402,
-0.20395539700984955,
0.2793789505958557,
-0.04691282659769058,
0.20263488590717316,
-0.23835459351539612,
-0.3993458151817322,
0.18408575654029846,
0.14583159983158112,
0.3319685757160187,
0.14047594368457794,
0.08357912302017212,
-0.08530429750680923,
0.7569001317024231,
-0.26578015089035034,
-0.10968074202537537,
0.419429212808609,
0.06698775291442871,
0.383532851934433,
-0.011438809335231781,
-0.08064489811658859,
-0.042029764503240585,
-0.1353837549686432,
-0.323231041431427,
0.2571459114551544,
0.11521883308887482,
-0.23030269145965576,
-0.13568700850009918,
0.18448862433433533,
-0.23556381464004517,
-0.28455615043640137,
-0.03718738257884979,
-0.1540185660123825,
-0.0991356149315834,
0.3531804084777832,
0.06558690220117569,
-0.2425341010093689,
-0.2362828254699707,
-0.18668900430202484,
0.5406585931777954,
0.22780415415763855,
-0.08690308779478073,
0.01889345422387123,
-0.06989818066358566,
-0.03429024666547775,
0.2807683050632477,
0.17066946625709534,
0.1107892096042633,
0.04889579489827156,
-0.22495010495185852,
0.20761722326278687,
0.17625896632671356,
0.8500130772590637,
-0.3017203211784363,
0.13750338554382324,
0.12695781886577606,
0.12239548563957214,
0.021555157378315926,
-0.30888381600379944,
0.07738956809043884,
0.24684835970401764,
0.04607986658811569,
0.21356762945652008,
0.10073823481798172,
0.15259507298469543,
-0.04008292406797409,
0.27304619550704956,
-0.1604163646697998,
-0.4337269067764282,
-0.18592901527881622,
0.19938752055168152,
0.05147340148687363,
-0.08317681401968002,
-0.13863177597522736,
0.05286287143826485,
-0.23833444714546204,
0.02045290172100067,
-0.18707279860973358,
0.0975983515381813,
0.05528656393289566,
0.13738755881786346,
0.18461599946022034,
-0.009053894318640232,
-0.03185271471738815,
0.2525264620780945,
0.11035458743572235,
0.0802551805973053,
0.42405036091804504,
-0.2737779915332794,
-0.3302914500236511,
-0.02362622320652008,
-0.13152579963207245,
0.004806935787200928,
0.16062510013580322,
-0.13550733029842377,
0.2559547424316406,
-0.11722402274608612,
-0.2612066864967346,
-0.002459644339978695,
-0.13617970049381256,
0.13548195362091064,
0.17446595430374146,
-0.4639265537261963,
-0.476758748292923,
0.3936649262905121,
-0.029493967071175575,
-0.2998775243759155,
0.14509272575378418,
-0.08464863896369934,
-0.4775100350379944,
0.3497650623321533,
-0.19611528515815735,
0.7891478538513184,
-0.0871269702911377,
0.25822827219963074,
-0.2649725377559662,
-0.37507158517837524,
0.18741294741630554,
-0.005763061344623566,
0.14132195711135864,
-0.2242700606584549,
-0.40791749954223633,
-0.18491986393928528,
0.09739010035991669,
0.3535405695438385,
0.2116335779428482,
0.16367803514003754,
0.3410290479660034,
-0.38504260778427124,
0.4457188546657562,
-0.08625264465808868,
-0.08070037513971329,
0.033900681883096695,
-0.16280312836170197,
-0.05814465135335922,
0.011183731257915497,
0.06802214682102203,
0.24223172664642334,
0.042545367032289505,
0.1523144543170929,
0.020268704742193222,
0.06151432543992996,
-0.22512640058994293,
-0.23665785789489746,
-0.00814367737621069,
0.07960715889930725,
-0.23834869265556335,
-0.4841565489768982,
0.04567163065075874,
0.46428945660591125,
0.10646793991327286,
0.06613562256097794,
0.09108587354421616,
0.3285363018512726,
0.4149172306060791,
0.18349820375442505,
0.027344612404704094,
-0.1332663744688034,
0.12055747210979462,
0.2587369382381439,
-0.012568950653076172,
-0.0029490962624549866,
-0.2334614396095276,
-0.3164701461791992,
0.061518698930740356,
0.2487824261188507,
0.00674331933259964,
-0.2406793087720871,
-0.44302281737327576,
-0.26193320751190186,
0.0514284111559391,
-0.029435981065034866,
0.013570250943303108,
-0.15993048250675201,
0.10556910187005997,
0.20528945326805115,
-0.2814004421234131,
-0.5869441032409668,
-0.28422948718070984,
0.4930378794670105,
0.1405245065689087,
-0.25895869731903076,
0.41428643465042114,
-0.28079450130462646,
-0.14334771037101746,
0.04405762255191803,
0.15678289532661438,
-0.17185474932193756,
-0.04395613819360733,
0.13659453392028809,
0.0878809466958046,
0.11424507200717926,
-0.006284905597567558,
-0.029653694480657578,
0.11003286391496658,
0.19607312977313995,
-0.21492239832878113,
-0.5005055665969849,
-0.05665382742881775,
-0.29659008979797363,
-0.16022202372550964,
0.0069441236555576324,
0.36111965775489807,
-0.38279858231544495,
-0.07571353018283844,
-0.20077204704284668,
-0.1371496170759201,
0.23016278445720673,
0.23857799172401428,
0.09019491076469421,
0.31212279200553894,
0.25195664167404175,
0.08579886704683304,
-0.0643092542886734,
0.05093526095151901,
0.06349912285804749,
0.029883377254009247,
-0.10416460037231445,
-0.35345587134361267,
0.21121731400489807,
-0.08434989303350449,
0.08532843738794327,
-0.23475073277950287,
-0.3963414430618286,
0.12316425144672394,
-0.3324138820171356,
0.20658597350120544,
0.31512197852134705,
0.10878550261259079,
0.12665079534053802,
0.028576143085956573,
0.10047782957553864,
-0.35870271921157837,
0.1733618974685669,
-0.29750052094459534,
0.1408250778913498,
0.1457120031118393,
0.14966726303100586,
-0.3840326964855194,
0.2196987271308899,
-0.28687334060668945,
-0.09419900923967361,
-0.2059144228696823,
0.1303635686635971,
0.31816521286964417,
-0.2837618589401245,
0.1729041486978531,
0.45487773418426514,
0.33508050441741943,
0.3565503656864166,
-0.09202989190816879,
-0.28128716349601746,
0.09751848876476288,
0.020241079851984978,
-0.035574547946453094,
-0.1689871996641159,
0.08088194578886032,
0.024250753223896027,
0.0017579048871994019,
0.3426404297351837,
0.23810580372810364,
0.08909295499324799,
0.05937539041042328,
-0.04458902031183243,
0.7067675590515137,
-0.22517706453800201,
0.4917098879814148,
0.5061522722244263,
0.2745926082134247,
0.3542858958244324,
0.511049747467041,
0.055295586585998535,
-0.06223636120557785,
0.8159405589103699,
0.11310013383626938,
0.23017576336860657,
0.5932111144065857,
0.060090623795986176,
-0.34016144275665283,
-0.46677878499031067,
0.24983416497707367,
0.1751909703016281,
-0.40755677223205566,
0.5800358057022095,
0.39241939783096313,
0.18852737545967102,
-0.3639143109321594,
0.0339205265045166,
-0.35511788725852966,
-0.12396666407585144,
-0.13738909363746643,
-0.41928666830062866,
0.20922991633415222,
-0.11279191076755524,
0.10460573434829712,
0.15036645531654358,
-0.2593221664428711,
0.176390141248703,
0.28750893473625183,
-0.03242473304271698,
0.006604291498661041,
-0.45233529806137085,
0.1276136189699173,
-0.23879027366638184,
0.4864197075366974,
-0.1691358983516693,
0.07768864184617996,
-0.05315615236759186,
-0.02483385056257248,
0.4844306409358978,
-0.28877943754196167,
0.30320969223976135,
0.22172261774539948,
0.34091174602508545,
-0.2214239239692688,
-0.05863666906952858,
-0.0433514304459095,
0.008881576359272003,
0.28294479846954346,
0.12422806024551392,
-0.009837783873081207,
0.16090744733810425,
0.07168436050415039,
-0.014777234755456448,
0.5873546600341797,
0.40303289890289307,
0.2435985952615738,
-0.5450233221054077,
-0.3061102330684662,
0.027220916002988815,
-0.006769753992557526,
-0.27053725719451904,
-0.050444893538951874,
-0.040472425520420074,
0.056070346385240555,
0.23880533874034882,
0.03503694012761116,
0.2924751043319702,
0.19016125798225403,
0.010531790554523468,
0.2531069219112396,
0.21734033524990082,
0.2002663016319275,
-0.08036280423402786,
-0.18167702853679657,
0.20829959213733673,
-0.8221268057823181,
0.011259317398071289,
0.24409279227256775,
0.17125479876995087,
-0.004007382318377495,
0.07897752523422241,
-0.028795801103115082,
0.00896519422531128,
0.19125264883041382,
0.026827597990632057,
0.29030314087867737,
0.369817316532135,
-0.022764116525650024,
-0.32773271203041077,
0.0798022672533989,
-0.13645173609256744,
-0.17592579126358032,
-0.3469600975513458,
0.13302549719810486,
0.2561323046684265,
-0.10769063234329224,
-0.13830159604549408,
0.04385100305080414,
0.20255835354328156,
0.35480451583862305,
0.33986979722976685,
-0.030731504783034325,
0.47659721970558167,
0.016187939792871475,
0.13224872946739197,
-0.19900619983673096,
-0.08620917797088623,
-0.2432597279548645,
0.08141373097896576,
0.06013141945004463,
0.11089432239532471,
-0.3156270980834961,
0.06905235350131989,
0.05876564979553223,
0.35225141048431396,
0.17136900126934052,
-0.06995876133441925,
-0.3251208961009979,
-0.1448875069618225,
-0.18753382563591003,
0.05877883732318878,
0.033242117613554,
0.31848639249801636,
0.03653150796890259,
0.36965692043304443,
0.13527986407279968,
-0.19239597022533417,
0.10589828342199326,
-0.20282121002674103,
-0.16243098676204681,
0.09014837443828583,
0.22838038206100464,
0.04704224318265915,
-0.073849156498909,
-0.32138368487358093,
0.04975617676973343,
0.49191856384277344,
-0.23257693648338318,
-0.1498885601758957,
0.13950692117214203,
-0.08851216733455658,
0.12349079549312592,
-0.21685686707496643,
0.47107458114624023,
0.3272686302661896,
-0.31446942687034607,
-0.0552009753882885,
-0.2917206287384033
] |
https://github.com/huggingface/datasets/issues/773 | Adding CC-100: Monolingual Datasets from Web Crawl Data | These dataset files are no longer available. https://data.statmt.org/cc-100/ files provided in this link are no longer available. Can anybody fix that issue?
@abhishekkrthakur @yjernite | ## Adding a Dataset
- **Name:** CC-100: Monolingual Datasets from Web Crawl Data
- **Description:** https://twitter.com/alex_conneau/status/1321507120848625665
- **Paper:** https://arxiv.org/abs/1911.02116
- **Data:** http://data.statmt.org/cc-100/
- **Motivation:** A large scale multi-lingual language modeling dataset. Text is de-duplicated and filtered by how "Wikipedia-like" it is, hopefully helping avoid some of the worst parts of the common crawl.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 24 | Adding CC-100: Monolingual Datasets from Web Crawl Data
## Adding a Dataset
- **Name:** CC-100: Monolingual Datasets from Web Crawl Data
- **Description:** https://twitter.com/alex_conneau/status/1321507120848625665
- **Paper:** https://arxiv.org/abs/1911.02116
- **Data:** http://data.statmt.org/cc-100/
- **Motivation:** A large scale multi-lingual language modeling dataset. Text is de-duplicated and filtered by how "Wikipedia-like" it is, hopefully helping avoid some of the worst parts of the common crawl.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
These dataset files are no longer available. https://data.statmt.org/cc-100/ files provided in this link are no longer available. Can anybody fix that issue?
@abhishekkrthakur @yjernite | [
-0.034766752272844315,
-0.06417910754680634,
-0.03452855348587036,
0.05194230005145073,
-0.016126681119203568,
0.17023438215255737,
0.010996673256158829,
0.19807080924510956,
0.08702094852924347,
0.1149844154715538,
-0.17651399970054626,
-0.19894413650035858,
-0.08366944640874863,
0.1950293332338333,
0.31830358505249023,
-0.09222199022769928,
-0.03281036764383316,
-0.11873583495616913,
-0.010283410549163818,
-0.15075451135635376,
-0.010675925761461258,
0.056740984320640564,
0.00038461387157440186,
-0.3080688714981079,
-0.3393562138080597,
-0.08872160315513611,
-0.2788294851779938,
0.03156566247344017,
-0.2544383406639099,
-0.4399435520172119,
0.2372266799211502,
0.2877616584300995,
0.30630892515182495,
0.19407488405704498,
-0.00011722680937964469,
-0.08598392456769943,
0.4490659832954407,
-0.08204137533903122,
-0.5662583112716675,
-0.3039972186088562,
-0.4111654460430145,
-0.3213917315006256,
-0.02385801263153553,
0.07444808632135391,
0.014280248433351517,
0.05766826868057251,
0.04082230105996132,
-0.4952225089073181,
0.07971785962581635,
0.24682241678237915,
0.20005013048648834,
0.14227095246315002,
0.342105507850647,
-0.5098364353179932,
-0.0018434152007102966,
0.028580009937286377,
-0.22762073576450348,
0.5623220801353455,
0.5406914353370667,
0.12409363687038422,
0.3209608495235443,
0.2826080918312073,
0.005384692922234535,
-0.3271242678165436,
0.029600415378808975,
-0.2730633616447449,
-0.1428436040878296,
-0.31519055366516113,
0.31380894780158997,
0.35635480284690857,
0.7083715796470642,
0.04832727462053299,
-0.24489642679691315,
-0.12958043813705444,
0.1551414579153061,
-0.24624738097190857,
0.09583652764558792,
0.2803424298763275,
0.10780774056911469,
0.24446497857570648,
-0.12950576841831207,
-0.522210955619812,
-0.0431504026055336,
0.43543583154678345,
0.04023062437772751,
0.127884179353714,
-0.12657426297664642,
-0.001575663685798645,
0.1517249196767807,
-0.11995719373226166,
-0.01447418611496687,
-0.033477749675512314,
0.0375799722969532,
0.10681696981191635,
-0.14593037962913513,
-0.07915519177913666,
0.15114760398864746,
0.29432517290115356,
0.2997039258480072,
0.056990887969732285,
0.27384859323501587,
-0.042014896869659424,
-0.4471983313560486,
0.09748116135597229,
0.08355635404586792,
0.03202838823199272,
0.002901047468185425,
-0.10032472014427185,
0.285185843706131,
0.03625887632369995,
0.11412107944488525,
-0.12713518738746643,
-0.14734698832035065,
-0.2251463085412979,
-0.3120799660682678,
0.1421445608139038,
0.22072488069534302,
-0.08147416263818741,
-0.30393853783607483,
0.14160725474357605,
-0.15403947234153748,
-0.1592739075422287,
0.03219413384795189,
0.1578616350889206,
0.29425951838493347,
-0.008311547338962555,
0.0643497034907341,
0.16467569768428802,
-0.3045542538166046,
-0.45528098940849304,
-0.16498486697673798,
0.13500136137008667,
-0.16146863996982574,
0.05918920785188675,
0.27583688497543335,
-0.24602773785591125,
-0.02945704013109207,
0.06498024612665176,
0.16212069988250732,
0.003935918211936951,
-0.20691119134426117,
0.08804450929164886,
-0.1872507929801941,
0.18992547690868378,
0.07203221321105957,
0.18384431302547455,
-0.1036711037158966,
-0.319519579410553,
-0.11367838084697723,
0.15752416849136353,
-0.5494632720947266,
-0.23512589931488037,
-0.36976680159568787,
0.13753755390644073,
-0.047170110046863556,
-0.21167230606079102,
-0.2660519480705261,
0.42700138688087463,
-0.04132520407438278,
-0.026989364996552467,
0.015499517321586609,
-0.006541896611452103,
-0.24568574130535126,
-0.15573503077030182,
0.02572568692266941,
0.8157108426094055,
-0.28422775864601135,
-0.10068371891975403,
-0.2750164270401001,
0.2360629290342331,
0.16976511478424072,
0.20160381495952606,
-0.34465107321739197,
0.057659365236759186,
-0.3041306138038635,
-0.0011884644627571106,
0.11663036793470383,
-0.32637733221054077,
-0.35835030674934387,
0.14239376783370972,
-0.20701687037944794,
-0.0764026865363121,
-0.06757388263940811,
-0.16626237332820892,
0.025617262348532677,
-0.11480560898780823,
0.04250136390328407,
-0.0682259276509285,
0.024051690474152565,
-0.2084503322839737,
-0.17889903485774994,
-0.21022982895374298,
0.404030442237854,
-0.1988656371831894,
0.34102532267570496,
0.047529444098472595,
0.4106575846672058,
-0.157195046544075,
0.2269609272480011,
-0.09555591642856598,
0.25543567538261414,
0.2689374089241028,
0.41292884945869446,
0.16503877937793732,
0.0585058331489563,
-0.15642358362674713,
-0.4024377465248108,
0.31050968170166016,
0.0991457998752594,
0.3002239763736725,
-0.33307838439941406,
-0.10453948378562927,
-0.33398857712745667,
-0.013162598013877869,
-0.18960170447826385,
-0.08843404054641724,
0.04226226359605789,
0.1199125200510025,
0.07861299812793732,
0.339438796043396,
0.11094915866851807,
0.22085730731487274,
-0.12140964716672897,
-0.022165978327393532,
-0.08522830903530121,
0.5067239999771118,
-0.09936758130788803,
0.0807720199227333,
0.10795040428638458,
0.26227355003356934,
0.33588552474975586,
-0.01518331840634346,
-0.16215485334396362,
0.31088683009147644,
-0.37236571311950684,
0.37030816078186035,
0.556853711605072,
0.009309902787208557,
0.5548933744430542,
-0.6518235802650452,
0.29825299978256226,
-0.014822132885456085,
0.11523038148880005,
-0.004001632332801819,
-0.12481191009283066,
-0.14784131944179535,
-0.03893094137310982,
-0.0569973960518837,
0.09508877992630005,
0.06700436025857925,
0.42833375930786133,
0.10871455073356628,
-0.08128878474235535,
-0.15952613949775696,
0.24465563893318176,
0.17631427943706512,
0.41003888845443726,
-0.20478199422359467,
-0.29985183477401733,
0.2294004261493683,
0.21058113873004913,
-0.0740269124507904,
0.08180544525384903,
0.2337205410003662,
-0.16893348097801208,
-0.04017546772956848,
0.11127534508705139,
0.1367700695991516,
0.18882538378238678,
0.16195209324359894,
0.220243901014328,
-0.22830042243003845,
-0.047591205686330795,
-0.3337659239768982,
0.1878282129764557,
0.10100995004177094,
0.04314368963241577,
0.2510782480239868,
0.31308305263519287,
0.059320997446775436,
-0.5269835591316223,
-0.17953531444072723,
0.04138428717851639,
-0.05839323252439499,
-0.07085022330284119,
-0.1477760672569275,
-0.4712435007095337,
-0.1371200978755951,
-0.308246910572052,
-0.28442299365997314,
-0.41315603256225586,
-0.31793925166130066,
-0.014089763164520264,
-0.21427690982818604,
0.021729957312345505,
-0.08083484321832657,
-0.27920591831207275,
0.2320140153169632,
-0.11619448661804199,
0.3360975384712219,
-0.03245830163359642,
-0.13973060250282288,
-0.07033485919237137,
0.04308369383215904,
0.22807855904102325,
-0.23380790650844574,
0.4334094822406769,
-0.18769966065883636,
0.18853527307510376,
-0.3229075074195862,
-0.4877737760543823,
0.06673810631036758,
-0.08769248425960541,
0.03611832857131958,
-0.1480039358139038,
0.11845456063747406,
-0.16307057440280914,
-0.20957115292549133,
0.29447227716445923,
-0.05199303478002548,
0.1621628999710083,
-0.0960448607802391,
-0.030385697260499,
-0.021329134702682495,
-0.09209632873535156,
-0.26252567768096924,
-0.5580632090568542,
-0.21898935735225677,
-0.0119037926197052,
0.09154397249221802,
-0.010010942816734314,
0.38665640354156494,
0.22587662935256958,
0.02297774702310562,
0.09894763678312302,
0.10028564184904099,
-0.3761289417743683,
-0.25729602575302124,
0.321006178855896,
-0.3540008068084717,
-0.42385753989219666,
0.1171710193157196,
-0.04499398171901703,
0.21840272843837738,
0.05655059218406677,
-0.21996794641017914,
0.3357217311859131,
-0.14765378832817078,
0.021101195365190506,
0.08760403841733932,
-0.024746159091591835,
0.36317411065101624,
-0.10361997783184052,
-0.05172099173069,
-0.15731248259544373,
-0.022480197250843048,
-0.3653295338153839,
0.3121679127216339,
0.37454962730407715,
0.09800899028778076,
0.0546223446726799,
0.16260278224945068,
0.7768644690513611,
0.15440595149993896,
0.139728382229805,
0.39425742626190186,
0.10459250956773758,
0.5765290260314941,
0.023596588522195816,
-0.535068929195404,
0.16580195724964142,
-0.14136692881584167,
0.07947234809398651,
0.16155041754245758,
0.3541247248649597,
-0.07918193936347961,
-0.31601643562316895,
-0.21771125495433807,
-0.3691233694553375,
-0.2985244691371918,
-0.16341227293014526,
0.15389853715896606,
0.31141456961631775,
0.2982269823551178,
-0.10027886927127838,
-0.40781348943710327,
-0.27793240547180176,
0.03756774961948395,
0.5775099396705627,
0.02228497713804245,
0.09816573560237885,
-0.4720461666584015,
-0.30589696764945984,
-0.6649622917175293,
0.373188853263855,
0.14594142138957977,
0.26701804995536804,
-0.09879858791828156,
0.07582404464483261,
0.13164836168289185,
0.16614042222499847,
0.1443328708410263,
-0.19162514805793762,
0.003465849906206131,
0.10373863577842712,
0.15590721368789673,
0.10478342324495316,
0.06780904531478882,
0.04491281881928444,
0.33548232913017273,
0.22098039090633392,
-0.19147464632987976,
-0.08906176686286926,
-0.02396032027900219,
0.10761499404907227,
0.2659567892551422,
-0.07728800922632217,
0.11460033804178238,
-0.02179100550711155,
-0.28159910440444946,
-0.1391005963087082,
-0.1356429159641266,
-0.004590032622218132,
0.23721128702163696,
-0.36936086416244507,
-0.1957242786884308,
0.2848592698574066,
-0.04993850737810135,
0.31416648626327515,
-0.22978895902633667,
0.09255891293287277,
0.7194758057594299,
0.05768725648522377,
0.19885727763175964,
0.09153128415346146,
0.3681213855743408,
0.5834854245185852,
-0.3358476161956787,
-0.15208610892295837,
0.006973687559366226,
-0.2563212811946869,
0.24376505613327026,
0.42844951152801514,
0.0815722793340683,
-0.024727240204811096,
0.48650431632995605,
0.03593435883522034,
-0.42029690742492676,
0.02881397120654583,
0.06180954724550247,
0.01712885871529579,
-0.5802367329597473,
-0.3118970990180969,
0.3197568953037262,
-0.034813057631254196,
0.005048878490924835,
0.3520969748497009,
0.11776100099086761,
-0.27949315309524536,
-0.1135399118065834,
-0.17704343795776367,
1.188820242881775,
-0.061855241656303406,
-0.010269571095705032,
-0.30450692772865295,
0.2582011818885803,
0.45251938700675964,
-0.09886762499809265,
0.0846649780869484,
0.20116743445396423,
0.020310185849666595,
-0.04009372740983963,
-0.019359957426786423,
0.151860773563385,
0.01365753635764122,
-0.04101197421550751,
0.10495492070913315,
0.11948955059051514,
0.45745664834976196,
0.056599684059619904,
0.36420151591300964,
-0.0839909091591835,
-0.11756671965122223,
0.21706585586071014,
0.1690676063299179,
-0.01797977089881897,
0.3240836262702942,
-0.21914854645729065,
-0.04550504684448242,
-0.12322913110256195,
-0.26190266013145447,
-0.40293359756469727,
-0.18091771006584167,
-0.20857742428779602,
0.22268010675907135,
-0.18320880830287933,
-0.7494202256202698,
0.5128934979438782,
0.06969709694385529,
0.1556273102760315,
0.22683121263980865,
-0.440340131521225,
0.21879199147224426,
-0.09868986159563065,
-0.30538973212242126,
-0.22031170129776,
0.07088784128427505,
0.19288228452205658,
0.1000685766339302,
-0.3191237151622772,
0.19991594552993774,
0.13287684321403503,
-0.17783719301223755,
-0.3103172183036804,
0.17763927578926086,
-0.053329549729824066,
-0.10071955621242523,
0.07991154491901398,
0.1670466959476471,
0.09202785789966583,
-0.38661473989486694,
0.10676433145999908,
0.38754546642303467,
0.12039436399936676,
-0.2516585886478424,
0.30684608221054077,
0.05033978819847107,
-0.07460442185401917,
0.43252405524253845,
0.1923719048500061,
-0.10286612808704376,
0.2016105055809021,
0.42607173323631287,
-0.308854877948761,
-0.10602207481861115,
-0.11762410402297974,
-0.3276333510875702,
-0.3357815444469452,
0.15879157185554504,
0.023909451439976692,
0.2074827402830124,
-0.23227588832378387,
0.27793359756469727,
0.016761288046836853,
-0.07717981189489365,
0.07128970324993134,
-0.3987060487270355,
-0.13183686137199402,
0.15090802311897278,
-0.2696566879749298,
0.12506021559238434,
0.12867990136146545,
0.2865079641342163,
0.2166198045015335,
0.1430906355381012,
-0.28124260902404785,
0.24701952934265137,
0.02573476918041706,
0.03276721015572548,
0.5358015298843384,
-0.11549868434667587,
0.10446838289499283,
-0.23793905973434448,
-0.026590613648295403,
-0.0672425627708435,
-0.05462465435266495,
-0.1189192533493042,
-0.09017032384872437,
0.15121546387672424,
0.07111376523971558,
-0.24234992265701294,
-0.03728828206658363,
-0.5173966884613037,
0.22653257846832275,
-0.04025454819202423,
-0.017144793644547462,
0.1291586458683014,
0.07560327649116516,
0.09614979475736618,
-0.18768876791000366,
-0.029845833778381348,
0.1231648176908493,
0.3182312548160553,
0.1913173794746399,
0.508080005645752,
0.13509491086006165,
0.05049217492341995,
0.32490888237953186,
0.11811985075473785,
-0.17569078505039215,
0.16634878516197205,
-0.21036161482334137,
0.06932972371578217,
0.40836387872695923,
-0.13626722991466522,
0.23917505145072937,
0.421260803937912,
0.27436134219169617,
-0.1732335388660431,
-0.1361878365278244,
0.25352856516838074,
0.20014339685440063,
0.09069567173719406,
-0.4369763135910034,
-0.1102755144238472,
0.252121239900589,
0.10430381447076797,
0.07298468053340912,
-0.020540349185466766,
0.6196621656417847,
-0.203294038772583,
0.05796539783477783,
0.06496807187795639,
0.286772757768631,
0.034830737859010696,
0.33324459195137024,
0.1931983083486557,
0.40902087092399597,
0.055598966777324677,
0.11435998231172562,
0.049679629504680634,
-0.08532846719026566,
0.2701946496963501,
-0.17300698161125183,
0.06936733424663544,
0.2688998579978943,
0.03673224151134491,
0.09913916885852814,
-0.5491147041320801,
0.33655092120170593,
0.2524913251399994,
-0.36690813302993774,
0.10658632218837738,
0.04824575036764145,
0.7288278937339783,
-0.13151021301746368,
0.20176321268081665,
-0.1533135324716568,
0.3467497229576111,
-0.1142033264040947,
-0.06454252451658249,
-0.08597655594348907,
-0.36824095249176025,
-0.19756102561950684,
-0.07760428637266159,
0.07445366680622101,
-0.09963637590408325,
0.1411389261484146,
-0.004778899252414703,
-0.036585137248039246,
-0.44294682145118713,
0.13114327192306519,
0.1261531114578247,
0.08786378800868988,
-0.22502243518829346,
0.11975665390491486,
0.27223020792007446,
-0.21554619073867798,
0.12126421928405762,
0.31199029088020325,
0.3294941782951355,
-0.22320568561553955,
0.08736909925937653,
0.17772628366947174,
0.162164568901062,
-0.12049411982297897,
-0.022462589666247368,
0.31209731101989746,
0.17967459559440613,
-0.058114733546972275,
0.2416830211877823,
0.1002228632569313,
-0.09336840361356735,
-0.12671616673469543,
0.42090892791748047,
0.082206130027771,
-0.3997451961040497,
-0.1964823305606842,
-0.19806040823459625,
-0.16614843904972076,
-0.24887597560882568,
-0.05000729113817215,
-0.35933825373649597,
0.19047418236732483,
0.40685415267944336,
-0.31637147068977356,
0.011217022314667702,
-0.4236842095851898,
0.03821153938770294,
-0.13159339129924774,
0.1697622686624527,
0.508956253528595,
-0.06846793740987778,
-0.018934007734060287,
-0.4373154640197754,
-0.5681692361831665,
0.03415513038635254,
-0.4405463635921478,
0.07679544389247894,
-0.25673454999923706,
0.09404052048921585,
0.13741883635520935,
-0.13588503003120422,
0.41251832246780396,
0.1037251427769661,
0.17099320888519287,
-0.22551685571670532,
-0.12446770071983337,
-0.05445072427392006,
-0.035361386835575104,
0.20394808053970337,
-0.1455557495355606,
0.03153707832098007,
0.07781347632408142,
0.01976417377591133,
-0.017717041075229645,
-0.3238205909729004,
-0.09102597087621689,
-0.18729844689369202,
0.15689799189567566,
0.4203004539012909,
0.16766689717769623,
0.4300292730331421,
-0.1294941008090973,
-0.15202057361602783,
-0.23222795128822327,
-0.3039388954639435,
0.3302362859249115,
0.39491912722587585,
-0.022326987236738205,
0.2863095700740814,
-0.33261069655418396,
-0.10162816941738129,
-0.0007969386642798781,
0.22810401022434235,
-0.019912367686629295,
-0.032167453318834305,
-0.5514517426490784,
0.1514011025428772,
-0.4836212992668152,
-0.0036510229110717773,
0.340996652841568,
0.3138274848461151,
-0.1254461407661438,
-0.08157657086849213,
0.09326814115047455,
-0.4169265925884247,
0.08693590015172958,
-0.2126648724079132,
-0.26599910855293274,
-0.4146498441696167,
0.24931560456752777,
0.2974597215652466,
0.29695186018943787,
-0.26179221272468567,
0.020605526864528656,
0.258400022983551,
0.25604745745658875,
-0.04488879442214966,
0.25531864166259766,
-0.11189830303192139,
-0.16495005786418915,
0.08817857503890991,
0.40233394503593445,
0.2797262668609619,
-0.23729704320430756,
0.05679534003138542,
-0.2660037875175476
] |
https://github.com/huggingface/datasets/issues/773 | Adding CC-100: Monolingual Datasets from Web Crawl Data | Hi ! Can you open an issue to report this problem ? This will help keep track of the fix :) | ## Adding a Dataset
- **Name:** CC-100: Monolingual Datasets from Web Crawl Data
- **Description:** https://twitter.com/alex_conneau/status/1321507120848625665
- **Paper:** https://arxiv.org/abs/1911.02116
- **Data:** http://data.statmt.org/cc-100/
- **Motivation:** A large scale multi-lingual language modeling dataset. Text is de-duplicated and filtered by how "Wikipedia-like" it is, hopefully helping avoid some of the worst parts of the common crawl.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 21 | Adding CC-100: Monolingual Datasets from Web Crawl Data
## Adding a Dataset
- **Name:** CC-100: Monolingual Datasets from Web Crawl Data
- **Description:** https://twitter.com/alex_conneau/status/1321507120848625665
- **Paper:** https://arxiv.org/abs/1911.02116
- **Data:** http://data.statmt.org/cc-100/
- **Motivation:** A large scale multi-lingual language modeling dataset. Text is de-duplicated and filtered by how "Wikipedia-like" it is, hopefully helping avoid some of the worst parts of the common crawl.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi ! Can you open an issue to report this problem ? This will help keep track of the fix :) | [
0.15447624027729034,
-0.3317199945449829,
-0.03552509471774101,
0.1143343597650528,
0.2201695442199707,
-0.052968740463256836,
0.06265190243721008,
0.2461555451154709,
0.2492927610874176,
0.23538655042648315,
-0.15154218673706055,
-0.0016268582548946142,
0.021774789318442345,
0.3425983488559723,
0.1175912544131279,
-0.049415454268455505,
-0.016567446291446686,
-0.035025015473365784,
-0.06409409642219543,
-0.12996315956115723,
-0.11677486449480057,
0.1430409550666809,
0.07280540466308594,
-0.1182485967874527,
-0.2972142696380615,
-0.09894000738859177,
-0.07243151217699051,
0.14101281762123108,
-0.19059288501739502,
-0.2651713490486145,
0.1144544929265976,
0.18813088536262512,
0.044575609266757965,
0.37472549080848694,
-0.00009765854338183999,
-0.06199868023395538,
0.4788954257965088,
-0.06505068391561508,
-0.34310007095336914,
-0.1394646018743515,
-0.026520123705267906,
-0.12036310881376266,
0.09971612691879272,
-0.05124849081039429,
-0.18901661038398743,
0.1480959802865982,
-0.17116999626159668,
-0.2212577760219574,
0.3092142641544342,
0.07401324808597565,
0.3614703118801117,
0.1639530509710312,
-0.12568648159503937,
-0.22272807359695435,
-0.06869315356016159,
0.04289419949054718,
-0.2670852243900299,
0.4324515759944916,
0.3458738327026367,
0.05042713135480881,
0.0100417360663414,
0.5570167899131775,
0.0185090284794569,
-0.11301323771476746,
-0.0012548305094242096,
-0.23662163317203522,
-0.055819325149059296,
-0.2102653533220291,
0.43673503398895264,
0.3899994194507599,
0.33660078048706055,
-0.09592235833406448,
-0.043872982263565063,
-0.07993537932634354,
0.007372562307864428,
-0.2987827658653259,
0.18242217600345612,
0.24589157104492188,
0.0026520732790231705,
0.2719820439815521,
-0.15895159542560577,
-0.31129777431488037,
0.08888983726501465,
0.16716782748699188,
-0.04434012621641159,
0.23473884165287018,
-0.09344711899757385,
-0.12993881106376648,
0.2801300883293152,
-0.17502495646476746,
-0.1541333794593811,
-0.08295921981334686,
-0.04008869454264641,
0.019358966499567032,
-0.23924235999584198,
-0.06135956943035126,
0.29386842250823975,
0.19699358940124512,
0.4528532028198242,
0.010588590055704117,
0.21065139770507812,
0.23792541027069092,
-0.22963258624076843,
0.10463856160640717,
0.11803603172302246,
0.19764366745948792,
0.014494773000478745,
-0.08332127332687378,
0.357963502407074,
0.07503806799650192,
0.006085805594921112,
-0.05619150400161743,
0.12763437628746033,
0.04736548289656639,
-0.1408657282590866,
-0.12768593430519104,
0.19033850729465485,
0.038819704204797745,
-0.19634880125522614,
0.24493996798992157,
-0.1830480992794037,
-0.006125244777649641,
0.0023098792880773544,
0.3142814040184021,
0.30774080753326416,
0.11530930548906326,
0.04103458672761917,
0.18682248890399933,
-0.3224709928035736,
-0.26803651452064514,
-0.29160213470458984,
0.034023940563201904,
-0.22659897804260254,
0.10677935183048248,
0.17503465712070465,
-0.19076691567897797,
0.023225851356983185,
0.05288710445165634,
0.1941225230693817,
-0.1378624588251114,
-0.1062108650803566,
0.0872073620557785,
-0.12792539596557617,
0.10946393013000488,
0.11176203191280365,
0.2106417715549469,
0.045273490250110626,
-0.40117937326431274,
-0.077349454164505,
0.10753056406974792,
-0.25369393825531006,
-0.13721032440662384,
-0.4139116108417511,
0.31209075450897217,
0.004139052703976631,
-0.06910112500190735,
-0.04621962457895279,
0.47074002027511597,
0.15088409185409546,
0.23130738735198975,
0.07949791848659515,
0.1730278730392456,
-0.420398473739624,
0.02770414762198925,
0.004468480125069618,
0.473638653755188,
-0.0805184617638588,
-0.21889115869998932,
-0.09353045374155045,
0.2399049550294876,
0.31274017691612244,
0.44684383273124695,
-0.16400688886642456,
-0.018654294312000275,
-0.11941114813089371,
0.2767610549926758,
-0.13824951648712158,
-0.19327272474765778,
-0.28012219071388245,
0.1645391583442688,
-0.19112084805965424,
0.06921331584453583,
-0.03540913015604019,
-0.20077763497829437,
-0.029980722814798355,
0.15327121317386627,
0.06016967073082924,
0.169442281126976,
0.14246240258216858,
0.20707020163536072,
-0.4301699697971344,
-0.12687012553215027,
0.3030399680137634,
-0.07436256855726242,
-0.022796127945184708,
-0.19199040532112122,
0.0915428027510643,
-0.32225915789604187,
0.23788973689079285,
-0.2990081012248993,
0.2261381447315216,
0.14350470900535583,
0.28503021597862244,
0.10377179831266403,
0.29928380250930786,
-0.07322394847869873,
-0.23000261187553406,
0.1574404239654541,
0.030118394643068314,
0.5092730522155762,
-0.1853255182504654,
-0.3524043560028076,
-0.36881712079048157,
-0.062393248081207275,
-0.35485464334487915,
-0.23075547814369202,
0.27281156182289124,
0.03632587194442749,
-0.1927674114704132,
0.23577980697155,
0.08041095733642578,
0.15226413309574127,
-0.15880756080150604,
-0.09463567286729813,
-0.0983528345823288,
0.2980971038341522,
-0.3324441611766815,
0.13449691236019135,
0.055155858397483826,
0.2945707440376282,
0.15468788146972656,
0.12388217449188232,
-0.13410696387290955,
0.13219159841537476,
-0.34879639744758606,
0.41260814666748047,
0.40235328674316406,
-0.15971244871616364,
0.45597726106643677,
-0.6156455278396606,
0.052180513739585876,
0.21663536131381989,
0.22482368350028992,
-0.1251291185617447,
-0.08551696687936783,
0.046125948429107666,
0.12757353484630585,
0.05262276530265808,
0.03930386155843735,
0.0815494954586029,
0.4952326714992523,
-0.12590280175209045,
-0.0285169817507267,
-0.2938540279865265,
0.29355287551879883,
0.16356869041919708,
0.29908084869384766,
-0.019175773486495018,
-0.4025941491127014,
0.25927892327308655,
0.28297632932662964,
0.025419682264328003,
0.34070441126823425,
0.29890137910842896,
-0.2099193036556244,
-0.3161804676055908,
0.0528428815305233,
-0.046661537140607834,
-0.11460462212562561,
0.19006399810314178,
0.13707014918327332,
0.041265323758125305,
0.08041920512914658,
-0.2977389395236969,
0.13074198365211487,
-0.024247556924819946,
0.004971877671778202,
0.2312336266040802,
0.3575288653373718,
-0.0911848396062851,
-0.72187739610672,
-0.02597435936331749,
-0.10408250242471695,
0.02285320684313774,
-0.24663668870925903,
-0.017221176996827126,
-0.35544565320014954,
-0.23544296622276306,
-0.24149706959724426,
-0.19413116574287415,
-0.3846524953842163,
-0.2973053753376007,
0.2084014117717743,
-0.07638932764530182,
-0.2551354467868805,
0.1855669766664505,
-0.013899345882236958,
0.26641660928726196,
0.049356453120708466,
0.31183913350105286,
-0.15733397006988525,
-0.4071156084537506,
-0.07443245500326157,
0.19643837213516235,
0.08859188109636307,
-0.024970944970846176,
0.2962004542350769,
-0.14022496342658997,
0.1040707528591156,
-0.2028905749320984,
-0.6040536165237427,
0.24838830530643463,
-0.15288642048835754,
-0.03546212613582611,
-0.10432605445384979,
0.053094975650310516,
-0.30244356393814087,
-0.22780351340770721,
0.24676282703876495,
-0.04583372175693512,
-0.13530273735523224,
0.17227701842784882,
-0.06166796386241913,
0.04029592126607895,
-0.25391989946365356,
-0.25245803594589233,
-0.20553405582904816,
-0.3358537554740906,
0.021240100264549255,
0.019193343818187714,
0.05835534259676933,
0.3860046863555908,
0.04359246417880058,
-0.04261412099003792,
0.05327562615275383,
0.146402969956398,
-0.5650007724761963,
-0.07306043803691864,
0.18758364021778107,
-0.4068383276462555,
-0.36542871594429016,
-0.14623157680034637,
-0.09318842738866806,
0.138949453830719,
-0.09969573467969894,
-0.13060173392295837,
0.15277905762195587,
-0.24223102629184723,
-0.03954499214887619,
0.1642463505268097,
0.02235621213912964,
0.21089747548103333,
0.06864047795534134,
-0.27003684639930725,
-0.16522270441055298,
-0.026080474257469177,
-0.08072877675294876,
0.09399467706680298,
0.2247561514377594,
-0.037453167140483856,
0.13655856251716614,
0.2274734079837799,
0.6573119759559631,
0.11765339970588684,
0.24581846594810486,
0.48299235105514526,
0.1512058675289154,
0.40325993299484253,
-0.20402508974075317,
-0.41032329201698303,
0.11693833768367767,
-0.10882022976875305,
0.039379991590976715,
0.4856882691383362,
0.18870460987091064,
-0.3493206202983856,
-0.2133280485868454,
-0.21095439791679382,
-0.3289628326892853,
-0.34969252347946167,
-0.0882878229022026,
0.2338353842496872,
0.13380317389965057,
0.22518131136894226,
-0.02361084148287773,
-0.007223671302199364,
-0.2703065872192383,
0.062458302825689316,
0.1939474642276764,
-0.23153817653656006,
-0.08859264850616455,
-0.28354358673095703,
-0.2522463798522949,
-0.7121946215629578,
0.2672707438468933,
0.17594264447689056,
0.025615431368350983,
0.001966197043657303,
-0.15548697113990784,
0.12771926820278168,
0.07535908371210098,
0.10613454133272171,
-0.22757241129875183,
0.043785084038972855,
0.011430995538830757,
0.009406466037034988,
-0.15674561262130737,
0.13188475370407104,
-0.1115686297416687,
0.36193645000457764,
0.1665336936712265,
-0.29219990968704224,
-0.22126102447509766,
0.09827902168035507,
0.07099668681621552,
0.02055349387228489,
-0.07932090759277344,
-0.007575922645628452,
-0.274519681930542,
-0.3712000250816345,
-0.345942884683609,
0.06707663089036942,
0.18366514146327972,
0.32092276215553284,
-0.11958137899637222,
-0.15861530601978302,
0.23315583169460297,
-0.11475758254528046,
0.19351817667484283,
0.1745089292526245,
0.13898247480392456,
0.3629641532897949,
0.06809057295322418,
0.053487442433834076,
0.05880831927061081,
-0.05281585454940796,
0.6026079654693604,
-0.1332181692123413,
-0.2350565791130066,
-0.1501063108444214,
-0.32452014088630676,
0.016397662460803986,
0.3209209740161896,
0.24390682578086853,
0.06184803321957588,
0.24308286607265472,
0.004583679139614105,
-0.20414838194847107,
-0.06974248588085175,
-0.05554914474487305,
0.18467721343040466,
-0.41266605257987976,
-0.05075351893901825,
0.3436693847179413,
-0.056901607662439346,
-0.06835527718067169,
0.2883746325969696,
0.12345278263092041,
-0.30650606751441956,
0.15977416932582855,
-0.14624261856079102,
1.0873416662216187,
0.033337295055389404,
-0.0329953171312809,
-0.075716033577919,
0.14010797441005707,
0.2729324996471405,
-0.020803706720471382,
0.026438787579536438,
-0.11798439919948578,
-0.05964401364326477,
0.1053762137889862,
0.25109007954597473,
0.013354822993278503,
-0.026583708822727203,
-0.20901496708393097,
0.05377025157213211,
0.00941445678472519,
0.19860728085041046,
0.05444036424160004,
0.2842307388782501,
-0.1019366979598999,
-0.2868543267250061,
0.01175922341644764,
0.2604447603225708,
-0.04942822456359863,
0.2463739663362503,
-0.09868530929088593,
-0.059760384261608124,
0.012481164187192917,
-0.37686556577682495,
-0.3331645727157593,
0.004170030355453491,
-0.07842814177274704,
0.2087637037038803,
-0.02543751522898674,
-0.5126146674156189,
0.2582375407218933,
-0.037537429481744766,
0.19455133378505707,
0.1700175553560257,
-0.4979448914527893,
0.33342334628105164,
0.06135578081011772,
-0.076255202293396,
-0.17827393114566803,
0.08808757364749908,
0.13259729743003845,
-0.02222415804862976,
-0.37521085143089294,
-0.0787215605378151,
0.3199930787086487,
-0.10172706842422485,
-0.21603724360466003,
0.08069578558206558,
-0.14747139811515808,
-0.0464632548391819,
0.05629071965813637,
0.21040454506874084,
-0.06262382864952087,
-0.42943844199180603,
0.28392428159713745,
0.017344728112220764,
-0.009347140789031982,
-0.1403287947177887,
0.39636027812957764,
-0.018892064690589905,
-0.07972513139247894,
0.29560089111328125,
0.4322632849216461,
0.025009840726852417,
0.07194576412439346,
0.4408152997493744,
-0.4477628469467163,
-0.22447049617767334,
-0.18974411487579346,
-0.11766619235277176,
-0.17676690220832825,
0.15680623054504395,
0.012892301194369793,
-0.1754271239042282,
-0.25989994406700134,
0.33750149607658386,
-0.10215842723846436,
0.09205048531293869,
0.0767529308795929,
-0.14963313937187195,
-0.07818013429641724,
0.21211573481559753,
-0.22312892973423004,
0.14415135979652405,
0.16961464285850525,
0.2561526596546173,
0.19772760570049286,
0.19017300009727478,
-0.47488489747047424,
0.04616670310497284,
-0.2026931494474411,
0.02840760350227356,
0.31754904985427856,
-0.21950459480285645,
0.04111218824982643,
-0.17371433973312378,
0.19770951569080353,
0.16507375240325928,
-0.061299875378608704,
-0.3817426860332489,
-0.1596401184797287,
0.0606013759970665,
0.012848002836108208,
-0.08783318102359772,
0.1718079000711441,
0.045336537063121796,
0.16296058893203735,
-0.23316605389118195,
0.16374608874320984,
0.18517819046974182,
0.04808273911476135,
0.08809785544872284,
-0.15308275818824768,
-0.10850305110216141,
0.10755673050880432,
-0.02937392145395279,
0.007599227130413055,
0.3599697947502136,
0.06963005661964417,
-0.17307895421981812,
0.2108476459980011,
0.010314390063285828,
0.03911960497498512,
0.1300797313451767,
-0.11277034878730774,
0.1645258367061615,
0.16857245564460754,
-0.006261102855205536,
0.16171149909496307,
0.4776785969734192,
0.3265649676322937,
-0.12128129601478577,
-0.34723156690597534,
-0.056913621723651886,
0.14455339312553406,
0.3354518711566925,
-0.5207061767578125,
-0.1949087232351303,
0.19493648409843445,
-0.2272433489561081,
0.19297412037849426,
0.05688045173883438,
0.349202424287796,
-0.17085501551628113,
0.12214350700378418,
0.10483763366937637,
0.20703233778476715,
-0.12262643873691559,
0.14132602512836456,
-0.004351027309894562,
0.09569311141967773,
-0.04368043318390846,
0.16848614811897278,
-0.08357460796833038,
0.09991694241762161,
0.3412051200866699,
-0.06621629744768143,
0.05592978000640869,
0.09362657368183136,
0.21679086983203888,
0.1299225240945816,
-0.22325833141803741,
0.38573718070983887,
0.21749046444892883,
-0.2892896831035614,
0.18365058302879333,
0.0473623089492321,
0.5362939834594727,
0.014455940574407578,
0.10582927614450455,
-0.18658199906349182,
0.37613052129745483,
-0.22353869676589966,
-0.09556098282337189,
-0.14116869866847992,
-0.16756600141525269,
-0.22238513827323914,
0.02249656245112419,
0.0020401403307914734,
0.038307659327983856,
0.21379345655441284,
-0.06366214156150818,
-0.21012817323207855,
-0.49727874994277954,
0.13916365802288055,
-0.09973791986703873,
0.20974959433078766,
-0.2185596227645874,
0.15174181759357452,
0.26895833015441895,
-0.13893826305866241,
-0.03163331374526024,
0.3182324171066284,
0.23630788922309875,
-0.06256507337093353,
-0.11983031034469604,
0.06567583233118057,
-0.10892626643180847,
-0.1994461864233017,
-0.06674917042255402,
0.06398004293441772,
0.24794510006904602,
-0.031125571578741074,
0.2310134321451187,
0.198369562625885,
-0.29210495948791504,
-0.16183780133724213,
0.49584561586380005,
0.11923615634441376,
-0.06492818892002106,
-0.2735002934932709,
-0.12470725178718567,
0.007568620145320892,
-0.37948161363601685,
-0.1398313343524933,
-0.3778720200061798,
0.17582082748413086,
0.2291557937860489,
-0.13966967165470123,
0.07763943076133728,
-0.5014715790748596,
0.15807732939720154,
0.07051172852516174,
0.4301358163356781,
0.28931689262390137,
-0.10393478721380234,
0.13096217811107635,
-0.30453822016716003,
-0.3934873044490814,
0.2213677167892456,
-0.35511037707328796,
0.025106394663453102,
-0.17672497034072876,
0.1830867975950241,
0.017287440598011017,
0.09207964688539505,
0.10306759178638458,
0.16625501215457916,
0.07871748507022858,
-0.2565709948539734,
-0.23207418620586395,
0.08902949094772339,
-0.12106305360794067,
-0.09104738384485245,
0.037130966782569885,
-0.17208269238471985,
0.1523498296737671,
0.005153692327439785,
0.15795093774795532,
-0.16476643085479736,
-0.050126150250434875,
-0.19821055233478546,
0.14644551277160645,
0.3260788321495056,
0.2466423362493515,
0.44242891669273376,
-0.25587937235832214,
-0.05374191701412201,
0.03684700280427933,
-0.3881095051765442,
0.05282093212008476,
0.46865424513816833,
0.18366940319538116,
0.16801081597805023,
-0.01685551553964615,
-0.27735018730163574,
0.09253539890050888,
0.47167834639549255,
0.1474655419588089,
0.0725201815366745,
-0.3902021646499634,
0.05094418674707413,
-0.06939204782247543,
-0.16645462810993195,
-0.044014524668455124,
0.33690977096557617,
-0.12283283472061157,
-0.024656163528561592,
-0.006310939788818359,
-0.8208162784576416,
0.15629474818706512,
-0.2422325611114502,
-0.2940438985824585,
-0.23511116206645966,
0.18455937504768372,
0.24246853590011597,
0.016699086874723434,
-0.4104034900665283,
0.09197921305894852,
0.07337838411331177,
0.24179580807685852,
-0.1634923815727234,
0.2701038420200348,
-0.14094999432563782,
-0.27416980266571045,
-0.08432640135288239,
0.22840896248817444,
0.44389620423316956,
-0.2228233367204666,
0.09468322992324829,
-0.2791232168674469
] |
https://github.com/huggingface/datasets/issues/771 | Using `Dataset.map` with `n_proc>1` print multiple progress bars | Yes it allows to monitor the speed of each process. Currently each process takes care of one shard of the dataset.
At one point we can consider using streaming batches to a pool of processes instead of sharding the dataset in `num_proc` parts. At that point it will be easy to use only one progress bar | When using `Dataset.map` with `n_proc > 1`, only one of the processes should print a progress bar (to make the output readable). Right now, `n_proc` progress bars are printed. | 56 | Using `Dataset.map` with `n_proc>1` print multiple progress bars
When using `Dataset.map` with `n_proc > 1`, only one of the processes should print a progress bar (to make the output readable). Right now, `n_proc` progress bars are printed.
Yes it allows to monitor the speed of each process. Currently each process takes care of one shard of the dataset.
At one point we can consider using streaming batches to a pool of processes instead of sharding the dataset in `num_proc` parts. At that point it will be easy to use only one progress bar | [
-0.47093087434768677,
-0.3086601793766022,
-0.20458827912807465,
0.028243817389011383,
-0.16148415207862854,
-0.05988922715187073,
0.4274546205997467,
0.19549782574176788,
-0.14402247965335846,
0.5090810656547546,
0.03531161695718765,
0.2185555249452591,
0.1020265743136406,
0.5341006517410278,
0.01469031348824501,
-0.006240077316761017,
0.06256157159805298,
0.10214520245790482,
-0.048836544156074524,
0.2574518918991089,
-0.0931532010436058,
-0.06052987277507782,
0.050190284848213196,
0.037635572254657745,
-0.056634288281202316,
0.11426858603954315,
-0.0659438967704773,
-0.29182320833206177,
0.2581530809402466,
-0.643638014793396,
-0.07053197920322418,
0.43153491616249084,
0.147946298122406,
0.23529788851737976,
-0.00010873573774006218,
0.040076687932014465,
0.4632191061973572,
0.18365788459777832,
-0.11908474564552307,
0.04787310212850571,
-0.3992358148097992,
-0.4790298342704773,
0.16566753387451172,
-0.5045089721679688,
0.24798119068145752,
-0.01705075427889824,
0.3479948043823242,
-0.23149879276752472,
0.15357261896133423,
-0.08394386619329453,
0.22328755259513855,
0.2877657413482666,
-0.4592033624649048,
0.020286381244659424,
0.13095059990882874,
-0.15442326664924622,
-0.03519456088542938,
-0.2405853569507599,
0.4689827561378479,
0.3584708273410797,
-0.36711686849594116,
0.3515620231628418,
0.034040890634059906,
0.19146287441253662,
0.023628395050764084,
0.12820817530155182,
0.6972886919975281,
-0.43597540259361267,
0.04846080765128136,
0.20736289024353027,
0.1045907586812973,
-0.2849719524383545,
-0.08447979390621185,
-0.3046002686023712,
-0.19385503232479095,
-0.20563599467277527,
-0.4532279372215271,
0.1575137823820114,
0.06477025151252747,
0.017803598195314407,
-0.620043933391571,
0.11196393519639969,
-0.14703547954559326,
-0.184085413813591,
0.10844814777374268,
0.006743431091308594,
0.026497337967157364,
0.46495521068573,
-0.011411618441343307,
0.45187199115753174,
-0.03880859538912773,
-0.2027370035648346,
0.11697348952293396,
-0.21375365555286407,
-0.2411210983991623,
0.03468727320432663,
0.1544523388147354,
0.05472524091601372,
0.028869859874248505,
0.05169195681810379,
-0.09680043905973434,
0.17495635151863098,
0.19146692752838135,
0.23140710592269897,
0.27657508850097656,
-0.2618946433067322,
0.4729349911212921,
-0.17039260268211365,
0.26300692558288574,
-0.25522300601005554,
0.04698916897177696,
0.12408704310655594,
0.29003968834877014,
-0.09271500259637833,
0.1685597002506256,
0.20869681239128113,
-0.24254313111305237,
-0.1615767478942871,
0.009421823546290398,
0.0010095899924635887,
0.2904828190803528,
-0.28926822543144226,
0.028568359091877937,
0.3051283359527588,
0.11490028351545334,
0.02181987091898918,
-0.35116469860076904,
-0.022972945123910904,
-0.04960048198699951,
-0.19670303165912628,
-0.17224526405334473,
-0.1654002070426941,
-0.2894497513771057,
0.2183251678943634,
-0.25066325068473816,
-0.07417269051074982,
0.08144402503967285,
-0.15434683859348297,
-0.03864211589097977,
0.2655332386493683,
0.17574232816696167,
-0.3396124541759491,
0.3054898977279663,
0.14198283851146698,
0.08018706738948822,
0.20013688504695892,
0.04969619959592819,
0.2786523103713989,
-0.2928564250469208,
0.251497358083725,
0.02290257066488266,
-0.2703838050365448,
0.10729149729013443,
0.15757088363170624,
-0.15350985527038574,
0.2138032764196396,
-0.40394696593284607,
0.5481805801391602,
0.09175009280443192,
-0.3025372624397278,
-0.12660294771194458,
-0.04885387420654297,
-0.6243523955345154,
-0.27125513553619385,
0.04058881849050522,
0.13221149146556854,
-0.24167124927043915,
-0.07137080281972885,
-0.01604650914669037,
-0.46979740262031555,
0.30070018768310547,
0.11413133144378662,
-0.21791674196720123,
-0.14642146229743958,
-0.08741927891969681,
0.3367351293563843,
0.07426022738218307,
-0.3036821186542511,
-0.2639029026031494,
0.3852698504924774,
-0.05717116966843605,
-0.25112807750701904,
0.47344282269477844,
0.27635592222213745,
0.37043216824531555,
-0.3024573028087616,
-0.3997047543525696,
-0.09854551404714584,
-0.22688177227973938,
0.11779671162366867,
-0.059659428894519806,
-0.08235879242420197,
-0.07474770396947861,
0.1807522475719452,
0.09543954581022263,
0.05631028115749359,
0.28518518805503845,
-0.5802688598632812,
0.5668191313743591,
-0.01231880858540535,
0.30394041538238525,
-0.006615903228521347,
0.09046141803264618,
-0.2783011198043823,
-0.16800731420516968,
-0.07360532879829407,
-0.1742737889289856,
0.35115888714790344,
-0.3102015554904938,
-0.13349199295043945,
0.16532397270202637,
-0.18943770229816437,
0.17401942610740662,
-0.04046741873025894,
0.13394899666309357,
0.09837156534194946,
0.09378272294998169,
0.09879586845636368,
0.08791078627109528,
-0.2542564868927002,
-0.0760829895734787,
0.2311396300792694,
-0.415581613779068,
-0.4498783349990845,
-0.1657540202140808,
0.2748691737651825,
0.10725914686918259,
-0.10883050411939621,
-0.014529440551996231,
-0.10649032145738602,
-0.10936766117811203,
-0.04505297914147377,
0.10981136560440063,
0.17739081382751465,
-0.06536795198917389,
0.30827003717422485,
0.09069353342056274,
0.3370720148086548,
0.18317203223705292,
0.033682163804769516,
-0.06479497253894806,
-0.21319133043289185,
-0.04648352786898613,
-0.1356777548789978,
-0.057780921459198,
0.12186301499605179,
0.07213594019412994,
0.28711727261543274,
0.15410256385803223,
-0.10595934092998505,
0.08302479982376099,
0.10004366934299469,
-0.2972296178340912,
-0.2367679476737976,
0.11991079151630402,
0.4398561418056488,
0.208500936627388,
-0.16577734053134918,
-0.09680911898612976,
0.4711031913757324,
0.6808503270149231,
0.10805782675743103,
-0.3228970766067505,
0.07449708878993988,
-0.06574697047472,
-0.09530942887067795,
0.38428500294685364,
0.29834669828414917,
0.40659040212631226,
0.42766058444976807,
0.24520587921142578,
-0.08138631284236908,
-0.16074128448963165,
-0.194016233086586,
-0.125054270029068,
-0.015007078647613525,
0.09259093552827835,
-0.07296039909124374,
-0.03376534581184387,
-0.29096564650535583,
-0.06887449324131012,
-0.47797223925590515,
0.062437862157821655,
-0.012014199048280716,
0.056549180299043655,
-0.18401731550693512,
-0.10281874984502792,
-0.1075434610247612,
-0.15463785827159882,
0.07555636018514633,
0.27692684531211853,
-0.36821943521499634,
0.08868443220853806,
0.300453782081604,
-0.17376145720481873,
0.15896347165107727,
0.333891361951828,
-0.03822384774684906,
-0.13839435577392578,
0.48877593874931335,
-0.3873390555381775,
-0.3365318477153778,
-0.028308629989624023,
0.06089889630675316,
0.025571905076503754,
0.19210396707057953,
0.4016205072402954,
-0.15417225658893585,
0.028647486120462418,
-0.56598961353302,
0.1881171464920044,
0.010037261992692947,
-0.23159493505954742,
0.07404627650976181,
-0.15196220576763153,
0.050413161516189575,
-0.14661630988121033,
0.13710904121398926,
0.19283202290534973,
-0.4140232801437378,
-0.03662728890776634,
-0.15704698860645294,
-0.0845530778169632,
-0.2458762675523758,
-0.09156279265880585,
0.046540066599845886,
-0.5235555768013,
-0.35260578989982605,
0.17064708471298218,
-0.017666131258010864,
0.3490065336227417,
-0.39214888215065,
-0.21205173432826996,
0.2525128424167633,
0.1036815494298935,
-0.060011737048625946,
-0.15422368049621582,
-0.47381919622421265,
-0.14032326638698578,
-0.041454676538705826,
-0.2489226907491684,
-0.07445269078016281,
0.18323715031147003,
-0.06846819818019867,
0.18456751108169556,
-0.3350626826286316,
-0.14032362401485443,
-0.30389541387557983,
0.25241029262542725,
0.21479156613349915,
0.24226033687591553,
0.323403000831604,
-0.03318249434232712,
-0.17204079031944275,
0.037523478269577026,
-0.10580232739448547,
0.14403294026851654,
0.020856685936450958,
0.005009964108467102,
-0.09789280593395233,
0.13405606150627136,
0.02940673753619194,
0.5478228330612183,
0.4378446340560913,
-0.38811689615249634,
0.03920382261276245,
-0.18711017072200775,
0.04815775901079178,
-0.01917511224746704,
0.0773199275135994,
0.1866520643234253,
-0.15983647108078003,
-0.08331039547920227,
0.2705335021018982,
-0.10765121877193451,
-0.19352687895298004,
0.035336486995220184,
0.2834669351577759,
-0.0969981700181961,
-0.17166344821453094,
-0.09664855897426605,
0.12327644973993301,
0.22395330667495728,
-0.04677560552954674,
0.025904804468154907,
-0.04512434080243111,
-0.0510886088013649,
-0.30122312903404236,
0.06004207208752632,
0.35483983159065247,
-0.19823823869228363,
-0.14055640995502472,
-0.1563340276479721,
-0.7523560523986816,
0.3945203423500061,
0.17897929251194,
-0.2582482695579529,
-0.05771460756659508,
-0.058194082230329514,
0.04752819612622261,
-0.001305673737078905,
0.45408493280410767,
-0.29861775040626526,
-0.13087190687656403,
0.02902955189347267,
-0.29051801562309265,
-0.190500408411026,
-0.10941946506500244,
-0.20771220326423645,
0.3212667405605316,
0.19195514917373657,
0.11718006432056427,
-0.2532634139060974,
-0.0952736958861351,
0.0392368882894516,
0.09102128446102142,
-0.13953031599521637,
-0.32344773411750793,
-0.3122163414955139,
0.028011538088321686,
-0.09520963579416275,
0.13910673558712006,
-0.2067495584487915,
-0.1781119555234909,
-0.3750583529472351,
-0.4214898943901062,
0.1731848418712616,
0.03661097586154938,
-0.06594987213611603,
0.2938268780708313,
0.010650734417140484,
0.13665713369846344,
0.1566677987575531,
-0.0006710588932037354,
0.37396660447120667,
0.23078231513500214,
-0.005461767315864563,
-0.03720199689269066,
0.08807110041379929,
0.3376564681529999,
-0.2517063617706299,
0.1992788314819336,
0.22135072946548462,
0.13502030074596405,
0.22462797164916992,
0.20697452127933502,
0.359028160572052,
-0.1791720688343048,
-0.04345278441905975,
-0.054457761347293854,
0.17700041830539703,
-0.3458556830883026,
-0.15470068156719208,
0.3590990900993347,
0.2664080858230591,
-0.1463783085346222,
0.3667650520801544,
-0.4146934747695923,
-0.0973808616399765,
-0.084694042801857,
0.006729945540428162,
0.6404377222061157,
-0.6624413728713989,
-0.0012041516602039337,
-0.06478230655193329,
-0.09512798488140106,
0.20845037698745728,
0.13659465312957764,
0.08114222437143326,
-0.5132696032524109,
-0.3465443551540375,
0.058740027248859406,
-0.08034403622150421,
0.17719274759292603,
0.30148011445999146,
-0.44078975915908813,
0.1053336039185524,
0.39162635803222656,
0.0018315389752388,
-0.2904691994190216,
0.1066151112318039,
0.19121336936950684,
-0.07433193922042847,
-0.2516307234764099,
0.14223597943782806,
0.013303063809871674,
-0.3869439363479614,
-0.14045283198356628,
0.110956571996212,
0.15915705263614655,
0.05762524902820587,
-0.07794862240552902,
-0.2499788999557495,
0.2778432071208954,
0.239584282040596,
-0.1950538009405136,
-0.27634018659591675,
-0.1448337733745575,
0.23402972519397736,
0.09312799572944641,
-0.22617362439632416,
-0.04858724772930145,
-0.05282049998641014,
0.11965528130531311,
0.26268118619918823,
-0.014998550526797771,
-0.2381751984357834,
-0.02237764559686184,
-0.16480234265327454,
-0.39572760462760925,
0.4399859309196472,
0.010797086171805859,
-0.5087300539016724,
-0.09262943267822266,
0.47032034397125244,
0.2749845087528229,
0.2117154896259308,
0.2134139984846115,
0.38437703251838684,
-0.44830968976020813,
-0.12383191287517548,
0.09012290835380554,
0.36546236276626587,
-0.31998884677886963,
0.699305534362793,
-0.13035307824611664,
-0.3771049678325653,
-0.15306170284748077,
0.05311109498143196,
0.12628042697906494,
0.21085292100906372,
-0.2507428824901581,
0.07405824959278107,
-0.12650898098945618,
-0.2178713083267212,
-0.03596224635839462,
-0.013229033909738064,
0.06124507635831833,
0.10622747242450714,
0.07048873603343964,
0.1761900633573532,
0.0199558287858963,
0.13302601873874664,
-0.034077562391757965,
0.2667893171310425,
-0.2423926591873169,
-0.10952464491128922,
-0.48019933700561523,
-0.01972348988056183,
-0.19436399638652802,
0.4233626127243042,
0.09784350544214249,
0.07014697045087814,
0.018503593280911446,
0.2261429727077484,
-0.37207597494125366,
-0.2011399269104004,
-0.322380393743515,
0.38095948100090027,
0.06740037351846695,
0.05093645304441452,
-0.016548102721571922,
0.03268864378333092,
0.11334951221942902,
0.2673209011554718,
-0.576263427734375,
-0.27811896800994873,
0.1331929713487625,
0.12799179553985596,
-0.14586052298545837,
0.03979922831058502,
-0.12448249757289886,
0.25298255681991577,
-0.09801995754241943,
-0.16410791873931885,
0.26006045937538147,
0.26585501432418823,
-0.08766910433769226,
0.039184726774692535,
0.36128106713294983,
-0.02741413563489914,
-0.11879213899374008,
0.060224972665309906,
0.07273302227258682,
0.2029423713684082,
-0.2687399089336395,
0.4438779950141907,
-0.06924078613519669,
-0.03696195036172867,
0.25275546312332153,
-0.0771593227982521,
0.4333488345146179,
0.3147985339164734,
-0.11648016422986984,
0.1425153911113739,
0.16907855868339539,
-0.13001954555511475,
0.6643266677856445,
0.2362799346446991,
0.055755615234375,
-0.22991178929805756,
0.14290860295295715,
0.24282392859458923,
-0.0022658687084913254,
0.07685298472642899,
0.43402448296546936,
-0.0005965139716863632,
0.4263562560081482,
0.19699576497077942,
0.25326451659202576,
0.19681254029273987,
0.2387293428182602,
0.022246796637773514,
0.0909249559044838,
-0.425167977809906,
-0.04522143676877022,
0.037661559879779816,
0.23567597568035126,
0.10962310433387756,
0.22343218326568604,
0.004611831158399582,
0.02347896248102188,
0.144265815615654,
-0.03613072633743286,
0.629546046257019,
0.034219250082969666,
0.09638359397649765,
-0.1208273395895958,
0.10123494267463684,
-0.08833432197570801,
0.1687147468328476,
-0.4824106693267822,
0.008907962590456009,
0.1505177915096283,
0.37597012519836426,
-0.1967579871416092,
-0.06134035810828209,
-0.11191336065530777,
0.1956705003976822,
0.053794510662555695,
-0.17708714306354523,
-0.18099761009216309,
-0.03941497951745987,
0.08878254890441895,
0.19299614429473877,
0.1651940643787384,
0.24558885395526886,
0.6638801097869873,
0.10009487718343735,
0.24183806777000427,
-0.12807579338550568,
-0.09736517816781998,
-0.018021870404481888,
0.3237378001213074,
-0.15227173268795013,
-0.20863677561283112,
-0.14555348455905914,
0.09610739350318909,
0.19270028173923492,
0.004011413082480431,
0.0950799435377121,
0.037764791399240494,
-0.007584886625409126,
0.03662019595503807,
0.01807175576686859,
0.043956734240055084,
-0.26826876401901245,
-0.02914944663643837,
0.2027612030506134,
-0.13869045674800873,
0.3927568197250366,
0.16403080523014069,
-0.1708241105079651,
0.41044875979423523,
0.03632209450006485,
0.044844940304756165,
-0.25679755210876465,
0.3423311710357666,
0.022662855684757233,
-0.20438185334205627,
0.08779603242874146,
-0.11024130135774612,
-0.25308749079704285,
0.04329543188214302,
0.4033918082714081,
-0.5760533809661865,
0.08383078128099442,
-0.07250151038169861,
0.12384240329265594,
-0.2732956111431122,
0.441815048456192,
0.09094391018152237,
0.5844125151634216,
-0.28903889656066895,
-0.14793437719345093,
-0.24209068715572357,
0.08549840748310089,
0.05946199968457222,
0.02009018324315548,
-0.19618426263332367,
0.3414386510848999,
-0.036119334399700165,
0.4042432904243469,
0.493638813495636,
-0.22184917330741882,
-0.17709527909755707,
0.30034351348876953,
-0.2015598863363266,
0.16989722847938538,
-0.12924468517303467,
-0.10512008517980576,
0.0681949257850647,
-0.25665464997291565,
0.20039312541484833,
0.0981534868478775,
0.17993927001953125,
0.030789988115429878,
0.05929218977689743,
0.3669610321521759,
0.016105294227600098,
0.4975041449069977,
0.0005672480911016464,
0.30571097135543823,
-0.20276880264282227,
0.13496007025241852,
0.010437879711389542,
0.09725712984800339,
-0.0923425629734993,
0.11355239152908325,
0.06888008117675781,
0.30029839277267456,
-0.21680495142936707,
0.21659742295742035,
-0.07700470089912415,
0.13118308782577515,
0.21746428310871124,
0.08487182855606079,
0.3008787930011749,
-0.10789588838815689,
0.019788198173046112,
0.0333392508327961,
-0.14274245500564575,
0.2304474413394928,
0.2945035696029663,
0.09493812918663025,
-0.07653701305389404,
0.09333419799804688,
0.16541537642478943,
-0.38141629099845886,
-0.22488002479076385,
-0.2506604492664337,
0.17798885703086853,
-0.21403202414512634,
-0.016440333798527718,
-0.284169465303421,
-0.3223104476928711,
0.2579376995563507,
-0.13901042938232422,
-0.36975371837615967,
0.17067427933216095,
-0.06404955685138702,
-0.35406962037086487,
0.04414913430809975,
0.014203574508428574,
0.18255123496055603,
-0.24906229972839355,
-0.3193564713001251,
-0.48816990852355957
] |
https://github.com/huggingface/datasets/issues/771 | Using `Dataset.map` with `n_proc>1` print multiple progress bars | Hi @lhoestq, I am facing a similar issue, it is annoying when lots of progress bars are printed. Is there a way to turn off this behavior? | When using `Dataset.map` with `n_proc > 1`, only one of the processes should print a progress bar (to make the output readable). Right now, `n_proc` progress bars are printed. | 27 | Using `Dataset.map` with `n_proc>1` print multiple progress bars
When using `Dataset.map` with `n_proc > 1`, only one of the processes should print a progress bar (to make the output readable). Right now, `n_proc` progress bars are printed.
Hi @lhoestq, I am facing a similar issue, it is annoying when lots of progress bars are printed. Is there a way to turn off this behavior? | [
-0.18744593858718872,
-0.2836361527442932,
-0.07012921571731567,
0.28531768918037415,
0.08276441693305969,
-0.00024253129959106445,
0.2488972544670105,
0.224342942237854,
-0.09197014570236206,
0.5570836663246155,
0.1718326061964035,
0.43263009190559387,
0.12799730896949768,
0.32808762788772583,
-0.21230719983577728,
0.06806251406669617,
0.12781742215156555,
0.035997167229652405,
0.033822450786828995,
0.06965270638465881,
-0.16869285702705383,
0.1108548566699028,
0.07282815873622894,
0.18142449855804443,
-0.015358680859208107,
0.019777048379182816,
0.10731007158756256,
-0.4796749949455261,
0.22747038304805756,
-0.6783800721168518,
0.017143825069069862,
0.3960856795310974,
-0.0017874212935566902,
0.20114628970623016,
-0.00012775092909578234,
-0.10817256569862366,
0.4337092638015747,
0.1860993206501007,
0.07090014219284058,
-0.008436322212219238,
-0.23380586504936218,
-0.22118444740772247,
0.6065112352371216,
-0.508297860622406,
0.16781949996948242,
-0.20487990975379944,
0.2558497488498688,
-0.24139992892742157,
0.17246311902999878,
-0.1810595989227295,
0.0705830529332161,
0.1123170554637909,
-0.4110298752784729,
0.11116539686918259,
0.037955962121486664,
-0.1869446486234665,
-0.057947151362895966,
-0.14564728736877441,
0.5313714742660522,
0.19164910912513733,
-0.20158419013023376,
0.2347896248102188,
-0.10192602872848511,
0.2588694393634796,
-0.0030100643634796143,
0.0783180296421051,
0.9908482432365417,
-0.7513822317123413,
0.2827795445919037,
0.16268125176429749,
0.16828611493110657,
-0.33146533370018005,
0.07020691782236099,
-0.3804585635662079,
-0.01119967270642519,
-0.08129493147134781,
-0.19734331965446472,
0.24320225417613983,
-0.04501619189977646,
0.004996508359909058,
-0.7576903104782104,
0.10876026004552841,
-0.009440869092941284,
-0.047645553946495056,
-0.022043496370315552,
0.07293283939361572,
0.04192810133099556,
0.3827321529388428,
0.12933458387851715,
0.5042673945426941,
-0.07860985398292542,
-0.05144989490509033,
-0.08126650750637054,
-0.2582734525203705,
-0.2331092208623886,
0.05727186053991318,
0.3008773624897003,
0.05856290087103844,
-0.0372922345995903,
0.061218373477458954,
-0.24044771492481232,
0.128888800740242,
-0.09968050569295883,
0.18309220671653748,
0.5916156768798828,
-0.37816911935806274,
0.5928395390510559,
0.06067976355552673,
0.19762128591537476,
-0.26268935203552246,
-0.0034886449575424194,
0.191575288772583,
0.450790673494339,
-0.18056811392307281,
0.2311883121728897,
0.17448124289512634,
-0.0861554741859436,
-0.29804736375808716,
0.159849151968956,
-0.030276741832494736,
0.09122642129659653,
-0.13228674232959747,
-0.006917900405824184,
-0.018185146152973175,
0.238680899143219,
0.2508348226547241,
-0.21545261144638062,
0.12858271598815918,
-0.1876293271780014,
-0.03662097081542015,
-0.07761314511299133,
-0.26531311869621277,
-0.2472749799489975,
0.12518587708473206,
-0.0965791866183281,
0.06666980683803558,
-0.09828652441501617,
0.26480627059936523,
-0.3245788812637329,
-0.046361569315195084,
0.16266822814941406,
-0.38314831256866455,
0.32015910744667053,
0.22312690317630768,
0.029679257422685623,
0.54128098487854,
0.07551676034927368,
0.18253912031650543,
-0.2452261745929718,
0.5250062346458435,
-0.0328841358423233,
-0.16251009702682495,
-0.055438220500946045,
0.02999882772564888,
-0.016314508393406868,
0.41343215107917786,
-0.3394174575805664,
0.33053722977638245,
0.27044206857681274,
-0.20499597489833832,
-0.04645156115293503,
-0.10017317533493042,
-0.5604572892189026,
-0.137777179479599,
-0.05303332209587097,
0.1905011236667633,
-0.25175800919532776,
-0.04556606337428093,
-0.0298975370824337,
-0.37003079056739807,
0.3563534617424011,
0.1685422956943512,
-0.27520060539245605,
0.1627732515335083,
-0.1818597912788391,
0.031071551144123077,
-0.05486666411161423,
-0.3494192063808441,
-0.349414587020874,
0.2499830722808838,
-0.09334748983383179,
-0.22911562025547028,
0.3373188376426697,
0.18184621632099152,
0.34342798590660095,
-0.11750458180904388,
-0.20467624068260193,
-0.2562096118927002,
-0.11339765787124634,
0.12176308780908585,
-0.05861271917819977,
-0.149150550365448,
0.1124923974275589,
-0.12343372404575348,
0.09267659485340118,
0.3084256947040558,
0.040132615715265274,
-0.6738392114639282,
0.7458317875862122,
0.08279396593570709,
0.19363929331302643,
0.05930911749601364,
0.10835641622543335,
-0.14463858306407928,
-0.19363906979560852,
0.04230256378650665,
-0.023916341364383698,
0.2619636654853821,
-0.27632373571395874,
-0.27936437726020813,
0.024728141725063324,
-0.24941688776016235,
0.2564963400363922,
-0.20310257375240326,
0.07512177526950836,
0.2675582766532898,
-0.058755338191986084,
0.0556146577000618,
-0.03094903938472271,
-0.09973438084125519,
0.07755236327648163,
0.21041345596313477,
-0.23639796674251556,
-0.27885904908180237,
-0.2998815178871155,
0.18894608318805695,
0.31591716408729553,
-0.09182147681713104,
-0.07418246567249298,
-0.17584457993507385,
0.16922786831855774,
-0.003205487271770835,
0.05194485932588577,
0.20900288224220276,
-0.0388234443962574,
0.4175035357475281,
-0.15582242608070374,
0.27479690313339233,
0.29369300603866577,
0.0064466483891010284,
-0.33227354288101196,
-0.12115395069122314,
-0.15537819266319275,
-0.034646205604076385,
0.09916113317012787,
-0.071528360247612,
0.17417466640472412,
0.35403451323509216,
0.18243423104286194,
-0.050888754427433014,
0.0036467332392930984,
-0.06397484242916107,
-0.204763725399971,
-0.3515473008155823,
0.04160197824239731,
0.5334409475326538,
0.30674800276756287,
-0.07518070936203003,
-0.019120365381240845,
0.46558141708374023,
0.6530069708824158,
0.2767782509326935,
-0.20681101083755493,
-0.12316789478063583,
-0.09328643232584,
0.09614259004592896,
0.2741977274417877,
0.22634433209896088,
0.3303573727607727,
0.33528387546539307,
0.17487898468971252,
-0.20272181928157806,
-0.09134010225534439,
-0.23931752145290375,
-0.20063981413841248,
0.03888065367937088,
0.1851309984922409,
-0.035491958260536194,
0.2517324984073639,
-0.3701968491077423,
-0.25853824615478516,
-0.16911622881889343,
0.05665544420480728,
-0.10947798192501068,
-0.015391260385513306,
-0.025278441607952118,
-0.2767615020275116,
-0.15021845698356628,
-0.3162163197994232,
-0.050034113228321075,
0.08039000630378723,
-0.3453768789768219,
0.15239094197750092,
0.47331926226615906,
-0.12205290794372559,
0.23737166821956635,
0.41978833079338074,
-0.18408207595348358,
-0.270338773727417,
0.4652221202850342,
-0.15126843750476837,
-0.09751095622777939,
0.016683489084243774,
-0.09826827049255371,
-0.1754968911409378,
-0.05621534213423729,
0.33061400055885315,
-0.17198753356933594,
-0.2068498283624649,
-0.5113725662231445,
0.21943017840385437,
0.12128143012523651,
-0.007093474268913269,
-0.08468933403491974,
-0.22757118940353394,
0.0651635155081749,
-0.19809356331825256,
0.2106478363275528,
0.11563538014888763,
-0.33349958062171936,
0.10485629737377167,
-0.14979107677936554,
-0.09270372986793518,
-0.00780860660597682,
-0.1807839721441269,
0.06417591124773026,
-0.29798418283462524,
-0.20024272799491882,
0.23265522718429565,
-0.10643522441387177,
0.36484217643737793,
-0.29143792390823364,
-0.27370986342430115,
-0.015425296500325203,
0.08067955076694489,
-0.12965039908885956,
-0.04962676763534546,
-0.2799816131591797,
-0.15896695852279663,
0.04410553723573685,
-0.06170011684298515,
0.001252833753824234,
0.16845352947711945,
-0.12564592063426971,
0.054793886840343475,
-0.5180875658988953,
-0.2621495723724365,
-0.34863215684890747,
0.2689976990222931,
0.07895539700984955,
0.22687552869319916,
0.3302932381629944,
0.07596004754304886,
-0.0804513543844223,
0.03684891015291214,
-0.21203097701072693,
0.3614177703857422,
0.07697372138500214,
0.02508293092250824,
0.03215185925364494,
0.02951289527118206,
-0.16119390726089478,
0.24387669563293457,
0.536884069442749,
-0.1060270369052887,
0.011513318866491318,
-0.1437249332666397,
0.208406001329422,
0.06879483163356781,
-0.014033529907464981,
-0.039225023239851,
-0.10165441036224365,
-0.08858038485050201,
0.2035268396139145,
-0.02580476924777031,
-0.13134737312793732,
0.2007717788219452,
0.37851056456565857,
-0.11542565375566483,
-0.2924913465976715,
-0.30006349086761475,
0.043365128338336945,
0.23823648691177368,
-0.22447939217090607,
0.1650174856185913,
-0.00716303288936615,
-0.08914241194725037,
-0.3901558518409729,
-0.06005413830280304,
0.39420801401138306,
-0.17782558500766754,
-0.07239612191915512,
-0.2410304844379425,
-0.7161532044410706,
0.2087569683790207,
-0.011042458936572075,
-0.23797649145126343,
-0.08610276132822037,
0.13025438785552979,
0.2499585747718811,
0.11992135643959045,
0.8085281252861023,
-0.10720614343881607,
0.003383353352546692,
0.16287781298160553,
-0.166936457157135,
-0.30671969056129456,
-0.19395817816257477,
-0.18371687829494476,
0.3990063965320587,
0.2636916935443878,
0.08343760669231415,
-0.13202229142189026,
0.017145464196801186,
-0.061003513634204865,
0.14753662049770355,
-0.2783794701099396,
-0.3778992295265198,
-0.2526102662086487,
0.021726779639720917,
-0.05638232082128525,
0.13675184547901154,
-0.14134721457958221,
-0.19222392141819,
-0.5844656229019165,
-0.5279147028923035,
0.2641589641571045,
-0.2721042335033417,
-0.04315726459026337,
0.06490351259708405,
0.22408869862556458,
0.18871264159679413,
0.024479564279317856,
0.21713683009147644,
0.3208444118499756,
0.18823687732219696,
0.10939445346593857,
-0.004640553146600723,
0.10278941690921783,
0.30186519026756287,
-0.29893359541893005,
0.1551114320755005,
0.2804281413555145,
0.030264340341091156,
0.3643573224544525,
0.07080399245023727,
0.2830531597137451,
-0.20516331493854523,
-0.1935609132051468,
0.13730643689632416,
-0.12226774543523788,
-0.24139468371868134,
-0.032439038157463074,
0.25037962198257446,
0.35903018712997437,
-0.198554128408432,
0.3744690418243408,
-0.5634847283363342,
-0.3016777038574219,
-0.33249562978744507,
-0.1439577341079712,
0.7725008726119995,
-0.6448973417282104,
-0.17258815467357635,
-0.23128074407577515,
-0.29042455554008484,
0.2895800769329071,
0.21291591227054596,
0.336564838886261,
-0.5839899778366089,
-0.25649312138557434,
0.07288968563079834,
-0.13772045075893402,
0.1915079653263092,
0.5030778646469116,
-0.20309671759605408,
0.021706854924559593,
0.020807519555091858,
0.016100578010082245,
-0.2874540090560913,
-0.0036151260137557983,
0.38929665088653564,
-0.1426665484905243,
-0.5261186361312866,
-0.049808211624622345,
-0.06035694479942322,
-0.3748088479042053,
-0.05958510935306549,
0.26877361536026,
0.2843305766582489,
-0.08447029441595078,
-0.09470950812101364,
-0.198065847158432,
0.11771292984485626,
0.29532039165496826,
0.08471079170703888,
-0.2167581021785736,
-0.015537427738308907,
0.3733731508255005,
0.17212632298469543,
-0.0012508146464824677,
-0.0708845853805542,
-0.20719824731349945,
0.36616650223731995,
0.12225449830293655,
-0.21614015102386475,
0.00653099175542593,
-0.24577268958091736,
0.019756171852350235,
-0.4811077415943146,
0.30875977873802185,
0.11684423685073853,
-0.33747559785842896,
-0.344333291053772,
0.43384599685668945,
0.38331812620162964,
0.1111626848578453,
0.3123989999294281,
0.3095329999923706,
-0.051647648215293884,
-0.12137074768543243,
-0.026134870946407318,
0.32843661308288574,
-0.19225969910621643,
0.636522650718689,
-0.28156769275665283,
-0.42953193187713623,
-0.08579359948635101,
0.14121347665786743,
0.336519718170166,
0.2238316535949707,
-0.15339404344558716,
0.1703956574201584,
-0.011224908754229546,
-0.26452216506004333,
-0.06263546645641327,
-0.04653121903538704,
0.0898565724492073,
0.21721865236759186,
0.19226397573947906,
0.2347549945116043,
-0.05214511230587959,
0.038855236023664474,
-0.1687449812889099,
0.17441581189632416,
-0.2814103364944458,
-0.055410467088222504,
-0.273244172334671,
-0.046889543533325195,
-0.22781051695346832,
0.36442944407463074,
0.047678813338279724,
0.02213028259575367,
0.10515540838241577,
0.28127890825271606,
-0.16330547630786896,
-0.16995446383953094,
-0.27714696526527405,
0.443490594625473,
-0.09470761567354202,
0.21083679795265198,
-0.23416531085968018,
-0.12558838725090027,
-0.02648560330271721,
0.0767192393541336,
-0.4424094557762146,
-0.13526801764965057,
0.01693001389503479,
0.2389274388551712,
-0.09712853282690048,
0.02892112545669079,
-0.0027117899153381586,
0.16526851058006287,
-0.009877000004053116,
-0.21672193706035614,
0.3325140178203583,
0.3230305314064026,
0.025111157447099686,
0.17346233129501343,
0.18821190297603607,
-0.07713478058576584,
-0.151509627699852,
-0.006945520639419556,
0.04688732326030731,
0.34539008140563965,
-0.09703759104013443,
0.32139864563941956,
0.23731471598148346,
0.06039406359195709,
0.017406625673174858,
-0.2258470058441162,
0.43420809507369995,
0.4110449254512787,
-0.40503033995628357,
-0.06863094866275787,
0.059400904923677444,
0.0512588806450367,
0.5762380361557007,
0.2266196459531784,
-0.20879043638706207,
-0.21517615020275116,
0.019439954310655594,
0.14222976565361023,
0.027135789394378662,
-0.09651479870080948,
0.64421546459198,
0.024895431473851204,
0.15528416633605957,
0.3768119513988495,
0.20212218165397644,
-0.03828734904527664,
0.2131711095571518,
0.021286047995090485,
0.04305212199687958,
-0.4266729950904846,
0.264621764421463,
0.13812896609306335,
0.22712306678295135,
-0.06258097290992737,
0.21713772416114807,
-0.002648916095495224,
-0.10935159772634506,
0.13014937937259674,
0.2752361595630646,
0.29098111391067505,
0.18417954444885254,
-0.15933823585510254,
0.16421490907669067,
0.01814139634370804,
-0.1716742068529129,
0.11890973150730133,
-0.6245489716529846,
-0.06032349914312363,
0.09271824359893799,
0.22954800724983215,
-0.42801523208618164,
-0.21919652819633484,
-0.2147921770811081,
0.14131642878055573,
-0.07528262585401535,
-0.13939693570137024,
-0.03344077616930008,
-0.0426158681511879,
0.2144109308719635,
0.2832404673099518,
0.014829538762569427,
0.18313215672969818,
0.7611503601074219,
0.06657193601131439,
0.12437456846237183,
-0.3960133492946625,
-0.032894767820835114,
-0.006591565907001495,
0.39630499482154846,
-0.16969157755374908,
-0.1988794058561325,
-0.3536493182182312,
0.13337619602680206,
-0.018944498151540756,
0.09219702333211899,
-0.04692350700497627,
0.2308897078037262,
0.018882663920521736,
-0.17189504206180573,
0.0792648196220398,
0.1109297126531601,
-0.2428501546382904,
-0.049427613615989685,
0.17458249628543854,
-0.17043279111385345,
0.17024919390678406,
-0.0071221012622118,
-0.0069999354891479015,
0.39680665731430054,
0.2481471300125122,
0.28065741062164307,
-0.29169508814811707,
0.5846788883209229,
0.00605982169508934,
-0.15612749755382538,
0.15563151240348816,
-0.18674945831298828,
-0.3437195122241974,
-0.08692526817321777,
0.4630510210990906,
-0.4145115911960602,
0.08620613813400269,
-0.09039448201656342,
0.010014323517680168,
-0.35113969445228577,
0.2777141332626343,
0.02331061288714409,
0.5885864496231079,
-0.3265129625797272,
-0.11465051770210266,
-0.17546981573104858,
0.2727942168712616,
-0.04161268100142479,
0.13322298228740692,
-0.13852480053901672,
0.0943397507071495,
-0.2355956733226776,
0.2981938123703003,
0.5407949090003967,
-0.32089248299598694,
-0.10419514030218124,
0.14795026183128357,
-0.13406550884246826,
0.14168862998485565,
0.11112198233604431,
-0.08564338833093643,
-0.06429878622293472,
-0.18206626176834106,
0.38694268465042114,
0.012416456826031208,
0.0681009441614151,
0.17005011439323425,
0.14754480123519897,
0.2292930781841278,
0.037736643105745316,
0.40698346495628357,
0.3435986042022705,
0.2339792549610138,
-0.10121682286262512,
0.13755521178245544,
0.2114068865776062,
0.09242703020572662,
-0.18288561701774597,
0.22116538882255554,
0.09266860783100128,
0.3671703040599823,
-0.41449686884880066,
0.27468422055244446,
-0.1954452395439148,
-0.010980650782585144,
0.2951197624206543,
0.2698644697666168,
0.251513808965683,
-0.09051457047462463,
0.1599169373512268,
-0.09000381827354431,
-0.13399426639080048,
0.13661587238311768,
0.2760724127292633,
0.15146023035049438,
-0.13007381558418274,
0.12771126627922058,
-0.048520296812057495,
-0.4245520830154419,
-0.4889010190963745,
-0.3172628581523895,
0.3791208565235138,
-0.1580972969532013,
-0.03779824823141098,
-0.26634079217910767,
-0.35365980863571167,
0.28673073649406433,
-0.28376051783561707,
-0.40988659858703613,
0.15994112193584442,
-0.27415016293525696,
-0.3354054093360901,
0.046131234616041183,
0.18436619639396667,
0.4874301850795746,
-0.1770731657743454,
-0.13795040547847748,
-0.36218810081481934
] |
https://github.com/huggingface/datasets/issues/769 | How to choose proper download_mode in function load_dataset? | `download_mode=datasets.GenerateMode.FORCE_REDOWNLOAD` should work.
This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing | Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
| 17 | How to choose proper download_mode in function load_dataset?
Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
`download_mode=datasets.GenerateMode.FORCE_REDOWNLOAD` should work.
This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing | [
-0.2590160369873047,
-0.10657905787229538,
-0.032491497695446014,
0.07350924611091614,
0.39223039150238037,
-0.058800261467695236,
0.47319379448890686,
0.09392307698726654,
0.17507795989513397,
-0.08835986256599426,
-0.21461912989616394,
0.1605178713798523,
0.28409644961357117,
0.14577555656433105,
-0.018839173018932343,
0.034851789474487305,
0.1505477875471115,
0.07911466062068939,
-0.29786819219589233,
0.044699691236019135,
-0.46034300327301025,
-0.06852105259895325,
-0.21547719836235046,
-0.18342538177967072,
0.1294439733028412,
0.1641884446144104,
0.1677551120519638,
0.18451839685440063,
-0.1503620594739914,
-0.4337640106678009,
0.42013421654701233,
0.12276618182659149,
0.4481948912143707,
0.0825558602809906,
-0.00012646897812373936,
0.016151145100593567,
0.24992677569389343,
-0.3601168394088745,
-0.1838918775320053,
-0.3393198847770691,
-0.18704906105995178,
-0.241587832570076,
0.238995760679245,
-0.36052951216697693,
0.025311246514320374,
-0.168057382106781,
0.00011434592306613922,
-0.12101743370294571,
0.16449576616287231,
0.3842557370662689,
0.1007683277130127,
0.078116275370121,
-0.11884137988090515,
0.1853097677230835,
0.1774163842201233,
0.11410781741142273,
-0.053446002304553986,
0.4895186424255371,
0.34776076674461365,
0.25899508595466614,
0.09262271970510483,
0.005765614099800587,
-0.2732253968715668,
0.12779295444488525,
0.43412137031555176,
0.07340352982282639,
0.5844091773033142,
-0.20419317483901978,
-0.004430592060089111,
-0.03341490030288696,
0.8179605603218079,
-0.2546539604663849,
-0.15754912793636322,
-0.23351123929023743,
0.06086783483624458,
-0.35567304491996765,
0.1805979311466217,
0.05309375375509262,
-0.019709128886461258,
0.2729557156562805,
-0.3150652050971985,
-0.11126819998025894,
-0.010098997503519058,
0.34999608993530273,
0.020417898893356323,
0.0267176553606987,
-0.19696742296218872,
0.34875643253326416,
0.2979356050491333,
0.04549926519393921,
0.25756165385246277,
-0.41738390922546387,
0.20509043335914612,
0.03378156200051308,
-0.33761101961135864,
0.12751178443431854,
-0.15200138092041016,
0.23365041613578796,
0.22492393851280212,
0.21091563999652863,
-0.1419798880815506,
-0.14023062586784363,
-0.061830610036849976,
0.0403219498693943,
0.26659178733825684,
0.06896328926086426,
0.1517968773841858,
-0.31563860177993774,
0.02018696442246437,
0.09330179542303085,
0.20164404809474945,
0.07865092158317566,
-0.019576162099838257,
-0.2522190809249878,
0.5681582689285278,
0.020341401919722557,
0.18905533850193024,
-0.10915114730596542,
-0.2952101528644562,
-0.15858910977840424,
-0.07162247598171234,
-0.11315775662660599,
-0.05821225419640541,
0.3231159448623657,
0.016316182911396027,
0.15566900372505188,
-0.12745638191699982,
0.41840028762817383,
-0.25590911507606506,
-0.1300954669713974,
-0.00859074853360653,
-0.18586304783821106,
-0.21800963580608368,
-0.11998053640127182,
0.3201865255832672,
-0.29292842745780945,
0.25974804162979126,
0.3904038071632385,
-0.18635566532611847,
-0.173038050532341,
-0.043132372200489044,
-0.034785252064466476,
0.0328727662563324,
0.45306506752967834,
0.0829746276140213,
0.20834451913833618,
0.21788732707500458,
-0.1803499162197113,
-0.02897430583834648,
0.5776110291481018,
-0.3491700291633606,
-0.41180482506752014,
0.03660187870264053,
0.054190363734960556,
-0.29285651445388794,
0.04506731778383255,
-0.38066941499710083,
0.11299140751361847,
0.06547246873378754,
-0.22870048880577087,
0.07572038471698761,
-0.31230002641677856,
-0.0028024613857269287,
-0.34512296319007874,
-0.043112628161907196,
0.7118006944656372,
-0.5010122656822205,
-0.008622303605079651,
-0.2906810939311981,
-0.28068071603775024,
0.3792182505130768,
0.009500006213784218,
-0.3852306008338928,
-0.00827673077583313,
-0.21399801969528198,
-0.15662357211112976,
0.42932042479515076,
-0.2520582973957062,
-0.5417468547821045,
0.24553991854190826,
-0.022125285118818283,
0.01831168867647648,
0.299080491065979,
0.2141677588224411,
0.15855728089809418,
-0.17846427857875824,
-0.1892072558403015,
0.2094293087720871,
0.07737650722265244,
0.14819622039794922,
-0.049961864948272705,
-0.23451121151447296,
0.26159238815307617,
0.045915450900793076,
-0.24539153277873993,
0.20215965807437897,
0.00018496811389923096,
-0.2519761025905609,
0.17417076230049133,
0.06042640656232834,
-0.13605666160583496,
0.014371054247021675,
0.10592537373304367,
0.13297180831432343,
-0.13861989974975586,
0.10034766048192978,
-0.7810971736907959,
-0.021967967972159386,
0.2704712152481079,
-0.2892317473888397,
-0.2882653474807739,
-0.11702288687229156,
-0.4807579219341278,
-0.14407889544963837,
-0.27766549587249756,
0.0687074363231659,
-0.046601396054029465,
0.22381049394607544,
0.17257185280323029,
-0.06345219910144806,
-0.10815750062465668,
0.2495526671409607,
-0.2250647395849228,
0.2756274938583374,
-0.009452179074287415,
0.20796450972557068,
0.08407079428434372,
-0.05445781350135803,
0.06709341704845428,
-0.3101556897163391,
0.3440120816230774,
-0.20310553908348083,
-0.1752127707004547,
0.5737306475639343,
0.23453031480312347,
0.28909748792648315,
-0.5119715332984924,
0.05186392366886139,
0.1824989765882492,
0.15774203836917877,
-0.007913144305348396,
-0.09242817759513855,
0.23434318602085114,
0.04160873591899872,
-0.21780791878700256,
0.1471986025571823,
-0.2413245588541031,
0.0972040519118309,
-0.17322421073913574,
-0.18123097717761993,
0.297218382358551,
0.08286811411380768,
-0.11398926377296448,
-0.15725961327552795,
-0.14860492944717407,
0.11533878743648529,
0.2650652527809143,
0.1879076510667801,
-0.12278476357460022,
0.0679870992898941,
0.3652750551700592,
-0.2784503102302551,
0.14605340361595154,
0.12514758110046387,
-0.009434804320335388,
-0.20807689428329468,
0.3465997874736786,
0.1289149671792984,
0.6112675666809082,
0.06541842967271805,
-0.07544262707233429,
-0.060617201030254364,
-0.1442539244890213,
-0.23938830196857452,
0.4105067849159241,
-0.07998989522457123,
0.3619144856929779,
0.14317621290683746,
-0.004823179449886084,
-0.3801916539669037,
-0.4402507543563843,
0.20529627799987793,
0.37829506397247314,
0.24048703908920288,
-0.4643077254295349,
0.0005684457719326019,
-0.30545684695243835,
-0.16688582301139832,
-0.11412309110164642,
0.07884623110294342,
0.10462142527103424,
-0.19767020642757416,
-0.3108961582183838,
0.3138909637928009,
0.07994641363620758,
0.20381665229797363,
-0.2323601245880127,
-0.14954964816570282,
0.08189953118562698,
-0.7005094885826111,
0.031433820724487305,
-0.0007049050182104111,
-0.3189241588115692,
-0.10028313100337982,
0.22164829075336456,
-0.19865410029888153,
0.14191944897174835,
-0.3100053668022156,
-0.002307996153831482,
-0.3742951452732086,
0.04588059335947037,
-0.020448729395866394,
0.050444796681404114,
0.27783483266830444,
0.011418074369430542,
0.36902326345443726,
0.0027449578046798706,
0.1271580159664154,
0.201746866106987,
-0.021216686815023422,
0.0861169770359993,
0.14413340389728546,
-0.10749088227748871,
0.15170888602733612,
-0.12644809484481812,
-0.6500133872032166,
-0.2897944748401642,
-0.18770526349544525,
-0.17650185525417328,
0.02151845023036003,
-0.030800841748714447,
0.11519081890583038,
0.2868535816669464,
-0.1826750934123993,
0.11095923185348511,
0.13479450345039368,
-0.38727182149887085,
-0.13221630454063416,
0.4630838930606842,
0.12296417355537415,
-0.13890962302684784,
-0.09857024252414703,
-0.03311573341488838,
-0.016652114689350128,
0.32443833351135254,
-0.26265645027160645,
-0.25049275159835815,
-0.14540256559848785,
0.35905054211616516,
-0.05201633274555206,
0.3368939459323883,
0.29549849033355713,
0.027752848342061043,
0.14415724575519562,
-0.016932707279920578,
-0.2331855744123459,
0.060113344341516495,
0.21779751777648926,
0.1577085256576538,
0.3307512402534485,
0.42388373613357544,
-0.17383618652820587,
0.4840947389602661,
0.15315990149974823,
-0.08593755960464478,
0.3802889585494995,
-0.1445063352584839,
0.30862048268318176,
0.19561244547367096,
-0.14437143504619598,
-0.04711463674902916,
-0.16485735774040222,
0.020323913544416428,
0.23026056587696075,
-0.1398405134677887,
-0.18384100496768951,
-0.11843646317720413,
0.14282211661338806,
-0.5527733564376831,
-0.30694326758384705,
0.10332117229700089,
0.3018544614315033,
0.16914042830467224,
0.09406125545501709,
0.20615682005882263,
-0.11303061246871948,
-0.09550758451223373,
-0.01752382703125477,
0.5914151668548584,
0.16025391221046448,
0.1924053579568863,
-0.10533235222101212,
0.15482328832149506,
-0.12934201955795288,
0.29429399967193604,
0.1301005631685257,
0.503250241279602,
0.23390056192874908,
-0.004275333136320114,
0.12872782349586487,
-0.06333871185779572,
0.8413125872612,
-0.1583164781332016,
0.18616816401481628,
0.03345624357461929,
0.3317711055278778,
-0.24363820254802704,
-0.16457119584083557,
-0.1117376983165741,
0.1501457542181015,
0.008176280185580254,
0.09725435078144073,
-0.38796624541282654,
-0.12284521013498306,
-0.05315626412630081,
0.4365922212600708,
-0.0659545511007309,
-0.4471816122531891,
-0.28415626287460327,
-0.43765243887901306,
-0.4462881088256836,
-0.03845170885324478,
0.0179049801081419,
0.05499965324997902,
-0.22494548559188843,
0.04367100074887276,
0.16347667574882507,
0.004229098558425903,
0.03849802911281586,
-0.027152761816978455,
0.11223037540912628,
0.1543845534324646,
-0.014882711693644524,
0.0019934922456741333,
-0.39438125491142273,
0.22641460597515106,
0.5883178114891052,
-0.21960467100143433,
-0.3321853280067444,
0.06615134328603745,
0.05489693209528923,
0.19203618168830872,
0.14935457706451416,
-0.24152827262878418,
-0.0767548456788063,
-0.1030721515417099,
-0.0792040079832077,
-0.14888565242290497,
0.04309433326125145,
0.2652292251586914,
-0.07539817690849304,
-0.11871680617332458,
-0.8903481960296631,
0.5784323811531067,
-0.0845574140548706,
-0.1509040892124176,
0.04673972725868225,
0.25268176198005676,
-0.1398814618587494,
-0.08106531202793121,
0.0712345689535141,
0.7645345330238342,
-0.24462975561618805,
-0.028187673538923264,
0.3306538164615631,
-0.03130851686000824,
0.5819010734558105,
-0.2537860870361328,
0.12364125996828079,
-0.21661606431007385,
0.1507578194141388,
-0.02358909696340561,
-0.22887013852596283,
0.379382461309433,
0.16728471219539642,
-0.1164102703332901,
0.44599783420562744,
-0.16711238026618958,
0.41171205043792725,
0.0936773344874382,
0.1271076798439026,
-0.3512287437915802,
-0.24830496311187744,
-0.2595973312854767,
0.02729826793074608,
-0.20732645690441132,
0.14272169768810272,
0.03145677596330643,
0.11566737294197083,
0.05848328396677971,
0.15986907482147217,
-0.045196302235126495,
-0.12123654037714005,
-0.2295789122581482,
0.0017907284200191498,
-0.39668190479278564,
-0.27203524112701416,
0.19142819941043854,
0.5301149487495422,
-0.014077112078666687,
-0.03484829142689705,
-0.08568821102380753,
0.03028901293873787,
0.042707398533821106,
0.1711217612028122,
-0.13912759721279144,
-0.06490284204483032,
0.3109394311904907,
0.09594515711069107,
-0.22235210239887238,
0.12402190268039703,
0.023285992443561554,
0.09393925964832306,
-0.03554225713014603,
-0.1313210278749466,
0.22928720712661743,
-0.4811427593231201,
-0.5293110013008118,
-0.03533961623907089,
0.11857961118221283,
0.013694752007722855,
-0.03094113990664482,
-0.07695959508419037,
0.16653653979301453,
0.20454558730125427,
-0.3246525526046753,
-0.37082698941230774,
-0.29805782437324524,
0.34712159633636475,
0.11098930239677429,
0.14812637865543365,
0.09712135791778564,
0.00011113286018371582,
-0.16152241826057434,
-0.022897869348526,
0.09791193157434464,
-0.3864879012107849,
-0.4743148684501648,
0.11780569702386856,
0.08665218949317932,
0.22707687318325043,
-0.17685411870479584,
0.057498227804899216,
0.1341666877269745,
-0.07625215500593185,
0.052652183920145035,
-0.23327518999576569,
-0.20536719262599945,
-0.018345199525356293,
0.23043012619018555,
0.013168975710868835,
0.31496375799179077,
-0.1650415062904358,
0.11177666485309601,
-0.5403918027877808,
-0.15214616060256958,
0.006537894252687693,
0.2150776982307434,
0.12502317130565643,
0.1544850915670395,
0.17201703786849976,
-0.036436986178159714,
-0.15573856234550476,
-0.01785126142203808,
-0.028095990419387817,
-0.25075727701187134,
-0.09068907797336578,
-0.2075926512479782,
0.22642666101455688,
0.039130061864852905,
-0.19741660356521606,
-0.04685981944203377,
-0.44030237197875977,
-0.029407691210508347,
-0.17615389823913574,
0.2162543386220932,
0.2070029079914093,
-0.0021217837929725647,
0.14877593517303467,
-0.1941695362329483,
-0.1165107861161232,
-0.4289858341217041,
0.04318653419613838,
-0.2956336736679077,
0.2552613615989685,
0.2014317363500595,
0.2439677119255066,
0.07869497686624527,
0.03707156330347061,
-0.4545847177505493,
0.04013989865779877,
0.12466884404420853,
0.1746947169303894,
0.14578570425510406,
-0.21425361931324005,
0.27937495708465576,
0.025960499420762062,
0.23977920413017273,
0.5284751653671265,
-0.13798202574253082,
-0.1658487766981125,
0.1686345934867859,
0.042334556579589844,
-0.23247957229614258,
-0.07264028489589691,
-0.11315251886844635,
0.06835141777992249,
0.04217085614800453,
0.41528037190437317,
0.1428385078907013,
0.1111135333776474,
-0.03564482182264328,
-0.10071142762899399,
0.549289345741272,
0.20587284862995148,
0.07877366244792938,
0.7013626098632812,
0.10590866208076477,
0.1620965600013733,
0.3812277019023895,
0.2146877944469452,
0.037531398236751556,
0.27514055371284485,
-0.06560536473989487,
0.08515790104866028,
0.13462498784065247,
0.19965650141239166,
-0.2870306670665741,
-0.5832773447036743,
0.319264680147171,
0.440816730260849,
-0.5928208231925964,
0.1920885145664215,
0.36970365047454834,
0.24824708700180054,
-0.2218414545059204,
-0.029781930148601532,
-0.21401354670524597,
0.14407891035079956,
-0.135663241147995,
-0.3109329640865326,
-0.012406237423419952,
-0.3898652493953705,
-0.06710167229175568,
0.34563228487968445,
-0.37110644578933716,
-0.2835860252380371,
0.18457897007465363,
0.19337469339370728,
-0.07840916514396667,
-0.5394607186317444,
0.03429457172751427,
-0.020688295364379883,
0.2379595935344696,
-0.049514178186655045,
0.32129132747650146,
0.31000271439552307,
-0.03499732166528702,
0.135514035820961,
-0.028030192479491234,
0.37149590253829956,
0.19491685926914215,
0.15086694061756134,
-0.22175860404968262,
0.2618802785873413,
0.08228868246078491,
-0.0570816770195961,
0.08753880113363266,
0.13702905178070068,
0.4188596308231354,
0.2379578799009323,
0.10065656155347824,
-0.04182111471891403,
0.09137588739395142,
0.20753130316734314,
-0.34715738892555237,
-0.33201178908348083,
0.07665093243122101,
-0.037105925381183624,
0.03124912828207016,
0.06645677983760834,
0.0859546884894371,
-0.17042580246925354,
-0.07160747796297073,
0.37738388776779175,
0.02231639251112938,
0.1777164340019226,
0.01676774024963379,
0.01740056276321411,
0.06801748275756836,
0.15674228966236115,
-0.043205518275499344,
-0.05523436516523361,
-0.35182100534439087,
0.21305657923221588,
-0.7748299837112427,
-0.17374682426452637,
-0.010703790932893753,
-0.2574956715106964,
0.14453552663326263,
-0.09785997122526169,
0.09437735378742218,
0.448542058467865,
0.12371610850095749,
-0.0018751710886135697,
0.4510882496833801,
0.2833922207355499,
0.2019161432981491,
-0.3725009858608246,
-0.02479781210422516,
0.01999785006046295,
-0.22118142247200012,
-0.5889333486557007,
0.27818959951400757,
-0.23344317078590393,
-0.04610612615942955,
-0.39800548553466797,
0.09395486116409302,
0.36405253410339355,
-0.0353141725063324,
0.5893186330795288,
0.06438159942626953,
0.45320624113082886,
0.00702933594584465,
0.058641985058784485,
0.19927288591861725,
0.2542237341403961,
-0.026267249137163162,
-0.0073241740465164185,
-0.27874884009361267,
0.23735541105270386,
-0.27134203910827637,
0.2070479691028595,
-0.2745247483253479,
0.2398117035627365,
0.22444365918636322,
0.021466854959726334,
-0.2905827462673187,
-0.05231350660324097,
-0.13263224065303802,
-0.37390342354774475,
0.013994361273944378,
0.3103613555431366,
-0.11225557327270508,
0.45732516050338745,
-0.12656205892562866,
-0.1473310887813568,
0.38813287019729614,
-0.04940855875611305,
-0.176942840218544,
0.0829060971736908,
0.12784618139266968,
0.36241838335990906,
0.18840757012367249,
-0.4318869113922119,
0.31274014711380005,
0.318815141916275,
-0.22380781173706055,
-0.38386547565460205,
0.40878283977508545,
-0.23514369130134583,
0.0964604914188385,
-0.03783191740512848,
0.44005152583122253,
0.1302730143070221,
-0.3078213632106781,
0.018647681921720505,
-0.29987889528274536
] |
https://github.com/huggingface/datasets/issues/769 | How to choose proper download_mode in function load_dataset? | Indeed you should use `features` in this case.
```python
features = Features({'text': Value('string'), 'label': Value('float32')})
dataset = load_dataset('csv', data_files=['sst_test.csv'], features=features)
```
Note that because of an issue with the caching when you change the features (see #750 ) you still need to specify the `FORCE_REDOWNLOAD ` flag. I'm working on a fix for this one | Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
| 55 | How to choose proper download_mode in function load_dataset?
Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
Indeed you should use `features` in this case.
```python
features = Features({'text': Value('string'), 'label': Value('float32')})
dataset = load_dataset('csv', data_files=['sst_test.csv'], features=features)
```
Note that because of an issue with the caching when you change the features (see #750 ) you still need to specify the `FORCE_REDOWNLOAD ` flag. I'm working on a fix for this one | [
-0.2571399211883545,
-0.2127029299736023,
-0.04023989662528038,
0.16301488876342773,
0.4040101170539856,
-0.06868046522140503,
0.43939584493637085,
0.09292453527450562,
0.2167058140039444,
-0.08138309419155121,
-0.2033500075340271,
0.15104453265666962,
0.2890436351299286,
0.2188756912946701,
-0.047555919736623764,
-0.043487876653671265,
0.17236365377902985,
0.06637544929981232,
-0.35344988107681274,
0.05884568393230438,
-0.4380927085876465,
-0.02151656337082386,
-0.22590632736682892,
-0.204040989279747,
0.1186361089348793,
0.1169724240899086,
0.1479007452726364,
0.1589903086423874,
-0.13378040492534637,
-0.37802085280418396,
0.38890746235847473,
0.053157027810811996,
0.4369566738605499,
0.02533688396215439,
-0.00012535294808913022,
0.009091749787330627,
0.21515300869941711,
-0.368423193693161,
-0.1690395176410675,
-0.2970290780067444,
-0.1894737184047699,
-0.29596173763275146,
0.29581353068351746,
-0.3904574513435364,
0.02278701588511467,
-0.16935360431671143,
-0.04713534563779831,
-0.07683669775724411,
0.1460931897163391,
0.36175698041915894,
0.11437550187110901,
0.15776973962783813,
-0.07664534449577332,
0.19773948192596436,
0.20816922187805176,
0.09308886528015137,
-0.08684113621711731,
0.39319029450416565,
0.3226603865623474,
0.2978895604610443,
0.18514367938041687,
0.046410541981458664,
-0.32645562291145325,
0.09015904366970062,
0.43449604511260986,
0.08265627175569534,
0.5438578128814697,
-0.23512855172157288,
0.012047529220581055,
-0.045543372631073,
0.7830665111541748,
-0.14293426275253296,
-0.12577103078365326,
-0.26016271114349365,
-0.008001870475709438,
-0.35585111379623413,
0.18298587203025818,
0.05125095695257187,
0.027959320694208145,
0.2612244486808777,
-0.32935860753059387,
-0.06174284592270851,
-0.004001721739768982,
0.3507049083709717,
-0.016313523054122925,
-0.0037301182746887207,
-0.19912585616111755,
0.3501985967159271,
0.27800601720809937,
0.025190254673361778,
0.13371030986309052,
-0.46283581852912903,
0.18596486747264862,
0.05515927076339722,
-0.374767005443573,
0.11971300840377808,
-0.11016299575567245,
0.22702890634536743,
0.21343901753425598,
0.2350175380706787,
-0.17312972247600555,
-0.10566461831331253,
-0.07903870195150375,
0.05438758805394173,
0.3305213451385498,
0.10844765603542328,
0.09230482578277588,
-0.30735981464385986,
-0.01591365784406662,
0.07505615800619125,
0.19395138323307037,
0.04558829218149185,
-0.007097715046256781,
-0.20977050065994263,
0.5614815950393677,
-0.010034307837486267,
0.21208854019641876,
-0.15575943887233734,
-0.2577977776527405,
-0.11930590122938156,
-0.10155205428600311,
-0.009343776851892471,
-0.04178304597735405,
0.34877297282218933,
-0.021235838532447815,
0.16705378890037537,
-0.11753341555595398,
0.4232870936393738,
-0.2588962912559509,
-0.10442093759775162,
-0.02680526115000248,
-0.16922308504581451,
-0.10966706275939941,
-0.17697304487228394,
0.30577772855758667,
-0.2919172942638397,
0.2943977117538452,
0.35649198293685913,
-0.18965090811252594,
-0.19255033135414124,
-0.038214195519685745,
-0.09223781526088715,
-0.009829752147197723,
0.42891359329223633,
0.10953423380851746,
0.22182726860046387,
0.24283356964588165,
-0.11805348098278046,
-0.04411737248301506,
0.5599558353424072,
-0.34102925658226013,
-0.4236626625061035,
0.0073515381664037704,
0.07346674799919128,
-0.3567696213722229,
0.019164353609085083,
-0.3555147349834442,
0.12277138233184814,
0.032758355140686035,
-0.23731672763824463,
0.08378174901008606,
-0.3370423913002014,
-0.0787450522184372,
-0.3249077796936035,
-0.03264019638299942,
0.6747349500656128,
-0.47086435556411743,
-0.014305919408798218,
-0.1925155073404312,
-0.2515561282634735,
0.3785533607006073,
0.07742272317409515,
-0.4031010866165161,
-0.04035758972167969,
-0.187081441283226,
-0.09027460217475891,
0.43040987849235535,
-0.2198915183544159,
-0.5396747589111328,
0.2700549066066742,
0.03501827269792557,
0.08908584713935852,
0.32541579008102417,
0.2578172981739044,
0.23941291868686676,
-0.1552545130252838,
-0.25092723965644836,
0.3023550510406494,
0.08931808173656464,
0.16308081150054932,
-0.1126747876405716,
-0.1849408894777298,
0.33653920888900757,
0.020990654826164246,
-0.26877084374427795,
0.20237858593463898,
-0.06389082223176956,
-0.2422063946723938,
0.1783638447523117,
0.024313122034072876,
-0.13160619139671326,
0.03611889109015465,
0.11874748766422272,
0.22865696251392365,
-0.152963325381279,
0.0663994625210762,
-0.6884867548942566,
-0.034726932644844055,
0.2795579731464386,
-0.2823962867259979,
-0.28830772638320923,
-0.140254944562912,
-0.4521227777004242,
-0.12107351422309875,
-0.30107319355010986,
0.08180762827396393,
-0.03756929934024811,
0.18257835507392883,
0.1832839995622635,
-0.03706153482198715,
-0.07296294718980789,
0.2751713991165161,
-0.15649272501468658,
0.24629728496074677,
-0.013304512947797775,
0.24975760281085968,
0.11084088683128357,
-0.07256819307804108,
0.14763517677783966,
-0.25711607933044434,
0.3647034764289856,
-0.21168211102485657,
-0.1865241527557373,
0.48160696029663086,
0.22140266001224518,
0.2470843344926834,
-0.5144001245498657,
0.06786175817251205,
0.19914403557777405,
0.18138472735881805,
0.00151866115629673,
-0.03536524623632431,
0.2897432744503021,
0.03884420543909073,
-0.2861209213733673,
0.20311512053012848,
-0.18083828687667847,
0.10223960131406784,
-0.12566743791103363,
-0.1688033640384674,
0.3344343304634094,
0.09323005378246307,
-0.10763570666313171,
-0.12086383998394012,
-0.10855239629745483,
0.06650890409946442,
0.17632320523262024,
0.22632096707820892,
-0.2570772171020508,
0.11203394085168839,
0.36649325489997864,
-0.24651005864143372,
0.1577562540769577,
0.14055314660072327,
-0.018493399024009705,
-0.21180126070976257,
0.36600929498672485,
-0.03343847393989563,
0.5430464744567871,
0.07917704433202744,
-0.06560605764389038,
-0.09242802858352661,
-0.09474102407693863,
-0.2232441008090973,
0.4322992265224457,
-0.09017886221408844,
0.39306333661079407,
0.09282758086919785,
0.056718867272138596,
-0.37447479367256165,
-0.3599197268486023,
0.1701298952102661,
0.31536665558815,
0.23947769403457642,
-0.47513309121131897,
0.03567779064178467,
-0.3608301877975464,
-0.24963617324829102,
-0.11424465477466583,
0.048951610922813416,
0.15255382657051086,
-0.23446932435035706,
-0.2881448268890381,
0.3770527243614197,
0.08802133798599243,
0.16813290119171143,
-0.2675406038761139,
-0.1980847865343094,
0.1541348248720169,
-0.7329844236373901,
0.084514319896698,
0.034293122589588165,
-0.332218736410141,
-0.0932079404592514,
0.21783633530139923,
-0.12197645008563995,
0.12805572152137756,
-0.2368907779455185,
-0.012910060584545135,
-0.37989112734794617,
0.05223361402750015,
-0.01855415105819702,
0.028467565774917603,
0.2587379813194275,
-0.006433941423892975,
0.41165387630462646,
0.002828512340784073,
0.15282809734344482,
0.26065048575401306,
0.04938492923974991,
0.1308382898569107,
0.2404664158821106,
-0.0796578899025917,
0.09121759235858917,
-0.10801343619823456,
-0.6392262578010559,
-0.32087844610214233,
-0.1806236356496811,
-0.14762096107006073,
0.06522159278392792,
-0.02509460598230362,
0.06461810320615768,
0.32641106843948364,
-0.19835902750492096,
0.12416917085647583,
0.10981711000204086,
-0.3587358593940735,
-0.0688697099685669,
0.5512465834617615,
0.13373079895973206,
-0.16829563677310944,
-0.062290944159030914,
0.013462897390127182,
-0.058124374598264694,
0.2615852952003479,
-0.2785099744796753,
-0.28530848026275635,
-0.1439533680677414,
0.4526160955429077,
-0.0660180002450943,
0.29760557413101196,
0.28482019901275635,
-0.018076092004776,
0.14272181689739227,
0.02069762349128723,
-0.17656464874744415,
0.05786282569169998,
0.18874260783195496,
0.1285848170518875,
0.26522937417030334,
0.4068436622619629,
-0.19231505692005157,
0.45218151807785034,
0.1233738362789154,
-0.03810875490307808,
0.392726331949234,
-0.17605045437812805,
0.24721629917621613,
0.12350309640169144,
-0.132790207862854,
-0.06384412944316864,
-0.20238709449768066,
-0.0143619729205966,
0.24851791560649872,
-0.12478970736265182,
-0.21572427451610565,
-0.1185932457447052,
0.11081720888614655,
-0.5693224668502808,
-0.2923104166984558,
0.15482614934444427,
0.34295812249183655,
0.21717599034309387,
0.06427659094333649,
0.2186962068080902,
-0.11939182877540588,
-0.1251506507396698,
-0.026850959286093712,
0.6019417643547058,
0.1677834838628769,
0.19664104282855988,
-0.17997662723064423,
0.0977296233177185,
-0.11799592524766922,
0.28935933113098145,
0.08466242998838425,
0.5040069222450256,
0.20426435768604279,
-0.013496039435267448,
0.0957147404551506,
-0.07430357486009598,
0.8621491193771362,
-0.07784995436668396,
0.2306222766637802,
0.01692213863134384,
0.23692604899406433,
-0.30404964089393616,
-0.197723388671875,
-0.14892718195915222,
0.13297046720981598,
-0.019102096557617188,
0.15183675289154053,
-0.3600400686264038,
-0.12502063810825348,
-0.04370909929275513,
0.4756930470466614,
-0.1013353019952774,
-0.42118093371391296,
-0.2916678488254547,
-0.437874436378479,
-0.454020231962204,
-0.05589253455400467,
0.012001069262623787,
0.07909074425697327,
-0.2337283045053482,
0.025493230670690536,
0.10005763173103333,
0.04652135819196701,
-0.0006259679794311523,
-0.04866081848740578,
0.1596672236919403,
0.08044363558292389,
0.0307934433221817,
-0.06061028689146042,
-0.38984787464141846,
0.13672755658626556,
0.5804672241210938,
-0.12316423654556274,
-0.4300065040588379,
0.07805410027503967,
0.0023521538823843002,
0.19493895769119263,
0.12402696907520294,
-0.27614155411720276,
-0.02307000756263733,
-0.056155987083911896,
-0.06129840016365051,
-0.15335163474082947,
-0.016971560195088387,
0.31362083554267883,
-0.0065541318617761135,
-0.06391539424657822,
-0.8783692121505737,
0.5908769369125366,
-0.04705396294593811,
-0.12281850725412369,
-0.06816084682941437,
0.19369548559188843,
-0.1371002495288849,
0.0068527404218912125,
0.008832775056362152,
0.7403284311294556,
-0.1477389931678772,
-0.023425530642271042,
0.41063791513442993,
0.016523338854312897,
0.632375955581665,
-0.25745946168899536,
0.14520356059074402,
-0.2199903279542923,
0.1368507593870163,
-0.05924423784017563,
-0.21234837174415588,
0.3720146417617798,
0.0788654163479805,
-0.15909788012504578,
0.4722999632358551,
-0.2580108344554901,
0.38431859016418457,
0.03492039069533348,
0.11493679881095886,
-0.2998352646827698,
-0.20171098411083221,
-0.29723942279815674,
0.043728604912757874,
-0.18080304563045502,
0.14415469765663147,
0.048972148448228836,
0.08813462406396866,
0.0088871531188488,
0.1423189491033554,
-0.04024603217840195,
-0.10511106997728348,
-0.21454757452011108,
0.002858441323041916,
-0.2828826904296875,
-0.29131263494491577,
0.16966362297534943,
0.49402013421058655,
-0.07292237877845764,
-0.02795850858092308,
-0.08939481526613235,
-0.033226873725652695,
0.026972085237503052,
0.16632553935050964,
-0.1406583935022354,
-0.04220907390117645,
0.25794267654418945,
0.04007885605096817,
-0.24435222148895264,
0.13007062673568726,
0.010461683385074139,
0.10886095464229584,
0.002421930432319641,
-0.18397583067417145,
0.1504511535167694,
-0.5237014293670654,
-0.6343910694122314,
-0.050585463643074036,
0.13043206930160522,
0.012820214033126831,
-0.013184946030378342,
-0.1037006825208664,
0.13413669168949127,
0.20799338817596436,
-0.20319496095180511,
-0.33640486001968384,
-0.3015030026435852,
0.3213743567466736,
0.07398496568202972,
0.23002374172210693,
0.10357674956321716,
0.09231236577033997,
-0.20060546696186066,
-0.020833801478147507,
0.07168913632631302,
-0.39930883049964905,
-0.44692376255989075,
0.03799459710717201,
0.07482300698757172,
0.24943102896213531,
-0.2763232886791229,
0.176459401845932,
0.12840571999549866,
-0.12199760228395462,
0.04915079101920128,
-0.30135276913642883,
-0.11388364434242249,
0.046874888241291046,
0.283881813287735,
-0.0032973140478134155,
0.2612092196941376,
-0.15715985000133514,
0.09325110167264938,
-0.5119243860244751,
-0.16554772853851318,
-0.017133386805653572,
0.1885734498500824,
0.11455220729112625,
0.1965782195329666,
0.19971343874931335,
-0.030940601602196693,
-0.16148875653743744,
0.012044882401823997,
-0.023946277797222137,
-0.2194659560918808,
-0.10231373459100723,
-0.18907460570335388,
0.21986502408981323,
0.004794875159859657,
-0.23701483011245728,
-0.0781526044011116,
-0.4396761655807495,
-0.0063918717205524445,
-0.1508437991142273,
0.21341900527477264,
0.21148496866226196,
-0.02250652015209198,
0.11913307011127472,
-0.3444991707801819,
-0.13009685277938843,
-0.4444690942764282,
0.0951450988650322,
-0.27004364132881165,
0.2525138854980469,
0.21924734115600586,
0.21460974216461182,
0.11947964131832123,
0.034609295427799225,
-0.45908796787261963,
0.026988156139850616,
0.06762033700942993,
0.1436440497636795,
0.1754937469959259,
-0.2141358107328415,
0.32520443201065063,
0.07047371566295624,
0.22299624979496002,
0.48454150557518005,
-0.1388934999704361,
-0.13314363360404968,
0.14737102389335632,
0.06260712444782257,
-0.2442159205675125,
-0.1162254586815834,
-0.0963725745677948,
0.05849846452474594,
0.02489660307765007,
0.4365079700946808,
0.21032577753067017,
0.13857613503932953,
-0.02326294034719467,
-0.0939512550830841,
0.5303488969802856,
0.23827242851257324,
0.05301423743367195,
0.5988232493400574,
0.037268053740262985,
0.12607911229133606,
0.330483615398407,
0.2008473128080368,
0.024921149015426636,
0.270652174949646,
-0.05496872216463089,
0.02941656857728958,
0.2067643105983734,
0.1966658979654312,
-0.2933323085308075,
-0.5684548616409302,
0.2525373101234436,
0.3639097809791565,
-0.6029016971588135,
0.1919148564338684,
0.3080993890762329,
0.32667091488838196,
-0.25000476837158203,
-0.04253512993454933,
-0.211919903755188,
0.18077045679092407,
-0.15144535899162292,
-0.25731736421585083,
-0.03077697940170765,
-0.4313880503177643,
-0.13924476504325867,
0.3422461748123169,
-0.34857243299484253,
-0.27526354789733887,
0.22151339054107666,
0.1923905313014984,
-0.0687967985868454,
-0.5239718556404114,
0.08204377442598343,
-0.010985419154167175,
0.25645533204078674,
-0.07441850751638412,
0.3178030848503113,
0.3104492425918579,
-0.025156162679195404,
0.12665654718875885,
-0.03022332675755024,
0.38323095440864563,
0.17358922958374023,
0.1232963353395462,
-0.2349729686975479,
0.20473352074623108,
0.054849788546562195,
-0.031247131526470184,
0.04431737959384918,
0.1425587385892868,
0.4424271583557129,
0.2582493722438812,
0.09869217872619629,
-0.04930133745074272,
0.19069130718708038,
0.16521157324314117,
-0.382843017578125,
-0.3693990707397461,
0.08122575283050537,
-0.04124443233013153,
0.02111119031906128,
0.08206241577863693,
-0.019327975809574127,
-0.13195550441741943,
-0.06093780696392059,
0.38631632924079895,
0.10330509394407272,
0.2183605432510376,
0.09377449005842209,
0.016457516700029373,
0.04545443877577782,
0.17788220942020416,
-0.08221252262592316,
-0.013113230466842651,
-0.35093745589256287,
0.26135575771331787,
-0.756933867931366,
-0.1792026162147522,
-0.07207348942756653,
-0.31627222895622253,
0.22691795229911804,
-0.06807627528905869,
0.08324841409921646,
0.49201929569244385,
0.10159966349601746,
-0.0779433324933052,
0.4903146028518677,
0.23577968776226044,
0.16114386916160583,
-0.378686785697937,
-0.04627212882041931,
0.055692218244075775,
-0.22311639785766602,
-0.5922370553016663,
0.3191398084163666,
-0.30664294958114624,
-0.00539209321141243,
-0.392558217048645,
0.04553017020225525,
0.2697089910507202,
-0.08718371391296387,
0.579306960105896,
0.08896397799253464,
0.4939717650413513,
0.006149459630250931,
0.08019689470529556,
0.27679142355918884,
0.2586175501346588,
-0.02106957510113716,
-0.00760737806558609,
-0.30246442556381226,
0.29360371828079224,
-0.2321775108575821,
0.23487752676010132,
-0.26244619488716125,
0.22843481600284576,
0.24931935966014862,
-0.044930510222911835,
-0.25441744923591614,
-0.06779421865940094,
-0.14882545173168182,
-0.3843570649623871,
0.029691964387893677,
0.3405502438545227,
-0.15505695343017578,
0.4002465605735779,
-0.1127438098192215,
-0.10969973355531693,
0.385941743850708,
-0.009119048714637756,
-0.17621064186096191,
0.07426750659942627,
0.09393142908811569,
0.444763720035553,
0.22569753229618073,
-0.4652256965637207,
0.2522893249988556,
0.3160279393196106,
-0.17563092708587646,
-0.344552218914032,
0.39695391058921814,
-0.18295502662658691,
0.05705005303025246,
0.0019048824906349182,
0.4485105276107788,
0.0847407728433609,
-0.3051198720932007,
0.011832226067781448,
-0.33021318912506104
] |
https://github.com/huggingface/datasets/issues/769 | How to choose proper download_mode in function load_dataset? | https://github.com/huggingface/datasets/issues/769#issuecomment-717837832
> This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing
@lhoestq do you still think we should rename it?
| Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
| 25 | How to choose proper download_mode in function load_dataset?
Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
https://github.com/huggingface/datasets/issues/769#issuecomment-717837832
> This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing
@lhoestq do you still think we should rename it?
| [
-0.2798764109611511,
-0.19788102805614471,
-0.033059556037187576,
0.20589013397693634,
0.386263370513916,
-0.05320184677839279,
0.3852047622203827,
0.0819176658987999,
0.22671213746070862,
-0.07466554641723633,
-0.2240724414587021,
0.12037784606218338,
0.2853154242038727,
0.19464696943759918,
-0.031751636415719986,
-0.03576651215553284,
0.14833948016166687,
0.047740742564201355,
-0.35765066742897034,
0.057962603867053986,
-0.43049660325050354,
0.01557331345975399,
-0.23357520997524261,
-0.22287608683109283,
0.13585415482521057,
0.09574228525161743,
0.14880284667015076,
0.16194427013397217,
-0.14226697385311127,
-0.3561888337135315,
0.4395991265773773,
0.08539101481437683,
0.4502350389957428,
0.059191882610321045,
-0.00012460506695788354,
0.008707433938980103,
0.2521946430206299,
-0.3406260311603546,
-0.1852664053440094,
-0.32582902908325195,
-0.1933574080467224,
-0.23500309884548187,
0.2867308557033539,
-0.3290712833404541,
0.006342414766550064,
-0.14056958258152008,
-0.019505491480231285,
-0.11203593760728836,
0.18781688809394836,
0.33168643712997437,
0.11749713122844696,
0.17929314076900482,
-0.09773679822683334,
0.16192364692687988,
0.15093031525611877,
0.0706966444849968,
-0.04567284882068634,
0.45100462436676025,
0.2498958706855774,
0.28177928924560547,
0.15273232758045197,
0.03766437992453575,
-0.2944645285606384,
0.11537991464138031,
0.4248172640800476,
0.09524711221456528,
0.4449945390224457,
-0.2206559181213379,
0.024030452594161034,
-0.004606656730175018,
0.7648966312408447,
-0.19145545363426208,
-0.15103960037231445,
-0.283473402261734,
0.01803744211792946,
-0.3637230396270752,
0.2219087779521942,
0.03950650244951248,
0.01908627152442932,
0.2825433611869812,
-0.34080955386161804,
-0.029157184064388275,
-0.021083176136016846,
0.35263919830322266,
-0.043954603374004364,
-0.053296253085136414,
-0.24290823936462402,
0.32715678215026855,
0.31162694096565247,
0.05891018733382225,
0.10565686225891113,
-0.45729416608810425,
0.17356152832508087,
0.058683980256319046,
-0.41517093777656555,
0.12482623755931854,
-0.13408541679382324,
0.29515016078948975,
0.23916921019554138,
0.244886115193367,
-0.15338104963302612,
-0.09195268899202347,
-0.10659834742546082,
0.04839513078331947,
0.35603392124176025,
0.12309323251247406,
0.11356034874916077,
-0.30667340755462646,
0.008355259895324707,
0.10743340849876404,
0.2101041078567505,
0.05499805510044098,
-0.010636663064360619,
-0.21977615356445312,
0.4889346957206726,
-0.04210536926984787,
0.1833542436361313,
-0.1487324982881546,
-0.26048460602760315,
-0.12018532305955887,
-0.09790480881929398,
-0.032129548490047455,
-0.004980103112757206,
0.36518925428390503,
-0.03908673673868179,
0.15562039613723755,
-0.10595234483480453,
0.39331895112991333,
-0.2662840783596039,
-0.10344696789979935,
-0.04097320884466171,
-0.18521487712860107,
-0.11281226575374603,
-0.14522740244865417,
0.3013896346092224,
-0.33327364921569824,
0.2803800404071808,
0.3818293511867523,
-0.18946696817874908,
-0.15118922293186188,
-0.06805189698934555,
-0.09487278759479523,
-0.011673316359519958,
0.4627520442008972,
0.12887363135814667,
0.27576541900634766,
0.2283201366662979,
-0.10820126533508301,
-0.02960553765296936,
0.5129960179328918,
-0.3226851224899292,
-0.3870905339717865,
0.02657519280910492,
0.07113178819417953,
-0.3539590835571289,
-0.0015815570950508118,
-0.4478650987148285,
0.14473728835582733,
0.03879319876432419,
-0.24558106064796448,
0.10090184211730957,
-0.32115691900253296,
-0.07444480061531067,
-0.3019760847091675,
0.006909715011715889,
0.6977205276489258,
-0.4630516767501831,
-0.02444261685013771,
-0.19516852498054504,
-0.2860996723175049,
0.3574332892894745,
0.12167322635650635,
-0.37396129965782166,
-0.032567866146564484,
-0.22357277572155,
-0.08495866507291794,
0.38114848732948303,
-0.23147840797901154,
-0.5355517864227295,
0.25041142106056213,
0.028000064194202423,
0.10334088653326035,
0.3056829869747162,
0.2288891077041626,
0.20148023962974548,
-0.1565829962491989,
-0.2518613338470459,
0.2928072214126587,
0.09466199576854706,
0.15495269000530243,
-0.08838669210672379,
-0.18525078892707825,
0.2667437195777893,
0.04425519332289696,
-0.27571359276771545,
0.17629200220108032,
-0.05714515596628189,
-0.2143394947052002,
0.1828952133655548,
0.06254654377698898,
-0.1157342717051506,
0.051429785788059235,
0.11394074559211731,
0.1710980236530304,
-0.1588858664035797,
0.06159074604511261,
-0.749674916267395,
-0.041464902460575104,
0.2590664029121399,
-0.28239259123802185,
-0.27111881971359253,
-0.13158458471298218,
-0.42298027873039246,
-0.13400551676750183,
-0.298575758934021,
0.09379051625728607,
-0.04544737935066223,
0.18227002024650574,
0.22559428215026855,
0.0006146952509880066,
-0.09117200970649719,
0.2795017957687378,
-0.20267316699028015,
0.27580025792121887,
-0.08666194975376129,
0.22606126964092255,
0.11731445789337158,
-0.05094093456864357,
0.13989223539829254,
-0.2587853670120239,
0.33875465393066406,
-0.23620733618736267,
-0.1671842634677887,
0.5111986398696899,
0.19605274498462677,
0.25341010093688965,
-0.5042046308517456,
0.07598897814750671,
0.19774065911769867,
0.20341721177101135,
-0.026535289362072945,
-0.08845806121826172,
0.24539655447006226,
0.0594477578997612,
-0.3105701506137848,
0.19032727181911469,
-0.20306257903575897,
0.10816388577222824,
-0.13468049466609955,
-0.17778071761131287,
0.3459453284740448,
0.0982835590839386,
-0.10561549663543701,
-0.1349872648715973,
-0.08236007392406464,
0.06952184438705444,
0.25429683923721313,
0.22430294752120972,
-0.2490677684545517,
0.09099651128053665,
0.36376601457595825,
-0.24619975686073303,
0.12169639021158218,
0.16672497987747192,
-0.022719666361808777,
-0.22203576564788818,
0.3906046152114868,
0.03926679864525795,
0.541705310344696,
0.0809040442109108,
-0.03521224483847618,
-0.08879377692937851,
-0.12674489617347717,
-0.23663637042045593,
0.41875988245010376,
-0.09365293383598328,
0.3716507852077484,
0.1068069338798523,
0.043200407177209854,
-0.31915926933288574,
-0.37652286887168884,
0.20264215767383575,
0.29355767369270325,
0.25889313220977783,
-0.49082598090171814,
0.04541247338056564,
-0.3661326766014099,
-0.27292492985725403,
-0.12844015657901764,
0.07046187669038773,
0.13239364326000214,
-0.22571207582950592,
-0.2988414764404297,
0.35101935267448425,
0.06902708113193512,
0.18269142508506775,
-0.22035308182239532,
-0.15423975884914398,
0.13028740882873535,
-0.7033340334892273,
0.034913040697574615,
0.05175460875034332,
-0.32265350222587585,
-0.08895218372344971,
0.268200159072876,
-0.16099172830581665,
0.15235042572021484,
-0.28112515807151794,
-0.03604348003864288,
-0.39391523599624634,
0.05246522277593613,
0.008182503283023834,
0.020872529596090317,
0.26327428221702576,
0.022478021681308746,
0.4223606586456299,
-0.032184213399887085,
0.17330721020698547,
0.24741633236408234,
0.008925391361117363,
0.11237688362598419,
0.206472709774971,
-0.08793874084949493,
0.11962247639894485,
-0.11477679014205933,
-0.6103789210319519,
-0.3059311807155609,
-0.1651432067155838,
-0.08909474313259125,
0.020433839410543442,
-0.05321936309337616,
0.1091904267668724,
0.2968275845050812,
-0.17181292176246643,
0.03669077157974243,
0.1219288557767868,
-0.3866269290447235,
-0.16215911507606506,
0.5011811852455139,
0.12293577194213867,
-0.20173871517181396,
-0.07467066496610641,
0.029509946703910828,
-0.0029823370277881622,
0.24237367510795593,
-0.29887068271636963,
-0.32914379239082336,
-0.13231292366981506,
0.42807474732398987,
-0.047832101583480835,
0.3283894658088684,
0.3014459013938904,
-0.07007281482219696,
0.14800086617469788,
0.0011775754392147064,
-0.17662446200847626,
0.0465109646320343,
0.13943234086036682,
0.12979179620742798,
0.2723114490509033,
0.42239949107170105,
-0.1750674992799759,
0.497209370136261,
0.1787392646074295,
-0.05871979519724846,
0.37511929869651794,
-0.16152925789356232,
0.32353007793426514,
0.11462920904159546,
-0.12027391791343689,
-0.06257737427949905,
-0.17847299575805664,
-0.0005942806601524353,
0.2827979624271393,
-0.1105235293507576,
-0.16721633076667786,
-0.10972645878791809,
0.10821260511875153,
-0.5709981918334961,
-0.2887365221977234,
0.12731435894966125,
0.3424355983734131,
0.16112154722213745,
0.08758096396923065,
0.2170676290988922,
-0.07666675746440887,
-0.13644176721572876,
-0.035824358463287354,
0.6041223406791687,
0.17380565404891968,
0.19897796213626862,
-0.13142769038677216,
0.07785823941230774,
-0.15480682253837585,
0.31444573402404785,
0.07623962312936783,
0.48272180557250977,
0.20099659264087677,
0.02004982903599739,
0.12762051820755005,
-0.06149354949593544,
0.8854612708091736,
-0.1126273050904274,
0.20179124176502228,
-0.016692914068698883,
0.2150491178035736,
-0.3219568133354187,
-0.13737742602825165,
-0.14139506220817566,
0.10666162520647049,
0.00851738452911377,
0.12472226470708847,
-0.4031294584274292,
-0.1454477459192276,
-0.006346296519041061,
0.4497119188308716,
-0.05809728428721428,
-0.4435133934020996,
-0.29328012466430664,
-0.4406045973300934,
-0.42177048325538635,
-0.06453510373830795,
0.014226650819182396,
0.05694575980305672,
-0.21126435697078705,
0.037200670689344406,
0.10675732791423798,
0.05149754136800766,
0.0009423047304153442,
-0.06086152419447899,
0.1419074535369873,
0.1281057596206665,
0.03914491459727287,
0.029536733403801918,
-0.37710243463516235,
0.18777038156986237,
0.590775728225708,
-0.19289752840995789,
-0.40452319383621216,
0.10037704557180405,
0.0719645544886589,
0.16527234017848969,
0.12481025606393814,
-0.2885723114013672,
-0.04164745658636093,
-0.013244278728961945,
-0.04076250642538071,
-0.16726383566856384,
0.0032056928612291813,
0.3035697638988495,
0.040469784289598465,
-0.09756233543157578,
-0.8648194670677185,
0.6238211393356323,
-0.03175188973546028,
-0.12543845176696777,
-0.012620516121387482,
0.24859049916267395,
-0.1258184015750885,
-0.06037153676152229,
-0.004811190068721771,
0.7005470395088196,
-0.1899908035993576,
0.001787811517715454,
0.410653680562973,
-0.005177110433578491,
0.6422500014305115,
-0.24777650833129883,
0.1170232817530632,
-0.23484425246715546,
0.16182297468185425,
-0.054996393620967865,
-0.20373068749904633,
0.36420679092407227,
0.06429123133420944,
-0.1225493848323822,
0.4706718325614929,
-0.1918589472770691,
0.40713194012641907,
0.029298977926373482,
0.14857091009616852,
-0.356507271528244,
-0.2436763346195221,
-0.34776097536087036,
0.047285862267017365,
-0.18379607796669006,
0.15854701399803162,
0.03336858004331589,
0.12510845065116882,
0.0423583947122097,
0.1326735019683838,
-0.05942460894584656,
-0.12212329357862473,
-0.247267484664917,
-0.04900407791137695,
-0.2589072287082672,
-0.3076106905937195,
0.18034055829048157,
0.5195508003234863,
-0.033392444252967834,
-0.018531274050474167,
-0.12333305180072784,
-0.008424095809459686,
-0.05800726264715195,
0.16991707682609558,
-0.13309362530708313,
-0.07121257483959198,
0.2894565463066101,
0.066163070499897,
-0.18616020679473877,
0.091855488717556,
0.007354614324867725,
0.12392252683639526,
0.02086825668811798,
-0.15129593014717102,
0.1181754320859909,
-0.5021564960479736,
-0.5856503844261169,
-0.0853891521692276,
0.1713883876800537,
-0.0010404251515865326,
-0.011295318603515625,
-0.07896912097930908,
0.17019124329090118,
0.1932043433189392,
-0.21140681207180023,
-0.34374430775642395,
-0.3168165981769562,
0.369947224855423,
0.03454963490366936,
0.18303652107715607,
0.10795246809720993,
0.08693981170654297,
-0.20279629528522491,
-0.027271881699562073,
0.08214274793863297,
-0.34299135208129883,
-0.468034029006958,
0.05028565973043442,
0.1190856322646141,
0.2524016499519348,
-0.2610754072666168,
0.1683235466480255,
0.1349402666091919,
-0.18124854564666748,
0.05672674998641014,
-0.2845707833766937,
-0.12401369214057922,
0.05260216444730759,
0.2618775963783264,
0.025802744552493095,
0.30404263734817505,
-0.1638571172952652,
0.09998136758804321,
-0.5216052532196045,
-0.16368871927261353,
-0.008153138682246208,
0.18327702581882477,
0.07024013996124268,
0.18112196028232574,
0.21346142888069153,
0.04723065346479416,
-0.1853928416967392,
0.003753799945116043,
-0.008666802197694778,
-0.24624627828598022,
-0.10427968204021454,
-0.18308599293231964,
0.2163262516260147,
0.007181497290730476,
-0.23574842512607574,
-0.023200511932373047,
-0.4137425422668457,
-0.04070359095931053,
-0.18848153948783875,
0.2527751326560974,
0.196490079164505,
0.0008724480867385864,
0.09111182391643524,
-0.29692399501800537,
-0.10465044528245926,
-0.4233296513557434,
0.0950176864862442,
-0.27163857221603394,
0.23490113019943237,
0.18981115520000458,
0.18678206205368042,
0.06956779211759567,
0.026837460696697235,
-0.39906036853790283,
0.04960161820054054,
0.11900413781404495,
0.12053515017032623,
0.16564926505088806,
-0.235141322016716,
0.2820316255092621,
0.09732785075902939,
0.29912668466567993,
0.4505528211593628,
-0.14272671937942505,
-0.1320524960756302,
0.13555195927619934,
0.05189649015665054,
-0.21393953263759613,
-0.03186534345149994,
-0.10285145044326782,
0.08415550738573074,
0.027218248695135117,
0.42871785163879395,
0.17855876684188843,
0.13242703676223755,
-0.013170771300792694,
-0.10383246093988419,
0.5877833366394043,
0.21528911590576172,
0.07240915298461914,
0.548418402671814,
0.02282394841313362,
0.14907604455947876,
0.3870720863342285,
0.20978865027427673,
0.02164618670940399,
0.25447332859039307,
-0.09407112747430801,
0.04420200735330582,
0.1173657774925232,
0.21601936221122742,
-0.3018400967121124,
-0.6200032234191895,
0.28826698660850525,
0.38617661595344543,
-0.6205142736434937,
0.16677230596542358,
0.2819170355796814,
0.3910217583179474,
-0.2811591327190399,
-0.03427490219473839,
-0.21924325823783875,
0.1789828985929489,
-0.15657460689544678,
-0.2546190023422241,
-0.08186237514019012,
-0.4022904634475708,
-0.03175899758934975,
0.342629075050354,
-0.3564675450325012,
-0.3191501498222351,
0.2201729714870453,
0.1973218470811844,
-0.08279943466186523,
-0.5765586495399475,
0.05066429823637009,
-0.017119884490966797,
0.2318512499332428,
-0.04609076678752899,
0.38378003239631653,
0.28992027044296265,
-0.023068666458129883,
0.1258525550365448,
0.024969205260276794,
0.39765074849128723,
0.15826623141765594,
0.1826033592224121,
-0.23392724990844727,
0.21022403240203857,
0.08210155367851257,
-0.03836175054311752,
0.0876927301287651,
0.1372544914484024,
0.4095671474933624,
0.24512241780757904,
0.10974575579166412,
-0.053332578390836716,
0.15675827860832214,
0.1504281908273697,
-0.31593942642211914,
-0.37362971901893616,
0.0747830718755722,
-0.09794047474861145,
0.057650983333587646,
0.06306388974189758,
0.0014721974730491638,
-0.15190938115119934,
0.008830802515149117,
0.33690890669822693,
0.06405480206012726,
0.2057305872440338,
0.060246288776397705,
0.01911807805299759,
0.08860868215560913,
0.18970663845539093,
-0.04431788995862007,
-0.0037777982652187347,
-0.3516491949558258,
0.24018476903438568,
-0.794071614742279,
-0.19371891021728516,
-0.05873769894242287,
-0.2783621549606323,
0.17894712090492249,
-0.10080769658088684,
0.07910464704036713,
0.46107107400894165,
0.1298096626996994,
-0.04474520683288574,
0.4832616448402405,
0.1946675330400467,
0.17245331406593323,
-0.37505677342414856,
-0.09349384903907776,
0.013823654502630234,
-0.20599615573883057,
-0.5705130100250244,
0.31530436873435974,
-0.26579993963241577,
-0.040694065392017365,
-0.3786633014678955,
0.1405257135629654,
0.22679337859153748,
-0.13811884820461273,
0.5399848818778992,
0.10641861706972122,
0.4722534716129303,
0.00704805925488472,
0.07560835778713226,
0.2270420491695404,
0.23723174631595612,
-0.05884702131152153,
0.010686531662940979,
-0.33252206444740295,
0.29549047350883484,
-0.23025153577327728,
0.13755738735198975,
-0.2751027047634125,
0.21781696379184723,
0.24869094789028168,
0.020255127921700478,
-0.29484158754348755,
-0.04766896367073059,
-0.15896087884902954,
-0.361773282289505,
0.03716597333550453,
0.35590410232543945,
-0.15216855704784393,
0.4267200827598572,
-0.15068238973617554,
-0.13921549916267395,
0.379658043384552,
-0.09238249063491821,
-0.1292765885591507,
0.09575104713439941,
0.09631422162055969,
0.39597684144973755,
0.15351630747318268,
-0.5080652832984924,
0.2860996127128601,
0.319004088640213,
-0.20084840059280396,
-0.3480018675327301,
0.3950616717338562,
-0.20186027884483337,
0.07441231608390808,
-0.003952674567699432,
0.4556771516799927,
0.13997268676757812,
-0.32783517241477966,
0.07816450297832489,
-0.3292917013168335
] |
https://github.com/huggingface/datasets/issues/769 | How to choose proper download_mode in function load_dataset? | It's no big deal, but since it can be confusing to users I think it's worth renaming it, and deprecate `GenerateMode` until `datasets` 2.0 at least. IMO it's confusing to have `download_mode=GenerateMode.something` | Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
| 32 | How to choose proper download_mode in function load_dataset?
Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
It's no big deal, but since it can be confusing to users I think it's worth renaming it, and deprecate `GenerateMode` until `datasets` 2.0 at least. IMO it's confusing to have `download_mode=GenerateMode.something` | [
-0.2947123050689697,
-0.10144941508769989,
-0.028979860246181488,
0.13799965381622314,
0.39403462409973145,
-0.07355213910341263,
0.4411509335041046,
0.10970285534858704,
0.17883998155593872,
-0.053159937262535095,
-0.18559105694293976,
0.15626481175422668,
0.30129751563072205,
0.11753436177968979,
-0.03417252376675606,
-0.010789521038532257,
0.16263774037361145,
0.06630825996398926,
-0.3622530996799469,
0.055152349174022675,
-0.45795539021492004,
-0.03980233520269394,
-0.22290021181106567,
-0.2115519791841507,
0.13416363298892975,
0.09622855484485626,
0.1678566336631775,
0.1433602124452591,
-0.14963029325008392,
-0.3578903377056122,
0.3984163999557495,
0.10016758739948273,
0.4394897520542145,
0.03878519684076309,
-0.00012467698252294213,
0.010404877364635468,
0.24839819967746735,
-0.3515195846557617,
-0.21630579233169556,
-0.3303234577178955,
-0.16955167055130005,
-0.2470073252916336,
0.25099968910217285,
-0.3539011776447296,
0.014917314052581787,
-0.1475045084953308,
-0.017129486426711082,
-0.1453440636396408,
0.1400759518146515,
0.35601571202278137,
0.11411571502685547,
0.11887769401073456,
-0.11327149718999863,
0.16147564351558685,
0.18225617706775665,
0.1008821502327919,
-0.04881497845053673,
0.4322468340396881,
0.3009185791015625,
0.25791868567466736,
0.11733275651931763,
0.017406238242983818,
-0.30693259835243225,
0.1062031090259552,
0.4304788410663605,
0.11724985390901566,
0.5520910620689392,
-0.23463252186775208,
0.02758142538368702,
-0.060002461075782776,
0.7800905704498291,
-0.21805474162101746,
-0.15101489424705505,
-0.2670866549015045,
0.03986382484436035,
-0.3539098799228668,
0.1949227750301361,
0.06199824810028076,
-0.02409197762608528,
0.2744126319885254,
-0.33483970165252686,
-0.03631921857595444,
-0.010510828346014023,
0.3566790819168091,
0.012476392090320587,
0.008542418479919434,
-0.18395623564720154,
0.34269943833351135,
0.29014676809310913,
0.05979674309492111,
0.21711090207099915,
-0.4752421975135803,
0.1882118582725525,
0.05965510383248329,
-0.35211440920829773,
0.15092499554157257,
-0.12432924658060074,
0.24448254704475403,
0.22012194991111755,
0.23264645040035248,
-0.17511765658855438,
-0.11718273907899857,
-0.05783317610621452,
0.05599895119667053,
0.3184877932071686,
0.0928608775138855,
0.07793949544429779,
-0.28614869713783264,
-0.024761080741882324,
0.07741390913724899,
0.2174798548221588,
0.0766754299402237,
-0.020219825208187103,
-0.22946466505527496,
0.5394328832626343,
0.012264641001820564,
0.15095913410186768,
-0.11022867262363434,
-0.2564117908477783,
-0.15229380130767822,
-0.10834965109825134,
-0.05032866448163986,
-0.03839188441634178,
0.347339004278183,
-0.013018552213907242,
0.18230846524238586,
-0.12194608896970749,
0.42113715410232544,
-0.27390336990356445,
-0.14000441133975983,
-0.030456500127911568,
-0.17864011228084564,
-0.16105398535728455,
-0.13868139684200287,
0.3034827709197998,
-0.2638402581214905,
0.2362297922372818,
0.3927668333053589,
-0.1875569373369217,
-0.13702091574668884,
-0.028739526867866516,
-0.0802142471075058,
0.033155422657728195,
0.45214518904685974,
0.11484195291996002,
0.23290230333805084,
0.23012633621692657,
-0.15177258849143982,
-0.04239289462566376,
0.5719510316848755,
-0.31776365637779236,
-0.4238792061805725,
0.003247588872909546,
0.07207263261079788,
-0.3340526223182678,
0.04656131938099861,
-0.36179319024086,
0.1286861151456833,
0.06475824117660522,
-0.2461363524198532,
0.07839293777942657,
-0.34336549043655396,
-0.03515180945396423,
-0.3525264263153076,
-0.013251986354589462,
0.6905391216278076,
-0.505525529384613,
0.009311690926551819,
-0.27384665608406067,
-0.24754679203033447,
0.39618730545043945,
0.059748925268650055,
-0.387116938829422,
-0.01606825739145279,
-0.21549034118652344,
-0.11381305754184723,
0.4136347472667694,
-0.2304731011390686,
-0.5284530520439148,
0.24065347015857697,
0.004186153411865234,
0.0928683802485466,
0.33323395252227783,
0.2337845265865326,
0.2036597728729248,
-0.18430475890636444,
-0.2041592299938202,
0.2753181457519531,
0.05564595013856888,
0.15566417574882507,
-0.10157619416713715,
-0.16551512479782104,
0.2787054479122162,
0.024190641939640045,
-0.26369383931159973,
0.20035392045974731,
-0.04767022281885147,
-0.26516085863113403,
0.19848278164863586,
0.0550849586725235,
-0.10739083588123322,
0.016017891466617584,
0.12933479249477386,
0.15745657682418823,
-0.15504735708236694,
0.11012350767850876,
-0.7437102794647217,
-0.03552524000406265,
0.29630428552627563,
-0.26784151792526245,
-0.3205946683883667,
-0.1402454376220703,
-0.41155919432640076,
-0.11175186187028885,
-0.26335278153419495,
0.0978161096572876,
-0.035623788833618164,
0.17577144503593445,
0.1838512271642685,
-0.04036771506071091,
-0.07495196163654327,
0.24111805856227875,
-0.1902356892824173,
0.25391483306884766,
-0.05634738877415657,
0.20752789080142975,
0.10037834942340851,
-0.07412873208522797,
0.12719522416591644,
-0.27347078919410706,
0.34525495767593384,
-0.1999211311340332,
-0.17909958958625793,
0.507627010345459,
0.21367327868938446,
0.2550200819969177,
-0.5524330735206604,
0.08201766759157181,
0.17849597334861755,
0.2222597301006317,
-0.008184028789401054,
-0.11054156720638275,
0.23262371122837067,
0.059311866760253906,
-0.2796458601951599,
0.17631182074546814,
-0.20455360412597656,
0.10271897912025452,
-0.1437269002199173,
-0.19613343477249146,
0.3424626886844635,
0.1074942797422409,
-0.08515892922878265,
-0.17355304956436157,
-0.1350424587726593,
0.12231497466564178,
0.2670242190361023,
0.23147068917751312,
-0.17428924143314362,
0.1438659280538559,
0.36724311113357544,
-0.2666893005371094,
0.12949897348880768,
0.1375199556350708,
-0.0066852867603302,
-0.22534358501434326,
0.38975074887275696,
0.07674476504325867,
0.5740599632263184,
0.08387361466884613,
-0.054833319038152695,
-0.10259529203176498,
-0.12882691621780396,
-0.2615346312522888,
0.4450908303260803,
-0.11288732290267944,
0.38488370180130005,
0.11043672263622284,
0.01597951166331768,
-0.35842418670654297,
-0.35187822580337524,
0.19295090436935425,
0.3152811527252197,
0.2740500867366791,
-0.4837814271450043,
0.031458184123039246,
-0.36109569668769836,
-0.20531371235847473,
-0.12360665202140808,
0.07921578735113144,
0.1505843997001648,
-0.23272183537483215,
-0.29744017124176025,
0.323546439409256,
0.03558536246418953,
0.18137918412685394,
-0.2502826750278473,
-0.16832049190998077,
0.12025505304336548,
-0.7103756070137024,
0.0584530383348465,
0.007548818364739418,
-0.3251742720603943,
-0.08573637157678604,
0.2386033982038498,
-0.18047258257865906,
0.13050635159015656,
-0.2760418653488159,
-0.016087185591459274,
-0.37206944823265076,
0.06802990287542343,
0.015344329178333282,
0.04090232029557228,
0.29029345512390137,
0.03219830244779587,
0.3770766258239746,
-0.001776278018951416,
0.12814804911613464,
0.22096410393714905,
0.020234854891896248,
0.12094052135944366,
0.20713338255882263,
-0.10438404232263565,
0.10302314907312393,
-0.13788962364196777,
-0.6311591863632202,
-0.3026684522628784,
-0.16446642577648163,
-0.1559184193611145,
0.01782795786857605,
-0.01797674596309662,
0.12562772631645203,
0.32378455996513367,
-0.22563907504081726,
0.08783787488937378,
0.11702055484056473,
-0.37161627411842346,
-0.13381019234657288,
0.5268043875694275,
0.10663102567195892,
-0.14454934000968933,
-0.09687092155218124,
-0.026089251041412354,
-0.009056590497493744,
0.30757004022598267,
-0.2582540512084961,
-0.2615393102169037,
-0.13101929426193237,
0.42534518241882324,
-0.07546951621770859,
0.3031855821609497,
0.30004048347473145,
-0.015554379671812057,
0.1403961181640625,
-0.001956779509782791,
-0.1606091409921646,
0.06209023296833038,
0.14774221181869507,
0.16314849257469177,
0.2878184914588928,
0.4203830361366272,
-0.17240098118782043,
0.4888511300086975,
0.12386885285377502,
-0.07568831741809845,
0.34275826811790466,
-0.15048432350158691,
0.3074116110801697,
0.15846246480941772,
-0.11433300375938416,
-0.05434655025601387,
-0.16862618923187256,
-0.05213380604982376,
0.24725693464279175,
-0.12899059057235718,
-0.19301031529903412,
-0.0846213847398758,
0.16851404309272766,
-0.5850726962089539,
-0.31840816140174866,
0.16614948213100433,
0.30569079518318176,
0.18031364679336548,
0.10108959674835205,
0.2504032552242279,
-0.13051749765872955,
-0.12360892444849014,
-0.04233172908425331,
0.564527153968811,
0.18783055245876312,
0.1826053261756897,
-0.10853695869445801,
0.09836513549089432,
-0.13836053013801575,
0.3022986054420471,
0.11337181180715561,
0.46820148825645447,
0.2317965179681778,
-0.017421284690499306,
0.1020180881023407,
-0.06055868789553642,
0.8771477341651917,
-0.1458614319562912,
0.2078009396791458,
0.042735643684864044,
0.30467092990875244,
-0.3013041317462921,
-0.14797388017177582,
-0.1303234100341797,
0.13309848308563232,
-0.0059218816459178925,
0.0839146301150322,
-0.39041370153427124,
-0.13512513041496277,
-0.0389111265540123,
0.45539844036102295,
-0.07695700228214264,
-0.44760096073150635,
-0.2924691140651703,
-0.4158191978931427,
-0.40230247378349304,
-0.07843049615621567,
0.012284127995371819,
0.07366961985826492,
-0.24834676086902618,
0.03656858578324318,
0.15067878365516663,
0.029802169650793076,
0.0027360841631889343,
-0.03277800977230072,
0.16533944010734558,
0.10450823605060577,
0.026492536067962646,
-0.016022171825170517,
-0.4047125577926636,
0.22524292767047882,
0.5492863059043884,
-0.2030610591173172,
-0.3702019155025482,
0.08738917857408524,
0.03051796928048134,
0.18431009352207184,
0.13510434329509735,
-0.2567428648471832,
-0.05667185038328171,
-0.06801337748765945,
-0.03960063308477402,
-0.14957238733768463,
-0.007178858853876591,
0.2836197018623352,
-0.054915495216846466,
-0.09523037821054459,
-0.9068605899810791,
0.5869926810264587,
-0.049885738641023636,
-0.13740375638008118,
0.014761552214622498,
0.17825503647327423,
-0.1418314278125763,
-0.04633263871073723,
0.07725674659013748,
0.7448301315307617,
-0.1722003072500229,
-0.010590903460979462,
0.39441120624542236,
-0.016848281025886536,
0.6358926892280579,
-0.29857170581817627,
0.14728236198425293,
-0.2497439980506897,
0.16049383580684662,
-0.03423246741294861,
-0.21939541399478912,
0.34517499804496765,
0.14956051111221313,
-0.12092317640781403,
0.4310848116874695,
-0.24080665409564972,
0.4139513075351715,
0.0723162591457367,
0.11620397865772247,
-0.35271891951560974,
-0.24952459335327148,
-0.2954021990299225,
0.048398032784461975,
-0.19910500943660736,
0.09497992694377899,
0.021998468786478043,
0.11611456423997879,
0.024813149124383926,
0.16604828834533691,
-0.04875217378139496,
-0.10254207998514175,
-0.23405514657497406,
-0.032750703394412994,
-0.30178236961364746,
-0.30429747700691223,
0.16433291137218475,
0.4909699559211731,
-0.0387519970536232,
-0.005376484245061874,
-0.07775396853685379,
0.01083628460764885,
0.018653780221939087,
0.17498433589935303,
-0.12143388390541077,
-0.0774507224559784,
0.2858515977859497,
0.08648069947957993,
-0.2172221541404724,
0.11305471509695053,
-0.01162580493837595,
0.11372119188308716,
-0.0179082453250885,
-0.17885182797908783,
0.17946282029151917,
-0.4662725329399109,
-0.5547834634780884,
-0.06389032304286957,
0.15388663113117218,
0.027143586426973343,
-0.011330576613545418,
-0.09043003618717194,
0.1665196269750595,
0.20807820558547974,
-0.2883436977863312,
-0.3599739372730255,
-0.30610039830207825,
0.3252159655094147,
0.06596847623586655,
0.18446849286556244,
0.0788920670747757,
0.07183296978473663,
-0.18567201495170593,
-0.03645092993974686,
0.08766704052686691,
-0.36029595136642456,
-0.4792673885822296,
0.05964522063732147,
0.09323359280824661,
0.23832671344280243,
-0.2323870211839676,
0.12225575000047684,
0.1497529000043869,
-0.11896634846925735,
0.0409846194088459,
-0.26192861795425415,
-0.13868294656276703,
0.034263066947460175,
0.2599778175354004,
-0.002643108367919922,
0.29302874207496643,
-0.17257899045944214,
0.10269859433174133,
-0.5208736658096313,
-0.16972456872463226,
-0.03797750174999237,
0.22096940875053406,
0.10441695898771286,
0.12443042546510696,
0.2047448754310608,
-0.011720441281795502,
-0.2046280801296234,
0.00942487083375454,
-0.030013222247362137,
-0.24031364917755127,
-0.1065787598490715,
-0.1835661232471466,
0.22135770320892334,
0.0009913630783557892,
-0.23432530462741852,
-0.030693091452121735,
-0.4187924265861511,
-0.02044863998889923,
-0.184207946062088,
0.22394528985023499,
0.20887675881385803,
-0.00595199316740036,
0.08481241017580032,
-0.2788141369819641,
-0.09436500817537308,
-0.443514347076416,
0.048241764307022095,
-0.2829769253730774,
0.2911829948425293,
0.2041751742362976,
0.21976405382156372,
0.09417843073606491,
0.02114969491958618,
-0.3935000002384186,
0.03038642555475235,
0.08493990451097488,
0.1574709415435791,
0.17457273602485657,
-0.20876441895961761,
0.31366249918937683,
0.06252499669790268,
0.24777504801750183,
0.4939974844455719,
-0.1325473040342331,
-0.16883525252342224,
0.15731105208396912,
0.06723898649215698,
-0.20272968709468842,
-0.04493989795446396,
-0.14421597123146057,
0.07226984947919846,
0.014423001557588577,
0.44449588656425476,
0.15137021243572235,
0.11466926336288452,
-0.021238289773464203,
-0.09926127642393112,
0.5781824588775635,
0.21289114654064178,
0.06496980786323547,
0.6402390003204346,
0.052566248923540115,
0.16026991605758667,
0.35528331995010376,
0.1776018738746643,
0.03895395249128342,
0.28387078642845154,
-0.0544319823384285,
0.053056247532367706,
0.1607816070318222,
0.16499698162078857,
-0.30249449610710144,
-0.600254237651825,
0.2943648099899292,
0.40872272849082947,
-0.6104899644851685,
0.1889689862728119,
0.3346710801124573,
0.3260281980037689,
-0.25219202041625977,
-0.04328394681215286,
-0.22283709049224854,
0.17231489717960358,
-0.15602296590805054,
-0.243330717086792,
-0.0998155027627945,
-0.4016544818878174,
-0.0841415673494339,
0.3357926905155182,
-0.36621806025505066,
-0.281501829624176,
0.2074081152677536,
0.2140612006187439,
-0.0657457560300827,
-0.5241283178329468,
0.08411119878292084,
-0.030513428151607513,
0.2471860945224762,
-0.06372901797294617,
0.33498266339302063,
0.3238242268562317,
-0.04166080802679062,
0.12559808790683746,
-0.04049459844827652,
0.4125557839870453,
0.20476143062114716,
0.1303422749042511,
-0.2739906311035156,
0.2338104397058487,
0.07125257700681686,
-0.0585031621158123,
0.06421023607254028,
0.15058329701423645,
0.40813010931015015,
0.2459620088338852,
0.1132047176361084,
-0.06215094402432442,
0.15258143842220306,
0.2097407877445221,
-0.3432769179344177,
-0.3349124789237976,
0.08320814371109009,
-0.042023733258247375,
0.03780437260866165,
0.08261138200759888,
0.008645385503768921,
-0.1389026790857315,
-0.04400255158543587,
0.3647688329219818,
0.045374806970357895,
0.1965162754058838,
0.046434447169303894,
0.021837227046489716,
0.09375855326652527,
0.18846267461776733,
-0.09281384944915771,
-0.043114520609378815,
-0.37872472405433655,
0.21206341683864594,
-0.7793059945106506,
-0.1748265027999878,
-0.09900081157684326,
-0.2647882401943207,
0.1548195332288742,
-0.08603981137275696,
0.09705933183431625,
0.4707828164100647,
0.12545716762542725,
-0.003736969083547592,
0.45968061685562134,
0.25639528036117554,
0.16466183960437775,
-0.3823566138744354,
-0.07470245659351349,
0.012837221845984459,
-0.22344698011875153,
-0.5918865203857422,
0.29295477271080017,
-0.2640589475631714,
-0.013484105467796326,
-0.37885040044784546,
0.08633579313755035,
0.3464263677597046,
-0.05855029821395874,
0.5934560298919678,
0.11535213887691498,
0.46271732449531555,
-0.009582027792930603,
0.056954123079776764,
0.21579426527023315,
0.2660215497016907,
-0.041241373866796494,
0.026260092854499817,
-0.32072028517723083,
0.27753183245658875,
-0.23594169318675995,
0.17738398909568787,
-0.29643335938453674,
0.21513678133487701,
0.23615069687366486,
0.021906517446041107,
-0.30617213249206543,
-0.05219423025846481,
-0.162054181098938,
-0.3605967164039612,
0.017707932740449905,
0.31250083446502686,
-0.1331130564212799,
0.44848448038101196,
-0.13467387855052948,
-0.13603156805038452,
0.3725431561470032,
-0.05671457573771477,
-0.18768291175365448,
0.07550305128097534,
0.09520728886127472,
0.3645191192626953,
0.220663383603096,
-0.44786104559898376,
0.27470946311950684,
0.3188381791114807,
-0.20168375968933105,
-0.3276638984680176,
0.37202802300453186,
-0.1860470175743103,
0.07029800117015839,
-0.02151327207684517,
0.4759300649166107,
0.1311444640159607,
-0.3375610113143921,
0.033745456486940384,
-0.32335370779037476
] |
https://github.com/huggingface/datasets/issues/768 | Add a `lazy_map` method to `Dataset` and `DatasetDict` | This is cool! I think some aspects to think about and decide in terms of API are:
- do we allow several methods (chained i guess)
- how do we inspect the currently set method(s)
- how do we control/reset them | The library is great, but it would be even more awesome with a `lazy_map` method implemented on `Dataset` and `DatasetDict`. This would apply a function on a give item but when the item is requested. Two use cases:
1. load image on the fly
2. apply a random function and get different outputs at each epoch (like data augmentation or randomly masking a part of a sentence for BERT-like objectives). | 41 | Add a `lazy_map` method to `Dataset` and `DatasetDict`
The library is great, but it would be even more awesome with a `lazy_map` method implemented on `Dataset` and `DatasetDict`. This would apply a function on a give item but when the item is requested. Two use cases:
1. load image on the fly
2. apply a random function and get different outputs at each epoch (like data augmentation or randomly masking a part of a sentence for BERT-like objectives).
This is cool! I think some aspects to think about and decide in terms of API are:
- do we allow several methods (chained i guess)
- how do we inspect the currently set method(s)
- how do we control/reset them | [
-0.031645309180021286,
0.01375819742679596,
-0.26586028933525085,
0.01165030524134636,
-0.12613545358181,
-0.12066967040300369,
0.0822111964225769,
0.3159668445587158,
0.38564613461494446,
0.15779182314872742,
0.09081900864839554,
0.4605906009674072,
-0.31500929594039917,
-0.06376166641712189,
-0.0990351215004921,
-0.04761342704296112,
-0.05909792333841324,
0.15708205103874207,
-0.1722944676876068,
-0.13998083770275116,
-0.19904649257659912,
-0.15815211832523346,
-0.07543136924505234,
-0.14578156173229218,
0.1748656928539276,
-0.28729236125946045,
-0.23926013708114624,
-0.18797394633293152,
-0.3999471962451935,
-0.13628116250038147,
-0.037962738424539566,
0.6174529790878296,
-0.04621411859989166,
0.06466378271579742,
-0.00010122238018084317,
-0.1686679720878601,
0.23135441541671753,
0.0854560136795044,
-0.06845910847187042,
-0.04419867694377899,
-0.2537705898284912,
-0.12523047626018524,
0.20184823870658875,
-0.5509758591651917,
-0.05841781198978424,
-0.2714451253414154,
0.4295845329761505,
-0.42143312096595764,
0.5393213033676147,
-0.08562380820512772,
0.23027415573596954,
-0.05307275801897049,
-0.3106282949447632,
0.03659914806485176,
0.38078367710113525,
0.15839332342147827,
-0.05764703452587128,
-0.09533894062042236,
0.45255300402641296,
0.10183051973581314,
-0.12457727640867233,
0.2925323247909546,
-0.1559334397315979,
0.12635451555252075,
0.4784339964389801,
0.007892785593867302,
-0.44121885299682617,
-0.4262877106666565,
-0.15404829382896423,
0.06085899472236633,
0.5324352979660034,
-0.18613499402999878,
-0.2275095283985138,
-0.10354204475879669,
-0.056549765169620514,
-0.012565956450998783,
-0.24634522199630737,
-0.007995624095201492,
0.2070349156856537,
0.20989468693733215,
-0.2132599800825119,
-0.17709290981292725,
-0.23589470982551575,
0.25796395540237427,
0.2851659655570984,
0.0231088325381279,
0.04945458844304085,
0.15780910849571228,
-0.061906639486551285,
-0.008835911750793457,
0.1775440275669098,
-0.16937682032585144,
-0.09159515798091888,
0.3831126093864441,
0.0738331601023674,
-0.2585500180721283,
0.1556253433227539,
0.06860639899969101,
0.30093932151794434,
0.36788278818130493,
0.48185309767723083,
0.29970982670783997,
-0.5404179096221924,
0.24872907996177673,
0.30106765031814575,
-0.10543541610240936,
-0.13936427235603333,
0.049614857882261276,
0.31605345010757446,
-0.07661093771457672,
0.08038654923439026,
0.016532745212316513,
0.15277819335460663,
0.17148995399475098,
0.14641037583351135,
-0.15038496255874634,
0.043956078588962555,
-0.06779558956623077,
0.14764703810214996,
-0.1441449373960495,
0.0641760379076004,
-0.17506588995456696,
-0.10251708328723907,
0.2155335247516632,
-0.10021332651376724,
0.14616678655147552,
0.14810369908809662,
-0.07221425324678421,
0.30963218212127686,
0.025766894221305847,
-0.08289925754070282,
-0.007952338084578514,
0.049043621867895126,
0.19772224128246307,
0.14369644224643707,
0.15982654690742493,
0.0956064835190773,
0.10714296251535416,
-0.29725509881973267,
0.06310747563838959,
0.7239735126495361,
-0.26361551880836487,
0.4300808310508728,
-0.1151481419801712,
-0.15452028810977936,
-0.24657899141311646,
-0.1759558767080307,
0.20885898172855377,
-0.421429306268692,
0.1569107174873352,
-0.42714959383010864,
-0.13431905210018158,
0.08972062915563583,
0.2743908166885376,
-0.07378451526165009,
0.03973638266324997,
-0.13179555535316467,
0.6621152758598328,
-0.027594320476055145,
-0.1764548271894455,
0.3585617244243622,
0.13507536053657532,
-0.2970654368400574,
-0.2560355067253113,
-0.13246682286262512,
0.38180574774742126,
0.015217132866382599,
-0.11528284102678299,
-0.07757991552352905,
0.0068321991711854935,
-0.26337572932243347,
0.07679557800292969,
-0.3004280626773834,
0.23246169090270996,
-0.10321539640426636,
0.03791797161102295,
0.5653921961784363,
-0.42517897486686707,
-0.2009768784046173,
0.19148385524749756,
0.10127004981040955,
0.012178895995020866,
0.056621525436639786,
0.4613978862762451,
0.2702677845954895,
-0.07365340739488602,
0.11596672981977463,
0.28037017583847046,
-0.019198870286345482,
-0.006371140480041504,
0.02008713409304619,
-0.5893147587776184,
0.04211289808154106,
0.2601279318332672,
0.01526717096567154,
0.03228536993265152,
0.23423266410827637,
-0.037520717829465866,
0.19602012634277344,
-0.17504361271858215,
0.0870557650923729,
-0.32648342847824097,
0.26518046855926514,
-0.030046172440052032,
-0.018305089324712753,
-0.2506517171859741,
-0.4685742259025574,
0.028864771127700806,
0.027826763689517975,
-0.01769639551639557,
0.09634632617235184,
-0.2850388288497925,
0.3895651698112488,
-0.14201927185058594,
-0.10392563045024872,
0.011963579803705215,
0.21128647029399872,
-0.07560655474662781,
-0.07675925642251968,
-0.04961983114480972,
-0.37714967131614685,
-0.018587341532111168,
0.00879410095512867,
0.008695646189153194,
-0.31243735551834106,
0.017600448802113533,
0.23601976037025452,
0.0682336762547493,
-0.11418744176626205,
-0.08415081351995468,
-0.20949095487594604,
-0.07322580367326736,
0.0805927962064743,
0.11306098103523254,
0.4026201069355011,
0.11988873779773712,
-0.008840888738632202,
0.38232719898223877,
0.33179035782814026,
-0.06531475484371185,
0.3423096239566803,
0.247831329703331,
0.14856183528900146,
-0.09439428150653839,
-0.23612695932388306,
0.11998266726732254,
-0.2427390068769455,
0.08151883631944656,
-0.03342577815055847,
-0.14968544244766235,
0.24410158395767212,
-0.008107542991638184,
-0.3279359042644501,
-0.25212740898132324,
-0.07216866314411163,
0.2961583137512207,
0.38335034251213074,
-0.003972174599766731,
-0.09578174352645874,
0.05044122412800789,
0.27857545018196106,
-0.04914245009422302,
0.056242167949676514,
0.1528509557247162,
0.36052584648132324,
-0.0903853103518486,
0.23277519643306732,
0.04859002307057381,
0.3236720860004425,
0.25414204597473145,
-0.2183733880519867,
-0.07320369780063629,
0.2605612277984619,
0.017472553998231888,
0.09216177463531494,
0.1772109866142273,
0.19359339773654938,
-0.24234884977340698,
0.3541029989719391,
0.1604020595550537,
-0.10928639769554138,
-0.6076211333274841,
0.12434316426515579,
-0.13857245445251465,
0.23870036005973816,
-0.09577017277479172,
0.08318481594324112,
-0.03398693725466728,
0.007449016906321049,
-0.14999185502529144,
0.06511399149894714,
0.01292203739285469,
0.2524854242801666,
-0.01302175223827362,
-0.4675896465778351,
0.002950897440314293,
-0.2462666928768158,
0.6607559323310852,
-0.23352742195129395,
-0.14469601213932037,
-0.2904377281665802,
-0.18687330186367035,
0.21947497129440308,
0.153340145945549,
0.07636535167694092,
0.02477671392261982,
0.6802105903625488,
-0.04671831429004669,
-0.021089402958750725,
-0.24497494101524353,
-0.44548019766807556,
0.1895514875650406,
0.02190384455025196,
0.08366144448518753,
0.25533902645111084,
-0.2629789710044861,
0.12857183814048767,
-0.157727912068367,
-0.008915499784052372,
-0.18068961799144745,
0.004597920924425125,
-0.4637437164783478,
-0.01397099532186985,
-0.01611337624490261,
-0.31696048378944397,
-0.07705839723348618,
-0.3230467438697815,
-0.5011579990386963,
0.4366028904914856,
0.16574275493621826,
0.34405696392059326,
-0.0191950723528862,
0.0011948533356189728,
0.0038692550733685493,
0.2962951958179474,
0.19456635415554047,
-0.20448936522006989,
-0.3378010392189026,
0.13032333552837372,
-0.3507659435272217,
-0.23187045753002167,
-0.26684924960136414,
-0.137950599193573,
0.08264234662055969,
0.30817335844039917,
-0.41099226474761963,
-0.5004567503929138,
-0.10306712985038757,
0.36294281482696533,
0.11542128771543503,
0.0040310584008693695,
0.15141911804676056,
0.39082974195480347,
-0.1510016769170761,
-0.06575336307287216,
-0.18585218489170074,
0.3007413148880005,
0.08459800481796265,
-0.3038175702095032,
0.4934720993041992,
0.00598621740937233,
-0.17961636185646057,
0.4737216830253601,
-0.06124391779303551,
-0.122785285115242,
0.6362372636795044,
0.1666852980852127,
0.18692056834697723,
-0.16185349225997925,
-0.022069746628403664,
-0.12293446063995361,
0.015392839908599854,
-0.1732432097196579,
0.16899722814559937,
-0.014393236488103867,
-0.4332822561264038,
-0.2108093649148941,
-0.0895451232790947,
-0.320425808429718,
-0.1249476820230484,
0.1773783266544342,
-0.1927107572555542,
-0.17608460783958435,
-0.0012911893427371979,
0.07854162901639938,
-0.36198556423187256,
0.0555809810757637,
0.3197858929634094,
-0.08877058327198029,
0.3706780970096588,
-0.217015340924263,
-0.23955443501472473,
0.07213618606328964,
-0.29719722270965576,
0.3878667950630188,
-0.015310770832002163,
-0.17794185876846313,
0.06739486753940582,
-0.1837064027786255,
-0.04152688384056091,
-0.21217526495456696,
0.37320423126220703,
-0.18100936710834503,
-0.28715020418167114,
-0.08759449422359467,
-0.25250282883644104,
0.09180156886577606,
0.2313668578863144,
-0.22481964528560638,
-0.26914265751838684,
-0.13142165541648865,
0.5000821352005005,
-0.3117639124393463,
-0.030294865369796753,
0.08254788815975189,
-0.022825878113508224,
-0.11141765862703323,
-0.20347024500370026,
0.03986135497689247,
-0.2650546729564667,
-0.3558036684989929,
-0.2392142415046692,
-0.10076378285884857,
-0.2114695906639099,
0.11792057752609253,
-0.47181031107902527,
-0.2868668735027313,
0.23487985134124756,
-0.00009587407112121582,
0.18096977472305298,
0.08954410254955292,
-0.0455646812915802,
0.19412030279636383,
0.10560262948274612,
-0.0448659211397171,
0.070480115711689,
0.35061901807785034,
-0.44678083062171936,
-0.1341322809457779,
0.04755368456244469,
-0.04529281333088875,
0.0003353506326675415,
0.19735369086265564,
0.21778973937034607,
0.30833402276039124,
0.1552433967590332,
0.15540353953838348,
-0.40409305691719055,
0.16367486119270325,
0.22158414125442505,
-0.030374642461538315,
-0.2600877583026886,
-0.8813297152519226,
0.4342656135559082,
0.1939166933298111,
-0.3777363896369934,
0.5089744329452515,
-0.26275110244750977,
-0.32868722081184387,
0.5772542357444763,
0.40834981203079224,
0.8184030055999756,
-0.09833718836307526,
0.1716860830783844,
0.012232370674610138,
-0.1836480349302292,
0.752224862575531,
-0.04726799950003624,
-0.011885825544595718,
-0.22001904249191284,
-0.18309850990772247,
-0.04962349683046341,
-0.01832333579659462,
0.010389145463705063,
0.038404885679483414,
-0.4283999502658844,
0.09525427222251892,
0.40165579319000244,
0.08831270039081573,
-0.25987187027931213,
0.4192354381084442,
-0.3897607922554016,
-0.3177868127822876,
-0.39653804898262024,
0.2290990948677063,
0.057706568390131,
-0.05689262971282005,
-0.20134159922599792,
-0.14682866632938385,
-0.021684791892766953,
-0.14501795172691345,
0.1410878747701645,
-0.04972373694181442,
-0.09820152074098587,
0.2889794707298279,
-0.20261676609516144,
-0.06178433448076248,
-0.1000952273607254,
-0.040511664003133774,
-0.12069462239742279,
0.20512613654136658,
-0.2008712887763977,
0.01017928309738636,
0.05408075451850891,
0.17032171785831451,
-0.009512173943221569,
-0.2149825394153595,
0.39166465401649475,
-0.0903269425034523,
-0.12063576281070709,
0.15069739520549774,
0.08436835557222366,
-0.3436558246612549,
-0.3285517990589142,
0.09560848772525787,
0.23980176448822021,
-0.026648275554180145,
-0.3221818506717682,
0.2734159827232361,
-0.184214785695076,
0.030022863298654556,
0.17776791751384735,
0.1538805067539215,
0.14351871609687805,
0.3414301574230194,
0.014532197266817093,
-0.036286916583776474,
-0.11415891349315643,
0.022197291254997253,
0.09972754120826721,
-0.11492878943681717,
0.09721634536981583,
-0.15543881058692932,
0.011654332280158997,
-0.30612635612487793,
-0.014471933245658875,
0.325946569442749,
-0.2271263301372528,
0.14057768881320953,
-0.042436663061380386,
-0.27300959825515747,
-0.13164979219436646,
0.3220626711845398,
0.0462195947766304,
0.1609129011631012,
-0.043625712394714355,
-0.02651171386241913,
-0.4319004416465759,
0.42624568939208984,
0.2698977291584015,
0.5220264792442322,
0.06284671276807785,
-0.3603259325027466,
-0.07222089171409607,
0.28987476229667664,
-0.4333047568798065,
-0.043410465121269226,
-0.06069231778383255,
0.1139058917760849,
-0.23348930478096008,
0.12048254162073135,
-0.26861193776130676,
0.10777294635772705,
0.11101606488227844,
0.20472486317157745,
-0.32144734263420105,
-0.27454090118408203,
-0.28256985545158386,
0.1382748782634735,
-0.004582492634654045,
0.0800476148724556,
-0.0675569400191307,
-0.3578975200653076,
-0.1589345932006836,
-0.2625754475593567,
0.08557604253292084,
-0.10215851664543152,
-0.11914168298244476,
-0.06826898455619812,
0.29847776889801025,
0.009548667818307877,
-0.13444744050502777,
0.3815542757511139,
0.08713912218809128,
0.1423790007829666,
0.09751909226179123,
0.14983880519866943,
-0.19748897850513458,
-0.1771634817123413,
0.39526885747909546,
0.19296662509441376,
0.2850935757160187,
0.14490577578544617,
0.12261120975017548,
0.3286503553390503,
0.15750841796398163,
0.10263761132955551,
0.3508155643939972,
0.3296617567539215,
-0.1900775134563446,
-0.06693459302186966,
0.1558895707130432,
0.3266315758228302,
-0.23564226925373077,
-0.008312893100082874,
0.016321510076522827,
-0.0832166075706482,
0.13984765112400055,
0.19980236887931824,
-0.1729813516139984,
0.07408614456653595,
-0.1409594565629959,
0.024827703833580017,
0.3546092212200165,
-0.25820547342300415,
-0.006114203482866287,
-0.13411852717399597,
-0.19701984524726868,
-0.05959130451083183,
0.2059367150068283,
0.25774815678596497,
0.26022568345069885,
0.08062108606100082,
-0.11775099486112595,
0.4487953782081604,
0.1916567087173462,
0.11419510841369629,
0.24553802609443665,
0.018702704459428787,
0.3160088360309601,
0.4250284731388092,
0.2525935769081116,
0.5317401885986328,
0.3590683341026306,
-0.02131705731153488,
0.1426803469657898,
-0.16047993302345276,
-0.09615187346935272,
0.22606809437274933,
0.1921578347682953,
0.037152841687202454,
-0.037572797387838364,
-0.1719563752412796,
0.030472688376903534,
0.023792169988155365,
0.04557355120778084,
-0.2055734246969223,
0.5976635217666626,
0.24250438809394836,
0.0016865283250808716,
-0.1537795066833496,
0.06116762012243271,
-0.05038744956254959,
0.3446066975593567,
-0.25542011857032776,
-0.017003001645207405,
0.13201706111431122,
-0.14502455294132233,
0.21903805434703827,
0.36087605357170105,
-0.05500729754567146,
0.3974849283695221,
0.011128274723887444,
0.36299648880958557,
-0.07132263481616974,
-0.08216521143913269,
-0.35742703080177307,
0.21834176778793335,
0.26145288348197937,
-0.12143547832965851,
0.29812636971473694,
0.19656623899936676,
-0.20947617292404175,
0.0629979819059372,
0.013949960470199585,
0.003171144053339958,
-0.24514341354370117,
0.2634294331073761,
0.3895852863788605,
-0.3707016110420227,
0.1628737449645996,
0.03969545662403107,
-0.4488159120082855,
0.013201447203755379,
-0.07583920657634735,
-0.3752387762069702,
0.007830513641238213,
-0.019250597804784775,
0.13292022049427032,
-0.12488588690757751,
0.2074127346277237,
0.0773233100771904,
0.449722021818161,
-0.1364651620388031,
-0.14375588297843933,
-0.41400617361068726,
0.20902550220489502,
0.036639802157878876,
-0.17697305977344513,
-0.05587434023618698,
-0.056451164186000824,
0.13874630630016327,
0.04416691139340401,
-0.02533036470413208,
-0.287338525056839,
0.03776635602116585,
0.0703260526061058,
-0.3291042447090149,
0.07350438088178635,
-0.01508726179599762,
0.11489500105381012,
0.06281708180904388,
-0.3707209527492523,
0.09460926800966263,
-0.26637497544288635,
0.06313443183898926,
-0.14028459787368774,
0.07297900319099426,
0.11424028873443604,
-0.10537293553352356,
0.7482135891914368,
0.2279096096754074,
-0.03287087380886078,
-0.2948724627494812,
0.019160864874720573,
0.02444836124777794,
-0.04457293823361397,
-0.20854713022708893,
0.0011635646224021912,
0.2717055380344391,
0.09315423667430878,
-0.010441308841109276,
0.05117058753967285,
-0.14702297747135162,
0.15380315482616425,
-0.06861205399036407,
0.1370599865913391,
-0.1405927538871765,
0.07353955507278442,
0.05682401359081268,
-0.2435266077518463,
-0.20903947949409485,
0.3722027838230133,
0.12202604115009308,
-0.09567529708147049,
-0.0523083433508873,
-0.032848987728357315,
0.3887145221233368,
-0.5408636331558228,
-0.09913316369056702,
-0.12030313909053802,
0.10363523662090302,
-0.13905766606330872,
-0.012547614052891731,
-0.4450727105140686,
-0.06973353028297424,
0.28923097252845764,
-0.10034649819135666,
-0.11961133778095245,
0.459106981754303,
0.29600685834884644,
-0.15675535798072815,
-0.20759393274784088,
0.3705028295516968,
0.009487710893154144,
-0.30576851963996887,
0.012503370642662048,
-0.37598901987075806
] |
https://github.com/huggingface/datasets/issues/767 | Add option for named splits when using ds.train_test_split | Yes definitely we should give more flexibility to control the name of the splits outputted by `train_test_split`.
Related is the very interesting feedback from @bramvanroy on how we should improve this method: https://discuss.huggingface.co/t/how-to-split-main-dataset-into-train-dev-test-as-datasetdict/1090/5
And in particular that it should advantageously be able to split in 3 splits as well instead of just 2 like we copied from sklearn. | ### Feature Request 🚀
Can we add a way to name your splits when using the `.train_test_split` function?
In almost every use case I've come across, I have a `train` and a `test` split in my `DatasetDict`, and I want to create a `validation` split. Therefore, its kinda useless to get a `test` split back from `train_test_split`, as it'll just overwrite my real `test` split that I intended to keep.
### Workaround
this is my hack for dealin with this, for now :slightly_smiling_face:
```python
from datasets import load_dataset
ds = load_dataset('imdb')
ds['train'], ds['validation'] = ds['train'].train_test_split(.1).values()
```
| 58 | Add option for named splits when using ds.train_test_split
### Feature Request 🚀
Can we add a way to name your splits when using the `.train_test_split` function?
In almost every use case I've come across, I have a `train` and a `test` split in my `DatasetDict`, and I want to create a `validation` split. Therefore, its kinda useless to get a `test` split back from `train_test_split`, as it'll just overwrite my real `test` split that I intended to keep.
### Workaround
this is my hack for dealin with this, for now :slightly_smiling_face:
```python
from datasets import load_dataset
ds = load_dataset('imdb')
ds['train'], ds['validation'] = ds['train'].train_test_split(.1).values()
```
Yes definitely we should give more flexibility to control the name of the splits outputted by `train_test_split`.
Related is the very interesting feedback from @bramvanroy on how we should improve this method: https://discuss.huggingface.co/t/how-to-split-main-dataset-into-train-dev-test-as-datasetdict/1090/5
And in particular that it should advantageously be able to split in 3 splits as well instead of just 2 like we copied from sklearn. | [
0.07257388532161713,
-0.08529005944728851,
-0.11802512407302856,
-0.045865677297115326,
0.15466895699501038,
0.20353960990905762,
0.6252447962760925,
0.19813157618045807,
0.1147511899471283,
0.3940245509147644,
0.0419960618019104,
0.36922749876976013,
-0.24358971416950226,
0.27824079990386963,
0.1914987415075302,
-0.45202019810676575,
0.07772534340620041,
-0.2225457727909088,
0.2795642614364624,
0.14416153728961945,
-0.17015093564987183,
0.02908942475914955,
-0.10989418625831604,
0.24884739518165588,
-0.44824931025505066,
0.052188076078891754,
-0.02788367122411728,
-0.04079147428274155,
0.072905533015728,
-0.47320619225502014,
0.0694575309753418,
0.5114651322364807,
-0.0923282653093338,
0.45972195267677307,
-0.00012012789375148714,
-0.22727864980697632,
0.3921884298324585,
-0.16340602934360504,
-0.36042457818984985,
-0.2719942331314087,
-0.2721000611782074,
-0.05087538808584213,
0.19106706976890564,
-0.3920917809009552,
-0.014089033007621765,
-0.05463385209441185,
-0.06922966986894608,
-0.27504822611808777,
0.12171430140733719,
0.22521722316741943,
0.1275220662355423,
-0.035968974232673645,
-0.12078331410884857,
-0.0023300033062696457,
0.08226587623357773,
0.453388512134552,
-0.3355133831501007,
0.1411755234003067,
0.06162574142217636,
-0.058984287083148956,
0.2678493559360504,
0.0353974811732769,
0.007843783125281334,
-0.17598527669906616,
-0.0337526872754097,
0.06865552812814713,
-0.1521918773651123,
-0.22276300191879272,
-0.09491539746522903,
0.40066269040107727,
0.32238712906837463,
-0.32919493317604065,
-0.4078104496002197,
-0.43388059735298157,
0.15804535150527954,
-0.2891119420528412,
-0.0043496862053871155,
-0.06100594997406006,
0.006846960633993149,
0.2569347620010376,
-0.15190806984901428,
-0.03833192586898804,
-0.13919758796691895,
0.15041829645633698,
0.1679881513118744,
0.2730536460876465,
0.17571288347244263,
0.15395352244377136,
0.4608616828918457,
0.03187407925724983,
0.2671247720718384,
-0.2759014368057251,
0.1429988294839859,
0.013591531664133072,
-0.18208840489387512,
-0.23539990186691284,
-0.31667742133140564,
-0.40031424164772034,
-0.03858248144388199,
0.25783079862594604,
-0.08990443497896194,
0.0029253922402858734,
-0.11850635707378387,
-0.03620006889104843,
0.12133517861366272,
0.20421873033046722,
0.1922016739845276,
0.7993481159210205,
0.19406817853450775,
0.14256633818149567,
-0.05098728835582733,
-0.08382612466812134,
-0.073270782828331,
-0.2198164314031601,
0.13193801045417786,
0.11735151708126068,
-0.14804580807685852,
0.09727048873901367,
-0.21572846174240112,
-0.16222098469734192,
-0.30567899346351624,
-0.16075332462787628,
0.2621246874332428,
0.2394130825996399,
0.03506607189774513,
0.08690622448921204,
-0.0795200765132904,
0.05684413015842438,
0.14681792259216309,
-0.054860472679138184,
-0.10577842593193054,
0.048981621861457825,
-0.25270798802375793,
0.14306677877902985,
0.2551351487636566,
-0.02021094784140587,
0.025175699964165688,
-0.11866572499275208,
0.24277271330356598,
-0.25232550501823425,
-0.07129546999931335,
-0.010148118250072002,
0.37107276916503906,
0.17648260295391083,
-0.256513774394989,
-0.08957131952047348,
-0.2148699015378952,
-0.04138023778796196,
-0.12691369652748108,
0.024117115885019302,
-0.1833624541759491,
-0.44843441247940063,
0.01843092404305935,
0.060960207134485245,
-0.18245120346546173,
0.0002762451767921448,
-0.04700302332639694,
0.29328420758247375,
0.26903918385505676,
0.07021313905715942,
0.1655513197183609,
0.034611888229846954,
-0.16790734231472015,
-0.06673481315374374,
0.3896135091781616,
0.08742149919271469,
-0.31509432196617126,
-0.16407787799835205,
-0.3378521800041199,
0.0888538807630539,
0.0349264070391655,
0.0031337477266788483,
-0.055739741772413254,
0.22306948900222778,
-0.07022984325885773,
0.24009858071804047,
0.33501213788986206,
-0.17142288386821747,
0.04403161257505417,
0.04585820809006691,
0.08664967119693756,
-0.009296342730522156,
0.2888075113296509,
-0.15595965087413788,
0.10661741346120834,
-0.03297792375087738,
-0.12106522917747498,
0.175089493393898,
-0.3245232403278351,
-0.1972152292728424,
0.022615287452936172,
-0.09282148629426956,
0.3992809057235718,
0.17364934086799622,
0.024810107424855232,
-0.15483897924423218,
-0.22402092814445496,
0.26394665241241455,
0.4356186091899872,
-0.007708866149187088,
0.08101693540811539,
-0.22696618735790253,
0.32320645451545715,
0.4250836968421936,
0.12690949440002441,
-0.43144503235816956,
-0.17309492826461792,
0.1214081272482872,
0.17794466018676758,
-0.13343943655490875,
-0.1241062581539154,
-0.3705468773841858,
-0.3022031784057617,
-0.17470158636569977,
-0.09574408829212189,
0.0025742948055267334,
0.05650874227285385,
-0.1349785178899765,
0.1169961541891098,
-0.09127733111381531,
-0.3370678424835205,
0.08106311410665512,
-0.4117371141910553,
0.21739469468593597,
-0.023367054760456085,
0.3630814254283905,
0.35404545068740845,
-0.0059768445789813995,
-0.4311004877090454,
0.40175145864486694,
0.15342208743095398,
-0.1506369262933731,
-0.12496904283761978,
0.4914858341217041,
0.5371118783950806,
-0.15352152287960052,
-0.133553147315979,
-0.027776017785072327,
0.0029967520385980606,
-0.12234057486057281,
0.05401284992694855,
0.238395094871521,
-0.11136770248413086,
-0.10988625138998032,
-0.16303297877311707,
0.37514281272888184,
-0.4445950984954834,
0.3816927671432495,
-0.16412939131259918,
0.06511825323104858,
-0.14212314784526825,
-0.22470898926258087,
-0.4564583897590637,
-0.37438610196113586,
-0.2848769426345825,
-0.5980315208435059,
0.16536448895931244,
-0.31220459938049316,
-0.2530171871185303,
-0.20696523785591125,
0.3411162495613098,
-0.1814827024936676,
0.00843936949968338,
-0.18159571290016174,
0.2201620638370514,
0.18744614720344543,
-0.09042402356863022,
0.44920966029167175,
0.32089871168136597,
0.13034659624099731,
-0.09941436350345612,
-0.12137757986783981,
-0.056676119565963745,
-0.08790426701307297,
0.1856534481048584,
0.3309948444366455,
-0.05040772631764412,
0.12697502970695496,
-0.22774875164031982,
-0.2841593027114868,
0.014225225895643234,
-0.1667642593383789,
0.2953532636165619,
-0.21709661185741425,
-0.27287042140960693,
-0.0041689202189445496,
-0.31486040353775024,
-0.1530623733997345,
-0.34435027837753296,
-0.18245829641819,
-0.18179689347743988,
-0.379322350025177,
0.0949564278125763,
0.0957832783460617,
-0.36618897318840027,
0.327218621969223,
-0.09368017315864563,
0.15655678510665894,
-0.35292309522628784,
-0.31207478046417236,
0.0425681546330452,
-0.19191816449165344,
0.01919497735798359,
0.03736518695950508,
-0.06363372504711151,
0.08863183856010437,
0.44738996028900146,
0.0682874247431755,
-0.21811290085315704,
-0.2077764868736267,
-0.21866744756698608,
-0.08827468752861023,
-0.13066579401493073,
0.034441329538822174,
0.3023151457309723,
-0.05764754116535187,
0.203057199716568,
-0.39772745966911316,
-0.018455354496836662,
0.1599646955728531,
-0.04377419501543045,
-0.38157472014427185,
0.39244818687438965,
0.18300755321979523,
-0.2294372022151947,
-0.3533361256122589,
-0.3261464536190033,
-0.1929231584072113,
0.42239242792129517,
-0.5255029797554016,
-0.024162381887435913,
0.03578878194093704,
-0.27858173847198486,
0.11276966333389282,
0.12519173324108124,
-0.1200392097234726,
-0.10159222781658173,
0.31047675013542175,
0.0435892753303051,
-0.23847541213035583,
0.20729589462280273,
0.10776777565479279,
-0.2218756228685379,
0.021722231060266495,
-0.35672783851623535,
0.050373949110507965,
0.02904374524950981,
0.09440036863088608,
0.27704358100891113,
0.16140234470367432,
-0.08287908136844635,
0.09743295609951019,
0.08582060784101486,
0.1860564798116684,
-0.08966665714979172,
-0.2755865156650543,
0.1496618390083313,
0.2805900275707245,
0.23318371176719666,
0.22435197234153748,
0.22927501797676086,
-0.06304280459880829,
0.5140991806983948,
0.208007350564003,
0.05562560260295868,
-0.10414795577526093,
-0.023331908509135246,
-0.18204213678836823,
0.005047455430030823,
-0.4781917631626129,
-0.028247661888599396,
-0.1414565145969391,
-0.30430853366851807,
0.07482068240642548,
-0.15775442123413086,
0.014482113532721996,
-0.05945661664009094,
0.20000019669532776,
0.06775695830583572,
-0.45757994055747986,
0.03031577169895172,
-0.5357934832572937,
0.21132931113243103,
-0.16503652930259705,
0.07466394454240799,
0.04756718501448631,
-0.08006419241428375,
-0.044126544147729874,
0.11987383663654327,
0.20143651962280273,
-0.20433051884174347,
-0.42299747467041016,
-0.1509079784154892,
-0.1587824523448944,
0.1874191015958786,
0.27927860617637634,
0.08235916495323181,
-0.09135639667510986,
0.0013255439698696136,
0.06248671934008598,
0.4954945147037506,
0.7230033874511719,
-0.28192174434661865,
-0.2045079916715622,
0.1420886069536209,
-0.26603859663009644,
0.02591376192867756,
-0.20458373427391052,
0.06341247260570526,
-0.09388387948274612,
0.09591548144817352,
0.22840480506420135,
-0.2615967392921448,
-0.2743299603462219,
0.773730993270874,
0.34824416041374207,
-0.043766848742961884,
-0.3818058371543884,
0.040543969720602036,
0.1989293396472931,
0.17228302359580994,
0.11975523829460144,
0.3067523241043091,
0.17884615063667297,
-0.26365962624549866,
0.10357432067394257,
0.08022774010896683,
-0.10901759564876556,
0.3623279929161072,
0.094377800822258,
0.24937444925308228,
-0.07017479836940765,
0.4353819787502289,
0.2356797754764557,
0.10636827349662781,
0.13926079869270325,
0.22278110682964325,
-0.6137980818748474,
-0.35882920026779175,
-0.021363645792007446,
0.009254037402570248,
0.7729191184043884,
0.40992963314056396,
0.004097350873053074,
0.08274471759796143,
0.06024067476391792,
0.12020377814769745,
-0.17835834622383118,
0.2659526467323303,
0.32204964756965637,
-0.059489209204912186,
-0.5040186643600464,
-0.7637936472892761,
0.3296657204627991,
0.18324339389801025,
-0.11857444047927856,
0.31742650270462036,
0.10978919267654419,
-0.5861921310424805,
0.3563878536224365,
-0.03075137734413147,
0.8402525782585144,
0.12529835104942322,
-0.12693928182125092,
-0.1279689073562622,
-0.19247110188007355,
0.21560628712177277,
-0.16476094722747803,
0.059156037867069244,
-0.1754288226366043,
-0.1701662391424179,
0.06592921912670135,
0.07003416121006012,
0.166983500123024,
0.34971708059310913,
-0.07239945977926254,
0.28742921352386475,
-0.06119433045387268,
0.3150923252105713,
-0.23720824718475342,
0.36004891991615295,
0.28016334772109985,
-0.25059741735458374,
0.035651713609695435,
-0.01137148030102253,
0.07277419418096542,
-0.24135568737983704,
0.2442021667957306,
-0.04846371337771416,
-0.08966322988271713,
0.1317901313304901,
-0.31725308299064636,
-0.2060525119304657,
-0.1675032377243042,
0.07003048062324524,
-0.059014540165662766,
-0.12238770723342896,
0.3028969168663025,
0.2367863655090332,
0.5312368273735046,
0.3700745403766632,
0.049042314291000366,
0.2635011672973633,
0.24123919010162354,
0.20132319629192352,
-0.32358670234680176,
-0.04732443392276764,
0.42908936738967896,
0.13320231437683105,
-0.3335011899471283,
0.04284156858921051,
0.0747988373041153,
-0.2521350383758545,
-0.3842040002346039,
0.11047720909118652,
0.38761311769485474,
-0.6543738842010498,
-0.06260444223880768,
-0.11250445246696472,
0.32014021277427673,
-0.246978297829628,
0.1250057816505432,
0.05991920828819275,
-0.44235533475875854,
0.1899295598268509,
-0.1507728397846222,
-0.14166811108589172,
-0.20086413621902466,
-0.03431355953216553,
-0.1398940086364746,
0.04207724332809448,
0.25891509652137756,
-0.12564916908740997,
-0.09686358273029327,
-0.13371944427490234,
0.2407982051372528,
0.20731127262115479,
-0.2533508539199829,
0.34692853689193726,
0.07731790840625763,
-0.2552933692932129,
-0.08693891018629074,
0.06730623543262482,
0.11351549625396729,
0.2626497447490692,
-0.3044108748435974,
0.1077474057674408,
-0.22454723715782166,
0.11352849751710892,
0.2546493113040924,
0.576434314250946,
-0.23483151197433472,
0.28459253907203674,
-0.4285890758037567,
-0.10295450687408447,
-0.21316319704055786,
-0.12623611092567444,
0.085715651512146,
0.1994171291589737,
-0.12263670563697815,
0.07818123698234558,
0.247904971241951,
-0.23910842835903168,
0.16121111810207367,
0.14638307690620422,
0.12894614040851593,
-0.14572709798812866,
-0.32700419425964355,
0.1392778754234314,
-0.05629429966211319,
0.24256566166877747,
-0.2842194736003876,
-0.1260063350200653,
-0.055574219673871994,
-0.38374847173690796,
0.11060658097267151,
0.33728882670402527,
0.1458016335964203,
0.5945233702659607,
0.39727503061294556,
-0.15216094255447388,
0.11354131996631622,
0.09347544610500336,
-0.10033424198627472,
0.3577883839607239,
0.01855110004544258,
0.2664892077445984,
-0.021002575755119324,
0.0388525053858757,
-0.2621866762638092,
-0.09644313901662827,
-0.016189925372600555,
-0.08038011938333511,
-0.026234321296215057,
0.07260440289974213,
-0.2164149135351181,
-0.10175207257270813,
0.3749952018260956,
0.6219154000282288,
-0.025117021054029465,
-0.19037333130836487,
0.43808943033218384,
0.12512807548046112,
-0.015533027239143848,
-0.005557440221309662,
0.27948904037475586,
0.009391143918037415,
0.0778258740901947,
0.5012417435646057,
0.012658867985010147,
0.33465811610221863,
-0.13315385580062866,
-0.042224250733852386,
0.13889722526073456,
0.07292012125253677,
0.6167250871658325,
0.603294849395752,
0.042968589812517166,
0.10517516732215881,
0.07903563976287842,
-0.054543618112802505,
-0.008106082677841187,
0.26455897092819214,
0.14135992527008057,
0.3694075047969818,
0.015968365594744682,
0.06992265582084656,
0.6006394624710083,
0.3650578260421753,
-0.10860328376293182,
-0.27647459506988525,
-0.6752756834030151,
0.1378990113735199,
0.003504619002342224,
0.4029048979282379,
-0.5035104751586914,
-0.4012945294380188,
-0.19758038222789764,
-0.03199798986315727,
0.006027111783623695,
-0.11044615507125854,
0.006326798349618912,
-0.12010006606578827,
-0.17872285842895508,
-0.05175163596868515,
0.17697902023792267,
-0.23831848800182343,
0.4209335446357727,
-0.08767957985401154,
0.26770174503326416,
0.09065932035446167,
0.04921746253967285,
0.19824600219726562,
0.599156379699707,
-0.315079927444458,
-0.32273855805397034,
-0.06989921629428864,
-0.08424176275730133,
0.22381606698036194,
-0.1887880563735962,
-0.028673682361841202,
-0.03623618185520172,
-0.0037656351923942566,
-0.32353919744491577,
-0.04747721180319786,
-0.04330684244632721,
0.20218561589717865,
0.23064956068992615,
-0.016933470964431763,
-0.08841675519943237,
0.38044631481170654,
0.11666184663772583,
-0.008076295256614685,
-0.04872601851820946,
0.1965479850769043,
0.20340251922607422,
-0.6443556547164917,
0.5633999705314636,
0.06415219604969025,
-0.038041163235902786,
-0.1440705507993698,
-0.0020379871129989624,
0.005390003323554993,
-0.370037317276001,
0.24648021161556244,
-0.046666573733091354,
0.03208620473742485,
-0.04531564190983772,
0.018237363547086716,
-0.1982014775276184,
0.4282310903072357,
-0.07052414119243622,
-0.12080327421426773,
-0.25559568405151367,
-0.08964060992002487,
0.07437250018119812,
-0.29159170389175415,
-0.0037945732474327087,
-0.27654820680618286,
0.19662125408649445,
-0.2916829288005829,
-0.0787368193268776,
-0.03424939513206482,
-0.011722192168235779,
-0.02902640774846077,
0.1444283127784729,
0.3947257697582245,
-0.3441642224788666,
-0.3122898042201996,
-0.17380136251449585,
0.15361659228801727,
0.3368341326713562,
-0.1341690570116043,
-0.24307914078235626,
0.13412228226661682,
-0.31723517179489136,
0.0556538887321949,
-0.13400819897651672,
0.5019891858100891,
0.5471748113632202,
0.2083572894334793,
0.04028766229748726,
0.4481992721557617,
-0.025364834815263748,
0.1909373253583908,
0.09702609479427338,
-0.059652168303728104,
-0.2668224275112152,
0.34161949157714844,
0.009407995268702507,
0.2608267366886139,
0.05133640021085739,
-0.1047210842370987,
-0.10502928495407104,
0.3171879053115845,
0.12458290159702301,
-0.21767637133598328,
-0.16379393637180328,
-0.1256074756383896,
0.02637113630771637,
-0.08553587645292282,
0.2697674632072449,
0.29407787322998047,
-0.28260812163352966,
0.16455867886543274,
0.38296687602996826,
-0.2912108600139618,
0.4963204562664032,
0.0327717550098896,
-0.32777971029281616,
-0.10318588465452194,
0.1062438115477562,
0.2823019325733185,
-0.063307024538517,
-0.6950249075889587,
-0.39964619278907776,
0.28958725929260254,
-0.06106781214475632,
0.054471198469400406,
0.22360096871852875,
0.2504688501358032,
0.06402921676635742,
0.09959399700164795,
0.2653731107711792,
0.09491143375635147,
0.08864127099514008,
0.15325649082660675,
-0.26774248480796814
] |
https://github.com/huggingface/datasets/issues/761 | Downloaded datasets are not usable offline | Yes currently you need an internet connection because the lib tries to check for the etag of the dataset script online to see if you don't have it locally already.
If we add a way to store the etag/hash locally after the first download, it would allow users to first download the dataset with an internet connection, and still have it working without an internet connection.
I'll let you know when we add this feature. | I've been trying to use the IMDB dataset offline, but after downloading it and turning off the internet it still raises an error from the ```requests``` library trying to reach for the online dataset.
Is this the intended behavior ?
(Sorry, I wrote the the first version of this issue while still on nlp 0.3.0). | 75 | Downloaded datasets are not usable offline
I've been trying to use the IMDB dataset offline, but after downloading it and turning off the internet it still raises an error from the ```requests``` library trying to reach for the online dataset.
Is this the intended behavior ?
(Sorry, I wrote the the first version of this issue while still on nlp 0.3.0).
Yes currently you need an internet connection because the lib tries to check for the etag of the dataset script online to see if you don't have it locally already.
If we add a way to store the etag/hash locally after the first download, it would allow users to first download the dataset with an internet connection, and still have it working without an internet connection.
I'll let you know when we add this feature. | [
-0.20983250439167023,
0.2670382857322693,
-0.0017677713185548782,
0.18988722562789917,
-0.059539079666137695,
-0.07488038390874863,
0.39034751057624817,
-0.01728491112589836,
0.17079387605190277,
-0.022502049803733826,
0.12379979342222214,
0.012620426714420319,
-0.03868073970079422,
0.07567586749792099,
0.06253156810998917,
0.18716421723365784,
-0.1557508409023285,
0.22169341146945953,
-0.12522119283676147,
-0.07845009863376617,
-0.12366131693124771,
0.11489938199520111,
-0.42757415771484375,
-0.05014185607433319,
-0.18700382113456726,
-0.3171660006046295,
-0.0034035444259643555,
-0.04398598521947861,
-0.1552308052778244,
-0.2724396288394928,
0.4218718111515045,
0.08484722673892975,
0.22107231616973877,
-0.1517101526260376,
-0.0001220542544615455,
-0.2454783022403717,
0.41615164279937744,
-0.1439788043498993,
-0.43493637442588806,
-0.34078657627105713,
-0.27523869276046753,
-0.13043329119682312,
0.2988804280757904,
-0.5066426992416382,
0.04411470144987106,
0.1309671700000763,
0.3384901285171509,
-0.4647698402404785,
-0.13032297790050507,
0.15089845657348633,
0.09149596095085144,
0.1822042316198349,
-0.006780486553907394,
0.0909341350197792,
0.48917922377586365,
0.0798255056142807,
-0.21489571034908295,
0.1665281057357788,
0.11528969556093216,
0.0191021915525198,
0.17824244499206543,
0.018444038927555084,
-0.1545058935880661,
0.09096722304821014,
0.3861883878707886,
0.19504019618034363,
-0.1535569131374359,
-0.26425695419311523,
-0.03798171132802963,
0.3704019784927368,
0.5538479089736938,
-0.14377912878990173,
-0.23434847593307495,
-0.3610733449459076,
0.0763944536447525,
-0.2982945740222931,
0.19473552703857422,
0.2515515685081482,
-0.04512961581349373,
0.15335628390312195,
-0.3593323528766632,
-0.4431597590446472,
-0.13714271783828735,
0.5251790285110474,
0.0860985666513443,
0.21361461281776428,
-0.11379696428775787,
0.10652464628219604,
0.0008921884000301361,
0.011190269142389297,
0.05224040895700455,
-0.30407851934432983,
0.1637430042028427,
-0.09523174911737442,
0.22235144674777985,
-0.06413768231868744,
0.1375609040260315,
0.47245892882347107,
-0.18112829327583313,
0.30286192893981934,
0.10376748442649841,
-0.09217336028814316,
-0.15929578244686127,
0.2099301815032959,
0.5247612595558167,
0.3245599865913391,
0.3381829857826233,
-0.2607773244380951,
0.5273810625076294,
0.27599629759788513,
-0.08525766432285309,
-0.16070470213890076,
0.17834512889385223,
0.18020425736904144,
0.046996381133794785,
-0.11262688785791397,
0.2839222550392151,
-0.3313290476799011,
-0.10258226841688156,
-0.11614637821912766,
-0.036338310688734055,
0.026783617213368416,
0.21004734933376312,
0.08405901491641998,
-0.2664491832256317,
-0.15939199924468994,
0.08654935657978058,
0.27143794298171997,
-0.1823124885559082,
-0.4581652581691742,
0.011820798739790916,
-0.2709532082080841,
-0.14042553305625916,
-0.07691086083650589,
0.4374881684780121,
0.0036351848393678665,
0.30539438128471375,
-0.2534533441066742,
-0.091334268450737,
-0.020622454583644867,
0.4746439456939697,
-0.2036609947681427,
0.3540555238723755,
0.21409785747528076,
0.34103938937187195,
0.06101766228675842,
-0.045578066259622574,
-0.08279386162757874,
-0.07444611191749573,
0.2547934353351593,
-0.052452459931373596,
-0.4573017954826355,
0.06920862197875977,
0.09195850044488907,
-0.47024255990982056,
-0.3144264221191406,
-0.29765164852142334,
-0.08811098337173462,
0.09707431495189667,
-0.5006315112113953,
0.028215937316417694,
0.08398329466581345,
-0.18739919364452362,
0.016635458916425705,
0.024963611736893654,
0.47036224603652954,
-0.36748358607292175,
-0.06571940332651138,
-0.4391425549983978,
-0.1759604960680008,
-0.0243704691529274,
0.2671210467815399,
-0.42542192339897156,
0.3243423402309418,
-0.32044386863708496,
0.12072980403900146,
0.6827144026756287,
-0.18856145441532135,
-0.6827122569084167,
0.3701706528663635,
-0.09953223913908005,
-0.1788526475429535,
-0.0034114494919776917,
0.3794584274291992,
0.4256167709827423,
-0.008957801386713982,
-0.41563597321510315,
0.5269254446029663,
0.09298212081193924,
0.021212102845311165,
-0.23279514908790588,
-0.16432878375053406,
0.2605099081993103,
-0.017076930031180382,
0.011266179382801056,
0.313961923122406,
0.3630165755748749,
0.16706512868404388,
0.10061680525541306,
0.30524325370788574,
0.33419930934906006,
-0.10182975232601166,
0.07422421127557755,
0.38011956214904785,
-0.11441820114850998,
-0.02515331655740738,
-0.49663084745407104,
0.020100057125091553,
-0.14877596497535706,
0.09878936409950256,
-0.5461812615394592,
-0.4241182804107666,
-0.03411272168159485,
-0.23777087032794952,
-0.04454025253653526,
0.28715765476226807,
-0.038888007402420044,
0.10602427273988724,
0.02736828848719597,
0.12949033081531525,
-0.3869744539260864,
-0.03049650974571705,
-0.08988049626350403,
-0.05139247328042984,
-0.5284493565559387,
0.256691038608551,
-0.16863183677196503,
0.011988438665866852,
-0.11518725752830505,
-0.08566316217184067,
-0.024134203791618347,
-0.14138422906398773,
-0.1097181960940361,
0.36711040139198303,
-0.2565329968929291,
0.08716948330402374,
0.18919691443443298,
0.27102163434028625,
0.2855147123336792,
-0.32205331325531006,
0.49739179015159607,
-0.008195044472813606,
0.21545998752117157,
-0.038135070353746414,
-0.32639873027801514,
0.47246724367141724,
-0.06835860013961792,
0.21619883179664612,
0.1441253274679184,
0.005359292030334473,
0.3300650417804718,
-0.15478047728538513,
-0.25183016061782837,
-0.5828138589859009,
0.02836648002266884,
0.20740732550621033,
0.008233729749917984,
-0.07254736870527267,
-0.17478597164154053,
0.1800655573606491,
0.5578535795211792,
0.2726839482784271,
0.22874179482460022,
0.07831995189189911,
0.012584708631038666,
-0.27673715353012085,
0.08539071679115295,
0.1471385508775711,
0.3183257579803467,
0.19859527051448822,
0.3152202367782593,
0.13681644201278687,
-0.007422580383718014,
-0.4224086403846741,
-0.05910564213991165,
0.08879557251930237,
-0.019789516925811768,
-0.026354588568210602,
0.022558668628335,
-0.03771161288022995,
-0.3606550395488739,
-0.061419323086738586,
0.22969797253608704,
0.22517287731170654,
-0.2382856160402298,
-0.07162659615278244,
-0.665386438369751,
-0.7250329852104187,
0.014860567636787891,
-0.07387957721948624,
-0.48216116428375244,
-0.2052152305841446,
0.027810601517558098,
0.41594672203063965,
-0.15075238049030304,
0.05936089903116226,
-0.22726726531982422,
0.501020073890686,
-0.34776365756988525,
-0.22206363081932068,
-0.06656239926815033,
-0.3527732789516449,
-0.24863335490226746,
-0.0017851106822490692,
0.36693355441093445,
0.17943313717842102,
0.40344732999801636,
-0.11427611857652664,
-0.1231459304690361,
-0.2343115210533142,
0.0056438446044921875,
0.05648849904537201,
0.331959068775177,
0.07235313951969147,
-0.006633728742599487,
-0.10720200836658478,
-0.14335645735263824,
0.008869233541190624,
0.14760026335716248,
-0.3277748227119446,
0.09851469099521637,
-0.04973573237657547,
-0.01954728178679943,
0.017621781677007675,
-0.347773015499115,
-0.4379712641239166,
-0.26359042525291443,
-0.12164227664470673,
0.1585332304239273,
0.13912057876586914,
0.15209585428237915,
0.03906353563070297,
-0.12479981034994125,
0.25051942467689514,
-0.1376262754201889,
0.09512209892272949,
-0.03271717578172684,
-0.48725971579551697,
0.1624237596988678,
-0.34368860721588135,
-0.2576620876789093,
0.4373549520969391,
0.0587734580039978,
0.13893181085586548,
0.27581214904785156,
-0.6511327028274536,
0.050367746502161026,
0.038195785135030746,
0.16974100470542908,
0.36524245142936707,
0.0016050487756729126,
0.5040282011032104,
-0.24685192108154297,
0.0363386869430542,
0.013632703572511673,
0.07940994203090668,
0.3829860985279083,
0.1881999969482422,
0.2508429288864136,
0.2320653200149536,
0.3819535970687866,
0.12130862474441528,
0.1898975670337677,
-0.1730673760175705,
0.11704076826572418,
0.6550406217575073,
0.0645187497138977,
0.47925081849098206,
-0.3082837462425232,
0.029157811775803566,
-0.11741548031568527,
0.12205405533313751,
-0.20580324530601501,
0.1454465389251709,
0.16935452818870544,
-0.40017199516296387,
-0.3892100155353546,
-0.0038684848695993423,
-0.5113553404808044,
-0.3278261721134186,
-0.06780645251274109,
-0.2261486053466797,
0.15891361236572266,
0.3647778034210205,
0.04790757596492767,
-0.04852179437875748,
-0.3160044848918915,
-0.24988433718681335,
0.15792346000671387,
0.26088762283325195,
0.05614243075251579,
-0.1440252959728241,
0.11377055197954178,
-0.19024938344955444,
0.2225920557975769,
-0.08779330551624298,
0.5331949591636658,
-0.04044593870639801,
0.11765354126691818,
0.3277541995048523,
0.11396784335374832,
0.2481107860803604,
-0.3441395163536072,
0.17111779749393463,
0.11300495266914368,
0.02097177878022194,
-0.4358959197998047,
0.13196232914924622,
-0.16065430641174316,
-0.059865884482860565,
0.5046318173408508,
0.017255593091249466,
-0.06800703704357147,
-0.009995843283832073,
-0.03774839639663696,
-0.0325024388730526,
-0.15557804703712463,
-0.25397735834121704,
-0.22669976949691772,
-0.026463890448212624,
-0.5389506220817566,
-0.04165972024202347,
-0.20590321719646454,
-0.09646663814783096,
0.020596137270331383,
0.06674103438854218,
-0.05292070657014847,
0.1670697033405304,
-0.28187471628189087,
-0.06718660891056061,
-0.05847200006246567,
0.11951179057359695,
0.04244883731007576,
0.09097015857696533,
0.08877810835838318,
0.16515789926052094,
0.425434947013855,
-0.021953526884317398,
0.07143092155456543,
0.1875518560409546,
0.0345638208091259,
-0.0017003938555717468,
0.28288400173187256,
0.006632274016737938,
-0.25165942311286926,
0.21520432829856873,
-0.06943625211715698,
0.0846593901515007,
-0.06427587568759918,
0.20712609589099884,
-0.5104781985282898,
0.1333305835723877,
-0.44689491391181946,
0.29597002267837524,
-0.004505593329668045,
-0.03398757800459862,
0.08335493505001068,
0.3659514784812927,
-0.1276039183139801,
0.21540546417236328,
-0.04424356669187546,
0.8948528170585632,
-0.057830438017845154,
0.20726966857910156,
-0.13365891575813293,
0.08994254469871521,
0.7640864849090576,
-0.12908855080604553,
0.21412676572799683,
-0.13671144843101501,
-0.0039026839658617973,
-0.15082962810993195,
-0.0863254964351654,
0.30680403113365173,
0.41872262954711914,
-0.10147050023078918,
0.2692238688468933,
-0.16462326049804688,
0.21833598613739014,
-0.2512001693248749,
0.33230865001678467,
-0.3463972806930542,
-0.16567596793174744,
-0.13860681653022766,
0.0241277776658535,
0.06485902518033981,
0.34633225202560425,
-0.1581466794013977,
-0.06194043159484863,
0.007549352943897247,
0.13184943795204163,
-0.13110069930553436,
0.28230422735214233,
0.2811914086341858,
0.11103490740060806,
-0.3716670870780945,
0.13123910129070282,
-0.045471496880054474,
0.2234465479850769,
0.3521397113800049,
0.017388973385095596,
-0.3721258342266083,
-0.13895730674266815,
-0.02070414274930954,
-0.17657600343227386,
0.25916406512260437,
0.18925631046295166,
0.33929893374443054,
-0.24228790402412415,
-0.2942514717578888,
0.002884678542613983,
0.12072224915027618,
-0.12346693873405457,
0.4066620469093323,
0.008900269865989685,
-0.0970202386379242,
-0.10114999860525131,
-0.16877292096614838,
0.2969227433204651,
0.04196972772479057,
-0.0036161020398139954,
0.029958443716168404,
0.12807920575141907,
0.18554450571537018,
0.06860096752643585,
-0.11686129868030548,
-0.21076929569244385,
-0.1453314870595932,
0.5676355957984924,
-0.045449718832969666,
0.030464105308055878,
0.14470767974853516,
0.058755163103342056,
-0.1140618696808815,
-0.14909669756889343,
0.18536216020584106,
-0.34981462359428406,
-0.3783543109893799,
0.10026712715625763,
0.21220770478248596,
0.4764330983161926,
-0.07907618582248688,
0.1829327791929245,
-0.14130383729934692,
0.23910686373710632,
-0.2073705494403839,
-0.30931439995765686,
-0.2009141594171524,
0.1761251986026764,
0.24147047102451324,
0.02573610469698906,
0.02159038558602333,
-0.11635613441467285,
0.5522449016571045,
-0.18032173812389374,
-0.20209211111068726,
0.22192490100860596,
0.039648041129112244,
0.36554238200187683,
0.2100830376148224,
0.006319377571344376,
0.03085281141102314,
-0.16721326112747192,
-0.09770669788122177,
-0.01587584614753723,
-0.2581116259098053,
-0.09515368193387985,
0.03182225674390793,
0.28422868251800537,
0.2625710368156433,
-0.5424140691757202,
-0.32975292205810547,
-0.6407561898231506,
-0.27283066511154175,
0.024142898619174957,
-0.0947713851928711,
0.40417319536209106,
0.040039513260126114,
0.19862927496433258,
0.35778674483299255,
0.14953598380088806,
-0.20555581152439117,
0.1183982640504837,
-0.16346687078475952,
0.2850663959980011,
-0.09693127870559692,
0.19482967257499695,
-0.0042726630344986916,
0.040136292576789856,
-0.2721359133720398,
-0.08284664899110794,
-0.05814947187900543,
0.1644287407398224,
0.5369656085968018,
-0.249301478266716,
0.2751140892505646,
0.19758622348308563,
0.4544932544231415,
0.25950032472610474,
0.1570684164762497,
-0.21994991600513458,
0.3323821723461151,
0.05076301842927933,
-0.2865045666694641,
0.10051888972520828,
0.35890111327171326,
0.4310479462146759,
-0.13548369705677032,
0.17444419860839844,
0.4315045177936554,
0.11627204716205597,
-0.10536979138851166,
-0.1573919653892517,
0.3952948749065399,
-0.276871919631958,
0.11500178277492523,
0.018440674990415573,
-0.26570966839790344,
-0.00925641879439354,
-0.05117214471101761,
0.20963534712791443,
0.24326732754707336,
0.2710627019405365,
-0.11542844027280807,
0.012686211615800858,
0.18911099433898926,
0.30745330452919006,
-0.10639243572950363,
-0.42382389307022095,
-0.11502829194068909,
0.12301681190729141,
0.17712008953094482,
0.0514836385846138,
-0.18801909685134888,
0.11991795897483826,
-0.13493840396404266,
0.14019201695919037,
-0.18196402490139008,
0.4822354018688202,
-0.009349621832370758,
0.006744442507624626,
-0.44034242630004883,
-0.2450459897518158,
-0.0685572400689125,
0.13669565320014954,
-0.21706447005271912,
0.055884070694446564,
-0.1265672892332077,
0.22688418626785278,
-0.07788802683353424,
-0.3708287477493286,
0.3754976689815521,
-0.08524700254201889,
0.19798286259174347,
-0.26695072650909424,
0.15589109063148499,
-0.06202082335948944,
0.20275841653347015,
0.23083916306495667,
0.30192795395851135,
0.17099356651306152,
0.21119903028011322,
-0.022893574088811874,
0.1909485161304474,
0.055877573788166046,
-0.0773332491517067,
-0.3302187919616699,
0.23164308071136475,
0.6044892072677612,
0.5322273373603821,
0.23746325075626373,
-0.04316152632236481,
-0.05791397765278816,
0.4244401752948761,
-0.05984773114323616,
0.25626474618911743,
-0.07463277876377106,
0.4026715159416199,
0.0032639894634485245,
-0.13551980257034302,
-0.1652107834815979,
0.020194031298160553,
-0.2610505521297455,
-0.32350024580955505,
0.26023706793785095,
-0.32220977544784546,
0.1295645833015442,
-0.4470628798007965,
-0.02164948359131813,
-0.21574561297893524,
0.5108920335769653,
0.4062943756580353,
0.33943378925323486,
-0.11660971492528915,
-0.24191303551197052,
-0.7239388227462769,
-0.0030536875128746033,
-0.0680551826953888,
0.1875714808702469,
-0.04142626002430916,
0.45134803652763367,
-0.16872483491897583,
0.2156715989112854,
-0.34155988693237305,
0.17766505479812622,
-0.03591661900281906,
-0.05972009152173996,
-0.03255758434534073,
-0.052673716098070145,
-0.3596996068954468,
0.08836393803358078,
-0.13323408365249634,
-0.265916109085083,
0.0844651535153389,
-0.38116949796676636,
-0.164030060172081,
0.12469043582677841,
-0.24492348730564117,
-0.24173115193843842,
0.3652912974357605,
0.597069501876831,
0.11112632602453232,
0.4610142707824707,
0.07630334794521332,
-0.00471099279820919,
-0.22991138696670532,
0.09966978430747986,
-0.31666040420532227,
0.0791568011045456,
0.009057438001036644,
0.02142498642206192,
-0.2934359610080719,
0.4062311053276062,
-0.0983729362487793,
0.216581791639328,
-0.07345119118690491,
0.3182056248188019,
-0.18572843074798584,
-0.37237751483917236,
-0.2545110285282135,
0.102100670337677,
-0.013655322603881359,
-0.14378327131271362,
0.11997556686401367,
0.07326475530862808,
-0.44844549894332886,
0.045296646654605865,
0.5243942737579346,
0.1416599601507187,
0.23925016820430756,
-0.3593873977661133,
0.484565794467926,
0.39355406165122986,
-0.253420889377594,
-0.42700105905532837,
-0.050954487174749374,
0.4510919153690338,
-0.14638018608093262,
0.09949593245983124,
0.03737349063158035,
-0.15389208495616913,
0.13466185331344604,
-0.09684494137763977,
0.40453723073005676,
-0.10790080577135086,
-0.32526183128356934,
-0.1765979826450348,
-0.2115277796983719
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Does this HEAD request return 200 on your machine ?
```python
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
If it returns 200, could you try again to load the dataset ? | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 28 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Does this HEAD request return 200 on your machine ?
```python
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
If it returns 200, could you try again to load the dataset ? | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Thank you very much for your response.
When I run
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
It returns 200.
And I try again to load the dataset. I got the following errors again.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 608, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 475, in download_and_prepare
self._download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "C:\Users\666666\.cache\huggingface\modules\datasets_modules\datasets\cnn_dailymail\0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602\cnn_dailymail.py", line 253, in _split_generators
dl_paths = dl_manager.download_and_extract(_DL_URLS)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 175, in download
downloaded_path_or_paths = map_nested(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 224, in map_nested
mapped = [
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ
Connection error happened but the url was different.
I add the following code.
```
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
```
This didn't return 200
It returned like this:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 309, in connect
conn = self._new_conn()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001F6060618E0>: Failed to establish a new connection: [WinError 10060] | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 272 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Thank you very much for your response.
When I run
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
It returns 200.
And I try again to load the dataset. I got the following errors again.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 608, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 475, in download_and_prepare
self._download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "C:\Users\666666\.cache\huggingface\modules\datasets_modules\datasets\cnn_dailymail\0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602\cnn_dailymail.py", line 253, in _split_generators
dl_paths = dl_manager.download_and_extract(_DL_URLS)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 175, in download
downloaded_path_or_paths = map_nested(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 224, in map_nested
mapped = [
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ
Connection error happened but the url was different.
I add the following code.
```
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
```
This didn't return 200
It returned like this:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 309, in connect
conn = self._new_conn()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001F6060618E0>: Failed to establish a new connection: [WinError 10060] | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | I can browse the google drive through google chrome. It's weird. I can download the dataset through google drive manually. | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 20 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
I can browse the google drive through google chrome. It's weird. I can download the dataset through google drive manually. | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Is it possible I download the dataset manually from google drive and use it for further test ? How can I do this ? I want to reproduce the model in this link https://huggingface.co/patrickvonplaten/bert2bert-cnn_dailymail-fp16. But I can't download the dataset through load_dataset method . I have tried many times and the connection error always happens .
| Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 56 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Is it possible I download the dataset manually from google drive and use it for further test ? How can I do this ? I want to reproduce the model in this link https://huggingface.co/patrickvonplaten/bert2bert-cnn_dailymail-fp16. But I can't download the dataset through load_dataset method . I have tried many times and the connection error always happens .
| [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | The head request should definitely work, not sure what's going on on your side.
If you find a way to make it work, please post it here since other users might encounter the same issue.
If you don't manage to fix it you can use `load_dataset` on google colab and then save it using `dataset.save_to_disk("path/to/dataset")`.
Then you can download the directory on your machine and do
```python
from datasets import load_from_disk
dataset = load_from_disk("path/to/local/dataset")
``` | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 75 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
The head request should definitely work, not sure what's going on on your side.
If you find a way to make it work, please post it here since other users might encounter the same issue.
If you don't manage to fix it you can use `load_dataset` on google colab and then save it using `dataset.save_to_disk("path/to/dataset")`.
Then you can download the directory on your machine and do
```python
from datasets import load_from_disk
dataset = load_from_disk("path/to/local/dataset")
``` | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi
I want to know if this problem has been solved because I encountered a similar issue. Thanks.
`train_data = datasets.load_dataset("xsum", `split="train")`
`ConnectionError:` Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/xsum/xsum.py` | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 26 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi
I want to know if this problem has been solved because I encountered a similar issue. Thanks.
`train_data = datasets.load_dataset("xsum", `split="train")`
`ConnectionError:` Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/xsum/xsum.py` | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi @smile0925 ! Do you have an internet connection ? Are you using some kind of proxy that may block the access to this file ?
Otherwise you can try to update `datasets` since we introduced retries for http requests in the 1.2.0 version
```
pip install --upgrade datasets
```
Let me know if that helps. | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 56 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi @smile0925 ! Do you have an internet connection ? Are you using some kind of proxy that may block the access to this file ?
Otherwise you can try to update `datasets` since we introduced retries for http requests in the 1.2.0 version
```
pip install --upgrade datasets
```
Let me know if that helps. | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi @lhoestq
Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.

| Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 26 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi @lhoestq
Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.

| [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | > Hi @lhoestq
> Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
> 
I have the same problem, have you solved it? Many thanks | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 40 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
> Hi @lhoestq
> Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
> 
I have the same problem, have you solved it? Many thanks | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi @ZhengxiangShi
You can first try whether your network can access these files. I need to use VPN to access these files, so I download the files that cannot be accessed to the local in advance, and then use them in the code. Like this,
`train_data = datasets.load_dataset("xsum.py", split="train")` | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 49 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi @ZhengxiangShi
You can first try whether your network can access these files. I need to use VPN to access these files, so I download the files that cannot be accessed to the local in advance, and then use them in the code. Like this,
`train_data = datasets.load_dataset("xsum.py", split="train")` | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | For Ubuntu 20.04, there are the following feedback.
Google Drive is ok, but raw.githubusercontent.com has a big problem. It seems that the raw github could not match the common urllib3 protocols.
**1. Google Drive**
```
import requests
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
<Response [200]>
```
**2. raw.githubusercontent.com**
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
........
raise CertificateError(
urllib3.util.ssl_match_hostname.CertificateError: hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
........
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'")))
........
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
.......
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'")))
**3. XSUM**
```
from datasets import load_dataset
raw_datasets = load_dataset("xsum", split="train")
```
ConnectionError: Couldn't reach https://raw.githubusercontent.com/EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (SSLError(MaxRetryError('HTTPSConnectionPool(host=\'raw.githubusercontent.com\', port=443): Max retries exceeded with url: /EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (Caused by SSLError(CertificateError("hostname \'raw.githubusercontent.com\' doesn\'t match either of \'default.ssl.fastly.net\', \'fastly.com\', \'*.a.ssl.fastly.net\', \'*.hosts.fastly.net\', \'*.global.ssl.fastly.net\', \'*.fastly.com\', \'a.ssl.fastly.net\', \'purge.fastly.net\', \'mirrors.fastly.net\', \'control.fastly.net\', \'tools.fastly.net\'")))')))
### The following snippet could not solve the implicit ssl error.
```
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context = _create_unverified_https_context
```
| Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 234 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
For Ubuntu 20.04, there are the following feedback.
Google Drive is ok, but raw.githubusercontent.com has a big problem. It seems that the raw github could not match the common urllib3 protocols.
**1. Google Drive**
```
import requests
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
<Response [200]>
```
**2. raw.githubusercontent.com**
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
........
raise CertificateError(
urllib3.util.ssl_match_hostname.CertificateError: hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
........
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'")))
........
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
.......
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match either of 'default.ssl.fastly.net', 'fastly.com', '*.a.ssl.fastly.net', '*.hosts.fastly.net', '*.global.ssl.fastly.net', '*.fastly.com', 'a.ssl.fastly.net', 'purge.fastly.net', 'mirrors.fastly.net', 'control.fastly.net', 'tools.fastly.net'")))
**3. XSUM**
```
from datasets import load_dataset
raw_datasets = load_dataset("xsum", split="train")
```
ConnectionError: Couldn't reach https://raw.githubusercontent.com/EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (SSLError(MaxRetryError('HTTPSConnectionPool(host=\'raw.githubusercontent.com\', port=443): Max retries exceeded with url: /EdinburghNLP/XSum/master/XSum-Dataset/XSum-TRAINING-DEV-TEST-SPLIT-90-5-5.json (Caused by SSLError(CertificateError("hostname \'raw.githubusercontent.com\' doesn\'t match either of \'default.ssl.fastly.net\', \'fastly.com\', \'*.a.ssl.fastly.net\', \'*.hosts.fastly.net\', \'*.global.ssl.fastly.net\', \'*.fastly.com\', \'a.ssl.fastly.net\', \'purge.fastly.net\', \'mirrors.fastly.net\', \'control.fastly.net\', \'tools.fastly.net\'")))')))
### The following snippet could not solve the implicit ssl error.
```
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context = _create_unverified_https_context
```
| [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Thank lhoestq fo the quick response.
I solve the big issue with the command line as follows.
**1. Open hosts (Ubuntu 20.04)**
`$ sudo gedit /etc/hosts`
**2. Add the command line into the hosts**
`151.101.0.133 raw.githubusercontent.com`
**3. Save hosts**
And then the jupyter notebook can access to the datasets (module) and get the datasets of XSUM with raw.githubusercontent.com.
So it is not users' fault. But most of the suggestions in the web are wrong. Anyway, I solve the problem finally.
By the way, users need to add the other github commnads such as the following.
`199.232.69.194 github.global.ssl.fastly.net`
Cheers!!!
| Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 98 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Thank lhoestq fo the quick response.
I solve the big issue with the command line as follows.
**1. Open hosts (Ubuntu 20.04)**
`$ sudo gedit /etc/hosts`
**2. Add the command line into the hosts**
`151.101.0.133 raw.githubusercontent.com`
**3. Save hosts**
And then the jupyter notebook can access to the datasets (module) and get the datasets of XSUM with raw.githubusercontent.com.
So it is not users' fault. But most of the suggestions in the web are wrong. Anyway, I solve the problem finally.
By the way, users need to add the other github commnads such as the following.
`199.232.69.194 github.global.ssl.fastly.net`
Cheers!!!
| [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | I use the dataset 2.14.4 that published on Aug 8, 2023.发自我的 iPhone在 2023年9月13日,06:38,Quentin Lhoest ***@***.***> 写道:
Only the oldest versions of datasets use raw.githubusercontent.com. Can you try updating datasets ?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 49 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
I use the dataset 2.14.4 that published on Aug 8, 2023.发自我的 iPhone在 2023年9月13日,06:38,Quentin Lhoest ***@***.***> 写道:
Only the oldest versions of datasets use raw.githubusercontent.com. Can you try updating datasets ?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> | [
-0.17262037098407745,
-0.08458083122968674,
-0.0973370224237442,
0.12888595461845398,
0.4222565293312073,
0.20194470882415771,
0.34266024827957153,
0.06219448894262314,
-0.05755879357457161,
0.004357464611530304,
-0.14231045544147491,
0.08249646425247192,
-0.06606028974056244,
0.2489193230867386,
0.11230872571468353,
-0.12542150914669037,
-0.08084561675786972,
-0.11463069915771484,
-0.22911697626113892,
0.006714634597301483,
-0.20981048047542572,
0.14409320056438446,
-0.209649458527565,
0.04321194067597389,
-0.42130473256111145,
-0.1652371734380722,
0.08612224459648132,
0.3555387556552887,
-0.030173080042004585,
-0.2586030066013336,
0.371035099029541,
0.013673540204763412,
0.05071480572223663,
0.4067726731300354,
-0.00011094118963228539,
0.28215378522872925,
0.42149341106414795,
-0.007743651047348976,
-0.47006961703300476,
-0.41198694705963135,
0.0286162868142128,
-0.2524261474609375,
0.20361191034317017,
-0.12158196419477463,
-0.08969318866729736,
-0.09933602064847946,
-0.04851434379816055,
-0.2351500242948532,
0.4430732727050781,
0.424468457698822,
0.2697089910507202,
0.27369624376296997,
0.3110571801662445,
-0.0948241651058197,
-0.3082558512687683,
-0.2242908924818039,
0.04368060827255249,
0.5262333154678345,
-0.30415505170822144,
-0.05500409007072449,
0.23694917559623718,
0.18526776134967804,
-0.11026418954133987,
0.03942878544330597,
0.10279308259487152,
0.036839451640844345,
-0.0811183825135231,
-0.36316248774528503,
0.01672380603849888,
0.072193942964077,
0.24345430731773376,
-0.2260054349899292,
-0.4658704996109009,
-0.16389459371566772,
0.03046923130750656,
-0.352311909198761,
0.20596465468406677,
0.07249386608600616,
-0.131037637591362,
0.15622635185718536,
-0.4081348478794098,
-0.16622500121593475,
-0.23317959904670715,
0.4767998456954956,
-0.0834711492061615,
-0.0691661685705185,
-0.10134526342153549,
0.1568792164325714,
0.20814625918865204,
-0.014765586704015732,
0.24560748040676117,
0.016396334394812584,
0.3304586410522461,
0.21354302763938904,
-0.4810217022895813,
0.11584128439426422,
0.016375530511140823,
0.13958951830863953,
0.13585913181304932,
0.2361452281475067,
0.08397775143384933,
-0.05708688497543335,
-0.1238580197095871,
0.08515284955501556,
0.060634858906269073,
0.2453830987215042,
0.008936464786529541,
0.13872723281383514,
0.18724709749221802,
0.30584511160850525,
-0.012288816273212433,
0.034872088581323624,
-0.137192040681839,
-0.2628457248210907,
-0.08476050943136215,
0.12667237222194672,
0.46729588508605957,
-0.06681478768587112,
-0.14578141272068024,
0.2286665141582489,
-0.249720960855484,
-0.0773121565580368,
0.12552881240844727,
0.507819414138794,
-0.24598577618598938,
0.10307927429676056,
-0.0911056250333786,
0.24431169033050537,
-0.09848128259181976,
0.02813977748155594,
-0.2782627046108246,
0.15831758081912994,
-0.14690205454826355,
0.18585774302482605,
0.42093905806541443,
-0.42831218242645264,
0.3650212287902832,
-0.08279476314783096,
0.1328936219215393,
-0.26512545347213745,
0.07276203483343124,
-0.07313603162765503,
-0.22959697246551514,
0.3315562605857849,
-0.012848790735006332,
0.1878606230020523,
0.3255271315574646,
0.2198999971151352,
-0.008619509637355804,
-0.09329593926668167,
-0.2572559416294098,
-0.5359466075897217,
0.28439533710479736,
0.23465032875537872,
-0.13258245587348938,
-0.23776733875274658,
-0.10398479551076889,
-0.07018740475177765,
-0.08551361411809921,
0.04999056085944176,
-0.22543731331825256,
-0.07588887214660645,
-0.00010212883353233337,
-0.18517343699932098,
0.45798459649086,
0.4795650839805603,
-0.3562660813331604,
-0.13188254833221436,
-0.08892036974430084,
-0.19939024746418,
0.10227495431900024,
0.2505486011505127,
-0.21025654673576355,
0.26782453060150146,
-0.030062254518270493,
-0.20019274950027466,
0.3244512975215912,
-0.25677940249443054,
-0.4303717017173767,
0.2295982390642166,
-0.14158380031585693,
0.0772201269865036,
-0.15979480743408203,
-0.019827915355563164,
-0.23004406690597534,
0.09766870737075806,
0.22241419553756714,
0.4544762969017029,
-0.22194230556488037,
-0.007508555427193642,
-0.07613636553287506,
-0.28875821828842163,
0.19717347621917725,
0.3495088517665863,
0.1905551701784134,
0.08371181786060333,
0.11229023337364197,
-0.12296618521213531,
0.13893263041973114,
0.07927148789167404,
-0.12887074053287506,
0.22225923836231232,
-0.07304492592811584,
0.06009652465581894,
0.005793215241283178,
0.19313350319862366,
-0.4456617832183838,
0.21716204285621643,
0.25751230120658875,
0.20543943345546722,
-0.15917335450649261,
0.07180086523294449,
-0.33143073320388794,
0.06447871029376984,
-0.3276312053203583,
-0.10173127055168152,
0.16813161969184875,
0.1100924164056778,
0.11498995125293732,
0.1487404853105545,
-0.34775400161743164,
0.5853909850120544,
-0.2807268798351288,
0.1544782519340515,
-0.36426010727882385,
0.3336732089519501,
-0.13780689239501953,
0.02081017941236496,
0.05325395613908768,
0.19486930966377258,
0.22709521651268005,
-0.2124795913696289,
-0.1230693981051445,
0.3350650668144226,
-0.09708840399980545,
0.13969817757606506,
0.10056932270526886,
0.020622238516807556,
0.08872127532958984,
-0.27322205901145935,
-0.007591636851429939,
0.17520897090435028,
-0.048422738909721375,
-0.06365491449832916,
0.22217035293579102,
0.2624586522579193,
-0.08243709802627563,
0.33501994609832764,
0.16534484922885895,
-0.01671617664396763,
0.15577444434165955,
0.08227795362472534,
-0.07257523387670517,
-0.08043777197599411,
0.34884676337242126,
-0.28236377239227295,
0.49145281314849854,
-0.17793549597263336,
-0.18835338950157166,
-0.21429666876792908,
0.10730111598968506,
-0.20607562363147736,
0.036799147725105286,
0.18075880408287048,
-0.15274649858474731,
-0.1959126889705658,
-0.14158214628696442,
0.2285897582769394,
0.3831123113632202,
0.12666893005371094,
0.01740337535738945,
0.3330520987510681,
-0.11242293566465378,
-0.12555517256259918,
0.21396121382713318,
0.16420957446098328,
0.25341638922691345,
0.12569037079811096,
-0.10634036362171173,
0.08767545223236084,
-0.3335895240306854,
-0.2977259159088135,
0.04574960470199585,
0.294100284576416,
-0.3505656123161316,
-0.026605097576975822,
-0.23481114208698273,
-0.1075836792588234,
0.04100210964679718,
-0.49585121870040894,
-0.18313103914260864,
-0.4478106200695038,
-0.16305036842823029,
-0.0245090089738369,
0.10010820627212524,
0.19134265184402466,
-0.13830414414405823,
0.20425353944301605,
0.26810118556022644,
-0.17570728063583374,
-0.1990251988172531,
-0.14131663739681244,
-0.1222066655755043,
0.042547035962343216,
0.19098332524299622,
-0.24977852404117584,
0.2615087330341339,
-0.12377563118934631,
-0.19311092793941498,
-0.13389691710472107,
-0.043252408504486084,
0.04489138722419739,
-0.08075874298810959,
0.42538875341415405,
0.0415048748254776,
0.5178232789039612,
0.14749549329280853,
-0.05272814631462097,
0.37865883111953735,
-0.07507815212011337,
0.052586786448955536,
0.01370733231306076,
-0.012673825956881046,
0.17136505246162415,
0.10542464256286621,
-0.419750839471817,
-0.5957533717155457,
-0.31860411167144775,
0.13327905535697937,
-0.14041677117347717,
0.1600903868675232,
0.4751754701137543,
0.1390490084886551,
0.07282321155071259,
-0.027765238657593727,
0.32434743642807007,
-0.29523965716362,
-0.5784926414489746,
0.34275078773498535,
-0.42625802755355835,
-0.39998573064804077,
0.05177794769406319,
0.23373804986476898,
0.15853053331375122,
-0.13686253130435944,
-0.4911380410194397,
-0.29129916429519653,
-0.02103188820183277,
-0.20825234055519104,
-0.14088858664035797,
0.03425155580043793,
-0.08178724348545074,
-0.170644611120224,
-0.08072225749492645,
0.05285467952489853,
-0.21539638936519623,
0.020766787230968475,
-0.18977952003479004,
0.10595562309026718,
0.054058987647295,
0.5800538063049316,
-0.20692391693592072,
0.41046416759490967,
0.2627962827682495,
-0.09994083642959595,
0.43047282099723816,
-0.1017870232462883,
0.29820725321769714,
-0.0337926521897316,
-0.5136100649833679,
-0.03903916850686073,
-0.024887755513191223,
-0.04935925081372261,
0.24670161306858063,
0.1183113157749176,
-0.17501018941402435,
-0.40237125754356384,
-0.18232844769954681,
-0.4465418756008148,
-0.10940051078796387,
-0.029765339568257332,
0.11023567616939545,
0.06838623434305191,
0.03377160429954529,
0.11740075796842575,
-0.15625572204589844,
-0.028627417981624603,
0.023390628397464752,
0.34780681133270264,
-0.03887859731912613,
0.11804363876581192,
0.006739497184753418,
-0.09217416495084763,
-0.43141812086105347,
0.33465376496315,
-0.17446139454841614,
0.4283657670021057,
-0.1977284997701645,
0.07675250619649887,
-0.06717182695865631,
-0.0039036846719682217,
0.6058319807052612,
-0.2651660144329071,
0.11586405336856842,
0.09651954472064972,
0.010438449680805206,
-0.30427077412605286,
-0.0939212292432785,
-0.03257853537797928,
0.24870507419109344,
0.16576474905014038,
0.4471999406814575,
-0.07856922596693039,
-0.16756057739257812,
0.3270869255065918,
0.2548517882823944,
-0.1390840709209442,
-0.32141345739364624,
-0.14267897605895996,
-0.39352476596832275,
-0.2281123846769333,
-0.2242874801158905,
-0.3400649428367615,
0.3046940267086029,
-0.03413833677768707,
-0.16921895742416382,
0.06572649627923965,
-0.09413914382457733,
0.1747613400220871,
0.07752762734889984,
0.1345154047012329,
0.09457410871982574,
0.11386094987392426,
0.3893180787563324,
0.05147238448262215,
0.19698566198349,
0.6876193881034851,
-0.1747293770313263,
-0.28180426359176636,
0.003107033669948578,
0.26535850763320923,
0.12663039565086365,
0.277607798576355,
-0.21347016096115112,
-0.11072801798582077,
0.19178813695907593,
0.1974567174911499,
-0.005906793288886547,
0.2809215784072876,
0.37850701808929443,
0.09109862148761749,
-0.5953512191772461,
-0.5943180322647095,
0.4862520396709442,
-0.09491054713726044,
0.11619797348976135,
0.18357019126415253,
-0.1201065182685852,
-0.13071635365486145,
0.17530816793441772,
-0.18716803193092346,
0.7539354562759399,
-0.05162128061056137,
0.022021250799298286,
0.2660263776779175,
0.2764654755592346,
0.4896036386489868,
-0.31419628858566284,
0.01714109070599079,
-0.22134755551815033,
-0.3019839823246002,
-0.09656146168708801,
-0.11286502331495285,
0.12321436405181885,
0.2790021300315857,
0.04116084799170494,
0.4529608190059662,
-0.13979873061180115,
-0.007671616971492767,
0.12030113488435745,
0.2758703827857971,
-0.0123655516654253,
-0.09909762442111969,
-0.6099661588668823,
0.23492708802223206,
-0.11527644097805023,
0.28590822219848633,
-0.14560529589653015,
-0.026654928922653198,
0.018934618681669235,
-0.20110653340816498,
-0.12524829804897308,
0.11030732840299606,
-0.525855541229248,
0.33524566888809204,
-0.11032278835773468,
-0.1921398937702179,
-0.2348797768354416,
0.14027602970600128,
0.2428160458803177,
0.0209093876183033,
-0.1805032342672348,
-0.01643107458949089,
-0.1787303388118744,
-0.2422129213809967,
-0.11149273067712784,
0.006605091504752636,
0.33495739102363586,
-0.14434872567653656,
-0.22991356253623962,
0.09646342694759369,
-0.12504656612873077,
-0.30045127868652344,
0.11817267537117004,
-0.07091085612773895,
-0.10809780657291412,
-0.13218684494495392,
-0.24444083869457245,
-0.18454831838607788,
0.08627781271934509,
-0.17466379702091217,
0.136753112077713,
0.06880056113004684,
-0.08284120261669159,
0.10168825089931488,
0.14947609603405,
-0.2983338236808777,
-0.1130414605140686,
0.3407578766345978,
-0.2677861452102661,
-0.2979256212711334,
0.4692341685295105,
0.351972758769989,
-0.1586269736289978,
-0.16132204234600067,
0.11765510588884354,
0.2354239672422409,
-0.27571672201156616,
0.028792425990104675,
0.16200174391269684,
0.30084502696990967,
-0.009347311221063137,
0.3109225928783417,
0.3056395649909973,
0.10084609687328339,
0.007333904504776001,
-0.7206999063491821,
-0.3249889016151428,
0.19461920857429504,
0.12716692686080933,
0.2861981987953186,
0.17612528800964355,
0.11474438011646271,
0.021765725687146187,
-0.1419670432806015,
-0.3108200430870056,
0.05638972669839859,
-0.19300180673599243,
-0.2246219515800476,
0.20448730885982513,
-0.1960638165473938,
0.5058361887931824,
0.09617431461811066,
0.23531532287597656,
-0.18623237311840057,
-0.22380782663822174,
-0.25229740142822266,
0.012597359716892242,
0.12506675720214844,
-0.007204476743936539,
-0.15990431606769562,
0.07668494433164597,
-0.09893618524074554,
-0.1071702092885971,
-0.1015125960111618,
0.1909552812576294,
0.13839563727378845,
0.06878022104501724,
-0.07874616980552673,
0.10012489557266235,
0.03010956570506096,
-0.19079630076885223,
0.02850823849439621,
-0.025133833289146423,
0.3009049892425537,
0.2265721559524536,
0.06183527782559395,
0.024158015847206116,
-0.05330641195178032,
-0.07461810857057571,
-0.11217678338289261,
-0.04140712320804596,
-0.07796330749988556,
0.35955771803855896,
-0.3970215916633606,
-0.02757197804749012,
0.2810700237751007,
0.49862727522850037,
0.3485303521156311,
-0.3341708481311798,
0.14043162763118744,
0.09825015813112259,
0.20083631575107574,
-0.2418052703142166,
-0.13203677535057068,
0.18666455149650574,
-0.03183896839618683,
0.0309767983853817,
0.12332773953676224,
-0.058140724897384644,
0.0505555123090744,
-0.2328447550535202,
0.05670914798974991,
0.5290330052375793,
0.09246104955673218,
0.22493217885494232,
0.13084901869297028,
-0.018567096441984177,
0.06692203879356384,
0.0650010034441948,
0.036054931581020355,
0.12290941178798676,
0.29205989837646484,
-0.34958142042160034,
0.146230086684227,
-0.05675949901342392,
0.06839976459741592,
-0.11474666744470596,
-0.6289651989936829,
0.3336818516254425,
0.16891565918922424,
-0.31917813420295715,
0.08784355223178864,
-0.244911789894104,
0.45156919956207275,
-0.21866506338119507,
0.05171350762248039,
-0.29081204533576965,
0.32481858134269714,
0.053550198674201965,
-0.0619027353823185,
0.11665363609790802,
-0.2613930404186249,
-0.12228944897651672,
-0.024195848032832146,
0.05928619205951691,
-0.33784401416778564,
0.2547752857208252,
0.1873701512813568,
-0.1702086180448532,
-0.25051724910736084,
-0.051473528146743774,
0.20038852095603943,
-0.0278916135430336,
-0.10703597217798233,
0.3322894275188446,
0.3139641284942627,
-0.10759708285331726,
-0.005259651690721512,
0.20781810581684113,
0.5430830121040344,
0.36382338404655457,
0.05988175421953201,
0.2568229138851166,
0.11453893780708313,
-0.1374523788690567,
0.06761519610881805,
0.03229466825723648,
0.2886672019958496,
0.08369225263595581,
0.38124555349349976,
0.21704427897930145,
-0.18020692467689514,
0.16716749966144562,
-0.01985805854201317,
0.14901189506053925,
-0.2210002839565277,
0.3357275724411011,
-0.0727909654378891,
0.036446668207645416,
-0.37049156427383423,
0.06097687780857086,
-0.6276513934135437,
-0.07641120254993439,
0.45937812328338623,
-0.011202001012861729,
0.009491613134741783,
-0.06973177939653397,
0.08088760077953339,
-0.1090027242898941,
0.7130915522575378,
0.37308087944984436,
0.4081921875476837,
-0.44813072681427,
-0.09220924973487854,
-0.580484926700592,
0.0778246521949768,
-0.023874957114458084,
0.16887851059436798,
0.09095220267772675,
-0.14518943428993225,
0.02268870919942856,
0.2757076323032379,
0.2652716338634491,
0.08495257049798965,
0.15117290616035461,
0.0965435653924942,
-0.17954635620117188,
-0.11537647247314453,
0.022908829152584076,
0.06011638045310974,
-0.037616461515426636,
-0.23774877190589905,
0.05600756034255028,
-0.534526526927948,
-0.0055662281811237335,
-0.004136599600315094,
-0.05638992041349411,
-0.010825026780366898,
-0.07826061546802521,
0.3397466242313385,
0.07795223593711853,
0.7522109746932983,
0.006127532571554184,
-0.12574373185634613,
-0.39829021692276,
-0.3299314081668854,
-0.1280595064163208,
0.14618779718875885,
-0.0317726768553257,
0.2351619303226471,
-0.10757257789373398,
-0.33759912848472595,
-0.37660667300224304,
0.1866864114999771,
0.04968532174825668,
-0.2255173772573471,
-0.16470903158187866,
0.0524488165974617,
0.07880722731351852,
0.007881434634327888,
0.1963617205619812,
0.0920477956533432,
-0.03482615947723389,
0.31251105666160583,
-0.10615601390600204,
-0.35995596647262573,
0.6798815727233887,
-0.22595688700675964,
-0.047405388206243515,
-0.10425785183906555,
0.03658874332904816,
0.09120025485754013,
0.08804021030664444,
-0.5794770121574402,
0.1991289258003235,
0.3769949972629547,
0.11346590518951416,
-0.43973103165626526,
0.2614181637763977,
-0.07183201611042023,
0.011539813131093979,
0.03498842939734459,
0.13892146944999695,
0.032102931290864944,
-0.27391600608825684,
-0.024995382875204086,
-0.15673089027404785
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Hi ! Thanks for reporting.
Is the distribution of text length of your data evenly distributed across your dataset ? I mean, could it be because the examples in the first part of your dataset are slower to process ?
Also could how many CPUs can you use for multiprocessing ?
```python
import multiprocessing
print(multiprocessing.cpu_count())
```
Which tokenizer are you using ? | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 62 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Hi ! Thanks for reporting.
Is the distribution of text length of your data evenly distributed across your dataset ? I mean, could it be because the examples in the first part of your dataset are slower to process ?
Also could how many CPUs can you use for multiprocessing ?
```python
import multiprocessing
print(multiprocessing.cpu_count())
```
Which tokenizer are you using ? | [
-0.495311439037323,
-0.5315655469894409,
-0.16952848434448242,
0.2302870750427246,
0.12561658024787903,
-0.3297327756881714,
0.309304416179657,
0.16064731776714325,
-0.3321206867694855,
0.21069428324699402,
0.34024864435195923,
0.24001526832580566,
-0.10366968810558319,
-0.04067419096827507,
-0.5593129992485046,
0.036116890609264374,
-0.0464160218834877,
-0.04025737941265106,
0.5563801527023315,
-0.0004827752709388733,
-0.16274654865264893,
0.13793273270130157,
-0.35828518867492676,
-0.08268827199935913,
-0.6165252327919006,
-0.2573295533657074,
0.0004952158778905869,
0.05753646045923233,
-0.05243699997663498,
-0.2949143946170807,
-0.6529921889305115,
-0.00698491558432579,
0.04748343676328659,
0.35157307982444763,
-0.00011530845222296193,
-0.1335369497537613,
0.07265172898769379,
0.22120627760887146,
0.1563182920217514,
0.010190799832344055,
0.37818872928619385,
-0.4317012429237366,
-0.08396267145872116,
-0.3196578025817871,
0.10876143723726273,
0.08271626383066177,
0.1891487091779709,
-0.0064330995082855225,
0.33776214718818665,
0.3044477105140686,
0.20408286154270172,
0.21620939671993256,
-0.18633311986923218,
0.25373637676239014,
-0.20401346683502197,
0.21323715150356293,
0.07254481315612793,
-0.16971148550510406,
0.2893606722354889,
0.288333922624588,
-0.04080647975206375,
0.280897319316864,
-0.22230061888694763,
-0.0609896294772625,
0.072473905980587,
-0.026083171367645264,
0.30075448751449585,
-0.6823172569274902,
0.35253509879112244,
0.18507519364356995,
0.07844239473342896,
0.15661513805389404,
-0.1315239518880844,
-0.30898991227149963,
-0.08534454554319382,
-0.5059005618095398,
-0.08678259700536728,
0.254968523979187,
-0.2516719102859497,
-0.16171230375766754,
-0.4387654662132263,
0.22428521513938904,
0.058168888092041016,
-0.22304703295230865,
-0.26458051800727844,
0.26339519023895264,
0.10627573728561401,
0.21241194009780884,
0.004715360701084137,
-0.18413138389587402,
-0.27996137738227844,
-0.2286386489868164,
0.24341616034507751,
0.1527598798274994,
-0.1565134972333908,
0.03988253325223923,
-0.11004859954118729,
-0.24516025185585022,
-0.14667829871177673,
0.08428526669740677,
-0.3905348479747772,
0.4203820824623108,
0.05379532650113106,
0.061082594096660614,
-0.09537224471569061,
-0.11219848692417145,
0.15838885307312012,
0.1098184585571289,
0.14820393919944763,
-0.2133922129869461,
-0.2921484112739563,
-0.055090032517910004,
-0.03972901031374931,
-0.2578706443309784,
0.22002755105495453,
0.020839044824242592,
-0.23564116656780243,
-0.02292998880147934,
-0.23400554060935974,
-0.08495498448610306,
0.040227048099040985,
0.09656227380037308,
0.20335134863853455,
0.2396935522556305,
0.049567364156246185,
0.5489522814750671,
-0.2180420607328415,
-0.061976104974746704,
-0.40519028902053833,
-0.030910756438970566,
-0.14672762155532837,
-0.11426487565040588,
-0.15944302082061768,
0.046906307339668274,
-0.13788603246212006,
0.15251047909259796,
0.0012932242825627327,
-0.01964036375284195,
0.3199877142906189,
-0.17425839602947235,
0.015170516446232796,
-0.4309883415699005,
0.06939687579870224,
0.07898420840501785,
-0.022559313103556633,
0.272382527589798,
-0.0778321772813797,
-0.14691686630249023,
-0.4247121214866638,
0.3230876624584198,
-0.4733676314353943,
-0.17939673364162445,
0.04624868184328079,
0.1082267016172409,
0.03587821498513222,
0.17135293781757355,
-0.0786883756518364,
0.10967624187469482,
0.34849831461906433,
0.13272036612033844,
-0.02489551156759262,
-0.2907631993293762,
-0.48528558015823364,
-0.22814489901065826,
0.06026998907327652,
0.1922590285539627,
0.05795246735215187,
0.029165446758270264,
0.4639878571033478,
0.19405527412891388,
0.6476487517356873,
0.5497228503227234,
0.1571919471025467,
0.07738617062568665,
-0.03587346151471138,
0.5512925982475281,
0.11637559533119202,
-0.11337639391422272,
-0.448864221572876,
0.265088826417923,
-0.2791212797164917,
-0.3341398239135742,
0.2636803388595581,
0.1984429657459259,
0.376923531293869,
-0.015222721733152866,
0.28899097442626953,
0.2263314425945282,
0.09171029925346375,
0.4347141981124878,
-0.3345438241958618,
-0.03269435465335846,
0.1791485697031021,
0.12597499787807465,
-0.04713071510195732,
-0.30979108810424805,
-0.07652344554662704,
-0.2440914809703827,
0.11960527300834656,
-0.15753483772277832,
0.04287081956863403,
0.2962053418159485,
0.02196626365184784,
-0.12250804901123047,
-0.06533365696668625,
-0.006316743791103363,
0.24254626035690308,
0.28521570563316345,
0.02025604248046875,
0.3112221658229828,
-0.18680720031261444,
-0.031023340299725533,
0.24666452407836914,
0.10158175975084305,
-0.11560508608818054,
-0.19576606154441833,
0.06601619720458984,
-0.17193350195884705,
-0.03854464367032051,
0.1197178065776825,
0.10257451236248016,
0.2863749861717224,
-0.08214228600263596,
0.08058785647153854,
0.21906732022762299,
-0.03250333294272423,
-0.09879913181066513,
-0.30950459837913513,
-0.17712999880313873,
0.08050897717475891,
0.36290353536605835,
0.07375816255807877,
-0.08659373968839645,
0.28386929631233215,
0.3752441704273224,
-0.011485330760478973,
-0.3486469089984894,
0.019777312874794006,
0.4422864317893982,
0.0011338628828525543,
0.30613410472869873,
-0.11347375810146332,
-0.12447499483823776,
-0.02527662366628647,
0.20555534958839417,
0.4379799962043762,
0.19637882709503174,
0.3408123850822449,
0.24347545206546783,
0.03263140469789505,
0.024082915857434273,
0.1747349500656128,
0.2500096261501312,
0.018640592694282532,
0.1492006629705429,
0.45898014307022095,
0.21193984150886536,
0.17452481389045715,
-0.18399977684020996,
0.30833470821380615,
0.43467357754707336,
-0.001162135973572731,
-0.15688109397888184,
0.345321923494339,
-0.13269749283790588,
0.032250382006168365,
0.22805961966514587,
-0.5205898880958557,
0.18833673000335693,
0.30400803685188293,
0.01775342971086502,
-0.09174397587776184,
-0.15191243588924408,
-0.0713321715593338,
0.04936730116605759,
0.16062390804290771,
0.029035698622465134,
0.09507524967193604,
0.2052946239709854,
0.17994368076324463,
-0.23925599455833435,
-0.3200100064277649,
0.020746799185872078,
0.2429746687412262,
-0.0013517513871192932,
0.08106664568185806,
-0.18529942631721497,
0.3129560053348541,
-0.04430048540234566,
0.023477967828512192,
-0.25184962153434753,
-0.19601885974407196,
0.10100620239973068,
0.11810877919197083,
0.15719738602638245,
-0.007351560518145561,
0.06902436912059784,
-0.0020886659622192383,
0.2708702087402344,
0.046013571321964264,
-0.05743803456425667,
0.05695493891835213,
-0.245106041431427,
-0.03372103348374367,
0.37223872542381287,
0.07904457300901413,
0.37209397554397583,
-0.07977023720741272,
-0.07572881877422333,
-0.16917262971401215,
-0.32687318325042725,
0.017446018755435944,
0.01132383942604065,
-0.10110335797071457,
-0.03614768385887146,
0.051564231514930725,
-0.15609174966812134,
-0.09317121654748917,
0.2367040067911148,
-0.30023860931396484,
-0.2327290028333664,
0.029215224087238312,
-0.05204565450549126,
-0.4248192012310028,
0.005097672343254089,
0.20825760066509247,
-0.4068968594074249,
-0.06672554463148117,
0.1968751698732376,
0.30574530363082886,
0.439969539642334,
-0.13417452573776245,
0.18665365874767303,
0.017513800412416458,
0.265410453081131,
0.03740682825446129,
-0.07299237698316574,
-0.08812740445137024,
0.24791714549064636,
-0.040894657373428345,
-0.17771631479263306,
-0.23354877531528473,
0.05005204677581787,
-0.07026207447052002,
0.27765482664108276,
-0.035401538014411926,
-0.16988974809646606,
-0.3668975234031677,
0.4108220934867859,
-0.21654212474822998,
0.054403550922870636,
0.40763118863105774,
0.18331755697727203,
-0.19272075593471527,
0.25627538561820984,
0.04596557095646858,
-0.05328599363565445,
-0.21950703859329224,
0.011529237031936646,
-0.057160258293151855,
0.22372454404830933,
0.1973438858985901,
0.5768966674804688,
0.23447281122207642,
-0.5633325576782227,
0.20024871826171875,
-0.28488263487815857,
-0.28701356053352356,
0.013394370675086975,
-0.05908709019422531,
0.447293758392334,
0.10933005064725876,
0.008657418191432953,
0.23841342329978943,
-0.013835761696100235,
-0.29394519329071045,
0.0700015053153038,
0.0657200962305069,
-0.2700677216053009,
-0.1444711983203888,
0.05974908918142319,
0.09127147495746613,
0.24207928776741028,
-0.1904570609331131,
0.06798524409532547,
-0.34950491786003113,
-0.19373932480812073,
-0.21417371928691864,
-0.05510520935058594,
-0.10804421454668045,
-0.40803179144859314,
-0.5877999663352966,
-0.06784287840127945,
-0.7291854023933411,
0.5164377689361572,
0.39627605676651,
0.15496961772441864,
0.1175733208656311,
-0.05694283917546272,
0.19570869207382202,
-0.3049111068248749,
0.6568156480789185,
-0.002127276733517647,
-0.19846349954605103,
0.040175311267375946,
-0.302931547164917,
-0.35221067070961,
0.017192289233207703,
-0.02189652808010578,
0.3239721655845642,
0.3868621587753296,
0.8028347492218018,
-0.0870434120297432,
-0.2673942744731903,
-0.15316836535930634,
-0.13169200718402863,
0.09508466720581055,
-0.1812620311975479,
-0.2314993441104889,
-0.2156764268875122,
-0.330756813287735,
0.36500099301338196,
0.07358363270759583,
0.4053298532962799,
-0.23506970703601837,
-0.31393593549728394,
-0.10817761719226837,
-0.11345963180065155,
0.30998557806015015,
0.023245081305503845,
0.20329681038856506,
-0.15809357166290283,
0.03337952867150307,
0.07405351102352142,
0.17928433418273926,
0.19553180038928986,
-0.16936315596103668,
0.15706048905849457,
-0.16796115040779114,
0.041220154613256454,
0.041686128824949265,
0.19539442658424377,
0.4357810914516449,
0.04379148781299591,
0.10813058912754059,
-0.3416284918785095,
0.7598042488098145,
-0.0696403756737709,
0.34242621064186096,
0.10691802948713303,
0.395711213350296,
-0.3597375452518463,
0.11386072635650635,
-0.04760619252920151,
0.32274574041366577,
0.04729226231575012,
0.024957796558737755,
-0.5631777048110962,
-0.055525653064250946,
-0.09775128960609436,
0.45447805523872375,
1.0650627613067627,
-0.28707200288772583,
0.14489398896694183,
-0.23203426599502563,
0.08272156119346619,
0.1771814525127411,
-0.42261528968811035,
0.10261940956115723,
-0.5460090041160583,
-0.1650371253490448,
0.05918549746274948,
-0.13425204157829285,
0.30775153636932373,
0.17995412647724152,
0.08703379333019257,
0.1531486064195633,
0.22247286140918732,
0.16010339558124542,
-0.1453624665737152,
0.47699618339538574,
-0.05598956346511841,
-0.37101855874061584,
0.11724979430437088,
0.13821451365947723,
0.05430562421679497,
-0.1033848226070404,
0.10929770767688751,
0.024671634659171104,
-0.15722645819187164,
-0.16437692940235138,
-0.20603778958320618,
-0.17091959714889526,
-0.41023555397987366,
0.32101452350616455,
0.20674088597297668,
0.04112137854099274,
-0.027971889823675156,
0.34842440485954285,
0.11815054714679718,
0.2764461934566498,
0.039745643734931946,
0.2110109180212021,
0.13616108894348145,
0.02959899790585041,
0.20981508493423462,
-0.3426697552204132,
0.06375516206026077,
-0.1972799301147461,
-0.1635500192642212,
-0.09586598724126816,
0.05441397428512573,
0.02147507667541504,
-0.2595755457878113,
-0.0013830140233039856,
0.4683528542518616,
0.11738349497318268,
-0.0985029935836792,
-0.026352442800998688,
-0.3687480092048645,
-0.15892915427684784,
0.09248131513595581,
-0.0453755185008049,
-0.24044208228588104,
0.4379303455352783,
-0.029869239777326584,
-0.2830429673194885,
0.025305602699518204,
0.2725921869277954,
-0.028668027371168137,
-0.11068328469991684,
0.2649385333061218,
-0.17240366339683533,
-0.3740755319595337,
-0.1781919002532959,
0.3151310086250305,
-0.29601556062698364,
0.010842785239219666,
-0.06335411965847015,
0.015535240061581135,
-0.22652968764305115,
0.03855259716510773,
0.0790211409330368,
-0.1980660855770111,
0.011885363608598709,
-0.04777485504746437,
-0.2924392521381378,
-0.5503081679344177,
-0.29807621240615845,
-0.2731848657131195,
0.06548581272363663,
-0.015558041632175446,
0.1982996165752411,
-0.24589447677135468,
0.03519667685031891,
-0.28078046441078186,
0.04888632148504257,
-0.24679021537303925,
0.2797227203845978,
-0.16899240016937256,
-0.3845110535621643,
-0.3008626401424408,
0.052649300545454025,
0.21309439837932587,
0.5159612894058228,
-0.15755365788936615,
-0.24913755059242249,
-0.015514692291617393,
0.12416574358940125,
0.10787568241357803,
-0.3995266556739807,
0.11418594419956207,
0.17622590065002441,
-0.2904107868671417,
-0.2819702923297882,
0.014165394008159637,
0.03861169517040253,
-0.15377898514270782,
-0.2576294541358948,
0.3884234130382538,
0.21648281812667847,
0.06584412604570389,
0.23126159608364105,
-0.13867323100566864,
0.3107287287712097,
0.14474815130233765,
0.24804823100566864,
0.14695163071155548,
0.0634009838104248,
0.0029560914263129234,
0.03936389461159706,
0.5078855156898499,
-0.11042886227369308,
0.0072399526834487915,
-0.1157703548669815,
-0.12562163174152374,
0.16503754258155823,
0.060849227011203766,
0.2264777272939682,
-0.1681414246559143,
-0.29764196276664734,
0.3968753516674042,
0.24299576878547668,
-0.19494742155075073,
-0.12401127815246582,
0.39007675647735596,
-0.1788143813610077,
0.08722540736198425,
0.15573258697986603,
0.2607519030570984,
0.1711994707584381,
-0.20706231892108917,
0.04707171022891998,
0.28730204701423645,
-0.4762459397315979,
-0.32168880105018616,
-0.11560040712356567,
0.08699141442775726,
0.06417351216077805,
0.41792550683021545,
0.010468900203704834,
0.026019006967544556,
0.34528982639312744,
-0.02586384117603302,
0.583687424659729,
-0.017006460577249527,
0.31340929865837097,
-0.1671293079853058,
-0.05666760727763176,
-0.1695801466703415,
0.29387953877449036,
-0.025153562426567078,
0.17895656824111938,
-0.10782812535762787,
0.17647796869277954,
-0.11660598963499069,
-0.208821102976799,
0.028081463649868965,
0.5991232395172119,
-0.3017575740814209,
-0.2441849261522293,
-0.11273015290498734,
-0.0059687793254852295,
-0.26756489276885986,
0.04055308178067207,
0.05637142434716225,
0.01782941445708275,
0.12666237354278564,
0.3407018184661865,
0.028413154184818268,
-0.17613999545574188,
-0.18052110075950623,
-0.04319287836551666,
0.2790890038013458,
-0.29881298542022705,
0.18562564253807068,
0.015285596251487732,
0.28627294301986694,
0.09285406768321991,
-0.11171456426382065,
0.5503315329551697,
0.4608725309371948,
-0.45895254611968994,
-0.06280868500471115,
-0.10846024751663208,
0.11659766733646393,
0.047675780951976776,
0.22005152702331543,
0.029872309416532516,
0.24773773550987244,
0.11281727254390717,
0.002152523025870323,
-0.2931622564792633,
-0.3562096953392029,
-0.010545123368501663,
-0.014918847009539604,
0.1450185477733612,
0.30338871479034424,
-0.03182591497898102,
-0.3631112277507782,
-0.18503382802009583,
0.05891616642475128,
-0.3338308036327362,
0.02913402020931244,
0.1870933622121811,
-0.32777881622314453,
0.1497630476951599,
0.00809808261692524,
0.06801749020814896,
-0.17221857607364655,
0.24307739734649658,
0.17255352437496185,
0.3001837432384491,
-0.21755166351795197,
-0.12573488056659698,
-0.5043822526931763,
0.08435286581516266,
0.08224750310182571,
-0.3333667814731598,
-0.08316271007061005,
0.12165287137031555,
0.10116208344697952,
0.12630334496498108,
0.09696978330612183,
0.290079265832901,
0.07219329476356506,
0.42662370204925537,
-0.40995877981185913,
0.6290713548660278,
-0.17453588545322418,
-0.1619640737771988,
0.14385420083999634,
-0.49803996086120605,
0.42803680896759033,
-0.09210384637117386,
0.10164738446474075,
-0.12121541798114777,
0.25248491764068604,
-0.261358380317688,
0.24895310401916504,
0.3376578092575073,
0.13738387823104858,
0.3791016638278961,
-0.06412868946790695,
0.03806191682815552,
0.08482006937265396,
0.44133201241493225,
-0.23218677937984467,
0.08265060931444168,
0.08332130312919617,
0.18311965465545654,
0.054640986025333405,
0.12475790083408356,
-0.13524365425109863,
0.13767781853675842,
0.046284206211566925,
-0.4186737835407257,
-0.13365235924720764,
-0.03416507691144943,
-0.04554195702075958,
0.25423404574394226,
-0.25903525948524475,
0.24755945801734924,
0.18333406746387482,
-0.044463928788900375,
-0.2448832392692566,
-0.23271116614341736,
0.36621105670928955,
-0.36898884177207947,
-0.2968353033065796,
-0.34291359782218933,
0.15190622210502625,
0.16320562362670898,
0.3504219353199005,
0.033087849617004395,
-0.1743752509355545,
0.395896315574646,
-0.14295342564582825,
-0.5078325271606445,
0.3442975878715515,
-0.05170976743102074,
-0.3934432566165924,
-0.10159465670585632,
0.0064043328166007996,
-0.2152475118637085,
0.04758693277835846,
-0.11895634233951569,
-0.24146635830402374
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Using pre trained HF tokenizer. The result is the same with tokenizer multiprocessing off and on.
I have (absolutely) no idea about the distribution, but since this issue occurs on all of my datasets(regardless of files), I don't think distribution is the problems.
I can use up to 16 cores. | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 50 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Using pre trained HF tokenizer. The result is the same with tokenizer multiprocessing off and on.
I have (absolutely) no idea about the distribution, but since this issue occurs on all of my datasets(regardless of files), I don't think distribution is the problems.
I can use up to 16 cores. | [
-0.45069512724876404,
-0.3895404636859894,
-0.0472821444272995,
0.16293156147003174,
0.11493399739265442,
-0.28154870867729187,
0.26568758487701416,
0.2587334215641022,
-0.3923637270927429,
0.18883541226387024,
0.06290773302316666,
0.3718964159488678,
-0.08907052874565125,
-0.21051092445850372,
-0.5482546091079712,
0.23606982827186584,
0.08393265306949615,
-0.0310935378074646,
0.5445748567581177,
-0.11811059713363647,
-0.17544054985046387,
0.17737241089344025,
-0.2817245125770569,
0.05843953415751457,
-0.5508939027786255,
-0.10750386863946915,
0.09916353225708008,
0.2062431275844574,
-0.007959563285112381,
-0.33651623129844666,
-0.6048402190208435,
-0.006239306181669235,
-0.006706368178129196,
0.2380298674106598,
-0.00012088942457921803,
-0.026188038289546967,
-0.05014452338218689,
0.3045715391635895,
0.17736247181892395,
0.17577314376831055,
0.508766233921051,
-0.26773086190223694,
-0.2065649777650833,
-0.08143671602010727,
0.0717618390917778,
-0.17324167490005493,
0.1646708995103836,
0.110872283577919,
0.3598261773586273,
0.3113967478275299,
0.12591446936130524,
0.3464173376560211,
-0.26953116059303284,
0.16747602820396423,
-0.3548646867275238,
0.19097787141799927,
0.012733260169625282,
-0.1612083464860916,
0.10269816219806671,
0.14042815566062927,
-0.0731382891535759,
0.11146621406078339,
-0.2069513350725174,
0.011268175207078457,
0.11816711723804474,
-0.0765310674905777,
0.33405601978302,
-0.5317919254302979,
0.31092318892478943,
0.15555045008659363,
-0.13046494126319885,
0.2259661853313446,
-0.04477602243423462,
-0.22712451219558716,
-0.11731813848018646,
-0.40690308809280396,
-0.06592991203069687,
0.15366536378860474,
-0.2233644723892212,
-0.24925723671913147,
-0.28708958625793457,
0.20720835030078888,
0.12205854058265686,
-0.1853981465101242,
-0.16084246337413788,
0.17842504382133484,
0.21931470930576324,
0.18783771991729736,
0.0917404294013977,
-0.07948008924722672,
-0.34644702076911926,
-0.1899963915348053,
0.09325748682022095,
0.1641354262828827,
-0.26483961939811707,
0.08634959161281586,
0.016288716346025467,
-0.22845500707626343,
-0.17901954054832458,
-0.04983047395944595,
-0.4908623993396759,
0.5438273549079895,
-0.03794880583882332,
0.11003895103931427,
-0.05408183112740517,
-0.050731878727674484,
0.07112941890954971,
0.1073799803853035,
0.31452298164367676,
-0.03703893721103668,
-0.27041205763816833,
0.06065162271261215,
-0.18885710835456848,
-0.21573758125305176,
0.15919974446296692,
-0.11826527863740921,
-0.41017550230026245,
-0.07127991318702698,
-0.34431809186935425,
-0.04211467131972313,
0.06168878823518753,
0.2465011328458786,
0.1357422024011612,
0.27843719720840454,
0.11647074669599533,
0.607964038848877,
-0.29855257272720337,
-0.11464713513851166,
-0.4788651764392853,
0.030869774520397186,
-0.06569643318653107,
-0.09831583499908447,
-0.15332716703414917,
0.1412201225757599,
-0.058074794709682465,
0.09280917048454285,
-0.04242604970932007,
0.13744673132896423,
0.22280284762382507,
-0.05661676824092865,
0.14325490593910217,
-0.3872431516647339,
0.13442018628120422,
0.19697540998458862,
-0.0905412808060646,
0.3274354040622711,
0.007517706602811813,
-0.16623854637145996,
-0.36502474546432495,
0.19218531250953674,
-0.5542648434638977,
-0.1544521152973175,
-0.11722132563591003,
0.03001481667160988,
-0.02569393441081047,
0.33211079239845276,
-0.1265888214111328,
0.06592657417058945,
0.060163550078868866,
-0.006712649017572403,
-0.15191686153411865,
-0.41983872652053833,
-0.5100104808807373,
-0.13090774416923523,
0.035438068211078644,
0.22847327589988708,
0.007689166814088821,
-0.0061620548367500305,
0.4147745966911316,
0.18958942592144012,
0.6329803466796875,
0.6403685212135315,
0.0365302637219429,
0.0456746444106102,
-0.20620791614055634,
0.4334467053413391,
0.007863730192184448,
-0.13665732741355896,
-0.39772698283195496,
0.27659422159194946,
-0.24921299517154694,
-0.2269994020462036,
0.12424582242965698,
0.08392225950956345,
0.27454009652137756,
-0.06252703815698624,
0.1646549105644226,
0.060877542942762375,
0.13746410608291626,
0.3524215519428253,
-0.3490796983242035,
0.003846423700451851,
-0.01854477822780609,
0.0742788165807724,
-0.0408971942961216,
-0.1899460256099701,
-0.039868734776973724,
-0.22908420860767365,
0.027723178267478943,
-0.10958389937877655,
0.008846880868077278,
0.21466811001300812,
0.11137925088405609,
-0.1869172602891922,
0.04248422756791115,
0.14804700016975403,
0.2814905643463135,
0.3698042631149292,
-0.2152000069618225,
0.25990918278694153,
-0.08251988887786865,
-0.029724938794970512,
0.28065216541290283,
0.12981072068214417,
-0.11571867763996124,
-0.2477760910987854,
-0.0031919237226247787,
-0.11682882905006409,
-0.2420947551727295,
0.09018169343471527,
0.06703588366508484,
0.3922370970249176,
0.10274709761142731,
-0.018981553614139557,
0.2864280343055725,
-0.07893338054418564,
-0.10342065244913101,
-0.27460378408432007,
-0.21790266036987305,
-0.004062756896018982,
0.35987618565559387,
0.020688161253929138,
-0.020982427522540092,
0.15387538075447083,
0.2979910373687744,
-0.10212074220180511,
-0.2200792133808136,
0.10737905651330948,
0.3305099308490753,
0.06490345299243927,
0.17376631498336792,
-0.1327226758003235,
-0.129659041762352,
-0.14728274941444397,
0.25852757692337036,
0.48646074533462524,
0.23301149904727936,
0.29209086298942566,
0.16354477405548096,
-0.03659786283969879,
0.0878181904554367,
0.1875588446855545,
0.4652344286441803,
0.10401637852191925,
0.19912175834178925,
0.6450464725494385,
0.17372621595859528,
0.22684718668460846,
-0.10093677788972855,
0.42203518748283386,
0.37509867548942566,
0.03835858777165413,
-0.23536330461502075,
0.3845767378807068,
-0.141310453414917,
-0.09572278708219528,
0.30674606561660767,
-0.50214684009552,
0.254431813955307,
0.08909770846366882,
-0.02212320640683174,
-0.014840448275208473,
-0.24618133902549744,
-0.025779645889997482,
-0.04386579245328903,
0.13689546287059784,
0.15698164701461792,
0.18070107698440552,
0.15680257976055145,
0.2176474630832672,
-0.30138733983039856,
-0.3200892508029938,
0.13135482370853424,
0.28900858759880066,
-0.17998018860816956,
0.09865639358758926,
-0.23438653349876404,
0.5450380444526672,
0.02905925363302231,
0.18980178236961365,
-0.20358668267726898,
-0.32128503918647766,
0.13697756826877594,
0.32577279210090637,
0.23752674460411072,
0.022905614227056503,
-0.011099673807621002,
0.0008426457643508911,
0.09584777057170868,
0.012094037607312202,
-0.10023277997970581,
0.07725323736667633,
-0.406046986579895,
-0.10352291166782379,
0.4133104979991913,
-0.02001882903277874,
0.15610875189304352,
0.021508654579520226,
-0.1393606960773468,
-0.13924013078212738,
-0.38561707735061646,
0.02948424220085144,
0.06737060844898224,
0.042911596596241,
-0.057167619466781616,
-0.019459180533885956,
-0.24998080730438232,
-0.021731659770011902,
0.2867523431777954,
-0.3686539828777313,
-0.1650758981704712,
0.12570643424987793,
-0.2890631854534149,
-0.38875043392181396,
-0.004057757556438446,
0.3380644619464874,
-0.26908165216445923,
0.01694273203611374,
0.07698014378547668,
0.036295074969530106,
0.3447988033294678,
-0.06099141389131546,
-0.014745065942406654,
0.07604540139436722,
0.21775956451892853,
-0.1731930524110794,
-0.04938500374555588,
-0.1005869060754776,
0.2364502102136612,
-0.006587579380720854,
-0.18477198481559753,
-0.16878660023212433,
0.05334668606519699,
-0.05925283208489418,
0.1908751279115677,
-0.09321153163909912,
-0.0675300732254982,
-0.2792489528656006,
0.5511073470115662,
-0.22005906701087952,
-0.13584308326244354,
0.3535015285015106,
0.21898506581783295,
-0.20786066353321075,
0.17708957195281982,
-0.05373848229646683,
0.10267574340105057,
-0.2086275815963745,
-0.07960810512304306,
-0.022160474210977554,
0.17777839303016663,
0.2634583115577698,
0.6565592885017395,
0.16943757236003876,
-0.554648756980896,
0.4604192078113556,
-0.15751491487026215,
-0.16103583574295044,
0.03290509805083275,
-0.04120750352740288,
0.3707010746002197,
0.10707621276378632,
0.0640254095196724,
0.21230407059192657,
0.045025646686553955,
-0.36827632784843445,
0.17853301763534546,
0.15157468616962433,
-0.08369909971952438,
-0.10603673756122589,
0.12393368780612946,
0.09611985832452774,
0.12625883519649506,
-0.14473509788513184,
0.05626673251390457,
-0.30138811469078064,
-0.21971088647842407,
-0.03547358140349388,
0.0004954859614372253,
0.003948114812374115,
-0.42131248116493225,
-0.5623944401741028,
-0.08087357133626938,
-0.664881706237793,
0.39262300729751587,
0.2515886723995209,
0.30319422483444214,
0.04636986181139946,
0.04596567153930664,
0.2508894205093384,
-0.3131650686264038,
0.7168611884117126,
0.09743502736091614,
-0.09890089929103851,
0.19963274896144867,
-0.3248123824596405,
-0.42532578110694885,
-0.08933677524328232,
0.10861104726791382,
0.3160225450992584,
0.2753645181655884,
0.9014765620231628,
-0.04134290665388107,
-0.4147050678730011,
-0.2874906063079834,
-0.19018135964870453,
0.049688469618558884,
-0.1471249759197235,
-0.1574975550174713,
-0.2463567554950714,
-0.19564785063266754,
0.26433098316192627,
0.01144934631884098,
0.25821423530578613,
-0.2203468531370163,
-0.24665799736976624,
-0.061791762709617615,
-0.09872616082429886,
0.3484375476837158,
-0.01702309399843216,
0.15590974688529968,
0.016718359664082527,
0.11871382594108582,
0.16371823847293854,
0.17304298281669617,
0.23859339952468872,
-0.2919008433818817,
0.2931390106678009,
-0.18073943257331848,
0.13434022665023804,
0.13936440646648407,
0.01682736724615097,
0.45435693860054016,
0.045916326344013214,
0.12907178699970245,
-0.4070781171321869,
0.6302619576454163,
0.049067553132772446,
0.3861461877822876,
0.1993938833475113,
0.337149053812027,
-0.3774443566799164,
0.30040162801742554,
-0.029604025185108185,
0.28437310457229614,
-0.04927850142121315,
0.10184601694345474,
-0.4722973704338074,
0.12413296848535538,
0.0038176514208316803,
0.5101216435432434,
0.9462088346481323,
-0.3860384225845337,
0.15066465735435486,
-0.27427729964256287,
-0.017201904207468033,
0.16399061679840088,
-0.46860969066619873,
0.10104437172412872,
-0.45574629306793213,
-0.3033406138420105,
0.008600367233157158,
-0.07561686635017395,
0.33856987953186035,
0.19636309146881104,
0.2635623514652252,
0.1289665400981903,
0.14500296115875244,
0.15474198758602142,
-0.03221912682056427,
0.36460793018341064,
0.2569505572319031,
-0.3616516888141632,
0.20991173386573792,
0.08650820702314377,
0.10231627523899078,
-0.0712677538394928,
0.1038283035159111,
0.01861908659338951,
-0.1536654531955719,
0.048324987292289734,
-0.13981875777244568,
-0.08893787860870361,
-0.3795027434825897,
0.3293952941894531,
0.29404354095458984,
0.25405657291412354,
-0.012970579788088799,
0.2836940288543701,
0.11308398842811584,
0.02578754536807537,
-0.025923414155840874,
0.24132481217384338,
0.2427597939968109,
0.028598615899682045,
0.2847897708415985,
-0.42565903067588806,
0.07922971248626709,
-0.208263099193573,
-0.07657238841056824,
-0.13138940930366516,
-0.019126523286104202,
-0.03958948701620102,
-0.2956016957759857,
0.048102423548698425,
0.4833642244338989,
0.39676401019096375,
0.03772860765457153,
-0.06517763435840607,
-0.25902312994003296,
-0.14063045382499695,
0.01911476068198681,
-0.07555963099002838,
-0.16976454854011536,
0.398997962474823,
-0.15966778993606567,
-0.2789798974990845,
0.05494735762476921,
0.31908613443374634,
-0.175825297832489,
-0.04769296199083328,
0.29040202498435974,
-0.2413254827260971,
-0.2966601252555847,
-0.07821512967348099,
0.22106188535690308,
-0.19759368896484375,
0.022477775812149048,
-0.08514175564050674,
0.03153140842914581,
-0.31253233551979065,
0.17565327882766724,
-0.026385191828012466,
-0.16827350854873657,
-0.11906161159276962,
-0.1653357744216919,
-0.17141622304916382,
-0.5735750794410706,
-0.47566449642181396,
-0.42860832810401917,
-0.027644556015729904,
0.02560613304376602,
0.09153738617897034,
-0.2318776249885559,
0.0014342498034238815,
-0.2034560889005661,
-0.004084649495780468,
-0.2192680388689041,
0.22260786592960358,
-0.3501395583152771,
-0.28449252247810364,
-0.1789335012435913,
-0.039442479610443115,
0.13476316630840302,
0.4382522702217102,
-0.11854808032512665,
-0.16472724080085754,
-0.1132148802280426,
0.18717516958713531,
0.09964468330144882,
-0.4745822846889496,
0.16567625105381012,
0.25032490491867065,
-0.42422062158584595,
-0.2861303985118866,
0.04382562264800072,
0.07101137191057205,
-0.22039704024791718,
-0.27853381633758545,
0.4803013503551483,
0.04637739434838295,
0.1537209153175354,
0.21633380651474,
0.037379857152700424,
0.3629666566848755,
0.1119823157787323,
0.19452543556690216,
0.03041948191821575,
-0.05731601268053055,
-0.08808431029319763,
0.02035607397556305,
0.39671677350997925,
-0.08618973940610886,
0.08648610860109329,
-0.1419195681810379,
-0.173375204205513,
0.09060799330472946,
0.06664260476827621,
0.14094425737857819,
-0.08792643249034882,
-0.4116288423538208,
0.5136473178863525,
0.07845272123813629,
-0.14988690614700317,
-0.2812042236328125,
0.26997503638267517,
-0.09631019085645676,
-0.03262021020054817,
0.024041689932346344,
0.421164333820343,
0.07769273221492767,
-0.032128557562828064,
0.07395733892917633,
0.272071897983551,
-0.531778872013092,
-0.2952340245246887,
-0.1408231556415558,
0.07017061114311218,
0.168483167886734,
0.412798136472702,
-0.14482879638671875,
-0.05421058088541031,
0.2911913990974426,
0.05993829667568207,
0.5728493332862854,
0.17035946249961853,
0.41894447803497314,
-0.12044153362512589,
-0.20074734091758728,
-0.24468471109867096,
0.38750046491622925,
-0.021160617470741272,
0.22978460788726807,
-0.1253003031015396,
0.1403178870677948,
-0.16625018417835236,
-0.4690260589122772,
-0.05899754911661148,
0.6085990071296692,
-0.37073951959609985,
-0.24142390489578247,
-0.04724752902984619,
0.030761420726776123,
-0.19743840396404266,
0.1610168218612671,
-0.011226825416088104,
0.060700178146362305,
0.17065739631652832,
0.39103013277053833,
-0.11837306618690491,
-0.088675856590271,
-0.3024645745754242,
0.0086972676217556,
0.3411857783794403,
-0.12345898151397705,
0.14053547382354736,
-0.14753298461437225,
0.1245083212852478,
0.03214588761329651,
-0.1595972627401352,
0.6055917739868164,
0.5521277189254761,
-0.34117040038108826,
-0.11877172440290451,
-0.13530850410461426,
0.19682356715202332,
0.052787937223911285,
0.1682766228914261,
-0.11120375990867615,
0.12521839141845703,
-0.0026615867391228676,
-0.12134119868278503,
-0.22438566386699677,
-0.49749428033828735,
-0.07655885815620422,
0.16288401186466217,
0.24054652452468872,
0.3049079179763794,
-0.04927586764097214,
-0.2310686707496643,
-0.028005346655845642,
0.16744081676006317,
0.009861722588539124,
0.06967590749263763,
0.22458848357200623,
-0.24603304266929626,
0.15211021900177002,
0.0025107604451477528,
0.0438818633556366,
-0.1660664975643158,
0.24787591397762299,
0.03876795619726181,
0.11368168890476227,
-0.24556860327720642,
-0.05063625052571297,
-0.5876190066337585,
0.18192772567272186,
0.11531668901443481,
-0.12369807064533234,
0.07070545852184296,
0.024534499272704124,
0.019818037748336792,
-0.08728770166635513,
0.12677781283855438,
0.2281825989484787,
0.2938816547393799,
0.46105608344078064,
-0.41858136653900146,
0.6147735714912415,
-0.22207899391651154,
-0.16897034645080566,
0.08847498893737793,
-0.4843536913394928,
0.5632545351982117,
-0.03184807673096657,
0.04879513382911682,
0.009940006770193577,
0.14356961846351624,
-0.2666412591934204,
0.36951857805252075,
0.44439059495925903,
0.1392313539981842,
0.3444242477416992,
-0.0397045873105526,
0.012215277180075645,
0.08981847018003464,
0.5262337923049927,
-0.22024746239185333,
-0.1035795584321022,
-0.0771508663892746,
0.10547249019145966,
0.09775673598051071,
0.14413413405418396,
-0.19947373867034912,
-0.029877161607146263,
0.1257626712322235,
-0.33719685673713684,
-0.25274941325187683,
0.09939809888601303,
-0.09425906836986542,
0.37212803959846497,
-0.15031595528125763,
0.324028879404068,
0.24235428869724274,
-0.05491657555103302,
-0.3557983636856079,
-0.163371279835701,
0.38203930854797363,
-0.413345068693161,
-0.1988786906003952,
-0.3727404773235321,
0.21037405729293823,
-0.025550000369548798,
0.2667753994464874,
0.19617220759391785,
-0.2702804207801819,
0.27861446142196655,
-0.06688158959150314,
-0.5310513377189636,
0.289826899766922,
-0.20480167865753174,
-0.2587740421295166,
-0.16066163778305054,
-0.031739696860313416,
-0.18403291702270508,
-0.08877279609441757,
-0.011560633778572083,
-0.02377883531153202
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Ok weird, I don't manage to reproduce this issue on my side.
Does it happen even with `num_proc=2` for example ?
Also could you provide more details about your OS and the versions of tokenizers/datasets/multiprocess that you're using ? | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 39 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Ok weird, I don't manage to reproduce this issue on my side.
Does it happen even with `num_proc=2` for example ?
Also could you provide more details about your OS and the versions of tokenizers/datasets/multiprocess that you're using ? | [
-0.449924111366272,
-0.3384658396244049,
-0.08818300068378448,
0.15539199113845825,
0.08865971118211746,
-0.30338355898857117,
0.2761159837245941,
0.24882666766643524,
-0.414507657289505,
0.15615442395210266,
0.21321773529052734,
0.3615124821662903,
-0.22451502084732056,
-0.10623250156641006,
-0.5425730347633362,
0.20700763165950775,
0.06488209217786789,
0.028432071208953857,
0.4975792169570923,
0.033927783370018005,
-0.20338557660579681,
0.1207495778799057,
-0.37362730503082275,
0.02475026622414589,
-0.5798373222351074,
-0.14546248316764832,
0.11425134539604187,
0.12211272865533829,
-0.11545342952013016,
-0.3299303948879242,
-0.6470972895622253,
-0.07660777866840363,
-0.03188462555408478,
0.3341842293739319,
-0.0001155861682491377,
-0.04633866250514984,
0.10905754566192627,
0.34091731905937195,
0.05988829955458641,
0.05778929591178894,
0.3721916675567627,
-0.35622352361679077,
-0.16808199882507324,
-0.13386178016662598,
0.06594159454107285,
-0.14266180992126465,
0.1589430719614029,
0.03228112310171127,
0.3406347334384918,
0.40265581011772156,
0.19114960730075836,
0.3179589509963989,
-0.27087894082069397,
0.25435107946395874,
-0.21345999836921692,
0.16846410930156708,
-0.039552077651023865,
-0.26264941692352295,
0.1379917711019516,
0.23329825699329376,
0.07556788623332977,
0.17135334014892578,
-0.2536710202693939,
-0.17969399690628052,
0.0796080008149147,
-0.07373886555433273,
0.3969675600528717,
-0.5955145359039307,
0.33382275700569153,
0.06884821504354477,
-0.04980311542749405,
0.20842638611793518,
-0.12262717634439468,
-0.24462860822677612,
-0.11941315233707428,
-0.3561381995677948,
-0.0315733477473259,
0.11775373667478561,
-0.14593103528022766,
-0.1997266411781311,
-0.41441255807876587,
0.17332221567630768,
0.09277881681919098,
-0.078010693192482,
-0.23131150007247925,
0.1342221349477768,
0.18728695809841156,
0.1875694990158081,
0.037424683570861816,
-0.2165006548166275,
-0.29470571875572205,
-0.23386254906654358,
0.04645823314785957,
0.25332000851631165,
-0.23093433678150177,
0.06602330505847931,
0.015279315412044525,
-0.13036632537841797,
-0.20163077116012573,
0.06675688922405243,
-0.4654317796230316,
0.48758479952812195,
0.032773714512586594,
0.14346887171268463,
-0.11149592697620392,
0.028573278337717056,
0.17092756927013397,
0.1275353878736496,
0.3001181185245514,
-0.25430887937545776,
-0.2343519628047943,
0.00018011778593063354,
-0.1543804556131363,
-0.18218351900577545,
0.21542805433273315,
-0.06125806272029877,
-0.26821911334991455,
-0.02334098145365715,
-0.33083516359329224,
-0.011548067443072796,
0.08733519166707993,
0.26196545362472534,
0.299667626619339,
0.20028893649578094,
0.062258291989564896,
0.5214753746986389,
-0.25567612051963806,
-0.12158481776714325,
-0.45947524905204773,
0.11334818601608276,
-0.08156369626522064,
-0.1647178828716278,
-0.18655189871788025,
0.13785149157047272,
-0.06131216883659363,
0.1771659553050995,
-0.0054517947137355804,
0.025357984006404877,
0.11040454357862473,
0.025289736688137054,
0.18232376873493195,
-0.32231494784355164,
0.11473676562309265,
0.20227721333503723,
-0.0671100914478302,
0.3035328686237335,
-0.10294541716575623,
-0.1617826521396637,
-0.3697650730609894,
0.23814129829406738,
-0.5384537577629089,
-0.1524568349123001,
-0.15894903242588043,
0.0934765636920929,
-0.12793104350566864,
0.2658379077911377,
-0.20425739884376526,
0.06476235389709473,
0.08311837911605835,
-0.018491551280021667,
-0.16792693734169006,
-0.3296152949333191,
-0.5520941615104675,
-0.13295619189739227,
-0.027499007061123848,
0.1706846058368683,
0.06219371035695076,
-0.006491620093584061,
0.4061867296695709,
0.13750579953193665,
0.5677408576011658,
0.4764062762260437,
0.08073671907186508,
-0.0067319124937057495,
-0.18962964415550232,
0.49758380651474,
0.1461082398891449,
-0.08475162088871002,
-0.39200079441070557,
0.22476699948310852,
-0.34356003999710083,
-0.25913888216018677,
0.14435146749019623,
0.19340239465236664,
0.2961147725582123,
-0.08136370778083801,
0.18916209042072296,
0.1684509962797165,
0.17066590487957,
0.42361482977867126,
-0.344726026058197,
0.11502005159854889,
0.05402909219264984,
0.05106820538640022,
-0.1712333709001541,
-0.20770147442817688,
-0.1022622361779213,
-0.20737974345684052,
-0.07551855593919754,
-0.14662331342697144,
0.06731807440519333,
0.21432025730609894,
0.09448438882827759,
-0.19333837926387787,
0.07487544417381287,
0.029965844005346298,
0.1912516951560974,
0.3252851366996765,
-0.10103324055671692,
0.18610994517803192,
-0.13362297415733337,
-0.034463733434677124,
0.25967341661453247,
0.12676456570625305,
-0.1248527467250824,
-0.14666469395160675,
0.05866432189941406,
-0.18721747398376465,
-0.20349322259426117,
0.1582445204257965,
0.12608492374420166,
0.36442792415618896,
0.0801936686038971,
-0.058321088552474976,
0.24551072716712952,
-0.09911800175905228,
-0.11419107764959335,
-0.2937937378883362,
-0.19320353865623474,
0.002608746290206909,
0.3814735412597656,
0.012568830512464046,
-0.02529120072722435,
0.2470206916332245,
0.38133466243743896,
0.020500458776950836,
-0.23372411727905273,
0.105513796210289,
0.4118444323539734,
0.06030299887061119,
0.20260359346866608,
-0.09500546753406525,
-0.08629739284515381,
-0.177508145570755,
0.2709072232246399,
0.5127890110015869,
0.20945745706558228,
0.29035165905952454,
0.14326037466526031,
0.055451638996601105,
0.06882276386022568,
0.1647234559059143,
0.24258214235305786,
0.021635502576828003,
0.17358887195587158,
0.6222240924835205,
0.2241014987230301,
0.2362850457429886,
-0.01522885262966156,
0.3324322998523712,
0.31394702196121216,
0.001789037138223648,
-0.1696561574935913,
0.31114640831947327,
-0.1845458447933197,
-0.05762976408004761,
0.2842712998390198,
-0.4943205416202545,
0.23539705574512482,
0.2080537974834442,
-0.023512866348028183,
-0.02084796316921711,
-0.19962197542190552,
-0.07817357778549194,
0.08614508807659149,
0.17543461918830872,
0.14295734465122223,
0.0968637615442276,
0.2540302872657776,
0.15785834193229675,
-0.2692854404449463,
-0.25317642092704773,
0.08845633268356323,
0.3354819715023041,
-0.10190814733505249,
0.1001662015914917,
-0.16875480115413666,
0.4012044072151184,
0.07151725888252258,
0.09443219751119614,
-0.17411723732948303,
-0.3171321749687195,
0.13049277663230896,
0.2831195294857025,
0.15857680141925812,
0.12466000020503998,
-0.0297834612429142,
0.0024000704288482666,
0.19020067155361176,
0.06686373054981232,
-0.08295691758394241,
0.020243152976036072,
-0.3556154668331146,
-0.0494643859565258,
0.438998281955719,
-0.016215918585658073,
0.2940424978733063,
-0.009238495491445065,
0.003873612731695175,
-0.2317298799753189,
-0.45568400621414185,
0.0031741484999656677,
0.04139211028814316,
0.025513309985399246,
-0.06809158623218536,
-0.062108635902404785,
-0.23589864373207092,
0.019418995827436447,
0.248058021068573,
-0.35834217071533203,
-0.21802619099617004,
0.10979035496711731,
-0.22621580958366394,
-0.3725877106189728,
-0.06869415193796158,
0.33645614981651306,
-0.21028409898281097,
0.07575087249279022,
0.14487552642822266,
0.06601989269256592,
0.374214768409729,
-0.008504592813551426,
0.1516018658876419,
0.12918570637702942,
0.26164761185646057,
-0.11561042070388794,
-0.0668545588850975,
-0.0575701929628849,
0.258634477853775,
-0.026219366118311882,
-0.1741725653409958,
-0.10988500714302063,
0.08475377410650253,
-0.1114988774061203,
0.23651419579982758,
-0.007567901164293289,
-0.20555393397808075,
-0.3503775894641876,
0.47977620363235474,
-0.1803675889968872,
-0.156106635928154,
0.3318634331226349,
0.22200323641300201,
-0.23123478889465332,
0.19339749217033386,
-0.0816727727651596,
-0.05344071239233017,
-0.24165508151054382,
-0.05835086852312088,
-0.015322428196668625,
0.16318514943122864,
0.2545318603515625,
0.5217764377593994,
0.12709659337997437,
-0.5550821423530579,
0.2751227617263794,
-0.24123665690422058,
-0.15874338150024414,
0.03877955675125122,
-0.11545802652835846,
0.3504103720188141,
0.21305203437805176,
0.0414603129029274,
0.17166581749916077,
0.08920373767614365,
-0.46743226051330566,
0.09821130335330963,
0.09064894914627075,
-0.14677202701568604,
-0.11138835549354553,
0.017667189240455627,
-0.028059497475624084,
0.09488586336374283,
-0.16024668514728546,
0.05418926477432251,
-0.3582010567188263,
-0.18007737398147583,
-0.1543656289577484,
-0.029882296919822693,
0.021204493939876556,
-0.4966042637825012,
-0.6432381868362427,
-0.031576573848724365,
-0.7037485837936401,
0.4059978723526001,
0.2911791503429413,
0.23199722170829773,
0.15315084159374237,
-0.034088823944330215,
0.22592833638191223,
-0.24682565033435822,
0.7638768553733826,
0.027859823778271675,
-0.14180369675159454,
0.16730643808841705,
-0.21365512907505035,
-0.5546608567237854,
-0.03837328776717186,
0.17847231030464172,
0.3922828435897827,
0.3510376214981079,
0.9344832897186279,
0.017038121819496155,
-0.3225589990615845,
-0.2903118431568146,
-0.14009973406791687,
0.08642701804637909,
-0.14788274466991425,
-0.2009088099002838,
-0.17708387970924377,
-0.19912438094615936,
0.2782626450061798,
-0.020046047866344452,
0.2604208290576935,
-0.11953261494636536,
-0.36687809228897095,
-0.15750302374362946,
-0.11593746393918991,
0.2841866612434387,
-0.0570017471909523,
0.2025182545185089,
-0.09139202535152435,
0.18104960024356842,
0.15770186483860016,
0.20298710465431213,
0.20232468843460083,
-0.29835861921310425,
0.2804028391838074,
-0.17432159185409546,
0.10976547747850418,
0.16407260298728943,
0.06766166538000107,
0.3864970803260803,
0.03131391853094101,
0.0984010100364685,
-0.4779437780380249,
0.5437563061714172,
0.07036546617746353,
0.44886112213134766,
0.1909617781639099,
0.3199559152126312,
-0.3200169503688812,
0.27054065465927124,
-0.011882752180099487,
0.36819222569465637,
-0.013044372200965881,
0.060340359807014465,
-0.45940154790878296,
0.002053575124591589,
-0.013288388028740883,
0.4890935719013214,
0.9400267004966736,
-0.30607831478118896,
0.21337561309337616,
-0.19315055012702942,
-0.018486112356185913,
0.11136792600154877,
-0.28145670890808105,
0.04064898565411568,
-0.43894755840301514,
-0.12585851550102234,
0.04153243452310562,
-0.09118419885635376,
0.2763584554195404,
0.07520569860935211,
0.15299692749977112,
0.02365722320973873,
0.1620558202266693,
0.21832333505153656,
-0.09041120857000351,
0.3808494508266449,
0.18069802224636078,
-0.3440166711807251,
0.19244658946990967,
0.14945484697818756,
0.1738915890455246,
-0.11925701797008514,
0.1402197778224945,
0.007836324162781239,
-0.16018548607826233,
0.018657173961400986,
-0.13365018367767334,
-0.10673347860574722,
-0.3419565260410309,
0.3004211187362671,
0.22680015861988068,
0.12188191711902618,
-0.16035471856594086,
0.39386293292045593,
0.018671348690986633,
0.155283123254776,
-0.0950714647769928,
0.2904052734375,
0.18185096979141235,
0.05603555217385292,
0.188955157995224,
-0.4750977158546448,
-0.010614404454827309,
-0.2037193775177002,
0.010418154299259186,
-0.054343923926353455,
0.025680046528577805,
0.06240590661764145,
-0.27891480922698975,
0.08110267668962479,
0.48075181245803833,
0.35188227891921997,
-0.061479244381189346,
-0.0926857590675354,
-0.284900963306427,
-0.15500254929065704,
0.09230847656726837,
-0.09175504744052887,
-0.11461230367422104,
0.3365735709667206,
-0.09942920506000519,
-0.31270185112953186,
0.0610961951315403,
0.34792831540107727,
-0.12254006415605545,
-0.11905962228775024,
0.3216858208179474,
-0.2689370810985565,
-0.2803427577018738,
-0.125252366065979,
0.2756994366645813,
-0.29102036356925964,
0.04518703371286392,
-0.07331187278032303,
0.15233880281448364,
-0.2231270670890808,
0.1914176344871521,
-0.06892561912536621,
-0.22401265799999237,
-0.06585998088121414,
-0.1013903096318245,
-0.11308114230632782,
-0.5481937527656555,
-0.4265356659889221,
-0.3993569612503052,
0.03976854681968689,
-0.08143822848796844,
0.05880965664982796,
-0.2969699203968048,
-0.15747611224651337,
-0.25817641615867615,
0.0441184863448143,
-0.2127569317817688,
0.2459951639175415,
-0.22137980163097382,
-0.25839486718177795,
-0.2013223022222519,
-0.08697912096977234,
0.19617824256420135,
0.35869526863098145,
-0.10277456790208817,
-0.22565039992332458,
-0.048255063593387604,
0.141933411359787,
0.14895470440387726,
-0.5315024256706238,
0.149679034948349,
0.28438764810562134,
-0.40867000818252563,
-0.31680795550346375,
0.019023869186639786,
0.18790480494499207,
-0.2728008031845093,
-0.30824780464172363,
0.3944229483604431,
0.10010915994644165,
0.22893472015857697,
0.16608978807926178,
-0.0942244678735733,
0.3499564528465271,
0.07231923192739487,
0.21499644219875336,
0.040282733738422394,
-0.023630015552043915,
0.07835608720779419,
0.015448279678821564,
0.39583349227905273,
-0.045042477548122406,
0.058857519179582596,
-0.11912645399570465,
-0.14413146674633026,
0.17184270918369293,
-0.03243618831038475,
0.12433820962905884,
-0.12953899800777435,
-0.36588314175605774,
0.470815509557724,
0.16852016746997833,
-0.07647523283958435,
-0.21410270035266876,
0.3278600573539734,
-0.15246906876564026,
0.0193350650370121,
0.018317706882953644,
0.28887757658958435,
0.14241339266300201,
-0.0052003636956214905,
0.09098096936941147,
0.21070179343223572,
-0.47353410720825195,
-0.2761487066745758,
-0.180295929312706,
0.05964377894997597,
0.037693656980991364,
0.4591519832611084,
-0.10189332067966461,
-0.032446570694446564,
0.3655961751937866,
-0.030257903039455414,
0.5474575757980347,
0.17477285861968994,
0.4053163528442383,
-0.17855745553970337,
-0.034322526305913925,
-0.29343289136886597,
0.3591296970844269,
-0.05438198149204254,
0.22300758957862854,
-0.04986560344696045,
0.11069363355636597,
-0.11330030858516693,
-0.3018490970134735,
-0.0353640615940094,
0.6377310156822205,
-0.3508571684360504,
-0.2562389075756073,
-0.11697274446487427,
0.0019786804914474487,
-0.1625102162361145,
0.12446644902229309,
-0.03681349381804466,
0.07183100283145905,
0.012783177196979523,
0.35275572538375854,
-0.12326981127262115,
-0.09898354858160019,
-0.2599741518497467,
0.07059328258037567,
0.26370370388031006,
-0.11590099334716797,
0.1439363807439804,
-0.24779514968395233,
0.19883543252944946,
0.05083712935447693,
-0.060223206877708435,
0.6009976863861084,
0.6137850284576416,
-0.4024629592895508,
-0.09451942890882492,
-0.05732642486691475,
0.0654841959476471,
0.042819928377866745,
0.29757821559906006,
-0.10649226605892181,
0.044568970799446106,
0.01931213214993477,
-0.03608237951993942,
-0.2808651328086853,
-0.41032281517982483,
-0.1531270146369934,
-0.005179593339562416,
0.21565835177898407,
0.21162213385105133,
-0.10120351612567902,
-0.2952638864517212,
-0.12312160432338715,
0.17609629034996033,
-0.019273515790700912,
-0.0587596595287323,
0.2348761111497879,
-0.23146085441112518,
0.13486135005950928,
-0.008975736796855927,
0.0745464414358139,
-0.21756958961486816,
0.27548012137413025,
0.1463981568813324,
0.22932294011116028,
-0.22048090398311615,
-0.09337138384580612,
-0.5578266382217407,
0.15208002924919128,
0.08143769949674606,
-0.14843851327896118,
-0.009660854935646057,
0.01276618055999279,
-0.04024430364370346,
0.05634668841958046,
0.148892343044281,
0.30913612246513367,
0.2066033035516739,
0.31679585576057434,
-0.4335675537586212,
0.6727856397628784,
-0.06813311576843262,
-0.2339499294757843,
0.06658893823623657,
-0.5331950783729553,
0.4914659857749939,
-0.09029608964920044,
0.11552167683839798,
-0.05388873815536499,
0.22374743223190308,
-0.37175366282463074,
0.42691344022750854,
0.5173208713531494,
0.14959797263145447,
0.373564213514328,
-0.01006326824426651,
0.06455429643392563,
0.03309008106589317,
0.4389161765575409,
-0.22941140830516815,
-0.15109622478485107,
-0.0262138769030571,
0.005404321476817131,
0.04347772151231766,
0.15804581344127655,
-0.1662987470626831,
0.01850898191332817,
0.16770657896995544,
-0.309985876083374,
-0.17906439304351807,
0.08880606293678284,
-0.09605231881141663,
0.3011552393436432,
-0.3251379132270813,
0.1892915964126587,
0.21223808825016022,
-0.034665994346141815,
-0.291363000869751,
-0.15554963052272797,
0.3699111342430115,
-0.3290710151195526,
-0.1448327749967575,
-0.3039197325706482,
0.19944210350513458,
0.07765141874551773,
0.3248169720172882,
0.1124933585524559,
-0.23035168647766113,
0.3438750207424164,
-0.1254345178604126,
-0.5179364681243896,
0.3420323133468628,
-0.14677540957927704,
-0.24821986258029938,
-0.15748761594295502,
-0.03665255755186081,
-0.17208492755889893,
0.021748920902609825,
-0.003095138818025589,
-0.045370712876319885
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Yes, I can confirm it also happens with ```num_proc=2```.
```
tokenizers 0.9.2
datasets 1.1.2
multiprocess 0.70.10
```
```
Linux nipa2020-0629 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
``` | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 34 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Yes, I can confirm it also happens with ```num_proc=2```.
```
tokenizers 0.9.2
datasets 1.1.2
multiprocess 0.70.10
```
```
Linux nipa2020-0629 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
``` | [
-0.4147123694419861,
-0.2900133728981018,
-0.14023898541927338,
0.17759330570697784,
0.08560395240783691,
-0.30987632274627686,
0.3165898323059082,
0.2695380449295044,
-0.4015321731567383,
0.1938362717628479,
0.1718183159828186,
0.44014525413513184,
-0.1775083690881729,
-0.17341388761997223,
-0.4684062898159027,
0.19723480939865112,
0.04768888279795647,
0.01902668923139572,
0.47510358691215515,
0.053150855004787445,
-0.21641524136066437,
0.24015489220619202,
-0.3768131732940674,
0.026950348168611526,
-0.49608364701271057,
-0.09824294596910477,
0.1989472359418869,
0.1213030070066452,
-0.13916964828968048,
-0.3674750328063965,
-0.6068887114524841,
-0.11219280958175659,
-0.05636760592460632,
0.21197834610939026,
-0.00011639266449492425,
-0.02969493344426155,
0.0646127238869667,
0.27306994795799255,
0.11135818064212799,
0.08839629590511322,
0.3482663929462433,
-0.362775593996048,
-0.20929664373397827,
-0.17849713563919067,
0.07555817067623138,
-0.16975732147693634,
0.16541628539562225,
0.09466022253036499,
0.3169879913330078,
0.3889232873916626,
0.17815792560577393,
0.3117571175098419,
-0.2135268896818161,
0.25940263271331787,
-0.2771313786506653,
0.10196293890476227,
-0.06877142190933228,
-0.21408502757549286,
0.030376814305782318,
0.24990227818489075,
0.04258481413125992,
0.2547703981399536,
-0.2161940634250641,
-0.12625671923160553,
0.015944022685289383,
-0.03368150442838669,
0.3718969225883484,
-0.5546591281890869,
0.2848035395145416,
0.032723620533943176,
-0.12973761558532715,
0.21463733911514282,
-0.06018233299255371,
-0.1541358232498169,
-0.1885579526424408,
-0.3445383608341217,
-0.045315735042095184,
0.12049324065446854,
-0.2108679562807083,
-0.22277894616127014,
-0.3741152882575989,
0.18415488302707672,
0.08402112126350403,
-0.07090769708156586,
-0.18274721503257751,
0.13722729682922363,
0.17991991341114044,
0.24105983972549438,
0.05886628478765488,
-0.22580356895923615,
-0.27316713333129883,
-0.22240018844604492,
0.1319553554058075,
0.21978506445884705,
-0.2365812212228775,
0.036462873220443726,
0.012543778866529465,
-0.1788615584373474,
-0.22658634185791016,
0.061087802052497864,
-0.38487252593040466,
0.4795626103878021,
0.0413384884595871,
0.20883336663246155,
-0.23148345947265625,
-0.009755457751452923,
0.18308624625205994,
0.160227432847023,
0.2368338406085968,
-0.13413916528224945,
-0.1728891134262085,
0.031193887814879417,
-0.11209473758935928,
-0.19605909287929535,
0.2113964706659317,
0.013028169050812721,
-0.23589926958084106,
0.01711421087384224,
-0.3119626045227051,
0.014012180268764496,
0.09054508060216904,
0.1994938850402832,
0.26836779713630676,
0.2375333309173584,
0.11957991123199463,
0.4252532124519348,
-0.2917693257331848,
-0.17541147768497467,
-0.4300307631492615,
0.10398320108652115,
-0.09702621400356293,
-0.1099700927734375,
-0.11935734748840332,
0.06709032505750656,
-0.04760649800300598,
0.218754380941391,
0.015516968443989754,
-0.04476684704422951,
0.15373492240905762,
0.029705747961997986,
0.15373775362968445,
-0.3857293725013733,
0.19108793139457703,
0.2379964292049408,
-0.06038510054349899,
0.27639949321746826,
-0.06954613327980042,
-0.16463595628738403,
-0.3798220455646515,
0.24885183572769165,
-0.4449459910392761,
-0.054531246423721313,
-0.09990082681179047,
0.10634087026119232,
-0.013218824751675129,
0.24200741946697235,
-0.09770215302705765,
0.010309591889381409,
0.15389931201934814,
-0.14592790603637695,
-0.06597783416509628,
-0.2974435091018677,
-0.5686416625976562,
-0.16239582002162933,
-0.012686275877058506,
0.1474444568157196,
0.09666398167610168,
-0.06901178508996964,
0.4687348008155823,
0.13384023308753967,
0.6333216428756714,
0.47596538066864014,
0.0957217887043953,
-0.0273745134472847,
-0.18267129361629486,
0.5199816823005676,
0.20565831661224365,
-0.08900800347328186,
-0.4167574942111969,
0.18607746064662933,
-0.2954646348953247,
-0.3388359248638153,
0.18455065786838531,
0.19259870052337646,
0.27604368329048157,
-0.07360877841711044,
0.15277409553527832,
0.1710788756608963,
0.21810412406921387,
0.38875824213027954,
-0.3401808738708496,
0.04326741397380829,
0.05794524401426315,
0.005266450345516205,
-0.14399097859859467,
-0.2692907750606537,
-0.013655267655849457,
-0.13584133982658386,
-0.11600620299577713,
-0.10867355763912201,
0.07073472440242767,
0.1403699815273285,
0.040512438863515854,
-0.2887227535247803,
0.03577008843421936,
0.03969375789165497,
0.13626402616500854,
0.26750147342681885,
-0.2048282027244568,
0.19922637939453125,
-0.1795545071363449,
-0.05689822882413864,
0.21300917863845825,
0.11057355254888535,
-0.09639033675193787,
-0.22236648201942444,
0.05209845304489136,
-0.14098605513572693,
-0.08063750714063644,
0.12752310931682587,
0.12806637585163116,
0.33404040336608887,
-0.008774939924478531,
-0.014283721335232258,
0.2048286497592926,
-0.060217149555683136,
-0.188298761844635,
-0.27485695481300354,
-0.23191715776920319,
0.01951475441455841,
0.3814215064048767,
-0.07074148207902908,
-0.04616627097129822,
0.2635863721370697,
0.28816261887550354,
0.06828013062477112,
-0.25232362747192383,
0.012111008167266846,
0.39660176634788513,
0.04029582068324089,
0.1687041074037552,
-0.06763619184494019,
-0.024878747761249542,
-0.12055357545614243,
0.2534331977367401,
0.4735647439956665,
0.19113774597644806,
0.29156529903411865,
0.20262257754802704,
-0.006428323686122894,
0.06468261033296585,
0.19919481873512268,
0.2518364489078522,
-0.1087462455034256,
0.06328622996807098,
0.7362868189811707,
0.14806875586509705,
0.24106456339359283,
0.014350548386573792,
0.3129007816314697,
0.41918033361434937,
0.04355644807219505,
-0.1877625584602356,
0.31887730956077576,
-0.14706361293792725,
-0.0989781990647316,
0.29963406920433044,
-0.40214818716049194,
0.21886074542999268,
0.2113528549671173,
0.028401460498571396,
-0.07511909306049347,
-0.16325712203979492,
-0.10460040718317032,
0.1323329508304596,
0.16738218069076538,
0.13912595808506012,
0.16315194964408875,
0.2391718626022339,
0.15988732874393463,
-0.36263346672058105,
-0.21564705669879913,
0.13626740872859955,
0.27453798055648804,
-0.011399287730455399,
0.07179877907037735,
-0.1668403297662735,
0.38416415452957153,
0.10693754255771637,
0.012677417136728764,
-0.0979369729757309,
-0.2654922306537628,
0.10532934218645096,
0.22299803793430328,
0.19267092645168304,
0.15707151591777802,
-0.024304425343871117,
-0.039659008383750916,
0.2687874138355255,
0.054910629987716675,
-0.15276001393795013,
0.11800071597099304,
-0.2908627986907959,
-0.047798365354537964,
0.3717541992664337,
-0.04663331061601639,
0.3291918933391571,
-0.074002206325531,
-0.04973627254366875,
-0.22170867025852203,
-0.44871529936790466,
0.06877259910106659,
0.0453881099820137,
-0.004951462149620056,
-0.03743189573287964,
-0.07631926238536835,
-0.2055063247680664,
0.03157360851764679,
0.23388823866844177,
-0.30885881185531616,
-0.2734469175338745,
0.014382462948560715,
-0.1928640455007553,
-0.29599466919898987,
-0.09090755879878998,
0.28178560733795166,
-0.2543788552284241,
-0.010355755686759949,
0.08631932735443115,
0.14000816643238068,
0.47905999422073364,
0.013249741867184639,
0.0994250625371933,
0.11583341658115387,
0.24774977564811707,
-0.06495840847492218,
-0.12006938457489014,
-0.042714331299066544,
0.2542877495288849,
-0.045378677546978,
-0.12417249381542206,
-0.18034687638282776,
0.06535544246435165,
-0.029783498495817184,
0.16033808887004852,
0.0569864884018898,
-0.2868960499763489,
-0.3649917244911194,
0.550455629825592,
-0.15870290994644165,
-0.10197655856609344,
0.40464767813682556,
0.2637842893600464,
-0.2704050540924072,
0.2251264750957489,
-0.06889498233795166,
-0.03611943870782852,
-0.23996028304100037,
-0.13057589530944824,
0.016113772988319397,
0.21893328428268433,
0.29534032940864563,
0.47846561670303345,
0.1764705926179886,
-0.615327775478363,
0.3364480435848236,
-0.24461397528648376,
-0.1234951913356781,
0.005325943231582642,
-0.10041207075119019,
0.3539537787437439,
0.2251971811056137,
0.08645439147949219,
0.11843277513980865,
-0.0002784300595521927,
-0.3927925229072571,
0.1327160745859146,
0.13794775307178497,
-0.1562546193599701,
0.019658010452985764,
0.012399689294397831,
0.1647295504808426,
0.1075727641582489,
-0.12556785345077515,
0.033774785697460175,
-0.32754606008529663,
-0.15386971831321716,
-0.20026984810829163,
-0.0036021098494529724,
0.04487698897719383,
-0.462770015001297,
-0.6620954871177673,
0.010944073088467121,
-0.7336007952690125,
0.4476735591888428,
0.3246118724346161,
0.289456844329834,
0.09424276649951935,
-0.066918283700943,
0.27727726101875305,
-0.32105520367622375,
0.7273985147476196,
0.04029082506895065,
-0.1105615496635437,
0.1507585048675537,
-0.168719083070755,
-0.5041905045509338,
-0.01863929256796837,
0.13450168073177338,
0.36346137523651123,
0.36125069856643677,
0.9468924403190613,
0.010420382022857666,
-0.34500622749328613,
-0.19344034790992737,
-0.18035858869552612,
0.0897502601146698,
-0.13802163302898407,
-0.22067096829414368,
-0.15801657736301422,
-0.3020620346069336,
0.22383543848991394,
-0.046146705746650696,
0.2723904848098755,
-0.011340799741446972,
-0.40366843342781067,
-0.12290801107883453,
-0.2363971769809723,
0.2057243287563324,
-0.010002520866692066,
0.1728120744228363,
0.04976347088813782,
0.1275152713060379,
0.06554004549980164,
0.14806950092315674,
0.18010345101356506,
-0.3304222822189331,
0.2216951698064804,
-0.08396455645561218,
0.10154355317354202,
0.20970897376537323,
-0.0073934271931648254,
0.3432658910751343,
-0.03320525586605072,
0.07334654033184052,
-0.43296992778778076,
0.5720502138137817,
0.05492505431175232,
0.45493629574775696,
0.17134054005146027,
0.34469902515411377,
-0.23377524316310883,
0.29669877886772156,
0.029707036912441254,
0.3458828628063202,
-0.060186609625816345,
-0.005545422434806824,
-0.48896151781082153,
-0.04447432607412338,
-0.06684821844100952,
0.46071162819862366,
0.8917255401611328,
-0.23976077139377594,
0.2062510997056961,
-0.16591531038284302,
-0.021057438105344772,
0.16219323873519897,
-0.2714114487171173,
0.03651870787143707,
-0.38964495062828064,
-0.13251850008964539,
-0.006933595985174179,
-0.10251885652542114,
0.2989657521247864,
0.022477276623249054,
0.12915265560150146,
0.06978421658277512,
0.2098834365606308,
0.25262266397476196,
-0.0702299028635025,
0.35538482666015625,
0.13732047379016876,
-0.34198659658432007,
0.17206324636936188,
0.12300138175487518,
0.136760413646698,
-0.11392045021057129,
0.15423381328582764,
0.03944309800863266,
-0.13987089693546295,
-0.06499534100294113,
-0.019109152257442474,
-0.0732492059469223,
-0.3646133244037628,
0.4183247685432434,
0.19326116144657135,
0.0933818370103836,
-0.2395739108324051,
0.4018898904323578,
-0.007000073790550232,
0.08512819558382034,
-0.003206707537174225,
0.2591148018836975,
0.1997058093547821,
0.048470109701156616,
0.09906212985515594,
-0.39056628942489624,
0.02175304852426052,
-0.20869332551956177,
0.06820601969957352,
-0.024748437106609344,
-0.007460468448698521,
0.05525019019842148,
-0.2507561147212982,
0.12495430558919907,
0.5679710507392883,
0.30631810426712036,
-0.15374629199504852,
-0.11918433010578156,
-0.4213721454143524,
-0.22622671723365784,
0.07858087122440338,
-0.16572582721710205,
-0.14877574145793915,
0.2996744215488434,
-0.042069707065820694,
-0.30727678537368774,
0.10313136875629425,
0.372408390045166,
-0.06566625833511353,
-0.054971300065517426,
0.3066335618495941,
-0.35047900676727295,
-0.3216536045074463,
-0.16952240467071533,
0.22037163376808167,
-0.3156827986240387,
-0.030031166970729828,
-0.08200598508119583,
0.18024934828281403,
-0.21835877001285553,
0.14810489118099213,
-0.05145794525742531,
-0.23330949246883392,
-0.003438293933868408,
-0.16310179233551025,
-0.14008522033691406,
-0.5985138416290283,
-0.4524357318878174,
-0.47884199023246765,
0.07759322971105576,
-0.006582271307706833,
0.03236842155456543,
-0.36892616748809814,
-0.09317614883184433,
-0.2567000985145569,
0.07473874092102051,
-0.2269088476896286,
0.23285937309265137,
-0.18259687721729279,
-0.3429648280143738,
-0.2174156755208969,
-0.017875507473945618,
0.20774799585342407,
0.44021016359329224,
-0.19811491668224335,
-0.2322365641593933,
-0.011562946252524853,
0.1236371099948883,
0.09101034700870514,
-0.5356760025024414,
0.10126233100891113,
0.3338402509689331,
-0.38375747203826904,
-0.27213817834854126,
0.024325307458639145,
-0.0006906017661094666,
-0.23616398870944977,
-0.2305082380771637,
0.391729474067688,
0.0685487687587738,
0.2969124913215637,
0.13873794674873352,
-0.12388679385185242,
0.3315959572792053,
0.043657612055540085,
0.2184188812971115,
0.005753248929977417,
-0.0165230855345726,
-0.009748955257236958,
-0.004103183746337891,
0.4135792851448059,
-0.1210058256983757,
0.08205090463161469,
-0.07160671055316925,
-0.2191261351108551,
0.10757671296596527,
0.0023453980684280396,
0.09925264120101929,
-0.16731418669223785,
-0.40506789088249207,
0.38587290048599243,
0.16736260056495667,
-0.12248796969652176,
-0.21203570067882538,
0.30467450618743896,
-0.15096540749073029,
0.08664180338382721,
0.012559793889522552,
0.2928391695022583,
0.13084805011749268,
0.011153563857078552,
0.13311666250228882,
0.18006037175655365,
-0.44404613971710205,
-0.2878635823726654,
-0.10620366036891937,
0.10634693503379822,
0.12546974420547485,
0.46232032775878906,
-0.16777169704437256,
-0.02264820784330368,
0.32629287242889404,
-0.1280936300754547,
0.6531367301940918,
0.19671571254730225,
0.4684257507324219,
-0.16133582592010498,
-0.05705662816762924,
-0.18842139840126038,
0.3861747980117798,
-0.09502531588077545,
0.24228498339653015,
0.011945746839046478,
0.1504637598991394,
-0.01320351380854845,
-0.2195087969303131,
-0.005343280732631683,
0.6526262760162354,
-0.3278418481349945,
-0.3698410987854004,
-0.14310765266418457,
-0.023928139358758926,
-0.1746343970298767,
0.13610297441482544,
-0.01198793575167656,
0.056416288018226624,
0.0192650705575943,
0.3377079367637634,
-0.12002210319042206,
-0.048193253576755524,
-0.2910834848880768,
0.06288298964500427,
0.23895049095153809,
-0.16069546341896057,
0.23875485360622406,
-0.13452889025211334,
0.22364689409732819,
-0.06568831205368042,
-0.026911543682217598,
0.6454130411148071,
0.5269044041633606,
-0.28579768538475037,
-0.06410705298185349,
-0.05048208311200142,
0.07430127263069153,
-0.006711438298225403,
0.28455033898353577,
-0.1009722650051117,
0.03493574634194374,
-0.04824984446167946,
-0.03183190897107124,
-0.2941146790981293,
-0.43707799911499023,
-0.057016972452402115,
-0.05289338901638985,
0.2819961607456207,
0.24710002541542053,
-0.09163610637187958,
-0.2933860123157501,
-0.10788144171237946,
0.17647148668766022,
-0.11655284464359283,
-0.013415749184787273,
0.12113925814628601,
-0.26311421394348145,
0.17828044295310974,
0.004977193661034107,
0.06322426348924637,
-0.24028974771499634,
0.28640827536582947,
0.0018529295921325684,
0.1694779098033905,
-0.1832759827375412,
-0.11480074375867844,
-0.49601978063583374,
0.10734956711530685,
0.21392473578453064,
-0.13935250043869019,
-0.12533824145793915,
0.06362108886241913,
-0.0505608394742012,
0.03772088885307312,
0.19999957084655762,
0.29383814334869385,
0.3271348476409912,
0.33846160769462585,
-0.4123344421386719,
0.768854022026062,
-0.03417445719242096,
-0.24210551381111145,
0.09514374285936356,
-0.6103772521018982,
0.4780234396457672,
-0.1345040649175644,
0.11961308866739273,
-0.07003585994243622,
0.21511539816856384,
-0.3757578730583191,
0.3962639272212982,
0.5963903665542603,
0.18700261414051056,
0.34039753675460815,
-0.12200167030096054,
0.053066328167915344,
0.09654862433671951,
0.5001576542854309,
-0.19076205790042877,
-0.10728124529123306,
0.02016405016183853,
0.07847090065479279,
0.09021782130002975,
0.10687348246574402,
-0.1552940309047699,
0.03361053764820099,
0.0775836631655693,
-0.36715441942214966,
-0.12195238471031189,
0.07681302726268768,
-0.09771226346492767,
0.2395680546760559,
-0.3372313380241394,
0.17480579018592834,
0.27852869033813477,
-0.06637875735759735,
-0.3390507102012634,
-0.29642507433891296,
0.3573905825614929,
-0.2921605110168457,
-0.12478521466255188,
-0.2662941515445709,
0.17669469118118286,
0.028445124626159668,
0.29488405585289,
0.06781928986310959,
-0.18835708498954773,
0.38330188393592834,
-0.15054795145988464,
-0.47226229310035706,
0.40932926535606384,
-0.14405222237110138,
-0.24084343016147614,
-0.1465679556131363,
-0.010596521198749542,
-0.132697194814682,
-0.0035110395401716232,
-0.10196229070425034,
-0.1442955583333969
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | I can't reproduce on my side unfortunately with the same versions.
Do you have issues when doing multiprocessing with python ?
```python
from tqdm.auto import tqdm
from multiprocess import Pool, RLock
def process_data(shard):
# implement
num_proc = 8
shards = [] # implement, this must be a list of size num_proc
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
results = [pool.apply_async(process_data, shard=shard) for shard in shards]
transformed_shards = [r.get() for r in results]
``` | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 73 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
I can't reproduce on my side unfortunately with the same versions.
Do you have issues when doing multiprocessing with python ?
```python
from tqdm.auto import tqdm
from multiprocess import Pool, RLock
def process_data(shard):
# implement
num_proc = 8
shards = [] # implement, this must be a list of size num_proc
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
results = [pool.apply_async(process_data, shard=shard) for shard in shards]
transformed_shards = [r.get() for r in results]
``` | [
-0.36213579773902893,
-0.5087302923202515,
-0.1394249051809311,
0.07497807592153549,
0.04022456333041191,
-0.3560974597930908,
0.38819870352745056,
0.14181622862815857,
-0.4626860022544861,
0.2230348289012909,
0.031175769865512848,
0.33822566270828247,
-0.23341849446296692,
-0.08756010979413986,
-0.4083908498287201,
0.10223709046840668,
0.0076496899127960205,
-0.1594913899898529,
0.2531300485134125,
0.032625094056129456,
-0.17719672620296478,
0.2042713463306427,
-0.3319113254547119,
-0.005594998598098755,
-0.6348928213119507,
-0.17022505402565002,
0.058643124997615814,
0.2909301221370697,
0.0616428479552269,
-0.21907739341259003,
-0.6123356223106384,
0.07091861218214035,
-0.11173161119222641,
0.3896760940551758,
-0.00011353725858498365,
-0.04683412238955498,
0.015982195734977722,
0.2007143199443817,
0.2702910304069519,
0.2192211151123047,
0.3434353172779083,
-0.3710710108280182,
-0.1273699849843979,
-0.20349234342575073,
0.07973159849643707,
0.0695008859038353,
0.055539313703775406,
0.14170828461647034,
0.4168211817741394,
0.12805362045764923,
0.203948512673378,
0.518053412437439,
-0.15771719813346863,
0.3365239202976227,
-0.21633580327033997,
-0.1263161301612854,
-0.11703707277774811,
-0.22647151350975037,
0.3812011778354645,
0.2920643985271454,
-0.04880472272634506,
0.4048924148082733,
-0.25744789838790894,
0.00480755977332592,
-0.07550322264432907,
-0.02566467598080635,
0.39053085446357727,
-0.6222293376922607,
0.29575949907302856,
0.09150248765945435,
-0.19522422552108765,
0.14498800039291382,
-0.26454588770866394,
-0.10543712973594666,
-0.18216782808303833,
-0.4467230439186096,
-0.02442041039466858,
0.12614887952804565,
-0.14331044256687164,
-0.14151152968406677,
-0.5341362357139587,
0.07350824028253555,
0.1497887820005417,
-0.20308665931224823,
-0.18418794870376587,
0.13382302224636078,
0.18045468628406525,
0.17381593585014343,
-0.05261680856347084,
-0.2131350338459015,
-0.28696584701538086,
-0.1519458293914795,
0.24508929252624512,
0.061068639159202576,
-0.3582470417022705,
-0.021757345646619797,
0.015099510550498962,
-0.1594710350036621,
-0.27357950806617737,
0.09454286098480225,
-0.33468666672706604,
0.6400339603424072,
0.12846694886684418,
0.13837383687496185,
-0.2279016673564911,
-0.17014972865581512,
0.0366433747112751,
-0.02209947258234024,
0.20771655440330505,
-0.3187614679336548,
-0.28978466987609863,
0.09658560901880264,
0.01733747497200966,
-0.2958790957927704,
0.26397305727005005,
0.07394255697727203,
-0.19104650616645813,
0.06371720135211945,
-0.1770787239074707,
-0.03655202314257622,
0.21903562545776367,
0.20241251587867737,
0.18308125436306,
0.2976764738559723,
0.18559542298316956,
0.49827155470848083,
-0.3031582236289978,
0.0021319445222616196,
-0.4452204406261444,
-0.15138104557991028,
-0.1632450670003891,
-0.12662504613399506,
-0.09211497008800507,
0.03488229960203171,
-0.11047172546386719,
0.22674408555030823,
-0.11027050018310547,
0.01321664173156023,
0.4914785623550415,
-0.052390508353710175,
0.2614603340625763,
-0.2932785749435425,
0.14464081823825836,
0.31332099437713623,
-0.008473867550492287,
0.15476539731025696,
-0.09461584687232971,
-0.21558216214179993,
-0.2673739492893219,
0.19718873500823975,
-0.4755029082298279,
-0.12529440224170685,
-0.014228219166398048,
0.11515679210424423,
0.001912582665681839,
0.33808058500289917,
-0.06976371258497238,
0.01789715699851513,
0.29348400235176086,
0.20636989176273346,
-0.1937805414199829,
-0.3681377172470093,
-0.4264447093009949,
-0.2172587513923645,
0.061119385063648224,
0.10440143942832947,
0.15820908546447754,
0.0513375848531723,
0.3336831033229828,
0.12774716317653656,
0.471352219581604,
0.5424500107765198,
0.11541856825351715,
0.04179134964942932,
-0.0256375502794981,
0.44448864459991455,
0.29328376054763794,
-0.12529432773590088,
-0.3540537357330322,
0.2891216576099396,
-0.2604307532310486,
-0.2326417714357376,
0.22329780459403992,
0.20624025166034698,
0.37548601627349854,
-0.047018375247716904,
0.21870052814483643,
0.1550387293100357,
0.040480345487594604,
0.44995686411857605,
-0.3326166868209839,
0.01790577732026577,
-0.028834961354732513,
0.0906400978565216,
0.12486286461353302,
-0.2718461751937866,
-0.02657186985015869,
-0.3403805196285248,
-0.0024561285972595215,
-0.0861341655254364,
0.04602883756160736,
0.18478924036026,
0.024442730471491814,
-0.21662922203540802,
-0.00927414745092392,
-0.08152833580970764,
0.05756925791501999,
0.3631351590156555,
-0.19077648222446442,
0.2156137079000473,
-0.15900512039661407,
0.014913659542798996,
0.3050503134727478,
0.10149569809436798,
-0.22482748329639435,
-0.12829212844371796,
0.12129327654838562,
-0.09767076373100281,
-0.08279752731323242,
-0.07778485119342804,
0.020012151449918747,
0.25935325026512146,
0.15438219904899597,
-0.05429011955857277,
0.28939682245254517,
0.06813160330057144,
-0.0803181454539299,
-0.4340829849243164,
-0.2544196546077728,
0.06923521310091019,
0.3470931649208069,
-0.06877405941486359,
0.05813109129667282,
0.2605249881744385,
0.29133281111717224,
0.07281426340341568,
0.03022356890141964,
0.10232775658369064,
0.3324844241142273,
0.014410290867090225,
0.13623283803462982,
-0.07023391127586365,
-0.15398497879505157,
-0.14666971564292908,
0.38410016894340515,
0.5922684073448181,
0.07842234522104263,
0.29816585779190063,
0.10872428119182587,
0.10977483540773392,
0.08944449573755264,
0.053020019084215164,
0.20390735566616058,
0.06586460769176483,
0.17758779227733612,
0.5067195296287537,
-0.024226531386375427,
0.073721744120121,
-0.16166850924491882,
0.332965224981308,
0.3019835948944092,
0.06473945081233978,
-0.12664327025413513,
0.11258944869041443,
0.012034952640533447,
0.07715900242328644,
0.13082683086395264,
-0.3062315285205841,
0.26958227157592773,
0.22435472905635834,
-0.0358174629509449,
-0.03564085066318512,
-0.22218328714370728,
-0.10871908068656921,
0.05816511809825897,
0.20472395420074463,
0.013756855390965939,
0.22028973698616028,
0.2550687789916992,
0.05399561673402786,
-0.1373392939567566,
-0.24412864446640015,
0.1931724101305008,
0.15835915505886078,
-0.09902212023735046,
0.10249840468168259,
-0.1780756711959839,
0.5981850028038025,
0.05307244509458542,
0.054436516016721725,
-0.15192535519599915,
-0.39184585213661194,
0.12616893649101257,
0.22215165197849274,
0.06555883586406708,
0.16260240972042084,
0.08471283316612244,
-0.19418494403362274,
0.19564226269721985,
0.02668660134077072,
-0.052427738904953,
0.03285256028175354,
-0.18173441290855408,
-0.055635422468185425,
0.46712803840637207,
-0.06575105339288712,
0.3467685580253601,
-0.21408450603485107,
-0.13399669528007507,
-0.31273627281188965,
-0.3596590757369995,
0.01387164369225502,
-0.04644813388586044,
0.1118474155664444,
-0.0844399631023407,
-0.13213300704956055,
-0.2101774364709854,
-0.06165150925517082,
0.38388508558273315,
-0.24511736631393433,
-0.18246309459209442,
0.184825137257576,
-0.10507253557443619,
-0.415693998336792,
-0.05179895460605621,
0.16327708959579468,
-0.20075707137584686,
0.04155475273728371,
0.0667128711938858,
0.08607025444507599,
0.4626765251159668,
-0.1805199831724167,
0.04668136313557625,
0.0833032876253128,
0.11422958970069885,
-0.02436499483883381,
-0.0521155409514904,
-0.08901625871658325,
0.27527135610580444,
-0.04798418655991554,
-0.2823191285133362,
-0.081027090549469,
-0.01950179412961006,
0.06165502220392227,
0.29463064670562744,
0.07880565524101257,
-0.26853811740875244,
-0.2180761694908142,
0.4196765124797821,
-0.07506334036588669,
-0.03712093085050583,
0.295226514339447,
0.22991324961185455,
-0.275455504655838,
0.28462833166122437,
0.05248543247580528,
-0.10747326165437698,
-0.13584694266319275,
-0.09228099137544632,
0.022864757105708122,
0.17076364159584045,
0.2578336000442505,
0.8335027694702148,
0.10533659160137177,
-0.3736725151538849,
0.11810585856437683,
-0.20248667895793915,
-0.278554767370224,
0.04462672397494316,
-0.13672205805778503,
0.2043665498495102,
0.03397015482187271,
0.027980562299489975,
0.0777294859290123,
-0.006942445412278175,
-0.23296207189559937,
0.12268401682376862,
0.26571688055992126,
-0.27661362290382385,
-0.11600881814956665,
0.08908366411924362,
-0.025119565427303314,
0.20858094096183777,
-0.0599844828248024,
-0.049615755677223206,
-0.2193581908941269,
-0.13573968410491943,
-0.1355382353067398,
0.13976621627807617,
-0.1594333052635193,
-0.5324480533599854,
-0.5082411766052246,
0.012483799830079079,
-0.545475423336029,
0.5083014369010925,
0.27372464537620544,
0.19286739826202393,
0.1510097235441208,
-0.10704570263624191,
0.3085048794746399,
-0.35854029655456543,
0.5831417441368103,
-0.03583596646785736,
-0.19432294368743896,
0.15496288239955902,
-0.5109227895736694,
-0.3739170730113983,
-0.08475267887115479,
-0.10131467878818512,
0.3901565372943878,
0.4315747320652008,
0.7751057147979736,
-0.040892764925956726,
-0.32962098717689514,
-0.31719571352005005,
-0.1898133009672165,
-0.07594234496355057,
-0.0733933225274086,
-0.3145384192466736,
-0.25531038641929626,
-0.36195313930511475,
0.3135707974433899,
-0.046315114945173264,
0.26293519139289856,
-0.14952313899993896,
-0.21971075236797333,
-0.14900855720043182,
-0.21394339203834534,
0.3350398540496826,
0.011266686022281647,
0.17555847764015198,
-0.11046092957258224,
0.18346388638019562,
-0.08837437629699707,
0.06495873630046844,
-0.022562945261597633,
-0.32164445519447327,
0.23952282965183258,
0.017002500593662262,
0.1262519359588623,
-0.018662218004465103,
0.19678035378456116,
0.4264132082462311,
0.025830570608377457,
0.13727232813835144,
-0.38044682145118713,
0.6753235459327698,
0.07948177307844162,
0.2024175524711609,
0.2228012979030609,
0.3210678994655609,
-0.050443071871995926,
0.3414313793182373,
-0.05972640961408615,
0.09757740795612335,
-0.039486464112997055,
0.05434931814670563,
-0.43345075845718384,
0.07175459712743759,
0.02138136327266693,
0.4368114769458771,
1.0347920656204224,
-0.4358530044555664,
0.1840888410806656,
-0.19242167472839355,
0.08347894251346588,
-0.10072800517082214,
-0.3134062886238098,
0.13692568242549896,
-0.3445001542568207,
-0.1754261702299118,
0.042119257152080536,
-0.16478882730007172,
0.2886514961719513,
0.11330799013376236,
0.036774326115846634,
0.17395392060279846,
0.09256269037723541,
0.09891094267368317,
-0.06232307851314545,
0.3206025958061218,
0.2186337411403656,
-0.38137710094451904,
0.1290142983198166,
0.11236555874347687,
0.17681944370269775,
-0.2750999629497528,
0.07719249278306961,
-0.05795068293809891,
-0.1002490222454071,
0.03176446259021759,
-0.10864648967981339,
-0.14552359282970428,
-0.2593298852443695,
0.40938782691955566,
0.3598008155822754,
-0.009844444692134857,
-0.17514526844024658,
0.3499305844306946,
0.01233694702386856,
0.03499836474657059,
0.029767826199531555,
0.2201572060585022,
0.31779345870018005,
0.09491436928510666,
0.11056944727897644,
-0.34974944591522217,
0.013453983701765537,
-0.20034322142601013,
-0.07845012843608856,
0.13067691028118134,
0.07085393369197845,
-0.005253959447145462,
-0.20970121026039124,
0.20902080833911896,
0.44159507751464844,
0.30925169587135315,
0.010162364691495895,
0.03671728074550629,
-0.35418784618377686,
-0.11173978447914124,
0.10573723912239075,
0.03393559530377388,
-0.29660800099372864,
0.4594813883304596,
-0.007958054542541504,
-0.26225778460502625,
0.056086599826812744,
0.18526501953601837,
0.02783423662185669,
0.01820140704512596,
0.2954866290092468,
-0.22770051658153534,
-0.3295257091522217,
-0.16891497373580933,
0.1978013813495636,
-0.5355455875396729,
0.045922569930553436,
0.04057643562555313,
0.018342191353440285,
-0.2097240388393402,
0.11524862051010132,
-0.00474061444401741,
-0.17508335411548615,
-0.008491627871990204,
-0.28979551792144775,
-0.12056709080934525,
-0.4316258728504181,
-0.2958347201347351,
-0.3127342760562897,
-0.024687405675649643,
-0.1550571620464325,
0.3176305592060089,
-0.20689350366592407,
0.08226056396961212,
-0.3004502058029175,
0.03031223639845848,
-0.36806178092956543,
0.23499393463134766,
-0.07307325303554535,
-0.4186655879020691,
-0.2548905313014984,
0.034932542592287064,
0.20514844357967377,
0.33313626050949097,
-0.2838684022426605,
-0.2526034414768219,
-0.017422690987586975,
0.11830762773752213,
0.006976926699280739,
-0.3224288821220398,
0.07110696285963058,
0.35885733366012573,
-0.28260448575019836,
-0.19769729673862457,
0.032866451889276505,
0.09445055574178696,
-0.2486628144979477,
-0.24273128807544708,
0.4648458659648895,
-0.026409737765789032,
0.0024898163974285126,
0.0809752345085144,
-0.130435511469841,
0.2661950886249542,
-0.016198936849832535,
0.0968661680817604,
0.09037204086780548,
-0.03831874951720238,
-0.017117798328399658,
0.009533479809761047,
0.312461256980896,
-0.1557529866695404,
0.16025866568088531,
-0.13015221059322357,
-0.19645704329013824,
0.005412834230810404,
0.06616751104593277,
0.06436405330896378,
-0.19890865683555603,
-0.39127883315086365,
0.3398142158985138,
0.17091822624206543,
-0.14518219232559204,
-0.16487373411655426,
0.2732420563697815,
-0.07310913503170013,
0.1227293312549591,
0.1467117816209793,
0.29262489080429077,
0.12911054491996765,
0.02935117855668068,
0.2141937017440796,
0.08547051250934601,
-0.6312893033027649,
-0.3609911799430847,
-0.32899993658065796,
0.02783658728003502,
0.1639045625925064,
0.44003066420555115,
-0.1444063037633896,
-0.17808350920677185,
0.26777777075767517,
-0.09441950172185898,
0.6451380848884583,
-0.05382446199655533,
0.3378819525241852,
-0.0794796273112297,
-0.05995221063494682,
-0.08334363996982574,
0.16562119126319885,
-0.007839120924472809,
0.20946702361106873,
-0.12217254936695099,
0.11423161625862122,
0.029219869524240494,
-0.21975214779376984,
-0.13524894416332245,
0.7050782442092896,
-0.3179023563861847,
-0.3046844005584717,
0.08753010630607605,
0.007926106452941895,
-0.15428142249584198,
0.12121500074863434,
0.07199062407016754,
0.23723050951957703,
0.42118266224861145,
0.3638749122619629,
0.09217534959316254,
-0.01963668502867222,
-0.25257134437561035,
-0.04563619941473007,
0.1920480728149414,
-0.20068369805812836,
0.21955884993076324,
0.05838751792907715,
0.1918102502822876,
0.04343463480472565,
-0.06277535855770111,
0.5542597770690918,
0.4263675808906555,
-0.4307270348072052,
-0.03219621628522873,
-0.06314696371555328,
0.0459778755903244,
0.021426506340503693,
0.2826531231403351,
-0.16874998807907104,
0.17817124724388123,
0.0393705777823925,
0.019888149574398994,
-0.33808332681655884,
-0.5042130351066589,
-0.0376184917986393,
0.0465962216258049,
0.14415116608142853,
0.32097679376602173,
-0.06691275537014008,
-0.3010901212692261,
0.042871229350566864,
0.18484367430210114,
-0.3054599165916443,
-0.18489518761634827,
0.3300403952598572,
-0.36226126551628113,
0.10105409473180771,
0.02270246297121048,
0.08022702485322952,
-0.10568849742412567,
0.3916596472263336,
0.05428333580493927,
0.25472572445869446,
-0.28894367814064026,
-0.057112421840429306,
-0.5728095173835754,
0.16880358755588531,
0.10012905299663544,
-0.18539683520793915,
0.055768031626939774,
0.36875391006469727,
-0.003270365297794342,
0.2638695240020752,
0.26388782262802124,
-0.021777233108878136,
0.08403471857309341,
0.4047757089138031,
-0.505395233631134,
0.6482887268066406,
-0.12929904460906982,
-0.16007886826992035,
0.12271589040756226,
-0.44315406680107117,
0.49124327301979065,
0.08631972223520279,
0.1505398154258728,
-0.030837781727313995,
0.15326179563999176,
-0.10954324901103973,
0.4072921574115753,
0.22635933756828308,
0.105896957218647,
0.39395391941070557,
-0.09906980395317078,
-0.005378685891628265,
0.12529391050338745,
0.3513064682483673,
-0.07301659882068634,
-0.1500099003314972,
-0.050519246608018875,
0.05795777589082718,
0.12246424704790115,
0.101447194814682,
-0.11742377281188965,
0.11529762297868729,
0.04931994527578354,
-0.26821526885032654,
-0.11013162136077881,
0.0493655800819397,
0.09713157266378403,
0.2865619659423828,
-0.27560189366340637,
0.338345468044281,
0.17949871718883514,
0.09009551256895065,
-0.34654444456100464,
-0.2756181061267853,
0.41851991415023804,
-0.35665780305862427,
-0.28351375460624695,
-0.3566054105758667,
0.20875117182731628,
-0.14794611930847168,
0.37842950224876404,
-0.04553217068314552,
-0.20987574756145477,
0.29673993587493896,
-0.025155402719974518,
-0.46437814831733704,
0.3824312388896942,
-0.05559467151761055,
-0.39129117131233215,
-0.14427760243415833,
-0.1995294690132141,
-0.24144414067268372,
-0.028886420652270317,
-0.2539626955986023,
0.010824806988239288
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | ```python
tokenizer = FunnelTokenizer.from_pretrained('funnel-transformer/small')
def tokenize(batch):
return tokenizer(batch['text'], padding='max_length', truncation=True,max_length=512)
dataset = load_dataset("bookcorpus",split='train[:1000]').shuffle()
dataset = dataset.map(tokenize, batched=True, batch_size=512)
# dataset = LineByLineTextDataset(
# tokenizer=tokenizer,
# file_path="./wiki1000.txt",
# block_size=128
# )
data_collator = DataCollatorForLanguageModeling(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15
)
config=FunnelConfig(
return_dict=True
)
model= FunnelForMaskedLM(config=config)
training_args = TrainingArguments(
output_dir="./checkpoints",
overwrite_output_dir=True,
do_train=True,
num_train_epochs=1,
per_device_train_batch_size=16,
per_device_eval_batch_size=16,
save_steps=10000,
logging_dir='./ptlogs'
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=dataset,
)
trainer.train()
``` | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 64 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
```python
tokenizer = FunnelTokenizer.from_pretrained('funnel-transformer/small')
def tokenize(batch):
return tokenizer(batch['text'], padding='max_length', truncation=True,max_length=512)
dataset = load_dataset("bookcorpus",split='train[:1000]').shuffle()
dataset = dataset.map(tokenize, batched=True, batch_size=512)
# dataset = LineByLineTextDataset(
# tokenizer=tokenizer,
# file_path="./wiki1000.txt",
# block_size=128
# )
data_collator = DataCollatorForLanguageModeling(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15
)
config=FunnelConfig(
return_dict=True
)
model= FunnelForMaskedLM(config=config)
training_args = TrainingArguments(
output_dir="./checkpoints",
overwrite_output_dir=True,
do_train=True,
num_train_epochs=1,
per_device_train_batch_size=16,
per_device_eval_batch_size=16,
save_steps=10000,
logging_dir='./ptlogs'
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=dataset,
)
trainer.train()
``` | [
-0.310078889131546,
-0.12923705577850342,
-0.1342047154903412,
0.11753931641578674,
0.4688265323638916,
-0.14419770240783691,
0.27835237979888916,
0.09987889230251312,
-0.24337786436080933,
0.35919108986854553,
0.0829848051071167,
-0.07303135842084885,
-0.11920904368162155,
0.32127922773361206,
-0.10763708502054214,
-0.1704481840133667,
0.009236827492713928,
-0.08812695741653442,
0.01531834527850151,
0.04429054260253906,
0.004665222018957138,
0.015446847304701805,
-0.24890650808811188,
-0.031956322491168976,
-0.2206832468509674,
-0.1371227353811264,
0.09857429563999176,
-0.050323501229286194,
-0.18772628903388977,
-0.3946235775947571,
0.03757348656654358,
0.11461660265922546,
0.21519498527050018,
0.4167884588241577,
-0.00010279956040903926,
0.10017888247966766,
0.024487245827913284,
-0.14054450392723083,
-0.42040735483169556,
-0.04409213364124298,
0.24149301648139954,
-0.27982833981513977,
0.05062800645828247,
-0.2537198066711426,
-0.21721413731575012,
0.22781848907470703,
-0.1378432810306549,
0.17204301059246063,
0.4584764838218689,
0.37975266575813293,
0.34357744455337524,
0.10882756114006042,
0.05856234207749367,
-0.02949119731783867,
0.053817540407180786,
0.07554568350315094,
-0.09401435405015945,
0.006613592617213726,
0.1109110414981842,
-0.1369546353816986,
0.02383136749267578,
0.32420599460601807,
0.011358564719557762,
-0.008914951235055923,
-0.03670259565114975,
-0.034168045967817307,
0.27362260222435,
-0.24790793657302856,
0.14702239632606506,
-0.089144267141819,
0.13293686509132385,
-0.3035679757595062,
-0.03735823929309845,
-0.15410681068897247,
-0.0806475505232811,
-0.4634772837162018,
0.10437282919883728,
0.10102418065071106,
-0.4107730984687805,
0.017261968925595284,
-0.06038959324359894,
-0.005098633002489805,
-0.013899024575948715,
0.026121489703655243,
-0.06625168025493622,
0.5225918292999268,
-0.1053638830780983,
-0.03561507910490036,
0.17084600031375885,
-0.13550953567028046,
0.41209834814071655,
0.08530597388744354,
-0.12766104936599731,
0.023740194737911224,
-0.25879380106925964,
-0.18758141994476318,
-0.07132772356271744,
-0.19862982630729675,
0.07114475220441818,
-0.11243592202663422,
0.15799102187156677,
-0.006024818867444992,
0.4859350025653839,
0.008065804839134216,
0.09800627827644348,
0.3584093451499939,
-0.1202130988240242,
0.3187829256057739,
0.03606463223695755,
0.194654181599617,
-0.21764954924583435,
-0.12445918470621109,
-0.18594220280647278,
-0.3380061089992523,
0.024284038692712784,
0.038114726543426514,
-0.04628085717558861,
0.016190897673368454,
-0.12718001008033752,
0.1684388816356659,
-0.25359460711479187,
0.27347132563591003,
0.18177743256092072,
0.45709115266799927,
-0.09647361189126968,
0.23021692037582397,
0.17691203951835632,
0.03949619084596634,
-0.20933163166046143,
-0.08185595273971558,
-0.24255555868148804,
0.11645054817199707,
-0.3404504358768463,
-0.14218004047870636,
0.10279127955436707,
0.22053928673267365,
0.32517385482788086,
-0.19312454760074615,
0.039561767131090164,
-0.3057802617549896,
0.0956941619515419,
-0.23831874132156372,
0.005653835833072662,
0.12012319266796112,
0.3433281481266022,
0.08770202845335007,
0.0954146534204483,
-0.2783065438270569,
0.11810358613729477,
0.2075958251953125,
-0.2924019694328308,
-0.22915112972259521,
0.20303145051002502,
0.32697123289108276,
0.28272074460983276,
0.1686135083436966,
-0.36896803975105286,
-0.006397899240255356,
0.2053464651107788,
0.1965653896331787,
0.05627330392599106,
-0.31840354204177856,
-0.21739181876182556,
-0.13528546690940857,
0.27812713384628296,
0.3030325770378113,
-0.1902775764465332,
-0.21084558963775635,
0.021464310586452484,
-0.03151993080973625,
0.3774223327636719,
0.358452171087265,
-0.3117792010307312,
0.4580087959766388,
-0.06758333742618561,
-0.05185440927743912,
0.5453790426254272,
-0.5652977228164673,
-0.2127518206834793,
0.1543048620223999,
-0.19091981649398804,
0.04545889049768448,
-0.23864251375198364,
-0.2231660783290863,
0.48298901319503784,
0.09697829186916351,
0.3733593225479126,
0.2380770742893219,
-0.03514373302459717,
0.18965038657188416,
-0.28640016913414,
0.009055281057953835,
-0.0297914519906044,
-0.005524737760424614,
0.048713237047195435,
-0.052773915231227875,
-0.23434582352638245,
0.12803301215171814,
0.23382002115249634,
-0.010477419942617416,
0.2677803933620453,
0.358298659324646,
0.30736270546913147,
0.11696626991033554,
-0.12152744084596634,
0.19367581605911255,
0.1673586219549179,
-0.011587034910917282,
-0.03093804232776165,
0.12394685298204422,
-0.07864318788051605,
-0.20585258305072784,
-0.045583926141262054,
0.0828075185418129,
-0.015698615461587906,
-0.3593001365661621,
0.3384874761104584,
0.03753506764769554,
0.02665751799941063,
0.019130952656269073,
0.12357139587402344,
0.2986926734447479,
-0.354111909866333,
0.22224287688732147,
0.23774422705173492,
0.08528373390436172,
-0.1885533481836319,
-0.18009133636951447,
0.05245346575975418,
0.11839286983013153,
0.24182561039924622,
0.02973012998700142,
-0.09869031608104706,
0.2562614679336548,
-0.0663086548447609,
-0.08917130529880524,
-0.09372494369745255,
-0.11309324204921722,
0.015339753590524197,
0.09032152593135834,
-0.06472532451152802,
-0.020623967051506042,
0.16550877690315247,
0.019904926419258118,
0.3511837124824524,
0.2012840211391449,
0.32724565267562866,
0.1273164302110672,
0.20463718473911285,
-0.020622223615646362,
0.23321494460105896,
-0.08574184775352478,
0.18783332407474518,
0.05923263728618622,
0.26108407974243164,
-0.013315483927726746,
0.1250680536031723,
0.005827654153108597,
-0.2236132025718689,
0.10840572416782379,
0.2264300435781479,
0.0882091075181961,
-0.02310871332883835,
0.25899311900138855,
-0.28398314118385315,
0.011871527880430222,
-0.0420018807053566,
0.058263618499040604,
0.07729937136173248,
0.2125343531370163,
0.12058502435684204,
0.023036418482661247,
0.07001006603240967,
-0.1982041597366333,
0.2579902112483978,
0.038088299334049225,
-0.08876969665288925,
0.009604237973690033,
0.17405998706817627,
-0.19317592680454254,
-0.32819321751594543,
-0.1449999064207077,
0.12080667167901993,
0.4868711233139038,
-0.1175011396408081,
0.09662877768278122,
-0.027201039716601372,
-0.11306469887495041,
-0.24308428168296814,
-0.09406286478042603,
0.1485603302717209,
-0.018428931012749672,
0.043627239763736725,
0.4213285446166992,
-0.0010328888893127441,
0.3150787949562073,
0.31213366985321045,
0.21861974895000458,
0.1445559710264206,
-0.023167798295617104,
0.013300664722919464,
-0.13357524573802948,
-0.28806477785110474,
0.2566812038421631,
0.21969875693321228,
0.042781319469213486,
0.11719070374965668,
0.06286200881004333,
-0.01048276387155056,
-0.02880430407822132,
-0.044976331293582916,
-0.016239158809185028,
0.022847600281238556,
0.15729929506778717,
-0.165305495262146,
0.296369731426239,
-0.26176416873931885,
-0.407950758934021,
0.18084324896335602,
-0.06044674664735794,
-0.2805642783641815,
-0.1905059814453125,
-0.00012216359027661383,
-0.2679700255393982,
-0.2092576026916504,
-0.21675685048103333,
-0.2778630256652832,
-0.4542640149593353,
-0.010337390005588531,
0.048683833330869675,
0.08540508151054382,
-0.07412468641996384,
0.23381881415843964,
0.20668838918209076,
0.21272501349449158,
0.014099926687777042,
-0.04129791632294655,
-0.21588808298110962,
0.07286887615919113,
-0.23181438446044922,
-0.19289575517177582,
0.009931478649377823,
-0.1537412703037262,
0.3478003442287445,
0.15610311925411224,
-0.4876747131347656,
0.37295401096343994,
-0.07418034225702286,
-0.2712356448173523,
-0.10004948079586029,
-0.06587020307779312,
0.361146479845047,
0.10520382225513458,
-0.22137846052646637,
0.10723016411066055,
-0.1624220311641693,
-0.040760211646556854,
-0.21253404021263123,
0.2935689389705658,
-0.35403579473495483,
0.6404051184654236,
0.14465543627738953,
0.8162133693695068,
-0.07967948913574219,
0.03476143255829811,
0.17964430153369904,
-0.005289340391755104,
0.08401447534561157,
-0.15344369411468506,
-0.2790311276912689,
0.29990583658218384,
-0.06412975490093231,
-0.18795977532863617,
0.20400141179561615,
-0.007119499146938324,
-0.31854960322380066,
-0.06188123673200607,
0.05750938877463341,
-0.2475689947605133,
-0.39783674478530884,
0.2112479954957962,
0.15019994974136353,
0.26705217361450195,
-0.09492895007133484,
0.06593415886163712,
-0.1520652174949646,
-0.09333213418722153,
-0.1404843032360077,
-0.0002466663718223572,
-0.23915526270866394,
-0.043556153774261475,
-0.31461596488952637,
-0.01926131173968315,
-0.5928467512130737,
0.011792846024036407,
0.04484977200627327,
0.2776106595993042,
-0.017650071531534195,
-0.05865851789712906,
0.043976038694381714,
-0.12351224571466446,
0.72917240858078,
0.1925557553768158,
-0.06416961550712585,
0.053502585738897324,
-0.289140522480011,
-0.13179467618465424,
-0.07199791073799133,
-0.2500884532928467,
-0.08969160169363022,
0.2495448887348175,
0.14642909169197083,
-0.06834201514720917,
-0.06609438359737396,
-0.04438519477844238,
-0.14966391026973724,
-0.09537352621555328,
0.14332954585552216,
-0.03455156460404396,
-0.3247778117656708,
-0.3178599178791046,
0.4709646701812744,
0.20823617279529572,
0.22642001509666443,
-0.04203929007053375,
-0.20813074707984924,
-0.062482044100761414,
-0.18108785152435303,
0.14638587832450867,
0.034493982791900635,
0.239446759223938,
0.1030668243765831,
0.1047031581401825,
-0.2255035638809204,
0.14739547669887543,
0.34872546792030334,
0.056993454694747925,
0.2948228418827057,
-0.2132105827331543,
0.0019886624068021774,
0.18586133420467377,
0.24237725138664246,
0.344412624835968,
0.12175291776657104,
0.38381174206733704,
-0.18052789568901062,
0.3563898205757141,
-0.023382265120744705,
0.5706765651702881,
0.13397178053855896,
0.2940816879272461,
-0.535692036151886,
-0.14413434267044067,
-0.07330069690942764,
-0.022951828315854073,
0.1358523815870285,
0.3842635750770569,
-0.2950780987739563,
-0.4676644802093506,
0.27493077516555786,
0.015859268605709076,
0.8640157580375671,
0.0037844106554985046,
0.23275311291217804,
0.2273002564907074,
-0.11834869533777237,
-0.08401308953762054,
-0.4700307846069336,
0.17094342410564423,
-0.14863887429237366,
0.022343462333083153,
0.07310816645622253,
-0.01756826788187027,
0.1096457839012146,
0.05202177166938782,
-0.24352248013019562,
0.019508669152855873,
-0.19688725471496582,
0.043673306703567505,
-0.18424764275550842,
0.07848625630140305,
0.15234871208667755,
-0.2294081598520279,
-0.15828897058963776,
0.3006843626499176,
0.013653922826051712,
-0.01538190245628357,
-0.17219746112823486,
0.1416708379983902,
0.10151219367980957,
-0.1955590397119522,
-0.10968144983053207,
-0.02964622713625431,
-0.6171454191207886,
-0.014898978173732758,
-0.04673750326037407,
-0.44150179624557495,
-0.05589662492275238,
0.13096947968006134,
0.22497373819351196,
0.3476772606372833,
-0.02773229219019413,
0.40752050280570984,
0.15527252852916718,
-0.07096719741821289,
0.008435853756964207,
0.08827414363622665,
0.2131490409374237,
-0.14638248085975647,
-0.20493443310260773,
0.2800980806350708,
-0.02398025244474411,
-0.24584442377090454,
-0.12984596192836761,
-0.005215562880039215,
0.08932951092720032,
-0.3025335967540741,
-0.14450500905513763,
0.16709551215171814,
-0.28359565138816833,
-0.19762934744358063,
0.2629663050174713,
-0.17944076657295227,
-0.3451642096042633,
-0.051692791283130646,
0.22413179278373718,
-0.15485036373138428,
-0.11651040613651276,
0.15563854575157166,
0.11426179111003876,
0.08878731727600098,
0.49829936027526855,
0.07226946949958801,
-0.1852857619524002,
-0.33763182163238525,
-0.09965018928050995,
0.33305642008781433,
0.2025567889213562,
0.19041955471038818,
0.1405813992023468,
-0.17868462204933167,
0.08438800275325775,
0.29349610209465027,
-0.030442290008068085,
0.10749174654483795,
-0.07092098891735077,
-0.11667683720588684,
-0.5866550207138062,
-0.04731644690036774,
-0.0656329095363617,
0.05483914166688919,
0.04823107272386551,
0.6134433746337891,
-0.048916224390268326,
0.014109224081039429,
-0.4224279224872589,
0.16294261813163757,
-0.40169739723205566,
0.35566991567611694,
-0.3384862542152405,
-0.23182880878448486,
0.07102645933628082,
0.15061359107494354,
0.2422724962234497,
0.34193962812423706,
-0.11391949653625488,
-0.40906986594200134,
-0.12221826612949371,
0.024839460849761963,
0.1291024088859558,
-0.13954351842403412,
0.10187236219644547,
-0.06367211043834686,
-0.1137399971485138,
-0.26773694157600403,
0.17002156376838684,
0.20029088854789734,
0.003548465669155121,
-0.1849631369113922,
0.002073541283607483,
0.2846565544605255,
0.08803221583366394,
-0.07988114655017853,
0.07335008680820465,
-0.09804949164390564,
0.20365281403064728,
-0.09986796975135803,
0.10829510539770126,
0.022257000207901,
-0.353529155254364,
0.01793637126684189,
0.0953892394900322,
0.17078888416290283,
-0.011018723249435425,
-0.1538039892911911,
-0.27096521854400635,
0.05897628515958786,
0.09290385246276855,
0.1874951422214508,
-0.15795253217220306,
-0.0051908232271671295,
0.6026729941368103,
0.3695808947086334,
-0.20098590850830078,
0.11993159353733063,
-0.0933578759431839,
-0.2630319595336914,
0.18617908656597137,
0.11452347040176392,
-0.2968793511390686,
-0.19135639071464539,
0.038955580443143845,
0.268697589635849,
-0.051336389034986496,
-0.35904908180236816,
0.18564371764659882,
-0.13671284914016724,
-0.14909422397613525,
0.0012126751244068146,
0.03907152637839317,
-0.011208239942789078,
0.20230451226234436,
0.41135478019714355,
0.024212658405303955,
0.22341974079608917,
-0.009310714900493622,
0.0759715735912323,
-0.20709413290023804,
-0.1292758733034134,
-0.4814424514770508,
0.14694470167160034,
-0.14719551801681519,
0.1422044336795807,
-0.1822511851787567,
0.0924171507358551,
0.06295490264892578,
-0.37334978580474854,
-0.22840425372123718,
-0.02572379633784294,
-0.49912750720977783,
-0.1693495213985443,
-0.139072984457016,
0.09327635914087296,
-0.04304170235991478,
0.1080244779586792,
0.2271232008934021,
-0.22728584706783295,
-0.0021613314747810364,
-0.010146178305149078,
-0.21880678832530975,
-0.07374052703380585,
-0.08028975874185562,
0.2493526041507721,
0.0023892223834991455,
-0.2413366734981537,
0.1899196058511734,
-0.18742875754833221,
-0.11189228296279907,
-0.16120555996894836,
0.04463601112365723,
0.3779859244823456,
0.3604882061481476,
-0.08429738879203796,
0.01887393370270729,
-0.11907333135604858,
-0.057273782789707184,
-0.22953826189041138,
0.18850795924663544,
0.5024799108505249,
0.36659103631973267,
0.035861313343048096,
0.29067927598953247,
-0.3719211518764496,
0.027187103405594826,
0.2588146924972534,
-0.17940445244312286,
-0.19935910403728485,
0.1815936267375946,
0.12728026509284973,
0.025697320699691772,
-0.32398486137390137,
0.010772690176963806,
-0.495242178440094,
0.14630775153636932,
0.18867486715316772,
-0.07843610644340515,
0.19430696964263916,
-0.10738979279994965,
0.13617098331451416,
-0.15017199516296387,
0.35361841320991516,
0.09349419176578522,
-0.08168522268533707,
-0.2944379150867462,
-0.2529089152812958,
-0.22161978483200073,
0.002709686756134033,
-0.25704437494277954,
0.26156654953956604,
-0.2474883496761322,
0.10164500027894974,
-0.180721253156662,
0.06190519034862518,
-0.22514216601848602,
-0.18182016909122467,
-0.13864441215991974,
-0.14337541162967682,
-0.455371618270874,
0.00090036541223526,
-0.33380216360092163,
0.20497262477874756,
0.2946282923221588,
-0.27153587341308594,
0.15468035638332367,
-0.20454294979572296,
0.19884607195854187,
0.20048147439956665,
0.12261427938938141,
0.08140239119529724,
0.04948660731315613,
0.2690640687942505,
-0.11802385747432709,
0.24882636964321136,
0.0066954270005226135,
0.23437714576721191,
-0.12727481126785278,
-0.22083836793899536,
-0.16445733606815338,
-0.13288387656211853,
0.2034689337015152,
0.3435235619544983,
-0.15129652619361877,
-0.11478784680366516,
-0.19014643132686615,
0.08195595443248749,
0.26902979612350464,
-0.09181292355060577,
0.19338355958461761,
0.2084006369113922,
0.2739054560661316,
0.15075631439685822,
0.011229113675653934,
0.3407835364341736,
-0.02163609117269516,
0.08387342095375061,
-0.36455923318862915,
-0.3167020380496979,
0.5697759389877319,
-0.3233434557914734,
-0.3560691773891449,
0.02812352031469345,
0.0793674886226654,
0.37039417028427124,
-0.10338529199361801,
-0.600409984588623,
0.055145181715488434,
0.09197031706571579,
0.024219434708356857,
-0.44875290989875793,
0.3624131679534912,
-0.2732503414154053,
0.134933739900589,
0.006252281367778778,
0.5045968890190125,
-0.02945612743496895,
-0.14348401129245758,
0.15768185257911682,
-0.24444113671779633
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | `RuntimeError: CUDA out of memory. Tried to allocate 954.00 MiB (GPU 0; 15.90 GiB total capacity; 14.35 GiB already allocated; 753.75 MiB free; 14.39 GiB reserved in total by PyTorch)
Exception raised from malloc at /pytorch/c10/cuda/CUDACachingAllocator.cpp:272 (most recent call first):`
part of error output | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 44 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
`RuntimeError: CUDA out of memory. Tried to allocate 954.00 MiB (GPU 0; 15.90 GiB total capacity; 14.35 GiB already allocated; 753.75 MiB free; 14.39 GiB reserved in total by PyTorch)
Exception raised from malloc at /pytorch/c10/cuda/CUDACachingAllocator.cpp:272 (most recent call first):`
part of error output | [
-0.21180088818073273,
-0.14360396564006805,
-0.12512421607971191,
0.37566840648651123,
0.4871864318847656,
0.022162310779094696,
0.23726356029510498,
0.18793366849422455,
-0.05913190916180611,
0.3615151047706604,
0.20322199165821075,
0.08994966000318527,
-0.11036095768213272,
0.06155652552843094,
-0.08121724426746368,
-0.242524653673172,
-0.15985631942749023,
-0.0211353600025177,
-0.20005646347999573,
0.018532298505306244,
-0.05475728213787079,
0.09967810660600662,
-0.27182537317276,
0.018651656806468964,
-0.47588685154914856,
-0.218439519405365,
0.08100131899118423,
0.11550697684288025,
0.14696933329105377,
-0.204005628824234,
0.07548800110816956,
-0.25908538699150085,
0.046684928238391876,
0.5353172421455383,
-0.00009429440251551569,
-0.09178714454174042,
0.0012605413794517517,
-0.04937781020998955,
-0.16685490310192108,
-0.09355682134628296,
0.22566035389900208,
-0.09732954949140549,
0.1699947565793991,
-0.3079274594783783,
-0.21595489978790283,
0.1849445253610611,
-0.13721679151058197,
-0.23832954466342926,
0.2873455286026001,
0.44989633560180664,
0.39090031385421753,
-0.043175458908081055,
0.08619049191474915,
-0.1659832000732422,
-0.087558813393116,
-0.1732177734375,
-0.014695418998599052,
0.0005475543439388275,
0.13815821707248688,
-0.028115874156355858,
-0.003598608076572418,
0.1856384426355362,
0.04755799472332001,
0.035433121025562286,
0.054355740547180176,
0.044939398765563965,
-0.0405002161860466,
-0.2167181372642517,
0.07727409899234772,
-0.03066985309123993,
0.11783824861049652,
-0.23154118657112122,
0.09587020426988602,
-0.03876221925020218,
0.009395116940140724,
-0.413179486989975,
0.13788123428821564,
0.18599510192871094,
-0.3922761082649231,
0.016407623887062073,
-0.2586275637149811,
-0.030319228768348694,
-0.0934135913848877,
0.06319665163755417,
-0.19565868377685547,
0.008088916540145874,
-0.11820583045482635,
0.06320640444755554,
0.24671366810798645,
-0.017312612384557724,
0.20664620399475098,
0.09114929288625717,
0.014232411980628967,
-0.022196292877197266,
-0.2829049825668335,
-0.02320955879986286,
-0.1080683097243309,
-0.32903215289115906,
0.029336649924516678,
-0.1882706582546234,
0.22764979302883148,
0.004155034199357033,
0.16098842024803162,
0.052603308111429214,
0.14668382704257965,
0.37222981452941895,
-0.38578853011131287,
0.09747699648141861,
0.03329732269048691,
0.08651714026927948,
-0.3276965022087097,
-0.23929917812347412,
-0.055030032992362976,
-0.3216639757156372,
0.06932279467582703,
-0.012491181492805481,
0.06693530827760696,
-0.13259877264499664,
-0.10626229643821716,
0.21118928492069244,
-0.26194271445274353,
0.21715883910655975,
0.11598104983568192,
0.25799304246902466,
-0.14074334502220154,
0.1431770622730255,
0.17260204255580902,
-0.07932426780462265,
-0.11216704547405243,
-0.08908514678478241,
-0.35569408535957336,
0.16502606868743896,
-0.36962389945983887,
-0.04686235636472702,
0.19520074129104614,
0.012225010432302952,
0.3212687075138092,
-0.1181158795952797,
0.20263457298278809,
-0.47040435671806335,
0.03208615630865097,
-0.343474417924881,
0.010665319859981537,
0.06473743170499802,
0.15047995746135712,
0.06024908274412155,
0.096709705889225,
-0.006275389343500137,
0.21736273169517517,
0.37514781951904297,
-0.2610059976577759,
-0.30416038632392883,
-0.06353338807821274,
0.35462382435798645,
0.25098395347595215,
0.11945614963769913,
0.03153959661722183,
0.00011862441897392273,
0.2730512022972107,
0.062127869576215744,
0.036101557314395905,
-0.15404953062534332,
-0.05455633997917175,
-0.18366838991641998,
0.347175657749176,
0.18880151212215424,
-0.2707560062408447,
0.056287601590156555,
0.21989281475543976,
0.05808081105351448,
0.18118827044963837,
0.41263437271118164,
-0.30150648951530457,
0.14603349566459656,
-0.19905036687850952,
-0.16523844003677368,
0.21151907742023468,
-0.16842052340507507,
-0.26563137769699097,
0.033698130398988724,
-0.09298842400312424,
-0.12538638710975647,
-0.1957148015499115,
0.02923760935664177,
0.2991098165512085,
0.22342994809150696,
0.24971704185009003,
0.14063003659248352,
-0.2569422721862793,
0.07252725213766098,
-0.3540611267089844,
-0.18745802342891693,
0.1888195276260376,
0.05513394996523857,
0.31594476103782654,
-0.010523103177547455,
-0.26146796345710754,
0.10662274062633514,
0.1901455819606781,
-0.05796198174357414,
-0.021271737292408943,
0.12604844570159912,
0.31869855523109436,
-0.09297683835029602,
-0.09879550337791443,
-0.04752127453684807,
0.05583812668919563,
0.039654649794101715,
0.06631463766098022,
0.14118626713752747,
-0.18207259476184845,
0.00414976105093956,
-0.05568491667509079,
-0.09526281803846359,
0.03902600705623627,
-0.28962016105651855,
0.34845075011253357,
0.05792330950498581,
-0.11843980848789215,
-0.005298163741827011,
-0.002045378088951111,
0.3104231059551239,
-0.4857847988605499,
0.07274501770734787,
0.09004178643226624,
0.17615047097206116,
-0.2769613564014435,
-0.22816836833953857,
0.0018620342016220093,
0.1827634871006012,
0.15170666575431824,
-0.07210739701986313,
-0.19346973299980164,
0.25189468264579773,
-0.02098696306347847,
-0.20373417437076569,
-0.11807196587324142,
-0.0767887681722641,
0.11834298074245453,
-0.08458780497312546,
-0.04926493018865585,
0.005436313338577747,
0.11514044553041458,
-0.03707902133464813,
0.12774091958999634,
0.005823343992233276,
0.11216588318347931,
0.012665100395679474,
0.08911281824111938,
-0.03186526894569397,
0.15378886461257935,
-0.0675356388092041,
0.35222238302230835,
-0.036048103123903275,
0.07466801255941391,
0.23330330848693848,
0.21968992054462433,
0.048454854637384415,
-0.34912243485450745,
-0.05267464369535446,
0.3689388632774353,
0.17911730706691742,
-0.012822911143302917,
0.24990659952163696,
-0.10327263921499252,
0.04858098924160004,
-0.03819664567708969,
-0.1489267647266388,
-0.01146690547466278,
0.2289576232433319,
0.08139735460281372,
0.17023926973342896,
-0.0014849817380309105,
-0.10168114304542542,
0.1454581469297409,
0.1066213995218277,
0.23218731582164764,
-0.11901543289422989,
0.0962333232164383,
-0.03477562591433525,
-0.2055915892124176,
-0.1354939490556717,
0.2554323971271515,
0.4957815110683441,
-0.18111394345760345,
-0.038041990250349045,
-0.18175505101680756,
-0.12901484966278076,
-0.16074024140834808,
-0.06491242349147797,
-0.01403871551156044,
-0.047604963183403015,
0.0061221253126859665,
0.24288125336170197,
0.03159075602889061,
0.34725722670555115,
0.17707355320453644,
0.2584714889526367,
0.12157410383224487,
0.15203452110290527,
0.20219790935516357,
-0.2745968699455261,
-0.12167481333017349,
0.29750534892082214,
0.2598123252391815,
-0.012493722140789032,
0.18795758485794067,
0.16828308999538422,
0.03266686946153641,
0.10496408492326736,
-0.007333472371101379,
-0.1140928864479065,
0.02014445886015892,
0.17775461077690125,
-0.20087575912475586,
0.19977223873138428,
-0.11993628740310669,
-0.28610140085220337,
0.2192392349243164,
0.008303230628371239,
-0.11594485491514206,
-0.08513416349887848,
0.18911640346050262,
-0.1369486153125763,
-0.15084205567836761,
-0.24410372972488403,
-0.11374548822641373,
-0.3596753180027008,
-0.07076981663703918,
-0.061862923204898834,
0.12035208195447922,
-0.10655240714550018,
0.3134254515171051,
0.3827461898326874,
0.0811476856470108,
0.0531449094414711,
-0.19087140262126923,
-0.1974184513092041,
-0.08662524819374084,
-0.1350986808538437,
-0.22412405908107758,
0.01290145143866539,
0.10139070451259613,
0.46955183148384094,
0.01526833139359951,
-0.6003523468971252,
0.029169145971536636,
-0.06624582409858704,
-0.05407316982746124,
-0.08955472707748413,
-0.17224468290805817,
0.420723021030426,
0.01962919719517231,
-0.25820446014404297,
0.17935195565223694,
-0.19911456108093262,
0.06099354848265648,
-0.12299028784036636,
0.1664450764656067,
-0.2458258867263794,
0.6156348586082458,
0.24459373950958252,
0.5803918838500977,
0.029395073652267456,
-0.1628429889678955,
0.1924738734960556,
-0.14675624668598175,
0.14566448330879211,
-0.21369346976280212,
-0.33739742636680603,
0.328589528799057,
-0.22307553887367249,
-0.37225133180618286,
-0.01711280643939972,
-0.23986810445785522,
-0.24663211405277252,
-0.22967030107975006,
0.09877030551433563,
-0.17992544174194336,
-0.29372483491897583,
0.198603093624115,
0.05527137219905853,
0.1808990240097046,
-0.10252656042575836,
0.08679867535829544,
-0.06771458685398102,
0.04081933945417404,
-0.0348983108997345,
-0.18573389947414398,
-0.05665203183889389,
-0.11856820434331894,
-0.1725611835718155,
-0.14084738492965698,
-0.23540174961090088,
0.19928008317947388,
-0.0753852054476738,
0.23141548037528992,
-0.13606798648834229,
-0.00956362672150135,
0.06425010412931442,
-0.0935908779501915,
0.5463858842849731,
0.4751864969730377,
-0.2689291834831238,
0.143405020236969,
-0.32332873344421387,
-0.017112772911787033,
-0.04418811947107315,
-0.18524710834026337,
0.1693897396326065,
0.23537318408489227,
0.153967946767807,
-0.08988300710916519,
-0.04363342747092247,
0.07795007526874542,
-0.013536049984395504,
-0.16407530009746552,
0.08173071593046188,
-0.04106172174215317,
-0.16661688685417175,
-0.23939459025859833,
0.3663625419139862,
0.06898965686559677,
0.31364259123802185,
0.014089254662394524,
-0.2847582995891571,
-0.08506461977958679,
-0.3089558780193329,
0.05843197926878929,
-0.020802771672606468,
0.3193123936653137,
0.010477607138454914,
0.13504433631896973,
-0.2640308141708374,
0.2954734265804291,
0.1380932629108429,
0.030128220096230507,
0.13110901415348053,
0.23173484206199646,
0.15209922194480896,
-0.004891513846814632,
0.3407331109046936,
0.15743063390254974,
0.0023289797827601433,
0.03918318450450897,
-0.021914031356573105,
0.3902658224105835,
-0.11591444164514542,
0.33353322744369507,
0.27732425928115845,
0.21409523487091064,
-0.35803061723709106,
-0.22834506630897522,
0.1492251455783844,
0.08471791446208954,
0.12356288731098175,
0.5383542776107788,
-0.07970377802848816,
-0.28667154908180237,
0.08953351527452469,
0.21357622742652893,
0.8268972039222717,
-0.12995989620685577,
0.10221908986568451,
0.2026882767677307,
-0.16591262817382812,
0.23995324969291687,
-0.06221424788236618,
0.23294302821159363,
-0.21491639316082,
-0.13932445645332336,
0.024263346567749977,
-0.039088163524866104,
0.12248514592647552,
-0.046109750866889954,
-0.2585180401802063,
-0.015125645324587822,
-0.22537584602832794,
-0.05661198869347572,
-0.1153111457824707,
0.003839448094367981,
0.2276584953069687,
-0.2236817628145218,
-0.09028779715299606,
0.33015209436416626,
-0.19993416965007782,
-0.141372412443161,
-0.09618475288152695,
0.10164421796798706,
0.2570006847381592,
0.10423965752124786,
-0.3447309732437134,
-0.050395116209983826,
-0.562270998954773,
0.07107071578502655,
-0.26640966534614563,
-0.46826171875,
0.0003384184092283249,
-0.028303001075983047,
0.21206189692020416,
0.25801998376846313,
0.005196303129196167,
0.2802526652812958,
-0.0005393177270889282,
-0.06366441398859024,
0.003279784694314003,
0.2407023310661316,
0.44797515869140625,
-0.18495646119117737,
-0.2873692512512207,
0.5506267547607422,
0.0019776634871959686,
-0.2876964807510376,
0.10275861620903015,
-0.007673420011997223,
-0.06472219526767731,
-0.39522334933280945,
-0.3604305386543274,
0.14809942245483398,
-0.14872246980667114,
-0.21145686507225037,
0.30577248334884644,
0.10426095128059387,
-0.2607139050960541,
0.07233651727437973,
0.10138384997844696,
-0.21812888979911804,
-0.12877580523490906,
0.15559738874435425,
0.23361685872077942,
-0.012321313843131065,
0.4842814803123474,
0.22963587939739227,
-0.11450405418872833,
-0.2515181601047516,
-0.2586406171321869,
0.33903858065605164,
-0.07314934581518173,
0.13114820420742035,
-0.03187652304768562,
-0.05018749088048935,
0.1253538876771927,
0.30230462551116943,
0.10050048679113388,
0.2856650948524475,
-0.11659607291221619,
-0.018492460250854492,
-0.7076215744018555,
-0.06532931327819824,
-0.060025643557310104,
0.21860340237617493,
0.02350863814353943,
0.3910013735294342,
0.05627306550741196,
0.09097261726856232,
-0.4736710488796234,
0.1770467758178711,
-0.563910961151123,
0.29047173261642456,
-0.2566625475883484,
-0.20542848110198975,
0.04160592332482338,
0.004028907977044582,
0.24643710255622864,
0.4243370294570923,
-0.04766327887773514,
-0.4267260432243347,
0.02160593867301941,
-0.04190567135810852,
0.11663755774497986,
-0.10296154767274857,
-0.030494950711727142,
-0.24458147585391998,
-0.14332351088523865,
-0.13619571924209595,
0.15773525834083557,
0.1895410120487213,
-0.047686636447906494,
0.119499072432518,
-0.10960716009140015,
-0.06953919678926468,
0.023749932646751404,
-0.12137982249259949,
0.06752095371484756,
0.1495753526687622,
0.3131261169910431,
-0.0734325647354126,
0.12481562793254852,
-0.03738714009523392,
-0.4617181420326233,
0.08339175581932068,
-0.09932707250118256,
0.11931563168764114,
0.069481261074543,
-0.3183686137199402,
-0.22270940244197845,
0.10849577933549881,
0.1746729463338852,
-0.017702840268611908,
-0.13916359841823578,
0.016427410766482353,
0.3587089776992798,
0.4299487769603729,
-0.2469257116317749,
0.20030517876148224,
-0.14432397484779358,
-0.16120697557926178,
0.13980001211166382,
0.12167477607727051,
-0.12826435267925262,
-0.13316524028778076,
0.05328916385769844,
0.22427964210510254,
0.09566813707351685,
-0.3333972096443176,
0.09065407514572144,
-0.08946956694126129,
-0.10644803941249847,
-0.13729263842105865,
0.12217946350574493,
0.18898455798625946,
0.2547173798084259,
0.49370360374450684,
-0.1295207440853119,
0.2689763605594635,
0.09641526639461517,
0.0695052221417427,
-0.0760655328631401,
-0.12023134529590607,
-0.24271546304225922,
0.13349810242652893,
-0.18906182050704956,
0.029656361788511276,
-0.31376519799232483,
0.19129586219787598,
-0.10228250920772552,
-0.42518794536590576,
-0.18546748161315918,
0.14707620441913605,
-0.5079357028007507,
0.1360413283109665,
0.060473233461380005,
-0.10747436434030533,
0.05501258373260498,
0.11242522299289703,
0.1630515307188034,
-0.23540623486042023,
0.24639791250228882,
0.02214720845222473,
-0.3643351197242737,
0.03533018007874489,
-0.07737169414758682,
0.2141333818435669,
0.03862187638878822,
-0.1875312328338623,
0.30761632323265076,
0.16209542751312256,
-0.223695307970047,
-0.12915422022342682,
0.22759108245372772,
0.3513892889022827,
0.32357513904571533,
-0.09980884194374084,
0.14330922067165375,
0.021764572709798813,
-0.0817323848605156,
-0.07209362834692001,
0.07891015708446503,
0.4305175244808197,
0.28878113627433777,
0.16290366649627686,
0.31045085191726685,
-0.28543758392333984,
0.19949626922607422,
0.22302007675170898,
0.15955594182014465,
-0.3771572411060333,
0.1278298944234848,
0.019839603453874588,
-0.1377461552619934,
-0.2737795114517212,
-0.02459230273962021,
-0.3497670292854309,
0.18158148229122162,
0.1511026918888092,
-0.28211894631385803,
-0.01405792124569416,
0.03944586589932442,
0.17604082822799683,
-0.08861126005649567,
0.5066300630569458,
0.12136584520339966,
0.04652739316225052,
-0.43749570846557617,
-0.3422832489013672,
-0.28399670124053955,
0.16504403948783875,
-0.18251903355121613,
0.25644901394844055,
-0.08108489215373993,
0.19389347732067108,
-0.09595335274934769,
-0.10817685723304749,
-0.048662617802619934,
0.07469011098146439,
-0.025395190343260765,
-0.09103335440158844,
-0.49749720096588135,
-0.08559122681617737,
-0.3642120957374573,
-0.025506122037768364,
0.18548369407653809,
0.008982263505458832,
0.15643759071826935,
-0.2137865275144577,
0.2555190324783325,
0.14851686358451843,
0.10380470752716064,
-0.030719125643372536,
0.27670177817344666,
0.30558767914772034,
-0.11579589545726776,
0.130289688706398,
0.21416911482810974,
0.1882016807794571,
-0.028771106153726578,
-0.2173267900943756,
-0.09552481025457382,
0.001678280532360077,
0.35644009709358215,
0.27146607637405396,
-0.10656991600990295,
-0.04647919908165932,
-0.2048802375793457,
0.24885913729667664,
0.15995003283023834,
-0.27491047978401184,
0.13925446569919586,
0.01837349496781826,
0.2895314693450928,
0.04709440842270851,
0.31795215606689453,
0.4763447940349579,
0.027108462527394295,
0.031096966937184334,
-0.36159610748291016,
-0.23764076828956604,
0.5043509006500244,
-0.0995829701423645,
-0.3100987672805786,
-0.14982110261917114,
0.08239927887916565,
0.24933335185050964,
-0.10752692073583603,
-0.7183136940002441,
-0.19505392014980316,
0.19318726658821106,
-0.08990877121686935,
-0.32743534445762634,
0.18083205819129944,
-0.2372242957353592,
0.0768355280160904,
0.10032229125499725,
0.38578155636787415,
-0.05358274281024933,
-0.10840354859828949,
0.07013443112373352,
-0.21666747331619263
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | from funnel model to bert model : error still happened
from your dataset to LineByLineTextDataset : error disapeared | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 18 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
from funnel model to bert model : error still happened
from your dataset to LineByLineTextDataset : error disapeared | [
-0.2429935336112976,
-0.03836926817893982,
-0.0662141889333725,
0.19402168691158295,
0.5733139514923096,
-0.09684962034225464,
0.3483138978481293,
0.0940258577466011,
-0.09143182635307312,
0.4046834707260132,
0.04622325301170349,
0.01358105055987835,
-0.0812721997499466,
0.3208121359348297,
-0.1960562914609909,
-0.39465275406837463,
-0.03280935436487198,
0.010243289172649384,
-0.19573140144348145,
-0.012169301509857178,
-0.012356672435998917,
-0.003392796963453293,
-0.15927927196025848,
0.08709938824176788,
-0.14104405045509338,
-0.037728309631347656,
0.0021216552704572678,
0.009034905582666397,
-0.11637593060731888,
-0.262835830450058,
0.08894351124763489,
-0.06428001821041107,
0.16728228330612183,
0.32810911536216736,
-0.00010076788021251559,
0.1339539736509323,
0.10429683327674866,
-0.11166436970233917,
-0.26355046033859253,
-0.17295880615711212,
-0.1789836287498474,
-0.1399422287940979,
0.2102268636226654,
-0.2823682129383087,
-0.16641616821289062,
0.44205769896507263,
-0.051692284643650055,
0.03373144567012787,
0.5577897429466248,
0.4128129780292511,
0.33568888902664185,
0.12123751640319824,
0.1510002166032791,
-0.2648308575153351,
0.217637300491333,
-0.005071684718132019,
-0.042559947818517685,
-0.04077890142798424,
0.10389379411935806,
-0.06983017176389694,
-0.07749868184328079,
0.35614240169525146,
0.13299481570720673,
0.1485111266374588,
0.15472671389579773,
-0.06278077512979507,
0.118886299431324,
-0.21417570114135742,
0.1081307902932167,
0.12219584733247757,
0.153458833694458,
-0.19147372245788574,
-0.05998488515615463,
0.05321415513753891,
0.015394388698041439,
-0.31829437613487244,
0.14677369594573975,
-0.016695480793714523,
-0.3548562228679657,
0.09463666379451752,
-0.10523513704538345,
-0.21755270659923553,
-0.10257761180400848,
-0.1140933483839035,
-0.1665934920310974,
0.1490674763917923,
-0.03719189018011093,
-0.05875374376773834,
0.2903490364551544,
-0.125405415892601,
0.32050782442092896,
0.1537187546491623,
0.04271021857857704,
-0.0738142654299736,
-0.22776634991168976,
-0.11704178154468536,
-0.05334634333848953,
-0.1595795750617981,
0.057126738131046295,
-0.3830278515815735,
0.250042200088501,
-0.11625733226537704,
0.1959918588399887,
0.03535421937704086,
0.31704631447792053,
0.2862798869609833,
-0.3701384365558624,
0.23911431431770325,
0.05038544535636902,
0.17463748157024384,
-0.36137697100639343,
-0.22724491357803345,
-0.11120469123125076,
-0.326797217130661,
-0.08005920052528381,
-0.032748933881521225,
0.07927869260311127,
-0.16198773682117462,
-0.272268682718277,
0.1725316345691681,
-0.2548823952674866,
0.2640635669231415,
0.25598984956741333,
0.4726041853427887,
0.00601536687463522,
0.20890158414840698,
0.13218308985233307,
0.010428234934806824,
-0.07138874381780624,
-0.06968839466571808,
-0.26880115270614624,
0.062410641461610794,
-0.3850221633911133,
-0.15378421545028687,
0.11058296263217926,
0.00351664237678051,
0.23799274861812592,
-0.10263409465551376,
0.05203710123896599,
-0.18902064859867096,
0.07476651668548584,
-0.32090091705322266,
0.0013833492994308472,
0.1301468312740326,
0.34648823738098145,
0.03608103096485138,
0.020009541884064674,
-0.024987410753965378,
0.2250242531299591,
0.2758370339870453,
-0.4562952518463135,
-0.39840802550315857,
0.09507536143064499,
0.29982054233551025,
0.38165897130966187,
0.09911718964576721,
-0.1765722930431366,
0.15996558964252472,
0.19639411568641663,
-0.04913930594921112,
-0.030524782836437225,
-0.20067352056503296,
-0.0990438163280487,
-0.10392593592405319,
0.315883994102478,
0.391621470451355,
-0.42162641882896423,
-0.11405936628580093,
-0.1328943371772766,
-0.014219280332326889,
0.38961878418922424,
0.5055035948753357,
-0.4047173857688904,
0.15587446093559265,
-0.054360583424568176,
0.026963740587234497,
0.3355778753757477,
-0.2730365991592407,
-0.20736141502857208,
0.10219322890043259,
0.08259990811347961,
-0.06464537978172302,
-0.2675141990184784,
-0.24818940460681915,
0.3915964961051941,
0.026449386030435562,
0.2502971291542053,
0.08183085173368454,
-0.25808149576187134,
0.18152840435504913,
-0.2347029596567154,
-0.04935455322265625,
0.1143748015165329,
-0.08367811143398285,
0.22231519222259521,
0.017153486609458923,
-0.2288852035999298,
0.3926408886909485,
0.0965137779712677,
-0.1182943731546402,
0.14004044234752655,
0.28749722242355347,
0.3379262685775757,
0.009010635316371918,
-0.07410148531198502,
0.15340203046798706,
-0.02642536163330078,
-0.04336632415652275,
-0.09667380154132843,
0.07823427021503448,
-0.07320071756839752,
-0.10022727400064468,
-0.047079700976610184,
0.0761653408408165,
0.03290878236293793,
-0.2485424280166626,
0.335554301738739,
0.006359711289405823,
-0.24552369117736816,
-0.07196391373872757,
0.023884054273366928,
0.06178314983844757,
-0.4273531138896942,
0.12834027409553528,
0.2538412809371948,
0.17705009877681732,
-0.3252508342266083,
-0.0646980032324791,
0.07312143594026566,
0.19531339406967163,
0.12153302133083344,
0.022677676752209663,
-0.19381964206695557,
0.2192293405532837,
-0.09491471201181412,
-0.005696825683116913,
0.1321401596069336,
-0.21012409031391144,
0.07618807256221771,
-0.18188761174678802,
-0.138900026679039,
-0.04909522458910942,
0.24144473671913147,
0.039605557918548584,
0.03893312066793442,
-0.04279918968677521,
0.2721198797225952,
0.10307024419307709,
0.2746950387954712,
0.06659125536680222,
0.318139910697937,
0.0306631438434124,
0.2861679196357727,
-0.10760577023029327,
0.17055290937423706,
0.13054823875427246,
0.3169271945953369,
0.022552361711859703,
-0.3410424292087555,
0.022645704448223114,
0.40996184945106506,
0.23499611020088196,
0.03243180364370346,
0.299237459897995,
-0.11926569789648056,
-0.12152408808469772,
-0.05602771043777466,
-0.02526872605085373,
0.06448870897293091,
0.1639999896287918,
0.19572091102600098,
0.018465882167220116,
-0.06645741313695908,
-0.12169337272644043,
0.2433013617992401,
0.09436097741127014,
0.045273296535015106,
-0.10183552652597427,
0.17762823402881622,
-0.13063780963420868,
-0.249330073595047,
-0.08615723252296448,
0.232369065284729,
0.4989035129547119,
-0.2284735143184662,
0.0629909485578537,
-0.08762484043836594,
-0.031760506331920624,
-0.1993570625782013,
-0.34560054540634155,
-0.059401895850896835,
-0.05105356127023697,
0.17636354267597198,
0.2323438674211502,
-0.08684974908828735,
0.3003811836242676,
0.35043826699256897,
0.2910870909690857,
0.08623252063989639,
0.3322998881340027,
-0.06941153854131699,
-0.27613937854766846,
-0.10768773406744003,
0.2419588565826416,
0.2913649082183838,
0.042475782334804535,
0.04510260000824928,
0.06426167488098145,
0.06966923177242279,
0.012854783795773983,
-0.1309441477060318,
0.015497162938117981,
0.06093961000442505,
0.23332494497299194,
-0.009448379278182983,
0.3017677068710327,
-0.23264595866203308,
-0.35266566276550293,
0.22103457152843475,
0.012278294190764427,
-0.20541346073150635,
-0.0669536143541336,
0.04792995750904083,
-0.12713223695755005,
-0.1160665899515152,
-0.2654437720775604,
-0.18987616896629333,
-0.4146496653556824,
-0.16633476316928864,
-0.10740464925765991,
0.07278198003768921,
-0.2737424671649933,
0.2912787199020386,
0.3617986738681793,
0.2805691659450531,
-0.010073719546198845,
-0.08601938188076019,
-0.13757558166980743,
-0.10627926886081696,
-0.2191571295261383,
-0.2372310608625412,
-0.05874834582209587,
0.12960052490234375,
0.36591583490371704,
0.06285789608955383,
-0.4608672857284546,
0.2224970906972885,
-0.04459220916032791,
-0.325199156999588,
0.03332670032978058,
-0.12585517764091492,
0.3331926465034485,
0.15925712883472443,
-0.2517321705818176,
0.001817401498556137,
-0.09338828921318054,
0.0826415866613388,
-0.2295023500919342,
0.2506912350654602,
-0.444475382566452,
0.6022288799285889,
0.05268166586756706,
0.8941941261291504,
-0.12792690098285675,
-0.05367476865649223,
0.379896342754364,
0.05992130935192108,
0.15541723370552063,
-0.3653232157230377,
-0.281101256608963,
0.28109392523765564,
-0.16169172525405884,
-0.21784378588199615,
0.07930637151002884,
-0.2124577760696411,
-0.35455915331840515,
-0.21426814794540405,
0.050660911947488785,
-0.16147977113723755,
-0.37491339445114136,
0.16032381355762482,
0.1664029210805893,
0.25913912057876587,
0.07933224737644196,
0.033084623515605927,
-0.08240370452404022,
-0.0262373685836792,
-0.06186586245894432,
-0.00661768764257431,
-0.040413178503513336,
-0.12206660211086273,
-0.021757956594228745,
-0.24045968055725098,
-0.525493860244751,
0.20494869351387024,
-0.03685835376381874,
0.12657415866851807,
-0.21060709655284882,
-0.009733445942401886,
0.035716429352760315,
-0.21149219572544098,
0.6061288118362427,
0.20602744817733765,
-0.20617763698101044,
-0.045147426426410675,
-0.12124969810247421,
-0.004387920722365379,
0.045268844813108444,
-0.259674072265625,
-0.049376457929611206,
0.2248394638299942,
0.17284095287322998,
-0.10166925936937332,
-0.07975301891565323,
0.09452511370182037,
-0.1879914104938507,
-0.13708220422267914,
0.13490727543830872,
-0.049863122403621674,
-0.08428989350795746,
-0.31334739923477173,
0.3950282633304596,
0.077430360019207,
0.18357260525226593,
-0.08992848545312881,
-0.28491196036338806,
-0.12121233344078064,
-0.11383642256259918,
0.006107933819293976,
0.0708378255367279,
0.2786097824573517,
0.0029746880754828453,
0.15231859683990479,
-0.29937875270843506,
0.3828774690628052,
0.5157996416091919,
0.11901798099279404,
-0.08741746842861176,
-0.19025230407714844,
0.18585866689682007,
0.12490731477737427,
0.14549051225185394,
0.2861871123313904,
0.12575384974479675,
0.18245398998260498,
0.07277299463748932,
0.23403975367546082,
0.14027157425880432,
0.46385255455970764,
0.2891489863395691,
0.2993735373020172,
-0.4249514639377594,
-0.1256251484155655,
0.08569137752056122,
-0.034013912081718445,
0.08353295922279358,
0.2930765151977539,
0.04907301068305969,
-0.30223944783210754,
0.32438594102859497,
0.08704451471567154,
0.8639280796051025,
-0.07929578423500061,
0.1802264004945755,
0.19187113642692566,
-0.17099827527999878,
0.15232427418231964,
-0.09370473772287369,
0.10805149376392365,
-0.15156152844429016,
-0.032203756272792816,
-0.017532676458358765,
0.04990623518824577,
0.037655506283044815,
-0.0029824599623680115,
-0.394014835357666,
0.013487761840224266,
-0.20693297684192657,
-0.10536268353462219,
-0.21268132328987122,
-0.06337830424308777,
0.2877334654331207,
-0.18582125008106232,
-0.2617967426776886,
0.2688199281692505,
0.0012029744684696198,
-0.03327035531401634,
-0.14949166774749756,
-0.10488582402467728,
0.3056623041629791,
-0.14472675323486328,
-0.24450281262397766,
0.029904522001743317,
-0.5581151843070984,
0.027568671852350235,
-0.18097633123397827,
-0.5129509568214417,
0.10471414029598236,
-0.008155230432748795,
0.2973899841308594,
0.16034123301506042,
-0.18869973719120026,
0.4027431905269623,
0.1041327640414238,
-0.03094051219522953,
-0.05848301574587822,
0.2015683650970459,
0.37388095259666443,
-0.20048591494560242,
-0.2093765288591385,
0.373948335647583,
-0.14684168994426727,
-0.29748523235321045,
0.0071602314710617065,
-0.0817926675081253,
0.2527707815170288,
-0.3473985493183136,
-0.2459542602300644,
0.21328696608543396,
-0.16708514094352722,
-0.26385653018951416,
0.2789061367511749,
-0.13555766642093658,
-0.18373192846775055,
-0.07560565322637558,
0.07955972850322723,
-0.12855304777622223,
-0.09470494091510773,
0.04978273808956146,
0.05821099877357483,
0.2909926474094391,
0.5716344118118286,
0.12001416087150574,
-0.1638106256723404,
-0.2546852231025696,
-0.21720081567764282,
0.5439653396606445,
-0.05711826682090759,
0.20541317760944366,
0.08801537752151489,
-0.11927751451730728,
0.09425786882638931,
0.32804569602012634,
-0.0314897820353508,
0.151656836271286,
-0.07716920971870422,
-0.08614449948072433,
-0.6292020678520203,
-0.008025892078876495,
-0.1333271712064743,
0.1587742120027542,
0.03172251582145691,
0.3995528221130371,
0.13590165972709656,
0.07406383752822876,
-0.4038144648075104,
0.18540003895759583,
-0.48036184906959534,
0.2574850022792816,
-0.3123632073402405,
-0.22114849090576172,
0.15005667507648468,
0.018397290259599686,
0.19831714034080505,
0.3915613293647766,
-0.08780534565448761,
-0.38812023401260376,
-0.051621269434690475,
0.01292245090007782,
0.05362517386674881,
-0.04442618042230606,
-0.02429511770606041,
-0.0771125853061676,
-0.16461318731307983,
-0.1381659358739853,
0.16057296097278595,
0.1419166922569275,
-0.00702376663684845,
-0.10029318183660507,
0.0486864373087883,
0.08146063983440399,
0.021853722631931305,
-0.06664241850376129,
0.3228675127029419,
-0.047147899866104126,
0.042588479816913605,
-0.020396225154399872,
0.044423624873161316,
-0.11828531324863434,
-0.3260065019130707,
0.06150388345122337,
0.07194888591766357,
0.24596810340881348,
-0.013994067907333374,
-0.13440701365470886,
-0.11723190546035767,
0.009473614394664764,
0.2008042186498642,
0.06646028161048889,
-0.08165803551673889,
0.08268271386623383,
0.5198849439620972,
0.354341596364975,
-0.3999358117580414,
0.13678988814353943,
-0.1783645749092102,
-0.23018895089626312,
0.04037388786673546,
-0.061636485159397125,
-0.2664194107055664,
0.017592675983905792,
0.11388571560382843,
0.29834067821502686,
-0.2819613516330719,
-0.2614426016807556,
0.01453996542841196,
0.05352609604597092,
-0.23070275783538818,
0.0569043830037117,
0.07766523212194443,
0.08079034090042114,
0.2725350856781006,
0.5964996218681335,
-0.08891221135854721,
0.20896320044994354,
-0.015184290707111359,
0.04999915510416031,
0.08814843744039536,
-0.22118458151817322,
-0.43664470314979553,
0.12125134468078613,
-0.1020079106092453,
0.18626543879508972,
-0.20014816522598267,
0.28237926959991455,
-0.05793503299355507,
-0.5546736717224121,
-0.22745954990386963,
0.12140762805938721,
-0.45572757720947266,
-0.23737213015556335,
-0.07752465456724167,
-0.06846664100885391,
0.11235857009887695,
0.1091136783361435,
0.08120281994342804,
0.043842341750860214,
0.26969945430755615,
0.033001769334077835,
-0.18808461725711823,
-0.03531251847743988,
-0.0883556678891182,
0.31323161721229553,
-0.04309936612844467,
-0.14550158381462097,
0.3132101595401764,
-0.030494973063468933,
-0.3657896816730499,
-0.008171971887350082,
0.18434281647205353,
0.33743664622306824,
0.36834096908569336,
-0.003150027245283127,
-0.04104629531502724,
0.0691152811050415,
-0.1306321769952774,
-0.11712697893381119,
0.03893422707915306,
0.6038048267364502,
0.3613380789756775,
0.1704287976026535,
0.20674052834510803,
-0.2698080837726593,
0.2160949558019638,
0.17427662014961243,
0.23780539631843567,
-0.2703261971473694,
0.1327989399433136,
0.08808940649032593,
0.0074964165687561035,
-0.3903084397315979,
0.03456467390060425,
-0.4844127595424652,
0.2789466679096222,
0.10594640672206879,
-0.21622107923030853,
0.007046384736895561,
-0.028463367372751236,
0.13265547156333923,
-0.07668940722942352,
0.47838079929351807,
0.14066879451274872,
-0.0817660316824913,
-0.4501727521419525,
-0.22138340771198273,
-0.32045629620552063,
0.0801495611667633,
-0.1993788778781891,
0.49618664383888245,
-0.13125953078269958,
0.17480583488941193,
-0.17136690020561218,
-0.05460354685783386,
0.10647177696228027,
-0.19124451279640198,
-0.20399586856365204,
-0.07291331887245178,
-0.5115631818771362,
-0.056844111531972885,
-0.4868828058242798,
-0.048414357006549835,
0.27847999334335327,
-0.14541921019554138,
0.2637948989868164,
-0.06526254862546921,
0.17791083455085754,
0.23983071744441986,
0.13732001185417175,
0.13421843945980072,
0.23331356048583984,
0.252361536026001,
-0.11934125423431396,
0.21229299902915955,
0.08453065156936646,
0.18724654614925385,
-0.017774399369955063,
-0.334573358297348,
-0.16545560956001282,
-0.16050004959106445,
0.3346557319164276,
0.2071070522069931,
-0.21511775255203247,
-0.1514473408460617,
-0.27278414368629456,
0.032260678708553314,
0.1696406900882721,
-0.24076798558235168,
-0.056663475930690765,
0.0915062204003334,
0.3267951011657715,
-0.008162726648151875,
0.11933690309524536,
0.35210561752319336,
-0.0016530118882656097,
-0.019166890531778336,
-0.44114619493484497,
-0.2393816113471985,
0.6260101795196533,
-0.16501252353191376,
-0.2551420331001282,
-0.0921272337436676,
-0.015495195984840393,
0.43613749742507935,
-0.1941235512495041,
-0.9336689710617065,
-0.07605142891407013,
0.07276728004217148,
0.02007020264863968,
-0.438741534948349,
0.08508691191673279,
-0.17843568325042725,
0.2450277954339981,
-0.07050369679927826,
0.4420757591724396,
0.0784846693277359,
-0.21921217441558838,
0.21607935428619385,
-0.17098456621170044
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.