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/4152 | ArrayND error in pyarrow 5 | We need to bump it in `setup.py` as well as update some CI job to use pyarrow 6 instead of 5 in `.circleci/config.yaml` and `.github/workflows/benchmarks.yaml` | As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5:
```python
import pyarrow as pa
from datasets import Array2D
from datasets.table import cast_array_to_feature
arr = pa.array([[[0]]])
feature_type = Array2D(shape=(1, 1), dtype="int64")
cast_array_to_feature(arr, feature_type)
```
raises
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-04610f9fa78c> in <module>
----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32"))
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str)
1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str)
1807 elif not isinstance(feature, (Sequence, dict, list, tuple)):
-> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
1810
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str)
1705 array = array.storage
1706 if isinstance(pa_type, pa.ExtensionType):
-> 1707 return pa_type.wrap_array(array)
1708 elif pa.types.is_struct(array.type):
1709 if pa.types.is_struct(pa_type) and (
AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array'
```
The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails.
`wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5 | 25 | ArrayND error in pyarrow 5
As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5:
```python
import pyarrow as pa
from datasets import Array2D
from datasets.table import cast_array_to_feature
arr = pa.array([[[0]]])
feature_type = Array2D(shape=(1, 1), dtype="int64")
cast_array_to_feature(arr, feature_type)
```
raises
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-04610f9fa78c> in <module>
----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32"))
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str)
1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str)
1807 elif not isinstance(feature, (Sequence, dict, list, tuple)):
-> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}")
1810
~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs)
1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
1673 else:
-> 1674 return func(array, *args, **kwargs)
1675
1676 return wrapper
~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str)
1705 array = array.storage
1706 if isinstance(pa_type, pa.ExtensionType):
-> 1707 return pa_type.wrap_array(array)
1708 elif pa.types.is_struct(array.type):
1709 if pa.types.is_struct(pa_type) and (
AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array'
```
The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails.
`wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5
We need to bump it in `setup.py` as well as update some CI job to use pyarrow 6 instead of 5 in `.circleci/config.yaml` and `.github/workflows/benchmarks.yaml` | [
-0.27178874611854553,
0.0057998597621917725,
-0.09467674791812897,
0.07623609900474548,
0.17722000181674957,
-0.13541190326213837,
0.5197150111198425,
0.28534582257270813,
-0.150676429271698,
-0.15376414358615875,
-0.38038378953933716,
0.10658343136310577,
0.00128842331469059,
0.10347532480955124,
0.0800986960530281,
-0.18475337326526642,
-0.03334123641252518,
0.21531274914741516,
-0.08204710483551025,
0.16366195678710938,
-0.2497321516275406,
0.1367577761411667,
-0.36536192893981934,
0.35666102170944214,
-0.01739555038511753,
0.1811755895614624,
0.12129579484462738,
-0.036400407552719116,
-0.07846672832965851,
-0.49175748229026794,
0.5164661407470703,
-0.24085548520088196,
0.02156987413764,
-0.09414208680391312,
-0.00011475250357761979,
0.04572519659996033,
0.2521471679210663,
0.0827406570315361,
0.0017754286527633667,
0.18415024876594543,
0.4386560022830963,
-0.03728700429201126,
0.17795321345329285,
-0.33028849959373474,
0.07210128009319305,
-0.46650394797325134,
-0.09151364117860794,
0.6173185706138611,
0.33078503608703613,
0.1018359586596489,
0.21714356541633606,
0.3780941367149353,
0.6151909232139587,
-0.019419528543949127,
0.37063223123550415,
0.41305285692214966,
-0.2798079550266266,
0.2551673650741577,
0.16709305346012115,
-0.22087913751602173,
0.21045756340026855,
-0.04278721660375595,
-0.25578999519348145,
0.1453922539949417,
0.23628273606300354,
0.14894108474254608,
0.27677246928215027,
-0.15705756843090057,
-0.02648383378982544,
-0.022114679217338562,
0.2115543782711029,
-0.2876385748386383,
-0.19343677163124084,
-0.09083779156208038,
-0.05962792783975601,
-0.3843427896499634,
-0.03534912317991257,
0.10442593693733215,
-0.22767624258995056,
0.23337429761886597,
-0.05564923956990242,
0.21522660553455353,
-0.15353044867515564,
0.2728591561317444,
-0.19015870988368988,
-0.07328721880912781,
0.04066053032875061,
0.035104334354400635,
-0.03746921196579933,
-0.3355245590209961,
0.010416977107524872,
0.1093519926071167,
0.12528863549232483,
-0.022331345826387405,
-0.06593631207942963,
-0.10539766401052475,
-0.004494599997997284,
-0.5112830400466919,
0.27023354172706604,
-0.11162649095058441,
-0.1669173240661621,
-0.05915295332670212,
0.012638560496270657,
0.24406081438064575,
-0.14708611369132996,
-0.09672567248344421,
0.011401653289794922,
-0.018156029284000397,
0.09477262198925018,
0.006601704750210047,
0.15753795206546783,
0.07859105616807938,
0.2705767750740051,
-0.17415441572666168,
0.240276500582695,
-0.16813260316848755,
0.6953444480895996,
-0.262577623128891,
-0.333761602640152,
-0.0657653883099556,
-0.1223004087805748,
-0.09924682974815369,
0.06651444733142853,
0.3537713587284088,
0.2728580832481384,
-0.09134203940629959,
-0.12022170424461365,
0.1806822121143341,
-0.22503872215747833,
-0.1263047158718109,
-0.08699603378772736,
0.17956510186195374,
-0.019549746066331863,
-0.015776777639985085,
0.21659313142299652,
0.2129371017217636,
0.23880617320537567,
0.03882532939314842,
0.00205887109041214,
0.44129693508148193,
-0.26376914978027344,
-0.07114066183567047,
0.09578128159046173,
0.280743807554245,
-0.1506766527891159,
0.005022089928388596,
0.04424845054745674,
0.17230957746505737,
-0.08807534724473953,
0.08583591133356094,
-0.14215701818466187,
-0.09972918033599854,
-0.21354584395885468,
0.19178569316864014,
-0.03305381163954735,
-0.003722984343767166,
-0.07201311737298965,
-0.10902568697929382,
0.33629587292671204,
-0.5219531059265137,
0.10835084319114685,
-0.45679789781570435,
-0.1994604766368866,
-0.32145583629608154,
0.2787404954433441,
-0.018679559230804443,
-0.10946369171142578,
-0.06759396195411682,
0.22900989651679993,
-0.11690093576908112,
0.1602257639169693,
0.24207334220409393,
-0.1380014419555664,
-0.07389115542173386,
-0.17892369627952576,
0.35441499948501587,
0.343727171421051,
0.11715276539325714,
-0.339192658662796,
-0.07504210621118546,
0.19799746572971344,
-0.033718835562467575,
-0.0441422238945961,
0.10839423537254333,
0.08807491511106491,
-0.13438262045383453,
0.09213387221097946,
0.3776664137840271,
-0.012001825496554375,
-0.10831499844789505,
-0.3249002993106842,
-0.17414841055870056,
0.3777461647987366,
0.20525041222572327,
0.006411761045455933,
-0.044923774898052216,
0.2224486768245697,
0.07204192876815796,
-0.023235216736793518,
-0.36678895354270935,
0.10933921486139297,
-0.021257169544696808,
0.37426260113716125,
-0.2663787007331848,
0.1487690955400467,
-0.462875634431839,
-0.42004314064979553,
0.1641431748867035,
-0.2759966254234314,
-0.1430664211511612,
-0.32258808612823486,
0.0459221750497818,
-0.1851160228252411,
0.18299566209316254,
-0.13328047096729279,
-0.1322416365146637,
0.10952292382717133,
-0.09811072051525116,
0.009136538952589035,
-0.038670942187309265,
-0.0963958278298378,
-0.0754866749048233,
-0.06345731019973755,
0.17061302065849304,
-0.30399730801582336,
0.6566857695579529,
-0.25510504841804504,
-0.6518365144729614,
-0.1243504211306572,
0.17188048362731934,
0.11400685459375381,
0.05590914189815521,
0.007512921467423439,
0.2563118636608124,
-0.03016337938606739,
-0.3432929515838623,
-0.5049982070922852,
0.1940208375453949,
0.0912524089217186,
-0.4416203200817108,
-0.06804290413856506,
0.1615922898054123,
0.04069080948829651,
-0.14570078253746033,
0.362591415643692,
0.2576723098754883,
-0.17974688112735748,
0.12535761296749115,
0.10681448876857758,
0.16454863548278809,
0.08983009308576584,
0.19741210341453552,
0.3377680480480194,
0.004974052309989929,
0.1279381662607193,
-0.19787153601646423,
0.17315402626991272,
-0.05218653380870819,
-0.17005136609077454,
0.37136563658714294,
0.23927561938762665,
0.04783188924193382,
0.16173042356967926,
0.1344880759716034,
0.029621411114931107,
-0.03145873174071312,
0.040901146829128265,
-0.45447060465812683,
0.30850744247436523,
0.24662268161773682,
-0.11218447983264923,
0.19394855201244354,
-0.28923484683036804,
-0.05182187631726265,
0.033412300050258636,
-0.005317941308021545,
0.16799110174179077,
0.17515507340431213,
0.24593660235404968,
0.06741741299629211,
-0.24292078614234924,
-0.3855276107788086,
0.09909088909626007,
0.3407403230667114,
-0.38883593678474426,
-0.11046735942363739,
-0.1255934238433838,
-0.3685087263584137,
-0.09414175897836685,
-0.25206074118614197,
-0.19952747225761414,
-0.10950762778520584,
-0.02791167050600052,
0.5324671864509583,
-0.12539488077163696,
0.25603821873664856,
-0.18498045206069946,
-0.4749094843864441,
0.20233154296875,
0.010995261371135712,
-0.046133480966091156,
0.014010842889547348,
0.059238217771053314,
0.08072075247764587,
0.21200765669345856,
0.20204608142375946,
0.09105326980352402,
0.005198197439312935,
-0.16616453230381012,
-0.26375266909599304,
-0.35942545533180237,
0.07058504968881607,
-0.09041832387447357,
0.0878947377204895,
0.2975558042526245,
0.19076117873191833,
-0.41724294424057007,
-0.33693423867225647,
0.40292567014694214,
-0.08394234627485275,
-0.39999377727508545,
0.4370785057544708,
-0.030186133459210396,
-0.21295079588890076,
-0.23331646621227264,
-0.25821393728256226,
-0.20155774056911469,
-0.29284095764160156,
0.19572407007217407,
-0.0790848582983017,
0.08108779042959213,
0.11981478333473206,
0.049113303422927856,
0.07883729785680771,
-0.05581849440932274,
-0.011556385084986687,
0.04088430479168892,
0.5339933633804321,
0.302731454372406,
-0.20833928883075714,
-0.2443571239709854,
-0.27198705077171326,
-0.12094460427761078,
0.011971049010753632,
0.2026372104883194,
-0.014131169766187668,
-0.48182764649391174,
-0.3377826511859894,
0.613494336605072,
-0.18298961222171783,
-0.14729070663452148,
0.33569881319999695,
0.020671095699071884,
-0.05545904487371445,
0.09589671343564987,
-0.004916539415717125,
0.1266743242740631,
0.21657982468605042,
-0.0614047572016716,
0.007805444300174713,
0.16851338744163513,
-0.12755906581878662,
0.4383891224861145,
-0.17037229239940643,
-0.02068692073225975,
0.4818204641342163,
-0.18016155064105988,
0.04783184826374054,
-0.15547269582748413,
-0.3173239231109619,
-0.05190720781683922,
0.01985543966293335,
-0.03231571614742279,
-0.06654952466487885,
-0.19709286093711853,
-0.2736833989620209,
-0.023288793861865997,
-0.3783113956451416,
-0.21303734183311462,
-0.08281312137842178,
-0.038829341530799866,
0.19660326838493347,
0.31600627303123474,
0.011784117668867111,
-0.0354379341006279,
0.19062162935733795,
-0.14730381965637207,
-0.09171402454376221,
-0.12243828177452087,
0.12256867438554764,
-0.12416225671768188,
-0.5762774348258972,
-0.486705482006073,
-0.1274280846118927,
0.33311209082603455,
0.31554120779037476,
0.32469528913497925,
-0.15919911861419678,
-0.041128695011138916,
-0.06304088234901428,
-0.026357850059866905,
0.46140342950820923,
0.1515037715435028,
0.14360439777374268,
0.21500720083713531,
0.06310420483350754,
-0.5561505556106567,
-0.4562472701072693,
-0.12279748916625977,
-0.21713712811470032,
0.07334169745445251,
-0.09554217755794525,
-0.3264753818511963,
0.05437136068940163,
0.5049539804458618,
0.14812712371349335,
-0.007146801799535751,
-0.00749463215470314,
-0.2030957043170929,
-0.4225265681743622,
-0.16577498614788055,
-0.08696449548006058,
0.21923744678497314,
0.23361855745315552,
0.054851047694683075,
0.1027715653181076,
-0.1042403131723404,
0.04345294088125229,
-0.16777156293392181,
0.23738472163677216,
0.11438602209091187,
-0.2315850704908371,
0.2744174003601074,
-0.3416726887226105,
0.15887251496315002,
0.1925714612007141,
0.19881711900234222,
0.3738138973712921,
-0.24581393599510193,
-0.05722185969352722,
-0.031093239784240723,
0.1900518536567688,
-0.09897930920124054,
-0.2556058168411255,
0.06980664283037186,
-0.30418968200683594,
0.0340687558054924,
0.42009079456329346,
-0.15453863143920898,
0.43005678057670593,
-0.26909852027893066,
0.06636267155408859,
-0.04695666581392288,
0.4011407494544983,
-0.09564734995365143,
0.1474834829568863,
-0.1665928214788437,
0.2590816020965576,
0.0039372569881379604,
0.19860920310020447,
0.03812301531434059,
0.49340033531188965,
0.2660193145275116,
-0.034450795501470566,
0.7776418924331665,
-0.42477768659591675,
0.11356081068515778,
0.34239327907562256,
0.07790464162826538,
-0.3839230537414551,
-0.2817510664463043,
-0.04419254511594772,
-0.12269726395606995,
-0.0848175659775734,
-0.17916598916053772,
-0.21807047724723816,
0.2563405930995941,
0.23681505024433136,
0.20449122786521912,
0.09226583689451218,
-0.14907169342041016,
0.27086883783340454,
0.0031320927664637566,
-0.3886566758155823,
0.05797576904296875,
-0.22122062742710114,
-0.011884365230798721,
-0.05370365455746651,
-0.25853586196899414,
0.09772680699825287,
-0.2184644639492035,
-0.13994652032852173,
0.17761129140853882,
-0.12151305377483368,
0.4267791509628296,
0.37417182326316833,
-0.19357648491859436,
-0.09030203521251678,
0.08262189477682114,
0.06167241930961609,
-0.33403700590133667,
-0.15781064331531525,
-0.04948880150914192,
-0.07776489108800888,
0.09469259530305862,
0.04467421770095825,
0.012466139160096645,
0.4280087351799011,
-0.2440129518508911,
-0.22696538269519806,
0.052121974527835846,
0.04158007353544235,
0.014514423906803131,
-0.31589269638061523,
-0.1245136708021164,
-0.0170983225107193,
-0.47743722796440125,
-0.14737778902053833,
-0.2501296401023865,
-0.20973347127437592,
-0.2710486650466919,
0.08905822038650513,
-0.11024433374404907,
-0.018356015905737877,
0.19496449828147888,
-0.17015688121318817,
-0.19883540272712708,
-0.148162841796875,
0.2623702883720398,
0.02254895120859146,
0.06578212231397629,
0.35848742723464966,
0.15518905222415924,
-0.1844782531261444,
-0.05086390674114227,
-0.20283758640289307,
0.2677136957645416,
-0.7148476839065552,
-0.018247246742248535,
-0.04872877523303032,
0.391501784324646,
0.03792586177587509,
0.14585021138191223,
0.021904807537794113,
0.06131114438176155,
0.03463023528456688,
-0.13965073227882385,
-0.18023429811000824,
0.5466535687446594,
0.12172111868858337,
0.034017644822597504,
0.2133859395980835,
0.281750351190567,
0.001970941200852394,
-0.17293590307235718,
-0.27646559476852417,
-0.022930782288312912,
0.022491218522191048,
0.23479335010051727,
-0.13194282352924347,
-0.11522894352674484,
-0.10555338114500046,
0.04744115471839905,
0.14227110147476196,
0.1121634989976883,
-0.1685362160205841,
-0.16868841648101807,
0.1477321833372116,
0.12391625344753265,
-0.07979392260313034,
-0.20996873080730438,
-0.27228638529777527,
0.08932441473007202,
-0.20988787710666656,
-0.02964409813284874,
0.0013571809977293015,
0.10198680311441422,
-0.08070296049118042,
0.3909902572631836,
-0.05952377989888191,
0.15404146909713745,
-0.09028127044439316,
0.20667453110218048,
-0.22511133551597595,
-0.07357054948806763,
0.019457612186670303,
0.3448610305786133,
-0.10892829298973083,
0.0014797300100326538,
-0.47068724036216736,
-0.08297402411699295,
-0.3386877775192261,
-0.17038312554359436,
0.21823492646217346,
-0.5811411142349243,
-0.36964279413223267,
-0.373119056224823,
0.5394624471664429,
0.1633262038230896,
-0.15127219259738922,
0.02453341893851757,
0.19848939776420593,
0.1882714331150055,
-0.42169082164764404,
0.16828399896621704,
0.7164902091026306,
0.18147973716259003,
0.04763605073094368,
0.22802621126174927,
0.21704164147377014,
-0.2522489130496979,
0.08794192224740982,
0.34025850892066956,
0.18649938702583313,
-0.014535617083311081,
-0.22085458040237427,
0.7124539017677307,
0.11334198713302612,
0.08071266114711761,
0.3296816945075989,
0.1996254175901413,
0.30486613512039185,
0.42834538221359253,
-0.3584875464439392,
0.27294695377349854,
-0.016942277550697327,
0.04187276214361191,
0.3258669376373291,
0.16253294050693512,
-0.36500534415245056,
0.10246742516756058,
0.27937155961990356,
-0.08657804876565933,
0.02680792659521103,
0.29248109459877014,
0.19746969640254974,
-0.5114814639091492,
-0.05889704078435898,
0.3605253994464874,
-0.21150463819503784,
0.29538944363594055,
0.1333400458097458,
-0.11801426112651825,
-0.01774357631802559,
-0.11026249825954437,
-0.09513743221759796,
-0.015212886035442352,
0.4596325159072876,
0.04843303561210632,
-0.14722366631031036,
-0.26482507586479187,
0.6610993146896362,
0.35123634338378906,
0.1475151628255844,
-0.09636341035366058,
0.027220800518989563,
0.45991653203964233,
-0.2927056849002838,
-0.020855218172073364,
0.5216980576515198,
0.5801743865013123,
0.2747909426689148,
-0.006537130102515221,
-0.2131662368774414,
-0.16250523924827576,
-0.1972871720790863,
0.11373667418956757,
0.025819258764386177,
-0.07783260941505432,
0.4600672721862793,
0.2007567137479782,
0.12065359950065613,
-0.10135984420776367,
0.14649349451065063,
0.021171782165765762,
0.0428219810128212,
-0.2806961238384247,
0.25084686279296875,
-0.19982577860355377,
-0.5479168891906738,
0.14786376059055328,
-0.020157836377620697,
-0.3164597451686859,
0.027344316244125366,
0.04935678094625473,
0.2129112184047699,
0.06747271120548248,
0.08669443428516388,
0.07205840945243835,
-0.03734920918941498,
0.34025028347969055,
0.35781970620155334,
0.16932225227355957,
-0.031864285469055176,
0.08582793176174164,
-0.45420610904693604,
0.19407658278942108,
-0.1598658561706543,
-0.1302824467420578,
0.41953185200691223,
0.13030345737934113,
-0.06013993173837662,
0.22005605697631836,
0.11441856622695923,
0.06193317845463753,
-0.2224251925945282,
0.608285665512085,
-0.3561330735683441,
0.10858671367168427,
0.21392427384853363,
0.0018685515969991684,
-0.1952570080757141,
-0.13962754607200623,
0.3736504018306732,
-0.45889630913734436,
0.06343349814414978,
0.020490115508437157,
-0.025024469941854477,
0.11068131029605865,
0.2262789011001587,
0.0990687683224678,
0.21217277646064758,
0.3203153908252716,
0.07215946167707443,
0.13178156316280365,
-0.11626364290714264,
-0.49481135606765747,
0.09301110357046127,
0.37749505043029785,
0.031111229211091995,
0.5099117755889893,
0.1838466078042984,
0.10020090639591217,
-0.18631437420845032,
0.6576113104820251,
-0.22857248783111572,
-0.04999298229813576,
0.18094417452812195,
0.20506326854228973,
-0.00877726823091507,
0.10074687004089355,
-0.27037954330444336,
-0.23599624633789062,
0.1015472337603569,
0.048053160309791565,
-0.38783544301986694,
-0.746871829032898,
0.41380658745765686,
0.031371355056762695,
-0.22521373629570007,
-0.13887760043144226,
0.18841436505317688,
0.468020498752594,
0.06751277297735214,
-0.5640658140182495,
-0.11533329635858536,
0.3598385155200958,
0.004320718348026276,
-0.13997066020965576,
0.26865726709365845,
0.15256533026695251,
0.018704835325479507,
-0.09527039527893066,
0.18614953756332397,
-0.09058044850826263,
-0.33761709928512573,
0.008541427552700043,
-0.10262267291545868
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | I thought I had fixed it with this after some helpful hints from @severo
```python
import datasets
token = 'hf_XXXXX'
dataset = datasets.load_dataset(
'facebook/winoground',
name='facebook--winoground',
split='train',
streaming=True,
use_auth_token=token,
)
```
but I found out that wasn't the case
```python
[x for x in dataset]
...
ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
``` | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 50 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
I thought I had fixed it with this after some helpful hints from @severo
```python
import datasets
token = 'hf_XXXXX'
dataset = datasets.load_dataset(
'facebook/winoground',
name='facebook--winoground',
split='train',
streaming=True,
use_auth_token=token,
)
```
but I found out that wasn't the case
```python
[x for x in dataset]
...
ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
``` | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Hi ! This dataset structure (image + labels in a JSON file) is not supported yet, though we're adding support for this in in #4069
The following structure will be supported soon:
```
metadata.json
images/
image0.png
image1.png
...
```
Where `metadata.json` is a JSON Lines file with labels or other metadata, and each line must have a "file_name" field with the name of the image file.
For the moment are only supported:
- JSON files only
- image files only
Since this dataset is a mix of the two, at the moment it fails trying to read the images as JSON.
Therefore to be able to load this dataset we need to wait for the new structure to be supported (very soon ^^), or add a dataset script in the repository that reads both the JSON and the images cc @TristanThrush
| ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 141 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Hi ! This dataset structure (image + labels in a JSON file) is not supported yet, though we're adding support for this in in #4069
The following structure will be supported soon:
```
metadata.json
images/
image0.png
image1.png
...
```
Where `metadata.json` is a JSON Lines file with labels or other metadata, and each line must have a "file_name" field with the name of the image file.
For the moment are only supported:
- JSON files only
- image files only
Since this dataset is a mix of the two, at the moment it fails trying to read the images as JSON.
Therefore to be able to load this dataset we need to wait for the new structure to be supported (very soon ^^), or add a dataset script in the repository that reads both the JSON and the images cc @TristanThrush
| [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | We'll also investigate the issue with the streaming download manager in https://github.com/huggingface/datasets/issues/4139 ;) thanks for reporting | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 16 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
We'll also investigate the issue with the streaming download manager in https://github.com/huggingface/datasets/issues/4139 ;) thanks for reporting | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | In the meantime, anyone can always download the images.zip and examples.jsonl files directly from huggingface.co - let me know if anyone has issues with that. | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 25 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
In the meantime, anyone can always download the images.zip and examples.jsonl files directly from huggingface.co - let me know if anyone has issues with that. | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | I mirrored the files at https://huggingface.co/datasets/facebook/winoground in a folder on my local machine `winground`
and when I tried
```python
import datasets
ds = datasets.load_from_disk('./winoground')
```
I get the following error
```python
--------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 ds = datasets.load_from_disk('./winoground')
File ~/.local/lib/python3.8/site-packages/datasets/load.py:1759, in load_from_disk(dataset_path, fs, keep_in_memory)
1757 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory)
1758 else:
-> 1759 raise FileNotFoundError(
1760 f"Directory {dataset_path} is neither a dataset directory nor a dataset dict directory."
1761 )
FileNotFoundError: Directory ./winoground is neither a dataset directory nor a dataset dict directory.
```
so still some work to be done on the backend imo. | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 107 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
I mirrored the files at https://huggingface.co/datasets/facebook/winoground in a folder on my local machine `winground`
and when I tried
```python
import datasets
ds = datasets.load_from_disk('./winoground')
```
I get the following error
```python
--------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 ds = datasets.load_from_disk('./winoground')
File ~/.local/lib/python3.8/site-packages/datasets/load.py:1759, in load_from_disk(dataset_path, fs, keep_in_memory)
1757 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory)
1758 else:
-> 1759 raise FileNotFoundError(
1760 f"Directory {dataset_path} is neither a dataset directory nor a dataset dict directory."
1761 )
FileNotFoundError: Directory ./winoground is neither a dataset directory nor a dataset dict directory.
```
so still some work to be done on the backend imo. | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Note that `load_from_disk` is the function that reloads an Arrow dataset saved with `my_dataset.save_to_disk`.
Once we do support images with metadata you'll be able to use `load_dataset("facebook/winoground")` directly (or `load_dataset("./winoground")` of you've cloned the winoground repository locally). | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 37 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Note that `load_from_disk` is the function that reloads an Arrow dataset saved with `my_dataset.save_to_disk`.
Once we do support images with metadata you'll be able to use `load_dataset("facebook/winoground")` directly (or `load_dataset("./winoground")` of you've cloned the winoground repository locally). | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Apologies for the delay. I added a custom dataset loading script for winoground. It should work now, with an auth token:
`examples = load_dataset('facebook/winoground', use_auth_token=<your auth token>)`
Let me know if there are any issues | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 35 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Apologies for the delay. I added a custom dataset loading script for winoground. It should work now, with an auth token:
`examples = load_dataset('facebook/winoground', use_auth_token=<your auth token>)`
Let me know if there are any issues | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4149 | load_dataset for winoground returning decoding error | Adding the dataset loading script definitely didn't take as long as I thought it would 😅 | ## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
| 16 | load_dataset for winoground returning decoding error
## Describe the bug
I am trying to use datasets to load winoground and I'm getting a JSON decoding error.
## Steps to reproduce the bug
```python
from datasets import load_dataset
token = 'hf_XXXXX' # my HF access token
datasets = load_dataset('facebook/winoground', use_auth_token=token)
```
## Expected results
I downloaded images.zip and examples.jsonl manually. I was expecting to have some trouble decoding json so I didn't use jsonlines but instead was able to get a complete set of 400 examples by doing
```python
import json
with open('examples.jsonl', 'r') as f:
examples = f.read().split('\n')
# Thinking this would error if the JSON is not utf-8 encoded
json_data = [json.loads(x) for x in examples]
print(json_data[-1])
```
and I see
```python
{'caption_0': 'someone is overdoing it',
'caption_1': 'someone is doing it over',
'collapsed_tag': 'Relation',
'id': 399,
'image_0': 'ex_399_img_0',
'image_1': 'ex_399_img_1',
'num_main_preds': 1,
'secondary_tag': 'Morpheme-Level',
'tag': 'Scope, Preposition'}
```
so I'm not sure what's going on here honestly. The file `examples.jsonl` doesn't have non-UTF-8 encoded text.
## Actual results
During the split operation after downloading, datasets encounters an error in the JSON ([trace](https://gist.github.com/odellus/e55d390ca203386bf551f38e0c63a46b) abbreviated for brevity).
```
datasets/packaged_modules/json/json.py:144 in Json._generate_tables(self, files)
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: Linux-5.13.0-39-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
Adding the dataset loading script definitely didn't take as long as I thought it would 😅 | [
-0.18663476407527924,
0.38164353370666504,
-0.00021499767899513245,
0.43978142738342285,
0.21209025382995605,
0.11757395416498184,
0.025205418467521667,
0.18467357754707336,
0.08002226054668427,
-0.1368638128042221,
-0.17777898907661438,
0.08330950886011124,
0.01093471422791481,
0.044950827956199646,
-0.2806116044521332,
-0.2287355363368988,
-0.05685820430517197,
-0.03619121015071869,
0.09439024329185486,
-0.09627664089202881,
-0.6502002477645874,
0.4393961727619171,
-0.26599258184432983,
0.32513129711151123,
0.07187043130397797,
-0.12800735235214233,
-0.20385581254959106,
0.4244275391101837,
-0.24374018609523773,
-0.45519962906837463,
0.08140342682600021,
-0.1902177929878235,
0.16929133236408234,
0.21970701217651367,
-0.00011983117292402312,
0.12188799679279327,
0.49448925256729126,
0.03480932116508484,
-0.32729002833366394,
-0.2021760195493698,
-0.4330074191093445,
-0.009265100583434105,
0.08707842230796814,
-0.14364738762378693,
0.08074495941400528,
-0.6088297963142395,
-0.11472852528095245,
-0.05121584236621857,
0.6557243466377258,
0.4015834629535675,
0.1428910195827484,
-0.029006849974393845,
0.026865985244512558,
0.1402500569820404,
0.18535050749778748,
0.08578984439373016,
-0.09091372042894363,
0.290393203496933,
0.1863134503364563,
-0.37133413553237915,
-0.16484925150871277,
0.24899490177631378,
-0.008229808881878853,
0.24537478387355804,
0.023277755826711655,
0.20142707228660583,
0.0501033291220665,
-0.08938519656658173,
0.030584169551730156,
0.24261680245399475,
0.21901428699493408,
0.0032313689589500427,
-0.32807424664497375,
-0.28837504982948303,
-0.07880634814500809,
-0.1386476308107376,
0.33521971106529236,
0.2933971881866455,
-0.25235337018966675,
0.29601967334747314,
-0.21323704719543457,
-0.054149121046066284,
-0.10781140625476837,
0.30471518635749817,
-0.015578396618366241,
0.06011722981929779,
-0.09991251677274704,
0.24225112795829773,
0.11774842441082001,
-0.0016649961471557617,
-0.01924234628677368,
-0.3969210684299469,
-0.17549578845500946,
-0.08365605771541595,
-0.16426654160022736,
0.05187004804611206,
0.1015063002705574,
0.21133491396903992,
0.0896991714835167,
0.1292409598827362,
-0.1634976714849472,
0.1579475700855255,
-0.0633961409330368,
0.12375735491514206,
0.48713505268096924,
-0.0672670304775238,
-0.03535071015357971,
0.3062378764152527,
0.04621205851435661,
-0.06963954120874405,
0.09050914645195007,
0.06012076139450073,
-0.2188422679901123,
-0.26583215594291687,
-0.1459764540195465,
0.024548539891839027,
0.292202353477478,
-0.057825423777103424,
-0.4480503797531128,
0.19489529728889465,
-0.18580439686775208,
-0.17879481613636017,
-0.07294151186943054,
0.28586384654045105,
-0.08521468192338943,
-0.01871713623404503,
0.3159790635108948,
0.3502243757247925,
-0.2379290610551834,
-0.1582428514957428,
-0.01793479546904564,
-0.023809704929590225,
-0.15791262686252594,
-0.042304955422878265,
0.1803121417760849,
0.11529664695262909,
0.14982081949710846,
-0.011805328540503979,
0.013021629303693771,
-0.20150353014469147,
0.338676393032074,
-0.2770756185054779,
0.04004139453172684,
0.022816121578216553,
0.15379533171653748,
0.22174210846424103,
0.29334545135498047,
-0.3227158784866333,
-0.11213304847478867,
0.19193938374519348,
-0.4252030849456787,
-0.16733989119529724,
-0.12393978238105774,
0.10851927101612091,
-0.19100290536880493,
-0.03950290381908417,
-0.4184207618236542,
0.25838449597358704,
-0.16282767057418823,
0.12219737470149994,
0.08990643173456192,
-0.20240141451358795,
-0.20536068081855774,
-0.1559072732925415,
-0.018454711884260178,
0.49255359172821045,
-0.29379716515541077,
-0.1551632285118103,
0.00948384590446949,
-0.4077320098876953,
0.263561874628067,
0.38061606884002686,
-0.16238634288311005,
0.35243135690689087,
-0.29849010705947876,
0.2143799513578415,
0.3317294716835022,
-0.5110266208648682,
-0.27202510833740234,
0.6287519335746765,
0.010836251080036163,
0.3247803747653961,
-0.2500389814376831,
-0.3303043842315674,
0.29264143109321594,
-0.009538688696920872,
0.4710423946380615,
0.5840809941291809,
-0.061002328991889954,
0.09732354432344437,
-0.07733415067195892,
-0.480721652507782,
0.3019635081291199,
0.41095247864723206,
-0.0022043846547603607,
0.03346993774175644,
0.17627392709255219,
-0.018853357061743736,
0.22001633048057556,
-0.046620000153779984,
0.16781681776046753,
0.3642241358757019,
-0.12749607861042023,
0.07230975478887558,
0.21016348898410797,
0.1216137483716011,
-0.2524530291557312,
0.08450759202241898,
-0.030578412115573883,
-0.16616478562355042,
-0.10170139372348785,
-0.03367939218878746,
-0.25285211205482483,
-0.044792670756578445,
-0.4690018594264984,
0.02473912388086319,
0.11082333326339722,
0.02837812900543213,
-0.1594005525112152,
-0.12017124891281128,
0.05160386487841606,
0.2783086895942688,
0.035895198583602905,
0.11067139357328415,
-0.058332715183496475,
0.37093809247016907,
-0.051064781844615936,
-0.1081676185131073,
0.25778406858444214,
0.1967160850763321,
0.0565161406993866,
-0.1951214224100113,
-0.12858468294143677,
0.3041708171367645,
0.2497037649154663,
0.2616109549999237,
-0.145633727312088,
-0.14038138091564178,
0.12976931035518646,
-0.45869413018226624,
-0.08964424580335617,
0.43093058466911316,
0.1927977055311203,
-0.1908615231513977,
-0.06899187713861465,
0.2968381643295288,
-0.16465701162815094,
0.3404628038406372,
0.058100491762161255,
0.1622578352689743,
0.24908766150474548,
-0.14578473567962646,
-0.20903050899505615,
-0.27191096544265747,
0.444416880607605,
0.018556633964180946,
-0.03383558243513107,
-0.07786820828914642,
-0.06526227295398712,
0.005960643291473389,
0.9233275055885315,
-0.18601539731025696,
0.15508294105529785,
0.31254786252975464,
-0.10188364237546921,
-0.030055822804570198,
0.03388838842511177,
0.009105857461690903,
0.524724006652832,
0.01894790306687355,
0.08020579069852829,
0.41394051909446716,
0.05601217597723007,
0.04619825631380081,
0.1814296990633011,
0.2345639169216156,
0.20248663425445557,
0.2256600260734558,
-0.134165421128273,
-0.040765438228845596,
-0.30759334564208984,
-0.3679966926574707,
0.13464216887950897,
0.1387951374053955,
-0.4937203526496887,
0.22565028071403503,
-0.46115124225616455,
-0.02202780917286873,
-0.14066071808338165,
-0.4042492210865021,
-0.05845477804541588,
-0.3211020231246948,
0.040306150913238525,
0.04699664190411568,
-0.1497901827096939,
0.09162691235542297,
-0.3398474156856537,
0.08228199183940887,
-0.021680086851119995,
-0.18573519587516785,
-0.10845571756362915,
-0.13109128177165985,
-0.266629695892334,
0.007029801607131958,
0.314065158367157,
-0.07282146066427231,
0.2149762660264969,
-0.2981951832771301,
0.02797578275203705,
0.03921016678214073,
-0.06164715439081192,
0.3070312738418579,
-0.15796247124671936,
0.20843884348869324,
0.1612652838230133,
0.05071210861206055,
-0.22968164086341858,
-0.30697497725486755,
0.21849504113197327,
0.16999255120754242,
-0.22681286931037903,
0.2500762343406677,
0.05000651627779007,
-0.11254134029150009,
-0.10241749882698059,
-0.14221009612083435,
-0.25970321893692017,
-0.24901795387268066,
0.3231695294380188,
0.0817604809999466,
0.09942445158958435,
0.12965823709964752,
-0.11351212114095688,
0.3421401083469391,
0.09730763733386993,
-0.11452363431453705,
-0.4607696533203125,
-0.015314605087041855,
0.2574807405471802,
-0.3794059753417969,
-0.2506859302520752,
0.11863960325717926,
-0.04620255529880524,
-0.11345604062080383,
-0.025864344090223312,
-0.5742096304893494,
-0.014251628890633583,
-0.11323529481887817,
0.15530267357826233,
-0.3547056019306183,
-0.05013487488031387,
0.10647983103990555,
0.04600975289940834,
0.09372089803218842,
-0.21938571333885193,
-0.121129110455513,
0.03253064304590225,
-0.0728735476732254,
0.41348204016685486,
-0.025122955441474915,
0.6095145344734192,
-0.1929665058851242,
0.24681580066680908,
0.5080026984214783,
0.3667124807834625,
0.2762945294380188,
-0.19351251423358917,
0.17752812802791595,
-0.037832655012607574,
-0.0923716202378273,
0.2582372725009918,
-0.18784165382385254,
0.2089768499135971,
0.2728343605995178,
0.11921785026788712,
-0.24974258244037628,
-0.017273923382163048,
-0.037403903901576996,
-0.5823123455047607,
-0.433847039937973,
0.15301105380058289,
-0.08636055886745453,
-0.0778123214840889,
0.05078451707959175,
0.2859053313732147,
-0.0416482537984848,
-0.07724577933549881,
-0.1338881403207779,
0.3123597800731659,
0.0025696009397506714,
0.14018571376800537,
-0.19903169572353363,
-0.17292959988117218,
-0.31712454557418823,
0.12450408190488815,
-0.08640038967132568,
0.48343831300735474,
-0.17081940174102783,
0.3166975975036621,
0.10152760148048401,
-0.23300214111804962,
0.7412670850753784,
-0.27561309933662415,
0.16186709702014923,
0.07907365262508392,
0.30468252301216125,
-0.4524533450603485,
-0.03788858652114868,
-0.28376954793930054,
0.3549790382385254,
0.12752901017665863,
0.2411569058895111,
-0.2644323706626892,
-0.11829789727926254,
0.19199015200138092,
0.19101464748382568,
-0.23156480491161346,
-0.1551601141691208,
-0.3259764611721039,
-0.8166643977165222,
-0.3782941401004791,
-0.1946808099746704,
0.328531414270401,
0.15749050676822662,
-0.008065002970397472,
-0.08224312216043472,
0.018504567444324493,
0.09279178082942963,
0.18332022428512573,
-0.0020394055172801018,
0.15755468606948853,
0.14651910960674286,
0.05727266147732735,
0.12976057827472687,
0.18687176704406738,
0.02620730921626091,
0.8269628286361694,
0.31060412526130676,
-0.5212933421134949,
0.24274221062660217,
-0.1760539710521698,
-0.022744156420230865,
0.22607707977294922,
-0.1299825757741928,
-0.07991155236959457,
0.09115317463874817,
0.28181278705596924,
-0.4481182396411896,
0.03326801955699921,
0.4080579876899719,
-0.006694878451526165,
-0.3659456968307495,
-0.18245524168014526,
0.49028027057647705,
-0.11228327453136444,
-0.05425459146499634,
0.39572906494140625,
0.5383877158164978,
-0.3827522397041321,
0.37044334411621094,
-0.047268472611904144,
0.802675724029541,
0.21363696455955505,
0.007613431662321091,
0.502630352973938,
-0.5735387802124023,
0.24890123307704926,
-0.06735974550247192,
-0.07348719239234924,
-0.09838627278804779,
0.08657652139663696,
-0.15731951594352722,
-0.03348151594400406,
0.2059183120727539,
0.35889512300491333,
-0.24881510436534882,
0.02269255742430687,
0.2268863171339035,
-0.2379530668258667,
0.1762862652540207,
0.2385280728340149,
-0.3231632709503174,
-0.19897650182247162,
-0.26687225699424744,
0.07939714938402176,
-0.18114568293094635,
0.19290587306022644,
-0.08777457475662231,
-0.0886617973446846,
0.030983198434114456,
-0.2872934937477112,
-0.4625529646873474,
0.3222779333591461,
-0.2287336140871048,
0.2370305210351944,
0.08561141788959503,
0.07056808471679688,
0.27448827028274536,
-0.1262204349040985,
0.2743161916732788,
-0.21352975070476532,
-0.17297451198101044,
0.2569275200366974,
-0.243244469165802,
0.12084091454744339,
0.07535559684038162,
-0.16292843222618103,
0.18163125216960907,
-0.2073286771774292,
-0.5375797152519226,
-0.050190746784210205,
-0.15838326513767242,
-0.45973289012908936,
-0.10585179924964905,
0.15669500827789307,
-0.35073626041412354,
-0.14231930673122406,
-0.18703369796276093,
-0.020004339516162872,
0.055159058421850204,
0.06414966285228729,
0.03253171220421791,
0.06767468899488449,
0.036795854568481445,
0.46908095479011536,
-0.07521265745162964,
-0.3788243532180786,
-0.03189534693956375,
0.18205416202545166,
-0.2298920750617981,
-0.03637700527906418,
0.6238436698913574,
0.26743265986442566,
-0.17624016106128693,
-0.13963061571121216,
0.240473210811615,
0.38172560930252075,
-0.07985030859708786,
-0.24530403316020966,
-0.1275421380996704,
0.28802281618118286,
-0.06148037686944008,
0.027527160942554474,
0.11501318961381912,
-0.05437728017568588,
0.11681139469146729,
-0.6627495884895325,
-0.13945914804935455,
0.3464431166648865,
0.022111646831035614,
-0.24161486327648163,
0.025936417281627655,
0.09719803929328918,
0.03473804146051407,
-0.21182070672512054,
-0.189926415681839,
0.19258151948451996,
-0.045236386358737946,
0.1018749326467514,
-0.0879557654261589,
-0.08884266763925552,
0.32938438653945923,
-0.037810876965522766,
0.014433925971388817,
0.06136373430490494,
0.11514639854431152,
-0.11406246572732925,
-0.31643229722976685,
0.19704778492450714,
0.07251157611608505,
-0.472358375787735,
-0.00788221973925829,
-0.15412761270999908,
-0.06374616920948029,
-0.018946895375847816,
0.1375551074743271,
0.2217821180820465,
-0.04304369539022446,
0.24816764891147614,
-0.4047919511795044,
0.06132620945572853,
0.02857808768749237,
-0.1320006102323532,
0.02974570170044899,
0.8328733444213867,
-0.044097427278757095,
0.21879209578037262,
0.28677329421043396,
0.04096534103155136,
-0.22355663776397705,
0.03021908551454544,
-0.07176651060581207,
0.17024827003479004,
0.39737382531166077,
-0.27961528301239014,
0.41031119227409363,
-0.06770557910203934,
0.16717299818992615,
0.5154787302017212,
-0.38573020696640015,
0.009434647858142853,
0.24521583318710327,
0.09280440956354141,
-0.07242114096879959,
-0.04769374430179596,
0.4049888849258423,
-0.1020432785153389,
-0.08422990888357162,
0.19163276255130768,
-0.3814827501773834,
0.07592113316059113,
-0.25847625732421875,
-0.1525021195411682,
0.31383228302001953,
0.2935934066772461,
0.11023598909378052,
0.36506718397140503,
-0.27229824662208557,
0.18715159595012665,
-0.030388208106160164,
0.11457979679107666,
0.31689324975013733,
0.4509315490722656,
-0.11387946456670761,
0.07846014946699142,
-0.3261546790599823,
0.3612879514694214,
-0.05095437914133072,
-0.4903673529624939,
-0.06060844287276268,
0.2124319225549698,
-0.07173684239387512,
0.47050172090530396,
0.05117849260568619,
-0.06279423087835312,
-0.443134069442749,
0.04337650537490845,
-0.3669299781322479,
0.05399909242987633,
0.13150432705879211,
-0.22307954728603363,
-0.21804481744766235,
-0.024204246699810028,
-0.3730875849723816,
0.10645648837089539,
-0.0490606389939785,
-0.3820037841796875,
-0.03792367875576019,
0.2490314543247223,
-0.13053275644779205,
-0.3429679274559021,
0.16034558415412903,
0.10432059317827225,
0.10307282209396362,
-0.3927420377731323,
0.1975448578596115,
0.25897955894470215,
0.24227406084537506,
0.19484230875968933,
0.09268186241388321,
0.3498042821884155,
0.22019466757774353,
-0.4257214069366455,
-0.0500689335167408,
-0.10530941188335419,
-0.0646219551563263,
-0.14609290659427643,
0.4472823739051819,
0.17495271563529968,
-0.08188113570213318,
0.40113937854766846,
0.11680974066257477,
-0.1012338176369667,
0.0976404994726181,
0.28832316398620605,
-0.14108486473560333,
-0.17884977161884308,
0.2855692505836487,
-0.3534192740917206,
0.20454519987106323,
-0.1655643880367279,
-0.2203129231929779,
-0.25557541847229004,
-0.21929584443569183,
0.2338057905435562,
-0.03125886619091034,
0.12947434186935425,
-0.1532982587814331,
0.01402261108160019,
0.011949201114475727,
0.3824177086353302,
0.3050086796283722,
0.27888014912605286,
-0.12419287115335464,
-0.1840636283159256,
-0.3153485655784607,
0.02539777010679245,
-0.2847115695476532,
-0.25062286853790283,
0.15547412633895874,
0.07087700068950653,
-0.17460086941719055,
0.3591209650039673,
0.04987329989671707,
0.4428437054157257,
0.11141455918550491,
0.18638277053833008,
-0.14614522457122803,
-0.3172513544559479,
0.44385993480682373,
0.41440415382385254,
-0.17504172027111053,
-0.46126726269721985,
0.22510568797588348,
0.236162930727005,
-0.14888516068458557,
-0.24145691096782684,
-0.1568925380706787,
-0.1976626217365265,
-0.20743465423583984,
0.24768607318401337,
0.4718886911869049,
0.2960592210292816,
-0.1901383101940155,
-0.0413578525185585,
-0.28934773802757263,
-0.3693337142467499,
-0.021338850259780884,
0.5253267884254456,
-0.1727515459060669,
0.2607085406780243,
-0.07309163361787796,
0.06362530589103699,
-0.23399968445301056,
-0.05501464381814003,
-0.21885642409324646,
-0.04346486181020737,
-0.2975838780403137,
0.37217697501182556,
-0.18814697861671448,
0.27592533826828003,
-0.05398981645703316,
0.4072669744491577,
0.00404951348900795,
0.409805566072464,
-0.07950332760810852,
-0.23724690079689026,
0.23989681899547577,
-0.3824101388454437,
-0.2967884838581085,
0.32678163051605225,
0.20420098304748535,
0.02057943493127823,
-0.2468755543231964,
-0.312725305557251,
0.04081117361783981,
0.33021190762519836,
-0.021047838032245636,
-0.2623264193534851,
0.015784528106451035,
0.013647641986608505,
-0.04548293352127075,
0.005155980587005615,
0.5762956142425537,
0.08521073311567307,
-0.3399917781352997,
0.4717288315296173,
-0.06049179658293724
] |
https://github.com/huggingface/datasets/issues/4146 | SAMSum dataset viewer not working | Currently, only the datasets that can be streamed support the dataset viewer. Maybe @lhoestq @albertvillanova or @mariosasko could give more details about why the dataset cannot be streamed. | ## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 28 | SAMSum dataset viewer not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
Currently, only the datasets that can be streamed support the dataset viewer. Maybe @lhoestq @albertvillanova or @mariosasko could give more details about why the dataset cannot be streamed. | [
-0.4890424311161041,
-0.19477182626724243,
0.019912149757146835,
0.16621243953704834,
0.3226158618927002,
0.17721089720726013,
0.15332303941249847,
0.14061138033866882,
0.013646036386489868,
0.17777001857757568,
-0.16807031631469727,
0.3436412215232849,
0.014858630485832691,
0.1695834994316101,
-0.061033084988594055,
-0.1996840536594391,
0.16496562957763672,
0.04545508325099945,
-0.2660047709941864,
0.18204322457313538,
-0.14050011336803436,
-0.01771603710949421,
-0.12752246856689453,
-0.1851426213979721,
0.03777628764510155,
0.2896527647972107,
-0.057857584208250046,
-0.12153976410627365,
-0.36067506670951843,
-0.32062551379203796,
0.21683208644390106,
0.22870905697345734,
0.2979525327682495,
0.41452065110206604,
-0.00010875405132537708,
0.17213250696659088,
0.6205545663833618,
-0.05623522400856018,
-0.3307092785835266,
0.14406026899814606,
-0.37680783867836,
0.09732027351856232,
0.19703234732151031,
0.03003477305173874,
-0.2327476441860199,
-0.07134834676980972,
0.37679484486579895,
-0.331489235162735,
0.27584320306777954,
0.14875340461730957,
0.2665373980998993,
0.022547170519828796,
0.098752960562706,
-0.3927181363105774,
-0.26380655169487,
0.07907888293266296,
-0.2637973725795746,
0.021473655477166176,
-0.054724112153053284,
0.3403012752532959,
0.14061573147773743,
0.15955300629138947,
-0.1404135525226593,
0.21868179738521576,
0.2026231288909912,
-0.08770757168531418,
-0.05160635709762573,
-0.20942910015583038,
0.2374248206615448,
0.3016132712364197,
1.231239676475525,
-0.12569722533226013,
-0.12574027478694916,
0.19849571585655212,
-0.10368788242340088,
0.03351977467536926,
0.15406286716461182,
-0.02140890620648861,
0.01782652735710144,
0.1336965262889862,
-0.19213038682937622,
0.18797631561756134,
-0.3334004580974579,
-0.0312187522649765,
-0.12283918261528015,
0.06837437301874161,
-0.16281713545322418,
0.13767334818840027,
-0.031833115965127945,
-0.030834205448627472,
0.3166826665401459,
0.009600642137229443,
-0.33900657296180725,
-0.06889978796243668,
-0.2169245332479477,
0.08588738739490509,
0.005833007395267487,
0.03201357275247574,
-0.05342079699039459,
0.08504977077245712,
0.18581320345401764,
0.30655714869499207,
0.12136295437812805,
0.05624336376786232,
0.10267989337444305,
-0.19182169437408447,
0.21700644493103027,
-0.05432788282632828,
0.15464788675308228,
0.11872994154691696,
0.14848224818706512,
-0.12597525119781494,
-0.2588270306587219,
0.0448637418448925,
-0.05398598313331604,
-0.32928818464279175,
0.07481338083744049,
-0.2578917443752289,
-0.2767615020275116,
-0.00017279479652643204,
0.10776709765195847,
-0.013565577566623688,
0.031961169093847275,
0.3125797212123871,
0.008359156548976898,
-0.16473904252052307,
-0.10778743773698807,
0.18897807598114014,
0.006559820845723152,
-0.10988275706768036,
-0.1565674990415573,
-0.11868499219417572,
-0.0371251255273819,
-0.06860776245594025,
0.3078087270259857,
-0.356074720621109,
0.07002696394920349,
-0.28129932284355164,
-0.06528587639331818,
0.030702970921993256,
-0.05068317800760269,
-0.017088335007429123,
-0.12166111916303635,
0.3246658146381378,
0.46149688959121704,
0.03665408492088318,
0.02215736359357834,
-0.012238144874572754,
0.07384788244962692,
0.12219366431236267,
0.17517739534378052,
-0.12471123039722443,
-0.1942819505929947,
0.21891146898269653,
-0.39016735553741455,
-0.1660403162240982,
-0.46965208649635315,
0.2863534092903137,
-0.3413667678833008,
-0.15170647203922272,
-0.3207961320877075,
0.06816571205854416,
-0.17706513404846191,
-0.10919258743524551,
0.23774901032447815,
0.2721750736236572,
-0.6053770184516907,
-0.06646543741226196,
-0.13323432207107544,
-0.3461652994155884,
0.02921202778816223,
-0.2186848670244217,
-0.07700297236442566,
0.061560697853565216,
-0.08461631089448929,
0.0733959972858429,
0.08642562478780746,
-0.3792645037174225,
-0.42902234196662903,
-0.015776632353663445,
0.00548253208398819,
-0.1442829966545105,
0.3073611259460449,
0.1991857886314392,
0.002337547019124031,
-0.005362086463719606,
-0.36327508091926575,
0.050124503672122955,
0.08400416374206543,
-0.07501435279846191,
-0.0741012841463089,
-0.29327255487442017,
-0.008373446762561798,
0.5132542848587036,
0.32144802808761597,
0.03997483104467392,
0.3834957778453827,
0.2857818901538849,
0.21446311473846436,
0.14391952753067017,
0.1076265200972557,
0.017978806048631668,
0.2923748791217804,
0.008820861577987671,
0.06892698258161545,
-0.32073915004730225,
0.12193825840950012,
0.15195772051811218,
0.4624663293361664,
0.09480252861976624,
0.26854950189590454,
-0.0783640667796135,
-0.09368825703859329,
-0.2256341278553009,
-0.3609299063682556,
0.07135377079248428,
0.2384854257106781,
0.2540718615055084,
0.12537983059883118,
0.05986882373690605,
-0.024872558191418648,
0.5125969648361206,
0.05947110801935196,
0.0032114163041114807,
-0.23384089767932892,
0.3258378803730011,
0.023715700954198837,
-0.13172690570354462,
0.05333045870065689,
-0.19077178835868835,
0.29377371072769165,
-0.010850885882973671,
-0.132235586643219,
0.14012354612350464,
-0.3064441680908203,
0.02302692085504532,
0.15697824954986572,
-0.2760239839553833,
-0.10098760575056076,
-0.5349663496017456,
0.24850425124168396,
0.18067318201065063,
0.025631867349147797,
-0.05781706050038338,
-0.30189457535743713,
-0.17043916881084442,
-0.10693322122097015,
-0.12229248136281967,
0.03238816559314728,
0.23213982582092285,
0.32969480752944946,
-0.15972913801670074,
0.030442113056778908,
-0.09391819685697556,
0.20346833765506744,
0.18481984734535217,
-0.4636237621307373,
-0.197398841381073,
-0.11206711828708649,
0.13135169446468353,
0.008058343082666397,
-0.0005047377198934555,
-0.06638931483030319,
-0.05369287729263306,
-0.31753796339035034,
0.28040772676467896,
0.018208097666502,
0.2276783138513565,
0.46190154552459717,
0.2784275710582733,
0.07497977465391159,
0.07541393488645554,
0.055711377412080765,
-0.10320527851581573,
0.03172259032726288,
0.4255523085594177,
0.19361281394958496,
0.16918602585792542,
-0.031842805445194244,
-0.18993912637233734,
-0.3094456195831299,
0.1811603605747223,
0.2983570694923401,
0.12700581550598145,
-0.17416469752788544,
-0.13518781960010529,
-0.40350648760795593,
-0.5495384931564331,
0.01594695821404457,
-0.20545615255832672,
0.09690332412719727,
-0.41706785559654236,
0.06171049177646637,
0.4080808460712433,
0.021195530891418457,
0.12936817109584808,
-0.6359614133834839,
0.17079539597034454,
-0.12717236578464508,
0.10373548418283463,
-0.2736831307411194,
0.16936266422271729,
-0.12010449916124344,
0.23445862531661987,
0.22857767343521118,
0.3192899525165558,
0.3191373944282532,
-0.2937997877597809,
0.3033304214477539,
-0.41196393966674805,
-0.22666457295417786,
0.0854836106300354,
-0.058831386268138885,
0.5571765899658203,
-0.146042138338089,
0.00457291305065155,
-0.08914658427238464,
-0.16955183446407318,
0.08898225426673889,
-0.058867961168289185,
-0.013655008748173714,
0.06486966460943222,
-0.04440034553408623,
-0.2638758718967438,
-0.0012404955923557281,
-0.060989730060100555,
-0.1937953382730484,
-0.3424175977706909,
0.045437246561050415,
0.11730444431304932,
0.1440839171409607,
-0.2308420091867447,
-0.0631612166762352,
0.14689040184020996,
-0.018939057365059853,
0.02255288138985634,
-0.23509319126605988,
-0.31996867060661316,
0.3353883624076843,
-0.3089018166065216,
-0.5572471618652344,
0.39038214087486267,
0.2949713468551636,
0.15186436474323273,
-0.20633098483085632,
-0.4520038962364197,
-0.13422012329101562,
0.05815650522708893,
-0.003785856068134308,
0.1917424350976944,
-0.279443621635437,
0.2536827325820923,
-0.09684637188911438,
-0.07579927891492844,
-0.30896657705307007,
-0.2733917832374573,
-0.1375725269317627,
-0.195732980966568,
0.3304064869880676,
-0.19322022795677185,
0.428236722946167,
-0.042385052889585495,
0.15880104899406433,
0.3033876419067383,
-0.010257065296173096,
0.2967718243598938,
-0.02922886796295643,
0.19726072251796722,
0.0004427582025527954,
-0.29489171504974365,
0.32268354296684265,
-0.23192241787910461,
0.21080408990383148,
0.22825559973716736,
0.22745683789253235,
-0.10383259505033493,
-0.21487988531589508,
-0.11654303967952728,
-0.23403021693229675,
-0.03998521342873573,
-0.32236447930336,
0.042339690029621124,
-0.21493899822235107,
0.05852113291621208,
0.16070929169654846,
-0.07174050062894821,
-0.2598675489425659,
-0.10313725471496582,
0.6261166930198669,
0.11244464665651321,
0.13543976843357086,
-0.40467047691345215,
0.0869310274720192,
-0.19227373600006104,
0.17024174332618713,
-0.32393330335617065,
0.21538898348808289,
-0.3722772002220154,
-0.008464651182293892,
0.12635666131973267,
-0.031068749725818634,
0.38365793228149414,
-0.4389508366584778,
-0.03661782294511795,
0.24237024784088135,
0.3722452223300934,
-0.21004493534564972,
-0.11414796113967896,
-0.04586797580122948,
0.4215460419654846,
0.18707488477230072,
0.01154588907957077,
-0.05591169744729996,
0.050414085388183594,
0.47702232003211975,
-0.03258643299341202,
-0.11559781432151794,
-0.32912778854370117,
-0.37394362688064575,
-0.4875901937484741,
0.06318803131580353,
-0.1819283366203308,
-0.03339935839176178,
0.10771548748016357,
-0.1566883623600006,
-0.03794679790735245,
-0.42492571473121643,
-0.1685548722743988,
0.1995818018913269,
0.17263488471508026,
0.3367885947227478,
0.24426822364330292,
0.5301586985588074,
0.23613478243350983,
0.39687269926071167,
0.3483823239803314,
0.5847644209861755,
0.26263847947120667,
-0.3966784179210663,
0.38278594613075256,
-0.2202037125825882,
-0.0004077702760696411,
0.04707745462656021,
-0.01642206311225891,
0.01056353747844696,
0.31164810061454773,
0.03275087848305702,
-0.11810363084077835,
-0.015004130080342293,
0.12796121835708618,
0.04909932613372803,
-0.36434441804885864,
-0.10135217010974884,
0.45481905341148376,
0.02418576553463936,
0.030704796314239502,
0.29926013946533203,
0.24903012812137604,
-0.08200464397668839,
-0.12145446985960007,
0.10086679458618164,
0.7813848853111267,
0.04125306010246277,
-0.3007722795009613,
-0.0421033576130867,
-0.23674701154232025,
0.0205671526491642,
-0.15086737275123596,
0.15629972517490387,
-0.06160028278827667,
-0.4460636377334595,
-0.11889158934354782,
-0.03761137276887894,
0.4105963110923767,
-0.23462124168872833,
-0.2939181625843048,
0.03847528621554375,
0.25620317459106445,
0.24804949760437012,
0.07832873612642288,
0.16428394615650177,
-0.27558499574661255,
-0.019685804843902588,
0.19517728686332703,
0.1939132660627365,
0.03087157942354679,
0.05528420954942703,
-0.008032696321606636,
-0.2005324363708496,
0.15872041881084442,
-0.05200984328985214,
-0.460976243019104,
0.1736411452293396,
-0.0035974872298538685,
-0.20646469295024872,
-0.09500613808631897,
-0.02242249995470047,
0.3445533215999603,
0.2395455539226532,
0.23176993429660797,
0.1104460060596466,
-0.412550687789917,
0.3559648096561432,
-0.10735588520765305,
0.025472138077020645,
-0.0904412567615509,
-0.13495074212551117,
0.2420656830072403,
-0.2081751525402069,
-0.23347698152065277,
0.21866393089294434,
0.1611926406621933,
-0.19683872163295746,
-0.33033978939056396,
-0.047752805054187775,
0.15082064270973206,
-0.3106709122657776,
0.15438078343868256,
-0.1267176866531372,
-0.007954198867082596,
-0.25022512674331665,
0.1890697032213211,
0.15017420053482056,
0.001855666982010007,
0.23214659094810486,
-0.10273130238056183,
-0.11917723715305328,
-0.17893970012664795,
0.4549492299556732,
0.15105223655700684,
-0.2800441384315491,
0.33289167284965515,
0.07009373605251312,
-0.259246289730072,
-0.16901329159736633,
-0.056343793869018555,
0.14448027312755585,
0.039251767098903656,
-0.37448522448539734,
-0.06302274018526077,
0.04234045743942261,
0.21035967767238617,
-0.2894343137741089,
-0.06668538600206375,
-0.4051687717437744,
-0.20421263575553894,
-0.24349252879619598,
-0.15654492378234863,
0.0500326082110405,
-0.09942924976348877,
0.17423836886882782,
-0.117402583360672,
-0.2985210418701172,
0.2520732283592224,
0.02237134985625744,
-0.31783097982406616,
-0.029805997386574745,
0.07018257677555084,
-0.06645487248897552,
-0.044495970010757446,
0.09615704417228699,
0.1971721351146698,
-0.15879057347774506,
0.14321081340312958,
0.13512451946735382,
-0.19205082952976227,
-0.18069475889205933,
0.0050812941044569016,
0.1354999840259552,
0.2186952829360962,
-0.18606801331043243,
-0.328076034784317,
-0.27309805154800415,
-0.2581828832626343,
0.1438954919576645,
0.02075100690126419,
0.0626821294426918,
-0.06414543092250824,
-0.001856096088886261,
0.4295857548713684,
-0.07595302909612656,
0.1243496686220169,
-0.004707466810941696,
0.18441487848758698,
0.5946401357650757,
-0.19462950527668,
0.036357082426548004,
0.17880022525787354,
-0.021155722439289093,
-0.19201725721359253,
0.01460316777229309,
0.1496191918849945,
-0.11544444411993027,
0.2628422975540161,
-0.36273473501205444,
0.2656102180480957,
-0.0035986455623060465,
0.4431995451450348,
0.13447755575180054,
-0.09629342705011368,
0.05411291867494583,
0.4633020758628845,
0.2449767291545868,
-0.29477405548095703,
-0.1989787369966507,
0.0764220729470253,
0.07316028326749802,
-0.012790478765964508,
-0.13927075266838074,
-0.0460248626768589,
-0.0039878711104393005,
0.2624972462654114,
0.1621553599834442,
0.5797742605209351,
-0.05741085857152939,
0.30260592699050903,
0.47255927324295044,
-0.17587779462337494,
0.1001623123884201,
0.19462718069553375,
0.16853481531143188,
-0.25822269916534424,
0.849984884262085,
-0.21077996492385864,
0.44207465648651123,
-0.3720596134662628,
0.008691582828760147,
-0.05879276245832443,
-0.06882084906101227,
-0.01649167388677597,
-0.08911101520061493,
-0.28927433490753174,
0.1073790043592453,
0.04667804390192032,
0.4947689175605774,
-0.22081154584884644,
0.15535522997379303,
-0.6970643401145935,
-0.21768032014369965,
-0.03255598992109299,
-0.052973438054323196,
-0.33717167377471924,
-0.18461677432060242,
0.09993632137775421,
0.1174035519361496,
0.17139510810375214,
-0.05056796222925186,
-0.15302030742168427,
0.05867486447095871,
-0.22790811955928802,
-0.24606765806674957,
-0.02091098576784134,
0.2319117784500122,
0.05559927225112915,
-0.1000281497836113,
0.02488306164741516,
0.15355169773101807,
0.06774342060089111,
0.43858519196510315,
0.37854593992233276,
0.21756355464458466,
0.09901794046163559,
0.03968726843595505,
0.10638213157653809,
-0.026179101318120956,
-0.22487670183181763,
-0.13095751404762268,
0.43220144510269165,
0.28937262296676636,
0.09677749872207642,
0.21620482206344604,
0.24555084109306335,
-0.1466473489999771,
0.3318021595478058,
-0.240579292178154,
0.4268456995487213,
-0.22790919244289398,
0.09752517938613892,
-0.3051823675632477,
0.045829594135284424,
0.11598652601242065,
-0.2692860960960388,
-0.3858928382396698,
0.22864089906215668,
0.36900684237480164,
0.08373665064573288,
0.07847236841917038,
-0.3292294144630432,
0.06143929064273834,
0.008095984347164631,
0.46159878373146057,
0.0012170709669589996,
0.18822678923606873,
0.04334867745637894,
-0.03234068304300308,
-0.4812091886997223,
0.12621493637561798,
-0.05330704525113106,
-0.23072940111160278,
0.08577754348516464,
-0.09571973979473114,
0.19807621836662292,
0.13507112860679626,
0.16127175092697144,
-0.06760598719120026,
0.1647425889968872,
0.36688750982284546,
-0.2447446882724762,
-0.18865779042243958,
0.2592034339904785,
0.4370017647743225,
-0.19004864990711212,
-0.30244502425193787,
0.48897120356559753,
0.14697998762130737,
0.08203817158937454,
-0.14535734057426453,
0.013060666620731354,
0.0016720611602067947,
0.08427496254444122,
0.24059996008872986,
0.010784400627017021,
0.5121332406997681,
-0.08885464072227478,
0.2612669765949249,
-0.47012537717819214,
-0.15642879903316498,
-0.3047010600566864,
-0.14251255989074707,
0.10630746185779572,
0.19342340528964996,
-0.06243289262056351,
-0.03309357538819313,
-0.04484184458851814,
-0.3174777925014496,
-0.28786444664001465,
0.3228282034397125,
-0.3418281078338623,
-0.14086075127124786,
-0.09787076711654663,
0.1929863691329956,
0.2846090495586395,
0.03826703876256943,
0.017801489681005478,
-0.08955471217632294,
-0.40098726749420166,
-0.21536646783351898,
0.3005417585372925,
-0.6165144443511963,
-0.17400796711444855,
-0.17448215186595917,
-0.009101785719394684,
0.16794171929359436,
-0.012596534565091133,
-0.4066547751426697,
0.1162765696644783,
0.2817707061767578,
-0.036020711064338684,
0.3454185426235199,
0.41482415795326233,
0.12058316171169281,
-0.03229260444641113,
-0.03434125706553459,
-0.1599067896604538,
-0.026565339416265488,
-0.03866828978061676,
-0.0028718002140522003,
0.023890096694231033
] |
https://github.com/huggingface/datasets/issues/4146 | SAMSum dataset viewer not working | It looks like the host (https://arxiv.org) doesn't allow HTTP Range requests, which is what we use to stream data.
This can be fix if we host the data ourselves, which is ok since the dataset is under CC BY-NC-ND 4.0 | ## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 40 | SAMSum dataset viewer not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
It looks like the host (https://arxiv.org) doesn't allow HTTP Range requests, which is what we use to stream data.
This can be fix if we host the data ourselves, which is ok since the dataset is under CC BY-NC-ND 4.0 | [
-0.4041631817817688,
-0.21618762612342834,
0.00996987521648407,
0.09502190351486206,
0.38160622119903564,
0.04995190352201462,
0.0980619490146637,
0.26195454597473145,
-0.02179412543773651,
0.11901052296161652,
-0.20755857229232788,
0.38867291808128357,
0.1510302722454071,
0.03383829444646835,
-0.08540254086256027,
-0.08899182081222534,
0.05545854941010475,
0.05232878401875496,
-0.37331029772758484,
0.13814298808574677,
-0.1542717069387436,
-0.16405390202999115,
-0.2679990530014038,
-0.1270231008529663,
0.33450597524642944,
0.1803710162639618,
0.0745566114783287,
-0.07640369981527328,
-0.16777756810188293,
-0.4161531627178192,
0.2533431947231293,
0.28307852149009705,
0.30627334117889404,
0.336396187543869,
-0.00011209507647436112,
0.29926925897598267,
0.47971487045288086,
0.007045520469546318,
-0.21323031187057495,
-0.018075063824653625,
-0.42348989844322205,
0.11462901532649994,
0.18556725978851318,
-0.08590869605541229,
-0.24656987190246582,
-0.3477008640766144,
0.26474690437316895,
-0.1960061490535736,
0.20756550133228302,
0.2519204020500183,
0.22692817449569702,
-0.007668176665902138,
0.06810085475444794,
-0.26253244280815125,
-0.15421009063720703,
-0.07610708475112915,
-0.26911500096321106,
0.05280023813247681,
0.11058829724788666,
0.5370702743530273,
0.06634467840194702,
0.23477241396903992,
-0.136683389544487,
0.3822557330131531,
0.26722365617752075,
-0.05561147630214691,
-0.2718159854412079,
-0.12424221634864807,
0.2011883556842804,
0.28587985038757324,
1.1281510591506958,
-0.1759214699268341,
-0.040519535541534424,
0.31497853994369507,
-0.09968183934688568,
-0.0992816910147667,
0.1680586040019989,
0.03131697326898575,
-0.03883223235607147,
0.17873872816562653,
-0.16119515895843506,
0.1797722429037094,
-0.46640488505363464,
0.1413651704788208,
-0.014195460826158524,
-0.027076974511146545,
-0.1871177703142166,
0.1523536592721939,
-0.06468439102172852,
-0.13945096731185913,
0.21267163753509521,
0.017433546483516693,
-0.17860528826713562,
0.006347171030938625,
-0.23155279457569122,
0.2088044285774231,
0.07853810489177704,
0.026638213545084,
0.12223909050226212,
0.21206018328666687,
0.1921803206205368,
0.35312747955322266,
-0.09030125290155411,
0.013467863202095032,
0.01816720888018608,
-0.2912476360797882,
0.1541648507118225,
-0.3027766942977905,
0.29137539863586426,
0.26914864778518677,
0.1794344037771225,
-0.024443313479423523,
-0.1972792148590088,
-0.006756276357918978,
-0.05399007350206375,
-0.3772464990615845,
0.1665058732032776,
-0.2846542298793793,
-0.03635013476014137,
0.141523078083992,
0.1066160723567009,
0.12045717239379883,
-0.03161409869790077,
0.35087457299232483,
0.20055657625198364,
-0.11833743005990982,
0.0013840757310390472,
0.25743722915649414,
0.023320404812693596,
-0.15908092260360718,
-0.12988552451133728,
-0.20666339993476868,
0.15060751140117645,
-0.1947210431098938,
0.3399653434753418,
-0.25567516684532166,
-0.08389364182949066,
-0.21200548112392426,
0.13847026228904724,
-0.12459263205528259,
0.039868034422397614,
0.02842528745532036,
0.1626085638999939,
0.46331587433815,
0.4810386002063751,
0.028405433520674706,
0.019161872565746307,
-0.05861059948801994,
-0.006411366164684296,
0.25062572956085205,
0.1490086317062378,
0.0090782530605793,
-0.10085996985435486,
0.17956924438476562,
-0.2426549792289734,
-0.019808512181043625,
-0.45747652649879456,
0.1659425050020218,
-0.41537782549858093,
-0.08753505349159241,
-0.31480374932289124,
-0.027315832674503326,
-0.14961141347885132,
-0.1502353549003601,
0.36776673793792725,
0.23652084171772003,
-0.4226803481578827,
0.018590599298477173,
-0.07527897506952286,
-0.10793845355510712,
-0.07152598351240158,
-0.11012430489063263,
-0.1279904842376709,
0.03786782547831535,
-0.04281504452228546,
0.1523473858833313,
0.2159520983695984,
-0.34147951006889343,
-0.483598917722702,
0.0258471816778183,
-0.012223966419696808,
-0.3496171832084656,
0.2025376260280609,
0.04735537990927696,
-0.01161542534828186,
-0.002828226424753666,
-0.21154898405075073,
-0.017809469252824783,
0.06748075783252716,
0.06774863600730896,
-0.0882640853524208,
-0.34434765577316284,
-0.013067793101072311,
0.3732627332210541,
0.25906533002853394,
-0.09466034919023514,
0.30746832489967346,
0.08936292678117752,
0.31839069724082947,
0.0009114444255828857,
0.17388416826725006,
0.022149700671434402,
0.1247047632932663,
-0.1577998846769333,
0.2183081954717636,
-0.3658600151538849,
0.3132709860801697,
0.0677151307463646,
0.584865927696228,
0.20610153675079346,
0.16632536053657532,
0.05147042125463486,
-0.19032424688339233,
-0.13792245090007782,
-0.23854900896549225,
0.1486387401819229,
0.22641417384147644,
0.20503802597522736,
-0.10357096791267395,
0.06796619296073914,
-0.007116910070180893,
0.40316158533096313,
0.0288213063031435,
0.04849462956190109,
-0.41626906394958496,
0.27370360493659973,
0.0179078858345747,
0.0008733635768294334,
0.053255073726177216,
-0.23539578914642334,
0.2409299612045288,
-0.10125946253538132,
-0.19226974248886108,
0.13580548763275146,
-0.17863067984580994,
0.026113361120224,
0.30231332778930664,
-0.14874659478664398,
0.03146769851446152,
-0.6147071123123169,
0.2409907728433609,
-0.028873853385448456,
0.13852402567863464,
-0.0088571235537529,
-0.22433441877365112,
-0.18724660575389862,
-0.21572436392307281,
0.05018181726336479,
0.05807609111070633,
0.29554039239883423,
0.4504474699497223,
-0.18747331202030182,
0.01815083436667919,
-0.06641317158937454,
0.2241005003452301,
0.3031154274940491,
-0.5392593145370483,
-0.3264314532279968,
0.001627124845981598,
0.19257602095603943,
-0.2150944471359253,
-0.04749229922890663,
0.05851341784000397,
0.034856900572776794,
-0.3609098792076111,
0.31867513060569763,
0.0029007568955421448,
0.13779300451278687,
0.375546395778656,
0.2726728618144989,
0.018154174089431763,
0.09264747053384781,
-0.020103659480810165,
-0.15434759855270386,
-0.003902532160282135,
0.49076777696609497,
0.14303049445152283,
-0.08768077939748764,
-0.030984891578555107,
-0.16527630388736725,
-0.39777347445487976,
-0.10004569590091705,
0.2117951661348343,
0.0636356770992279,
-0.17542259395122528,
-0.1520296335220337,
-0.42069461941719055,
-0.4782254993915558,
0.007165198680013418,
-0.35400402545928955,
0.014477977529168129,
-0.230447456240654,
-0.0011590644717216492,
0.28559187054634094,
-0.1703750193119049,
0.12025102972984314,
-0.7565701603889465,
0.1763514280319214,
-0.006265565752983093,
0.06931982189416885,
-0.19565239548683167,
0.09159312397241592,
-0.06579764187335968,
0.17507076263427734,
0.07872866094112396,
0.39717838168144226,
0.3359593152999878,
-0.21775588393211365,
0.2585381269454956,
-0.1531352400779724,
-0.19733142852783203,
0.11837448179721832,
-0.12306904792785645,
0.500155508518219,
-0.06404218077659607,
0.09556226432323456,
0.02793864905834198,
0.21183137595653534,
0.172867089509964,
0.06347432732582092,
0.11298646032810211,
0.08977138251066208,
-0.005233531817793846,
-0.2965806722640991,
-0.06696722656488419,
-0.27576833963394165,
-0.0651322454214096,
-0.4313834607601166,
-0.16508248448371887,
0.12067331373691559,
0.1838795244693756,
-0.27054211497306824,
0.10760628432035446,
0.1696157604455948,
0.03144107013940811,
0.09917327761650085,
-0.2987133264541626,
0.041883502155542374,
0.29250025749206543,
-0.22614145278930664,
-0.6170190572738647,
0.2781272828578949,
0.1923549473285675,
0.2933357357978821,
-0.04895443096756935,
-0.4919697046279907,
-0.2813115119934082,
-0.0717826634645462,
-0.003875080496072769,
0.21022194623947144,
-0.2418217808008194,
0.2262600213289261,
-0.1785096973180771,
-0.14350494742393494,
-0.3401733934879303,
-0.3447306752204895,
-0.024827606976032257,
-0.2344922125339508,
0.02333264797925949,
0.06084117293357849,
0.386987566947937,
-0.03275219351053238,
0.13808774948120117,
0.2562059164047241,
-0.11593492329120636,
0.41819989681243896,
-0.10458255559206009,
0.29482266306877136,
0.175085186958313,
-0.2484680563211441,
0.31854069232940674,
-0.008094295859336853,
0.12015454471111298,
0.21927249431610107,
0.26254940032958984,
-0.055689334869384766,
-0.25196903944015503,
-0.3750482201576233,
-0.251295268535614,
-0.21792156994342804,
-0.12434668838977814,
0.10022217035293579,
-0.19579404592514038,
0.06683562695980072,
0.18215718865394592,
-0.1390952169895172,
-0.3046279847621918,
-0.174639031291008,
0.5088454484939575,
0.024376600980758667,
0.018939822912216187,
-0.2944223880767822,
0.007808358408510685,
-0.22375178337097168,
0.33515068888664246,
-0.09447282552719116,
0.32246851921081543,
-0.27600547671318054,
-0.07282237708568573,
0.10925834625959396,
-0.09269896149635315,
0.3906437158584595,
-0.38820087909698486,
0.07836346328258514,
0.21491573750972748,
0.3981946110725403,
-0.2488972246646881,
0.00023952126502990723,
-0.07974261790513992,
0.34162473678588867,
0.2356669157743454,
0.01710696518421173,
-0.0982324481010437,
-0.014902081340551376,
0.28752991557121277,
-0.0718337669968605,
-0.05794088542461395,
-0.1767531931400299,
-0.2604216933250427,
-0.678882360458374,
-0.04944438487291336,
-0.1145683005452156,
0.0404243990778923,
-0.001500614918768406,
-0.14056508243083954,
-0.13490664958953857,
-0.18964223563671112,
-0.1908959150314331,
0.07822790741920471,
0.2509821057319641,
0.31220266222953796,
0.1875012218952179,
0.33971115946769714,
0.30208098888397217,
0.3926292657852173,
0.3714679181575775,
0.6528621912002563,
0.3144768178462982,
-0.3916533589363098,
0.3097906708717346,
-0.27659356594085693,
0.05678715929389,
0.03967548906803131,
0.007594105787575245,
0.043590594083070755,
0.42277792096138,
0.20903852581977844,
-0.1794351041316986,
-0.022039461880922318,
0.25871917605400085,
-0.06853802502155304,
-0.2534883916378021,
-0.05636032670736313,
0.5145514011383057,
-0.1295841932296753,
-0.11012808233499527,
0.48886340856552124,
0.24883723258972168,
-0.058292731642723083,
0.006881519220769405,
0.13546913862228394,
0.8408795595169067,
0.0997534990310669,
-0.23230618238449097,
-0.0350789949297905,
-0.33671653270721436,
0.14285604655742645,
-0.03209894895553589,
0.26559460163116455,
-0.08009280264377594,
-0.4895974099636078,
-0.19345131516456604,
-0.15299297869205475,
0.31753870844841003,
-0.07797649502754211,
-0.3000537157058716,
-0.07466724514961243,
0.34774720668792725,
0.1818775236606598,
0.16959671676158905,
-0.0892510861158371,
-0.186577707529068,
-0.07048098742961884,
-0.015413768589496613,
0.15449245274066925,
-0.09981445968151093,
-0.12436315417289734,
0.10089106857776642,
-0.2023538202047348,
-0.009336013346910477,
-0.1859474778175354,
-0.4675399661064148,
0.3042963743209839,
0.1399543285369873,
-0.25130677223205566,
0.04411419481039047,
0.11848278343677521,
0.3258785605430603,
0.042442645877599716,
0.208336740732193,
0.04194045066833496,
-0.4958433508872986,
0.4199749529361725,
-0.13048282265663147,
0.008483482524752617,
-0.013517999090254307,
0.00004852470010519028,
0.2915549576282501,
-0.17848971486091614,
-0.19470280408859253,
0.2835131585597992,
0.2660689353942871,
-0.18068642914295197,
-0.24105513095855713,
0.16767726838588715,
0.040843598544597626,
-0.4019734263420105,
0.3423680067062378,
-0.022019006311893463,
-0.019911669194698334,
-0.15608377754688263,
0.14354588091373444,
0.17417360842227936,
-0.02145945280790329,
0.33392906188964844,
0.0659567192196846,
-0.253854364156723,
-0.05812278762459755,
0.40854600071907043,
0.2234027087688446,
-0.07603386044502258,
0.34015655517578125,
0.11140026152133942,
-0.1986754685640335,
-0.20122849941253662,
-0.22617310285568237,
-0.14507292211055756,
-0.12693728506565094,
-0.2228642702102661,
-0.02202359028160572,
0.023633629083633423,
0.19609716534614563,
-0.40006381273269653,
-0.1828068494796753,
-0.49640148878097534,
-0.3016362488269806,
-0.4278295636177063,
0.021074483171105385,
-0.09649306535720825,
-0.21199367940425873,
0.08839862048625946,
0.03545887768268585,
-0.32149791717529297,
0.2168062925338745,
-0.13260821998119354,
-0.2876724600791931,
-0.012487733736634254,
0.030095288529992104,
-0.07033965736627579,
-0.2842271625995636,
0.07723069936037064,
0.25126680731773376,
-0.14649711549282074,
0.10061970353126526,
0.0751190260052681,
-0.2752313017845154,
-0.158147394657135,
-0.042070988565683365,
0.1375531554222107,
0.06247293949127197,
-0.28853467106819153,
-0.579592227935791,
-0.22838084399700165,
-0.2397894263267517,
0.10126137733459473,
0.04612720385193825,
-0.13446886837482452,
-0.10106542706489563,
-0.05006283521652222,
0.27959883213043213,
-0.2516629993915558,
0.08949892222881317,
0.07936522364616394,
0.22171396017074585,
0.7074550986289978,
-0.08711101114749908,
0.07729197293519974,
0.01759924925863743,
-0.15588945150375366,
-0.36204975843429565,
0.1147204339504242,
0.07179029285907745,
-0.26573604345321655,
0.39470306038856506,
-0.2957042455673218,
0.177511066198349,
-0.019859274849295616,
0.5657261610031128,
0.19150495529174805,
-0.1551017016172409,
0.02205214835703373,
0.1490383744239807,
0.1697303056716919,
-0.33220866322517395,
-0.2226984202861786,
0.14511512219905853,
0.10642673820257187,
0.08897414803504944,
-0.06144797056913376,
-0.07363296300172806,
-0.05528298020362854,
0.18487221002578735,
0.07419448345899582,
0.6312558054924011,
-0.06748033314943314,
-0.002010567579418421,
0.2836993932723999,
-0.11989815533161163,
0.05598222091794014,
0.1000189334154129,
0.14390532672405243,
0.032412685453891754,
0.6995216012001038,
-0.07142531126737595,
0.4000447690486908,
-0.24393215775489807,
-0.10521210730075836,
-0.07055642455816269,
-0.20294220745563507,
-0.023161794990301132,
0.04922137409448624,
-0.1277608722448349,
0.16683410108089447,
0.16956943273544312,
0.3282712697982788,
-0.029187768697738647,
0.01390182413160801,
-0.6852774620056152,
-0.2331794649362564,
0.05227968841791153,
0.1184847503900528,
-0.48165205121040344,
-0.1087288036942482,
-0.017197974026203156,
-0.02030188776552677,
0.13442693650722504,
-0.006358057260513306,
-0.014596730470657349,
0.053082264959812164,
-0.22558514773845673,
-0.45876941084861755,
-0.013442933559417725,
0.0601855106651783,
-0.009272180497646332,
-0.061685711145401,
0.08892504870891571,
0.37823086977005005,
-0.10428230464458466,
0.5128419399261475,
0.404521644115448,
0.37114277482032776,
0.07111003994941711,
0.04824412241578102,
0.0850825160741806,
0.12868638336658478,
-0.21263036131858826,
-0.20308919250965118,
0.4474745988845825,
0.21790234744548798,
0.3361876904964447,
0.31547823548316956,
0.22217796742916107,
-0.03930705040693283,
0.4258655905723572,
-0.15411463379859924,
0.3878673017024994,
-0.1224699318408966,
0.15519778430461884,
-0.21976137161254883,
0.018330298364162445,
-0.017208699136972427,
-0.5029164552688599,
-0.37652140855789185,
0.25640586018562317,
0.48177218437194824,
-0.22977037727832794,
0.06812771409749985,
-0.43285468220710754,
0.03621785342693329,
0.10254400968551636,
0.621168315410614,
0.18477940559387207,
0.3633555471897125,
0.11610165983438492,
-0.05612090229988098,
-0.48565536737442017,
0.2631545960903168,
-0.1828628033399582,
-0.3671937584877014,
0.20476125180721283,
-0.08495189249515533,
0.3235514760017395,
0.10692254453897476,
0.35345548391342163,
-0.23183538019657135,
-0.09029322862625122,
0.37819424271583557,
-0.344413697719574,
-0.20722037553787231,
0.2607365846633911,
0.4382578432559967,
-0.23599031567573547,
-0.39965811371803284,
0.5588790774345398,
0.11223447322845459,
0.07108813524246216,
-0.01779273897409439,
0.08310195803642273,
-0.018215328454971313,
0.038295358419418335,
0.16546499729156494,
0.12992146611213684,
0.36344605684280396,
-0.04058214649558067,
0.28014519810676575,
-0.49998974800109863,
0.03219648823142052,
-0.3367175757884979,
-0.06020516902208328,
0.15925759077072144,
0.08129014074802399,
-0.003377275075763464,
-0.06479643285274506,
0.1177540272474289,
-0.2555106580257416,
-0.21065069735050201,
0.26900118589401245,
-0.12273310124874115,
-0.09388789534568787,
-0.1934697926044464,
0.058783307671546936,
0.1720677763223648,
-0.09069543331861496,
-0.01954852044582367,
0.0650864914059639,
-0.25407034158706665,
-0.37038445472717285,
0.34779149293899536,
-0.6659423112869263,
-0.2691952586174011,
-0.09121295809745789,
0.03257833421230316,
0.023559432476758957,
0.038005709648132324,
-0.4017283618450165,
0.18063801527023315,
0.30130815505981445,
0.12200640141963959,
0.11630041897296906,
0.2964068353176117,
0.054439693689346313,
-0.14719276130199432,
-0.09379734098911285,
0.14773531258106232,
0.024829884991049767,
-0.1252056062221527,
-0.020511342212557793,
0.03921869397163391
] |
https://github.com/huggingface/datasets/issues/4143 | Unable to download `Wikepedia` 20220301.en version | Hi! We've recently updated the Wikipedia script, so these changes are only available on master and can be fetched as follows:
```python
dataset_wikipedia = load_dataset("wikipedia", "20220301.en", revision="master")
``` | ## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en 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']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1 | 28 | Unable to download `Wikepedia` 20220301.en version
## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en 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']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1
Hi! We've recently updated the Wikipedia script, so these changes are only available on master and can be fetched as follows:
```python
dataset_wikipedia = load_dataset("wikipedia", "20220301.en", revision="master")
``` | [
-0.3187178075313568,
0.13365113735198975,
-0.13223892450332642,
0.26052629947662354,
-0.09839707612991333,
0.0693124458193779,
0.33291786909103394,
0.4483039975166321,
0.25013890862464905,
0.3041917085647583,
0.2490297555923462,
0.12957482039928436,
0.07585416734218597,
0.32713496685028076,
0.10379407554864883,
-0.4493441879749298,
0.2669946849346161,
0.12097488343715668,
-0.3334057927131653,
-0.08786538243293762,
-0.21450482308864594,
0.19503875076770782,
-0.28464120626449585,
-0.014961451292037964,
0.00013220356777310371,
0.027309035882353783,
0.09426599740982056,
-0.24035316705703735,
-0.3062954843044281,
-0.2891097962856293,
0.19561061263084412,
-0.057403866201639175,
0.22427211701869965,
0.1828519105911255,
-0.0001109050281229429,
0.0604679137468338,
0.46321964263916016,
-0.12359634786844254,
-0.3431122303009033,
-0.17802150547504425,
-0.3477602005004883,
-0.3295610547065735,
-0.1810353547334671,
-0.3486427366733551,
-0.02581026405096054,
-0.15110546350479126,
-0.012507176026701927,
-0.04494982957839966,
0.22228729724884033,
0.18442749977111816,
0.23744343221187592,
0.2104109227657318,
0.5298448801040649,
-0.2365536093711853,
0.319553405046463,
-0.5026230812072754,
-0.2480253130197525,
-0.3113802969455719,
0.04995976760983467,
-0.0028419382870197296,
0.01715017855167389,
0.4777200222015381,
0.06207086145877838,
0.020975030958652496,
0.04856337979435921,
-0.28260934352874756,
0.24082931876182556,
-0.4312247037887573,
0.4976035952568054,
0.24488458037376404,
0.6387531757354736,
0.005062028765678406,
-0.17691221833229065,
0.05941420793533325,
-0.0025997841730713844,
0.20447030663490295,
0.3989377021789551,
0.22775858640670776,
-0.20523199439048767,
-0.005438309162855148,
-0.009543308988213539,
-0.14567917585372925,
-0.14065499603748322,
0.23315468430519104,
-0.17497844994068146,
0.9241117238998413,
-0.004630791023373604,
0.22747033834457397,
0.025929944589734077,
-0.22066955268383026,
0.1294308304786682,
-0.3484385907649994,
0.07320231199264526,
0.18150615692138672,
0.02119123563170433,
-0.02300209179520607,
-0.00873412936925888,
0.36714616417884827,
0.11099795252084732,
-0.1388394832611084,
-0.4025186002254486,
0.07065995037555695,
0.20116367936134338,
0.05751579999923706,
0.148060142993927,
0.05445003882050514,
-0.06005781143903732,
-0.11379298567771912,
0.20692622661590576,
0.49505388736724854,
0.10588453710079193,
0.1824934482574463,
0.10549145191907883,
-0.3332954943180084,
-0.25214970111846924,
0.17478802800178528,
0.11962276697158813,
-0.10726918280124664,
-0.13107064366340637,
0.06183098629117012,
-0.13266198337078094,
-0.11804091930389404,
-0.23722976446151733,
0.22588592767715454,
-0.2953326106071472,
0.3738023638725281,
0.08387637138366699,
-0.05789928138256073,
-0.17615525424480438,
-0.29864373803138733,
-0.104703888297081,
0.19605810940265656,
-0.060375094413757324,
-0.0023539718240499496,
0.19254876673221588,
-0.126977801322937,
0.39032426476478577,
0.097596675157547,
0.048342011868953705,
-0.1837177723646164,
-0.033449798822402954,
0.07711657881736755,
-0.17262235283851624,
0.3475731611251831,
0.20785383880138397,
0.31857454776763916,
-0.1887439787387848,
-0.318084716796875,
0.0029935911297798157,
0.11135042458772659,
-0.2286960780620575,
-0.20840172469615936,
-0.3206181228160858,
0.19034716486930847,
-0.11386898159980774,
0.04389842227101326,
-0.009508080780506134,
-0.2741489112377167,
0.11401663720607758,
-0.09731586277484894,
-0.13027477264404297,
-0.1224832534790039,
-0.20940186083316803,
-0.17054638266563416,
0.3936007618904114,
0.2712753117084503,
-0.2965458929538727,
-0.024266820400953293,
-0.13549737632274628,
-0.03722042962908745,
-0.061907388269901276,
-0.11189068853855133,
-0.17582811415195465,
0.2833341658115387,
-0.258690744638443,
-0.14627699553966522,
0.4512019157409668,
-0.4036867320537567,
-0.49221208691596985,
0.008036719635128975,
0.07195033133029938,
0.13583359122276306,
0.19490942358970642,
-0.14704327285289764,
0.2294367253780365,
-0.06126127764582634,
0.05010547116398811,
0.20537462830543518,
0.12158645689487457,
-0.031308144330978394,
-0.20642238855361938,
-0.4252709746360779,
-0.013442613184452057,
0.1041574776172638,
0.1852661371231079,
-0.10203000158071518,
0.02671317756175995,
0.36066386103630066,
0.3960701525211334,
-0.08759406208992004,
0.17783194780349731,
0.20770922303199768,
-0.08512347936630249,
-0.17766983807086945,
0.17650075256824493,
-0.20026621222496033,
-0.3806578814983368,
0.3346129357814789,
-0.21228767931461334,
-0.029155880212783813,
0.014234252274036407,
-0.05979512259364128,
-0.5651842355728149,
0.10958883911371231,
-0.35702982544898987,
-0.16310754418373108,
0.2558436095714569,
0.12086276710033417,
0.25135916471481323,
0.19896267354488373,
0.07928656041622162,
-0.13149742782115936,
-0.005793476477265358,
-0.09027062356472015,
-0.08368188142776489,
0.20011503994464874,
-0.4286348521709442,
0.07678589969873428,
0.08169109374284744,
0.14356008172035217,
0.41232600808143616,
-0.11848518997430801,
-0.09625624865293503,
0.06920378655195236,
0.09986194223165512,
0.32874518632888794,
-0.24870672821998596,
0.005862310528755188,
0.1733943223953247,
-0.27088186144828796,
0.2325086146593094,
0.2712000906467438,
0.045701075345277786,
0.025528907775878906,
-0.09960011392831802,
0.14983883500099182,
0.2149909883737564,
0.26481345295906067,
-0.005109608173370361,
0.2650560736656189,
0.36580049991607666,
-0.02945880964398384,
0.0762043371796608,
-0.3288824260234833,
0.2632729709148407,
0.014759695157408714,
-0.11375084519386292,
-0.04709596931934357,
0.08834905922412872,
0.10236112028360367,
0.48305773735046387,
-0.054434921592473984,
0.04445311427116394,
-0.04514238238334656,
-0.2354455292224884,
0.046841830015182495,
0.2704585790634155,
0.3708178400993347,
0.026565760374069214,
0.12222009152173996,
0.01158832386136055,
0.0873500406742096,
0.09997812658548355,
-0.05741351842880249,
0.23573096096515656,
0.25122857093811035,
0.35715770721435547,
0.28975796699523926,
-0.09181016683578491,
0.10874580591917038,
0.11266293376684189,
0.08447161316871643,
-0.1685064733028412,
0.09362568706274033,
-0.11876942217350006,
-0.09081654995679855,
-0.23188257217407227,
-0.0133628249168396,
-0.38857367634773254,
0.1366243213415146,
-0.28232041001319885,
-0.30583763122558594,
0.14080694317817688,
0.27001410722732544,
-0.2215801179409027,
0.2608421742916107,
0.08058638870716095,
-0.05972306430339813,
0.03722255676984787,
-0.026406684890389442,
-0.29951533675193787,
-0.0491325818002224,
-0.39722102880477905,
0.06731407344341278,
0.24138839542865753,
0.03511007875204086,
0.30736711621284485,
-0.2740054428577423,
-0.07108050584793091,
-0.6663252115249634,
-0.37981921434402466,
0.2830163836479187,
0.011055797338485718,
0.27135932445526123,
0.24006472527980804,
0.37399935722351074,
0.22296752035617828,
-0.28486430644989014,
0.12195758521556854,
0.01950913853943348,
0.0030153989791870117,
-0.12010987102985382,
-0.21140506863594055,
0.04522915557026863,
0.10050755739212036,
-0.47035637497901917,
-0.43066132068634033,
-0.2938409447669983,
-0.1932704597711563,
0.41273942589759827,
0.15530261397361755,
-0.14100271463394165,
0.1676160991191864,
-0.17506040632724762,
0.18876373767852783,
0.03397129476070404,
0.0006770093459635973,
0.03079039976000786,
0.401717871427536,
-0.3618932366371155,
-0.5720649361610413,
0.22994795441627502,
-0.14069810509681702,
0.270142138004303,
-0.039747145026922226,
-0.4857620596885681,
0.1504857987165451,
0.08860668540000916,
-0.05423622205853462,
0.01691107079386711,
0.07841401547193527,
0.3735065460205078,
0.10688406974077225,
0.0759207010269165,
-0.11080209910869598,
-0.1370650678873062,
-0.09853760153055191,
-0.2560421824455261,
0.3876022696495056,
0.20786705613136292,
0.19553223252296448,
0.0839720368385315,
0.8127428889274597,
0.3120049834251404,
0.1435549557209015,
0.21578337252140045,
0.09238427877426147,
-0.16645610332489014,
-0.15777996182441711,
-0.22244621813297272,
0.08012405037879944,
-0.08087119460105896,
0.07439396530389786,
0.2833179831504822,
-0.07824794203042984,
-0.3247644305229187,
-0.29856404662132263,
-0.12096814811229706,
-0.12200591713190079,
-0.31684038043022156,
-0.0432090163230896,
0.07953914999961853,
0.35419443249702454,
0.1830807477235794,
0.233496755361557,
-0.1411943882703781,
-0.3107970952987671,
0.3637543320655823,
0.04705561697483063,
-0.06132734566926956,
0.031193841248750687,
0.29212290048599243,
-0.10449834913015366,
-0.3887520432472229,
0.16451649367809296,
0.23205266892910004,
0.23718655109405518,
0.006822299212217331,
0.0811430886387825,
0.130965918302536,
-0.23459596931934357,
0.36936789751052856,
-0.39843234419822693,
0.4803285002708435,
0.06451679766178131,
0.11601686477661133,
-0.2973487377166748,
-0.19976268708705902,
-0.20917150378227234,
-0.10866720974445343,
0.33912020921707153,
0.37597551941871643,
-0.23784303665161133,
-0.026255464181303978,
0.5812441110610962,
0.3529179096221924,
-0.23378418385982513,
-0.11324959993362427,
-0.13413728773593903,
-0.2000948190689087,
-0.5458874702453613,
-0.1421816647052765,
-0.06821245700120926,
0.41374555230140686,
-0.0646236464381218,
-0.029974382370710373,
0.07934240251779556,
-0.0037677306681871414,
-0.33141499757766724,
0.07911141216754913,
0.21983212232589722,
0.11140012741088867,
0.06284917891025543,
0.04270455986261368,
0.08962161839008331,
-0.17255903780460358,
0.04737959802150726,
0.13026708364486694,
0.0005066916346549988,
-0.018273301422595978,
-0.06634316593408585,
-0.12083340436220169,
0.14393463730812073,
-0.2688094675540924,
-0.3486832082271576,
0.18778806924819946,
0.09040870517492294,
-0.08346784114837646,
-0.07239514589309692,
0.2902611494064331,
-0.05845436826348305,
-0.507128894329071,
-0.20193788409233093,
0.5884348750114441,
0.12963761389255524,
-0.1354057341814041,
0.2793213725090027,
0.2435883730649948,
-0.10783813148736954,
0.3886091709136963,
0.2347150444984436,
0.8756210803985596,
0.18994319438934326,
0.016287438571453094,
0.16899946331977844,
-0.13630791008472443,
0.358746200799942,
-0.5133187770843506,
-0.020583003759384155,
-0.18378272652626038,
0.018365245312452316,
-0.16315363347530365,
0.02002011612057686,
0.19163870811462402,
-0.07236997783184052,
-0.378385066986084,
0.4259525239467621,
0.22903458774089813,
0.3270496726036072,
0.043895281851291656,
0.1421097218990326,
-0.13165315985679626,
-0.12949833273887634,
-0.08493497967720032,
0.08495145291090012,
0.027546610683202744,
0.5214973092079163,
-0.21511828899383545,
-0.010335564613342285,
0.13880333304405212,
-0.3498474359512329,
-0.42250198125839233,
0.16662031412124634,
-0.27371248602867126,
0.2503664791584015,
-0.23202058672904968,
-0.3226052522659302,
0.20735520124435425,
0.22391261160373688,
0.08084405213594437,
0.24274899065494537,
-0.28899016976356506,
0.3472861051559448,
-0.24377235770225525,
-0.1762937605381012,
0.02786794863641262,
0.08414680510759354,
0.02801242470741272,
-0.40537816286087036,
-0.33352982997894287,
0.05913081020116806,
-0.13276514410972595,
-0.17451505362987518,
0.06552213430404663,
-0.013799794018268585,
0.43779730796813965,
0.09131500869989395,
-0.10636724531650543,
-0.023541703820228577,
0.10100555419921875,
-0.3265794813632965,
0.18748950958251953,
-0.3748527765274048,
-0.2145979255437851,
0.13042278587818146,
0.07765554636716843,
-0.19442704319953918,
-0.03192092850804329,
0.5540799498558044,
0.05162282660603523,
-0.05221990868449211,
0.5714420080184937,
0.25391650199890137,
-0.29651468992233276,
-0.26659247279167175,
-0.12901467084884644,
-0.3687417209148407,
-0.3560064136981964,
-0.2279595136642456,
-0.09623776376247406,
-0.03555790334939957,
-0.3752157688140869,
0.534293532371521,
0.22512519359588623,
-0.09142503887414932,
0.06017808988690376,
-0.603567898273468,
0.04864875227212906,
0.04807375743985176,
-0.027910608798265457,
0.04126051440834999,
0.03968878835439682,
0.06719490140676498,
0.10877025127410889,
-0.0309536624699831,
-0.3011843264102936,
-0.026839686557650566,
-0.1794806718826294,
0.06721216440200806,
0.2827076017856598,
0.12556973099708557,
-0.16344550251960754,
0.28637218475341797,
0.16343331336975098,
0.04237235337495804,
-0.15988945960998535,
-0.2409299910068512,
-0.09087680280208588,
0.11626239120960236,
-0.0009530726820230484,
-0.14994768798351288,
0.2054702639579773,
-0.18383027613162994,
-0.15171554684638977,
0.14159317314624786,
0.12343074381351471,
-0.27594298124313354,
-0.019975855946540833,
0.11310746520757675,
0.11105711758136749,
0.2336786687374115,
-0.3225712776184082,
0.17431823909282684,
-0.029177166521549225,
0.48074448108673096,
0.031584013253450394,
0.3533664643764496,
0.27799326181411743,
-0.10485202819108963,
-0.05016389116644859,
-0.07276412099599838,
-0.20236288011074066,
0.17459586262702942,
0.3054291605949402,
-0.15387733280658722,
0.02557922527194023,
0.4291181266307831,
0.005046583712100983,
0.06761770695447922,
-0.2831794321537018,
-0.046191029250621796,
0.22432628273963928,
0.26505979895591736,
-0.3999669551849365,
-0.055635664612054825,
0.6158807277679443,
0.05485406890511513,
0.01613348349928856,
-0.02408992499113083,
0.3086693286895752,
-0.33313611149787903,
0.4047148823738098,
0.2263370156288147,
0.10771700739860535,
-0.49241089820861816,
0.39173662662506104,
0.3889964520931244,
0.14181125164031982,
0.23123310506343842,
-0.24151256680488586,
-0.0994182825088501,
0.014967292547225952,
0.5796820521354675,
-0.11275190860033035,
0.1867474466562271,
0.13139314949512482,
0.1034800112247467,
0.06850666552782059,
-0.18170113861560822,
0.4539702236652374,
0.12654608488082886,
-0.03672212362289429,
-0.04138452559709549,
0.13621225953102112,
-0.08660932630300522,
0.09662099182605743,
0.05180148035287857,
-0.5738658308982849,
0.3152935206890106,
-0.09621407836675644,
-0.030448777601122856,
-0.26102572679519653,
-0.3167892396450043,
-0.10597796738147736,
0.2709082067012787,
0.12604814767837524,
-0.14468863606452942,
0.19691964983940125,
0.2926766276359558,
-0.2410193830728531,
-0.35876938700675964,
-0.033814191818237305,
-0.08560021966695786,
0.13549163937568665,
-0.14890329539775848,
0.32064494490623474,
0.16511204838752747,
0.08088243007659912,
-0.20651952922344208,
0.2320103645324707,
0.3398454785346985,
0.14799551665782928,
-0.2665875554084778,
-0.08469576388597488,
0.0007332824170589447,
-0.028303824365139008,
-0.20766353607177734,
0.1644432544708252,
0.03610152751207352,
0.13467547297477722,
0.3734745383262634,
0.1885383427143097,
-0.2148764431476593,
-0.4117051362991333,
0.13668030500411987,
-0.05671372637152672,
-0.21511627733707428,
-0.05916663259267807,
-0.11019435524940491,
0.04926702380180359,
-0.20560351014137268,
-0.06490922719240189,
-0.3658744990825653,
0.053593672811985016,
0.1587989330291748,
0.15873247385025024,
0.19975650310516357,
-0.22835808992385864,
0.05923978239297867,
-0.046136993914842606,
0.3400200605392456,
0.006053507328033447,
0.1773185133934021,
-0.22834712266921997,
-0.43989652395248413,
-0.45895421504974365,
0.023894138634204865,
-0.10244368016719818,
-0.02322547882795334,
0.009105806238949299,
0.09580545127391815,
-0.22599804401397705,
0.2819860279560089,
0.28991228342056274,
0.15054449439048767,
0.2547171711921692,
0.38368919491767883,
-0.24021314084529877,
-0.23254527151584625,
0.2222519963979721,
0.11771164834499359,
-0.08365565538406372,
-0.39395731687545776,
0.14331525564193726,
-0.07836976647377014,
0.06628397852182388,
-0.10905469954013824,
-0.36154767870903015,
0.14448456466197968,
-0.3861318528652191,
0.48945337533950806,
0.10974021255970001,
0.3944054841995239,
-0.1514134705066681,
-0.1537231206893921,
-0.3341262638568878,
0.0425146222114563,
-0.06247264891862869,
0.11065588891506195,
-0.06070934608578682,
0.004803845658898354,
0.025446446612477303,
0.019851738587021828,
-0.3020392656326294,
0.3662022054195404,
-0.04222766309976578,
0.29993554949760437,
-0.2639075517654419,
-0.02198415994644165,
-0.13906387984752655,
0.18715237081050873,
0.0299677811563015,
0.05203407630324364,
-0.19932416081428528,
0.07762293517589569,
-0.2863801419734955,
-0.34130746126174927,
0.3391493260860443,
-0.47220513224601746,
-0.4799915850162506,
-0.12063972651958466,
0.14030462503433228,
-0.2729485332965851,
-0.0020171497017145157,
-0.3961184024810791,
0.19005101919174194,
0.21752449870109558,
0.004034923389554024,
0.18475833535194397,
0.015066378749907017,
0.021030019968748093,
0.1091139018535614,
-0.05942154303193092,
0.3058614730834961,
0.10593532025814056,
-0.31199967861175537,
0.02412540093064308,
-0.40600764751434326
] |
https://github.com/huggingface/datasets/issues/4143 | Unable to download `Wikepedia` 20220301.en version | Hi, how can I load the previous "20200501.en" version of wikipedia which had been downloaded to the default path? Thanks! | ## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en 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']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1 | 20 | Unable to download `Wikepedia` 20220301.en version
## Describe the bug
Unable to download `Wikepedia` dataset, 20220301.en version
## Steps to reproduce the bug
```python
!pip install apache_beam mwparserfromhell
dataset_wikipedia = load_dataset("wikipedia", "20220301.en")
```
## Actual results
```
ValueError: BuilderConfig 20220301.en 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']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Ubuntu
- Python version: 3.6
- PyArrow version: 6.0.1
Hi, how can I load the previous "20200501.en" version of wikipedia which had been downloaded to the default path? Thanks! | [
-0.3187178075313568,
0.13365113735198975,
-0.13223892450332642,
0.26052629947662354,
-0.09839707612991333,
0.0693124458193779,
0.33291786909103394,
0.4483039975166321,
0.25013890862464905,
0.3041917085647583,
0.2490297555923462,
0.12957482039928436,
0.07585416734218597,
0.32713496685028076,
0.10379407554864883,
-0.4493441879749298,
0.2669946849346161,
0.12097488343715668,
-0.3334057927131653,
-0.08786538243293762,
-0.21450482308864594,
0.19503875076770782,
-0.28464120626449585,
-0.014961451292037964,
0.00013220356777310371,
0.027309035882353783,
0.09426599740982056,
-0.24035316705703735,
-0.3062954843044281,
-0.2891097962856293,
0.19561061263084412,
-0.057403866201639175,
0.22427211701869965,
0.1828519105911255,
-0.0001109050281229429,
0.0604679137468338,
0.46321964263916016,
-0.12359634786844254,
-0.3431122303009033,
-0.17802150547504425,
-0.3477602005004883,
-0.3295610547065735,
-0.1810353547334671,
-0.3486427366733551,
-0.02581026405096054,
-0.15110546350479126,
-0.012507176026701927,
-0.04494982957839966,
0.22228729724884033,
0.18442749977111816,
0.23744343221187592,
0.2104109227657318,
0.5298448801040649,
-0.2365536093711853,
0.319553405046463,
-0.5026230812072754,
-0.2480253130197525,
-0.3113802969455719,
0.04995976760983467,
-0.0028419382870197296,
0.01715017855167389,
0.4777200222015381,
0.06207086145877838,
0.020975030958652496,
0.04856337979435921,
-0.28260934352874756,
0.24082931876182556,
-0.4312247037887573,
0.4976035952568054,
0.24488458037376404,
0.6387531757354736,
0.005062028765678406,
-0.17691221833229065,
0.05941420793533325,
-0.0025997841730713844,
0.20447030663490295,
0.3989377021789551,
0.22775858640670776,
-0.20523199439048767,
-0.005438309162855148,
-0.009543308988213539,
-0.14567917585372925,
-0.14065499603748322,
0.23315468430519104,
-0.17497844994068146,
0.9241117238998413,
-0.004630791023373604,
0.22747033834457397,
0.025929944589734077,
-0.22066955268383026,
0.1294308304786682,
-0.3484385907649994,
0.07320231199264526,
0.18150615692138672,
0.02119123563170433,
-0.02300209179520607,
-0.00873412936925888,
0.36714616417884827,
0.11099795252084732,
-0.1388394832611084,
-0.4025186002254486,
0.07065995037555695,
0.20116367936134338,
0.05751579999923706,
0.148060142993927,
0.05445003882050514,
-0.06005781143903732,
-0.11379298567771912,
0.20692622661590576,
0.49505388736724854,
0.10588453710079193,
0.1824934482574463,
0.10549145191907883,
-0.3332954943180084,
-0.25214970111846924,
0.17478802800178528,
0.11962276697158813,
-0.10726918280124664,
-0.13107064366340637,
0.06183098629117012,
-0.13266198337078094,
-0.11804091930389404,
-0.23722976446151733,
0.22588592767715454,
-0.2953326106071472,
0.3738023638725281,
0.08387637138366699,
-0.05789928138256073,
-0.17615525424480438,
-0.29864373803138733,
-0.104703888297081,
0.19605810940265656,
-0.060375094413757324,
-0.0023539718240499496,
0.19254876673221588,
-0.126977801322937,
0.39032426476478577,
0.097596675157547,
0.048342011868953705,
-0.1837177723646164,
-0.033449798822402954,
0.07711657881736755,
-0.17262235283851624,
0.3475731611251831,
0.20785383880138397,
0.31857454776763916,
-0.1887439787387848,
-0.318084716796875,
0.0029935911297798157,
0.11135042458772659,
-0.2286960780620575,
-0.20840172469615936,
-0.3206181228160858,
0.19034716486930847,
-0.11386898159980774,
0.04389842227101326,
-0.009508080780506134,
-0.2741489112377167,
0.11401663720607758,
-0.09731586277484894,
-0.13027477264404297,
-0.1224832534790039,
-0.20940186083316803,
-0.17054638266563416,
0.3936007618904114,
0.2712753117084503,
-0.2965458929538727,
-0.024266820400953293,
-0.13549737632274628,
-0.03722042962908745,
-0.061907388269901276,
-0.11189068853855133,
-0.17582811415195465,
0.2833341658115387,
-0.258690744638443,
-0.14627699553966522,
0.4512019157409668,
-0.4036867320537567,
-0.49221208691596985,
0.008036719635128975,
0.07195033133029938,
0.13583359122276306,
0.19490942358970642,
-0.14704327285289764,
0.2294367253780365,
-0.06126127764582634,
0.05010547116398811,
0.20537462830543518,
0.12158645689487457,
-0.031308144330978394,
-0.20642238855361938,
-0.4252709746360779,
-0.013442613184452057,
0.1041574776172638,
0.1852661371231079,
-0.10203000158071518,
0.02671317756175995,
0.36066386103630066,
0.3960701525211334,
-0.08759406208992004,
0.17783194780349731,
0.20770922303199768,
-0.08512347936630249,
-0.17766983807086945,
0.17650075256824493,
-0.20026621222496033,
-0.3806578814983368,
0.3346129357814789,
-0.21228767931461334,
-0.029155880212783813,
0.014234252274036407,
-0.05979512259364128,
-0.5651842355728149,
0.10958883911371231,
-0.35702982544898987,
-0.16310754418373108,
0.2558436095714569,
0.12086276710033417,
0.25135916471481323,
0.19896267354488373,
0.07928656041622162,
-0.13149742782115936,
-0.005793476477265358,
-0.09027062356472015,
-0.08368188142776489,
0.20011503994464874,
-0.4286348521709442,
0.07678589969873428,
0.08169109374284744,
0.14356008172035217,
0.41232600808143616,
-0.11848518997430801,
-0.09625624865293503,
0.06920378655195236,
0.09986194223165512,
0.32874518632888794,
-0.24870672821998596,
0.005862310528755188,
0.1733943223953247,
-0.27088186144828796,
0.2325086146593094,
0.2712000906467438,
0.045701075345277786,
0.025528907775878906,
-0.09960011392831802,
0.14983883500099182,
0.2149909883737564,
0.26481345295906067,
-0.005109608173370361,
0.2650560736656189,
0.36580049991607666,
-0.02945880964398384,
0.0762043371796608,
-0.3288824260234833,
0.2632729709148407,
0.014759695157408714,
-0.11375084519386292,
-0.04709596931934357,
0.08834905922412872,
0.10236112028360367,
0.48305773735046387,
-0.054434921592473984,
0.04445311427116394,
-0.04514238238334656,
-0.2354455292224884,
0.046841830015182495,
0.2704585790634155,
0.3708178400993347,
0.026565760374069214,
0.12222009152173996,
0.01158832386136055,
0.0873500406742096,
0.09997812658548355,
-0.05741351842880249,
0.23573096096515656,
0.25122857093811035,
0.35715770721435547,
0.28975796699523926,
-0.09181016683578491,
0.10874580591917038,
0.11266293376684189,
0.08447161316871643,
-0.1685064733028412,
0.09362568706274033,
-0.11876942217350006,
-0.09081654995679855,
-0.23188257217407227,
-0.0133628249168396,
-0.38857367634773254,
0.1366243213415146,
-0.28232041001319885,
-0.30583763122558594,
0.14080694317817688,
0.27001410722732544,
-0.2215801179409027,
0.2608421742916107,
0.08058638870716095,
-0.05972306430339813,
0.03722255676984787,
-0.026406684890389442,
-0.29951533675193787,
-0.0491325818002224,
-0.39722102880477905,
0.06731407344341278,
0.24138839542865753,
0.03511007875204086,
0.30736711621284485,
-0.2740054428577423,
-0.07108050584793091,
-0.6663252115249634,
-0.37981921434402466,
0.2830163836479187,
0.011055797338485718,
0.27135932445526123,
0.24006472527980804,
0.37399935722351074,
0.22296752035617828,
-0.28486430644989014,
0.12195758521556854,
0.01950913853943348,
0.0030153989791870117,
-0.12010987102985382,
-0.21140506863594055,
0.04522915557026863,
0.10050755739212036,
-0.47035637497901917,
-0.43066132068634033,
-0.2938409447669983,
-0.1932704597711563,
0.41273942589759827,
0.15530261397361755,
-0.14100271463394165,
0.1676160991191864,
-0.17506040632724762,
0.18876373767852783,
0.03397129476070404,
0.0006770093459635973,
0.03079039976000786,
0.401717871427536,
-0.3618932366371155,
-0.5720649361610413,
0.22994795441627502,
-0.14069810509681702,
0.270142138004303,
-0.039747145026922226,
-0.4857620596885681,
0.1504857987165451,
0.08860668540000916,
-0.05423622205853462,
0.01691107079386711,
0.07841401547193527,
0.3735065460205078,
0.10688406974077225,
0.0759207010269165,
-0.11080209910869598,
-0.1370650678873062,
-0.09853760153055191,
-0.2560421824455261,
0.3876022696495056,
0.20786705613136292,
0.19553223252296448,
0.0839720368385315,
0.8127428889274597,
0.3120049834251404,
0.1435549557209015,
0.21578337252140045,
0.09238427877426147,
-0.16645610332489014,
-0.15777996182441711,
-0.22244621813297272,
0.08012405037879944,
-0.08087119460105896,
0.07439396530389786,
0.2833179831504822,
-0.07824794203042984,
-0.3247644305229187,
-0.29856404662132263,
-0.12096814811229706,
-0.12200591713190079,
-0.31684038043022156,
-0.0432090163230896,
0.07953914999961853,
0.35419443249702454,
0.1830807477235794,
0.233496755361557,
-0.1411943882703781,
-0.3107970952987671,
0.3637543320655823,
0.04705561697483063,
-0.06132734566926956,
0.031193841248750687,
0.29212290048599243,
-0.10449834913015366,
-0.3887520432472229,
0.16451649367809296,
0.23205266892910004,
0.23718655109405518,
0.006822299212217331,
0.0811430886387825,
0.130965918302536,
-0.23459596931934357,
0.36936789751052856,
-0.39843234419822693,
0.4803285002708435,
0.06451679766178131,
0.11601686477661133,
-0.2973487377166748,
-0.19976268708705902,
-0.20917150378227234,
-0.10866720974445343,
0.33912020921707153,
0.37597551941871643,
-0.23784303665161133,
-0.026255464181303978,
0.5812441110610962,
0.3529179096221924,
-0.23378418385982513,
-0.11324959993362427,
-0.13413728773593903,
-0.2000948190689087,
-0.5458874702453613,
-0.1421816647052765,
-0.06821245700120926,
0.41374555230140686,
-0.0646236464381218,
-0.029974382370710373,
0.07934240251779556,
-0.0037677306681871414,
-0.33141499757766724,
0.07911141216754913,
0.21983212232589722,
0.11140012741088867,
0.06284917891025543,
0.04270455986261368,
0.08962161839008331,
-0.17255903780460358,
0.04737959802150726,
0.13026708364486694,
0.0005066916346549988,
-0.018273301422595978,
-0.06634316593408585,
-0.12083340436220169,
0.14393463730812073,
-0.2688094675540924,
-0.3486832082271576,
0.18778806924819946,
0.09040870517492294,
-0.08346784114837646,
-0.07239514589309692,
0.2902611494064331,
-0.05845436826348305,
-0.507128894329071,
-0.20193788409233093,
0.5884348750114441,
0.12963761389255524,
-0.1354057341814041,
0.2793213725090027,
0.2435883730649948,
-0.10783813148736954,
0.3886091709136963,
0.2347150444984436,
0.8756210803985596,
0.18994319438934326,
0.016287438571453094,
0.16899946331977844,
-0.13630791008472443,
0.358746200799942,
-0.5133187770843506,
-0.020583003759384155,
-0.18378272652626038,
0.018365245312452316,
-0.16315363347530365,
0.02002011612057686,
0.19163870811462402,
-0.07236997783184052,
-0.378385066986084,
0.4259525239467621,
0.22903458774089813,
0.3270496726036072,
0.043895281851291656,
0.1421097218990326,
-0.13165315985679626,
-0.12949833273887634,
-0.08493497967720032,
0.08495145291090012,
0.027546610683202744,
0.5214973092079163,
-0.21511828899383545,
-0.010335564613342285,
0.13880333304405212,
-0.3498474359512329,
-0.42250198125839233,
0.16662031412124634,
-0.27371248602867126,
0.2503664791584015,
-0.23202058672904968,
-0.3226052522659302,
0.20735520124435425,
0.22391261160373688,
0.08084405213594437,
0.24274899065494537,
-0.28899016976356506,
0.3472861051559448,
-0.24377235770225525,
-0.1762937605381012,
0.02786794863641262,
0.08414680510759354,
0.02801242470741272,
-0.40537816286087036,
-0.33352982997894287,
0.05913081020116806,
-0.13276514410972595,
-0.17451505362987518,
0.06552213430404663,
-0.013799794018268585,
0.43779730796813965,
0.09131500869989395,
-0.10636724531650543,
-0.023541703820228577,
0.10100555419921875,
-0.3265794813632965,
0.18748950958251953,
-0.3748527765274048,
-0.2145979255437851,
0.13042278587818146,
0.07765554636716843,
-0.19442704319953918,
-0.03192092850804329,
0.5540799498558044,
0.05162282660603523,
-0.05221990868449211,
0.5714420080184937,
0.25391650199890137,
-0.29651468992233276,
-0.26659247279167175,
-0.12901467084884644,
-0.3687417209148407,
-0.3560064136981964,
-0.2279595136642456,
-0.09623776376247406,
-0.03555790334939957,
-0.3752157688140869,
0.534293532371521,
0.22512519359588623,
-0.09142503887414932,
0.06017808988690376,
-0.603567898273468,
0.04864875227212906,
0.04807375743985176,
-0.027910608798265457,
0.04126051440834999,
0.03968878835439682,
0.06719490140676498,
0.10877025127410889,
-0.0309536624699831,
-0.3011843264102936,
-0.026839686557650566,
-0.1794806718826294,
0.06721216440200806,
0.2827076017856598,
0.12556973099708557,
-0.16344550251960754,
0.28637218475341797,
0.16343331336975098,
0.04237235337495804,
-0.15988945960998535,
-0.2409299910068512,
-0.09087680280208588,
0.11626239120960236,
-0.0009530726820230484,
-0.14994768798351288,
0.2054702639579773,
-0.18383027613162994,
-0.15171554684638977,
0.14159317314624786,
0.12343074381351471,
-0.27594298124313354,
-0.019975855946540833,
0.11310746520757675,
0.11105711758136749,
0.2336786687374115,
-0.3225712776184082,
0.17431823909282684,
-0.029177166521549225,
0.48074448108673096,
0.031584013253450394,
0.3533664643764496,
0.27799326181411743,
-0.10485202819108963,
-0.05016389116644859,
-0.07276412099599838,
-0.20236288011074066,
0.17459586262702942,
0.3054291605949402,
-0.15387733280658722,
0.02557922527194023,
0.4291181266307831,
0.005046583712100983,
0.06761770695447922,
-0.2831794321537018,
-0.046191029250621796,
0.22432628273963928,
0.26505979895591736,
-0.3999669551849365,
-0.055635664612054825,
0.6158807277679443,
0.05485406890511513,
0.01613348349928856,
-0.02408992499113083,
0.3086693286895752,
-0.33313611149787903,
0.4047148823738098,
0.2263370156288147,
0.10771700739860535,
-0.49241089820861816,
0.39173662662506104,
0.3889964520931244,
0.14181125164031982,
0.23123310506343842,
-0.24151256680488586,
-0.0994182825088501,
0.014967292547225952,
0.5796820521354675,
-0.11275190860033035,
0.1867474466562271,
0.13139314949512482,
0.1034800112247467,
0.06850666552782059,
-0.18170113861560822,
0.4539702236652374,
0.12654608488082886,
-0.03672212362289429,
-0.04138452559709549,
0.13621225953102112,
-0.08660932630300522,
0.09662099182605743,
0.05180148035287857,
-0.5738658308982849,
0.3152935206890106,
-0.09621407836675644,
-0.030448777601122856,
-0.26102572679519653,
-0.3167892396450043,
-0.10597796738147736,
0.2709082067012787,
0.12604814767837524,
-0.14468863606452942,
0.19691964983940125,
0.2926766276359558,
-0.2410193830728531,
-0.35876938700675964,
-0.033814191818237305,
-0.08560021966695786,
0.13549163937568665,
-0.14890329539775848,
0.32064494490623474,
0.16511204838752747,
0.08088243007659912,
-0.20651952922344208,
0.2320103645324707,
0.3398454785346985,
0.14799551665782928,
-0.2665875554084778,
-0.08469576388597488,
0.0007332824170589447,
-0.028303824365139008,
-0.20766353607177734,
0.1644432544708252,
0.03610152751207352,
0.13467547297477722,
0.3734745383262634,
0.1885383427143097,
-0.2148764431476593,
-0.4117051362991333,
0.13668030500411987,
-0.05671372637152672,
-0.21511627733707428,
-0.05916663259267807,
-0.11019435524940491,
0.04926702380180359,
-0.20560351014137268,
-0.06490922719240189,
-0.3658744990825653,
0.053593672811985016,
0.1587989330291748,
0.15873247385025024,
0.19975650310516357,
-0.22835808992385864,
0.05923978239297867,
-0.046136993914842606,
0.3400200605392456,
0.006053507328033447,
0.1773185133934021,
-0.22834712266921997,
-0.43989652395248413,
-0.45895421504974365,
0.023894138634204865,
-0.10244368016719818,
-0.02322547882795334,
0.009105806238949299,
0.09580545127391815,
-0.22599804401397705,
0.2819860279560089,
0.28991228342056274,
0.15054449439048767,
0.2547171711921692,
0.38368919491767883,
-0.24021314084529877,
-0.23254527151584625,
0.2222519963979721,
0.11771164834499359,
-0.08365565538406372,
-0.39395731687545776,
0.14331525564193726,
-0.07836976647377014,
0.06628397852182388,
-0.10905469954013824,
-0.36154767870903015,
0.14448456466197968,
-0.3861318528652191,
0.48945337533950806,
0.10974021255970001,
0.3944054841995239,
-0.1514134705066681,
-0.1537231206893921,
-0.3341262638568878,
0.0425146222114563,
-0.06247264891862869,
0.11065588891506195,
-0.06070934608578682,
0.004803845658898354,
0.025446446612477303,
0.019851738587021828,
-0.3020392656326294,
0.3662022054195404,
-0.04222766309976578,
0.29993554949760437,
-0.2639075517654419,
-0.02198415994644165,
-0.13906387984752655,
0.18715237081050873,
0.0299677811563015,
0.05203407630324364,
-0.19932416081428528,
0.07762293517589569,
-0.2863801419734955,
-0.34130746126174927,
0.3391493260860443,
-0.47220513224601746,
-0.4799915850162506,
-0.12063972651958466,
0.14030462503433228,
-0.2729485332965851,
-0.0020171497017145157,
-0.3961184024810791,
0.19005101919174194,
0.21752449870109558,
0.004034923389554024,
0.18475833535194397,
0.015066378749907017,
0.021030019968748093,
0.1091139018535614,
-0.05942154303193092,
0.3058614730834961,
0.10593532025814056,
-0.31199967861175537,
0.02412540093064308,
-0.40600764751434326
] |
https://github.com/huggingface/datasets/issues/4140 | Error loading arxiv data set | Hi! I think this error may be related to using an older version of the library. I was able to load the dataset without any issues using the latest version of `datasets`. Can you upgrade to the latest version of `datasets` and try again? :) | ## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
| 45 | Error loading arxiv data set
## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
Hi! I think this error may be related to using an older version of the library. I was able to load the dataset without any issues using the latest version of `datasets`. Can you upgrade to the latest version of `datasets` and try again? :) | [
-0.13808457553386688,
0.16167321801185608,
0.007934439927339554,
0.28195732831954956,
0.29166626930236816,
-0.04781791940331459,
0.06854572147130966,
0.5627234578132629,
0.05411190167069435,
-0.06703157722949982,
-0.06376897543668747,
0.2794143855571747,
0.07535652816295624,
0.0028108805418014526,
0.1414511501789093,
-0.187298983335495,
-0.08518018573522568,
0.1162744089961052,
0.018311794847249985,
-0.00994810089468956,
-0.30187085270881653,
0.1323906034231186,
-0.1504228562116623,
-0.04006852209568024,
0.3463248610496521,
0.11197716742753983,
0.06113541126251221,
0.3315551280975342,
0.16651450097560883,
-0.48780399560928345,
0.07507956027984619,
0.018851131200790405,
0.08674268424510956,
0.39283254742622375,
-0.00010673981887521222,
0.05638398230075836,
0.4425118565559387,
-0.07955236732959747,
-0.15998771786689758,
-0.14930076897144318,
-0.4832995533943176,
-0.42018502950668335,
-0.04956286400556564,
-0.24346181750297546,
0.10720125585794449,
-0.30865976214408875,
-0.006351614370942116,
0.04950226843357086,
0.005538836121559143,
0.3646393120288849,
0.28195488452911377,
0.20995928347110748,
0.27248403429985046,
-0.013416808098554611,
0.17792978882789612,
-0.43090349435806274,
0.09485787898302078,
0.2816667854785919,
0.08473972231149673,
-0.07585334032773972,
-0.27229738235473633,
0.2593000829219818,
-0.18034625053405762,
0.029933784157037735,
0.199347585439682,
-0.061358653008937836,
-0.10262734442949295,
-0.07644277811050415,
0.06740416586399078,
0.32371875643730164,
0.14769859611988068,
-0.06924490630626678,
-0.3203330636024475,
-0.1821669638156891,
0.07370920479297638,
-0.3004983067512512,
0.12078205496072769,
0.2258661389350891,
-0.1186731606721878,
-0.1043759286403656,
-0.23039895296096802,
0.03589165210723877,
-0.16830547153949738,
0.27139246463775635,
0.18048547208309174,
-0.11993744969367981,
0.09694081544876099,
0.09059390425682068,
0.05990757420659065,
-0.1760353296995163,
-0.038043487817049026,
-0.01820838451385498,
-0.04258425906300545,
0.15487508475780487,
-0.575232744216919,
0.027122795581817627,
0.2557949423789978,
0.14890459179878235,
0.3020172715187073,
0.10131818801164627,
0.18138442933559418,
-0.006846670061349869,
-0.16553206741809845,
0.13427576422691345,
0.07109414041042328,
0.1213453859090805,
-0.21660161018371582,
-0.021418403834104538,
0.3532576560974121,
0.27510252594947815,
0.12276440858840942,
0.12708936631679535,
0.008419242687523365,
-0.35972219705581665,
0.04807262495160103,
0.09720107167959213,
0.18495117127895355,
-0.24039199948310852,
-0.14527010917663574,
0.265513151884079,
0.1474442481994629,
0.1776273548603058,
0.10251013934612274,
0.3839556574821472,
-0.13564535975456238,
0.24248003959655762,
0.0362752303481102,
0.19112515449523926,
-0.26075318455696106,
-0.06649334728717804,
-0.22691108286380768,
0.07007989287376404,
-0.12659013271331787,
-0.3273313641548157,
0.3066745698451996,
-0.08142291009426117,
0.32675430178642273,
-0.09487161040306091,
0.13260585069656372,
-0.22347113490104675,
0.12744298577308655,
-0.12488651275634766,
0.06418731808662415,
0.42438191175460815,
0.11308236420154572,
0.003620825707912445,
0.11738249659538269,
-0.13210365176200867,
-0.042037997394800186,
0.07523639500141144,
-0.21007734537124634,
-0.30803683400154114,
-0.2199486643075943,
0.2995617389678955,
-0.2850600481033325,
0.033674560487270355,
-0.0753168836236,
-0.2988895773887634,
0.16721391677856445,
-0.21204976737499237,
-0.23234885931015015,
-0.3747226595878601,
-0.22373418509960175,
-0.24446041882038116,
0.31649085879325867,
0.37866267561912537,
-0.05527558922767639,
0.1821174919605255,
-0.11895707994699478,
-0.13881555199623108,
0.07595786452293396,
0.2529437839984894,
-0.1716851145029068,
0.011116169393062592,
-0.23770713806152344,
0.01863931119441986,
0.2686391770839691,
-0.2588648200035095,
-0.5184450149536133,
0.07910225540399551,
-0.18809466063976288,
0.12376093119382858,
0.012951336801052094,
0.0699566975235939,
0.05721757560968399,
-0.11952903121709824,
0.4729812741279602,
0.19159166514873505,
-0.0015799403190612793,
0.2868926227092743,
-0.4289957284927368,
-0.18717379868030548,
0.38236063718795776,
0.12062999606132507,
0.15104390680789948,
0.011368952691555023,
0.17096546292304993,
-0.08628800511360168,
0.21681103110313416,
-0.0237557552754879,
-0.13836485147476196,
0.07169023901224136,
0.03386644646525383,
-0.16734766960144043,
0.18792256712913513,
0.04575992375612259,
-0.2940438389778137,
0.345175176858902,
-0.30016523599624634,
0.12039313465356827,
-0.06097361445426941,
0.10148659348487854,
-0.4134756326675415,
0.006745738908648491,
-0.11088277399539948,
0.05721080303192139,
0.2256697416305542,
0.2120039314031601,
-0.06422604620456696,
0.16043145954608917,
0.05114449933171272,
0.03519013524055481,
-0.5864822864532471,
-0.19186873733997345,
-0.553351104259491,
0.12035420536994934,
-0.09995468705892563,
0.02259371243417263,
0.30842849612236023,
0.27701082825660706,
0.04437997192144394,
-0.008998172357678413,
-0.15686333179473877,
0.39952895045280457,
0.20110559463500977,
0.2969307005405426,
0.2235661745071411,
0.1304127424955368,
0.024171628057956696,
-0.35998278856277466,
0.12584155797958374,
0.19811409711837769,
0.38640686869621277,
-0.06669589132070541,
-0.030826061964035034,
0.35840001702308655,
-0.2964283227920532,
0.02237263321876526,
0.3021107316017151,
0.1325821727514267,
0.6256586909294128,
-0.25549745559692383,
-0.1741958111524582,
-0.27544301748275757,
0.43207553029060364,
0.22084087133407593,
-0.22477386891841888,
-0.007099533453583717,
-0.34026017785072327,
-0.08633438497781754,
0.15284456312656403,
0.08928486704826355,
-0.055255226790905,
0.23501378297805786,
-0.04167230427265167,
-0.1823015809059143,
0.027028167620301247,
0.4649975597858429,
0.34605562686920166,
0.14825762808322906,
-0.15681223571300507,
0.15312112867832184,
-0.18691836297512054,
-0.14278529584407806,
0.1405966877937317,
0.18482571840286255,
0.1480087786912918,
0.5639663338661194,
0.24187789857387543,
0.1361272633075714,
-0.3137306869029999,
-0.10777236521244049,
0.09448391199111938,
0.23332378268241882,
-0.6327825784683228,
-0.13817670941352844,
-0.14010636508464813,
-0.27447769045829773,
-0.4248914122581482,
-0.19041807949543,
-0.1537562608718872,
-0.32544705271720886,
0.026275746524333954,
0.1444503515958786,
-0.28727471828460693,
0.1719336062669754,
-0.4461556077003479,
0.22781221568584442,
0.061021722853183746,
-0.04061533510684967,
0.21790161728858948,
-0.05345620959997177,
0.07077207416296005,
0.09174466133117676,
0.3021269738674164,
0.1681954264640808,
0.46043217182159424,
-0.10907240957021713,
-0.17821067571640015,
-0.04284079372882843,
-0.34973132610321045,
-0.11529737710952759,
-0.19286328554153442,
0.27885738015174866,
0.28271031379699707,
0.12253160774707794,
0.3378622531890869,
-0.2205558866262436,
0.25921204686164856,
0.0699232965707779,
-0.0945805013179779,
0.4519694447517395,
0.01965952105820179,
-0.23629416525363922,
-0.07316835224628448,
-0.3587941825389862,
-0.12111777812242508,
-0.48399242758750916,
-0.281368613243103,
0.1088942289352417,
0.2631077468395233,
0.2318054884672165,
0.17865847051143646,
0.2770974934101105,
0.050094060599803925,
0.135996475815773,
-0.15184888243675232,
0.12899580597877502,
0.2514480650424957,
-0.1011510118842125,
-0.5094351172447205,
-0.0075676701962947845,
-0.04464992135763168,
0.18243783712387085,
0.21081525087356567,
-0.5630871653556824,
-0.16120536625385284,
-0.11313696205615997,
-0.1830170601606369,
0.1134902760386467,
-0.161102756857872,
0.14141979813575745,
-0.06954323500394821,
-0.1709904968738556,
-0.19124698638916016,
-0.20267923176288605,
0.030779153108596802,
0.012829450890421867,
0.25159981846809387,
-0.08958552032709122,
0.290688693523407,
0.012093942612409592,
0.4966297149658203,
0.4086681306362152,
0.00232740119099617,
0.1850215196609497,
0.022911017760634422,
0.3040975034236908,
-0.11587537080049515,
-0.3167758584022522,
0.11023638397455215,
-0.06486780941486359,
0.04130643606185913,
0.11750946193933487,
-0.12120913714170456,
-0.1699649840593338,
-0.08577150106430054,
-0.04762084037065506,
-0.19850432872772217,
-0.27149057388305664,
0.29702043533325195,
-0.44673383235931396,
0.2800740599632263,
0.06302519142627716,
-0.11226718127727509,
-0.11888924241065979,
-0.27727821469306946,
-0.13654877245426178,
0.24606016278266907,
-0.03826550394296646,
-0.0809604600071907,
-0.31932082772254944,
0.03227510303258896,
-0.23586800694465637,
0.22874119877815247,
0.1631253957748413,
0.6825212836265564,
0.022368762642145157,
-0.18917346000671387,
-0.0697116106748581,
-0.23299160599708557,
0.4736993908882141,
-0.11084165424108505,
0.4977695345878601,
0.23412716388702393,
-0.040278609842061996,
-0.32483795285224915,
0.027666833251714706,
0.01344994455575943,
0.0400109589099884,
0.26847922801971436,
0.30633077025413513,
-0.07346835732460022,
-0.025413421913981438,
0.19394338130950928,
0.28698891401290894,
-0.24895016849040985,
-0.10361048579216003,
-0.22061243653297424,
-0.32807469367980957,
-0.2625698149204254,
-0.12267719954252243,
-0.13031962513923645,
0.17225636541843414,
-0.25033149123191833,
-0.10559448599815369,
-0.02031536214053631,
-0.17014986276626587,
0.03133935481309891,
0.1587822437286377,
0.3170529901981354,
0.07713048905134201,
0.3457343578338623,
0.05785003677010536,
-0.0019455775618553162,
0.05188712477684021,
0.4541705846786499,
-0.15990737080574036,
-0.3018653988838196,
-0.09972997009754181,
-0.24353551864624023,
0.03684061020612717,
0.15907242894172668,
-0.20491445064544678,
-0.10213404148817062,
0.23280057311058044,
-0.019320860505104065,
-0.18445132672786713,
-0.015837552025914192,
0.2141367346048355,
-0.05776876211166382,
-0.20306582748889923,
-0.19730554521083832,
0.2855343818664551,
-0.2906997799873352,
-0.16973845660686493,
0.20590661466121674,
0.07613373547792435,
-0.2636818587779999,
0.4430806636810303,
0.061322636902332306,
0.7012239098548889,
0.16760790348052979,
0.06948096305131912,
0.2637088894844055,
-0.09520459920167923,
0.2510327994823456,
0.44194990396499634,
0.17815017700195312,
-0.4686661660671234,
-0.41529542207717896,
-0.027565766125917435,
-0.2099711000919342,
-0.15606561303138733,
-0.051078662276268005,
0.016981642693281174,
0.1162630096077919,
0.0005132630467414856,
-0.18660064041614532,
0.22353030741214752,
0.288264662027359,
0.17842277884483337,
-0.1909330040216446,
-0.4895256757736206,
0.19012963771820068,
-0.1996011584997177,
-0.011242680251598358,
-0.020689360797405243,
0.008825479075312614,
-0.11895212531089783,
-0.2187715619802475,
-0.3988017439842224,
0.4161475598812103,
0.18400833010673523,
0.18625184893608093,
0.06830205768346786,
-0.10936543345451355,
-0.022139597684144974,
0.3081144690513611,
0.006149783730506897,
0.26764488220214844,
-0.2710185945034027,
0.1772817224264145,
0.2586536407470703,
-0.005545004270970821,
0.2584625482559204,
0.08444034308195114,
0.45890045166015625,
-0.23407143354415894,
-0.016330502927303314,
-0.043549828231334686,
-0.08635636419057846,
-0.3252592086791992,
0.19832196831703186,
0.08515486121177673,
-0.03461982309818268,
-0.15542073547840118,
-0.3542758524417877,
0.03705044090747833,
0.007826853543519974,
-0.21865658462047577,
0.20716696977615356,
0.24992188811302185,
-0.03859875723719597,
0.2057611346244812,
0.09951439499855042,
-0.3675471246242523,
0.19229164719581604,
0.37455588579177856,
0.1331460177898407,
0.02336932346224785,
0.5706273317337036,
0.133716881275177,
-0.10091742128133774,
-0.23500320315361023,
-0.31021198630332947,
-0.48811501264572144,
-0.5573887228965759,
0.1358141005039215,
-0.07253669202327728,
0.12608490884304047,
0.013586726039648056,
0.13859456777572632,
0.10781919956207275,
-0.07500321418046951,
0.03540903702378273,
-0.9419777989387512,
-0.021178701892495155,
0.05679575353860855,
-0.188562273979187,
0.20075930655002594,
0.04446344077587128,
-0.11412207782268524,
-0.14146573841571808,
0.014168812893331051,
-0.3972072899341583,
0.14491824805736542,
-0.3778887689113617,
0.06544356048107147,
0.024966521188616753,
0.036447569727897644,
0.021594757214188576,
-0.14164863526821136,
0.19241845607757568,
-0.17047704756259918,
-0.17212161421775818,
-0.27394604682922363,
-0.3075929880142212,
0.10982909053564072,
0.031015265733003616,
-0.21175572276115417,
0.03372382000088692,
-0.21328552067279816,
-0.18227320909500122,
0.04608877748250961,
0.03551451116800308,
0.016506679356098175,
-0.2531123161315918,
0.06286922842264175,
-0.13292601704597473,
0.05755188316106796,
0.22586901485919952,
0.2520095705986023,
-0.22060540318489075,
0.03898172825574875,
0.18930743634700775,
0.2967820167541504,
-0.3092491626739502,
-0.08956017345190048,
-0.2510678172111511,
0.10277862101793289,
-0.18354256451129913,
0.039545416831970215,
0.47861248254776,
-0.04148586094379425,
-0.012830257415771484,
0.10515786707401276,
0.22733573615550995,
0.29329532384872437,
-0.5117554664611816,
-0.03693369776010513,
0.09650878608226776,
0.2366616576910019,
-0.506159245967865,
0.005359984003007412,
0.07471615821123123,
0.02642831951379776,
-0.06166377291083336,
0.027345925569534302,
0.21620330214500427,
-0.2512896656990051,
0.07175594568252563,
0.023065142333507538,
0.5541498064994812,
-0.36328768730163574,
0.14648815989494324,
0.13691352307796478,
-0.1658354252576828,
-0.023632068186998367,
-0.09957949072122574,
0.0065516941249370575,
0.19297011196613312,
0.15081648528575897,
0.19471226632595062,
0.23346862196922302,
-0.1692730188369751,
0.15175724029541016,
-0.25845205783843994,
-0.5342639684677124,
0.13966065645217896,
0.3165102005004883,
-0.0830308347940445,
0.31634166836738586,
0.12171865999698639,
0.29974499344825745,
0.0443597286939621,
0.2637060284614563,
-0.33865711092948914,
0.17013202607631683,
0.034983448684215546,
-0.0841401070356369,
-0.31223738193511963,
-0.2218359112739563,
-0.14532721042633057,
0.06700056791305542,
-0.054642487317323685,
0.06790947169065475,
0.1596546471118927,
0.21783547103405,
-0.36106622219085693,
-0.6163307428359985,
0.14261318743228912,
0.07899162918329239,
-0.014253579080104828,
-0.3372631072998047,
0.21029944717884064,
0.32509714365005493,
0.07958580553531647,
0.13937386870384216,
0.25941741466522217,
0.46254995465278625,
0.3912014663219452,
0.13481839001178741,
-0.17361848056316376,
0.15127454698085785,
0.2016994208097458,
-0.13455811142921448,
0.439352810382843,
0.2319284975528717,
0.2892336845397949,
0.5008739829063416,
0.17595833539962769,
-0.15758498013019562,
0.2008131742477417,
0.11544118821620941,
0.029258690774440765,
0.11805538833141327,
0.463627427816391,
0.04408664628863335,
0.10057190805673599,
-0.28721868991851807,
0.09453573822975159,
-0.23368415236473083,
-0.1526695042848587,
0.38914141058921814,
0.03292222321033478,
0.2404712736606598,
-0.14906547963619232,
0.12788574397563934,
-0.03157249465584755,
0.6297271847724915,
0.37406259775161743,
0.2058718204498291,
-0.25879746675491333,
-0.15811015665531158,
-0.8518221378326416,
0.36280354857444763,
-0.01872163638472557,
0.04881131649017334,
0.15408559143543243,
0.16130267083644867,
0.025042645633220673,
0.003743372857570648,
0.005270443856716156,
-0.18334749341011047,
-0.3539618253707886,
-0.11519068479537964,
-0.10247431695461273,
-0.1886533945798874,
-0.25560587644577026,
-0.029228316619992256,
-0.1612439602613449,
-0.28760844469070435,
0.060478921979665756,
-0.03429495915770531,
0.17325422167778015,
0.06645652651786804,
-0.08238308876752853,
0.030680857598781586,
0.10085952281951904,
0.21532857418060303,
0.07164077460765839,
0.588029682636261,
-0.15444228053092957,
-0.16722024977207184,
-0.3870554566383362,
-0.2778379023075104,
-0.25927069783210754,
0.2334553599357605,
0.25544264912605286,
0.33882009983062744,
0.08027718961238861,
0.07155199348926544,
-0.042393166571855545,
0.19532829523086548,
-0.1437668800354004,
-0.241202250123024,
-0.18393352627754211,
0.2715436816215515,
0.009150445461273193,
0.02203022688627243,
0.150513157248497,
0.08493984490633011,
-0.08230860531330109,
0.26045793294906616,
-0.045558881014585495,
-0.403812438249588,
0.3354559540748596,
-0.15876558423042297,
-0.10846729576587677,
-0.04479933902621269,
0.25145238637924194,
-0.5851200819015503,
0.09905152022838593,
-0.6114304661750793,
0.033218033611774445,
0.338153213262558,
0.0761679857969284,
-0.19912542402744293,
0.1156315952539444,
-0.1882433444261551,
-0.12756288051605225,
-0.09189794957637787,
0.22698888182640076,
0.08815957605838776,
-0.1893884241580963,
0.05178963020443916,
-0.15751037001609802
] |
https://github.com/huggingface/datasets/issues/4140 | Error loading arxiv data set | Hi! As @stevhliu suggested, to fix the issue, update the lib to the newest version with:
```
pip install -U datasets
```
and download the dataset as follows:
```python
from datasets import load_dataset
dset = load_dataset('scientific_papers', 'arxiv', download_mode="force_redownload")
``` | ## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
| 39 | Error loading arxiv data set
## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
Hi! As @stevhliu suggested, to fix the issue, update the lib to the newest version with:
```
pip install -U datasets
```
and download the dataset as follows:
```python
from datasets import load_dataset
dset = load_dataset('scientific_papers', 'arxiv', download_mode="force_redownload")
``` | [
-0.13808457553386688,
0.16167321801185608,
0.007934439927339554,
0.28195732831954956,
0.29166626930236816,
-0.04781791940331459,
0.06854572147130966,
0.5627234578132629,
0.05411190167069435,
-0.06703157722949982,
-0.06376897543668747,
0.2794143855571747,
0.07535652816295624,
0.0028108805418014526,
0.1414511501789093,
-0.187298983335495,
-0.08518018573522568,
0.1162744089961052,
0.018311794847249985,
-0.00994810089468956,
-0.30187085270881653,
0.1323906034231186,
-0.1504228562116623,
-0.04006852209568024,
0.3463248610496521,
0.11197716742753983,
0.06113541126251221,
0.3315551280975342,
0.16651450097560883,
-0.48780399560928345,
0.07507956027984619,
0.018851131200790405,
0.08674268424510956,
0.39283254742622375,
-0.00010673981887521222,
0.05638398230075836,
0.4425118565559387,
-0.07955236732959747,
-0.15998771786689758,
-0.14930076897144318,
-0.4832995533943176,
-0.42018502950668335,
-0.04956286400556564,
-0.24346181750297546,
0.10720125585794449,
-0.30865976214408875,
-0.006351614370942116,
0.04950226843357086,
0.005538836121559143,
0.3646393120288849,
0.28195488452911377,
0.20995928347110748,
0.27248403429985046,
-0.013416808098554611,
0.17792978882789612,
-0.43090349435806274,
0.09485787898302078,
0.2816667854785919,
0.08473972231149673,
-0.07585334032773972,
-0.27229738235473633,
0.2593000829219818,
-0.18034625053405762,
0.029933784157037735,
0.199347585439682,
-0.061358653008937836,
-0.10262734442949295,
-0.07644277811050415,
0.06740416586399078,
0.32371875643730164,
0.14769859611988068,
-0.06924490630626678,
-0.3203330636024475,
-0.1821669638156891,
0.07370920479297638,
-0.3004983067512512,
0.12078205496072769,
0.2258661389350891,
-0.1186731606721878,
-0.1043759286403656,
-0.23039895296096802,
0.03589165210723877,
-0.16830547153949738,
0.27139246463775635,
0.18048547208309174,
-0.11993744969367981,
0.09694081544876099,
0.09059390425682068,
0.05990757420659065,
-0.1760353296995163,
-0.038043487817049026,
-0.01820838451385498,
-0.04258425906300545,
0.15487508475780487,
-0.575232744216919,
0.027122795581817627,
0.2557949423789978,
0.14890459179878235,
0.3020172715187073,
0.10131818801164627,
0.18138442933559418,
-0.006846670061349869,
-0.16553206741809845,
0.13427576422691345,
0.07109414041042328,
0.1213453859090805,
-0.21660161018371582,
-0.021418403834104538,
0.3532576560974121,
0.27510252594947815,
0.12276440858840942,
0.12708936631679535,
0.008419242687523365,
-0.35972219705581665,
0.04807262495160103,
0.09720107167959213,
0.18495117127895355,
-0.24039199948310852,
-0.14527010917663574,
0.265513151884079,
0.1474442481994629,
0.1776273548603058,
0.10251013934612274,
0.3839556574821472,
-0.13564535975456238,
0.24248003959655762,
0.0362752303481102,
0.19112515449523926,
-0.26075318455696106,
-0.06649334728717804,
-0.22691108286380768,
0.07007989287376404,
-0.12659013271331787,
-0.3273313641548157,
0.3066745698451996,
-0.08142291009426117,
0.32675430178642273,
-0.09487161040306091,
0.13260585069656372,
-0.22347113490104675,
0.12744298577308655,
-0.12488651275634766,
0.06418731808662415,
0.42438191175460815,
0.11308236420154572,
0.003620825707912445,
0.11738249659538269,
-0.13210365176200867,
-0.042037997394800186,
0.07523639500141144,
-0.21007734537124634,
-0.30803683400154114,
-0.2199486643075943,
0.2995617389678955,
-0.2850600481033325,
0.033674560487270355,
-0.0753168836236,
-0.2988895773887634,
0.16721391677856445,
-0.21204976737499237,
-0.23234885931015015,
-0.3747226595878601,
-0.22373418509960175,
-0.24446041882038116,
0.31649085879325867,
0.37866267561912537,
-0.05527558922767639,
0.1821174919605255,
-0.11895707994699478,
-0.13881555199623108,
0.07595786452293396,
0.2529437839984894,
-0.1716851145029068,
0.011116169393062592,
-0.23770713806152344,
0.01863931119441986,
0.2686391770839691,
-0.2588648200035095,
-0.5184450149536133,
0.07910225540399551,
-0.18809466063976288,
0.12376093119382858,
0.012951336801052094,
0.0699566975235939,
0.05721757560968399,
-0.11952903121709824,
0.4729812741279602,
0.19159166514873505,
-0.0015799403190612793,
0.2868926227092743,
-0.4289957284927368,
-0.18717379868030548,
0.38236063718795776,
0.12062999606132507,
0.15104390680789948,
0.011368952691555023,
0.17096546292304993,
-0.08628800511360168,
0.21681103110313416,
-0.0237557552754879,
-0.13836485147476196,
0.07169023901224136,
0.03386644646525383,
-0.16734766960144043,
0.18792256712913513,
0.04575992375612259,
-0.2940438389778137,
0.345175176858902,
-0.30016523599624634,
0.12039313465356827,
-0.06097361445426941,
0.10148659348487854,
-0.4134756326675415,
0.006745738908648491,
-0.11088277399539948,
0.05721080303192139,
0.2256697416305542,
0.2120039314031601,
-0.06422604620456696,
0.16043145954608917,
0.05114449933171272,
0.03519013524055481,
-0.5864822864532471,
-0.19186873733997345,
-0.553351104259491,
0.12035420536994934,
-0.09995468705892563,
0.02259371243417263,
0.30842849612236023,
0.27701082825660706,
0.04437997192144394,
-0.008998172357678413,
-0.15686333179473877,
0.39952895045280457,
0.20110559463500977,
0.2969307005405426,
0.2235661745071411,
0.1304127424955368,
0.024171628057956696,
-0.35998278856277466,
0.12584155797958374,
0.19811409711837769,
0.38640686869621277,
-0.06669589132070541,
-0.030826061964035034,
0.35840001702308655,
-0.2964283227920532,
0.02237263321876526,
0.3021107316017151,
0.1325821727514267,
0.6256586909294128,
-0.25549745559692383,
-0.1741958111524582,
-0.27544301748275757,
0.43207553029060364,
0.22084087133407593,
-0.22477386891841888,
-0.007099533453583717,
-0.34026017785072327,
-0.08633438497781754,
0.15284456312656403,
0.08928486704826355,
-0.055255226790905,
0.23501378297805786,
-0.04167230427265167,
-0.1823015809059143,
0.027028167620301247,
0.4649975597858429,
0.34605562686920166,
0.14825762808322906,
-0.15681223571300507,
0.15312112867832184,
-0.18691836297512054,
-0.14278529584407806,
0.1405966877937317,
0.18482571840286255,
0.1480087786912918,
0.5639663338661194,
0.24187789857387543,
0.1361272633075714,
-0.3137306869029999,
-0.10777236521244049,
0.09448391199111938,
0.23332378268241882,
-0.6327825784683228,
-0.13817670941352844,
-0.14010636508464813,
-0.27447769045829773,
-0.4248914122581482,
-0.19041807949543,
-0.1537562608718872,
-0.32544705271720886,
0.026275746524333954,
0.1444503515958786,
-0.28727471828460693,
0.1719336062669754,
-0.4461556077003479,
0.22781221568584442,
0.061021722853183746,
-0.04061533510684967,
0.21790161728858948,
-0.05345620959997177,
0.07077207416296005,
0.09174466133117676,
0.3021269738674164,
0.1681954264640808,
0.46043217182159424,
-0.10907240957021713,
-0.17821067571640015,
-0.04284079372882843,
-0.34973132610321045,
-0.11529737710952759,
-0.19286328554153442,
0.27885738015174866,
0.28271031379699707,
0.12253160774707794,
0.3378622531890869,
-0.2205558866262436,
0.25921204686164856,
0.0699232965707779,
-0.0945805013179779,
0.4519694447517395,
0.01965952105820179,
-0.23629416525363922,
-0.07316835224628448,
-0.3587941825389862,
-0.12111777812242508,
-0.48399242758750916,
-0.281368613243103,
0.1088942289352417,
0.2631077468395233,
0.2318054884672165,
0.17865847051143646,
0.2770974934101105,
0.050094060599803925,
0.135996475815773,
-0.15184888243675232,
0.12899580597877502,
0.2514480650424957,
-0.1011510118842125,
-0.5094351172447205,
-0.0075676701962947845,
-0.04464992135763168,
0.18243783712387085,
0.21081525087356567,
-0.5630871653556824,
-0.16120536625385284,
-0.11313696205615997,
-0.1830170601606369,
0.1134902760386467,
-0.161102756857872,
0.14141979813575745,
-0.06954323500394821,
-0.1709904968738556,
-0.19124698638916016,
-0.20267923176288605,
0.030779153108596802,
0.012829450890421867,
0.25159981846809387,
-0.08958552032709122,
0.290688693523407,
0.012093942612409592,
0.4966297149658203,
0.4086681306362152,
0.00232740119099617,
0.1850215196609497,
0.022911017760634422,
0.3040975034236908,
-0.11587537080049515,
-0.3167758584022522,
0.11023638397455215,
-0.06486780941486359,
0.04130643606185913,
0.11750946193933487,
-0.12120913714170456,
-0.1699649840593338,
-0.08577150106430054,
-0.04762084037065506,
-0.19850432872772217,
-0.27149057388305664,
0.29702043533325195,
-0.44673383235931396,
0.2800740599632263,
0.06302519142627716,
-0.11226718127727509,
-0.11888924241065979,
-0.27727821469306946,
-0.13654877245426178,
0.24606016278266907,
-0.03826550394296646,
-0.0809604600071907,
-0.31932082772254944,
0.03227510303258896,
-0.23586800694465637,
0.22874119877815247,
0.1631253957748413,
0.6825212836265564,
0.022368762642145157,
-0.18917346000671387,
-0.0697116106748581,
-0.23299160599708557,
0.4736993908882141,
-0.11084165424108505,
0.4977695345878601,
0.23412716388702393,
-0.040278609842061996,
-0.32483795285224915,
0.027666833251714706,
0.01344994455575943,
0.0400109589099884,
0.26847922801971436,
0.30633077025413513,
-0.07346835732460022,
-0.025413421913981438,
0.19394338130950928,
0.28698891401290894,
-0.24895016849040985,
-0.10361048579216003,
-0.22061243653297424,
-0.32807469367980957,
-0.2625698149204254,
-0.12267719954252243,
-0.13031962513923645,
0.17225636541843414,
-0.25033149123191833,
-0.10559448599815369,
-0.02031536214053631,
-0.17014986276626587,
0.03133935481309891,
0.1587822437286377,
0.3170529901981354,
0.07713048905134201,
0.3457343578338623,
0.05785003677010536,
-0.0019455775618553162,
0.05188712477684021,
0.4541705846786499,
-0.15990737080574036,
-0.3018653988838196,
-0.09972997009754181,
-0.24353551864624023,
0.03684061020612717,
0.15907242894172668,
-0.20491445064544678,
-0.10213404148817062,
0.23280057311058044,
-0.019320860505104065,
-0.18445132672786713,
-0.015837552025914192,
0.2141367346048355,
-0.05776876211166382,
-0.20306582748889923,
-0.19730554521083832,
0.2855343818664551,
-0.2906997799873352,
-0.16973845660686493,
0.20590661466121674,
0.07613373547792435,
-0.2636818587779999,
0.4430806636810303,
0.061322636902332306,
0.7012239098548889,
0.16760790348052979,
0.06948096305131912,
0.2637088894844055,
-0.09520459920167923,
0.2510327994823456,
0.44194990396499634,
0.17815017700195312,
-0.4686661660671234,
-0.41529542207717896,
-0.027565766125917435,
-0.2099711000919342,
-0.15606561303138733,
-0.051078662276268005,
0.016981642693281174,
0.1162630096077919,
0.0005132630467414856,
-0.18660064041614532,
0.22353030741214752,
0.288264662027359,
0.17842277884483337,
-0.1909330040216446,
-0.4895256757736206,
0.19012963771820068,
-0.1996011584997177,
-0.011242680251598358,
-0.020689360797405243,
0.008825479075312614,
-0.11895212531089783,
-0.2187715619802475,
-0.3988017439842224,
0.4161475598812103,
0.18400833010673523,
0.18625184893608093,
0.06830205768346786,
-0.10936543345451355,
-0.022139597684144974,
0.3081144690513611,
0.006149783730506897,
0.26764488220214844,
-0.2710185945034027,
0.1772817224264145,
0.2586536407470703,
-0.005545004270970821,
0.2584625482559204,
0.08444034308195114,
0.45890045166015625,
-0.23407143354415894,
-0.016330502927303314,
-0.043549828231334686,
-0.08635636419057846,
-0.3252592086791992,
0.19832196831703186,
0.08515486121177673,
-0.03461982309818268,
-0.15542073547840118,
-0.3542758524417877,
0.03705044090747833,
0.007826853543519974,
-0.21865658462047577,
0.20716696977615356,
0.24992188811302185,
-0.03859875723719597,
0.2057611346244812,
0.09951439499855042,
-0.3675471246242523,
0.19229164719581604,
0.37455588579177856,
0.1331460177898407,
0.02336932346224785,
0.5706273317337036,
0.133716881275177,
-0.10091742128133774,
-0.23500320315361023,
-0.31021198630332947,
-0.48811501264572144,
-0.5573887228965759,
0.1358141005039215,
-0.07253669202327728,
0.12608490884304047,
0.013586726039648056,
0.13859456777572632,
0.10781919956207275,
-0.07500321418046951,
0.03540903702378273,
-0.9419777989387512,
-0.021178701892495155,
0.05679575353860855,
-0.188562273979187,
0.20075930655002594,
0.04446344077587128,
-0.11412207782268524,
-0.14146573841571808,
0.014168812893331051,
-0.3972072899341583,
0.14491824805736542,
-0.3778887689113617,
0.06544356048107147,
0.024966521188616753,
0.036447569727897644,
0.021594757214188576,
-0.14164863526821136,
0.19241845607757568,
-0.17047704756259918,
-0.17212161421775818,
-0.27394604682922363,
-0.3075929880142212,
0.10982909053564072,
0.031015265733003616,
-0.21175572276115417,
0.03372382000088692,
-0.21328552067279816,
-0.18227320909500122,
0.04608877748250961,
0.03551451116800308,
0.016506679356098175,
-0.2531123161315918,
0.06286922842264175,
-0.13292601704597473,
0.05755188316106796,
0.22586901485919952,
0.2520095705986023,
-0.22060540318489075,
0.03898172825574875,
0.18930743634700775,
0.2967820167541504,
-0.3092491626739502,
-0.08956017345190048,
-0.2510678172111511,
0.10277862101793289,
-0.18354256451129913,
0.039545416831970215,
0.47861248254776,
-0.04148586094379425,
-0.012830257415771484,
0.10515786707401276,
0.22733573615550995,
0.29329532384872437,
-0.5117554664611816,
-0.03693369776010513,
0.09650878608226776,
0.2366616576910019,
-0.506159245967865,
0.005359984003007412,
0.07471615821123123,
0.02642831951379776,
-0.06166377291083336,
0.027345925569534302,
0.21620330214500427,
-0.2512896656990051,
0.07175594568252563,
0.023065142333507538,
0.5541498064994812,
-0.36328768730163574,
0.14648815989494324,
0.13691352307796478,
-0.1658354252576828,
-0.023632068186998367,
-0.09957949072122574,
0.0065516941249370575,
0.19297011196613312,
0.15081648528575897,
0.19471226632595062,
0.23346862196922302,
-0.1692730188369751,
0.15175724029541016,
-0.25845205783843994,
-0.5342639684677124,
0.13966065645217896,
0.3165102005004883,
-0.0830308347940445,
0.31634166836738586,
0.12171865999698639,
0.29974499344825745,
0.0443597286939621,
0.2637060284614563,
-0.33865711092948914,
0.17013202607631683,
0.034983448684215546,
-0.0841401070356369,
-0.31223738193511963,
-0.2218359112739563,
-0.14532721042633057,
0.06700056791305542,
-0.054642487317323685,
0.06790947169065475,
0.1596546471118927,
0.21783547103405,
-0.36106622219085693,
-0.6163307428359985,
0.14261318743228912,
0.07899162918329239,
-0.014253579080104828,
-0.3372631072998047,
0.21029944717884064,
0.32509714365005493,
0.07958580553531647,
0.13937386870384216,
0.25941741466522217,
0.46254995465278625,
0.3912014663219452,
0.13481839001178741,
-0.17361848056316376,
0.15127454698085785,
0.2016994208097458,
-0.13455811142921448,
0.439352810382843,
0.2319284975528717,
0.2892336845397949,
0.5008739829063416,
0.17595833539962769,
-0.15758498013019562,
0.2008131742477417,
0.11544118821620941,
0.029258690774440765,
0.11805538833141327,
0.463627427816391,
0.04408664628863335,
0.10057190805673599,
-0.28721868991851807,
0.09453573822975159,
-0.23368415236473083,
-0.1526695042848587,
0.38914141058921814,
0.03292222321033478,
0.2404712736606598,
-0.14906547963619232,
0.12788574397563934,
-0.03157249465584755,
0.6297271847724915,
0.37406259775161743,
0.2058718204498291,
-0.25879746675491333,
-0.15811015665531158,
-0.8518221378326416,
0.36280354857444763,
-0.01872163638472557,
0.04881131649017334,
0.15408559143543243,
0.16130267083644867,
0.025042645633220673,
0.003743372857570648,
0.005270443856716156,
-0.18334749341011047,
-0.3539618253707886,
-0.11519068479537964,
-0.10247431695461273,
-0.1886533945798874,
-0.25560587644577026,
-0.029228316619992256,
-0.1612439602613449,
-0.28760844469070435,
0.060478921979665756,
-0.03429495915770531,
0.17325422167778015,
0.06645652651786804,
-0.08238308876752853,
0.030680857598781586,
0.10085952281951904,
0.21532857418060303,
0.07164077460765839,
0.588029682636261,
-0.15444228053092957,
-0.16722024977207184,
-0.3870554566383362,
-0.2778379023075104,
-0.25927069783210754,
0.2334553599357605,
0.25544264912605286,
0.33882009983062744,
0.08027718961238861,
0.07155199348926544,
-0.042393166571855545,
0.19532829523086548,
-0.1437668800354004,
-0.241202250123024,
-0.18393352627754211,
0.2715436816215515,
0.009150445461273193,
0.02203022688627243,
0.150513157248497,
0.08493984490633011,
-0.08230860531330109,
0.26045793294906616,
-0.045558881014585495,
-0.403812438249588,
0.3354559540748596,
-0.15876558423042297,
-0.10846729576587677,
-0.04479933902621269,
0.25145238637924194,
-0.5851200819015503,
0.09905152022838593,
-0.6114304661750793,
0.033218033611774445,
0.338153213262558,
0.0761679857969284,
-0.19912542402744293,
0.1156315952539444,
-0.1882433444261551,
-0.12756288051605225,
-0.09189794957637787,
0.22698888182640076,
0.08815957605838776,
-0.1893884241580963,
0.05178963020443916,
-0.15751037001609802
] |
https://github.com/huggingface/datasets/issues/4140 | Error loading arxiv data set | Thanks for the quick response! It works now. The problem is that I used nlp. load_dataset instead of datasets. load_dataset. | ## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
| 20 | Error loading arxiv data set
## Describe the bug
A clear and concise description of what the bug is.
I met the error below when loading arxiv dataset via `nlp.load_dataset('scientific_papers', 'arxiv',)`.
```
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv')
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 522, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I then tried to ignore verification steps by `ignore_verifications=True` and there is another error.
```
Traceback (most recent call last):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 537, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 810, in _prepare_split
for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/datasets/scientific_papers/9e4f2cfe3d8494e9f34a84ce49c3214605b4b52a3d8eb199104430d04c52cc12/scientific_papers.py", line 108, in _generate_examples
with open(path, encoding="utf-8") as f:
NotADirectoryError: [Errno 20] Not a directory: '/home/username/.cache/huggingface/datasets/downloads/c0deae7af7d9c87f25dfadf621f7126f708d7dcac6d353c7564883084a000076/arxiv-dataset/train.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/summarization.py", line 354, in <module>
main(args)
File "scripts/summarization.py", line 306, in main
model.hf_datasets = nlp.load_dataset('scientific_papers', 'arxiv', ignore_verifications=True)
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/load.py", line 549, in load_dataset
download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 463, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/opt/conda/envs/longformer/lib/python3.7/site-packages/nlp/builder.py", line 539, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file.
```
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
Thanks for the quick response! It works now. The problem is that I used nlp. load_dataset instead of datasets. load_dataset. | [
-0.13808457553386688,
0.16167321801185608,
0.007934439927339554,
0.28195732831954956,
0.29166626930236816,
-0.04781791940331459,
0.06854572147130966,
0.5627234578132629,
0.05411190167069435,
-0.06703157722949982,
-0.06376897543668747,
0.2794143855571747,
0.07535652816295624,
0.0028108805418014526,
0.1414511501789093,
-0.187298983335495,
-0.08518018573522568,
0.1162744089961052,
0.018311794847249985,
-0.00994810089468956,
-0.30187085270881653,
0.1323906034231186,
-0.1504228562116623,
-0.04006852209568024,
0.3463248610496521,
0.11197716742753983,
0.06113541126251221,
0.3315551280975342,
0.16651450097560883,
-0.48780399560928345,
0.07507956027984619,
0.018851131200790405,
0.08674268424510956,
0.39283254742622375,
-0.00010673981887521222,
0.05638398230075836,
0.4425118565559387,
-0.07955236732959747,
-0.15998771786689758,
-0.14930076897144318,
-0.4832995533943176,
-0.42018502950668335,
-0.04956286400556564,
-0.24346181750297546,
0.10720125585794449,
-0.30865976214408875,
-0.006351614370942116,
0.04950226843357086,
0.005538836121559143,
0.3646393120288849,
0.28195488452911377,
0.20995928347110748,
0.27248403429985046,
-0.013416808098554611,
0.17792978882789612,
-0.43090349435806274,
0.09485787898302078,
0.2816667854785919,
0.08473972231149673,
-0.07585334032773972,
-0.27229738235473633,
0.2593000829219818,
-0.18034625053405762,
0.029933784157037735,
0.199347585439682,
-0.061358653008937836,
-0.10262734442949295,
-0.07644277811050415,
0.06740416586399078,
0.32371875643730164,
0.14769859611988068,
-0.06924490630626678,
-0.3203330636024475,
-0.1821669638156891,
0.07370920479297638,
-0.3004983067512512,
0.12078205496072769,
0.2258661389350891,
-0.1186731606721878,
-0.1043759286403656,
-0.23039895296096802,
0.03589165210723877,
-0.16830547153949738,
0.27139246463775635,
0.18048547208309174,
-0.11993744969367981,
0.09694081544876099,
0.09059390425682068,
0.05990757420659065,
-0.1760353296995163,
-0.038043487817049026,
-0.01820838451385498,
-0.04258425906300545,
0.15487508475780487,
-0.575232744216919,
0.027122795581817627,
0.2557949423789978,
0.14890459179878235,
0.3020172715187073,
0.10131818801164627,
0.18138442933559418,
-0.006846670061349869,
-0.16553206741809845,
0.13427576422691345,
0.07109414041042328,
0.1213453859090805,
-0.21660161018371582,
-0.021418403834104538,
0.3532576560974121,
0.27510252594947815,
0.12276440858840942,
0.12708936631679535,
0.008419242687523365,
-0.35972219705581665,
0.04807262495160103,
0.09720107167959213,
0.18495117127895355,
-0.24039199948310852,
-0.14527010917663574,
0.265513151884079,
0.1474442481994629,
0.1776273548603058,
0.10251013934612274,
0.3839556574821472,
-0.13564535975456238,
0.24248003959655762,
0.0362752303481102,
0.19112515449523926,
-0.26075318455696106,
-0.06649334728717804,
-0.22691108286380768,
0.07007989287376404,
-0.12659013271331787,
-0.3273313641548157,
0.3066745698451996,
-0.08142291009426117,
0.32675430178642273,
-0.09487161040306091,
0.13260585069656372,
-0.22347113490104675,
0.12744298577308655,
-0.12488651275634766,
0.06418731808662415,
0.42438191175460815,
0.11308236420154572,
0.003620825707912445,
0.11738249659538269,
-0.13210365176200867,
-0.042037997394800186,
0.07523639500141144,
-0.21007734537124634,
-0.30803683400154114,
-0.2199486643075943,
0.2995617389678955,
-0.2850600481033325,
0.033674560487270355,
-0.0753168836236,
-0.2988895773887634,
0.16721391677856445,
-0.21204976737499237,
-0.23234885931015015,
-0.3747226595878601,
-0.22373418509960175,
-0.24446041882038116,
0.31649085879325867,
0.37866267561912537,
-0.05527558922767639,
0.1821174919605255,
-0.11895707994699478,
-0.13881555199623108,
0.07595786452293396,
0.2529437839984894,
-0.1716851145029068,
0.011116169393062592,
-0.23770713806152344,
0.01863931119441986,
0.2686391770839691,
-0.2588648200035095,
-0.5184450149536133,
0.07910225540399551,
-0.18809466063976288,
0.12376093119382858,
0.012951336801052094,
0.0699566975235939,
0.05721757560968399,
-0.11952903121709824,
0.4729812741279602,
0.19159166514873505,
-0.0015799403190612793,
0.2868926227092743,
-0.4289957284927368,
-0.18717379868030548,
0.38236063718795776,
0.12062999606132507,
0.15104390680789948,
0.011368952691555023,
0.17096546292304993,
-0.08628800511360168,
0.21681103110313416,
-0.0237557552754879,
-0.13836485147476196,
0.07169023901224136,
0.03386644646525383,
-0.16734766960144043,
0.18792256712913513,
0.04575992375612259,
-0.2940438389778137,
0.345175176858902,
-0.30016523599624634,
0.12039313465356827,
-0.06097361445426941,
0.10148659348487854,
-0.4134756326675415,
0.006745738908648491,
-0.11088277399539948,
0.05721080303192139,
0.2256697416305542,
0.2120039314031601,
-0.06422604620456696,
0.16043145954608917,
0.05114449933171272,
0.03519013524055481,
-0.5864822864532471,
-0.19186873733997345,
-0.553351104259491,
0.12035420536994934,
-0.09995468705892563,
0.02259371243417263,
0.30842849612236023,
0.27701082825660706,
0.04437997192144394,
-0.008998172357678413,
-0.15686333179473877,
0.39952895045280457,
0.20110559463500977,
0.2969307005405426,
0.2235661745071411,
0.1304127424955368,
0.024171628057956696,
-0.35998278856277466,
0.12584155797958374,
0.19811409711837769,
0.38640686869621277,
-0.06669589132070541,
-0.030826061964035034,
0.35840001702308655,
-0.2964283227920532,
0.02237263321876526,
0.3021107316017151,
0.1325821727514267,
0.6256586909294128,
-0.25549745559692383,
-0.1741958111524582,
-0.27544301748275757,
0.43207553029060364,
0.22084087133407593,
-0.22477386891841888,
-0.007099533453583717,
-0.34026017785072327,
-0.08633438497781754,
0.15284456312656403,
0.08928486704826355,
-0.055255226790905,
0.23501378297805786,
-0.04167230427265167,
-0.1823015809059143,
0.027028167620301247,
0.4649975597858429,
0.34605562686920166,
0.14825762808322906,
-0.15681223571300507,
0.15312112867832184,
-0.18691836297512054,
-0.14278529584407806,
0.1405966877937317,
0.18482571840286255,
0.1480087786912918,
0.5639663338661194,
0.24187789857387543,
0.1361272633075714,
-0.3137306869029999,
-0.10777236521244049,
0.09448391199111938,
0.23332378268241882,
-0.6327825784683228,
-0.13817670941352844,
-0.14010636508464813,
-0.27447769045829773,
-0.4248914122581482,
-0.19041807949543,
-0.1537562608718872,
-0.32544705271720886,
0.026275746524333954,
0.1444503515958786,
-0.28727471828460693,
0.1719336062669754,
-0.4461556077003479,
0.22781221568584442,
0.061021722853183746,
-0.04061533510684967,
0.21790161728858948,
-0.05345620959997177,
0.07077207416296005,
0.09174466133117676,
0.3021269738674164,
0.1681954264640808,
0.46043217182159424,
-0.10907240957021713,
-0.17821067571640015,
-0.04284079372882843,
-0.34973132610321045,
-0.11529737710952759,
-0.19286328554153442,
0.27885738015174866,
0.28271031379699707,
0.12253160774707794,
0.3378622531890869,
-0.2205558866262436,
0.25921204686164856,
0.0699232965707779,
-0.0945805013179779,
0.4519694447517395,
0.01965952105820179,
-0.23629416525363922,
-0.07316835224628448,
-0.3587941825389862,
-0.12111777812242508,
-0.48399242758750916,
-0.281368613243103,
0.1088942289352417,
0.2631077468395233,
0.2318054884672165,
0.17865847051143646,
0.2770974934101105,
0.050094060599803925,
0.135996475815773,
-0.15184888243675232,
0.12899580597877502,
0.2514480650424957,
-0.1011510118842125,
-0.5094351172447205,
-0.0075676701962947845,
-0.04464992135763168,
0.18243783712387085,
0.21081525087356567,
-0.5630871653556824,
-0.16120536625385284,
-0.11313696205615997,
-0.1830170601606369,
0.1134902760386467,
-0.161102756857872,
0.14141979813575745,
-0.06954323500394821,
-0.1709904968738556,
-0.19124698638916016,
-0.20267923176288605,
0.030779153108596802,
0.012829450890421867,
0.25159981846809387,
-0.08958552032709122,
0.290688693523407,
0.012093942612409592,
0.4966297149658203,
0.4086681306362152,
0.00232740119099617,
0.1850215196609497,
0.022911017760634422,
0.3040975034236908,
-0.11587537080049515,
-0.3167758584022522,
0.11023638397455215,
-0.06486780941486359,
0.04130643606185913,
0.11750946193933487,
-0.12120913714170456,
-0.1699649840593338,
-0.08577150106430054,
-0.04762084037065506,
-0.19850432872772217,
-0.27149057388305664,
0.29702043533325195,
-0.44673383235931396,
0.2800740599632263,
0.06302519142627716,
-0.11226718127727509,
-0.11888924241065979,
-0.27727821469306946,
-0.13654877245426178,
0.24606016278266907,
-0.03826550394296646,
-0.0809604600071907,
-0.31932082772254944,
0.03227510303258896,
-0.23586800694465637,
0.22874119877815247,
0.1631253957748413,
0.6825212836265564,
0.022368762642145157,
-0.18917346000671387,
-0.0697116106748581,
-0.23299160599708557,
0.4736993908882141,
-0.11084165424108505,
0.4977695345878601,
0.23412716388702393,
-0.040278609842061996,
-0.32483795285224915,
0.027666833251714706,
0.01344994455575943,
0.0400109589099884,
0.26847922801971436,
0.30633077025413513,
-0.07346835732460022,
-0.025413421913981438,
0.19394338130950928,
0.28698891401290894,
-0.24895016849040985,
-0.10361048579216003,
-0.22061243653297424,
-0.32807469367980957,
-0.2625698149204254,
-0.12267719954252243,
-0.13031962513923645,
0.17225636541843414,
-0.25033149123191833,
-0.10559448599815369,
-0.02031536214053631,
-0.17014986276626587,
0.03133935481309891,
0.1587822437286377,
0.3170529901981354,
0.07713048905134201,
0.3457343578338623,
0.05785003677010536,
-0.0019455775618553162,
0.05188712477684021,
0.4541705846786499,
-0.15990737080574036,
-0.3018653988838196,
-0.09972997009754181,
-0.24353551864624023,
0.03684061020612717,
0.15907242894172668,
-0.20491445064544678,
-0.10213404148817062,
0.23280057311058044,
-0.019320860505104065,
-0.18445132672786713,
-0.015837552025914192,
0.2141367346048355,
-0.05776876211166382,
-0.20306582748889923,
-0.19730554521083832,
0.2855343818664551,
-0.2906997799873352,
-0.16973845660686493,
0.20590661466121674,
0.07613373547792435,
-0.2636818587779999,
0.4430806636810303,
0.061322636902332306,
0.7012239098548889,
0.16760790348052979,
0.06948096305131912,
0.2637088894844055,
-0.09520459920167923,
0.2510327994823456,
0.44194990396499634,
0.17815017700195312,
-0.4686661660671234,
-0.41529542207717896,
-0.027565766125917435,
-0.2099711000919342,
-0.15606561303138733,
-0.051078662276268005,
0.016981642693281174,
0.1162630096077919,
0.0005132630467414856,
-0.18660064041614532,
0.22353030741214752,
0.288264662027359,
0.17842277884483337,
-0.1909330040216446,
-0.4895256757736206,
0.19012963771820068,
-0.1996011584997177,
-0.011242680251598358,
-0.020689360797405243,
0.008825479075312614,
-0.11895212531089783,
-0.2187715619802475,
-0.3988017439842224,
0.4161475598812103,
0.18400833010673523,
0.18625184893608093,
0.06830205768346786,
-0.10936543345451355,
-0.022139597684144974,
0.3081144690513611,
0.006149783730506897,
0.26764488220214844,
-0.2710185945034027,
0.1772817224264145,
0.2586536407470703,
-0.005545004270970821,
0.2584625482559204,
0.08444034308195114,
0.45890045166015625,
-0.23407143354415894,
-0.016330502927303314,
-0.043549828231334686,
-0.08635636419057846,
-0.3252592086791992,
0.19832196831703186,
0.08515486121177673,
-0.03461982309818268,
-0.15542073547840118,
-0.3542758524417877,
0.03705044090747833,
0.007826853543519974,
-0.21865658462047577,
0.20716696977615356,
0.24992188811302185,
-0.03859875723719597,
0.2057611346244812,
0.09951439499855042,
-0.3675471246242523,
0.19229164719581604,
0.37455588579177856,
0.1331460177898407,
0.02336932346224785,
0.5706273317337036,
0.133716881275177,
-0.10091742128133774,
-0.23500320315361023,
-0.31021198630332947,
-0.48811501264572144,
-0.5573887228965759,
0.1358141005039215,
-0.07253669202327728,
0.12608490884304047,
0.013586726039648056,
0.13859456777572632,
0.10781919956207275,
-0.07500321418046951,
0.03540903702378273,
-0.9419777989387512,
-0.021178701892495155,
0.05679575353860855,
-0.188562273979187,
0.20075930655002594,
0.04446344077587128,
-0.11412207782268524,
-0.14146573841571808,
0.014168812893331051,
-0.3972072899341583,
0.14491824805736542,
-0.3778887689113617,
0.06544356048107147,
0.024966521188616753,
0.036447569727897644,
0.021594757214188576,
-0.14164863526821136,
0.19241845607757568,
-0.17047704756259918,
-0.17212161421775818,
-0.27394604682922363,
-0.3075929880142212,
0.10982909053564072,
0.031015265733003616,
-0.21175572276115417,
0.03372382000088692,
-0.21328552067279816,
-0.18227320909500122,
0.04608877748250961,
0.03551451116800308,
0.016506679356098175,
-0.2531123161315918,
0.06286922842264175,
-0.13292601704597473,
0.05755188316106796,
0.22586901485919952,
0.2520095705986023,
-0.22060540318489075,
0.03898172825574875,
0.18930743634700775,
0.2967820167541504,
-0.3092491626739502,
-0.08956017345190048,
-0.2510678172111511,
0.10277862101793289,
-0.18354256451129913,
0.039545416831970215,
0.47861248254776,
-0.04148586094379425,
-0.012830257415771484,
0.10515786707401276,
0.22733573615550995,
0.29329532384872437,
-0.5117554664611816,
-0.03693369776010513,
0.09650878608226776,
0.2366616576910019,
-0.506159245967865,
0.005359984003007412,
0.07471615821123123,
0.02642831951379776,
-0.06166377291083336,
0.027345925569534302,
0.21620330214500427,
-0.2512896656990051,
0.07175594568252563,
0.023065142333507538,
0.5541498064994812,
-0.36328768730163574,
0.14648815989494324,
0.13691352307796478,
-0.1658354252576828,
-0.023632068186998367,
-0.09957949072122574,
0.0065516941249370575,
0.19297011196613312,
0.15081648528575897,
0.19471226632595062,
0.23346862196922302,
-0.1692730188369751,
0.15175724029541016,
-0.25845205783843994,
-0.5342639684677124,
0.13966065645217896,
0.3165102005004883,
-0.0830308347940445,
0.31634166836738586,
0.12171865999698639,
0.29974499344825745,
0.0443597286939621,
0.2637060284614563,
-0.33865711092948914,
0.17013202607631683,
0.034983448684215546,
-0.0841401070356369,
-0.31223738193511963,
-0.2218359112739563,
-0.14532721042633057,
0.06700056791305542,
-0.054642487317323685,
0.06790947169065475,
0.1596546471118927,
0.21783547103405,
-0.36106622219085693,
-0.6163307428359985,
0.14261318743228912,
0.07899162918329239,
-0.014253579080104828,
-0.3372631072998047,
0.21029944717884064,
0.32509714365005493,
0.07958580553531647,
0.13937386870384216,
0.25941741466522217,
0.46254995465278625,
0.3912014663219452,
0.13481839001178741,
-0.17361848056316376,
0.15127454698085785,
0.2016994208097458,
-0.13455811142921448,
0.439352810382843,
0.2319284975528717,
0.2892336845397949,
0.5008739829063416,
0.17595833539962769,
-0.15758498013019562,
0.2008131742477417,
0.11544118821620941,
0.029258690774440765,
0.11805538833141327,
0.463627427816391,
0.04408664628863335,
0.10057190805673599,
-0.28721868991851807,
0.09453573822975159,
-0.23368415236473083,
-0.1526695042848587,
0.38914141058921814,
0.03292222321033478,
0.2404712736606598,
-0.14906547963619232,
0.12788574397563934,
-0.03157249465584755,
0.6297271847724915,
0.37406259775161743,
0.2058718204498291,
-0.25879746675491333,
-0.15811015665531158,
-0.8518221378326416,
0.36280354857444763,
-0.01872163638472557,
0.04881131649017334,
0.15408559143543243,
0.16130267083644867,
0.025042645633220673,
0.003743372857570648,
0.005270443856716156,
-0.18334749341011047,
-0.3539618253707886,
-0.11519068479537964,
-0.10247431695461273,
-0.1886533945798874,
-0.25560587644577026,
-0.029228316619992256,
-0.1612439602613449,
-0.28760844469070435,
0.060478921979665756,
-0.03429495915770531,
0.17325422167778015,
0.06645652651786804,
-0.08238308876752853,
0.030680857598781586,
0.10085952281951904,
0.21532857418060303,
0.07164077460765839,
0.588029682636261,
-0.15444228053092957,
-0.16722024977207184,
-0.3870554566383362,
-0.2778379023075104,
-0.25927069783210754,
0.2334553599357605,
0.25544264912605286,
0.33882009983062744,
0.08027718961238861,
0.07155199348926544,
-0.042393166571855545,
0.19532829523086548,
-0.1437668800354004,
-0.241202250123024,
-0.18393352627754211,
0.2715436816215515,
0.009150445461273193,
0.02203022688627243,
0.150513157248497,
0.08493984490633011,
-0.08230860531330109,
0.26045793294906616,
-0.045558881014585495,
-0.403812438249588,
0.3354559540748596,
-0.15876558423042297,
-0.10846729576587677,
-0.04479933902621269,
0.25145238637924194,
-0.5851200819015503,
0.09905152022838593,
-0.6114304661750793,
0.033218033611774445,
0.338153213262558,
0.0761679857969284,
-0.19912542402744293,
0.1156315952539444,
-0.1882433444261551,
-0.12756288051605225,
-0.09189794957637787,
0.22698888182640076,
0.08815957605838776,
-0.1893884241580963,
0.05178963020443916,
-0.15751037001609802
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | I thought this issue was related to the error I was seeing, but upon consideration I'd think the dataset viewer would return a 500 (unable to create the split like me) or a 404 (unable to load split b/c it was never created) error if it was having the issue I was seeing in #4149. 401 message makes it look like dataset viewer isn't passing through the identity of the user who has signed the licensing agreement when making the request to GET [examples.jsonl](https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl). | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 84 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
I thought this issue was related to the error I was seeing, but upon consideration I'd think the dataset viewer would return a 500 (unable to create the split like me) or a 404 (unable to load split b/c it was never created) error if it was having the issue I was seeing in #4149. 401 message makes it look like dataset viewer isn't passing through the identity of the user who has signed the licensing agreement when making the request to GET [examples.jsonl](https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl). | [
-0.21582245826721191,
0.39182502031326294,
0.019526664167642593,
0.24883732199668884,
-0.1773582547903061,
0.01176290214061737,
0.20998933911323547,
-0.09897293150424957,
-0.3108904957771301,
-0.12872911989688873,
-0.21361605823040009,
-0.013775854371488094,
-0.09426591545343399,
0.052716322243213654,
-0.16795170307159424,
0.08089566230773926,
-0.21659699082374573,
-0.10953983664512634,
-0.06626591086387634,
-0.03947984427213669,
-0.2573499083518982,
0.21303533017635345,
-0.2501039206981659,
0.15100860595703125,
-0.33033156394958496,
-0.16177241504192352,
-0.04432176426053047,
0.21132084727287292,
-0.38197436928749084,
-0.29414069652557373,
0.10131721198558807,
0.2428644299507141,
0.10269822925329208,
0.31689590215682983,
-0.0001159762468887493,
0.034872256219387054,
0.20293757319450378,
0.18451309204101562,
-0.1929895579814911,
0.03352312743663788,
-0.34833377599716187,
-0.15377195179462433,
0.13856631517410278,
-0.08971798419952393,
-0.05049513652920723,
-0.3660403788089752,
0.0892661064863205,
0.21775367856025696,
0.5097115635871887,
0.237641379237175,
0.16011999547481537,
-0.07127457857131958,
0.22680719196796417,
-0.028492281213402748,
0.048593297600746155,
0.33340853452682495,
-0.2122865617275238,
0.20391903817653656,
0.22789761424064636,
-0.2532769739627838,
-0.06982149928808212,
0.13640867173671722,
0.3926159143447876,
0.035321906208992004,
0.3150743544101715,
-0.1002894788980484,
0.10672968626022339,
-0.460441917181015,
0.08389628678560257,
0.35666990280151367,
0.6228306293487549,
0.1882982850074768,
-0.34575968980789185,
-0.22095149755477905,
0.22262221574783325,
0.2777283787727356,
0.40244370698928833,
0.3999778628349304,
-0.1979864090681076,
0.22488531470298767,
-0.3007074296474457,
-0.21993426978588104,
-0.29509973526000977,
0.1351483166217804,
-0.1775674819946289,
-0.17113789916038513,
-0.13238225877285004,
0.13747799396514893,
-0.07441690564155579,
-0.20199812948703766,
0.109053835272789,
-0.1887311339378357,
-0.1848503202199936,
0.05834147334098816,
0.08624871075153351,
0.06659162789583206,
0.1322636902332306,
0.4209922254085541,
-0.198500394821167,
0.22915086150169373,
-0.36092761158943176,
0.039863668382167816,
-0.3360581398010254,
-0.00503133237361908,
0.40790608525276184,
-0.21715284883975983,
0.12650087475776672,
0.29001814126968384,
0.3978257179260254,
-0.08023682236671448,
-0.01713460497558117,
0.0941639393568039,
-0.10412637889385223,
-0.2160315364599228,
-0.3106403648853302,
-0.2655772864818573,
0.45981311798095703,
-0.03365784510970116,
-0.4238148033618927,
0.0955255776643753,
-0.22639289498329163,
-0.12350839376449585,
0.34714704751968384,
0.42058315873146057,
-0.06390798091888428,
-0.31522735953330994,
0.2093079537153244,
-0.03489959239959717,
-0.0679626315832138,
-0.13663026690483093,
-0.049609195441007614,
-0.10018128156661987,
-0.050434622913599014,
-0.03358698636293411,
0.27687710523605347,
0.09011481702327728,
0.012501208111643791,
-0.09539535641670227,
-0.014908716082572937,
-0.10060255974531174,
0.28030818700790405,
0.03998013213276863,
0.06299177557229996,
0.12542711198329926,
0.2689931392669678,
0.2245706468820572,
-0.0769096314907074,
-0.055170219391584396,
0.05836137384176254,
0.139390766620636,
-0.1014312133193016,
-0.23619332909584045,
-0.13780343532562256,
0.12150314450263977,
-0.24981771409511566,
0.11935418844223022,
0.10002072900533676,
0.27172842621803284,
-0.25409552454948425,
-0.22686097025871277,
0.08003923296928406,
-0.02082039788365364,
-0.21429550647735596,
-0.12657290697097778,
-0.1148398295044899,
0.5404679179191589,
-0.4773682653903961,
-0.08107201755046844,
-0.24645347893238068,
-0.49941256642341614,
-0.17199763655662537,
0.06077578291296959,
-0.26742663979530334,
0.21360182762145996,
-0.30249443650245667,
0.3615041971206665,
0.5865620374679565,
-0.3914809226989746,
-0.4572274088859558,
0.23383647203445435,
-0.2829771339893341,
0.10046044737100601,
-0.13849800825119019,
-0.0420285239815712,
0.2540518641471863,
-0.3305443823337555,
0.1837497055530548,
0.2825123071670532,
0.23456718027591705,
-0.10157463699579239,
0.06584130227565765,
-0.323190301656723,
0.1283734142780304,
0.15961936116218567,
-0.04175718501210213,
0.15804755687713623,
0.43414634466171265,
-0.11283238232135773,
0.1758173108100891,
0.030087187886238098,
0.24981115758419037,
0.3567558526992798,
0.21147868037223816,
0.3019784986972809,
0.07360867410898209,
-0.11798090487718582,
-0.3112700581550598,
0.08173242211341858,
0.044375866651535034,
-0.16149041056632996,
0.2329803854227066,
-0.24368974566459656,
-0.061782557517290115,
-0.015931136906147003,
-0.47567787766456604,
-0.0845412015914917,
0.15518221259117126,
0.2266054004430771,
-0.1085241436958313,
-0.1452389806509018,
0.10943000018596649,
-0.016410736367106438,
0.07210053503513336,
0.09740042686462402,
-0.12471851706504822,
0.042072005569934845,
-0.08722876012325287,
0.013765090145170689,
0.14863741397857666,
0.23883047699928284,
0.2905253469944,
0.02449086122214794,
-0.04848810285329819,
0.2425546944141388,
0.039487410336732864,
0.1927104890346527,
0.14228084683418274,
0.04343798756599426,
0.0474223867058754,
-0.41223329305648804,
0.02168205939233303,
-0.019351419061422348,
-0.00965626910328865,
-0.17685212194919586,
-0.3418375253677368,
0.06349346041679382,
-0.16549097001552582,
0.05856949836015701,
-0.014554064720869064,
0.4292146861553192,
0.23088303208351135,
0.04853660240769386,
-0.17767181992530823,
-0.20606227219104767,
0.24472256004810333,
0.22452811896800995,
0.058008063584566116,
0.03416828066110611,
-0.07454701513051987,
0.3493298590183258,
0.6570578217506409,
-0.10517442226409912,
-0.06124422699213028,
0.03561104089021683,
-0.19130194187164307,
0.09319447726011276,
0.2317758947610855,
0.3585735857486725,
0.4231789708137512,
0.07456748932600021,
0.33962321281433105,
0.25141337513923645,
0.18301215767860413,
-0.16255493462085724,
0.19597497582435608,
0.08734003454446793,
-0.1738099902868271,
0.02858339622616768,
0.01112430915236473,
-0.03426709771156311,
-0.3682139813899994,
-0.03573690354824066,
0.3065395653247833,
0.19994261860847473,
-0.2952248156070709,
-0.12217438966035843,
-0.22843651473522186,
-0.19925904273986816,
0.013742195442318916,
-0.39727169275283813,
-0.38747677206993103,
-0.26862141489982605,
0.10477754473686218,
0.3757009506225586,
-0.17052899301052094,
0.02372085303068161,
-0.26290133595466614,
0.2840651273727417,
-0.17611229419708252,
0.2786124348640442,
-0.12827256321907043,
0.11372651159763336,
-0.33819344639778137,
0.034157492220401764,
0.3938472867012024,
0.1103443130850792,
0.33503100275993347,
0.03900492191314697,
0.30476176738739014,
-0.35734421014785767,
-0.2005074918270111,
0.0704495906829834,
-0.05349857360124588,
0.3480418026447296,
0.08699474483728409,
0.08305002748966217,
-0.04622718691825867,
-0.12326430529356003,
0.0410928949713707,
0.11237747967243195,
-0.29916149377822876,
-0.1523681879043579,
0.08758050203323364,
-0.0439424067735672,
-0.09215068817138672,
0.008655041456222534,
-0.2884485423564911,
-0.25394874811172485,
0.6208659410476685,
0.08702586591243744,
0.03819439932703972,
-0.02427332103252411,
-0.2716706693172455,
0.22934094071388245,
0.047771602869033813,
0.002123313955962658,
-0.4609934985637665,
-0.15198534727096558,
0.1771155744791031,
-0.4956430196762085,
-0.3660653531551361,
0.3775596618652344,
0.013891931623220444,
-0.11734053492546082,
0.0000475812703371048,
-0.35797441005706787,
-0.2230059802532196,
-0.20272965729236603,
0.3843068480491638,
-0.17899508774280548,
-0.20838066935539246,
0.3577471375465393,
-0.03093787096440792,
0.1540428251028061,
-0.15068599581718445,
-0.2143760472536087,
-0.03899005800485611,
-0.007551312446594238,
0.22939419746398926,
-0.19883215427398682,
0.310774564743042,
-0.12397409975528717,
0.451678991317749,
0.4077267348766327,
0.4883933365345001,
0.10249973833560944,
-0.22181449830532074,
0.4214835464954376,
0.26156145334243774,
-0.2860836088657379,
0.32143929600715637,
0.06971251964569092,
0.2300424426794052,
0.2433643788099289,
0.18344739079475403,
-0.012069083750247955,
0.07060226798057556,
-0.1620650291442871,
-0.5502296686172485,
-0.4570794999599457,
-0.19216911494731903,
-0.23815438151359558,
0.010653354227542877,
0.1700233519077301,
0.35183772444725037,
-0.11939539015293121,
-0.2857803702354431,
-0.17482486367225647,
0.4094931483268738,
0.08917742222547531,
-0.048476479947566986,
-0.22486966848373413,
0.047321025282144547,
-0.5404871106147766,
0.18068979680538177,
-0.12463506311178207,
0.2828448414802551,
-0.42791202664375305,
0.2570217549800873,
0.42828458547592163,
-0.05863851681351662,
0.7751070857048035,
-0.3875235617160797,
0.25861048698425293,
-0.025834104046225548,
0.22812220454216003,
-0.2867929935455322,
-0.12331770360469818,
-0.009856186807155609,
0.5733605623245239,
0.3239537179470062,
0.004299156367778778,
-0.1365308165550232,
-0.06056393310427666,
0.4265565276145935,
-0.362154096364975,
-0.17909565567970276,
-0.12412673234939575,
-0.02659529633820057,
-0.4552888870239258,
-0.0720149502158165,
-0.12604159116744995,
0.2206486612558365,
0.02807035855948925,
-0.06929250061511993,
0.10410556197166443,
0.11696898937225342,
0.18728002905845642,
0.2176298201084137,
0.05302080884575844,
0.008165557868778706,
0.3262702524662018,
0.20442089438438416,
0.6320203542709351,
0.18547125160694122,
0.09756267070770264,
0.5074191093444824,
0.2305263727903366,
-0.5539889931678772,
0.32766735553741455,
-0.13361498713493347,
0.035192184150218964,
0.44848963618278503,
-0.026876315474510193,
-0.027668550610542297,
0.17373740673065186,
0.07069054245948792,
-0.2563749849796295,
0.1515006721019745,
0.5179873704910278,
-0.13403670489788055,
-0.3250584006309509,
-0.2643650472164154,
0.1198628842830658,
-0.011079688556492329,
-0.15274488925933838,
0.40812814235687256,
0.39785706996917725,
-0.23576723039150238,
-0.05309382081031799,
-0.23374953866004944,
0.750024676322937,
0.18611174821853638,
-0.04395518824458122,
0.371253103017807,
-0.32242846488952637,
0.37284383177757263,
-0.21700118482112885,
0.16015996038913727,
-0.12174168229103088,
0.11587042361497879,
-0.2370898723602295,
-0.09912369400262833,
0.032786834985017776,
0.15951350331306458,
0.09885959327220917,
-0.1747976541519165,
0.2682569622993469,
0.10998280346393585,
0.10109426826238632,
0.4296811521053314,
-0.42727383971214294,
-0.04175538942217827,
0.21718834340572357,
0.12799973785877228,
-0.1197417825460434,
0.28740984201431274,
-0.17171207070350647,
-0.3375384211540222,
-0.055826105177402496,
-0.17111027240753174,
-0.647377073764801,
0.24514994025230408,
-0.2825877368450165,
0.1759188324213028,
-0.025641385465860367,
0.05025188624858856,
0.359513521194458,
0.1026042103767395,
0.06831388175487518,
0.006479550153017044,
-0.4235578775405884,
0.4741012752056122,
-0.1029781773686409,
0.07719696313142776,
-0.12544523179531097,
-0.05707915499806404,
0.2610185444355011,
-0.1247854232788086,
-0.2512821555137634,
-0.10348645597696304,
-0.10657045245170593,
-0.35473984479904175,
-0.5266786813735962,
0.4670964479446411,
-0.20460017025470734,
-0.19610381126403809,
0.1439470797777176,
0.06897811591625214,
-0.19782407581806183,
0.012657690793275833,
0.06569702178239822,
0.10112638771533966,
-0.14587469398975372,
0.36621469259262085,
-0.010740254074335098,
-0.24293813109397888,
0.03350984677672386,
0.3488786518573761,
-0.3345002233982086,
0.10853055119514465,
0.7911421060562134,
-0.05648016184568405,
-0.12969103455543518,
-0.15220996737480164,
0.12320985645055771,
0.2595202624797821,
-0.10289163887500763,
-0.23984751105308533,
0.08405143022537231,
0.32290422916412354,
0.17641671001911163,
-0.10804124176502228,
-0.08253580331802368,
-0.0011454448103904724,
-0.20692183077335358,
-0.4090842306613922,
-0.019200777634978294,
0.0014883056282997131,
-0.09757237136363983,
0.07351517677307129,
0.051780588924884796,
0.3287389278411865,
0.09769944846630096,
-0.129052996635437,
-0.21913324296474457,
0.16427569091320038,
0.00403437577188015,
-0.03298644721508026,
-0.10837143659591675,
-0.18912231922149658,
0.11803559958934784,
-0.06695429980754852,
-0.053437333554029465,
0.09630998224020004,
-0.06030780076980591,
-0.06398338079452515,
-0.038573116064071655,
0.14618317782878876,
0.15493467450141907,
-0.5258265137672424,
-0.3137885630130768,
-0.27419018745422363,
-0.17945384979248047,
0.2521902322769165,
-0.06677776575088501,
0.1770956814289093,
0.0043692514300346375,
-0.2535575032234192,
-0.30410823225975037,
0.17369189858436584,
0.08519145846366882,
0.1428123116493225,
0.09813150018453598,
0.448236882686615,
-0.11489035934209824,
0.3375031352043152,
-0.04076943174004555,
0.035950109362602234,
-0.07717758417129517,
0.12027230858802795,
-0.02781134843826294,
0.13659268617630005,
0.13724344968795776,
-0.21500925719738007,
0.2512279748916626,
-0.16464895009994507,
0.3228875696659088,
0.4587690234184265,
-0.168776735663414,
0.09552698582410812,
0.21528160572052002,
0.10242564976215363,
0.012862738221883774,
0.021212181076407433,
0.7363053560256958,
-0.1246565505862236,
-0.01060013473033905,
-0.11111024767160416,
-0.26695123314857483,
0.17380443215370178,
-0.32897424697875977,
-0.005705542862415314,
0.020018115639686584,
0.24216324090957642,
0.3245267868041992,
0.26595327258110046,
-0.4836503863334656,
0.12376192212104797,
0.3056540787220001,
0.1966152787208557,
0.09257576614618301,
0.5458191633224487,
-0.11557329446077347,
0.013870242051780224,
-0.5234118103981018,
-0.07260102033615112,
0.46969500184059143,
-0.6004889011383057,
-0.08881598711013794,
-0.12220844626426697,
0.04766572639346123,
0.15065878629684448,
-0.09209778904914856,
0.08715131133794785,
-0.602443277835846,
-0.07332545518875122,
-0.6118959784507751,
0.14442934095859528,
-0.19825834035873413,
0.16757875680923462,
-0.37343189120292664,
-0.1287889927625656,
0.10192112624645233,
0.08739474415779114,
-0.02263907715678215,
-0.2938114404678345,
-0.4112601578235626,
-0.03528771549463272,
-0.3589816093444824,
-0.2389405518770218,
0.10558073222637177,
-0.08695796877145767,
0.2046736627817154,
-0.25565311312675476,
-0.015834985300898552,
-0.11732757091522217,
0.1605311930179596,
0.30543753504753113,
0.08502477407455444,
0.15001130104064941,
0.20277473330497742,
0.005793619900941849,
-0.020750846713781357,
0.0213893074542284,
-0.14897915720939636,
-0.2791194021701813,
0.40435513854026794,
0.11036946624517441,
0.09748370945453644,
0.3543255031108856,
0.09191024303436279,
-0.07419843971729279,
0.0746334046125412,
0.1349535584449768,
0.04836529493331909,
-0.3746981918811798,
-0.12891054153442383,
-0.5515333414077759,
-0.13503381609916687,
-0.2413678765296936,
-0.27027201652526855,
-0.020393498241901398,
-0.1602805256843567,
0.298332154750824,
-0.1136736199259758,
0.1617760956287384,
-0.6129444241523743,
0.01444857195019722,
0.07689463347196579,
0.36625435948371887,
0.4747694432735443,
0.03539523109793663,
0.07149072736501694,
-0.2559940218925476,
-0.6198697686195374,
0.008553475141525269,
-0.17328010499477386,
0.1436873972415924,
-0.0122924093157053,
0.15238648653030396,
-0.27577492594718933,
-0.05537136644124985,
0.3319697976112366,
0.294751912355423,
0.002575893886387348,
0.3568277955055237,
0.006108485162258148,
-0.11009061336517334,
0.5211391448974609,
0.14767827093601227,
-0.09302264451980591,
-0.1846296191215515,
0.28917062282562256,
0.16374921798706055,
-0.15411688387393951,
-0.02341292053461075,
-0.11408065259456635,
-0.29159870743751526,
-0.010248661041259766,
0.12674035131931305,
0.3892510235309601,
0.20551785826683044,
0.1399802565574646,
0.21686282753944397,
-0.5654082894325256,
-0.18191462755203247,
-0.13061435520648956,
0.3874705731868744,
-0.13540740311145782,
0.23723483085632324,
-0.03659845143556595,
0.17249266803264618,
-0.1631012260913849,
0.10458451509475708,
-0.22245891392230988,
0.2951648533344269,
-0.07211361825466156,
0.03850194066762924,
-0.44237232208251953,
0.4101879596710205,
0.22927077114582062,
0.1977500021457672,
-0.011503338813781738,
0.16852588951587677,
-0.3425060510635376,
-0.13826172053813934,
0.43699708580970764,
-0.6077607870101929,
-0.08679492771625519,
0.02958771586418152,
0.21819645166397095,
0.45663100481033325,
-0.3519800305366516,
-0.008312366902828217,
-0.04232463240623474,
0.38825032114982605,
-0.22032248973846436,
0.2699096202850342,
-0.050848741084337234,
-0.1862829625606537,
-0.027761371806263924,
-0.052798155695199966,
0.5476986765861511,
0.13860204815864563,
-0.21212267875671387,
0.6307737231254578,
0.04998643696308136
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | To replicate:
```python
>>> import datasets
>>> dataset= datasets.load_dataset('facebook/winoground', name='facebook--winoground', split='train', use_auth_token="hf_app_...", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 439, in wrapper
for key, table in generate_tables_fn(**kwargs):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 85, in _generate_tables
for file_idx, file in enumerate(files):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 679, in __iter__
yield from self.generator(*self.args, **self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 731, in _iter_from_urlpaths
for dirpath, _, filenames in xwalk(urlpath, use_auth_token=use_auth_token):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 623, in xwalk
for dirpath, dirnames, filenames in fs.walk(main_hop):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 372, in walk
listing = self.ls(path, detail=True, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 85, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 65, in sync
raise return_result
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 25, in _runner
result[0] = await coro
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 196, in _ls
out = await self._ls_real(url, detail=detail, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 150, in _ls_real
self._raise_not_found_for_status(r, url)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 208, in _raise_not_found_for_status
response.raise_for_status()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
```
*edited to fix `use_token` -> `use_auth_token`, thx @odellus* | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 200 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
To replicate:
```python
>>> import datasets
>>> dataset= datasets.load_dataset('facebook/winoground', name='facebook--winoground', split='train', use_auth_token="hf_app_...", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 439, in wrapper
for key, table in generate_tables_fn(**kwargs):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 85, in _generate_tables
for file_idx, file in enumerate(files):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 679, in __iter__
yield from self.generator(*self.args, **self.kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 731, in _iter_from_urlpaths
for dirpath, _, filenames in xwalk(urlpath, use_auth_token=use_auth_token):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/streaming_download_manager.py", line 623, in xwalk
for dirpath, dirnames, filenames in fs.walk(main_hop):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 372, in walk
listing = self.ls(path, detail=True, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 85, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 65, in sync
raise return_result
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/asyn.py", line 25, in _runner
result[0] = await coro
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 196, in _ls
out = await self._ls_real(url, detail=detail, **kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 150, in _ls_real
self._raise_not_found_for_status(r, url)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 208, in _raise_not_found_for_status
response.raise_for_status()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/facebook/winoground/resolve/a86a60456fbbd242e9a744199071a6bd3e7fd9de/examples.jsonl')
```
*edited to fix `use_token` -> `use_auth_token`, thx @odellus* | [
-0.20851412415504456,
0.3726023733615875,
0.010257720947265625,
0.18125629425048828,
0.03531632944941521,
0.09515132755041122,
0.2718733847141266,
-0.0505482517182827,
-0.2809489369392395,
-0.08999234437942505,
-0.3027312457561493,
-0.10536891222000122,
-0.1971442997455597,
-0.016118373721837997,
-0.01818954199552536,
0.2671884000301361,
-0.08188792318105698,
-0.19816935062408447,
-0.11571791768074036,
-0.08899424970149994,
-0.19661031663417816,
0.034014977514743805,
-0.3066471517086029,
0.19433945417404175,
-0.1805410236120224,
-0.04511113464832306,
-0.0002898219972848892,
0.09729333221912384,
-0.2692318260669708,
-0.41876691579818726,
0.3262510597705841,
0.3400072157382965,
0.27456149458885193,
0.3904320299625397,
-0.00011524387809913605,
0.21940718591213226,
0.11397966742515564,
0.24546003341674805,
-0.23967811465263367,
0.03759288787841797,
-0.14268675446510315,
-0.22220467031002045,
0.1334577351808548,
-0.0836956575512886,
-0.08439919352531433,
-0.40268880128860474,
0.1368243396282196,
0.12111571431159973,
0.1900053322315216,
0.409091055393219,
0.18390822410583496,
0.19262389838695526,
0.09840144217014313,
0.053215887397527695,
0.010096259415149689,
0.11546924710273743,
-0.20711156725883484,
0.22457346320152283,
0.06154537945985794,
-0.3735898733139038,
-0.14180567860603333,
0.13211289048194885,
0.185056671500206,
-0.010659720748662949,
0.3973763883113861,
-0.0973801463842392,
0.28300994634628296,
-0.3932603895664215,
-0.015032831579446793,
0.20201808214187622,
0.5635892152786255,
-0.08932792395353317,
-0.41360586881637573,
-0.13610723614692688,
0.20951531827449799,
0.1809232532978058,
0.277846097946167,
0.3774883449077606,
-0.15067221224308014,
0.2261229008436203,
-0.17142640054225922,
-0.1158689334988594,
-0.44421297311782837,
0.23119854927062988,
-0.09499481320381165,
-0.13311907649040222,
-0.07789169251918793,
0.1639319658279419,
-0.1458643227815628,
-0.13910698890686035,
0.3164431154727936,
-0.18963909149169922,
-0.009671639651060104,
0.14493709802627563,
-0.06363451480865479,
0.19660790264606476,
0.2323906421661377,
0.3351238965988159,
-0.15228664875030518,
0.23295919597148895,
-0.2515788972377777,
0.1177607998251915,
-0.23675526678562164,
0.009406965225934982,
0.23927651345729828,
-0.13821949064731598,
0.006078042089939117,
0.4463442265987396,
0.39785969257354736,
0.07094283401966095,
-0.14038492739200592,
0.012080652639269829,
-0.11209144443273544,
-0.31830692291259766,
-0.03752414137125015,
-0.2369871735572815,
0.5771335959434509,
-0.012992128729820251,
-0.3909645676612854,
0.12377753853797913,
-0.20703598856925964,
-0.08648757636547089,
0.3593558669090271,
0.5011613368988037,
-0.06006370112299919,
-0.2102205455303192,
0.18462716042995453,
0.0767306387424469,
-0.08330747485160828,
-0.01491532102227211,
-0.13425754010677338,
-0.13724355399608612,
-0.07248630374670029,
-0.00021648965775966644,
0.1694059818983078,
-0.0590558685362339,
-0.05315084755420685,
-0.08156599849462509,
0.03647008165717125,
0.0026857703924179077,
0.2638322412967682,
-0.011841608211398125,
0.24036946892738342,
0.09902944415807724,
0.2646733820438385,
0.23073114454746246,
0.02707577496767044,
-0.12071574479341507,
0.07649032026529312,
0.07126136124134064,
0.002892926335334778,
-0.25372999906539917,
-0.13168582320213318,
0.14467720687389374,
-0.17411132156848907,
0.03805491328239441,
-0.04448581486940384,
0.21506334841251373,
-0.17259246110916138,
-0.25344717502593994,
0.15885017812252045,
-0.16010813415050507,
-0.13466182351112366,
-0.17982664704322815,
-0.018222570419311523,
0.6366180777549744,
-0.3335759937763214,
-0.0692034363746643,
-0.09961605817079544,
-0.45650461316108704,
0.0041519030928611755,
0.10231801867485046,
-0.34060218930244446,
0.25626489520072937,
-0.3847801387310028,
0.16233497858047485,
0.6731492280960083,
-0.5265988111495972,
-0.5723420977592468,
0.13029363751411438,
-0.20958676934242249,
0.2947956323623657,
-0.03838176280260086,
0.05738822743296623,
0.02100028097629547,
-0.42526888847351074,
0.09112050384283066,
0.21517440676689148,
0.3071693181991577,
-0.11507314443588257,
0.09250980615615845,
-0.17220273613929749,
0.2178274244070053,
0.018009096384048462,
0.26057446002960205,
0.23704317212104797,
0.40046870708465576,
-0.23676590621471405,
0.371260404586792,
-0.01096617802977562,
0.12187271565198898,
0.28822892904281616,
0.28188905119895935,
0.46284735202789307,
0.01259501650929451,
-0.09455421566963196,
-0.003951705992221832,
0.1427241861820221,
0.03254777193069458,
-0.11533477902412415,
0.13695570826530457,
-0.2576139569282532,
-0.06699662655591965,
0.09890354424715042,
-0.6285979151725769,
-0.2252214550971985,
0.20645491778850555,
0.47139081358909607,
-0.21509702503681183,
-0.09656989574432373,
0.12109442055225372,
0.06723292917013168,
-0.16699981689453125,
0.05981781706213951,
-0.0760878175497055,
0.08018925040960312,
0.0002488698810338974,
0.07931439578533173,
0.0880463570356369,
0.23004305362701416,
0.4066125452518463,
0.08682676404714584,
-0.07407905906438828,
0.22083276510238647,
-0.02583315409719944,
0.07589202374219894,
0.14252203702926636,
0.14797343313694,
0.02408706396818161,
-0.3389979302883148,
0.023909058421850204,
-0.0883694589138031,
0.010791202075779438,
-0.06428081542253494,
0.011803962290287018,
0.007195092737674713,
0.04623980447649956,
0.12473806738853455,
0.04261183738708496,
0.34686505794525146,
0.2179809808731079,
0.1840873509645462,
-0.21322986483573914,
-0.06250813603401184,
0.14030082523822784,
0.15850208699703217,
0.23068390786647797,
-0.10378949344158173,
-0.04968194290995598,
0.27498629689216614,
0.4640748202800751,
-0.0770336389541626,
-0.1384739875793457,
0.0255013108253479,
-0.27582812309265137,
0.12058498710393906,
0.21259461343288422,
0.1807209849357605,
0.2823638916015625,
0.028081383556127548,
0.3015078008174896,
0.22208400070667267,
0.07407619804143906,
-0.05042028799653053,
0.24501681327819824,
0.260026216506958,
-0.1127709448337555,
-0.020311400294303894,
0.09132609516382217,
0.09007435292005539,
-0.3580138087272644,
-0.06761123239994049,
0.08030596375465393,
0.2629169523715973,
-0.3747040629386902,
0.09825386852025986,
-0.24401357769966125,
-0.3307066857814789,
0.12047893553972244,
-0.36898696422576904,
-0.26126566529273987,
-0.30966705083847046,
-0.09011790156364441,
0.290502667427063,
-0.020973805338144302,
0.08641801029443741,
-0.35188212990760803,
0.10573973506689072,
0.06832601130008698,
0.06962491571903229,
-0.056678563356399536,
0.17731285095214844,
-0.32066959142684937,
-0.01385544054210186,
0.4098384380340576,
-0.13140718638896942,
0.45018088817596436,
0.03830103576183319,
0.16226418316364288,
-0.5537562966346741,
-0.22162309288978577,
0.010069262236356735,
-0.02218029648065567,
0.42706573009490967,
0.05808185040950775,
0.06593423336744308,
0.028657473623752594,
-0.12937983870506287,
0.08834525942802429,
0.037022434175014496,
-0.1894989311695099,
0.027680180966854095,
-0.0488835908472538,
-0.172341987490654,
0.1353704184293747,
0.21238812804222107,
-0.47876250743865967,
-0.28692054748535156,
0.4226204752922058,
0.18736714124679565,
0.055538829416036606,
0.2615467607975006,
-0.1819201409816742,
0.18478909134864807,
0.036066729575395584,
0.1426360160112381,
-0.4267410933971405,
-0.16107341647148132,
0.26024794578552246,
-0.3956183195114136,
-0.4253906011581421,
0.1956753432750702,
-0.011070230975747108,
-0.06880746781826019,
0.06167329475283623,
-0.4776182770729065,
-0.42527616024017334,
-0.1689157783985138,
0.4505133628845215,
-0.09264455735683441,
-0.12112182378768921,
0.24861027300357819,
-0.057838741689920425,
0.16870634257793427,
-0.07443447411060333,
-0.21890312433242798,
-0.0973733589053154,
-0.16408249735832214,
0.07226875424385071,
-0.09052611142396927,
0.3886064887046814,
-0.06997594982385635,
0.4631863236427307,
0.42762917280197144,
0.4689788222312927,
0.2787850499153137,
-0.30142587423324585,
0.523054838180542,
0.16158491373062134,
-0.4410337209701538,
0.33205899596214294,
0.07799903303384781,
0.13932034373283386,
0.22731468081474304,
-0.023021038621664047,
-0.03928927332162857,
0.0864923745393753,
-0.2422056347131729,
-0.4432078003883362,
-0.522673487663269,
-0.27352455258369446,
-0.3207765221595764,
0.11730093508958817,
0.11550869047641754,
0.3387802541255951,
-0.36780989170074463,
-0.36727428436279297,
-0.018217947334051132,
0.4401893615722656,
0.013140738010406494,
-0.021115904673933983,
-0.08635561913251877,
0.12605559825897217,
-0.6251251101493835,
0.15512174367904663,
-0.19278092682361603,
0.4737547039985657,
-0.25692451000213623,
0.11875941604375839,
0.36184704303741455,
0.02223312482237816,
0.7685933113098145,
-0.2196742743253708,
0.2492310255765915,
-0.026301145553588867,
0.05289758741855621,
-0.30899566411972046,
-0.2789890170097351,
-0.07170477509498596,
0.5504183173179626,
0.17547538876533508,
0.08390850573778152,
-0.027605324983596802,
-0.18774303793907166,
0.3613383173942566,
-0.3071597218513489,
-0.10727792978286743,
-0.11528491228818893,
-0.09429913014173508,
-0.41513729095458984,
-0.12297720462083817,
-0.12200183421373367,
0.11502049118280411,
0.05638044700026512,
-0.09883620589971542,
0.10165677964687347,
-0.08246123045682907,
0.21149280667304993,
0.31253582239151,
0.027134239673614502,
-0.0036223996430635452,
0.3800344169139862,
0.1717275232076645,
0.5404750108718872,
0.04943504557013512,
0.0722937360405922,
0.562908411026001,
0.2708822190761566,
-0.7646374106407166,
0.24788185954093933,
0.04273601993918419,
0.010477721691131592,
0.3990825414657593,
-0.19861309230327606,
0.03985956311225891,
0.0036077480763196945,
0.03249265253543854,
-0.2912120223045349,
0.3165086507797241,
0.5649160146713257,
-0.07462631911039352,
-0.4296293258666992,
-0.4726927876472473,
0.12593868374824524,
-0.05899082124233246,
-0.1601470410823822,
0.42269811034202576,
0.4102078676223755,
-0.21657389402389526,
-0.020267285406589508,
-0.17187616229057312,
0.6540142893791199,
0.1252397745847702,
0.1307169497013092,
0.5283107161521912,
-0.05594253167510033,
0.2043379545211792,
-0.20748858153820038,
0.13557451963424683,
-0.1559266895055771,
-0.1639452427625656,
-0.20337803661823273,
-0.12641440331935883,
-0.08190647512674332,
-0.0164499431848526,
0.2459442913532257,
-0.0154330525547266,
0.3112810254096985,
0.04624200239777565,
0.16972164809703827,
0.243717223405838,
-0.41165459156036377,
-0.0219268761575222,
0.047326814383268356,
0.15897566080093384,
-0.12169523537158966,
0.23824602365493774,
-0.1628832221031189,
-0.31340450048446655,
0.049779195338487625,
-0.05541423708200455,
-0.4860534071922302,
0.1797918975353241,
-0.6035138368606567,
0.19740992784500122,
-0.002690732479095459,
-0.1335734724998474,
0.21345654129981995,
0.21177729964256287,
0.13176514208316803,
0.046091772615909576,
-0.2970627546310425,
0.312439888715744,
0.07573790848255157,
0.05269605666399002,
-0.1504041850566864,
-0.035136304795742035,
0.42118263244628906,
-0.06758040189743042,
-0.2645781636238098,
0.012201223522424698,
-0.012927928008139133,
-0.4717087149620056,
-0.27590447664260864,
0.29889586567878723,
0.126186341047287,
-0.1394418478012085,
0.09652848541736603,
-0.0645686686038971,
-0.2275886982679367,
0.056046824902296066,
0.07151608169078827,
0.0792609304189682,
-0.16664500534534454,
0.2587555944919586,
0.04151230677962303,
-0.295000821352005,
0.07421460747718811,
0.44879150390625,
-0.4181365668773651,
0.10682471096515656,
0.9319936037063599,
-0.04531247913837433,
-0.2930939793586731,
-0.06698232889175415,
-0.00975426658987999,
0.21601133048534393,
-0.05432485044002533,
-0.32947519421577454,
0.18345971405506134,
0.40472084283828735,
0.196599081158638,
-0.07782396674156189,
-0.006895996630191803,
-0.19789457321166992,
-0.2389504313468933,
-0.4628129005432129,
-0.1214643269777298,
-0.14359723031520844,
-0.13650156557559967,
0.1269078105688095,
0.1539086103439331,
0.1522054821252823,
0.0018670540302991867,
-0.1498338282108307,
-0.2303616851568222,
-0.06700152903795242,
-0.05536462366580963,
-0.03111042082309723,
-0.024696629494428635,
-0.1405629813671112,
0.19256268441677094,
-0.011171622201800346,
0.05824219435453415,
0.02597890794277191,
-0.08446216583251953,
-0.13297520577907562,
-0.09889872372150421,
0.1382160484790802,
0.20890218019485474,
-0.6280235648155212,
-0.15348103642463684,
-0.3583605885505676,
-0.18284401297569275,
0.02632451429963112,
0.03496577590703964,
0.3375469744205475,
0.0061179473996162415,
-0.02642473578453064,
-0.2825869023799896,
0.11747851967811584,
0.18420380353927612,
0.0924890860915184,
-0.005071304738521576,
0.275806188583374,
0.042429372668266296,
0.2549630105495453,
-0.1341172307729721,
0.018551215529441833,
-0.08632182329893112,
0.17574867606163025,
0.0729159563779831,
0.1868244707584381,
0.2322854995727539,
-0.2827543616294861,
0.16108380258083344,
-0.029605157673358917,
0.1392136514186859,
0.44487202167510986,
-0.2851584255695343,
0.009153110906481743,
0.20367267727851868,
0.09416873753070831,
-0.14346419274806976,
-0.028372541069984436,
0.4346144497394562,
-0.13830991089344025,
0.09683258831501007,
-0.08387690037488937,
-0.2348342388868332,
-0.0140882208943367,
-0.12225127220153809,
0.0730457678437233,
-0.07438693195581436,
0.15281115472316742,
0.20454221963882446,
0.1488431692123413,
-0.3283287584781647,
0.06082466244697571,
0.2759265899658203,
0.3823886215686798,
-0.024176038801670074,
0.608380913734436,
-0.15424120426177979,
0.019324250519275665,
-0.5716186165809631,
-0.3066457509994507,
0.2905721068382263,
-0.6468981504440308,
-0.006119929254055023,
-0.2238929569721222,
-0.07625643908977509,
0.1027265340089798,
-0.0914173573255539,
-0.016361892223358154,
-0.41874897480010986,
0.08032573759555817,
-0.44759494066238403,
0.09461754560470581,
-0.1296577751636505,
0.1037573516368866,
-0.3227311670780182,
-0.07688216120004654,
0.09214861690998077,
-0.05695132166147232,
0.012536928057670593,
-0.4383283853530884,
-0.47666242718696594,
0.07789674401283264,
-0.3703354597091675,
-0.2235974818468094,
0.1856432855129242,
-0.037200234830379486,
0.20213548839092255,
-0.23770743608474731,
0.04303598403930664,
-0.067552849650383,
0.22494196891784668,
0.25435972213745117,
0.17932629585266113,
0.2668152451515198,
0.2822269797325134,
0.03261806070804596,
0.11682102829217911,
0.1299504041671753,
-0.16722868382930756,
-0.20037443935871124,
0.19277280569076538,
-0.01724715530872345,
0.167327418923378,
0.3196297883987427,
0.0755385160446167,
-0.0780782699584961,
0.10283967852592468,
0.12656354904174805,
0.0607561394572258,
-0.45485252141952515,
0.05174839124083519,
-0.4400126338005066,
-0.10294589400291443,
-0.2870270609855652,
-0.24107131361961365,
-0.14026138186454773,
-0.10658098757266998,
0.5716795325279236,
0.0030577147845178843,
0.292814165353775,
-0.5307652354240417,
0.019065354019403458,
0.08431223034858704,
0.31452617049217224,
0.6599328517913818,
-0.03205205500125885,
-0.04170846939086914,
-0.04987888038158417,
-0.6694414615631104,
0.11368648707866669,
-0.014771021902561188,
0.012993602082133293,
0.09063862264156342,
0.1036309078335762,
-0.12684258818626404,
-0.15541209280490875,
0.42481863498687744,
0.026821229606866837,
0.040616557002067566,
0.4070796072483063,
0.004805881530046463,
-0.21567384898662567,
0.30712634325027466,
0.22328123450279236,
-0.03144773095846176,
-0.25973331928253174,
0.15870772302150726,
-0.17124716937541962,
-0.03846431151032448,
0.03954941779375076,
-0.17683619260787964,
-0.15525229275226593,
-0.04535584896802902,
0.3721783459186554,
0.22051315009593964,
0.2048000991344452,
0.049470894038677216,
0.2012866884469986,
-0.6258916854858398,
-0.06432688981294632,
-0.13028861582279205,
0.31777411699295044,
-0.36157554388046265,
0.14020191133022308,
-0.021569829434156418,
-0.044469479471445084,
-0.10366136580705643,
0.17828325927257538,
-0.08911033719778061,
0.025656428188085556,
-0.04790104180574417,
0.13923414051532745,
-0.38535356521606445,
0.2690905034542084,
0.18613342940807343,
0.07443342357873917,
0.00917564332485199,
0.30555033683776855,
-0.35138440132141113,
-0.27467620372772217,
0.4907818138599396,
-0.7992656230926514,
-0.09305168688297272,
-0.028225548565387726,
0.22023120522499084,
0.2897980213165283,
-0.25071030855178833,
-0.13323351740837097,
0.14377909898757935,
0.4316151440143585,
-0.1678713858127594,
0.14224979281425476,
0.08628608286380768,
-0.30674096941947937,
0.23332352936267853,
-0.07762669771909714,
0.6181697845458984,
-0.03757913410663605,
-0.1718331128358841,
0.397158682346344,
-0.0336667038500309
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | ~~Using your command to replicate and changing `use_token` to `use_auth_token` fixes the problem I was seeing in #4149.~~
Nevermind it gave me an iterator to a method returning the same 401s. Changing `use_token` to `use_auth_token` does not fix the issue. | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 40 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
~~Using your command to replicate and changing `use_token` to `use_auth_token` fixes the problem I was seeing in #4149.~~
Nevermind it gave me an iterator to a method returning the same 401s. Changing `use_token` to `use_auth_token` does not fix the issue. | [
-0.3063987195491791,
0.35606569051742554,
0.05785556510090828,
0.09772299230098724,
0.02354145236313343,
-0.017656054347753525,
0.25223657488822937,
0.04315415769815445,
-0.25480467081069946,
-0.0015680566430091858,
-0.2723410427570343,
0.044924020767211914,
-0.12449865788221359,
0.13412828743457794,
-0.11483429372310638,
0.2799379825592041,
-0.0799773558974266,
-0.1969621181488037,
-0.2051309049129486,
-0.03284525126218796,
-0.13726121187210083,
0.13165411353111267,
-0.2250652015209198,
0.15772366523742676,
-0.3000451624393463,
-0.007612982764840126,
-0.075950987637043,
0.10174413025379181,
-0.33649152517318726,
-0.34122413396835327,
0.17793796956539154,
0.3287460207939148,
0.19978146255016327,
0.3236733078956604,
-0.00010542001109570265,
0.146383136510849,
0.18169498443603516,
0.2586025893688202,
-0.213572695851326,
0.013424225151538849,
-0.10231426358222961,
-0.20264051854610443,
0.13500362634658813,
-0.1098264828324318,
-0.2017401158809662,
-0.44395217299461365,
0.2824309170246124,
0.33813804388046265,
0.47664618492126465,
0.37267202138900757,
0.23697513341903687,
0.06207777559757233,
0.1386142522096634,
-0.08928115665912628,
0.01896914467215538,
0.23004649579524994,
-0.220686674118042,
0.15501084923744202,
0.2587449252605438,
-0.23095881938934326,
-0.11203066259622574,
0.16600066423416138,
0.2394525110721588,
0.016151366755366325,
0.34908241033554077,
-0.07592346519231796,
0.23429033160209656,
-0.36121511459350586,
0.11359471082687378,
0.21572062373161316,
0.5431165099143982,
-0.047061070799827576,
-0.21875163912773132,
-0.017769131809473038,
0.04381165653467178,
0.2177252173423767,
0.3030031621456146,
0.1479000747203827,
-0.16278505325317383,
0.2534489929676056,
-0.3981271982192993,
-0.08972030878067017,
-0.3921799659729004,
0.11738365888595581,
-0.09444713592529297,
-0.35305124521255493,
-0.08787695318460464,
0.19284388422966003,
-0.11287395656108856,
-0.3332099914550781,
0.0793568342924118,
-0.19809049367904663,
-0.10037018358707428,
0.1009809821844101,
-0.04188242927193642,
0.0635586604475975,
0.23403140902519226,
0.4548948109149933,
-0.013164935633540154,
0.3302832245826721,
-0.24573124945163727,
0.14998534321784973,
-0.33336910605430603,
0.11338029056787491,
0.16452954709529877,
-0.03911326080560684,
0.11237405240535736,
0.3372054994106293,
0.35720688104629517,
-0.018322357907891273,
-0.2958735525608063,
-0.008059665560722351,
-0.008815277367830276,
-0.2827012240886688,
-0.0703120231628418,
-0.19849279522895813,
0.40851032733917236,
-0.13218851387500763,
-0.2752264142036438,
0.16684214770793915,
-0.04704781249165535,
-0.09866329282522202,
0.24374404549598694,
0.5728766322135925,
-0.024216271936893463,
-0.4087878465652466,
0.2333904653787613,
0.0032486561685800552,
-0.14233414828777313,
-0.04464120417833328,
-0.10565510392189026,
-0.13662122189998627,
-0.05560104921460152,
0.11298151314258575,
0.30187007784843445,
0.12974603474140167,
0.0380316898226738,
-0.020963873714208603,
0.021203987300395966,
0.0886443555355072,
0.3690091371536255,
-0.0003347136080265045,
0.23883244395256042,
0.034382566809654236,
0.2654971480369568,
0.1575123816728592,
-0.061218809336423874,
-0.0697215348482132,
0.11287324875593185,
0.1051025390625,
-0.0472494438290596,
-0.26117148995399475,
-0.11126205325126648,
0.19597718119621277,
-0.21675370633602142,
-0.011492002755403519,
0.12571391463279724,
0.28161776065826416,
-0.2943834960460663,
-0.2996920943260193,
0.06550291925668716,
-0.12167759239673615,
-0.12128281593322754,
-0.16285482048988342,
-0.034131504595279694,
0.5103680491447449,
-0.30403608083724976,
0.00622597336769104,
-0.018051624298095703,
-0.40404990315437317,
-0.023173421621322632,
0.12132199108600616,
-0.24510064721107483,
0.07221413403749466,
-0.3180154860019684,
0.38092559576034546,
0.5442463159561157,
-0.48994308710098267,
-0.4562233090400696,
0.10647193342447281,
-0.19858071208000183,
0.10072805732488632,
-0.13603147864341736,
-0.010527370497584343,
0.232350692152977,
-0.3824833333492279,
0.021196186542510986,
0.16983215510845184,
0.3805506229400635,
-0.10184083878993988,
-0.02955215983092785,
-0.33804282546043396,
0.13307127356529236,
0.06889507174491882,
0.06399943679571152,
0.16090184450149536,
0.4448835253715515,
-0.32071858644485474,
0.22065705060958862,
-0.07746496796607971,
0.11967409402132034,
0.11998067051172256,
0.314350426197052,
0.3575880527496338,
0.10913094878196716,
-0.006080279126763344,
-0.10352808982133865,
0.15568166971206665,
0.01661878079175949,
-0.10316790640354156,
0.2740294933319092,
-0.24442049860954285,
0.025579385459423065,
-0.09164177626371384,
-0.5065621137619019,
-0.16333112120628357,
0.259409636259079,
0.32869142293930054,
-0.15405002236366272,
-0.053655870258808136,
0.09128400683403015,
-0.09979279339313507,
-0.09724490344524384,
0.11391476541757584,
0.06835965812206268,
0.07750114053487778,
-0.13098040223121643,
0.014896033331751823,
0.10990428924560547,
0.20281830430030823,
0.4055517911911011,
0.08984088152647018,
-0.079447440803051,
0.17096585035324097,
-0.04360317811369896,
0.14129897952079773,
0.16671693325042725,
0.14233872294425964,
-0.0052689723670482635,
-0.36803722381591797,
-0.02766994573175907,
0.031797438859939575,
-0.04624856263399124,
-0.0388568714261055,
-0.15243202447891235,
-0.018148377537727356,
0.12692523002624512,
-0.03561065346002579,
0.05693402141332626,
0.37381529808044434,
0.34406691789627075,
-0.013298582285642624,
-0.13866525888442993,
-0.1229342594742775,
0.1767469346523285,
0.29818445444107056,
0.15776300430297852,
-0.08950139582157135,
-0.10935580730438232,
0.338744580745697,
0.33615782856941223,
-0.06823277473449707,
-0.04633427411317825,
0.000011011958122253418,
-0.13599970936775208,
0.06587032228708267,
0.2847598195075989,
0.23138616979122162,
0.2571066617965698,
0.1264239400625229,
0.33323007822036743,
0.2889086604118347,
0.037619318813085556,
-0.11986476927995682,
0.21824702620506287,
-0.00658649206161499,
-0.27113187313079834,
0.03062267415225506,
0.15570883452892303,
0.01776227168738842,
-0.49722132086753845,
-0.005723342299461365,
0.14089840650558472,
0.08116886019706726,
-0.3015410602092743,
-0.05047941952943802,
-0.35532480478286743,
-0.29296961426734924,
-0.0009629959240555763,
-0.2845117747783661,
-0.2891283929347992,
-0.15900154411792755,
0.20348140597343445,
0.2633930444717407,
-0.2091716229915619,
0.21567244827747345,
-0.18679098784923553,
0.3111434578895569,
-0.0926407128572464,
0.31276950240135193,
-0.07954267412424088,
0.25622057914733887,
-0.376205176115036,
0.0723409503698349,
0.4113880395889282,
-0.007363613694906235,
0.3798236548900604,
0.012786699458956718,
0.2377513200044632,
-0.6590370535850525,
-0.2548479437828064,
0.08384458720684052,
-0.0748826116323471,
0.4323347806930542,
0.0004102662205696106,
0.04016595333814621,
-0.11783657968044281,
-0.10842769593000412,
0.04472964257001877,
0.02071530558168888,
-0.19513078033924103,
-0.05486578494310379,
-0.014029307290911674,
-0.2101799100637436,
-0.10638591647148132,
0.0448593869805336,
-0.29400497674942017,
-0.24263355135917664,
0.4704866409301758,
0.23061011731624603,
0.10522280633449554,
0.17882810533046722,
-0.19025346636772156,
0.2443237155675888,
0.0019069854170084,
0.022928539663553238,
-0.5794563293457031,
-0.32967543601989746,
0.24994796514511108,
-0.5534024834632874,
-0.47925350069999695,
0.35183441638946533,
0.06171990931034088,
-0.13577722012996674,
0.08654840290546417,
-0.38644033670425415,
-0.5122923851013184,
-0.1650918424129486,
0.27464279532432556,
-0.08562672138214111,
-0.04824618995189667,
0.33979663252830505,
-0.03235797584056854,
0.04702103137969971,
-0.09504079818725586,
-0.21050894260406494,
0.069840207695961,
-0.07493211328983307,
0.22587883472442627,
-0.21194705367088318,
0.29839882254600525,
-0.02982918545603752,
0.40684252977371216,
0.4323107600212097,
0.4932344853878021,
0.2661052644252777,
-0.35672762989997864,
0.5681288838386536,
0.10860632359981537,
-0.2639305889606476,
0.3713187873363495,
-0.08483929932117462,
0.1039918065071106,
0.3628045916557312,
0.08351197838783264,
-0.05538065731525421,
0.09529007971286774,
-0.2552831172943115,
-0.3727668821811676,
-0.5055590271949768,
-0.24585433304309845,
-0.1418529748916626,
0.07557457685470581,
0.21023064851760864,
0.3615920841693878,
-0.28281739354133606,
-0.3075707256793976,
-0.06020805612206459,
0.35783201456069946,
-0.024345360696315765,
-0.07190870493650436,
-0.1926235407590866,
0.09375059604644775,
-0.7674806118011475,
0.2923662066459656,
-0.18847930431365967,
0.2803012430667877,
-0.35983461141586304,
0.1412608027458191,
0.36830294132232666,
-0.03166649863123894,
0.6727880835533142,
-0.3244014084339142,
0.2769232392311096,
-0.060452669858932495,
0.07396538555622101,
-0.24061797559261322,
-0.21225829422473907,
0.04108806326985359,
0.3854517638683319,
0.26933807134628296,
0.0741620808839798,
0.007878512144088745,
-0.03231639787554741,
0.26828622817993164,
-0.3211914300918579,
-0.10815291851758957,
-0.06371764093637466,
0.08395890891551971,
-0.3814975619316101,
-0.18853801488876343,
-0.09136267751455307,
0.1272234469652176,
-0.021787529811263084,
-0.05646522343158722,
0.04544474557042122,
0.042089708149433136,
0.22503343224525452,
0.16998736560344696,
0.1277291625738144,
0.13624438643455505,
0.3215424418449402,
0.16414646804332733,
0.5875571966171265,
0.010461408644914627,
0.07040958851575851,
0.49651089310646057,
0.15607544779777527,
-0.606394350528717,
0.12943974137306213,
-0.1236596331000328,
-0.07383988052606583,
0.437317430973053,
-0.07220597565174103,
0.03952059894800186,
0.014016062952578068,
0.03570430725812912,
-0.1618758738040924,
0.2816777527332306,
0.47144925594329834,
-0.06968893855810165,
-0.26778802275657654,
-0.21263565123081207,
0.03456132858991623,
0.007830988615751266,
-0.15378227829933167,
0.3629826605319977,
0.37490177154541016,
-0.20576846599578857,
0.10954826325178146,
-0.154597669839859,
0.6374877691268921,
0.11734046041965485,
0.08782998472452164,
0.41210439801216125,
-0.08605053275823593,
0.20619511604309082,
-0.164413720369339,
0.12835191190242767,
-0.11699695885181427,
-0.15153568983078003,
-0.18129584193229675,
-0.08011186122894287,
-0.061051011085510254,
0.0460660345852375,
-0.06968216598033905,
-0.07589047402143478,
0.3926905393600464,
0.21382790803909302,
0.09028008580207825,
0.23755094408988953,
-0.46054327487945557,
0.024616029113531113,
0.2489546686410904,
0.24017742276191711,
-0.01187782734632492,
0.1804286390542984,
-0.08964232355356216,
-0.3272058963775635,
0.14829476177692413,
-0.20551559329032898,
-0.4760444760322571,
0.12728255987167358,
-0.5645023584365845,
0.21725469827651978,
0.07587097585201263,
0.06600448489189148,
0.2276582270860672,
0.1435994803905487,
0.17275182902812958,
0.1497156322002411,
-0.46723631024360657,
0.30310505628585815,
0.05031630024313927,
0.13450588285923004,
-0.23967450857162476,
-0.2032032310962677,
0.3840084373950958,
-0.14330363273620605,
-0.20135098695755005,
-0.08721833676099777,
0.1019236147403717,
-0.3792702555656433,
-0.37020108103752136,
0.2355501651763916,
0.04887481778860092,
-0.12332935631275177,
0.1285122036933899,
0.005202002823352814,
-0.34834620356559753,
-0.043605584651231766,
0.15955989062786102,
-0.0054000914096832275,
-0.1826431304216385,
0.41045424342155457,
0.04215717315673828,
-0.15066491067409515,
0.11777769029140472,
0.27407482266426086,
-0.38025084137916565,
0.03743878751993179,
0.8593565225601196,
-0.023610983043909073,
-0.19742931425571442,
-0.1470530778169632,
-0.0036134161055088043,
0.2663542330265045,
0.047720059752464294,
-0.22865815460681915,
0.10290056467056274,
0.33474379777908325,
0.19194810092449188,
0.0905577540397644,
-0.05479585379362106,
-0.10206130892038345,
-0.23018205165863037,
-0.3460598587989807,
-0.16119976341724396,
-0.13553372025489807,
-0.16281691193580627,
0.18956714868545532,
0.14455392956733704,
0.31976214051246643,
0.14997261762619019,
-0.1215880960226059,
-0.3407929837703705,
0.23099759221076965,
-0.07137161493301392,
0.04330136626958847,
-0.1290937066078186,
-0.1486378014087677,
0.11845391988754272,
-0.07625314593315125,
0.027500389143824577,
0.1517016887664795,
-0.19199511408805847,
-0.18317198753356934,
-0.029669828712940216,
0.09404318779706955,
0.23412346839904785,
-0.49702972173690796,
-0.169005885720253,
-0.21698671579360962,
-0.15126445889472961,
0.1681833416223526,
-0.11373843252658844,
0.30777817964553833,
-0.11071181297302246,
-0.19264239072799683,
-0.3090194761753082,
0.047927211970090866,
0.21538279950618744,
-0.013462066650390625,
0.17741191387176514,
0.2568703293800354,
-0.07094357907772064,
0.1343923956155777,
-0.18484054505825043,
0.022697843611240387,
0.17236413061618805,
0.1906833052635193,
0.07673828303813934,
0.29215332865715027,
0.17850729823112488,
-0.05519420653581619,
0.04249844327569008,
-0.031042756512761116,
0.28672316670417786,
0.2932193875312805,
-0.26631253957748413,
0.048292823135852814,
0.3494527339935303,
0.1670677214860916,
-0.09952597320079803,
-0.03907771781086922,
0.6124123334884644,
-0.1724904328584671,
0.03255649283528328,
-0.13209620118141174,
-0.13562530279159546,
-0.06556554138660431,
-0.144231379032135,
0.07649323344230652,
-0.10000524669885635,
0.07348744571208954,
0.2410225123167038,
0.07921932637691498,
-0.41441845893859863,
0.026997152715921402,
0.2842165231704712,
0.1716170758008957,
0.07370597869157791,
0.5601649880409241,
-0.2210596203804016,
0.08135318756103516,
-0.5783228874206543,
-0.2629576325416565,
0.339449405670166,
-0.541143536567688,
0.08832252025604248,
-0.34334874153137207,
-0.08420231938362122,
0.09663194417953491,
-0.12285740673542023,
-0.03691458702087402,
-0.38031816482543945,
-0.007126762997359037,
-0.4989953637123108,
0.18330858647823334,
-0.14817115664482117,
0.16779813170433044,
-0.2842961549758911,
-0.15360966324806213,
0.09741365909576416,
0.05601024255156517,
-0.08164435625076294,
-0.3156486749649048,
-0.4728453457355499,
-0.021875955164432526,
-0.24985308945178986,
-0.13253264129161835,
0.07278154790401459,
-0.09069272130727768,
0.13818296790122986,
-0.17540615797042847,
0.037278637290000916,
-0.16884537041187286,
0.09286659955978394,
0.3240702748298645,
0.26994290947914124,
0.27128005027770996,
0.23757222294807434,
0.061312172561883926,
0.14788931608200073,
-0.06524261832237244,
-0.09958209842443466,
-0.26928871870040894,
0.2917020916938782,
0.09894022345542908,
-0.06628020107746124,
0.3413175940513611,
0.11571700870990753,
-0.1556626409292221,
0.026360105723142624,
-0.00014105811715126038,
-0.07842624187469482,
-0.43278729915618896,
-0.09290853887796402,
-0.2721945643424988,
-0.11469218134880066,
-0.36459609866142273,
-0.29367005825042725,
-0.22606492042541504,
-0.03381447121500969,
0.40874987840652466,
-0.10187306255102158,
0.25034186244010925,
-0.6357580423355103,
0.08629516512155533,
0.033691734075546265,
0.3744935095310211,
0.5055027008056641,
-0.03532889485359192,
-0.10941900312900543,
-0.20327234268188477,
-0.6841464638710022,
0.0313568189740181,
-0.053131286054849625,
0.16164781153202057,
0.018848957493901253,
0.07548410445451736,
-0.2102838158607483,
-0.12875021994113922,
0.35267025232315063,
0.19738678634166718,
0.008629809133708477,
0.26711246371269226,
-0.027818091213703156,
-0.031359780579805374,
0.3422061800956726,
0.12491773813962936,
-0.07144215703010559,
-0.18923231959342957,
0.29263967275619507,
-0.053153056651353836,
-0.01592332124710083,
0.16699424386024475,
-0.1548214852809906,
-0.31282103061676025,
-0.11567993462085724,
0.3185235857963562,
0.27611956000328064,
0.19637712836265564,
0.028898067772388458,
0.2881588041782379,
-0.4325433373451233,
-0.089663565158844,
-0.17461101710796356,
0.1045859158039093,
-0.18126095831394196,
0.16283799707889557,
-0.07008262723684311,
-0.08530709147453308,
-0.09852207452058792,
0.06634655594825745,
-0.15815392136573792,
0.10169908404350281,
-0.035270340740680695,
0.1035444587469101,
-0.34842729568481445,
0.26632070541381836,
0.03519914671778679,
0.22793883085250854,
-0.06556179374456406,
0.26234713196754456,
-0.40805894136428833,
-0.30851680040359497,
0.5140042304992676,
-0.8064985871315002,
-0.176041841506958,
-0.2168838381767273,
0.21906638145446777,
0.3531814515590668,
-0.3099555969238281,
-0.06278549879789352,
0.044924117624759674,
0.2424475997686386,
-0.08913017809391022,
0.17170970141887665,
0.06932574510574341,
-0.29122716188430786,
0.1429908126592636,
-0.03857477381825447,
0.6704725027084351,
0.25133395195007324,
-0.11297280341386795,
0.3622169494628906,
-0.09932796657085419
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | After investigation with @severo , we found a potential culprit: https://github.com/huggingface/datasets/blob/3cd0a009a43f9f174056d70bfa2ca32216181926/src/datasets/utils/streaming_download_manager.py#L610-L624
The streaming manager does not seem to pass `use_auth_token` to `fsspec` when streaming and not iterating content of a zip archive
cc @albertvillanova @lhoestq | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 35 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
After investigation with @severo , we found a potential culprit: https://github.com/huggingface/datasets/blob/3cd0a009a43f9f174056d70bfa2ca32216181926/src/datasets/utils/streaming_download_manager.py#L610-L624
The streaming manager does not seem to pass `use_auth_token` to `fsspec` when streaming and not iterating content of a zip archive
cc @albertvillanova @lhoestq | [
-0.3267650604248047,
0.3238725960254669,
0.045644361525774,
0.21882717311382294,
0.11867768317461014,
0.06968731433153152,
0.04610183462500572,
-0.23300474882125854,
-0.2824743390083313,
-0.06233775615692139,
-0.2895495891571045,
-0.09481821209192276,
-0.17218726873397827,
0.15333610773086548,
-0.041844211518764496,
0.2980026602745056,
-0.08445968478918076,
-0.2825902998447418,
-0.18959486484527588,
0.06656099855899811,
-0.12770935893058777,
0.1217302456498146,
-0.22231489419937134,
0.08749578148126602,
-0.23745986819267273,
-0.08595920354127884,
-0.002703756093978882,
0.06271083652973175,
-0.38367268443107605,
-0.4727366864681244,
0.2763788104057312,
0.29881760478019714,
0.21001021564006805,
0.2833370566368103,
-0.00011560427083168179,
0.10011747479438782,
0.226898193359375,
0.1960396021604538,
-0.22341924905776978,
0.003676488995552063,
-0.1890999972820282,
-0.1734408140182495,
0.08936162292957306,
0.030894838273525238,
-0.06821685284376144,
-0.2840745747089386,
0.26542001962661743,
0.06336235255002975,
0.35370802879333496,
0.4915948212146759,
0.155615895986557,
0.21173791587352753,
0.14716005325317383,
-0.0069904811680316925,
0.08220025897026062,
0.12396037578582764,
-0.2148187756538391,
0.11114324629306793,
0.189829021692276,
-0.2344551682472229,
-0.15765339136123657,
0.14247940480709076,
0.15685825049877167,
-0.002941260114312172,
0.45806756615638733,
-0.17530055344104767,
0.10546067357063293,
-0.40686774253845215,
0.059122003614902496,
0.22440356016159058,
0.5387552976608276,
-0.017458714544773102,
-0.3089379370212555,
-0.09416794031858444,
0.17738662660121918,
0.21328766644001007,
0.29502394795417786,
0.37655019760131836,
-0.23313848674297333,
0.2615693211555481,
-0.28091558814048767,
-0.08487995713949203,
-0.3487975001335144,
0.17440102994441986,
-0.10729025304317474,
-0.18565234541893005,
-0.12834718823432922,
0.10867483913898468,
-0.016660060733556747,
-0.10883522033691406,
0.20998558402061462,
-0.23896118998527527,
-0.0715385377407074,
0.09707611054182053,
-0.08671565353870392,
0.21703499555587769,
0.27449890971183777,
0.5502271056175232,
-0.19634315371513367,
0.2835090160369873,
-0.3289858102798462,
0.03934212401509285,
-0.20002515614032745,
0.030827607959508896,
0.1826774775981903,
-0.11657766997814178,
-0.004796616733074188,
0.2940863072872162,
0.23060908913612366,
0.03781963884830475,
-0.05862940475344658,
-0.05481935292482376,
-0.04955419898033142,
-0.1744333803653717,
-0.23321405053138733,
-0.26644161343574524,
0.41287004947662354,
-0.069208063185215,
-0.4382174611091614,
0.16289451718330383,
-0.08314121514558792,
-0.09982221573591232,
0.2946971654891968,
0.48728397488594055,
-0.08646765351295471,
-0.1874665915966034,
0.05668194591999054,
0.04967513680458069,
-0.004933372139930725,
-0.08695274591445923,
-0.1455429345369339,
-0.2088622748851776,
-0.1545245498418808,
0.06886586546897888,
0.25297266244888306,
-0.18044129014015198,
0.00490901805460453,
-0.039808329194784164,
0.03477650135755539,
0.08253298699855804,
0.13646449148654938,
-0.04238739237189293,
0.11895789951086044,
0.1404319703578949,
0.17124493420124054,
0.19010750949382782,
-0.05994682386517525,
0.07221686840057373,
0.10700241476297379,
0.08015011996030807,
-0.026172734797000885,
-0.2701236605644226,
-0.02196981944143772,
0.09179795533418655,
-0.24458196759223938,
-0.06455684453248978,
-0.0014245808124542236,
0.20283983647823334,
-0.3063877522945404,
-0.31465473771095276,
0.13610075414180756,
0.01288551464676857,
-0.1128588616847992,
-0.12489503622055054,
-0.1619049608707428,
0.5720771551132202,
-0.24026860296726227,
-0.12112384289503098,
-0.14167289435863495,
-0.4032009243965149,
0.1190030500292778,
0.10394297540187836,
-0.21138165891170502,
0.04230351746082306,
-0.34993043541908264,
0.282981276512146,
0.5542938113212585,
-0.5058029890060425,
-0.6354017853736877,
0.24595311284065247,
-0.1613440215587616,
0.23274274170398712,
0.12890423834323883,
0.021265674382448196,
0.17754685878753662,
-0.44021594524383545,
0.02034236490726471,
0.16458144783973694,
0.27388307452201843,
-0.023746289312839508,
0.11140012741088867,
-0.34053632616996765,
0.17203207314014435,
0.08596128225326538,
0.11123748868703842,
0.244813472032547,
0.4658358693122864,
-0.33160561323165894,
0.21769273281097412,
0.0649680346250534,
0.11294116824865341,
0.23274363577365875,
0.22621683776378632,
0.38696444034576416,
-0.1369914710521698,
-0.08743128180503845,
-0.14974874258041382,
0.08226630836725235,
0.04346216470003128,
-0.15723498165607452,
0.08808093518018723,
-0.3066413402557373,
-0.08401916921138763,
-0.0154793169349432,
-0.4327235817909241,
-0.19749373197555542,
0.12169085443019867,
0.35232535004615784,
-0.17565122246742249,
-0.09072611480951309,
0.14700990915298462,
0.0850716158747673,
-0.037920545786619186,
0.11081607639789581,
-0.04163495823740959,
0.0015308745205402374,
0.007178531959652901,
0.03174852952361107,
0.13554427027702332,
0.1807578206062317,
0.39302054047584534,
0.10902469605207443,
-0.037032898515462875,
0.2641984224319458,
0.021817374974489212,
0.19913142919540405,
0.05276831239461899,
0.11207295954227448,
0.0644301325082779,
-0.4335881769657135,
-0.012709097936749458,
0.14752227067947388,
0.04828682914376259,
-0.10086338967084885,
-0.20526951551437378,
-0.019022181630134583,
0.013144565746188164,
0.06513197720050812,
0.05408594757318497,
0.3472882807254791,
0.29911839962005615,
0.13439999520778656,
-0.22296003997325897,
0.04552685469388962,
0.28427839279174805,
0.24859227240085602,
0.27813735604286194,
-0.008977310732007027,
-0.09624430537223816,
0.2587733268737793,
0.36352667212486267,
-0.05363935977220535,
-0.24113205075263977,
0.07834896445274353,
-0.2764480412006378,
0.12045375257730484,
0.3580102026462555,
0.28532323241233826,
0.3429054617881775,
0.12253376841545105,
0.32598504424095154,
0.2832387089729309,
0.07630017399787903,
-0.183571457862854,
0.223502516746521,
0.11300526559352875,
-0.2831624150276184,
0.006618808954954147,
0.14866270124912262,
0.1128004640340805,
-0.48944970965385437,
0.05457015708088875,
0.10422495007514954,
0.2041344791650772,
-0.3699556887149811,
0.09276314079761505,
-0.30826810002326965,
-0.48362353444099426,
0.049158960580825806,
-0.2606579661369324,
-0.30348727107048035,
-0.2543317377567291,
-0.04828653484582901,
0.449200302362442,
-0.0701710507273674,
0.06782278418540955,
-0.2516414523124695,
0.22875531017780304,
-0.09241792559623718,
0.2042921781539917,
-0.156055748462677,
0.25411608815193176,
-0.2541729509830475,
-0.003130074590444565,
0.5134186744689941,
-0.0942872017621994,
0.4320261478424072,
0.07155288010835648,
0.3228151798248291,
-0.5414790511131287,
-0.16020584106445312,
0.025447070598602295,
-0.030434779822826385,
0.3327096998691559,
-0.06488098204135895,
0.03091862052679062,
0.0171734057366848,
-0.06865262985229492,
-0.03028370998799801,
0.05301026999950409,
-0.1586534082889557,
-0.04624301567673683,
-0.035275064408779144,
-0.12365470081567764,
-0.013943145051598549,
0.1747151017189026,
-0.39762046933174133,
-0.24319049715995789,
0.524137556552887,
0.0033860057592391968,
0.03710217773914337,
0.1448305994272232,
-0.21122139692306519,
0.11266139149665833,
-0.08240033686161041,
0.004437876399606466,
-0.5410982966423035,
-0.3925628066062927,
0.3323048949241638,
-0.30336129665374756,
-0.441841721534729,
0.3117380738258362,
0.030109640210866928,
-0.07011502981185913,
0.15737463533878326,
-0.43001604080200195,
-0.21157842874526978,
-0.20615282654762268,
0.298326700925827,
-0.05889362841844559,
-0.0941089317202568,
0.4143112897872925,
-0.10883909463882446,
0.13782429695129395,
-0.06558539718389511,
-0.1595432460308075,
-0.1339077353477478,
-0.09073083102703094,
0.2353164553642273,
-0.15439701080322266,
0.33417126536369324,
-0.037430763244628906,
0.4453984498977661,
0.48334258794784546,
0.48522165417671204,
0.3086717426776886,
-0.31823477149009705,
0.5440746545791626,
0.20096823573112488,
-0.30514076352119446,
0.39586141705513,
-0.038169875741004944,
0.13497258722782135,
0.22576677799224854,
0.14405176043510437,
-0.005089670419692993,
0.06130243092775345,
-0.019703425467014313,
-0.40979599952697754,
-0.35547471046447754,
-0.2594948410987854,
-0.2632024586200714,
0.0783902183175087,
0.24298736453056335,
0.4306340217590332,
-0.149579718708992,
-0.40858304500579834,
-0.08644755184650421,
0.4605327844619751,
0.1087150052189827,
-0.057626549154520035,
-0.07784050703048706,
0.14354307949543,
-0.8171336054801941,
0.16876913607120514,
-0.14987030625343323,
0.32077810168266296,
-0.37659332156181335,
0.21522033214569092,
0.471371054649353,
0.01908820867538452,
0.7028395533561707,
-0.2607118487358093,
0.24474962055683136,
-0.0750349760055542,
0.1976703405380249,
-0.3025335371494293,
-0.24156329035758972,
-0.036778971552848816,
0.2650388777256012,
0.1628531515598297,
-0.0387101024389267,
-0.1630980223417282,
-0.061556704342365265,
0.2203393280506134,
-0.5040902495384216,
-0.01153629645705223,
-0.12491580843925476,
-0.05437220633029938,
-0.3886926770210266,
-0.08173733949661255,
-0.07441369444131851,
0.19779957830905914,
-0.033405743539333344,
-0.1383950263261795,
0.1440243422985077,
-0.0105837881565094,
0.35549935698509216,
0.28337371349334717,
-0.14639966189861298,
0.0030521051958203316,
0.44072410464286804,
0.12343831360340118,
0.6450179815292358,
0.21462482213974,
0.09835156053304672,
0.5985558032989502,
0.2896432876586914,
-0.7624287605285645,
0.19757819175720215,
0.09221497178077698,
-0.06140445917844772,
0.48544082045555115,
-0.07422874867916107,
0.06281059235334396,
0.052828237414360046,
-0.02356470376253128,
-0.2825052738189697,
0.28311869502067566,
0.5750516057014465,
-0.001397663727402687,
-0.28052085638046265,
-0.36628806591033936,
0.19334037601947784,
0.029698912054300308,
-0.15320022404193878,
0.4174022674560547,
0.3273376226425171,
-0.2028220146894455,
-0.1645580530166626,
-0.33469149470329285,
0.7082957029342651,
0.1314283311367035,
0.1617138385772705,
0.5056425929069519,
-0.22462405264377594,
0.16755862534046173,
-0.23430830240249634,
0.15976881980895996,
0.025517474859952927,
-0.06688173115253448,
-0.27289384603500366,
-0.048144351691007614,
0.08044065535068512,
-0.014432869851589203,
0.1285509169101715,
0.03334078565239906,
0.336006760597229,
0.26208776235580444,
0.2046477049589157,
0.22239810228347778,
-0.5753148794174194,
-0.012946473434567451,
0.051594849675893784,
0.14168009161949158,
-0.10513056814670563,
0.2897949814796448,
-0.1561204195022583,
-0.3577171564102173,
0.12867537140846252,
-0.05092708021402359,
-0.602611243724823,
0.21596279740333557,
-0.5829446315765381,
0.11962159723043442,
0.024357758462429047,
0.03564673662185669,
0.27723458409309387,
0.25698572397232056,
0.011157356202602386,
-0.035204824060201645,
-0.47572773694992065,
0.3769717216491699,
0.05737879127264023,
0.1475382298231125,
-0.1191839873790741,
-0.11615405976772308,
0.22579115629196167,
-0.13364602625370026,
-0.21285630762577057,
0.05698913335800171,
-0.053707461804151535,
-0.45244771242141724,
-0.2877362370491028,
0.3016998767852783,
0.14314639568328857,
-0.1262485682964325,
0.13282407820224762,
-0.05716066062450409,
-0.16594897210597992,
0.05281909927725792,
0.06504654884338379,
-0.0036313310265541077,
-0.08746248483657837,
0.2723645269870758,
0.0018412396311759949,
-0.19976398348808289,
-0.029236361384391785,
0.5338960886001587,
-0.45408985018730164,
0.09826198220252991,
0.7623212337493896,
-0.1571490317583084,
-0.33419328927993774,
-0.08791898936033249,
0.035944536328315735,
0.07829154282808304,
0.014380648732185364,
-0.3692771792411804,
0.16726653277873993,
0.26613539457321167,
0.09562396258115768,
0.0034733042120933533,
0.03188475966453552,
-0.1110580638051033,
-0.17952591180801392,
-0.3490131199359894,
-0.15062817931175232,
-0.21643908321857452,
-0.1547291874885559,
0.05843827873468399,
0.04122751206159592,
0.27985209226608276,
0.09256409108638763,
-0.16990861296653748,
-0.2252351939678192,
0.11696982383728027,
0.09578938037157059,
-0.02229539304971695,
0.028436295688152313,
-0.07857172936201096,
0.1977972835302353,
-0.152502179145813,
-0.02963591367006302,
0.20123471319675446,
-0.22784779965877533,
-0.0977013036608696,
-0.054445795714855194,
0.13461445271968842,
0.19495084881782532,
-0.6383512616157532,
-0.1648719161748886,
-0.2728880047798157,
-0.19552285969257355,
0.11577469110488892,
-0.05939403548836708,
0.37876132130622864,
-0.020244449377059937,
-0.14118614792823792,
-0.1501547247171402,
0.08680561184883118,
0.1165018379688263,
0.0940379649400711,
0.0498458594083786,
0.3160763382911682,
-0.09442225843667984,
0.18671728670597076,
-0.11108621954917908,
0.006438702344894409,
0.027518335729837418,
0.19787777960300446,
0.1270039975643158,
0.3207220137119293,
0.24353083968162537,
-0.187501922249794,
0.16066938638687134,
-0.04198988154530525,
0.1621357500553131,
0.35515543818473816,
-0.18966320157051086,
-0.044971857219934464,
0.28123238682746887,
0.10035039484500885,
-0.13030162453651428,
-0.0501420758664608,
0.41764622926712036,
0.02409888058900833,
0.013684641569852829,
-0.2604863941669464,
-0.1776179075241089,
-0.07060147076845169,
-0.12931792438030243,
0.07201672345399857,
-0.1002747192978859,
0.34287846088409424,
0.2669540345668793,
0.1678091436624527,
-0.2163393795490265,
0.12347628176212311,
0.30542516708374023,
0.24541698396205902,
-0.14209601283073425,
0.546554684638977,
-0.20289528369903564,
0.09758591651916504,
-0.5620953440666199,
-0.18059352040290833,
0.1489950716495514,
-0.6579291224479675,
-0.1293882578611374,
-0.2657828629016876,
-0.25880277156829834,
0.13364234566688538,
-0.007501557469367981,
0.20072993636131287,
-0.3691681921482086,
-0.10966279357671738,
-0.5425944924354553,
0.12390059232711792,
-0.09147761017084122,
0.009282352402806282,
-0.1685929000377655,
-0.05019048973917961,
0.2021978497505188,
0.07623043656349182,
0.027391403913497925,
-0.3587934374809265,
-0.1923726201057434,
-0.05733296275138855,
-0.3542354106903076,
-0.2166411131620407,
0.007473096251487732,
-0.024411514401435852,
0.21611468493938446,
-0.24040494859218597,
0.07415448874235153,
-0.17513130605220795,
0.14232520759105682,
0.4387166202068329,
0.1362079232931137,
0.2976442277431488,
0.1051589697599411,
0.16611555218696594,
0.10935290902853012,
0.031319379806518555,
-0.0937914028763771,
-0.17092512547969818,
0.34594136476516724,
0.09514249861240387,
0.09351927042007446,
0.2630455791950226,
0.04425320029258728,
-0.10385629534721375,
0.08765895664691925,
-0.007500197738409042,
0.012240741401910782,
-0.45987996459007263,
0.0766647681593895,
-0.5045896768569946,
-0.020117007195949554,
-0.34254491329193115,
-0.20901647210121155,
-0.1973986029624939,
0.05207539349794388,
0.4886196255683899,
-0.11064749211072922,
0.2864871323108673,
-0.5116044282913208,
0.009529411792755127,
0.06639518588781357,
0.43470314145088196,
0.6271020770072937,
-0.054745353758335114,
-0.020864419639110565,
-0.2708260416984558,
-0.7463311553001404,
0.05727226659655571,
0.0133737213909626,
0.18179678916931152,
-0.03674834221601486,
-0.007837552577257156,
-0.18087583780288696,
-0.052401311695575714,
0.2576355040073395,
0.18199579417705536,
0.054858334362506866,
0.3561805486679077,
-0.02038584277033806,
-0.06542928516864777,
0.31980425119400024,
0.23092120885849,
-0.09021313488483429,
-0.15790997445583344,
0.36655542254447937,
-0.07067400962114334,
-0.040617331862449646,
0.12780636548995972,
-0.0000802949070930481,
-0.43365734815597534,
-0.2155301570892334,
0.2779417037963867,
0.19205640256404877,
0.24943144619464874,
0.0804487019777298,
0.23632314801216125,
-0.46927040815353394,
-0.06940057128667831,
-0.08711513131856918,
0.1831180453300476,
-0.3049505352973938,
0.22701561450958252,
-0.0625147745013237,
0.07145600020885468,
-0.13346534967422485,
0.2569287419319153,
-0.06388519704341888,
0.017510540783405304,
-0.1635993868112564,
0.08297543972730637,
-0.5182810425758362,
0.37799006700515747,
0.04669678956270218,
0.17881649732589722,
-0.021386146545410156,
0.24124641716480255,
-0.2449570745229721,
-0.26890864968299866,
0.5574154257774353,
-0.7852602601051331,
-0.014018718153238297,
-0.15387356281280518,
0.2364787608385086,
0.40299391746520996,
-0.31590980291366577,
-0.08182129263877869,
0.11166968196630478,
0.24507898092269897,
-0.26356154680252075,
0.15551242232322693,
0.06864553689956665,
-0.36137479543685913,
0.14540967345237732,
-0.06294455379247665,
0.6519637107849121,
0.09253816306591034,
-0.1685541570186615,
0.491708368062973,
-0.12407035380601883
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | I was able to reproduce it on a private dataset, let me work on a fix | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 16 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
I was able to reproduce it on a private dataset, let me work on a fix | [
-0.23858672380447388,
0.38034164905548096,
0.019863121211528778,
0.25705164670944214,
0.04560728371143341,
0.10840899497270584,
0.09055386483669281,
-0.12863880395889282,
-0.3383241593837738,
-0.018300488591194153,
-0.3247799575328827,
-0.022291725501418114,
-0.19565264880657196,
0.00012963265180587769,
-0.09901940077543259,
0.17040976881980896,
-0.13245955109596252,
-0.21398353576660156,
-0.11985108256340027,
-0.03279010206460953,
-0.19072015583515167,
0.046447526663541794,
-0.26781177520751953,
0.23263013362884521,
-0.278492271900177,
-0.1267804652452469,
-0.015174335800111294,
-0.004685021936893463,
-0.3645946979522705,
-0.3742620050907135,
0.24659891426563263,
0.29908838868141174,
0.15937437117099762,
0.2946360111236572,
-0.00011156921391375363,
0.13149064779281616,
0.17700296640396118,
0.26041996479034424,
-0.1503971815109253,
0.12871499359607697,
-0.2276603877544403,
-0.21467633545398712,
0.12594346702098846,
-0.021413587033748627,
-0.12876543402671814,
-0.39426732063293457,
0.24281583726406097,
0.24319696426391602,
0.260502427816391,
0.35821327567100525,
0.21975044906139374,
0.05956465005874634,
0.17237937450408936,
-0.05252532660961151,
0.10616087913513184,
0.1411198079586029,
-0.20758546888828278,
0.21332374215126038,
0.25695520639419556,
-0.20621807873249054,
-0.09017694741487503,
0.1294860541820526,
0.2022242397069931,
0.013261466287076473,
0.35710379481315613,
-0.13722680509090424,
0.2656539976596832,
-0.39047709107398987,
0.13100409507751465,
0.29587045311927795,
0.6954848766326904,
-0.008045099675655365,
-0.25660842657089233,
-0.028736554086208344,
0.23663170635700226,
0.2620496451854706,
0.36143749952316284,
0.3356761336326599,
-0.12775860726833344,
0.23677901923656464,
-0.17594103515148163,
-0.15141287446022034,
-0.4354509115219116,
0.17149972915649414,
-0.11862732470035553,
-0.2963851988315582,
-0.10638368874788284,
0.14031049609184265,
-0.1269540935754776,
-0.17774443328380585,
0.2510640025138855,
-0.1845129281282425,
-0.07300595939159393,
0.10687010735273361,
0.02201758697628975,
0.1861160397529602,
0.14574775099754333,
0.6089349985122681,
-0.16047948598861694,
0.20223823189735413,
-0.3028106093406677,
0.10016069561243057,
-0.34975162148475647,
0.06078758090734482,
0.2276487499475479,
-0.22351117432117462,
-0.010011814534664154,
0.3156558871269226,
0.3450543284416199,
-0.06525211781263351,
-0.16557346284389496,
-0.011835332959890366,
-0.08200400322675705,
-0.34235522150993347,
-0.12962190806865692,
-0.24955567717552185,
0.5282979011535645,
-0.07534108310937881,
-0.36672407388687134,
0.16257816553115845,
-0.013182669878005981,
-0.04525132477283478,
0.363553524017334,
0.45628392696380615,
-0.06521456688642502,
-0.42540374398231506,
0.25023990869522095,
-0.013380464166402817,
0.021768836304545403,
-0.11290806531906128,
-0.08987714350223541,
-0.19696851074695587,
-0.0647435411810875,
-0.019394194707274437,
0.24372054636478424,
-0.020726636052131653,
-0.06800069659948349,
0.0153828589245677,
-0.00014673173427581787,
0.024084053933620453,
0.25166013836860657,
-0.010306143201887608,
0.09988479316234589,
0.0730244591832161,
0.23546966910362244,
0.14263886213302612,
-0.052646663039922714,
0.025007985532283783,
0.16501227021217346,
0.18571332097053528,
-0.06751755625009537,
-0.25754886865615845,
-0.2170468121767044,
0.14225053787231445,
-0.12220621109008789,
0.05048884078860283,
0.09983339160680771,
0.286958783864975,
-0.2478911578655243,
-0.28113362193107605,
0.12059178203344345,
-0.05316808074712753,
-0.1573062390089035,
-0.12252041697502136,
-0.17400795221328735,
0.4872801899909973,
-0.386642724275589,
0.06348322331905365,
-0.14496253430843353,
-0.5048319101333618,
-0.016541533172130585,
0.0509052500128746,
-0.32971811294555664,
0.17290565371513367,
-0.3904632329940796,
0.22084175050258636,
0.612098753452301,
-0.47566017508506775,
-0.5687364935874939,
0.10346470773220062,
-0.2582748830318451,
0.07072681188583374,
-0.09412228316068649,
0.07428537309169769,
0.09691905975341797,
-0.3638143539428711,
0.13998205959796906,
0.12217195332050323,
0.3421574532985687,
-0.14017607271671295,
0.10309047996997833,
-0.23699292540550232,
0.1929493099451065,
0.06667044758796692,
0.12088499963283539,
0.18727685511112213,
0.44085004925727844,
-0.24532179534435272,
0.18963423371315002,
0.03994825854897499,
0.12244802713394165,
0.26652246713638306,
0.1864585131406784,
0.435677707195282,
0.013737356290221214,
-0.09392443299293518,
-0.07574667781591415,
0.11445621401071548,
0.023217249661684036,
-0.17832976579666138,
0.22402158379554749,
-0.2891961336135864,
-0.014243965037167072,
-0.0119916507974267,
-0.5340474247932434,
-0.06080354377627373,
0.22861629724502563,
0.30398672819137573,
-0.310365229845047,
-0.044782526791095734,
0.17831066250801086,
-0.06717129051685333,
-0.18586009740829468,
0.08095397800207138,
0.03723303973674774,
0.0006062015891075134,
-0.06237414479255676,
0.12165912240743637,
0.047370754182338715,
0.17378461360931396,
0.3241879343986511,
0.1348130702972412,
-0.12297234684228897,
0.16582807898521423,
-0.01896945759654045,
0.08137094229459763,
0.10466878116130829,
0.10685001313686371,
-0.04642893373966217,
-0.4401255249977112,
-0.023534802719950676,
-0.01413457840681076,
-0.010389432311058044,
-0.07441571354866028,
-0.13588163256645203,
-0.06629976630210876,
-0.039779793471097946,
-0.08640135079622269,
-0.04704580828547478,
0.42415231466293335,
0.329438179731369,
0.0844128280878067,
-0.1454688459634781,
-0.05966860428452492,
0.2309589982032776,
0.25523313879966736,
0.2000872641801834,
0.0008165203034877777,
-0.129800945520401,
0.20242497324943542,
0.3787807822227478,
-0.07991787046194077,
-0.05542904883623123,
0.007738932967185974,
-0.21924689412117004,
0.18420875072479248,
0.17347072064876556,
0.2983173727989197,
0.2492193579673767,
0.0795905813574791,
0.28996044397354126,
0.2605498135089874,
0.08164574950933456,
-0.0958867073059082,
0.16833776235580444,
0.13729271292686462,
-0.1673152595758438,
0.024626698344945908,
0.09016324579715729,
0.11965402960777283,
-0.47942668199539185,
0.04256938770413399,
0.2139584869146347,
0.24419774115085602,
-0.3018369674682617,
-0.06664864718914032,
-0.2211080938577652,
-0.36977386474609375,
0.04476059600710869,
-0.3099530041217804,
-0.32775089144706726,
-0.14690418541431427,
0.03914473578333855,
0.26906734704971313,
-0.06936407089233398,
0.10080123692750931,
-0.283945769071579,
0.27268052101135254,
-0.042722634971141815,
0.26736918091773987,
-0.02592771127820015,
0.2928304970264435,
-0.3026755452156067,
0.020798135548830032,
0.4366687834262848,
-0.03388148173689842,
0.397003710269928,
0.045428164303302765,
0.3483918309211731,
-0.5147302150726318,
-0.22559553384780884,
0.01702161133289337,
0.0008643753826618195,
0.4094177782535553,
-0.03291018307209015,
0.09895923733711243,
-0.06175177916884422,
-0.08027839660644531,
-0.00025505502708256245,
0.16209472715854645,
-0.16163530945777893,
-0.0943506509065628,
-0.019575977697968483,
-0.1731894314289093,
0.018056049942970276,
0.17626169323921204,
-0.38381218910217285,
-0.2273748368024826,
0.4109760522842407,
0.08249855041503906,
0.031285062432289124,
0.14084568619728088,
-0.22762346267700195,
0.21779969334602356,
0.07251303642988205,
0.09190793335437775,
-0.5065770745277405,
-0.2717336118221283,
0.23436687886714935,
-0.4176632761955261,
-0.49815574288368225,
0.28553956747055054,
0.026828721165657043,
-0.09726661443710327,
0.057661864906549454,
-0.44155144691467285,
-0.32853826880455017,
-0.20362979173660278,
0.3565579354763031,
-0.0783090814948082,
-0.23119188845157623,
0.32927149534225464,
-0.02676311321556568,
0.11184844374656677,
-0.12713102996349335,
-0.20593705773353577,
-0.0681404396891594,
-0.10806911438703537,
0.19219332933425903,
-0.17250296473503113,
0.28348246216773987,
-0.06443741917610168,
0.2958794832229614,
0.3384154736995697,
0.46208450198173523,
0.22577250003814697,
-0.29519206285476685,
0.5674721002578735,
0.1976873278617859,
-0.3728218674659729,
0.37014371156692505,
0.02432844042778015,
0.10655483603477478,
0.2009568214416504,
0.08016044646501541,
-0.02315543033182621,
0.10576887428760529,
-0.2421773374080658,
-0.37045109272003174,
-0.3786654472351074,
-0.3111128509044647,
-0.3118220865726471,
0.06084216758608818,
0.250092089176178,
0.3096027374267578,
-0.26378342509269714,
-0.40362027287483215,
-0.033006682991981506,
0.4428027272224426,
0.032234542071819305,
-0.0671009048819542,
-0.048374611884355545,
0.10755886137485504,
-0.6081443428993225,
0.1773872971534729,
-0.17619094252586365,
0.2415846735239029,
-0.42322278022766113,
0.33641865849494934,
0.5082698464393616,
0.07492949813604355,
0.7234806418418884,
-0.31031763553619385,
0.3444032669067383,
-0.006923169828951359,
0.2067653387784958,
-0.3142930269241333,
-0.2155483514070511,
-0.00638921931385994,
0.43666866421699524,
0.23850570619106293,
0.05136801302433014,
0.040429405868053436,
-0.09416969865560532,
0.3007224500179291,
-0.37593477964401245,
-0.13494829833507538,
-0.10458327829837799,
-0.03129452466964722,
-0.3380323648452759,
-0.05700498819351196,
-0.045212529599666595,
0.1771288365125656,
0.00565330171957612,
-0.044947050511837006,
0.06214374676346779,
-0.008126839995384216,
0.3478347361087799,
0.19165320694446564,
-0.03064756467938423,
0.034091491252183914,
0.44238904118537903,
0.10759089887142181,
0.5630103349685669,
0.1371249258518219,
0.10131276398897171,
0.49923446774482727,
0.2128324806690216,
-0.7288070321083069,
0.22504016757011414,
-0.11442554742097855,
-0.06612709909677505,
0.34937626123428345,
-0.07364417612552643,
0.02268749475479126,
0.012046122923493385,
-0.05397196114063263,
-0.23837971687316895,
0.28441113233566284,
0.5619003176689148,
-0.06771592050790787,
-0.3303118944168091,
-0.2736985385417938,
0.120528444647789,
0.026681095361709595,
-0.21142520010471344,
0.40754830837249756,
0.39796072244644165,
-0.18315459787845612,
-0.10090246051549911,
-0.15714579820632935,
0.6108295917510986,
0.05026302859187126,
0.016041051596403122,
0.41821905970573425,
-0.21382272243499756,
0.21050046384334564,
-0.1470014750957489,
0.13857081532478333,
-0.053945671766996384,
-0.136348694562912,
-0.21947436034679413,
-0.0693947821855545,
-0.037674397230148315,
0.011639401316642761,
0.15743081271648407,
-0.16510991752147675,
0.2682896852493286,
0.08794169127941132,
0.1348491907119751,
0.16529841721057892,
-0.32239803671836853,
0.039891503751277924,
0.17736250162124634,
0.1735205054283142,
-0.10442084074020386,
0.28404197096824646,
-0.20590892434120178,
-0.3030325770378113,
0.069965660572052,
-0.04009976238012314,
-0.5506705641746521,
0.18393513560295105,
-0.4698250889778137,
0.2032456398010254,
-0.013053178787231445,
-0.010999515652656555,
0.34848153591156006,
0.36577466130256653,
0.1571362316608429,
0.05900469794869423,
-0.44931843876838684,
0.3896333575248718,
0.018221840262413025,
0.028991784900426865,
-0.18104013800621033,
-0.0739099532365799,
0.30785566568374634,
-0.11984196305274963,
-0.23586055636405945,
-0.06261491030454636,
-0.013581447303295135,
-0.4217296242713928,
-0.34695398807525635,
0.34850382804870605,
0.059172581881284714,
-0.13629016280174255,
0.1433110535144806,
-0.12120427191257477,
-0.1344551146030426,
0.04073677584528923,
0.1263408213853836,
0.045586973428726196,
-0.10372810810804367,
0.2726750373840332,
0.1372687667608261,
-0.26993608474731445,
0.14159265160560608,
0.34721314907073975,
-0.3557753264904022,
0.11420279741287231,
0.8458791971206665,
-0.06544219702482224,
-0.22981944680213928,
-0.13978493213653564,
0.09413086622953415,
0.231926828622818,
-0.0013908222317695618,
-0.3310609459877014,
0.2111584097146988,
0.40834110975265503,
0.17327620089054108,
-0.06983731687068939,
-0.012058388441801071,
-0.16676652431488037,
-0.19133956730365753,
-0.3918384909629822,
-0.19394265115261078,
-0.16678012907505035,
-0.2015092670917511,
0.1445697396993637,
0.07782506197690964,
0.20230130851268768,
0.1848638653755188,
-0.1464926153421402,
-0.24783234298229218,
0.14865648746490479,
-0.03910468891263008,
-0.012784279882907867,
-0.02411142736673355,
-0.141550213098526,
0.01454557292163372,
-0.06088860332965851,
0.00634138286113739,
0.045419368892908096,
-0.14421583712100983,
-0.11655179411172867,
-0.005750112235546112,
0.10112590342760086,
0.1803424060344696,
-0.5480379462242126,
-0.2192481905221939,
-0.3896767497062683,
-0.20039251446723938,
0.19005908071994781,
-0.1098545640707016,
0.3161326050758362,
-0.05049906671047211,
-0.12584476172924042,
-0.35982516407966614,
0.11364363133907318,
0.18286943435668945,
0.04083522409200668,
0.11127547919750214,
0.25358280539512634,
-0.04717656224966049,
0.17543457448482513,
-0.09026465564966202,
-0.02138873189687729,
-0.015137582086026669,
0.13561668992042542,
0.028049536049365997,
0.2440890371799469,
0.13416866958141327,
-0.2730225920677185,
0.2378552258014679,
-0.004102617502212524,
0.15426801145076752,
0.262479305267334,
-0.26937663555145264,
0.024813374504446983,
0.24162963032722473,
0.1294591873884201,
-0.15939785540103912,
-0.0844590812921524,
0.6439171433448792,
-0.10722910612821579,
-0.05778352916240692,
-0.28950294852256775,
-0.16779614984989166,
0.05284819006919861,
-0.24318499863147736,
0.058826059103012085,
-0.13631221652030945,
0.15388675034046173,
0.2448015660047531,
0.20134346187114716,
-0.32030558586120605,
0.035699836909770966,
0.3232892155647278,
0.3608141243457794,
-0.06720652431249619,
0.7438293099403381,
-0.15058279037475586,
0.012048832140862942,
-0.5721405744552612,
-0.24039581418037415,
0.31037837266921997,
-0.6461285352706909,
0.009937074035406113,
-0.21118947863578796,
-0.18332815170288086,
0.007959291338920593,
-0.0655738115310669,
-0.0422062948346138,
-0.37780117988586426,
-0.052316129207611084,
-0.5793352723121643,
0.08567274361848831,
-0.21340662240982056,
0.1346888542175293,
-0.2962465286254883,
-0.08270761370658875,
0.29363754391670227,
0.04567648842930794,
0.009353980422019958,
-0.23703370988368988,
-0.3991610109806061,
-0.05343373119831085,
-0.35583627223968506,
-0.16854281723499298,
0.19027650356292725,
0.06342969834804535,
0.08824329078197479,
-0.21343150734901428,
0.003504641354084015,
-0.25477755069732666,
0.15000300109386444,
0.41796940565109253,
0.156261146068573,
0.18887272477149963,
0.20779800415039062,
0.08098439872264862,
0.053665708750486374,
-0.04413660243153572,
-0.14921432733535767,
-0.2867923080921173,
0.2991258203983307,
0.11123853176832199,
0.11837814748287201,
0.3449570834636688,
0.07006511837244034,
-0.0767250806093216,
0.1540495902299881,
0.03719666972756386,
0.06779932975769043,
-0.4160108268260956,
-0.15384182333946228,
-0.4234572649002075,
-0.11956726014614105,
-0.36100783944129944,
-0.3148176372051239,
-0.03951456397771835,
-0.0415104515850544,
0.5144803524017334,
-0.0485079251229763,
0.25872382521629333,
-0.528685450553894,
0.026097137480974197,
0.08838444948196411,
0.34636908769607544,
0.6540235280990601,
0.048306554555892944,
0.001974749378859997,
-0.219524085521698,
-0.7184551358222961,
0.16694968938827515,
0.006146926432847977,
0.18287207186222076,
0.06041232869029045,
-0.03559459000825882,
-0.1854642629623413,
-0.1556345373392105,
0.4154565930366516,
0.13505449891090393,
0.06238593906164169,
0.28046315908432007,
-0.010226892307400703,
-0.09118570387363434,
0.42365938425064087,
0.21895958483219147,
-0.12334145605564117,
-0.141330748796463,
0.31544676423072815,
-0.01461062766611576,
-0.02490845136344433,
0.05473032221198082,
-0.07732413709163666,
-0.3783945143222809,
-0.014936313033103943,
0.3226626515388489,
0.2557160556316376,
0.2478911131620407,
0.11614640802145004,
0.3218458890914917,
-0.5264958739280701,
-0.04554950073361397,
-0.09124449640512466,
0.2413976788520813,
-0.22994360327720642,
0.13646788895130157,
-0.0656546950340271,
0.05519657954573631,
-0.05800054967403412,
0.12201674282550812,
-0.17546220123767853,
0.2537851631641388,
-0.0943504348397255,
0.0859765037894249,
-0.3717770278453827,
0.2945024371147156,
0.1202930212020874,
0.026897188276052475,
0.02304021269083023,
0.23027567565441132,
-0.2937546968460083,
-0.1770673394203186,
0.457304447889328,
-0.708426833152771,
-0.06301984935998917,
-0.09407254308462143,
0.20247149467468262,
0.40106895565986633,
-0.289531946182251,
-0.003949910402297974,
0.03059428185224533,
0.35042500495910645,
-0.16795414686203003,
0.12508176267147064,
0.02062421850860119,
-0.2748299837112427,
0.18628081679344177,
-0.036414507776498795,
0.696699857711792,
0.018531788140535355,
-0.11427541822195053,
0.43816351890563965,
-0.04281294718384743
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | Thanks for the heads up, I still need to fix some tests that are failing in the CI before merging ;) | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 21 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
Thanks for the heads up, I still need to fix some tests that are failing in the CI before merging ;) | [
-0.27741724252700806,
0.3570381700992584,
0.018905695527791977,
0.2028401643037796,
-0.0644623190164566,
0.1670634150505066,
0.13201503455638885,
-0.14363239705562592,
-0.3657695949077606,
-0.01156318187713623,
-0.3856450319290161,
-0.12379435449838638,
-0.12703180313110352,
0.13607175648212433,
-0.11097003519535065,
0.2757478952407837,
-0.01344318687915802,
-0.21933633089065552,
-0.11930130422115326,
-0.018375195562839508,
-0.16100960969924927,
0.17197981476783752,
-0.24888242781162262,
0.15405037999153137,
-0.26243579387664795,
-0.07680195569992065,
-0.08675972372293472,
0.023396015167236328,
-0.46494072675704956,
-0.2832212746143341,
0.2908492088317871,
0.4337286949157715,
0.056011736392974854,
0.45703190565109253,
-0.0001150568132288754,
0.09573860466480255,
0.17509692907333374,
0.19487211108207703,
-0.20416314899921417,
0.08715322613716125,
-0.14820919930934906,
-0.21411366760730743,
0.050289347767829895,
0.009303182363510132,
-0.148796945810318,
-0.3364032804965973,
0.19530679285526276,
0.19668596982955933,
0.18792107701301575,
0.37203603982925415,
0.17620013654232025,
0.13857391476631165,
0.10252998769283295,
-0.11938419938087463,
0.06278243660926819,
0.2564006447792053,
-0.20084360241889954,
0.19963112473487854,
0.27739590406417847,
-0.1935535967350006,
0.03636310249567032,
0.0822271853685379,
0.26092642545700073,
-0.10872922837734222,
0.3833838403224945,
-0.10748641192913055,
0.18055030703544617,
-0.4315921664237976,
0.12195079028606415,
0.2128370702266693,
0.6372989416122437,
0.09246803820133209,
-0.2294599413871765,
0.06311487406492233,
0.1791929304599762,
0.2618553340435028,
0.40023374557495117,
0.20260100066661835,
-0.158737450838089,
0.2156473696231842,
-0.30490776896476746,
-0.13429000973701477,
-0.384613037109375,
0.17475897073745728,
-0.12422768771648407,
-0.26299381256103516,
-0.07750087976455688,
0.14233987033367157,
-0.04753195866942406,
-0.13228939473628998,
0.22614401578903198,
-0.20056363940238953,
-0.18706351518630981,
0.0780220627784729,
0.08885565400123596,
0.09670425951480865,
0.1791410744190216,
0.6939168572425842,
-0.18271216750144958,
0.2592703104019165,
-0.3257484436035156,
-0.01664196327328682,
-0.2876543402671814,
0.07782367616891861,
0.2534570097923279,
-0.15644967555999756,
-0.024095095694065094,
0.2698993384838104,
0.3302534222602844,
-0.08695507794618607,
-0.11576956510543823,
0.014673471450805664,
-0.00020399992354214191,
-0.3039803206920624,
-0.28345510363578796,
-0.3459305167198181,
0.5063771605491638,
-0.07126232981681824,
-0.38340994715690613,
0.10114365071058273,
0.07290390133857727,
-0.04625288024544716,
0.3764117658138275,
0.3952280580997467,
-0.10202468186616898,
-0.36342549324035645,
0.2579004168510437,
-0.02427300438284874,
-0.021960103884339333,
-0.07967941462993622,
-0.08654849231243134,
-0.21424104273319244,
-0.02491750568151474,
-0.11107749491930008,
0.20573747158050537,
-0.09868857264518738,
-0.1032853052020073,
-0.021312499418854713,
0.19810183346271515,
-0.010989677160978317,
0.20869405567646027,
0.01735142059624195,
0.25025349855422974,
0.11185018718242645,
0.2450447380542755,
0.10005000978708267,
0.007855426520109177,
-0.11548082530498505,
0.13230103254318237,
0.1110130101442337,
-0.07418370991945267,
-0.23255325853824615,
-0.34435760974884033,
0.12963847815990448,
-0.11843215674161911,
0.01270889863371849,
0.0580611489713192,
0.2836814820766449,
-0.23434466123580933,
-0.32605624198913574,
0.0522250235080719,
0.05156908184289932,
-0.13604770600795746,
-0.1810310333967209,
-0.13595537841320038,
0.45287227630615234,
-0.3866216540336609,
0.01996462792158127,
-0.15954309701919556,
-0.44138333201408386,
-0.12352020293474197,
0.1412537842988968,
-0.3086369037628174,
0.13229632377624512,
-0.39282992482185364,
0.11714968085289001,
0.6483359932899475,
-0.5457731485366821,
-0.5287038683891296,
0.12257210910320282,
-0.2391698658466339,
0.04661186784505844,
-0.0760638490319252,
0.07341188192367554,
0.1551116704940796,
-0.44400253891944885,
0.17661121487617493,
0.1561342179775238,
0.1770123839378357,
-0.15718212723731995,
0.11447924375534058,
-0.25517401099205017,
0.1493951976299286,
-0.02277188003063202,
0.08805622160434723,
0.2082698941230774,
0.45435044169425964,
-0.3246113657951355,
0.2024928331375122,
-0.006259631365537643,
0.11364772170782089,
0.30368220806121826,
0.17332346737384796,
0.3438737988471985,
0.03893091157078743,
-0.017422089353203773,
-0.1006048396229744,
0.09125746041536331,
0.10070343315601349,
-0.09883171319961548,
0.3123052716255188,
-0.3581573963165283,
-0.10766908526420593,
-0.043558359146118164,
-0.5143086910247803,
-0.04633523151278496,
0.18316687643527985,
0.36202484369277954,
-0.25498828291893005,
-0.13791847229003906,
0.14020220935344696,
-0.01713259331882,
-0.1223323792219162,
0.06716638058423996,
-0.018664218485355377,
0.051560573279857635,
-0.15008644759655,
0.09525030851364136,
-0.004670526832342148,
0.24301639199256897,
0.20191341638565063,
0.07861649990081787,
-0.10136353224515915,
0.19363367557525635,
-0.18657071888446808,
0.12904947996139526,
0.20808354020118713,
0.11405836790800095,
0.03134638071060181,
-0.4471302926540375,
-0.01540238969027996,
-0.03165827691555023,
-0.04796496406197548,
-0.14001810550689697,
-0.19348502159118652,
-0.05675762891769409,
-0.10973420739173889,
-0.0998862162232399,
0.015781022608280182,
0.4451636075973511,
0.30628910660743713,
0.18851450085639954,
-0.2372029721736908,
-0.08187808096408844,
0.23930183053016663,
0.24568979442119598,
0.15556858479976654,
0.05793723464012146,
-0.05573515594005585,
0.24420639872550964,
0.4761646091938019,
-0.005861168727278709,
-0.19010797142982483,
-0.057498522102832794,
-0.23552224040031433,
0.11897430568933487,
0.13516993820667267,
0.281993567943573,
0.33744511008262634,
0.12336283177137375,
0.33242300152778625,
0.2271680235862732,
0.13279764354228973,
-0.04610976576805115,
0.213858962059021,
0.14349594712257385,
-0.18381816148757935,
-0.009476609528064728,
0.09427471458911896,
0.12269951403141022,
-0.4482894837856293,
0.07782718539237976,
0.20166823267936707,
0.132721409201622,
-0.27538105845451355,
0.06431501358747482,
-0.14388100802898407,
-0.4241175949573517,
0.06797804683446884,
-0.2948336601257324,
-0.4147966802120209,
-0.24045269191265106,
0.023417137563228607,
0.3412195146083832,
-0.02589363604784012,
0.12460459768772125,
-0.27929607033729553,
0.36151719093322754,
-0.11998094618320465,
0.2448357194662094,
-0.06607123464345932,
0.24325528740882874,
-0.30993568897247314,
0.018339749425649643,
0.4656606912612915,
-0.13061299920082092,
0.42510828375816345,
0.03602483123540878,
0.4573289155960083,
-0.48874402046203613,
-0.3581767976284027,
0.0389743372797966,
-0.07211967557668686,
0.4291645288467407,
-0.05123510956764221,
0.05311093106865883,
-0.06427689641714096,
-0.15719741582870483,
-0.013280428014695644,
0.13892360031604767,
-0.27817705273628235,
-0.1582821160554886,
-0.043312642723321915,
-0.24306806921958923,
0.000552397221326828,
0.1277153193950653,
-0.4020323157310486,
-0.22654598951339722,
0.4124208092689514,
0.053613971918821335,
-0.03976576030254364,
0.17937231063842773,
-0.2921757996082306,
0.08870158344507217,
0.048654705286026,
0.04851564019918442,
-0.5629538297653198,
-0.36669105291366577,
0.19368092715740204,
-0.46622177958488464,
-0.477695494890213,
0.32282495498657227,
0.05208151787519455,
0.023353658616542816,
0.03722497820854187,
-0.3312568664550781,
-0.29868367314338684,
-0.1476425975561142,
0.34233561158180237,
0.01892544887959957,
-0.2445412427186966,
0.35759276151657104,
-0.04326449707150459,
0.12979616224765778,
-0.10024581849575043,
-0.25591880083084106,
-0.13383632898330688,
-0.015802327543497086,
0.2877272665500641,
-0.19146665930747986,
0.26859599351882935,
-0.13183985650539398,
0.45999568700790405,
0.42148229479789734,
0.4773673117160797,
0.19347091019153595,
-0.277820885181427,
0.6998064517974854,
0.19480186700820923,
-0.5166405439376831,
0.3846769332885742,
-0.0059259384870529175,
0.10688969492912292,
0.2887323498725891,
0.12399514019489288,
-0.03431127965450287,
0.033527880907058716,
-0.15087606012821198,
-0.4004080891609192,
-0.34707388281822205,
-0.27201971411705017,
-0.334016352891922,
0.011505626142024994,
0.1724502295255661,
0.1925555169582367,
-0.3054860234260559,
-0.3820774257183075,
-0.05312773585319519,
0.5364434719085693,
-0.08733180910348892,
-0.008557085879147053,
-0.04735366627573967,
0.0739191398024559,
-0.6015514731407166,
0.21657702326774597,
-0.171878382563591,
0.16463755071163177,
-0.4394770562648773,
0.21274980902671814,
0.4123801589012146,
0.08242598921060562,
0.6544561982154846,
-0.3183326721191406,
0.14590269327163696,
0.023571167141199112,
0.20697259902954102,
-0.28440824151039124,
-0.23258915543556213,
0.11169256269931793,
0.44597968459129333,
0.3568943440914154,
0.08367379009723663,
0.10207516700029373,
-0.08369811624288559,
0.4892149567604065,
-0.34723544120788574,
-0.11429838091135025,
-0.012404984794557095,
-0.12352821230888367,
-0.42033690214157104,
-0.10262679308652878,
-0.12375564128160477,
0.20155176520347595,
-0.017421983182430267,
-0.08494452387094498,
0.06703051924705505,
0.0017655398696660995,
0.2267758846282959,
0.2493927925825119,
0.00208323635160923,
0.010233364999294281,
0.48156851530075073,
0.05416853353381157,
0.5138803720474243,
0.2292802482843399,
0.08461003750562668,
0.5621210932731628,
0.27683401107788086,
-0.6962715983390808,
0.2596898376941681,
-0.13953737914562225,
0.08692852407693863,
0.37916409969329834,
-0.06742807477712631,
0.03461209684610367,
0.04463372379541397,
-0.12643161416053772,
-0.23172128200531006,
0.2764105796813965,
0.5220251679420471,
-0.05199917405843735,
-0.4075930118560791,
-0.10767388343811035,
0.06191561371088028,
0.13245853781700134,
-0.19741329550743103,
0.43617522716522217,
0.3906673789024353,
-0.14230085909366608,
-0.13770946860313416,
-0.22822093963623047,
0.7805689573287964,
0.05916445702314377,
0.08215156942605972,
0.3680144250392914,
-0.14343594014644623,
0.24738042056560516,
-0.13553878664970398,
0.1100306287407875,
-0.02203867956995964,
-0.17295905947685242,
-0.22090698778629303,
-0.09671321511268616,
-0.002504803240299225,
-0.06354138255119324,
0.09383915364742279,
-0.15701980888843536,
0.2656998634338379,
0.301585853099823,
0.10833537578582764,
0.17650429904460907,
-0.27594929933547974,
0.03878290206193924,
0.2539781928062439,
0.15040411055088043,
-0.08432769775390625,
0.36068177223205566,
-0.21910426020622253,
-0.2698069214820862,
-0.05769728496670723,
-0.05183254927396774,
-0.550696849822998,
0.1470176875591278,
-0.4268644154071808,
0.18225565552711487,
-0.050112154334783554,
-0.08355054259300232,
0.24957242608070374,
0.34793147444725037,
0.3192216753959656,
0.042735081166028976,
-0.401929646730423,
0.3826192617416382,
0.045076366513967514,
0.038376253098249435,
-0.1935577243566513,
-0.2194928675889969,
0.3337171971797943,
-0.16213421523571014,
-0.12980440258979797,
-0.04056569188833237,
0.020604245364665985,
-0.4855750799179077,
-0.3904995322227478,
0.37793076038360596,
0.036430723965168,
-0.12787865102291107,
0.19504444301128387,
-0.05176323652267456,
-0.12101036310195923,
0.01327412948012352,
0.07876858115196228,
0.030457139015197754,
-0.08783922344446182,
0.286563903093338,
0.12849538028240204,
-0.28560519218444824,
0.09794028103351593,
0.3123829662799835,
-0.25221359729766846,
-0.04924185574054718,
0.835666298866272,
-0.1283946931362152,
-0.1806388646364212,
-0.12159175425767899,
0.06591878086328506,
0.24415603280067444,
-0.03704112023115158,
-0.27335700392723083,
0.18216659128665924,
0.32139307260513306,
0.2109232395887375,
0.09409237653017044,
0.07909999787807465,
-0.03896963596343994,
-0.2625897228717804,
-0.33640679717063904,
-0.29640960693359375,
-0.12049807608127594,
-0.1745968461036682,
0.24845097959041595,
0.09944843500852585,
0.20616832375526428,
0.2268100529909134,
-0.10720418393611908,
-0.22523829340934753,
0.04959661513566971,
-0.09289760142564774,
-0.013754576444625854,
0.08136756718158722,
-0.12625262141227722,
0.030083557590842247,
-0.13324032723903656,
-0.058282770216464996,
-0.06328698247671127,
-0.10305091738700867,
-0.07523351907730103,
0.07941250503063202,
0.1252899169921875,
0.16667738556861877,
-0.5298992395401001,
-0.1879022866487503,
-0.3087118864059448,
-0.15649071335792542,
0.19504274427890778,
-0.09535433351993561,
0.2178131639957428,
-0.014661543071269989,
-0.32901111245155334,
-0.3920081853866577,
0.08260682970285416,
0.22332079708576202,
0.06500104069709778,
0.20809492468833923,
0.34389573335647583,
-0.04286077618598938,
0.2236945629119873,
-0.08800026029348373,
-0.06892263889312744,
0.06022151932120323,
0.1924707442522049,
0.042593199759721756,
0.27220019698143005,
0.0971924215555191,
-0.2699888348579407,
0.18049366772174835,
0.025623204186558723,
0.12563394010066986,
0.2646445631980896,
-0.22258949279785156,
0.08106505125761032,
0.1547069251537323,
0.0870734304189682,
-0.13444294035434723,
-0.03477548807859421,
0.6324019432067871,
-0.07725813239812851,
-0.08057630807161331,
-0.21930941939353943,
-0.13137288391590118,
0.11712594330310822,
-0.16271983087062836,
0.0645928829908371,
-0.16911308467388153,
0.12699905037879944,
0.39559367299079895,
0.05951196327805519,
-0.2848208546638489,
0.1064976304769516,
0.3318048417568207,
0.2555455267429352,
-0.07658799737691879,
0.5876333713531494,
-0.18078431487083435,
0.05446012318134308,
-0.4839596450328827,
-0.25876906514167786,
0.44426217675209045,
-0.6062911748886108,
0.10297446697950363,
-0.31281331181526184,
-0.13846518099308014,
0.05796357989311218,
0.05103529617190361,
-0.02798597514629364,
-0.43800094723701477,
-0.14710578322410583,
-0.6966450214385986,
0.1323663294315338,
-0.17182374000549316,
0.13407915830612183,
-0.3149111270904541,
-0.10962572693824768,
0.2894376814365387,
0.06326647102832794,
0.04985256493091583,
-0.22036172449588776,
-0.37102657556533813,
-0.04103904217481613,
-0.2995118498802185,
-0.12461769580841064,
0.14354932308197021,
0.06794659793376923,
0.09100693464279175,
-0.1529422402381897,
0.0525907538831234,
-0.22315196692943573,
0.15326443314552307,
0.4508405923843384,
0.2295677363872528,
0.274164080619812,
0.12991371750831604,
0.14757204055786133,
0.08577224612236023,
-0.06368282437324524,
-0.17539584636688232,
-0.28485047817230225,
0.2924289405345917,
0.13988856971263885,
0.033077482134103775,
0.3154308497905731,
0.08748462051153183,
-0.022740792483091354,
0.11491140723228455,
-0.07873058319091797,
-0.005417404696345329,
-0.4321765899658203,
-0.10793057829141617,
-0.5049457550048828,
-0.1612432599067688,
-0.39873626828193665,
-0.19560560584068298,
-0.03877590224146843,
-0.09837909787893295,
0.5326165556907654,
0.012564582750201225,
0.24040791392326355,
-0.4980269968509674,
0.015154208987951279,
0.18800878524780273,
0.33071351051330566,
0.6783978939056396,
0.058614201843738556,
-0.0025071343407034874,
-0.28392690420150757,
-0.6552901864051819,
0.1269417405128479,
0.07923945039510727,
0.31888505816459656,
-0.04113369435071945,
0.07366804033517838,
-0.06293349713087082,
-0.13528212904930115,
0.5253986716270447,
0.02027100883424282,
0.14134284853935242,
0.11870769411325455,
0.012966468930244446,
-0.10247686505317688,
0.4342612028121948,
0.09616052359342575,
-0.1175503134727478,
-0.07541036605834961,
0.30556023120880127,
0.047988321632146835,
-0.058479756116867065,
0.03563278540968895,
-0.09546610713005066,
-0.32471415400505066,
-0.12835244834423065,
0.21798333525657654,
0.27234911918640137,
0.2816399335861206,
0.09782641381025314,
0.2972274124622345,
-0.4751051068305969,
-0.061702627688646317,
-0.13391053676605225,
0.33438840508461,
-0.21687725186347961,
0.14541339874267578,
-0.15863871574401855,
0.09162883460521698,
-0.022984152659773827,
0.008754106238484383,
-0.12623411417007446,
0.21901997923851013,
-0.06254749745130539,
-0.024535462260246277,
-0.38813307881355286,
0.3509269654750824,
0.21607251465320587,
0.12239190191030502,
0.03650438040494919,
0.2929648756980896,
-0.2759701609611511,
-0.17851108312606812,
0.47195306420326233,
-0.5870181322097778,
-0.07848997414112091,
-0.15115830302238464,
0.18706637620925903,
0.376839816570282,
-0.23638561367988586,
-0.002335064113140106,
0.010762102901935577,
0.31919190287590027,
-0.20299991965293884,
0.16146200895309448,
0.0852460116147995,
-0.3057667016983032,
0.23787839710712433,
-0.05417034402489662,
0.6478402614593506,
0.0007831510156393051,
-0.12497079372406006,
0.4449991285800934,
0.032867297530174255
] |
https://github.com/huggingface/datasets/issues/4139 | Dataset viewer issue for Winoground | The fix has been merged, we'll do a new release soon, and update the dataset viewer | ## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
| 16 | Dataset viewer issue for Winoground
## Dataset viewer issue for 'Winoground'
**Link:** [*link to the dataset viewer page*](https://huggingface.co/datasets/facebook/winoground/viewer/facebook--winoground/train)
*short description of the issue*
Getting 401, message='Unauthorized'
The dataset is subject to authorization, but I can access the files from the interface, so I assume I'm granted to access it. I'd assume the permission somehow doesn't propagate to the dataset viewer tool.
Am I the one who added this dataset ? No
The fix has been merged, we'll do a new release soon, and update the dataset viewer | [
-0.2664143443107605,
0.3596874177455902,
0.0041652582585811615,
0.22174197435379028,
0.02264317497611046,
0.10166441649198532,
0.10906066000461578,
-0.10837335884571075,
-0.3371364176273346,
-0.017149031162261963,
-0.33075249195098877,
-0.051537640392780304,
-0.20275212824344635,
0.01626991666853428,
-0.07307340949773788,
0.2063015252351761,
-0.1037210151553154,
-0.23842713236808777,
-0.13751885294914246,
-0.02515099197626114,
-0.19458872079849243,
0.1092771515250206,
-0.25349441170692444,
0.2066950500011444,
-0.27828899025917053,
-0.08863016217947006,
-0.033451128751039505,
0.0007630437612533569,
-0.4061387777328491,
-0.3721301555633545,
0.2512475550174713,
0.3269175589084625,
0.11759722232818604,
0.32388928532600403,
-0.00010977919737342745,
0.1497281938791275,
0.18974122405052185,
0.26608705520629883,
-0.18821296095848083,
0.0902366191148758,
-0.17494529485702515,
-0.22146230936050415,
0.10674527287483215,
0.006712146103382111,
-0.14388713240623474,
-0.4014893174171448,
0.29939067363739014,
0.25652194023132324,
0.2477123886346817,
0.34824320673942566,
0.23003768920898438,
0.11628122627735138,
0.17012867331504822,
-0.07764766365289688,
0.1167532354593277,
0.16892726719379425,
-0.22884127497673035,
0.19869089126586914,
0.286485493183136,
-0.23467886447906494,
-0.08220235258340836,
0.13010220229625702,
0.2381262481212616,
-0.0012977123260498047,
0.37091851234436035,
-0.10969581454992294,
0.24595266580581665,
-0.3823314309120178,
0.11068947613239288,
0.31898781657218933,
0.597813606262207,
0.040018681436777115,
-0.26349741220474243,
-0.023875076323747635,
0.175948828458786,
0.26588118076324463,
0.37109169363975525,
0.29990795254707336,
-0.1572103351354599,
0.26619985699653625,
-0.21156257390975952,
-0.14696556329727173,
-0.39723026752471924,
0.18864363431930542,
-0.11444319784641266,
-0.2661617696285248,
-0.11094440519809723,
0.1182103231549263,
-0.09504318237304688,
-0.1513873040676117,
0.20460809767246246,
-0.16342321038246155,
-0.08236579596996307,
0.08297581225633621,
0.0440077967941761,
0.17056193947792053,
0.1788707673549652,
0.6044977307319641,
-0.11996903270483017,
0.20787298679351807,
-0.2843044400215149,
0.09610714763402939,
-0.34070637822151184,
0.06475034356117249,
0.24989213049411774,
-0.2077135294675827,
0.007696598768234253,
0.2763766646385193,
0.37145549058914185,
-0.0551413968205452,
-0.13909032940864563,
-0.00920601561665535,
-0.042129017412662506,
-0.2998199760913849,
-0.1745842695236206,
-0.25595152378082275,
0.5238065719604492,
-0.044026996940374374,
-0.3773484528064728,
0.10059582442045212,
0.031134523451328278,
-0.06284595280885696,
0.34993067383766174,
0.4553210735321045,
-0.09819846600294113,
-0.3904136121273041,
0.22579000890254974,
-0.027760013937950134,
-0.0053600771352648735,
-0.0848359540104866,
-0.11786238849163055,
-0.23366259038448334,
-0.05271844565868378,
-0.014849293977022171,
0.23986132442951202,
-0.045482102781534195,
-0.035239920020103455,
-0.02718920074403286,
0.03728726506233215,
0.04540151357650757,
0.25724509358406067,
-0.004551040008664131,
0.14251196384429932,
0.08053066581487656,
0.19641226530075073,
0.12869583070278168,
-0.04762959107756615,
-0.009161241352558136,
0.14280012249946594,
0.1351592242717743,
-0.07248800247907639,
-0.28479793667793274,
-0.2421347051858902,
0.1657351702451706,
-0.09286366403102875,
0.01804925501346588,
0.0810183733701706,
0.3215451240539551,
-0.2698380649089813,
-0.2849143445491791,
0.10140915960073471,
-0.021784182637929916,
-0.18452119827270508,
-0.14192546904087067,
-0.17006050050258636,
0.437006413936615,
-0.3598146140575409,
0.006180383265018463,
-0.10109878331422806,
-0.49288132786750793,
-0.0937681719660759,
0.058122120797634125,
-0.32519733905792236,
0.12960685789585114,
-0.39706647396087646,
0.20631037652492523,
0.5779299736022949,
-0.49861010909080505,
-0.5717886686325073,
0.05882634222507477,
-0.2275685966014862,
0.048660919070243835,
-0.1059260293841362,
0.058718327432870865,
0.10484252870082855,
-0.4105547368526459,
0.13706055283546448,
0.1489066481590271,
0.3334045708179474,
-0.10132534801959991,
0.09519301354885101,
-0.284881591796875,
0.2049621194601059,
0.05445721372961998,
0.07387784123420715,
0.1827959567308426,
0.444391667842865,
-0.2374669313430786,
0.2109740674495697,
0.04111567884683609,
0.10727620869874954,
0.2728908360004425,
0.1850096881389618,
0.4523008465766907,
0.01784338243305683,
-0.10059869289398193,
-0.12063208967447281,
0.1191902831196785,
0.048365235328674316,
-0.18005231022834778,
0.2377503365278244,
-0.34325170516967773,
-0.02044450119137764,
-0.012352383695542812,
-0.4948340952396393,
-0.0602475069463253,
0.24246174097061157,
0.31557947397232056,
-0.22821807861328125,
-0.028521940112113953,
0.13342690467834473,
-0.07226575911045074,
-0.16926206648349762,
0.06182030960917473,
0.03830929845571518,
0.020560933277010918,
-0.07075347006320953,
0.1289961189031601,
0.04355210065841675,
0.18881534039974213,
0.2715478837490082,
0.10263220220804214,
-0.0776711255311966,
0.20162639021873474,
-0.04539470374584198,
0.06881512701511383,
0.13145914673805237,
0.14105866849422455,
-0.008452760055661201,
-0.41810956597328186,
-0.03034508042037487,
-0.014657363295555115,
-0.017952900379896164,
-0.09816217422485352,
-0.18902301788330078,
-0.08245450258255005,
-0.020094972103834152,
-0.07698792964220047,
0.004557088017463684,
0.3932568430900574,
0.3338472843170166,
0.11330248415470123,
-0.15832890570163727,
-0.052860990166664124,
0.17279808223247528,
0.2453722506761551,
0.1772184669971466,
-0.01972578652203083,
-0.14643853902816772,
0.2220401167869568,
0.4490407109260559,
-0.03174833953380585,
-0.08164293318986893,
-0.007368806749582291,
-0.2493363916873932,
0.15105882287025452,
0.17928865551948547,
0.23462004959583282,
0.2579471170902252,
0.10641804337501526,
0.34675461053848267,
0.2461920529603958,
0.0832153782248497,
-0.08853001147508621,
0.16363811492919922,
0.14149025082588196,
-0.17871499061584473,
0.0028754808008670807,
0.10789699852466583,
0.08058404177427292,
-0.5174297094345093,
0.06267371773719788,
0.20466426014900208,
0.18587860465049744,
-0.2715246379375458,
-0.04607921466231346,
-0.24294711649417877,
-0.37572622299194336,
0.056329790502786636,
-0.31248316168785095,
-0.3563371002674103,
-0.1815546602010727,
0.07771067321300507,
0.2927664816379547,
-0.08536142110824585,
0.10851473361253738,
-0.27999091148376465,
0.2957475185394287,
-0.07563591003417969,
0.2948905825614929,
-0.04629131406545639,
0.2759556174278259,
-0.29647642374038696,
0.04136675223708153,
0.4428158700466156,
-0.05267619341611862,
0.42339885234832764,
0.027615876868367195,
0.33065640926361084,
-0.543158233165741,
-0.26057377457618713,
0.025425894185900688,
-0.031069740653038025,
0.3978516757488251,
0.004690386354923248,
0.11028295010328293,
-0.0900259017944336,
-0.09346345067024231,
0.004803878720849752,
0.09985684603452682,
-0.2299901694059372,
-0.10705588757991791,
0.007708403281867504,
-0.14855210483074188,
0.018343448638916016,
0.14449071884155273,
-0.41391220688819885,
-0.23561272025108337,
0.4395175576210022,
0.09774099290370941,
0.02896309457719326,
0.1853940635919571,
-0.23232054710388184,
0.21281148493289948,
0.015032529830932617,
0.05913268029689789,
-0.5216313004493713,
-0.29286977648735046,
0.19168788194656372,
-0.4475044310092926,
-0.5169974565505981,
0.27880361676216125,
0.03483636677265167,
-0.13639876246452332,
0.010438003577291965,
-0.4239482283592224,
-0.38627004623413086,
-0.18976068496704102,
0.371125727891922,
-0.048709459602832794,
-0.21149562299251556,
0.3306598663330078,
-0.054925285279750824,
0.08912983536720276,
-0.09560856223106384,
-0.21495363116264343,
-0.1063113883137703,
-0.06134071201086044,
0.20991387963294983,
-0.16496363282203674,
0.23297324776649475,
-0.052960362285375595,
0.3206435739994049,
0.3709370493888855,
0.48324254155158997,
0.23863807320594788,
-0.31447723507881165,
0.6075937747955322,
0.1618119180202484,
-0.36658892035484314,
0.38097086548805237,
-0.006993681192398071,
0.13021662831306458,
0.2186790406703949,
0.11416316777467728,
-0.009470110759139061,
0.08744412660598755,
-0.16212807595729828,
-0.3484046161174774,
-0.36854836344718933,
-0.2920506000518799,
-0.2656155526638031,
0.015749357640743256,
0.24777108430862427,
0.30105137825012207,
-0.25127309560775757,
-0.4145069718360901,
-0.019992990419268608,
0.4557787775993347,
-0.015868939459323883,
-0.06247855722904205,
-0.07937821745872498,
0.12571626901626587,
-0.6410273909568787,
0.17035295069217682,
-0.14482206106185913,
0.2037418782711029,
-0.4027653634548187,
0.28074806928634644,
0.4837835431098938,
0.08562476187944412,
0.7098252177238464,
-0.32303473353385925,
0.27727174758911133,
-0.006182231940329075,
0.21209508180618286,
-0.3085646331310272,
-0.20381569862365723,
0.02352094277739525,
0.4194601774215698,
0.28006088733673096,
0.06700979918241501,
0.030385270714759827,
-0.10727661848068237,
0.3437412679195404,
-0.3501545786857605,
-0.139190673828125,
-0.0664253756403923,
-0.05663469433784485,
-0.36220166087150574,
-0.08067749440670013,
-0.09066567569971085,
0.21943272650241852,
-0.0077693890780210495,
-0.025569263845682144,
0.03798587992787361,
-0.005066355690360069,
0.3037493824958801,
0.16437435150146484,
-0.024500340223312378,
0.04432811960577965,
0.44783055782318115,
0.10442745685577393,
0.5808099508285522,
0.1578918993473053,
0.09147416800260544,
0.5255405902862549,
0.1840941309928894,
-0.6662871837615967,
0.2514169216156006,
-0.10384975373744965,
-0.04509412497282028,
0.3594231605529785,
-0.06510035693645477,
0.011979781091213226,
0.04816640168428421,
-0.061680614948272705,
-0.24365824460983276,
0.2860111594200134,
0.5716741681098938,
-0.06178838387131691,
-0.3151575028896332,
-0.2459973841905594,
0.12800465524196625,
0.043401289731264114,
-0.19835525751113892,
0.38874387741088867,
0.4289736747741699,
-0.15758471190929413,
-0.0835583508014679,
-0.2176867425441742,
0.6329905390739441,
0.05083761364221573,
0.0472712405025959,
0.3777497410774231,
-0.19275787472724915,
0.25742509961128235,
-0.16886550188064575,
0.1473160833120346,
-0.03143255412578583,
-0.17106841504573822,
-0.22380803525447845,
-0.05735583230853081,
-0.06167187541723251,
0.007831234484910965,
0.13440930843353271,
-0.16702769696712494,
0.30682408809661865,
0.14871472120285034,
0.08511511236429214,
0.19530850648880005,
-0.32888317108154297,
0.04471494257450104,
0.2120695561170578,
0.19723986089229584,
-0.08385065197944641,
0.3126334249973297,
-0.19929835200309753,
-0.2926443815231323,
0.06613194942474365,
-0.039593521505594254,
-0.5676593780517578,
0.1284298300743103,
-0.4732508361339569,
0.23161205649375916,
0.0031323879957199097,
0.011711865663528442,
0.22862981259822845,
0.3182303011417389,
0.1709001362323761,
0.044967468827962875,
-0.4307901859283447,
0.3710096776485443,
0.014893241226673126,
0.05306630954146385,
-0.1942247599363327,
-0.1119915172457695,
0.3321223258972168,
-0.1378246545791626,
-0.2185804545879364,
-0.052275143563747406,
-0.016849737614393234,
-0.46124088764190674,
-0.35636579990386963,
0.3514357805252075,
0.025154341012239456,
-0.11822964996099472,
0.15804120898246765,
-0.10279034078121185,
-0.1413806527853012,
0.018867503851652145,
0.13764233887195587,
0.050811100751161575,
-0.10719984769821167,
0.284965455532074,
0.16912992298603058,
-0.2537669539451599,
0.11017993092536926,
0.35885193943977356,
-0.341962993144989,
0.044132448732852936,
0.8274531364440918,
-0.05956733226776123,
-0.2370840609073639,
-0.13019293546676636,
0.09888622909784317,
0.25711536407470703,
-0.015900734812021255,
-0.30421796441078186,
0.17152570188045502,
0.40421658754348755,
0.18858560919761658,
-0.0031135044991970062,
0.03284880518913269,
-0.16525286436080933,
-0.21933265030384064,
-0.36573904752731323,
-0.2196592539548874,
-0.1285393089056015,
-0.1860649436712265,
0.17371031641960144,
0.09169565886259079,
0.16134272515773773,
0.18077777326107025,
-0.13206008076667786,
-0.27330368757247925,
0.1370420753955841,
-0.051840588450431824,
-0.014640595763921738,
-0.01182224228978157,
-0.12656643986701965,
0.08199270069599152,
-0.08292825520038605,
0.009132718667387962,
0.036606647074222565,
-0.13284337520599365,
-0.13829576969146729,
0.008095122873783112,
0.09566446393728256,
0.17873647809028625,
-0.516019344329834,
-0.21789906919002533,
-0.33405768871307373,
-0.1816854476928711,
0.19664202630519867,
-0.0950143039226532,
0.3088701367378235,
-0.04770022630691528,
-0.1444866955280304,
-0.3370109796524048,
0.111875981092453,
0.2554389238357544,
0.02305002138018608,
0.16910192370414734,
0.2915344834327698,
-0.04070080444216728,
0.17438121140003204,
-0.07243397831916809,
-0.021600939333438873,
0.042207591235637665,
0.14063945412635803,
0.021119847893714905,
0.21982890367507935,
0.13686564564704895,
-0.24604402482509613,
0.19629065692424774,
-0.004831841681152582,
0.15194672346115112,
0.2832818627357483,
-0.25786831974983215,
0.053812190890312195,
0.24053150415420532,
0.14180611073970795,
-0.15177904069423676,
-0.0753450021147728,
0.6512237787246704,
-0.08077465742826462,
-0.03903169929981232,
-0.26643991470336914,
-0.15388554334640503,
0.06903104484081268,
-0.2100815325975418,
0.0901838093996048,
-0.1726893037557602,
0.1421610414981842,
0.25034528970718384,
0.15438811480998993,
-0.321922242641449,
0.038924939930438995,
0.3330008387565613,
0.33101820945739746,
-0.021582908928394318,
0.7008822560310364,
-0.15659725666046143,
0.03172150254249573,
-0.5634273290634155,
-0.24332889914512634,
0.3528539538383484,
-0.596244752407074,
0.03403019532561302,
-0.24333524703979492,
-0.16594907641410828,
0.008514516055583954,
-0.022908836603164673,
-0.004550650715827942,
-0.41724416613578796,
-0.05968155339360237,
-0.5880515575408936,
0.09313378483057022,
-0.2029329240322113,
0.12243662774562836,
-0.27507153153419495,
-0.08771923184394836,
0.2710949778556824,
0.05655522271990776,
0.007793691009283066,
-0.26510781049728394,
-0.3621140718460083,
-0.06766271591186523,
-0.34782832860946655,
-0.1708000749349594,
0.1603543758392334,
0.01961742714047432,
0.11047059297561646,
-0.17541904747486115,
0.006197163835167885,
-0.2561908960342407,
0.16802340745925903,
0.40944892168045044,
0.21676723659038544,
0.1704588085412979,
0.18449363112449646,
0.09583441913127899,
0.0684000551700592,
-0.08031992614269257,
-0.1481768637895584,
-0.3253759741783142,
0.3094996213912964,
0.09746471792459488,
0.09621477127075195,
0.35464513301849365,
0.09869193285703659,
-0.08294677734375,
0.13062357902526855,
0.004326764494180679,
0.0645255297422409,
-0.4391704797744751,
-0.13238206505775452,
-0.45304399728775024,
-0.1279890388250351,
-0.3608492910861969,
-0.28025057911872864,
-0.06001086160540581,
-0.05007147789001465,
0.47358259558677673,
-0.04572156071662903,
0.2709915339946747,
-0.5534995198249817,
0.03867402672767639,
0.1301034688949585,
0.3456549346446991,
0.6624318361282349,
0.021640360355377197,
0.02694680541753769,
-0.22853948175907135,
-0.7189891934394836,
0.12293614447116852,
-0.008555691689252853,
0.2744230628013611,
0.025846751406788826,
0.007903661578893661,
-0.1756521761417389,
-0.09613427519798279,
0.427731454372406,
0.11868526041507721,
0.06581459939479828,
0.24154429137706757,
-0.021092267706990242,
-0.09809191524982452,
0.44595903158187866,
0.2097674161195755,
-0.09711690992116928,
-0.1263541579246521,
0.3049280643463135,
-0.01875350996851921,
-0.030100464820861816,
0.036959558725357056,
-0.06481678038835526,
-0.3844115138053894,
-0.049581997096538544,
0.3069385886192322,
0.26163801550865173,
0.19600090384483337,
0.09414365142583847,
0.2917969226837158,
-0.5422812104225159,
-0.07875314354896545,
-0.12537764012813568,
0.23245364427566528,
-0.252384215593338,
0.12691344320774078,
-0.07678722590208054,
-0.0034457966685295105,
-0.04065452516078949,
0.12006476521492004,
-0.16203291714191437,
0.22954896092414856,
-0.062182195484638214,
0.044018857181072235,
-0.3536249101161957,
0.2904764413833618,
0.13626530766487122,
0.026941489428281784,
0.015869244933128357,
0.19692829251289368,
-0.28882113099098206,
-0.19861766695976257,
0.4443422853946686,
-0.658341646194458,
-0.05878063291311264,
-0.1064300686120987,
0.19181278347969055,
0.4196828603744507,
-0.29248520731925964,
-0.0523405447602272,
0.049706123769283295,
0.34447523951530457,
-0.16259697079658508,
0.14967715740203857,
0.02425181120634079,
-0.2950313985347748,
0.19254270195960999,
-0.0555051788687706,
0.7004581689834595,
0.01620863378047943,
-0.12673519551753998,
0.4333295226097107,
-0.03700791671872139
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | To reproduce:
```python
>>> import datasets
>>> datasets.get_dataset_split_names('MalakhovIlya/RuREBus', config_name='raw_txt')
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 101, in _split_generators
decode_file_names(folder)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 26, in decode_file_names
for root, dirs, files in os.walk(folder, topdown=False):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/streaming.py", line 66, in wrapper
return function(*args, use_auth_token=use_auth_token, **kwargs)
TypeError: xwalk() got an unexpected keyword argument 'topdown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```
It's not related to the dataset viewer. Maybe @albertvillanova or @lhoestq could help more on this issue. | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 143 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
To reproduce:
```python
>>> import datasets
>>> datasets.get_dataset_split_names('MalakhovIlya/RuREBus', config_name='raw_txt')
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 101, in _split_generators
decode_file_names(folder)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/MalakhovIlya--RuREBus/21046f5f1a0cf91187d68c30918d78d934ec7113ec435e146776d4f28f12c4ed/RuREBus.py", line 26, in decode_file_names
for root, dirs, files in os.walk(folder, topdown=False):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/streaming.py", line 66, in wrapper
return function(*args, use_auth_token=use_auth_token, **kwargs)
TypeError: xwalk() got an unexpected keyword argument 'topdown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```
It's not related to the dataset viewer. Maybe @albertvillanova or @lhoestq could help more on this issue. | [
-0.0074532367289066315,
-0.06315413117408752,
-0.018023133277893066,
0.38833343982696533,
0.4040849208831787,
-0.04123056307435036,
-0.09856608510017395,
0.13557551801204681,
-0.17968857288360596,
0.25417912006378174,
-0.1795738935470581,
0.42432284355163574,
-0.01966104656457901,
0.16380344331264496,
0.03964027762413025,
-0.17156141996383667,
0.12495537102222443,
-0.05986097455024719,
-0.16084511578083038,
-0.2564060688018799,
-0.40490996837615967,
0.3533492386341095,
-0.05316519737243652,
-0.10491080582141876,
0.0022321061696857214,
0.035251639783382416,
0.03963056951761246,
-0.01975174993276596,
-0.39766788482666016,
-0.3612895607948303,
-0.1841271072626114,
0.046548910439014435,
0.12918470799922943,
0.5569766759872437,
-0.0001251500943908468,
0.04037503898143768,
0.14348790049552917,
-0.09858985990285873,
-0.14105844497680664,
-0.2179519087076187,
-0.2946050763130188,
-0.209340438246727,
-0.18413688242435455,
-0.2900278568267822,
0.13386443257331848,
-0.41865402460098267,
0.14618538320064545,
-0.12894684076309204,
0.22423598170280457,
0.4691815674304962,
0.08230549097061157,
0.3574597239494324,
0.014501471072435379,
-0.11014312505722046,
0.03755825757980347,
0.3265696167945862,
-0.08961527049541473,
0.39101797342300415,
-0.012067191302776337,
0.2829897403717041,
-0.24148684740066528,
0.17098930478096008,
0.04854638874530792,
-0.08995874226093292,
-0.061893150210380554,
0.11844925582408905,
-0.01209241896867752,
-0.3712858259677887,
0.1973995566368103,
0.30468228459358215,
0.22140714526176453,
0.010036427527666092,
-0.2995869815349579,
-0.29327109456062317,
0.04825827479362488,
-0.12329918891191483,
0.42356717586517334,
0.21654750406742096,
-0.3297260105609894,
0.16504782438278198,
-0.24194851517677307,
-0.20275704562664032,
-0.11603166162967682,
0.2959265112876892,
-0.13346481323242188,
0.2823495864868164,
-0.2346290498971939,
0.12401507794857025,
0.25533851981163025,
-0.06841742247343063,
0.3923947513103485,
-0.19523896276950836,
0.19852550327777863,
0.014986919239163399,
-0.2569732367992401,
0.1527898907661438,
-0.02044958621263504,
0.5037223100662231,
0.09975545853376389,
-0.05518938601016998,
-0.2589923143386841,
0.01391710713505745,
0.1010344997048378,
-0.049477726221084595,
-0.08831760287284851,
0.17709629237651825,
0.07121457159519196,
0.20315928757190704,
0.04790348932147026,
0.22582651674747467,
0.14873625338077545,
0.11054076254367828,
-0.11700459569692612,
-0.41503655910491943,
-0.4236990511417389,
-0.034011807292699814,
0.24985380470752716,
-0.029041457921266556,
-0.28685319423675537,
0.07109303027391434,
-0.2714785039424896,
-0.31647348403930664,
0.04964820295572281,
0.26695019006729126,
0.09166406840085983,
0.19197705388069153,
-0.1611689329147339,
0.4022572636604309,
-0.2599779963493347,
-0.5288564562797546,
-0.0652819573879242,
0.080184705555439,
-0.29146862030029297,
-0.11902498453855515,
-0.06103760004043579,
-0.43594270944595337,
0.07395259290933609,
0.13207659125328064,
0.1562289595603943,
-0.08218920230865479,
-0.06728266924619675,
-0.18930549919605255,
0.06904780119657516,
-0.055156391113996506,
0.10577899217605591,
0.1592746526002884,
0.005884680896997452,
-0.3905501961708069,
0.01605924218893051,
0.1113867312669754,
-0.49199390411376953,
-0.0970042496919632,
-0.041325800120830536,
0.06937038898468018,
-0.4209204316139221,
-0.1943182349205017,
-0.1768714189529419,
0.15168999135494232,
0.2178412526845932,
0.35995081067085266,
-0.06440261751413345,
0.04718233272433281,
-0.07034524530172348,
0.0033820297103375196,
0.15281091630458832,
0.3547285795211792,
-0.4599861800670624,
-0.1449279636144638,
-0.09385255724191666,
-0.1133393943309784,
0.36915263533592224,
0.17696897685527802,
-0.016793515533208847,
0.4802086651325226,
-0.21698835492134094,
0.20960219204425812,
0.27312809228897095,
-0.00048343464732170105,
-0.40178170800209045,
0.13108490407466888,
-0.20957092940807343,
0.17646391689777374,
0.40798795223236084,
-0.25391489267349243,
0.3509213924407959,
-0.08599434792995453,
-0.17378109693527222,
0.1684160679578781,
0.05690423399209976,
-0.058775730431079865,
-0.18984422087669373,
-0.17799440026283264,
0.270711749792099,
0.2243761271238327,
0.17585355043411255,
-0.10874687880277634,
0.24992907047271729,
-0.17336449027061462,
0.40087971091270447,
-0.1699220985174179,
0.12099187821149826,
0.3489754796028137,
-0.27837949991226196,
0.1162375807762146,
0.29477977752685547,
0.15432173013687134,
0.045323677361011505,
0.10531728714704514,
0.050773389637470245,
0.24582956731319427,
-0.6622393727302551,
-0.1763078272342682,
-0.4643506705760956,
-0.02603965438902378,
-0.46049001812934875,
-0.13487258553504944,
-0.015606207773089409,
0.4269026517868042,
-0.265730082988739,
0.2680264711380005,
0.14106683433055878,
-0.08596595376729965,
-0.11665862053632736,
0.2203981578350067,
-0.4555380642414093,
0.2743128836154938,
-0.11706427484750748,
0.06490666419267654,
-0.19473567605018616,
0.09470655024051666,
0.22915083169937134,
-0.2023904174566269,
-0.263448566198349,
0.2752598822116852,
0.1033831313252449,
0.329299658536911,
0.21524876356124878,
-0.1836576908826828,
0.07490544021129608,
-0.2586362361907959,
0.14655064046382904,
0.2693484425544739,
-0.013839184306561947,
0.18750932812690735,
0.015957284718751907,
0.1686757504940033,
-0.05125639960169792,
0.14506597816944122,
-0.1438635140657425,
0.12291372567415237,
0.40500327944755554,
-0.0598786324262619,
0.06622881442308426,
-0.5740129947662354,
0.5132721662521362,
0.25283002853393555,
0.19330577552318573,
-0.015869049355387688,
-0.2233843058347702,
0.055735453963279724,
1.0187362432479858,
-0.11628244817256927,
-0.06421544402837753,
0.12753775715827942,
-0.024835042655467987,
0.043423011898994446,
0.11642937362194061,
0.8243849277496338,
0.2068955898284912,
0.052279211580753326,
0.18729984760284424,
0.18841633200645447,
0.23980654776096344,
-0.07805866003036499,
0.25734230875968933,
0.16308856010437012,
-0.021876409649848938,
0.24572965502738953,
-0.24048016965389252,
-0.05937899276614189,
-0.4424160122871399,
0.059555280953645706,
0.3663206398487091,
0.26322615146636963,
-0.28815630078315735,
0.026590386405587196,
-0.5058883428573608,
-0.4345848262310028,
-0.43521419167518616,
-0.036712903529405594,
-0.3243633806705475,
-0.33675235509872437,
-0.06065601110458374,
-0.24232041835784912,
-0.17967581748962402,
0.3539564907550812,
0.12006738781929016,
-0.15405242145061493,
-0.26087719202041626,
0.09915897250175476,
0.11875493824481964,
-0.10088051110506058,
-0.0026073530316352844,
-0.05828576162457466,
0.28153476119041443,
-0.1752215474843979,
0.31951969861984253,
-0.7208512425422668,
-0.000714639201760292,
-0.34769806265830994,
-0.2628042995929718,
0.434502512216568,
-0.16521485149860382,
0.08057810366153717,
0.18032129108905792,
-0.01849968731403351,
0.25314050912857056,
-0.1677846759557724,
0.17200259864330292,
0.18264859914779663,
-0.12807737290859222,
0.20559746026992798,
-0.003544229082763195,
-0.28443795442581177,
-0.2585597634315491,
-0.18669453263282776,
-0.2572329044342041,
-0.17927537858486176,
-0.010524608194828033,
-0.020080994814634323,
0.08828216046094894,
0.028554163873195648,
-0.18070271611213684,
-0.006888553500175476,
-0.4267154633998871,
0.03723800554871559,
-0.32959508895874023,
-0.38790395855903625,
0.4804736077785492,
-0.23407195508480072,
-0.28155744075775146,
0.1196276843547821,
-0.027306275442242622,
0.12555886805057526,
0.1445184051990509,
-0.23582518100738525,
-0.1991272121667862,
-0.11901567876338959,
0.15808576345443726,
-0.07638157904148102,
0.1262996643781662,
0.1306442767381668,
0.04710400104522705,
0.2071210891008377,
-0.258546382188797,
0.054567497223615646,
0.30586016178131104,
-0.21030831336975098,
0.2952426075935364,
0.08839204907417297,
0.4178149998188019,
0.20753875374794006,
0.2708227038383484,
0.25737902522087097,
0.3503313660621643,
0.3154916763305664,
-0.12951740622520447,
0.3318977653980255,
0.17083388566970825,
-0.2714473009109497,
0.12561297416687012,
0.06589096039533615,
-0.04598327726125717,
0.31050315499305725,
0.01607252098619938,
0.24680057168006897,
-0.005103200674057007,
-0.053425852209329605,
-0.3880048096179962,
-0.39931896328926086,
-0.0991789847612381,
0.15968692302703857,
0.16458594799041748,
0.03384822979569435,
0.5119444131851196,
-0.16000081598758698,
-0.1101243868470192,
0.08520282804965973,
0.20486363768577576,
-0.05015616863965988,
-0.023896612226963043,
-0.5339541435241699,
-0.046387623995542526,
-0.4996952414512634,
0.3677998185157776,
0.24820327758789062,
0.1063045859336853,
0.11365161836147308,
0.12835106253623962,
0.2530938386917114,
0.011849681846797466,
0.7520025968551636,
-0.12366574257612228,
0.15399616956710815,
-0.0644841119647026,
-0.006388455629348755,
-0.21508118510246277,
0.06938976049423218,
-0.2980493903160095,
0.10336343199014664,
-0.18658550083637238,
0.09096278250217438,
-0.3085823655128479,
-0.31976160407066345,
0.16900093853473663,
0.2515771985054016,
-0.20005366206169128,
-0.10037296265363693,
0.09363865852355957,
-0.342676043510437,
-0.11967841535806656,
-0.43596309423446655,
-0.001925075426697731,
0.18535882234573364,
0.0007876281160861254,
0.24879826605319977,
0.221986323595047,
0.15675011277198792,
0.11838630586862564,
0.2788853347301483,
0.5216240882873535,
0.11554548144340515,
0.0892874002456665,
0.17110195755958557,
0.15071195363998413,
0.3229958713054657,
0.7300702929496765,
-0.31524786353111267,
-0.7872381806373596,
-0.22370901703834534,
-0.46609169244766235,
0.15750573575496674,
0.2601541578769684,
-0.3339555263519287,
0.3007773458957672,
-0.05997558683156967,
0.2869302034378052,
-0.29430919885635376,
0.24215441942214966,
0.6856902837753296,
0.2242278903722763,
-0.2552795112133026,
-0.43530356884002686,
0.14477147161960602,
-0.0008796229958534241,
-0.03798862174153328,
0.10309496521949768,
0.5032877922058105,
-0.3728180229663849,
-0.22336724400520325,
-0.0738234743475914,
0.8633207678794861,
0.2391737401485443,
0.07232685387134552,
0.3554992079734802,
-0.09069478511810303,
0.17583511769771576,
0.19188599288463593,
-0.12049221992492676,
-0.11795452237129211,
-0.19607806205749512,
-0.0982384905219078,
0.18496301770210266,
0.29053664207458496,
-0.03821415454149246,
-0.16233745217323303,
0.1424141526222229,
-0.021692220121622086,
0.2539757192134857,
0.048400864005088806,
0.23991543054580688,
-0.1511104851961136,
-0.25990942120552063,
-0.10449394583702087,
-0.026821060106158257,
-0.2726757526397705,
-0.028551574796438217,
0.036784976720809937,
-0.23159803450107574,
0.12692607939243317,
-0.040109094232320786,
-0.10365269333124161,
0.0741003230214119,
-0.26116907596588135,
-0.056247204542160034,
-0.18831908702850342,
-0.4686466455459595,
0.28202953934669495,
0.4082033038139343,
0.2965129315853119,
0.043870244175195694,
-0.07738310098648071,
0.17803943157196045,
-0.0872524157166481,
0.11243420094251633,
0.24365460872650146,
0.020438767969608307,
0.07696261256933212,
-0.090118907392025,
-0.15912899374961853,
-0.21639835834503174,
0.07332469522953033,
0.05294497311115265,
-0.04425055533647537,
-0.22878222167491913,
-0.013162858784198761,
-0.25250622630119324,
-0.03039494715631008,
-0.17089033126831055,
0.025665998458862305,
-0.07238341867923737,
-0.008486410602927208,
0.014093305915594101,
-0.04585791006684303,
0.0019209310412406921,
-0.4096655547618866,
-0.2647764980792999,
-0.08372096717357635,
0.20416530966758728,
-0.19479718804359436,
-0.043294694274663925,
0.6158020496368408,
0.035883281379938126,
-0.3418020009994507,
-0.007080487906932831,
0.22636273503303528,
-0.1817559450864792,
-0.7276685833930969,
0.0319858118891716,
-0.14524084329605103,
-0.05777570605278015,
-0.1637924462556839,
-0.07300649583339691,
0.21972544491291046,
-0.1381220817565918,
-0.06846609711647034,
-0.28884071111679077,
-0.09388070553541183,
0.20010343194007874,
0.15461581945419312,
-0.38021692633628845,
-0.0598936602473259,
0.005769291892647743,
-0.04975103959441185,
-0.3742442727088928,
-0.16673371195793152,
0.1359483152627945,
0.19861376285552979,
0.16963978111743927,
0.2761395573616028,
-0.027180351316928864,
0.39702263474464417,
-0.3500567078590393,
0.03925876319408417,
-0.01441219076514244,
-0.15011858940124512,
0.017862558364868164,
-0.3172527849674225,
0.16225437819957733,
-0.15435117483139038,
-0.28650328516960144,
0.44091883301734924,
-0.24831470847129822,
-0.07509380578994751,
-0.1849648356437683,
0.06224960461258888,
0.4091404676437378,
0.06688406318426132,
0.35366007685661316,
0.24031886458396912,
0.1218690499663353,
-0.12020144611597061,
-0.11116041243076324,
0.00027423352003097534,
0.43670910596847534,
-0.019468827173113823,
0.1923568695783615,
-0.1478191763162613,
0.03331596404314041,
-0.24162718653678894,
0.18880921602249146,
0.018758974969387054,
0.1795358657836914,
0.34515297412872314,
-0.18951059877872467,
0.44170793890953064,
0.23979152739048004,
0.4996667206287384,
0.4692058861255646,
-0.28504398465156555,
-0.12949597835540771,
0.37208330631256104,
-0.0039020925760269165,
-0.26651686429977417,
-0.2208833545446396,
0.2694246470928192,
-0.014044697396457195,
0.03467312082648277,
0.238526850938797,
-0.14113304018974304,
0.17140066623687744,
0.019724678248167038,
-0.06539923697710037,
0.28392037749290466,
0.2836151719093323,
0.36234453320503235,
0.9362623691558838,
-0.06103542447090149,
0.33736157417297363,
0.2539079487323761,
0.31624001264572144,
-0.08801675587892532,
0.43029332160949707,
-0.38694679737091064,
0.2911302149295807,
0.078065887093544,
0.28114554286003113,
0.2979881465435028,
-0.2632981836795807,
0.136148601770401,
-0.03174774348735809,
-0.23819637298583984,
0.28468358516693115,
0.16330602765083313,
0.35268914699554443,
0.007555743679404259,
-0.13113325834274292,
-0.26440438628196716,
0.1875976175069809,
-0.055516019463539124,
-0.004477434325963259,
-0.2925799489021301,
-0.15533745288848877,
-0.33111366629600525,
0.1625894457101822,
-0.22741255164146423,
-0.27397358417510986,
-0.057816192507743835,
0.11998976767063141,
-0.17839838564395905,
-0.17968930304050446,
-0.05753714591264725,
-0.27100643515586853,
0.25753679871559143,
-0.3645401895046234,
0.3446362614631653,
0.3755713105201721,
0.10435110330581665,
0.34497734904289246,
0.20045225322246552,
0.33564093708992004,
0.20731540024280548,
0.003325969912111759,
-0.17453038692474365,
-0.04500318691134453,
-0.03496121987700462,
0.06877171993255615,
0.06736939400434494,
0.041370369493961334,
0.32347342371940613,
0.3550899624824524,
-0.03170260041952133,
-0.17482221126556396,
0.08119140565395355,
0.4059726595878601,
0.24620774388313293,
0.018413333222270012,
0.1579410284757614,
-0.1394607573747635,
0.10941112786531448,
-0.36119356751441956,
-0.2577829658985138,
-0.4282893240451813,
-0.054413773119449615,
0.3476302921772003,
0.11074173450469971,
0.022654421627521515,
-0.13025139272212982,
0.011663828045129776,
0.023811407387256622,
0.32854193449020386,
0.31770607829093933,
-0.14020386338233948,
-0.11841990798711777,
-0.29589763283729553,
-0.6666380763053894,
0.10370533913373947,
0.0870656743645668,
-0.4139423966407776,
0.07241518050432205,
-0.32247236371040344,
0.10744655132293701,
0.22866463661193848,
0.3796394467353821,
0.41621580719947815,
0.06298834830522537,
0.24719072878360748,
-0.18529973924160004,
-0.31758949160575867,
0.2866913378238678,
-0.033434540033340454,
0.004351858049631119,
-0.2673634886741638,
0.19994519650936127,
-0.17286597192287445,
-0.11527980864048004,
0.020362526178359985,
0.19432443380355835,
-0.13964492082595825,
-0.34302693605422974,
0.11837352812290192,
0.1159190908074379,
0.28736841678619385,
-0.23176252841949463,
-0.12766580283641815,
-0.06777749955654144,
-0.20318423211574554,
-0.43534961342811584,
0.6377069354057312,
0.031278859823942184,
0.3199290931224823,
-0.1528605818748474,
-0.07186830043792725,
-0.15299390256404877,
0.06314542144536972,
-0.17805401980876923,
0.06380608677864075,
-0.39840471744537354,
0.41476088762283325,
0.033905938267707825,
-0.07231024652719498,
0.3636869192123413,
0.36295264959335327,
0.004117507487535477,
0.17046481370925903,
-0.22034059464931488,
-0.2566053867340088,
0.41660308837890625,
-0.3423583507537842,
-0.2188747078180313,
0.08913655579090118,
-0.10488669574260712,
-0.021621890366077423,
-0.263165146112442,
-0.26950788497924805,
-0.012608915567398071,
0.2525050640106201,
-0.16764113306999207,
-0.0657787173986435,
0.26896563172340393,
-0.156001016497612,
-0.04448331892490387,
0.09660996496677399,
0.2640741169452667,
0.3390102982521057,
-0.40062421560287476,
0.3040049970149994,
-0.15051861107349396
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | Hi! This issue stems from the fact that `xwalk`, which is a streamable version of `os.walk`, doesn't support the `topdown` param due to `fsspec`'s `walk` also not supporting it, so fixing this issue could be tricky.
@MalakhovIlyaPavlovich You can avoid the error by tweaking your data processing and not using this param. (and `Path.rename`, which also cannot be streamed) | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 59 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
Hi! This issue stems from the fact that `xwalk`, which is a streamable version of `os.walk`, doesn't support the `topdown` param due to `fsspec`'s `walk` also not supporting it, so fixing this issue could be tricky.
@MalakhovIlyaPavlovich You can avoid the error by tweaking your data processing and not using this param. (and `Path.rename`, which also cannot be streamed) | [
-0.05993950366973877,
0.00046478956937789917,
0.0007158592343330383,
0.29290664196014404,
0.472581684589386,
-0.0914139673113823,
-0.21737615764141083,
0.0923401489853859,
-0.08905526995658875,
0.3572287857532501,
-0.09731820225715637,
0.30234530568122864,
0.031104695051908493,
0.23372827470302582,
-0.040130581706762314,
-0.20495936274528503,
0.17284554243087769,
-0.12487074732780457,
-0.0916413962841034,
-0.23128430545330048,
-0.28782403469085693,
0.2802830636501312,
-0.05069964379072189,
-0.10363343358039856,
0.005655895918607712,
0.06314565986394882,
0.036311015486717224,
0.015246164053678513,
-0.59562087059021,
-0.36730167269706726,
-0.1829654425382614,
0.03483109176158905,
0.3052580654621124,
0.6039683222770691,
-0.00012137547309976071,
-0.116742342710495,
0.12890742719173431,
-0.14908912777900696,
-0.06240030378103256,
-0.19246651232242584,
-0.19167235493659973,
-0.13777852058410645,
-0.28416159749031067,
-0.24916303157806396,
0.1728721261024475,
-0.4411444664001465,
0.23592005670070648,
-0.01994970068335533,
0.21150201559066772,
0.6566941738128662,
0.11736677587032318,
0.10608886182308197,
-0.03258431702852249,
-0.10627672076225281,
0.12650322914123535,
0.22434602677822113,
-0.06918118894100189,
0.2950754761695862,
-0.0036410093307495117,
0.2417852282524109,
-0.18959787487983704,
0.09887883067131042,
-0.03565414994955063,
-0.1042974591255188,
-0.10130024701356888,
0.07666522264480591,
0.018376927822828293,
-0.39161503314971924,
0.11777862906455994,
0.3187629282474518,
0.30699723958969116,
0.13280722498893738,
-0.23801910877227783,
-0.13139744102954865,
0.13370676338672638,
-0.16643162071704865,
0.42479491233825684,
0.15781770646572113,
-0.29900965094566345,
0.21735411882400513,
-0.22110317647457123,
-0.16945402324199677,
-0.11032284796237946,
0.3430173397064209,
-0.035884447395801544,
0.15076857805252075,
-0.20103763043880463,
0.11016561090946198,
0.30870676040649414,
-0.08516736328601837,
0.34775620698928833,
-0.18618904054164886,
0.18910938501358032,
-0.0007314570248126984,
-0.3044084310531616,
0.13817815482616425,
0.02025223895907402,
0.5254163146018982,
0.08200759440660477,
-0.0902392789721489,
-0.19165243208408356,
0.00990140438079834,
0.1517145037651062,
0.05949242413043976,
-0.2303529977798462,
0.23962156474590302,
-0.02830677479505539,
0.09409943968057632,
0.14380121231079102,
0.14520759880542755,
0.14555108547210693,
0.058015819638967514,
-0.210647314786911,
-0.42655301094055176,
-0.5453658699989319,
-0.03696596249938011,
0.18821647763252258,
-0.17450733482837677,
-0.20777542889118195,
0.12840624153614044,
-0.1685970425605774,
-0.28131890296936035,
-0.022207774221897125,
0.2555297911167145,
0.13854767382144928,
0.23410430550575256,
-0.12838178873062134,
0.36517876386642456,
-0.19674043357372284,
-0.5338388085365295,
-0.03807579725980759,
0.03938152268528938,
-0.3654855787754059,
-0.13778814673423767,
-0.005211923271417618,
-0.45652228593826294,
0.06425666809082031,
0.05858837813138962,
0.15915653109550476,
0.055625878274440765,
-0.09158355742692947,
-0.20553648471832275,
0.018145836889743805,
-0.007381375879049301,
0.0036136656999588013,
0.12523001432418823,
0.05198821425437927,
-0.42628198862075806,
0.04948776215314865,
0.17069393396377563,
-0.5107907652854919,
-0.08189944177865982,
-0.017824256792664528,
0.08872995525598526,
-0.37794965505599976,
-0.27989882230758667,
-0.31810563802719116,
0.22192122042179108,
0.1416943371295929,
0.15098892152309418,
-0.04851777106523514,
0.04488881304860115,
-0.10759098827838898,
0.04491569474339485,
0.12740515172481537,
0.2595312297344208,
-0.3468031585216522,
-0.07949846982955933,
-0.10548032075166702,
-0.07666978240013123,
0.5139887928962708,
0.23545506596565247,
0.12134990096092224,
0.310549259185791,
-0.2164057195186615,
0.33580291271209717,
0.30071526765823364,
0.020560983568429947,
-0.3883972764015198,
0.1910783350467682,
-0.24110396206378937,
0.07727698236703873,
0.36504530906677246,
-0.2843017280101776,
0.482940137386322,
-0.03584888204932213,
-0.15603964030742645,
0.25453421473503113,
0.004630178213119507,
-0.022688796743750572,
-0.22363470494747162,
-0.1685233861207962,
0.36419594287872314,
0.19938631355762482,
0.12779034674167633,
0.005489848554134369,
0.3348487317562103,
-0.30711618065834045,
0.3672357499599457,
-0.1365089863538742,
0.10303857177495956,
0.30067169666290283,
-0.14510945975780487,
0.02957453578710556,
0.2513178288936615,
0.14092916250228882,
0.2360232174396515,
0.14195799827575684,
0.14405688643455505,
0.2139594554901123,
-0.4653065800666809,
-0.11041052639484406,
-0.3585263788700104,
-0.17405179142951965,
-0.34952589869499207,
-0.09025999903678894,
-0.02310987189412117,
0.42708757519721985,
-0.3405991494655609,
0.23143400251865387,
0.1281868815422058,
-0.06650988757610321,
-0.2527073323726654,
0.06143321841955185,
-0.348014235496521,
0.35824328660964966,
-0.17450618743896484,
0.04665713384747505,
-0.1712275594472885,
-0.029898785054683685,
0.27368754148483276,
-0.13681837916374207,
-0.32520976662635803,
0.2541186213493347,
0.1355694830417633,
0.21741168200969696,
0.3459720313549042,
-0.05776214599609375,
-0.00570819154381752,
-0.29889070987701416,
0.032384101301431656,
0.34651827812194824,
-0.045923106372356415,
0.22032490372657776,
-0.07693793624639511,
0.011254064738750458,
-0.0712677538394928,
0.15666283667087555,
-0.16569839417934418,
0.14309516549110413,
0.5874063968658447,
-0.02127254381775856,
0.019937435165047646,
-0.3726332485675812,
0.597362756729126,
0.3497019112110138,
0.11321353912353516,
-0.09286823868751526,
-0.2530006170272827,
0.0461188443005085,
0.9561505913734436,
-0.04527094215154648,
-0.14688608050346375,
0.2767125070095062,
0.01625765487551689,
-0.07653260976076126,
0.266647607088089,
0.7662415504455566,
0.2360616773366928,
0.16479268670082092,
0.15007606148719788,
0.07724933326244354,
0.26637277007102966,
-0.09804842621088028,
0.228441059589386,
0.0029132887721061707,
-0.0058332872577011585,
0.3351011276245117,
-0.12437229603528976,
-0.046012766659259796,
-0.6082170009613037,
0.015693042427301407,
0.37148863077163696,
0.2983059287071228,
-0.2663041651248932,
-0.051812827587127686,
-0.5283339023590088,
-0.4131316840648651,
-0.3592517673969269,
0.012746277265250683,
-0.3521210253238678,
-0.27720674872398376,
0.06434060633182526,
-0.030901040881872177,
-0.20057114958763123,
0.3652448058128357,
0.20456412434577942,
0.020931735634803772,
-0.3021681308746338,
0.16105258464813232,
0.01857224851846695,
-0.08366608619689941,
-0.07048818469047546,
-0.028315545991063118,
0.30233234167099,
-0.13780876994132996,
0.2684095799922943,
-0.6481301188468933,
0.03504808992147446,
-0.4258236885070801,
-0.28294625878334045,
0.3795332908630371,
-0.17968589067459106,
0.06204129755496979,
0.027098439633846283,
0.10644824057817459,
0.2873873710632324,
-0.0877714604139328,
0.06370198726654053,
0.08835268765687943,
-0.15576691925525665,
0.28875234723091125,
0.022156791761517525,
-0.32869595289230347,
-0.28256210684776306,
-0.19414767622947693,
-0.3095419406890869,
-0.19203728437423706,
0.04842885583639145,
-0.0980326384305954,
0.03503391891717911,
-0.03591184690594673,
-0.10157378762960434,
-0.03644406050443649,
-0.42701032757759094,
0.026270559057593346,
-0.3876866400241852,
-0.43097132444381714,
0.49440503120422363,
-0.21538959443569183,
-0.3840171992778778,
0.2532361149787903,
0.06682747602462769,
-0.041251372545957565,
0.1919611543416977,
-0.2431669533252716,
-0.16600623726844788,
-0.03447865694761276,
0.0820004940032959,
-0.06422029435634613,
0.014812936075031757,
0.2772649824619293,
-0.04545530304312706,
0.14614629745483398,
-0.2675054669380188,
0.022538721561431885,
0.21059340238571167,
0.052975088357925415,
0.4725874364376068,
-0.03693193197250366,
0.3870813250541687,
0.18984097242355347,
0.27248314023017883,
0.1048540323972702,
0.3931888937950134,
0.4235427677631378,
-0.10709046572446823,
0.2925907075405121,
0.10486408323049545,
-0.13612745702266693,
0.3163042366504669,
-0.025572046637535095,
-0.20195013284683228,
0.4505534768104553,
0.025836292654275894,
0.18538425862789154,
0.011049076914787292,
0.07149535417556763,
-0.2869701087474823,
-0.2290482521057129,
-0.1794337034225464,
0.2874699831008911,
0.12253629416227341,
0.05812707915902138,
0.4384048581123352,
-0.04378671944141388,
-0.14917021989822388,
0.05421581491827965,
0.2550427317619324,
-0.06513529270887375,
-0.000989409047178924,
-0.5045739412307739,
-0.0058396439999341965,
-0.5904974341392517,
0.3798986077308655,
0.17091454565525055,
0.0999058410525322,
-0.028188152238726616,
0.1848994493484497,
0.22324517369270325,
0.021765578538179398,
0.7502161264419556,
-0.18092317879199982,
0.12863609194755554,
-0.1337902545928955,
0.16021870076656342,
-0.16450831294059753,
-0.024848924949765205,
-0.2441488355398178,
0.02190975286066532,
-0.31289225816726685,
-0.08801068365573883,
-0.2852088510990143,
-0.20858368277549744,
0.031134966760873795,
0.17652538418769836,
-0.1356046050786972,
-0.1343204528093338,
0.03630981221795082,
-0.26391851902008057,
-0.20066452026367188,
-0.3505539298057556,
0.015093734487891197,
0.08547894656658173,
-0.13028240203857422,
0.28577721118927,
0.24343253672122955,
0.3432406485080719,
0.12239822745323181,
0.15781699120998383,
0.5039724111557007,
0.27547580003738403,
-0.017420552670955658,
0.1702919453382492,
0.22257964313030243,
0.2749822735786438,
0.7140535116195679,
-0.3364829123020172,
-0.7883481383323669,
-0.16241082549095154,
-0.46901246905326843,
0.07859358191490173,
0.30049505829811096,
-0.22548344731330872,
0.2912290394306183,
-0.01851513609290123,
0.2862786650657654,
-0.3011507987976074,
0.30551931262016296,
0.6851489543914795,
0.18367557227611542,
-0.19495134055614471,
-0.3944381773471832,
0.13537487387657166,
-0.0076387012377381325,
-0.026969067752361298,
0.1859571486711502,
0.3971891403198242,
-0.3146187961101532,
-0.11036501079797745,
-0.13675031065940857,
0.9808915853500366,
0.22014355659484863,
0.14270539581775665,
0.24715691804885864,
-0.1245817244052887,
-0.0675741657614708,
0.10778144001960754,
-0.1488245576620102,
-0.02534734457731247,
-0.338621586561203,
-0.12853097915649414,
0.28434523940086365,
0.2904392182826996,
-0.02072151005268097,
-0.19386202096939087,
0.21953976154327393,
0.0694451630115509,
0.20762401819229126,
0.0890905037522316,
0.1955997794866562,
-0.007139952853322029,
-0.3023872673511505,
-0.1036229208111763,
0.06851901113986969,
-0.2875322699546814,
-0.08451321721076965,
0.04467364028096199,
-0.1531125009059906,
0.20400503277778625,
-0.05406934395432472,
-0.08490103483200073,
0.0752287283539772,
-0.22788622975349426,
-0.1498848795890808,
-0.30549192428588867,
-0.3530423045158386,
0.1421017348766327,
0.4238582253456116,
0.1849912405014038,
0.004362020641565323,
-0.21090729534626007,
0.18751157820224762,
0.004836536943912506,
0.10231000185012817,
0.13483485579490662,
-0.07570423930883408,
-0.018723534420132637,
-0.15980610251426697,
-0.1291496902704239,
-0.24553734064102173,
0.05083503946661949,
0.01894223690032959,
0.1024651825428009,
-0.30884772539138794,
0.12863625586032867,
-0.0781456008553505,
-0.13556398451328278,
-0.11883552372455597,
-0.07722604274749756,
-0.1088891327381134,
0.035042956471443176,
0.0037497878074645996,
-0.0899030938744545,
-0.008854739367961884,
-0.2936951220035553,
-0.20109975337982178,
-0.09393484890460968,
0.3099522888660431,
-0.31560826301574707,
-0.00513172522187233,
0.5502911806106567,
0.03137427195906639,
-0.3494442105293274,
-0.013831276446580887,
0.13401970267295837,
-0.24449530243873596,
-0.5720967054367065,
-0.06442692875862122,
-0.1157056912779808,
-0.13691841065883636,
-0.20808960497379303,
0.058041252195835114,
0.17400966584682465,
-0.26821911334991455,
-0.07758677005767822,
-0.2690684497356415,
-0.20432083308696747,
0.23109009861946106,
0.12345433235168457,
-0.37785419821739197,
-0.08188703656196594,
-0.11948558688163757,
-0.06273673474788666,
-0.4221181571483612,
-0.22154289484024048,
0.11222913861274719,
0.21836654841899872,
0.18003958463668823,
0.2708875238895416,
0.01658577099442482,
0.359424889087677,
-0.4861326217651367,
0.03626677393913269,
0.0704069584608078,
-0.14075519144535065,
-0.029302168637514114,
-0.23270872235298157,
0.16749359667301178,
0.06248846277594566,
-0.20917737483978271,
0.4300307333469391,
-0.3383216857910156,
-0.20338980853557587,
-0.20103244483470917,
-0.11763432621955872,
0.5537801384925842,
0.03656238690018654,
0.24519021809101105,
0.26961082220077515,
0.034198496490716934,
-0.06388317048549652,
-0.09691807627677917,
0.0815865695476532,
0.3419831693172455,
-0.11877036094665527,
0.11624324321746826,
-0.15165968239307404,
0.01392538845539093,
-0.17925231158733368,
0.13296084105968475,
-0.003823406994342804,
0.26722192764282227,
0.3168160915374756,
-0.2184521108865738,
0.5164726972579956,
0.19767838716506958,
0.4690106213092804,
0.4342864453792572,
-0.28996747732162476,
-0.17102110385894775,
0.5425940155982971,
0.05858475714921951,
-0.334992915391922,
-0.20977525413036346,
0.20016233623027802,
-0.025292403995990753,
-0.042125552892684937,
0.04084744304418564,
-0.1817985475063324,
0.1287735551595688,
-0.004145972430706024,
0.00683453306555748,
0.10993938893079758,
0.2801910638809204,
0.3432064652442932,
0.630468487739563,
-0.0695747509598732,
0.3620639145374298,
0.18397626280784607,
0.22534513473510742,
-0.17419373989105225,
0.3262521028518677,
-0.40699470043182373,
0.2104802131652832,
0.11268897354602814,
0.26056191325187683,
0.19003739953041077,
-0.3126920759677887,
0.23572298884391785,
-0.17900362610816956,
-0.18041807413101196,
0.37517571449279785,
0.31933867931365967,
0.28978973627090454,
0.07771866023540497,
-0.21340709924697876,
-0.30370867252349854,
0.12156099081039429,
0.02179110422730446,
0.04742412269115448,
-0.28755202889442444,
-0.07519669830799103,
-0.2868187427520752,
0.19295240938663483,
-0.22926288843154907,
-0.17962132394313812,
0.00922103226184845,
0.16155558824539185,
-0.2019181102514267,
-0.283304899930954,
-0.14001139998435974,
-0.20839139819145203,
0.28032130002975464,
-0.2840459942817688,
0.3779788911342621,
0.2955922484397888,
0.0536687895655632,
0.5003990530967712,
0.13138577342033386,
0.3050940930843353,
0.18184161186218262,
-0.017072264105081558,
-0.09628104418516159,
-0.10289724171161652,
-0.041092563420534134,
0.14939069747924805,
0.14506131410598755,
0.11887563765048981,
0.29671457409858704,
0.3281714916229248,
0.010087287053465843,
-0.21089760959148407,
0.24874886870384216,
0.2932530641555786,
0.2070382535457611,
0.13265438377857208,
0.13231389224529266,
0.05991324037313461,
0.2510516941547394,
-0.4331423044204712,
-0.2668258547782898,
-0.44745948910713196,
-0.01873154565691948,
0.3301756978034973,
0.04949598014354706,
0.07525987178087234,
-0.08681636303663254,
0.029334966093301773,
0.037107545882463455,
0.3455934524536133,
0.35961127281188965,
-0.12040489166975021,
-0.08144941180944443,
-0.23539963364601135,
-0.7208127379417419,
0.13301002979278564,
0.08499489724636078,
-0.25906485319137573,
0.09407109767198563,
-0.31648674607276917,
0.22624191641807556,
0.22134189307689667,
0.37459325790405273,
0.3928898572921753,
0.09475208073854446,
0.3291260302066803,
-0.24796025454998016,
-0.26844847202301025,
0.24208636581897736,
0.17604921758174896,
0.021890271455049515,
-0.2965035140514374,
0.23464179039001465,
-0.10185355693101883,
-0.05791415646672249,
0.05818075314164162,
0.168212428689003,
-0.35602277517318726,
-0.46188661456108093,
0.1792624592781067,
0.06915305554866791,
0.28394466638565063,
-0.351473867893219,
-0.02503025531768799,
0.04742175340652466,
-0.183127760887146,
-0.4522087872028351,
0.48167499899864197,
-0.023781146854162216,
0.36138716340065,
-0.098997563123703,
-0.011942509561777115,
-0.20310518145561218,
0.0400155633687973,
-0.24787916243076324,
0.02620067074894905,
-0.5233532786369324,
0.35252732038497925,
0.09240039438009262,
-0.024291779845952988,
0.12862810492515564,
0.3078553378582001,
-0.041729725897312164,
0.1256515085697174,
-0.24845857918262482,
-0.2178986370563507,
0.6053524017333984,
-0.32919779419898987,
-0.1927514672279358,
0.07758238166570663,
-0.0651622861623764,
0.045822832733392715,
-0.20909163355827332,
-0.26910555362701416,
-0.022769905626773834,
0.10863140225410461,
-0.13221225142478943,
-0.1374465525150299,
0.2489766627550125,
-0.3479018211364746,
0.00916564092040062,
0.11306846141815186,
0.3266822397708893,
0.38280177116394043,
-0.38845205307006836,
0.236032634973526,
-0.27212804555892944
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | @mariosasko thank you for your reply. I couldn't reproduce error showed by @severo either on Ubuntu 20.04.3 LTS, Windows 10 and Google Colab environments. But trying to avoid using os.walk(topdown=False) and Path.rename(), In _split_generators I replaced
```
def decode_file_names(folder):
for root, dirs, files in os.walk(folder, topdown=False):
root = Path(root)
for file in files:
old_name = root / Path(file)
new_name = root / Path(
file.encode('cp437').decode('cp866'))
old_name.rename(new_name)
for dir in dirs:
old_name = root / Path(dir)
new_name = root / Path(dir.encode('cp437').decode('cp866'))
old_name.rename(new_name)
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
decode_file_names(folder)
```
by
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
if not is_url(zip_file):
folder = extract(zip_file)
else:
folder = None
```
and now everything works well except data viewer for "raw_txt" subset: dataset preview on hub shows "No data.". As far as I understand dl_manager.download returns original URL when we are calling datasets.get_dataset_split_names and my suspicions are that dataset viewer can do smth similar. I couldn't find information about how it works. I would be very grateful, if you could tell me how to fix this) | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 213 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
@mariosasko thank you for your reply. I couldn't reproduce error showed by @severo either on Ubuntu 20.04.3 LTS, Windows 10 and Google Colab environments. But trying to avoid using os.walk(topdown=False) and Path.rename(), In _split_generators I replaced
```
def decode_file_names(folder):
for root, dirs, files in os.walk(folder, topdown=False):
root = Path(root)
for file in files:
old_name = root / Path(file)
new_name = root / Path(
file.encode('cp437').decode('cp866'))
old_name.rename(new_name)
for dir in dirs:
old_name = root / Path(dir)
new_name = root / Path(dir.encode('cp437').decode('cp866'))
old_name.rename(new_name)
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
decode_file_names(folder)
```
by
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
if not is_url(zip_file):
folder = extract(zip_file)
else:
folder = None
```
and now everything works well except data viewer for "raw_txt" subset: dataset preview on hub shows "No data.". As far as I understand dl_manager.download returns original URL when we are calling datasets.get_dataset_split_names and my suspicions are that dataset viewer can do smth similar. I couldn't find information about how it works. I would be very grateful, if you could tell me how to fix this) | [
-0.0071324072778224945,
0.07379628717899323,
0.03285996615886688,
0.38998472690582275,
0.4107303023338318,
-0.19134485721588135,
-0.0048409514129161835,
0.20068782567977905,
-0.2905465364456177,
0.3830554485321045,
-0.20886541903018951,
0.4631149172782898,
0.0013724379241466522,
0.1579345166683197,
-0.015734795480966568,
-0.28025394678115845,
0.1035856083035469,
-0.10779653489589691,
-0.08903133869171143,
-0.23400813341140747,
-0.36846181750297546,
0.45256710052490234,
-0.09147748351097107,
-0.08852210640907288,
-0.12203022837638855,
0.01766299456357956,
0.07667836546897888,
-0.030945107340812683,
-0.47778555750846863,
-0.2944445312023163,
-0.30703872442245483,
0.043057166039943695,
0.24053353071212769,
0.5546022653579712,
-0.0001271433720830828,
-0.06673672795295715,
0.05141763389110565,
-0.17169028520584106,
-0.11576974391937256,
-0.2436826378107071,
-0.17718622088432312,
-0.25932377576828003,
-0.2116045504808426,
-0.30956435203552246,
0.18636229634284973,
-0.36199259757995605,
0.10162907093763351,
0.023300006985664368,
0.3119701147079468,
0.5725483298301697,
0.04410649091005325,
0.16806869208812714,
-0.043924253433942795,
-0.019266070798039436,
0.2510876953601837,
0.1433195173740387,
-0.13309961557388306,
0.42251625657081604,
0.0774061307311058,
0.3779217302799225,
-0.23734480142593384,
0.2310561090707779,
-0.044277388602495193,
-0.08307419717311859,
-0.23115834593772888,
0.2510744631290436,
0.01275169849395752,
-0.5080263614654541,
0.13731232285499573,
0.2749411165714264,
0.26636749505996704,
-0.025147132575511932,
-0.2218252271413803,
-0.22811734676361084,
0.04689093306660652,
-0.3440749943256378,
0.4557865262031555,
0.176693856716156,
-0.34679967164993286,
0.21668562293052673,
-0.17815011739730835,
0.0038659030105918646,
-0.004662156105041504,
0.22497467696666718,
-0.068830706179142,
0.30343517661094666,
-0.16985081136226654,
0.12026476860046387,
0.2042810022830963,
-0.000046856701374053955,
0.5831331014633179,
-0.193008154630661,
0.22255074977874756,
-0.06330721080303192,
-0.18677635490894318,
0.12275087833404541,
-0.14231786131858826,
0.2795133590698242,
0.05290190130472183,
-0.014589082449674606,
-0.10503916442394257,
-0.05709127336740494,
0.20712243020534515,
0.03517980873584747,
-0.1603149026632309,
0.2092127799987793,
-0.0015936344861984253,
0.11614082008600235,
0.09325549006462097,
0.09647216647863388,
0.053820040076971054,
0.07879537343978882,
-0.11414298415184021,
-0.44009652733802795,
-0.33773279190063477,
0.08867432922124863,
0.19336996972560883,
-0.07258071005344391,
-0.2282540202140808,
-0.0338977612555027,
-0.42554599046707153,
-0.37149178981781006,
0.016715019941329956,
0.2259729504585266,
0.20813585817813873,
0.2655954957008362,
-0.20211286842823029,
0.3242787718772888,
-0.14346586167812347,
-0.5529516935348511,
0.032155390828847885,
0.1161399781703949,
-0.3351186215877533,
-0.1444227248430252,
0.04647335037589073,
-0.2680356502532959,
0.0406755656003952,
0.12055093795061111,
0.15998217463493347,
-0.00357925146818161,
0.12022782862186432,
-0.27746009826660156,
0.1930241584777832,
-0.033381830900907516,
0.14236445724964142,
0.09557895362377167,
0.009263038635253906,
-0.4627193212509155,
0.03723064064979553,
0.14952802658081055,
-0.5419949889183044,
-0.0839519128203392,
0.004288088530302048,
0.00561746908351779,
-0.25395673513412476,
-0.1687719225883484,
-0.11430869251489639,
0.22335803508758545,
0.19357246160507202,
0.2381436824798584,
-0.006380341947078705,
0.07074324786663055,
-0.04783729091286659,
-0.03180686756968498,
0.08412589132785797,
0.2439766526222229,
-0.4430975914001465,
-0.09507261216640472,
-0.1099996268749237,
0.07631172984838486,
0.5766651034355164,
0.15482337772846222,
0.05153147876262665,
0.4858476519584656,
-0.21456223726272583,
0.25582677125930786,
0.3731139898300171,
0.06059441342949867,
-0.43836113810539246,
0.14722903072834015,
-0.17383798956871033,
0.09599862992763519,
0.42224860191345215,
-0.2871468961238861,
0.42853447794914246,
-0.03579550236463547,
-0.1141057163476944,
0.20041577517986298,
0.0890965536236763,
-0.032156169414520264,
-0.3127562701702118,
-0.05444323644042015,
0.3444664478302002,
0.1059567779302597,
0.18760108947753906,
-0.07079979032278061,
0.2703215479850769,
-0.3578226864337921,
0.3044784963130951,
-0.19867360591888428,
0.0848587304353714,
0.32273566722869873,
-0.21696408092975616,
-0.014161594212055206,
0.3221379220485687,
0.29586148262023926,
0.13213276863098145,
0.15206623077392578,
-0.18291476368904114,
0.23742134869098663,
-0.5487123131752014,
-0.11903128772974014,
-0.365787535905838,
-0.17611172795295715,
-0.34546658396720886,
-0.180991992354393,
-0.03459649160504341,
0.3858049809932709,
-0.24685145914554596,
0.29430094361305237,
0.0970841646194458,
-0.0028949473053216934,
-0.06758130341768265,
0.1817253977060318,
-0.2151922881603241,
0.37535446882247925,
-0.13836146891117096,
-0.05854799598455429,
-0.23098686337471008,
-0.0866447165608406,
0.25129157304763794,
-0.19068515300750732,
-0.37152788043022156,
0.1861397922039032,
0.08821860700845718,
0.09741183370351791,
0.16318240761756897,
-0.15853701531887054,
0.024732638150453568,
-0.17047719657421112,
0.054535944014787674,
0.2540775239467621,
-0.023092951625585556,
0.25887587666511536,
-0.014771878719329834,
0.20752915740013123,
-0.05025428906083107,
0.09892836213111877,
-0.21764050424098969,
0.14607027173042297,
0.5255629420280457,
-0.15624180436134338,
0.05373445153236389,
-0.3889758288860321,
0.401371568441391,
0.24505513906478882,
0.21455983817577362,
-0.03096103109419346,
-0.0916176363825798,
0.11145611107349396,
1.0158663988113403,
0.00797494500875473,
-0.06863371282815933,
0.13421614468097687,
0.07051032036542892,
-0.04561353102326393,
0.15942451357841492,
0.9724321365356445,
0.23540380597114563,
0.04769916459918022,
0.180702805519104,
0.10473249107599258,
0.26109087467193604,
-0.03637903928756714,
0.2914983630180359,
0.09045803546905518,
-0.05251699686050415,
0.3433874845504761,
-0.18312197923660278,
0.005774782970547676,
-0.5644635558128357,
-0.012589704245328903,
0.5315348505973816,
0.3596454858779907,
-0.23678477108478546,
0.03583649545907974,
-0.44559407234191895,
-0.4992753863334656,
-0.3351806104183197,
0.07293140143156052,
-0.2546515166759491,
-0.32993680238723755,
0.030515415593981743,
-0.152133509516716,
-0.1452808976173401,
0.4360336363315582,
0.28362590074539185,
-0.11047761142253876,
-0.26733940839767456,
0.10462480783462524,
0.01316632330417633,
-0.024675846099853516,
0.050021953880786896,
-0.09002116322517395,
0.3189716339111328,
-0.18454036116600037,
0.22511760890483856,
-0.7016922831535339,
0.04058694839477539,
-0.40092942118644714,
-0.34169548749923706,
0.5162804126739502,
-0.25697147846221924,
-0.020041750743985176,
0.09819319099187851,
-0.08411052823066711,
0.09796875715255737,
-0.19576966762542725,
0.06755378097295761,
0.15896092355251312,
-0.13628855347633362,
0.23076561093330383,
-0.009777931496500969,
-0.3251551687717438,
-0.28005218505859375,
-0.21366718411445618,
-0.2513369023799896,
-0.14902859926223755,
-0.03509067744016647,
-0.020187703892588615,
0.09735701233148575,
0.006538355257362127,
-0.1814926266670227,
-0.013622472062706947,
-0.36266830563545227,
0.004700977820903063,
-0.2824685871601105,
-0.47947996854782104,
0.4352337121963501,
-0.20474489033222198,
-0.19461050629615784,
0.15905539691448212,
-0.12687605619430542,
0.09213993698358536,
0.18309085071086884,
-0.13365934789180756,
-0.16173413395881653,
-0.1973952054977417,
0.18710766732692719,
0.03321920335292816,
0.09372369199991226,
0.25153976678848267,
0.08417729288339615,
0.2107263058423996,
-0.15689513087272644,
0.051155272871255875,
0.3294113278388977,
0.01715049147605896,
0.4416453540325165,
0.10006088018417358,
0.2737337052822113,
0.21453770995140076,
0.28062522411346436,
0.07792222499847412,
0.4327832758426666,
0.41005998849868774,
-0.05326497554779053,
0.2681540846824646,
0.10275077074766159,
-0.13757199048995972,
0.17084239423274994,
-0.03833930194377899,
-0.1436389684677124,
0.3353773355484009,
-0.0822751596570015,
0.1006329208612442,
-0.010213933885097504,
0.02304460108280182,
-0.42093220353126526,
-0.36575809121131897,
-0.03334639221429825,
0.20778369903564453,
0.10023022443056107,
0.034113138914108276,
0.38903799653053284,
-0.13881810009479523,
-0.05722469463944435,
0.010990001261234283,
0.1803928017616272,
0.01076287031173706,
-0.009600313380360603,
-0.5362198948860168,
0.021813275292515755,
-0.6381354928016663,
0.3619736433029175,
0.3615218698978424,
0.015384620055556297,
0.06488093733787537,
0.13750708103179932,
0.21767497062683105,
-0.040559157729148865,
0.639054000377655,
-0.24515660107135773,
0.010698646306991577,
0.048855993896722794,
0.014499776065349579,
-0.026803044602274895,
-0.06222068518400192,
-0.34565505385398865,
0.020677484571933746,
-0.16373211145401,
-0.05999034643173218,
-0.3017037808895111,
-0.31198933720588684,
0.09454246610403061,
0.22141803801059723,
-0.1584596335887909,
-0.028465058654546738,
0.13250279426574707,
-0.3892765939235687,
-0.20276525616645813,
-0.3837605118751526,
0.10301528126001358,
0.11782051622867584,
-0.09998393803834915,
0.22981686890125275,
0.1819899082183838,
0.1672661304473877,
0.1703496277332306,
0.2415173202753067,
0.5509213805198669,
0.1601201891899109,
0.027266524732112885,
-0.03252296894788742,
0.24957150220870972,
0.1373775452375412,
0.5696815252304077,
-0.48994651436805725,
-0.7013700604438782,
-0.22854650020599365,
-0.578527569770813,
0.23016712069511414,
0.3051859140396118,
-0.3561255633831024,
0.28649404644966125,
-0.27771177887916565,
0.2895662486553192,
-0.1071934849023819,
0.2460150271654129,
0.6575931310653687,
0.1942521035671234,
-0.16957996785640717,
-0.3574034869670868,
0.11807787418365479,
0.10468949377536774,
-0.05410411208868027,
0.18978263437747955,
0.2635202407836914,
-0.2779555916786194,
-0.08628620952367783,
-0.07092399150133133,
0.9641128182411194,
0.2262699455022812,
0.0734260156750679,
0.32698237895965576,
0.04451955109834671,
0.0805739015340805,
0.11905735731124878,
-0.02167516201734543,
-0.15201987326145172,
-0.3962274491786957,
-0.121976837515831,
0.2009737491607666,
0.20187905430793762,
0.020475082099437714,
-0.3008056879043579,
0.20774848759174347,
-0.056251030415296555,
0.1794324368238449,
-0.010513244196772575,
0.1787700653076172,
-0.16836613416671753,
-0.27886784076690674,
-0.0677691400051117,
-0.06472045928239822,
-0.23239164054393768,
-0.06543023884296417,
-0.015238074585795403,
-0.2907083034515381,
0.042570244520902634,
-0.11091135442256927,
0.018205516040325165,
0.06308893114328384,
-0.33236443996429443,
-0.04308854043483734,
-0.24182212352752686,
-0.4783514142036438,
0.09321855008602142,
0.43547943234443665,
0.3225811719894409,
0.06095346808433533,
-0.026612022891640663,
0.10150820016860962,
0.023840676993131638,
0.09539181739091873,
0.2203109860420227,
-0.0323651060461998,
0.031411465257406235,
-0.1328999400138855,
-0.14976079761981964,
-0.2397066056728363,
-0.010321902111172676,
0.00280829519033432,
0.12168088555335999,
-0.25957149267196655,
0.19049328565597534,
-0.17632421851158142,
-0.04128480702638626,
-0.022505924105644226,
-0.20450733602046967,
-0.12776793539524078,
-0.021065086126327515,
-0.035347118973731995,
-0.09365317970514297,
0.14083200693130493,
-0.5424789190292358,
-0.28033870458602905,
-0.054026227444410324,
0.13324952125549316,
-0.21344879269599915,
0.09554101526737213,
0.5592527389526367,
-0.015355147421360016,
-0.2568117380142212,
0.019968543201684952,
0.25598961114883423,
-0.3318978250026703,
-0.7810243368148804,
0.17689968645572662,
-0.12225883454084396,
-0.1204741969704628,
-0.2007748931646347,
0.01901473104953766,
0.1546112298965454,
-0.08386800438165665,
-0.13848407566547394,
-0.27422308921813965,
-0.15662401914596558,
0.1824253797531128,
0.11554192006587982,
-0.3588835895061493,
-0.04832641780376434,
0.004947084002196789,
0.005904290825128555,
-0.4794568121433258,
-0.1664183884859085,
0.24333308637142181,
0.14669936895370483,
0.14775888621807098,
0.32876697182655334,
-0.13926362991333008,
0.34189915657043457,
-0.31488776206970215,
-0.03248942270874977,
0.18727369606494904,
-0.02600802853703499,
-0.004183322191238403,
-0.3580276072025299,
0.1959380954504013,
-0.08216758817434311,
-0.25302040576934814,
0.45986783504486084,
-0.1964423805475235,
-0.1990176886320114,
-0.2060057818889618,
0.01629660278558731,
0.46642428636550903,
0.15931403636932373,
0.4155745804309845,
0.17556871473789215,
0.06987930834293365,
-0.20890139043331146,
-0.09251703321933746,
0.027867183089256287,
0.4064946174621582,
-0.060996122658252716,
0.22635431587696075,
-0.17519253492355347,
0.06040105223655701,
-0.33509737253189087,
0.0871686115860939,
-0.11837722361087799,
0.11854013800621033,
0.338899165391922,
-0.18834011256694794,
0.4382171332836151,
0.12184545397758484,
0.41448765993118286,
0.45403388142585754,
-0.279979407787323,
-0.1918420046567917,
0.49776872992515564,
-0.04436013847589493,
-0.3431408107280731,
-0.2375103086233139,
0.09936952590942383,
0.0482175312936306,
0.027045104652643204,
0.2391166388988495,
-0.12742462754249573,
0.03916952759027481,
-0.04594741761684418,
-0.11113964766263962,
0.22042304277420044,
0.36603766679763794,
0.17177043855190277,
0.8632705211639404,
0.026530686765909195,
0.44223424792289734,
0.22339822351932526,
0.3073441684246063,
-0.13417917490005493,
0.2042236328125,
-0.3505616784095764,
0.21823783218860626,
-0.007733933627605438,
0.25268855690956116,
0.2267543375492096,
-0.24858561158180237,
0.20800428092479706,
-0.025939881801605225,
-0.13993339240550995,
0.30443471670150757,
0.2289699912071228,
0.28551796078681946,
0.10190029442310333,
-0.17081044614315033,
-0.27241215109825134,
0.2976667284965515,
-0.010446026921272278,
0.0550415925681591,
-0.21679788827896118,
-0.07563593238592148,
-0.40309953689575195,
0.19730345904827118,
-0.24772953987121582,
-0.12712471187114716,
-0.013085328042507172,
0.20939642190933228,
-0.06278470158576965,
-0.10587483644485474,
-0.015232272446155548,
-0.1968468725681305,
0.2683790624141693,
-0.3490748107433319,
0.41873055696487427,
0.411476194858551,
0.08204888552427292,
0.26064732670783997,
0.21477554738521576,
0.35119086503982544,
0.21962867677211761,
-0.038958195596933365,
-0.3233444392681122,
-0.1346646100282669,
0.03630736470222473,
0.05857273191213608,
-0.03634554147720337,
0.09734633564949036,
0.14130696654319763,
0.4406399726867676,
-0.0959225744009018,
-0.1618494987487793,
0.04946484416723251,
0.424973726272583,
0.24926738440990448,
0.20216335356235504,
0.2198844999074936,
0.05130017548799515,
0.21421387791633606,
-0.33980652689933777,
-0.2545032203197479,
-0.3962351381778717,
-0.17183928191661835,
0.29641133546829224,
0.022229650989174843,
0.10673779994249344,
-0.08408579975366592,
-0.00012411735951900482,
-0.004359697923064232,
0.25283125042915344,
0.27224719524383545,
-0.22390994429588318,
-0.20381267368793488,
-0.16770774126052856,
-0.6553043723106384,
0.04754311591386795,
0.07840827107429504,
-0.2536344826221466,
0.04018375277519226,
-0.29323816299438477,
0.16170059144496918,
0.3573635220527649,
0.4066309332847595,
0.5689465999603271,
-0.00819607637822628,
0.29119443893432617,
-0.336429625749588,
-0.24247945845127106,
0.3205985426902771,
0.02035548910498619,
-0.02078668400645256,
-0.28948086500167847,
0.2046503871679306,
-0.15011171996593475,
-0.10717498511075974,
0.06783584505319595,
-0.00934700295329094,
-0.16753479838371277,
-0.26281723380088806,
0.0722024217247963,
0.19409148395061493,
0.21390213072299957,
-0.34388861060142517,
-0.07905997335910797,
0.20729005336761475,
-0.14564335346221924,
-0.35110020637512207,
0.46867722272872925,
0.15817345678806305,
0.30375102162361145,
-0.08156883716583252,
0.11525502800941467,
-0.16824786365032196,
0.10137370973825455,
-0.18993952870368958,
0.056200116872787476,
-0.4212379455566406,
0.33475005626678467,
0.14786353707313538,
0.054469890892505646,
0.22846154868602753,
0.39593935012817383,
-0.030025281012058258,
0.21200618147850037,
-0.3067817986011505,
-0.2340005487203598,
0.512091875076294,
-0.21387815475463867,
-0.23323673009872437,
0.09329547733068466,
-0.13467994332313538,
0.051159799098968506,
-0.15310299396514893,
-0.06858718395233154,
-0.13038060069084167,
0.13805651664733887,
-0.1812778115272522,
-0.19075924158096313,
0.22728413343429565,
-0.20134733617305756,
-0.01779555156826973,
0.10923054814338684,
0.25265395641326904,
0.3634468615055084,
-0.3643708825111389,
0.13038605451583862,
-0.10402492433786392
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | This is what I get when I try to stream the `raw_txt` subset:
```python
>>> dset = load_dataset("MalakhovIlya/RuREBus", "raw_txt", split="raw_txt", streaming=True)
>>> next(iter(dset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
StopIteration
```
So there is a bug in your script. | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 44 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
This is what I get when I try to stream the `raw_txt` subset:
```python
>>> dset = load_dataset("MalakhovIlya/RuREBus", "raw_txt", split="raw_txt", streaming=True)
>>> next(iter(dset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
StopIteration
```
So there is a bug in your script. | [
-0.15747085213661194,
-0.11518169939517975,
0.010846074670553207,
0.31411802768707275,
0.31858009099960327,
0.04886949062347412,
-0.07088033854961395,
0.18524374067783356,
-0.03543072193861008,
0.23666661977767944,
-0.027217688038945198,
0.2307993769645691,
0.0007412843406200409,
0.20971982181072235,
0.14225271344184875,
-0.18300747871398926,
0.10443935543298721,
-0.011918112635612488,
-0.1288488507270813,
-0.19224506616592407,
-0.3217930793762207,
0.19879606366157532,
-0.15702295303344727,
-0.13984103500843048,
0.06626641750335693,
0.07247418165206909,
0.12411169707775116,
-0.010276570916175842,
-0.4684956967830658,
-0.39013445377349854,
-0.16301822662353516,
0.06360527873039246,
0.32454514503479004,
0.635413646697998,
-0.00012138938473071903,
-0.11935929208993912,
0.19505804777145386,
-0.1608210951089859,
-0.1546725630760193,
-0.288735032081604,
-0.24184268712997437,
-0.1812973916530609,
-0.13969741761684418,
-0.25337016582489014,
0.15777912735939026,
-0.3997821807861328,
0.2230624109506607,
-0.13668733835220337,
0.218300461769104,
0.6312331557273865,
0.13276012241840363,
0.22550314664840698,
-0.09064342826604843,
-0.028205271810293198,
0.10437973588705063,
0.2417907863855362,
-0.07906454801559448,
0.38037556409835815,
0.060852281749248505,
0.20730413496494293,
-0.17944246530532837,
0.13241758942604065,
-0.12772724032402039,
-0.052133459597826004,
0.018487483263015747,
0.16754639148712158,
-0.09855563193559647,
-0.4249240756034851,
0.15176787972450256,
0.349974662065506,
0.35088202357292175,
-0.11799975484609604,
-0.2161327749490738,
-0.2011636197566986,
0.1280963271856308,
-0.3781498372554779,
0.3022499978542328,
0.2422734647989273,
-0.3619835376739502,
0.18149720132350922,
-0.2672695815563202,
-0.1986813247203827,
-0.1969619244337082,
0.3026139438152313,
0.02357468008995056,
0.2574816346168518,
-0.17428937554359436,
0.11427982151508331,
0.15193404257297516,
0.07811501622200012,
0.43217146396636963,
-0.22489656507968903,
0.2068779617547989,
0.019895218312740326,
-0.2891067564487457,
0.19322949647903442,
-0.07415870577096939,
0.2994580566883087,
0.033310599625110626,
-0.08964243531227112,
-0.04370244964957237,
0.012106023728847504,
0.2495812177658081,
0.059380799531936646,
-0.041735079139471054,
0.22317363321781158,
0.04812886565923691,
0.1515873819589615,
0.06796930730342865,
0.21928857266902924,
0.09377194941043854,
0.07262028008699417,
-0.09691538661718369,
-0.28884264826774597,
-0.276421457529068,
-0.10741143673658371,
0.3075229525566101,
-0.09663862735033035,
-0.21841268241405487,
0.14008064568042755,
-0.28259485960006714,
-0.34305378794670105,
-0.04386688396334648,
0.2016754150390625,
0.09480725973844528,
0.16079246997833252,
-0.1687946319580078,
0.35364145040512085,
-0.21961255371570587,
-0.47596269845962524,
-0.10306783765554428,
0.07081332802772522,
-0.21532371640205383,
-0.1112106665968895,
-0.0370216891169548,
-0.511364758014679,
0.03386718034744263,
0.1453777551651001,
0.18515697121620178,
0.048191286623477936,
0.0877617746591568,
-0.21675609052181244,
0.051079265773296356,
-0.0256161130964756,
0.19479432702064514,
0.18668752908706665,
0.10972326993942261,
-0.44104844331741333,
0.04523497074842453,
0.18749858438968658,
-0.45043402910232544,
-0.07841023802757263,
0.03756634145975113,
0.13618871569633484,
-0.38700181245803833,
-0.2393016517162323,
-0.2970777750015259,
0.19271445274353027,
0.1789909452199936,
0.1128387302160263,
-0.04954705387353897,
-0.05704367160797119,
-0.1650579571723938,
-0.02442283183336258,
0.17470210790634155,
0.4166390895843506,
-0.42705148458480835,
-0.05313514545559883,
-0.16778884828090668,
-0.09281972050666809,
0.5093910098075867,
0.08766715228557587,
0.029437534511089325,
0.4469437599182129,
-0.24162863194942474,
0.3091874122619629,
0.34147319197654724,
-0.028027793392539024,
-0.3607127368450165,
0.19541813433170319,
-0.2727205753326416,
0.2743763327598572,
0.33526694774627686,
-0.17325584590435028,
0.5041682720184326,
-0.06913504749536514,
-0.1294645220041275,
0.18835346400737762,
0.06427403539419174,
-0.07672492414712906,
-0.2012391984462738,
-0.016124418005347252,
0.358953595161438,
0.23988018929958344,
0.11735683679580688,
0.01313328742980957,
0.2514457702636719,
-0.334284245967865,
0.4122951328754425,
-0.09305107593536377,
0.22572433948516846,
0.27958959341049194,
-0.2614387273788452,
0.10434344410896301,
0.2910108268260956,
0.07838968187570572,
0.11410611867904663,
0.09473506361246109,
0.1950410008430481,
0.20436955988407135,
-0.520319402217865,
-0.09204092621803284,
-0.39825159311294556,
-0.1273021697998047,
-0.4165612757205963,
-0.09306293725967407,
0.02200225740671158,
0.504548966884613,
-0.3169500529766083,
0.27400508522987366,
-0.021340981125831604,
0.012951130978763103,
-0.21304097771644592,
0.11645079404115677,
-0.4363681972026825,
0.30481603741645813,
-0.01979305036365986,
-0.06234188377857208,
-0.13986699283123016,
-0.06155029684305191,
0.12794339656829834,
-0.08736150711774826,
-0.37245818972587585,
0.2796904742717743,
0.06491199880838394,
0.24968872964382172,
0.2045261263847351,
-0.15617616474628448,
-0.04398385435342789,
-0.2585625648498535,
0.06894157081842422,
0.4235430359840393,
0.0186404287815094,
0.1451975405216217,
0.020401034504175186,
0.05224689096212387,
-0.1491047441959381,
0.09547341614961624,
-0.1753934621810913,
0.09424276649951935,
0.4620833992958069,
-0.022883465513586998,
-0.07089072465896606,
-0.4041164219379425,
0.613983154296875,
0.19563016295433044,
0.1152399480342865,
-0.11607001721858978,
-0.2584569454193115,
0.07184793055057526,
0.8866943120956421,
-0.07267287373542786,
-0.02011437714099884,
0.28956741094589233,
-0.10334710031747818,
-0.006412060931324959,
0.13202644884586334,
0.8078447580337524,
0.3112744092941284,
0.0674542784690857,
0.12786349654197693,
0.14419643580913544,
0.3456610441207886,
-0.12386202067136765,
0.2318894863128662,
0.049091488122940063,
-0.07178878784179688,
0.27570387721061707,
-0.28629252314567566,
-0.09517910331487656,
-0.4440138638019562,
0.10950559377670288,
0.2657431364059448,
0.3467797636985779,
-0.2494421899318695,
-0.04466579481959343,
-0.4250015318393707,
-0.36544269323349,
-0.4098835289478302,
-0.04460893198847771,
-0.1505107581615448,
-0.27866289019584656,
-0.02119932323694229,
0.0509972870349884,
-0.17987802624702454,
0.27397263050079346,
0.11907395720481873,
-0.07556526362895966,
-0.18286140263080597,
0.01865517348051071,
0.006543301045894623,
-0.19754409790039062,
-0.11749108880758286,
-0.0011857710778713226,
0.26942428946495056,
-0.05354544147849083,
0.3526788651943207,
-0.625647783279419,
-0.002892903983592987,
-0.33471956849098206,
-0.13401323556900024,
0.31134381890296936,
-0.2983701825141907,
0.07351027429103851,
0.036484070122241974,
0.22263912856578827,
0.1432175189256668,
-0.13987886905670166,
0.05100390315055847,
0.04684446007013321,
-0.09750790148973465,
0.3363002836704254,
0.03886588290333748,
-0.3225705325603485,
-0.14865560829639435,
-0.3570612967014313,
-0.3900032937526703,
-0.27061644196510315,
0.029057074338197708,
0.014477796852588654,
0.06385147571563721,
-0.03756580874323845,
-0.09698854386806488,
-0.03703133761882782,
-0.36921024322509766,
0.0821387767791748,
-0.19479341804981232,
-0.40865904092788696,
0.5175427198410034,
-0.2631824016571045,
-0.41411682963371277,
0.24959534406661987,
0.08510202169418335,
0.034539561718702316,
0.22994336485862732,
-0.3259935975074768,
0.0007625184953212738,
-0.029699599370360374,
-0.018879465758800507,
-0.09466120600700378,
0.02149321138858795,
0.18438762426376343,
-0.025798603892326355,
0.2080259770154953,
-0.25450992584228516,
0.07544012367725372,
0.08334486931562424,
-0.14292237162590027,
0.3711532652378082,
0.10856381058692932,
0.45309191942214966,
0.1097395122051239,
0.22748509049415588,
0.29028818011283875,
0.38919731974601746,
0.40612277388572693,
-0.1499275416135788,
0.24466891586780548,
0.04829980432987213,
-0.3315615952014923,
0.20030981302261353,
-0.032404929399490356,
-0.2149510234594345,
0.4137992858886719,
-0.06925491243600845,
0.120185986161232,
-0.10176436603069305,
-0.02907121740281582,
-0.36323288083076477,
-0.2848697900772095,
-0.07224685698747635,
0.24479956924915314,
0.16566793620586395,
-0.00809130072593689,
0.40896183252334595,
-0.07932522147893906,
-0.27663612365722656,
-0.047595322132110596,
0.254024475812912,
-0.03602641075849533,
0.04140188544988632,
-0.5558084845542908,
0.05635145306587219,
-0.47822797298431396,
0.32496005296707153,
0.16447071731090546,
0.18108727037906647,
0.059285517781972885,
0.07288960367441177,
0.2437877506017685,
0.1075441762804985,
0.6438674926757812,
-0.1857610046863556,
0.1251443326473236,
-0.09993450343608856,
0.1296384334564209,
-0.24717235565185547,
-0.02059148997068405,
-0.33479970693588257,
0.25306186079978943,
-0.16721628606319427,
-0.0746258944272995,
-0.2810368239879608,
-0.13862553238868713,
0.09556930512189865,
0.2175486981868744,
-0.09084572643041611,
-0.26703956723213196,
-0.043283216655254364,
-0.23739969730377197,
-0.26323217153549194,
-0.35264402627944946,
0.0013269037008285522,
0.09582372009754181,
-0.14191237092018127,
0.2330218106508255,
0.2831542193889618,
0.21373939514160156,
0.1772199273109436,
0.1134033203125,
0.48342055082321167,
0.20038142800331116,
0.07880730926990509,
0.14667735993862152,
0.1466166377067566,
0.25881555676460266,
0.7168324589729309,
-0.2586173713207245,
-0.9094693064689636,
-0.17207634449005127,
-0.3973718583583832,
0.1979818344116211,
0.21121789515018463,
-0.2630493640899658,
0.34256213903427124,
-0.011071745306253433,
0.24428541958332062,
-0.24326440691947937,
0.2318442016839981,
0.6501177549362183,
0.15157994627952576,
-0.33413955569267273,
-0.5646214485168457,
0.10472548007965088,
-0.07798157632350922,
0.0705985277891159,
0.29056230187416077,
0.19959451258182526,
-0.32876482605934143,
-0.1027572900056839,
-0.23773229122161865,
0.9650912880897522,
0.25926315784454346,
0.1258692443370819,
0.2661348581314087,
-0.08155600726604462,
0.07201657444238663,
0.12921486794948578,
-0.12404888868331909,
-0.1848440319299698,
-0.36383727192878723,
-0.12420299649238586,
0.1682344228029251,
0.20144668221473694,
-0.10443438589572906,
-0.30625635385513306,
0.17658396065235138,
-0.03929395601153374,
0.37660032510757446,
0.03706822916865349,
0.21582451462745667,
-0.17154185473918915,
-0.23542550206184387,
-0.13635537028312683,
0.04480350762605667,
-0.3317669630050659,
-0.024117551743984222,
0.025852326303720474,
-0.17795515060424805,
0.07928235828876495,
-0.04593060910701752,
-0.0911654606461525,
0.0010120756924152374,
-0.15555331110954285,
-0.1729360818862915,
-0.35779038071632385,
-0.47909510135650635,
0.09453529119491577,
0.468097060918808,
0.14898228645324707,
0.06750418990850449,
-0.15891413390636444,
0.09755374491214752,
-0.061897389590740204,
0.026817945763468742,
0.21414504945278168,
-0.06853645294904709,
0.02556053176522255,
-0.10865199565887451,
-0.20709794759750366,
-0.03816673904657364,
0.11434716731309891,
-0.05870174616575241,
0.00857497751712799,
-0.2114267200231552,
0.18042969703674316,
-0.2480352520942688,
-0.21219898760318756,
-0.205776184797287,
-0.05466321110725403,
-0.05918976664543152,
0.06521591544151306,
0.014648694545030594,
-0.1045149490237236,
-0.007875040173530579,
-0.38388726115226746,
-0.20733334124088287,
-0.11065129935741425,
0.3435470759868622,
-0.15544167160987854,
-0.05588216334581375,
0.595771312713623,
0.23064656555652618,
-0.2493445724248886,
-0.010025355964899063,
0.2011953890323639,
-0.12791430950164795,
-0.6036614179611206,
0.018139906227588654,
-0.03660006821155548,
0.05207560956478119,
-0.18026600778102875,
0.027911297976970673,
0.10165977478027344,
-0.19894897937774658,
-0.07576633244752884,
-0.34651368856430054,
-0.20170064270496368,
0.15670107305049896,
0.25601503252983093,
-0.21118424832820892,
0.00907362625002861,
-0.21154054999351501,
-0.05923645198345184,
-0.3227759003639221,
-0.2310989797115326,
-0.014256531372666359,
0.24887430667877197,
0.11687014997005463,
0.35306626558303833,
0.09593327343463898,
0.3090628683567047,
-0.35884925723075867,
0.06512310355901718,
0.08669064939022064,
-0.1626519113779068,
-0.07330779731273651,
-0.1601979285478592,
0.13052484393119812,
-0.05598515272140503,
-0.29811641573905945,
0.2744232714176178,
-0.3265160918235779,
-0.1703321486711502,
-0.22714900970458984,
0.009164096787571907,
0.4894517660140991,
0.0159304179251194,
0.32037630677223206,
0.35380446910858154,
0.014896158128976822,
-0.16456238925457,
-0.11839276552200317,
-0.12216445803642273,
0.3552318811416626,
-0.11556626111268997,
0.08907471597194672,
-0.01914873905479908,
0.013835273683071136,
-0.2175656408071518,
0.06408777832984924,
0.12449449300765991,
0.24814793467521667,
0.36597883701324463,
-0.29866528511047363,
0.541468620300293,
0.1393689513206482,
0.49457141757011414,
0.5701558589935303,
-0.38290852308273315,
-0.13013817369937897,
0.36397549510002136,
0.08489032834768295,
-0.3070143759250641,
-0.20413458347320557,
0.20933684706687927,
0.04486870393157005,
-0.05603712052106857,
0.10054703801870346,
-0.20466963946819305,
0.06970372796058655,
-0.0564998984336853,
0.055008403956890106,
0.24847735464572906,
0.1658901572227478,
0.3540950417518616,
0.696019172668457,
-0.044750336557626724,
0.2574825882911682,
0.008016882464289665,
0.28629836440086365,
-0.17443862557411194,
0.3906143307685852,
-0.3592519164085388,
0.2524421811103821,
0.17097753286361694,
0.20843946933746338,
0.056201912462711334,
-0.36136412620544434,
0.254873663187027,
-0.016093313694000244,
-0.369144469499588,
0.3978844881057739,
0.26802411675453186,
0.29399317502975464,
0.18480448424816132,
-0.05832403153181076,
-0.31683263182640076,
0.09882111102342606,
0.007182734087109566,
0.14478300511837006,
-0.40036895871162415,
-0.12632986903190613,
-0.2788461148738861,
0.08174450695514679,
-0.17416585981845856,
-0.1620948612689972,
-0.1247272789478302,
0.2541423439979553,
-0.2517872452735901,
-0.1837674230337143,
-0.011331148445606232,
-0.3004755675792694,
0.23768672347068787,
-0.30221107602119446,
0.31811630725860596,
0.3707810044288635,
0.17784367501735687,
0.3954792320728302,
0.1308615803718567,
0.3552415370941162,
0.29523617029190063,
0.014612695202231407,
-0.011621330864727497,
-0.04513510689139366,
-0.1059810072183609,
0.16134917736053467,
0.19665445387363434,
0.07395748794078827,
0.35490837693214417,
0.27074405550956726,
0.05153530836105347,
-0.21838924288749695,
0.29125574231147766,
0.31755802035331726,
0.09460516273975372,
0.009958179667592049,
0.11310047656297684,
0.023047085851430893,
0.13797685503959656,
-0.44509249925613403,
-0.33136606216430664,
-0.5508677363395691,
-0.07254106551408768,
0.5059523582458496,
0.11537761241197586,
0.09339995682239532,
-0.1747710257768631,
0.03453183174133301,
0.05820603296160698,
0.3615587055683136,
0.32834988832473755,
-0.11542925983667374,
-0.1905106157064438,
-0.21643242239952087,
-0.7171670794487,
0.237667977809906,
0.012542050331830978,
-0.33786943554878235,
0.08895047754049301,
-0.3261266350746155,
0.10946332663297653,
0.27752822637557983,
0.28094005584716797,
0.37801051139831543,
0.07420199364423752,
0.39331841468811035,
-0.20925068855285645,
-0.32433944940567017,
0.24071429669857025,
0.20846916735172272,
-0.020517859607934952,
-0.1952458918094635,
0.27546828985214233,
-0.2894401252269745,
-0.00021243467926979065,
-0.0050299037247896194,
0.10441838204860687,
-0.11728496849536896,
-0.374194860458374,
0.22040387988090515,
0.05803642421960831,
0.3723917305469513,
-0.30596238374710083,
-0.04585197940468788,
-0.10642015933990479,
-0.11736524850130081,
-0.39637190103530884,
0.5577189922332764,
0.018007149919867516,
0.38187751173973083,
-0.12058744579553604,
-0.13401800394058228,
-0.18395507335662842,
0.0652175322175026,
-0.2666858434677124,
0.017947262153029442,
-0.4120352566242218,
0.27406853437423706,
0.1636759638786316,
0.029196592047810555,
0.22388656437397003,
0.33626165986061096,
-0.06427600979804993,
0.18062272667884827,
-0.20965641736984253,
-0.2830429971218109,
0.5373704433441162,
-0.36544838547706604,
-0.21582365036010742,
0.08260281383991241,
-0.09169237315654755,
0.02616187557578087,
-0.14924366772174835,
-0.3535962998867035,
0.0597224161028862,
0.20589818060398102,
-0.10622861236333847,
-0.04266340285539627,
0.3426316976547241,
-0.203245609998703,
0.11327426135540009,
0.16747988760471344,
0.3675743639469147,
0.4339289665222168,
-0.35335397720336914,
0.30305489897727966,
-0.24087728559970856
] |
https://github.com/huggingface/datasets/issues/4138 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract() | streaming=True helped me to find solution. I fixed
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
folder = extract(zip_file)
```
by
```
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
path = os.path.join(folder, 'MED_txt/unparsed_txt')
for root, dirs, files in os.walk(path):
decoded_root_name = Path(root).name.encode('cp437').decode('cp866')
```
@mariosasko thank you for your help :) | ## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
| 89 | Incorrect Russian filenames encoding after extraction by datasets.DownloadManager.download_and_extract()
## Dataset viewer issue for 'MalakhovIlya/RuREBus'
**Link:** https://huggingface.co/datasets/MalakhovIlya/RuREBus
**Description**
Using os.walk(topdown=False) in DatasetBuilder causes following error:
Status code: 400
Exception: TypeError
Message: xwalk() got an unexpected keyword argument 'topdown'
Couldn't find where "xwalk" come from. How can I fix this?
Am I the one who added this dataset ? Yes
streaming=True helped me to find solution. I fixed
```
def extract(zip_file_path):
p = Path(zip_file_path)
dest_dir = str(p.parent / 'extracted' / p.stem)
os.makedirs(dest_dir, exist_ok=True)
with zipfile.ZipFile(zip_file_path) as archive:
for file_info in tqdm(archive.infolist(), desc='Extracting'):
filename = file_info.filename.encode('cp437').decode('cp866')
target = os.path.join(dest_dir, *filename.split('/'))
os.makedirs(os.path.dirname(target), exist_ok=True)
if not file_info.is_dir():
with archive.open(file_info) as source, open(target, 'wb') as dest:
shutil.copyfileobj(source, dest)
return dest_dir
zip_file = dl_manager.download(self._RAW_TXT_URLS)['raw_txt']
folder = extract(zip_file)
```
by
```
folder = dl_manager.download_and_extract(self._RAW_TXT_URLS)['raw_txt']
path = os.path.join(folder, 'MED_txt/unparsed_txt')
for root, dirs, files in os.walk(path):
decoded_root_name = Path(root).name.encode('cp437').decode('cp866')
```
@mariosasko thank you for your help :) | [
-0.011979173868894577,
-0.13273920118808746,
0.018450748175382614,
0.40761327743530273,
0.4494684934616089,
-0.18755319714546204,
-0.19433774054050446,
0.18403327465057373,
-0.3235189914703369,
0.2890113592147827,
-0.23194992542266846,
0.4692307114601135,
0.014537203125655651,
0.06918478012084961,
0.06895499676465988,
-0.2021200954914093,
0.042191531509160995,
-0.11885514855384827,
-0.2840289771556854,
-0.2756603956222534,
-0.3234431743621826,
0.42022788524627686,
-0.0857575535774231,
-0.10887999832630157,
-0.007138968911021948,
0.004273097962141037,
0.10093604028224945,
0.05435670167207718,
-0.48236533999443054,
-0.32130593061447144,
-0.2552720606327057,
0.043973084539175034,
0.3227491080760956,
0.6244791746139526,
-0.0001267303596250713,
-0.039636753499507904,
0.013858489692211151,
-0.20857949554920197,
-0.0592680498957634,
-0.25007230043411255,
-0.09820935875177383,
-0.26929721236228943,
-0.2126721441745758,
-0.3065941631793976,
0.09726103395223618,
-0.30183109641075134,
0.061501774936914444,
-0.0012015476822853088,
0.28937864303588867,
0.5623324513435364,
0.0577123798429966,
0.35290178656578064,
-0.04446917772293091,
-0.007006524130702019,
0.07561060786247253,
0.07264324277639389,
-0.09241504967212677,
0.42608651518821716,
0.1812187135219574,
0.2643601596355438,
-0.21583673357963562,
0.31331706047058105,
0.003453487530350685,
-0.09089596569538116,
-0.1550942063331604,
0.1945754438638687,
0.06370634585618973,
-0.5031864643096924,
0.08755940943956375,
0.31297245621681213,
0.25214067101478577,
0.002014055848121643,
-0.3035176396369934,
-0.18384838104248047,
0.009837804362177849,
-0.363525390625,
0.41395774483680725,
0.12173145264387131,
-0.3664693832397461,
0.20971359312534332,
-0.17530563473701477,
-0.026146290823817253,
-0.04851783439517021,
0.27879783511161804,
-0.11213473230600357,
0.3209390640258789,
-0.19620805978775024,
0.07958392798900604,
0.2970086634159088,
-0.037053510546684265,
0.5438112020492554,
-0.16452059149742126,
0.22559873759746552,
-0.008120597340166569,
-0.3005722165107727,
0.06435170024633408,
-0.052648961544036865,
0.3317294120788574,
0.054774343967437744,
0.0081056859344244,
-0.06310641765594482,
-0.02791636809706688,
0.17290283739566803,
-0.054902493953704834,
-0.10753613710403442,
0.2537004053592682,
-0.028345279395580292,
0.16002506017684937,
-0.008527994155883789,
0.18649815022945404,
0.056940656155347824,
0.04128594323992729,
-0.10443010181188583,
-0.4248943626880646,
-0.2493753731250763,
0.063929483294487,
0.24946196377277374,
-0.04568707197904587,
-0.12276376783847809,
0.027372244745492935,
-0.26417645812034607,
-0.3585395812988281,
0.02135220542550087,
0.2522324025630951,
0.13731983304023743,
0.2824690341949463,
-0.23941448330879211,
0.42388027906417847,
-0.14750628173351288,
-0.6078733205795288,
0.001537273172289133,
0.1176358163356781,
-0.2682974338531494,
-0.2911653220653534,
-0.02595418691635132,
-0.35783812403678894,
0.08239931613206863,
0.10348984599113464,
0.2972235083580017,
-0.04239426925778389,
0.12509815394878387,
-0.26643773913383484,
0.234451025724411,
0.03573748096823692,
0.07417574524879456,
0.1178012415766716,
0.06634765863418579,
-0.5515990257263184,
0.04749644547700882,
0.18840321898460388,
-0.44795507192611694,
-0.09107937663793564,
0.04654143005609512,
0.059157613664865494,
-0.30753445625305176,
-0.24467650055885315,
-0.27947932481765747,
0.2319202572107315,
0.12807327508926392,
0.3063010573387146,
0.06252531707286835,
0.03387491777539253,
0.010311316698789597,
-0.017211738973855972,
0.1480499655008316,
0.20629934966564178,
-0.45298516750335693,
-0.02233249694108963,
-0.1961473524570465,
0.020271120592951775,
0.492306113243103,
0.19509412348270416,
-0.00676287105306983,
0.4967125952243805,
-0.21559494733810425,
0.29246485233306885,
0.5003917813301086,
-0.15253137052059174,
-0.5225209593772888,
0.26576703786849976,
-0.19960597157478333,
0.27752360701560974,
0.3743705451488495,
-0.18222415447235107,
0.43635401129722595,
-0.04860763996839523,
-0.09772111475467682,
0.20337629318237305,
0.023366481065750122,
-0.0334346666932106,
-0.24777720868587494,
-0.05153074860572815,
0.3720775842666626,
0.15048283338546753,
0.19810637831687927,
-0.054320476949214935,
0.2195483148097992,
-0.39358851313591003,
0.4012793302536011,
-0.08426390588283539,
0.08750832825899124,
0.3422418236732483,
-0.22179488837718964,
-0.030621133744716644,
0.2455083578824997,
0.18602389097213745,
0.07127632945775986,
0.13904961943626404,
-0.10782653838396072,
0.28588417172431946,
-0.5676737427711487,
-0.11081402003765106,
-0.4102363586425781,
-0.12130635231733322,
-0.428813636302948,
-0.24184149503707886,
-0.02723643183708191,
0.3688046336174011,
-0.22533968091011047,
0.17061440646648407,
0.10069093108177185,
-0.037604786455631256,
-0.05472457781434059,
0.21436156332492828,
-0.27348119020462036,
0.30566754937171936,
-0.09284369647502899,
-0.05848608911037445,
-0.18886536359786987,
-0.07968919724225998,
0.28371456265449524,
-0.15780583024024963,
-0.36959680914878845,
0.21847224235534668,
0.049589965492486954,
0.2391406148672104,
0.2721705734729767,
-0.1720125526189804,
0.004921087995171547,
-0.297503262758255,
0.03338918462395668,
0.42533695697784424,
0.028663288801908493,
0.29116982221603394,
0.010239556431770325,
0.18535947799682617,
0.006663024425506592,
0.018166333436965942,
-0.18888850510120392,
0.1627683788537979,
0.5012881755828857,
-0.11592286825180054,
0.007654011249542236,
-0.3634333610534668,
0.4596068263053894,
0.31120821833610535,
0.20557072758674622,
-0.11066541075706482,
-0.27024441957473755,
0.10415790230035782,
0.8097203373908997,
-0.024897439405322075,
-0.042088136076927185,
0.13085773587226868,
0.07186548411846161,
0.08258494734764099,
0.13153977692127228,
0.8717812895774841,
0.2711850106716156,
0.04194943606853485,
0.2366066724061966,
0.12687824666500092,
0.29888689517974854,
0.016087237745523453,
0.29319560527801514,
0.06828310340642929,
-0.11903335154056549,
0.31901371479034424,
-0.16724738478660583,
0.021539386361837387,
-0.5282708406448364,
0.05124007537961006,
0.38832858204841614,
0.35638055205345154,
-0.22840054333209991,
0.024957148358225822,
-0.4442870318889618,
-0.5738493800163269,
-0.29608598351478577,
-0.05622681602835655,
-0.28572511672973633,
-0.289760559797287,
-0.02853284776210785,
-0.10594500601291656,
-0.1361098736524582,
0.3986574709415436,
0.20890051126480103,
-0.20449672639369965,
-0.26776111125946045,
0.11306825280189514,
0.0036785751581192017,
-0.03741415962576866,
0.07936345040798187,
-0.06770399957895279,
0.22297683358192444,
-0.21627004444599152,
0.26906999945640564,
-0.6482881903648376,
0.054514072835445404,
-0.4231317341327667,
-0.4063555598258972,
0.4086630046367645,
-0.24305497109889984,
0.1328091025352478,
0.07687100768089294,
-0.011569991707801819,
0.15587827563285828,
-0.0980861559510231,
0.09278051555156708,
0.1770409345626831,
-0.09615220129489899,
0.20135755836963654,
0.015323958359658718,
-0.25257545709609985,
-0.19784724712371826,
-0.21358409523963928,
-0.3527282178401947,
-0.2156810462474823,
-0.05127304047346115,
-0.025657720863819122,
0.07890821248292923,
-0.042929116636514664,
-0.2303546667098999,
-0.11219381541013718,
-0.3603486120700836,
0.03173314034938812,
-0.3096546530723572,
-0.538321316242218,
0.4665868580341339,
-0.20792873203754425,
-0.29885563254356384,
0.09918126463890076,
-0.10385028272867203,
0.1643916666507721,
0.13778996467590332,
-0.1712723970413208,
-0.1930757313966751,
-0.10121281445026398,
0.18672890961170197,
-0.028912536799907684,
0.11328703910112381,
0.18926610052585602,
0.022634228691458702,
0.2247789055109024,
-0.19248458743095398,
0.06265918910503387,
0.21087726950645447,
0.02818085066974163,
0.44764965772628784,
-0.03455366566777229,
0.3413601219654083,
0.17391173541545868,
0.2658790349960327,
0.1585356742143631,
0.5255985260009766,
0.4259781837463379,
-0.05041687190532684,
0.331217885017395,
0.1559879034757614,
-0.1746819168329239,
0.06389736384153366,
0.04402979463338852,
-0.11775945872068405,
0.25051021575927734,
-0.03089699149131775,
0.2099040299654007,
-0.009190384298563004,
-0.023340724408626556,
-0.5330591797828674,
-0.3489815890789032,
-0.038354918360710144,
0.13905924558639526,
0.06577862799167633,
0.05059764161705971,
0.3883388042449951,
-0.09489952027797699,
-0.008187908679246902,
0.01809866726398468,
0.3027871251106262,
-0.06047140806913376,
-0.005917503032833338,
-0.60433030128479,
-0.05687234178185463,
-0.5564535856246948,
0.3362191617488861,
0.2796860933303833,
0.0966302827000618,
0.13186316192150116,
0.1373307704925537,
0.21045967936515808,
0.021322166547179222,
0.6494756937026978,
-0.2755761742591858,
0.10977121442556381,
0.013719961047172546,
-0.1744086891412735,
-0.06316706538200378,
0.0015521720051765442,
-0.30861416459083557,
-0.0308543611317873,
-0.16590481996536255,
0.06505908817052841,
-0.2975500226020813,
-0.2855221629142761,
-0.04008345305919647,
0.22951127588748932,
-0.18051132559776306,
-0.08837991207838058,
0.06591944396495819,
-0.38093405961990356,
-0.15631626546382904,
-0.3204614520072937,
0.08233048766851425,
0.11109554022550583,
-0.03953317552804947,
0.2421998828649521,
0.1906730830669403,
0.20151591300964355,
0.17981725931167603,
0.26138216257095337,
0.5777599811553955,
0.1174142062664032,
0.0748320072889328,
-0.05030888319015503,
0.10313979536294937,
0.08350244909524918,
0.6751046180725098,
-0.40001755952835083,
-0.7225725650787354,
-0.25304272770881653,
-0.4533645212650299,
0.2187269926071167,
0.3028263449668884,
-0.3320927917957306,
0.3771808445453644,
-0.09869769215583801,
0.2939528524875641,
-0.19374021887779236,
0.24962709844112396,
0.6774663329124451,
0.27229198813438416,
-0.15910236537456512,
-0.34926629066467285,
0.1512117087841034,
-0.003437342122197151,
-0.053707968443632126,
0.18479326367378235,
0.2749776840209961,
-0.23794415593147278,
-0.29346323013305664,
-0.1637670397758484,
1.0209169387817383,
0.2443389743566513,
0.11931803822517395,
0.3104282319545746,
-0.05273692309856415,
-0.007981746457517147,
0.19645409286022186,
-0.050315164029598236,
-0.11934340745210648,
-0.4121003746986389,
-0.13364538550376892,
0.19815227389335632,
0.1969335675239563,
-0.032877109944820404,
-0.2768169343471527,
0.22222749888896942,
-0.10084763169288635,
0.17517481744289398,
-0.010947773233056068,
0.20884868502616882,
-0.19363726675510406,
-0.24793216586112976,
-0.2605609595775604,
-0.04739365726709366,
-0.23640133440494537,
0.020066317170858383,
-0.03633544594049454,
-0.34703528881073,
0.0678386241197586,
-0.12403994053602219,
0.07692629098892212,
0.03797750920057297,
-0.3674461245536804,
-0.09324925392866135,
-0.11579766869544983,
-0.6117067933082581,
0.05539807304739952,
0.4280509352684021,
0.28531718254089355,
0.03912019729614258,
-0.06673135608434677,
0.16779395937919617,
0.08771276473999023,
0.1801399290561676,
0.30916130542755127,
0.024392351508140564,
0.04027393087744713,
-0.15513810515403748,
-0.13140445947647095,
-0.06281732767820358,
0.013413551263511181,
0.07490340620279312,
0.19750267267227173,
-0.24757219851016998,
0.05154353752732277,
-0.1528300940990448,
-0.08623075485229492,
-0.1017819344997406,
-0.16325031220912933,
-0.13156497478485107,
-0.0022154059261083603,
0.040271610021591187,
-0.15482859313488007,
0.07124224305152893,
-0.4125799238681793,
-0.2599349915981293,
-0.06086603179574013,
0.13988108932971954,
-0.16713964939117432,
0.07752052694559097,
0.5203679800033569,
0.01679873839020729,
-0.2329990267753601,
-0.033377982676029205,
0.23292386531829834,
-0.28238555788993835,
-0.6647090911865234,
0.18178313970565796,
-0.11809995770454407,
-0.14835409820079803,
-0.17713934183120728,
0.13713231682777405,
0.21659283339977264,
-0.18597841262817383,
-0.17540530860424042,
-0.22515051066875458,
-0.2492239773273468,
0.2225065380334854,
0.15703627467155457,
-0.3977997303009033,
-0.06197487190365791,
0.010859943926334381,
0.04145120829343796,
-0.36966705322265625,
-0.19533082842826843,
0.14279043674468994,
0.11401534825563431,
0.18955248594284058,
0.3243408799171448,
-0.11805427819490433,
0.4277879595756531,
-0.2734616994857788,
-0.014827504754066467,
0.12214167416095734,
-0.153880774974823,
-0.005180707201361656,
-0.34742408990859985,
0.1853572130203247,
-0.07773302495479584,
-0.30431103706359863,
0.4604092836380005,
-0.2637864947319031,
-0.1468285620212555,
-0.16977228224277496,
-0.023554477840662003,
0.38798707723617554,
0.17933356761932373,
0.3861035704612732,
0.18677470088005066,
0.03204762563109398,
-0.2036547213792801,
-0.06613682955503464,
0.006343744695186615,
0.3498302698135376,
-0.05091509968042374,
0.06045052409172058,
-0.17168399691581726,
-0.02105502039194107,
-0.3602750599384308,
0.014643080532550812,
-0.023397140204906464,
0.1873982846736908,
0.4198862314224243,
-0.09349702298641205,
0.46420833468437195,
0.15677635371685028,
0.4490485191345215,
0.3830251097679138,
-0.2696901261806488,
-0.15495316684246063,
0.394404798746109,
-0.009152544662356377,
-0.35893964767456055,
-0.2588215470314026,
-0.010652614757418633,
0.02243620716035366,
0.06944587826728821,
0.25967130064964294,
-0.2581142485141754,
0.11117549240589142,
0.00949784368276596,
-0.06383845955133438,
0.22936534881591797,
0.24351567029953003,
0.1993732899427414,
0.7609959840774536,
-0.011573202908039093,
0.38245218992233276,
0.2675473392009735,
0.34785449504852295,
-0.12398809939622879,
0.15577885508537292,
-0.438068687915802,
0.20528115332126617,
0.008782116696238518,
0.15400423109531403,
0.21513596177101135,
-0.24448591470718384,
0.17865578830242157,
-0.10129658877849579,
-0.16217076778411865,
0.302526593208313,
0.24445633590221405,
0.2978166937828064,
0.09148514270782471,
-0.07850053161382675,
-0.25718143582344055,
0.2293279469013214,
0.0013351291418075562,
0.06387278437614441,
-0.15327849984169006,
-0.058831892907619476,
-0.23753772675991058,
0.11632026731967926,
-0.2331506311893463,
-0.11925330758094788,
0.02939622849225998,
0.22742590308189392,
-0.05226767063140869,
-0.12966373562812805,
-0.14857369661331177,
-0.19160714745521545,
0.16838887333869934,
-0.3553254306316376,
0.41132718324661255,
0.48087191581726074,
0.0607394203543663,
0.30534040927886963,
0.26283758878707886,
0.3539721667766571,
0.21845316886901855,
-0.036319978535175323,
-0.17494192719459534,
-0.00823265127837658,
-0.0014082025736570358,
0.055375367403030396,
-0.020386625081300735,
0.11126313358545303,
0.3276284635066986,
0.4126829206943512,
-0.03861946612596512,
-0.20657221972942352,
0.10981763899326324,
0.3318125307559967,
0.16279494762420654,
0.13996869325637817,
0.22552305459976196,
0.04741504788398743,
0.18586701154708862,
-0.38664886355400085,
-0.23073109984397888,
-0.44002506136894226,
-0.03287938982248306,
0.31145375967025757,
0.06427893042564392,
0.060751646757125854,
-0.13083885610103607,
0.009282661601901054,
0.04406331107020378,
0.27557262778282166,
0.3633693754673004,
-0.17162126302719116,
-0.27500680088996887,
-0.19765284657478333,
-0.7981632351875305,
0.11523668467998505,
0.1205911934375763,
-0.4101749360561371,
0.13722054660320282,
-0.2541256844997406,
0.21175676584243774,
0.3293764591217041,
0.4516024589538574,
0.39226070046424866,
0.02133256196975708,
0.25751668214797974,
-0.3011128604412079,
-0.3178918957710266,
0.2820613384246826,
0.08146686851978302,
0.0032858960330486298,
-0.3155740797519684,
0.18727487325668335,
-0.08122943341732025,
-0.06017780303955078,
0.07514992356300354,
0.09886851906776428,
-0.26999083161354065,
-0.18444451689720154,
0.08825082331895828,
0.12371620535850525,
0.20768821239471436,
-0.3231985569000244,
-0.07265104353427887,
0.21630245447158813,
-0.08320261538028717,
-0.39364001154899597,
0.3868004381656647,
0.13921590149402618,
0.33576700091362,
-0.07147584110498428,
0.08257946372032166,
-0.245469868183136,
0.02097427099943161,
-0.19435986876487732,
-0.05116184055805206,
-0.4253939688205719,
0.39241182804107666,
0.18224453926086426,
0.012688244692981243,
0.23815618455410004,
0.4632459282875061,
0.009115483611822128,
0.2254556268453598,
-0.2751699984073639,
-0.2864682674407959,
0.5551583766937256,
-0.2530866861343384,
-0.2212507724761963,
0.03396652266383171,
-0.113858163356781,
0.014674998819828033,
-0.17242678999900818,
-0.20800332725048065,
-0.05278068408370018,
0.17496444284915924,
-0.12782582640647888,
-0.14137881994247437,
0.2535861134529114,
-0.22054259479045868,
0.024137038737535477,
0.1338842660188675,
0.2645459771156311,
0.3875422775745392,
-0.30307987332344055,
0.11454012989997864,
-0.08378410339355469
] |
https://github.com/huggingface/datasets/issues/4134 | ELI5 supporting documents | Hi ! Please post your question on the [forum](https://discuss.huggingface.co/), more people will be able to help you there ;) | if i am using dense search to create supporting documents for eli5 how much time it will take bcz i read somewhere that it takes about 18 hrs?? | 19 | ELI5 supporting documents
if i am using dense search to create supporting documents for eli5 how much time it will take bcz i read somewhere that it takes about 18 hrs??
Hi ! Please post your question on the [forum](https://discuss.huggingface.co/), more people will be able to help you there ;) | [
0.29010576009750366,
-0.5284779071807861,
-0.23270778357982635,
0.26958024501800537,
0.0564924031496048,
-0.2928774058818817,
0.26679787039756775,
-0.13747656345367432,
-0.09749725461006165,
0.32486969232559204,
0.3197634816169739,
-0.49612361192703247,
-0.15500156581401825,
0.38624048233032227,
-0.2598351240158081,
0.16985368728637695,
0.31642821431159973,
0.19736522436141968,
0.26647311449050903,
0.1186809241771698,
0.08467446267604828,
0.09386890381574631,
-0.10455705225467682,
-0.34273290634155273,
-0.436491996049881,
0.13554516434669495,
-0.3825926184654236,
0.17789867520332336,
-0.6399855017662048,
0.02976612001657486,
-0.1258407086133957,
0.2100115418434143,
-0.23908668756484985,
0.10656173527240753,
-0.00011890243331436068,
-0.12506352365016937,
-0.01727662980556488,
0.06588470190763474,
-0.11313086748123169,
0.549834668636322,
-0.14804883301258087,
0.23864805698394775,
-0.10421454161405563,
0.11255750805139542,
-0.4437539875507355,
0.22243452072143555,
-0.12042456865310669,
-0.014041401445865631,
0.2291792631149292,
0.0807223841547966,
0.12946487963199615,
0.34772881865501404,
0.32402023673057556,
-0.09149156510829926,
0.062272809445858,
0.22504854202270508,
-0.12027701735496521,
-0.2299012541770935,
0.45946651697158813,
0.18979512155056,
0.3488174378871918,
0.29705333709716797,
0.32083389163017273,
-0.2765383720397949,
0.48382246494293213,
0.04615098237991333,
0.3393045961856842,
-0.6773062944412231,
0.3040144443511963,
0.32983341813087463,
0.43054941296577454,
0.6038680076599121,
-0.09178920090198517,
-0.013557832688093185,
-0.24272507429122925,
-0.09456954151391983,
0.4215385615825653,
0.050281062722206116,
0.17639325559139252,
-0.04798044636845589,
0.23193754255771637,
-0.2087896764278412,
-0.11886374652385712,
-0.17392142117023468,
0.02627529203891754,
0.11806035041809082,
-0.1539449244737625,
-0.35998907685279846,
0.4276556372642517,
-0.25390321016311646,
-0.4230325222015381,
-0.04273135960102081,
-0.1535223424434662,
0.3117322325706482,
-0.05284469202160835,
-0.1689480096101761,
-0.27424588799476624,
0.6942678093910217,
0.18002846837043762,
0.0800776332616806,
-0.14152567088603973,
-0.028269559144973755,
-0.3061821758747101,
-0.039158307015895844,
-0.12080071866512299,
0.11816760897636414,
0.027469880878925323,
-0.11827139556407928,
-0.20837198197841644,
-0.2518428862094879,
-0.24849040806293488,
-0.037806250154972076,
-0.16997790336608887,
-0.10070091485977173,
-0.5532295107841492,
-0.3603816032409668,
-0.1679857075214386,
-0.3955462574958801,
0.2627534568309784,
0.24466341733932495,
-0.19244977831840515,
0.10749917477369308,
-0.18029053509235382,
0.1003304123878479,
-0.24263617396354675,
-0.005073554813861847,
0.1358492523431778,
-0.14994554221630096,
-0.05199768394231796,
0.07150813192129135,
-0.02480105496942997,
0.17079690098762512,
-0.1362839937210083,
0.09479956328868866,
-0.07791782915592194,
-0.40559908747673035,
0.2708779573440552,
-0.19340649247169495,
0.2741433382034302,
-0.1986258327960968,
0.023560630157589912,
-0.10662879049777985,
0.2995786964893341,
0.055092811584472656,
-0.1879638433456421,
-0.16920894384384155,
-0.44676703214645386,
-0.33632928133010864,
-0.07699212431907654,
0.10823164880275726,
0.23682501912117004,
-0.33549416065216064,
-0.7879729866981506,
0.17351992428302765,
0.3008285164833069,
0.09784398972988129,
0.26487743854522705,
0.07137292623519897,
-0.3202424943447113,
0.045235250145196915,
0.18515488505363464,
0.29132944345474243,
-0.2212502658367157,
0.17048674821853638,
0.3591252267360687,
0.04348710924386978,
0.11145424842834473,
0.12928715348243713,
-0.2207920253276825,
0.34037667512893677,
-0.1683596968650818,
0.5130730867385864,
-0.02328541874885559,
-0.09763645380735397,
-0.29667165875434875,
0.38643062114715576,
0.31729912757873535,
-0.11772236227989197,
0.04673433303833008,
-0.09425754100084305,
-0.18475297093391418,
-0.18303674459457397,
0.29476553201675415,
0.15008559823036194,
-0.017337581142783165,
-0.19833950698375702,
-0.21953055262565613,
0.2241698056459427,
-0.1604025959968567,
-0.05430071800947189,
-0.38089507818222046,
-0.07183908671140671,
-0.23989565670490265,
-0.03454046696424484,
0.010138463228940964,
-0.1802440881729126,
-0.23931178450584412,
-0.17208413779735565,
0.06768874824047089,
-0.1189141720533371,
-0.06956139206886292,
0.3374336361885071,
0.5241233110427856,
0.3151099979877472,
0.3337966501712799,
0.2362251579761505,
-0.03212107717990875,
-0.03862597420811653,
0.20066621899604797,
0.4345337152481079,
0.26018476486206055,
-0.4042307734489441,
0.06694941967725754,
-0.1915683150291443,
-0.2300160974264145,
-0.2144540548324585,
0.009915359318256378,
-0.21040818095207214,
0.36820435523986816,
-0.04657168686389923,
-0.019329026341438293,
-0.17264005541801453,
0.09849144518375397,
0.22128567099571228,
-0.3537871241569519,
-0.16740304231643677,
-0.30229443311691284,
0.07390714436769485,
-0.045627906918525696,
-0.056430451571941376,
-0.11756130307912827,
-0.24455875158309937,
0.12867450714111328,
-0.08763089030981064,
-0.25891438126564026,
0.16447849571704865,
0.550650417804718,
0.6552246809005737,
0.14045894145965576,
-0.18592718243598938,
0.39467695355415344,
-0.3207913637161255,
0.08171726763248444,
-0.29527050256729126,
-0.34421154856681824,
0.13757644593715668,
0.08182734996080399,
0.33606889843940735,
0.024182915687561035,
-0.4229980707168579,
-0.042033709585666656,
0.0075090378522872925,
-0.0055395085364580154,
0.0067279040813446045,
0.38883304595947266,
0.22683754563331604,
0.07373036444187164,
0.3025795817375183,
-0.3012882471084595,
0.3137800097465515,
-0.043355297297239304,
-0.0010017696768045425,
-0.45102351903915405,
0.34911710023880005,
0.157522514462471,
-0.30012544989585876,
-0.24495363235473633,
-0.5427929162979126,
0.21183809638023376,
0.08661051839590073,
0.21668170392513275,
-0.016347048804163933,
0.2790875732898712,
-0.03553567826747894,
0.3392021656036377,
-0.4203914999961853,
-0.004622082691639662,
-0.0013146288692951202,
-0.09608936309814453,
0.04185088723897934,
-0.08657906949520111,
0.03208428993821144,
-0.3573480248451233,
-0.07354367524385452,
-0.0020479820668697357,
-0.3084738850593567,
0.38398563861846924,
-0.05515573173761368,
-0.007947503589093685,
-0.21493782103061676,
-0.09453602135181427,
-0.026488112285733223,
0.15475797653198242,
-0.03359207138419151,
0.054917510598897934,
0.10707506537437439,
0.022974293678998947,
0.3021831214427948,
0.04353518784046173,
0.4572041630744934,
-0.38894277811050415,
-0.026120532304048538,
0.1250375509262085,
0.10969498753547668,
0.08325527608394623,
0.08479826152324677,
0.07636963576078415,
-0.31394898891448975,
-0.16618727147579193,
-0.32609954476356506,
-0.4885169565677643,
0.18605811893939972,
0.052497029304504395,
-0.2280677706003189,
-0.04612426459789276,
0.14178544282913208,
-0.05755999684333801,
-0.1729341596364975,
0.10862802714109421,
0.04190599173307419,
-0.35476893186569214,
-0.3097091615200043,
-0.04493100196123123,
-0.008603695780038834,
0.13007622957229614,
-0.1440998911857605,
-0.20635777711868286,
0.2616431415081024,
0.2941811680793762,
0.07542182505130768,
-0.1787906438112259,
-0.15369729697704315,
-0.032523348927497864,
0.036418721079826355,
0.057137444615364075,
0.18210089206695557,
-0.13851460814476013,
-0.4164530038833618,
0.15750014781951904,
-0.21136099100112915,
-0.03229181095957756,
0.17678526043891907,
-0.1121220663189888,
-0.002792462706565857,
-0.18533873558044434,
0.022875122725963593,
-0.15644845366477966,
-0.35515308380126953,
-0.031809475272893906,
-0.026626907289028168,
0.15257301926612854,
0.4417876601219177,
0.07712247967720032,
-0.27103540301322937,
0.2610108554363251,
-0.0570928156375885,
0.16463753581047058,
-0.0353916734457016,
0.13122335076332092,
-0.22592386603355408,
0.3792993724346161,
-0.021902956068515778,
0.3333386778831482,
0.16363878548145294,
-0.038619231432676315,
-0.04317476600408554,
-0.09269192814826965,
-0.05902582034468651,
-0.44992390275001526,
-0.07773436605930328,
0.33317261934280396,
0.32274848222732544,
-0.12912678718566895,
0.24459712207317352,
0.30087700486183167,
-0.004016861319541931,
-0.17134664952754974,
-0.14603836834430695,
-0.5413650870323181,
-0.03622269630432129,
-0.07361660152673721,
-0.02179306000471115,
0.3162187933921814,
0.013639431446790695,
-0.24844834208488464,
0.1084703803062439,
-0.36553123593330383,
0.027404434978961945,
0.12482225894927979,
0.13564221560955048,
-0.20748446881771088,
-0.02309144102036953,
0.17582906782627106,
-0.3413154184818268,
0.49788230657577515,
0.05421989783644676,
-0.20745794475078583,
-0.15298500657081604,
0.0313403457403183,
0.28736019134521484,
-0.15473254024982452,
0.4454328417778015,
0.08954504132270813,
-0.18459123373031616,
-0.4012925922870636,
-0.034383151680231094,
0.3887523114681244,
0.035641368478536606,
0.061137836426496506,
-0.013698281720280647,
0.2562071979045868,
0.01315055787563324,
-0.24916541576385498,
-0.1984514445066452,
0.4605799913406372,
0.19237953424453735,
-0.08535265177488327,
-0.02021702006459236,
-0.07605922967195511,
-0.3769940435886383,
0.05349943786859512,
0.16010619699954987,
0.14471380412578583,
0.03805636242032051,
-0.0371403768658638,
-0.31458601355552673,
-0.032349370419979095,
-0.15724286437034607,
0.22980020940303802,
-0.42240485548973083,
-0.23309433460235596,
-0.18761034309864044,
0.35605576634407043,
0.25049319863319397,
0.3151169717311859,
0.051048021763563156,
0.23049038648605347,
-0.26294469833374023,
0.12080217897891998,
-0.2854635715484619,
-0.32394108176231384,
0.23594781756401062,
0.597792387008667,
0.22279728949069977,
0.08062311261892319,
0.10130877792835236,
0.36942577362060547,
-0.2518276274204254,
0.01323014684021473,
0.4982255697250366,
0.2645514905452728,
-0.33458971977233887,
0.004747873172163963,
-0.1266067624092102,
0.20233389735221863,
-0.10731373727321625,
-0.07372024655342102,
0.8110786080360413,
-0.0871344581246376,
0.23728948831558228,
-0.14602899551391602,
1.3538728952407837,
-0.0636414885520935,
-0.03424554690718651,
-0.19104209542274475,
0.014262758195400238,
-0.10211464762687683,
-0.32394319772720337,
-0.007562978193163872,
-0.358301043510437,
-0.44977253675460815,
-0.023579873144626617,
-0.0916275903582573,
-0.08326535671949387,
0.2374698370695114,
-0.06364328414201736,
0.10634159296751022,
-0.17193545401096344,
-0.1920708566904068,
-0.2940616309642792,
0.6041372418403625,
-0.0081243347376585,
-0.029443606734275818,
0.16180773079395294,
0.15344855189323425,
0.32870227098464966,
0.35194507241249084,
0.15171796083450317,
0.21242165565490723,
-0.0635659396648407,
-0.10700415074825287,
-0.31908562779426575,
0.08427467197179794,
-0.030722087249159813,
-0.3030051589012146,
0.15902447700500488,
-0.22631743550300598,
0.2571726143360138,
0.2180119752883911,
0.49572062492370605,
0.010248508304357529,
-0.17064903676509857,
0.43234843015670776,
-0.06640613824129105,
-0.09527619928121567,
0.21538718044757843,
-0.27153244614601135,
-0.0152874905616045,
-0.19064012169837952,
0.035577140748500824,
0.11271869391202927,
-0.20875132083892822,
0.037825264036655426,
-0.5895504951477051,
-0.2632414698600769,
-0.18475128710269928,
-0.16241517663002014,
-0.19127383828163147,
0.2392527014017105,
-0.45753103494644165,
0.18367308378219604,
0.16021859645843506,
0.35134339332580566,
-0.18970364332199097,
0.3489336669445038,
0.2654784917831421,
0.04386529326438904,
-0.03163435310125351,
0.33461207151412964,
0.025843173265457153,
-0.048600949347019196,
0.18849094212055206,
-0.035364896059036255,
-0.35318422317504883,
-0.14715155959129333,
0.23892492055892944,
-0.016886992380023003,
-0.06655029952526093,
-0.02883819490671158,
0.516862154006958,
-0.024246230721473694,
0.0038707104977220297,
0.5916088819503784,
0.07020339369773865,
0.03718993440270424,
0.07826350629329681,
0.05201951414346695,
0.10250486433506012,
-0.038286514580249786,
-0.036371003836393356,
0.1381089687347412,
-0.28765159845352173,
-0.04511795938014984,
-0.019174929708242416,
0.169123575091362,
-0.3018762469291687,
0.4161153733730316,
-0.263541579246521,
0.24608752131462097,
-0.13342417776584625,
-0.26966267824172974,
0.31543493270874023,
0.03750253841280937,
0.21648187935352325,
0.17500634491443634,
0.006360283121466637,
-0.1373644322156906,
0.12859106063842773,
0.11550088971853256,
0.11191383749246597,
0.10574983060359955,
0.1423652023077011,
-0.015575193800032139,
-0.16173306107521057,
0.006012548226863146,
-0.09351760149002075,
-0.16988709568977356,
0.19647273421287537,
-0.22316214442253113,
-0.12778472900390625,
0.10065121203660965,
0.14122192561626434,
0.19506047666072845,
0.08081182092428207,
0.462995707988739,
0.051402926445007324,
-0.0951138436794281,
-0.09163063764572144,
-0.1859949827194214,
0.4539449214935303,
0.4068444073200226,
0.03810018673539162,
-0.4499686658382416,
0.3128717839717865,
0.076783187687397,
-0.18746429681777954,
-0.22275911271572113,
0.3686874806880951,
0.15027643740177155,
0.00016214654897339642,
0.1878555715084076,
0.1819465458393097,
0.21670471131801605,
-0.008239444345235825,
-0.16972853243350983,
0.05546548217535019,
-0.3773455321788788,
0.02576650306582451,
0.2530288100242615,
0.2955944836139679,
0.04624369740486145,
0.34546148777008057,
0.06102772802114487,
-0.057484474033117294,
-0.16203297674655914,
-0.3746456503868103,
-0.6174535155296326,
0.02893732115626335,
-0.066860631108284,
0.12727046012878418,
0.13360467553138733,
0.24530380964279175,
-0.07272428274154663,
-0.052609287202358246,
-0.06349409371614456,
-0.0807117447257042,
0.670194149017334,
0.33122411370277405,
-0.05453690141439438,
0.15740741789340973,
0.37075281143188477,
0.09146860241889954,
-0.08865552395582199,
0.06733430176973343,
0.22836151719093323,
-0.0468120239675045,
-0.05157037079334259,
-0.1637832224369049,
0.3673229217529297,
0.11393943428993225,
0.10875833034515381,
0.2968139946460724,
-0.2543421983718872,
-0.3869629204273224,
0.17347854375839233,
0.07721465826034546,
0.169717937707901,
-0.26473483443260193,
0.21506190299987793,
0.2546691298484802,
0.42070472240448,
0.16950157284736633,
-0.07678594440221786,
0.6068628430366516,
-0.21879743039608002,
0.23532353341579437,
-0.03795140981674194,
-0.13260379433631897,
0.20502279698848724,
0.2729419767856598,
0.19287529587745667,
0.015155527740716934,
-0.3638228178024292,
0.30052080750465393,
-0.07569718360900879,
-0.23124469816684723,
0.026596959680318832,
0.2667486071586609,
0.12294934689998627,
-0.10066211223602295,
-0.22333183884620667,
0.04654744267463684,
-0.2401484251022339,
-0.502690315246582,
-0.2643248736858368,
0.3231198787689209,
0.0060696713626384735,
-0.4231645166873932,
0.029389742761850357,
-0.19773751497268677,
-0.4681103527545929,
0.009432516992092133,
-0.5031442642211914,
-0.07184917479753494,
-0.31196263432502747,
-0.06135278940200806,
-0.03518950939178467,
0.14003297686576843,
0.022463884204626083,
0.07107658684253693,
0.4457549750804901,
0.3052336871623993,
0.22414135932922363,
-0.02255333587527275,
-0.7128714323043823,
0.02393023669719696,
-0.09933445602655411,
0.09302831441164017,
-0.1241469606757164,
-0.025672301650047302,
0.15860946476459503,
0.26121675968170166,
-0.017508555203676224,
0.11854034662246704,
-0.2739963233470917,
-0.03137403354048729,
0.1938057839870453,
-0.06959537416696548,
0.40986523032188416,
0.07418826967477798,
0.15370461344718933,
0.0386333242058754,
0.05611474812030792,
0.14625096321105957,
-0.12012568861246109,
0.0430988147854805,
-0.2003646194934845,
0.4470056891441345,
-0.19120138883590698,
0.36152568459510803,
0.008151695132255554,
0.09037738293409348,
0.06206011399626732,
0.07477068156003952,
-0.2047579288482666,
0.41813090443611145,
0.3645155429840088,
0.07769043743610382,
0.10171547532081604,
0.27709484100341797,
-0.20867305994033813,
0.05479954183101654,
-0.06754541397094727,
0.0020619125571101904,
0.16030041873455048,
-0.013551015406847,
-0.0858369842171669,
-0.2847910225391388,
-0.05920194089412689,
-0.07329196482896805,
0.10487009584903717,
0.23662889003753662,
0.13494178652763367,
-0.09816722571849823,
-0.28185078501701355,
-0.4619794487953186,
-0.16328741610050201,
0.5795598030090332,
0.48212680220603943,
0.19901569187641144,
-0.10909009724855423,
0.19748356938362122,
0.5469687581062317,
-0.006683578714728355,
-0.16413237154483795,
-0.015871986746788025,
0.11967001110315323,
0.09566272050142288,
-0.039357904344797134,
0.017947126179933548,
0.6058095097541809,
-0.008319508284330368,
-0.3878251016139984,
-0.3379368484020233,
-0.003035813570022583,
0.1125980019569397,
-0.5808367729187012,
-0.016452254727482796
] |
https://github.com/huggingface/datasets/issues/4133 | HANS dataset preview broken | The dataset cannot be loaded, be it in normal or streaming mode.
```python
>>> import datasets
>>> dataset=datasets.load_dataset("hans", split="train", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1595, in __next__
out = self.readline()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1592, in readline
return self.readuntil(b"\n")
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1581, in readuntil
self.seek(start + found + len(char))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 676, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
>>> dataset=datasets.load_dataset("hans", split="train", streaming=False)
Downloading and preparing dataset hans/plain_text (download: 29.51 MiB, generated: 30.34 MiB, post-processed: Unknown size, total: 59.85 MiB) to /home/slesage/.cache/huggingface/datasets/hans/plain_text/1.0.0/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1687, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 605, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1104, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 694, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1087, in _prepare_split
for key, record in logging.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/tqdm/std.py", line 1180, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
ValueError: readline of closed file
```
| ## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
| 224 | HANS dataset preview broken
## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
The dataset cannot be loaded, be it in normal or streaming mode.
```python
>>> import datasets
>>> dataset=datasets.load_dataset("hans", split="train", streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1595, in __next__
out = self.readline()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1592, in readline
return self.readuntil(b"\n")
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/spec.py", line 1581, in readuntil
self.seek(start + found + len(char))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 676, in seek
raise ValueError("Cannot seek streaming HTTP file")
ValueError: Cannot seek streaming HTTP file
>>> dataset=datasets.load_dataset("hans", split="train", streaming=False)
Downloading and preparing dataset hans/plain_text (download: 29.51 MiB, generated: 30.34 MiB, post-processed: Unknown size, total: 59.85 MiB) to /home/slesage/.cache/huggingface/datasets/hans/plain_text/1.0.0/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1687, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 605, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1104, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 694, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1087, in _prepare_split
for key, record in logging.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/tqdm/std.py", line 1180, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/hans/1bbcb735c482acd54f2e118074b59cfd2bf5f7a5a285d4d540d1e632216672ac/hans.py", line 121, in _generate_examples
for idx, line in enumerate(open(filepath, "rb")):
ValueError: readline of closed file
```
| [
-0.34625959396362305,
-0.3120441436767578,
0.0280240997672081,
0.33085036277770996,
0.17796115577220917,
-0.007231689989566803,
0.20148813724517822,
0.27680960297584534,
0.037616077810525894,
-0.036823466420173645,
-0.30769550800323486,
0.16206829249858856,
-0.049824558198451996,
0.04804413765668869,
0.18395155668258667,
-0.29829713702201843,
0.07397807389497757,
0.2516167461872101,
-0.49961361289024353,
0.22415681183338165,
-0.03991061449050903,
0.14568984508514404,
-0.09910964965820312,
-0.06491456925868988,
0.04790521785616875,
0.02305465005338192,
0.0709836483001709,
0.017268605530261993,
-0.2665052115917206,
-0.6187419891357422,
0.12128180265426636,
0.07805520296096802,
0.29785770177841187,
0.6596602201461792,
-0.00012002275616396219,
0.19639120995998383,
0.3520886301994324,
0.07129121571779251,
-0.41158527135849,
-0.10474325716495514,
-0.029348647221922874,
-0.058970287442207336,
0.13867580890655518,
-0.12021026015281677,
-0.09731350839138031,
-0.31816476583480835,
-0.12230561673641205,
-0.3808544874191284,
0.39120304584503174,
0.32901009917259216,
0.18304620683193207,
0.3846891224384308,
0.16391035914421082,
-0.05281718075275421,
0.1328180581331253,
-0.08579818904399872,
-0.23620283603668213,
0.63264399766922,
0.12041351199150085,
0.2220449447631836,
0.09782592952251434,
0.2935280203819275,
0.07065131515264511,
-0.1645110696554184,
0.32868844270706177,
-0.27845534682273865,
0.105832539498806,
-0.4004330039024353,
0.1158384308218956,
0.26471370458602905,
0.6216459274291992,
-0.1565762460231781,
-0.43352869153022766,
-0.1845739185810089,
0.27082106471061707,
-0.33125385642051697,
0.1396102011203766,
0.09462311118841171,
-0.008783956058323383,
0.07372540235519409,
-0.2308000773191452,
-0.17631107568740845,
-0.1190466433763504,
0.10920746624469757,
0.09110994637012482,
0.5131785869598389,
-0.1634359508752823,
0.16093453764915466,
0.27976933121681213,
-0.011556625366210938,
0.4017840325832367,
0.033270448446273804,
-0.4573644697666168,
0.057414669543504715,
-0.2492193728685379,
-0.14643657207489014,
-0.020049653947353363,
-0.14758238196372986,
-0.06199092045426369,
0.20650988817214966,
0.1578434407711029,
-0.029997531324625015,
0.16510890424251556,
-0.09832357615232468,
0.40128642320632935,
0.043819230049848557,
0.08822187781333923,
0.2026260793209076,
0.1780845820903778,
0.43044349551200867,
0.37750816345214844,
-0.14079910516738892,
-0.11172252893447876,
-0.23948097229003906,
-0.11736156046390533,
-0.0914178341627121,
0.26427292823791504,
-0.01437021791934967,
-0.2743641138076782,
0.16191795468330383,
-0.2980406880378723,
-0.09509909898042679,
0.18517236411571503,
0.35115164518356323,
-0.2830326557159424,
0.1531447172164917,
-0.16186323761940002,
0.22340598702430725,
-0.12416121363639832,
-0.09239572286605835,
-0.02749776653945446,
0.03228762745857239,
-0.11466546356678009,
-0.08153712004423141,
0.0677536278963089,
-0.15752123296260834,
0.08825351297855377,
-0.09927093982696533,
0.2397586703300476,
-0.31678733229637146,
0.1428304761648178,
-0.20667089521884918,
0.011023789644241333,
0.31458336114883423,
0.09341172873973846,
0.20249225199222565,
0.032756220549345016,
-0.2378508299589157,
0.010190315544605255,
-0.03303064405918121,
-0.24822476506233215,
-0.35560885071754456,
-0.17649830877780914,
0.16290390491485596,
-0.33766329288482666,
-0.19916251301765442,
-0.27711743116378784,
-0.062158193439245224,
-0.31396162509918213,
-0.12447929382324219,
0.23282134532928467,
-0.06220664083957672,
0.058629777282476425,
0.09932440519332886,
0.204687237739563,
0.6047247052192688,
-0.5409663915634155,
-0.2808970808982849,
-0.3309556841850281,
-0.3055824637413025,
0.011085033416748047,
0.07976342737674713,
-0.20213547348976135,
0.22180378437042236,
-0.29916104674339294,
-0.22355404496192932,
0.30032920837402344,
-0.2997474670410156,
-0.4981096088886261,
0.41094499826431274,
-0.1007489562034607,
0.23210664093494415,
-0.02294936776161194,
0.050467148423194885,
0.08730334043502808,
-0.17289747297763824,
0.09557056427001953,
-0.053902752697467804,
0.16743506491184235,
-0.12539811432361603,
-0.05456703156232834,
-0.1493569016456604,
0.01023811288177967,
0.12434238195419312,
0.18806356191635132,
-0.06542228907346725,
0.08287525922060013,
-0.1577213853597641,
0.37919992208480835,
-0.09419015049934387,
0.08036487549543381,
0.3687787652015686,
0.2940543293952942,
0.2837880551815033,
0.09738220274448395,
-0.13443464040756226,
-0.23957619071006775,
0.10423339158296585,
-0.3043524920940399,
-0.14975605905056,
0.09928023815155029,
-0.024111341685056686,
-0.40734371542930603,
0.08496744185686111,
-0.3652142584323883,
-0.38887032866477966,
0.13729268312454224,
0.0519857332110405,
-0.21599161624908447,
-0.1692286878824234,
-0.29842430353164673,
0.04796180874109268,
0.1672755926847458,
0.17221184074878693,
-0.23088756203651428,
0.385230153799057,
0.02956809289753437,
0.0026708096265792847,
0.08416229486465454,
0.3094881772994995,
0.29490503668785095,
-0.29955554008483887,
-0.23241522908210754,
0.5804004669189453,
-0.16994591057300568,
0.2553892731666565,
0.09523829817771912,
-0.29057472944259644,
0.3506261110305786,
-0.5231718420982361,
-0.13714244961738586,
0.08028508722782135,
0.0022014491260051727,
0.07357373088598251,
0.013724934309720993,
-0.05774083733558655,
-0.22749467194080353,
0.22716298699378967,
0.10361276566982269,
0.3113612234592438,
0.059645652770996094,
0.09742438793182373,
-0.2440263032913208,
-0.30967622995376587,
0.3838205933570862,
-0.3972632884979248,
0.3441169261932373,
-0.1170508861541748,
-0.28089553117752075,
-0.04861456900835037,
-0.06388233602046967,
-0.04043734073638916,
-0.0764179602265358,
0.17619460821151733,
-0.43558382987976074,
0.08680800348520279,
0.142262801527977,
0.3221615254878998,
0.32267940044403076,
0.007126540876924992,
-0.08468146622180939,
0.015752647072076797,
0.3541172742843628,
-0.02829652838408947,
0.22365400195121765,
0.13156449794769287,
0.2677794098854065,
0.22335243225097656,
-0.07044591754674911,
0.04042389988899231,
-0.2830430269241333,
-0.3530387878417969,
-0.005203187465667725,
0.1575143188238144,
-0.2487488090991974,
0.1717698872089386,
-0.11986681073904037,
-0.44426995515823364,
-0.20477548241615295,
-0.30158013105392456,
-0.19587895274162292,
-0.2097902148962021,
-0.19331373274326324,
0.16695263981819153,
-0.07314230501651764,
0.10981765389442444,
-0.27003705501556396,
0.09320284426212311,
0.11738395690917969,
0.015814248472452164,
-0.1830456405878067,
0.17221778631210327,
-0.19556564092636108,
0.0219590961933136,
0.0744737908244133,
-0.18612897396087646,
0.3645031154155731,
-0.10573796182870865,
-0.0017369650304317474,
-0.5700990557670593,
-0.2210545837879181,
0.2787926197052002,
-0.050866059958934784,
0.413767546415329,
0.2568265497684479,
0.2959457039833069,
0.02596914768218994,
-0.13083656132221222,
0.21307282149791718,
-0.11868680268526077,
0.2508682608604431,
0.14060690999031067,
-0.20378245413303375,
-0.012743540108203888,
0.027737032622098923,
-0.04254772514104843,
-0.24000097811222076,
-0.3053473234176636,
0.3201074004173279,
0.1350357085466385,
-0.007620394229888916,
0.19786116480827332,
0.08132708817720413,
0.024062134325504303,
-0.11716464906930923,
0.009507676586508751,
-0.034368596971035004,
-0.4965415298938751,
0.2852582335472107,
-0.4563148319721222,
-0.38604721426963806,
0.04027673229575157,
0.14093749225139618,
0.1969895362854004,
-0.2702491283416748,
-0.567086935043335,
-0.15652725100517273,
-0.2283099740743637,
-0.16837240755558014,
-0.08280910551548004,
-0.1322125941514969,
0.020071566104888916,
-0.047030892223119736,
0.037901170551776886,
-0.20608919858932495,
-0.09049539268016815,
-0.021153584122657776,
-0.2870213985443115,
0.3142879903316498,
-0.25786489248275757,
0.3079531490802765,
0.01276019960641861,
0.524928867816925,
0.6012276411056519,
0.2264721691608429,
0.2832592725753784,
-0.1104094460606575,
0.4730514585971832,
0.013373494148254395,
-0.3232923746109009,
0.09690061956644058,
-0.16577786207199097,
0.11645516753196716,
0.07288505882024765,
0.061551567167043686,
-0.2811060845851898,
-0.24563221633434296,
0.1125175952911377,
-0.19144752621650696,
-0.24512027204036713,
-0.10896016657352448,
-0.35304492712020874,
0.027685094624757767,
-0.047302454710006714,
0.24037253856658936,
-0.16773295402526855,
-0.22934067249298096,
0.13555140793323517,
0.21804392337799072,
0.1844770312309265,
0.06611397117376328,
-0.32311224937438965,
-0.2162020355463028,
-0.5297673344612122,
0.05441078171133995,
-0.08116747438907623,
0.5569453239440918,
-0.06507362425327301,
0.07510155439376831,
0.1378917247056961,
-0.07879483699798584,
0.6147176623344421,
-0.16328436136245728,
0.11374451220035553,
0.12561818957328796,
-0.021332357078790665,
-0.3511775732040405,
-0.11967679858207703,
-0.15402425825595856,
0.06727729737758636,
0.3911965489387512,
0.45045021176338196,
-0.09072235971689224,
-0.05875639244914055,
0.6948477029800415,
-0.08308514952659607,
-0.10605346411466599,
-0.468318909406662,
-0.11635738611221313,
-0.10644713044166565,
-0.02790406160056591,
-0.2082410752773285,
-0.10635637491941452,
0.08578992635011673,
-0.02769327163696289,
0.07217936217784882,
0.05566023290157318,
-0.1269862800836563,
0.22664903104305267,
0.09615728259086609,
0.2519570291042328,
0.10961314290761948,
0.25687509775161743,
0.5736163854598999,
0.005087193101644516,
0.25083622336387634,
0.7199136018753052,
0.06652133166790009,
-0.3977077007293701,
0.23619580268859863,
0.16994495689868927,
0.019860073924064636,
0.29214054346084595,
-0.0869532898068428,
0.05535554513335228,
0.14902372658252716,
0.38384634256362915,
-0.24881941080093384,
0.23992712795734406,
0.5032996535301208,
-0.04145737737417221,
-0.7190006375312805,
-0.4212256371974945,
0.5114867091178894,
0.07807695865631104,
0.07329055666923523,
0.20805078744888306,
0.41012656688690186,
-0.12683245539665222,
0.033472854644060135,
0.0926101952791214,
0.775147557258606,
0.15368422865867615,
0.005285639315843582,
0.3713526725769043,
-0.1569010466337204,
0.31568944454193115,
-0.3676048517227173,
-0.057022757828235626,
-0.23038458824157715,
-0.48131129145622253,
-0.14217180013656616,
-0.19902175664901733,
0.25338345766067505,
-0.1703740954399109,
-0.13830338418483734,
0.11465493589639664,
-0.03330542519688606,
0.11228896677494049,
-0.06818191707134247,
0.17285218834877014,
-0.40470945835113525,
-0.04772650822997093,
-0.08396238088607788,
0.1060766726732254,
-0.08051258325576782,
0.32580646872520447,
-0.23199701309204102,
-0.1722537726163864,
0.005364537239074707,
-0.005129020661115646,
-0.364082396030426,
0.20487573742866516,
0.008068712428212166,
-0.139877587556839,
0.014581656083464622,
-0.564254879951477,
0.28536802530288696,
0.16390308737754822,
0.10653243213891983,
0.2706310451030731,
-0.2425018846988678,
0.4094444215297699,
-0.05445732921361923,
-0.15874110162258148,
0.03591477498412132,
0.07925161719322205,
0.17186950147151947,
-0.128116175532341,
-0.1722637414932251,
0.20240148901939392,
-0.032153140753507614,
-0.04658234119415283,
0.04890723526477814,
-0.06519913673400879,
-0.08085520565509796,
-0.28843048214912415,
-0.0013108323328197002,
-0.0761835128068924,
0.11970017850399017,
-0.18984603881835938,
0.0595623217523098,
-0.0015427395701408386,
-0.04022188112139702,
-0.26662567257881165,
0.04772490635514259,
-0.2375960648059845,
-0.21970002353191376,
0.3722870945930481,
-0.2189660370349884,
-0.11887484043836594,
0.5923460721969604,
0.27013903856277466,
-0.21736522018909454,
-0.09460265189409256,
-0.13646867871284485,
0.2972210645675659,
-0.6248419284820557,
0.04343516379594803,
-0.17469216883182526,
0.28988850116729736,
-0.08754691481590271,
-0.15488919615745544,
0.12807777523994446,
-0.295370876789093,
-0.03995915502309799,
-0.41285476088523865,
-0.2663012146949768,
0.13947652280330658,
-0.049438122659921646,
0.3080218732357025,
-0.0005622506141662598,
0.22454416751861572,
-0.03566497564315796,
0.03596196696162224,
-0.21542926132678986,
0.042898476123809814,
0.04434962570667267,
-0.10065169632434845,
0.16393819451332092,
-0.09789576381444931,
0.14247757196426392,
-0.11559693515300751,
0.09962110966444016,
0.1553156077861786,
-0.05407910794019699,
-0.11958079040050507,
-0.3133561909198761,
0.1610584408044815,
-0.03890039771795273,
-0.5537574291229248,
0.10274659842252731,
-0.12635719776153564,
-0.13583257794380188,
-0.08649426698684692,
0.14189176261425018,
0.12218933552503586,
0.1882360577583313,
0.02817043662071228,
0.10730518400669098,
-0.047061242163181305,
-0.22616013884544373,
0.22946229577064514,
0.1950722634792328,
0.3857053518295288,
-0.023814281448721886,
0.24976085126399994,
-0.15869489312171936,
-0.08099754899740219,
-0.36498039960861206,
0.146055668592453,
0.347720205783844,
0.1400296688079834,
0.4258229434490204,
-0.5606871843338013,
0.44232067465782166,
0.21107015013694763,
0.5049428939819336,
0.48912298679351807,
-0.33391666412353516,
0.044340506196022034,
0.23997607827186584,
0.12086315453052521,
-0.09287700802087784,
-0.094570092856884,
0.02928154170513153,
0.2702155113220215,
0.16255667805671692,
0.05806724727153778,
-0.07254493236541748,
0.1540532410144806,
0.0193801112473011,
0.2011324167251587,
0.06418458372354507,
0.2746248245239258,
0.4237923324108124,
0.5029155015945435,
-0.07190614938735962,
-0.03685120865702629,
0.19238831102848053,
0.1837586611509323,
0.17771682143211365,
0.5153829455375671,
-0.0809704139828682,
0.030449340119957924,
0.04506627842783928,
0.08789357542991638,
0.15953919291496277,
-0.4566737115383148,
0.06030482053756714,
-0.08426076173782349,
-0.028240010142326355,
0.15132999420166016,
0.263904333114624,
0.44057127833366394,
-0.28360143303871155,
0.020648827776312828,
-0.3088934123516083,
0.09659488499164581,
0.014798499643802643,
0.021787505596876144,
-0.1188727542757988,
-0.18917277455329895,
-0.09086489677429199,
0.1491345763206482,
-0.15970702469348907,
-0.1659715622663498,
-0.24504980444908142,
0.2326359897851944,
-0.20727406442165375,
-0.43953874707221985,
-0.16502848267555237,
0.23014041781425476,
0.2164856195449829,
-0.17566730082035065,
0.15666574239730835,
0.3220580220222473,
-0.022808276116847992,
-0.0019794777035713196,
0.29955559968948364,
0.3012039363384247,
0.178397998213768,
0.18778109550476074,
0.0750700905919075,
0.13551032543182373,
-0.11987821757793427,
0.14890703558921814,
0.08663851022720337,
0.30810460448265076,
0.09685772657394409,
0.37134215235710144,
0.10161910951137543,
-0.21840102970600128,
0.293781578540802,
-0.09519322216510773,
0.46515753865242004,
-0.43746647238731384,
0.19191712141036987,
-0.35757872462272644,
-0.032915301620960236,
-0.19024968147277832,
-0.35462358593940735,
-0.23570874333381653,
0.05385131016373634,
0.45907363295555115,
-0.018217021599411964,
0.03394971787929535,
-0.30398619174957275,
0.03990061208605766,
0.14749722182750702,
0.3187481462955475,
0.27634161710739136,
0.07137920707464218,
-0.11003196984529495,
-0.09990311414003372,
-0.4851968586444855,
0.012914806604385376,
0.09469908475875854,
0.303576797246933,
0.1379692554473877,
-0.20696718990802765,
-0.257853627204895,
0.12839163839817047,
0.42697036266326904,
0.13062576949596405,
0.16138134896755219,
0.45307379961013794,
0.010363180190324783,
-0.13299784064292908,
-0.15085916221141815,
0.34578266739845276,
-0.04462657868862152,
-0.22989323735237122,
0.10605540126562119,
-0.13401579856872559,
-0.06047573685646057,
-0.04684852063655853,
-0.3223477602005005,
-0.03445758298039436,
-0.4598967730998993,
0.3845743238925934,
0.17286981642246246,
0.5570703744888306,
0.020474854856729507,
-0.2409014254808426,
-0.4442610740661621,
-0.4005979895591736,
-0.10266178101301193,
-0.022234350442886353,
0.23010404407978058,
0.4178057610988617,
-0.029079869389533997,
-0.15151333808898926,
-0.2996165454387665,
0.12897443771362305,
-0.011752750724554062,
0.1786174178123474,
-0.6296768188476562,
0.22502167522907257,
-0.2177238166332245,
0.09813027083873749,
0.41082313656806946,
0.36669921875,
0.0519048236310482,
0.19848285615444183,
-0.18466249108314514,
-0.360058456659317,
0.6068569421768188,
-0.6287466287612915,
-0.07542411237955093,
0.00678182952105999,
0.07146885991096497,
0.15753278136253357,
-0.37675291299819946,
-0.3115732669830322,
0.2054007649421692,
0.3532021641731262,
-0.16817954182624817,
0.04309253767132759,
0.1624956876039505,
-0.14180652797222137,
0.0927579402923584,
-0.05387379974126816,
1.0189207792282104,
0.24537965655326843,
-0.12238345295190811,
0.3416142165660858,
-0.027151208370923996
] |
https://github.com/huggingface/datasets/issues/4133 | HANS dataset preview broken | Hi! I've opened a PR that should make this dataset stremable. You can test it as follows:
```python
from datasets import load_dataset
dset = load_dataset("hans", split="train", streaming=True, revision="49decd29839c792ecc24ac88f861cbdec30c1c40")
```
@severo The current script doesn't throw an error in normal mode (only in streaming mode) on my local machine or in Colab. Can you update your installation of `datasets` and see if that fixes the issue? | ## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
| 65 | HANS dataset preview broken
## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
Hi! I've opened a PR that should make this dataset stremable. You can test it as follows:
```python
from datasets import load_dataset
dset = load_dataset("hans", split="train", streaming=True, revision="49decd29839c792ecc24ac88f861cbdec30c1c40")
```
@severo The current script doesn't throw an error in normal mode (only in streaming mode) on my local machine or in Colab. Can you update your installation of `datasets` and see if that fixes the issue? | [
-0.49862414598464966,
-0.18405549228191376,
0.03228161856532097,
0.21668612957000732,
0.2157125622034073,
0.07473232597112656,
0.10147041082382202,
0.20177969336509705,
-0.004671014845371246,
0.13597264885902405,
-0.20167705416679382,
0.19201643764972687,
-0.08966168016195297,
0.2093842476606369,
0.07988159358501434,
-0.31730917096138,
0.1725659817457199,
0.1805785596370697,
-0.5114349126815796,
0.31070733070373535,
-0.0325821191072464,
0.0036505702883005142,
-0.19247154891490936,
-0.3112258315086365,
-0.01084247138351202,
-0.004501307383179665,
-0.021298851817846298,
-0.1948317587375641,
-0.32678645849227905,
-0.525972306728363,
-0.04283077269792557,
0.11520861089229584,
0.48203468322753906,
0.5966664552688599,
-0.00012037775741191581,
0.07083417475223541,
0.41616421937942505,
0.013802485540509224,
-0.36744245886802673,
-0.1970624178647995,
0.028279751539230347,
-0.07091919332742691,
0.22491054236888885,
-0.04496939480304718,
-0.09760412573814392,
-0.12414615601301193,
0.038932498544454575,
-0.2975170612335205,
0.4884994626045227,
0.3336142599582672,
0.2066514939069748,
0.222479909658432,
0.14488020539283752,
-0.13289307057857513,
0.22334802150726318,
-0.12472724914550781,
-0.35266947746276855,
0.562423050403595,
0.207332581281662,
0.2802615761756897,
0.18817287683486938,
0.3266296982765198,
0.1235770434141159,
-0.2516743540763855,
0.24483183026313782,
-0.2966708838939667,
0.01064610481262207,
-0.4470858573913574,
0.32879388332366943,
0.286045104265213,
0.6933209896087646,
-0.2253372073173523,
-0.3542623519897461,
-0.061474334448575974,
0.37065401673316956,
-0.2375982701778412,
0.06893952190876007,
0.0007784813642501831,
0.11115072667598724,
0.1102302223443985,
-0.35696732997894287,
-0.20092301070690155,
-0.05445968359708786,
0.09796340763568878,
0.09128141403198242,
0.4484086334705353,
-0.13300606608390808,
0.12799054384231567,
0.2804664969444275,
-0.0212659053504467,
0.4488321840763092,
0.08598058670759201,
-0.3952938914299011,
0.06316763907670975,
-0.1561068594455719,
-0.055646173655986786,
-0.13935720920562744,
-0.08158286660909653,
-0.030317364260554314,
0.15951518714427948,
0.08633508533239365,
-0.0174822136759758,
0.1925313025712967,
-0.10169150680303574,
0.4459754526615143,
0.06537830829620361,
0.1404067575931549,
0.13957220315933228,
0.20743823051452637,
0.3183930218219757,
0.3001103103160858,
-0.12312165647745132,
-0.15963467955589294,
-0.2525959312915802,
-0.08775995671749115,
-0.09715774655342102,
0.18785415589809418,
-0.1251300573348999,
-0.35947683453559875,
0.17901824414730072,
-0.2733459770679474,
-0.03996998071670532,
0.16838757693767548,
0.27771198749542236,
-0.411068856716156,
0.04122476652264595,
-0.22688929736614227,
0.241258904337883,
-0.24050943553447723,
0.02407180890440941,
-0.0708959624171257,
-0.04330020770430565,
-0.117454394698143,
-0.003673296421766281,
0.020089324563741684,
-0.15186837315559387,
0.09157594293355942,
-0.1606314331293106,
0.3904303312301636,
-0.3018394708633423,
0.045725204050540924,
-0.15298107266426086,
-0.13188207149505615,
0.29022541642189026,
0.1601334661245346,
0.1250399798154831,
-0.06851871311664581,
-0.2573827803134918,
0.031114913523197174,
0.11389908194541931,
-0.21010220050811768,
-0.42944735288619995,
-0.2216091901063919,
0.13590475916862488,
-0.40612995624542236,
-0.13914328813552856,
-0.3282914459705353,
0.06669822335243225,
-0.27523255348205566,
-0.04251458868384361,
0.1573246270418167,
-0.11261436343193054,
0.007363062351942062,
0.14245595037937164,
0.06657665967941284,
0.4902496933937073,
-0.5886290669441223,
-0.2641332447528839,
-0.4117577373981476,
-0.24263796210289001,
0.16032551229000092,
0.05878579244017601,
-0.17847426235675812,
-0.06964995712041855,
-0.11930250376462936,
-0.19286556541919708,
0.24483616650104523,
-0.11995293200016022,
-0.5992704033851624,
0.2652786076068878,
-0.1341901421546936,
-0.08711331337690353,
-0.18871885538101196,
-0.044819287955760956,
0.24694408476352692,
-0.11784569174051285,
0.13428418338298798,
-0.19129256904125214,
0.09459824115037918,
-0.18362078070640564,
-0.13389813899993896,
-0.27243226766586304,
0.12923836708068848,
0.0082535520195961,
0.2558584213256836,
-0.060664884746074677,
0.12544088065624237,
-0.034155987203121185,
0.32024621963500977,
0.10328666865825653,
0.1510610729455948,
0.334303081035614,
0.42578065395355225,
0.1645188331604004,
0.013989372178912163,
-0.15998512506484985,
-0.15657830238342285,
0.0323469415307045,
-0.23210278153419495,
-0.11843475699424744,
0.13027863204479218,
-0.13701309263706207,
-0.3782784342765808,
0.015535598620772362,
-0.1276078075170517,
-0.19549497961997986,
0.09129834920167923,
-0.07217839360237122,
-0.2779309153556824,
-0.11043159663677216,
-0.29883697628974915,
-0.1282002329826355,
0.06101619452238083,
0.1130288764834404,
-0.004937469959259033,
0.44540712237358093,
-0.041370779275894165,
-0.19604459404945374,
0.15471546351909637,
0.22326141595840454,
0.24631410837173462,
-0.3575464189052582,
-0.30358168482780457,
0.5337235331535339,
-0.10704270005226135,
0.03067706525325775,
0.07747043669223785,
-0.25755858421325684,
0.37296757102012634,
-0.4438622295856476,
-0.16919155418872833,
-0.0442238487303257,
-0.13574117422103882,
0.07281991094350815,
-0.06671171635389328,
-0.04870796203613281,
-0.2996082901954651,
-0.007692277431488037,
-0.030677344650030136,
0.4314972162246704,
0.13625933229923248,
0.11703245341777802,
-0.16131244599819183,
-0.44498759508132935,
0.2576131522655487,
-0.4053680896759033,
0.20048324763774872,
-0.07000923156738281,
-0.27436769008636475,
0.10816226899623871,
-0.19048044085502625,
0.0300852470099926,
-0.10621599107980728,
0.16790986061096191,
-0.34037673473358154,
0.017632663249969482,
0.2419803887605667,
0.3908289074897766,
0.15371742844581604,
0.11305491626262665,
0.008047893643379211,
0.011902927421033382,
0.26902052760124207,
-0.06263776123523712,
0.09062062948942184,
0.02021476998925209,
0.2191169559955597,
0.2314470112323761,
-0.051127366721630096,
-0.0006584702059626579,
-0.3444562554359436,
-0.14532844722270966,
0.12092069536447525,
0.2656461000442505,
-0.07034701108932495,
0.06431271880865097,
-0.18965017795562744,
-0.44415637850761414,
-0.2801677882671356,
-0.27376213669776917,
-0.26290300488471985,
-0.1309661567211151,
0.033519502729177475,
0.1965271681547165,
-0.11469890177249908,
0.19841404259204865,
-0.2850179672241211,
0.12740890681743622,
-0.024236232042312622,
0.03953436389565468,
0.01664583384990692,
0.20693551003932953,
-0.21172437071800232,
0.0857217013835907,
0.048251282423734665,
-0.1263851821422577,
0.32037675380706787,
-0.12337997555732727,
0.08780383318662643,
-0.5288144946098328,
-0.20509642362594604,
0.33627375960350037,
-0.08131904155015945,
0.42034390568733215,
0.13496258854866028,
0.16244353353977203,
-0.1772998571395874,
-0.039112988859415054,
0.07779935747385025,
-0.14618484675884247,
0.27525874972343445,
0.04183323308825493,
-0.16274109482765198,
-0.18336071074008942,
0.012226730585098267,
-0.13262176513671875,
-0.20893648266792297,
-0.19432732462882996,
0.21620716154575348,
0.17343758046627045,
-0.08377787470817566,
0.1548626720905304,
0.1303458958864212,
0.05534554645419121,
-0.006626533810049295,
-0.05073302239179611,
-0.050508420914411545,
-0.48706933856010437,
0.21026627719402313,
-0.3906058371067047,
-0.4101239740848541,
0.1319228708744049,
0.11325564980506897,
0.15338847041130066,
-0.17716215550899506,
-0.5836987495422363,
-0.12167508155107498,
-0.20245063304901123,
-0.21674294769763947,
-0.05310723930597305,
-0.1927931010723114,
0.18053719401359558,
-0.10444948077201843,
0.037414804100990295,
-0.151335209608078,
-0.17615720629692078,
-0.0960598960518837,
-0.08490755409002304,
0.4929616153240204,
-0.42335784435272217,
0.18326371908187866,
-0.030577532947063446,
0.4634493589401245,
0.5845210552215576,
0.21984867751598358,
0.1974800080060959,
-0.17294250428676605,
0.45244404673576355,
-0.11095959693193436,
-0.21580614149570465,
0.3145943880081177,
-0.20870378613471985,
-0.05767977982759476,
0.2395707219839096,
0.16550692915916443,
-0.41190069913864136,
-0.12510105967521667,
0.19481153786182404,
-0.16074109077453613,
-0.17772813141345978,
-0.16193433105945587,
-0.2664276957511902,
-0.007137894630432129,
0.09913565218448639,
0.2721095085144043,
-0.14376597106456757,
-0.3613467514514923,
0.04926270246505737,
0.1324942260980606,
0.1514417827129364,
0.07919801771640778,
-0.21284621953964233,
-0.20622564852237701,
-0.6108875870704651,
0.12951506674289703,
-0.0066117155365645885,
0.43568044900894165,
-0.11895396560430527,
0.07491260021924973,
0.1747559756040573,
0.00001701340079307556,
0.42361879348754883,
-0.1497478187084198,
-0.04200609773397446,
0.21917599439620972,
0.026616260409355164,
-0.2584567964076996,
-0.19164063036441803,
-0.07009148597717285,
0.023625273257493973,
0.41385725140571594,
0.35778552293777466,
0.02314705401659012,
-0.051043976098299026,
0.684839129447937,
-0.08643192052841187,
-0.10743297636508942,
-0.3139146864414215,
-0.03620506823062897,
-0.029349837452173233,
0.030072657391428947,
-0.21186310052871704,
-0.0860985592007637,
0.07245398312807083,
-0.10229015350341797,
0.04072280600667,
0.03628070279955864,
-0.11862480640411377,
0.17463186383247375,
0.08056581020355225,
0.2893143892288208,
0.16477805376052856,
0.25569671392440796,
0.5325608253479004,
0.048420701175928116,
0.3676471412181854,
0.7384223341941833,
0.03679606318473816,
-0.37084102630615234,
0.23254534602165222,
0.03782058507204056,
-0.07382939010858536,
0.24679967761039734,
-0.09216401726007462,
0.04136376082897186,
0.14026972651481628,
0.3742886185646057,
-0.24452495574951172,
0.3402288556098938,
0.4091213047504425,
-0.09606926888227463,
-0.6708388328552246,
-0.33894219994544983,
0.37919336557388306,
0.1982853263616562,
0.015745021402835846,
0.1275089830160141,
0.3271527886390686,
-0.08071845024824142,
0.180135577917099,
0.2805752456188202,
0.8482296466827393,
-0.0043296217918396,
-0.10480545461177826,
0.02963840961456299,
-0.21601422131061554,
0.245030015707016,
-0.4024861454963684,
-0.12235462665557861,
-0.25743862986564636,
-0.49330654740333557,
-0.1839299201965332,
-0.07264909893274307,
0.263538658618927,
-0.1201903373003006,
-0.329272985458374,
0.017369398847222328,
0.0015139728784561157,
0.20521025359630585,
-0.214126318693161,
-0.048443783074617386,
-0.4122181236743927,
0.11597302556037903,
-0.023214440792798996,
0.1309949904680252,
-0.06304899603128433,
0.3458980917930603,
-0.2104882299900055,
-0.023056142032146454,
-0.006621208041906357,
0.035048842430114746,
-0.4925846457481384,
0.11619008332490921,
0.04417778551578522,
-0.17599400877952576,
0.07826261222362518,
-0.3967823386192322,
0.3045729100704193,
0.2114575207233429,
0.20735804736614227,
0.2883613705635071,
-0.35928794741630554,
0.318379670381546,
-0.016889087855815887,
-0.2142869383096695,
-0.012920769862830639,
-0.012057347223162651,
0.19707222282886505,
-0.0592280849814415,
-0.2227851152420044,
0.04635200649499893,
0.0938287079334259,
0.036053553223609924,
-0.0413057878613472,
-0.034704312682151794,
-0.003657706081867218,
-0.3649609684944153,
0.1352776437997818,
-0.022932983934879303,
0.1284227818250656,
-0.2666061520576477,
0.07129281759262085,
-0.039048656821250916,
0.03287652134895325,
-0.09742126613855362,
0.11344116926193237,
-0.1565902829170227,
-0.23896007239818573,
0.4044913351535797,
-0.08963098376989365,
-0.09102329611778259,
0.3500504493713379,
0.2886006832122803,
-0.22569707036018372,
-0.1533651351928711,
-0.09127143770456314,
0.19119477272033691,
-0.502509355545044,
0.2192631959915161,
-0.25920718908309937,
0.17460979521274567,
-0.05282577499747276,
0.030392080545425415,
0.19231835007667542,
-0.37512660026550293,
-0.1301354020833969,
-0.25923195481300354,
-0.3425503969192505,
0.07107282429933548,
0.13556385040283203,
0.3987760543823242,
-0.05315519496798515,
0.31561338901519775,
0.021518370136618614,
0.04536883533000946,
-0.22406430542469025,
0.014165102504193783,
0.0428573414683342,
0.04639934003353119,
-0.028370261192321777,
-0.11608584970235825,
0.05552085489034653,
-0.1847708821296692,
0.03845607489347458,
0.24052074551582336,
-0.06675536185503006,
-0.13689880073070526,
-0.22167910635471344,
0.1469731330871582,
0.01883300393819809,
-0.48438072204589844,
0.02822822332382202,
-0.12016715109348297,
-0.16280147433280945,
-0.10041865706443787,
0.1723695695400238,
0.3084450364112854,
0.2736514210700989,
0.08929608762264252,
0.27912411093711853,
-0.07377935200929642,
-0.1053604781627655,
0.15272048115730286,
0.320903480052948,
0.590978741645813,
0.01209341175854206,
0.22861777245998383,
0.03592665120959282,
-0.07268396764993668,
-0.29935353994369507,
0.12056830525398254,
0.23097583651542664,
0.07546918094158173,
0.23169878125190735,
-0.5208880305290222,
0.4314475357532501,
0.2604064345359802,
0.6123336553573608,
0.5008184909820557,
-0.17739173769950867,
-0.020046403631567955,
0.4593568444252014,
0.12560932338237762,
-0.16487431526184082,
-0.16236361861228943,
0.18834270536899567,
0.48040392994880676,
0.11448413133621216,
0.04502541571855545,
-0.01769131049513817,
0.15267132222652435,
-0.09228570759296417,
0.16844171285629272,
-0.11739225685596466,
0.31575679779052734,
0.48221489787101746,
0.49108853936195374,
-0.07954877614974976,
0.016922440379858017,
0.10815250873565674,
0.1458882838487625,
0.2083975076675415,
0.49487078189849854,
0.014007940888404846,
0.15689684450626373,
0.061365410685539246,
0.18825963139533997,
0.08976653963327408,
-0.4002850353717804,
0.24073132872581482,
-0.042030006647109985,
-0.007473349571228027,
0.09071265906095505,
0.3533227741718292,
0.6439343690872192,
-0.19928137958049774,
-0.027278263121843338,
-0.42377179861068726,
0.011303188279271126,
-0.007182929664850235,
-0.09437835216522217,
-0.05006836727261543,
-0.11436399072408676,
-0.11765024811029434,
0.21107833087444305,
-0.1322653889656067,
-0.032279640436172485,
-0.17359334230422974,
0.13880126178264618,
-0.1785762757062912,
-0.47076964378356934,
-0.1609267294406891,
0.2642633616924286,
0.10963594168424606,
-0.09702828526496887,
0.12789452075958252,
0.16960644721984863,
0.012241814285516739,
0.06449718028306961,
0.3207983672618866,
0.2610589861869812,
0.0769258588552475,
0.08778229355812073,
-0.07076534628868103,
0.19219687581062317,
-0.05948319286108017,
0.09726733714342117,
0.18394140899181366,
0.29168564081192017,
0.13068093359470367,
0.3331257402896881,
0.06947876513004303,
-0.19344167411327362,
0.48166927695274353,
-0.15647725760936737,
0.3833009600639343,
-0.29410484433174133,
0.1384688764810562,
-0.22412177920341492,
0.008642934262752533,
-0.2577952742576599,
-0.4275214374065399,
-0.13492977619171143,
0.1464640200138092,
0.3786628842353821,
-0.13983730971813202,
0.08669912070035934,
-0.3214465379714966,
0.044290751218795776,
0.15877728164196014,
0.28847336769104004,
0.20912081003189087,
0.09915880858898163,
-0.020272627472877502,
-0.1223859190940857,
-0.3235875964164734,
0.19939477741718292,
-0.02505100890994072,
0.4733581840991974,
0.03794298321008682,
-0.2103528380393982,
-0.34833824634552,
0.2534763216972351,
0.39839255809783936,
0.1539086103439331,
0.13662807643413544,
0.5315760374069214,
-0.027769409120082855,
-0.11859384179115295,
-0.10896472632884979,
0.2581126093864441,
-0.015359525568783283,
-0.1303708255290985,
0.13886964321136475,
-0.09691929072141647,
-0.12719817459583282,
-0.1299012005329132,
-0.33104604482650757,
-0.13824577629566193,
-0.5111867189407349,
0.4518126845359802,
0.19673259556293488,
0.49091053009033203,
0.051061421632766724,
-0.07131978124380112,
-0.40220826864242554,
-0.41181230545043945,
-0.14825274050235748,
-0.13192683458328247,
0.34260743856430054,
0.4270171821117401,
-0.07692413777112961,
-0.05370916798710823,
-0.2600559592247009,
0.06409470736980438,
0.10230518877506256,
0.31198644638061523,
-0.536381721496582,
0.07823893427848816,
-0.24879729747772217,
0.09050894528627396,
0.30419060587882996,
0.3871378004550934,
0.06072084233164787,
0.20553120970726013,
-0.021149374544620514,
-0.38738155364990234,
0.6960266828536987,
-0.566275954246521,
-0.120798259973526,
-0.10334514826536179,
-0.06499950587749481,
0.25934046506881714,
-0.6446874737739563,
-0.3554539978504181,
0.20455673336982727,
0.19632062315940857,
-0.08050031960010529,
0.10633255541324615,
0.12970757484436035,
-0.15417362749576569,
0.051471006125211716,
-0.08520323783159256,
1.2164102792739868,
0.15051525831222534,
0.021743403747677803,
0.30962270498275757,
-0.10169484466314316
] |
https://github.com/huggingface/datasets/issues/4133 | HANS dataset preview broken | Thanks for this. It works well, thanks! The dataset viewer is using https://github.com/huggingface/datasets/releases/tag/2.0.0, I'm eager to upgrade to 2.0.1 😉 | ## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
| 20 | HANS dataset preview broken
## Dataset viewer issue for '*hans*'
**Link:** [https://huggingface.co/datasets/hans](https://huggingface.co/datasets/hans)
HANS dataset preview is broken with error 400
Am I the one who added this dataset ? No
Thanks for this. It works well, thanks! The dataset viewer is using https://github.com/huggingface/datasets/releases/tag/2.0.0, I'm eager to upgrade to 2.0.1 😉 | [
-0.23055516183376312,
-0.2901008725166321,
0.009215287864208221,
0.2625429034233093,
0.06725800037384033,
0.062246061861515045,
0.05773600563406944,
0.20004583895206451,
0.04018033668398857,
0.02675095945596695,
-0.310226172208786,
0.08820284903049469,
-0.03851425647735596,
0.04559660702943802,
0.1961982101202011,
-0.28385743498802185,
0.22999724745750427,
0.1212560310959816,
-0.4576294720172882,
0.18417608737945557,
-0.10240085422992706,
0.26703622937202454,
-0.01793605089187622,
0.04099787026643753,
-0.0849682092666626,
0.12676306068897247,
-0.010094009339809418,
0.00505104660987854,
-0.2594631612300873,
-0.5159592628479004,
0.23917256295681,
0.09258248656988144,
0.12452061474323273,
0.5032389163970947,
-0.00011853691103169695,
0.10665562748908997,
0.43901485204696655,
0.09842095524072647,
-0.24648314714431763,
-0.10263282060623169,
-0.029943499714136124,
-0.08962570130825043,
0.0669109895825386,
0.07229674607515335,
-0.11786887049674988,
-0.34123191237449646,
0.020047873258590698,
-0.268862247467041,
0.23326033353805542,
0.1294219046831131,
0.20754076540470123,
0.26733219623565674,
0.32181110978126526,
-0.2846015989780426,
0.2526837885379791,
0.06169342249631882,
-0.22976908087730408,
0.5214560031890869,
0.2590571641921997,
0.35182902216911316,
0.15196162462234497,
0.43667036294937134,
0.13964234292507172,
-0.24545033276081085,
0.38111186027526855,
-0.2525709569454193,
-0.04556049406528473,
-0.3589407503604889,
0.2677761912345886,
0.34689056873321533,
0.5943102240562439,
-0.039267733693122864,
-0.3857309818267822,
-0.07626944780349731,
0.18584279716014862,
-0.08244965970516205,
0.23781853914260864,
0.008503716439008713,
0.15122558176517487,
0.18574528396129608,
-0.26036521792411804,
-0.290939599275589,
-0.04041338711977005,
0.09965585917234421,
0.11296729743480682,
0.3259962201118469,
-0.17613613605499268,
0.1766882836818695,
0.2094571888446808,
-0.01742691919207573,
0.12926484644412994,
-0.010554034262895584,
-0.5889884829521179,
0.04687196761369705,
-0.005763161927461624,
-0.17014248669147491,
-0.06396565586328506,
0.12714502215385437,
0.12425952404737473,
0.15779128670692444,
-0.17510531842708588,
-0.06499996036291122,
0.012026804499328136,
-0.19099104404449463,
0.4029640555381775,
-0.13054119050502777,
0.18442490696907043,
0.08400251716375351,
0.2070065438747406,
0.23218469321727753,
0.5634203553199768,
-0.06577499210834503,
0.046985190361738205,
-0.16738957166671753,
-0.2707236409187317,
-0.2517533302307129,
0.2397608608007431,
-0.10635191202163696,
-0.2725866734981537,
0.2134598046541214,
-0.1984657347202301,
-0.06826085597276688,
0.10501954704523087,
0.30712637305259705,
-0.2980881929397583,
-0.10650762170553207,
-0.13292258977890015,
0.16699811816215515,
-0.0948421061038971,
-0.10560166090726852,
-0.1188962385058403,
0.021917259320616722,
-0.030084023252129555,
-0.11867516487836838,
0.05440964177250862,
-0.10976827144622803,
0.10182409733533859,
-0.11381521821022034,
0.3174026906490326,
-0.2557530403137207,
-0.015653254464268684,
-0.038322653621435165,
-0.1607767939567566,
0.30207574367523193,
0.0013117417693138123,
0.21422886848449707,
-0.04175840690732002,
-0.13516715168952942,
0.08319247514009476,
0.0065866149961948395,
-0.3358761966228485,
-0.30943623185157776,
-0.28550443053245544,
0.10808707028627396,
-0.34139537811279297,
-0.18062739074230194,
-0.30904102325439453,
0.07361315190792084,
-0.4555406868457794,
-0.11203961074352264,
0.1507955938577652,
0.2619935870170593,
0.05915788933634758,
0.1663275510072708,
0.002608930692076683,
0.5167090892791748,
-0.42236512899398804,
-0.33804023265838623,
-0.20335832238197327,
-0.3976334035396576,
-0.10357237607240677,
0.05606178939342499,
-0.15799623727798462,
0.03774147108197212,
-0.2644033133983612,
-0.19306138157844543,
0.331989049911499,
-0.2773648202419281,
-0.5327239632606506,
0.24486732482910156,
-0.14019083976745605,
-0.07857505977153778,
-0.05405718833208084,
0.028920847922563553,
0.08756037801504135,
-0.1730739325284958,
-0.05568508803844452,
-0.33173859119415283,
0.15329432487487793,
-0.16847960650920868,
-0.0663222223520279,
-0.2680348753929138,
-0.07959169149398804,
0.11139658093452454,
0.1449115127325058,
-0.08559239655733109,
0.1316823661327362,
-0.146610826253891,
0.2505434453487396,
0.002502214163541794,
0.155401349067688,
0.4490988254547119,
0.2767796218395233,
0.23850329220294952,
0.16431795060634613,
-0.13922137022018433,
-0.32864105701446533,
-0.00040927156805992126,
-0.3766256868839264,
-0.12005333602428436,
0.11756190657615662,
-0.17647677659988403,
-0.4428243041038513,
-0.06259597837924957,
-0.172075092792511,
-0.34336110949516296,
0.0741107389330864,
-0.009350717067718506,
-0.20838026702404022,
-0.046232324093580246,
-0.24721981585025787,
0.028145920485258102,
0.2711283266544342,
0.2227354645729065,
-0.07704120874404907,
0.3795846402645111,
0.004453098401427269,
0.05990579351782799,
0.03245939314365387,
0.2790178060531616,
0.21269357204437256,
-0.3594369888305664,
-0.1357278823852539,
0.4726155698299408,
-0.22621317207813263,
0.24130092561244965,
0.25789037346839905,
-0.29354554414749146,
0.3529861569404602,
-0.5532678961753845,
-0.14340244233608246,
-0.05132829770445824,
-0.042789485305547714,
0.04469946026802063,
-0.15401169657707214,
-0.009882166981697083,
-0.2016359120607376,
-0.020767897367477417,
-0.07105090469121933,
0.4516281187534332,
0.10491053760051727,
0.07695075869560242,
-0.19041003286838531,
-0.36542192101478577,
0.340333491563797,
-0.30533918738365173,
0.4192606508731842,
-0.08050737529993057,
-0.28691601753234863,
-0.040950484573841095,
-0.012160759419202805,
-0.059758834540843964,
-0.1402929723262787,
0.19371524453163147,
-0.33020445704460144,
0.15069329738616943,
0.21924865245819092,
0.26603105664253235,
0.18366248905658722,
0.17110182344913483,
-0.16312435269355774,
0.04172368347644806,
0.2612515985965729,
0.0013067368417978287,
0.14668995141983032,
0.024748042225837708,
0.10745921730995178,
0.04288466274738312,
-0.09907278418540955,
0.05309274047613144,
-0.4964487850666046,
-0.10567313432693481,
0.048195935785770416,
0.195503368973732,
-0.2207947075366974,
0.03677795082330704,
-0.05502063035964966,
-0.5056465268135071,
-0.1985027939081192,
-0.21123453974723816,
-0.3131164014339447,
-0.2582996189594269,
-0.0019122473895549774,
0.11362071335315704,
-0.02488233521580696,
0.1438606083393097,
-0.1511785089969635,
0.2610447108745575,
-0.13876210153102875,
0.23351122438907623,
-0.158015638589859,
0.25928401947021484,
-0.2643671929836273,
0.06684626638889313,
0.09804899245500565,
-0.1265266388654709,
0.4256424009799957,
-0.21657311916351318,
0.2318284511566162,
-0.5400983095169067,
-0.3876892030239105,
0.3271692097187042,
-0.11104102432727814,
0.28250744938850403,
0.2680976390838623,
0.1553114801645279,
-0.1013484001159668,
-0.0029029827564954758,
0.15537165105342865,
0.023178966715931892,
0.06569263339042664,
-0.024908579885959625,
-0.3039622902870178,
-0.07246982306241989,
-0.015687590464949608,
-0.05451790243387222,
-0.09120282530784607,
-0.1163962334394455,
0.36811262369155884,
0.0001985505223274231,
-0.07562778890132904,
0.05047605186700821,
-0.046594567596912384,
0.09502419829368591,
-0.3380047082901001,
-0.061162665486335754,
-0.15212346613407135,
-0.520736575126648,
0.19986703991889954,
-0.3816400170326233,
-0.3575957417488098,
0.16611364483833313,
0.23110859096050262,
0.17230167984962463,
-0.4758024215698242,
-0.5549622774124146,
-0.24822284281253815,
-0.17529922723770142,
-0.18723216652870178,
0.018412137404084206,
-0.2139507383108139,
0.25599509477615356,
-0.0883411169052124,
0.04367002099752426,
-0.1407734453678131,
-0.20176543295383453,
0.02085305005311966,
-0.2996838688850403,
0.436550498008728,
-0.4330344498157501,
0.19785773754119873,
-0.009121617302298546,
0.5097928643226624,
0.6226176619529724,
0.3006066381931305,
0.24622462689876556,
-0.06706435978412628,
0.5842702388763428,
-0.04393955320119858,
-0.27647706866264343,
0.17030596733093262,
-0.05506362020969391,
0.3249584436416626,
0.05705105885863304,
0.2024538815021515,
-0.22110441327095032,
-0.19386518001556396,
0.00631297379732132,
-0.16179928183555603,
-0.09753827750682831,
-0.36288413405418396,
-0.26156944036483765,
-0.14560306072235107,
0.07560466229915619,
0.16390904784202576,
-0.13607235252857208,
-0.28163790702819824,
0.15238797664642334,
0.33595067262649536,
0.23513418436050415,
0.056288398802280426,
-0.27272942662239075,
0.03065597079694271,
-0.6386498808860779,
0.2170487344264984,
-0.10216590017080307,
0.24355515837669373,
-0.12923237681388855,
0.18268808722496033,
0.23091286420822144,
-0.0778082087635994,
0.6566740870475769,
-0.06982512772083282,
0.03449062258005142,
0.08221879601478577,
0.07130826264619827,
-0.30230972170829773,
-0.021026818081736565,
-0.06627629697322845,
0.09796788543462753,
0.46646344661712646,
0.5590320825576782,
-0.13393455743789673,
-0.15852349996566772,
0.7444659471511841,
-0.27595117688179016,
-0.08103878051042557,
-0.33760860562324524,
-0.04533824697136879,
-0.0886184573173523,
0.1011049896478653,
-0.14743861556053162,
-0.12019066512584686,
0.10237020999193192,
0.07641341537237167,
-0.05323125422000885,
0.08652279525995255,
-0.1843492090702057,
0.2185938060283661,
-0.0595710352063179,
0.22316217422485352,
0.131291463971138,
0.19161751866340637,
0.6568459272384644,
0.24010108411312103,
0.2826860249042511,
0.6209744215011597,
-0.005003586411476135,
-0.3870963752269745,
0.19347774982452393,
-0.007004192098975182,
0.07189547270536423,
0.3643749952316284,
-0.014710403978824615,
0.0819513127207756,
0.10017847269773483,
0.2456674724817276,
-0.24286165833473206,
0.07148656994104385,
0.5324156880378723,
0.030904307961463928,
-0.6593034863471985,
-0.18140403926372528,
0.47382864356040955,
0.1842191219329834,
-0.017923496663570404,
0.28472229838371277,
0.6003448367118835,
-0.06109122186899185,
-0.07852554321289062,
0.17679551243782043,
0.8995452523231506,
0.15168455243110657,
-0.01883743330836296,
0.1598423421382904,
-0.35006213188171387,
0.49732187390327454,
-0.3204418420791626,
-0.20958246290683746,
-0.1846979409456253,
-0.33755701780319214,
-0.20044337213039398,
-0.13721516728401184,
0.4609680473804474,
-0.2159389704465866,
-0.10552789270877838,
0.10416911542415619,
0.06876526772975922,
0.19269071519374847,
-0.1457718461751938,
0.11402185261249542,
-0.27381259202957153,
-0.002656012773513794,
0.13835574686527252,
0.12975934147834778,
0.06422524154186249,
0.417481005191803,
-0.24508455395698547,
-0.17134340107440948,
-0.1085575744509697,
-0.11479980498552322,
-0.4367954730987549,
0.021486662328243256,
0.053516119718551636,
-0.20955905318260193,
0.3043462038040161,
-0.3544495105743408,
0.3266732394695282,
0.1493745744228363,
0.3139248490333557,
0.2152687907218933,
-0.37813541293144226,
0.4285016357898712,
-0.1191263422369957,
-0.11537079513072968,
0.011099155992269516,
-0.04563898220658302,
0.012872258201241493,
-0.17277264595031738,
-0.1780342161655426,
0.07879438251256943,
-0.01534869521856308,
-0.10195526480674744,
-0.15186551213264465,
-0.08266091346740723,
-0.30363160371780396,
-0.22331741452217102,
0.08249546587467194,
0.028543397784233093,
0.19527623057365417,
-0.26454630494117737,
0.0626671314239502,
0.06869907677173615,
0.051598306745290756,
-0.24201005697250366,
0.15212804079055786,
-0.25162363052368164,
-0.2768844664096832,
0.45890435576438904,
-0.22942987084388733,
-0.18240997195243835,
0.43075796961784363,
0.020840290933847427,
-0.17812295258045197,
-0.11459629237651825,
0.006823204457759857,
0.4269767105579376,
-0.7219083309173584,
-0.03169409930706024,
-0.1415511518716812,
0.24361954629421234,
0.010364940389990807,
-0.005838427692651749,
0.14545008540153503,
-0.17615321278572083,
-0.034726932644844055,
-0.23295705020427704,
-0.2854887545108795,
0.2046542763710022,
-0.04099426046013832,
0.2579360008239746,
-0.059439271688461304,
0.3490735590457916,
0.07426007837057114,
0.08631327748298645,
-0.22932608425617218,
0.11574620008468628,
0.08458339422941208,
-0.1946684867143631,
0.20277781784534454,
0.003196440637111664,
0.12978778779506683,
-0.19188635051250458,
0.03784608840942383,
0.09825064986944199,
-0.2206249088048935,
-0.0700017586350441,
-0.24988342821598053,
0.1455017775297165,
-0.10455165058374405,
-0.44568678736686707,
0.07967595756053925,
-0.0728665292263031,
-0.13085246086120605,
0.08546081930398941,
0.11094173789024353,
0.18986329436302185,
0.22792081534862518,
-0.06268777698278427,
0.1664513796567917,
-0.15782839059829712,
-0.09256201982498169,
0.1311151087284088,
0.2680562734603882,
0.46560800075531006,
-0.13516221940517426,
0.14982983469963074,
-0.01868429221212864,
-0.1408223807811737,
-0.15096086263656616,
0.21830043196678162,
0.2446281909942627,
0.04329227656126022,
0.22642368078231812,
-0.4349946975708008,
0.3961094319820404,
0.3588862121105194,
0.44334685802459717,
0.23683404922485352,
-0.28458696603775024,
0.0965733528137207,
0.29965800046920776,
0.09908506274223328,
-0.14009574055671692,
-0.19871886074543,
0.208861842751503,
0.41299185156822205,
-0.015867028385400772,
-0.11543703824281693,
0.09410099685192108,
0.3199766278266907,
0.05331400781869888,
0.1813226044178009,
0.016655949875712395,
0.26470524072647095,
0.4847474694252014,
0.4702785313129425,
-0.05742381140589714,
0.05561952292919159,
0.33291181921958923,
0.167256161570549,
0.14740687608718872,
0.508103609085083,
-0.06263972073793411,
0.11751255393028259,
0.04544697701931,
0.2830069065093994,
0.17230559885501862,
-0.4074428975582123,
0.1913883537054062,
-0.07873845100402832,
-0.02182111144065857,
0.020939018577337265,
0.2855910062789917,
0.6738011837005615,
-0.2729567289352417,
-0.08367620408535004,
-0.4902772307395935,
0.19673964381217957,
-0.05961176007986069,
-0.17119808495044708,
-0.02607182413339615,
-0.24143099784851074,
-0.04558953642845154,
0.10719664394855499,
-0.1622854322195053,
-0.12138479948043823,
-0.16807866096496582,
0.02652830258011818,
-0.17800043523311615,
-0.4320079982280731,
-0.32959234714508057,
0.12779691815376282,
0.19335836172103882,
-0.0903330072760582,
0.21242761611938477,
0.1459837257862091,
-0.13723362982273102,
0.2203882783651352,
0.5317811965942383,
0.18749982118606567,
0.03034071810543537,
0.29721811413764954,
-0.056270781904459,
-0.04181685298681259,
-0.1290169060230255,
0.11743798851966858,
0.2330630123615265,
0.33504244685173035,
-0.07840022444725037,
0.3268926441669464,
0.0529450997710228,
-0.15564633905887604,
0.39737752079963684,
-0.16124166548252106,
0.5106583833694458,
-0.4072132110595703,
0.1951080560684204,
-0.6267012357711792,
0.0032665133476257324,
-0.3178105056285858,
-0.22139424085617065,
-0.11624692380428314,
-0.042081717401742935,
0.3352265954017639,
-0.09095868468284607,
-0.007386522367596626,
-0.3313821852207184,
0.0291256345808506,
0.22233320772647858,
0.28871625661849976,
0.19071842730045319,
0.06605393439531326,
-0.024433225393295288,
-0.2695806920528412,
-0.40056508779525757,
0.11306177079677582,
0.11308018863201141,
0.5449163317680359,
-0.02336224541068077,
-0.36858585476875305,
-0.20651647448539734,
0.025127094238996506,
0.49117451906204224,
0.10103003680706024,
0.25137773156166077,
0.218339204788208,
0.017050858587026596,
0.0018816404044628143,
-0.08168159425258636,
0.2975914180278778,
-0.05125058814883232,
0.0037876442074775696,
0.25842317938804626,
0.12422424554824829,
-0.15208770334720612,
-0.13545185327529907,
-0.06580020487308502,
-0.1976192146539688,
-0.43939894437789917,
0.30618494749069214,
0.19478502869606018,
0.4683520793914795,
0.06696368753910065,
-0.17923417687416077,
-0.367043673992157,
-0.42612743377685547,
-0.14754585921764374,
0.0182151161134243,
0.1939956098794937,
0.3650096654891968,
-0.11623875796794891,
-0.28272363543510437,
-0.07901903986930847,
0.09775292873382568,
0.0038032643496990204,
0.36465561389923096,
-0.6364979147911072,
0.1630655825138092,
-0.2887706458568573,
-0.06258632987737656,
0.4076821506023407,
0.3205430507659912,
0.0746002048254013,
0.10158753395080566,
-0.07398124784231186,
-0.15721815824508667,
0.5639814138412476,
-0.4112190902233124,
0.10281568765640259,
-0.09265148639678955,
0.01532544195652008,
0.27041110396385193,
-0.686408281326294,
-0.2733250558376312,
0.038019947707653046,
0.3042476177215576,
-0.0008223932236433029,
0.11027427017688751,
0.2211524248123169,
-0.12328718602657318,
0.01856483891606331,
-0.05417393147945404,
1.0277307033538818,
0.22979897260665894,
-0.03165891394019127,
0.44539767503738403,
-0.09336967021226883
] |
https://github.com/huggingface/datasets/issues/4129 | dataset metadata for reproducibility | +1 on this idea. This could be powerful for helping better track datasets used for model training and help with automatic model card creation.
One possible way of doing this would be to store some/most/all the arguments passed to `load_dataset` if a hub id is passed. i.e. store the Hub ID, configuration, etc.
cc @tomaarsen | When pulling a dataset from the hub, it would be useful to have some metadata about the specific dataset and version that is used. The metadata could then be passed to the `Trainer` which could then be saved to a model card. This is useful for people who run many experiments on different versions (commits/branches) of the same dataset.
The dataset could have a list of “source datasets” metadata and ignore what happens to them before arriving in the Trainer (i.e. ignore mapping, filtering, etc.).
Here is a basic representation (made by @lhoestq )
```python
>>> from datasets import load_dataset
>>>
>>> my_dataset = load_dataset(...)["train"]
>>> my_dataset = my_dataset.map(...)
>>>
>>> my_dataset.sources
[HFHubDataset(repo_id=..., revision=..., arguments={...})]
``` | 55 | dataset metadata for reproducibility
When pulling a dataset from the hub, it would be useful to have some metadata about the specific dataset and version that is used. The metadata could then be passed to the `Trainer` which could then be saved to a model card. This is useful for people who run many experiments on different versions (commits/branches) of the same dataset.
The dataset could have a list of “source datasets” metadata and ignore what happens to them before arriving in the Trainer (i.e. ignore mapping, filtering, etc.).
Here is a basic representation (made by @lhoestq )
```python
>>> from datasets import load_dataset
>>>
>>> my_dataset = load_dataset(...)["train"]
>>> my_dataset = my_dataset.map(...)
>>>
>>> my_dataset.sources
[HFHubDataset(repo_id=..., revision=..., arguments={...})]
```
+1 on this idea. This could be powerful for helping better track datasets used for model training and help with automatic model card creation.
One possible way of doing this would be to store some/most/all the arguments passed to `load_dataset` if a hub id is passed. i.e. store the Hub ID, configuration, etc.
cc @tomaarsen | [
-0.3613413870334625,
-0.00813063234090805,
0.004297018051147461,
-0.05673585087060928,
0.0365433469414711,
0.03436640650033951,
0.30104953050613403,
0.45543766021728516,
-0.03429088369011879,
0.22805581986904144,
-0.007196463644504547,
0.43954798579216003,
-0.3767392933368683,
0.4402889013290405,
0.13430456817150116,
0.08189181238412857,
0.05022849887609482,
0.16063667833805084,
-0.023952312767505646,
-0.06420159339904785,
0.0023922212421894073,
-0.0589258149266243,
0.3143799901008606,
0.22034819424152374,
-0.527389645576477,
-0.13739879429340363,
-0.04813200607895851,
0.16302356123924255,
-0.1467895358800888,
-0.3801949620246887,
0.09733075648546219,
0.5131500959396362,
0.21999865770339966,
0.11702585965394974,
-0.00010807102080434561,
0.00983719527721405,
-0.07369890809059143,
-0.08231084793806076,
-0.45043063163757324,
-0.20535175502300262,
-0.2185268998146057,
0.14892251789569855,
0.0794164314866066,
-0.11605407297611237,
-0.20681500434875488,
0.22985781729221344,
-0.04579819738864899,
0.21881961822509766,
0.2517884373664856,
0.12741288542747498,
0.23845486342906952,
0.3161371648311615,
-0.06763530522584915,
-0.21999502182006836,
0.12463883310556412,
0.34284406900405884,
-0.19047150015830994,
0.251485675573349,
0.2797865867614746,
0.07900891453027725,
-0.07854402810335159,
0.36376968026161194,
0.21038128435611725,
-0.1009562611579895,
0.39148804545402527,
-0.032610420137643814,
0.2760474979877472,
-0.1453457474708557,
0.013667598366737366,
0.26432377099990845,
0.13174454867839813,
-0.5776731967926025,
-0.43150046467781067,
-0.31399795413017273,
0.12779036164283752,
-0.0377364344894886,
-0.07630754262208939,
0.14028356969356537,
-0.0924035906791687,
0.3304935693740845,
-0.07779447734355927,
-0.32083356380462646,
-0.30530256032943726,
-0.1985694020986557,
0.1198195070028305,
0.47519126534461975,
0.0941731259226799,
-0.03508640080690384,
-0.07777363061904907,
0.1388264149427414,
0.4385262727737427,
-0.4273461103439331,
0.16010913252830505,
-0.025536522269248962,
0.14442172646522522,
-0.34882184863090515,
-0.029801368713378906,
0.13786403834819794,
0.12106551975011826,
0.11283834278583527,
-0.03605574369430542,
0.11129266768693924,
-0.29733532667160034,
0.16966670751571655,
0.2670150101184845,
-0.22842685878276825,
0.03778812661767006,
0.32642754912376404,
0.10259462893009186,
-0.03475901111960411,
-0.2403082400560379,
0.07234939187765121,
-0.21136443316936493,
0.40558913350105286,
0.09902150928974152,
-0.05619095265865326,
-0.03859630227088928,
-0.10694894194602966,
-0.0231107696890831,
0.012760384939610958,
-0.16706258058547974,
0.07148242741823196,
0.261809378862381,
0.2566267251968384,
-0.27317795157432556,
0.25114086270332336,
-0.2234858125448227,
-0.04849579185247421,
-0.021237090229988098,
-0.15837609767913818,
-0.27953648567199707,
-0.039396949112415314,
-0.11478747427463531,
0.14967675507068634,
0.08626748621463776,
-0.372303307056427,
0.2570003867149353,
-0.08239256590604782,
0.003737635910511017,
0.10827457904815674,
0.25158506631851196,
-0.07777974009513855,
0.2425084114074707,
0.142391175031662,
0.07856251299381256,
-0.05567513406276703,
-0.05616072192788124,
-0.05619646981358528,
-0.42996934056282043,
-0.07041633874177933,
-0.443278968334198,
-0.4281116724014282,
-0.06564714014530182,
0.2423054724931717,
-0.1347997784614563,
0.010060399770736694,
-0.32483869791030884,
0.1446303278207779,
-0.27628737688064575,
0.02341238036751747,
-0.08208522945642471,
-0.044637054204940796,
-0.17535310983657837,
-0.18859508633613586,
0.07262208312749863,
0.1652638018131256,
-0.174465611577034,
-0.27982276678085327,
0.3989884555339813,
-0.11247478425502777,
-0.3341759741306305,
-0.04552381858229637,
-0.42359551787376404,
0.4859853982925415,
0.12694332003593445,
0.08452711999416351,
0.35189738869667053,
-0.4904904067516327,
-0.30957818031311035,
-0.11273200064897537,
-0.025797944515943527,
0.05297344923019409,
-0.08968281000852585,
0.22395078837871552,
0.2235882431268692,
-0.27554449439048767,
0.007803492248058319,
0.21674014627933502,
-0.1563846915960312,
0.023353585973381996,
-0.07688738405704498,
-0.48902761936187744,
-0.30623120069503784,
0.3107713758945465,
0.3036115765571594,
0.12462636083364487,
-0.0692056342959404,
0.4296855032444,
0.5191004276275635,
-0.07129164040088654,
0.021915478631854057,
-0.002300608903169632,
0.4300574064254761,
0.12507587671279907,
-0.1744208186864853,
-0.16789129376411438,
0.11219897866249084,
0.2378319799900055,
-0.18891766667366028,
-0.039188534021377563,
0.25759410858154297,
-0.4325445294380188,
0.09723609685897827,
0.1546563357114792,
-0.22270701825618744,
0.1563572734594345,
0.21521787345409393,
0.033815182745456696,
-0.047665633261203766,
-0.1663694977760315,
-0.31386110186576843,
0.5382645130157471,
-0.515171468257904,
0.04561319574713707,
-0.2520177364349365,
0.5573207139968872,
-0.11161785572767258,
-0.07105714082717896,
0.096342533826828,
0.2737221121788025,
-0.1394251585006714,
0.010074326768517494,
0.04261518642306328,
0.21794724464416504,
0.07425688952207565,
0.06745851039886475,
0.24517253041267395,
0.48195183277130127,
0.3285185992717743,
0.06987607479095459,
0.16382797062397003,
-0.17239730060100555,
0.0012881970033049583,
-0.010673657059669495,
-0.1601221263408661,
0.41198623180389404,
0.19604645669460297,
0.01661321520805359,
0.17276926338672638,
-0.13840138912200928,
-0.01706652343273163,
0.2508341372013092,
-0.12182297557592392,
-0.11606350541114807,
-0.20715807378292084,
0.24275532364845276,
0.025602154433727264,
-0.08200021833181381,
-0.18788614869117737,
0.4607709050178528,
0.6138421297073364,
0.03675920143723488,
0.01984313130378723,
0.15975996851921082,
-0.1991255283355713,
-0.10858962684869766,
0.10030421614646912,
0.05960377678275108,
0.21185290813446045,
0.24957339465618134,
-0.06678476929664612,
0.17468324303627014,
-0.3698526620864868,
-0.059036314487457275,
0.03824205696582794,
0.12604999542236328,
0.05236896499991417,
-0.17148026823997498,
-0.14141978323459625,
0.10203671455383301,
-0.09177219122648239,
-0.3176270127296448,
-0.12556953728199005,
0.10879145562648773,
-0.25947222113609314,
0.12839725613594055,
-0.19050516188144684,
0.1952584981918335,
-0.1883617788553238,
-0.3078356683254242,
-0.19468055665493011,
-0.19281938672065735,
0.2853580117225647,
0.465605765581131,
0.04700666293501854,
0.09782250225543976,
0.07652527093887329,
0.41166990995407104,
-0.21480070054531097,
-0.09749031811952591,
0.24721404910087585,
-0.36499032378196716,
-0.18076932430267334,
0.13410399854183197,
0.1588597297668457,
-0.019381672143936157,
0.4588046669960022,
-0.11308909207582474,
0.10176251083612442,
-0.28983134031295776,
-0.17893090844154358,
0.18724118173122406,
-0.13333362340927124,
0.09010251611471176,
0.21576851606369019,
0.036686934530735016,
-0.04005332663655281,
-0.081478551030159,
-0.011337751522660255,
-0.12718892097473145,
-0.06519172340631485,
-0.22986860573291779,
-0.059211235493421555,
-0.2040252536535263,
0.07841339707374573,
-0.06990400701761246,
-0.26641765236854553,
-0.24314528703689575,
0.09040151536464691,
0.1630062758922577,
0.30516642332077026,
0.1287659853696823,
0.06365197896957397,
0.1491774320602417,
-0.097955122590065,
-0.14387661218643188,
-0.23314231634140015,
-0.5843133926391602,
0.06415703892707825,
-0.2907887101173401,
-0.16648313403129578,
0.12048064172267914,
-0.12348049134016037,
0.22930841147899628,
-0.014522712677717209,
-0.3252618908882141,
-0.3461865782737732,
0.3188139796257019,
0.08868059515953064,
0.044385749846696854,
0.06278768926858902,
0.3999629616737366,
0.17210492491722107,
-0.050811104476451874,
-0.011454731225967407,
-0.18024009466171265,
0.1984330415725708,
0.2540339231491089,
0.164145827293396,
-0.12792125344276428,
-0.20329681038856506,
-0.07701881229877472,
0.5061339139938354,
0.13299967348575592,
-0.3273451328277588,
0.03625565022230148,
0.06847966462373734,
0.10328100621700287,
-0.23378384113311768,
0.09299026429653168,
0.01684689149260521,
-0.08054958283901215,
-0.0029751528054475784,
0.5869157910346985,
0.13716241717338562,
0.07378647476434708,
-0.027037182822823524,
-0.29047060012817383,
-0.044922806322574615,
-0.4909287989139557,
0.11592256277799606,
-0.19170431792736053,
0.09628812223672867,
-0.017737625166773796,
0.2549993693828583,
-0.26773032546043396,
-0.019779833033680916,
0.2779388725757599,
0.11765161901712418,
-0.028460778295993805,
0.006781671196222305,
-0.21331515908241272,
-0.41587018966674805,
-0.127556711435318,
-0.07081033289432526,
0.13488027453422546,
-0.18004938960075378,
-0.09193871915340424,
0.014406949281692505,
-0.060386136174201965,
0.021553117781877518,
0.13821864128112793,
-0.41018033027648926,
0.07309702038764954,
-0.03580649942159653,
-0.2875155806541443,
-0.12141928821802139,
-0.14534801244735718,
-0.15803946554660797,
-0.18699847161769867,
-0.4983142614364624,
0.5533789992332458,
-0.18390285968780518,
-0.35539624094963074,
0.20696203410625458,
-0.2178163379430771,
-0.24706058204174042,
0.10731272399425507,
-0.057600826025009155,
0.06718380004167557,
-0.3226476013660431,
-0.005576826632022858,
-0.11788516491651535,
-0.10984697937965393,
-0.21199646592140198,
-0.02747902274131775,
-0.09366650879383087,
0.07951810956001282,
0.2682867646217346,
0.39102211594581604,
0.19549140334129333,
0.29949015378952026,
0.09437717497348785,
0.2496333122253418,
0.30145812034606934,
0.33105188608169556,
0.33357229828834534,
0.025327417999505997,
-0.005063347518444061,
0.10840117931365967,
-0.09140808880329132,
0.06634652614593506,
0.5167033672332764,
0.2808793783187866,
0.1788807511329651,
-0.09218339622020721,
0.043035537004470825,
-0.5120913982391357,
0.2388945072889328,
-0.017634812742471695,
-0.2963577210903168,
-0.40323111414909363,
-0.4266476631164551,
0.5590516328811646,
0.014351017773151398,
-0.19835436344146729,
0.2547260522842407,
0.3298637866973877,
-0.35696879029273987,
0.41736048460006714,
0.41582077741622925,
0.9620541930198669,
0.1179511621594429,
0.28742146492004395,
0.1239549070596695,
-0.47944211959838867,
0.07028264552354813,
-0.5108014941215515,
-0.17257659137248993,
-0.3897978365421295,
-0.012405837886035442,
-0.19712020456790924,
0.1257144957780838,
0.11417163163423538,
0.15055455267429352,
-0.304431676864624,
0.027463335543870926,
0.0854976624250412,
0.5115259885787964,
-0.024536611512303352,
0.3347327709197998,
-0.18070365488529205,
-0.366960734128952,
-0.4501245319843292,
0.25834810733795166,
-0.006445199251174927,
-0.13961516320705414,
-0.1940336525440216,
-0.3397532105445862,
-0.1006777212023735,
0.08684225380420685,
-0.04508872702717781,
-0.06003367900848389,
-0.22146230936050415,
-0.05017003417015076,
0.03960639610886574,
0.19473876059055328,
0.03556106612086296,
-0.17827241122722626,
0.4530993103981018,
0.09292829036712646,
-0.29077526926994324,
0.1560864895582199,
-0.3028082549571991,
0.19307756423950195,
-0.0366065576672554,
-0.19367972016334534,
0.6527542471885681,
-0.12366846948862076,
-0.20965144038200378,
0.25160083174705505,
0.02980368584394455,
-0.19216054677963257,
-0.24149030447006226,
-0.203268900513649,
0.28894442319869995,
-0.2850230932235718,
0.17943692207336426,
0.1682346612215042,
-0.2237139642238617,
-0.12046408653259277,
0.17284086346626282,
0.07886174321174622,
-0.2167438268661499,
0.2606348395347595,
0.19553959369659424,
-0.04622509703040123,
-0.20518259704113007,
0.17993387579917908,
0.010383179411292076,
0.09863944351673126,
0.18981505930423737,
-0.24911785125732422,
0.03738350421190262,
-0.2775016129016876,
0.2028214931488037,
0.4879630506038666,
-0.22549322247505188,
-0.02416985109448433,
-0.10638958215713501,
-0.44543904066085815,
0.12903256714344025,
0.22160321474075317,
0.20867928862571716,
0.04552607983350754,
-0.08419110625982285,
-0.0788862332701683,
-0.3295608460903168,
0.15413877367973328,
-0.07571358978748322,
0.38793590664863586,
-0.13269686698913574,
0.307405561208725,
-0.011662770062685013,
0.10540661215782166,
-0.4475220739841461,
-0.2169569730758667,
-0.14154492318630219,
0.17249833047389984,
-0.6863340139389038,
0.10868199169635773,
0.0248872060328722,
-0.25521528720855713,
0.0608227401971817,
0.024659235030412674,
-0.506325900554657,
-0.29342588782310486,
-0.49528980255126953,
0.08009304851293564,
0.07715325802564621,
0.243221253156662,
-0.027793530374765396,
0.06350217014551163,
-0.09708510339260101,
-0.1170218288898468,
0.2869875133037567,
0.211381196975708,
0.2590090036392212,
0.27181267738342285,
0.5989559888839722,
0.02749919891357422,
-0.25550973415374756,
-0.0470590814948082,
0.293793648481369,
0.28682202100753784,
-0.0033048908226191998,
-0.013484183698892593,
-0.48289647698402405,
-0.12442544102668762,
-0.026969224214553833,
0.5215077996253967,
0.11860478669404984,
0.07729685306549072,
0.33879584074020386,
0.06834181398153305,
0.19259873032569885,
0.25561225414276123,
0.2858193516731262,
0.16421014070510864,
-0.05394300818443298,
-0.20902083814144135,
0.19536033272743225,
0.27233684062957764,
-0.14362257719039917,
-0.2598917782306671,
-0.0017633270472288132,
-0.18426211178302765,
0.09618200361728668,
0.3940408229827881,
0.3761228322982788,
0.3064126968383789,
-0.1046040952205658,
0.07068859040737152,
0.056162748485803604,
-0.1437351405620575,
0.1398797482252121,
0.5328616499900818,
0.039887357503175735,
0.1971752643585205,
0.03642459213733673,
0.18647639453411102,
0.22207078337669373,
0.3012612462043762,
-0.021561764180660248,
0.5639326572418213,
0.17637649178504944,
-0.20366275310516357,
0.5829748511314392,
0.07971850037574768,
-0.3222876787185669,
0.01787024736404419,
-0.0883493721485138,
0.11278757452964783,
-0.007484234869480133,
0.18122678995132446,
-0.02940475195646286,
-0.5116379261016846,
-0.19200201332569122,
0.04536128416657448,
-0.12560561299324036,
-0.025308843702077866,
-0.3128899037837982,
0.011358261108398438,
-0.3400108814239502,
-0.08430466055870056,
-0.04566033557057381,
-0.27554023265838623,
0.1854884773492813,
0.03637944906949997,
0.118406280875206,
-0.009947149083018303,
0.009894024580717087,
0.17081668972969055,
0.25526922941207886,
-0.15934665501117706,
-0.029924074187874794,
-0.13512280583381653,
-0.05082082748413086,
0.10483083128929138,
0.1359933614730835,
0.1688922643661499,
-0.04638467729091644,
-0.21297040581703186,
0.24516576528549194,
0.04026912525296211,
-0.0062614064663648605,
0.09060417115688324,
-0.16893060505390167,
0.19036763906478882,
-0.15271146595478058,
0.41529640555381775,
0.16883324086666107,
-0.12878896296024323,
0.044092945754528046,
-0.08273401856422424,
0.017914604395627975,
-0.1342189908027649,
0.6551890969276428,
0.3647931218147278,
-0.11185979843139648,
0.078800730407238,
0.17457205057144165,
-0.3077368438243866,
0.09619613736867905,
0.5162994861602783,
0.14268706738948822,
0.18991291522979736,
-0.07273266464471817,
0.12388429045677185,
-0.0009504072368144989,
0.6950017213821411,
0.20834115147590637,
-0.36399704217910767,
-0.24491867423057556,
-0.0020977184176445007,
-0.23873788118362427,
-0.15292567014694214,
-0.06835959851741791,
-0.021817538887262344,
0.03143713250756264,
0.054394014179706573,
0.08717180043458939,
0.19902904331684113,
-0.12891505658626556,
-0.40383824706077576,
-0.01582236960530281,
0.175577312707901,
-0.2634582817554474,
-0.15116029977798462,
-0.11110687255859375,
0.1441410630941391,
0.14636710286140442,
-0.1914629340171814,
0.18535715341567993,
0.020441509783267975,
-0.005520720034837723,
0.020272575318813324,
-0.055071569979190826,
0.4163733720779419,
-0.1873704344034195,
0.24755226075649261,
-0.28710174560546875,
0.00206882506608963,
-0.019288521260023117,
0.019603190943598747,
-0.18441596627235413,
-0.009387068450450897,
-0.22346848249435425,
-0.135961651802063,
-0.09963662922382355,
0.45993325114250183,
-0.008126280270516872,
-0.048671770840883255,
-0.2213391214609146,
-0.16695283353328705,
0.23052988946437836,
0.02632681094110012,
-0.36045533418655396,
0.1509670466184616,
-0.07548151165246964,
0.18366223573684692,
0.24146823585033417,
0.4411173164844513,
-0.04461430013179779,
0.10946567356586456,
-0.3343185782432556,
-0.19100721180438995,
0.49020224809646606,
-0.044558871537446976,
-0.27195045351982117,
-0.24280014634132385,
0.3258298635482788,
0.060740865767002106,
-0.1007256731390953,
-0.7960087656974792,
0.1192120686173439,
0.20896823704242706,
-0.2534180283546448,
-0.12306097149848938,
0.34850451350212097,
0.26001328229904175,
0.1837693601846695,
-0.12232568860054016,
0.15546417236328125,
-0.30924132466316223,
-0.04645068570971489,
0.09279420971870422,
-0.3274373412132263
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | A quick hack I have found is that we can call the image first before running the transforms and it makes sure the image is decoded before being passed on.
For this I just needed to add `example['img'] = example['img']` to the top of my `generate_flipped_data` function, defined above, so that image decode in invoked.
After this minor change this function works:
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
example['img'] = example['img'] # <<< This is the only change
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
``` | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 163 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
A quick hack I have found is that we can call the image first before running the transforms and it makes sure the image is decoded before being passed on.
For this I just needed to add `example['img'] = example['img']` to the top of my `generate_flipped_data` function, defined above, so that image decode in invoked.
After this minor change this function works:
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
example['img'] = example['img'] # <<< This is the only change
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
``` | [
-0.07820019870996475,
-0.01851590722799301,
-0.17894123494625092,
0.1256355494260788,
0.14424103498458862,
-0.10112117975950241,
0.061808109283447266,
0.2104717344045639,
-0.1569964438676834,
0.13136889040470123,
0.1810036599636078,
0.5930033326148987,
0.1992652267217636,
-0.14406491816043854,
-0.18413980305194855,
-0.11332951486110687,
0.1441313475370407,
0.3657735586166382,
-0.1194041520357132,
-0.15760481357574463,
-0.5352743864059448,
-0.005801912397146225,
-0.314211368560791,
-0.049811914563179016,
0.06573572754859924,
-0.11298533529043198,
-0.23476997017860413,
0.07208240032196045,
-0.1543050855398178,
0.062445081770420074,
-0.30688267946243286,
0.08322747051715851,
-0.3537132740020752,
0.34591424465179443,
-0.00010713133087847382,
0.055365949869155884,
0.4224435091018677,
-0.06316191703081131,
-0.03151477873325348,
0.2252107560634613,
-0.6300362944602966,
-0.4457522928714752,
-0.42889460921287537,
-0.31346163153648376,
0.16423794627189636,
-0.40856602787971497,
0.1668144315481186,
-0.088502898812294,
0.6687864065170288,
-0.09084919840097427,
0.275208443403244,
0.01367618516087532,
0.15292778611183167,
0.3442031145095825,
0.28106749057769775,
0.4071407914161682,
-0.04062206298112869,
-0.10186058282852173,
0.08197001367807388,
-0.008007831871509552,
-0.10818260163068771,
0.4912084937095642,
-0.035510286688804626,
-0.20048435032367706,
-0.03673706203699112,
-0.12343286722898483,
0.0809967964887619,
-0.39572611451148987,
0.14090031385421753,
-0.13028967380523682,
-0.28519195318222046,
-0.09223542362451553,
-0.3847450613975525,
-0.2415291666984558,
-0.037279438227415085,
-0.04497896879911423,
0.145216166973114,
-0.11532936990261078,
-0.09046460688114166,
0.14343991875648499,
-0.26853957772254944,
-0.051259953528642654,
0.07364396750926971,
0.06616118550300598,
-0.26796069741249084,
-0.03860601782798767,
0.048481009900569916,
0.07747842371463776,
0.1353183388710022,
-0.11176787316799164,
0.24557028710842133,
-0.009591717272996902,
0.11343955993652344,
-0.01772194355726242,
-0.017702657729387283,
0.0329500287771225,
-0.12709984183311462,
0.0893474891781807,
-0.09077738225460052,
-0.3664816617965698,
0.033449072390794754,
0.12285706400871277,
-0.057991329580545425,
0.3785974085330963,
0.11804379522800446,
-0.01961740292608738,
-0.24831745028495789,
0.43574073910713196,
0.006367307156324387,
-0.2644573748111725,
-0.22431372106075287,
-0.06767097115516663,
0.1355741322040558,
-0.22111615538597107,
0.017888251692056656,
0.11757068336009979,
0.05514959245920181,
0.06485570967197418,
-0.1466042846441269,
-0.05621323734521866,
-0.3176833689212799,
0.1789223700761795,
-0.026546988636255264,
0.05819788575172424,
0.28773733973503113,
0.5349922776222229,
0.5349515080451965,
-0.04189712554216385,
-0.19194230437278748,
0.0008373865857720375,
-0.2414671778678894,
-0.0011814143508672714,
-0.298030823469162,
-0.017719415947794914,
-0.09117837250232697,
0.33796167373657227,
-0.1961079090833664,
0.052053675055503845,
0.0955892950296402,
-0.0412604846060276,
-0.04339054226875305,
-0.23423956334590912,
0.5421868562698364,
0.3158928453922272,
-0.2065705955028534,
-0.08706545829772949,
-0.23451204597949982,
0.3308930993080139,
-0.026341188699007034,
0.3642314374446869,
-0.3273594081401825,
0.39374810457229614,
0.13805736601352692,
0.2052699476480484,
0.054415322840213776,
0.07984642684459686,
-0.10882718116044998,
0.05713813379406929,
0.04866265878081322,
-0.3628372848033905,
0.17558152973651886,
-0.39170026779174805,
-0.06361129134893417,
-0.13331186771392822,
0.13886792957782745,
0.1072770208120346,
-0.11265136301517487,
0.17667749524116516,
-0.15533380210399628,
-0.1869291514158249,
0.32837438583374023,
0.2327817976474762,
0.11166311055421829,
-0.14803487062454224,
-0.049609456211328506,
0.2933461666107178,
0.06718885153532028,
-0.2048177719116211,
-0.6263275742530823,
0.5222502946853638,
0.054587073624134064,
0.06867151707410812,
-0.23236703872680664,
0.1041705310344696,
0.2620423436164856,
-0.22009600698947906,
-0.3558202087879181,
0.5110676884651184,
-0.07678792625665665,
0.26509928703308105,
-0.2251552790403366,
-0.03166518360376358,
0.10718931257724762,
0.06122922524809837,
0.07327881455421448,
0.10768793523311615,
0.12038576602935791,
0.23556570708751678,
0.06051156297326088,
0.07122144848108292,
0.17326167225837708,
0.023469245061278343,
-0.0020106248557567596,
-0.30040067434310913,
0.31433966755867004,
0.3589801788330078,
-0.00853322446346283,
-0.04679563641548157,
-0.2672874331474304,
-0.17226773500442505,
-0.42336952686309814,
0.0468318909406662,
-0.0033970680087804794,
0.15933668613433838,
-0.17418450117111206,
0.07332001626491547,
0.2954804301261902,
0.04572915658354759,
-0.10590435564517975,
0.013638883829116821,
0.05265761539340019,
0.07396724075078964,
-0.029670603573322296,
-0.04242852330207825,
0.08658134937286377,
0.10387103259563446,
-0.101960189640522,
-0.06877585500478745,
-0.09813006222248077,
0.200726717710495,
0.0029523298144340515,
-0.09817443042993546,
-0.0816463753581047,
0.3445185720920563,
0.07167927920818329,
0.41491442918777466,
-0.13351985812187195,
-0.32351619005203247,
0.4556369185447693,
-0.6278443336486816,
-0.0200664009898901,
0.35933125019073486,
0.20164258778095245,
0.00802118331193924,
0.053754910826683044,
-0.08523423969745636,
-0.0659770667552948,
0.21487626433372498,
-0.05445028841495514,
0.007481308653950691,
0.03822232782840729,
-0.28457316756248474,
-0.20284131169319153,
-0.19607102870941162,
-0.08710664510726929,
0.039733223617076874,
0.2701149582862854,
0.05967448651790619,
0.009203135967254639,
0.0019185617566108704,
0.38513699173927307,
-0.09245865046977997,
0.021818336099386215,
0.12865477800369263,
-0.02389092743396759,
0.08343877643346786,
0.22430117428302765,
0.3510550260543823,
0.025998935103416443,
0.052475593984127045,
0.04518668353557587,
0.1602245569229126,
-0.25375330448150635,
-0.04928131401538849,
0.18854543566703796,
-0.007576882839202881,
0.24944764375686646,
0.19654420018196106,
0.24447943270206451,
0.17984232306480408,
-0.14928188920021057,
-0.3297256827354431,
0.12481283396482468,
0.030711108818650246,
0.13565440475940704,
0.13119877874851227,
-0.5447258949279785,
-0.439544677734375,
0.008114289492368698,
0.2811351418495178,
0.1076042503118515,
-0.4283285439014435,
-0.08136903494596481,
-0.16706231236457825,
-0.35645297169685364,
0.24130503833293915,
0.0806475430727005,
0.03225259482860565,
0.19502612948417664,
-0.07024750858545303,
-0.5630292892456055,
-0.011106256395578384,
-0.09156712144613266,
0.10359467566013336,
0.23061899840831757,
-0.19282583892345428,
0.21481576561927795,
-0.35354554653167725,
0.06765295565128326,
-0.16594600677490234,
-0.3815086781978607,
0.466077595949173,
-0.30761396884918213,
0.011701886542141438,
0.022980816662311554,
0.10777359455823898,
-0.07444582134485245,
-0.1293882578611374,
0.16709621250629425,
-0.37468764185905457,
-0.3758946657180786,
0.08697780966758728,
-0.060259200632572174,
-0.14069104194641113,
-0.5329573750495911,
0.0757438987493515,
0.04477957636117935,
-0.25642919540405273,
0.246986985206604,
-0.2867724895477295,
0.09511350095272064,
0.11902254819869995,
0.46511176228523254,
0.004918385297060013,
0.008526982739567757,
-0.10615897923707962,
-0.19229745864868164,
-0.005920391529798508,
0.20554892718791962,
-0.020320823416113853,
-0.2856326103210449,
-0.26583755016326904,
0.06334293633699417,
0.06393147259950638,
0.6518371105194092,
-0.40917909145355225,
-0.20224156975746155,
-0.13289706408977509,
-0.10625287890434265,
-0.13862042129039764,
0.09096699208021164,
-0.1655339002609253,
0.24220654368400574,
-0.1745518147945404,
-0.25755414366722107,
-0.08378581702709198,
-0.12109295278787613,
0.19774624705314636,
0.3818243741989136,
0.16742679476737976,
0.10231781750917435,
0.25572460889816284,
0.12909990549087524,
-0.07393316179513931,
-0.16448447108268738,
0.18861497938632965,
0.12504832446575165,
0.3493858277797699,
0.03084373101592064,
-0.03468146547675133,
0.09931077808141708,
0.0340789332985878,
-0.18420536816120148,
-0.0901748538017273,
-0.23020383715629578,
-0.5728799700737,
-0.10256980359554291,
0.1402110904455185,
-0.6265274882316589,
-0.2831133008003235,
0.17494335770606995,
0.11003229022026062,
0.22815221548080444,
-0.1296500861644745,
0.2306792140007019,
0.07030154764652252,
0.036542583256959915,
0.19890719652175903,
-0.11136758327484131,
0.48596760630607605,
-0.12753541767597198,
0.005634717643260956,
-0.45489898324012756,
-0.25865688920021057,
0.23084113001823425,
0.15365879237651825,
0.4835776388645172,
-0.1698763072490692,
-0.12673050165176392,
0.19874027371406555,
-0.16391105949878693,
0.4833831787109375,
-0.32907378673553467,
-0.03170354664325714,
0.14161108434200287,
-0.09231434017419815,
-0.25118207931518555,
0.20883052051067352,
-0.340800017118454,
0.06420418620109558,
0.1355462670326233,
0.5006675720214844,
-0.1897374838590622,
-0.014036729000508785,
-0.025516703724861145,
0.09645853191614151,
0.030065935105085373,
-0.27407482266426086,
-0.06980245560407639,
-0.37688547372817993,
-0.2966528534889221,
-0.10065775364637375,
0.17695917189121246,
-0.14179465174674988,
-0.012718388810753822,
-0.027171364054083824,
-0.2040470987558365,
-0.0622234009206295,
-0.02548469603061676,
0.37743130326271057,
0.187845379114151,
-0.10661432892084122,
0.053781334310770035,
0.17374664545059204,
0.04044549539685249,
0.13606514036655426,
0.3148151934146881,
-0.11113597452640533,
-0.142882838845253,
0.289751261472702,
-0.17516207695007324,
0.054023560136556625,
0.3930715024471283,
-0.02379276603460312,
-0.18365132808685303,
0.0726824551820755,
0.0747590884566307,
-0.38821932673454285,
0.08594794571399689,
0.19918276369571686,
-0.12297707051038742,
-0.15069442987442017,
-0.20112913846969604,
0.41447165608406067,
0.11967743933200836,
-0.07796589285135269,
0.10719341039657593,
-0.1524268388748169,
-0.22741451859474182,
0.7363568544387817,
0.5366306900978088,
1.0528658628463745,
-0.14537779986858368,
-0.10999636352062225,
0.00739656388759613,
-0.02558707632124424,
0.30074402689933777,
-0.006324581801891327,
0.2634483575820923,
-0.0586618110537529,
-0.06639909744262695,
-0.046316009014844894,
0.05251014605164528,
-0.0332457572221756,
0.16117677092552185,
-0.3778301179409027,
-0.04805514216423035,
0.0713423490524292,
-0.22067663073539734,
0.19142532348632812,
0.028483346104621887,
-0.1293792426586151,
-0.22676992416381836,
0.05592754855751991,
0.24121323227882385,
0.1033591479063034,
0.017582165077328682,
-0.13064543902873993,
-0.22215494513511658,
-0.27883845567703247,
0.036353252828121185,
-0.12735804915428162,
0.2345181405544281,
-0.39257195591926575,
0.05919467657804489,
-0.027900997549295425,
-0.25532978773117065,
-0.19002123177051544,
0.16652077436447144,
-0.06960904598236084,
0.14559224247932434,
0.08464306592941284,
0.18542875349521637,
0.28129467368125916,
0.26552829146385193,
0.06265317648649216,
-0.04596959054470062,
0.13619838654994965,
-0.055402711033821106,
0.1384361982345581,
-0.2733631134033203,
-0.14129163324832916,
-0.23648692667484283,
-0.24220755696296692,
0.2378615289926529,
-0.17570798099040985,
0.30535805225372314,
0.08556757867336273,
0.15331578254699707,
-0.1496027112007141,
0.0365385077893734,
0.19841749966144562,
-0.05604511499404907,
0.16471558809280396,
0.5823460817337036,
0.011935580521821976,
-0.36318984627723694,
0.023210037499666214,
0.01094045490026474,
-0.13669878244400024,
0.02243872731924057,
0.24503567814826965,
-0.1991729587316513,
-0.100041963160038,
-0.3014093339443207,
-0.004642851650714874,
-0.2188926637172699,
-0.2012273669242859,
0.08716856688261032,
-0.4122448265552521,
-0.17292781174182892,
0.01725057326257229,
-0.1694193184375763,
-0.0033733882009983063,
-0.034104444086551666,
-0.13580657541751862,
-0.2910584807395935,
-0.007632538676261902,
0.2073463350534439,
-0.010669492185115814,
0.14308185875415802,
-0.18182936310768127,
0.4052780866622925,
0.004317251965403557,
-0.017642268911004066,
-0.3583824336528778,
0.2725798785686493,
-0.1702919602394104,
0.2646890878677368,
-0.06536974757909775,
0.11327371001243591,
-0.0877961665391922,
-0.024228908121585846,
0.23619389533996582,
0.5670619010925293,
-0.07267473638057709,
-0.1345587968826294,
-0.21749229729175568,
0.0920189619064331,
0.14926864206790924,
-0.04588809609413147,
-0.07827255129814148,
-0.12632900476455688,
-0.07122425734996796,
-0.10589583963155746,
-0.15498216450214386,
-0.07853488624095917,
-0.23898287117481232,
-0.022642124444246292,
-0.16576984524726868,
0.1637076437473297,
0.2642870545387268,
0.059673093259334564,
0.042364176362752914,
0.39984792470932007,
-0.009918914176523685,
0.27508413791656494,
0.25056129693984985,
0.02975231409072876,
0.08909434080123901,
-0.04345723241567612,
-0.11429356038570404,
0.012829259037971497,
0.5798621773719788,
0.24480970203876495,
0.34210556745529175,
0.3669419586658478,
0.26433640718460083,
0.26258584856987,
-0.3287251889705658,
-0.15605857968330383,
0.023617148399353027,
0.3163711428642273,
0.02741982415318489,
-0.012094534933567047,
0.3675316274166107,
0.11782550066709518,
-0.04608017951250076,
0.2006303071975708,
0.17156216502189636,
0.0014794841408729553,
-0.017505235970020294,
-0.014229494147002697,
0.2289813607931137,
-0.27964431047439575,
-0.13026922941207886,
0.6692922711372375,
-0.2877002954483032,
0.3973180651664734,
0.12953563034534454,
-0.030351459980010986,
0.10270337015390396,
0.4852222204208374,
0.05964697152376175,
0.4428480863571167,
0.0725521445274353,
0.4412585496902466,
0.17851057648658752,
-0.2371697872877121,
0.1832151561975479,
0.42759451270103455,
-0.003432832658290863,
0.5709404945373535,
-0.04817427694797516,
0.12231257557868958,
-0.3008193373680115,
-0.07921895384788513,
0.13598719239234924,
0.3369152545928955,
-0.15723612904548645,
0.05765065923333168,
-0.12493997067213058,
-0.142944797873497,
-0.35018303990364075,
-0.15212348103523254,
0.13134829699993134,
-0.05766142159700394,
0.7209774255752563,
0.22790589928627014,
0.064401775598526,
0.16356083750724792,
-0.5615989565849304,
-0.12319078296422958,
0.3408600389957428,
-0.3764212429523468,
0.06422286480665207,
0.043550994247198105,
-0.004665441811084747,
0.37319085001945496,
0.3299596309661865,
0.24109962582588196,
0.3669174611568451,
-0.3390229344367981,
-0.08290142565965652,
-0.09078964591026306,
-0.09020702540874481,
-0.31156229972839355,
0.2871500551700592,
0.08958805352449417,
0.14183451235294342,
0.16081300377845764,
0.18327510356903076,
-0.24699552357196808,
-0.4805014729499817,
0.15431994199752808,
0.33666831254959106,
0.15087434649467468,
0.22844639420509338,
-0.3070639669895172,
0.06958722323179245,
0.08200621604919434,
-0.1514056921005249,
-0.3221510648727417,
-0.15817981958389282,
0.0773068517446518,
-0.4117695093154907,
0.15107020735740662,
0.23713386058807373,
0.10252855718135834,
-0.04287004843354225,
0.3688177764415741,
0.5211763381958008,
0.014577709138393402,
-0.09093063324689865,
-0.26376140117645264,
-0.4602002203464508,
0.25096699595451355,
0.03189511224627495,
-0.06259338557720184,
-0.07890506088733673,
0.11871424317359924,
0.0024028941988945007,
0.2849125862121582,
0.32762807607650757,
-0.42231059074401855,
0.11467570811510086,
0.1220242828130722,
-0.20314009487628937,
-0.034377533942461014,
0.287994921207428,
-0.15091580152511597,
0.005263574421405792,
-0.353952020406723,
0.3588152229785919,
0.03324251249432564,
0.25068631768226624,
-0.08647901564836502,
-0.1442931443452835,
-0.3931705057621002,
-0.25028562545776367,
0.6093149185180664,
0.5369583964347839,
0.060623496770858765,
-0.3411693871021271,
-0.4398941993713379,
0.023015759885311127,
-0.17350289225578308,
-0.09803186357021332,
0.02380485087633133,
-0.03619545325636864,
0.3659871816635132,
0.035410284996032715,
-0.11014699935913086,
-0.07858846336603165,
-0.15527410805225372,
0.00843244418501854,
0.18065783381462097,
-0.5817323923110962,
0.28548386693000793,
-0.2028179168701172,
-0.17380094528198242,
-0.12378222495317459,
0.31374385952949524,
0.17200027406215668,
0.037078119814395905,
-0.28956520557403564,
-0.5761380791664124,
0.21029122173786163,
-0.3342151343822479,
-0.32962456345558167,
0.2095518857240677,
-0.2989693284034729,
-0.4517778754234314,
0.35249873995780945,
-0.4164695143699646,
-0.13581207394599915,
-0.01810271292924881,
-0.19028538465499878,
-0.2212468385696411,
0.020730124786496162,
0.08768634498119354,
-0.12199723720550537,
0.023265276104211807,
0.4771605134010315,
0.12391375005245209,
-0.2152632623910904,
0.2992173433303833,
0.09619468450546265
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | Hi @RafayAK, thanks for reporting.
Current implementation of the Image feature performs the decoding only if the "img" field is accessed by the mapped function.
In your original `generate_flipped_data` function:
- it only accesses the "img" field (and thus performs decoding) if `rng.random() > p`;
- on the other hand, for the cases where `rng.random() <= p`, the "img" field is not accessed and thus no decoding is performed for those examples
By adding the code line `example['img'] = example['img']`, you make sure the "img" field is accessed in all cases, and the decoding is done for all examples.
Also note that there is a little bug in your implementation: `p` is not the probability of flipping, but the probability of not-flipping; the larger is `p`, the smaller is the probability of flipping.
Some refactoring (fixing also `p`):
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down.
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
do_flip = rng.random() < p # Note the "<" sign here instead of ">"
example['img'] = example['img'].transpose(1) if do_flip else example['img'] # Note "img" is always accessed
example['is_flipped'] = 1 if do_flip else 0
return example | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 237 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
Hi @RafayAK, thanks for reporting.
Current implementation of the Image feature performs the decoding only if the "img" field is accessed by the mapped function.
In your original `generate_flipped_data` function:
- it only accesses the "img" field (and thus performs decoding) if `rng.random() > p`;
- on the other hand, for the cases where `rng.random() <= p`, the "img" field is not accessed and thus no decoding is performed for those examples
By adding the code line `example['img'] = example['img']`, you make sure the "img" field is accessed in all cases, and the decoding is done for all examples.
Also note that there is a little bug in your implementation: `p` is not the probability of flipping, but the probability of not-flipping; the larger is `p`, the smaller is the probability of flipping.
Some refactoring (fixing also `p`):
```python
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down.
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
do_flip = rng.random() < p # Note the "<" sign here instead of ">"
example['img'] = example['img'].transpose(1) if do_flip else example['img'] # Note "img" is always accessed
example['is_flipped'] = 1 if do_flip else 0
return example | [
-0.07820019870996475,
-0.01851590722799301,
-0.17894123494625092,
0.1256355494260788,
0.14424103498458862,
-0.10112117975950241,
0.061808109283447266,
0.2104717344045639,
-0.1569964438676834,
0.13136889040470123,
0.1810036599636078,
0.5930033326148987,
0.1992652267217636,
-0.14406491816043854,
-0.18413980305194855,
-0.11332951486110687,
0.1441313475370407,
0.3657735586166382,
-0.1194041520357132,
-0.15760481357574463,
-0.5352743864059448,
-0.005801912397146225,
-0.314211368560791,
-0.049811914563179016,
0.06573572754859924,
-0.11298533529043198,
-0.23476997017860413,
0.07208240032196045,
-0.1543050855398178,
0.062445081770420074,
-0.30688267946243286,
0.08322747051715851,
-0.3537132740020752,
0.34591424465179443,
-0.00010713133087847382,
0.055365949869155884,
0.4224435091018677,
-0.06316191703081131,
-0.03151477873325348,
0.2252107560634613,
-0.6300362944602966,
-0.4457522928714752,
-0.42889460921287537,
-0.31346163153648376,
0.16423794627189636,
-0.40856602787971497,
0.1668144315481186,
-0.088502898812294,
0.6687864065170288,
-0.09084919840097427,
0.275208443403244,
0.01367618516087532,
0.15292778611183167,
0.3442031145095825,
0.28106749057769775,
0.4071407914161682,
-0.04062206298112869,
-0.10186058282852173,
0.08197001367807388,
-0.008007831871509552,
-0.10818260163068771,
0.4912084937095642,
-0.035510286688804626,
-0.20048435032367706,
-0.03673706203699112,
-0.12343286722898483,
0.0809967964887619,
-0.39572611451148987,
0.14090031385421753,
-0.13028967380523682,
-0.28519195318222046,
-0.09223542362451553,
-0.3847450613975525,
-0.2415291666984558,
-0.037279438227415085,
-0.04497896879911423,
0.145216166973114,
-0.11532936990261078,
-0.09046460688114166,
0.14343991875648499,
-0.26853957772254944,
-0.051259953528642654,
0.07364396750926971,
0.06616118550300598,
-0.26796069741249084,
-0.03860601782798767,
0.048481009900569916,
0.07747842371463776,
0.1353183388710022,
-0.11176787316799164,
0.24557028710842133,
-0.009591717272996902,
0.11343955993652344,
-0.01772194355726242,
-0.017702657729387283,
0.0329500287771225,
-0.12709984183311462,
0.0893474891781807,
-0.09077738225460052,
-0.3664816617965698,
0.033449072390794754,
0.12285706400871277,
-0.057991329580545425,
0.3785974085330963,
0.11804379522800446,
-0.01961740292608738,
-0.24831745028495789,
0.43574073910713196,
0.006367307156324387,
-0.2644573748111725,
-0.22431372106075287,
-0.06767097115516663,
0.1355741322040558,
-0.22111615538597107,
0.017888251692056656,
0.11757068336009979,
0.05514959245920181,
0.06485570967197418,
-0.1466042846441269,
-0.05621323734521866,
-0.3176833689212799,
0.1789223700761795,
-0.026546988636255264,
0.05819788575172424,
0.28773733973503113,
0.5349922776222229,
0.5349515080451965,
-0.04189712554216385,
-0.19194230437278748,
0.0008373865857720375,
-0.2414671778678894,
-0.0011814143508672714,
-0.298030823469162,
-0.017719415947794914,
-0.09117837250232697,
0.33796167373657227,
-0.1961079090833664,
0.052053675055503845,
0.0955892950296402,
-0.0412604846060276,
-0.04339054226875305,
-0.23423956334590912,
0.5421868562698364,
0.3158928453922272,
-0.2065705955028534,
-0.08706545829772949,
-0.23451204597949982,
0.3308930993080139,
-0.026341188699007034,
0.3642314374446869,
-0.3273594081401825,
0.39374810457229614,
0.13805736601352692,
0.2052699476480484,
0.054415322840213776,
0.07984642684459686,
-0.10882718116044998,
0.05713813379406929,
0.04866265878081322,
-0.3628372848033905,
0.17558152973651886,
-0.39170026779174805,
-0.06361129134893417,
-0.13331186771392822,
0.13886792957782745,
0.1072770208120346,
-0.11265136301517487,
0.17667749524116516,
-0.15533380210399628,
-0.1869291514158249,
0.32837438583374023,
0.2327817976474762,
0.11166311055421829,
-0.14803487062454224,
-0.049609456211328506,
0.2933461666107178,
0.06718885153532028,
-0.2048177719116211,
-0.6263275742530823,
0.5222502946853638,
0.054587073624134064,
0.06867151707410812,
-0.23236703872680664,
0.1041705310344696,
0.2620423436164856,
-0.22009600698947906,
-0.3558202087879181,
0.5110676884651184,
-0.07678792625665665,
0.26509928703308105,
-0.2251552790403366,
-0.03166518360376358,
0.10718931257724762,
0.06122922524809837,
0.07327881455421448,
0.10768793523311615,
0.12038576602935791,
0.23556570708751678,
0.06051156297326088,
0.07122144848108292,
0.17326167225837708,
0.023469245061278343,
-0.0020106248557567596,
-0.30040067434310913,
0.31433966755867004,
0.3589801788330078,
-0.00853322446346283,
-0.04679563641548157,
-0.2672874331474304,
-0.17226773500442505,
-0.42336952686309814,
0.0468318909406662,
-0.0033970680087804794,
0.15933668613433838,
-0.17418450117111206,
0.07332001626491547,
0.2954804301261902,
0.04572915658354759,
-0.10590435564517975,
0.013638883829116821,
0.05265761539340019,
0.07396724075078964,
-0.029670603573322296,
-0.04242852330207825,
0.08658134937286377,
0.10387103259563446,
-0.101960189640522,
-0.06877585500478745,
-0.09813006222248077,
0.200726717710495,
0.0029523298144340515,
-0.09817443042993546,
-0.0816463753581047,
0.3445185720920563,
0.07167927920818329,
0.41491442918777466,
-0.13351985812187195,
-0.32351619005203247,
0.4556369185447693,
-0.6278443336486816,
-0.0200664009898901,
0.35933125019073486,
0.20164258778095245,
0.00802118331193924,
0.053754910826683044,
-0.08523423969745636,
-0.0659770667552948,
0.21487626433372498,
-0.05445028841495514,
0.007481308653950691,
0.03822232782840729,
-0.28457316756248474,
-0.20284131169319153,
-0.19607102870941162,
-0.08710664510726929,
0.039733223617076874,
0.2701149582862854,
0.05967448651790619,
0.009203135967254639,
0.0019185617566108704,
0.38513699173927307,
-0.09245865046977997,
0.021818336099386215,
0.12865477800369263,
-0.02389092743396759,
0.08343877643346786,
0.22430117428302765,
0.3510550260543823,
0.025998935103416443,
0.052475593984127045,
0.04518668353557587,
0.1602245569229126,
-0.25375330448150635,
-0.04928131401538849,
0.18854543566703796,
-0.007576882839202881,
0.24944764375686646,
0.19654420018196106,
0.24447943270206451,
0.17984232306480408,
-0.14928188920021057,
-0.3297256827354431,
0.12481283396482468,
0.030711108818650246,
0.13565440475940704,
0.13119877874851227,
-0.5447258949279785,
-0.439544677734375,
0.008114289492368698,
0.2811351418495178,
0.1076042503118515,
-0.4283285439014435,
-0.08136903494596481,
-0.16706231236457825,
-0.35645297169685364,
0.24130503833293915,
0.0806475430727005,
0.03225259482860565,
0.19502612948417664,
-0.07024750858545303,
-0.5630292892456055,
-0.011106256395578384,
-0.09156712144613266,
0.10359467566013336,
0.23061899840831757,
-0.19282583892345428,
0.21481576561927795,
-0.35354554653167725,
0.06765295565128326,
-0.16594600677490234,
-0.3815086781978607,
0.466077595949173,
-0.30761396884918213,
0.011701886542141438,
0.022980816662311554,
0.10777359455823898,
-0.07444582134485245,
-0.1293882578611374,
0.16709621250629425,
-0.37468764185905457,
-0.3758946657180786,
0.08697780966758728,
-0.060259200632572174,
-0.14069104194641113,
-0.5329573750495911,
0.0757438987493515,
0.04477957636117935,
-0.25642919540405273,
0.246986985206604,
-0.2867724895477295,
0.09511350095272064,
0.11902254819869995,
0.46511176228523254,
0.004918385297060013,
0.008526982739567757,
-0.10615897923707962,
-0.19229745864868164,
-0.005920391529798508,
0.20554892718791962,
-0.020320823416113853,
-0.2856326103210449,
-0.26583755016326904,
0.06334293633699417,
0.06393147259950638,
0.6518371105194092,
-0.40917909145355225,
-0.20224156975746155,
-0.13289706408977509,
-0.10625287890434265,
-0.13862042129039764,
0.09096699208021164,
-0.1655339002609253,
0.24220654368400574,
-0.1745518147945404,
-0.25755414366722107,
-0.08378581702709198,
-0.12109295278787613,
0.19774624705314636,
0.3818243741989136,
0.16742679476737976,
0.10231781750917435,
0.25572460889816284,
0.12909990549087524,
-0.07393316179513931,
-0.16448447108268738,
0.18861497938632965,
0.12504832446575165,
0.3493858277797699,
0.03084373101592064,
-0.03468146547675133,
0.09931077808141708,
0.0340789332985878,
-0.18420536816120148,
-0.0901748538017273,
-0.23020383715629578,
-0.5728799700737,
-0.10256980359554291,
0.1402110904455185,
-0.6265274882316589,
-0.2831133008003235,
0.17494335770606995,
0.11003229022026062,
0.22815221548080444,
-0.1296500861644745,
0.2306792140007019,
0.07030154764652252,
0.036542583256959915,
0.19890719652175903,
-0.11136758327484131,
0.48596760630607605,
-0.12753541767597198,
0.005634717643260956,
-0.45489898324012756,
-0.25865688920021057,
0.23084113001823425,
0.15365879237651825,
0.4835776388645172,
-0.1698763072490692,
-0.12673050165176392,
0.19874027371406555,
-0.16391105949878693,
0.4833831787109375,
-0.32907378673553467,
-0.03170354664325714,
0.14161108434200287,
-0.09231434017419815,
-0.25118207931518555,
0.20883052051067352,
-0.340800017118454,
0.06420418620109558,
0.1355462670326233,
0.5006675720214844,
-0.1897374838590622,
-0.014036729000508785,
-0.025516703724861145,
0.09645853191614151,
0.030065935105085373,
-0.27407482266426086,
-0.06980245560407639,
-0.37688547372817993,
-0.2966528534889221,
-0.10065775364637375,
0.17695917189121246,
-0.14179465174674988,
-0.012718388810753822,
-0.027171364054083824,
-0.2040470987558365,
-0.0622234009206295,
-0.02548469603061676,
0.37743130326271057,
0.187845379114151,
-0.10661432892084122,
0.053781334310770035,
0.17374664545059204,
0.04044549539685249,
0.13606514036655426,
0.3148151934146881,
-0.11113597452640533,
-0.142882838845253,
0.289751261472702,
-0.17516207695007324,
0.054023560136556625,
0.3930715024471283,
-0.02379276603460312,
-0.18365132808685303,
0.0726824551820755,
0.0747590884566307,
-0.38821932673454285,
0.08594794571399689,
0.19918276369571686,
-0.12297707051038742,
-0.15069442987442017,
-0.20112913846969604,
0.41447165608406067,
0.11967743933200836,
-0.07796589285135269,
0.10719341039657593,
-0.1524268388748169,
-0.22741451859474182,
0.7363568544387817,
0.5366306900978088,
1.0528658628463745,
-0.14537779986858368,
-0.10999636352062225,
0.00739656388759613,
-0.02558707632124424,
0.30074402689933777,
-0.006324581801891327,
0.2634483575820923,
-0.0586618110537529,
-0.06639909744262695,
-0.046316009014844894,
0.05251014605164528,
-0.0332457572221756,
0.16117677092552185,
-0.3778301179409027,
-0.04805514216423035,
0.0713423490524292,
-0.22067663073539734,
0.19142532348632812,
0.028483346104621887,
-0.1293792426586151,
-0.22676992416381836,
0.05592754855751991,
0.24121323227882385,
0.1033591479063034,
0.017582165077328682,
-0.13064543902873993,
-0.22215494513511658,
-0.27883845567703247,
0.036353252828121185,
-0.12735804915428162,
0.2345181405544281,
-0.39257195591926575,
0.05919467657804489,
-0.027900997549295425,
-0.25532978773117065,
-0.19002123177051544,
0.16652077436447144,
-0.06960904598236084,
0.14559224247932434,
0.08464306592941284,
0.18542875349521637,
0.28129467368125916,
0.26552829146385193,
0.06265317648649216,
-0.04596959054470062,
0.13619838654994965,
-0.055402711033821106,
0.1384361982345581,
-0.2733631134033203,
-0.14129163324832916,
-0.23648692667484283,
-0.24220755696296692,
0.2378615289926529,
-0.17570798099040985,
0.30535805225372314,
0.08556757867336273,
0.15331578254699707,
-0.1496027112007141,
0.0365385077893734,
0.19841749966144562,
-0.05604511499404907,
0.16471558809280396,
0.5823460817337036,
0.011935580521821976,
-0.36318984627723694,
0.023210037499666214,
0.01094045490026474,
-0.13669878244400024,
0.02243872731924057,
0.24503567814826965,
-0.1991729587316513,
-0.100041963160038,
-0.3014093339443207,
-0.004642851650714874,
-0.2188926637172699,
-0.2012273669242859,
0.08716856688261032,
-0.4122448265552521,
-0.17292781174182892,
0.01725057326257229,
-0.1694193184375763,
-0.0033733882009983063,
-0.034104444086551666,
-0.13580657541751862,
-0.2910584807395935,
-0.007632538676261902,
0.2073463350534439,
-0.010669492185115814,
0.14308185875415802,
-0.18182936310768127,
0.4052780866622925,
0.004317251965403557,
-0.017642268911004066,
-0.3583824336528778,
0.2725798785686493,
-0.1702919602394104,
0.2646890878677368,
-0.06536974757909775,
0.11327371001243591,
-0.0877961665391922,
-0.024228908121585846,
0.23619389533996582,
0.5670619010925293,
-0.07267473638057709,
-0.1345587968826294,
-0.21749229729175568,
0.0920189619064331,
0.14926864206790924,
-0.04588809609413147,
-0.07827255129814148,
-0.12632900476455688,
-0.07122425734996796,
-0.10589583963155746,
-0.15498216450214386,
-0.07853488624095917,
-0.23898287117481232,
-0.022642124444246292,
-0.16576984524726868,
0.1637076437473297,
0.2642870545387268,
0.059673093259334564,
0.042364176362752914,
0.39984792470932007,
-0.009918914176523685,
0.27508413791656494,
0.25056129693984985,
0.02975231409072876,
0.08909434080123901,
-0.04345723241567612,
-0.11429356038570404,
0.012829259037971497,
0.5798621773719788,
0.24480970203876495,
0.34210556745529175,
0.3669419586658478,
0.26433640718460083,
0.26258584856987,
-0.3287251889705658,
-0.15605857968330383,
0.023617148399353027,
0.3163711428642273,
0.02741982415318489,
-0.012094534933567047,
0.3675316274166107,
0.11782550066709518,
-0.04608017951250076,
0.2006303071975708,
0.17156216502189636,
0.0014794841408729553,
-0.017505235970020294,
-0.014229494147002697,
0.2289813607931137,
-0.27964431047439575,
-0.13026922941207886,
0.6692922711372375,
-0.2877002954483032,
0.3973180651664734,
0.12953563034534454,
-0.030351459980010986,
0.10270337015390396,
0.4852222204208374,
0.05964697152376175,
0.4428480863571167,
0.0725521445274353,
0.4412585496902466,
0.17851057648658752,
-0.2371697872877121,
0.1832151561975479,
0.42759451270103455,
-0.003432832658290863,
0.5709404945373535,
-0.04817427694797516,
0.12231257557868958,
-0.3008193373680115,
-0.07921895384788513,
0.13598719239234924,
0.3369152545928955,
-0.15723612904548645,
0.05765065923333168,
-0.12493997067213058,
-0.142944797873497,
-0.35018303990364075,
-0.15212348103523254,
0.13134829699993134,
-0.05766142159700394,
0.7209774255752563,
0.22790589928627014,
0.064401775598526,
0.16356083750724792,
-0.5615989565849304,
-0.12319078296422958,
0.3408600389957428,
-0.3764212429523468,
0.06422286480665207,
0.043550994247198105,
-0.004665441811084747,
0.37319085001945496,
0.3299596309661865,
0.24109962582588196,
0.3669174611568451,
-0.3390229344367981,
-0.08290142565965652,
-0.09078964591026306,
-0.09020702540874481,
-0.31156229972839355,
0.2871500551700592,
0.08958805352449417,
0.14183451235294342,
0.16081300377845764,
0.18327510356903076,
-0.24699552357196808,
-0.4805014729499817,
0.15431994199752808,
0.33666831254959106,
0.15087434649467468,
0.22844639420509338,
-0.3070639669895172,
0.06958722323179245,
0.08200621604919434,
-0.1514056921005249,
-0.3221510648727417,
-0.15817981958389282,
0.0773068517446518,
-0.4117695093154907,
0.15107020735740662,
0.23713386058807373,
0.10252855718135834,
-0.04287004843354225,
0.3688177764415741,
0.5211763381958008,
0.014577709138393402,
-0.09093063324689865,
-0.26376140117645264,
-0.4602002203464508,
0.25096699595451355,
0.03189511224627495,
-0.06259338557720184,
-0.07890506088733673,
0.11871424317359924,
0.0024028941988945007,
0.2849125862121582,
0.32762807607650757,
-0.42231059074401855,
0.11467570811510086,
0.1220242828130722,
-0.20314009487628937,
-0.034377533942461014,
0.287994921207428,
-0.15091580152511597,
0.005263574421405792,
-0.353952020406723,
0.3588152229785919,
0.03324251249432564,
0.25068631768226624,
-0.08647901564836502,
-0.1442931443452835,
-0.3931705057621002,
-0.25028562545776367,
0.6093149185180664,
0.5369583964347839,
0.060623496770858765,
-0.3411693871021271,
-0.4398941993713379,
0.023015759885311127,
-0.17350289225578308,
-0.09803186357021332,
0.02380485087633133,
-0.03619545325636864,
0.3659871816635132,
0.035410284996032715,
-0.11014699935913086,
-0.07858846336603165,
-0.15527410805225372,
0.00843244418501854,
0.18065783381462097,
-0.5817323923110962,
0.28548386693000793,
-0.2028179168701172,
-0.17380094528198242,
-0.12378222495317459,
0.31374385952949524,
0.17200027406215668,
0.037078119814395905,
-0.28956520557403564,
-0.5761380791664124,
0.21029122173786163,
-0.3342151343822479,
-0.32962456345558167,
0.2095518857240677,
-0.2989693284034729,
-0.4517778754234314,
0.35249873995780945,
-0.4164695143699646,
-0.13581207394599915,
-0.01810271292924881,
-0.19028538465499878,
-0.2212468385696411,
0.020730124786496162,
0.08768634498119354,
-0.12199723720550537,
0.023265276104211807,
0.4771605134010315,
0.12391375005245209,
-0.2152632623910904,
0.2992173433303833,
0.09619468450546265
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | @albertvillanova Thanks for letting me know this is intended behavior. The docs are severely lacking on this, if I hadn't posted this here I would have never found out how I'm actually supposed to modify images in a Dataset object. | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 40 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
@albertvillanova Thanks for letting me know this is intended behavior. The docs are severely lacking on this, if I hadn't posted this here I would have never found out how I'm actually supposed to modify images in a Dataset object. | [
-0.07820019870996475,
-0.01851590722799301,
-0.17894123494625092,
0.1256355494260788,
0.14424103498458862,
-0.10112117975950241,
0.061808109283447266,
0.2104717344045639,
-0.1569964438676834,
0.13136889040470123,
0.1810036599636078,
0.5930033326148987,
0.1992652267217636,
-0.14406491816043854,
-0.18413980305194855,
-0.11332951486110687,
0.1441313475370407,
0.3657735586166382,
-0.1194041520357132,
-0.15760481357574463,
-0.5352743864059448,
-0.005801912397146225,
-0.314211368560791,
-0.049811914563179016,
0.06573572754859924,
-0.11298533529043198,
-0.23476997017860413,
0.07208240032196045,
-0.1543050855398178,
0.062445081770420074,
-0.30688267946243286,
0.08322747051715851,
-0.3537132740020752,
0.34591424465179443,
-0.00010713133087847382,
0.055365949869155884,
0.4224435091018677,
-0.06316191703081131,
-0.03151477873325348,
0.2252107560634613,
-0.6300362944602966,
-0.4457522928714752,
-0.42889460921287537,
-0.31346163153648376,
0.16423794627189636,
-0.40856602787971497,
0.1668144315481186,
-0.088502898812294,
0.6687864065170288,
-0.09084919840097427,
0.275208443403244,
0.01367618516087532,
0.15292778611183167,
0.3442031145095825,
0.28106749057769775,
0.4071407914161682,
-0.04062206298112869,
-0.10186058282852173,
0.08197001367807388,
-0.008007831871509552,
-0.10818260163068771,
0.4912084937095642,
-0.035510286688804626,
-0.20048435032367706,
-0.03673706203699112,
-0.12343286722898483,
0.0809967964887619,
-0.39572611451148987,
0.14090031385421753,
-0.13028967380523682,
-0.28519195318222046,
-0.09223542362451553,
-0.3847450613975525,
-0.2415291666984558,
-0.037279438227415085,
-0.04497896879911423,
0.145216166973114,
-0.11532936990261078,
-0.09046460688114166,
0.14343991875648499,
-0.26853957772254944,
-0.051259953528642654,
0.07364396750926971,
0.06616118550300598,
-0.26796069741249084,
-0.03860601782798767,
0.048481009900569916,
0.07747842371463776,
0.1353183388710022,
-0.11176787316799164,
0.24557028710842133,
-0.009591717272996902,
0.11343955993652344,
-0.01772194355726242,
-0.017702657729387283,
0.0329500287771225,
-0.12709984183311462,
0.0893474891781807,
-0.09077738225460052,
-0.3664816617965698,
0.033449072390794754,
0.12285706400871277,
-0.057991329580545425,
0.3785974085330963,
0.11804379522800446,
-0.01961740292608738,
-0.24831745028495789,
0.43574073910713196,
0.006367307156324387,
-0.2644573748111725,
-0.22431372106075287,
-0.06767097115516663,
0.1355741322040558,
-0.22111615538597107,
0.017888251692056656,
0.11757068336009979,
0.05514959245920181,
0.06485570967197418,
-0.1466042846441269,
-0.05621323734521866,
-0.3176833689212799,
0.1789223700761795,
-0.026546988636255264,
0.05819788575172424,
0.28773733973503113,
0.5349922776222229,
0.5349515080451965,
-0.04189712554216385,
-0.19194230437278748,
0.0008373865857720375,
-0.2414671778678894,
-0.0011814143508672714,
-0.298030823469162,
-0.017719415947794914,
-0.09117837250232697,
0.33796167373657227,
-0.1961079090833664,
0.052053675055503845,
0.0955892950296402,
-0.0412604846060276,
-0.04339054226875305,
-0.23423956334590912,
0.5421868562698364,
0.3158928453922272,
-0.2065705955028534,
-0.08706545829772949,
-0.23451204597949982,
0.3308930993080139,
-0.026341188699007034,
0.3642314374446869,
-0.3273594081401825,
0.39374810457229614,
0.13805736601352692,
0.2052699476480484,
0.054415322840213776,
0.07984642684459686,
-0.10882718116044998,
0.05713813379406929,
0.04866265878081322,
-0.3628372848033905,
0.17558152973651886,
-0.39170026779174805,
-0.06361129134893417,
-0.13331186771392822,
0.13886792957782745,
0.1072770208120346,
-0.11265136301517487,
0.17667749524116516,
-0.15533380210399628,
-0.1869291514158249,
0.32837438583374023,
0.2327817976474762,
0.11166311055421829,
-0.14803487062454224,
-0.049609456211328506,
0.2933461666107178,
0.06718885153532028,
-0.2048177719116211,
-0.6263275742530823,
0.5222502946853638,
0.054587073624134064,
0.06867151707410812,
-0.23236703872680664,
0.1041705310344696,
0.2620423436164856,
-0.22009600698947906,
-0.3558202087879181,
0.5110676884651184,
-0.07678792625665665,
0.26509928703308105,
-0.2251552790403366,
-0.03166518360376358,
0.10718931257724762,
0.06122922524809837,
0.07327881455421448,
0.10768793523311615,
0.12038576602935791,
0.23556570708751678,
0.06051156297326088,
0.07122144848108292,
0.17326167225837708,
0.023469245061278343,
-0.0020106248557567596,
-0.30040067434310913,
0.31433966755867004,
0.3589801788330078,
-0.00853322446346283,
-0.04679563641548157,
-0.2672874331474304,
-0.17226773500442505,
-0.42336952686309814,
0.0468318909406662,
-0.0033970680087804794,
0.15933668613433838,
-0.17418450117111206,
0.07332001626491547,
0.2954804301261902,
0.04572915658354759,
-0.10590435564517975,
0.013638883829116821,
0.05265761539340019,
0.07396724075078964,
-0.029670603573322296,
-0.04242852330207825,
0.08658134937286377,
0.10387103259563446,
-0.101960189640522,
-0.06877585500478745,
-0.09813006222248077,
0.200726717710495,
0.0029523298144340515,
-0.09817443042993546,
-0.0816463753581047,
0.3445185720920563,
0.07167927920818329,
0.41491442918777466,
-0.13351985812187195,
-0.32351619005203247,
0.4556369185447693,
-0.6278443336486816,
-0.0200664009898901,
0.35933125019073486,
0.20164258778095245,
0.00802118331193924,
0.053754910826683044,
-0.08523423969745636,
-0.0659770667552948,
0.21487626433372498,
-0.05445028841495514,
0.007481308653950691,
0.03822232782840729,
-0.28457316756248474,
-0.20284131169319153,
-0.19607102870941162,
-0.08710664510726929,
0.039733223617076874,
0.2701149582862854,
0.05967448651790619,
0.009203135967254639,
0.0019185617566108704,
0.38513699173927307,
-0.09245865046977997,
0.021818336099386215,
0.12865477800369263,
-0.02389092743396759,
0.08343877643346786,
0.22430117428302765,
0.3510550260543823,
0.025998935103416443,
0.052475593984127045,
0.04518668353557587,
0.1602245569229126,
-0.25375330448150635,
-0.04928131401538849,
0.18854543566703796,
-0.007576882839202881,
0.24944764375686646,
0.19654420018196106,
0.24447943270206451,
0.17984232306480408,
-0.14928188920021057,
-0.3297256827354431,
0.12481283396482468,
0.030711108818650246,
0.13565440475940704,
0.13119877874851227,
-0.5447258949279785,
-0.439544677734375,
0.008114289492368698,
0.2811351418495178,
0.1076042503118515,
-0.4283285439014435,
-0.08136903494596481,
-0.16706231236457825,
-0.35645297169685364,
0.24130503833293915,
0.0806475430727005,
0.03225259482860565,
0.19502612948417664,
-0.07024750858545303,
-0.5630292892456055,
-0.011106256395578384,
-0.09156712144613266,
0.10359467566013336,
0.23061899840831757,
-0.19282583892345428,
0.21481576561927795,
-0.35354554653167725,
0.06765295565128326,
-0.16594600677490234,
-0.3815086781978607,
0.466077595949173,
-0.30761396884918213,
0.011701886542141438,
0.022980816662311554,
0.10777359455823898,
-0.07444582134485245,
-0.1293882578611374,
0.16709621250629425,
-0.37468764185905457,
-0.3758946657180786,
0.08697780966758728,
-0.060259200632572174,
-0.14069104194641113,
-0.5329573750495911,
0.0757438987493515,
0.04477957636117935,
-0.25642919540405273,
0.246986985206604,
-0.2867724895477295,
0.09511350095272064,
0.11902254819869995,
0.46511176228523254,
0.004918385297060013,
0.008526982739567757,
-0.10615897923707962,
-0.19229745864868164,
-0.005920391529798508,
0.20554892718791962,
-0.020320823416113853,
-0.2856326103210449,
-0.26583755016326904,
0.06334293633699417,
0.06393147259950638,
0.6518371105194092,
-0.40917909145355225,
-0.20224156975746155,
-0.13289706408977509,
-0.10625287890434265,
-0.13862042129039764,
0.09096699208021164,
-0.1655339002609253,
0.24220654368400574,
-0.1745518147945404,
-0.25755414366722107,
-0.08378581702709198,
-0.12109295278787613,
0.19774624705314636,
0.3818243741989136,
0.16742679476737976,
0.10231781750917435,
0.25572460889816284,
0.12909990549087524,
-0.07393316179513931,
-0.16448447108268738,
0.18861497938632965,
0.12504832446575165,
0.3493858277797699,
0.03084373101592064,
-0.03468146547675133,
0.09931077808141708,
0.0340789332985878,
-0.18420536816120148,
-0.0901748538017273,
-0.23020383715629578,
-0.5728799700737,
-0.10256980359554291,
0.1402110904455185,
-0.6265274882316589,
-0.2831133008003235,
0.17494335770606995,
0.11003229022026062,
0.22815221548080444,
-0.1296500861644745,
0.2306792140007019,
0.07030154764652252,
0.036542583256959915,
0.19890719652175903,
-0.11136758327484131,
0.48596760630607605,
-0.12753541767597198,
0.005634717643260956,
-0.45489898324012756,
-0.25865688920021057,
0.23084113001823425,
0.15365879237651825,
0.4835776388645172,
-0.1698763072490692,
-0.12673050165176392,
0.19874027371406555,
-0.16391105949878693,
0.4833831787109375,
-0.32907378673553467,
-0.03170354664325714,
0.14161108434200287,
-0.09231434017419815,
-0.25118207931518555,
0.20883052051067352,
-0.340800017118454,
0.06420418620109558,
0.1355462670326233,
0.5006675720214844,
-0.1897374838590622,
-0.014036729000508785,
-0.025516703724861145,
0.09645853191614151,
0.030065935105085373,
-0.27407482266426086,
-0.06980245560407639,
-0.37688547372817993,
-0.2966528534889221,
-0.10065775364637375,
0.17695917189121246,
-0.14179465174674988,
-0.012718388810753822,
-0.027171364054083824,
-0.2040470987558365,
-0.0622234009206295,
-0.02548469603061676,
0.37743130326271057,
0.187845379114151,
-0.10661432892084122,
0.053781334310770035,
0.17374664545059204,
0.04044549539685249,
0.13606514036655426,
0.3148151934146881,
-0.11113597452640533,
-0.142882838845253,
0.289751261472702,
-0.17516207695007324,
0.054023560136556625,
0.3930715024471283,
-0.02379276603460312,
-0.18365132808685303,
0.0726824551820755,
0.0747590884566307,
-0.38821932673454285,
0.08594794571399689,
0.19918276369571686,
-0.12297707051038742,
-0.15069442987442017,
-0.20112913846969604,
0.41447165608406067,
0.11967743933200836,
-0.07796589285135269,
0.10719341039657593,
-0.1524268388748169,
-0.22741451859474182,
0.7363568544387817,
0.5366306900978088,
1.0528658628463745,
-0.14537779986858368,
-0.10999636352062225,
0.00739656388759613,
-0.02558707632124424,
0.30074402689933777,
-0.006324581801891327,
0.2634483575820923,
-0.0586618110537529,
-0.06639909744262695,
-0.046316009014844894,
0.05251014605164528,
-0.0332457572221756,
0.16117677092552185,
-0.3778301179409027,
-0.04805514216423035,
0.0713423490524292,
-0.22067663073539734,
0.19142532348632812,
0.028483346104621887,
-0.1293792426586151,
-0.22676992416381836,
0.05592754855751991,
0.24121323227882385,
0.1033591479063034,
0.017582165077328682,
-0.13064543902873993,
-0.22215494513511658,
-0.27883845567703247,
0.036353252828121185,
-0.12735804915428162,
0.2345181405544281,
-0.39257195591926575,
0.05919467657804489,
-0.027900997549295425,
-0.25532978773117065,
-0.19002123177051544,
0.16652077436447144,
-0.06960904598236084,
0.14559224247932434,
0.08464306592941284,
0.18542875349521637,
0.28129467368125916,
0.26552829146385193,
0.06265317648649216,
-0.04596959054470062,
0.13619838654994965,
-0.055402711033821106,
0.1384361982345581,
-0.2733631134033203,
-0.14129163324832916,
-0.23648692667484283,
-0.24220755696296692,
0.2378615289926529,
-0.17570798099040985,
0.30535805225372314,
0.08556757867336273,
0.15331578254699707,
-0.1496027112007141,
0.0365385077893734,
0.19841749966144562,
-0.05604511499404907,
0.16471558809280396,
0.5823460817337036,
0.011935580521821976,
-0.36318984627723694,
0.023210037499666214,
0.01094045490026474,
-0.13669878244400024,
0.02243872731924057,
0.24503567814826965,
-0.1991729587316513,
-0.100041963160038,
-0.3014093339443207,
-0.004642851650714874,
-0.2188926637172699,
-0.2012273669242859,
0.08716856688261032,
-0.4122448265552521,
-0.17292781174182892,
0.01725057326257229,
-0.1694193184375763,
-0.0033733882009983063,
-0.034104444086551666,
-0.13580657541751862,
-0.2910584807395935,
-0.007632538676261902,
0.2073463350534439,
-0.010669492185115814,
0.14308185875415802,
-0.18182936310768127,
0.4052780866622925,
0.004317251965403557,
-0.017642268911004066,
-0.3583824336528778,
0.2725798785686493,
-0.1702919602394104,
0.2646890878677368,
-0.06536974757909775,
0.11327371001243591,
-0.0877961665391922,
-0.024228908121585846,
0.23619389533996582,
0.5670619010925293,
-0.07267473638057709,
-0.1345587968826294,
-0.21749229729175568,
0.0920189619064331,
0.14926864206790924,
-0.04588809609413147,
-0.07827255129814148,
-0.12632900476455688,
-0.07122425734996796,
-0.10589583963155746,
-0.15498216450214386,
-0.07853488624095917,
-0.23898287117481232,
-0.022642124444246292,
-0.16576984524726868,
0.1637076437473297,
0.2642870545387268,
0.059673093259334564,
0.042364176362752914,
0.39984792470932007,
-0.009918914176523685,
0.27508413791656494,
0.25056129693984985,
0.02975231409072876,
0.08909434080123901,
-0.04345723241567612,
-0.11429356038570404,
0.012829259037971497,
0.5798621773719788,
0.24480970203876495,
0.34210556745529175,
0.3669419586658478,
0.26433640718460083,
0.26258584856987,
-0.3287251889705658,
-0.15605857968330383,
0.023617148399353027,
0.3163711428642273,
0.02741982415318489,
-0.012094534933567047,
0.3675316274166107,
0.11782550066709518,
-0.04608017951250076,
0.2006303071975708,
0.17156216502189636,
0.0014794841408729553,
-0.017505235970020294,
-0.014229494147002697,
0.2289813607931137,
-0.27964431047439575,
-0.13026922941207886,
0.6692922711372375,
-0.2877002954483032,
0.3973180651664734,
0.12953563034534454,
-0.030351459980010986,
0.10270337015390396,
0.4852222204208374,
0.05964697152376175,
0.4428480863571167,
0.0725521445274353,
0.4412585496902466,
0.17851057648658752,
-0.2371697872877121,
0.1832151561975479,
0.42759451270103455,
-0.003432832658290863,
0.5709404945373535,
-0.04817427694797516,
0.12231257557868958,
-0.3008193373680115,
-0.07921895384788513,
0.13598719239234924,
0.3369152545928955,
-0.15723612904548645,
0.05765065923333168,
-0.12493997067213058,
-0.142944797873497,
-0.35018303990364075,
-0.15212348103523254,
0.13134829699993134,
-0.05766142159700394,
0.7209774255752563,
0.22790589928627014,
0.064401775598526,
0.16356083750724792,
-0.5615989565849304,
-0.12319078296422958,
0.3408600389957428,
-0.3764212429523468,
0.06422286480665207,
0.043550994247198105,
-0.004665441811084747,
0.37319085001945496,
0.3299596309661865,
0.24109962582588196,
0.3669174611568451,
-0.3390229344367981,
-0.08290142565965652,
-0.09078964591026306,
-0.09020702540874481,
-0.31156229972839355,
0.2871500551700592,
0.08958805352449417,
0.14183451235294342,
0.16081300377845764,
0.18327510356903076,
-0.24699552357196808,
-0.4805014729499817,
0.15431994199752808,
0.33666831254959106,
0.15087434649467468,
0.22844639420509338,
-0.3070639669895172,
0.06958722323179245,
0.08200621604919434,
-0.1514056921005249,
-0.3221510648727417,
-0.15817981958389282,
0.0773068517446518,
-0.4117695093154907,
0.15107020735740662,
0.23713386058807373,
0.10252855718135834,
-0.04287004843354225,
0.3688177764415741,
0.5211763381958008,
0.014577709138393402,
-0.09093063324689865,
-0.26376140117645264,
-0.4602002203464508,
0.25096699595451355,
0.03189511224627495,
-0.06259338557720184,
-0.07890506088733673,
0.11871424317359924,
0.0024028941988945007,
0.2849125862121582,
0.32762807607650757,
-0.42231059074401855,
0.11467570811510086,
0.1220242828130722,
-0.20314009487628937,
-0.034377533942461014,
0.287994921207428,
-0.15091580152511597,
0.005263574421405792,
-0.353952020406723,
0.3588152229785919,
0.03324251249432564,
0.25068631768226624,
-0.08647901564836502,
-0.1442931443452835,
-0.3931705057621002,
-0.25028562545776367,
0.6093149185180664,
0.5369583964347839,
0.060623496770858765,
-0.3411693871021271,
-0.4398941993713379,
0.023015759885311127,
-0.17350289225578308,
-0.09803186357021332,
0.02380485087633133,
-0.03619545325636864,
0.3659871816635132,
0.035410284996032715,
-0.11014699935913086,
-0.07858846336603165,
-0.15527410805225372,
0.00843244418501854,
0.18065783381462097,
-0.5817323923110962,
0.28548386693000793,
-0.2028179168701172,
-0.17380094528198242,
-0.12378222495317459,
0.31374385952949524,
0.17200027406215668,
0.037078119814395905,
-0.28956520557403564,
-0.5761380791664124,
0.21029122173786163,
-0.3342151343822479,
-0.32962456345558167,
0.2095518857240677,
-0.2989693284034729,
-0.4517778754234314,
0.35249873995780945,
-0.4164695143699646,
-0.13581207394599915,
-0.01810271292924881,
-0.19028538465499878,
-0.2212468385696411,
0.020730124786496162,
0.08768634498119354,
-0.12199723720550537,
0.023265276104211807,
0.4771605134010315,
0.12391375005245209,
-0.2152632623910904,
0.2992173433303833,
0.09619468450546265
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | @albertvillanova Secondly if you check the error message it shows that around 1999 images were successfully created, I'm pretty sure some of them were also flipped during the process. Back to my main contention, sometimes the decoding takes place other times it fails.
I suppose to run `map` on any dataset all the examples should be invoked even if on some of them we end up doing nothing, is that right? | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 71 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
@albertvillanova Secondly if you check the error message it shows that around 1999 images were successfully created, I'm pretty sure some of them were also flipped during the process. Back to my main contention, sometimes the decoding takes place other times it fails.
I suppose to run `map` on any dataset all the examples should be invoked even if on some of them we end up doing nothing, is that right? | [
-0.07820019870996475,
-0.01851590722799301,
-0.17894123494625092,
0.1256355494260788,
0.14424103498458862,
-0.10112117975950241,
0.061808109283447266,
0.2104717344045639,
-0.1569964438676834,
0.13136889040470123,
0.1810036599636078,
0.5930033326148987,
0.1992652267217636,
-0.14406491816043854,
-0.18413980305194855,
-0.11332951486110687,
0.1441313475370407,
0.3657735586166382,
-0.1194041520357132,
-0.15760481357574463,
-0.5352743864059448,
-0.005801912397146225,
-0.314211368560791,
-0.049811914563179016,
0.06573572754859924,
-0.11298533529043198,
-0.23476997017860413,
0.07208240032196045,
-0.1543050855398178,
0.062445081770420074,
-0.30688267946243286,
0.08322747051715851,
-0.3537132740020752,
0.34591424465179443,
-0.00010713133087847382,
0.055365949869155884,
0.4224435091018677,
-0.06316191703081131,
-0.03151477873325348,
0.2252107560634613,
-0.6300362944602966,
-0.4457522928714752,
-0.42889460921287537,
-0.31346163153648376,
0.16423794627189636,
-0.40856602787971497,
0.1668144315481186,
-0.088502898812294,
0.6687864065170288,
-0.09084919840097427,
0.275208443403244,
0.01367618516087532,
0.15292778611183167,
0.3442031145095825,
0.28106749057769775,
0.4071407914161682,
-0.04062206298112869,
-0.10186058282852173,
0.08197001367807388,
-0.008007831871509552,
-0.10818260163068771,
0.4912084937095642,
-0.035510286688804626,
-0.20048435032367706,
-0.03673706203699112,
-0.12343286722898483,
0.0809967964887619,
-0.39572611451148987,
0.14090031385421753,
-0.13028967380523682,
-0.28519195318222046,
-0.09223542362451553,
-0.3847450613975525,
-0.2415291666984558,
-0.037279438227415085,
-0.04497896879911423,
0.145216166973114,
-0.11532936990261078,
-0.09046460688114166,
0.14343991875648499,
-0.26853957772254944,
-0.051259953528642654,
0.07364396750926971,
0.06616118550300598,
-0.26796069741249084,
-0.03860601782798767,
0.048481009900569916,
0.07747842371463776,
0.1353183388710022,
-0.11176787316799164,
0.24557028710842133,
-0.009591717272996902,
0.11343955993652344,
-0.01772194355726242,
-0.017702657729387283,
0.0329500287771225,
-0.12709984183311462,
0.0893474891781807,
-0.09077738225460052,
-0.3664816617965698,
0.033449072390794754,
0.12285706400871277,
-0.057991329580545425,
0.3785974085330963,
0.11804379522800446,
-0.01961740292608738,
-0.24831745028495789,
0.43574073910713196,
0.006367307156324387,
-0.2644573748111725,
-0.22431372106075287,
-0.06767097115516663,
0.1355741322040558,
-0.22111615538597107,
0.017888251692056656,
0.11757068336009979,
0.05514959245920181,
0.06485570967197418,
-0.1466042846441269,
-0.05621323734521866,
-0.3176833689212799,
0.1789223700761795,
-0.026546988636255264,
0.05819788575172424,
0.28773733973503113,
0.5349922776222229,
0.5349515080451965,
-0.04189712554216385,
-0.19194230437278748,
0.0008373865857720375,
-0.2414671778678894,
-0.0011814143508672714,
-0.298030823469162,
-0.017719415947794914,
-0.09117837250232697,
0.33796167373657227,
-0.1961079090833664,
0.052053675055503845,
0.0955892950296402,
-0.0412604846060276,
-0.04339054226875305,
-0.23423956334590912,
0.5421868562698364,
0.3158928453922272,
-0.2065705955028534,
-0.08706545829772949,
-0.23451204597949982,
0.3308930993080139,
-0.026341188699007034,
0.3642314374446869,
-0.3273594081401825,
0.39374810457229614,
0.13805736601352692,
0.2052699476480484,
0.054415322840213776,
0.07984642684459686,
-0.10882718116044998,
0.05713813379406929,
0.04866265878081322,
-0.3628372848033905,
0.17558152973651886,
-0.39170026779174805,
-0.06361129134893417,
-0.13331186771392822,
0.13886792957782745,
0.1072770208120346,
-0.11265136301517487,
0.17667749524116516,
-0.15533380210399628,
-0.1869291514158249,
0.32837438583374023,
0.2327817976474762,
0.11166311055421829,
-0.14803487062454224,
-0.049609456211328506,
0.2933461666107178,
0.06718885153532028,
-0.2048177719116211,
-0.6263275742530823,
0.5222502946853638,
0.054587073624134064,
0.06867151707410812,
-0.23236703872680664,
0.1041705310344696,
0.2620423436164856,
-0.22009600698947906,
-0.3558202087879181,
0.5110676884651184,
-0.07678792625665665,
0.26509928703308105,
-0.2251552790403366,
-0.03166518360376358,
0.10718931257724762,
0.06122922524809837,
0.07327881455421448,
0.10768793523311615,
0.12038576602935791,
0.23556570708751678,
0.06051156297326088,
0.07122144848108292,
0.17326167225837708,
0.023469245061278343,
-0.0020106248557567596,
-0.30040067434310913,
0.31433966755867004,
0.3589801788330078,
-0.00853322446346283,
-0.04679563641548157,
-0.2672874331474304,
-0.17226773500442505,
-0.42336952686309814,
0.0468318909406662,
-0.0033970680087804794,
0.15933668613433838,
-0.17418450117111206,
0.07332001626491547,
0.2954804301261902,
0.04572915658354759,
-0.10590435564517975,
0.013638883829116821,
0.05265761539340019,
0.07396724075078964,
-0.029670603573322296,
-0.04242852330207825,
0.08658134937286377,
0.10387103259563446,
-0.101960189640522,
-0.06877585500478745,
-0.09813006222248077,
0.200726717710495,
0.0029523298144340515,
-0.09817443042993546,
-0.0816463753581047,
0.3445185720920563,
0.07167927920818329,
0.41491442918777466,
-0.13351985812187195,
-0.32351619005203247,
0.4556369185447693,
-0.6278443336486816,
-0.0200664009898901,
0.35933125019073486,
0.20164258778095245,
0.00802118331193924,
0.053754910826683044,
-0.08523423969745636,
-0.0659770667552948,
0.21487626433372498,
-0.05445028841495514,
0.007481308653950691,
0.03822232782840729,
-0.28457316756248474,
-0.20284131169319153,
-0.19607102870941162,
-0.08710664510726929,
0.039733223617076874,
0.2701149582862854,
0.05967448651790619,
0.009203135967254639,
0.0019185617566108704,
0.38513699173927307,
-0.09245865046977997,
0.021818336099386215,
0.12865477800369263,
-0.02389092743396759,
0.08343877643346786,
0.22430117428302765,
0.3510550260543823,
0.025998935103416443,
0.052475593984127045,
0.04518668353557587,
0.1602245569229126,
-0.25375330448150635,
-0.04928131401538849,
0.18854543566703796,
-0.007576882839202881,
0.24944764375686646,
0.19654420018196106,
0.24447943270206451,
0.17984232306480408,
-0.14928188920021057,
-0.3297256827354431,
0.12481283396482468,
0.030711108818650246,
0.13565440475940704,
0.13119877874851227,
-0.5447258949279785,
-0.439544677734375,
0.008114289492368698,
0.2811351418495178,
0.1076042503118515,
-0.4283285439014435,
-0.08136903494596481,
-0.16706231236457825,
-0.35645297169685364,
0.24130503833293915,
0.0806475430727005,
0.03225259482860565,
0.19502612948417664,
-0.07024750858545303,
-0.5630292892456055,
-0.011106256395578384,
-0.09156712144613266,
0.10359467566013336,
0.23061899840831757,
-0.19282583892345428,
0.21481576561927795,
-0.35354554653167725,
0.06765295565128326,
-0.16594600677490234,
-0.3815086781978607,
0.466077595949173,
-0.30761396884918213,
0.011701886542141438,
0.022980816662311554,
0.10777359455823898,
-0.07444582134485245,
-0.1293882578611374,
0.16709621250629425,
-0.37468764185905457,
-0.3758946657180786,
0.08697780966758728,
-0.060259200632572174,
-0.14069104194641113,
-0.5329573750495911,
0.0757438987493515,
0.04477957636117935,
-0.25642919540405273,
0.246986985206604,
-0.2867724895477295,
0.09511350095272064,
0.11902254819869995,
0.46511176228523254,
0.004918385297060013,
0.008526982739567757,
-0.10615897923707962,
-0.19229745864868164,
-0.005920391529798508,
0.20554892718791962,
-0.020320823416113853,
-0.2856326103210449,
-0.26583755016326904,
0.06334293633699417,
0.06393147259950638,
0.6518371105194092,
-0.40917909145355225,
-0.20224156975746155,
-0.13289706408977509,
-0.10625287890434265,
-0.13862042129039764,
0.09096699208021164,
-0.1655339002609253,
0.24220654368400574,
-0.1745518147945404,
-0.25755414366722107,
-0.08378581702709198,
-0.12109295278787613,
0.19774624705314636,
0.3818243741989136,
0.16742679476737976,
0.10231781750917435,
0.25572460889816284,
0.12909990549087524,
-0.07393316179513931,
-0.16448447108268738,
0.18861497938632965,
0.12504832446575165,
0.3493858277797699,
0.03084373101592064,
-0.03468146547675133,
0.09931077808141708,
0.0340789332985878,
-0.18420536816120148,
-0.0901748538017273,
-0.23020383715629578,
-0.5728799700737,
-0.10256980359554291,
0.1402110904455185,
-0.6265274882316589,
-0.2831133008003235,
0.17494335770606995,
0.11003229022026062,
0.22815221548080444,
-0.1296500861644745,
0.2306792140007019,
0.07030154764652252,
0.036542583256959915,
0.19890719652175903,
-0.11136758327484131,
0.48596760630607605,
-0.12753541767597198,
0.005634717643260956,
-0.45489898324012756,
-0.25865688920021057,
0.23084113001823425,
0.15365879237651825,
0.4835776388645172,
-0.1698763072490692,
-0.12673050165176392,
0.19874027371406555,
-0.16391105949878693,
0.4833831787109375,
-0.32907378673553467,
-0.03170354664325714,
0.14161108434200287,
-0.09231434017419815,
-0.25118207931518555,
0.20883052051067352,
-0.340800017118454,
0.06420418620109558,
0.1355462670326233,
0.5006675720214844,
-0.1897374838590622,
-0.014036729000508785,
-0.025516703724861145,
0.09645853191614151,
0.030065935105085373,
-0.27407482266426086,
-0.06980245560407639,
-0.37688547372817993,
-0.2966528534889221,
-0.10065775364637375,
0.17695917189121246,
-0.14179465174674988,
-0.012718388810753822,
-0.027171364054083824,
-0.2040470987558365,
-0.0622234009206295,
-0.02548469603061676,
0.37743130326271057,
0.187845379114151,
-0.10661432892084122,
0.053781334310770035,
0.17374664545059204,
0.04044549539685249,
0.13606514036655426,
0.3148151934146881,
-0.11113597452640533,
-0.142882838845253,
0.289751261472702,
-0.17516207695007324,
0.054023560136556625,
0.3930715024471283,
-0.02379276603460312,
-0.18365132808685303,
0.0726824551820755,
0.0747590884566307,
-0.38821932673454285,
0.08594794571399689,
0.19918276369571686,
-0.12297707051038742,
-0.15069442987442017,
-0.20112913846969604,
0.41447165608406067,
0.11967743933200836,
-0.07796589285135269,
0.10719341039657593,
-0.1524268388748169,
-0.22741451859474182,
0.7363568544387817,
0.5366306900978088,
1.0528658628463745,
-0.14537779986858368,
-0.10999636352062225,
0.00739656388759613,
-0.02558707632124424,
0.30074402689933777,
-0.006324581801891327,
0.2634483575820923,
-0.0586618110537529,
-0.06639909744262695,
-0.046316009014844894,
0.05251014605164528,
-0.0332457572221756,
0.16117677092552185,
-0.3778301179409027,
-0.04805514216423035,
0.0713423490524292,
-0.22067663073539734,
0.19142532348632812,
0.028483346104621887,
-0.1293792426586151,
-0.22676992416381836,
0.05592754855751991,
0.24121323227882385,
0.1033591479063034,
0.017582165077328682,
-0.13064543902873993,
-0.22215494513511658,
-0.27883845567703247,
0.036353252828121185,
-0.12735804915428162,
0.2345181405544281,
-0.39257195591926575,
0.05919467657804489,
-0.027900997549295425,
-0.25532978773117065,
-0.19002123177051544,
0.16652077436447144,
-0.06960904598236084,
0.14559224247932434,
0.08464306592941284,
0.18542875349521637,
0.28129467368125916,
0.26552829146385193,
0.06265317648649216,
-0.04596959054470062,
0.13619838654994965,
-0.055402711033821106,
0.1384361982345581,
-0.2733631134033203,
-0.14129163324832916,
-0.23648692667484283,
-0.24220755696296692,
0.2378615289926529,
-0.17570798099040985,
0.30535805225372314,
0.08556757867336273,
0.15331578254699707,
-0.1496027112007141,
0.0365385077893734,
0.19841749966144562,
-0.05604511499404907,
0.16471558809280396,
0.5823460817337036,
0.011935580521821976,
-0.36318984627723694,
0.023210037499666214,
0.01094045490026474,
-0.13669878244400024,
0.02243872731924057,
0.24503567814826965,
-0.1991729587316513,
-0.100041963160038,
-0.3014093339443207,
-0.004642851650714874,
-0.2188926637172699,
-0.2012273669242859,
0.08716856688261032,
-0.4122448265552521,
-0.17292781174182892,
0.01725057326257229,
-0.1694193184375763,
-0.0033733882009983063,
-0.034104444086551666,
-0.13580657541751862,
-0.2910584807395935,
-0.007632538676261902,
0.2073463350534439,
-0.010669492185115814,
0.14308185875415802,
-0.18182936310768127,
0.4052780866622925,
0.004317251965403557,
-0.017642268911004066,
-0.3583824336528778,
0.2725798785686493,
-0.1702919602394104,
0.2646890878677368,
-0.06536974757909775,
0.11327371001243591,
-0.0877961665391922,
-0.024228908121585846,
0.23619389533996582,
0.5670619010925293,
-0.07267473638057709,
-0.1345587968826294,
-0.21749229729175568,
0.0920189619064331,
0.14926864206790924,
-0.04588809609413147,
-0.07827255129814148,
-0.12632900476455688,
-0.07122425734996796,
-0.10589583963155746,
-0.15498216450214386,
-0.07853488624095917,
-0.23898287117481232,
-0.022642124444246292,
-0.16576984524726868,
0.1637076437473297,
0.2642870545387268,
0.059673093259334564,
0.042364176362752914,
0.39984792470932007,
-0.009918914176523685,
0.27508413791656494,
0.25056129693984985,
0.02975231409072876,
0.08909434080123901,
-0.04345723241567612,
-0.11429356038570404,
0.012829259037971497,
0.5798621773719788,
0.24480970203876495,
0.34210556745529175,
0.3669419586658478,
0.26433640718460083,
0.26258584856987,
-0.3287251889705658,
-0.15605857968330383,
0.023617148399353027,
0.3163711428642273,
0.02741982415318489,
-0.012094534933567047,
0.3675316274166107,
0.11782550066709518,
-0.04608017951250076,
0.2006303071975708,
0.17156216502189636,
0.0014794841408729553,
-0.017505235970020294,
-0.014229494147002697,
0.2289813607931137,
-0.27964431047439575,
-0.13026922941207886,
0.6692922711372375,
-0.2877002954483032,
0.3973180651664734,
0.12953563034534454,
-0.030351459980010986,
0.10270337015390396,
0.4852222204208374,
0.05964697152376175,
0.4428480863571167,
0.0725521445274353,
0.4412585496902466,
0.17851057648658752,
-0.2371697872877121,
0.1832151561975479,
0.42759451270103455,
-0.003432832658290863,
0.5709404945373535,
-0.04817427694797516,
0.12231257557868958,
-0.3008193373680115,
-0.07921895384788513,
0.13598719239234924,
0.3369152545928955,
-0.15723612904548645,
0.05765065923333168,
-0.12493997067213058,
-0.142944797873497,
-0.35018303990364075,
-0.15212348103523254,
0.13134829699993134,
-0.05766142159700394,
0.7209774255752563,
0.22790589928627014,
0.064401775598526,
0.16356083750724792,
-0.5615989565849304,
-0.12319078296422958,
0.3408600389957428,
-0.3764212429523468,
0.06422286480665207,
0.043550994247198105,
-0.004665441811084747,
0.37319085001945496,
0.3299596309661865,
0.24109962582588196,
0.3669174611568451,
-0.3390229344367981,
-0.08290142565965652,
-0.09078964591026306,
-0.09020702540874481,
-0.31156229972839355,
0.2871500551700592,
0.08958805352449417,
0.14183451235294342,
0.16081300377845764,
0.18327510356903076,
-0.24699552357196808,
-0.4805014729499817,
0.15431994199752808,
0.33666831254959106,
0.15087434649467468,
0.22844639420509338,
-0.3070639669895172,
0.06958722323179245,
0.08200621604919434,
-0.1514056921005249,
-0.3221510648727417,
-0.15817981958389282,
0.0773068517446518,
-0.4117695093154907,
0.15107020735740662,
0.23713386058807373,
0.10252855718135834,
-0.04287004843354225,
0.3688177764415741,
0.5211763381958008,
0.014577709138393402,
-0.09093063324689865,
-0.26376140117645264,
-0.4602002203464508,
0.25096699595451355,
0.03189511224627495,
-0.06259338557720184,
-0.07890506088733673,
0.11871424317359924,
0.0024028941988945007,
0.2849125862121582,
0.32762807607650757,
-0.42231059074401855,
0.11467570811510086,
0.1220242828130722,
-0.20314009487628937,
-0.034377533942461014,
0.287994921207428,
-0.15091580152511597,
0.005263574421405792,
-0.353952020406723,
0.3588152229785919,
0.03324251249432564,
0.25068631768226624,
-0.08647901564836502,
-0.1442931443452835,
-0.3931705057621002,
-0.25028562545776367,
0.6093149185180664,
0.5369583964347839,
0.060623496770858765,
-0.3411693871021271,
-0.4398941993713379,
0.023015759885311127,
-0.17350289225578308,
-0.09803186357021332,
0.02380485087633133,
-0.03619545325636864,
0.3659871816635132,
0.035410284996032715,
-0.11014699935913086,
-0.07858846336603165,
-0.15527410805225372,
0.00843244418501854,
0.18065783381462097,
-0.5817323923110962,
0.28548386693000793,
-0.2028179168701172,
-0.17380094528198242,
-0.12378222495317459,
0.31374385952949524,
0.17200027406215668,
0.037078119814395905,
-0.28956520557403564,
-0.5761380791664124,
0.21029122173786163,
-0.3342151343822479,
-0.32962456345558167,
0.2095518857240677,
-0.2989693284034729,
-0.4517778754234314,
0.35249873995780945,
-0.4164695143699646,
-0.13581207394599915,
-0.01810271292924881,
-0.19028538465499878,
-0.2212468385696411,
0.020730124786496162,
0.08768634498119354,
-0.12199723720550537,
0.023265276104211807,
0.4771605134010315,
0.12391375005245209,
-0.2152632623910904,
0.2992173433303833,
0.09619468450546265
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | Hi @RafayAK! I've opened a PR with the fix, which adds a fallback to reattempt casting to PyArrow format with a more robust (but more expensive) procedure if the first attempt fails. Feel free to test it by installing `datasets` from the PR branch with the following command:
```
pip install git+https://github.com/huggingface/datasets.git@fix-4124
``` | ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 53 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
Hi @RafayAK! I've opened a PR with the fix, which adds a fallback to reattempt casting to PyArrow format with a more robust (but more expensive) procedure if the first attempt fails. Feel free to test it by installing `datasets` from the PR branch with the following command:
```
pip install git+https://github.com/huggingface/datasets.git@fix-4124
``` | [
-0.07820019870996475,
-0.01851590722799301,
-0.17894123494625092,
0.1256355494260788,
0.14424103498458862,
-0.10112117975950241,
0.061808109283447266,
0.2104717344045639,
-0.1569964438676834,
0.13136889040470123,
0.1810036599636078,
0.5930033326148987,
0.1992652267217636,
-0.14406491816043854,
-0.18413980305194855,
-0.11332951486110687,
0.1441313475370407,
0.3657735586166382,
-0.1194041520357132,
-0.15760481357574463,
-0.5352743864059448,
-0.005801912397146225,
-0.314211368560791,
-0.049811914563179016,
0.06573572754859924,
-0.11298533529043198,
-0.23476997017860413,
0.07208240032196045,
-0.1543050855398178,
0.062445081770420074,
-0.30688267946243286,
0.08322747051715851,
-0.3537132740020752,
0.34591424465179443,
-0.00010713133087847382,
0.055365949869155884,
0.4224435091018677,
-0.06316191703081131,
-0.03151477873325348,
0.2252107560634613,
-0.6300362944602966,
-0.4457522928714752,
-0.42889460921287537,
-0.31346163153648376,
0.16423794627189636,
-0.40856602787971497,
0.1668144315481186,
-0.088502898812294,
0.6687864065170288,
-0.09084919840097427,
0.275208443403244,
0.01367618516087532,
0.15292778611183167,
0.3442031145095825,
0.28106749057769775,
0.4071407914161682,
-0.04062206298112869,
-0.10186058282852173,
0.08197001367807388,
-0.008007831871509552,
-0.10818260163068771,
0.4912084937095642,
-0.035510286688804626,
-0.20048435032367706,
-0.03673706203699112,
-0.12343286722898483,
0.0809967964887619,
-0.39572611451148987,
0.14090031385421753,
-0.13028967380523682,
-0.28519195318222046,
-0.09223542362451553,
-0.3847450613975525,
-0.2415291666984558,
-0.037279438227415085,
-0.04497896879911423,
0.145216166973114,
-0.11532936990261078,
-0.09046460688114166,
0.14343991875648499,
-0.26853957772254944,
-0.051259953528642654,
0.07364396750926971,
0.06616118550300598,
-0.26796069741249084,
-0.03860601782798767,
0.048481009900569916,
0.07747842371463776,
0.1353183388710022,
-0.11176787316799164,
0.24557028710842133,
-0.009591717272996902,
0.11343955993652344,
-0.01772194355726242,
-0.017702657729387283,
0.0329500287771225,
-0.12709984183311462,
0.0893474891781807,
-0.09077738225460052,
-0.3664816617965698,
0.033449072390794754,
0.12285706400871277,
-0.057991329580545425,
0.3785974085330963,
0.11804379522800446,
-0.01961740292608738,
-0.24831745028495789,
0.43574073910713196,
0.006367307156324387,
-0.2644573748111725,
-0.22431372106075287,
-0.06767097115516663,
0.1355741322040558,
-0.22111615538597107,
0.017888251692056656,
0.11757068336009979,
0.05514959245920181,
0.06485570967197418,
-0.1466042846441269,
-0.05621323734521866,
-0.3176833689212799,
0.1789223700761795,
-0.026546988636255264,
0.05819788575172424,
0.28773733973503113,
0.5349922776222229,
0.5349515080451965,
-0.04189712554216385,
-0.19194230437278748,
0.0008373865857720375,
-0.2414671778678894,
-0.0011814143508672714,
-0.298030823469162,
-0.017719415947794914,
-0.09117837250232697,
0.33796167373657227,
-0.1961079090833664,
0.052053675055503845,
0.0955892950296402,
-0.0412604846060276,
-0.04339054226875305,
-0.23423956334590912,
0.5421868562698364,
0.3158928453922272,
-0.2065705955028534,
-0.08706545829772949,
-0.23451204597949982,
0.3308930993080139,
-0.026341188699007034,
0.3642314374446869,
-0.3273594081401825,
0.39374810457229614,
0.13805736601352692,
0.2052699476480484,
0.054415322840213776,
0.07984642684459686,
-0.10882718116044998,
0.05713813379406929,
0.04866265878081322,
-0.3628372848033905,
0.17558152973651886,
-0.39170026779174805,
-0.06361129134893417,
-0.13331186771392822,
0.13886792957782745,
0.1072770208120346,
-0.11265136301517487,
0.17667749524116516,
-0.15533380210399628,
-0.1869291514158249,
0.32837438583374023,
0.2327817976474762,
0.11166311055421829,
-0.14803487062454224,
-0.049609456211328506,
0.2933461666107178,
0.06718885153532028,
-0.2048177719116211,
-0.6263275742530823,
0.5222502946853638,
0.054587073624134064,
0.06867151707410812,
-0.23236703872680664,
0.1041705310344696,
0.2620423436164856,
-0.22009600698947906,
-0.3558202087879181,
0.5110676884651184,
-0.07678792625665665,
0.26509928703308105,
-0.2251552790403366,
-0.03166518360376358,
0.10718931257724762,
0.06122922524809837,
0.07327881455421448,
0.10768793523311615,
0.12038576602935791,
0.23556570708751678,
0.06051156297326088,
0.07122144848108292,
0.17326167225837708,
0.023469245061278343,
-0.0020106248557567596,
-0.30040067434310913,
0.31433966755867004,
0.3589801788330078,
-0.00853322446346283,
-0.04679563641548157,
-0.2672874331474304,
-0.17226773500442505,
-0.42336952686309814,
0.0468318909406662,
-0.0033970680087804794,
0.15933668613433838,
-0.17418450117111206,
0.07332001626491547,
0.2954804301261902,
0.04572915658354759,
-0.10590435564517975,
0.013638883829116821,
0.05265761539340019,
0.07396724075078964,
-0.029670603573322296,
-0.04242852330207825,
0.08658134937286377,
0.10387103259563446,
-0.101960189640522,
-0.06877585500478745,
-0.09813006222248077,
0.200726717710495,
0.0029523298144340515,
-0.09817443042993546,
-0.0816463753581047,
0.3445185720920563,
0.07167927920818329,
0.41491442918777466,
-0.13351985812187195,
-0.32351619005203247,
0.4556369185447693,
-0.6278443336486816,
-0.0200664009898901,
0.35933125019073486,
0.20164258778095245,
0.00802118331193924,
0.053754910826683044,
-0.08523423969745636,
-0.0659770667552948,
0.21487626433372498,
-0.05445028841495514,
0.007481308653950691,
0.03822232782840729,
-0.28457316756248474,
-0.20284131169319153,
-0.19607102870941162,
-0.08710664510726929,
0.039733223617076874,
0.2701149582862854,
0.05967448651790619,
0.009203135967254639,
0.0019185617566108704,
0.38513699173927307,
-0.09245865046977997,
0.021818336099386215,
0.12865477800369263,
-0.02389092743396759,
0.08343877643346786,
0.22430117428302765,
0.3510550260543823,
0.025998935103416443,
0.052475593984127045,
0.04518668353557587,
0.1602245569229126,
-0.25375330448150635,
-0.04928131401538849,
0.18854543566703796,
-0.007576882839202881,
0.24944764375686646,
0.19654420018196106,
0.24447943270206451,
0.17984232306480408,
-0.14928188920021057,
-0.3297256827354431,
0.12481283396482468,
0.030711108818650246,
0.13565440475940704,
0.13119877874851227,
-0.5447258949279785,
-0.439544677734375,
0.008114289492368698,
0.2811351418495178,
0.1076042503118515,
-0.4283285439014435,
-0.08136903494596481,
-0.16706231236457825,
-0.35645297169685364,
0.24130503833293915,
0.0806475430727005,
0.03225259482860565,
0.19502612948417664,
-0.07024750858545303,
-0.5630292892456055,
-0.011106256395578384,
-0.09156712144613266,
0.10359467566013336,
0.23061899840831757,
-0.19282583892345428,
0.21481576561927795,
-0.35354554653167725,
0.06765295565128326,
-0.16594600677490234,
-0.3815086781978607,
0.466077595949173,
-0.30761396884918213,
0.011701886542141438,
0.022980816662311554,
0.10777359455823898,
-0.07444582134485245,
-0.1293882578611374,
0.16709621250629425,
-0.37468764185905457,
-0.3758946657180786,
0.08697780966758728,
-0.060259200632572174,
-0.14069104194641113,
-0.5329573750495911,
0.0757438987493515,
0.04477957636117935,
-0.25642919540405273,
0.246986985206604,
-0.2867724895477295,
0.09511350095272064,
0.11902254819869995,
0.46511176228523254,
0.004918385297060013,
0.008526982739567757,
-0.10615897923707962,
-0.19229745864868164,
-0.005920391529798508,
0.20554892718791962,
-0.020320823416113853,
-0.2856326103210449,
-0.26583755016326904,
0.06334293633699417,
0.06393147259950638,
0.6518371105194092,
-0.40917909145355225,
-0.20224156975746155,
-0.13289706408977509,
-0.10625287890434265,
-0.13862042129039764,
0.09096699208021164,
-0.1655339002609253,
0.24220654368400574,
-0.1745518147945404,
-0.25755414366722107,
-0.08378581702709198,
-0.12109295278787613,
0.19774624705314636,
0.3818243741989136,
0.16742679476737976,
0.10231781750917435,
0.25572460889816284,
0.12909990549087524,
-0.07393316179513931,
-0.16448447108268738,
0.18861497938632965,
0.12504832446575165,
0.3493858277797699,
0.03084373101592064,
-0.03468146547675133,
0.09931077808141708,
0.0340789332985878,
-0.18420536816120148,
-0.0901748538017273,
-0.23020383715629578,
-0.5728799700737,
-0.10256980359554291,
0.1402110904455185,
-0.6265274882316589,
-0.2831133008003235,
0.17494335770606995,
0.11003229022026062,
0.22815221548080444,
-0.1296500861644745,
0.2306792140007019,
0.07030154764652252,
0.036542583256959915,
0.19890719652175903,
-0.11136758327484131,
0.48596760630607605,
-0.12753541767597198,
0.005634717643260956,
-0.45489898324012756,
-0.25865688920021057,
0.23084113001823425,
0.15365879237651825,
0.4835776388645172,
-0.1698763072490692,
-0.12673050165176392,
0.19874027371406555,
-0.16391105949878693,
0.4833831787109375,
-0.32907378673553467,
-0.03170354664325714,
0.14161108434200287,
-0.09231434017419815,
-0.25118207931518555,
0.20883052051067352,
-0.340800017118454,
0.06420418620109558,
0.1355462670326233,
0.5006675720214844,
-0.1897374838590622,
-0.014036729000508785,
-0.025516703724861145,
0.09645853191614151,
0.030065935105085373,
-0.27407482266426086,
-0.06980245560407639,
-0.37688547372817993,
-0.2966528534889221,
-0.10065775364637375,
0.17695917189121246,
-0.14179465174674988,
-0.012718388810753822,
-0.027171364054083824,
-0.2040470987558365,
-0.0622234009206295,
-0.02548469603061676,
0.37743130326271057,
0.187845379114151,
-0.10661432892084122,
0.053781334310770035,
0.17374664545059204,
0.04044549539685249,
0.13606514036655426,
0.3148151934146881,
-0.11113597452640533,
-0.142882838845253,
0.289751261472702,
-0.17516207695007324,
0.054023560136556625,
0.3930715024471283,
-0.02379276603460312,
-0.18365132808685303,
0.0726824551820755,
0.0747590884566307,
-0.38821932673454285,
0.08594794571399689,
0.19918276369571686,
-0.12297707051038742,
-0.15069442987442017,
-0.20112913846969604,
0.41447165608406067,
0.11967743933200836,
-0.07796589285135269,
0.10719341039657593,
-0.1524268388748169,
-0.22741451859474182,
0.7363568544387817,
0.5366306900978088,
1.0528658628463745,
-0.14537779986858368,
-0.10999636352062225,
0.00739656388759613,
-0.02558707632124424,
0.30074402689933777,
-0.006324581801891327,
0.2634483575820923,
-0.0586618110537529,
-0.06639909744262695,
-0.046316009014844894,
0.05251014605164528,
-0.0332457572221756,
0.16117677092552185,
-0.3778301179409027,
-0.04805514216423035,
0.0713423490524292,
-0.22067663073539734,
0.19142532348632812,
0.028483346104621887,
-0.1293792426586151,
-0.22676992416381836,
0.05592754855751991,
0.24121323227882385,
0.1033591479063034,
0.017582165077328682,
-0.13064543902873993,
-0.22215494513511658,
-0.27883845567703247,
0.036353252828121185,
-0.12735804915428162,
0.2345181405544281,
-0.39257195591926575,
0.05919467657804489,
-0.027900997549295425,
-0.25532978773117065,
-0.19002123177051544,
0.16652077436447144,
-0.06960904598236084,
0.14559224247932434,
0.08464306592941284,
0.18542875349521637,
0.28129467368125916,
0.26552829146385193,
0.06265317648649216,
-0.04596959054470062,
0.13619838654994965,
-0.055402711033821106,
0.1384361982345581,
-0.2733631134033203,
-0.14129163324832916,
-0.23648692667484283,
-0.24220755696296692,
0.2378615289926529,
-0.17570798099040985,
0.30535805225372314,
0.08556757867336273,
0.15331578254699707,
-0.1496027112007141,
0.0365385077893734,
0.19841749966144562,
-0.05604511499404907,
0.16471558809280396,
0.5823460817337036,
0.011935580521821976,
-0.36318984627723694,
0.023210037499666214,
0.01094045490026474,
-0.13669878244400024,
0.02243872731924057,
0.24503567814826965,
-0.1991729587316513,
-0.100041963160038,
-0.3014093339443207,
-0.004642851650714874,
-0.2188926637172699,
-0.2012273669242859,
0.08716856688261032,
-0.4122448265552521,
-0.17292781174182892,
0.01725057326257229,
-0.1694193184375763,
-0.0033733882009983063,
-0.034104444086551666,
-0.13580657541751862,
-0.2910584807395935,
-0.007632538676261902,
0.2073463350534439,
-0.010669492185115814,
0.14308185875415802,
-0.18182936310768127,
0.4052780866622925,
0.004317251965403557,
-0.017642268911004066,
-0.3583824336528778,
0.2725798785686493,
-0.1702919602394104,
0.2646890878677368,
-0.06536974757909775,
0.11327371001243591,
-0.0877961665391922,
-0.024228908121585846,
0.23619389533996582,
0.5670619010925293,
-0.07267473638057709,
-0.1345587968826294,
-0.21749229729175568,
0.0920189619064331,
0.14926864206790924,
-0.04588809609413147,
-0.07827255129814148,
-0.12632900476455688,
-0.07122425734996796,
-0.10589583963155746,
-0.15498216450214386,
-0.07853488624095917,
-0.23898287117481232,
-0.022642124444246292,
-0.16576984524726868,
0.1637076437473297,
0.2642870545387268,
0.059673093259334564,
0.042364176362752914,
0.39984792470932007,
-0.009918914176523685,
0.27508413791656494,
0.25056129693984985,
0.02975231409072876,
0.08909434080123901,
-0.04345723241567612,
-0.11429356038570404,
0.012829259037971497,
0.5798621773719788,
0.24480970203876495,
0.34210556745529175,
0.3669419586658478,
0.26433640718460083,
0.26258584856987,
-0.3287251889705658,
-0.15605857968330383,
0.023617148399353027,
0.3163711428642273,
0.02741982415318489,
-0.012094534933567047,
0.3675316274166107,
0.11782550066709518,
-0.04608017951250076,
0.2006303071975708,
0.17156216502189636,
0.0014794841408729553,
-0.017505235970020294,
-0.014229494147002697,
0.2289813607931137,
-0.27964431047439575,
-0.13026922941207886,
0.6692922711372375,
-0.2877002954483032,
0.3973180651664734,
0.12953563034534454,
-0.030351459980010986,
0.10270337015390396,
0.4852222204208374,
0.05964697152376175,
0.4428480863571167,
0.0725521445274353,
0.4412585496902466,
0.17851057648658752,
-0.2371697872877121,
0.1832151561975479,
0.42759451270103455,
-0.003432832658290863,
0.5709404945373535,
-0.04817427694797516,
0.12231257557868958,
-0.3008193373680115,
-0.07921895384788513,
0.13598719239234924,
0.3369152545928955,
-0.15723612904548645,
0.05765065923333168,
-0.12493997067213058,
-0.142944797873497,
-0.35018303990364075,
-0.15212348103523254,
0.13134829699993134,
-0.05766142159700394,
0.7209774255752563,
0.22790589928627014,
0.064401775598526,
0.16356083750724792,
-0.5615989565849304,
-0.12319078296422958,
0.3408600389957428,
-0.3764212429523468,
0.06422286480665207,
0.043550994247198105,
-0.004665441811084747,
0.37319085001945496,
0.3299596309661865,
0.24109962582588196,
0.3669174611568451,
-0.3390229344367981,
-0.08290142565965652,
-0.09078964591026306,
-0.09020702540874481,
-0.31156229972839355,
0.2871500551700592,
0.08958805352449417,
0.14183451235294342,
0.16081300377845764,
0.18327510356903076,
-0.24699552357196808,
-0.4805014729499817,
0.15431994199752808,
0.33666831254959106,
0.15087434649467468,
0.22844639420509338,
-0.3070639669895172,
0.06958722323179245,
0.08200621604919434,
-0.1514056921005249,
-0.3221510648727417,
-0.15817981958389282,
0.0773068517446518,
-0.4117695093154907,
0.15107020735740662,
0.23713386058807373,
0.10252855718135834,
-0.04287004843354225,
0.3688177764415741,
0.5211763381958008,
0.014577709138393402,
-0.09093063324689865,
-0.26376140117645264,
-0.4602002203464508,
0.25096699595451355,
0.03189511224627495,
-0.06259338557720184,
-0.07890506088733673,
0.11871424317359924,
0.0024028941988945007,
0.2849125862121582,
0.32762807607650757,
-0.42231059074401855,
0.11467570811510086,
0.1220242828130722,
-0.20314009487628937,
-0.034377533942461014,
0.287994921207428,
-0.15091580152511597,
0.005263574421405792,
-0.353952020406723,
0.3588152229785919,
0.03324251249432564,
0.25068631768226624,
-0.08647901564836502,
-0.1442931443452835,
-0.3931705057621002,
-0.25028562545776367,
0.6093149185180664,
0.5369583964347839,
0.060623496770858765,
-0.3411693871021271,
-0.4398941993713379,
0.023015759885311127,
-0.17350289225578308,
-0.09803186357021332,
0.02380485087633133,
-0.03619545325636864,
0.3659871816635132,
0.035410284996032715,
-0.11014699935913086,
-0.07858846336603165,
-0.15527410805225372,
0.00843244418501854,
0.18065783381462097,
-0.5817323923110962,
0.28548386693000793,
-0.2028179168701172,
-0.17380094528198242,
-0.12378222495317459,
0.31374385952949524,
0.17200027406215668,
0.037078119814395905,
-0.28956520557403564,
-0.5761380791664124,
0.21029122173786163,
-0.3342151343822479,
-0.32962456345558167,
0.2095518857240677,
-0.2989693284034729,
-0.4517778754234314,
0.35249873995780945,
-0.4164695143699646,
-0.13581207394599915,
-0.01810271292924881,
-0.19028538465499878,
-0.2212468385696411,
0.020730124786496162,
0.08768634498119354,
-0.12199723720550537,
0.023265276104211807,
0.4771605134010315,
0.12391375005245209,
-0.2152632623910904,
0.2992173433303833,
0.09619468450546265
] |
https://github.com/huggingface/datasets/issues/4124 | Image decoding often fails when transforming Image datasets | @mariosasko Thanks a lot for looking into this, now the `map` function at least behaves as one would expect a function to behave.
Looking forward to exploring Hugging Face more and even contributing 😃.
```bash
$ conda list | grep datasets
datasets 2.0.1.dev0 pypi_0 pypi
```
```python
def preprocess_data(dataset):
"""
Helper funtion to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
The output now show the function was applied successfully:
``` bash
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Downloading builder script: 5.61kB [00:00, 3.16MB/s]
Downloading metadata: 4.21kB [00:00, 2.56MB/s]
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
100%|██████████| 10000/10000 [00:01<00:00, 5149.15ex/s]
```
| ## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
| 245 | Image decoding often fails when transforming Image datasets
## Describe the bug
When transforming/modifying images in an image dataset using the `map` function the PIL images often fail to decode in time for the image transforms, causing errors.
Using a debugger it is easy to see what the problem is, the Image decode invocation does not take place and the resulting image passed around is still raw bytes:
```
[{'bytes': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x02\x00\x00\x00\xfc\x18\xed\xa3\x00\x00\x08\x02IDATx\x9cEVIs[\xc7\x11\xeemf\xde\x82\x8d\x80\x08\x89"\xb5V\\\xb6\x94(\xe5\x9f\x90\xca5\x7f$\xa7T\xe5\x9f&9\xd9\x8a\\.\xdb\xa4$J\xa4\x00\x02x\xc0{\xb3t\xe7\x00\xca\x99\xd3\\f\xba\xba\xbf\xa5?|\xfa\xf4\xa2\xeb\xba\xedv\xa3f^\xf8\xd5\x0bY\xb6\x10\xb3\xaaDq\xcd\x83\x87\xdf5\xf3gZ\x1a\x04\x0f\xa0fp\xfa\xe0\xd4\x07?\x9dN\xc4\xb1\x99\xfd\xf2\xcb/\x97\x97\x97H\xa2\xaaf\x16\x82\xaf\xeb\xca{\xbf\xd9l.\xdf\x7f\xfa\xcb_\xff&\x88\x08\x00\x80H\xc0\x80@.;\x0f\x8c@#v\xe3\xe5\xfc\xd1\x9f\xee6q\xbf\xdf\xa6\x14\'\x93\xf1\xc3\xe5\xe3\xd1x\x14c\x8c1\xa5\x1c\x9dsM\xd3\xb4\xed\x08\x89SJ)\xa5\xedv\xbb^\xafNO\x97D\x84Hf ....
```
## Steps to reproduce the bug
```python
from datasets import load_dataset, Dataset
import numpy as np
# seeded NumPy random number generator for reprodducinble results.
rng = np.random.default_rng(seed=0)
test_dataset = load_dataset('cifar100', split="test")
def preprocess_data(dataset):
"""
Helper function to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping function that transforms some of the images up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: the probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
## Expected results
The dataset should be transformed without problems.
## Actual results
```
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
20%|█▉ | 1999/10000 [00:00<00:01, 5560.44ex/s]
Traceback (most recent call last):
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2326, in _map_single
writer.write(example)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 441, in write
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py", line 55, in <module>
my_test = my_test.map(generate_flipped_data)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1953, in map
return self._map_single(
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 519, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 486, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 2360, in _map_single
writer.finalize()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 522, in finalize
self.write_examples_on_file()
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 399, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 492, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/home/rafay/anaconda3/envs/pytorch_new/lib/python3.10/site-packages/datasets/arrow_writer.py", line 185, in __arrow_array__
out = pa.array(cast_to_python_objects(data, only_1d_for_numpy=True))
File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert <PIL.Image.Image image mode=RGB size=32x32 at 0x7F56AEE61DE0> with type Image: did not recognize Python value type when inferring an Arrow data type
Process finished with exit code 1
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux(Fedora 35)
- Python version: 3.10
- PyArrow version: 7.0.0
@mariosasko Thanks a lot for looking into this, now the `map` function at least behaves as one would expect a function to behave.
Looking forward to exploring Hugging Face more and even contributing 😃.
```bash
$ conda list | grep datasets
datasets 2.0.1.dev0 pypi_0 pypi
```
```python
def preprocess_data(dataset):
"""
Helper funtion to pre-process HuggingFace Cifar-100 Dataset to remove fine_label and coarse_label columns and
add is_flipped column
Args:
dataset: HuggingFace CIFAR-100 Dataset Object
Returns:
new_dataset: A Dataset object with "img" and "is_flipped" columns only
"""
# remove fine_label and coarse_label columns
new_dataset = dataset.remove_columns(['fine_label', 'coarse_label'])
# add the column for is_flipped
new_dataset = new_dataset.add_column(name="is_flipped", column=np.zeros((len(new_dataset)), dtype=np.uint8))
return new_dataset
def generate_flipped_data(example, p=0.5):
"""
A Dataset mapping functions that transforms some of the image up-side-down.
If the probability value (p) is 0.5 approximately half the images will be flipped upside-down
Args:
example: An example from the dataset containing a Python dictionary with "img" and "is_flipped" key-value pair
p: probability of flipping the image up-side-down, Default 0.5
Returns:
example: A Dataset object
"""
# example['img'] = example['img']
if rng.random() > p: # the flip the image and set is_flipped column to 1
example['img'] = example['img'].transpose(
1) # ImageOps.flip(example['img']) #example['img'].transpose(Image.FLIP_TOP_BOTTOM)
example['is_flipped'] = 1
return example
my_test = preprocess_data(test_dataset)
my_test = my_test.map(generate_flipped_data)
```
The output now show the function was applied successfully:
``` bash
/home/rafay/anaconda3/envs/pytorch_new/bin/python /home/rafay/Documents/you_only_live_once/upside_down_detector/create_dataset.py
Downloading builder script: 5.61kB [00:00, 3.16MB/s]
Downloading metadata: 4.21kB [00:00, 2.56MB/s]
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
Reusing dataset cifar100 (/home/rafay/.cache/huggingface/datasets/cifar100/cifar100/1.0.0/f365c8b725c23e8f0f8d725c3641234d9331cd2f62919d1381d1baa5b3ba3142)
100%|██████████| 10000/10000 [00:01<00:00, 5149.15ex/s]
```
| [
-0.07820019870996475,
-0.01851590722799301,
-0.17894123494625092,
0.1256355494260788,
0.14424103498458862,
-0.10112117975950241,
0.061808109283447266,
0.2104717344045639,
-0.1569964438676834,
0.13136889040470123,
0.1810036599636078,
0.5930033326148987,
0.1992652267217636,
-0.14406491816043854,
-0.18413980305194855,
-0.11332951486110687,
0.1441313475370407,
0.3657735586166382,
-0.1194041520357132,
-0.15760481357574463,
-0.5352743864059448,
-0.005801912397146225,
-0.314211368560791,
-0.049811914563179016,
0.06573572754859924,
-0.11298533529043198,
-0.23476997017860413,
0.07208240032196045,
-0.1543050855398178,
0.062445081770420074,
-0.30688267946243286,
0.08322747051715851,
-0.3537132740020752,
0.34591424465179443,
-0.00010713133087847382,
0.055365949869155884,
0.4224435091018677,
-0.06316191703081131,
-0.03151477873325348,
0.2252107560634613,
-0.6300362944602966,
-0.4457522928714752,
-0.42889460921287537,
-0.31346163153648376,
0.16423794627189636,
-0.40856602787971497,
0.1668144315481186,
-0.088502898812294,
0.6687864065170288,
-0.09084919840097427,
0.275208443403244,
0.01367618516087532,
0.15292778611183167,
0.3442031145095825,
0.28106749057769775,
0.4071407914161682,
-0.04062206298112869,
-0.10186058282852173,
0.08197001367807388,
-0.008007831871509552,
-0.10818260163068771,
0.4912084937095642,
-0.035510286688804626,
-0.20048435032367706,
-0.03673706203699112,
-0.12343286722898483,
0.0809967964887619,
-0.39572611451148987,
0.14090031385421753,
-0.13028967380523682,
-0.28519195318222046,
-0.09223542362451553,
-0.3847450613975525,
-0.2415291666984558,
-0.037279438227415085,
-0.04497896879911423,
0.145216166973114,
-0.11532936990261078,
-0.09046460688114166,
0.14343991875648499,
-0.26853957772254944,
-0.051259953528642654,
0.07364396750926971,
0.06616118550300598,
-0.26796069741249084,
-0.03860601782798767,
0.048481009900569916,
0.07747842371463776,
0.1353183388710022,
-0.11176787316799164,
0.24557028710842133,
-0.009591717272996902,
0.11343955993652344,
-0.01772194355726242,
-0.017702657729387283,
0.0329500287771225,
-0.12709984183311462,
0.0893474891781807,
-0.09077738225460052,
-0.3664816617965698,
0.033449072390794754,
0.12285706400871277,
-0.057991329580545425,
0.3785974085330963,
0.11804379522800446,
-0.01961740292608738,
-0.24831745028495789,
0.43574073910713196,
0.006367307156324387,
-0.2644573748111725,
-0.22431372106075287,
-0.06767097115516663,
0.1355741322040558,
-0.22111615538597107,
0.017888251692056656,
0.11757068336009979,
0.05514959245920181,
0.06485570967197418,
-0.1466042846441269,
-0.05621323734521866,
-0.3176833689212799,
0.1789223700761795,
-0.026546988636255264,
0.05819788575172424,
0.28773733973503113,
0.5349922776222229,
0.5349515080451965,
-0.04189712554216385,
-0.19194230437278748,
0.0008373865857720375,
-0.2414671778678894,
-0.0011814143508672714,
-0.298030823469162,
-0.017719415947794914,
-0.09117837250232697,
0.33796167373657227,
-0.1961079090833664,
0.052053675055503845,
0.0955892950296402,
-0.0412604846060276,
-0.04339054226875305,
-0.23423956334590912,
0.5421868562698364,
0.3158928453922272,
-0.2065705955028534,
-0.08706545829772949,
-0.23451204597949982,
0.3308930993080139,
-0.026341188699007034,
0.3642314374446869,
-0.3273594081401825,
0.39374810457229614,
0.13805736601352692,
0.2052699476480484,
0.054415322840213776,
0.07984642684459686,
-0.10882718116044998,
0.05713813379406929,
0.04866265878081322,
-0.3628372848033905,
0.17558152973651886,
-0.39170026779174805,
-0.06361129134893417,
-0.13331186771392822,
0.13886792957782745,
0.1072770208120346,
-0.11265136301517487,
0.17667749524116516,
-0.15533380210399628,
-0.1869291514158249,
0.32837438583374023,
0.2327817976474762,
0.11166311055421829,
-0.14803487062454224,
-0.049609456211328506,
0.2933461666107178,
0.06718885153532028,
-0.2048177719116211,
-0.6263275742530823,
0.5222502946853638,
0.054587073624134064,
0.06867151707410812,
-0.23236703872680664,
0.1041705310344696,
0.2620423436164856,
-0.22009600698947906,
-0.3558202087879181,
0.5110676884651184,
-0.07678792625665665,
0.26509928703308105,
-0.2251552790403366,
-0.03166518360376358,
0.10718931257724762,
0.06122922524809837,
0.07327881455421448,
0.10768793523311615,
0.12038576602935791,
0.23556570708751678,
0.06051156297326088,
0.07122144848108292,
0.17326167225837708,
0.023469245061278343,
-0.0020106248557567596,
-0.30040067434310913,
0.31433966755867004,
0.3589801788330078,
-0.00853322446346283,
-0.04679563641548157,
-0.2672874331474304,
-0.17226773500442505,
-0.42336952686309814,
0.0468318909406662,
-0.0033970680087804794,
0.15933668613433838,
-0.17418450117111206,
0.07332001626491547,
0.2954804301261902,
0.04572915658354759,
-0.10590435564517975,
0.013638883829116821,
0.05265761539340019,
0.07396724075078964,
-0.029670603573322296,
-0.04242852330207825,
0.08658134937286377,
0.10387103259563446,
-0.101960189640522,
-0.06877585500478745,
-0.09813006222248077,
0.200726717710495,
0.0029523298144340515,
-0.09817443042993546,
-0.0816463753581047,
0.3445185720920563,
0.07167927920818329,
0.41491442918777466,
-0.13351985812187195,
-0.32351619005203247,
0.4556369185447693,
-0.6278443336486816,
-0.0200664009898901,
0.35933125019073486,
0.20164258778095245,
0.00802118331193924,
0.053754910826683044,
-0.08523423969745636,
-0.0659770667552948,
0.21487626433372498,
-0.05445028841495514,
0.007481308653950691,
0.03822232782840729,
-0.28457316756248474,
-0.20284131169319153,
-0.19607102870941162,
-0.08710664510726929,
0.039733223617076874,
0.2701149582862854,
0.05967448651790619,
0.009203135967254639,
0.0019185617566108704,
0.38513699173927307,
-0.09245865046977997,
0.021818336099386215,
0.12865477800369263,
-0.02389092743396759,
0.08343877643346786,
0.22430117428302765,
0.3510550260543823,
0.025998935103416443,
0.052475593984127045,
0.04518668353557587,
0.1602245569229126,
-0.25375330448150635,
-0.04928131401538849,
0.18854543566703796,
-0.007576882839202881,
0.24944764375686646,
0.19654420018196106,
0.24447943270206451,
0.17984232306480408,
-0.14928188920021057,
-0.3297256827354431,
0.12481283396482468,
0.030711108818650246,
0.13565440475940704,
0.13119877874851227,
-0.5447258949279785,
-0.439544677734375,
0.008114289492368698,
0.2811351418495178,
0.1076042503118515,
-0.4283285439014435,
-0.08136903494596481,
-0.16706231236457825,
-0.35645297169685364,
0.24130503833293915,
0.0806475430727005,
0.03225259482860565,
0.19502612948417664,
-0.07024750858545303,
-0.5630292892456055,
-0.011106256395578384,
-0.09156712144613266,
0.10359467566013336,
0.23061899840831757,
-0.19282583892345428,
0.21481576561927795,
-0.35354554653167725,
0.06765295565128326,
-0.16594600677490234,
-0.3815086781978607,
0.466077595949173,
-0.30761396884918213,
0.011701886542141438,
0.022980816662311554,
0.10777359455823898,
-0.07444582134485245,
-0.1293882578611374,
0.16709621250629425,
-0.37468764185905457,
-0.3758946657180786,
0.08697780966758728,
-0.060259200632572174,
-0.14069104194641113,
-0.5329573750495911,
0.0757438987493515,
0.04477957636117935,
-0.25642919540405273,
0.246986985206604,
-0.2867724895477295,
0.09511350095272064,
0.11902254819869995,
0.46511176228523254,
0.004918385297060013,
0.008526982739567757,
-0.10615897923707962,
-0.19229745864868164,
-0.005920391529798508,
0.20554892718791962,
-0.020320823416113853,
-0.2856326103210449,
-0.26583755016326904,
0.06334293633699417,
0.06393147259950638,
0.6518371105194092,
-0.40917909145355225,
-0.20224156975746155,
-0.13289706408977509,
-0.10625287890434265,
-0.13862042129039764,
0.09096699208021164,
-0.1655339002609253,
0.24220654368400574,
-0.1745518147945404,
-0.25755414366722107,
-0.08378581702709198,
-0.12109295278787613,
0.19774624705314636,
0.3818243741989136,
0.16742679476737976,
0.10231781750917435,
0.25572460889816284,
0.12909990549087524,
-0.07393316179513931,
-0.16448447108268738,
0.18861497938632965,
0.12504832446575165,
0.3493858277797699,
0.03084373101592064,
-0.03468146547675133,
0.09931077808141708,
0.0340789332985878,
-0.18420536816120148,
-0.0901748538017273,
-0.23020383715629578,
-0.5728799700737,
-0.10256980359554291,
0.1402110904455185,
-0.6265274882316589,
-0.2831133008003235,
0.17494335770606995,
0.11003229022026062,
0.22815221548080444,
-0.1296500861644745,
0.2306792140007019,
0.07030154764652252,
0.036542583256959915,
0.19890719652175903,
-0.11136758327484131,
0.48596760630607605,
-0.12753541767597198,
0.005634717643260956,
-0.45489898324012756,
-0.25865688920021057,
0.23084113001823425,
0.15365879237651825,
0.4835776388645172,
-0.1698763072490692,
-0.12673050165176392,
0.19874027371406555,
-0.16391105949878693,
0.4833831787109375,
-0.32907378673553467,
-0.03170354664325714,
0.14161108434200287,
-0.09231434017419815,
-0.25118207931518555,
0.20883052051067352,
-0.340800017118454,
0.06420418620109558,
0.1355462670326233,
0.5006675720214844,
-0.1897374838590622,
-0.014036729000508785,
-0.025516703724861145,
0.09645853191614151,
0.030065935105085373,
-0.27407482266426086,
-0.06980245560407639,
-0.37688547372817993,
-0.2966528534889221,
-0.10065775364637375,
0.17695917189121246,
-0.14179465174674988,
-0.012718388810753822,
-0.027171364054083824,
-0.2040470987558365,
-0.0622234009206295,
-0.02548469603061676,
0.37743130326271057,
0.187845379114151,
-0.10661432892084122,
0.053781334310770035,
0.17374664545059204,
0.04044549539685249,
0.13606514036655426,
0.3148151934146881,
-0.11113597452640533,
-0.142882838845253,
0.289751261472702,
-0.17516207695007324,
0.054023560136556625,
0.3930715024471283,
-0.02379276603460312,
-0.18365132808685303,
0.0726824551820755,
0.0747590884566307,
-0.38821932673454285,
0.08594794571399689,
0.19918276369571686,
-0.12297707051038742,
-0.15069442987442017,
-0.20112913846969604,
0.41447165608406067,
0.11967743933200836,
-0.07796589285135269,
0.10719341039657593,
-0.1524268388748169,
-0.22741451859474182,
0.7363568544387817,
0.5366306900978088,
1.0528658628463745,
-0.14537779986858368,
-0.10999636352062225,
0.00739656388759613,
-0.02558707632124424,
0.30074402689933777,
-0.006324581801891327,
0.2634483575820923,
-0.0586618110537529,
-0.06639909744262695,
-0.046316009014844894,
0.05251014605164528,
-0.0332457572221756,
0.16117677092552185,
-0.3778301179409027,
-0.04805514216423035,
0.0713423490524292,
-0.22067663073539734,
0.19142532348632812,
0.028483346104621887,
-0.1293792426586151,
-0.22676992416381836,
0.05592754855751991,
0.24121323227882385,
0.1033591479063034,
0.017582165077328682,
-0.13064543902873993,
-0.22215494513511658,
-0.27883845567703247,
0.036353252828121185,
-0.12735804915428162,
0.2345181405544281,
-0.39257195591926575,
0.05919467657804489,
-0.027900997549295425,
-0.25532978773117065,
-0.19002123177051544,
0.16652077436447144,
-0.06960904598236084,
0.14559224247932434,
0.08464306592941284,
0.18542875349521637,
0.28129467368125916,
0.26552829146385193,
0.06265317648649216,
-0.04596959054470062,
0.13619838654994965,
-0.055402711033821106,
0.1384361982345581,
-0.2733631134033203,
-0.14129163324832916,
-0.23648692667484283,
-0.24220755696296692,
0.2378615289926529,
-0.17570798099040985,
0.30535805225372314,
0.08556757867336273,
0.15331578254699707,
-0.1496027112007141,
0.0365385077893734,
0.19841749966144562,
-0.05604511499404907,
0.16471558809280396,
0.5823460817337036,
0.011935580521821976,
-0.36318984627723694,
0.023210037499666214,
0.01094045490026474,
-0.13669878244400024,
0.02243872731924057,
0.24503567814826965,
-0.1991729587316513,
-0.100041963160038,
-0.3014093339443207,
-0.004642851650714874,
-0.2188926637172699,
-0.2012273669242859,
0.08716856688261032,
-0.4122448265552521,
-0.17292781174182892,
0.01725057326257229,
-0.1694193184375763,
-0.0033733882009983063,
-0.034104444086551666,
-0.13580657541751862,
-0.2910584807395935,
-0.007632538676261902,
0.2073463350534439,
-0.010669492185115814,
0.14308185875415802,
-0.18182936310768127,
0.4052780866622925,
0.004317251965403557,
-0.017642268911004066,
-0.3583824336528778,
0.2725798785686493,
-0.1702919602394104,
0.2646890878677368,
-0.06536974757909775,
0.11327371001243591,
-0.0877961665391922,
-0.024228908121585846,
0.23619389533996582,
0.5670619010925293,
-0.07267473638057709,
-0.1345587968826294,
-0.21749229729175568,
0.0920189619064331,
0.14926864206790924,
-0.04588809609413147,
-0.07827255129814148,
-0.12632900476455688,
-0.07122425734996796,
-0.10589583963155746,
-0.15498216450214386,
-0.07853488624095917,
-0.23898287117481232,
-0.022642124444246292,
-0.16576984524726868,
0.1637076437473297,
0.2642870545387268,
0.059673093259334564,
0.042364176362752914,
0.39984792470932007,
-0.009918914176523685,
0.27508413791656494,
0.25056129693984985,
0.02975231409072876,
0.08909434080123901,
-0.04345723241567612,
-0.11429356038570404,
0.012829259037971497,
0.5798621773719788,
0.24480970203876495,
0.34210556745529175,
0.3669419586658478,
0.26433640718460083,
0.26258584856987,
-0.3287251889705658,
-0.15605857968330383,
0.023617148399353027,
0.3163711428642273,
0.02741982415318489,
-0.012094534933567047,
0.3675316274166107,
0.11782550066709518,
-0.04608017951250076,
0.2006303071975708,
0.17156216502189636,
0.0014794841408729553,
-0.017505235970020294,
-0.014229494147002697,
0.2289813607931137,
-0.27964431047439575,
-0.13026922941207886,
0.6692922711372375,
-0.2877002954483032,
0.3973180651664734,
0.12953563034534454,
-0.030351459980010986,
0.10270337015390396,
0.4852222204208374,
0.05964697152376175,
0.4428480863571167,
0.0725521445274353,
0.4412585496902466,
0.17851057648658752,
-0.2371697872877121,
0.1832151561975479,
0.42759451270103455,
-0.003432832658290863,
0.5709404945373535,
-0.04817427694797516,
0.12231257557868958,
-0.3008193373680115,
-0.07921895384788513,
0.13598719239234924,
0.3369152545928955,
-0.15723612904548645,
0.05765065923333168,
-0.12493997067213058,
-0.142944797873497,
-0.35018303990364075,
-0.15212348103523254,
0.13134829699993134,
-0.05766142159700394,
0.7209774255752563,
0.22790589928627014,
0.064401775598526,
0.16356083750724792,
-0.5615989565849304,
-0.12319078296422958,
0.3408600389957428,
-0.3764212429523468,
0.06422286480665207,
0.043550994247198105,
-0.004665441811084747,
0.37319085001945496,
0.3299596309661865,
0.24109962582588196,
0.3669174611568451,
-0.3390229344367981,
-0.08290142565965652,
-0.09078964591026306,
-0.09020702540874481,
-0.31156229972839355,
0.2871500551700592,
0.08958805352449417,
0.14183451235294342,
0.16081300377845764,
0.18327510356903076,
-0.24699552357196808,
-0.4805014729499817,
0.15431994199752808,
0.33666831254959106,
0.15087434649467468,
0.22844639420509338,
-0.3070639669895172,
0.06958722323179245,
0.08200621604919434,
-0.1514056921005249,
-0.3221510648727417,
-0.15817981958389282,
0.0773068517446518,
-0.4117695093154907,
0.15107020735740662,
0.23713386058807373,
0.10252855718135834,
-0.04287004843354225,
0.3688177764415741,
0.5211763381958008,
0.014577709138393402,
-0.09093063324689865,
-0.26376140117645264,
-0.4602002203464508,
0.25096699595451355,
0.03189511224627495,
-0.06259338557720184,
-0.07890506088733673,
0.11871424317359924,
0.0024028941988945007,
0.2849125862121582,
0.32762807607650757,
-0.42231059074401855,
0.11467570811510086,
0.1220242828130722,
-0.20314009487628937,
-0.034377533942461014,
0.287994921207428,
-0.15091580152511597,
0.005263574421405792,
-0.353952020406723,
0.3588152229785919,
0.03324251249432564,
0.25068631768226624,
-0.08647901564836502,
-0.1442931443452835,
-0.3931705057621002,
-0.25028562545776367,
0.6093149185180664,
0.5369583964347839,
0.060623496770858765,
-0.3411693871021271,
-0.4398941993713379,
0.023015759885311127,
-0.17350289225578308,
-0.09803186357021332,
0.02380485087633133,
-0.03619545325636864,
0.3659871816635132,
0.035410284996032715,
-0.11014699935913086,
-0.07858846336603165,
-0.15527410805225372,
0.00843244418501854,
0.18065783381462097,
-0.5817323923110962,
0.28548386693000793,
-0.2028179168701172,
-0.17380094528198242,
-0.12378222495317459,
0.31374385952949524,
0.17200027406215668,
0.037078119814395905,
-0.28956520557403564,
-0.5761380791664124,
0.21029122173786163,
-0.3342151343822479,
-0.32962456345558167,
0.2095518857240677,
-0.2989693284034729,
-0.4517778754234314,
0.35249873995780945,
-0.4164695143699646,
-0.13581207394599915,
-0.01810271292924881,
-0.19028538465499878,
-0.2212468385696411,
0.020730124786496162,
0.08768634498119354,
-0.12199723720550537,
0.023265276104211807,
0.4771605134010315,
0.12391375005245209,
-0.2152632623910904,
0.2992173433303833,
0.09619468450546265
] |
https://github.com/huggingface/datasets/issues/4123 | Building C4 takes forever | Hi @StellaAthena, thanks for reporting.
Please note, that our `datasets` library performs several operations in order to load a dataset, among them:
- it downloads all the required files: for C4 "en", 378.69 GB of JSON GZIPped files
- it parses their content to generate the dataset
- it caches the dataset in an Arrow file: for C4 "en", this file size is 1.87 TB
- it memory-maps the Arrow file
If it suits your use case, you might load this dataset in streaming mode:
- no Arrow file is generated
- you can iterate over elements immediately (no need to wait to download all the entire files)
```python
In [45]: from datasets import load_dataset
...: ds = load_dataset("c4", "en", split="train", streaming=True)
...: for item in ds:
...: print(item)
...: break
...:
{'text': 'Beginners BBQ Class Taking Place in Missoula!\nDo you want to get better at making delicious BBQ? You will have the opportunity, put this on your calendar now. Thursday, September 22nd join World Class BBQ Champion, Tony Balay from Lonestar Smoke Rangers. He will be teaching a beginner level class for everyone who wants to get better with their culinary skills.\nHe will teach you everything you need to know to compete in a KCBS BBQ competition, including techniques, recipes, timelines, meat selection and trimming, plus smoker and fire information.\nThe cost to be in the class is $35 per person, and for spectators it is free. Included in the cost will be either a t-shirt or apron and you will be tasting samples of each meat that is prepared.', 'timestamp': '2019-04-25T12:57:54Z', 'url': 'https://klyq.com/beginners-bbq-class-taking-place-in-missoula/'}
```
I hope this is useful for your use case. | ## Describe the bug
C4-en is a 300 GB dataset. However, when I try to download it through the hub it takes over _six hours_ to generate the train/test split from the downloaded files. This is an absurd amount of time and an unnecessary waste of resources.
## Steps to reproduce the bug
```python
c4 = datasets.load("c4", "en")
```
## Expected results
I would like to be able to download pre-split data.
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.13.0-35-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 274 | Building C4 takes forever
## Describe the bug
C4-en is a 300 GB dataset. However, when I try to download it through the hub it takes over _six hours_ to generate the train/test split from the downloaded files. This is an absurd amount of time and an unnecessary waste of resources.
## Steps to reproduce the bug
```python
c4 = datasets.load("c4", "en")
```
## Expected results
I would like to be able to download pre-split data.
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.13.0-35-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @StellaAthena, thanks for reporting.
Please note, that our `datasets` library performs several operations in order to load a dataset, among them:
- it downloads all the required files: for C4 "en", 378.69 GB of JSON GZIPped files
- it parses their content to generate the dataset
- it caches the dataset in an Arrow file: for C4 "en", this file size is 1.87 TB
- it memory-maps the Arrow file
If it suits your use case, you might load this dataset in streaming mode:
- no Arrow file is generated
- you can iterate over elements immediately (no need to wait to download all the entire files)
```python
In [45]: from datasets import load_dataset
...: ds = load_dataset("c4", "en", split="train", streaming=True)
...: for item in ds:
...: print(item)
...: break
...:
{'text': 'Beginners BBQ Class Taking Place in Missoula!\nDo you want to get better at making delicious BBQ? You will have the opportunity, put this on your calendar now. Thursday, September 22nd join World Class BBQ Champion, Tony Balay from Lonestar Smoke Rangers. He will be teaching a beginner level class for everyone who wants to get better with their culinary skills.\nHe will teach you everything you need to know to compete in a KCBS BBQ competition, including techniques, recipes, timelines, meat selection and trimming, plus smoker and fire information.\nThe cost to be in the class is $35 per person, and for spectators it is free. Included in the cost will be either a t-shirt or apron and you will be tasting samples of each meat that is prepared.', 'timestamp': '2019-04-25T12:57:54Z', 'url': 'https://klyq.com/beginners-bbq-class-taking-place-in-missoula/'}
```
I hope this is useful for your use case. | [
-0.4080926477909088,
0.08479021489620209,
-0.08239777386188507,
0.5022707581520081,
0.21780376136302948,
0.17812508344650269,
0.2599090039730072,
0.3984816372394562,
-0.0510367676615715,
0.1110166609287262,
-0.08437579870223999,
0.13972534239292145,
-0.06366287171840668,
0.3419266939163208,
0.08222444355487823,
-0.013742223381996155,
0.09665133059024811,
0.16116581857204437,
-0.03758973628282547,
0.044248148798942566,
-0.0041429512202739716,
-0.03530389070510864,
-0.10103827714920044,
-0.16853825747966766,
-0.6956585049629211,
-0.17275626957416534,
-0.20515181124210358,
0.020196806639432907,
-0.24160702526569366,
-0.37556836009025574,
0.4559158682823181,
0.14632360637187958,
-0.04901077225804329,
0.43528488278388977,
-0.00012048311327816918,
-0.07313288003206253,
0.1598474383354187,
0.025799846276640892,
-0.32358214259147644,
0.1619693785905838,
-0.06718015670776367,
-0.04969180375337601,
0.04868664592504501,
-0.2942730188369751,
-0.17425507307052612,
0.004759823437780142,
-0.06377877295017242,
-0.21010807156562805,
0.2842908203601837,
0.24086445569992065,
0.07896239310503006,
-0.042265817523002625,
-0.2454124242067337,
-0.18269336223602295,
-0.038523539900779724,
-0.16952650249004364,
-0.23202787339687347,
0.23563732206821442,
0.08749977499246597,
0.1396515965461731,
-0.05773428827524185,
0.17592209577560425,
0.13340656459331512,
0.02919776551425457,
0.16125226020812988,
0.01171321514993906,
-0.24650728702545166,
-0.34912994503974915,
0.10810340195894241,
0.32939404249191284,
0.4118945896625519,
-0.2218891978263855,
-0.29485243558883667,
-0.25599345564842224,
0.2760885953903198,
-0.40606704354286194,
0.30410441756248474,
0.3502054512500763,
-0.1753774881362915,
0.1400928646326065,
-0.34009554982185364,
-0.1401890516281128,
-0.11855276674032211,
0.05091748386621475,
0.08799709379673004,
-0.010094679892063141,
0.11780931800603867,
0.05310910940170288,
0.19674105942249298,
0.3354874849319458,
0.3211541175842285,
-0.3541721999645233,
0.00820840522646904,
0.091361403465271,
-0.30644741654396057,
-0.1209358274936676,
-0.21736502647399902,
0.3977937698364258,
-0.10958923399448395,
0.18938331305980682,
-0.39132899045944214,
-0.07530057430267334,
0.02816513180732727,
-0.2754323482513428,
0.04562416672706604,
0.015594186261296272,
-0.014953620731830597,
-0.03420014679431915,
0.0750451385974884,
0.045902375131845474,
-0.2965056300163269,
-0.10480398684740067,
-0.2656407356262207,
-0.20012392103672028,
-0.19142457842826843,
0.0032235141843557358,
-0.08172076940536499,
-0.018543537706136703,
-0.23714371025562286,
-0.03679731488227844,
-0.31558364629745483,
-0.003809605725109577,
0.16171851754188538,
0.3967382311820984,
-0.5134197473526001,
0.23656198382377625,
-0.16947948932647705,
0.11672209203243256,
-0.3123386800289154,
-0.14143316447734833,
-0.23013387620449066,
0.11467812955379486,
-0.25428807735443115,
0.17213845252990723,
0.1888115555047989,
-0.19981199502944946,
0.030845126137137413,
0.09150362014770508,
0.32130688428878784,
-0.24689048528671265,
-0.0754774957895279,
-0.21981149911880493,
-0.19341745972633362,
0.11901748180389404,
-0.17811909317970276,
0.19202446937561035,
-0.11999361217021942,
-0.05423816666007042,
-0.21735140681266785,
-0.09625653177499771,
-0.15408864617347717,
-0.42021554708480835,
0.000007165595889091492,
0.10373392701148987,
-0.07537766546010971,
0.08810949325561523,
-0.24221813678741455,
-0.17199988663196564,
0.06542166322469711,
0.16446834802627563,
0.02465236932039261,
0.04369176924228668,
0.1574060320854187,
-0.15958236157894135,
0.265351265668869,
0.35230401158332825,
-0.20014870166778564,
0.1237434595823288,
-0.3109886944293976,
0.25435560941696167,
0.2685869336128235,
0.4001562297344208,
-0.16733266413211823,
0.520291268825531,
-0.08722670376300812,
0.04649408161640167,
0.13960862159729004,
-0.1297314167022705,
-0.6340000033378601,
0.37269288301467896,
-0.15419581532478333,
-0.010473774746060371,
0.08281514793634415,
0.24900390207767487,
0.04101523011922836,
-0.007939678616821766,
0.16199561953544617,
0.5624300241470337,
-0.1280132532119751,
0.03172033280134201,
-0.26717668771743774,
-0.499543696641922,
0.17709890007972717,
0.25754156708717346,
0.21012826263904572,
-0.28486841917037964,
-0.00514589250087738,
0.24842150509357452,
0.3106386959552765,
-0.1677589863538742,
0.0570249930024147,
-0.05213642865419388,
0.22179269790649414,
0.03038458153605461,
-0.15472452342510223,
-0.09146611392498016,
-0.49543511867523193,
0.32805168628692627,
0.30521848797798157,
-0.03185952454805374,
-0.012814633548259735,
-0.26085907220840454,
-0.10095467418432236,
0.06574593484401703,
-0.15817700326442719,
-0.12767153978347778,
-0.04061443358659744,
-0.23425373435020447,
0.23551762104034424,
-0.014758775010704994,
0.04543570056557655,
0.6882336139678955,
-0.30383190512657166,
0.2064286768436432,
-0.044772058725357056,
0.3838668763637543,
-0.10067736357450485,
0.013527224771678448,
-0.06726673990488052,
0.15957248210906982,
0.20943373441696167,
-0.14017167687416077,
-0.09773217886686325,
0.34387701749801636,
0.2198370397090912,
0.40879154205322266,
0.0751928985118866,
0.020209327340126038,
0.4093232750892639,
-0.19033153355121613,
0.17386916279792786,
0.21378089487552643,
0.08240178972482681,
-0.1523856520652771,
-0.13823270797729492,
0.35726314783096313,
-0.02916286513209343,
0.16709649562835693,
0.10203209519386292,
-0.0012391582131385803,
0.006452741101384163,
0.0005245953798294067,
0.09687763452529907,
0.05753982067108154,
0.11308476328849792,
-0.3822963535785675,
0.5115814208984375,
0.17871417105197906,
-0.16409102082252502,
0.2713450491428375,
0.7128188014030457,
-0.0009051971137523651,
-0.13367515802383423,
-0.03520083427429199,
-0.06854254752397537,
-0.28368300199508667,
0.3496513068675995,
0.12164527177810669,
0.24244128167629242,
0.07279562205076218,
0.0764063224196434,
0.05777809023857117,
-0.1310313493013382,
-0.2060120850801468,
0.3526395261287689,
-0.03406694531440735,
0.09598865360021591,
-0.05317963659763336,
-0.05689530819654465,
0.04589942470192909,
-0.19531220197677612,
-0.15022622048854828,
-0.09397181868553162,
0.029501162469387054,
-0.037847477942705154,
0.16737331449985504,
-0.19601775705814362,
0.2701546549797058,
-0.01841576024889946,
-0.37857016921043396,
0.08312997221946716,
-0.2654896378517151,
0.06322136521339417,
-0.04744761809706688,
-0.1367097944021225,
0.06017983704805374,
-0.2070396989583969,
0.048226118087768555,
0.013459114357829094,
-0.29459890723228455,
-0.15529084205627441,
-0.09185409545898438,
-0.15081357955932617,
0.04646698758006096,
0.27805644273757935,
0.24539896845817566,
0.2534821927547455,
-0.2839135229587555,
0.08506032079458237,
-0.095746710896492,
-0.26349133253097534,
0.102390818297863,
-0.14011920988559723,
0.25699156522750854,
-0.018359720706939697,
0.13226856291294098,
-0.15099871158599854,
-0.3780171573162079,
-0.03879590705037117,
-0.25178220868110657,
0.09684401005506516,
0.020258676260709763,
-0.1360817849636078,
-0.07224361598491669,
-0.01202845387160778,
-0.6534981727600098,
-0.19895361363887787,
-0.23803099989891052,
0.3429604768753052,
-0.0173305943608284,
0.08368179202079773,
0.04642798751592636,
0.1981353908777237,
0.04395106062293053,
0.24163803458213806,
-0.26952508091926575,
-0.1982462853193283,
-0.28427350521087646,
0.36740338802337646,
-0.19265364110469818,
-0.12088936567306519,
-0.028305111452937126,
-0.24735073745250702,
0.2467578798532486,
0.06433317810297012,
-0.5766280889511108,
0.49492043256759644,
-0.40011289715766907,
0.4919337034225464,
0.05832666903734207,
-0.046047791838645935,
0.27672141790390015,
-0.06722576171159744,
0.07477324455976486,
-0.011254031211137772,
0.271719753742218,
-0.020466908812522888,
0.1724347472190857,
0.16341549158096313,
-0.3708271086215973,
0.04000905528664589,
0.021311767399311066,
0.6878549456596375,
0.257705420255661,
-0.09320932626724243,
0.07326656579971313,
0.10004506260156631,
0.40659525990486145,
-0.32273411750793457,
-0.23430374264717102,
0.22446994483470917,
-0.09633685648441315,
-0.1765947788953781,
0.40753287076950073,
0.02011128142476082,
-0.20438849925994873,
-0.07120253145694733,
0.0928352028131485,
-0.2244739532470703,
-0.41380181908607483,
0.08926482498645782,
-0.13533666729927063,
-0.042539082467556,
0.12894345819950104,
0.36094191670417786,
-0.046195074915885925,
-0.3094188868999481,
0.04928072169423103,
-0.032657772302627563,
0.14511805772781372,
-0.13681946694850922,
-0.20096102356910706,
-0.2966456115245819,
-0.49551498889923096,
0.1233748346567154,
0.19649359583854675,
-0.09895021468400955,
0.1651124358177185,
-0.024054672569036484,
0.23241069912910461,
-0.23393014073371887,
0.5471720099449158,
-0.19417299330234528,
-0.07258552312850952,
-0.010288198478519917,
0.21736425161361694,
-0.238401859998703,
0.06976661086082458,
0.00970466062426567,
0.20575454831123352,
0.24718740582466125,
0.22952096164226532,
-0.3278108239173889,
-0.24843727052211761,
0.2269037663936615,
0.4619954824447632,
-0.05728280916810036,
-0.06043629348278046,
0.028444159775972366,
-0.23718079924583435,
-0.18996559083461761,
0.3760005533695221,
0.04320984333753586,
0.33273181319236755,
-0.21641483902931213,
-0.268764466047287,
-0.06709855049848557,
0.19729381799697876,
0.2897058427333832,
0.1477159559726715,
0.32601624727249146,
-0.1743869185447693,
0.5625703930854797,
-0.03260426968336105,
-0.270725280046463,
0.4045774042606354,
0.4718947112560272,
-0.06825166940689087,
0.16592341661453247,
-0.109543077647686,
-0.01931660994887352,
0.3081038296222687,
0.7012715339660645,
-0.09544691443443298,
-0.13543814420700073,
-0.20052659511566162,
0.509627103805542,
-0.31183865666389465,
0.2570311725139618,
0.28899964690208435,
-0.12008752673864365,
-0.6065787672996521,
-0.6031283736228943,
0.44077181816101074,
-0.1582144945859909,
0.018495015799999237,
0.44219884276390076,
0.03621518239378929,
-0.1360212117433548,
0.21294821798801422,
0.13692866265773773,
1.2288967370986938,
0.025020860135555267,
0.2855350077152252,
0.19477760791778564,
-0.02085220441222191,
0.22730675339698792,
-0.7948806285858154,
0.11096002906560898,
-0.23727786540985107,
-0.14345063269138336,
0.04743412882089615,
-0.0040417201817035675,
0.05347631871700287,
0.5086614489555359,
-0.15462258458137512,
0.1940113753080368,
-0.18908093869686127,
0.38621801137924194,
-0.13366666436195374,
0.3260892927646637,
-0.2610321044921875,
-0.30982592701911926,
-0.20138415694236755,
0.09985993802547455,
0.1344405859708786,
-0.07570819556713104,
-0.10566288232803345,
0.04445976763963699,
-0.2542630732059479,
-0.09378641843795776,
-0.1545855700969696,
0.1321917474269867,
-0.12078046053647995,
0.17112618684768677,
-0.19130416214466095,
-0.17978358268737793,
0.1524568349123001,
0.19201374053955078,
0.025251179933547974,
0.6490538120269775,
-0.12178026139736176,
0.5457155704498291,
-0.1040930524468422,
-0.14107845723628998,
0.13312990963459015,
-0.17801444232463837,
-0.0421069860458374,
-0.010375425219535828,
-0.22088804841041565,
-0.16729632019996643,
-0.09747032076120377,
-0.31641721725463867,
0.21548080444335938,
0.037963252514600754,
-0.11858360469341278,
-0.20126701891422272,
-0.23630385100841522,
0.24907812476158142,
-0.05408187955617905,
-0.25706467032432556,
0.08012662827968597,
0.04042566567659378,
-0.22099639475345612,
0.38007768988609314,
0.0732213631272316,
-0.3921639919281006,
-0.36087217926979065,
0.19182908535003662,
0.21074792742729187,
-0.0010791383683681488,
0.23844225704669952,
0.21411748230457306,
-0.32154059410095215,
-0.38336196541786194,
0.07392758876085281,
0.05073993280529976,
-0.6179644465446472,
0.055814485996961594,
-0.12954096496105194,
-0.09308527410030365,
-0.13137127459049225,
0.07564346492290497,
0.18202099204063416,
-0.012314170598983765,
-0.024064907804131508,
-0.22587598860263824,
-0.1611454039812088,
0.1743650883436203,
0.08118294179439545,
0.24284519255161285,
0.041202180087566376,
0.2617295980453491,
0.05802425742149353,
0.4651874899864197,
-0.22986383736133575,
0.20491763949394226,
-0.3109588623046875,
0.1626196801662445,
-0.27168363332748413,
-0.20450779795646667,
0.41990572214126587,
-0.09752729535102844,
0.07335588335990906,
0.1527906060218811,
-0.2420230209827423,
-0.13411250710487366,
-0.24275381863117218,
0.17605118453502655,
-0.06135323643684387,
0.08594831079244614,
0.20808957517147064,
-0.0006603747606277466,
-0.17849090695381165,
-0.31261497735977173,
0.27269309759140015,
0.21897298097610474,
0.17770615220069885,
-0.23156122863292694,
0.6520605087280273,
0.011808149516582489,
-0.37850213050842285,
0.20461927354335785,
0.024169277399778366,
0.6668000817298889,
-0.07584196329116821,
0.031019041314721107,
0.1688961386680603,
-0.010556407272815704,
0.26333844661712646,
0.07500165700912476,
0.06594585627317429,
0.0710415244102478,
0.3192398250102997,
-0.11722242832183838,
0.04269829019904137,
0.14954495429992676,
0.09871535003185272,
0.5158589482307434,
0.17300860583782196,
-0.03352230787277222,
0.3106954097747803,
0.13576464354991913,
-0.11397650092840195,
-0.07828187197446823,
-0.04978828504681587,
-0.3119507133960724,
0.007527414709329605,
0.24564561247825623,
0.16234908998012543,
0.12524788081645966,
-0.11321583390235901,
0.1266697347164154,
0.18255244195461273,
0.037987012416124344,
0.33107617497444153,
0.5639576315879822,
-0.06318629533052444,
-0.028589490801095963,
0.3464548885822296,
-0.07257869839668274,
0.056432947516441345,
0.5643152594566345,
-0.0924745574593544,
0.009558687917888165,
0.15064413845539093,
0.2346484661102295,
0.11329001188278198,
-0.1363217830657959,
-0.26111462712287903,
0.21444207429885864,
-0.26724880933761597,
-0.0786617323756218,
-0.10033802688121796,
0.1446171998977661,
-0.28610920906066895,
-0.29871004819869995,
-0.4258934557437897,
0.14656028151512146,
-0.034792520105838776,
0.091427743434906,
0.17678764462471008,
-0.1746262013912201,
-0.2931118607521057,
0.24814561009407043,
-0.013931795954704285,
-0.19961483776569366,
0.3603912889957428,
0.3320796489715576,
0.19560205936431885,
0.003214888274669647,
0.09994519501924515,
-0.13240346312522888,
0.1882638931274414,
-0.40982571244239807,
0.24528063833713531,
-0.18237297236919403,
0.0037459880113601685,
-0.24810275435447693,
-0.152570441365242,
0.2277263104915619,
-0.0011608414351940155,
-0.44778576493263245,
0.040992625057697296,
0.3497043251991272,
-0.06604541093111038,
0.10717825591564178,
0.36745890974998474,
0.16102531552314758,
0.22187355160713196,
0.288579523563385,
0.04615379124879837,
-0.22970521450042725,
-0.17848877608776093,
-0.08070103824138641,
0.11442303657531738,
-0.4159483313560486,
0.6111226081848145,
0.05224435031414032,
-0.1672283560037613,
-0.1877956986427307,
-0.01934649795293808,
-0.43118929862976074,
0.051694631576538086,
0.28764480352401733,
-0.5476130843162537,
0.042021021246910095,
-0.2427739053964615,
0.036172252148389816,
-0.10943758487701416,
0.7418892979621887,
0.07978232949972153,
0.42185482382774353,
-0.3817899525165558,
-0.42642277479171753,
-0.36006131768226624,
-0.09188484400510788,
-0.45691996812820435,
0.39662063121795654,
-0.10922470688819885,
0.28409454226493835,
-0.06085551530122757,
0.4658202528953552,
0.24894367158412933,
0.35405653715133667,
0.1417621672153473,
0.3286002278327942,
-0.2811732888221741,
0.24622505903244019,
0.19163405895233154,
-0.028107808902859688,
-0.07676053047180176,
-0.6774560213088989,
0.09256376326084137,
0.09917019307613373,
-0.0813947319984436,
0.10194458812475204,
-0.021838214248418808,
0.4518907964229584,
-0.17961473762989044,
0.590502917766571,
-0.05263858288526535,
0.3252193331718445,
0.03521409630775452,
-0.2794661521911621,
-0.3576136827468872,
-0.2565158009529114,
0.06663807481527328,
0.0006339922547340393,
-0.012269608676433563,
0.37640124559402466,
-0.05413943529129028,
0.039324600249528885,
-0.2243819683790207,
0.3736245036125183,
0.36808323860168457,
0.3457866609096527,
0.05277305841445923,
-0.18645347654819489,
-0.6022323966026306,
0.3496410548686981,
0.3127272129058838,
0.38177621364593506,
-0.1122126430273056,
-0.12551330029964447,
-0.004102341830730438,
-0.5259262323379517,
0.5043431520462036,
-0.39289209246635437,
-0.417440265417099,
-0.18882231414318085,
0.14537085592746735,
0.35007181763648987,
-0.047405220568180084,
0.013503976166248322,
0.18252846598625183,
0.18815886974334717,
-0.05384933203458786,
-0.15118519961833954,
0.2670876979827881,
0.05418319255113602,
-0.09992675483226776,
-0.08509497344493866,
0.5127226114273071,
-0.13173219561576843,
-0.20024965703487396,
-0.06297511607408524,
-0.5314792394638062
] |
https://github.com/huggingface/datasets/issues/4122 | medical_dialog zh has very slow _generate_examples | Hi @nbroad1881, thanks for reporting.
Let me have a look to try to improve its performance. | ## Describe the bug
After downloading the files from Google Drive, `load_dataset("medical_dialog", "zh", data_dir="./")` takes an unreasonable amount of time. Generating the train/test split for 33% of the dataset takes over 4.5 hours.
## Steps to reproduce the bug
The easiest way I've found to download files from Google Drive is to use `gdown` and use Google Colab because the download speeds will be very high due to the fact that they are both in Google Cloud.
```python
file_ids = [
"1AnKxGEuzjeQsDHHqL3NqI_aplq2hVL_E",
"1tt7weAT1SZknzRFyLXOT2fizceUUVRXX",
"1A64VBbsQ_z8wZ2LDox586JIyyO6mIwWc",
"1AKntx-ECnrxjB07B6BlVZcFRS4YPTB-J",
"1xUk8AAua_x27bHUr-vNoAuhEAjTxOvsu",
"1ezKTfe7BgqVN5o-8Vdtr9iAF0IueCSjP",
"1tA7bSOxR1RRNqZst8cShzhuNHnayUf7c",
"1pA3bCFA5nZDhsQutqsJcH3d712giFb0S",
"1pTLFMdN1A3ro-KYghk4w4sMz6aGaMOdU",
"1dUSnG0nUPq9TEQyHd6ZWvaxO0OpxVjXD",
"1UfCH05nuWiIPbDZxQzHHGAHyMh8dmPQH",
]
for i in file_ids:
url = f"https://drive.google.com/uc?id={i}"
!gdown $url
from datasets import load_dataset
ds = load_dataset("medical_dialog", "zh", data_dir="./")
```
## Expected results
Faster load time
## Actual results
`Generating train split: 33%: 625519/1921127 [4:31:03<31:39:20, 11.37 examples/s]`
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
@vrindaprabhu , could you take a look at this since you implemented it? I think the `_generate_examples` function might need to be rewritten | 16 | medical_dialog zh has very slow _generate_examples
## Describe the bug
After downloading the files from Google Drive, `load_dataset("medical_dialog", "zh", data_dir="./")` takes an unreasonable amount of time. Generating the train/test split for 33% of the dataset takes over 4.5 hours.
## Steps to reproduce the bug
The easiest way I've found to download files from Google Drive is to use `gdown` and use Google Colab because the download speeds will be very high due to the fact that they are both in Google Cloud.
```python
file_ids = [
"1AnKxGEuzjeQsDHHqL3NqI_aplq2hVL_E",
"1tt7weAT1SZknzRFyLXOT2fizceUUVRXX",
"1A64VBbsQ_z8wZ2LDox586JIyyO6mIwWc",
"1AKntx-ECnrxjB07B6BlVZcFRS4YPTB-J",
"1xUk8AAua_x27bHUr-vNoAuhEAjTxOvsu",
"1ezKTfe7BgqVN5o-8Vdtr9iAF0IueCSjP",
"1tA7bSOxR1RRNqZst8cShzhuNHnayUf7c",
"1pA3bCFA5nZDhsQutqsJcH3d712giFb0S",
"1pTLFMdN1A3ro-KYghk4w4sMz6aGaMOdU",
"1dUSnG0nUPq9TEQyHd6ZWvaxO0OpxVjXD",
"1UfCH05nuWiIPbDZxQzHHGAHyMh8dmPQH",
]
for i in file_ids:
url = f"https://drive.google.com/uc?id={i}"
!gdown $url
from datasets import load_dataset
ds = load_dataset("medical_dialog", "zh", data_dir="./")
```
## Expected results
Faster load time
## Actual results
`Generating train split: 33%: 625519/1921127 [4:31:03<31:39:20, 11.37 examples/s]`
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
@vrindaprabhu , could you take a look at this since you implemented it? I think the `_generate_examples` function might need to be rewritten
Hi @nbroad1881, thanks for reporting.
Let me have a look to try to improve its performance. | [
-0.348908007144928,
0.15916025638580322,
-0.012125393375754356,
0.14690646529197693,
-0.014464449137449265,
0.18549436330795288,
0.751462996006012,
0.4728642702102661,
0.09013456106185913,
0.18660590052604675,
-0.034846678376197815,
0.04020940139889717,
-0.15930069983005524,
0.2758603096008301,
0.03563208132982254,
-0.32319140434265137,
0.04437842220067978,
0.09771783649921417,
0.1751384288072586,
-0.1978914439678192,
-0.2132176160812378,
0.07218438386917114,
-0.376753032207489,
-0.08938772976398468,
-0.19441303610801697,
-0.19546781480312347,
0.020254885777831078,
0.3633745312690735,
-0.10602281242609024,
-0.08622335642576218,
-0.18612085282802582,
0.14714205265045166,
-0.27690649032592773,
0.2836337387561798,
-0.00011654152331175283,
-0.10821108520030975,
0.1607525646686554,
0.1269361525774002,
-0.5741550922393799,
0.09077054262161255,
0.08188656717538834,
-0.0698484405875206,
-0.2172524333000183,
-0.13887913525104523,
0.0766790583729744,
-0.10259205847978592,
-0.014704985544085503,
-0.14764253795146942,
0.19093464314937592,
0.5321793556213379,
0.06734193116426468,
0.3283179998397827,
-0.5638859272003174,
-0.18364204466342926,
0.5526397228240967,
0.11430570483207703,
-0.14289407432079315,
0.4432606101036072,
0.44255122542381287,
-0.15648557245731354,
-0.08828765898942947,
0.14274540543556213,
0.1275414228439331,
-0.10041913390159607,
-0.11301102489233017,
0.34698042273521423,
0.021824553608894348,
-0.3850153088569641,
0.009748006239533424,
0.5440725684165955,
0.23942220211029053,
-0.06008254736661911,
-0.08965796232223511,
-0.4550670385360718,
0.038200344890356064,
-0.1308390200138092,
0.3160187304019928,
0.36447620391845703,
-0.37960007786750793,
-0.018019050359725952,
-0.3804852068424225,
-0.04814828559756279,
-0.0815284252166748,
0.00654340535402298,
0.15559174120426178,
-0.13572756946086884,
0.1781613528728485,
-0.07855498045682907,
0.3665282428264618,
0.1460161805152893,
0.24395623803138733,
-0.2774345278739929,
0.11395373940467834,
0.11439916491508484,
-0.37397530674934387,
-0.17541152238845825,
-0.11819230765104294,
0.195604145526886,
0.39210179448127747,
0.2261669933795929,
-0.028889138251543045,
0.03651098906993866,
0.1088242456316948,
-0.10759706050157547,
0.03946719318628311,
0.062121521681547165,
-0.22864925861358643,
0.05369003862142563,
0.3338545560836792,
0.19678768515586853,
0.04470337554812431,
0.10994399338960648,
-0.2736656963825226,
-0.4431874752044678,
0.16993016004562378,
0.05503345653414726,
-0.08265021443367004,
-0.03414197266101837,
-0.3182185888290405,
0.04712250083684921,
-0.42706117033958435,
0.12298493087291718,
0.10834494978189468,
0.28965142369270325,
-0.3459022641181946,
-0.04635578393936157,
0.06696583330631256,
0.0745844915509224,
-0.3136119842529297,
-0.19516320526599884,
-0.09684517979621887,
0.3563607633113861,
-0.22930434346199036,
0.34264642000198364,
0.21681858599185944,
0.1722649484872818,
0.04088401049375534,
0.2946353256702423,
0.21949869394302368,
0.009221784770488739,
0.1518092304468155,
-0.1871577948331833,
-0.17755794525146484,
0.07533429563045502,
0.1613275706768036,
0.07400324195623398,
-0.16247929632663727,
-0.011235244572162628,
-0.2248365581035614,
0.23599383234977722,
-0.24657419323921204,
-0.31369492411613464,
-0.09692880511283875,
0.1350831389427185,
-0.18457826972007751,
0.22915472090244293,
-0.2509782612323761,
0.061674024909734726,
-0.03246680647134781,
-0.14414462447166443,
-0.13038122653961182,
-0.3031467795372009,
-0.06417790800333023,
-0.05110257491469383,
0.35460951924324036,
0.44679582118988037,
-0.13360267877578735,
0.2504594027996063,
-0.42280313372612,
0.11807717382907867,
0.31326377391815186,
0.4671597182750702,
-0.20624791085720062,
0.6158466935157776,
-0.4800453186035156,
0.20010890066623688,
0.4849744439125061,
-0.1730082929134369,
-0.42063701152801514,
0.17837804555892944,
-0.30738967657089233,
0.08555348217487335,
0.18362468481063843,
0.11603505909442902,
0.10014351457357407,
-0.17071565985679626,
0.3048326373100281,
0.6191925406455994,
-0.18278288841247559,
0.10780986398458481,
-0.3752169609069824,
-0.340602308511734,
-0.059993915259838104,
0.3356849253177643,
0.13468433916568756,
0.2663513422012329,
-0.04274316877126694,
-0.12279725074768066,
0.5297331809997559,
-0.2935161292552948,
-0.20835717022418976,
0.07970446348190308,
0.2755379378795624,
-0.06436923146247864,
0.009470099583268166,
0.09502264112234116,
-0.5583001375198364,
0.27924272418022156,
-0.047149643301963806,
0.1287790834903717,
-0.12377390265464783,
-0.2958550453186035,
-0.21701940894126892,
-0.16858425736427307,
-0.06882895529270172,
0.15202836692333221,
0.0033023804426193237,
0.031838491559028625,
0.1520579308271408,
0.043031271547079086,
0.28083813190460205,
0.3568264842033386,
-0.049386151134967804,
0.03511708974838257,
-0.3426899313926697,
0.4784470498561859,
-0.056835681200027466,
-0.03327624872326851,
0.16159646213054657,
-0.25099655985832214,
-0.0252845361828804,
-0.23570974171161652,
-0.10979804396629333,
0.34773457050323486,
0.16307246685028076,
0.3984302878379822,
-0.06275372207164764,
0.13263891637325287,
0.13850396871566772,
-0.01710725948214531,
0.40901365876197815,
-0.13940532505512238,
0.015776369720697403,
-0.018464993685483932,
-0.41836321353912354,
0.2589688301086426,
-0.1481001228094101,
0.1307545006275177,
0.17188382148742676,
0.14032769203186035,
-0.17805956304073334,
-0.11765778064727783,
0.25288254022598267,
0.052598319947719574,
0.35039710998535156,
0.38307008147239685,
0.5327192544937134,
0.04272139072418213,
-0.36508217453956604,
0.5485998392105103,
0.8282884955406189,
-0.42751815915107727,
-0.004603751003742218,
0.16421818733215332,
-0.13590890169143677,
-0.3685544729232788,
-0.05864938348531723,
0.27853989601135254,
0.39296847581863403,
0.16797834634780884,
0.15633858740329742,
0.23232001066207886,
-0.05890312045812607,
-0.2694709300994873,
0.20105856657028198,
0.055438585579395294,
0.17981719970703125,
0.3483024835586548,
-0.028402702882885933,
0.006572149693965912,
-0.28997549414634705,
-0.11876937747001648,
0.0009265812113881111,
0.3220004737377167,
-0.3624788522720337,
0.21556776762008667,
0.14375989139080048,
0.45266473293304443,
-0.1947408765554428,
0.0776882991194725,
0.13216064870357513,
-0.29144591093063354,
0.09662499278783798,
0.16629157960414886,
-0.010485604405403137,
0.04966163635253906,
0.1444787085056305,
0.33695143461227417,
0.10925284028053284,
-0.33185887336730957,
-0.3410986363887787,
-0.03097504749894142,
-0.2844860851764679,
0.07285161316394806,
0.14525054395198822,
0.251299113035202,
0.23408401012420654,
-0.3639236092567444,
-0.3320927619934082,
-0.13686774671077728,
-0.022814229130744934,
0.13351762294769287,
-0.011564183980226517,
0.5992295145988464,
0.23565174639225006,
0.2099008411169052,
-0.01762658916413784,
-0.1758408397436142,
0.09259480237960815,
-0.12002777308225632,
-0.11452622711658478,
0.01373361423611641,
-0.1253652721643448,
0.13042473793029785,
0.016610193997621536,
-0.5700879693031311,
-0.09091383218765259,
-0.1616540104150772,
0.09283550083637238,
-0.2716764211654663,
0.21939583122730255,
0.41310015320777893,
0.19604374468326569,
0.18007948994636536,
0.47719481587409973,
-0.08964215964078903,
-0.18386539816856384,
-0.14112159609794617,
0.4323437511920929,
-0.15069489181041718,
-0.25708770751953125,
-0.4386986196041107,
-0.34226036071777344,
-0.31775832176208496,
0.502710223197937,
-0.5312046408653259,
-0.1038651093840599,
-0.53107088804245,
0.22970592975616455,
-0.18673567473888397,
-0.3018683195114136,
0.34854036569595337,
0.006004951428622007,
-0.06838713586330414,
-0.156492680311203,
0.0904293805360794,
0.20810893177986145,
0.08658087253570557,
0.007870815694332123,
-0.03575761243700981,
0.43160802125930786,
-0.05500585958361626,
0.5898112654685974,
0.24048960208892822,
0.17866599559783936,
-0.09800377488136292,
-0.1974201798439026,
0.0688566341996193,
-0.05840276926755905,
-0.15886953473091125,
0.20016226172447205,
-0.0678703635931015,
-0.3533017039299011,
0.28913289308547974,
-0.09791284799575806,
-0.11889468878507614,
0.04249124974012375,
-0.1345607340335846,
-0.3022227883338928,
-0.49092718958854675,
0.20712529122829437,
-0.08076654374599457,
-0.03932752460241318,
-0.06089182570576668,
0.25359320640563965,
-0.17432567477226257,
-0.10505795478820801,
0.2952152192592621,
0.03896750509738922,
0.0678449347615242,
-0.15798410773277283,
0.09084472060203552,
0.061720896512269974,
-0.5152743458747864,
-0.038530781865119934,
0.17118360102176666,
0.016855513677001,
0.007084544748067856,
-0.08040638267993927,
0.15888948738574982,
-0.2429131120443344,
0.6400907039642334,
-0.3143634796142578,
0.40281063318252563,
0.0910862386226654,
0.17671804130077362,
-0.12730129063129425,
-0.14691974222660065,
-0.2945156395435333,
-0.018367718905210495,
0.278083473443985,
0.44598302245140076,
-0.13498196005821228,
-0.22559483349323273,
0.6028354167938232,
0.4511711895465851,
-0.02904980629682541,
-0.014024008065462112,
0.04138845577836037,
-0.40112337470054626,
0.024114398285746574,
0.10564163327217102,
-0.007683403789997101,
0.10583465546369553,
-0.1118207722902298,
-0.1834522783756256,
0.3449707627296448,
-0.04585025832056999,
0.23518218100070953,
0.19516116380691528,
0.16244849562644958,
-0.22494615614414215,
0.34239667654037476,
0.1401800811290741,
-0.10641266405582428,
0.25367215275764465,
0.47308242321014404,
-0.0951184630393982,
-0.12171080708503723,
0.049431972205638885,
-0.18465839326381683,
0.031082123517990112,
0.6260277032852173,
-0.07773951441049576,
-0.1814606487751007,
-0.13031888008117676,
0.4477701187133789,
-0.11189575493335724,
0.34347620606422424,
0.5588801503181458,
-0.24880154430866241,
-0.3617478013038635,
-0.42473888397216797,
0.5244214534759521,
0.11962969601154327,
-0.20553937554359436,
0.4544985890388489,
-0.027470014989376068,
-0.2544313669204712,
0.1665562242269516,
0.06712843477725983,
0.979854941368103,
-0.09728178381919861,
0.11178784817457199,
0.49900293350219727,
-0.00769689679145813,
0.09927892684936523,
-0.24154578149318695,
0.197271928191185,
-0.5013417601585388,
-0.2936221957206726,
0.20599476993083954,
-0.28456103801727295,
-0.07675469666719437,
0.19539481401443481,
-0.23288550972938538,
-0.08451028168201447,
-0.506952166557312,
0.16198258101940155,
-0.11316810548305511,
0.30577054619789124,
-0.20317000150680542,
-0.07403387129306793,
0.017760707065463066,
0.023797031491994858,
0.10227920114994049,
-0.0601719431579113,
-0.030604923143982887,
-0.08894643187522888,
-0.442668616771698,
-0.09432253241539001,
-0.29010647535324097,
0.35871315002441406,
-0.4322007894515991,
-0.006357032805681229,
-0.35163381695747375,
-0.45087605714797974,
0.16353219747543335,
0.18770046532154083,
0.10608420521020889,
0.275589257478714,
-0.08715125173330307,
0.5035417675971985,
-0.18607380986213684,
0.08423293381929398,
0.28300580382347107,
-0.3422095775604248,
0.4233291745185852,
-0.051445506513118744,
-0.3140651285648346,
-0.1547919511795044,
-0.0796830803155899,
-0.08879221230745316,
-0.2420772910118103,
-0.20050998032093048,
-0.16980616748332977,
-0.08318749070167542,
-0.0013902843929827213,
0.04256000742316246,
-0.07291319966316223,
-0.22479628026485443,
0.08453981578350067,
0.023868754506111145,
0.0474199540913105,
0.3639705181121826,
-0.21765701472759247,
-0.27614036202430725,
-0.17265577614307404,
-0.005139805376529694,
0.13144680857658386,
0.2138383984565735,
0.41737425327301025,
0.19155704975128174,
-0.19171153008937836,
-0.32633236050605774,
0.15191051363945007,
0.2733619511127472,
-0.4569133520126343,
0.3379095196723938,
-0.39225101470947266,
0.145608589053154,
-0.025442475453019142,
0.26255133748054504,
-0.06191309541463852,
-0.21598482131958008,
-0.017653558403253555,
-0.3215318024158478,
-0.12081997841596603,
0.014481253921985626,
0.13381992280483246,
0.22281020879745483,
-0.015488855540752411,
-0.00434965081512928,
-0.10813729465007782,
-0.06932882964611053,
-0.27949249744415283,
0.13669532537460327,
-0.05438758432865143,
0.035373587161302567,
-0.07494429498910904,
-0.1961606740951538,
0.5697609186172485,
-0.14194509387016296,
0.1430976390838623,
-0.2085786908864975,
-0.061808690428733826,
-0.17297840118408203,
-0.2202123999595642,
0.11429668217897415,
-0.12709727883338928,
-0.18695545196533203,
0.2765199542045593,
-0.04464741051197052,
-0.25399017333984375,
-0.22869116067886353,
0.4115813076496124,
0.04444471001625061,
0.08501245826482773,
-0.14052553474903107,
-0.05152809992432594,
0.00415097177028656,
-0.15511521697044373,
-0.0035164393484592438,
-0.2853984832763672,
0.21398958563804626,
0.08951941132545471,
0.12272728234529495,
0.17570260167121887,
-0.13951042294502258,
-0.16369611024856567,
0.14412936568260193,
0.10219044238328934,
-0.0007852241396903992,
0.37983909249305725,
-0.15745984017848969,
-0.07675515115261078,
-0.13502880930900574,
0.15953458845615387,
0.6011941432952881,
-0.05021453648805618,
-0.17268380522727966,
0.146854430437088,
0.11557409167289734,
-0.1655874401330948,
-0.1912177950143814,
0.06827637553215027,
-0.40273743867874146,
0.05506599321961403,
0.3265892267227173,
0.037468064576387405,
0.21577227115631104,
-0.38498610258102417,
-0.13474641740322113,
0.4906577467918396,
0.2824521064758301,
0.02299230545759201,
0.5994632840156555,
-0.009540237486362457,
0.024642210453748703,
0.02497408725321293,
0.09448131918907166,
0.1540628969669342,
0.303529292345047,
-0.10844814032316208,
-0.015235358849167824,
-0.26472917199134827,
0.12619566917419434,
-0.024520955979824066,
-0.12260442972183228,
0.10778293758630753,
0.5035091638565063,
-0.5375747680664062,
-0.010340593755245209,
0.007902339100837708,
0.08113796263933182,
-0.3336227834224701,
-0.13531692326068878,
-0.4395107924938202,
0.11024391651153564,
-0.013535890728235245,
0.1564561277627945,
0.048812560737133026,
-0.17910298705101013,
-0.46493563055992126,
0.3786625266075134,
0.07531426846981049,
0.059890929609537125,
0.010323546826839447,
0.20300263166427612,
0.16955342888832092,
0.24033226072788239,
-0.05944553762674332,
0.049154140055179596,
0.17301607131958008,
-0.4550519585609436,
-0.2099044770002365,
-0.12289176881313324,
-0.15993215143680573,
-0.10154859721660614,
0.029884614050388336,
0.3082180321216583,
0.16874639689922333,
-0.1746852546930313,
-0.38613250851631165,
-0.06252749264240265,
0.05508706718683243,
0.07414349168539047,
0.061346594244241714,
0.25987905263900757,
0.15965858101844788,
0.1800612062215805,
0.01437750831246376,
-0.20335660874843597,
0.029524289071559906,
0.07564699649810791,
-0.30219128727912903,
-0.3489222228527069,
0.06010512262582779,
-0.08408332616090775,
-0.20056021213531494,
-0.36630067229270935,
-0.23086193203926086,
-0.052001189440488815,
-0.3130169212818146,
0.055060163140296936,
0.04176504164934158,
0.17045405507087708,
0.09262582659721375,
0.06260177493095398,
-0.00939035415649414,
0.6610970497131348,
0.2348160743713379,
0.21497279405593872,
-0.12013725191354752,
-0.2353084534406662,
-0.41877979040145874,
-0.18515005707740784,
-0.305776983499527,
0.11523352563381195,
0.12337662279605865,
0.05181843042373657,
0.02746095508337021,
0.19004356861114502,
0.26872122287750244,
0.4745033383369446,
-0.1245623230934143,
0.18694224953651428,
-0.2507311701774597,
-0.058720726519823074,
-0.10185635089874268,
-0.18115511536598206,
-0.22471287846565247,
-0.5875436663627625,
0.20395445823669434,
-0.06692217290401459,
-0.020889446139335632,
-0.06702806055545807,
-0.020979218184947968,
0.1506633758544922,
-0.054118432104587555,
0.6257712244987488,
0.153652161359787,
0.28698408603668213,
-0.07175761461257935,
-0.36428704857826233,
-0.20238447189331055,
0.22356607019901276,
-0.041511259973049164,
0.011175088584423065,
0.14770182967185974,
0.07081089168787003,
0.25528380274772644,
0.0637948140501976,
-0.26440367102622986,
0.3993673026561737,
0.2948497533798218,
-0.11918905377388,
-0.23930081725120544,
0.02487511746585369,
0.036238014698028564,
0.3085393011569977,
0.2588203251361847,
0.09446824342012405,
-0.26350730657577515,
0.12450498342514038,
-0.3799065947532654,
-0.15939196944236755,
0.38653135299682617,
-0.2096347212791443,
-0.18089605867862701,
-0.2554894685745239,
0.43867579102516174,
0.06999114155769348,
0.23083113133907318,
-0.1364298164844513,
0.048410676419734955,
0.14407750964164734,
0.01312975026667118,
-0.10776303708553314,
0.3945748805999756,
0.2957492768764496,
-0.03704103082418442,
0.08966532349586487,
0.20072287321090698,
-0.21484193205833435,
-0.2825135588645935,
0.00044248253107070923,
-0.14363762736320496
] |
https://github.com/huggingface/datasets/issues/4122 | medical_dialog zh has very slow _generate_examples | Thanks @nbroad1881 for reporting! I don't recall it taking so long. I will also have a look at this.
@albertvillanova please let me know if I am doing something unnecessary or time consuming. | ## Describe the bug
After downloading the files from Google Drive, `load_dataset("medical_dialog", "zh", data_dir="./")` takes an unreasonable amount of time. Generating the train/test split for 33% of the dataset takes over 4.5 hours.
## Steps to reproduce the bug
The easiest way I've found to download files from Google Drive is to use `gdown` and use Google Colab because the download speeds will be very high due to the fact that they are both in Google Cloud.
```python
file_ids = [
"1AnKxGEuzjeQsDHHqL3NqI_aplq2hVL_E",
"1tt7weAT1SZknzRFyLXOT2fizceUUVRXX",
"1A64VBbsQ_z8wZ2LDox586JIyyO6mIwWc",
"1AKntx-ECnrxjB07B6BlVZcFRS4YPTB-J",
"1xUk8AAua_x27bHUr-vNoAuhEAjTxOvsu",
"1ezKTfe7BgqVN5o-8Vdtr9iAF0IueCSjP",
"1tA7bSOxR1RRNqZst8cShzhuNHnayUf7c",
"1pA3bCFA5nZDhsQutqsJcH3d712giFb0S",
"1pTLFMdN1A3ro-KYghk4w4sMz6aGaMOdU",
"1dUSnG0nUPq9TEQyHd6ZWvaxO0OpxVjXD",
"1UfCH05nuWiIPbDZxQzHHGAHyMh8dmPQH",
]
for i in file_ids:
url = f"https://drive.google.com/uc?id={i}"
!gdown $url
from datasets import load_dataset
ds = load_dataset("medical_dialog", "zh", data_dir="./")
```
## Expected results
Faster load time
## Actual results
`Generating train split: 33%: 625519/1921127 [4:31:03<31:39:20, 11.37 examples/s]`
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
@vrindaprabhu , could you take a look at this since you implemented it? I think the `_generate_examples` function might need to be rewritten | 33 | medical_dialog zh has very slow _generate_examples
## Describe the bug
After downloading the files from Google Drive, `load_dataset("medical_dialog", "zh", data_dir="./")` takes an unreasonable amount of time. Generating the train/test split for 33% of the dataset takes over 4.5 hours.
## Steps to reproduce the bug
The easiest way I've found to download files from Google Drive is to use `gdown` and use Google Colab because the download speeds will be very high due to the fact that they are both in Google Cloud.
```python
file_ids = [
"1AnKxGEuzjeQsDHHqL3NqI_aplq2hVL_E",
"1tt7weAT1SZknzRFyLXOT2fizceUUVRXX",
"1A64VBbsQ_z8wZ2LDox586JIyyO6mIwWc",
"1AKntx-ECnrxjB07B6BlVZcFRS4YPTB-J",
"1xUk8AAua_x27bHUr-vNoAuhEAjTxOvsu",
"1ezKTfe7BgqVN5o-8Vdtr9iAF0IueCSjP",
"1tA7bSOxR1RRNqZst8cShzhuNHnayUf7c",
"1pA3bCFA5nZDhsQutqsJcH3d712giFb0S",
"1pTLFMdN1A3ro-KYghk4w4sMz6aGaMOdU",
"1dUSnG0nUPq9TEQyHd6ZWvaxO0OpxVjXD",
"1UfCH05nuWiIPbDZxQzHHGAHyMh8dmPQH",
]
for i in file_ids:
url = f"https://drive.google.com/uc?id={i}"
!gdown $url
from datasets import load_dataset
ds = load_dataset("medical_dialog", "zh", data_dir="./")
```
## Expected results
Faster load time
## Actual results
`Generating train split: 33%: 625519/1921127 [4:31:03<31:39:20, 11.37 examples/s]`
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
@vrindaprabhu , could you take a look at this since you implemented it? I think the `_generate_examples` function might need to be rewritten
Thanks @nbroad1881 for reporting! I don't recall it taking so long. I will also have a look at this.
@albertvillanova please let me know if I am doing something unnecessary or time consuming. | [
-0.348908007144928,
0.15916025638580322,
-0.012125393375754356,
0.14690646529197693,
-0.014464449137449265,
0.18549436330795288,
0.751462996006012,
0.4728642702102661,
0.09013456106185913,
0.18660590052604675,
-0.034846678376197815,
0.04020940139889717,
-0.15930069983005524,
0.2758603096008301,
0.03563208132982254,
-0.32319140434265137,
0.04437842220067978,
0.09771783649921417,
0.1751384288072586,
-0.1978914439678192,
-0.2132176160812378,
0.07218438386917114,
-0.376753032207489,
-0.08938772976398468,
-0.19441303610801697,
-0.19546781480312347,
0.020254885777831078,
0.3633745312690735,
-0.10602281242609024,
-0.08622335642576218,
-0.18612085282802582,
0.14714205265045166,
-0.27690649032592773,
0.2836337387561798,
-0.00011654152331175283,
-0.10821108520030975,
0.1607525646686554,
0.1269361525774002,
-0.5741550922393799,
0.09077054262161255,
0.08188656717538834,
-0.0698484405875206,
-0.2172524333000183,
-0.13887913525104523,
0.0766790583729744,
-0.10259205847978592,
-0.014704985544085503,
-0.14764253795146942,
0.19093464314937592,
0.5321793556213379,
0.06734193116426468,
0.3283179998397827,
-0.5638859272003174,
-0.18364204466342926,
0.5526397228240967,
0.11430570483207703,
-0.14289407432079315,
0.4432606101036072,
0.44255122542381287,
-0.15648557245731354,
-0.08828765898942947,
0.14274540543556213,
0.1275414228439331,
-0.10041913390159607,
-0.11301102489233017,
0.34698042273521423,
0.021824553608894348,
-0.3850153088569641,
0.009748006239533424,
0.5440725684165955,
0.23942220211029053,
-0.06008254736661911,
-0.08965796232223511,
-0.4550670385360718,
0.038200344890356064,
-0.1308390200138092,
0.3160187304019928,
0.36447620391845703,
-0.37960007786750793,
-0.018019050359725952,
-0.3804852068424225,
-0.04814828559756279,
-0.0815284252166748,
0.00654340535402298,
0.15559174120426178,
-0.13572756946086884,
0.1781613528728485,
-0.07855498045682907,
0.3665282428264618,
0.1460161805152893,
0.24395623803138733,
-0.2774345278739929,
0.11395373940467834,
0.11439916491508484,
-0.37397530674934387,
-0.17541152238845825,
-0.11819230765104294,
0.195604145526886,
0.39210179448127747,
0.2261669933795929,
-0.028889138251543045,
0.03651098906993866,
0.1088242456316948,
-0.10759706050157547,
0.03946719318628311,
0.062121521681547165,
-0.22864925861358643,
0.05369003862142563,
0.3338545560836792,
0.19678768515586853,
0.04470337554812431,
0.10994399338960648,
-0.2736656963825226,
-0.4431874752044678,
0.16993016004562378,
0.05503345653414726,
-0.08265021443367004,
-0.03414197266101837,
-0.3182185888290405,
0.04712250083684921,
-0.42706117033958435,
0.12298493087291718,
0.10834494978189468,
0.28965142369270325,
-0.3459022641181946,
-0.04635578393936157,
0.06696583330631256,
0.0745844915509224,
-0.3136119842529297,
-0.19516320526599884,
-0.09684517979621887,
0.3563607633113861,
-0.22930434346199036,
0.34264642000198364,
0.21681858599185944,
0.1722649484872818,
0.04088401049375534,
0.2946353256702423,
0.21949869394302368,
0.009221784770488739,
0.1518092304468155,
-0.1871577948331833,
-0.17755794525146484,
0.07533429563045502,
0.1613275706768036,
0.07400324195623398,
-0.16247929632663727,
-0.011235244572162628,
-0.2248365581035614,
0.23599383234977722,
-0.24657419323921204,
-0.31369492411613464,
-0.09692880511283875,
0.1350831389427185,
-0.18457826972007751,
0.22915472090244293,
-0.2509782612323761,
0.061674024909734726,
-0.03246680647134781,
-0.14414462447166443,
-0.13038122653961182,
-0.3031467795372009,
-0.06417790800333023,
-0.05110257491469383,
0.35460951924324036,
0.44679582118988037,
-0.13360267877578735,
0.2504594027996063,
-0.42280313372612,
0.11807717382907867,
0.31326377391815186,
0.4671597182750702,
-0.20624791085720062,
0.6158466935157776,
-0.4800453186035156,
0.20010890066623688,
0.4849744439125061,
-0.1730082929134369,
-0.42063701152801514,
0.17837804555892944,
-0.30738967657089233,
0.08555348217487335,
0.18362468481063843,
0.11603505909442902,
0.10014351457357407,
-0.17071565985679626,
0.3048326373100281,
0.6191925406455994,
-0.18278288841247559,
0.10780986398458481,
-0.3752169609069824,
-0.340602308511734,
-0.059993915259838104,
0.3356849253177643,
0.13468433916568756,
0.2663513422012329,
-0.04274316877126694,
-0.12279725074768066,
0.5297331809997559,
-0.2935161292552948,
-0.20835717022418976,
0.07970446348190308,
0.2755379378795624,
-0.06436923146247864,
0.009470099583268166,
0.09502264112234116,
-0.5583001375198364,
0.27924272418022156,
-0.047149643301963806,
0.1287790834903717,
-0.12377390265464783,
-0.2958550453186035,
-0.21701940894126892,
-0.16858425736427307,
-0.06882895529270172,
0.15202836692333221,
0.0033023804426193237,
0.031838491559028625,
0.1520579308271408,
0.043031271547079086,
0.28083813190460205,
0.3568264842033386,
-0.049386151134967804,
0.03511708974838257,
-0.3426899313926697,
0.4784470498561859,
-0.056835681200027466,
-0.03327624872326851,
0.16159646213054657,
-0.25099655985832214,
-0.0252845361828804,
-0.23570974171161652,
-0.10979804396629333,
0.34773457050323486,
0.16307246685028076,
0.3984302878379822,
-0.06275372207164764,
0.13263891637325287,
0.13850396871566772,
-0.01710725948214531,
0.40901365876197815,
-0.13940532505512238,
0.015776369720697403,
-0.018464993685483932,
-0.41836321353912354,
0.2589688301086426,
-0.1481001228094101,
0.1307545006275177,
0.17188382148742676,
0.14032769203186035,
-0.17805956304073334,
-0.11765778064727783,
0.25288254022598267,
0.052598319947719574,
0.35039710998535156,
0.38307008147239685,
0.5327192544937134,
0.04272139072418213,
-0.36508217453956604,
0.5485998392105103,
0.8282884955406189,
-0.42751815915107727,
-0.004603751003742218,
0.16421818733215332,
-0.13590890169143677,
-0.3685544729232788,
-0.05864938348531723,
0.27853989601135254,
0.39296847581863403,
0.16797834634780884,
0.15633858740329742,
0.23232001066207886,
-0.05890312045812607,
-0.2694709300994873,
0.20105856657028198,
0.055438585579395294,
0.17981719970703125,
0.3483024835586548,
-0.028402702882885933,
0.006572149693965912,
-0.28997549414634705,
-0.11876937747001648,
0.0009265812113881111,
0.3220004737377167,
-0.3624788522720337,
0.21556776762008667,
0.14375989139080048,
0.45266473293304443,
-0.1947408765554428,
0.0776882991194725,
0.13216064870357513,
-0.29144591093063354,
0.09662499278783798,
0.16629157960414886,
-0.010485604405403137,
0.04966163635253906,
0.1444787085056305,
0.33695143461227417,
0.10925284028053284,
-0.33185887336730957,
-0.3410986363887787,
-0.03097504749894142,
-0.2844860851764679,
0.07285161316394806,
0.14525054395198822,
0.251299113035202,
0.23408401012420654,
-0.3639236092567444,
-0.3320927619934082,
-0.13686774671077728,
-0.022814229130744934,
0.13351762294769287,
-0.011564183980226517,
0.5992295145988464,
0.23565174639225006,
0.2099008411169052,
-0.01762658916413784,
-0.1758408397436142,
0.09259480237960815,
-0.12002777308225632,
-0.11452622711658478,
0.01373361423611641,
-0.1253652721643448,
0.13042473793029785,
0.016610193997621536,
-0.5700879693031311,
-0.09091383218765259,
-0.1616540104150772,
0.09283550083637238,
-0.2716764211654663,
0.21939583122730255,
0.41310015320777893,
0.19604374468326569,
0.18007948994636536,
0.47719481587409973,
-0.08964215964078903,
-0.18386539816856384,
-0.14112159609794617,
0.4323437511920929,
-0.15069489181041718,
-0.25708770751953125,
-0.4386986196041107,
-0.34226036071777344,
-0.31775832176208496,
0.502710223197937,
-0.5312046408653259,
-0.1038651093840599,
-0.53107088804245,
0.22970592975616455,
-0.18673567473888397,
-0.3018683195114136,
0.34854036569595337,
0.006004951428622007,
-0.06838713586330414,
-0.156492680311203,
0.0904293805360794,
0.20810893177986145,
0.08658087253570557,
0.007870815694332123,
-0.03575761243700981,
0.43160802125930786,
-0.05500585958361626,
0.5898112654685974,
0.24048960208892822,
0.17866599559783936,
-0.09800377488136292,
-0.1974201798439026,
0.0688566341996193,
-0.05840276926755905,
-0.15886953473091125,
0.20016226172447205,
-0.0678703635931015,
-0.3533017039299011,
0.28913289308547974,
-0.09791284799575806,
-0.11889468878507614,
0.04249124974012375,
-0.1345607340335846,
-0.3022227883338928,
-0.49092718958854675,
0.20712529122829437,
-0.08076654374599457,
-0.03932752460241318,
-0.06089182570576668,
0.25359320640563965,
-0.17432567477226257,
-0.10505795478820801,
0.2952152192592621,
0.03896750509738922,
0.0678449347615242,
-0.15798410773277283,
0.09084472060203552,
0.061720896512269974,
-0.5152743458747864,
-0.038530781865119934,
0.17118360102176666,
0.016855513677001,
0.007084544748067856,
-0.08040638267993927,
0.15888948738574982,
-0.2429131120443344,
0.6400907039642334,
-0.3143634796142578,
0.40281063318252563,
0.0910862386226654,
0.17671804130077362,
-0.12730129063129425,
-0.14691974222660065,
-0.2945156395435333,
-0.018367718905210495,
0.278083473443985,
0.44598302245140076,
-0.13498196005821228,
-0.22559483349323273,
0.6028354167938232,
0.4511711895465851,
-0.02904980629682541,
-0.014024008065462112,
0.04138845577836037,
-0.40112337470054626,
0.024114398285746574,
0.10564163327217102,
-0.007683403789997101,
0.10583465546369553,
-0.1118207722902298,
-0.1834522783756256,
0.3449707627296448,
-0.04585025832056999,
0.23518218100070953,
0.19516116380691528,
0.16244849562644958,
-0.22494615614414215,
0.34239667654037476,
0.1401800811290741,
-0.10641266405582428,
0.25367215275764465,
0.47308242321014404,
-0.0951184630393982,
-0.12171080708503723,
0.049431972205638885,
-0.18465839326381683,
0.031082123517990112,
0.6260277032852173,
-0.07773951441049576,
-0.1814606487751007,
-0.13031888008117676,
0.4477701187133789,
-0.11189575493335724,
0.34347620606422424,
0.5588801503181458,
-0.24880154430866241,
-0.3617478013038635,
-0.42473888397216797,
0.5244214534759521,
0.11962969601154327,
-0.20553937554359436,
0.4544985890388489,
-0.027470014989376068,
-0.2544313669204712,
0.1665562242269516,
0.06712843477725983,
0.979854941368103,
-0.09728178381919861,
0.11178784817457199,
0.49900293350219727,
-0.00769689679145813,
0.09927892684936523,
-0.24154578149318695,
0.197271928191185,
-0.5013417601585388,
-0.2936221957206726,
0.20599476993083954,
-0.28456103801727295,
-0.07675469666719437,
0.19539481401443481,
-0.23288550972938538,
-0.08451028168201447,
-0.506952166557312,
0.16198258101940155,
-0.11316810548305511,
0.30577054619789124,
-0.20317000150680542,
-0.07403387129306793,
0.017760707065463066,
0.023797031491994858,
0.10227920114994049,
-0.0601719431579113,
-0.030604923143982887,
-0.08894643187522888,
-0.442668616771698,
-0.09432253241539001,
-0.29010647535324097,
0.35871315002441406,
-0.4322007894515991,
-0.006357032805681229,
-0.35163381695747375,
-0.45087605714797974,
0.16353219747543335,
0.18770046532154083,
0.10608420521020889,
0.275589257478714,
-0.08715125173330307,
0.5035417675971985,
-0.18607380986213684,
0.08423293381929398,
0.28300580382347107,
-0.3422095775604248,
0.4233291745185852,
-0.051445506513118744,
-0.3140651285648346,
-0.1547919511795044,
-0.0796830803155899,
-0.08879221230745316,
-0.2420772910118103,
-0.20050998032093048,
-0.16980616748332977,
-0.08318749070167542,
-0.0013902843929827213,
0.04256000742316246,
-0.07291319966316223,
-0.22479628026485443,
0.08453981578350067,
0.023868754506111145,
0.0474199540913105,
0.3639705181121826,
-0.21765701472759247,
-0.27614036202430725,
-0.17265577614307404,
-0.005139805376529694,
0.13144680857658386,
0.2138383984565735,
0.41737425327301025,
0.19155704975128174,
-0.19171153008937836,
-0.32633236050605774,
0.15191051363945007,
0.2733619511127472,
-0.4569133520126343,
0.3379095196723938,
-0.39225101470947266,
0.145608589053154,
-0.025442475453019142,
0.26255133748054504,
-0.06191309541463852,
-0.21598482131958008,
-0.017653558403253555,
-0.3215318024158478,
-0.12081997841596603,
0.014481253921985626,
0.13381992280483246,
0.22281020879745483,
-0.015488855540752411,
-0.00434965081512928,
-0.10813729465007782,
-0.06932882964611053,
-0.27949249744415283,
0.13669532537460327,
-0.05438758432865143,
0.035373587161302567,
-0.07494429498910904,
-0.1961606740951538,
0.5697609186172485,
-0.14194509387016296,
0.1430976390838623,
-0.2085786908864975,
-0.061808690428733826,
-0.17297840118408203,
-0.2202123999595642,
0.11429668217897415,
-0.12709727883338928,
-0.18695545196533203,
0.2765199542045593,
-0.04464741051197052,
-0.25399017333984375,
-0.22869116067886353,
0.4115813076496124,
0.04444471001625061,
0.08501245826482773,
-0.14052553474903107,
-0.05152809992432594,
0.00415097177028656,
-0.15511521697044373,
-0.0035164393484592438,
-0.2853984832763672,
0.21398958563804626,
0.08951941132545471,
0.12272728234529495,
0.17570260167121887,
-0.13951042294502258,
-0.16369611024856567,
0.14412936568260193,
0.10219044238328934,
-0.0007852241396903992,
0.37983909249305725,
-0.15745984017848969,
-0.07675515115261078,
-0.13502880930900574,
0.15953458845615387,
0.6011941432952881,
-0.05021453648805618,
-0.17268380522727966,
0.146854430437088,
0.11557409167289734,
-0.1655874401330948,
-0.1912177950143814,
0.06827637553215027,
-0.40273743867874146,
0.05506599321961403,
0.3265892267227173,
0.037468064576387405,
0.21577227115631104,
-0.38498610258102417,
-0.13474641740322113,
0.4906577467918396,
0.2824521064758301,
0.02299230545759201,
0.5994632840156555,
-0.009540237486362457,
0.024642210453748703,
0.02497408725321293,
0.09448131918907166,
0.1540628969669342,
0.303529292345047,
-0.10844814032316208,
-0.015235358849167824,
-0.26472917199134827,
0.12619566917419434,
-0.024520955979824066,
-0.12260442972183228,
0.10778293758630753,
0.5035091638565063,
-0.5375747680664062,
-0.010340593755245209,
0.007902339100837708,
0.08113796263933182,
-0.3336227834224701,
-0.13531692326068878,
-0.4395107924938202,
0.11024391651153564,
-0.013535890728235245,
0.1564561277627945,
0.048812560737133026,
-0.17910298705101013,
-0.46493563055992126,
0.3786625266075134,
0.07531426846981049,
0.059890929609537125,
0.010323546826839447,
0.20300263166427612,
0.16955342888832092,
0.24033226072788239,
-0.05944553762674332,
0.049154140055179596,
0.17301607131958008,
-0.4550519585609436,
-0.2099044770002365,
-0.12289176881313324,
-0.15993215143680573,
-0.10154859721660614,
0.029884614050388336,
0.3082180321216583,
0.16874639689922333,
-0.1746852546930313,
-0.38613250851631165,
-0.06252749264240265,
0.05508706718683243,
0.07414349168539047,
0.061346594244241714,
0.25987905263900757,
0.15965858101844788,
0.1800612062215805,
0.01437750831246376,
-0.20335660874843597,
0.029524289071559906,
0.07564699649810791,
-0.30219128727912903,
-0.3489222228527069,
0.06010512262582779,
-0.08408332616090775,
-0.20056021213531494,
-0.36630067229270935,
-0.23086193203926086,
-0.052001189440488815,
-0.3130169212818146,
0.055060163140296936,
0.04176504164934158,
0.17045405507087708,
0.09262582659721375,
0.06260177493095398,
-0.00939035415649414,
0.6610970497131348,
0.2348160743713379,
0.21497279405593872,
-0.12013725191354752,
-0.2353084534406662,
-0.41877979040145874,
-0.18515005707740784,
-0.305776983499527,
0.11523352563381195,
0.12337662279605865,
0.05181843042373657,
0.02746095508337021,
0.19004356861114502,
0.26872122287750244,
0.4745033383369446,
-0.1245623230934143,
0.18694224953651428,
-0.2507311701774597,
-0.058720726519823074,
-0.10185635089874268,
-0.18115511536598206,
-0.22471287846565247,
-0.5875436663627625,
0.20395445823669434,
-0.06692217290401459,
-0.020889446139335632,
-0.06702806055545807,
-0.020979218184947968,
0.1506633758544922,
-0.054118432104587555,
0.6257712244987488,
0.153652161359787,
0.28698408603668213,
-0.07175761461257935,
-0.36428704857826233,
-0.20238447189331055,
0.22356607019901276,
-0.041511259973049164,
0.011175088584423065,
0.14770182967185974,
0.07081089168787003,
0.25528380274772644,
0.0637948140501976,
-0.26440367102622986,
0.3993673026561737,
0.2948497533798218,
-0.11918905377388,
-0.23930081725120544,
0.02487511746585369,
0.036238014698028564,
0.3085393011569977,
0.2588203251361847,
0.09446824342012405,
-0.26350730657577515,
0.12450498342514038,
-0.3799065947532654,
-0.15939196944236755,
0.38653135299682617,
-0.2096347212791443,
-0.18089605867862701,
-0.2554894685745239,
0.43867579102516174,
0.06999114155769348,
0.23083113133907318,
-0.1364298164844513,
0.048410676419734955,
0.14407750964164734,
0.01312975026667118,
-0.10776303708553314,
0.3945748805999756,
0.2957492768764496,
-0.03704103082418442,
0.08966532349586487,
0.20072287321090698,
-0.21484193205833435,
-0.2825135588645935,
0.00044248253107070923,
-0.14363762736320496
] |
https://github.com/huggingface/datasets/issues/4122 | medical_dialog zh has very slow _generate_examples | Hi @nbroad1881 and @vrindaprabhu,
As a workaround for the performance of the parsing of the raw data files (this could be addressed in a subsequent PR), I have found that there are also processed data files, that do not require parsing. I have added these as new configurations `processed.en` and `processed.zh`:
```python
ds = load_dataset("medical_dialog", "processed.zh")
``` | ## Describe the bug
After downloading the files from Google Drive, `load_dataset("medical_dialog", "zh", data_dir="./")` takes an unreasonable amount of time. Generating the train/test split for 33% of the dataset takes over 4.5 hours.
## Steps to reproduce the bug
The easiest way I've found to download files from Google Drive is to use `gdown` and use Google Colab because the download speeds will be very high due to the fact that they are both in Google Cloud.
```python
file_ids = [
"1AnKxGEuzjeQsDHHqL3NqI_aplq2hVL_E",
"1tt7weAT1SZknzRFyLXOT2fizceUUVRXX",
"1A64VBbsQ_z8wZ2LDox586JIyyO6mIwWc",
"1AKntx-ECnrxjB07B6BlVZcFRS4YPTB-J",
"1xUk8AAua_x27bHUr-vNoAuhEAjTxOvsu",
"1ezKTfe7BgqVN5o-8Vdtr9iAF0IueCSjP",
"1tA7bSOxR1RRNqZst8cShzhuNHnayUf7c",
"1pA3bCFA5nZDhsQutqsJcH3d712giFb0S",
"1pTLFMdN1A3ro-KYghk4w4sMz6aGaMOdU",
"1dUSnG0nUPq9TEQyHd6ZWvaxO0OpxVjXD",
"1UfCH05nuWiIPbDZxQzHHGAHyMh8dmPQH",
]
for i in file_ids:
url = f"https://drive.google.com/uc?id={i}"
!gdown $url
from datasets import load_dataset
ds = load_dataset("medical_dialog", "zh", data_dir="./")
```
## Expected results
Faster load time
## Actual results
`Generating train split: 33%: 625519/1921127 [4:31:03<31:39:20, 11.37 examples/s]`
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
@vrindaprabhu , could you take a look at this since you implemented it? I think the `_generate_examples` function might need to be rewritten | 57 | medical_dialog zh has very slow _generate_examples
## Describe the bug
After downloading the files from Google Drive, `load_dataset("medical_dialog", "zh", data_dir="./")` takes an unreasonable amount of time. Generating the train/test split for 33% of the dataset takes over 4.5 hours.
## Steps to reproduce the bug
The easiest way I've found to download files from Google Drive is to use `gdown` and use Google Colab because the download speeds will be very high due to the fact that they are both in Google Cloud.
```python
file_ids = [
"1AnKxGEuzjeQsDHHqL3NqI_aplq2hVL_E",
"1tt7weAT1SZknzRFyLXOT2fizceUUVRXX",
"1A64VBbsQ_z8wZ2LDox586JIyyO6mIwWc",
"1AKntx-ECnrxjB07B6BlVZcFRS4YPTB-J",
"1xUk8AAua_x27bHUr-vNoAuhEAjTxOvsu",
"1ezKTfe7BgqVN5o-8Vdtr9iAF0IueCSjP",
"1tA7bSOxR1RRNqZst8cShzhuNHnayUf7c",
"1pA3bCFA5nZDhsQutqsJcH3d712giFb0S",
"1pTLFMdN1A3ro-KYghk4w4sMz6aGaMOdU",
"1dUSnG0nUPq9TEQyHd6ZWvaxO0OpxVjXD",
"1UfCH05nuWiIPbDZxQzHHGAHyMh8dmPQH",
]
for i in file_ids:
url = f"https://drive.google.com/uc?id={i}"
!gdown $url
from datasets import load_dataset
ds = load_dataset("medical_dialog", "zh", data_dir="./")
```
## Expected results
Faster load time
## Actual results
`Generating train split: 33%: 625519/1921127 [4:31:03<31:39:20, 11.37 examples/s]`
## Environment info
- `datasets` version: 2.0.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
@vrindaprabhu , could you take a look at this since you implemented it? I think the `_generate_examples` function might need to be rewritten
Hi @nbroad1881 and @vrindaprabhu,
As a workaround for the performance of the parsing of the raw data files (this could be addressed in a subsequent PR), I have found that there are also processed data files, that do not require parsing. I have added these as new configurations `processed.en` and `processed.zh`:
```python
ds = load_dataset("medical_dialog", "processed.zh")
``` | [
-0.348908007144928,
0.15916025638580322,
-0.012125393375754356,
0.14690646529197693,
-0.014464449137449265,
0.18549436330795288,
0.751462996006012,
0.4728642702102661,
0.09013456106185913,
0.18660590052604675,
-0.034846678376197815,
0.04020940139889717,
-0.15930069983005524,
0.2758603096008301,
0.03563208132982254,
-0.32319140434265137,
0.04437842220067978,
0.09771783649921417,
0.1751384288072586,
-0.1978914439678192,
-0.2132176160812378,
0.07218438386917114,
-0.376753032207489,
-0.08938772976398468,
-0.19441303610801697,
-0.19546781480312347,
0.020254885777831078,
0.3633745312690735,
-0.10602281242609024,
-0.08622335642576218,
-0.18612085282802582,
0.14714205265045166,
-0.27690649032592773,
0.2836337387561798,
-0.00011654152331175283,
-0.10821108520030975,
0.1607525646686554,
0.1269361525774002,
-0.5741550922393799,
0.09077054262161255,
0.08188656717538834,
-0.0698484405875206,
-0.2172524333000183,
-0.13887913525104523,
0.0766790583729744,
-0.10259205847978592,
-0.014704985544085503,
-0.14764253795146942,
0.19093464314937592,
0.5321793556213379,
0.06734193116426468,
0.3283179998397827,
-0.5638859272003174,
-0.18364204466342926,
0.5526397228240967,
0.11430570483207703,
-0.14289407432079315,
0.4432606101036072,
0.44255122542381287,
-0.15648557245731354,
-0.08828765898942947,
0.14274540543556213,
0.1275414228439331,
-0.10041913390159607,
-0.11301102489233017,
0.34698042273521423,
0.021824553608894348,
-0.3850153088569641,
0.009748006239533424,
0.5440725684165955,
0.23942220211029053,
-0.06008254736661911,
-0.08965796232223511,
-0.4550670385360718,
0.038200344890356064,
-0.1308390200138092,
0.3160187304019928,
0.36447620391845703,
-0.37960007786750793,
-0.018019050359725952,
-0.3804852068424225,
-0.04814828559756279,
-0.0815284252166748,
0.00654340535402298,
0.15559174120426178,
-0.13572756946086884,
0.1781613528728485,
-0.07855498045682907,
0.3665282428264618,
0.1460161805152893,
0.24395623803138733,
-0.2774345278739929,
0.11395373940467834,
0.11439916491508484,
-0.37397530674934387,
-0.17541152238845825,
-0.11819230765104294,
0.195604145526886,
0.39210179448127747,
0.2261669933795929,
-0.028889138251543045,
0.03651098906993866,
0.1088242456316948,
-0.10759706050157547,
0.03946719318628311,
0.062121521681547165,
-0.22864925861358643,
0.05369003862142563,
0.3338545560836792,
0.19678768515586853,
0.04470337554812431,
0.10994399338960648,
-0.2736656963825226,
-0.4431874752044678,
0.16993016004562378,
0.05503345653414726,
-0.08265021443367004,
-0.03414197266101837,
-0.3182185888290405,
0.04712250083684921,
-0.42706117033958435,
0.12298493087291718,
0.10834494978189468,
0.28965142369270325,
-0.3459022641181946,
-0.04635578393936157,
0.06696583330631256,
0.0745844915509224,
-0.3136119842529297,
-0.19516320526599884,
-0.09684517979621887,
0.3563607633113861,
-0.22930434346199036,
0.34264642000198364,
0.21681858599185944,
0.1722649484872818,
0.04088401049375534,
0.2946353256702423,
0.21949869394302368,
0.009221784770488739,
0.1518092304468155,
-0.1871577948331833,
-0.17755794525146484,
0.07533429563045502,
0.1613275706768036,
0.07400324195623398,
-0.16247929632663727,
-0.011235244572162628,
-0.2248365581035614,
0.23599383234977722,
-0.24657419323921204,
-0.31369492411613464,
-0.09692880511283875,
0.1350831389427185,
-0.18457826972007751,
0.22915472090244293,
-0.2509782612323761,
0.061674024909734726,
-0.03246680647134781,
-0.14414462447166443,
-0.13038122653961182,
-0.3031467795372009,
-0.06417790800333023,
-0.05110257491469383,
0.35460951924324036,
0.44679582118988037,
-0.13360267877578735,
0.2504594027996063,
-0.42280313372612,
0.11807717382907867,
0.31326377391815186,
0.4671597182750702,
-0.20624791085720062,
0.6158466935157776,
-0.4800453186035156,
0.20010890066623688,
0.4849744439125061,
-0.1730082929134369,
-0.42063701152801514,
0.17837804555892944,
-0.30738967657089233,
0.08555348217487335,
0.18362468481063843,
0.11603505909442902,
0.10014351457357407,
-0.17071565985679626,
0.3048326373100281,
0.6191925406455994,
-0.18278288841247559,
0.10780986398458481,
-0.3752169609069824,
-0.340602308511734,
-0.059993915259838104,
0.3356849253177643,
0.13468433916568756,
0.2663513422012329,
-0.04274316877126694,
-0.12279725074768066,
0.5297331809997559,
-0.2935161292552948,
-0.20835717022418976,
0.07970446348190308,
0.2755379378795624,
-0.06436923146247864,
0.009470099583268166,
0.09502264112234116,
-0.5583001375198364,
0.27924272418022156,
-0.047149643301963806,
0.1287790834903717,
-0.12377390265464783,
-0.2958550453186035,
-0.21701940894126892,
-0.16858425736427307,
-0.06882895529270172,
0.15202836692333221,
0.0033023804426193237,
0.031838491559028625,
0.1520579308271408,
0.043031271547079086,
0.28083813190460205,
0.3568264842033386,
-0.049386151134967804,
0.03511708974838257,
-0.3426899313926697,
0.4784470498561859,
-0.056835681200027466,
-0.03327624872326851,
0.16159646213054657,
-0.25099655985832214,
-0.0252845361828804,
-0.23570974171161652,
-0.10979804396629333,
0.34773457050323486,
0.16307246685028076,
0.3984302878379822,
-0.06275372207164764,
0.13263891637325287,
0.13850396871566772,
-0.01710725948214531,
0.40901365876197815,
-0.13940532505512238,
0.015776369720697403,
-0.018464993685483932,
-0.41836321353912354,
0.2589688301086426,
-0.1481001228094101,
0.1307545006275177,
0.17188382148742676,
0.14032769203186035,
-0.17805956304073334,
-0.11765778064727783,
0.25288254022598267,
0.052598319947719574,
0.35039710998535156,
0.38307008147239685,
0.5327192544937134,
0.04272139072418213,
-0.36508217453956604,
0.5485998392105103,
0.8282884955406189,
-0.42751815915107727,
-0.004603751003742218,
0.16421818733215332,
-0.13590890169143677,
-0.3685544729232788,
-0.05864938348531723,
0.27853989601135254,
0.39296847581863403,
0.16797834634780884,
0.15633858740329742,
0.23232001066207886,
-0.05890312045812607,
-0.2694709300994873,
0.20105856657028198,
0.055438585579395294,
0.17981719970703125,
0.3483024835586548,
-0.028402702882885933,
0.006572149693965912,
-0.28997549414634705,
-0.11876937747001648,
0.0009265812113881111,
0.3220004737377167,
-0.3624788522720337,
0.21556776762008667,
0.14375989139080048,
0.45266473293304443,
-0.1947408765554428,
0.0776882991194725,
0.13216064870357513,
-0.29144591093063354,
0.09662499278783798,
0.16629157960414886,
-0.010485604405403137,
0.04966163635253906,
0.1444787085056305,
0.33695143461227417,
0.10925284028053284,
-0.33185887336730957,
-0.3410986363887787,
-0.03097504749894142,
-0.2844860851764679,
0.07285161316394806,
0.14525054395198822,
0.251299113035202,
0.23408401012420654,
-0.3639236092567444,
-0.3320927619934082,
-0.13686774671077728,
-0.022814229130744934,
0.13351762294769287,
-0.011564183980226517,
0.5992295145988464,
0.23565174639225006,
0.2099008411169052,
-0.01762658916413784,
-0.1758408397436142,
0.09259480237960815,
-0.12002777308225632,
-0.11452622711658478,
0.01373361423611641,
-0.1253652721643448,
0.13042473793029785,
0.016610193997621536,
-0.5700879693031311,
-0.09091383218765259,
-0.1616540104150772,
0.09283550083637238,
-0.2716764211654663,
0.21939583122730255,
0.41310015320777893,
0.19604374468326569,
0.18007948994636536,
0.47719481587409973,
-0.08964215964078903,
-0.18386539816856384,
-0.14112159609794617,
0.4323437511920929,
-0.15069489181041718,
-0.25708770751953125,
-0.4386986196041107,
-0.34226036071777344,
-0.31775832176208496,
0.502710223197937,
-0.5312046408653259,
-0.1038651093840599,
-0.53107088804245,
0.22970592975616455,
-0.18673567473888397,
-0.3018683195114136,
0.34854036569595337,
0.006004951428622007,
-0.06838713586330414,
-0.156492680311203,
0.0904293805360794,
0.20810893177986145,
0.08658087253570557,
0.007870815694332123,
-0.03575761243700981,
0.43160802125930786,
-0.05500585958361626,
0.5898112654685974,
0.24048960208892822,
0.17866599559783936,
-0.09800377488136292,
-0.1974201798439026,
0.0688566341996193,
-0.05840276926755905,
-0.15886953473091125,
0.20016226172447205,
-0.0678703635931015,
-0.3533017039299011,
0.28913289308547974,
-0.09791284799575806,
-0.11889468878507614,
0.04249124974012375,
-0.1345607340335846,
-0.3022227883338928,
-0.49092718958854675,
0.20712529122829437,
-0.08076654374599457,
-0.03932752460241318,
-0.06089182570576668,
0.25359320640563965,
-0.17432567477226257,
-0.10505795478820801,
0.2952152192592621,
0.03896750509738922,
0.0678449347615242,
-0.15798410773277283,
0.09084472060203552,
0.061720896512269974,
-0.5152743458747864,
-0.038530781865119934,
0.17118360102176666,
0.016855513677001,
0.007084544748067856,
-0.08040638267993927,
0.15888948738574982,
-0.2429131120443344,
0.6400907039642334,
-0.3143634796142578,
0.40281063318252563,
0.0910862386226654,
0.17671804130077362,
-0.12730129063129425,
-0.14691974222660065,
-0.2945156395435333,
-0.018367718905210495,
0.278083473443985,
0.44598302245140076,
-0.13498196005821228,
-0.22559483349323273,
0.6028354167938232,
0.4511711895465851,
-0.02904980629682541,
-0.014024008065462112,
0.04138845577836037,
-0.40112337470054626,
0.024114398285746574,
0.10564163327217102,
-0.007683403789997101,
0.10583465546369553,
-0.1118207722902298,
-0.1834522783756256,
0.3449707627296448,
-0.04585025832056999,
0.23518218100070953,
0.19516116380691528,
0.16244849562644958,
-0.22494615614414215,
0.34239667654037476,
0.1401800811290741,
-0.10641266405582428,
0.25367215275764465,
0.47308242321014404,
-0.0951184630393982,
-0.12171080708503723,
0.049431972205638885,
-0.18465839326381683,
0.031082123517990112,
0.6260277032852173,
-0.07773951441049576,
-0.1814606487751007,
-0.13031888008117676,
0.4477701187133789,
-0.11189575493335724,
0.34347620606422424,
0.5588801503181458,
-0.24880154430866241,
-0.3617478013038635,
-0.42473888397216797,
0.5244214534759521,
0.11962969601154327,
-0.20553937554359436,
0.4544985890388489,
-0.027470014989376068,
-0.2544313669204712,
0.1665562242269516,
0.06712843477725983,
0.979854941368103,
-0.09728178381919861,
0.11178784817457199,
0.49900293350219727,
-0.00769689679145813,
0.09927892684936523,
-0.24154578149318695,
0.197271928191185,
-0.5013417601585388,
-0.2936221957206726,
0.20599476993083954,
-0.28456103801727295,
-0.07675469666719437,
0.19539481401443481,
-0.23288550972938538,
-0.08451028168201447,
-0.506952166557312,
0.16198258101940155,
-0.11316810548305511,
0.30577054619789124,
-0.20317000150680542,
-0.07403387129306793,
0.017760707065463066,
0.023797031491994858,
0.10227920114994049,
-0.0601719431579113,
-0.030604923143982887,
-0.08894643187522888,
-0.442668616771698,
-0.09432253241539001,
-0.29010647535324097,
0.35871315002441406,
-0.4322007894515991,
-0.006357032805681229,
-0.35163381695747375,
-0.45087605714797974,
0.16353219747543335,
0.18770046532154083,
0.10608420521020889,
0.275589257478714,
-0.08715125173330307,
0.5035417675971985,
-0.18607380986213684,
0.08423293381929398,
0.28300580382347107,
-0.3422095775604248,
0.4233291745185852,
-0.051445506513118744,
-0.3140651285648346,
-0.1547919511795044,
-0.0796830803155899,
-0.08879221230745316,
-0.2420772910118103,
-0.20050998032093048,
-0.16980616748332977,
-0.08318749070167542,
-0.0013902843929827213,
0.04256000742316246,
-0.07291319966316223,
-0.22479628026485443,
0.08453981578350067,
0.023868754506111145,
0.0474199540913105,
0.3639705181121826,
-0.21765701472759247,
-0.27614036202430725,
-0.17265577614307404,
-0.005139805376529694,
0.13144680857658386,
0.2138383984565735,
0.41737425327301025,
0.19155704975128174,
-0.19171153008937836,
-0.32633236050605774,
0.15191051363945007,
0.2733619511127472,
-0.4569133520126343,
0.3379095196723938,
-0.39225101470947266,
0.145608589053154,
-0.025442475453019142,
0.26255133748054504,
-0.06191309541463852,
-0.21598482131958008,
-0.017653558403253555,
-0.3215318024158478,
-0.12081997841596603,
0.014481253921985626,
0.13381992280483246,
0.22281020879745483,
-0.015488855540752411,
-0.00434965081512928,
-0.10813729465007782,
-0.06932882964611053,
-0.27949249744415283,
0.13669532537460327,
-0.05438758432865143,
0.035373587161302567,
-0.07494429498910904,
-0.1961606740951538,
0.5697609186172485,
-0.14194509387016296,
0.1430976390838623,
-0.2085786908864975,
-0.061808690428733826,
-0.17297840118408203,
-0.2202123999595642,
0.11429668217897415,
-0.12709727883338928,
-0.18695545196533203,
0.2765199542045593,
-0.04464741051197052,
-0.25399017333984375,
-0.22869116067886353,
0.4115813076496124,
0.04444471001625061,
0.08501245826482773,
-0.14052553474903107,
-0.05152809992432594,
0.00415097177028656,
-0.15511521697044373,
-0.0035164393484592438,
-0.2853984832763672,
0.21398958563804626,
0.08951941132545471,
0.12272728234529495,
0.17570260167121887,
-0.13951042294502258,
-0.16369611024856567,
0.14412936568260193,
0.10219044238328934,
-0.0007852241396903992,
0.37983909249305725,
-0.15745984017848969,
-0.07675515115261078,
-0.13502880930900574,
0.15953458845615387,
0.6011941432952881,
-0.05021453648805618,
-0.17268380522727966,
0.146854430437088,
0.11557409167289734,
-0.1655874401330948,
-0.1912177950143814,
0.06827637553215027,
-0.40273743867874146,
0.05506599321961403,
0.3265892267227173,
0.037468064576387405,
0.21577227115631104,
-0.38498610258102417,
-0.13474641740322113,
0.4906577467918396,
0.2824521064758301,
0.02299230545759201,
0.5994632840156555,
-0.009540237486362457,
0.024642210453748703,
0.02497408725321293,
0.09448131918907166,
0.1540628969669342,
0.303529292345047,
-0.10844814032316208,
-0.015235358849167824,
-0.26472917199134827,
0.12619566917419434,
-0.024520955979824066,
-0.12260442972183228,
0.10778293758630753,
0.5035091638565063,
-0.5375747680664062,
-0.010340593755245209,
0.007902339100837708,
0.08113796263933182,
-0.3336227834224701,
-0.13531692326068878,
-0.4395107924938202,
0.11024391651153564,
-0.013535890728235245,
0.1564561277627945,
0.048812560737133026,
-0.17910298705101013,
-0.46493563055992126,
0.3786625266075134,
0.07531426846981049,
0.059890929609537125,
0.010323546826839447,
0.20300263166427612,
0.16955342888832092,
0.24033226072788239,
-0.05944553762674332,
0.049154140055179596,
0.17301607131958008,
-0.4550519585609436,
-0.2099044770002365,
-0.12289176881313324,
-0.15993215143680573,
-0.10154859721660614,
0.029884614050388336,
0.3082180321216583,
0.16874639689922333,
-0.1746852546930313,
-0.38613250851631165,
-0.06252749264240265,
0.05508706718683243,
0.07414349168539047,
0.061346594244241714,
0.25987905263900757,
0.15965858101844788,
0.1800612062215805,
0.01437750831246376,
-0.20335660874843597,
0.029524289071559906,
0.07564699649810791,
-0.30219128727912903,
-0.3489222228527069,
0.06010512262582779,
-0.08408332616090775,
-0.20056021213531494,
-0.36630067229270935,
-0.23086193203926086,
-0.052001189440488815,
-0.3130169212818146,
0.055060163140296936,
0.04176504164934158,
0.17045405507087708,
0.09262582659721375,
0.06260177493095398,
-0.00939035415649414,
0.6610970497131348,
0.2348160743713379,
0.21497279405593872,
-0.12013725191354752,
-0.2353084534406662,
-0.41877979040145874,
-0.18515005707740784,
-0.305776983499527,
0.11523352563381195,
0.12337662279605865,
0.05181843042373657,
0.02746095508337021,
0.19004356861114502,
0.26872122287750244,
0.4745033383369446,
-0.1245623230934143,
0.18694224953651428,
-0.2507311701774597,
-0.058720726519823074,
-0.10185635089874268,
-0.18115511536598206,
-0.22471287846565247,
-0.5875436663627625,
0.20395445823669434,
-0.06692217290401459,
-0.020889446139335632,
-0.06702806055545807,
-0.020979218184947968,
0.1506633758544922,
-0.054118432104587555,
0.6257712244987488,
0.153652161359787,
0.28698408603668213,
-0.07175761461257935,
-0.36428704857826233,
-0.20238447189331055,
0.22356607019901276,
-0.041511259973049164,
0.011175088584423065,
0.14770182967185974,
0.07081089168787003,
0.25528380274772644,
0.0637948140501976,
-0.26440367102622986,
0.3993673026561737,
0.2948497533798218,
-0.11918905377388,
-0.23930081725120544,
0.02487511746585369,
0.036238014698028564,
0.3085393011569977,
0.2588203251361847,
0.09446824342012405,
-0.26350730657577515,
0.12450498342514038,
-0.3799065947532654,
-0.15939196944236755,
0.38653135299682617,
-0.2096347212791443,
-0.18089605867862701,
-0.2554894685745239,
0.43867579102516174,
0.06999114155769348,
0.23083113133907318,
-0.1364298164844513,
0.048410676419734955,
0.14407750964164734,
0.01312975026667118,
-0.10776303708553314,
0.3945748805999756,
0.2957492768764496,
-0.03704103082418442,
0.08966532349586487,
0.20072287321090698,
-0.21484193205833435,
-0.2825135588645935,
0.00044248253107070923,
-0.14363762736320496
] |
https://github.com/huggingface/datasets/issues/4121 | datasets.load_metric can not load a local metirc | Hello, could you tell me how this issue can be fixed? I'm coming across the same issue. | ## Describe the bug
No matter how I hard try to tell load_metric that I want to load a local metric file, it still continues to fetch things on the Internet. And unfortunately it says 'ConnectionError: Couldn't reach'. However I can download this file without connectionerror and tell load_metric its local directory. And it comes back where it begins...
## Steps to reproduce the bug
```python
metric = load_metric(path=r'C:\Users\Gare\PycharmProjects\Gare\blue\bleu.py')
ConnectionError: Couldn't reach https://github.com/tensorflow/nmt/raw/master/nmt/scripts/bleu.py
metric = load_metric(path='bleu')
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.12.1/metrics/bleu/bleu.py
metric = load_metric(path='./blue/bleu.py')
ConnectionError: Couldn't reach https://github.com/tensorflow/nmt/raw/master/nmt/scripts/bleu.py
```
## Expected results
I do read the docs [here](https://huggingface.co/docs/datasets/package_reference/loading_methods#datasets.load_metric). There are no other parameters that help function to distinguish from local and online file but path. As what I code above, it should load from local.
## Actual results
> metric = load_metric(path=r'C:\Users\Gare\PycharmProjects\Gare\blue\bleu.py')
> ~\AppData\Local\Temp\ipykernel_19636\1855752034.py in <module>
----> 1 metric = load_metric(path=r'C:\Users\Gare\PycharmProjects\Gare\blue\bleu.py')
D:\Program Files\Anaconda\envs\Gare\lib\site-packages\datasets\load.py in load_metric(path, config_name, process_id, num_process, cache_dir, experiment_id, keep_in_memory, download_config, download_mode, script_version, **metric_init_kwargs)
817 if data_files is None and data_dir is not None:
818 data_files = os.path.join(data_dir, "**")
--> 819
820 self.name = name
821 self.revision = revision
D:\Program Files\Anaconda\envs\Gare\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, dynamic_modules_path, return_resolved_file_path, return_associated_base_path, data_files, **download_kwargs)
639 self,
640 path: str,
--> 641 download_config: Optional[DownloadConfig] = None,
642 download_mode: Optional[DownloadMode] = None,
643 dynamic_modules_path: Optional[str] = None,
D:\Program Files\Anaconda\envs\Gare\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
297 token = hf_api.HfFolder.get_token()
298 if token:
--> 299 headers["authorization"] = f"Bearer {token}"
300 return headers
301
D:\Program Files\Anaconda\envs\Gare\lib\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, max_retries, use_auth_token)
604 def _resumable_file_manager():
605 with open(incomplete_path, "a+b") as f:
--> 606 yield f
607
608 temp_file_manager = _resumable_file_manager
ConnectionError: Couldn't reach https://github.com/tensorflow/nmt/raw/master/nmt/scripts/bleu.py
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Windows-10-10.0.22000-SP0
- Python version: 3.7.13
- PyArrow version: 7.0.0
- Pandas version: 1.3.4
Any advice would be appreciated. | 17 | datasets.load_metric can not load a local metirc
## Describe the bug
No matter how I hard try to tell load_metric that I want to load a local metric file, it still continues to fetch things on the Internet. And unfortunately it says 'ConnectionError: Couldn't reach'. However I can download this file without connectionerror and tell load_metric its local directory. And it comes back where it begins...
## Steps to reproduce the bug
```python
metric = load_metric(path=r'C:\Users\Gare\PycharmProjects\Gare\blue\bleu.py')
ConnectionError: Couldn't reach https://github.com/tensorflow/nmt/raw/master/nmt/scripts/bleu.py
metric = load_metric(path='bleu')
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.12.1/metrics/bleu/bleu.py
metric = load_metric(path='./blue/bleu.py')
ConnectionError: Couldn't reach https://github.com/tensorflow/nmt/raw/master/nmt/scripts/bleu.py
```
## Expected results
I do read the docs [here](https://huggingface.co/docs/datasets/package_reference/loading_methods#datasets.load_metric). There are no other parameters that help function to distinguish from local and online file but path. As what I code above, it should load from local.
## Actual results
> metric = load_metric(path=r'C:\Users\Gare\PycharmProjects\Gare\blue\bleu.py')
> ~\AppData\Local\Temp\ipykernel_19636\1855752034.py in <module>
----> 1 metric = load_metric(path=r'C:\Users\Gare\PycharmProjects\Gare\blue\bleu.py')
D:\Program Files\Anaconda\envs\Gare\lib\site-packages\datasets\load.py in load_metric(path, config_name, process_id, num_process, cache_dir, experiment_id, keep_in_memory, download_config, download_mode, script_version, **metric_init_kwargs)
817 if data_files is None and data_dir is not None:
818 data_files = os.path.join(data_dir, "**")
--> 819
820 self.name = name
821 self.revision = revision
D:\Program Files\Anaconda\envs\Gare\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, dynamic_modules_path, return_resolved_file_path, return_associated_base_path, data_files, **download_kwargs)
639 self,
640 path: str,
--> 641 download_config: Optional[DownloadConfig] = None,
642 download_mode: Optional[DownloadMode] = None,
643 dynamic_modules_path: Optional[str] = None,
D:\Program Files\Anaconda\envs\Gare\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
297 token = hf_api.HfFolder.get_token()
298 if token:
--> 299 headers["authorization"] = f"Bearer {token}"
300 return headers
301
D:\Program Files\Anaconda\envs\Gare\lib\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, max_retries, use_auth_token)
604 def _resumable_file_manager():
605 with open(incomplete_path, "a+b") as f:
--> 606 yield f
607
608 temp_file_manager = _resumable_file_manager
ConnectionError: Couldn't reach https://github.com/tensorflow/nmt/raw/master/nmt/scripts/bleu.py
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Windows-10-10.0.22000-SP0
- Python version: 3.7.13
- PyArrow version: 7.0.0
- Pandas version: 1.3.4
Any advice would be appreciated.
Hello, could you tell me how this issue can be fixed? I'm coming across the same issue. | [
-0.43607208132743835,
-0.25002849102020264,
0.045437175780534744,
0.31342869997024536,
0.335332453250885,
-0.10281243175268173,
0.11066104471683502,
0.06994546949863434,
0.4024757742881775,
0.3041216731071472,
-0.22247745096683502,
0.04708149656653404,
0.13640356063842773,
0.02875404991209507,
0.11443068832159042,
-0.06341391056776047,
-0.2380639910697937,
-0.09421311318874359,
-0.24401134252548218,
-0.08075816929340363,
-0.2564903497695923,
0.3224560022354126,
-0.26620107889175415,
0.1130686029791832,
-0.23065342009067535,
0.1947479099035263,
0.13729287683963776,
0.3816700279712677,
-0.4074923098087311,
-0.34302982687950134,
0.5214835405349731,
-0.051793355494737625,
0.25484874844551086,
0.6257268190383911,
-0.0001234833471244201,
0.19409732520580292,
0.4165821671485901,
-0.12519539892673492,
-0.23134829103946686,
-0.7160577774047852,
0.0010024309158325195,
-0.3092879056930542,
0.32353800535202026,
-0.08778023719787598,
-0.010397369042038918,
0.007911362685263157,
0.0360603891313076,
-0.14896902441978455,
0.2782582640647888,
0.5394917726516724,
0.058919716626405716,
0.5593750476837158,
-0.0838392898440361,
-0.20764972269535065,
-0.2083016037940979,
0.03934067115187645,
-0.09417983889579773,
1.1077070236206055,
0.13528499007225037,
-0.16760830581188202,
-0.06903884559869766,
-0.1697951704263687,
-0.09584569931030273,
0.3174866735935211,
0.4857325851917267,
0.023707590997219086,
0.27765071392059326,
-0.05628127604722977,
0.039241813123226166,
0.23189932107925415,
0.3381688594818115,
-0.22025808691978455,
-0.23883163928985596,
-0.013579122722148895,
-0.13887019455432892,
-0.24347783625125885,
0.3817349374294281,
-0.10879722982645035,
-0.34699657559394836,
0.16815821826457977,
-0.5347484946250916,
-0.1338258683681488,
-0.24271254241466522,
0.3849400281906128,
-0.40061455965042114,
0.13677850365638733,
-0.21515321731567383,
0.18309834599494934,
0.11676503717899323,
0.26901495456695557,
-0.16749998927116394,
-0.006456354632973671,
0.2025284469127655,
0.22754091024398804,
-0.2602602243423462,
0.2353038191795349,
0.07325759530067444,
-0.08308175951242447,
0.19283521175384521,
-0.09881889820098877,
0.09259479492902756,
0.0049334801733493805,
-0.10375840216875076,
0.2590649724006653,
0.09691514074802399,
0.3287670910358429,
0.1382187008857727,
0.052646126598119736,
0.2584604024887085,
0.28671103715896606,
-0.0910772979259491,
-0.07808350026607513,
0.00262338574975729,
-0.20553383231163025,
-0.19783328473567963,
-0.004737537354230881,
0.24096931517124176,
-0.2680773437023163,
-0.28280672430992126,
0.05286901444196701,
0.08018907159566879,
-0.05140303820371628,
0.2009173482656479,
0.39991867542266846,
-0.3009008467197418,
0.01750415563583374,
0.12682537734508514,
0.1797098070383072,
-0.3014791011810303,
0.06773345917463303,
-0.18089380860328674,
-0.13971735537052155,
-0.2246646136045456,
0.24357648193836212,
0.22714249789714813,
-0.29570770263671875,
0.3305920660495758,
-0.006653035990893841,
0.24650344252586365,
-0.2251952439546585,
-0.11066125333309174,
0.005840105935931206,
-0.109075628221035,
0.2588895857334137,
-0.16957736015319824,
0.18955570459365845,
0.3212447464466095,
-0.15811485052108765,
-0.11508266627788544,
-0.1764022707939148,
-0.581973671913147,
-0.2980329692363739,
0.05671616643667221,
0.03527786582708359,
-0.26106685400009155,
0.01893872395157814,
-0.268596351146698,
-0.035356324166059494,
-0.05272828787565231,
-0.14636459946632385,
-0.128840833902359,
0.022780155763030052,
-0.6247536540031433,
-0.08502476662397385,
0.49424615502357483,
0.3676351308822632,
-0.1778193563222885,
-0.30125558376312256,
-0.03534179925918579,
-0.12032793462276459,
0.09779231995344162,
0.2557204067707062,
-0.22906088829040527,
0.5340215563774109,
-0.2852139472961426,
-0.11064018309116364,
0.47086483240127563,
-0.6967636942863464,
-0.48731276392936707,
0.4433355927467346,
-0.27089279890060425,
-0.005567474290728569,
-0.15132853388786316,
-0.19569317996501923,
0.11861518770456314,
0.03419540822505951,
0.5403711795806885,
0.23047667741775513,
-0.015757238492369652,
-0.14003407955169678,
-0.23909445106983185,
-0.27844056487083435,
-0.04720050096511841,
0.060749780386686325,
0.27903690934181213,
0.29075750708580017,
0.2714465260505676,
0.02577698975801468,
0.3090471923351288,
0.1708640605211258,
-0.15296536684036255,
0.19355468451976776,
0.005277115851640701,
-0.18796096742153168,
0.1033538430929184,
-0.3714721202850342,
-0.32406601309776306,
0.3912448287010193,
-0.20020240545272827,
0.06888272613286972,
-0.03214260935783386,
-0.013230647891759872,
-0.5151025652885437,
0.08261057734489441,
-0.05025244131684303,
0.06561145931482315,
-0.11199542880058289,
0.0009168311953544617,
-0.00588371604681015,
0.30997732281684875,
-0.38065892457962036,
0.03324112668633461,
-0.3481011390686035,
0.12999491393566132,
-0.1095474511384964,
0.22819605469703674,
0.18436001241207123,
0.03411288559436798,
0.01943812146782875,
0.0956527590751648,
0.2599756419658661,
-0.2803640067577362,
-0.2777707576751709,
0.33253756165504456,
-0.01900116540491581,
0.19126978516578674,
-0.07050571590662003,
0.2104939967393875,
0.34067362546920776,
-0.1097572073340416,
-0.11492312699556351,
0.007863475009799004,
0.07995623350143433,
0.003912493586540222,
-0.06544146686792374,
0.3106972575187683,
-0.02464737370610237,
0.34053707122802734,
-0.05379166826605797,
-0.06619060039520264,
0.24106338620185852,
0.02164459601044655,
-0.0328790545463562,
-0.10283273458480835,
0.44057464599609375,
-0.010351350530982018,
0.0613747201859951,
-0.05601795017719269,
-0.05314222350716591,
-0.119979627430439,
0.23479165136814117,
0.060539890080690384,
-0.030103564262390137,
0.08111804723739624,
0.012822918593883514,
0.0009324345737695694,
0.015859099105000496,
-0.03305840119719505,
0.5241871476173401,
0.03494726121425629,
0.05875733494758606,
0.31727588176727295,
-0.16178272664546967,
-0.30612871050834656,
-0.1197892501950264,
0.13645154237747192,
-0.09847411513328552,
0.4119870364665985,
0.03530072048306465,
-0.007964917458593845,
-0.12991812825202942,
0.17345327138900757,
-0.05950598418712616,
0.18103338778018951,
-0.4732026159763336,
0.22511929273605347,
-0.40578651428222656,
0.05722176283597946,
-0.14194349944591522,
-0.23288661241531372,
-0.3743073344230652,
-0.1478210687637329,
-0.21356511116027832,
0.454479843378067,
0.1935855895280838,
0.09646573662757874,
0.20568861067295074,
0.3100008964538574,
-0.0016213394701480865,
-0.3411272466182709,
-0.1174238920211792,
-0.157025545835495,
-0.181045264005661,
-0.11978879570960999,
0.4251774847507477,
0.08883170783519745,
0.21401242911815643,
-0.3380284905433655,
-0.05611598491668701,
-0.14751070737838745,
-0.06447075307369232,
0.20452460646629333,
0.2633996903896332,
0.7180958986282349,
0.029011018574237823,
0.18232226371765137,
-0.24562737345695496,
0.18253423273563385,
0.42879951000213623,
-0.14993347227573395,
-0.0034944023936986923,
0.12932543456554413,
-0.13475282490253448,
0.01202360913157463,
-0.12251423299312592,
-0.2376071810722351,
-0.3088928759098053,
-0.40979334712028503,
0.2699609100818634,
-0.04853527247905731,
0.07321428507566452,
0.15840207040309906,
0.0016620997339487076,
0.2531582713127136,
-0.06574913114309311,
0.08122853189706802,
-0.15084517002105713,
-0.6651354432106018,
0.17093846201896667,
-0.32338622212409973,
-0.5244196653366089,
0.001643408089876175,
0.27916455268859863,
0.32806992530822754,
0.19971980154514313,
-0.512715220451355,
-0.43396860361099243,
0.11115383356809616,
0.3309994041919708,
0.1718035489320755,
-0.11343495547771454,
0.21822580695152283,
-0.49779269099235535,
0.11808402836322784,
-0.06534372270107269,
-0.05482129752635956,
0.19764141738414764,
0.11727822571992874,
0.15199339389801025,
0.14793609082698822,
0.3670102059841156,
-0.202566459774971,
0.6636903882026672,
0.0625007152557373,
-0.03297143802046776,
0.3052058815956116,
-0.14106108248233795,
0.39794713258743286,
-0.20953547954559326,
-0.37501412630081177,
0.030357567593455315,
0.059950150549411774,
-0.1843394637107849,
0.19187402725219727,
0.1056533232331276,
0.3279699385166168,
-0.43249809741973877,
-0.3075306713581085,
-0.16831834614276886,
-0.29124993085861206,
0.040647901594638824,
0.08492940664291382,
0.16119244694709778,
0.08696046471595764,
0.1402374505996704,
-0.0144807742908597,
-0.08625946193933487,
0.10964567959308624,
0.6868423223495483,
0.079903244972229,
0.19655129313468933,
-0.10965791344642639,
-0.06944741308689117,
-0.33686384558677673,
0.08101151883602142,
0.09074674546718597,
0.5274916887283325,
-0.3722907602787018,
0.2800169885158539,
0.0946626141667366,
0.024739500135183334,
0.45256519317626953,
0.02088705450296402,
0.18437127768993378,
-0.021821612492203712,
-0.14674639701843262,
-0.6941295862197876,
0.061697300523519516,
0.2687186598777771,
0.18017388880252838,
0.02788095362484455,
0.8768087029457092,
-0.002685844898223877,
-0.3068869113922119,
0.004918372258543968,
0.20709633827209473,
-0.3258761763572693,
-0.4333365261554718,
-0.34307965636253357,
-0.22671794891357422,
-0.15669414401054382,
-0.142412006855011,
-0.10425213724374771,
0.18624110519886017,
0.2373092919588089,
-0.08280216157436371,
-0.005373667925596237,
0.1180771067738533,
0.041502367705106735,
-0.10305127501487732,
-0.03242555260658264,
-0.121540367603302,
0.12443602085113525,
0.4462399482727051,
0.1362016648054123,
0.008528687991201878,
0.48655158281326294,
-0.13138051331043243,
-0.521233856678009,
0.25100472569465637,
0.20499782264232635,
0.007863469421863556,
0.2715822458267212,
-0.1369001269340515,
-0.09115500003099442,
0.36259040236473083,
0.047702357172966,
-0.3548811376094818,
0.45942530035972595,
-0.06574894487857819,
0.0693972110748291,
-0.2173803299665451,
-0.32063689827919006,
0.5679830312728882,
-0.09767104685306549,
-0.0354008674621582,
0.46517255902290344,
-0.03556251525878906,
-0.08984704315662384,
-0.11543601751327515,
-0.04886513203382492,
0.771670401096344,
-0.18203221261501312,
-0.24627622961997986,
0.3692121207714081,
0.011701785027980804,
0.2953779995441437,
-0.4020889401435852,
0.05579230561852455,
-0.07428368926048279,
-0.1449371874332428,
-0.16550898551940918,
-0.110939159989357,
-0.07974535971879959,
-0.27932900190353394,
0.21134191751480103,
0.3398306667804718,
-0.0955449715256691,
0.20915460586547852,
0.1966727375984192,
0.28018417954444885,
-0.0017637498676776886,
-0.06579874455928802,
-0.24990496039390564,
0.045109182596206665,
-0.09983475506305695,
0.4393492341041565,
-0.05807799845933914,
-0.08620849996805191,
-0.13224276900291443,
-0.0008160211145877838,
0.05052347481250763,
-0.10373935848474503,
-0.25829750299453735,
0.09176243096590042,
0.18807075917720795,
-0.03785797208547592,
-0.26678723096847534,
0.392009437084198,
0.2199312299489975,
-0.020144399255514145,
-0.4447241723537445,
0.03766794130206108,
-0.5858998894691467,
-0.07869378477334976,
0.033439312130212784,
-0.11882735788822174,
0.11598626524209976,
-0.2211724817752838,
-0.18432514369487762,
-0.08792690187692642,
-0.023811979219317436,
-0.08987554907798767,
0.27744007110595703,
0.1553196907043457,
0.21156835556030273,
0.07961079478263855,
-0.031125547364354134,
-0.1858765184879303,
0.28517061471939087,
-0.012425165623426437,
0.0044642118737101555,
0.05612874776124954,
-0.002187181729823351,
-0.04708336293697357,
0.1589818000793457,
-0.4131891131401062,
0.044274598360061646,
0.715891420841217,
-0.23387134075164795,
-0.42140746116638184,
0.06491966545581818,
0.029812980443239212,
-0.10684964060783386,
-0.06834614276885986,
0.004915349185466766,
0.1455204039812088,
-0.3285631239414215,
0.05700884014368057,
0.06680212169885635,
0.33650273084640503,
-0.11260735988616943,
0.4438908100128174,
0.40783393383026123,
-0.5733879208564758,
-0.13735704123973846,
-0.6253455877304077,
-0.3392970561981201,
0.05407854542136192,
-0.07816463708877563,
-0.1589338183403015,
0.040191635489463806,
0.11975495517253876,
0.11165376007556915,
-0.01762503571808338,
-0.13566941022872925,
0.0688604786992073,
-0.12424085289239883,
-0.12577420473098755,
0.3678542673587799,
0.06512829661369324,
0.3966159224510193,
-0.11810170114040375,
-0.12328147888183594,
0.13618692755699158,
-0.3603661358356476,
-0.07420311868190765,
-0.20725445449352264,
0.2052389532327652,
0.0577220693230629,
-0.08974701166152954,
0.11852895468473434,
-0.18084311485290527,
-0.007094958797097206,
-0.18454426527023315,
0.005494162440299988,
0.3908352553844452,
-0.1075909286737442,
-0.03938257694244385,
0.04893279820680618,
0.3308148682117462,
-0.009184112772345543,
0.3760700225830078,
0.20601463317871094,
0.3267504572868347,
-0.08036612719297409,
0.028523921966552734,
-0.12069498747587204,
0.014720752835273743,
-0.047471918165683746,
-0.0034368038177490234,
0.14345605671405792,
-0.09362692385911942,
0.3088608384132385,
-0.13966494798660278,
0.16883346438407898,
0.015826834365725517,
0.23454886674880981,
0.17422708868980408,
-0.21888980269432068,
-0.002792922779917717,
0.1670544147491455,
0.025571633130311966,
0.009233899414539337,
-0.030817832797765732,
0.20477241277694702,
0.16261784732341766,
-0.05360700190067291,
0.010434925556182861,
0.12120401859283447,
-0.43375545740127563,
-0.08569255471229553,
0.08638551831245422,
0.44827812910079956,
-0.06313399225473404,
-0.016306472942233086,
-0.018412437289953232,
0.09510405361652374,
0.3332628905773163,
0.2587588429450989,
0.08562472462654114,
0.19972363114356995,
0.30391666293144226,
-0.17745599150657654,
0.13380111753940582,
-0.18738910555839539,
0.40623387694358826,
-0.02342897653579712,
-0.3079586923122406,
0.22089192271232605,
0.12527354061603546,
-0.33996668457984924,
-0.09735483676195145,
-0.20994538068771362,
0.5009843111038208,
-0.32941386103630066,
-0.03751178830862045,
-0.19224455952644348,
0.05981672555208206,
0.022725634276866913,
-0.0035133203491568565,
-0.25238069891929626,
-0.25749391317367554,
0.11538898944854736,
0.005329787731170654,
0.12548129260540009,
0.034524641931056976,
0.03455442562699318,
-0.009955048561096191,
-0.15256784856319427,
-0.0709802657365799,
-0.49263566732406616,
0.39696329832077026,
-0.17121180891990662,
-0.1835351288318634,
0.31871938705444336,
0.07151268422603607,
0.14699414372444153,
0.13619902729988098,
0.15519237518310547,
0.23381385207176208,
0.27571022510528564,
0.12272903323173523,
0.15257322788238525,
-0.001231985166668892,
0.06173475831747055,
0.009837906807661057,
0.38301390409469604,
-0.01657102257013321,
0.078219473361969,
0.2541911005973816,
0.10008090734481812,
-0.07157399505376816,
0.3509904742240906,
-0.21058528125286102,
0.22433897852897644,
-0.34296050667762756,
0.2839204668998718,
-0.08715774118900299,
0.13035911321640015,
-0.15219302475452423,
-0.0878949984908104,
-0.45741844177246094,
0.20862659811973572,
0.40712183713912964,
-0.030241115018725395,
0.24698030948638916,
-0.09536322206258774,
0.010252658277750015,
-0.13347569108009338,
0.3350638449192047,
0.27010712027549744,
0.45880159735679626,
-0.22443896532058716,
-0.11192665994167328,
-0.6743904948234558,
0.08816822618246078,
0.2489466518163681,
0.31344595551490784,
0.18697470426559448,
0.007249839603900909,
-0.2153489589691162,
0.258061021566391,
-0.08226875960826874,
0.0711911991238594,
0.10501626133918762,
-0.008507944643497467,
-0.1471177637577057,
-0.25896820425987244,
-0.41674256324768066,
0.03987708315253258,
0.012236855924129486,
-0.33118587732315063,
0.26908358931541443,
-0.5573644042015076,
-0.08614927530288696,
-0.07425465434789658,
-0.0026761069893836975,
0.03930774703621864,
0.16640499234199524,
0.38883861899375916,
0.1283629834651947,
0.5766215324401855,
0.024643365293741226,
0.012595770880579948,
-0.18523773550987244,
-0.026815170422196388,
-0.0717809796333313,
0.05431978404521942,
-0.2285049557685852,
0.15666820108890533,
-0.2904038727283478,
-0.133156418800354,
-0.4334471523761749,
0.4035140872001648,
0.00039051100611686707,
-0.34110918641090393,
-0.05627177655696869,
-0.21297772228717804,
-0.16090452671051025,
-0.012540328316390514,
0.05651313439011574,
0.15377070009708405,
0.17017868161201477,
0.25791317224502563,
-0.03426441550254822,
-0.008075937628746033,
0.7149929404258728,
-0.4359889030456543,
0.010894190520048141,
0.014566500671207905,
0.39270707964897156,
0.024622242897748947,
-0.10664590448141098,
-0.6402615308761597,
-0.025692887604236603,
0.4813249707221985,
-0.04011249542236328,
0.038795631378889084,
0.2721795439720154,
-0.23371711373329163,
0.15434958040714264,
-0.1539483368396759,
-0.08672076463699341,
0.04408868029713631,
-0.2608882486820221,
0.15687906742095947,
-0.23837144672870636
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Hi @arymbe, thanks for reporting.
Unfortunately, I'm not able to reproduce your problem.
Could you please write the complete stack trace? That way we will be able to see which package originates the exception. | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 34 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
Hi @arymbe, thanks for reporting.
Unfortunately, I'm not able to reproduce your problem.
Could you please write the complete stack trace? That way we will be able to see which package originates the exception. | [
-0.16818007826805115,
-0.44436177611351013,
-0.03456878289580345,
0.3718605041503906,
0.2857325077056885,
0.13902923464775085,
0.1513350009918213,
0.3024875819683075,
0.512354850769043,
0.1311882734298706,
-0.1421201527118683,
0.30141815543174744,
-0.0827261358499527,
0.1413988322019577,
0.04692334309220314,
-0.2954942584037781,
0.13056662678718567,
0.17967921495437622,
-0.03784738481044769,
-0.21323373913764954,
-0.030763383954763412,
0.26003944873809814,
-0.09666107594966888,
0.26630041003227234,
-0.34604355692863464,
0.005869017913937569,
-0.0010109711438417435,
0.10165233910083771,
0.1656334102153778,
-0.3407469391822815,
0.3128145635128021,
-0.17355965077877045,
0.15601639449596405,
0.4116744101047516,
-0.00011308669490972534,
-0.0448632687330246,
0.2501615881919861,
0.11592766642570496,
-0.11200766265392303,
-0.28475165367126465,
-0.2037210464477539,
-0.06796183437108994,
0.05771278589963913,
0.010520771145820618,
-0.04443296045064926,
-0.1710386872291565,
-0.23764865100383759,
0.046469174325466156,
0.28106027841567993,
0.1747123748064041,
0.26208314299583435,
0.4643605053424835,
0.28591790795326233,
-0.298714280128479,
-0.06604284793138504,
0.11044596135616302,
-0.08875934034585953,
0.29720982909202576,
-0.11901046335697174,
-0.17827391624450684,
0.12966513633728027,
0.07725566625595093,
0.13204044103622437,
0.17840611934661865,
0.5632821321487427,
0.008495204150676727,
-0.12648725509643555,
-0.19863201677799225,
-0.09242478758096695,
0.2845288813114166,
0.31028836965560913,
-0.36839258670806885,
-0.3908103108406067,
-0.032979778945446014,
0.08559104055166245,
-0.22098353505134583,
0.10524682700634003,
0.14537650346755981,
0.1109783947467804,
0.12095794081687927,
0.29946884512901306,
-0.3534276485443115,
-0.13532599806785583,
0.10524578392505646,
-0.1835491806268692,
0.06340210139751434,
-0.20526687800884247,
-0.018771126866340637,
0.07419689744710922,
-0.13106229901313782,
-0.11511653661727905,
0.06485766172409058,
0.007426433265209198,
0.25763729214668274,
-0.31192249059677124,
-0.0956747829914093,
0.04902049899101257,
0.20973357558250427,
0.11702042073011398,
0.1419259011745453,
-0.3025204837322235,
-0.13245168328285217,
-0.15509934723377228,
0.18869659304618835,
0.008875153958797455,
0.1972191035747528,
-0.0036588162183761597,
0.1709458976984024,
0.2961448132991791,
0.2957155704498291,
0.03099266067147255,
-0.08350147306919098,
-0.0960121899843216,
-0.031058870255947113,
0.0742775946855545,
-0.20858609676361084,
0.251041054725647,
-0.14736473560333252,
-0.37238818407058716,
0.2314884215593338,
-0.1669067144393921,
-0.02027563937008381,
0.09212952107191086,
0.4199977517127991,
-0.17471647262573242,
0.026182694360613823,
0.05467268079519272,
0.2139328122138977,
-0.13513131439685822,
-0.013760516420006752,
-0.3524421751499176,
0.5132683515548706,
-0.01783452183008194,
0.01285548321902752,
-0.08804437518119812,
-0.3126557171344757,
0.1617339849472046,
0.0651567280292511,
0.30551519989967346,
-0.0850304365158081,
-0.14790764451026917,
0.03445294871926308,
-0.34386008977890015,
0.5520719289779663,
0.06429138779640198,
0.1910034418106079,
0.19198869168758392,
-0.10690688341856003,
-0.14523965120315552,
-0.199153333902359,
-0.5296590328216553,
-0.16879992187023163,
-0.24430324137210846,
0.15605995059013367,
-0.25956204533576965,
-0.11933885514736176,
-0.3473204970359802,
-0.2764922082424164,
-0.20312851667404175,
-0.03672444447875023,
0.17438536882400513,
0.07396499812602997,
-0.035924237221479416,
-0.10165337473154068,
0.11938410252332687,
0.44875508546829224,
0.06706555187702179,
-0.29692745208740234,
0.2153555452823639,
-0.13780361413955688,
-0.0697743222117424,
0.21593931317329407,
0.06907627731561661,
0.1508329212665558,
-0.21961520612239838,
0.1667204052209854,
0.10331909358501434,
-0.5768991708755493,
-0.41273725032806396,
0.03259126469492912,
0.10198988020420074,
0.046158283948898315,
-0.041780777275562286,
-0.15239867568016052,
-0.22165222465991974,
0.04787931218743324,
0.15179723501205444,
0.16472607851028442,
0.06653124839067459,
-0.05471300333738327,
-0.13170187175273895,
-0.28109872341156006,
0.038710817694664,
0.18230538070201874,
0.21899455785751343,
0.19597439467906952,
0.04130750149488449,
0.09825894236564636,
0.0670897513628006,
-0.05004337057471275,
-0.016222961246967316,
0.3955516815185547,
0.41592079401016235,
0.1788432002067566,
0.012112176045775414,
-0.4572634994983673,
-0.04119856655597687,
0.16911253333091736,
-0.19980673491954803,
0.15059933066368103,
-0.17770396173000336,
-0.109023317694664,
-0.27416539192199707,
0.0792635977268219,
-0.07043224573135376,
-0.21548286080360413,
0.07171791791915894,
-0.24014237523078918,
-0.07777617871761322,
0.21791459619998932,
-0.3102829158306122,
0.7073279619216919,
-0.09684521704912186,
0.34834057092666626,
-0.2753269374370575,
0.5434799790382385,
-0.047875165939331055,
-0.02460312470793724,
0.040233463048934937,
0.23150044679641724,
0.14036566019058228,
-0.06123191490769386,
-0.09853488951921463,
0.08849034458398819,
-0.09450303763151169,
0.24749860167503357,
0.08784356713294983,
0.21194890141487122,
0.34931477904319763,
-0.2266506850719452,
-0.09178376197814941,
-0.12016922235488892,
0.11641831696033478,
0.06761484593153,
0.2668990194797516,
0.14688284695148468,
0.06452278047800064,
0.17156001925468445,
0.0012131482362747192,
0.2658577859401703,
0.015955427661538124,
0.01627987250685692,
0.07702390849590302,
-0.15668568015098572,
0.32132256031036377,
-0.1845085769891739,
0.1344192922115326,
-0.19530674815177917,
-0.07271918654441833,
-0.11766261607408524,
0.4442077577114105,
0.07215932011604309,
0.2693733870983124,
0.11341653019189835,
-0.32326117157936096,
0.31942737102508545,
0.16266866028308868,
-0.01318320631980896,
0.3945366144180298,
0.06482971459627151,
-0.29931631684303284,
0.3246345520019531,
-0.12151483446359634,
0.12408921122550964,
0.03179433196783066,
0.028832636773586273,
0.1882789134979248,
-0.01649816334247589,
-0.10720455646514893,
0.2315628081560135,
-0.21114346385002136,
-0.5475095510482788,
-0.2284945547580719,
0.3490277826786041,
-0.5290339589118958,
0.07818624377250671,
-0.36088865995407104,
0.14791828393936157,
0.12721827626228333,
-0.46629881858825684,
-0.4380772113800049,
-0.17858511209487915,
-0.24997906386852264,
0.08164506405591965,
0.07266142964363098,
0.18624648451805115,
-0.03969772160053253,
0.08478392660617828,
-0.004127558320760727,
-0.009616503491997719,
-0.30547577142715454,
-0.046756017953157425,
0.030305080115795135,
-0.015296216122806072,
0.03255742788314819,
0.22975772619247437,
0.1740029752254486,
-0.25588512420654297,
0.14984630048274994,
-0.06324487179517746,
-0.25717610120773315,
0.19800952076911926,
-0.11719955503940582,
0.40407612919807434,
0.29877278208732605,
0.2782413959503174,
-0.06290947645902634,
0.02676454186439514,
0.38214510679244995,
-0.28734564781188965,
-0.2019152194261551,
0.10635726153850555,
-0.09814516454935074,
-0.15698964893817902,
-0.10850392282009125,
0.06093243137001991,
-0.23116157948970795,
-0.4472762644290924,
0.16618604958057404,
-0.01730315573513508,
0.10580939799547195,
0.37398988008499146,
-0.008430300280451775,
0.23861806094646454,
-0.10501731932163239,
0.08845174312591553,
-0.2630438506603241,
-0.25017428398132324,
0.3186415731906891,
-0.31126096844673157,
-0.36256861686706543,
0.08444614708423615,
0.05224134027957916,
0.3066093325614929,
-0.33738136291503906,
-0.35340577363967896,
-0.6506205201148987,
-0.20567861199378967,
0.1824302226305008,
-0.3030385673046112,
0.3047518730163574,
0.20372790098190308,
-0.1942296028137207,
0.017780957743525505,
-0.15431177616119385,
-0.061015672981739044,
-0.04808878153562546,
0.2522358000278473,
-0.02509383112192154,
0.06885692477226257,
0.2350875735282898,
-0.19236643612384796,
0.28255417943000793,
0.3156110346317291,
0.12745745480060577,
0.4675551950931549,
-0.21403710544109344,
0.3315165042877197,
0.04134763404726982,
-0.4986020028591156,
-0.17165465652942657,
0.13264834880828857,
0.24983663856983185,
0.004988536238670349,
-0.058978475630283356,
0.3916689455509186,
-0.12819266319274902,
-0.5531885623931885,
-0.05843131244182587,
-0.15831589698791504,
-0.2306239753961563,
-0.026125147938728333,
0.054421477019786835,
-0.06229349225759506,
0.014130428433418274,
-0.24939201772212982,
0.056340187788009644,
0.593458890914917,
0.37797653675079346,
-0.06442452222108841,
0.015403533354401588,
-0.18287017941474915,
-0.3707030713558197,
-0.462475061416626,
0.15527141094207764,
-0.07636797428131104,
0.33809706568717957,
-0.10015223175287247,
0.19763296842575073,
0.04322301596403122,
-0.0026266383938491344,
0.6075299978256226,
-0.029194610193371773,
0.012561440467834473,
-0.05794331058859825,
-0.12434738874435425,
-0.41017791628837585,
-0.0457916297018528,
-0.09404046833515167,
0.11510182172060013,
-0.2576487064361572,
0.3399868309497833,
-0.12992745637893677,
-0.29400572180747986,
0.1603030115365982,
-0.02697026915848255,
-0.04819947108626366,
-0.16332943737506866,
-0.3213542699813843,
-0.34326469898223877,
-0.2936256229877472,
0.011630617082118988,
0.18791137635707855,
0.3010925054550171,
0.35543227195739746,
0.1206032931804657,
-0.14294351637363434,
-0.24054354429244995,
0.31510138511657715,
0.0687677413225174,
0.12870976328849792,
-0.11233823746442795,
0.13741661608219147,
0.11602733284235,
-0.06607077270746231,
0.15619933605194092,
0.683980405330658,
-0.05308055505156517,
-0.5757333040237427,
-0.05691089481115341,
0.10619651526212692,
0.14219743013381958,
0.17694048583507538,
-0.08060222864151001,
0.3387758135795593,
-0.1268303096294403,
0.2963942289352417,
-0.3605266511440277,
-0.21462495625019073,
0.25296616554260254,
0.22005219757556915,
-0.09265168011188507,
-0.06336835771799088,
0.6022763848304749,
0.05786927416920662,
0.1243407130241394,
0.4085657000541687,
0.9096206426620483,
-0.04123825579881668,
0.16401642560958862,
-0.17647778987884521,
0.9129557013511658,
0.32332688570022583,
-0.050504762679338455,
0.28682616353034973,
-0.2993910610675812,
0.6245769262313843,
-0.1890433430671692,
-0.02053685486316681,
-0.3203885555267334,
-0.41647061705589294,
-0.14603808522224426,
-0.11658188700675964,
0.40261930227279663,
-0.42100590467453003,
0.09242326021194458,
0.22267502546310425,
-0.1617269366979599,
0.2571151852607727,
-0.0784352719783783,
0.08456531167030334,
-0.2884668707847595,
-0.2780550718307495,
-0.5236037969589233,
0.17831172049045563,
-0.03473406285047531,
0.5100031495094299,
-0.1451926827430725,
-0.05044923350214958,
-0.22847244143486023,
-0.11822038888931274,
-0.3126310706138611,
-0.016883449628949165,
-0.011198027059435844,
0.14320442080497742,
0.5313331484794617,
-0.0448971726000309,
0.3534478545188904,
-0.12715564668178558,
0.4199139475822449,
-0.04230731353163719,
-0.348259299993515,
0.2384023666381836,
-0.4587811827659607,
0.03610416129231453,
-0.12261310964822769,
0.1350153088569641,
0.49477022886276245,
-0.13956019282341003,
-0.42715802788734436,
0.19774392247200012,
-0.05279230698943138,
-0.028710216283798218,
0.11257925629615784,
0.0936763733625412,
-0.19834472239017487,
-0.13737110793590546,
-0.12957334518432617,
-0.050298601388931274,
0.48729199171066284,
-0.04242924228310585,
0.13582052290439606,
0.24981775879859924,
-0.2312270849943161,
0.08368899673223495,
0.28917980194091797,
-0.13238470256328583,
-0.24327485263347626,
0.4510840177536011,
-0.1645408272743225,
-0.048932649195194244,
0.20699644088745117,
0.04533139243721962,
-0.21910402178764343,
-0.1292600780725479,
-0.018167808651924133,
0.4812604486942291,
-0.5657288432121277,
0.037365950644016266,
-0.004071622155606747,
-0.06532201915979385,
-0.14131483435630798,
0.043160323053598404,
0.13899484276771545,
-0.06156391650438309,
0.05306559428572655,
-0.5308667421340942,
-0.22667965292930603,
0.21578730642795563,
-0.264676034450531,
-0.03852712735533714,
-0.10299079865217209,
0.08385525643825531,
-0.08933614939451218,
-0.0019373390823602676,
-0.3069502115249634,
0.15713022649288177,
-0.2808366119861603,
-0.23349535465240479,
0.015019659884274006,
-0.02290402352809906,
0.36510592699050903,
-0.2919209897518158,
0.10517789423465729,
0.15099364519119263,
-0.2558371126651764,
-0.1578044295310974,
-0.49699702858924866,
0.13149861991405487,
-0.04119347035884857,
0.03683953732252121,
0.20391951501369476,
-0.0438714399933815,
-0.15762047469615936,
-0.12550078332424164,
0.18120858073234558,
0.31927257776260376,
-0.04504857212305069,
0.30008602142333984,
0.2899828553199768,
-0.12294688075780869,
-0.30046409368515015,
0.11102867126464844,
0.31704801321029663,
0.26087141036987305,
0.05934654548764229,
-0.1164909154176712,
-0.08629008382558823,
0.2120707929134369,
-0.0930149108171463,
0.12020380049943924,
-0.16666831076145172,
-0.2576175034046173,
0.4509503245353699,
-0.24214522540569305,
0.2000805288553238,
0.1751895397901535,
0.20708411931991577,
0.09866400808095932,
-0.22836898267269135,
0.2304977923631668,
0.3082069456577301,
0.17456088960170746,
-0.3398998975753784,
-0.10838989168405533,
0.2908341586589813,
0.018527109175920486,
-0.04671211540699005,
0.20339974761009216,
0.2745802402496338,
0.011541776359081268,
0.08885298669338226,
0.2420501410961151,
0.5749396681785583,
-0.05093683302402496,
0.041955430060625076,
0.11332012712955475,
-0.0806722417473793,
0.2676878869533539,
0.419757604598999,
0.2793588936328888,
0.2065376341342926,
0.5726136565208435,
-0.28868162631988525,
0.11327808350324631,
-0.27075091004371643,
0.046441204845905304,
0.1726805716753006,
-0.38894134759902954,
-0.07960429787635803,
-0.016794279217720032,
0.12330638617277145,
-0.10504185408353806,
-0.22250717878341675,
0.29155468940734863,
-0.31822827458381653,
-0.21687741577625275,
0.005370069295167923,
0.2544030547142029,
-0.17119279503822327,
0.09322354197502136,
0.3233589231967926,
-0.020246043801307678,
-0.164652481675148,
-0.19139471650123596,
0.18958938121795654,
-0.35031867027282715,
0.17150405049324036,
0.021127130836248398,
-0.1737510710954666,
-0.2896786034107208,
-0.24051406979560852,
0.28885188698768616,
0.26438865065574646,
-0.08516719937324524,
-0.021675152704119682,
0.09823118150234222,
-0.23860904574394226,
-0.10824665427207947,
0.2619515359401703,
0.4808877408504486,
-0.051309190690517426,
0.08801969885826111,
0.04612754285335541,
-0.07210725545883179,
-0.02484431304037571,
0.26240819692611694,
0.007848165929317474,
0.049946729093790054,
0.2004084587097168,
0.06081540510058403,
0.14402851462364197,
-0.15626640617847443,
-0.07337343692779541,
-0.14000213146209717,
0.344684362411499,
-0.4330928921699524,
0.6505942940711975,
-0.41769883036613464,
-0.006577108055353165,
-0.38186952471733093,
-0.03124827891588211,
-0.36194419860839844,
0.13709720969200134,
0.19145391881465912,
-0.020617356523871422,
-0.10840336233377457,
-0.27421584725379944,
0.05919106304645538,
-0.11022160947322845,
0.3766928017139435,
0.5371028184890747,
0.1649545282125473,
-0.10881858319044113,
-0.007920689880847931,
-0.45710477232933044,
0.2402593195438385,
-0.06643159687519073,
0.04766868054866791,
0.18364286422729492,
-0.15449877083301544,
-0.23008504509925842,
-0.046196527779102325,
0.2690293788909912,
0.1280333250761032,
0.04806363582611084,
-0.1265433132648468,
-0.28516268730163574,
-0.16458742320537567,
-0.31048107147216797,
-0.1269039511680603,
0.08153003454208374,
0.11768566817045212,
0.08910299837589264,
-0.2123548984527588,
-0.016025137156248093,
-0.13972947001457214,
0.010176442563533783,
-0.07454018294811249,
-0.3447491526603699,
0.462097704410553,
0.03906572610139847,
0.33081215620040894,
-0.02803170308470726,
-0.10504550486803055,
0.012960776686668396,
-0.2733082175254822,
-0.12996894121170044,
0.13606446981430054,
-0.15247277915477753,
0.2848793864250183,
-0.05736754834651947,
-0.5480863451957703,
-0.27448320388793945,
0.4055657386779785,
0.10579067468643188,
0.05029236152768135,
-0.29797837138175964,
0.5038840174674988,
-0.18876585364341736,
0.08164690434932709,
0.2758164703845978,
0.1668756604194641,
-0.0396992564201355,
0.24627168476581573,
-0.17769312858581543,
-0.3494628667831421,
0.5352456569671631,
-0.4687918722629547,
-0.27367714047431946,
-0.07192584127187729,
0.3846965432167053,
0.06733642518520355,
-0.47548288106918335,
-0.5586007833480835,
-0.002570129930973053,
0.1293022185564041,
0.015720728784799576,
-0.24401694536209106,
0.2815779149532318,
-0.13954538106918335,
0.2203306406736374,
-0.0027634240686893463,
0.27938148379325867,
-0.02012481912970543,
-0.03200268745422363,
0.5152603983879089,
-0.018138160929083824
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Hello, thank you for your fast replied. this is the complete error that I got
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [27], in <module>
----> 1 from datasets import load_dataset
venv/lib/python3.8/site-packages/datasets/__init__.py:39, in <module>
37 from .arrow_dataset import Dataset, concatenate_datasets
38 from .arrow_reader import ReadInstruction
---> 39 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
40 from .combine import interleave_datasets
41 from .dataset_dict import DatasetDict, IterableDatasetDict
venv/lib/python3.8/site-packages/datasets/builder.py:40, in <module>
32 from .arrow_reader import (
33 HF_GCP_BASE_URL,
34 ArrowReader,
(...)
37 ReadInstruction,
38 )
39 from .arrow_writer import ArrowWriter, BeamWriter
---> 40 from .data_files import DataFilesDict, sanitize_patterns
41 from .dataset_dict import DatasetDict, IterableDatasetDict
42 from .features import Features
venv/lib/python3.8/site-packages/datasets/data_files.py:297, in <module>
292 except FileNotFoundError:
293 raise FileNotFoundError(f"The directory at {base_path} doesn't contain any data file") from None
296 def _resolve_single_pattern_in_dataset_repository(
--> 297 dataset_info: huggingface_hub.hf_api.DatasetInfo,
298 pattern: str,
299 allowed_extensions: Optional[list] = None,
300 ) -> List[PurePath]:
301 data_files_ignore = FILES_TO_IGNORE
302 fs = HfFileSystem(repo_info=dataset_info)
AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 169 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
Hello, thank you for your fast replied. this is the complete error that I got
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [27], in <module>
----> 1 from datasets import load_dataset
venv/lib/python3.8/site-packages/datasets/__init__.py:39, in <module>
37 from .arrow_dataset import Dataset, concatenate_datasets
38 from .arrow_reader import ReadInstruction
---> 39 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
40 from .combine import interleave_datasets
41 from .dataset_dict import DatasetDict, IterableDatasetDict
venv/lib/python3.8/site-packages/datasets/builder.py:40, in <module>
32 from .arrow_reader import (
33 HF_GCP_BASE_URL,
34 ArrowReader,
(...)
37 ReadInstruction,
38 )
39 from .arrow_writer import ArrowWriter, BeamWriter
---> 40 from .data_files import DataFilesDict, sanitize_patterns
41 from .dataset_dict import DatasetDict, IterableDatasetDict
42 from .features import Features
venv/lib/python3.8/site-packages/datasets/data_files.py:297, in <module>
292 except FileNotFoundError:
293 raise FileNotFoundError(f"The directory at {base_path} doesn't contain any data file") from None
296 def _resolve_single_pattern_in_dataset_repository(
--> 297 dataset_info: huggingface_hub.hf_api.DatasetInfo,
298 pattern: str,
299 allowed_extensions: Optional[list] = None,
300 ) -> List[PurePath]:
301 data_files_ignore = FILES_TO_IGNORE
302 fs = HfFileSystem(repo_info=dataset_info)
AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | [
-0.2521853744983673,
-0.4301818907260895,
-0.03049236536026001,
0.45927631855010986,
0.2463351935148239,
0.18307238817214966,
0.1426948606967926,
0.2809118926525116,
0.4128461182117462,
0.1086038276553154,
-0.22137705981731415,
0.3965071141719818,
-0.0413648746907711,
-0.001482352614402771,
-0.05186957120895386,
-0.28808772563934326,
0.10229131579399109,
0.18033182621002197,
-0.05001978576183319,
-0.2401503473520279,
-0.08241915702819824,
0.23273779451847076,
-0.09480758756399155,
0.2034372240304947,
-0.30771178007125854,
-0.07731658220291138,
0.00926213525235653,
0.10723863542079926,
0.09125461429357529,
-0.3974060118198395,
0.28714922070503235,
-0.19962581992149353,
0.14986401796340942,
0.3949591815471649,
-0.00011617886775638908,
-0.004225999116897583,
0.3393271565437317,
0.16526257991790771,
-0.15581707656383514,
-0.243774875998497,
-0.27731722593307495,
-0.10348725318908691,
0.13954707980155945,
-0.043289799243211746,
0.0006517432630062103,
-0.31023135781288147,
-0.30272266268730164,
-0.12980130314826965,
0.3113768696784973,
0.24509266018867493,
0.23863108456134796,
0.4102450907230377,
0.28792619705200195,
-0.24547132849693298,
-0.009548157453536987,
0.07018699496984482,
-0.08431180566549301,
0.3668275475502014,
-0.2130069136619568,
-0.10878094285726547,
0.07553237676620483,
0.13705751299858093,
0.07790903747081757,
0.22070758044719696,
0.5155799984931946,
0.057264991104602814,
-0.07899308949708939,
-0.24254456162452698,
-0.08249650150537491,
0.20625445246696472,
0.343847393989563,
-0.39795494079589844,
-0.4313497841358185,
-0.1008606106042862,
0.06664251536130905,
-0.27567991614341736,
0.10452762246131897,
0.16653874516487122,
0.12974430620670319,
0.14271531999111176,
0.33007994294166565,
-0.2748831808567047,
-0.13081595301628113,
0.08412743359804153,
-0.20738118886947632,
0.10319630801677704,
-0.204091414809227,
0.04119031876325607,
0.05220998078584671,
-0.08582007139921188,
0.1150280311703682,
-0.032390449196100235,
-0.05258965119719505,
0.27255764603614807,
-0.3751060664653778,
-0.028144657611846924,
0.018110670149326324,
0.15385976433753967,
0.07239622622728348,
0.2668802738189697,
-0.2144765853881836,
-0.12229623645544052,
-0.10612049698829651,
0.203304260969162,
0.04974406957626343,
0.19705915451049805,
-0.0020982399582862854,
0.33705422282218933,
0.17172475159168243,
0.2671722173690796,
0.04260345920920372,
-0.10776611417531967,
-0.10655069351196289,
-0.12059982120990753,
0.1624457985162735,
-0.1686236560344696,
0.37374258041381836,
-0.14783094823360443,
-0.3715517222881317,
0.22562101483345032,
-0.17634788155555725,
-0.0386926494538784,
0.07177566736936569,
0.4544108211994171,
-0.20832635462284088,
0.09076274931430817,
0.060888536274433136,
0.1817369908094406,
-0.09150677919387817,
-0.08529830724000931,
-0.32153648138046265,
0.42007508873939514,
0.013505112379789352,
0.012058205902576447,
-0.11438155174255371,
-0.3192945122718811,
0.19737538695335388,
0.016331642866134644,
0.2528257966041565,
-0.11434042453765869,
-0.14058075845241547,
-0.08246085047721863,
-0.2679036855697632,
0.5113283395767212,
0.09662477672100067,
0.1876544952392578,
0.2168058156967163,
-0.10872616618871689,
-0.1316063553094864,
-0.15368154644966125,
-0.5041611194610596,
-0.1666984260082245,
-0.28808122873306274,
0.13989101350307465,
-0.21403981745243073,
-0.10754700005054474,
-0.4161260426044464,
-0.23451678454875946,
-0.09532339125871658,
-0.022293346002697945,
0.22434943914413452,
0.09160852432250977,
-0.053087979555130005,
-0.1176052987575531,
0.16700278222560883,
0.4986546039581299,
-0.03612354025244713,
-0.26321297883987427,
0.06202744320034981,
-0.09020815789699554,
-0.019788019359111786,
0.20571263134479523,
0.07216846942901611,
0.15042254328727722,
-0.2551784813404083,
0.2186698466539383,
0.2095487415790558,
-0.5860976576805115,
-0.5018063187599182,
0.03148487210273743,
0.07738193869590759,
0.05311235785484314,
-0.025442399084568024,
-0.16842572391033173,
-0.16576658189296722,
0.09338626265525818,
0.0821324959397316,
0.16510064899921417,
0.1111321821808815,
-0.08611788600683212,
-0.18358756601810455,
-0.2401115596294403,
0.01914573833346367,
0.12821725010871887,
0.16555146872997284,
0.13498829305171967,
0.139517679810524,
-0.029027428478002548,
0.10700522363185883,
0.008399959653615952,
0.08183576911687851,
0.365386962890625,
0.3865361511707306,
0.08134019374847412,
0.0829220786690712,
-0.41597166657447815,
-0.18471160531044006,
0.18914398550987244,
-0.22652974724769592,
0.04950126260519028,
-0.26811760663986206,
-0.09050954133272171,
-0.37972545623779297,
0.14281195402145386,
-0.19571100175380707,
-0.2142166793346405,
0.07093549519777298,
-0.18799421191215515,
-0.06505625694990158,
0.19884082674980164,
-0.32106977701187134,
0.62416011095047,
-0.12609145045280457,
0.34565797448158264,
-0.3032682538032532,
0.6251001954078674,
-0.0892922505736351,
-0.05125026777386665,
0.010972075164318085,
0.20056620240211487,
0.1335955560207367,
0.005043851677328348,
-0.15851163864135742,
0.16077299416065216,
-0.08407498896121979,
0.3048709034919739,
-0.049958907067775726,
0.1378239244222641,
0.33950698375701904,
-0.351715087890625,
-0.09607639163732529,
-0.10240450501441956,
0.18053629994392395,
0.11565964668989182,
0.21102863550186157,
0.15151236951351166,
0.0973251536488533,
0.20502252876758575,
0.009725738316774368,
0.24007967114448547,
-0.02313002571463585,
0.031020808964967728,
0.08192449808120728,
-0.24501490592956543,
0.30621469020843506,
-0.1851804405450821,
0.29453355073928833,
-0.17248450219631195,
-0.011475112289190292,
-0.062173523008823395,
0.4263518452644348,
0.0880098044872284,
0.24815768003463745,
0.10309150815010071,
-0.3990120589733124,
0.29301902651786804,
0.2422780692577362,
0.06381922960281372,
0.4074937701225281,
0.06570836156606674,
-0.2782890796661377,
0.3524608016014099,
-0.11105211079120636,
0.12731535732746124,
0.14095042645931244,
0.023648012429475784,
0.3705381155014038,
0.08800400793552399,
-0.06583499163389206,
0.22120912373065948,
-0.1771165132522583,
-0.5925722122192383,
-0.1794183999300003,
0.38283294439315796,
-0.5862764716148376,
0.0613262802362442,
-0.38567960262298584,
0.20210933685302734,
0.08494214713573456,
-0.44107723236083984,
-0.2701950669288635,
-0.23800410330295563,
-0.3023960590362549,
0.09450572729110718,
0.018105950206518173,
0.13504210114479065,
-0.1614541858434677,
0.04809044301509857,
0.06715061515569687,
0.022747594863176346,
-0.3186224400997162,
-0.08368208259344101,
0.04070131108164787,
-0.04431932047009468,
0.06971103698015213,
0.2185632586479187,
0.15701182186603546,
-0.21081098914146423,
0.16617825627326965,
-0.10688105970621109,
-0.15246492624282837,
0.21065112948417664,
-0.04528430104255676,
0.3715585470199585,
0.2799597978591919,
0.21473859250545502,
-0.07001443207263947,
-0.06664077192544937,
0.35697418451309204,
-0.2119041383266449,
-0.2997438609600067,
0.1259056031703949,
-0.11559414118528366,
-0.1437675654888153,
-0.02808145433664322,
0.010880492627620697,
-0.22502480447292328,
-0.50357586145401,
0.17072877287864685,
0.06303071975708008,
0.14677965641021729,
0.3734762966632843,
0.03718378022313118,
0.28081291913986206,
-0.12991420924663544,
0.10611661523580551,
-0.2111499309539795,
-0.16342885792255402,
0.38348841667175293,
-0.3655197024345398,
-0.3682362139225006,
0.04566093161702156,
-0.05471760034561157,
0.34205904603004456,
-0.3086041212081909,
-0.408136785030365,
-0.586941123008728,
-0.2331322282552719,
0.28347089886665344,
-0.3372095227241516,
0.2604805529117584,
0.17769469320774078,
-0.104166179895401,
0.01102566160261631,
-0.16844063997268677,
0.022978872060775757,
-0.0802091583609581,
0.14657875895500183,
-0.08246105164289474,
0.035216741263866425,
0.21757009625434875,
-0.1900067776441574,
0.3694940209388733,
0.38271966576576233,
0.1218925267457962,
0.4245623052120209,
-0.22318553924560547,
0.2679668664932251,
0.015305079519748688,
-0.5037090182304382,
-0.19497406482696533,
0.08892283588647842,
0.22581277787685394,
0.0018249228596687317,
-0.09609968215227127,
0.3655785024166107,
-0.110202357172966,
-0.528561532497406,
-0.11395835876464844,
-0.16505979001522064,
-0.2488359659910202,
-0.1417667418718338,
0.06003190204501152,
-0.069148488342762,
0.04953891783952713,
-0.20361222326755524,
0.07481987029314041,
0.5628176927566528,
0.29067564010620117,
-0.1047702208161354,
-0.006564428098499775,
-0.1547171175479889,
-0.333730548620224,
-0.394569993019104,
0.23292624950408936,
-0.0666055977344513,
0.3090194761753082,
-0.01456768810749054,
0.22384175658226013,
0.05747196078300476,
-0.02209126576781273,
0.5874610543251038,
-0.05069735646247864,
0.040428176522254944,
-0.059922728687524796,
0.02969544380903244,
-0.5175259709358215,
-0.03358110040426254,
-0.10773031413555145,
0.1293661743402481,
-0.38849884271621704,
0.27341586351394653,
-0.1799052655696869,
-0.2680136263370514,
0.1836690604686737,
-0.00615149550139904,
-0.08575887978076935,
-0.14176148176193237,
-0.2611643075942993,
-0.2968951463699341,
-0.3660629987716675,
-0.016791068017482758,
0.1430281549692154,
0.3250315189361572,
0.3090580999851227,
0.11700636148452759,
-0.2710602283477783,
-0.2187412977218628,
0.1596134603023529,
0.06820333003997803,
0.20507588982582092,
-0.06824705004692078,
0.140176460146904,
0.10616165399551392,
-0.02284390479326248,
0.2228994220495224,
0.8015601634979248,
0.031630560755729675,
-0.6809110045433044,
-0.07444845139980316,
0.09830787777900696,
0.12980186939239502,
0.12235279381275177,
-0.08130424469709396,
0.3297306001186371,
-0.07092535495758057,
0.31662553548812866,
-0.23207642138004303,
-0.20356817543506622,
0.17827744781970978,
0.1817166805267334,
-0.07186365872621536,
-0.05884947627782822,
0.7125949859619141,
0.06901708245277405,
0.1149062067270279,
0.48411819338798523,
0.9143521785736084,
-0.04362085461616516,
0.18815772235393524,
-0.07699733227491379,
0.9195696115493774,
0.4396345019340515,
-0.1311519593000412,
0.3990606665611267,
-0.38222837448120117,
0.5139490962028503,
-0.1432061493396759,
-0.0872097983956337,
-0.3062705099582672,
-0.38101109862327576,
-0.12563027441501617,
-0.107868991792202,
0.41497641801834106,
-0.3849714398384094,
0.029280539602041245,
0.18344175815582275,
-0.20121502876281738,
0.13072273135185242,
-0.05406682938337326,
0.0966535359621048,
-0.2696993947029114,
-0.3115614652633667,
-0.5029171109199524,
0.14100344479084015,
-0.05666697770357132,
0.42123422026634216,
-0.08987166732549667,
-0.007973704487085342,
-0.262102335691452,
-0.1291564404964447,
-0.3034248948097229,
0.02740783989429474,
-0.13806967437267303,
0.15435676276683807,
0.44758906960487366,
-0.1543964296579361,
0.34528830647468567,
-0.097767174243927,
0.3036130666732788,
-0.0877835750579834,
-0.3039107322692871,
0.21874411404132843,
-0.30417516827583313,
0.034455738961696625,
-0.12142772972583771,
0.05307292565703392,
0.5017380714416504,
-0.12459917366504669,
-0.38962388038635254,
0.24961403012275696,
-0.11617232114076614,
0.013860009610652924,
0.26558223366737366,
0.14349833130836487,
-0.13015277683734894,
-0.16537851095199585,
-0.15502206981182098,
-0.06623825430870056,
0.38861075043678284,
-0.08156244456768036,
0.10795632004737854,
0.21026301383972168,
-0.22741729021072388,
0.027969475835561752,
0.3367972671985626,
-0.17874136567115784,
-0.19415321946144104,
0.4700755178928375,
-0.15506145358085632,
-0.030682256445288658,
0.32082289457321167,
0.03836387023329735,
-0.24004267156124115,
-0.1332414150238037,
0.04106995463371277,
0.5796505808830261,
-0.695231020450592,
0.06698556244373322,
-0.11916597187519073,
0.014224693179130554,
-0.1876336932182312,
0.10092522203922272,
0.17347605526447296,
0.026617716997861862,
0.0077224001288414,
-0.5481900572776794,
-0.2288455069065094,
0.22042173147201538,
-0.26109081506729126,
-0.06399820744991302,
-0.13752171397209167,
0.020831309258937836,
-0.1279287040233612,
0.0683923065662384,
-0.27618247270584106,
0.13314467668533325,
-0.28652653098106384,
-0.17801573872566223,
0.008427553810179234,
0.004564464092254639,
0.289956659078598,
-0.2460728883743286,
0.1063719093799591,
0.17514322698116302,
-0.24275609850883484,
-0.16590917110443115,
-0.4980757236480713,
0.14586837589740753,
-0.005194203928112984,
-0.07191774994134903,
0.1566384881734848,
-0.046883661299943924,
-0.11871777474880219,
-0.1509324014186859,
0.08581480383872986,
0.24245887994766235,
-0.0406140461564064,
0.27721258997917175,
0.31061267852783203,
-0.1535460650920868,
-0.37272173166275024,
0.0661918967962265,
0.2741259038448334,
0.24967250227928162,
0.016614019870758057,
-0.03845939785242081,
-0.06302747130393982,
0.1986665427684784,
-0.08195097744464874,
0.04665672779083252,
-0.12346921861171722,
-0.25110214948654175,
0.46782946586608887,
-0.3053826689720154,
0.19178815186023712,
0.14286020398139954,
0.25611913204193115,
0.13770602643489838,
-0.23668821156024933,
0.19977517426013947,
0.25314685702323914,
0.15240220725536346,
-0.35442718863487244,
-0.11888635903596878,
0.25297367572784424,
0.023993562906980515,
0.017411138862371445,
0.15706387162208557,
0.18502050638198853,
0.011747494339942932,
-0.010211728513240814,
0.2981239855289459,
0.5126395225524902,
-0.12230199575424194,
0.12215517461299896,
0.24992084503173828,
-0.06472006440162659,
0.24436704814434052,
0.5206174254417419,
0.2648439407348633,
0.24137693643569946,
0.5342987775802612,
-0.3571281433105469,
0.17746135592460632,
-0.1287345290184021,
0.07575276494026184,
0.1663810759782791,
-0.38593506813049316,
0.016344666481018066,
-0.04647688567638397,
0.09954807162284851,
-0.12830260396003723,
-0.1466173678636551,
0.2551601827144623,
-0.14912158250808716,
-0.15204568207263947,
0.098784439265728,
0.24659183621406555,
-0.13867270946502686,
0.07433667778968811,
0.15903489291667938,
-0.011751480400562286,
-0.21814720332622528,
-0.23512838780879974,
0.13161784410476685,
-0.3887484669685364,
0.24703790247440338,
0.06736070662736893,
-0.15969417989253998,
-0.3436298966407776,
-0.08332393318414688,
0.39549151062965393,
0.30868861079216003,
-0.1970650851726532,
0.0483112558722496,
0.17295777797698975,
-0.19457542896270752,
-0.18534092605113983,
0.36121371388435364,
0.5161109566688538,
0.010596182197332382,
0.04661405831575394,
0.02917385846376419,
0.023644467815756798,
-0.11147892475128174,
0.2609705924987793,
0.008893091231584549,
0.029101181775331497,
0.09987145662307739,
0.1220458596944809,
0.15022613108158112,
-0.15917988121509552,
0.05098281055688858,
-0.0744817703962326,
0.31589680910110474,
-0.42040401697158813,
0.6267617344856262,
-0.4282383322715759,
-0.08088097721338272,
-0.283719539642334,
-0.05389627069234848,
-0.35372433066368103,
0.1035383939743042,
0.26738232374191284,
-0.0997459664940834,
-0.06787481158971786,
-0.2977434992790222,
0.054433949291706085,
-0.08219428360462189,
0.414798766374588,
0.5383004546165466,
0.22437363862991333,
-0.11450407654047012,
-0.003791794180870056,
-0.4459167718887329,
0.2579381763935089,
-0.08093059062957764,
-0.0439286008477211,
0.2251157909631729,
-0.01980232261121273,
-0.23449382185935974,
0.08689501881599426,
0.2651490569114685,
0.21514007449150085,
0.10885556787252426,
0.04558463394641876,
-0.2958123981952667,
-0.17974841594696045,
-0.21878992021083832,
-0.05800233781337738,
0.06464006006717682,
-0.01554744690656662,
0.09166909754276276,
-0.17846369743347168,
-0.01791643723845482,
-0.05354142189025879,
-0.06743965297937393,
0.044220369309186935,
-0.3051879107952118,
0.5182374715805054,
0.057143211364746094,
0.31863516569137573,
-0.08488736301660538,
-0.06589101999998093,
-0.11417968571186066,
-0.29231932759284973,
-0.15484938025474548,
0.2275698482990265,
-0.05843021348118782,
0.29625675082206726,
-0.030808739364147186,
-0.6050534844398499,
-0.24289625883102417,
0.28070101141929626,
0.10175473988056183,
0.11349138617515564,
-0.28413093090057373,
0.49911972880363464,
-0.18683677911758423,
0.08350826054811478,
0.18276293575763702,
0.05664084106683731,
-0.0348663255572319,
0.2560976445674896,
-0.2014494240283966,
-0.4692574441432953,
0.5123528242111206,
-0.4649724066257477,
-0.23027367889881134,
0.014798845164477825,
0.3802889585494995,
0.12073251605033875,
-0.47727328538894653,
-0.5407020449638367,
-0.0467209629714489,
0.24741795659065247,
-0.07974398136138916,
-0.21811465919017792,
0.23170840740203857,
-0.06341806054115295,
0.236051544547081,
-0.02579469233751297,
0.4158695638179779,
-0.015766870230436325,
-0.004416530951857567,
0.40412139892578125,
-0.07408641278743744
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | This is weird... It is long ago that the package `huggingface_hub` has a submodule called `hf_api`.
Maybe you have a problem with your installed `huggingface_hub`...
Could you please try to update it?
```shell
pip install -U huggingface_hub
``` | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 38 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
This is weird... It is long ago that the package `huggingface_hub` has a submodule called `hf_api`.
Maybe you have a problem with your installed `huggingface_hub`...
Could you please try to update it?
```shell
pip install -U huggingface_hub
``` | [
-0.22300666570663452,
-0.5056044459342957,
-0.06506351381540298,
0.3610426187515259,
0.2549869418144226,
0.11497148126363754,
0.11822420358657837,
0.32686179876327515,
0.4500235319137573,
0.20663988590240479,
-0.2411007583141327,
0.31538811326026917,
-0.07330285757780075,
0.11692073196172714,
0.016684843227267265,
-0.2889392077922821,
0.09017422795295715,
0.163715660572052,
-0.015950150787830353,
-0.22282831370830536,
-0.03148014843463898,
0.24844986200332642,
-0.04591258242726326,
0.2040509432554245,
-0.32083767652511597,
-0.013887962326407433,
0.017850587144494057,
0.09229514747858047,
0.08358675241470337,
-0.3400459587574005,
0.2502940893173218,
-0.11565998196601868,
0.16964513063430786,
0.4060947597026825,
-0.00011033784539904445,
-0.03197900578379631,
0.2848736643791199,
0.12779958546161652,
-0.1805964559316635,
-0.2790868878364563,
-0.187627911567688,
-0.10880274325609207,
0.09785939007997513,
0.005962565541267395,
-0.059995830059051514,
-0.17580819129943848,
-0.2399933785200119,
0.0646684318780899,
0.3080538213253021,
0.20748434960842133,
0.29905667901039124,
0.407273530960083,
0.26024141907691956,
-0.30587100982666016,
-0.023710183799266815,
0.12509551644325256,
-0.0597941055893898,
0.2907160222530365,
-0.060272008180618286,
-0.12657110393047333,
0.14192119240760803,
0.07272908091545105,
0.10777150094509125,
0.20106220245361328,
0.4675442576408386,
0.012596188113093376,
-0.07433582097291946,
-0.21822994947433472,
-0.07657197117805481,
0.2504301965236664,
0.2593909800052643,
-0.3359549641609192,
-0.36366403102874756,
-0.040725141763687134,
0.08585203438997269,
-0.27150318026542664,
0.04815773665904999,
0.0868438258767128,
0.14753571152687073,
0.08328279852867126,
0.3193223774433136,
-0.3230280578136444,
-0.06973537802696228,
0.13936011493206024,
-0.12341238558292389,
0.13239696621894836,
-0.20378197729587555,
-0.02500590682029724,
0.07010046392679214,
-0.14416363835334778,
-0.09457230567932129,
0.03992494195699692,
-0.02088344469666481,
0.23953212797641754,
-0.24633421003818512,
-0.09721881151199341,
0.07250708341598511,
0.275493323802948,
0.05158922076225281,
0.18335306644439697,
-0.28776809573173523,
-0.057682059705257416,
-0.1499890238046646,
0.2170451581478119,
-0.01272277906537056,
0.18709999322891235,
-0.06429333239793777,
0.15087975561618805,
0.2483462542295456,
0.29160168766975403,
0.033429574221372604,
-0.11742313951253891,
-0.07247673720121384,
-0.07858262956142426,
-0.0003188997507095337,
-0.20837581157684326,
0.23484419286251068,
-0.17338792979717255,
-0.4166129529476166,
0.19374696910381317,
-0.1346990317106247,
-0.03712862357497215,
0.14917849004268646,
0.462643563747406,
-0.19941219687461853,
0.04228483885526657,
0.05458608269691467,
0.18374931812286377,
-0.1727246195077896,
0.019825026392936707,
-0.36996155977249146,
0.4289192259311676,
-0.003556564450263977,
0.06048039346933365,
-0.08245517313480377,
-0.338411420583725,
0.18243104219436646,
0.08670896291732788,
0.3431099057197571,
-0.08817580342292786,
-0.1708049327135086,
0.018924115225672722,
-0.30894342064857483,
0.4848588705062866,
0.07284937798976898,
0.1868523508310318,
0.2151944786310196,
-0.12995770573616028,
-0.13555526733398438,
-0.22135841846466064,
-0.5482642650604248,
-0.13841362297534943,
-0.2796209752559662,
0.1931481659412384,
-0.27045953273773193,
-0.10635797679424286,
-0.3411561846733093,
-0.25851747393608093,
-0.1929326057434082,
-0.057416170835494995,
0.14986136555671692,
0.10701946169137955,
-0.059722285717725754,
-0.09703399986028671,
0.1621512472629547,
0.425812304019928,
0.0892598032951355,
-0.3057299852371216,
0.11642660945653915,
-0.1384187638759613,
-0.040127627551555634,
0.17550455033779144,
0.06632224470376968,
0.21033388376235962,
-0.26561301946640015,
0.08124206960201263,
0.12647408246994019,
-0.5471926331520081,
-0.42195260524749756,
-0.00623096851631999,
0.040813080966472626,
0.07770338654518127,
-0.03344964236021042,
-0.16420653462409973,
-0.21222861111164093,
0.06643866002559662,
0.1770663559436798,
0.08807989954948425,
0.13902461528778076,
-0.0538003146648407,
-0.1766694337129593,
-0.27516451478004456,
0.004875414073467255,
0.1498236060142517,
0.22740331292152405,
0.2541939616203308,
0.04047686979174614,
0.08569043129682541,
0.11127828806638718,
0.04593663290143013,
-0.0159080121666193,
0.3375983238220215,
0.48811817169189453,
0.2602435350418091,
0.004881950560957193,
-0.47319531440734863,
-0.0026256442070007324,
0.16894832253456116,
-0.2011953443288803,
0.12817057967185974,
-0.1167306900024414,
-0.10875062644481659,
-0.2721802890300751,
0.03685399889945984,
-0.08439920842647552,
-0.20441588759422302,
0.1173185259103775,
-0.2189185917377472,
-0.009331746026873589,
0.15611732006072998,
-0.297350138425827,
0.6923860907554626,
-0.036434583365917206,
0.3066389858722687,
-0.3320245146751404,
0.6118546724319458,
-0.08120656758546829,
0.00035375170409679413,
0.0632319301366806,
0.25292661786079407,
0.12438734620809555,
-0.011395958252251148,
-0.06021592766046524,
0.11471293121576309,
-0.08842011541128159,
0.26593443751335144,
0.08203289657831192,
0.16743086278438568,
0.33402687311172485,
-0.24945221841335297,
-0.10114214569330215,
-0.10273271799087524,
0.12331496179103851,
0.08331943303346634,
0.26230356097221375,
0.1437341719865799,
0.07743101567029953,
0.17175215482711792,
0.005253370851278305,
0.23522993922233582,
0.02502520941197872,
0.023179758340120316,
0.042062170803546906,
-0.22128549218177795,
0.3168080449104309,
-0.19342195987701416,
0.14225825667381287,
-0.19553142786026,
-0.0207381434738636,
-0.11605852097272873,
0.39591050148010254,
0.1183013916015625,
0.24820780754089355,
0.08219039440155029,
-0.3339967131614685,
0.29648250341415405,
0.1851285994052887,
-0.011596143245697021,
0.4111253023147583,
0.13168004155158997,
-0.2892407774925232,
0.31928616762161255,
-0.1348513960838318,
0.05415080487728119,
0.039443328976631165,
0.03464777395129204,
0.1341407746076584,
0.03336910903453827,
-0.12331319600343704,
0.20852726697921753,
-0.26346853375434875,
-0.5163246989250183,
-0.2490079402923584,
0.40697479248046875,
-0.4984862208366394,
0.030147789046168327,
-0.4114361107349396,
0.16474011540412903,
0.08721191436052322,
-0.5188302993774414,
-0.38243764638900757,
-0.25114262104034424,
-0.18691174685955048,
0.08018890023231506,
0.05504654720425606,
0.17520064115524292,
0.00788319855928421,
0.09201128780841827,
-0.07565075159072876,
0.014294921420514584,
-0.34748050570487976,
-0.05738910660147667,
0.03434543311595917,
0.022005673497915268,
0.008961296640336514,
0.2879781424999237,
0.17223209142684937,
-0.2806900441646576,
0.1480168253183365,
-0.11130502074956894,
-0.24514225125312805,
0.13287480175495148,
-0.07137177139520645,
0.4034983813762665,
0.27677303552627563,
0.2522924542427063,
-0.019274480640888214,
-0.03411419689655304,
0.3902321755886078,
-0.2540360391139984,
-0.2025241106748581,
0.0692574679851532,
-0.12367869168519974,
-0.13297811150550842,
-0.08872896432876587,
0.052101656794548035,
-0.21481069922447205,
-0.5090616941452026,
0.17979303002357483,
0.07203544676303864,
0.11893020570278168,
0.3459445834159851,
-0.008650269359350204,
0.2520957887172699,
-0.14458419382572174,
0.12082820385694504,
-0.3286760151386261,
-0.263871967792511,
0.3291616439819336,
-0.3636799156665802,
-0.3127848505973816,
0.07316562533378601,
0.06065167486667633,
0.3343113958835602,
-0.384376585483551,
-0.38107508420944214,
-0.6295933723449707,
-0.2265610545873642,
0.1467055082321167,
-0.21395769715309143,
0.3465390205383301,
0.1531921625137329,
-0.16127149760723114,
-0.017575174570083618,
-0.13762229681015015,
-0.027288833633065224,
-0.08256065100431442,
0.24610787630081177,
0.017513670027256012,
0.00991649180650711,
0.23515170812606812,
-0.21231430768966675,
0.29451602697372437,
0.4061911702156067,
0.09910911321640015,
0.44699156284332275,
-0.22556638717651367,
0.3663569688796997,
-0.013620741665363312,
-0.5341554284095764,
-0.15766660869121552,
0.1586066037416458,
0.2245451658964157,
0.0975874811410904,
-0.06272897869348526,
0.4292888641357422,
-0.1609048694372177,
-0.44264060258865356,
-0.07147829979658127,
-0.1744285523891449,
-0.30121514201164246,
-0.050492189824581146,
0.0038877949118614197,
-0.03389498591423035,
0.04554131627082825,
-0.25515255331993103,
0.01819695346057415,
0.5586121678352356,
0.3600134253501892,
-0.06842959672212601,
0.007182170636951923,
-0.22219505906105042,
-0.4394187033176422,
-0.448516309261322,
0.20672425627708435,
-0.0851050615310669,
0.2954973876476288,
-0.11944419145584106,
0.16241493821144104,
0.04203071445226669,
0.024312850087881088,
0.5570486187934875,
-0.017861587926745415,
-0.02635013312101364,
-0.05548107251524925,
-0.08733786642551422,
-0.415605366230011,
-0.03545195609331131,
-0.09621056914329529,
0.13664764165878296,
-0.2691086530685425,
0.3596136271953583,
-0.12285251915454865,
-0.30971279740333557,
0.16950035095214844,
-0.025627605617046356,
-0.09205371886491776,
-0.16193266212940216,
-0.3493700921535492,
-0.306625097990036,
-0.3272593021392822,
-0.04591258615255356,
0.10854048281908035,
0.3375946581363678,
0.3138946294784546,
0.055483799427747726,
-0.1003781110048294,
-0.2569551169872284,
0.34236904978752136,
0.09882311522960663,
0.2125471830368042,
-0.03316858038306236,
0.13270390033721924,
0.14627274870872498,
-0.03803341090679169,
0.1906556636095047,
0.7055485248565674,
-0.13002909719944,
-0.46454089879989624,
-0.06162619590759277,
0.12114903330802917,
0.13372762501239777,
0.19606202840805054,
-0.03447991609573364,
0.4229690134525299,
-0.10108591616153717,
0.39681363105773926,
-0.40562155842781067,
-0.17213837802410126,
0.2127489447593689,
0.160671666264534,
-0.04883910343050957,
-0.0660497173666954,
0.5973775386810303,
0.05500706657767296,
0.12529508769512177,
0.43131524324417114,
0.8287851810455322,
-0.0483693853020668,
0.15576642751693726,
-0.13021904230117798,
0.8861774802207947,
0.3122636675834656,
-0.11038139462471008,
0.2413567304611206,
-0.26828765869140625,
0.5897507071495056,
-0.19445261359214783,
-0.054066531360149384,
-0.2743002474308014,
-0.3750077188014984,
-0.07354561984539032,
-0.036075085401535034,
0.4111805856227875,
-0.4278024435043335,
0.02137969806790352,
0.1954258531332016,
-0.14984598755836487,
0.32608795166015625,
-0.1128421425819397,
0.0983400046825409,
-0.3039851486682892,
-0.29230836033821106,
-0.42967602610588074,
0.23010653257369995,
-0.027153082191944122,
0.5165936350822449,
-0.15116962790489197,
-0.023508518934249878,
-0.24238091707229614,
-0.08793757855892181,
-0.28993290662765503,
-0.07647175341844559,
-0.0045850384049117565,
0.18024958670139313,
0.45042291283607483,
-0.06021542847156525,
0.26438719034194946,
-0.11733825504779816,
0.4073123335838318,
0.025191226974129677,
-0.3533439040184021,
0.22497934103012085,
-0.37853363156318665,
-0.022901276126503944,
-0.19859740138053894,
0.1522202491760254,
0.41885480284690857,
-0.12038546800613403,
-0.4312642812728882,
0.20413610339164734,
0.026993323117494583,
-0.014615930616855621,
0.0537823885679245,
0.12499760836362839,
-0.1691582202911377,
-0.14285847544670105,
-0.13480594754219055,
0.010631263256072998,
0.4250047206878662,
-0.0817723423242569,
0.16763608157634735,
0.255292147397995,
-0.2765512466430664,
0.1184317022562027,
0.3390628695487976,
-0.17166465520858765,
-0.24570252001285553,
0.45634615421295166,
-0.17081403732299805,
-0.05443482846021652,
0.18641142547130585,
0.03861869499087334,
-0.23509131371974945,
-0.1688152253627777,
0.005148015916347504,
0.4662117063999176,
-0.5320987105369568,
0.025033380836248398,
0.028685372322797775,
-0.006840184330940247,
-0.13195684552192688,
0.023004986345767975,
0.10430967807769775,
-0.026030927896499634,
-0.041938718408346176,
-0.5113623142242432,
-0.27944400906562805,
0.21874754130840302,
-0.25738832354545593,
0.021551042795181274,
-0.13112080097198486,
0.09114429354667664,
-0.09586938470602036,
0.06928493082523346,
-0.35414934158325195,
0.1451878696680069,
-0.303524374961853,
-0.1753012090921402,
-0.05409654229879379,
-0.04304797202348709,
0.30271419882774353,
-0.28463783860206604,
0.1434057503938675,
0.1583121418952942,
-0.2974906861782074,
-0.21437013149261475,
-0.43576741218566895,
0.11099927127361298,
-0.010337885469198227,
0.004830592777580023,
0.12057378143072128,
0.004085162654519081,
-0.12165766954421997,
-0.14917807281017303,
0.1427852213382721,
0.33655279874801636,
0.011109903454780579,
0.2541833817958832,
0.2866029143333435,
-0.186664879322052,
-0.1889958530664444,
0.06164811924099922,
0.3398820459842682,
0.2498171627521515,
0.030781082808971405,
-0.11628220975399017,
-0.13737396895885468,
0.21089866757392883,
-0.0295469481498003,
0.14505326747894287,
-0.10173843801021576,
-0.2741454243659973,
0.44552889466285706,
-0.1980544775724411,
0.16428694128990173,
0.1817682534456253,
0.21393239498138428,
0.15409931540489197,
-0.16729414463043213,
0.2581688463687897,
0.35902032256126404,
0.2057403177022934,
-0.32420021295547485,
-0.09415052086114883,
0.2892135977745056,
0.037349358201026917,
0.026726435869932175,
0.2186557948589325,
0.26253482699394226,
0.025380529463291168,
0.0876249149441719,
0.2319481372833252,
0.5210500359535217,
-0.09748973697423935,
0.06351251155138016,
0.16998162865638733,
-0.011720582842826843,
0.1757504791021347,
0.3932138681411743,
0.23866668343544006,
0.1860748529434204,
0.5628623962402344,
-0.28082403540611267,
0.16513730585575104,
-0.2849724590778351,
0.06403081119060516,
0.21546992659568787,
-0.3503408133983612,
-0.09728184342384338,
0.0168149471282959,
0.06173505261540413,
-0.1388552188873291,
-0.23727259039878845,
0.2847763001918793,
-0.3257538676261902,
-0.21051788330078125,
-0.0063242726027965546,
0.20717507600784302,
-0.18393641710281372,
0.04694366455078125,
0.219206303358078,
-0.018012836575508118,
-0.2396574169397354,
-0.21089380979537964,
0.21345268189907074,
-0.38167136907577515,
0.08607961237430573,
-0.016654960811138153,
-0.19730718433856964,
-0.2743225395679474,
-0.25141894817352295,
0.33588889241218567,
0.24920320510864258,
-0.12511464953422546,
-0.025694655254483223,
0.042339056730270386,
-0.17552009224891663,
-0.12463636696338654,
0.29184192419052124,
0.48017987608909607,
-0.01825403794646263,
0.0638241320848465,
0.0648508220911026,
0.0014742203056812286,
-0.07311815023422241,
0.1974007785320282,
0.05867201089859009,
0.04097684100270271,
0.15968601405620575,
0.0828346461057663,
0.18940894305706024,
-0.22217734158039093,
-0.09303556382656097,
-0.16480834782123566,
0.38396531343460083,
-0.3890140652656555,
0.6585589647293091,
-0.3984929025173187,
-0.004749316722154617,
-0.3378606140613556,
-0.08080919831991196,
-0.4612830579280853,
0.08213093876838684,
0.1428200900554657,
-0.0913841724395752,
-0.062279410660266876,
-0.3088233470916748,
0.08298693597316742,
-0.1339990198612213,
0.3811037838459015,
0.5112232565879822,
0.23303452134132385,
-0.11698181182146072,
-0.08823171257972717,
-0.47226282954216003,
0.1612185835838318,
-0.07519879937171936,
0.1110314130783081,
0.139069065451622,
-0.08615211397409439,
-0.22145169973373413,
0.03279907628893852,
0.2704392075538635,
0.06718368828296661,
0.11343163996934891,
-0.11097122728824615,
-0.24075500667095184,
-0.12815436720848083,
-0.28431499004364014,
-0.11592821776866913,
0.10910172760486603,
0.1129722073674202,
0.05337775871157646,
-0.236202210187912,
0.02739953249692917,
-0.10796824097633362,
0.010395713150501251,
-0.10262364149093628,
-0.3175181746482849,
0.4859590530395508,
0.025943800806999207,
0.2803814113140106,
-0.08016958832740784,
-0.01661509834229946,
-0.04274483397603035,
-0.26742956042289734,
-0.10517885535955429,
0.10428918898105621,
-0.175486758351326,
0.31507736444473267,
-0.05883786082267761,
-0.5843840837478638,
-0.25905951857566833,
0.37125611305236816,
0.11726762354373932,
0.06112011894583702,
-0.26423442363739014,
0.4563312232494354,
-0.17602351307868958,
0.06541726738214493,
0.29632243514060974,
0.15835127234458923,
-0.013660483062267303,
0.26723966002464294,
-0.16367226839065552,
-0.35472503304481506,
0.5571022629737854,
-0.3912687599658966,
-0.25093796849250793,
-0.09222668409347534,
0.385538250207901,
0.11404448747634888,
-0.48817357420921326,
-0.5579901933670044,
-0.028890550136566162,
0.16101112961769104,
-0.00009125471115112305,
-0.20127229392528534,
0.32844623923301697,
-0.16260629892349243,
0.20967857539653778,
-0.0000864565372467041,
0.26405784487724304,
0.06709824502468109,
0.028257833793759346,
0.5023453235626221,
-0.035478632897138596
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Yap, I've updated several times. Then, I've tried numeral combination of datasets and huggingface_hub versions. However, I think your point is right that there is a problem with my huggingface_hub installation. I'll try another way to find the solution. I'll update it later when I get the solution. Thank you :) | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 51 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
Yap, I've updated several times. Then, I've tried numeral combination of datasets and huggingface_hub versions. However, I think your point is right that there is a problem with my huggingface_hub installation. I'll try another way to find the solution. I'll update it later when I get the solution. Thank you :) | [
-0.21762122213840485,
-0.47809308767318726,
-0.03668218106031418,
0.4264870285987854,
0.24145939946174622,
0.07101545482873917,
0.13313604891300201,
0.3361753225326538,
0.3942016661167145,
0.17600524425506592,
-0.25716322660446167,
0.3224824368953705,
-0.07440641522407532,
0.17548923194408417,
-0.0037264181300997734,
-0.2850346267223358,
0.16793274879455566,
0.13402514159679413,
0.011151671409606934,
-0.13078466057777405,
-0.09723566472530365,
0.3413517475128174,
-0.11811479926109314,
0.18300533294677734,
-0.3890348970890045,
0.056104108691215515,
0.03248751908540726,
0.09208860993385315,
0.05598679184913635,
-0.3667353093624115,
0.22102327644824982,
-0.07249745726585388,
0.3038274645805359,
0.5344456434249878,
-0.00010928342817351222,
-0.05520059913396835,
0.30426499247550964,
0.13008829951286316,
-0.1815977543592453,
-0.3343825340270996,
-0.11053359508514404,
-0.034024253487586975,
0.13049140572547913,
0.025329381227493286,
-0.0588110089302063,
-0.14261023700237274,
-0.3089551031589508,
0.1100088357925415,
0.34120863676071167,
0.1623401641845703,
0.2940034568309784,
0.42778149247169495,
0.33048591017723083,
-0.3417063355445862,
-0.12237546592950821,
0.06599731743335724,
-0.06542879343032837,
0.39199233055114746,
-0.06157095730304718,
-0.08101752400398254,
0.1036861464381218,
0.09912565350532532,
0.17606467008590698,
0.15719814598560333,
0.5257856845855713,
0.018624847754836082,
-0.10314977914094925,
-0.24414590001106262,
-0.09531005471944809,
0.22645148634910583,
0.20343425869941711,
-0.36722904443740845,
-0.35152363777160645,
-0.044677622616291046,
0.03190634772181511,
-0.3105613887310028,
0.13395683467388153,
0.028468120843172073,
0.21525485813617706,
0.06198621541261673,
0.22054588794708252,
-0.21948544681072235,
-0.1634623110294342,
0.08985144644975662,
-0.13513240218162537,
0.0716216117143631,
-0.2331291139125824,
0.03584456443786621,
0.03687889501452446,
-0.17202770709991455,
-0.1339808851480484,
0.07794749736785889,
0.062015049159526825,
0.20667482912540436,
-0.31420329213142395,
-0.09924739599227905,
0.06594755500555038,
0.352037638425827,
0.14743995666503906,
0.16279952228069305,
-0.2954902648925781,
0.036516327410936356,
-0.17139026522636414,
0.12165127694606781,
-0.04084369167685509,
0.1959361433982849,
0.03395665064454079,
0.03637754172086716,
0.29833298921585083,
0.39067718386650085,
0.1013287901878357,
-0.08624698221683502,
-0.07143669575452805,
-0.15169750154018402,
0.0459260530769825,
-0.24207234382629395,
0.1849115788936615,
-0.17371699213981628,
-0.302925169467926,
0.10268216580152512,
-0.10360349714756012,
-0.026852818205952644,
0.18020634353160858,
0.4532465934753418,
-0.1586708426475525,
0.08431796729564667,
-0.053511522710323334,
0.2478981763124466,
-0.27400749921798706,
0.0020752986893057823,
-0.3297479748725891,
0.43028730154037476,
-0.08717349171638489,
0.02786725014448166,
-0.05221439152956009,
-0.3155578076839447,
0.1589246243238449,
0.18725842237472534,
0.29000210762023926,
-0.05614320561289787,
-0.18507646024227142,
0.039367448538541794,
-0.30235302448272705,
0.42341348528862,
0.022213511168956757,
0.24056391417980194,
0.17700660228729248,
-0.1360590159893036,
-0.13444149494171143,
-0.21943959593772888,
-0.461060106754303,
-0.14342652261257172,
-0.3096052408218384,
0.18206262588500977,
-0.2794315218925476,
-0.14139172434806824,
-0.3195115029811859,
-0.19922520220279694,
-0.16871130466461182,
-0.05594766139984131,
0.12141813337802887,
0.060453861951828,
-0.12329725921154022,
-0.10619556903839111,
0.19672337174415588,
0.43387091159820557,
0.08426560461521149,
-0.23740555346012115,
0.23044243454933167,
-0.1895751655101776,
-0.06386185437440872,
0.2721916735172272,
0.09146127849817276,
0.029624737799167633,
-0.19227445125579834,
0.15222376585006714,
0.07116681337356567,
-0.5524278283119202,
-0.41471800208091736,
-0.0743439570069313,
0.06766630709171295,
0.037196844816207886,
-0.056185491383075714,
-0.18556851148605347,
-0.14860482513904572,
0.014835670590400696,
0.2126426249742508,
0.013843263499438763,
0.18677085638046265,
-0.07473554462194443,
-0.2367483526468277,
-0.3177524507045746,
-0.0029555000364780426,
0.17816755175590515,
0.19332380592823029,
0.15893884003162384,
0.0237191841006279,
0.07051074504852295,
0.12483206391334534,
-0.022130656987428665,
-0.0322633758187294,
0.31605327129364014,
0.4016117453575134,
0.2042156159877777,
0.037820976227521896,
-0.42670804262161255,
-0.13311970233917236,
0.23440057039260864,
-0.16357845067977905,
0.16224050521850586,
-0.11717811226844788,
-0.04851996526122093,
-0.32111960649490356,
0.06199962645769119,
-0.09002849459648132,
-0.2186078131198883,
0.09736102819442749,
-0.23760628700256348,
0.09318257868289948,
0.1493082046508789,
-0.2839461863040924,
0.6883916258811951,
-0.007541093975305557,
0.3121969699859619,
-0.40569770336151123,
0.5282781720161438,
-0.14170725643634796,
-0.03408770635724068,
0.14816981554031372,
0.2518923282623291,
0.17115280032157898,
-0.05941719189286232,
-0.06547155231237411,
0.17975401878356934,
-0.04304581880569458,
0.18814164400100708,
-0.012681685388088226,
0.22972334921360016,
0.38063451647758484,
-0.15859957039356232,
-0.08558042347431183,
-0.14919956028461456,
0.087689608335495,
0.13535279035568237,
0.21406683325767517,
0.09514939785003662,
0.02439805492758751,
0.14851894974708557,
-0.026366913691163063,
0.1901634931564331,
0.10249246656894684,
0.07439501583576202,
-0.03494730964303017,
-0.22794033586978912,
0.24313046038150787,
-0.20638519525527954,
0.15734004974365234,
-0.130085289478302,
-0.0498681366443634,
-0.03057258576154709,
0.42456257343292236,
0.13415829837322235,
0.12618917226791382,
0.10890480875968933,
-0.2847517430782318,
0.2363991141319275,
0.16540084779262543,
-0.10030290484428406,
0.35485613346099854,
0.1004011482000351,
-0.26809147000312805,
0.31144604086875916,
-0.1946529746055603,
0.0006926190108060837,
-0.00020582973957061768,
0.03265548497438431,
0.13470445573329926,
0.016559764742851257,
-0.07253459841012955,
0.22715578973293304,
-0.2634534537792206,
-0.49894124269485474,
-0.24385087192058563,
0.3903976082801819,
-0.539782702922821,
0.005012635141611099,
-0.3695249855518341,
0.09914777427911758,
0.038319919258356094,
-0.5548323392868042,
-0.41880810260772705,
-0.1932634711265564,
-0.1345265656709671,
0.14245955646038055,
0.0899055004119873,
0.23769639432430267,
0.12737983465194702,
0.00846952199935913,
-0.04000294208526611,
0.08070764690637589,
-0.3467923402786255,
0.009821420535445213,
0.0007886551320552826,
0.0076865553855896,
0.03183338791131973,
0.2336975485086441,
0.2179538458585739,
-0.32393115758895874,
0.02094157040119171,
-0.1429334133863449,
-0.31924065947532654,
0.13605330884456635,
-0.12459114193916321,
0.3691061735153198,
0.26481711864471436,
0.22501182556152344,
-0.08792444318532944,
0.03166734054684639,
0.42896077036857605,
-0.3545118272304535,
-0.12195827066898346,
0.10688365995883942,
-0.119589664041996,
-0.11940163373947144,
-0.13061638176441193,
0.02956211566925049,
-0.1696510761976242,
-0.4896650016307831,
0.21122625470161438,
0.15784387290477753,
0.083133764564991,
0.3687121272087097,
0.014985877089202404,
0.22906392812728882,
-0.1374417543411255,
0.05668741464614868,
-0.3366268575191498,
-0.2390611171722412,
0.37074849009513855,
-0.35587379336357117,
-0.33793044090270996,
0.012972060590982437,
0.022652965039014816,
0.26033878326416016,
-0.3696439266204834,
-0.3180767893791199,
-0.6675441861152649,
-0.23469777405261993,
0.1788347363471985,
-0.2421148717403412,
0.35826507210731506,
0.23069559037685394,
-0.1547776609659195,
-0.013817590661346912,
-0.15263935923576355,
-0.020022688433527946,
0.04504559189081192,
0.24904048442840576,
0.04160119593143463,
0.04112730920314789,
0.2252664566040039,
-0.20339442789554596,
0.34333980083465576,
0.4742686152458191,
0.05018046125769615,
0.4213056266307831,
-0.1741398125886917,
0.29518812894821167,
-0.0653330460190773,
-0.36720046401023865,
-0.1000962033867836,
0.11976882070302963,
0.3263357877731323,
0.21760952472686768,
0.01562618650496006,
0.4055711627006531,
-0.15830188989639282,
-0.5275921821594238,
-0.10109806060791016,
-0.15349501371383667,
-0.2505958080291748,
-0.019549712538719177,
-0.017073407769203186,
-0.03292156010866165,
0.009145759046077728,
-0.19342143833637238,
0.0076187532395124435,
0.5416670441627502,
0.26425790786743164,
-0.10425978153944016,
0.08693680167198181,
-0.2053792029619217,
-0.30330315232276917,
-0.5135317444801331,
0.24829764664173126,
-0.07288903743028641,
0.28067830204963684,
-0.043312616646289825,
0.13784655928611755,
0.07920360565185547,
0.03565124794840813,
0.6029058694839478,
-0.008322658017277718,
-0.0004880465567111969,
-0.02578524500131607,
-0.13596990704536438,
-0.48778021335601807,
-0.06352528184652328,
-0.11199545860290527,
0.1427304893732071,
-0.31232890486717224,
0.4931052625179291,
-0.22474920749664307,
-0.25574639439582825,
0.16334526240825653,
0.027768898755311966,
-0.029492393136024475,
-0.22123560309410095,
-0.33136630058288574,
-0.31886541843414307,
-0.2777285873889923,
-0.05744481831789017,
0.1527530550956726,
0.3257111608982086,
0.2389838546514511,
0.01719728484749794,
-0.0008715037256479263,
-0.3101997375488281,
0.2807403802871704,
0.2014750838279724,
0.21022644639015198,
0.021198641508817673,
0.14066694676876068,
0.18360573053359985,
-0.04730558395385742,
0.17360219359397888,
0.5885937213897705,
-0.03692637011408806,
-0.5722553133964539,
-0.0007730647921562195,
0.10894493013620377,
0.027255281805992126,
0.18813784420490265,
-0.08186294138431549,
0.3222339451313019,
-0.02511737495660782,
0.45965224504470825,
-0.35619786381721497,
-0.23334087431430817,
0.1707991510629654,
0.2551281452178955,
-0.16960075497627258,
-0.05067084729671478,
0.6521273255348206,
0.08581922948360443,
0.10012654960155487,
0.3501034080982208,
0.866223156452179,
-0.0327884703874588,
0.1496123969554901,
-0.1308971345424652,
0.8275764584541321,
0.2045876830816269,
-0.1205834299325943,
0.31337958574295044,
-0.3345411419868469,
0.6408474445343018,
-0.20308934152126312,
-0.017603393644094467,
-0.3741421401500702,
-0.31903076171875,
-0.055477745831012726,
-0.04603501036763191,
0.30252471566200256,
-0.37645286321640015,
-0.056513916701078415,
0.22352558374404907,
-0.21119287610054016,
0.3378483057022095,
-0.15524475276470184,
0.15561801195144653,
-0.3633226156234741,
-0.27640190720558167,
-0.4586823582649231,
0.22309917211532593,
0.00026852265000343323,
0.48157715797424316,
-0.19171297550201416,
-0.008499901741743088,
-0.25145405530929565,
-0.19320489466190338,
-0.21173173189163208,
-0.14624691009521484,
-0.01793258637189865,
0.1823679655790329,
0.5365769267082214,
-0.025588423013687134,
0.25442904233932495,
-0.06276045739650726,
0.5206509232521057,
-0.06538429856300354,
-0.3890518844127655,
0.16305384039878845,
-0.36289286613464355,
-0.04744170233607292,
-0.07007701694965363,
0.14909078180789948,
0.419542521238327,
-0.14507603645324707,
-0.34955164790153503,
0.04882629215717316,
0.06964955478906631,
0.03888685256242752,
-0.03854775428771973,
0.09769262373447418,
-0.22951500117778778,
-0.10777704417705536,
-0.06960684061050415,
-0.06447595357894897,
0.37952664494514465,
-0.07243262231349945,
0.16398531198501587,
0.18272408843040466,
-0.21800497174263,
0.15210779011249542,
0.2599826455116272,
-0.1268186867237091,
-0.263388454914093,
0.4270722568035126,
-0.21405622363090515,
-0.030109040439128876,
0.1599927544593811,
0.16818904876708984,
-0.24511165916919708,
-0.10535995662212372,
-0.09604062139987946,
0.41968977451324463,
-0.567801296710968,
0.03932871297001839,
0.10793375968933105,
-0.000512346625328064,
-0.15519928932189941,
0.14355973899364471,
0.11732167750597,
-0.06660104542970657,
0.08364798128604889,
-0.4586169719696045,
-0.26177796721458435,
0.23825593292713165,
-0.2049218863248825,
-0.018792960792779922,
-0.09370151162147522,
0.12007467448711395,
-0.014374068938195705,
0.015299494378268719,
-0.34845951199531555,
0.10855529457330704,
-0.2939336895942688,
-0.13313306868076324,
-0.08400858938694,
-0.10068710893392563,
0.241926908493042,
-0.2104954570531845,
0.13628292083740234,
0.1955173760652542,
-0.35107582807540894,
-0.20175904035568237,
-0.44234970211982727,
0.11396845430135727,
-0.06737237423658371,
-0.009993255138397217,
0.1468944400548935,
0.017379116266965866,
-0.20776985585689545,
-0.1521693617105484,
0.1816992312669754,
0.39011311531066895,
-0.00007955729961395264,
0.21080844104290009,
0.21735866367816925,
-0.15490570664405823,
-0.11927435547113419,
0.15257112681865692,
0.3213752508163452,
0.3134342432022095,
-0.02722710371017456,
-0.10360842943191528,
-0.1057017594575882,
0.1673029214143753,
-0.026386607438325882,
0.14517351984977722,
-0.15986712276935577,
-0.26666396856307983,
0.27739858627319336,
-0.18001288175582886,
0.21392658352851868,
0.23075704276561737,
0.3628392815589905,
0.20445702970027924,
-0.16575275361537933,
0.15895569324493408,
0.3160500228404999,
0.2064903974533081,
-0.32475703954696655,
-0.048181500285863876,
0.26825448870658875,
0.0036925198510289192,
-0.005945086479187012,
0.2511429786682129,
0.2774677276611328,
-0.015702299773693085,
0.1473546028137207,
0.21156951785087585,
0.5722503066062927,
-0.1345842182636261,
0.08320096135139465,
0.05723194032907486,
-0.13938595354557037,
0.16675886511802673,
0.44138842821121216,
0.19753770530223846,
0.14443416893482208,
0.5020150542259216,
-0.36937323212623596,
0.04783693701028824,
-0.3221149444580078,
0.0903615802526474,
0.16036386787891388,
-0.2178400158882141,
-0.17709071934223175,
0.028394527733325958,
0.015343479812145233,
-0.13273096084594727,
-0.22326526045799255,
0.4350104033946991,
-0.321412593126297,
-0.1254815310239792,
-0.09090203791856766,
0.16512513160705566,
-0.15619757771492004,
0.02674248442053795,
0.2983503043651581,
-0.03426278010010719,
-0.22204691171646118,
-0.20227479934692383,
0.10022212564945221,
-0.32246822118759155,
0.17656615376472473,
0.11044235527515411,
-0.16489143669605255,
-0.37621569633483887,
-0.20539551973342896,
0.2885400354862213,
0.2878836393356323,
-0.12405161559581757,
0.02230304852128029,
0.08984348922967911,
-0.17735236883163452,
-0.09100593626499176,
0.2590770125389099,
0.5176731944084167,
-0.041228823363780975,
0.0900513082742691,
0.048153407871723175,
-0.021130450069904327,
0.028238261118531227,
0.2205250859260559,
0.01171815488487482,
0.10341141372919083,
0.15202142298221588,
0.10826362669467926,
0.16094325482845306,
-0.2126588672399521,
-0.0849078893661499,
-0.18668314814567566,
0.423019140958786,
-0.37601858377456665,
0.5547239780426025,
-0.47028008103370667,
0.05887763202190399,
-0.26599085330963135,
-0.06417282670736313,
-0.4693177044391632,
0.12760137021541595,
0.05139264091849327,
-0.020840993151068687,
-0.052227944135665894,
-0.3222443461418152,
0.08441156148910522,
-0.13054300844669342,
0.4109989404678345,
0.33681416511535645,
0.20086431503295898,
-0.08777553588151932,
-0.08433163911104202,
-0.5329533815383911,
0.10951631516218185,
-0.018897075206041336,
0.12600618600845337,
0.1110839694738388,
-0.10260531306266785,
-0.17779755592346191,
0.0452699214220047,
0.29393136501312256,
0.0339263491332531,
0.014140457846224308,
-0.07840040326118469,
-0.253185510635376,
0.015910113230347633,
-0.39197707176208496,
-0.1149827390909195,
0.14277876913547516,
0.17508459091186523,
0.21214847266674042,
-0.236506849527359,
-0.013035193085670471,
-0.13623042404651642,
0.1042359471321106,
-0.09652534127235413,
-0.2959522604942322,
0.3936777412891388,
0.11372747272253036,
0.2728045582771301,
-0.03073234297335148,
0.039948999881744385,
-0.05564824864268303,
-0.23724788427352905,
-0.12382203340530396,
0.195855975151062,
-0.16382865607738495,
0.3103204667568207,
-0.09257972985506058,
-0.5694862008094788,
-0.2351040542125702,
0.32326024770736694,
0.06762224435806274,
0.03264312818646431,
-0.26570892333984375,
0.3971831798553467,
-0.10603008419275284,
0.028198910877108574,
0.2321663200855255,
0.22975274920463562,
0.04295079782605171,
0.19373859465122223,
-0.19641610980033875,
-0.4416571855545044,
0.5493952631950378,
-0.4241461157798767,
-0.3043675124645233,
-0.12016253173351288,
0.33475789427757263,
0.12835794687271118,
-0.5287448763847351,
-0.534404456615448,
0.07980864495038986,
0.1183188259601593,
0.0025872699916362762,
-0.259204238653183,
0.38047415018081665,
-0.14183996617794037,
0.17053845524787903,
-0.025618750602006912,
0.26452767848968506,
0.1061423197388649,
0.046312540769577026,
0.4803036153316498,
-0.0738670825958252
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | I'm sorry I can't reproduce your problem.
Maybe you could try to create a new Python virtual environment and install all dependencies there from scratch. You can use either:
- Python venv: https://docs.python.org/3/library/venv.html
- or conda venv (if you are using conda): https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 43 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
I'm sorry I can't reproduce your problem.
Maybe you could try to create a new Python virtual environment and install all dependencies there from scratch. You can use either:
- Python venv: https://docs.python.org/3/library/venv.html
- or conda venv (if you are using conda): https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html | [
-0.21466287970542908,
-0.36547693610191345,
-0.07615196704864502,
0.28642892837524414,
0.3152768015861511,
0.06447785347700119,
0.12038028985261917,
0.37589016556739807,
0.395961195230484,
0.099708691239357,
-0.31675437092781067,
0.35482633113861084,
-0.03158384934067726,
0.17636480927467346,
0.03513355925679207,
-0.26262742280960083,
0.0786469578742981,
0.24719569087028503,
-0.12264229357242584,
-0.24267034232616425,
-0.019864020869135857,
0.21738164126873016,
-0.07308343052864075,
0.13409286737442017,
-0.3439819812774658,
-0.05584290623664856,
-0.03230014070868492,
0.17002731561660767,
0.1204410120844841,
-0.2955152094364166,
0.25427499413490295,
-0.06571550667285919,
0.23280024528503418,
0.37975940108299255,
-0.00010544428369030356,
0.012149542570114136,
0.22406920790672302,
0.07793211936950684,
-0.10370506346225739,
-0.26535922288894653,
-0.15406441688537598,
-0.1900126338005066,
0.12789195775985718,
-0.036915142089128494,
-0.06361059099435806,
-0.26779502630233765,
-0.260287344455719,
0.06568197906017303,
0.3374566435813904,
0.16178783774375916,
0.31772080063819885,
0.504181981086731,
0.24723942577838898,
-0.29128047823905945,
-0.14610505104064941,
0.05237641930580139,
-0.0683174580335617,
0.3018017113208771,
-0.10827142000198364,
-0.18785671889781952,
0.08903641253709793,
0.07039536535739899,
0.05130545794963837,
0.16104397177696228,
0.5031834840774536,
0.06401485204696655,
-0.1345561444759369,
-0.21905025839805603,
-0.1013917401432991,
0.17706002295017242,
0.22353368997573853,
-0.33807551860809326,
-0.3487614095211029,
0.0025682076811790466,
0.05526745319366455,
-0.30091649293899536,
0.06367240846157074,
0.11308726668357849,
0.14426153898239136,
0.1730324774980545,
0.189218208193779,
-0.2577122151851654,
-0.0990130826830864,
0.17862436175346375,
-0.14812448620796204,
0.12379024177789688,
-0.17492488026618958,
-0.08562730997800827,
0.10064402222633362,
-0.10109637677669525,
-0.03798062354326248,
0.10843823850154877,
0.0000013522803783416748,
0.1704665571451187,
-0.31134435534477234,
-0.0728597342967987,
0.08222351968288422,
0.17909851670265198,
0.10394217818975449,
0.18094034492969513,
-0.29260125756263733,
-0.06615012884140015,
-0.22204820811748505,
0.18515121936798096,
-0.03451409563422203,
0.20795363187789917,
-0.10624124854803085,
0.1979089379310608,
0.37377655506134033,
0.27261173725128174,
0.006517007946968079,
-0.09336838871240616,
-0.11685070395469666,
-0.11062225699424744,
0.09937240183353424,
-0.167585551738739,
0.23679746687412262,
-0.14487731456756592,
-0.3173195719718933,
0.16452829539775848,
-0.11668190360069275,
0.01999540627002716,
0.115156389772892,
0.4662517011165619,
-0.20670875906944275,
0.04556068032979965,
0.10546725988388062,
0.2595764994621277,
-0.17149582505226135,
0.02885497733950615,
-0.3590634763240814,
0.38200631737709045,
0.01800781860947609,
-0.012647898867726326,
0.013317111879587173,
-0.2823406457901001,
0.30191391706466675,
0.0433952771127224,
0.32682210206985474,
0.005869384855031967,
-0.1119256243109703,
0.0784553736448288,
-0.3052564263343811,
0.5480362176895142,
0.13771554827690125,
0.12384102493524551,
0.1968204826116562,
-0.06573021411895752,
-0.09946036338806152,
-0.197835773229599,
-0.4056849479675293,
-0.16777582466602325,
-0.22832493484020233,
0.20965519547462463,
-0.21997594833374023,
-0.12155421078205109,
-0.2501019835472107,
-0.2917158603668213,
-0.18739718198776245,
0.03704119846224785,
0.034033142030239105,
0.05421166121959686,
-0.021271374076604843,
-0.10394435375928879,
0.2468118667602539,
0.4076691269874573,
0.018740329891443253,
-0.22858403623104095,
0.2585124969482422,
-0.10315343737602234,
-0.08224783092737198,
0.23260073363780975,
0.029017820954322815,
0.12750057876110077,
-0.20689673721790314,
0.0024475902318954468,
0.13038697838783264,
-0.5651577711105347,
-0.4567447304725647,
0.021507130935788155,
0.0853719413280487,
0.0616304874420166,
-0.07289288192987442,
-0.0807776004076004,
-0.14216163754463196,
0.08293319493532181,
0.1395665556192398,
0.23192285001277924,
0.20688395202159882,
-0.046111248433589935,
-0.23602837324142456,
-0.25819623470306396,
-0.033395856618881226,
0.15405648946762085,
0.21000449359416962,
0.2340739667415619,
-0.005835607647895813,
-0.016137130558490753,
0.10885658860206604,
-0.06491175293922424,
0.01609935611486435,
0.4007902145385742,
0.4296930134296417,
0.19362783432006836,
-0.010148598812520504,
-0.4095825254917145,
-0.07639414817094803,
0.16077876091003418,
-0.16563615202903748,
0.1877720206975937,
-0.16987429559230804,
-0.10719870775938034,
-0.3453385829925537,
0.04761742800474167,
-0.07830531895160675,
-0.2478618323802948,
0.15281333029270172,
-0.1810205578804016,
-0.010008690878748894,
0.14255069196224213,
-0.2521955668926239,
0.7142417430877686,
-0.0036114566028118134,
0.31083405017852783,
-0.25006264448165894,
0.6051481366157532,
-0.17827671766281128,
-0.007063622586429119,
0.15710993111133575,
0.20620349049568176,
0.11641483008861542,
-0.07201961427927017,
-0.1554873287677765,
0.12620672583580017,
-0.1273379623889923,
0.17775744199752808,
0.025295784696936607,
0.19931870698928833,
0.325550377368927,
-0.22721856832504272,
-0.005997000262141228,
-0.09128573536872864,
0.10062859952449799,
0.1021052673459053,
0.24438205361366272,
0.16667497158050537,
0.055840834975242615,
0.10199053585529327,
0.03480963408946991,
0.2542981505393982,
0.16932465136051178,
-0.025592319667339325,
0.04085704684257507,
-0.25325655937194824,
0.24992290139198303,
-0.08958128094673157,
0.2534511685371399,
-0.16479675471782684,
-0.0731787234544754,
-0.07695486396551132,
0.3515242636203766,
0.07330898940563202,
0.233465313911438,
0.03398691862821579,
-0.30094775557518005,
0.36146295070648193,
0.15565267205238342,
-0.07117778807878494,
0.3950159549713135,
0.13893085718154907,
-0.296791136264801,
0.3213455379009247,
-0.16297084093093872,
0.028159279376268387,
0.013836182653903961,
0.03105759248137474,
0.26716122031211853,
0.009717103093862534,
0.002002703957259655,
0.1530211716890335,
-0.26382118463516235,
-0.5342405438423157,
-0.22413206100463867,
0.35312581062316895,
-0.4391447901725769,
0.0359162762761116,
-0.39682862162590027,
0.20808938145637512,
0.16249613463878632,
-0.4965677261352539,
-0.33553794026374817,
-0.2295355349779129,
-0.21211732923984528,
0.07507539540529251,
0.05100250616669655,
0.3133338391780853,
0.06286072731018066,
0.006089061498641968,
0.03091738186776638,
-0.04781104624271393,
-0.2844252586364746,
-0.10990767925977707,
-0.023793838918209076,
0.03307943046092987,
0.0256052128970623,
0.28051215410232544,
0.16377103328704834,
-0.20343135297298431,
0.1532621830701828,
-0.1348648965358734,
-0.306197851896286,
0.10642360150814056,
-0.1484702229499817,
0.4658307433128357,
0.25941991806030273,
0.2962835431098938,
-0.016631238162517548,
-0.019915524870157242,
0.41532981395721436,
-0.28009217977523804,
-0.15838323533535004,
0.09170752018690109,
-0.10915174335241318,
-0.2688581943511963,
-0.12681454420089722,
-0.03709370642900467,
-0.27555447816848755,
-0.5264939069747925,
0.13935376703739166,
0.10761980712413788,
0.05931412801146507,
0.3850499987602234,
0.04383948817849159,
0.16895705461502075,
-0.046267710626125336,
0.12707100808620453,
-0.21876390278339386,
-0.21992072463035583,
0.3751755654811859,
-0.36527737975120544,
-0.35764724016189575,
0.025590714067220688,
-0.005411170423030853,
0.3593878448009491,
-0.3256922960281372,
-0.4006529450416565,
-0.6371341347694397,
-0.2404254525899887,
0.2522886097431183,
-0.23879480361938477,
0.3170400559902191,
0.15753376483917236,
-0.12439841777086258,
-0.03147263824939728,
-0.14776253700256348,
0.008074324578046799,
-0.026401124894618988,
0.21504193544387817,
-0.07063635438680649,
0.008919104933738708,
0.20205873250961304,
-0.22301167249679565,
0.27030277252197266,
0.322872519493103,
0.0277768112719059,
0.4744877815246582,
-0.16669592261314392,
0.34899136424064636,
-0.038149163126945496,
-0.5646451115608215,
-0.2121441513299942,
0.09870016574859619,
0.26143717765808105,
0.03121992200613022,
-0.056326910853385925,
0.3332192003726959,
-0.18283714354038239,
-0.5387205481529236,
-0.09963162243366241,
-0.16391488909721375,
-0.2564331889152527,
-0.02258586883544922,
0.07079188525676727,
0.03681492432951927,
0.06664019078016281,
-0.23809288442134857,
0.04991617053747177,
0.5411685705184937,
0.32883012294769287,
-0.12095197290182114,
-0.011535527184605598,
-0.23041243851184845,
-0.2901831567287445,
-0.435573935508728,
0.20601651072502136,
-0.13958875834941864,
0.2694191038608551,
0.006894651800394058,
0.1623336374759674,
0.02545202523469925,
-0.023316534236073494,
0.6640511155128479,
-0.023108551278710365,
-0.06106611341238022,
-0.05299656465649605,
-0.11597305536270142,
-0.3737887442111969,
-0.07369312644004822,
-0.1491822600364685,
0.0368550606071949,
-0.16716814041137695,
0.3542880415916443,
-0.10518917441368103,
-0.3037447929382324,
0.23343925178050995,
0.024255109950900078,
-0.08766810595989227,
-0.13553370535373688,
-0.39494359493255615,
-0.36997127532958984,
-0.3801630735397339,
-0.027762889862060547,
0.08190948516130447,
0.3324446380138397,
0.25059598684310913,
0.0012290067970752716,
-0.13741976022720337,
-0.26399052143096924,
0.21487495303153992,
0.19693529605865479,
0.16102704405784607,
-0.05076243355870247,
0.21359801292419434,
0.06764616072177887,
-0.041757211089134216,
0.1439397931098938,
0.677443265914917,
-0.14044766128063202,
-0.6003045439720154,
-0.10653776675462723,
0.07403381168842316,
0.1724027842283249,
0.11117465794086456,
-0.06019049137830734,
0.2526002824306488,
-0.1002170592546463,
0.3931608200073242,
-0.29952532052993774,
-0.1205340102314949,
0.21374845504760742,
0.1835707724094391,
-0.04421135410666466,
-0.11333726346492767,
0.5277277827262878,
0.051587577909231186,
0.10653221607208252,
0.3740496039390564,
0.7431244254112244,
-0.049006544053554535,
0.21997098624706268,
-0.08150171488523483,
0.8450087904930115,
0.26601189374923706,
-0.05178673192858696,
0.3569662272930145,
-0.30397772789001465,
0.5185337066650391,
-0.24736881256103516,
-0.015366453677415848,
-0.30041834712028503,
-0.44722822308540344,
-0.06600629538297653,
-0.06794942915439606,
0.39656969904899597,
-0.338303804397583,
0.026553619652986526,
0.21352678537368774,
-0.14751169085502625,
0.19605174660682678,
-0.11653731763362885,
0.14571669697761536,
-0.18997496366500854,
-0.3656674027442932,
-0.5725880861282349,
0.23570194840431213,
-0.01956970989704132,
0.49067893624305725,
-0.14697816967964172,
-0.04195613041520119,
-0.2551788091659546,
-0.11225965619087219,
-0.19236162304878235,
0.008381325751543045,
-0.03234010562300682,
0.23384805023670197,
0.40429195761680603,
-0.06668931990861893,
0.18332619965076447,
-0.04185992106795311,
0.41784876585006714,
0.14475958049297333,
-0.28753164410591125,
0.2340782880783081,
-0.35438817739486694,
-0.004857908468693495,
-0.11858446896076202,
0.12264472246170044,
0.39856645464897156,
-0.1373729258775711,
-0.4831864535808563,
0.171080082654953,
-0.0448366142809391,
0.012920156121253967,
0.046001702547073364,
0.0638652965426445,
-0.18349871039390564,
-0.13585041463375092,
-0.09083583950996399,
0.03245612978935242,
0.38015231490135193,
-0.09734392166137695,
0.19733858108520508,
0.1870419979095459,
-0.18776242434978485,
0.09926318377256393,
0.2990593910217285,
-0.17088747024536133,
-0.2825283408164978,
0.42231035232543945,
-0.10982116311788559,
0.011116880923509598,
0.22768864035606384,
0.11528763175010681,
-0.2178868055343628,
-0.19330546259880066,
-0.05166901275515556,
0.3944474756717682,
-0.45120614767074585,
0.014345234259963036,
0.07295703142881393,
-0.11916837841272354,
-0.1458955705165863,
0.11210525035858154,
0.07715914398431778,
-0.07824435085058212,
0.05713626369833946,
-0.49880918860435486,
-0.28973689675331116,
0.2675608992576599,
-0.24075902998447418,
0.01306723803281784,
-0.024213440716266632,
0.19964419305324554,
-0.12315880507230759,
0.12914982438087463,
-0.3765813112258911,
0.06609752774238586,
-0.32232043147087097,
-0.15926553308963776,
-0.02861703187227249,
-0.10630928725004196,
0.33569878339767456,
-0.186622753739357,
0.16744303703308105,
0.1531091332435608,
-0.282757967710495,
-0.24733951687812805,
-0.41465306282043457,
0.0906003937125206,
-0.038612000644207,
0.0029931049793958664,
0.1708531528711319,
-0.045991625636816025,
-0.2411014437675476,
-0.19499900937080383,
0.19901727139949799,
0.25925466418266296,
0.009568586945533752,
0.2890723645687103,
0.14129671454429626,
-0.178892582654953,
-0.11453544348478317,
-0.009287960827350616,
0.2526005506515503,
0.16239547729492188,
0.01764156110584736,
-0.10537724196910858,
-0.0687495544552803,
0.1761646568775177,
-0.09089165180921555,
0.07201894372701645,
-0.09052200615406036,
-0.15952563285827637,
0.44434359669685364,
-0.16986031830310822,
0.13126395642757416,
0.171695277094841,
0.26433756947517395,
0.14966335892677307,
-0.11180128902196884,
0.2707051932811737,
0.34186291694641113,
0.23905396461486816,
-0.44822782278060913,
-0.13178400695323944,
0.2876735031604767,
-0.03336527198553085,
0.04824149236083031,
0.2044982612133026,
0.21567422151565552,
-0.020234517753124237,
0.1162109225988388,
0.25266069173812866,
0.5242581367492676,
-0.17181140184402466,
0.05599702149629593,
0.11508405208587646,
-0.0181797593832016,
0.15856343507766724,
0.4143804907798767,
0.25117021799087524,
0.1927511841058731,
0.5737233757972717,
-0.33156323432922363,
0.10164739191532135,
-0.347266286611557,
0.10796226561069489,
0.15047398209571838,
-0.3640868663787842,
-0.10990530252456665,
-0.09414039552211761,
0.06015179678797722,
-0.12204845994710922,
-0.2503431439399719,
0.28060948848724365,
-0.2898772954940796,
-0.22920899093151093,
-0.06258281320333481,
0.3004525601863861,
-0.1793523132801056,
0.09854699671268463,
0.23114490509033203,
0.00232803076505661,
-0.11914680153131485,
-0.15340782701969147,
0.23869040608406067,
-0.400831937789917,
0.14632153511047363,
0.04898912459611893,
-0.13390859961509705,
-0.3626042604446411,
-0.1037183627486229,
0.2907090485095978,
0.1961383819580078,
-0.06980293244123459,
0.06397990882396698,
0.14870071411132812,
-0.18066847324371338,
-0.24149256944656372,
0.2623719274997711,
0.4656332731246948,
0.05126422271132469,
0.067196786403656,
0.03900383040308952,
-0.008308758959174156,
-0.07555187493562698,
0.15501666069030762,
0.02967255190014839,
0.0488521009683609,
0.24624718725681305,
0.07001252472400665,
0.19732746481895447,
-0.23685085773468018,
-0.08804187178611755,
-0.10703092813491821,
0.34160497784614563,
-0.35897207260131836,
0.6167529225349426,
-0.25670862197875977,
-0.049483850598335266,
-0.2784440219402313,
-0.12140699476003647,
-0.45259347558021545,
0.11841043084859848,
0.19624118506908417,
-0.021541355177760124,
-0.04268834367394447,
-0.2979961037635803,
0.10434383153915405,
-0.13525862991809845,
0.4164809584617615,
0.4700005352497101,
0.18485048413276672,
-0.16370274126529694,
-0.0026302412152290344,
-0.4915888011455536,
0.18980513513088226,
-0.09144571423530579,
-0.0043488312512636185,
0.08271019160747528,
-0.11370500922203064,
-0.12385425716638565,
0.00648140162229538,
0.22772978246212006,
0.07113426923751831,
0.11430593580007553,
-0.18027986586093903,
-0.3366429805755615,
-0.09374892711639404,
-0.34832072257995605,
-0.11707422137260437,
0.12160633504390717,
0.05366096645593643,
0.012854192405939102,
-0.1522134244441986,
0.0653427466750145,
-0.12331707775592804,
0.036837317049503326,
-0.03687336668372154,
-0.2813358008861542,
0.46043577790260315,
0.019202927127480507,
0.2895849943161011,
-0.050412461161613464,
-0.04257483780384064,
-0.06764094531536102,
-0.3044589161872864,
-0.1158914715051651,
0.1539519876241684,
-0.06751199066638947,
0.2820063531398773,
-0.09214282035827637,
-0.5312680602073669,
-0.32027989625930786,
0.3385774493217468,
0.1571178436279297,
0.0395011268556118,
-0.1972922682762146,
0.4509517252445221,
-0.1329607516527176,
0.09388774633407593,
0.250442236661911,
0.21286141872406006,
-0.08423005044460297,
0.254047691822052,
-0.23411250114440918,
-0.3401949405670166,
0.49703413248062134,
-0.4015663266181946,
-0.27325358986854553,
-0.03749701380729675,
0.33747443556785583,
0.07626453042030334,
-0.43080347776412964,
-0.5070705413818359,
0.061556048691272736,
0.13656823337078094,
-0.048214271664619446,
-0.2638867497444153,
0.37677624821662903,
-0.060683827847242355,
0.1618867665529251,
-0.030206844210624695,
0.26552456617355347,
0.06820312142372131,
-0.070908322930336,
0.42348238825798035,
0.008891075849533081
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | Facing the same issue.
Response from `pip show datasets`
```
Name: datasets
Version: 1.15.1
Summary: HuggingFace community-driven open-source library of datasets
Home-page: https://github.com/huggingface/datasets
Author: HuggingFace Inc.
Author-email: thomas@huggingface.co
License: Apache 2.0
Location: /usr/local/lib/python3.8/dist-packages
Requires: aiohttp, dill, fsspec, huggingface-hub, multiprocess, numpy, packaging, pandas, pyarrow, requests, tqdm, xxhash
Required-by: lm-eval
```
Response from `pip show huggingface_hub`
```
Name: huggingface-hub
Version: 0.8.1
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
Home-page: https://github.com/huggingface/huggingface_hub
Author: Hugging Face, Inc.
Author-email: julien@huggingface.co
License: Apache
Location: /usr/local/lib/python3.8/dist-packages
Requires: filelock, packaging, pyyaml, requests, tqdm, typing-extensions
Required-by: datasets
```
response from `datasets-cli env`
```
Traceback (most recent call last):
File "/usr/local/bin/datasets-cli", line 5, in <module>
from datasets.commands.datasets_cli import main
File "/usr/local/lib/python3.8/dist-packages/datasets/__init__.py", line 37, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 44, in <module>
from .data_files import DataFilesDict, _sanitize_patterns
File "/usr/local/lib/python3.8/dist-packages/datasets/data_files.py", line 120, in <module>
dataset_info: huggingface_hub.hf_api.DatasetInfo,
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/__init__.py", line 105, in __getattr__
raise AttributeError(f"No {package_name} attribute {name}")
AttributeError: No huggingface_hub attribute hf_api
``` | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 167 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
Facing the same issue.
Response from `pip show datasets`
```
Name: datasets
Version: 1.15.1
Summary: HuggingFace community-driven open-source library of datasets
Home-page: https://github.com/huggingface/datasets
Author: HuggingFace Inc.
Author-email: thomas@huggingface.co
License: Apache 2.0
Location: /usr/local/lib/python3.8/dist-packages
Requires: aiohttp, dill, fsspec, huggingface-hub, multiprocess, numpy, packaging, pandas, pyarrow, requests, tqdm, xxhash
Required-by: lm-eval
```
Response from `pip show huggingface_hub`
```
Name: huggingface-hub
Version: 0.8.1
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
Home-page: https://github.com/huggingface/huggingface_hub
Author: Hugging Face, Inc.
Author-email: julien@huggingface.co
License: Apache
Location: /usr/local/lib/python3.8/dist-packages
Requires: filelock, packaging, pyyaml, requests, tqdm, typing-extensions
Required-by: datasets
```
response from `datasets-cli env`
```
Traceback (most recent call last):
File "/usr/local/bin/datasets-cli", line 5, in <module>
from datasets.commands.datasets_cli import main
File "/usr/local/lib/python3.8/dist-packages/datasets/__init__.py", line 37, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/usr/local/lib/python3.8/dist-packages/datasets/builder.py", line 44, in <module>
from .data_files import DataFilesDict, _sanitize_patterns
File "/usr/local/lib/python3.8/dist-packages/datasets/data_files.py", line 120, in <module>
dataset_info: huggingface_hub.hf_api.DatasetInfo,
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/__init__.py", line 105, in __getattr__
raise AttributeError(f"No {package_name} attribute {name}")
AttributeError: No huggingface_hub attribute hf_api
``` | [
-0.22887471318244934,
-0.500328004360199,
-0.03256034106016159,
0.41718119382858276,
0.3196237087249756,
0.18917575478553772,
0.12362359464168549,
0.2566920220851898,
0.4274251461029053,
0.11910858005285263,
-0.2684928774833679,
0.26832541823387146,
-0.10667639970779419,
0.14329712092876434,
0.013138292357325554,
-0.2557181119918823,
0.08533130586147308,
0.07189349830150604,
-0.006732575595378876,
-0.18996967375278473,
0.0027827806770801544,
0.31981927156448364,
-0.09790287911891937,
0.1937914490699768,
-0.2475777566432953,
-0.04059772193431854,
0.05350424349308014,
0.12803205847740173,
0.052067555487155914,
-0.3782443702220917,
0.30719512701034546,
-0.20109178125858307,
0.16585145890712738,
0.3552592992782593,
-0.00011495104263303801,
-0.020200472325086594,
0.30214279890060425,
0.08749061077833176,
-0.24039098620414734,
-0.3722986578941345,
-0.13394272327423096,
-0.0996236652135849,
0.06285741180181503,
0.037615276873111725,
-0.020754100754857063,
-0.14848721027374268,
-0.23338620364665985,
-0.08303990960121155,
0.33383530378341675,
0.23417063057422638,
0.23045550286769867,
0.48523566126823425,
0.28152674436569214,
-0.2791326940059662,
-0.08980313688516617,
0.15745006501674652,
-0.04627130553126335,
0.3393287658691406,
-0.1032482236623764,
-0.06564689427614212,
0.14095477759838104,
0.1231745183467865,
0.1178605854511261,
0.24066279828548431,
0.4405461251735687,
-0.041373200714588165,
-0.14574596285820007,
-0.1821625679731369,
-0.12325579673051834,
0.1904221773147583,
0.26638713479042053,
-0.41991278529167175,
-0.43074658513069153,
-0.03940008208155632,
0.09834987670183182,
-0.24882563948631287,
0.07291565090417862,
0.23407861590385437,
0.16266554594039917,
0.1352977305650711,
0.22761517763137817,
-0.23992590606212616,
-0.12838873267173767,
0.07795177400112152,
-0.0763106495141983,
0.018351420760154724,
-0.23176069557666779,
0.011295855045318604,
0.04784008115530014,
-0.08560894429683685,
-0.17170386016368866,
-0.049273326992988586,
-0.027120579034090042,
0.27544015645980835,
-0.2924653887748718,
-0.04033558815717697,
0.025056514889001846,
0.3633900582790375,
0.1248452439904213,
0.23305834829807281,
-0.26678359508514404,
-0.10582917183637619,
-0.12197998911142349,
0.14533761143684387,
0.010383707471191883,
0.20096932351589203,
0.04764048010110855,
0.166230708360672,
0.18298842012882233,
0.3411546051502228,
0.09120513498783112,
-0.15520235896110535,
-0.01558937318623066,
0.03387022390961647,
-0.062169529497623444,
-0.1924723982810974,
0.17589478194713593,
-0.11040708422660828,
-0.43722453713417053,
0.173932746052742,
-0.13859078288078308,
-0.0669587105512619,
0.18282197415828705,
0.46704602241516113,
-0.19081544876098633,
-0.00970035046339035,
0.03581613302230835,
0.1904546022415161,
-0.18513016402721405,
-0.1272265613079071,
-0.3325577676296234,
0.4493125081062317,
0.06586335599422455,
0.02729906514286995,
-0.053944241255521774,
-0.4215213358402252,
0.22467270493507385,
0.05995865911245346,
0.3405594825744629,
-0.09414081275463104,
-0.12112847715616226,
-0.010197018273174763,
-0.24743646383285522,
0.41606780886650085,
0.059126194566488266,
0.2417364865541458,
0.25758591294288635,
-0.18456846475601196,
-0.14084133505821228,
-0.304686963558197,
-0.5540196299552917,
-0.18178148567676544,
-0.23548103868961334,
0.15378081798553467,
-0.25761380791664124,
-0.06783638894557953,
-0.41333189606666565,
-0.21331138908863068,
-0.19234830141067505,
-0.03071731887757778,
0.14552365243434906,
0.15347403287887573,
-0.10334433615207672,
-0.07267016917467117,
0.16553929448127747,
0.4888732433319092,
0.131516233086586,
-0.3463785946369171,
0.17471273243427277,
-0.17860212922096252,
-0.0660097524523735,
0.15181145071983337,
0.04015318676829338,
0.20117966830730438,
-0.30452701449394226,
0.14746621251106262,
0.12869851291179657,
-0.6124531626701355,
-0.43670913577079773,
0.026405081152915955,
0.13449078798294067,
0.034299880266189575,
-0.051874421536922455,
-0.19729645550251007,
-0.1784018576145172,
0.06545251607894897,
0.14079135656356812,
0.08203619718551636,
0.1513717621564865,
-0.062222301959991455,
-0.16603325307369232,
-0.2740271985530853,
-0.030182652175426483,
0.15030138194561005,
0.07508214563131332,
0.16592790186405182,
0.0981001928448677,
0.1173047199845314,
0.09101621806621552,
0.03081662394106388,
0.024518197402358055,
0.2970065474510193,
0.3733876049518585,
0.22602578997612,
0.03919956088066101,
-0.4282175302505493,
-0.1299305260181427,
0.14563074707984924,
-0.19399143755435944,
0.10125868022441864,
-0.16318877041339874,
-0.11531760543584824,
-0.2973398268222809,
0.09765955060720444,
-0.14541849493980408,
-0.27801236510276794,
0.07961855083703995,
-0.2184874415397644,
0.03225133195519447,
0.2207028716802597,
-0.2881695032119751,
0.7283757925033569,
-0.03476020321249962,
0.3035212457180023,
-0.4562196433544159,
0.5859653353691101,
-0.09785061329603195,
-0.001799234189093113,
0.048294246196746826,
0.24720868468284607,
0.13195692002773285,
-0.05299754813313484,
-0.08625663071870804,
0.14644724130630493,
-0.03627989813685417,
0.24312569200992584,
0.07171861082315445,
0.18428769707679749,
0.3589170277118683,
-0.2489810436964035,
-0.14268814027309418,
-0.0970410406589508,
0.1512909084558487,
0.17726507782936096,
0.16751830279827118,
0.14984534680843353,
0.0027997270226478577,
0.20928625762462616,
0.0042855143547058105,
0.2325887382030487,
0.04315388202667236,
0.025056760758161545,
0.029497532173991203,
-0.23074059188365936,
0.36198195815086365,
-0.21229703724384308,
0.24412910640239716,
-0.18934808671474457,
0.0016938745975494385,
-0.1306241750717163,
0.31033021211624146,
0.13899573683738708,
0.15585169196128845,
0.022445928305387497,
-0.38376539945602417,
0.2647605538368225,
0.2145806849002838,
0.004645068198442459,
0.41733717918395996,
0.08812172710895538,
-0.29507872462272644,
0.27060914039611816,
-0.041002530604600906,
0.08742345124483109,
0.13572099804878235,
0.08194497227668762,
0.09165901690721512,
0.0969165563583374,
-0.04509475827217102,
0.18627113103866577,
-0.22951152920722961,
-0.5421629548072815,
-0.2382185012102127,
0.35038527846336365,
-0.5839492082595825,
0.03814147412776947,
-0.38153740763664246,
0.13103601336479187,
0.053401462733745575,
-0.4451488256454468,
-0.42866572737693787,
-0.22848252952098846,
-0.25687313079833984,
0.05353503301739693,
0.08380402624607086,
0.11231134086847305,
-0.008294235914945602,
0.06737381219863892,
-0.06595147401094437,
0.05943895876407623,
-0.32896918058395386,
0.013722015544772148,
-0.0019781887531280518,
-0.032107628881931305,
0.07763860374689102,
0.22813063859939575,
0.21890366077423096,
-0.27617621421813965,
0.10819748044013977,
-0.10788020491600037,
-0.2176496982574463,
0.22006581723690033,
0.007470998913049698,
0.47192034125328064,
0.3239745497703552,
0.19043299555778503,
-0.1383315622806549,
0.005975115112960339,
0.43801558017730713,
-0.15783996880054474,
-0.24926933646202087,
0.09968205541372299,
-0.10581773519515991,
-0.06830054521560669,
-0.07701773941516876,
0.03961081802845001,
-0.25352081656455994,
-0.49783381819725037,
0.172399640083313,
-0.01830935850739479,
0.12677673995494843,
0.33166587352752686,
-0.04437042400240898,
0.21899937093257904,
-0.24507921934127808,
0.08138616383075714,
-0.3201846778392792,
-0.28193584084510803,
0.3258150517940521,
-0.364906370639801,
-0.3549363315105438,
0.08349308371543884,
0.018898874521255493,
0.36217403411865234,
-0.31970423460006714,
-0.3369916081428528,
-0.5948491096496582,
-0.16477344930171967,
0.2265004813671112,
-0.33277973532676697,
0.29790452122688293,
0.1827576458454132,
-0.1861155927181244,
0.03268277645111084,
-0.16532212495803833,
-0.06482192128896713,
-0.04278520494699478,
0.09614958614110947,
-0.010753996670246124,
0.04813632369041443,
0.21632450819015503,
-0.08886994421482086,
0.35413533449172974,
0.5421357154846191,
0.10926651954650879,
0.4466968774795532,
-0.22771039605140686,
0.311576783657074,
0.055931441485881805,
-0.5223271250724792,
-0.14736732840538025,
0.18563032150268555,
0.28896576166152954,
0.12377981841564178,
0.0036519011482596397,
0.5795579552650452,
-0.13115867972373962,
-0.5116981267929077,
-0.09103121608495712,
-0.14424777030944824,
-0.27883419394493103,
-0.014476299285888672,
0.1530485898256302,
-0.060256559401750565,
0.020216599106788635,
-0.1531057357788086,
0.0031035691499710083,
0.5333378314971924,
0.44580596685409546,
-0.06668981164693832,
0.09189662337303162,
-0.20304535329341888,
-0.3692353069782257,
-0.43104487657546997,
0.19897541403770447,
-0.037398580461740494,
0.26723289489746094,
-0.07840543985366821,
0.16881230473518372,
0.042212024331092834,
0.035201333463191986,
0.5769262313842773,
0.006669987924396992,
0.061658523976802826,
-0.12757758796215057,
-0.06554161757230759,
-0.48524147272109985,
-0.016548004001379013,
-0.06942498683929443,
0.14883555471897125,
-0.204769566655159,
0.43387484550476074,
-0.20739588141441345,
-0.32830289006233215,
0.12810054421424866,
-0.00798468105494976,
-0.06560052931308746,
-0.1700509637594223,
-0.264816552400589,
-0.269159197807312,
-0.36447790265083313,
-0.05207803100347519,
0.06887015700340271,
0.34450098872184753,
0.344630628824234,
0.12379816174507141,
-0.09970691055059433,
-0.2012472152709961,
0.34223222732543945,
-0.020816728472709656,
0.20483657717704773,
-0.07138057053089142,
0.15972134470939636,
0.14165008068084717,
0.00795130804181099,
0.18313828110694885,
0.7070475220680237,
-0.02290618047118187,
-0.550152063369751,
-0.10649564117193222,
0.1892339289188385,
0.14645400643348694,
0.05816467106342316,
-0.07994864135980606,
0.3228442072868347,
-0.08597175031900406,
0.3140932023525238,
-0.3772068917751312,
-0.16355760395526886,
0.1548040509223938,
0.1711462140083313,
-0.08090963959693909,
-0.0028578639030456543,
0.62614506483078,
0.030558638274669647,
0.15101072192192078,
0.3387311100959778,
0.7805449962615967,
-0.044943444430828094,
0.07423897832632065,
-0.14562073349952698,
0.7534807324409485,
0.3306350111961365,
-0.10915924608707428,
0.2669253647327423,
-0.2748485207557678,
0.617028534412384,
-0.0755186676979065,
-0.09589336067438126,
-0.2715454697608948,
-0.25863227248191833,
-0.10585842281579971,
-0.07132990658283234,
0.4049576222896576,
-0.36319923400878906,
0.015405464917421341,
0.212020143866539,
-0.07699437439441681,
0.2642088830471039,
-0.11819347739219666,
0.1539057493209839,
-0.3713425099849701,
-0.29757535457611084,
-0.4864116907119751,
0.16158565878868103,
-0.08732561767101288,
0.5323528051376343,
-0.08667529374361038,
-0.03877284377813339,
-0.23340186476707458,
-0.13855136930942535,
-0.25396451354026794,
-0.08261562138795853,
-0.12510770559310913,
0.18330544233322144,
0.4851455092430115,
-0.13066187500953674,
0.4078502058982849,
-0.08983096480369568,
0.2932955026626587,
-0.00016232579946517944,
-0.35315659642219543,
0.200466126203537,
-0.449546217918396,
0.017021991312503815,
-0.17053115367889404,
0.13083229959011078,
0.45303794741630554,
-0.1623234748840332,
-0.36094745993614197,
0.06051028519868851,
0.004890422336757183,
0.06482535600662231,
0.0426265150308609,
0.15144044160842896,
-0.023948319256305695,
-0.21745026111602783,
-0.11225329339504242,
-0.060089439153671265,
0.4137638211250305,
-0.05519361048936844,
0.11065417528152466,
0.26062536239624023,
-0.2686557173728943,
0.05205206573009491,
0.30075860023498535,
-0.1267777979373932,
-0.2339657098054886,
0.4916025996208191,
-0.23515841364860535,
-0.0812649130821228,
0.27327173948287964,
0.009998861700296402,
-0.20656026899814606,
-0.14785820245742798,
-0.00645056739449501,
0.45420950651168823,
-0.654666006565094,
0.0702865719795227,
0.08604766428470612,
0.12802402675151825,
-0.19869332015514374,
0.06388150155544281,
0.08385802060365677,
-0.08196718245744705,
0.04611498489975929,
-0.5279698371887207,
-0.22764065861701965,
0.20880267024040222,
-0.23851244151592255,
-0.08462555706501007,
-0.0980505719780922,
0.11654207110404968,
-0.08161739259958267,
0.037495989352464676,
-0.2783239483833313,
0.15674030780792236,
-0.19006161391735077,
-0.1575326919555664,
0.04550081491470337,
-0.019292078912258148,
0.28218647837638855,
-0.2503208518028259,
0.10128068923950195,
0.10729270428419113,
-0.32130545377731323,
-0.16573289036750793,
-0.47261616587638855,
0.13816609978675842,
-0.028786297887563705,
-0.03800346702337265,
0.12475856393575668,
0.05441815406084061,
-0.12198083102703094,
-0.19884751737117767,
0.14222289621829987,
0.3360186517238617,
-0.06445074081420898,
0.21749907732009888,
0.2794242203235626,
-0.09499038010835648,
-0.23693613708019257,
0.04351910203695297,
0.34220975637435913,
0.2499038279056549,
0.061693619936704636,
-0.10531844198703766,
-0.12815919518470764,
0.19435307383537292,
-0.16785554587841034,
0.10894044488668442,
-0.05045001208782196,
-0.24718916416168213,
0.46130532026290894,
-0.2513284683227539,
0.12284846603870392,
0.2277480661869049,
0.21386298537254333,
0.07218122482299805,
-0.2121022790670395,
0.2495598942041397,
0.2826707065105438,
0.15360642969608307,
-0.2640615999698639,
-0.055969156324863434,
0.2406359612941742,
-0.004762907512485981,
-0.012175332754850388,
0.16054630279541016,
0.3257346451282501,
0.02818269282579422,
0.03186299279332161,
0.17746135592460632,
0.6146243810653687,
-0.07825542986392975,
0.1030023992061615,
0.10126625001430511,
-0.08368513733148575,
0.21048606932163239,
0.41344600915908813,
0.1981271505355835,
0.19470395147800446,
0.3787095546722412,
-0.24398180842399597,
0.12764953076839447,
-0.2290031611919403,
0.058545686304569244,
0.18469133973121643,
-0.39206334948539734,
-0.1432959884405136,
-0.04997533559799194,
0.17401140928268433,
-0.06054312735795975,
-0.21437707543373108,
0.3794800043106079,
-0.3171321451663971,
-0.16039644181728363,
0.044940926134586334,
0.21566200256347656,
-0.12805989384651184,
0.050185542553663254,
0.28203776478767395,
-0.006162978708744049,
-0.25227880477905273,
-0.192120760679245,
0.17982804775238037,
-0.41340476274490356,
0.1981271356344223,
0.04613235592842102,
-0.2346067875623703,
-0.35262444615364075,
-0.22417867183685303,
0.4618167579174042,
0.283834844827652,
-0.13632896542549133,
0.031675562262535095,
0.12759126722812653,
-0.10012289881706238,
-0.10806956887245178,
0.317688524723053,
0.563143253326416,
-0.01582266017794609,
0.17363999783992767,
0.02523006871342659,
-0.07121358811855316,
-0.016759853810071945,
0.19188185036182404,
0.07459784299135208,
-0.039435647428035736,
0.1405770629644394,
0.07708053290843964,
0.1368350237607956,
-0.16378319263458252,
-0.18601395189762115,
-0.15131191909313202,
0.3742642402648926,
-0.426259309053421,
0.7072082757949829,
-0.5041756629943848,
-0.026815705001354218,
-0.3507736027240753,
-0.014233589172363281,
-0.4474833309650421,
0.19227027893066406,
0.14910760521888733,
-0.052726153284311295,
-0.07646088302135468,
-0.30799320340156555,
0.056396178901195526,
-0.08025182783603668,
0.348018616437912,
0.544779896736145,
0.20702672004699707,
-0.12363100796937943,
-0.11959337443113327,
-0.3939109444618225,
0.1497974544763565,
-0.003170628100633621,
0.11465650796890259,
0.13412141799926758,
-0.059009820222854614,
-0.2450351119041443,
0.014292288571596146,
0.22279039025306702,
0.010207531973719597,
0.08450047671794891,
-0.05371784418821335,
-0.1933712512254715,
-0.14015914499759674,
-0.224978968501091,
-0.06081400066614151,
0.1315721869468689,
0.09012231975793839,
0.05733710527420044,
-0.17445281147956848,
-0.03963532671332359,
-0.11270615458488464,
0.06895184516906738,
-0.07069548964500427,
-0.4288732409477234,
0.4540424346923828,
0.11185680329799652,
0.2889230251312256,
-0.12803751230239868,
-0.008997708559036255,
-0.08595137298107147,
-0.24554823338985443,
-0.07031362503767014,
0.23380184173583984,
-0.18009158968925476,
0.32045501470565796,
-0.04691103845834732,
-0.6611608862876892,
-0.22771641612052917,
0.3475532829761505,
0.09524182975292206,
-0.009045558050274849,
-0.23703539371490479,
0.43607082962989807,
-0.23783722519874573,
0.09417257457971573,
0.2254575937986374,
0.22314909100532532,
-0.01657586544752121,
0.2561681568622589,
-0.19627463817596436,
-0.39797988533973694,
0.4772146940231323,
-0.45605331659317017,
-0.19347739219665527,
-0.02246638387441635,
0.4085860550403595,
0.15556280314922333,
-0.4673702120780945,
-0.6344428062438965,
0.006473518908023834,
0.2852030396461487,
-0.04155386984348297,
-0.1530667543411255,
0.3585229814052582,
-0.15077263116836548,
0.21658970415592194,
0.021079454571008682,
0.3333141505718231,
0.060849085450172424,
-0.047231290489435196,
0.5940772294998169,
-0.013645805418491364
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | A workaround:
I changed lines around Line 125 in `__init__.py` of `huggingface_hub` to something like
```
__getattr__, __dir__, __all__ = _attach(
__name__,
submodules=['hf_api'],
```
and it works ( which gives `datasets` direct access to `huggingface_hub.hf_api` ). | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 36 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
A workaround:
I changed lines around Line 125 in `__init__.py` of `huggingface_hub` to something like
```
__getattr__, __dir__, __all__ = _attach(
__name__,
submodules=['hf_api'],
```
and it works ( which gives `datasets` direct access to `huggingface_hub.hf_api` ). | [
-0.13318201899528503,
-0.388434499502182,
-0.011428901925683022,
0.3894416093826294,
0.30636292695999146,
0.154563307762146,
0.19128389656543732,
0.25085869431495667,
0.39550232887268066,
0.18141238391399384,
-0.3044852018356323,
0.3323442041873932,
-0.06325767934322357,
0.0763571634888649,
0.07530295103788376,
-0.2504327893257141,
0.1279291957616806,
0.10278162360191345,
0.015773016959428787,
-0.17501389980316162,
-0.09513820707798004,
0.21626237034797668,
-0.10510522872209549,
0.24448516964912415,
-0.3389892280101776,
0.049703821539878845,
-0.01093316450715065,
0.12934136390686035,
0.14500653743743896,
-0.40774407982826233,
0.30824166536331177,
-0.11594769358634949,
0.18969404697418213,
0.4070681929588318,
-0.00011391951557016,
0.001757986843585968,
0.29401978850364685,
0.1380741149187088,
-0.2054000198841095,
-0.29173940420150757,
-0.21032342314720154,
-0.06565077602863312,
0.08620484918355942,
0.035995014011859894,
-0.022517263889312744,
-0.1511422097682953,
-0.2182243913412094,
-0.02484874799847603,
0.22448775172233582,
0.23990756273269653,
0.2382805347442627,
0.48316922783851624,
0.2524781823158264,
-0.2949436902999878,
-0.029489904642105103,
0.0972946360707283,
-0.05034683644771576,
0.34307870268821716,
-0.07743975520133972,
-0.16797734797000885,
0.16912829875946045,
0.05455722659826279,
0.12828972935676575,
0.1281289905309677,
0.5559693574905396,
0.041230957955121994,
-0.09197419136762619,
-0.2067066729068756,
-0.10156113654375076,
0.21461620926856995,
0.2579466700553894,
-0.43594101071357727,
-0.4552825093269348,
-0.09574052691459656,
0.0618242546916008,
-0.2556946575641632,
0.1431010663509369,
0.11558179557323456,
0.13760735094547272,
0.14416079223155975,
0.2736327350139618,
-0.27785593271255493,
-0.1250152587890625,
0.128181591629982,
-0.13996359705924988,
0.0849364846944809,
-0.16139942407608032,
0.01827700436115265,
0.04369635879993439,
-0.1021576076745987,
-0.03729526698589325,
-0.04228271543979645,
0.0066361017525196075,
0.2869662046432495,
-0.3013460040092468,
-0.031236492097377777,
0.09309672564268112,
0.26233455538749695,
0.07633240520954132,
0.16250145435333252,
-0.33420923352241516,
-0.15860244631767273,
-0.17067286372184753,
0.17401272058486938,
0.061807263642549515,
0.1449633538722992,
-0.04654417186975479,
0.251941978931427,
0.25911617279052734,
0.2800903618335724,
0.03232986852526665,
-0.1303425431251526,
-0.09507688879966736,
-0.07973117381334305,
0.024977825582027435,
-0.19594106078147888,
0.3285673260688782,
-0.11216534674167633,
-0.35344043374061584,
0.17365282773971558,
-0.16348695755004883,
0.008484028279781342,
0.16528736054897308,
0.45481786131858826,
-0.2293299436569214,
-0.030196107923984528,
0.06680171191692352,
0.2811763882637024,
-0.14633162319660187,
0.0014394782483577728,
-0.3785746097564697,
0.4770921766757965,
-0.027226559817790985,
0.031903818249702454,
-0.07868899405002594,
-0.3477392792701721,
0.12397671490907669,
0.00335113238543272,
0.33797597885131836,
-0.08289681375026703,
-0.1866188794374466,
0.05040641501545906,
-0.32068148255348206,
0.5109691619873047,
0.05151109769940376,
0.2727809548377991,
0.2041991949081421,
-0.12624678015708923,
-0.129026398062706,
-0.20242395997047424,
-0.46742570400238037,
-0.24072407186031342,
-0.18278078734874725,
0.14342212677001953,
-0.3192647099494934,
-0.08358224481344223,
-0.3405272662639618,
-0.255638986825943,
-0.18780791759490967,
-0.016682054847478867,
0.12211742997169495,
0.12986427545547485,
-0.07467959076166153,
-0.13520844280719757,
0.20476335287094116,
0.4529603123664856,
0.0565754733979702,
-0.25138282775878906,
0.1027376651763916,
-0.18646156787872314,
-0.06613325327634811,
0.12650373578071594,
0.052006885409355164,
0.15852099657058716,
-0.26853668689727783,
0.06407549977302551,
0.08260181546211243,
-0.5598286390304565,
-0.484051376581192,
-0.026808293536305428,
0.018655702471733093,
0.09769483655691147,
-0.030078522861003876,
-0.14240247011184692,
-0.2070254236459732,
0.008032993413507938,
0.2208685576915741,
0.16553236544132233,
0.14736537635326385,
-0.08059362322092056,
-0.14222918450832367,
-0.23332057893276215,
0.04691001772880554,
0.15434400737285614,
0.19770802557468414,
0.27479681372642517,
0.05800225958228111,
0.13112640380859375,
0.12834838032722473,
0.03104371950030327,
0.027464300394058228,
0.32777494192123413,
0.4321751892566681,
0.2138327658176422,
0.004768474493175745,
-0.43657299876213074,
-0.04371415823698044,
0.2724320888519287,
-0.17907845973968506,
0.13525253534317017,
-0.21468399465084076,
-0.14414910972118378,
-0.2317834496498108,
0.1445615589618683,
-0.1259947121143341,
-0.29782357811927795,
0.07612625509500504,
-0.17055167257785797,
-0.02759104035794735,
0.1899747997522354,
-0.30774879455566406,
0.6650922298431396,
-0.06818685680627823,
0.2950340807437897,
-0.32565006613731384,
0.5484198331832886,
-0.10947220772504807,
0.021195905283093452,
-0.011486733332276344,
0.2347615659236908,
0.10967154800891876,
-0.006403975188732147,
-0.10717090964317322,
0.12334644049406052,
-0.043027766048908234,
0.2833065986633301,
0.01758149266242981,
0.17872720956802368,
0.3117690086364746,
-0.2542652189731598,
-0.10812004655599594,
-0.0717083215713501,
0.1312657743692398,
0.08509811013936996,
0.23923364281654358,
0.14984923601150513,
0.0589444562792778,
0.24255141615867615,
0.021889522671699524,
0.22692230343818665,
0.01461285911500454,
0.07448342442512512,
0.020250724628567696,
-0.16628192365169525,
0.2702917754650116,
-0.14453358948230743,
0.12972097098827362,
-0.13892921805381775,
-0.06042435020208359,
-0.08919539302587509,
0.358145147562027,
0.08891531825065613,
0.13847018778324127,
0.039587926119565964,
-0.34331604838371277,
0.306864470243454,
0.2122730165719986,
0.007547516375780106,
0.39593571424484253,
0.06258203834295273,
-0.23322466015815735,
0.3522663414478302,
-0.11685962229967117,
0.10907028615474701,
0.08526746928691864,
0.0819440484046936,
0.13853323459625244,
-0.008803263306617737,
-0.09392900764942169,
0.1759508103132248,
-0.12660054862499237,
-0.5805554986000061,
-0.2506627142429352,
0.37220656871795654,
-0.5914518237113953,
0.07162777334451675,
-0.40709128975868225,
0.16713976860046387,
0.1449390947818756,
-0.5576966404914856,
-0.39103958010673523,
-0.22470293939113617,
-0.2276526838541031,
0.09974128007888794,
0.05081672593951225,
0.14495912194252014,
-0.11292378604412079,
0.02077135443687439,
-0.03861493617296219,
-0.020910149440169334,
-0.284565806388855,
-0.08156096935272217,
0.01620248146355152,
-0.026658933609724045,
0.048615243285894394,
0.2058643251657486,
0.09965350478887558,
-0.1802433282136917,
0.11192943155765533,
-0.09970945119857788,
-0.16752129793167114,
0.12353161722421646,
-0.060192473232746124,
0.42880967259407043,
0.3055068254470825,
0.24345776438713074,
0.006321616470813751,
-0.009040839038789272,
0.4153871536254883,
-0.19724123179912567,
-0.21224358677864075,
0.145329087972641,
-0.1097189262509346,
-0.15848249197006226,
-0.08457858860492706,
0.05405300855636597,
-0.28488704562187195,
-0.5076467990875244,
0.19981607794761658,
0.012984823435544968,
0.13051724433898926,
0.3973641097545624,
0.032075393944978714,
0.27735623717308044,
-0.1532593071460724,
0.13515155017375946,
-0.257099449634552,
-0.2889842689037323,
0.36694446206092834,
-0.3359442353248596,
-0.35297760367393494,
0.10352170467376709,
-0.014147300273180008,
0.30248796939849854,
-0.3272337317466736,
-0.32218456268310547,
-0.5933035016059875,
-0.1791817545890808,
0.19462428987026215,
-0.20515328645706177,
0.33624130487442017,
0.14079302549362183,
-0.21024854481220245,
0.05143759399652481,
-0.15244345366954803,
-0.0708899274468422,
-0.06895975023508072,
0.23367902636528015,
0.0021225884556770325,
0.08026562631130219,
0.1616278886795044,
-0.1712060570716858,
0.3197515904903412,
0.3793669641017914,
0.16340062022209167,
0.3984085023403168,
-0.27183279395103455,
0.34625470638275146,
0.029477886855602264,
-0.5787937641143799,
-0.18142519891262054,
0.15668843686580658,
0.1715785712003708,
0.08238725364208221,
-0.03308730572462082,
0.4712563455104828,
-0.16346222162246704,
-0.5347999930381775,
-0.004714246839284897,
-0.18915417790412903,
-0.27494803071022034,
-0.06702372431755066,
-0.0007370486855506897,
0.00499570369720459,
0.05012993514537811,
-0.3177301585674286,
0.05760271102190018,
0.5437124967575073,
0.4104980230331421,
-0.07481542974710464,
0.10381390154361725,
-0.18405495584011078,
-0.45193955302238464,
-0.46954071521759033,
0.13525515794754028,
-0.07407347112894058,
0.31860944628715515,
-0.0054221972823143005,
0.15604686737060547,
0.09770632535219193,
0.04776160046458244,
0.6118050813674927,
-0.0444580614566803,
0.01434972882270813,
-0.005866353400051594,
-0.12332013249397278,
-0.4634379744529724,
-0.05199984461069107,
-0.062491949647665024,
0.1516701728105545,
-0.29367712140083313,
0.30920881032943726,
-0.1159214973449707,
-0.28965431451797485,
0.12321675568819046,
-0.009480929933488369,
-0.025492439046502113,
-0.1639367640018463,
-0.33568161725997925,
-0.3167528808116913,
-0.34906575083732605,
-0.019012942910194397,
0.17033091187477112,
0.3030742108821869,
0.34145599603652954,
0.09405332803726196,
-0.12322019040584564,
-0.17276924848556519,
0.308336466550827,
0.1146865040063858,
0.18093636631965637,
-0.08089838176965714,
0.1676187962293625,
0.12839657068252563,
-0.08039164543151855,
0.18813097476959229,
0.7534032464027405,
-0.08433634042739868,
-0.5835825800895691,
-0.07038038969039917,
0.1403435319662094,
0.20262375473976135,
0.19157397747039795,
-0.09672550857067108,
0.3863075077533722,
-0.13133648037910461,
0.24223662912845612,
-0.3564149737358093,
-0.17593759298324585,
0.19747023284435272,
0.13775208592414856,
-0.05444686859846115,
-0.13115711510181427,
0.563033938407898,
-0.00326579250395298,
0.10001684725284576,
0.42952871322631836,
0.8910161256790161,
-0.06261220574378967,
0.14654479920864105,
-0.14742448925971985,
0.8940889835357666,
0.32593631744384766,
-0.059958186000585556,
0.29676303267478943,
-0.2493576854467392,
0.6556541323661804,
-0.16174817085266113,
0.004558037035167217,
-0.31402871012687683,
-0.38194024562835693,
-0.08675583451986313,
-0.1266961395740509,
0.3113881051540375,
-0.4303528070449829,
0.11618493497371674,
0.15935339033603668,
-0.18453465402126312,
0.3178175687789917,
-0.08615328371524811,
0.11789850890636444,
-0.2518995702266693,
-0.30792945623397827,
-0.4903871417045593,
0.18515777587890625,
0.04051680490374565,
0.5270287394523621,
-0.11872558295726776,
-0.005695954896509647,
-0.29673078656196594,
-0.11739002168178558,
-0.2831186056137085,
-0.0022840071469545364,
-0.07487187534570694,
0.11144953966140747,
0.4929888844490051,
0.004409037530422211,
0.3458418846130371,
-0.01907888427376747,
0.3716803193092346,
-0.010171443223953247,
-0.327823668718338,
0.185689777135849,
-0.38141199946403503,
0.04081801697611809,
-0.1816023588180542,
0.1280682384967804,
0.4813147783279419,
-0.12160895019769669,
-0.39695459604263306,
0.16151383519172668,
-0.03365559130907059,
-0.010276678949594498,
0.06227728724479675,
0.14814572036266327,
-0.12024551630020142,
-0.11569971591234207,
-0.12855303287506104,
-0.08803559839725494,
0.4531875550746918,
-0.08713892847299576,
0.12915748357772827,
0.28906840085983276,
-0.319953054189682,
0.042550262063741684,
0.24308080971240997,
-0.1799243986606598,
-0.18037234246730804,
0.4801110625267029,
-0.18673691153526306,
0.00637359544634819,
0.24267388880252838,
0.09429293870925903,
-0.22841399908065796,
-0.09473192691802979,
-0.0335509330034256,
0.5291651487350464,
-0.5161573886871338,
0.03940296918153763,
-0.005413436330854893,
-0.000008046627044677734,
-0.2082211971282959,
0.047578781843185425,
0.12457159161567688,
-0.06242882460355759,
0.0035014748573303223,
-0.5533984899520874,
-0.3233890235424042,
0.19439901411533356,
-0.2634698450565338,
0.013837981969118118,
-0.13395333290100098,
0.12021657824516296,
-0.14215819537639618,
0.008131979033350945,
-0.297721266746521,
0.10863859951496124,
-0.27789121866226196,
-0.19885188341140747,
0.004104772582650185,
-0.012233167886734009,
0.35871151089668274,
-0.2858261466026306,
0.11453241109848022,
0.12296918034553528,
-0.24952486157417297,
-0.16322749853134155,
-0.5136402249336243,
0.14204835891723633,
0.019585909321904182,
-0.03619259595870972,
0.1841771900653839,
-0.023250222206115723,
-0.12456758320331573,
-0.15658189356327057,
0.17397136986255646,
0.3851564824581146,
-0.019948087632656097,
0.2433101385831833,
0.26532334089279175,
-0.14510321617126465,
-0.2610890865325928,
0.09792660176753998,
0.3124448359012604,
0.2620813846588135,
0.04707092419266701,
-0.08126695454120636,
-0.13610859215259552,
0.17933714389801025,
-0.06340893357992172,
0.11984847486019135,
-0.18239830434322357,
-0.1734970510005951,
0.42045414447784424,
-0.197010800242424,
0.22853949666023254,
0.16162608563899994,
0.24095416069030762,
0.1498909443616867,
-0.1605844646692276,
0.31725603342056274,
0.33156341314315796,
0.14627940952777863,
-0.30983030796051025,
-0.09458881616592407,
0.29026976227760315,
-0.052586354315280914,
0.00157199427485466,
0.21130387485027313,
0.2510928511619568,
0.04702368378639221,
0.030817296355962753,
0.1702025830745697,
0.5507217645645142,
-0.023078016936779022,
0.0689956396818161,
0.21361272037029266,
-0.09188568592071533,
0.22457724809646606,
0.39593082666397095,
0.2973645329475403,
0.1995307207107544,
0.5739963054656982,
-0.30123695731163025,
0.06653814762830734,
-0.28729957342147827,
-0.026108119636774063,
0.21442845463752747,
-0.3996962010860443,
-0.045986633747816086,
-0.03855980932712555,
0.1104062870144844,
-0.15577903389930725,
-0.24627932906150818,
0.3234587609767914,
-0.3305697739124298,
-0.09638760983943939,
0.07368414849042892,
0.23285795748233795,
-0.11972055584192276,
0.01782647706568241,
0.2508353292942047,
-0.04121499881148338,
-0.20555582642555237,
-0.24932359158992767,
0.18563485145568848,
-0.4694754481315613,
0.14104510843753815,
0.01509268581867218,
-0.14005152881145477,
-0.31645938754081726,
-0.18827158212661743,
0.3560772240161896,
0.2209547460079193,
-0.11911334097385406,
-0.05023112893104553,
0.03608263283967972,
-0.14417630434036255,
-0.0700964480638504,
0.15819323062896729,
0.503481924533844,
-0.02514459937810898,
0.08497053384780884,
0.07538095116615295,
0.002641206607222557,
-0.06961675733327866,
0.1902025192975998,
0.026457054540514946,
0.014845475554466248,
0.16603192687034607,
0.10679960250854492,
0.14761434495449066,
-0.14325258135795593,
-0.12759718298912048,
-0.11639562249183655,
0.33542123436927795,
-0.3809134364128113,
0.6887933015823364,
-0.4549848735332489,
-0.056298185139894485,
-0.33427077531814575,
-0.023572929203510284,
-0.3964773714542389,
-0.018334776163101196,
0.19033019244670868,
-0.05125502869486809,
-0.016621574759483337,
-0.30198007822036743,
0.057340629398822784,
-0.08253572881221771,
0.34901338815689087,
0.5328364372253418,
0.23804828524589539,
-0.11314364522695541,
-0.0026716962456703186,
-0.47038552165031433,
0.2920611500740051,
-0.11423514783382416,
0.05378376692533493,
0.17060334980487823,
-0.07492897659540176,
-0.2997211515903473,
-0.02132326364517212,
0.24716979265213013,
0.10061576962471008,
0.08121055364608765,
-0.04164183884859085,
-0.19880439341068268,
-0.22550015151500702,
-0.26541668176651,
-0.07641304284334183,
0.08813000470399857,
0.13753050565719604,
0.03513416647911072,
-0.268523633480072,
-0.006247423589229584,
-0.0994427502155304,
0.015855975449085236,
-0.01884828694164753,
-0.29455140233039856,
0.4673035740852356,
0.04259228706359863,
0.33514899015426636,
-0.041564181447029114,
-0.02905309572815895,
-0.20132341980934143,
-0.24815969169139862,
-0.1568099558353424,
0.09847380220890045,
-0.20361749827861786,
0.3035420775413513,
-0.04120555892586708,
-0.614398181438446,
-0.2869056463241577,
0.35262054204940796,
0.11584579944610596,
0.046523306518793106,
-0.28850609064102173,
0.5474104881286621,
-0.24363985657691956,
0.19138281047344208,
0.3236641585826874,
0.10613460838794708,
-0.028102904558181763,
0.26205816864967346,
-0.19881844520568848,
-0.40262937545776367,
0.5953381061553955,
-0.5075870156288147,
-0.29736074805259705,
-0.07479804009199142,
0.360978364944458,
0.047653548419475555,
-0.4370511472225189,
-0.5585368871688843,
-0.04649842903017998,
0.16004294157028198,
-0.054097458720207214,
-0.2376905381679535,
0.28754308819770813,
-0.16149504482746124,
0.2654140293598175,
-0.013184374198317528,
0.2571844458580017,
0.015353003516793251,
0.03131493180990219,
0.48773637413978577,
-0.07125777006149292
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | I was getting the same issue. After trying a few versions, following combination worked for me.
dataset==2.3.2
huggingface_hub==0.7.0
In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked. Hope it helps someone.
datasets-2.3.2 evaluate-0.1.2 huggingface-hub-0.8.1 responses-0.18.0 tokenizers-0.12.1 transformers-4.20.1 | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 53 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
I was getting the same issue. After trying a few versions, following combination worked for me.
dataset==2.3.2
huggingface_hub==0.7.0
In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked. Hope it helps someone.
datasets-2.3.2 evaluate-0.1.2 huggingface-hub-0.8.1 responses-0.18.0 tokenizers-0.12.1 transformers-4.20.1 | [
-0.2420213669538498,
-0.37025296688079834,
-0.016820106655359268,
0.2895158529281616,
0.24978454411029816,
-0.0038777589797973633,
0.15833106637001038,
0.2593176066875458,
0.3471047580242157,
0.10791266709566116,
-0.18922102451324463,
0.3490670919418335,
-0.1157945916056633,
0.03226695954799652,
-0.052321046590805054,
-0.29591068625450134,
0.2053624540567398,
0.16511976718902588,
0.04094724357128143,
-0.2250574231147766,
0.04131446033716202,
0.292123943567276,
-0.16054075956344604,
0.2201690971851349,
-0.38957861065864563,
0.04554542154073715,
0.07879878580570221,
-0.04700972139835358,
0.04380384087562561,
-0.415794312953949,
0.29802945256233215,
-0.022071223706007004,
0.23411011695861816,
0.4130419194698334,
-0.00011726115917554125,
0.00837291032075882,
0.32759344577789307,
0.1266409456729889,
-0.05892877280712128,
-0.4033328890800476,
-0.09478409588336945,
-0.1570884883403778,
0.06187272071838379,
0.03594740480184555,
-0.02585146576166153,
-0.24916036427021027,
-0.2193290889263153,
0.15764644742012024,
0.3672206997871399,
0.17714759707450867,
0.22557950019836426,
0.5729814767837524,
0.2978057861328125,
-0.24053476750850677,
-0.03940211236476898,
0.2195185273885727,
-0.09504751116037369,
0.09028235077857971,
-0.0625937283039093,
-0.14339426159858704,
0.11468826234340668,
0.03539507836103439,
0.041040487587451935,
0.11687643826007843,
0.46848684549331665,
-0.01561680343002081,
-0.14679798483848572,
-0.23644870519638062,
-0.06972222030162811,
0.191603422164917,
0.3139190375804901,
-0.32411810755729675,
-0.47090649604797363,
-0.05878452956676483,
-0.08839025348424911,
-0.1467006504535675,
0.13455632328987122,
0.07141873240470886,
0.11520825326442719,
0.1121918261051178,
0.12399926036596298,
-0.2666338384151459,
-0.15020090341567993,
0.1486738920211792,
-0.1947711706161499,
0.30490490794181824,
-0.196989506483078,
0.027645885944366455,
0.011853925883769989,
-0.17285631597042084,
0.026736102998256683,
0.02963552437722683,
0.0031326934695243835,
0.3246447741985321,
-0.33689233660697937,
-0.12933549284934998,
0.02990056201815605,
0.15430858731269836,
0.0843956395983696,
0.2552802562713623,
-0.43552953004837036,
-0.060285359621047974,
-0.13633838295936584,
0.15197911858558655,
-0.005132690072059631,
0.28556713461875916,
0.04027074947953224,
0.4081554114818573,
0.22314395010471344,
0.2200670689344406,
0.06064484640955925,
-0.12888476252555847,
-0.11093521118164062,
-0.011358807794749737,
0.08156859874725342,
-0.17322468757629395,
0.1764121800661087,
-0.1199955940246582,
-0.3015246093273163,
0.18421226739883423,
-0.1839585304260254,
-0.01682703197002411,
0.1571306437253952,
0.4900834858417511,
-0.2124062031507492,
0.12732607126235962,
-0.011338455602526665,
0.18848173320293427,
-0.15165410935878754,
-0.01813802681863308,
-0.28902220726013184,
0.4278726279735565,
0.026980306953191757,
-0.04598478972911835,
-0.06705140322446823,
-0.15648913383483887,
0.22492946684360504,
0.09149769693613052,
0.31091782450675964,
-0.04477255046367645,
-0.08472990244626999,
0.1070132702589035,
-0.22744295001029968,
0.5346212983131409,
0.02545030042529106,
0.28135937452316284,
0.17548948526382446,
-0.16025763750076294,
-0.12540453672409058,
-0.2127440869808197,
-0.47546058893203735,
-0.11125224083662033,
-0.25348415970802307,
0.1143331453204155,
-0.3678824305534363,
-0.17253033816814423,
-0.4044854938983917,
-0.23132221400737762,
-0.11371643096208572,
-0.00622718408703804,
0.15684163570404053,
0.023804957047104836,
0.02293689176440239,
-0.038710009306669235,
0.18281039595603943,
0.3531562089920044,
0.1289556473493576,
-0.3659203052520752,
0.17079907655715942,
-0.15277454257011414,
-0.010510869324207306,
0.18731005489826202,
0.049239546060562134,
0.2274630069732666,
-0.21392694115638733,
0.17598114907741547,
0.1186041533946991,
-0.604822039604187,
-0.5068504214286804,
-0.00022181414533406496,
0.15898752212524414,
0.06674499064683914,
-0.059335000813007355,
-0.22228790819644928,
-0.03185407817363739,
0.09145868569612503,
0.060498662292957306,
0.11232921481132507,
0.16711056232452393,
-0.01986003667116165,
-0.196266308426857,
-0.2927636504173279,
0.012718722224235535,
0.18419332802295685,
0.32333725690841675,
0.18927264213562012,
-0.028970934450626373,
0.18590494990348816,
0.05468163639307022,
0.014230772852897644,
0.09333502501249313,
0.31076228618621826,
0.503284752368927,
0.20906603336334229,
0.05215189605951309,
-0.47011223435401917,
-0.04811955243349075,
0.16981306672096252,
-0.20841249823570251,
0.13641300797462463,
-0.25340378284454346,
-0.0992014929652214,
-0.2978987693786621,
0.14230607450008392,
-0.17914555966854095,
-0.27905309200286865,
0.05234634876251221,
-0.2140883207321167,
0.07179905474185944,
0.20921936631202698,
-0.2748152017593384,
0.6249367594718933,
0.07493053376674652,
0.3706139624118805,
-0.2648857533931732,
0.5658267140388489,
-0.10744234174489975,
-0.023889679461717606,
-0.012655278667807579,
0.19587939977645874,
0.14519500732421875,
-0.12597115337848663,
-0.11362501978874207,
0.12317822128534317,
-0.08545579016208649,
0.21051675081253052,
-0.055148810148239136,
0.2340744286775589,
0.39526450634002686,
-0.23201125860214233,
-0.15697140991687775,
0.013044878840446472,
0.03383982181549072,
0.16113147139549255,
0.2377874255180359,
0.18509666621685028,
0.1083618551492691,
0.16168519854545593,
-0.027668781578540802,
0.2828788757324219,
0.04600241035223007,
-0.02635880373418331,
0.009897604584693909,
-0.21560265123844147,
0.3020835220813751,
-0.14876383543014526,
0.13913694024085999,
-0.1998286247253418,
0.0641806572675705,
-0.06570213288068771,
0.40764620900154114,
0.0460481159389019,
0.1843843162059784,
0.08891481161117554,
-0.33486080169677734,
0.2972038686275482,
0.14110331237316132,
0.06268486380577087,
0.3402065634727478,
0.06912900507450104,
-0.34044569730758667,
0.2657725214958191,
-0.12001975625753403,
0.10547713935375214,
0.09427403658628464,
0.06900152564048767,
0.045368898659944534,
0.1380387544631958,
-0.0564778670668602,
0.22008579969406128,
-0.2268834412097931,
-0.5642378330230713,
-0.1954541802406311,
0.4011422097682953,
-0.45258086919784546,
0.06831805408000946,
-0.4149954617023468,
0.20434799790382385,
0.10348851978778839,
-0.5610039830207825,
-0.43558886647224426,
-0.25565093755722046,
-0.19152258336544037,
0.06116028130054474,
0.08428457379341125,
0.272487074136734,
0.0077853724360466,
0.03332224488258362,
0.0016701463609933853,
-0.003912514075636864,
-0.36101099848747253,
-0.029925525188446045,
-0.02389119192957878,
-0.06108783558011055,
0.017689842730760574,
0.16394773125648499,
0.06700922548770905,
-0.224649116396904,
0.11357097327709198,
-0.12664742767810822,
-0.3518039584159851,
0.21601352095603943,
-0.08094234764575958,
0.46824243664741516,
0.29455822706222534,
0.11202923953533173,
-0.07726500928401947,
-0.07692860811948776,
0.39417362213134766,
-0.34146273136138916,
-0.20447155833244324,
0.09016958624124527,
-0.11990073323249817,
-0.26746147871017456,
-0.08809345960617065,
0.03777848556637764,
-0.2135346382856369,
-0.4208700358867645,
0.1397450566291809,
0.007353059947490692,
0.08164279162883759,
0.4143531918525696,
-0.05476412549614906,
0.1631791740655899,
-0.21921908855438232,
0.015583835542201996,
-0.22796033322811127,
-0.18028314411640167,
0.45825815200805664,
-0.3106890320777893,
-0.36979982256889343,
0.046463217586278915,
-0.03267067298293114,
0.362892210483551,
-0.2744808793067932,
-0.26826760172843933,
-0.5326719880104065,
-0.28713005781173706,
0.1560511738061905,
-0.24680858850479126,
0.3547605872154236,
0.2120858132839203,
-0.18215328454971313,
0.06096985191106796,
-0.1300235092639923,
0.03316989168524742,
-0.05075304955244064,
0.1445498913526535,
0.059936296194791794,
0.023523477837443352,
0.23263585567474365,
-0.10042285174131393,
0.44053542613983154,
0.3337152898311615,
0.10737252235412598,
0.3496691584587097,
-0.19743050634860992,
0.26793190836906433,
0.07345397770404816,
-0.5455467104911804,
-0.20041385293006897,
0.1495952010154724,
0.23162217438220978,
0.06781718134880066,
-0.006518702954053879,
0.4016212821006775,
-0.07271866500377655,
-0.520806610584259,
-0.01656598411500454,
-0.17788463830947876,
-0.2708401083946228,
0.016908759251236916,
0.11488039791584015,
0.04622930660843849,
0.13666018843650818,
-0.27242785692214966,
-0.0006545493379235268,
0.5350785851478577,
0.38514596223831177,
-0.10028604418039322,
0.08840689808130264,
-0.3795083463191986,
-0.32325437664985657,
-0.45755571126937866,
0.14789369702339172,
-0.029465848580002785,
0.4193803668022156,
-0.010769244283437729,
0.18168023228645325,
0.035816725343465805,
-0.0005646245554089546,
0.6476690173149109,
-0.016520148143172264,
-0.04393375664949417,
-0.061175357550382614,
-0.13459691405296326,
-0.42738077044487,
-0.14426857233047485,
-0.09034262597560883,
0.1631356179714203,
-0.22668106853961945,
0.4444860517978668,
-0.1834108680486679,
-0.35232025384902954,
0.08077855408191681,
-0.044962942600250244,
-0.040500227361917496,
-0.16826802492141724,
-0.3035728931427002,
-0.279318630695343,
-0.3794768452644348,
0.022048279643058777,
0.16935333609580994,
0.30714109539985657,
0.31900909543037415,
0.0563623420894146,
-0.14868076145648956,
-0.25712522864341736,
0.25635331869125366,
0.14798763394355774,
0.14139705896377563,
-0.13387152552604675,
0.12020517885684967,
0.09899932146072388,
-0.22186124324798584,
0.1468963921070099,
0.55855792760849,
0.07340782880783081,
-0.6261083483695984,
-0.06241787225008011,
0.1313619464635849,
0.15159863233566284,
0.1054135411977768,
-0.12125900387763977,
0.39810648560523987,
-0.11788982152938843,
0.33686280250549316,
-0.31176307797431946,
-0.14379049837589264,
0.14487731456756592,
0.19680596888065338,
-0.10027866810560226,
-0.03480622544884682,
0.5504769086837769,
0.029965564608573914,
0.13820944726467133,
0.3275934159755707,
0.8518509864807129,
-0.07375927269458771,
0.2761692404747009,
-0.12347076088190079,
0.8582698702812195,
0.3042011857032776,
-0.1121729165315628,
0.2501109838485718,
-0.219185471534729,
0.6996464133262634,
-0.2953472137451172,
0.011969611048698425,
-0.3092843294143677,
-0.3006385266780853,
-0.13621628284454346,
-0.08091656863689423,
0.3692430555820465,
-0.30259811878204346,
-0.00663621723651886,
0.2470574527978897,
-0.04411984235048294,
0.39464321732521057,
-0.03451765328645706,
0.16669993102550507,
-0.2539529502391815,
-0.2911056578159332,
-0.4102601408958435,
0.15896375477313995,
-0.004753865301609039,
0.5618632435798645,
-0.13025297224521637,
0.018712827935814857,
-0.3076406419277191,
-0.2015652358531952,
-0.3350564241409302,
-0.02940361015498638,
-0.035495806485414505,
0.2366068810224533,
0.7301426529884338,
0.03872650861740112,
0.42857393622398376,
-0.11228755116462708,
0.39124876260757446,
0.08299776166677475,
-0.340191513299942,
0.2880423963069916,
-0.43540602922439575,
-0.0271185040473938,
-0.15098784863948822,
0.08236364275217056,
0.4261753261089325,
-0.1064235270023346,
-0.40597453713417053,
0.11833000183105469,
-0.04715254157781601,
-0.03604782000184059,
0.019244328141212463,
0.09626957029104233,
-0.03785248100757599,
-0.1834075152873993,
-0.02962009608745575,
-0.0668783187866211,
0.4170376658439636,
-0.05369316786527634,
0.10689561069011688,
0.1814320683479309,
-0.25079286098480225,
0.07845408469438553,
0.2825298011302948,
-0.07313891500234604,
-0.21163780987262726,
0.4029822051525116,
-0.21848511695861816,
-0.1420959234237671,
0.2650948166847229,
0.05018213018774986,
-0.20474359393119812,
-0.1250903457403183,
-0.03941773250699043,
0.44123348593711853,
-0.6074268221855164,
0.03907572850584984,
-0.0784214660525322,
-0.1079549640417099,
-0.10750575363636017,
0.17256009578704834,
0.1081828624010086,
-0.09426886588335037,
0.006951078772544861,
-0.4949561357498169,
-0.25529614090919495,
0.16591878235340118,
-0.2652197778224945,
-0.028027188032865524,
-0.08874311298131943,
0.12920308113098145,
-0.17179438471794128,
0.042324960231781006,
-0.26173096895217896,
0.061995573341846466,
-0.30116745829582214,
-0.14596430957317352,
-0.12546798586845398,
-0.18875810503959656,
0.26636436581611633,
-0.2717282474040985,
0.06006283313035965,
0.13976070284843445,
-0.278436541557312,
-0.13253000378608704,
-0.532717227935791,
0.1588764190673828,
0.0675075501203537,
-0.06604274362325668,
0.10683652013540268,
0.09520398825407028,
-0.15799541771411896,
-0.2164154052734375,
0.1854124516248703,
0.35462069511413574,
-0.03648660331964493,
0.329164057970047,
0.2898803949356079,
-0.19112083315849304,
-0.29384171962738037,
-0.005263999104499817,
0.3833393156528473,
0.24406588077545166,
0.12036322057247162,
0.01814078353345394,
-0.0072687286883592606,
0.24828365445137024,
-0.1401422917842865,
0.20668235421180725,
-0.07291810214519501,
-0.2587195634841919,
0.4510100483894348,
-0.24112869799137115,
0.1728312373161316,
0.21095798909664154,
0.1910620927810669,
0.23117083311080933,
-0.15938207507133484,
0.15662722289562225,
0.3575344383716583,
0.145008385181427,
-0.2904772460460663,
-0.14795419573783875,
0.28469815850257874,
0.030178997665643692,
-0.04159987345337868,
0.195847749710083,
0.31216007471084595,
-0.08840226382017136,
0.2664627432823181,
0.29645922780036926,
0.7790545225143433,
-0.19194717705249786,
0.17026901245117188,
0.10355957597494125,
-0.03972671926021576,
0.2632276713848114,
0.481422483921051,
0.13441202044487,
0.17520909011363983,
0.5133281350135803,
-0.26853594183921814,
0.0927412286400795,
-0.298382043838501,
0.13320860266685486,
0.19368819892406464,
-0.2888241708278656,
-0.16889609396457672,
-0.09051039814949036,
0.15067975223064423,
-0.08875174075365067,
-0.2181883156299591,
0.27947521209716797,
-0.20992931723594666,
-0.10349651426076889,
-0.05095499008893967,
0.2564602196216583,
-0.1601790487766266,
-0.029689190909266472,
0.254937082529068,
-0.007937975227832794,
-0.3071730434894562,
-0.15731380879878998,
0.18918509781360626,
-0.34674352407455444,
0.02773367613554001,
0.05792747437953949,
-0.2204999476671219,
-0.35490185022354126,
-0.10386232286691666,
0.3399602770805359,
0.2849757969379425,
-0.16412663459777832,
0.03010035678744316,
0.07448363304138184,
-0.21545875072479248,
-0.1850195825099945,
0.23467521369457245,
0.5570618510246277,
0.052184272557497025,
0.07147097587585449,
0.07024648040533066,
-0.16700541973114014,
-0.028521211817860603,
0.20215047895908356,
0.1878613829612732,
-0.041525110602378845,
0.16354738175868988,
-0.03854949027299881,
0.09958461672067642,
-0.14828108251094818,
-0.18539349734783173,
-0.17639486491680145,
0.3126903176307678,
-0.31125137209892273,
0.7303502559661865,
-0.42788007855415344,
0.038067758083343506,
-0.2720864713191986,
-0.05084533244371414,
-0.4425309896469116,
0.12917928397655487,
0.1547134816646576,
0.013253865763545036,
-0.04922112822532654,
-0.32809963822364807,
0.03928883373737335,
-0.14803436398506165,
0.3343190550804138,
0.5687878131866455,
0.16424903273582458,
-0.11112739890813828,
-0.03811269626021385,
-0.43224573135375977,
0.1662597954273224,
0.012833643704652786,
0.12127800285816193,
0.20878466963768005,
-0.054932259023189545,
-0.2620749771595001,
-0.0027866102755069733,
0.12590794265270233,
0.12876223027706146,
-0.006174010224640369,
-0.10835142433643341,
-0.18922953307628632,
-0.03892792388796806,
-0.27358633279800415,
-0.05330430716276169,
0.14140024781227112,
0.1147092655301094,
0.05549114942550659,
-0.17415864765644073,
-0.03356614336371422,
-0.15222033858299255,
0.010447956621646881,
0.008925572037696838,
-0.4419741928577423,
0.3629867136478424,
0.11866216361522675,
0.33099842071533203,
-0.039811380207538605,
0.03219350427389145,
-0.1614389717578888,
-0.24084070324897766,
-0.17840717732906342,
0.11116005480289459,
-0.1697450429201126,
0.37823277711868286,
-0.06117332726716995,
-0.532441258430481,
-0.3333965539932251,
0.26383692026138306,
0.12474016845226288,
-0.028101326897740364,
-0.2373211830854416,
0.4970327317714691,
-0.2876283526420593,
0.12840399146080017,
0.19234134256839752,
0.13988378643989563,
-0.014200292527675629,
0.3266182243824005,
-0.2565953731536865,
-0.4144899249076843,
0.45807865262031555,
-0.6021568775177002,
-0.3171985447406769,
-0.11287126690149307,
0.2750575542449951,
0.1279066503047943,
-0.4857539236545563,
-0.5860675573348999,
-0.02892528474330902,
0.18174566328525543,
-0.051428936421871185,
-0.25918814539909363,
0.2799782156944275,
0.004753998480737209,
0.17938674986362457,
-0.03594952076673508,
0.42819586396217346,
0.08487606048583984,
0.0069196876138448715,
0.49763938784599304,
0.00910969078540802
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | (For layoutlmv3 fine-tuning) In my case, modifying `requirements.txt` as below worked.
- python = 3.7
```
datasets==2.3.2
evaluate==0.1.2
huggingface-hub==0.8.1
response==0.5.0
tokenizers==0.10.1
transformers==4.12.5
seqeval==1.2.2
deepspeed==0.5.7
tensorboard==2.7.0
seqeval==1.2.2
sentencepiece
timm==0.4.12
Pillow
einops
textdistance
shapely
``` | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 33 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
(For layoutlmv3 fine-tuning) In my case, modifying `requirements.txt` as below worked.
- python = 3.7
```
datasets==2.3.2
evaluate==0.1.2
huggingface-hub==0.8.1
response==0.5.0
tokenizers==0.10.1
transformers==4.12.5
seqeval==1.2.2
deepspeed==0.5.7
tensorboard==2.7.0
seqeval==1.2.2
sentencepiece
timm==0.4.12
Pillow
einops
textdistance
shapely
``` | [
-0.05186692252755165,
-0.6372939348220825,
0.011713817715644836,
0.5167974829673767,
0.19316540658473969,
0.15867742896080017,
0.1706334799528122,
0.30373647809028625,
0.2635854482650757,
0.0951227992773056,
-0.09369046986103058,
0.24559256434440613,
0.020451508462429047,
0.04523511230945587,
0.059143293648958206,
-0.25741228461265564,
0.09665516763925552,
0.12268506735563278,
0.09247654676437378,
-0.19112035632133484,
-0.04514894261956215,
0.33535662293434143,
-0.11211356520652771,
0.10567215085029602,
-0.3715240955352783,
-0.0008029788732528687,
-0.10033505409955978,
0.08700941503047943,
-0.06344050914049149,
-0.22434958815574646,
0.24917159974575043,
-0.0725344866514206,
0.11469398438930511,
0.2069581151008606,
-0.00011631316738203168,
-0.0005675628781318665,
0.16187676787376404,
0.03408411890268326,
0.06539902091026306,
-0.22808323800563812,
-0.2803608775138855,
-0.29228144884109497,
0.0505867674946785,
-0.10401871055364609,
-0.14291074872016907,
0.12353941798210144,
-0.4368581473827362,
0.14348053932189941,
0.34024250507354736,
0.33047401905059814,
0.23081201314926147,
0.418507844209671,
0.065031498670578,
-0.26894915103912354,
0.2578388750553131,
0.210697740316391,
-0.22086705267429352,
0.21163718402385712,
-0.05573970079421997,
-0.14801615476608276,
0.08949920535087585,
0.20781251788139343,
0.07752978056669235,
0.189642533659935,
0.4483916163444519,
0.12277592718601227,
-0.18056324124336243,
-0.27397432923316956,
-0.12329971045255661,
0.284467488527298,
0.22292596101760864,
-0.43333882093429565,
-0.3773455023765564,
-0.23612290620803833,
0.1409599781036377,
-0.4866349399089813,
0.2284671664237976,
0.09009923040866852,
0.04201659932732582,
-0.029301907867193222,
0.0840274766087532,
-0.3654716908931732,
-0.1454509049654007,
0.029772326350212097,
-0.18503642082214355,
0.2777141332626343,
-0.1227952390909195,
-0.022275663912296295,
0.007553819566965103,
-0.04666515439748764,
0.05328289046883583,
0.1411573886871338,
-0.09640070796012878,
0.10822634398937225,
-0.3750002086162567,
-0.1415787935256958,
0.06273011863231659,
0.1630885899066925,
0.05580174922943115,
0.08866000175476074,
-0.1877720057964325,
-0.2356938123703003,
0.004457742907106876,
0.08356621116399765,
-0.14352400600910187,
0.30529627203941345,
0.005381867289543152,
0.19080744683742523,
0.1512918919324875,
0.40843522548675537,
0.1600150763988495,
-0.09872647374868393,
-0.08107677102088928,
-0.2003004103899002,
-0.04959680885076523,
-0.035528119653463364,
0.326244056224823,
-0.07491987943649292,
-0.3950233459472656,
0.2400052398443222,
-0.15164905786514282,
0.049734342843294144,
0.06938310712575912,
0.42297470569610596,
-0.11588551849126816,
-0.03779201954603195,
0.20733857154846191,
0.16149060428142548,
-0.32222577929496765,
-0.0030846986919641495,
-0.21136580407619476,
0.5465482473373413,
0.005987856537103653,
-0.018095193430781364,
-0.14995847642421722,
-0.2562545835971832,
0.17196352779865265,
0.1263890266418457,
0.240738645195961,
-0.03672783821821213,
-0.28148412704467773,
0.06377309560775757,
-0.2618408501148224,
0.4420522153377533,
-0.04153931513428688,
0.057744547724723816,
0.19044911861419678,
0.0037957020103931427,
-0.1348176896572113,
-0.190833181142807,
-0.419915109872818,
-0.12695732712745667,
-0.1322494000196457,
0.13328492641448975,
-0.2907143235206604,
-0.08075279742479324,
-0.15656530857086182,
-0.06411218643188477,
-0.1085941269993782,
0.16620983183383942,
0.309465229511261,
-0.03962882608175278,
-0.22460836172103882,
-0.002109740162268281,
0.20486833155155182,
0.49075573682785034,
0.03049374744296074,
-0.22900335490703583,
0.25450703501701355,
-0.08319053053855896,
-0.0757763460278511,
0.27406254410743713,
0.14775115251541138,
0.1489291489124298,
-0.1927531659603119,
0.18988148868083954,
0.23555268347263336,
-0.555013120174408,
-0.5014551877975464,
-0.007883260026574135,
-0.018616534769535065,
0.11657681316137314,
-0.01039355993270874,
-0.15566155314445496,
-0.03845120593905449,
0.12974798679351807,
0.17765764892101288,
0.11334937065839767,
0.20146965980529785,
-0.07453303784132004,
-0.21056002378463745,
-0.1690233051776886,
0.016578098759055138,
0.04873017594218254,
0.1169327050447464,
0.04046909138560295,
-0.09018886834383011,
-0.0016244659200310707,
0.07882748544216156,
-0.04138513281941414,
0.10866676270961761,
0.45388656854629517,
0.5120357871055603,
0.16662055253982544,
-0.024721993133425713,
-0.34282368421554565,
-0.20234933495521545,
0.1733236312866211,
-0.12028079479932785,
0.26180940866470337,
-0.08528372645378113,
-0.03920844569802284,
-0.2585713863372803,
0.10350918024778366,
-0.21907047927379608,
-0.35153600573539734,
0.029152464121580124,
-0.21262621879577637,
-0.07603747397661209,
0.08170026540756226,
-0.2759326100349426,
0.5736349821090698,
-0.10991934686899185,
0.35293880105018616,
-0.4029870927333832,
0.4922753572463989,
-0.10346496850252151,
0.02580218017101288,
0.10043592751026154,
0.3356935381889343,
0.09959559142589569,
0.024058442562818527,
-0.1287042796611786,
0.11136353760957718,
0.07455956935882568,
0.1917935609817505,
-0.1404324173927307,
0.13409766554832458,
0.37961187958717346,
-0.13341037929058075,
-0.11298549920320511,
-0.22308935225009918,
-0.024386592209339142,
0.24889251589775085,
0.12082277238368988,
0.18701598048210144,
0.1855117827653885,
0.09122195839881897,
-0.04396430775523186,
0.22620858252048492,
-0.06458672881126404,
-0.0578351654112339,
0.014744268730282784,
-0.31814315915107727,
0.3861183226108551,
0.01695576310157776,
0.2076953947544098,
-0.14061732590198517,
-0.13943445682525635,
-0.09477628022432327,
0.5158683657646179,
0.10697397589683533,
0.237871915102005,
0.12939971685409546,
-0.23343119025230408,
0.23805153369903564,
0.16556191444396973,
0.01232701912522316,
0.26630571484565735,
0.05375220254063606,
-0.3348822295665741,
0.4828134775161743,
-0.19373182952404022,
0.045053403824567795,
0.12665799260139465,
-0.06689821183681488,
0.315949022769928,
0.07975799590349197,
-0.03568192571401596,
0.24507397413253784,
-0.21549376845359802,
-0.5051639080047607,
-0.1355499029159546,
0.3395574390888214,
-0.6028172969818115,
-0.0833929032087326,
-0.31060439348220825,
0.11098625510931015,
0.08633231371641159,
-0.466400682926178,
-0.5005170702934265,
-0.15938855707645416,
-0.1171155720949173,
-0.024044033139944077,
0.012917984277009964,
0.1245739758014679,
0.05197242274880409,
0.0842452347278595,
0.14764727652072906,
-0.01938713900744915,
-0.24510537087917328,
-0.017467787489295006,
-0.06855886429548264,
-0.04974306747317314,
-0.11074341833591461,
0.369966983795166,
0.145885169506073,
-0.2776033580303192,
0.15040260553359985,
-0.20234164595603943,
-0.34612390398979187,
0.2227744311094284,
-0.23548324406147003,
0.44882094860076904,
0.3729499578475952,
0.1282474845647812,
-0.0014241933822631836,
0.12296470999717712,
0.46030181646347046,
-0.03662267327308655,
-0.28732064366340637,
0.12431779503822327,
-0.116622194647789,
-0.2698121964931488,
-0.10780449211597443,
-0.001166023313999176,
-0.03385461866855621,
-0.482817143201828,
0.2678197920322418,
-0.07638628780841827,
0.08757849037647247,
0.4139687716960907,
0.06465214490890503,
0.22708886861801147,
-0.1769435554742813,
0.1057760939002037,
-0.15381424129009247,
-0.2465343326330185,
0.4002707600593567,
-0.28454431891441345,
-0.39888787269592285,
-0.03129428252577782,
0.047215089201927185,
0.3240578770637512,
-0.10044173151254654,
-0.44215869903564453,
-0.6079476475715637,
-0.2833367884159088,
0.1800505816936493,
-0.17179127037525177,
0.21248334646224976,
0.3379265069961548,
-0.22717632353305817,
0.09050372987985611,
-0.1977599561214447,
-0.16244494915008545,
0.017316438257694244,
0.36014389991760254,
-0.04471083730459213,
-0.0028900112956762314,
0.3744516968727112,
-0.06523308902978897,
0.2402520626783371,
0.3233143091201782,
0.14881084859371185,
0.5378120541572571,
-0.23725107312202454,
0.36187970638275146,
0.06605618447065353,
-0.514445424079895,
-0.2449643760919571,
0.11280272156000137,
0.21761426329612732,
0.04356051981449127,
-0.0833997055888176,
0.48003721237182617,
-0.11266261339187622,
-0.5392969250679016,
0.10118658095598221,
-0.17026486992835999,
-0.16115431487560272,
0.0042060427367687225,
0.23751506209373474,
-0.08438572287559509,
0.1273970901966095,
-0.14211489260196686,
0.0537995807826519,
0.5489696264266968,
0.3614254593849182,
-0.003261350095272064,
0.05289526283740997,
-0.3396025002002716,
-0.4514792561531067,
-0.44610345363616943,
0.16187350451946259,
0.0250830240547657,
0.41933876276016235,
-0.04229350388050079,
0.17477267980575562,
0.055944398045539856,
0.012554271146655083,
0.609161913394928,
-0.15291482210159302,
-0.013173922896385193,
0.008429434150457382,
-0.1786908507347107,
-0.4573668837547302,
-0.07413268089294434,
-0.15191298723220825,
-0.05967741459608078,
-0.15360310673713684,
0.5922563672065735,
-0.12557551264762878,
-0.2970508933067322,
0.04564782232046127,
-0.15347318351268768,
-0.04386487975716591,
-0.21487677097320557,
-0.3681068420410156,
-0.2439195215702057,
-0.3962059020996094,
0.09649383276700974,
0.11392005532979965,
0.21610572934150696,
0.3848317861557007,
0.15112876892089844,
0.02482372522354126,
-0.2774410843849182,
0.17491057515144348,
0.12986387312412262,
0.10724064707756042,
-0.024570614099502563,
0.09243002533912659,
0.04764750227332115,
-0.019878506660461426,
0.08349646627902985,
0.733654260635376,
-0.014224812388420105,
-0.6603446006774902,
-0.10264433175325394,
0.1095193475484848,
0.3080011308193207,
0.30229875445365906,
0.006271103397011757,
0.45715776085853577,
-0.2834741771221161,
0.3844372630119324,
-0.3790808618068695,
-0.18588058650493622,
0.36267679929733276,
0.1373804211616516,
0.012309571728110313,
-0.045575372874736786,
0.4917147159576416,
-0.13148853182792664,
0.2425621598958969,
0.1790570616722107,
0.7894009947776794,
-0.16547875106334686,
0.05737997591495514,
0.04915206879377365,
0.8245124816894531,
0.40879344940185547,
-0.0004995912313461304,
0.3775951862335205,
-0.2547830641269684,
0.6334303021430969,
-0.14027847349643707,
0.11897976696491241,
-0.3747238516807556,
-0.33833715319633484,
-0.0963265597820282,
-0.11285321414470673,
0.40743929147720337,
-0.5087141394615173,
0.03748882934451103,
0.12192688137292862,
0.03444228321313858,
0.18180125951766968,
-0.17671291530132294,
0.11188243329524994,
-0.3202558755874634,
-0.37494784593582153,
-0.5204174518585205,
0.12174192070960999,
0.005229774862527847,
0.4569219946861267,
-0.11191672831773758,
0.02819501794874668,
-0.3211756646633148,
-0.17609582841396332,
-0.34699660539627075,
-0.014342611655592918,
-0.1870727688074112,
0.06949903070926666,
0.4427359402179718,
-0.18152084946632385,
0.43450015783309937,
-0.03365534171462059,
0.2213864028453827,
0.09120374172925949,
-0.3414701819419861,
0.22421033680438995,
-0.2217775285243988,
-0.04290369525551796,
-0.005189033225178719,
0.02110375463962555,
0.45615121722221375,
-0.1783120334148407,
-0.36014989018440247,
0.028744317591190338,
-0.028645899146795273,
0.023707106709480286,
0.09366375207901001,
-0.032419607043266296,
-0.16908854246139526,
-0.22814343869686127,
-0.15871070325374603,
-0.10764811933040619,
0.5024285316467285,
-0.051362328231334686,
0.10791173577308655,
0.06381450593471527,
-0.20495030283927917,
-0.08071555942296982,
0.15231703221797943,
-0.16838353872299194,
-0.20216785371303558,
0.33252304792404175,
-0.20732879638671875,
0.02927231788635254,
0.2274547815322876,
0.3087807297706604,
-0.12120692431926727,
-0.17556390166282654,
0.027949385344982147,
0.5705192685127258,
-0.5285574197769165,
-0.08753073215484619,
-0.053246136754751205,
-0.17149046063423157,
-0.17474853992462158,
0.24170564115047455,
0.22224147617816925,
-0.2090207040309906,
0.21366073191165924,
-0.47180619835853577,
-0.18310430645942688,
0.2146669179201126,
-0.23582018911838531,
0.06418493390083313,
-0.17959743738174438,
0.13108615577220917,
-0.016968058422207832,
0.07052987068891525,
-0.26976919174194336,
0.08832404017448425,
-0.19154199957847595,
-0.13721400499343872,
-0.013652157038450241,
-0.04092368483543396,
0.25246283411979675,
-0.16662922501564026,
0.06994684040546417,
0.2819623351097107,
-0.3171567916870117,
-0.13731294870376587,
-0.5078280568122864,
0.13762326538562775,
-0.03529757633805275,
-0.050970904529094696,
0.24534034729003906,
-0.04007050395011902,
-0.28317996859550476,
-0.24680212140083313,
0.10781441628932953,
0.33314165472984314,
-0.05281640589237213,
0.2730172276496887,
0.18830296397209167,
-0.22484856843948364,
-0.1748225837945938,
-0.003490205854177475,
0.2761636972427368,
0.18085616827011108,
0.05735502019524574,
-0.0994524210691452,
-0.10863792896270752,
0.264448881149292,
-0.06376507878303528,
0.18080583214759827,
-0.05784578621387482,
-0.2212337851524353,
0.3857772946357727,
-0.1408364325761795,
0.23951172828674316,
0.1775037795305252,
0.2591340243816376,
0.1285150647163391,
-0.20177575945854187,
0.21207299828529358,
0.2565963864326477,
0.16641861200332642,
-0.323241651058197,
-0.028422977775335312,
0.21998433768749237,
-0.02568132057785988,
0.04936869814991951,
0.2164822518825531,
0.3304871618747711,
0.18221673369407654,
-0.11302144825458527,
0.25940820574760437,
0.5654179453849792,
-0.11428150534629822,
0.09521882236003876,
0.048537153750658035,
-0.052764952182769775,
0.2710486650466919,
0.455204576253891,
0.18378861248493195,
0.15927404165267944,
0.5004945993423462,
-0.00351850688457489,
-0.03043810836970806,
-0.21114283800125122,
0.21258816123008728,
0.2515140473842621,
-0.37637048959732056,
-0.017257284373044968,
-0.11519762873649597,
0.08476687967777252,
-0.07405532151460648,
-0.26716580986976624,
0.14616429805755615,
-0.13965484499931335,
-0.08951613306999207,
-0.10899053514003754,
0.31217336654663086,
-0.28227052092552185,
0.05783584341406822,
0.3334507644176483,
-0.05292065441608429,
-0.16593144834041595,
-0.1261386126279831,
0.16684551537036896,
-0.342848539352417,
0.09058402478694916,
0.012031123042106628,
-0.18637947738170624,
-0.21717128157615662,
-0.14782333374023438,
0.31330934166908264,
0.2227245569229126,
-0.27008670568466187,
0.16716983914375305,
0.06195509433746338,
-0.18080052733421326,
-0.20225901901721954,
0.22308216989040375,
0.45466887950897217,
-0.009562414139509201,
0.09505043923854828,
0.04244900122284889,
0.01254098117351532,
-0.054503049701452255,
0.19638873636722565,
0.038453247398138046,
0.10668181627988815,
0.45076611638069153,
0.132943257689476,
0.09337525069713593,
-0.16745851933956146,
-0.0811341255903244,
-0.19774456322193146,
0.2794143557548523,
-0.4183325171470642,
0.6060382127761841,
-0.4027864634990692,
-0.04964889958500862,
-0.2930968105792999,
-0.050496019423007965,
-0.4962478280067444,
0.12720352411270142,
0.32348230481147766,
0.04132205992937088,
-0.004357757978141308,
-0.26859980821609497,
0.048351556062698364,
-0.0933893471956253,
0.36846110224723816,
0.5292367935180664,
-0.004781678318977356,
-0.13365794718265533,
-0.08475976437330246,
-0.413070946931839,
0.23141826689243317,
-0.115367591381073,
-0.1256609857082367,
0.29892075061798096,
-0.005970343016088009,
-0.19796821475028992,
-0.048069946467876434,
0.17214851081371307,
0.23596692085266113,
0.04049673676490784,
-0.20483094453811646,
-0.3203461468219757,
-0.15673425793647766,
-0.2540193200111389,
-0.11752617359161377,
0.17586059868335724,
0.05314987152814865,
0.07019365578889847,
-0.06535112857818604,
-0.059583477675914764,
-0.2621757388114929,
0.14854559302330017,
0.03539803996682167,
-0.22218677401542664,
0.31878596544265747,
0.10811754316091537,
0.31769871711730957,
-0.08256269991397858,
-0.15244081616401672,
-0.21142709255218506,
-0.1889507919549942,
-0.1579163670539856,
0.24781745672225952,
-0.17116086184978485,
0.4201110899448395,
-0.029596496373414993,
-0.6159817576408386,
-0.3244069814682007,
0.30906620621681213,
0.15037952363491058,
0.06843875348567963,
-0.19535617530345917,
0.5186851024627686,
-0.14583900570869446,
0.15720346570014954,
0.3395150303840637,
0.2033800184726715,
0.0041086673736572266,
0.15461908280849457,
-0.28600770235061646,
-0.4489976763725281,
0.40594959259033203,
-0.5815539956092834,
-0.28842172026634216,
-0.02267475426197052,
0.31505775451660156,
0.17015212774276733,
-0.40800291299819946,
-0.6379607915878296,
-0.09675067663192749,
0.19731897115707397,
-0.02413260191679001,
-0.24580428004264832,
0.37703612446784973,
-0.02815677970647812,
0.12999846041202545,
0.07522779703140259,
0.4966229796409607,
0.1131599098443985,
-0.14234554767608643,
0.3743322789669037,
-0.10530557483434677
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | I encountered the same issue where the problem is the absence of the 'scipy' library.
To solve this open your terminal or command prompt and run the following command to install 'scipy': pip install scipy .
Restart the kernel and rerun the cell and it will work.
| ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 47 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
I encountered the same issue where the problem is the absence of the 'scipy' library.
To solve this open your terminal or command prompt and run the following command to install 'scipy': pip install scipy .
Restart the kernel and rerun the cell and it will work.
| [
-0.067244753241539,
-0.33974510431289673,
-0.040101803839206696,
0.15907937288284302,
0.24787265062332153,
0.07637142390012741,
0.12387710809707642,
0.35300150513648987,
0.35980674624443054,
0.27485716342926025,
-0.27522405982017517,
0.3748866617679596,
0.06208927929401398,
0.19506843388080597,
0.06381101906299591,
-0.24478301405906677,
0.04963906854391098,
0.2809985876083374,
-0.03907005488872528,
-0.21137091517448425,
-0.09458233416080475,
0.23195886611938477,
-0.1326858550310135,
0.25497376918792725,
-0.37514394521713257,
0.08978740870952606,
-0.05873600021004677,
0.15835601091384888,
0.05376214534044266,
-0.3204304575920105,
0.2600003182888031,
-0.08511853218078613,
0.11478909850120544,
0.3559702932834625,
-0.00011364782403688878,
-0.03157256916165352,
0.20624001324176788,
0.03850322216749191,
-0.13912132382392883,
-0.2943834066390991,
0.04291088879108429,
-0.11800874769687653,
0.04317167401313782,
-0.13151299953460693,
-0.10944933444261551,
-0.035683970898389816,
-0.29627227783203125,
0.015676788985729218,
0.23968985676765442,
0.11279286444187164,
0.2479681521654129,
0.53589928150177,
0.44210708141326904,
-0.2538001537322998,
0.14173980057239532,
0.19344469904899597,
-0.17282986640930176,
0.31310224533081055,
0.07801453769207001,
-0.2650250494480133,
0.1864107996225357,
0.07912500202655792,
0.23901060223579407,
0.21347396075725555,
0.4277932941913605,
0.11698761582374573,
-0.10883603245019913,
-0.13270938396453857,
-0.01891045644879341,
0.26739171147346497,
0.22133442759513855,
-0.41154205799102783,
-0.32059746980667114,
0.022255413234233856,
0.111113041639328,
-0.31807589530944824,
0.15142910182476044,
0.15123188495635986,
0.07747355103492737,
0.06504935026168823,
0.27576056122779846,
-0.24266591668128967,
-0.26861244440078735,
0.2103237509727478,
-0.2652530074119568,
0.06551069021224976,
-0.18287989497184753,
-0.030012525618076324,
0.12347826361656189,
0.03735099732875824,
0.09849898517131805,
0.05724996328353882,
0.08247756212949753,
0.3028441369533539,
-0.23261497914791107,
-0.010917756706476212,
0.0372677743434906,
0.16625049710273743,
0.14349299669265747,
-0.02636382356286049,
-0.19258736073970795,
-0.2031797468662262,
-0.08247774839401245,
0.15862859785556793,
0.025251328945159912,
0.08788184821605682,
-0.11276460438966751,
0.2576352059841156,
0.2781826853752136,
0.20247066020965576,
0.05749041959643364,
-0.24016842246055603,
-0.03698885813355446,
-0.0605330765247345,
-0.0060402750968933105,
-0.1572495400905609,
0.290896475315094,
-0.26215505599975586,
-0.34319594502449036,
0.12100271135568619,
-0.22872021794319153,
0.009946370497345924,
0.07043329626321793,
0.49779102206230164,
-0.18486876785755157,
-0.11340785771608353,
0.18264946341514587,
0.1273270845413208,
-0.2312534600496292,
-0.09813540428876877,
-0.3179200291633606,
0.5207114815711975,
-0.13323073089122772,
-0.009606687352061272,
-0.013940708711743355,
-0.25927385687828064,
0.22331076860427856,
0.03545934334397316,
0.3462408185005188,
-0.04361909255385399,
-0.25845691561698914,
-0.06060013175010681,
-0.3066483438014984,
0.5816236138343811,
0.15037178993225098,
-0.013451753184199333,
0.16055695712566376,
-0.13539424538612366,
-0.05855309218168259,
-0.08912729471921921,
-0.4004933536052704,
-0.14709889888763428,
-0.2884592115879059,
0.11039997637271881,
-0.34962666034698486,
-0.06280609965324402,
-0.36595043540000916,
-0.3335430920124054,
-0.2988765239715576,
-0.118035227060318,
0.04826481267809868,
0.007725078612565994,
0.1690150499343872,
-0.08406488597393036,
0.20276659727096558,
0.3268410265445709,
-0.04318035766482353,
-0.1745031476020813,
0.058663103729486465,
0.004839589819312096,
-0.0004678964614868164,
0.1540633589029312,
0.01889793947339058,
0.21726620197296143,
-0.13079410791397095,
0.309731125831604,
0.13043083250522614,
-0.43573424220085144,
-0.5662804245948792,
-0.11652106791734695,
0.20377181470394135,
0.06267983466386795,
-0.13056603074073792,
-0.007094329223036766,
-0.12739472091197968,
0.07600182294845581,
0.00865267962217331,
0.2756119966506958,
0.09440512955188751,
-0.07211168855428696,
-0.15941566228866577,
-0.19021469354629517,
-0.0695025846362114,
0.2043275684118271,
0.24450063705444336,
0.2263185679912567,
0.17254208028316498,
0.0182175450026989,
0.17825159430503845,
-0.13543127477169037,
-0.015305647626519203,
0.2698672413825989,
0.42893102765083313,
0.27514147758483887,
-0.019221777096390724,
-0.44940245151519775,
-0.14198479056358337,
0.11529972404241562,
-0.277675062417984,
0.23324885964393616,
-0.269037663936615,
-0.12042447924613953,
-0.3015730082988739,
0.08475660532712936,
-0.10826979577541351,
-0.19190998375415802,
0.07130387425422668,
-0.2620854675769806,
0.005044069141149521,
0.15420152246952057,
-0.24357958137989044,
0.5130634903907776,
-0.11605629324913025,
0.37436774373054504,
-0.15407578647136688,
0.6561572551727295,
-0.15687915682792664,
-0.18107832968235016,
0.10980440676212311,
0.22797644138336182,
0.07058458030223846,
-0.18363864719867706,
-0.1480705440044403,
0.17275269329547882,
-0.015104014426469803,
0.12262342870235443,
-0.1121416911482811,
0.038768619298934937,
0.2211591601371765,
0.017247933894395828,
-0.09753751009702682,
-0.14872907102108002,
0.22379709780216217,
0.09719032794237137,
0.16981492936611176,
0.2572844326496124,
-0.009135164320468903,
0.10362990200519562,
0.024220295250415802,
0.30349886417388916,
-0.009646078571677208,
-0.02668047696352005,
-0.008623030968010426,
-0.0598134845495224,
0.42038509249687195,
-0.1700667440891266,
0.08838175237178802,
-0.15634843707084656,
-0.19516947865486145,
-0.12140833586454391,
0.4554808437824249,
-0.04388809949159622,
0.26488977670669556,
0.059764567762613297,
-0.29470178484916687,
0.34888535737991333,
0.17723114788532257,
0.04009431228041649,
0.4489140510559082,
0.13965731859207153,
-0.48397740721702576,
0.26184898614883423,
-0.2032332569360733,
0.05221428722143173,
0.018166296184062958,
-0.044774048030376434,
0.3060643672943115,
-0.05142094939947128,
-0.13596369326114655,
0.12880973517894745,
-0.39023473858833313,
-0.5726712346076965,
-0.24639125168323517,
0.39468133449554443,
-0.4417878985404968,
0.10616808384656906,
-0.25613170862197876,
0.11912968009710312,
0.1876721978187561,
-0.53350430727005,
-0.2852979302406311,
-0.2373698502779007,
-0.18681734800338745,
0.19143487513065338,
0.1406797617673874,
0.20329971611499786,
0.034594062715768814,
0.14758332073688507,
-0.035078369081020355,
-0.02579648233950138,
-0.4299018383026123,
-0.15997189283370972,
-0.02247544378042221,
0.04413583502173424,
0.006460652686655521,
0.2560185492038727,
0.08068834990262985,
-0.2889188230037689,
0.2540421485900879,
-0.09381558746099472,
-0.2979941964149475,
0.10094905644655228,
-0.1952388882637024,
0.37765759229660034,
0.23448961973190308,
0.3143785297870636,
-0.11987324804067612,
0.18545356392860413,
0.40078291296958923,
-0.3536626100540161,
-0.2002895623445511,
0.16526268422603607,
-0.07012801617383957,
-0.24839943647384644,
-0.07320494949817657,
-0.1010933443903923,
-0.2769067585468292,
-0.40368592739105225,
0.23580491542816162,
0.03705610707402229,
0.09374316036701202,
0.38554874062538147,
0.09236028790473938,
0.25386667251586914,
-0.024472730234265327,
0.11013392359018326,
-0.2739787995815277,
-0.15205030143260956,
0.47160854935646057,
-0.3317006528377533,
-0.4761655628681183,
-0.02381453663110733,
0.12337881326675415,
0.36009103059768677,
-0.25055861473083496,
-0.36087173223495483,
-0.5299163460731506,
-0.30137279629707336,
0.1691669374704361,
-0.3357776701450348,
0.4384872317314148,
0.26448413729667664,
-0.1275959610939026,
0.03940153121948242,
-0.18752506375312805,
0.03711977228522301,
-0.10442131012678146,
0.26499590277671814,
-0.07235030084848404,
0.0371587797999382,
0.25802087783813477,
-0.1752648800611496,
0.23585790395736694,
0.21475860476493835,
0.07093523442745209,
0.4901835322380066,
-0.2060432881116867,
0.3214230239391327,
-0.03809024393558502,
-0.5044095516204834,
-0.023918770253658295,
0.0849892646074295,
0.3560939431190491,
-0.05524285137653351,
-0.1272684931755066,
0.3725518584251404,
-0.17050208151340485,
-0.41862714290618896,
-0.20505055785179138,
-0.15054480731487274,
-0.13107270002365112,
0.063484326004982,
0.04178711399435997,
0.03963305428624153,
0.08417923003435135,
-0.28190529346466064,
-0.05552125349640846,
0.4275270104408264,
0.343099445104599,
0.11325795948505402,
0.07366256415843964,
-0.1922859251499176,
-0.48608437180519104,
-0.5234743356704712,
0.27599987387657166,
-0.111605703830719,
0.16388040781021118,
-0.04620290920138359,
0.20446473360061646,
0.181044340133667,
0.004255743697285652,
0.5604079365730286,
0.06977790594100952,
-0.08148790895938873,
-0.004832323640584946,
-0.17081275582313538,
-0.41025876998901367,
-0.0827489122748375,
-0.17544256150722504,
0.18578511476516724,
-0.20023909211158752,
0.25173503160476685,
-0.05089911073446274,
-0.23698705434799194,
0.2104964554309845,
-0.007643476594239473,
-0.03214773163199425,
-0.3232901990413666,
-0.3129335045814514,
-0.42051222920417786,
-0.34708836674690247,
-0.06554950028657913,
0.28109607100486755,
0.34705492854118347,
0.3969796299934387,
0.04684753343462944,
-0.29045963287353516,
-0.3274821639060974,
0.22130703926086426,
0.33957532048225403,
0.17625507712364197,
-0.1576257199048996,
0.020144931972026825,
0.06069934368133545,
-0.09937913715839386,
0.28172188997268677,
0.6125540137290955,
-0.1169804185628891,
-0.4562072157859802,
-0.036170389503240585,
-0.044411465525627136,
0.1714549958705902,
0.1573541760444641,
-0.03082158789038658,
0.31602540612220764,
-0.17578108608722687,
0.2899376153945923,
-0.3567257821559906,
-0.22791948914527893,
0.19428013265132904,
0.2895383834838867,
0.12923070788383484,
-0.19407136738300323,
0.5571743845939636,
0.17855505645275116,
0.12944769859313965,
0.37841182947158813,
0.8529868721961975,
-0.047428928315639496,
0.14907316863536835,
-0.13496020436286926,
0.9179344773292542,
0.11912985146045685,
-0.0945279598236084,
0.32390284538269043,
-0.20153874158859253,
0.5572234988212585,
-0.3630406856536865,
0.15729713439941406,
-0.2949236333370209,
-0.44064754247665405,
-0.18048587441444397,
-0.15373621881008148,
0.5039979219436646,
-0.39108484983444214,
0.07903094589710236,
0.2751934826374054,
-0.18474598228931427,
0.1277388632297516,
-0.04372236132621765,
0.12656238675117493,
-0.20451195538043976,
-0.18713822960853577,
-0.6427754163742065,
0.18037711083889008,
-0.040706731379032135,
0.6200994253158569,
-0.06536167860031128,
0.030040791258215904,
-0.46353456377983093,
-0.06362590938806534,
-0.17147915065288544,
0.007704973220825195,
0.03081803023815155,
0.15722618997097015,
0.4529935419559479,
0.037848711013793945,
0.34839752316474915,
-0.04010807350277901,
0.37915724515914917,
0.06892861425876617,
-0.2624901831150055,
0.23419004678726196,
-0.21976986527442932,
-0.06775474548339844,
-0.059502243995666504,
0.23085208237171173,
0.3447445333003998,
-0.20292440056800842,
-0.41841185092926025,
0.35721978545188904,
-0.06548977643251419,
-0.22318288683891296,
0.03291504085063934,
0.10709088295698166,
-0.10284538567066193,
-0.20865629613399506,
-0.00003120722249150276,
-0.08390498161315918,
0.39885979890823364,
-0.09912876784801483,
0.13400831818580627,
0.196608766913414,
-0.23576472699642181,
0.28698691725730896,
0.286929190158844,
-0.11025573313236237,
-0.2824840843677521,
0.2882392108440399,
-0.06062721461057663,
0.12124277651309967,
0.23856928944587708,
0.10912659764289856,
-0.1351761519908905,
-0.1108068898320198,
0.02285664528608322,
0.5364920496940613,
-0.6732543706893921,
0.07250698655843735,
-0.05139782652258873,
-0.09236940741539001,
-0.19331000745296478,
0.33006033301353455,
0.23828190565109253,
-0.05249490588903427,
-0.02795947715640068,
-0.5483566522598267,
-0.15043951570987701,
0.2090449184179306,
-0.17267419397830963,
0.09164533019065857,
0.06568793952465057,
0.3237032890319824,
-0.12937849760055542,
0.04978044331073761,
-0.311880499124527,
0.145272895693779,
-0.26948854327201843,
-0.2000984400510788,
0.14021454751491547,
-0.08863189071416855,
0.32118654251098633,
-0.28452834486961365,
0.10316383838653564,
0.20425239205360413,
-0.22604896128177643,
-0.16060590744018555,
-0.34355682134628296,
0.12272804975509644,
-0.1190485879778862,
0.010083990171551704,
0.0006201993674039841,
-0.03781500086188316,
-0.2615152895450592,
-0.16017766296863556,
0.1021604835987091,
0.1583363115787506,
-0.0026892870664596558,
0.19741496443748474,
0.1766636073589325,
-0.2811596095561981,
-0.13372129201889038,
0.1515408456325531,
0.2141163945198059,
0.12590037286281586,
-0.07104112207889557,
-0.05683043599128723,
0.06822208315134048,
0.23819303512573242,
-0.12018749117851257,
0.11815236508846283,
-0.27249860763549805,
-0.23413783311843872,
0.4581717550754547,
-0.22996287047863007,
0.2062004804611206,
0.04029213637113571,
0.3358002007007599,
0.171171635389328,
-0.08681734651327133,
0.16562610864639282,
0.2786595821380615,
0.168370321393013,
-0.4495244324207306,
-0.12308628857135773,
0.17477953433990479,
0.07620009034872055,
0.11741478741168976,
0.2893427312374115,
0.12891283631324768,
0.06978528201580048,
-0.08435022830963135,
0.2511661946773529,
0.49512147903442383,
0.030496815219521523,
0.025686945766210556,
0.14726679027080536,
-0.018284782767295837,
0.2647218704223633,
0.40176984667778015,
0.2850259840488434,
0.1282748132944107,
0.54804927110672,
-0.28776270151138306,
-0.10342493653297424,
-0.3837946355342865,
0.04032742232084274,
0.1318470537662506,
-0.15613707900047302,
0.04137402027845383,
0.01625952124595642,
-0.014810353517532349,
-0.14719930291175842,
-0.13311699032783508,
0.4383857548236847,
-0.34312987327575684,
-0.26857104897499084,
-0.04022955149412155,
0.2774951457977295,
-0.163701593875885,
0.14606817066669464,
0.11699801683425903,
-0.039367880672216415,
-0.18367290496826172,
-0.2693256437778473,
0.18747878074645996,
-0.16656264662742615,
0.2847496271133423,
0.0023537352681159973,
-0.00814453512430191,
-0.18678827583789825,
-0.2302326261997223,
0.3679691553115845,
0.30604439973831177,
-0.1591227650642395,
-0.031942322850227356,
-0.029810309410095215,
-0.2174302041530609,
-0.1951494961977005,
0.29314759373664856,
0.4968263804912567,
0.006324604153633118,
0.12466266751289368,
0.0015418543480336666,
-0.04948269948363304,
-0.1742786318063736,
0.26926499605178833,
-0.030167780816555023,
0.1785954385995865,
0.18707884848117828,
0.08457380533218384,
0.15115684270858765,
-0.14914178848266602,
-0.05476832017302513,
-0.20219142735004425,
0.39807963371276855,
-0.3443586230278015,
0.5760993957519531,
-0.3190403878688812,
-0.10937747359275818,
-0.2893676161766052,
-0.17344292998313904,
-0.41179975867271423,
0.09379799664020538,
-0.043673135340213776,
-0.14432774484157562,
-0.11766105145215988,
-0.2613676190376282,
0.05894148349761963,
-0.0640803873538971,
0.2804813086986542,
0.4717980623245239,
0.16431500017642975,
-0.21232563257217407,
-0.07710430771112442,
-0.4062025249004364,
0.0594852939248085,
-0.21661773324012756,
-0.21525445580482483,
0.15996147692203522,
-0.16403841972351074,
-0.03731594234704971,
0.0030784346163272858,
0.4105679988861084,
0.07054915279150009,
0.02893705666065216,
-0.11486959457397461,
-0.33627867698669434,
-0.21211610734462738,
-0.17298942804336548,
-0.13191290199756622,
0.07455380260944366,
0.10860002785921097,
0.06711135059595108,
-0.22205734252929688,
0.06609437614679337,
-0.2807571291923523,
0.11794659495353699,
-0.02842816151678562,
-0.3247930109500885,
0.3500940799713135,
0.07950346916913986,
0.33493340015411377,
-0.013737088069319725,
-0.08268268406391144,
0.09538166224956512,
-0.22471609711647034,
-0.023262575268745422,
0.11345238983631134,
0.010461587458848953,
0.28870126605033875,
-0.015162743628025055,
-0.6131112575531006,
-0.36159440875053406,
0.4410821795463562,
0.07842507213354111,
0.16996078193187714,
-0.12824854254722595,
0.48777052760124207,
-0.2796500027179718,
0.11496704071760178,
0.19647300243377686,
0.1707443743944168,
-0.12976673245429993,
0.35231882333755493,
-0.23065465688705444,
-0.35218527913093567,
0.5252423286437988,
-0.41606131196022034,
-0.286096453666687,
-0.0351494625210762,
0.22904273867607117,
-0.01654154807329178,
-0.31319326162338257,
-0.4898964464664459,
0.030946560204029083,
0.07909237593412399,
0.06160697340965271,
-0.3317210078239441,
0.46951824426651,
-0.041667643934488297,
0.13849392533302307,
0.015397664159536362,
0.3163023591041565,
0.06192704662680626,
-0.05063609033823013,
0.337573379278183,
-0.06431528925895691
] |
https://github.com/huggingface/datasets/issues/4117 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api' | > I was getting the same issue. After trying a few versions, following combination worked for me. dataset==2.3.2 huggingface_hub==0.7.0
>
> In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked. Hope it helps someone.
>
> datasets-2.3.2 evaluate-0.1.2 huggingface-hub-0.8.1 responses-0.18.0 tokenizers-0.12.1 transformers-4.20.1
> I was getting the same issue. After trying a few versions, following combination worked for me. dataset==2.3.2 huggingface_hub==0.7.0
>
> In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked. Hope it helps someone.
>
> datasets-2.3.2 evaluate-0.1.2 huggingface-hub-0.8.1 responses-0.18.0 tokenizers-0.12.1 transformers-4.20.1
I face with the same issue. After using your approach I solve the issue.Thank you very much.
`pip install -U datasets` | ## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance. | 137 | AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Describe the bug
Could you help me please. I got this following error.
AttributeError: module 'huggingface_hub' has no attribute 'hf_api'
## Steps to reproduce the bug
when I imported the datasets
# Sample code to reproduce the bug
from datasets import list_datasets, load_dataset, list_metrics, load_metric
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-12.3-x86_64-i386-64bit
- Python version: 3.8.9
- PyArrow version: 7.0.0
- Pandas version: 1.3.5
- Huggingface-hub: 0.5.0
- Transformers: 4.18.0
Thank you in advance.
> I was getting the same issue. After trying a few versions, following combination worked for me. dataset==2.3.2 huggingface_hub==0.7.0
>
> In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked. Hope it helps someone.
>
> datasets-2.3.2 evaluate-0.1.2 huggingface-hub-0.8.1 responses-0.18.0 tokenizers-0.12.1 transformers-4.20.1
> I was getting the same issue. After trying a few versions, following combination worked for me. dataset==2.3.2 huggingface_hub==0.7.0
>
> In another environment, I just installed latest repos from pip through `pip install -U transformers datasets tokenizers evaluate`, resulting in following versions. This also worked. Hope it helps someone.
>
> datasets-2.3.2 evaluate-0.1.2 huggingface-hub-0.8.1 responses-0.18.0 tokenizers-0.12.1 transformers-4.20.1
I face with the same issue. After using your approach I solve the issue.Thank you very much.
`pip install -U datasets` | [
-0.24198836088180542,
-0.3745211362838745,
-0.0064547304064035416,
0.3095182180404663,
0.3097172975540161,
-0.007136344909667969,
0.20268182456493378,
0.28553536534309387,
0.3302513360977173,
0.11270581185817719,
-0.24083927273750305,
0.39244064688682556,
-0.08115997165441513,
0.05075901001691818,
-0.045705124735832214,
-0.32233327627182007,
0.1608201265335083,
0.13594546914100647,
0.013943575322628021,
-0.2140967696905136,
0.056564368307590485,
0.2887400686740875,
-0.14993983507156372,
0.19851423799991608,
-0.41308948397636414,
0.013014394789934158,
0.0717143639922142,
-0.0012039318680763245,
0.07277210801839828,
-0.4588954448699951,
0.2835322618484497,
-0.029900256544351578,
0.22274720668792725,
0.4038047790527344,
-0.0001143061526818201,
0.013463683426380157,
0.3338174819946289,
0.1356106400489807,
-0.06626605987548828,
-0.4066851735115051,
-0.059606898576021194,
-0.1855858713388443,
0.032553449273109436,
0.019900493323802948,
-0.0609273687005043,
-0.29843592643737793,
-0.2551591098308563,
0.13114948570728302,
0.35977816581726074,
0.16737723350524902,
0.24727587401866913,
0.5770236253738403,
0.302498996257782,
-0.2205139845609665,
-0.06059945374727249,
0.17230185866355896,
-0.06460180133581161,
0.09748157858848572,
-0.0720217227935791,
-0.1147482693195343,
0.06717148423194885,
0.050147294998168945,
0.08857753127813339,
0.10785059630870819,
0.45008912682533264,
-0.008165356703102589,
-0.14215010404586792,
-0.22915413975715637,
-0.07934103906154633,
0.18252664804458618,
0.32145965099334717,
-0.35524803400039673,
-0.47534480690956116,
-0.06997555494308472,
-0.05596903711557388,
-0.15130901336669922,
0.1155773401260376,
0.0902509093284607,
0.13510523736476898,
0.11588014662265778,
0.10369984805583954,
-0.21071067452430725,
-0.18134647607803345,
0.11165546625852585,
-0.17660224437713623,
0.26785051822662354,
-0.17866532504558563,
0.03474884480237961,
-0.015984181314706802,
-0.16162122786045074,
0.008747706189751625,
-0.018863245844841003,
-0.012718688696622849,
0.31202828884124756,
-0.40177419781684875,
-0.12988203763961792,
0.008041329681873322,
0.17003630101680756,
0.08258987963199615,
0.23999843001365662,
-0.3781857192516327,
-0.03289342671632767,
-0.11534980684518814,
0.15323880314826965,
-0.001935342326760292,
0.2867172658443451,
0.0021064206957817078,
0.3541283905506134,
0.2227838635444641,
0.2532857656478882,
0.03625513240695,
-0.13969016075134277,
-0.06156308203935623,
-0.031032036989927292,
0.08846874535083771,
-0.1498054563999176,
0.16756854951381683,
-0.13830575346946716,
-0.3164094388484955,
0.15698017179965973,
-0.19319134950637817,
-0.012819672003388405,
0.17471040785312653,
0.504837691783905,
-0.2321019321680069,
0.12868312001228333,
-0.023464646190404892,
0.20305965840816498,
-0.1581953465938568,
-0.009274560958147049,
-0.290559858083725,
0.45350220799446106,
0.03475388512015343,
-0.060455165803432465,
-0.05504865199327469,
-0.1713651567697525,
0.2276512235403061,
0.12001796811819077,
0.2927255928516388,
-0.048486318439245224,
-0.0645020380616188,
0.08686260879039764,
-0.23376232385635376,
0.5030586123466492,
0.05446786805987358,
0.25637853145599365,
0.18329791724681854,
-0.13658466935157776,
-0.10891343653202057,
-0.20905834436416626,
-0.4412838816642761,
-0.12080954015254974,
-0.22007109224796295,
0.13554130494594574,
-0.3775843381881714,
-0.1251763105392456,
-0.3767395615577698,
-0.21691451966762543,
-0.12441887706518173,
0.002103179693222046,
0.10989406704902649,
0.051660336554050446,
-0.0025993362069129944,
-0.050523705780506134,
0.20417766273021698,
0.3312830924987793,
0.07886907458305359,
-0.3654704988002777,
0.1678287237882614,
-0.15549087524414062,
-0.00048823654651641846,
0.2271231710910797,
0.014057456515729427,
0.23590093851089478,
-0.2399486005306244,
0.1465141624212265,
0.08170431852340698,
-0.6131670475006104,
-0.52508145570755,
-0.003040284849703312,
0.12026272714138031,
0.10672370344400406,
-0.03241025656461716,
-0.21646389365196228,
-0.01950967125594616,
0.0948375016450882,
0.033999353647232056,
0.14842189848423004,
0.1778937131166458,
0.013341793790459633,
-0.2573890686035156,
-0.2635238766670227,
-0.024041786789894104,
0.1745937466621399,
0.2723802328109741,
0.16864702105522156,
0.007199093699455261,
0.16082511842250824,
0.07270598411560059,
-0.008887577801942825,
0.1183556467294693,
0.3052671551704407,
0.5050914883613586,
0.1809385120868683,
0.08779153227806091,
-0.4368772804737091,
-0.08472204953432083,
0.21241647005081177,
-0.24789687991142273,
0.1499476581811905,
-0.26172417402267456,
-0.11644254624843597,
-0.31815749406814575,
0.11505677551031113,
-0.1792285442352295,
-0.28953880071640015,
0.08492713421583176,
-0.20755410194396973,
0.09787954390048981,
0.19463802874088287,
-0.2452368587255478,
0.6442245841026306,
0.07004795223474503,
0.3382691442966461,
-0.260301411151886,
0.5795280933380127,
-0.10284244269132614,
-0.0004838844761252403,
0.0011030100286006927,
0.20228755474090576,
0.16147775948047638,
-0.12851813435554504,
-0.1369730830192566,
0.15422362089157104,
-0.05897882208228111,
0.24852055311203003,
-0.057546406984329224,
0.21578647196292877,
0.4110969305038452,
-0.2314475178718567,
-0.14087267220020294,
-0.00710105337202549,
0.057314030826091766,
0.1659007966518402,
0.20471793413162231,
0.24004855751991272,
0.10016855597496033,
0.14160455763339996,
-0.008660141378641129,
0.24678859114646912,
0.09110447019338608,
-0.04621324688196182,
0.0066235363483428955,
-0.20898360013961792,
0.27731093764305115,
-0.12313197553157806,
0.15357431769371033,
-0.183259516954422,
0.05586925148963928,
-0.03715188056230545,
0.3948947787284851,
0.04742792621254921,
0.13948914408683777,
0.05787692964076996,
-0.30981361865997314,
0.2817891240119934,
0.16044901311397552,
0.08530433475971222,
0.3531850278377533,
0.0930284932255745,
-0.33405959606170654,
0.2792237102985382,
-0.11376260966062546,
0.0860147550702095,
0.11822352558374405,
0.08398210257291794,
0.06596466153860092,
0.15686844289302826,
-0.032806478440761566,
0.2110208421945572,
-0.24845370650291443,
-0.5467142462730408,
-0.1600910723209381,
0.39501795172691345,
-0.4679138660430908,
0.04364858567714691,
-0.4151339530944824,
0.19363433122634888,
0.09062690287828445,
-0.5232836604118347,
-0.3872966170310974,
-0.23939087986946106,
-0.18668988347053528,
0.09491454064846039,
0.059651006013154984,
0.3049784004688263,
0.05880441144108772,
0.0804910659790039,
-0.008745502680540085,
0.03220575675368309,
-0.3515115976333618,
-0.04334253445267677,
-0.03326299786567688,
-0.04369347542524338,
0.04865671694278717,
0.19038896262645721,
0.08892224729061127,
-0.19062362611293793,
0.11976246535778046,
-0.12212633341550827,
-0.36521536111831665,
0.20162716507911682,
-0.06623965501785278,
0.5084626078605652,
0.27515438199043274,
0.11815088987350464,
-0.09302924573421478,
-0.07341019064188004,
0.38964760303497314,
-0.30045750737190247,
-0.2248345911502838,
0.08802251517772675,
-0.13092343509197235,
-0.2694016098976135,
-0.08911140263080597,
-0.00426657497882843,
-0.21445924043655396,
-0.4587336778640747,
0.13514196872711182,
-0.010670626536011696,
0.09940619021654129,
0.3750077784061432,
-0.07453201711177826,
0.1678728461265564,
-0.1914006471633911,
0.0493713915348053,
-0.22239819169044495,
-0.21705259382724762,
0.43515998125076294,
-0.33544453978538513,
-0.39719659090042114,
0.048728492110967636,
-0.05833856388926506,
0.39736098051071167,
-0.2739701271057129,
-0.29475367069244385,
-0.5273256301879883,
-0.2934987246990204,
0.16693632304668427,
-0.2559616267681122,
0.3323798179626465,
0.18120035529136658,
-0.1559796929359436,
0.04087887704372406,
-0.12891885638237,
0.026637010276317596,
-0.01883084326982498,
0.10495059192180634,
0.05986125022172928,
0.027357207611203194,
0.23960387706756592,
-0.08635896444320679,
0.4280663728713989,
0.356418251991272,
0.08263872563838959,
0.38201653957366943,
-0.16818556189537048,
0.24907749891281128,
0.061728134751319885,
-0.5283438563346863,
-0.19039689004421234,
0.15046855807304382,
0.24767856299877167,
0.08546876162290573,
-0.017888154834508896,
0.3875359296798706,
-0.08106717467308044,
-0.5404578447341919,
-0.020955031737685204,
-0.198128804564476,
-0.25237253308296204,
0.03377363830804825,
0.13920247554779053,
0.04765591397881508,
0.1214517280459404,
-0.2532316744327545,
0.012376347556710243,
0.5469115972518921,
0.3912326693534851,
-0.09866025298833847,
0.05212727561593056,
-0.4103274345397949,
-0.31690648198127747,
-0.4362049698829651,
0.1530071496963501,
-0.021826080977916718,
0.4112224280834198,
0.004302959889173508,
0.17049822211265564,
0.044490206986665726,
-0.020218368619680405,
0.6590431332588196,
0.006885530427098274,
-0.04161939024925232,
-0.04965764284133911,
-0.16293522715568542,
-0.4208833873271942,
-0.1468029022216797,
-0.10074678063392639,
0.15653425455093384,
-0.20247207581996918,
0.4799674451351166,
-0.2246570587158203,
-0.3733614385128021,
0.05288897827267647,
-0.016057291999459267,
-0.07100063562393188,
-0.20028257369995117,
-0.2634059488773346,
-0.27270758152008057,
-0.4126257598400116,
0.037536825984716415,
0.1344374269247055,
0.3659626245498657,
0.2802300453186035,
0.031930502504110336,
-0.1339995265007019,
-0.2709673047065735,
0.2289857417345047,
0.1609092503786087,
0.17194917798042297,
-0.09705371409654617,
0.2040639966726303,
0.0732063427567482,
-0.19212520122528076,
0.15052153170108795,
0.5747910737991333,
0.098557248711586,
-0.6156943440437317,
-0.10949242860078812,
0.12838676571846008,
0.12656550109386444,
0.14077579975128174,
-0.11725129932165146,
0.40143224596977234,
-0.12421450018882751,
0.3387114405632019,
-0.31107375025749207,
-0.1516696661710739,
0.11037478595972061,
0.19927559792995453,
-0.08499351888895035,
-0.016912061721086502,
0.5138784050941467,
-0.017805639654397964,
0.12024056911468506,
0.30648112297058105,
0.7864497900009155,
-0.11438782513141632,
0.2970086932182312,
-0.06997018307447433,
0.8359940648078918,
0.28872358798980713,
-0.14546717703342438,
0.27202436327934265,
-0.2272927612066269,
0.675373375415802,
-0.25090232491493225,
0.01646575704216957,
-0.3365584909915924,
-0.3222179114818573,
-0.09466951340436935,
-0.07666245847940445,
0.3576359450817108,
-0.29085075855255127,
0.004522949457168579,
0.19146062433719635,
-0.03458661958575249,
0.34233036637306213,
-0.06142338365316391,
0.19654765725135803,
-0.2655774652957916,
-0.33134007453918457,
-0.45942747592926025,
0.17378929257392883,
-0.03926706314086914,
0.5210127234458923,
-0.12232517451047897,
-0.025710411369800568,
-0.29047513008117676,
-0.20357660949230194,
-0.28126171231269836,
-0.030726809054613113,
-0.07039620727300644,
0.25482434034347534,
0.6831661462783813,
0.05717092752456665,
0.432127445936203,
-0.11751893162727356,
0.3811940550804138,
0.09351983666419983,
-0.30831167101860046,
0.3043215572834015,
-0.38892292976379395,
-0.021771524101495743,
-0.13236264884471893,
0.08661125600337982,
0.4468573331832886,
-0.12741291522979736,
-0.40609651803970337,
0.08582708239555359,
-0.05520516261458397,
0.0024741850793361664,
0.043892890214920044,
0.03854010999202728,
0.000021342188119888306,
-0.19484898447990417,
-0.04260621592402458,
-0.06633670628070831,
0.3721412718296051,
-0.07354588806629181,
0.1350007951259613,
0.16632676124572754,
-0.2722536623477936,
0.11773824691772461,
0.27352723479270935,
-0.09235437214374542,
-0.21026813983917236,
0.4352603256702423,
-0.20888471603393555,
-0.12248270958662033,
0.29540640115737915,
0.06630408763885498,
-0.2138088047504425,
-0.13037702441215515,
-0.04140613600611687,
0.43359678983688354,
-0.6182935237884521,
0.03934766724705696,
-0.05370651185512543,
-0.07346536964178085,
-0.12284023314714432,
0.15673616528511047,
0.11836984753608704,
-0.06470426172018051,
0.020811568945646286,
-0.5301885008811951,
-0.28274354338645935,
0.1778837889432907,
-0.22791500389575958,
0.002162594348192215,
-0.08271273225545883,
0.16419386863708496,
-0.2116682380437851,
0.07463374733924866,
-0.3022445738315582,
0.058550089597702026,
-0.3032268285751343,
-0.10029517114162445,
-0.12156938016414642,
-0.19938266277313232,
0.2656193673610687,
-0.24552477896213531,
0.09169182926416397,
0.13541343808174133,
-0.30039843916893005,
-0.16494259238243103,
-0.523179829120636,
0.14283668994903564,
0.05887068808078766,
-0.11014100164175034,
0.08904988318681717,
0.07068739831447601,
-0.1519167274236679,
-0.1961800903081894,
0.1984768509864807,
0.3465045392513275,
-0.05591726303100586,
0.28320038318634033,
0.2809974253177643,
-0.19064772129058838,
-0.26539140939712524,
-0.014852631837129593,
0.3608090579509735,
0.20399080216884613,
0.12458078563213348,
0.024037208408117294,
-0.08597131073474884,
0.22696903347969055,
-0.1050507053732872,
0.16296455264091492,
-0.07576990127563477,
-0.2289281189441681,
0.4364532232284546,
-0.2008526772260666,
0.12070433795452118,
0.22812671959400177,
0.20554713904857635,
0.2059580236673355,
-0.17789186537265778,
0.1394536942243576,
0.35468563437461853,
0.174258291721344,
-0.2860749363899231,
-0.1463771015405655,
0.224038764834404,
-0.012593758292496204,
-0.016339417546987534,
0.22362396121025085,
0.33756646513938904,
-0.08006829023361206,
0.24985672533512115,
0.2867550849914551,
0.7876211404800415,
-0.20010530948638916,
0.1523933708667755,
0.09154801815748215,
-0.07526282221078873,
0.2464076578617096,
0.46557435393333435,
0.13764506578445435,
0.17625875771045685,
0.4676995873451233,
-0.30262431502342224,
0.08390708267688751,
-0.3090829849243164,
0.14566205441951752,
0.16651460528373718,
-0.31057173013687134,
-0.12948666512966156,
-0.06128808856010437,
0.12295224517583847,
-0.10328736156225204,
-0.19560971856117249,
0.2760734260082245,
-0.1845030039548874,
-0.13323505222797394,
-0.014218890108168125,
0.278441458940506,
-0.18341055512428284,
0.006006086245179176,
0.19192178547382355,
-0.008071288466453552,
-0.29935139417648315,
-0.13818122446537018,
0.16875045001506805,
-0.3265383243560791,
0.007488816976547241,
0.08007050305604935,
-0.21417246758937836,
-0.3406974673271179,
-0.12636873126029968,
0.362929105758667,
0.30792778730392456,
-0.17539061605930328,
0.04740557447075844,
0.09941402822732925,
-0.19838929176330566,
-0.19434575736522675,
0.25642669200897217,
0.5445795655250549,
0.07343654334545135,
0.09895838797092438,
0.05911318212747574,
-0.12892599403858185,
-0.01731022261083126,
0.21290695667266846,
0.1763591319322586,
-0.05473266541957855,
0.1077202558517456,
0.019245482981204987,
0.11623188853263855,
-0.18065404891967773,
-0.1887528896331787,
-0.16378404200077057,
0.2845238745212555,
-0.29846349358558655,
0.7105271220207214,
-0.3943585753440857,
0.05486325919628143,
-0.2736266851425171,
-0.07303642481565475,
-0.45439594984054565,
0.09308748692274094,
0.14975619316101074,
-0.013499119319021702,
-0.021940043196082115,
-0.33848366141319275,
0.06129945069551468,
-0.15180452167987823,
0.3470810055732727,
0.5234136581420898,
0.1271487921476364,
-0.15673203766345978,
-0.033938854932785034,
-0.4400534927845001,
0.16926944255828857,
0.014296486973762512,
0.13303494453430176,
0.21040815114974976,
-0.04496106132864952,
-0.2808345854282379,
-0.015778742730617523,
0.13080260157585144,
0.08670331537723541,
0.011520038358867168,
-0.06582316756248474,
-0.23442228138446808,
-0.013468362390995026,
-0.23288626968860626,
-0.07587262243032455,
0.130207821726799,
0.09258858114480972,
0.08252907544374466,
-0.13933458924293518,
-0.007743235677480698,
-0.1372806429862976,
0.026994340121746063,
-0.012857082299888134,
-0.43852683901786804,
0.3321287930011749,
0.09878354519605637,
0.347028523683548,
-0.06283623725175858,
0.04015010595321655,
-0.14340674877166748,
-0.23917245864868164,
-0.1722647249698639,
0.1447574496269226,
-0.10973653197288513,
0.4293063282966614,
-0.0021602045744657516,
-0.5734862685203552,
-0.34216564893722534,
0.25049230456352234,
0.10523740947246552,
-0.051999256014823914,
-0.20094835758209229,
0.5057623386383057,
-0.2845765948295593,
0.137089341878891,
0.19112922251224518,
0.1830107867717743,
0.017395835369825363,
0.32476532459259033,
-0.3073405623435974,
-0.4601258635520935,
0.4881388247013092,
-0.5949766039848328,
-0.2967836558818817,
-0.09012941271066666,
0.29576781392097473,
0.11173433065414429,
-0.48193129897117615,
-0.5531265139579773,
-0.010129004716873169,
0.1866961419582367,
-0.0811467319726944,
-0.22531971335411072,
0.2896738052368164,
-0.016495386138558388,
0.17151480913162231,
-0.03801501914858818,
0.36719492077827454,
0.09345017373561859,
-0.004920311272144318,
0.4512396454811096,
0.0015585198998451233
] |
https://github.com/huggingface/datasets/issues/4115 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints' | Maybe it would be nice to ignore private dirs like this one (ones starting with `.`) by default.
CC @mariosasko | **Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
| 20 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints'
**Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
Maybe it would be nice to ignore private dirs like this one (ones starting with `.`) by default.
CC @mariosasko | [
0.015030387789011002,
0.3754785656929016,
-0.04063788428902626,
0.20242151618003845,
0.0077962446957826614,
-0.006433203816413879,
0.3350972533226013,
0.2868119776248932,
0.12312950193881989,
0.32026010751724243,
-0.0017320998013019562,
0.29503539204597473,
-0.24005816876888275,
0.28370243310928345,
-0.20769596099853516,
0.13479474186897278,
-0.17333722114562988,
0.29119300842285156,
0.12957599759101868,
0.02726808190345764,
-0.42184874415397644,
0.07333710789680481,
-0.11858933418989182,
0.04326708987355232,
-0.30626243352890015,
-0.02813996933400631,
0.0034063849598169327,
0.20618364214897156,
-0.29495492577552795,
-0.32659921050071716,
0.08566565066576004,
0.3095601499080658,
0.1477893590927124,
0.5073700547218323,
-0.00011439375521149486,
-0.03881053254008293,
0.28350964188575745,
-0.2148323804140091,
-0.32314011454582214,
-0.13475994765758514,
-0.252451628446579,
0.24795326590538025,
0.01615111716091633,
-0.2638351321220398,
-0.03800446540117264,
-0.04994061216711998,
0.05020235478878021,
-0.0665004551410675,
-0.1033196747303009,
0.19049091637134552,
0.1550329029560089,
0.18814916908740997,
-0.38428181409835815,
0.3249332010746002,
0.32583922147750854,
0.5978384613990784,
-0.0329245962202549,
0.3157694339752197,
0.06955716758966446,
-0.07382100820541382,
0.09151904284954071,
0.44266393780708313,
-0.24602530896663666,
0.15219305455684662,
0.021464087069034576,
0.16345509886741638,
0.3794623613357544,
-0.6232501268386841,
-0.2294212281703949,
0.09513251483440399,
0.23126548528671265,
-0.2259002923965454,
-0.23930951952934265,
-0.3738386034965515,
0.15357650816440582,
-0.28676384687423706,
0.08904603868722916,
-0.048815056681632996,
-0.3923993408679962,
0.1191103458404541,
-0.2512732148170471,
-0.1871977597475052,
-0.42585134506225586,
0.07746022194623947,
0.07881277799606323,
-0.1610684096813202,
0.21872904896736145,
-0.050325654447078705,
0.42636430263519287,
0.06754010170698166,
0.005109394900500774,
-0.4358828067779541,
0.04842241853475571,
0.24595987796783447,
0.1819649040699005,
-0.34603622555732727,
-0.15262258052825928,
0.21013039350509644,
0.06894160062074661,
0.2403351217508316,
0.10666729509830475,
-0.22556763887405396,
-0.23902229964733124,
0.3466635048389435,
-0.033340584486722946,
0.14733736217021942,
-0.12673339247703552,
0.4857722818851471,
0.4051082134246826,
0.04606284573674202,
-0.09632059931755066,
0.15360626578330994,
-0.0028608727734535933,
-0.062116075307130814,
-0.029593423008918762,
-0.03740357980132103,
0.3135637044906616,
-0.034959930926561356,
-0.3265172243118286,
-0.3570075035095215,
0.03350434452295303,
-0.1992441862821579,
0.2637947201728821,
-0.17174717783927917,
0.2530730962753296,
-0.1577429473400116,
-0.12113827466964722,
0.0508103147149086,
-0.15395216643810272,
0.013075255788862705,
-0.08929683268070221,
0.08134366571903229,
0.03720025345683098,
0.23577547073364258,
0.17349892854690552,
-0.34717807173728943,
0.2273157238960266,
-0.009192496538162231,
0.10287816822528839,
0.24139907956123352,
0.27025455236434937,
-0.2618708908557892,
0.18274396657943726,
0.3540269732475281,
-0.06310570240020752,
-0.19253766536712646,
0.055982571095228195,
-0.4288710355758667,
-0.06180304288864136,
0.3262481689453125,
-0.2987169027328491,
-0.28664442896842957,
-0.19142280519008636,
0.05316264182329178,
-0.34379100799560547,
-0.04306366294622421,
-0.8288964629173279,
-0.1084384024143219,
-0.26720115542411804,
-0.1561397910118103,
0.17994993925094604,
0.03757379204034805,
0.2127746045589447,
-0.09559626132249832,
0.029279062524437904,
0.6162555813789368,
0.09024617075920105,
-0.18435658514499664,
-0.257919579744339,
-0.29005229473114014,
0.3018779754638672,
0.3117671608924866,
-0.08172738552093506,
0.3967868983745575,
-0.33970120549201965,
-0.12346001714468002,
0.18630488216876984,
-0.31804215908050537,
-0.28788280487060547,
-0.11642264574766159,
-0.07148446887731552,
0.2447507232427597,
0.12218799442052841,
0.4438622295856476,
0.22762130200862885,
-0.12115168571472168,
-0.27716726064682007,
0.35932910442352295,
-0.1705021858215332,
0.07604007422924042,
-0.08543316274881363,
-0.23249514400959015,
-0.004943381994962692,
0.20536786317825317,
-0.1105770468711853,
0.07040060311555862,
-0.0987638309597969,
-0.3381730020046234,
0.12183059751987457,
-0.21490806341171265,
-0.08063703775405884,
-0.2366228848695755,
0.48437339067459106,
0.0653138980269432,
-0.05824875086545944,
0.01913873851299286,
-0.27678316831588745,
0.11757484823465347,
0.1255427598953247,
-0.02948712557554245,
-0.35307812690734863,
-0.10826526582241058,
0.12037282437086105,
-0.31015172600746155,
-0.4512404501438141,
-0.19073611497879028,
0.01936105266213417,
0.2068687528371811,
-0.20612505078315735,
0.013863690197467804,
0.002996336668729782,
0.3234136998653412,
0.25607794523239136,
0.45732182264328003,
0.030450835824012756,
0.39731791615486145,
0.04808010160923004,
-0.21234218776226044,
-0.06846963614225388,
-0.07927022129297256,
0.035019975155591965,
-0.23933400213718414,
0.010514574125409126,
0.17485257983207703,
0.466147780418396,
0.2223770171403885,
0.6103495359420776,
0.18557313084602356,
0.24573594331741333,
-0.11006161570549011,
0.028415530920028687,
0.10708186030387878,
0.0868072509765625,
0.14911404252052307,
-0.048824749886989594,
0.2555140554904938,
-0.3065265119075775,
0.07563811540603638,
-0.16302058100700378,
-0.2387988269329071,
0.2571764588356018,
-0.2296716719865799,
0.0043609868735075,
-0.28943777084350586,
0.13899780809879303,
0.585159420967102,
0.0031083673238754272,
0.29715999960899353,
-0.14289447665214539,
-0.22803956270217896,
-0.17506437003612518,
0.012516181915998459,
-0.11937475949525833,
0.4496096968650818,
-0.06348175555467606,
0.1907348930835724,
-0.0682232603430748,
0.2501915395259857,
0.3229549527168274,
0.2484743744134903,
-0.24796676635742188,
-0.062314316630363464,
-0.0649469718337059,
-0.0016277562826871872,
0.14031337201595306,
0.2897874414920807,
0.2895108759403229,
0.160645991563797,
0.23939557373523712,
0.04477337375283241,
-0.27989017963409424,
-0.3679610788822174,
-0.16190394759178162,
0.1334085315465927,
0.044956061989068985,
0.18789611756801605,
-0.12069985270500183,
-0.6261322498321533,
0.11982209980487823,
-0.25832995772361755,
-0.15822260081768036,
0.026747604832053185,
0.25139880180358887,
0.48223868012428284,
-0.19564282894134521,
0.12098801881074905,
-0.0729086697101593,
0.6944715976715088,
-0.05082361400127411,
-0.5325595140457153,
-0.04205876588821411,
0.1439000964164734,
-0.09323412925004959,
0.10685843229293823,
0.22403965890407562,
-0.21369585394859314,
0.4701779782772064,
-0.13266491889953613,
0.21015425026416779,
-0.45390191674232483,
-0.43919357657432556,
0.19805492460727692,
0.07899793982505798,
0.44790980219841003,
-0.047002196311950684,
0.2620968818664551,
0.3730706572532654,
-0.3187185525894165,
-0.0942813977599144,
0.1444190889596939,
-0.09772545844316483,
-0.038516998291015625,
-0.0441802516579628,
0.33587828278541565,
-0.1664060801267624,
-0.01597907394170761,
-0.3030549883842468,
-0.1696382313966751,
0.13073575496673584,
0.32345327734947205,
0.2944880723953247,
0.05108080059289932,
-0.04894670844078064,
-0.11015371978282928,
-0.019390074536204338,
-0.27573442459106445,
0.11967197060585022,
-0.6077095866203308,
0.27056261897087097,
-0.1162559911608696,
0.3188639283180237,
-0.1089310497045517,
-0.2844890356063843,
0.06172727048397064,
-0.1461772471666336,
-0.5445141792297363,
-0.3898639678955078,
-0.061036691069602966,
0.4104943573474884,
0.028391389176249504,
-0.24044163525104523,
0.11753194779157639,
0.2681672275066376,
-0.0990566685795784,
-0.08381325751543045,
0.08044165372848511,
0.09114246070384979,
0.13492856919765472,
0.40992555022239685,
0.1319328248500824,
-0.06278708577156067,
-0.08238436281681061,
0.24500282108783722,
0.2922566533088684,
-0.031207609921693802,
0.38872936367988586,
-0.09011444449424744,
0.46163374185562134,
-0.076665498316288,
-0.16766482591629028,
-0.14728282392024994,
0.202141672372818,
-0.29143911600112915,
0.19498860836029053,
0.10478698462247849,
-0.09238841384649277,
0.00908992812037468,
-0.3192662298679352,
-0.1296025514602661,
-0.19594831764698029,
0.19591638445854187,
0.14350993931293488,
0.07017330080270767,
-0.26032379269599915,
-0.4684236943721771,
-0.3341582417488098,
-0.35015103220939636,
-0.1604783535003662,
0.46815335750579834,
0.3312719464302063,
-0.08944808691740036,
0.10832791030406952,
-0.27125146985054016,
-0.03802412003278732,
0.003491908311843872,
0.26868152618408203,
-0.2754143178462982,
0.003844071179628372,
0.17953118681907654,
0.044794127345085144,
0.3140125870704651,
0.4942012429237366,
-0.30786946415901184,
-0.2690635323524475,
-0.11543664336204529,
0.10058765113353729,
-0.13609959185123444,
-0.1441926509141922,
-0.12002193927764893,
0.07165808230638504,
0.362707257270813,
0.7882388234138489,
0.05794570595026016,
-0.006582782603800297,
0.2927304804325104,
0.4605455696582794,
-0.3275747299194336,
-0.188541978597641,
-0.28552186489105225,
-0.17949935793876648,
-0.3961474597454071,
0.2819981276988983,
0.06424041837453842,
-0.2010108381509781,
0.07099667191505432,
-0.3714213967323303,
0.1640760749578476,
-0.2802961468696594,
0.04234033450484276,
0.4316144287586212,
0.2499573528766632,
0.07100798934698105,
0.1783863753080368,
0.4229484498500824,
-0.33698195219039917,
0.7029459476470947,
0.5998422503471375,
-0.2867118716239929,
-0.040492430329322815,
-0.14283430576324463,
-0.5204491019248962,
0.11462676525115967,
0.1256970465183258,
0.1280616819858551,
-0.04361524432897568,
-0.5196906328201294,
0.14780233800411224,
-0.5069252252578735,
0.29858872294425964,
0.3058728277683258,
-0.2500271201133728,
-0.12370893359184265,
-0.05317240208387375,
0.20396673679351807,
0.08418233692646027,
-0.3153383731842041,
0.5859707593917847,
0.04986670985817909,
-0.2363545298576355,
0.058956705033779144,
0.11680693179368973,
0.941699743270874,
0.2567698061466217,
0.1018313467502594,
-0.03354651480913162,
-0.06995213031768799,
0.013267690315842628,
0.40862196683883667,
0.14287219941616058,
-0.009106617420911789,
-0.39909180998802185,
-0.09068138152360916,
-0.282175213098526,
0.14558161795139313,
0.0011115558445453644,
-0.16275827586650848,
0.21600250899791718,
-0.21985027194023132,
-0.20191740989685059,
-0.04819667339324951,
0.17549429833889008,
0.044506751000881195,
0.012060927227139473,
0.261711061000824,
0.07771359384059906,
-0.04079525172710419,
0.2695727050304413,
0.14382469654083252,
-0.2121863067150116,
0.06266069412231445,
-0.31102538108825684,
-0.20403900742530823,
-0.17027124762535095,
-0.23403336107730865,
0.041237447410821915,
-0.07703763246536255,
0.02827022224664688,
-0.4023818373680115,
0.19618423283100128,
0.03346358612179756,
-0.0479077585041523,
-0.02876264788210392,
0.018453417345881462,
0.1454344391822815,
0.4600282609462738,
-0.48669567704200745,
-0.24306824803352356,
0.22722114622592926,
-0.11385336518287659,
-0.19289112091064453,
-0.208991140127182,
0.16275981068611145,
-0.4488048553466797,
-0.1468263417482376,
-0.14825981855392456,
0.28564101457595825,
0.12995438277721405,
0.31794923543930054,
-0.23918795585632324,
-0.11798186600208282,
-0.22185522317886353,
0.11724625527858734,
0.12023243308067322,
0.046998586505651474,
0.4771164655685425,
-0.1698354184627533,
-0.2792365550994873,
-0.1624561846256256,
-0.10896604508161545,
0.18928420543670654,
0.07583073526620865,
0.30761098861694336,
-0.32536885142326355,
-0.13235953450202942,
-0.19470518827438354,
0.5324903130531311,
-0.09510582685470581,
-0.10624288022518158,
0.3965089023113251,
-0.060735177248716354,
0.05693437159061432,
0.027124842628836632,
0.011495709419250488,
0.22376514971256256,
-0.044387899339199066,
-0.32155370712280273,
-0.286807656288147,
-0.17355699837207794,
0.16612891852855682,
-0.2720164358615875,
0.43900734186172485,
-0.181535542011261,
0.09028324484825134,
0.0919496938586235,
-0.09613284468650818,
-0.2721049189567566,
0.17131204903125763,
-0.32328155636787415,
0.17800675332546234,
0.39887961745262146,
0.46516111493110657,
0.3474750816822052,
-0.13914677500724792,
0.007925266399979591,
-0.04125063121318817,
0.1142989844083786,
-0.14008013904094696,
-0.32314375042915344,
0.11484088748693466,
-0.08482145518064499,
-0.025985999032855034,
0.2437019795179367,
0.012808308005332947,
0.21916216611862183,
0.002165366429835558,
0.1676165759563446,
-0.14761626720428467,
0.10879705846309662,
0.1550493985414505,
0.15440908074378967,
-0.32498088479042053,
0.16520476341247559,
-0.008733082562685013,
-0.4143918752670288,
0.3879703879356384,
0.3856534957885742,
0.1720997542142868,
-0.20086924731731415,
-0.22960256040096283,
-0.15338017046451569,
-0.17741230130195618,
-0.03375507891178131,
0.21018436551094055,
-0.19042515754699707,
0.23108094930648804,
0.006681278347969055,
0.24901323020458221,
-0.10514359921216965,
-0.02791222184896469,
-0.3669446110725403,
-0.12848414480686188,
0.2636567950248718,
0.1955704241991043,
-0.2813537120819092,
-0.4901653230190277,
-0.2432166337966919,
-0.13221687078475952,
0.044741224497556686,
0.4387207329273224,
-0.18300656974315643,
0.25245827436447144,
0.07487944513559341,
-0.06773096323013306,
0.4125533401966095,
-0.09858454763889313,
0.22414448857307434,
0.31901758909225464,
-0.22273127734661102,
-0.24002523720264435,
0.15535691380500793,
0.025319939479231834,
0.08732684701681137,
0.3657833933830261,
-0.25070175528526306,
0.2423759400844574,
-0.029610514640808105,
-0.22645223140716553,
0.2981838285923004,
0.02963699772953987,
-0.08412335813045502,
0.004965588450431824,
-0.005543462932109833,
-0.0292024165391922,
0.3424808084964752,
-0.062320031225681305,
0.021698694676160812,
-0.032626427710056305,
-0.19229501485824585,
0.2955538034439087,
0.15699931979179382,
0.20216859877109528,
-0.32556286454200745,
-0.24748051166534424,
-0.13917414844036102,
0.035528089851140976,
0.03055928461253643,
-0.12763890624046326,
0.053041499108076096,
0.353529691696167,
-0.3018266558647156,
-0.07248285412788391,
0.06632936000823975,
0.17465275526046753,
0.027039095759391785,
-0.07397359609603882,
0.0825611874461174,
0.31536298990249634,
-0.01796507090330124,
0.18719078600406647,
0.4654412567615509,
0.28708359599113464,
0.1308264285326004,
0.08780139684677124,
-0.03218720853328705,
-0.384943425655365,
-0.1824362725019455,
-0.14488577842712402,
-0.021733500063419342,
-0.22533246874809265,
-0.10620878636837006,
-0.03522992879152298,
0.18215131759643555,
-0.13096189498901367,
0.20522086322307587,
0.17572656273841858,
-0.1316201388835907,
-0.06559707224369049,
0.6485079526901245,
0.4313839077949524,
0.0875064954161644,
-0.028311822563409805,
-0.15698546171188354,
-0.2384064793586731,
0.2329726368188858,
0.14011932909488678,
-0.21942730247974396,
-0.05146387964487076,
0.3361221253871918,
0.027291879057884216,
-0.06285719573497772,
0.4173508882522583,
0.037630803883075714,
-0.04626286029815674,
-0.18051773309707642,
-0.06449286639690399,
-0.384342223405838,
0.0416194424033165,
-0.27361294627189636,
-0.41235312819480896,
0.1602713018655777,
-0.10979066789150238,
-0.29604068398475647,
0.13974246382713318,
0.4038933515548706,
-0.05281805619597435,
-0.007818796671926975,
-0.1575644314289093,
-0.5952461361885071,
-0.10332472622394562,
0.38408076763153076,
0.11423425376415253,
0.004755109548568726,
-0.3899163603782654,
0.28488659858703613,
-0.22959230840206146,
0.12390943616628647,
0.11945220828056335,
-0.22057537734508514,
-0.07824558764696121,
0.4897013306617737,
0.32524922490119934,
0.11894426494836807,
0.12817169725894928,
-0.1803247332572937,
-0.09416978806257248,
0.052621714770793915,
-0.06962265074253082,
-0.4499354064464569,
-0.2992699146270752,
0.4060358703136444,
0.4637562036514282,
-0.47070348262786865,
-0.2759867012500763,
-0.44906386733055115,
0.047462183982133865,
0.12994596362113953,
0.11075379699468613,
-0.25532686710357666,
0.07951410114765167,
0.1131206676363945,
0.029399821534752846,
-0.20630516111850739,
0.024286778643727303,
-0.04265248775482178,
0.012360917404294014,
-0.08222302794456482,
-0.0863836407661438,
0.6695267558097839,
-0.261927992105484,
-0.22702045738697052,
-0.08521567285060883,
0.2739512324333191,
0.06267590820789337,
0.19878704845905304,
0.028848111629486084,
0.11888223141431808,
0.3977421820163727,
0.1681247353553772,
-0.2378472089767456,
0.47139638662338257,
0.2755275368690491,
0.1951775997877121,
0.07913419604301453,
-0.16914193332195282,
0.09189873188734055,
-0.2316204309463501,
0.17812615633010864,
-0.16246461868286133
] |
https://github.com/huggingface/datasets/issues/4115 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints' | Maybe we can add a `ignore_hidden_files` flag to the builder configs of our packaged loaders (to be consistent across all of them), wdyt @lhoestq @albertvillanova? | **Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
| 25 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints'
**Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
Maybe we can add a `ignore_hidden_files` flag to the builder configs of our packaged loaders (to be consistent across all of them), wdyt @lhoestq @albertvillanova? | [
-0.042549051344394684,
0.39985567331314087,
-0.03861129656434059,
0.2750568389892578,
-0.008396800607442856,
-0.036480311304330826,
0.3597341775894165,
0.2762027680873871,
0.2106354683637619,
0.34387344121932983,
0.021027125418186188,
0.322628378868103,
-0.27700644731521606,
0.3039179742336273,
-0.19923366606235504,
0.17472565174102783,
-0.16859403252601624,
0.35138291120529175,
0.13041895627975464,
0.10867840051651001,
-0.4250641465187073,
0.041247546672821045,
-0.1452060043811798,
0.011758096516132355,
-0.269652396440506,
0.010727843269705772,
0.032611437141895294,
0.10956189036369324,
-0.33609166741371155,
-0.3571820557117462,
0.09833713620901108,
0.2860342264175415,
0.1404862105846405,
0.516608476638794,
-0.00011490782344480976,
0.031140297651290894,
0.262336790561676,
-0.21283794939517975,
-0.4132128655910492,
-0.10004377365112305,
-0.22377058863639832,
0.21147873997688293,
0.041765615344047546,
-0.22742876410484314,
-0.030164096504449844,
-0.05671241506934166,
0.05755554139614105,
-0.07222948223352432,
-0.13268953561782837,
0.14641493558883667,
0.15052464604377747,
0.25801584124565125,
-0.3219284415245056,
0.33858147263526917,
0.35633742809295654,
0.5061905384063721,
-0.09109102934598923,
0.3091137707233429,
0.09966513514518738,
-0.050531238317489624,
-0.03783882409334183,
0.4562702178955078,
-0.22337861359119415,
0.14389397203922272,
0.03977499529719353,
0.17400959134101868,
0.3941362202167511,
-0.620879054069519,
-0.2984359562397003,
0.08034852147102356,
0.1937297284603119,
-0.22904756665229797,
-0.26783084869384766,
-0.5017668604850769,
0.14974279701709747,
-0.2411922663450241,
0.15142297744750977,
-0.10220230370759964,
-0.3945049047470093,
0.10223191976547241,
-0.23883303999900818,
-0.25917288661003113,
-0.42688047885894775,
0.06733852624893188,
0.07066911458969116,
-0.13993015885353088,
0.2065478414297104,
-0.048156969249248505,
0.45823052525520325,
0.09444081783294678,
0.0678083673119545,
-0.42375436425209045,
-0.03420298919081688,
0.26771849393844604,
0.11341731250286102,
-0.3824840188026428,
-0.16835713386535645,
0.21932494640350342,
0.044721439480781555,
0.20815962553024292,
0.1529638022184372,
-0.23284971714019775,
-0.24571700394153595,
0.372963011264801,
-0.02232227846980095,
0.18877331912517548,
-0.08847811073064804,
0.4508260190486908,
0.39279305934906006,
0.16518642008304596,
-0.06733791530132294,
0.15791821479797363,
-0.04859604313969612,
-0.058993011713027954,
-0.0241612046957016,
-0.04860560595989227,
0.2930924892425537,
-0.002699580043554306,
-0.3667267858982086,
-0.360872745513916,
0.09982564300298691,
-0.22907064855098724,
0.2597440779209137,
-0.20994195342063904,
0.21450898051261902,
-0.10128063708543777,
-0.03862205147743225,
0.04334380105137825,
-0.17958076298236847,
-0.08040910959243774,
-0.09601201117038727,
0.0729568600654602,
0.02529868856072426,
0.258068323135376,
0.22046534717082977,
-0.38683021068573,
0.23713549971580505,
0.014734926633536816,
0.10567650198936462,
0.24780496954917908,
0.26023030281066895,
-0.2302609235048294,
0.13123109936714172,
0.344268798828125,
-0.08524760603904724,
-0.2285616248846054,
0.07066024094820023,
-0.4325891137123108,
-0.052501752972602844,
0.3417338728904724,
-0.32163235545158386,
-0.28680452704429626,
-0.15615412592887878,
0.052683647722005844,
-0.3828330636024475,
-0.008626468479633331,
-0.8805436491966248,
-0.06616561114788055,
-0.2514086961746216,
-0.15979106724262238,
0.15764790773391724,
0.001144755631685257,
0.19242554903030396,
-0.10318545997142792,
0.013192610815167427,
0.5943862795829773,
0.048273246735334396,
-0.24213266372680664,
-0.21514683961868286,
-0.3194218575954437,
0.24199017882347107,
0.19537343084812164,
-0.14477504789829254,
0.44198039174079895,
-0.36647629737854004,
-0.1883910894393921,
0.20514316856861115,
-0.33083587884902954,
-0.3209775388240814,
-0.04568522050976753,
-0.08554267883300781,
0.3263058066368103,
0.1769012212753296,
0.4218520224094391,
0.1965954303741455,
-0.135576069355011,
-0.2648051679134369,
0.35851210355758667,
-0.16532298922538757,
0.08900593966245651,
-0.06685502827167511,
-0.3218453824520111,
0.08067456632852554,
0.246184304356575,
-0.09676460921764374,
0.07092534005641937,
-0.08683695644140244,
-0.25425320863723755,
0.14993701875209808,
-0.19696322083473206,
-0.041389405727386475,
-0.254088819026947,
0.3632771372795105,
0.03878298029303551,
-0.05177103728055954,
0.004552092403173447,
-0.3330410122871399,
0.13557392358779907,
0.04971078038215637,
-0.032039038836956024,
-0.3693509101867676,
-0.09067460894584656,
0.1544068455696106,
-0.24557194113731384,
-0.4764067232608795,
-0.2232958972454071,
0.01215268298983574,
0.19674311578273773,
-0.25830650329589844,
-0.02800489030778408,
-0.02230806276202202,
0.34929633140563965,
0.24734465777873993,
0.4805935025215149,
-0.05404603108763695,
0.3672315180301666,
0.07659614831209183,
-0.20965629816055298,
-0.03415924683213234,
-0.08049014955759048,
0.0009478069841861725,
-0.2190275490283966,
-0.0018130633980035782,
0.15298227965831757,
0.43530187010765076,
0.18521659076213837,
0.5922890305519104,
0.16647256910800934,
0.27494320273399353,
-0.050422146916389465,
0.050956957042217255,
0.06782747805118561,
0.05209049582481384,
0.1259232759475708,
-0.04309075325727463,
0.22482484579086304,
-0.32984110713005066,
0.11254704743623734,
-0.15740622580051422,
-0.3019702732563019,
0.20288041234016418,
-0.2070206254720688,
0.016507452353835106,
-0.2947751581668854,
0.12842725217342377,
0.5613148212432861,
0.03181232139468193,
0.3580589294433594,
-0.06808771938085556,
-0.19543948769569397,
-0.11831653118133545,
0.08686411380767822,
-0.20173412561416626,
0.43342193961143494,
-0.07427569478750229,
0.20008555054664612,
-0.093186154961586,
0.24744559824466705,
0.32825082540512085,
0.2369105964899063,
-0.2724517583847046,
-0.10199514776468277,
-0.07896658778190613,
0.019355133175849915,
0.14905670285224915,
0.3432508707046509,
0.3243103325366974,
0.20854982733726501,
0.20287007093429565,
0.008444471284747124,
-0.23400536179542542,
-0.3258301019668579,
-0.14217503368854523,
0.08987311273813248,
0.029231030493974686,
0.14685176312923431,
-0.1342601478099823,
-0.6008509397506714,
0.08164268732070923,
-0.21042262017726898,
-0.21161945164203644,
0.036429472267627716,
0.2972909212112427,
0.49679577350616455,
-0.20624464750289917,
0.08987382799386978,
-0.1290426105260849,
0.7156009674072266,
-0.05100848898291588,
-0.49837803840637207,
0.008171506226062775,
0.1906120330095291,
-0.07389884442090988,
0.09610797464847565,
0.23730981349945068,
-0.28414398431777954,
0.40412458777427673,
-0.14152982831001282,
0.1882496029138565,
-0.3975801169872284,
-0.4331732988357544,
0.24579955637454987,
0.05343710631132126,
0.4541220963001251,
-0.05451638996601105,
0.2466205507516861,
0.4017255902290344,
-0.38068339228630066,
-0.08785851299762726,
0.14292600750923157,
-0.10157426446676254,
-0.04638323187828064,
-0.004843712784349918,
0.36212578415870667,
-0.18223623931407928,
-0.026511482894420624,
-0.26664185523986816,
-0.2054772824048996,
0.061020273715257645,
0.34619948267936707,
0.29104846715927124,
0.04851190000772476,
-0.03572065383195877,
-0.1125195324420929,
0.03423919156193733,
-0.26485076546669006,
0.12941747903823853,
-0.6777079701423645,
0.27735868096351624,
-0.11883941292762756,
0.3565205931663513,
-0.11885161697864532,
-0.29166150093078613,
0.030820704996585846,
-0.10270842909812927,
-0.5791081190109253,
-0.31220316886901855,
-0.009814700111746788,
0.3502501845359802,
0.040143467485904694,
-0.24682597815990448,
0.13578709959983826,
0.30644217133522034,
-0.056328192353248596,
-0.12692055106163025,
0.0746835321187973,
0.12497616559267044,
0.07955501973628998,
0.5058600306510925,
0.14239265024662018,
-0.07822607457637787,
-0.0986267626285553,
0.23829618096351624,
0.2398412525653839,
-0.016536090523004532,
0.3752327561378479,
-0.07027455419301987,
0.500734269618988,
-0.06267713755369186,
-0.1067686378955841,
-0.16497115790843964,
0.14859271049499512,
-0.2506762444972992,
0.1990230232477188,
0.0993218868970871,
-0.08701399713754654,
-0.008892051875591278,
-0.3217908442020416,
-0.0982871875166893,
-0.20886316895484924,
0.2515871524810791,
0.12803366780281067,
0.07888001203536987,
-0.2448541224002838,
-0.45407354831695557,
-0.34201347827911377,
-0.340104877948761,
-0.1192924827337265,
0.43991750478744507,
0.40269050002098083,
-0.06521617621183395,
0.18881887197494507,
-0.2073051631450653,
-0.04481828212738037,
-0.07845824956893921,
0.23527061939239502,
-0.31814536452293396,
0.05032739415764809,
0.10589957982301712,
0.042874373495578766,
0.31904903054237366,
0.49968868494033813,
-0.25049057602882385,
-0.23052512109279633,
-0.07714870572090149,
0.06417474150657654,
-0.11976049840450287,
-0.1818481683731079,
-0.12314704060554504,
0.06976159662008286,
0.32547542452812195,
0.7596982717514038,
0.004082970321178436,
-0.005026721861213446,
0.2911694347858429,
0.469726026058197,
-0.36176997423171997,
-0.2563484311103821,
-0.31285545229911804,
-0.01958405040204525,
-0.40925341844558716,
0.2227521538734436,
0.05125907063484192,
-0.1976114958524704,
0.02119436487555504,
-0.35334479808807373,
0.13061416149139404,
-0.2538139522075653,
0.024816907942295074,
0.4497450590133667,
0.26316937804222107,
0.019129691645503044,
0.22058770060539246,
0.5013105869293213,
-0.25860872864723206,
0.6718889474868774,
0.6596250534057617,
-0.25669974088668823,
-0.05985446274280548,
-0.09595666080713272,
-0.5459739565849304,
0.11494792997837067,
0.1086648553609848,
0.109235480427742,
-0.01891559362411499,
-0.5091267824172974,
0.1567697823047638,
-0.520479142665863,
0.2589729130268097,
0.3054806590080261,
-0.28752022981643677,
-0.10364793986082077,
-0.06727275997400284,
0.23702967166900635,
0.05723291262984276,
-0.32074037194252014,
0.5641205906867981,
0.014942318201065063,
-0.26004061102867126,
0.10527259856462479,
0.10431324690580368,
0.9328643083572388,
0.27874839305877686,
0.1138530969619751,
-0.04587709903717041,
-0.002414461225271225,
0.012491283938288689,
0.29282885789871216,
0.14136163890361786,
-0.043524108827114105,
-0.4022383689880371,
-0.0680369883775711,
-0.2935328185558319,
0.1402265727519989,
-0.01201232522726059,
-0.13666248321533203,
0.23023195564746857,
-0.20550382137298584,
-0.21351802349090576,
-0.09055223315954208,
0.16682398319244385,
0.031820815056562424,
-0.03746305778622627,
0.2621181011199951,
0.05716470628976822,
0.011330395936965942,
0.3009849786758423,
0.1380687952041626,
-0.2167115956544876,
0.10323226451873779,
-0.3097419738769531,
-0.15631170570850372,
-0.15601661801338196,
-0.1769290566444397,
0.04256013408303261,
0.003984279930591583,
0.07105246186256409,
-0.35030174255371094,
0.2012321799993515,
-0.012992434203624725,
-0.0678362250328064,
-0.020398994907736778,
-0.009583115577697754,
0.13198640942573547,
0.43900999426841736,
-0.47806015610694885,
-0.23832525312900543,
0.27001503109931946,
-0.09504978358745575,
-0.20062042772769928,
-0.16634610295295715,
0.12319208681583405,
-0.4933738112449646,
-0.08841730654239655,
-0.18729551136493683,
0.2946430444717407,
0.08274727314710617,
0.3318839371204376,
-0.29852184653282166,
-0.05683751404285431,
-0.2096690684556961,
0.10935187339782715,
0.1426149308681488,
0.019978292286396027,
0.4200171232223511,
-0.1774589717388153,
-0.2867777943611145,
-0.16943635046482086,
-0.0897509828209877,
0.2640831470489502,
0.019691843539476395,
0.32346436381340027,
-0.34723395109176636,
-0.16250503063201904,
-0.1625000387430191,
0.47605079412460327,
-0.032029565423727036,
-0.1045885682106018,
0.4048090875148773,
0.004699395038187504,
0.028782933950424194,
0.019061435014009476,
0.03802061825990677,
0.2384544014930725,
-0.032529570162296295,
-0.3511962294578552,
-0.33827874064445496,
-0.21274970471858978,
0.17350749671459198,
-0.31786274909973145,
0.3968654274940491,
-0.15599973499774933,
0.047515805810689926,
0.1127685159444809,
-0.004098011180758476,
-0.2545030117034912,
0.10031572729349136,
-0.32997220754623413,
0.19317354261875153,
0.342823326587677,
0.5207467079162598,
0.3372686803340912,
-0.11886312067508698,
-0.014995118603110313,
-0.031088359653949738,
0.08438104391098022,
-0.12237738817930222,
-0.35173705220222473,
0.11646772921085358,
-0.0759832039475441,
0.02906724624335766,
0.20435047149658203,
-0.019559789448976517,
0.2668367922306061,
-0.0030030105262994766,
0.19373413920402527,
-0.2054031789302826,
0.14119848608970642,
0.12146222591400146,
0.2197818160057068,
-0.2864375114440918,
0.14486336708068848,
0.0415000319480896,
-0.3907524347305298,
0.4433104395866394,
0.4087955355644226,
0.1598656177520752,
-0.24104805290699005,
-0.18128840625286102,
-0.06178690493106842,
-0.1506498157978058,
-0.04044361412525177,
0.273355096578598,
-0.1371103823184967,
0.20318081974983215,
0.012319263070821762,
0.22166532278060913,
-0.1477150321006775,
-0.0050023868680000305,
-0.38290220499038696,
-0.1726464480161667,
0.20911583304405212,
0.17985276877880096,
-0.2969605326652527,
-0.4517327547073364,
-0.20082499086856842,
-0.1405034363269806,
0.03454690799117088,
0.3956838846206665,
-0.1032102033495903,
0.22595399618148804,
0.18273711204528809,
-0.049183957278728485,
0.4090697765350342,
-0.09072231501340866,
0.1965131312608719,
0.2936961054801941,
-0.25883567333221436,
-0.22959797084331512,
0.21153990924358368,
0.010881347581744194,
0.08975470066070557,
0.3381313681602478,
-0.2682390809059143,
0.23018868267536163,
-0.07195817679166794,
-0.22159931063652039,
0.26401326060295105,
0.034422729164361954,
-0.07369598746299744,
0.06299328804016113,
0.03222528100013733,
-0.04227524250745773,
0.3839588761329651,
-0.06225212663412094,
0.044219970703125,
0.023770883679389954,
-0.18418830633163452,
0.26436907052993774,
0.17311054468154907,
0.21325255930423737,
-0.3297785520553589,
-0.27223631739616394,
-0.21172763407230377,
0.06380997598171234,
0.039806123822927475,
-0.15759332478046417,
0.06126405671238899,
0.3537367582321167,
-0.3192283511161804,
-0.07828367501497269,
0.0250204186886549,
0.2310318648815155,
0.01933574676513672,
-0.07946247607469559,
0.13105644285678864,
0.3131985366344452,
0.05822547897696495,
0.2753698527812958,
0.43819645047187805,
0.2520937919616699,
0.09018539637327194,
0.0899711549282074,
-0.03763424977660179,
-0.3852229416370392,
-0.15897499024868011,
-0.17618054151535034,
-0.03776197507977486,
-0.29859885573387146,
-0.11209739744663239,
-0.007227723486721516,
0.1626737266778946,
-0.13378164172172546,
0.15521231293678284,
0.14083215594291687,
-0.1406099796295166,
-0.07139712572097778,
0.6374825239181519,
0.47869154810905457,
0.0852632001042366,
-0.019749201834201813,
-0.18244338035583496,
-0.24057739973068237,
0.23112232983112335,
0.17246145009994507,
-0.2068379670381546,
-0.05793806165456772,
0.31069180369377136,
0.021623771637678146,
-0.026615183800458908,
0.4009546637535095,
0.013428889214992523,
-0.06555122137069702,
-0.1654585301876068,
-0.08790485560894012,
-0.40677928924560547,
0.08318526297807693,
-0.22676989436149597,
-0.40226230025291443,
0.18052534759044647,
-0.129068061709404,
-0.26380470395088196,
0.16521893441677094,
0.39054691791534424,
0.027745818719267845,
0.057696469128131866,
-0.18499073386192322,
-0.5952818989753723,
-0.12974923849105835,
0.43125104904174805,
0.15116333961486816,
-0.010400069877505302,
-0.3907175064086914,
0.28762394189834595,
-0.20383282005786896,
0.09260585159063339,
0.12354464083909988,
-0.21013368666172028,
-0.022754494100809097,
0.4646046757698059,
0.3341744840145111,
0.0913558155298233,
0.11287879198789597,
-0.16578060388565063,
-0.07513312995433807,
0.05383877456188202,
-0.0631905347108841,
-0.4618711471557617,
-0.3245949447154999,
0.3918747007846832,
0.455132395029068,
-0.495269238948822,
-0.24799837172031403,
-0.44769296050071716,
0.05412757396697998,
0.09263356029987335,
0.11813400685787201,
-0.2728656232357025,
0.06492330133914948,
0.05508264899253845,
0.083399698138237,
-0.13651110231876373,
0.008590638637542725,
-0.020945198833942413,
-0.03318575397133827,
-0.07268932461738586,
-0.034345269203186035,
0.6169703602790833,
-0.25735074281692505,
-0.2555620074272156,
-0.08728676289319992,
0.23507103323936462,
0.022418521344661713,
0.20485347509384155,
-0.06784902513027191,
0.13990896940231323,
0.38132256269454956,
0.15700161457061768,
-0.13933107256889343,
0.43470174074172974,
0.3039998710155487,
0.26818251609802246,
0.06423886120319366,
-0.14932385087013245,
0.08510920405387878,
-0.18355756998062134,
0.13157589733600616,
-0.17078138887882233
] |
https://github.com/huggingface/datasets/issues/4115 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints' | I think they should always ignore them actually ! Not sure if adding a flag would be helpful | **Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
| 18 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints'
**Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
I think they should always ignore them actually ! Not sure if adding a flag would be helpful | [
0.03365234658122063,
0.33731865882873535,
-0.04123298451304436,
0.19490064680576324,
0.01740284636616707,
-0.008147329092025757,
0.30613085627555847,
0.29955849051475525,
0.125152125954628,
0.287978857755661,
0.04595538228750229,
0.3039178252220154,
-0.2466282695531845,
0.2990991175174713,
-0.20301415026187897,
0.135125994682312,
-0.16422244906425476,
0.28292161226272583,
0.14924757182598114,
0.03627119958400726,
-0.44088298082351685,
0.044172950088977814,
-0.10264836251735687,
0.05735527724027634,
-0.34627312421798706,
-0.0462031215429306,
0.012575073167681694,
0.18817919492721558,
-0.32219040393829346,
-0.33200469613075256,
0.04959152638912201,
0.311899334192276,
0.12114088237285614,
0.479627788066864,
-0.00011524196452228352,
-0.045163773000240326,
0.2559279203414917,
-0.20332443714141846,
-0.294549822807312,
-0.1202554851770401,
-0.25806188583374023,
0.21379435062408447,
0.001320029841735959,
-0.258199006319046,
-0.03763715550303459,
-0.049259498715400696,
0.0553632453083992,
-0.08676520735025406,
-0.09463804960250854,
0.2211967408657074,
0.14666815102100372,
0.2100001722574234,
-0.38671204447746277,
0.3472388684749603,
0.3633648157119751,
0.5825082659721375,
-0.04121904820203781,
0.2932296693325043,
0.10518000274896622,
-0.11145813763141632,
0.0833822637796402,
0.4555807113647461,
-0.2820819318294525,
0.13818691670894623,
0.02272028475999832,
0.13474124670028687,
0.33581340312957764,
-0.6293964385986328,
-0.25334951281547546,
0.0898507833480835,
0.1872338205575943,
-0.20372819900512695,
-0.25482332706451416,
-0.4004758894443512,
0.12212717533111572,
-0.26945990324020386,
0.06482252478599548,
-0.05369551479816437,
-0.3967375159263611,
0.13027073442935944,
-0.26967623829841614,
-0.23952554166316986,
-0.42493879795074463,
0.06303393840789795,
0.03217804431915283,
-0.15473328530788422,
0.24577012658119202,
-0.033862970769405365,
0.46855631470680237,
0.06279180943965912,
-0.0066990237683057785,
-0.4271121621131897,
0.03340088576078415,
0.24673998355865479,
0.1322186142206192,
-0.3578355312347412,
-0.1470162272453308,
0.2510787546634674,
0.09597266465425491,
0.25224781036376953,
0.08772356808185577,
-0.2008255422115326,
-0.22578662633895874,
0.3763370215892792,
-0.03710130229592323,
0.15717755258083344,
-0.10646771639585495,
0.4782496988773346,
0.4057201147079468,
0.04498060420155525,
-0.11816251277923584,
0.1289522498846054,
-0.009663430973887444,
-0.07053374499082565,
-0.03307522460818291,
-0.032498352229595184,
0.3353838324546814,
-0.026308611035346985,
-0.33125391602516174,
-0.31718456745147705,
0.0629197284579277,
-0.19135940074920654,
0.24722343683242798,
-0.1612764298915863,
0.25620800256729126,
-0.12799599766731262,
-0.0946512296795845,
0.060827091336250305,
-0.15031816065311432,
-0.026833131909370422,
-0.06300248205661774,
0.10152053833007812,
0.027480635792016983,
0.26962900161743164,
0.17177438735961914,
-0.36718955636024475,
0.2407543957233429,
-0.04468652606010437,
0.09406464546918869,
0.23555535078048706,
0.3109196126461029,
-0.2858130931854248,
0.17735446989536285,
0.36730775237083435,
-0.08742808550596237,
-0.20928125083446503,
0.08806788176298141,
-0.3922129273414612,
-0.0573267936706543,
0.3616311252117157,
-0.3076716363430023,
-0.26648250222206116,
-0.2067800611257553,
0.04882845655083656,
-0.35111939907073975,
-0.07321956753730774,
-0.8309974670410156,
-0.08012470602989197,
-0.2640492916107178,
-0.13505686819553375,
0.19422417879104614,
0.02544511668384075,
0.22330757975578308,
-0.08714081346988678,
0.0016938932240009308,
0.5980931520462036,
0.060264792293310165,
-0.1961068958044052,
-0.2673451602458954,
-0.29503801465034485,
0.25423765182495117,
0.30167242884635925,
-0.06937593966722488,
0.3951544761657715,
-0.30260011553764343,
-0.11711238324642181,
0.1690068542957306,
-0.34452468156814575,
-0.2588117718696594,
-0.11332020908594131,
-0.08005042374134064,
0.28049302101135254,
0.1422865390777588,
0.4444248080253601,
0.21290571987628937,
-0.10162550210952759,
-0.2675795257091522,
0.36618322134017944,
-0.18760596215724945,
0.07120513916015625,
-0.07694855332374573,
-0.22391235828399658,
-0.011448174715042114,
0.23112471401691437,
-0.08970777690410614,
0.07670929282903671,
-0.09899476915597916,
-0.35713520646095276,
0.10257159173488617,
-0.22928395867347717,
-0.08136201649904251,
-0.2350577563047409,
0.48804959654808044,
0.08185592293739319,
-0.04321160912513733,
-0.02815217897295952,
-0.2824035584926605,
0.10480993241071701,
0.14926162362098694,
-0.03970430791378021,
-0.3599448800086975,
-0.13081702589988708,
0.0919991284608841,
-0.2898845672607422,
-0.42396920919418335,
-0.19229929149150848,
0.0055870115756988525,
0.19287747144699097,
-0.22872516512870789,
0.01916324719786644,
-0.015571031719446182,
0.34095412492752075,
0.26609688997268677,
0.49204331636428833,
0.054519154131412506,
0.39484843611717224,
0.07215501368045807,
-0.20751135051250458,
-0.030951468273997307,
-0.11536403745412827,
0.02185317873954773,
-0.20798397064208984,
0.020009241998195648,
0.16047614812850952,
0.46477261185646057,
0.19634824991226196,
0.6103120446205139,
0.18700028955936432,
0.24885468184947968,
-0.09088882803916931,
0.05222159996628761,
0.08775357902050018,
0.09328263998031616,
0.1518019139766693,
-0.06813748925924301,
0.24261373281478882,
-0.3021247088909149,
0.09385412931442261,
-0.15246392786502838,
-0.24099767208099365,
0.22846642136573792,
-0.2404458075761795,
-0.007150944322347641,
-0.27054715156555176,
0.13343989849090576,
0.5892864465713501,
-0.004850143566727638,
0.3286430537700653,
-0.14176760613918304,
-0.23712021112442017,
-0.07591639459133148,
0.03316374495625496,
-0.14385083317756653,
0.46070170402526855,
-0.07699408382177353,
0.23063942790031433,
-0.04628679156303406,
0.22982768714427948,
0.30037644505500793,
0.2700320780277252,
-0.28951308131217957,
-0.06368661671876907,
-0.07364112883806229,
0.011210260912775993,
0.12822791934013367,
0.3279467523097992,
0.2932828366756439,
0.1476249247789383,
0.2235180139541626,
0.01862196996808052,
-0.3119255304336548,
-0.3783850371837616,
-0.16642113029956818,
0.1079944595694542,
0.05362201854586601,
0.2015596479177475,
-0.11737515032291412,
-0.6654033660888672,
0.11543203890323639,
-0.22767896950244904,
-0.19198350608348846,
0.019313743337988853,
0.2757662534713745,
0.48535260558128357,
-0.19308891892433167,
0.10768286883831024,
-0.10311111807823181,
0.704079806804657,
-0.040293317288160324,
-0.5124664306640625,
-0.020956922322511673,
0.1316373497247696,
-0.086430624127388,
0.10335306823253632,
0.2154364138841629,
-0.2049393653869629,
0.48559439182281494,
-0.13014976680278778,
0.23877792060375214,
-0.443427711725235,
-0.4419832229614258,
0.21714824438095093,
0.05404344201087952,
0.4556083381175995,
-0.0877416729927063,
0.291421502828598,
0.35336393117904663,
-0.3525630533695221,
-0.08936971426010132,
0.18529340624809265,
-0.07389064878225327,
-0.06747692823410034,
0.0051129283383488655,
0.34520116448402405,
-0.16925789415836334,
-0.0384950265288353,
-0.269819974899292,
-0.19437849521636963,
0.13482032716274261,
0.31342753767967224,
0.2948213815689087,
0.055522870272397995,
-0.05646698549389839,
-0.1198853924870491,
-0.059125009924173355,
-0.2769090235233307,
0.14685654640197754,
-0.5862558484077454,
0.2859068810939789,
-0.11334940046072006,
0.32149672508239746,
-0.10433095693588257,
-0.2641017436981201,
0.03293203189969063,
-0.09220638126134872,
-0.5160457491874695,
-0.3908732831478119,
-0.062231071293354034,
0.34627702832221985,
0.04163886979222298,
-0.2526363432407379,
0.11638566851615906,
0.2663634121417999,
-0.08092661201953888,
-0.10770091414451599,
0.08230996131896973,
0.08708575367927551,
0.13352876901626587,
0.4010107219219208,
0.1676330864429474,
-0.016451898962259293,
-0.0745307207107544,
0.20263522863388062,
0.269265741109848,
-0.027252119034528732,
0.41605979204177856,
-0.08316593617200851,
0.4585263133049011,
-0.027992457151412964,
-0.1673409342765808,
-0.15115484595298767,
0.18788447976112366,
-0.27687394618988037,
0.19641996920108795,
0.10764250159263611,
-0.09196840226650238,
-0.001192629337310791,
-0.3272390067577362,
-0.1463940441608429,
-0.18612021207809448,
0.206984281539917,
0.14579154551029205,
0.08695757389068604,
-0.2274244874715805,
-0.4594409167766571,
-0.33978796005249023,
-0.3244779407978058,
-0.14794503152370453,
0.497993528842926,
0.36725151538848877,
-0.09127431362867355,
0.05622034892439842,
-0.28372690081596375,
-0.037109099328517914,
0.015344686806201935,
0.26285022497177124,
-0.29820388555526733,
0.013900015503168106,
0.17942962050437927,
0.06141485273838043,
0.3136811852455139,
0.4730224609375,
-0.3339499831199646,
-0.2838113307952881,
-0.11355273425579071,
0.09427578747272491,
-0.1280526965856552,
-0.11755430698394775,
-0.12271712720394135,
0.05842512100934982,
0.3579549789428711,
0.7521747946739197,
0.041269563138484955,
0.006254375912249088,
0.28478536009788513,
0.45514237880706787,
-0.3360010087490082,
-0.15893100202083588,
-0.28809696435928345,
-0.15335315465927124,
-0.4268914759159088,
0.2916701138019562,
0.1132635697722435,
-0.22757631540298462,
0.06448338180780411,
-0.40188249945640564,
0.13288407027721405,
-0.2718381881713867,
0.05280332267284393,
0.46732792258262634,
0.26068347692489624,
0.029197093099355698,
0.1640566736459732,
0.3978705406188965,
-0.32565757632255554,
0.7166309952735901,
0.6066157221794128,
-0.24819403886795044,
-0.041906923055648804,
-0.1652418076992035,
-0.5266571640968323,
0.16328200697898865,
0.11048439145088196,
0.12228080630302429,
-0.014019124209880829,
-0.5002514123916626,
0.1651187539100647,
-0.48590633273124695,
0.2951371371746063,
0.3316228687763214,
-0.24399788677692413,
-0.12926200032234192,
-0.058346495032310486,
0.21294134855270386,
0.13363021612167358,
-0.312836229801178,
0.5660847425460815,
0.07674980163574219,
-0.23567631840705872,
0.06710869073867798,
0.12377050518989563,
0.9505773186683655,
0.24029132723808289,
0.09131374955177307,
-0.06291674077510834,
-0.06070718914270401,
0.022182980552315712,
0.3810694217681885,
0.14231231808662415,
0.0033463872969150543,
-0.421414852142334,
-0.0975877121090889,
-0.28654736280441284,
0.15968698263168335,
0.0471552237868309,
-0.16502459347248077,
0.2243783324956894,
-0.19079384207725525,
-0.20556479692459106,
-0.03673750162124634,
0.18934692442417145,
0.013109691441059113,
0.00883137620985508,
0.24334433674812317,
0.07032353430986404,
-0.03165008872747421,
0.27395713329315186,
0.14090418815612793,
-0.20846571028232574,
0.08779598772525787,
-0.32247328758239746,
-0.1992439180612564,
-0.18022727966308594,
-0.23710934817790985,
-0.0052691735327243805,
-0.07965625822544098,
0.079096719622612,
-0.4121738374233246,
0.1578971892595291,
0.03427419066429138,
-0.04670586809515953,
-0.0277471411973238,
0.03221527114510536,
0.14441779255867004,
0.43406984210014343,
-0.48734477162361145,
-0.25714170932769775,
0.2641068696975708,
-0.10277406126260757,
-0.22080346941947937,
-0.18015030026435852,
0.16720254719257355,
-0.4715210795402527,
-0.12935827672481537,
-0.17430473864078522,
0.23840323090553284,
0.13856202363967896,
0.3212525248527527,
-0.2694748342037201,
-0.11166681349277496,
-0.21642279624938965,
0.11467665433883667,
0.10475277900695801,
0.07404806464910507,
0.49984797835350037,
-0.14453083276748657,
-0.25785040855407715,
-0.17417503893375397,
-0.1339714527130127,
0.18207430839538574,
0.06307513266801834,
0.2865474820137024,
-0.3041367828845978,
-0.16012565791606903,
-0.19129446148872375,
0.4818662405014038,
-0.07584203779697418,
-0.08348453789949417,
0.3897947072982788,
-0.04529818519949913,
0.03253372013568878,
0.04022325202822685,
0.025773417204618454,
0.20833638310432434,
-0.03124631941318512,
-0.30952805280685425,
-0.2899172306060791,
-0.1630745679140091,
0.19775287806987762,
-0.28975924849510193,
0.406189888715744,
-0.1834404468536377,
0.06454665958881378,
0.09957986325025558,
-0.07063417136669159,
-0.2612801790237427,
0.12321743369102478,
-0.33078184723854065,
0.19367988407611847,
0.4166884124279022,
0.47414228320121765,
0.3396809995174408,
-0.13047227263450623,
-0.009469720534980297,
-0.02947983890771866,
0.13521528244018555,
-0.12880238890647888,
-0.31530141830444336,
0.12461493909358978,
-0.05972858518362045,
-0.02394259162247181,
0.2325078696012497,
-0.012049839831888676,
0.2305089235305786,
0.008218182250857353,
0.1749974489212036,
-0.13789033889770508,
0.11172141134738922,
0.14989441633224487,
0.1516478955745697,
-0.33198586106300354,
0.1744122952222824,
-0.03340911120176315,
-0.41850659251213074,
0.3748927116394043,
0.41109001636505127,
0.15804153680801392,
-0.1698082983493805,
-0.20595479011535645,
-0.12395887076854706,
-0.1539296805858612,
-0.027806013822555542,
0.2041369378566742,
-0.17831924557685852,
0.2597985863685608,
-0.009450268000364304,
0.26875030994415283,
-0.1080077663064003,
0.003719765692949295,
-0.344882071018219,
-0.11567851155996323,
0.26991283893585205,
0.1944454461336136,
-0.2953820526599884,
-0.5117085576057434,
-0.2190905511379242,
-0.19953103363513947,
0.04261108115315437,
0.44016098976135254,
-0.16100700199604034,
0.26188841462135315,
0.1049320250749588,
-0.04173687845468521,
0.4265717566013336,
-0.10990536212921143,
0.22054579854011536,
0.27677568793296814,
-0.20602263510227203,
-0.24450795352458954,
0.17188946902751923,
0.026585876941680908,
0.12238557636737823,
0.3257799744606018,
-0.25060081481933594,
0.2414254993200302,
-0.031079448759555817,
-0.21433988213539124,
0.30645084381103516,
0.08494694530963898,
-0.08273182809352875,
0.028418682515621185,
-0.003571324050426483,
-0.03464342653751373,
0.35562390089035034,
-0.08628571778535843,
0.10238663852214813,
-0.031058419495821,
-0.20712126791477203,
0.3128123879432678,
0.17581257224082947,
0.2152036428451538,
-0.3564738929271698,
-0.2417958676815033,
-0.19510117173194885,
0.04483441635966301,
0.03417985141277313,
-0.118380606174469,
0.0903172492980957,
0.3467124104499817,
-0.2686712145805359,
-0.07111023366451263,
0.073789581656456,
0.1600833237171173,
0.04011274874210358,
-0.07241513580083847,
0.06376392394304276,
0.29918381571769714,
-0.01170918345451355,
0.24597814679145813,
0.4607411026954651,
0.2637142241001129,
0.12127060443162918,
0.10190863907337189,
-0.010243254713714123,
-0.4362420439720154,
-0.17367830872535706,
-0.15646791458129883,
-0.01515287533402443,
-0.2696071267127991,
-0.08688920736312866,
-0.03748396784067154,
0.18014080822467804,
-0.13199196755886078,
0.17452436685562134,
0.12185241281986237,
-0.17216604948043823,
-0.11758944392204285,
0.6313241720199585,
0.4576577842235565,
0.07497525960206985,
-0.03195133060216904,
-0.1997239589691162,
-0.24629640579223633,
0.20877034962177277,
0.166426420211792,
-0.2318892925977707,
-0.0627962052822113,
0.3179408609867096,
0.02071993798017502,
-0.06275971233844757,
0.3825763165950775,
0.017254583537578583,
-0.05935417115688324,
-0.17864632606506348,
-0.09135453402996063,
-0.427494615316391,
0.014248207211494446,
-0.28235673904418945,
-0.43456581234931946,
0.189230278134346,
-0.15878455340862274,
-0.3089256286621094,
0.15162965655326843,
0.38355326652526855,
-0.02835853584110737,
-0.008904818445444107,
-0.19026640057563782,
-0.6178553104400635,
-0.10101921856403351,
0.3970832824707031,
0.13517850637435913,
0.00047716498374938965,
-0.39421772956848145,
0.2787160575389862,
-0.22016748785972595,
0.1062740609049797,
0.08436011523008347,
-0.2387310415506363,
-0.07449955493211746,
0.4712226688861847,
0.3172948956489563,
0.10899897664785385,
0.15576939284801483,
-0.18161705136299133,
-0.05361088365316391,
0.06050471216440201,
-0.07571931183338165,
-0.4711022973060608,
-0.278521865606308,
0.3939867615699768,
0.48913440108299255,
-0.4425545036792755,
-0.2864702343940735,
-0.4240909814834595,
0.06173764914274216,
0.12433323264122009,
0.08830727636814117,
-0.23160196840763092,
0.07682621479034424,
0.12267941981554031,
0.037760067731142044,
-0.18426263332366943,
0.017927736043930054,
-0.0313006266951561,
0.01809937320649624,
-0.09182384610176086,
-0.10031109303236008,
0.6793723106384277,
-0.2610885202884674,
-0.23228269815444946,
-0.0740637257695198,
0.2945471405982971,
0.04348256066441536,
0.19331644475460052,
0.012349128723144531,
0.09189952164888382,
0.3843544125556946,
0.18402975797653198,
-0.22264933586120605,
0.4732106029987335,
0.3083232343196869,
0.16466158628463745,
0.06783904135227203,
-0.17380733788013458,
0.09084104001522064,
-0.2292359173297882,
0.15210404992103577,
-0.14495441317558289
] |
https://github.com/huggingface/datasets/issues/4115 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints' | @lhoestq But what if the user explicitly requests those files via regex?
`glob.glob` ignores hidden files (files starting with ".") by default unless they are explicitly requested, but fsspec's `glob` doesn't follow this behavior, which is probably a bug, so maybe we can raise an issue or open a PR in their repo? | **Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
| 53 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints'
**Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
@lhoestq But what if the user explicitly requests those files via regex?
`glob.glob` ignores hidden files (files starting with ".") by default unless they are explicitly requested, but fsspec's `glob` doesn't follow this behavior, which is probably a bug, so maybe we can raise an issue or open a PR in their repo? | [
-0.001810465008020401,
0.2933647632598877,
-0.023342572152614594,
0.20666250586509705,
-0.051359474658966064,
-0.15691064298152924,
0.23935283720493317,
0.19135262072086334,
0.1357235163450241,
0.3719964623451233,
0.03611233830451965,
0.15244518220424652,
-0.36347198486328125,
0.4241339862346649,
-0.21912893652915955,
0.21042299270629883,
-0.14505350589752197,
0.29550182819366455,
0.09908038377761841,
0.04814578592777252,
-0.44249463081359863,
0.02334729954600334,
-0.17729392647743225,
0.018824249505996704,
-0.29878032207489014,
0.006121277809143066,
0.005651583895087242,
0.19561564922332764,
-0.4629232883453369,
-0.3388710916042328,
0.09853466600179672,
0.2527311444282532,
0.12584127485752106,
0.42116013169288635,
-0.0001190477778436616,
-0.0750570222735405,
0.2189062386751175,
-0.21730947494506836,
-0.22622083127498627,
-0.07670825719833374,
-0.266241192817688,
0.2318311482667923,
-0.07720041275024414,
-0.19446030259132385,
-0.04252544790506363,
-0.16289746761322021,
0.1353801190853119,
-0.19444474577903748,
-0.08819004893302917,
0.2846916615962982,
0.1120755523443222,
0.21097992360591888,
-0.39093828201293945,
0.4103301167488098,
0.5653510689735413,
0.5071491599082947,
-0.09873265027999878,
0.08345876634120941,
0.11455278843641281,
-0.2197803556919098,
0.03624414652585983,
0.3843340575695038,
-0.27879059314727783,
0.0797174721956253,
0.07465234398841858,
0.08660536259412766,
0.3908962607383728,
-0.686686635017395,
-0.36345648765563965,
0.0796431452035904,
0.14688603579998016,
-0.13452178239822388,
-0.27513131499290466,
-0.4320300817489624,
0.043734751641750336,
-0.15798483788967133,
0.04581114649772644,
-0.14425703883171082,
-0.388566255569458,
0.11026546359062195,
-0.16585789620876312,
-0.2166614532470703,
-0.40801000595092773,
0.13107624650001526,
0.15499979257583618,
-0.3292601704597473,
0.1545916497707367,
0.004783205687999725,
0.4400155544281006,
0.015225779265165329,
-0.13592052459716797,
-0.47333472967147827,
0.014231964945793152,
0.30089160799980164,
0.04230201244354248,
-0.40992727875709534,
0.02095865085721016,
0.17905281484127045,
0.048789992928504944,
0.30233752727508545,
0.0660841315984726,
-0.17926836013793945,
-0.27431416511535645,
0.437863826751709,
-0.017836790531873703,
0.2189778983592987,
0.030634474009275436,
0.4736343324184418,
0.3377765417098999,
0.027877526357769966,
-0.10728652775287628,
0.1306552141904831,
0.06274405866861343,
-0.11009647697210312,
-0.1902487576007843,
0.008558995090425014,
0.3362947106361389,
-0.04661155864596367,
-0.34784185886383057,
-0.2631233334541321,
0.10609940439462662,
-0.19643744826316833,
0.2443840056657791,
-0.135605126619339,
0.2812439501285553,
0.006032582372426987,
-0.019129745662212372,
-0.02294810488820076,
-0.19964084029197693,
-0.03565933182835579,
-0.057999029755592346,
0.1508217602968216,
-0.0908346176147461,
0.3825984001159668,
0.18232978880405426,
-0.22222062945365906,
0.1982085257768631,
-0.08643131703138351,
0.09293227642774582,
0.2650618553161621,
0.18796946108341217,
-0.3149774968624115,
0.24362224340438843,
0.36777058243751526,
-0.20911304652690887,
-0.27547091245651245,
0.05992606282234192,
-0.2888023257255554,
-0.05905482918024063,
0.3447982370853424,
-0.23631703853607178,
-0.2782380282878876,
-0.1418219357728958,
-0.008300757966935635,
-0.35337501764297485,
0.013119818642735481,
-0.9811720252037048,
-0.02723030373454094,
-0.36089858412742615,
-0.24150033295154572,
0.23410093784332275,
0.016710473224520683,
0.0922664999961853,
-0.09251450002193451,
-0.05451878160238266,
0.5963904857635498,
0.07834705710411072,
-0.22025185823440552,
-0.22524650394916534,
-0.29639706015586853,
0.3120248317718506,
0.2674475610256195,
-0.04976369068026543,
0.32231324911117554,
-0.3927537500858307,
-0.007473699748516083,
0.2086065411567688,
-0.37957704067230225,
-0.25727444887161255,
0.016416704282164574,
-0.016693413257598877,
0.29506251215934753,
0.23534345626831055,
0.334680438041687,
0.23369072377681732,
-0.12525378167629242,
-0.3362424671649933,
0.29685449600219727,
-0.1454777717590332,
0.0415620431303978,
-0.0842047855257988,
-0.34363219141960144,
0.00847255066037178,
0.21702925860881805,
-0.12799125909805298,
0.14879560470581055,
0.008489511907100677,
-0.38953855633735657,
0.11260046064853668,
-0.1930464804172516,
-0.0493997260928154,
-0.20317375659942627,
0.6004620790481567,
0.11905979365110397,
-0.07749941945075989,
-0.21621432900428772,
-0.3067615032196045,
0.10093206912279129,
-0.06998775899410248,
-0.11435060203075409,
-0.27101194858551025,
-0.15380489826202393,
0.19666790962219238,
-0.2926149368286133,
-0.34816429018974304,
-0.23932304978370667,
-0.07243164628744125,
0.12256215512752533,
-0.19643236696720123,
-0.050931788980960846,
-0.03578858822584152,
0.25958991050720215,
0.28721198439598083,
0.4931182265281677,
-0.01089678518474102,
0.37963631749153137,
0.046610504388809204,
-0.27935662865638733,
0.048306092619895935,
-0.02394041419029236,
0.1384505033493042,
-0.23122020065784454,
0.11744093149900436,
0.20211577415466309,
0.6395052671432495,
0.10690364986658096,
0.5414323210716248,
0.3833927512168884,
0.22213922441005707,
-0.1463310718536377,
-0.07002556324005127,
0.05479757860302925,
0.09349580854177475,
0.176415354013443,
0.0024518780410289764,
0.21669629216194153,
-0.20826150476932526,
0.14362236857414246,
-0.15419822931289673,
-0.2810717225074768,
0.17579616606235504,
-0.29475411772727966,
-0.023322992026805878,
-0.22067497670650482,
0.1982637196779251,
0.7316129207611084,
0.013478588312864304,
0.41027453541755676,
-0.07359752804040909,
-0.23031511902809143,
-0.04861076548695564,
0.011551599949598312,
-0.2687119245529175,
0.43787863850593567,
0.01662839949131012,
0.18441227078437805,
0.09413692355155945,
0.15776626765727997,
0.34813135862350464,
0.2970096170902252,
-0.3135698139667511,
-0.09144315123558044,
-0.006227499805390835,
0.06699399650096893,
0.12838491797447205,
0.28677788376808167,
0.2796768844127655,
0.15225544571876526,
0.25693848729133606,
0.08648106455802917,
-0.266372412443161,
-0.3813786208629608,
-0.22137586772441864,
0.02136482670903206,
0.03344487026333809,
0.203205868601799,
-0.2295430302619934,
-0.6839480996131897,
0.21566447615623474,
-0.07090239971876144,
-0.14231882989406586,
0.03684966266155243,
0.31830453872680664,
0.5207557678222656,
-0.24632981419563293,
0.11899220943450928,
-0.0935560017824173,
0.8070576786994934,
-0.07425686717033386,
-0.5177257061004639,
-0.1548423171043396,
0.34552332758903503,
-0.15087252855300903,
0.03680107370018959,
0.2600265443325043,
-0.17286671698093414,
0.42890122532844543,
0.07511882483959198,
0.26594167947769165,
-0.4676622450351715,
-0.40009987354278564,
0.22014695405960083,
0.06453225761651993,
0.45262590050697327,
-0.06216925382614136,
0.19899454712867737,
0.42106497287750244,
-0.3143269419670105,
-0.156415194272995,
0.06628230214118958,
-0.14325182139873505,
-0.04615515470504761,
0.02793753892183304,
0.33023443818092346,
-0.2951931953430176,
0.03697110712528229,
-0.2669409215450287,
-0.14554981887340546,
0.17515909671783447,
0.21276183426380157,
0.30327579379081726,
0.08569753170013428,
-0.062133435159921646,
-0.13740284740924835,
-0.15775497257709503,
-0.3046905994415283,
0.10742591321468353,
-0.6142724752426147,
0.2816627621650696,
-0.08262132108211517,
0.30577442049980164,
-0.11272348463535309,
-0.28822875022888184,
-0.1804117113351822,
-0.10403495281934738,
-0.5719927549362183,
-0.48843199014663696,
-0.18940003216266632,
0.30698922276496887,
0.03955843299627304,
-0.2660983204841614,
0.2667043209075928,
0.2502274215221405,
-0.09090907871723175,
-0.14593441784381866,
0.05860954895615578,
0.10978393256664276,
0.17715409398078918,
0.42088887095451355,
0.14172303676605225,
-0.1084531620144844,
-0.010219043120741844,
0.252246618270874,
0.31472817063331604,
0.09208723157644272,
0.4530608057975769,
-0.09047888219356537,
0.5241332054138184,
-0.02902235835790634,
-0.09717756509780884,
-0.1033007800579071,
0.1262390911579132,
-0.29503053426742554,
0.23641245067119598,
0.07365594804286957,
0.019488440826535225,
0.06499353051185608,
-0.16644816100597382,
-0.08912849426269531,
-0.16706624627113342,
0.19210940599441528,
0.10732021927833557,
0.11298669874668121,
-0.2122374027967453,
-0.4245956540107727,
-0.23355352878570557,
-0.3043682873249054,
-0.18497824668884277,
0.481267511844635,
0.47533074021339417,
-0.07322684675455093,
0.10004912316799164,
-0.22675658762454987,
-0.08916773647069931,
-0.0038493946194648743,
0.29731398820877075,
-0.21844038367271423,
-0.09261634200811386,
0.18601727485656738,
0.07288891077041626,
0.2965617775917053,
0.4880262613296509,
-0.2696903347969055,
-0.18105976283550262,
-0.12462286651134491,
0.11229543387889862,
-0.1405906230211258,
-0.16070938110351562,
-0.07774801552295685,
-0.06785472482442856,
0.2904399335384369,
0.7508690357208252,
-0.0676034465432167,
-0.01624215394258499,
0.13278397917747498,
0.30988892912864685,
-0.2617838382720947,
-0.17837023735046387,
-0.25792714953422546,
-0.04097013548016548,
-0.3400772511959076,
0.1653735339641571,
0.1523919701576233,
-0.18586811423301697,
0.011815167963504791,
-0.3431299030780792,
0.18186861276626587,
-0.23273640871047974,
0.13462644815444946,
0.3086720108985901,
0.19929826259613037,
0.01771305873990059,
0.1137455403804779,
0.3648342192173004,
-0.28521236777305603,
0.7394893169403076,
0.6506786942481995,
-0.2433970868587494,
-0.07591560482978821,
-0.0922592431306839,
-0.39661192893981934,
0.1663471907377243,
0.14109580218791962,
0.007794507779181004,
0.08105432987213135,
-0.5637871026992798,
0.18278928101062775,
-0.5670958757400513,
0.33183935284614563,
0.3572932481765747,
-0.23804791271686554,
-0.04554356262087822,
-0.046351052820682526,
0.25277048349380493,
0.13190679252147675,
-0.319669634103775,
0.552291750907898,
0.19724538922309875,
-0.24936912953853607,
0.1881117969751358,
-0.05529620498418808,
1.0105311870574951,
0.2649748921394348,
0.15995892882347107,
-0.08727054297924042,
-0.0893602967262268,
-0.06348583847284317,
0.2945558428764343,
0.1005847156047821,
0.08902059495449066,
-0.4395188093185425,
-0.1063438132405281,
-0.29402294754981995,
0.3188360929489136,
0.12785330414772034,
-0.05964731425046921,
0.2871024012565613,
-0.10663381218910217,
-0.33940958976745605,
-0.04512178152799606,
0.19617590308189392,
0.12910279631614685,
0.004097689874470234,
0.21168625354766846,
0.054184719920158386,
0.030717454850673676,
0.3008570075035095,
0.22369036078453064,
-0.2004757970571518,
0.10760143399238586,
-0.3574172854423523,
-0.23923692107200623,
-0.07614307105541229,
-0.3296824097633362,
0.00011792592704296112,
0.005159784108400345,
0.18050523102283478,
-0.29677674174308777,
0.2737031579017639,
-0.18823792040348053,
-0.07058465480804443,
-0.0623667910695076,
0.03236273676156998,
0.17531415820121765,
0.4646754264831543,
-0.48628899455070496,
-0.3003843128681183,
0.2367120087146759,
-0.05436096340417862,
-0.15111973881721497,
-0.10860265046358109,
0.0666862204670906,
-0.5610979795455933,
-0.08777685463428497,
-0.08956262469291687,
0.2893138527870178,
0.1301521509885788,
0.2910052239894867,
-0.22930660843849182,
-0.06308691203594208,
-0.1720256507396698,
0.0763280987739563,
0.18183764815330505,
0.026209810748696327,
0.5265278220176697,
-0.1857154220342636,
-0.2584434449672699,
-0.15013210475444794,
-0.0976482555270195,
0.03270547837018967,
0.1434554159641266,
0.3017272651195526,
-0.3967636823654175,
-0.18043215572834015,
-0.1751890778541565,
0.4999946355819702,
-0.04764746502041817,
0.009371854364871979,
0.2962610721588135,
0.028535619378089905,
0.005224242806434631,
0.1450810432434082,
0.2226085513830185,
0.2115871012210846,
-0.09537497907876968,
-0.25612086057662964,
-0.24799762666225433,
-0.06827935576438904,
0.0998307466506958,
-0.3504985272884369,
0.42889389395713806,
-0.16354389488697052,
0.1949944943189621,
-0.06394755840301514,
-0.020212436094880104,
-0.23253363370895386,
0.20324872434139252,
-0.38008448481559753,
0.1868223249912262,
0.3739002048969269,
0.5305179953575134,
0.432869017124176,
-0.22282536327838898,
-0.06458776444196701,
0.010663021355867386,
0.08524882793426514,
-0.0792497843503952,
-0.377465158700943,
0.15031036734580994,
0.04239179193973541,
-0.07589513063430786,
0.16507013142108917,
0.00992894172668457,
0.17022636532783508,
0.011011440306901932,
0.11226655542850494,
-0.0046715885400772095,
0.1462724506855011,
0.23678702116012573,
0.12852631509304047,
-0.3292381465435028,
0.16879615187644958,
0.10668203979730606,
-0.43352028727531433,
0.4456985592842102,
0.4118519723415375,
0.16067259013652802,
-0.21182431280612946,
-0.17657816410064697,
-0.016623664647340775,
-0.1310315728187561,
0.057242874056100845,
0.2706604599952698,
-0.14597877860069275,
0.25871455669403076,
-0.12527112662792206,
0.21329663693904877,
-0.08006243407726288,
-0.05047338455915451,
-0.3477012515068054,
-0.10090689361095428,
0.31360316276550293,
0.15512697398662567,
-0.26722848415374756,
-0.47561246156692505,
-0.1396888941526413,
-0.10469277203083038,
0.06869594752788544,
0.33915117383003235,
-0.16034629940986633,
0.23679804801940918,
0.26944559812545776,
-0.0676892027258873,
0.19971336424350739,
0.03915149345993996,
0.2532687783241272,
0.04539886862039566,
-0.22336632013320923,
-0.2715755105018616,
0.2655164301395416,
0.005008623003959656,
0.11792676895856857,
0.3722836971282959,
-0.19868305325508118,
0.2712993621826172,
-0.12147410959005356,
-0.12332776188850403,
0.2204131782054901,
-0.03167153522372246,
-0.1134977787733078,
-0.006886392831802368,
0.011506475508213043,
0.005208693444728851,
0.23624162375926971,
-0.031068861484527588,
0.046157315373420715,
0.025113297626376152,
-0.051462315022945404,
0.2802481949329376,
0.24260205030441284,
0.17147554457187653,
-0.14330212771892548,
-0.11642174422740936,
-0.14064133167266846,
-0.02152092754840851,
0.071910060942173,
-0.23764310777187347,
0.13680396974086761,
0.3145405054092407,
-0.30303698778152466,
0.030817193910479546,
-0.08653446286916733,
0.24046006798744202,
0.10937169194221497,
-0.026743734255433083,
0.10000348091125488,
0.12593239545822144,
0.011218030005693436,
0.32245129346847534,
0.42197293043136597,
0.14721782505512238,
0.027462031692266464,
0.08844123780727386,
-0.06896180659532547,
-0.4090816378593445,
-0.14088469743728638,
-0.17070302367210388,
0.10743162781000137,
-0.3478309214115143,
-0.022443030029535294,
0.007099084556102753,
0.1141974925994873,
-0.09307331591844559,
0.055826373398303986,
0.05555490404367447,
-0.15631921589374542,
-0.23474788665771484,
0.7239440679550171,
0.41276565194129944,
0.16284936666488647,
-0.04104416072368622,
-0.1490303874015808,
-0.29393988847732544,
0.16541877388954163,
0.19123469293117523,
-0.2654818296432495,
0.017761342227458954,
0.3236742615699768,
0.006432803347706795,
-0.10434386134147644,
0.27182433009147644,
0.08818216621875763,
-0.013635843992233276,
-0.11750049144029617,
-0.10320960730314255,
-0.4100370407104492,
-0.040456436574459076,
-0.19299249351024628,
-0.39432233572006226,
0.13626804947853088,
-0.08929479867219925,
-0.2947806715965271,
0.06316615641117096,
0.3232141137123108,
0.017947573214769363,
-0.040018100291490555,
-0.07114668190479279,
-0.5631179213523865,
0.02684689871966839,
0.27248525619506836,
0.2051755040884018,
0.014268044382333755,
-0.46322962641716003,
0.27282240986824036,
-0.1148388460278511,
0.06905874609947205,
0.1010022908449173,
-0.21937905251979828,
-0.14553417265415192,
0.29153603315353394,
0.35912081599235535,
0.1730589121580124,
0.10256414115428925,
-0.23710012435913086,
-0.08334606885910034,
0.10171143710613251,
-0.03271489217877388,
-0.4279196560382843,
-0.4857408106327057,
0.27558207511901855,
0.44675689935684204,
-0.5189327597618103,
-0.13845233619213104,
-0.43305978178977966,
0.11384130269289017,
0.1130003035068512,
0.022472258657217026,
-0.24129268527030945,
0.10021743923425674,
-0.005028024315834045,
0.08427897095680237,
-0.34734442830085754,
0.03342375159263611,
-0.02392587810754776,
-0.06877788156270981,
-0.03582235798239708,
-0.030545901507139206,
0.7206917405128479,
-0.35574135184288025,
-0.2399180680513382,
-0.028804931789636612,
0.3033578395843506,
0.015132710337638855,
0.13723598420619965,
0.06759943813085556,
0.021718882024288177,
0.33913683891296387,
0.21148169040679932,
-0.12002453207969666,
0.4453065097332001,
0.0878489762544632,
0.15204526484012604,
0.006956450641155243,
-0.12513554096221924,
0.151955246925354,
-0.08547801524400711,
0.2531073987483978,
-0.22298264503479004
] |
https://github.com/huggingface/datasets/issues/4115 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints' | > @lhoestq But what if the user explicitly requests those files via regex?
Usually hidden files are meant to be ignored. If they are data files, they must be placed outside a hidden directory in the first place right ? I think it's more sensible to explain this than adding a flag.
> glob.glob ignores hidden files (files starting with ".") by default unless they are explicitly requested, but fsspec's glob doesn't follow this behavior, which is probably a bug, so maybe we can raise an issue or open a PR in their repo?
After globbing using `fsspec`, we already ignore files that start with a `.` in `_resolve_single_pattern_locally` and `_resolve_single_pattern_in_dataset_repository`, I guess we can just account for parent directories as well ?
We could open an issue on `fsspec` but I think they won't change this since it's an important breaking change for them. | **Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
| 145 | ImageFolder add option to ignore some folders like '.ipynb_checkpoints'
**Is your feature request related to a problem? Please describe.**
I sometimes like to peek at the dataset images from jupyterlab. thus '.ipynb_checkpoints' folder appears where my dataset is and (just realized) leads to accidental duplicate image additions. I think this is an easy enough thing to miss especially if the dataset is very large.
**Describe the solution you'd like**
maybe have an option `ignore` or something .gitignore style
`dataset = load_dataset("imagefolder", data_dir="./data/original", ignore="regex?")`
**Describe alternatives you've considered**
Could filter out manually
> @lhoestq But what if the user explicitly requests those files via regex?
Usually hidden files are meant to be ignored. If they are data files, they must be placed outside a hidden directory in the first place right ? I think it's more sensible to explain this than adding a flag.
> glob.glob ignores hidden files (files starting with ".") by default unless they are explicitly requested, but fsspec's glob doesn't follow this behavior, which is probably a bug, so maybe we can raise an issue or open a PR in their repo?
After globbing using `fsspec`, we already ignore files that start with a `.` in `_resolve_single_pattern_locally` and `_resolve_single_pattern_in_dataset_repository`, I guess we can just account for parent directories as well ?
We could open an issue on `fsspec` but I think they won't change this since it's an important breaking change for them. | [
-0.014153070747852325,
0.34987738728523254,
-0.032618001103401184,
0.17829635739326477,
-0.022303055971860886,
-0.16947785019874573,
0.2864607572555542,
0.17284716665744781,
0.12156426906585693,
0.3209643065929413,
0.10332851111888885,
0.16652674973011017,
-0.39052578806877136,
0.43137213587760925,
-0.3181624412536621,
0.2184354066848755,
-0.15172311663627625,
0.2545992136001587,
0.09568476676940918,
0.05164950340986252,
-0.38232868909835815,
0.0038649924099445343,
-0.14569362998008728,
0.021443065255880356,
-0.3292326033115387,
-0.06809117645025253,
0.013558486476540565,
0.19466620683670044,
-0.4213850498199463,
-0.37558233737945557,
0.16262125968933105,
0.24670520424842834,
0.18499931693077087,
0.44901514053344727,
-0.00011719422764144838,
-0.03567123785614967,
0.2117176353931427,
-0.22739431262016296,
-0.17713119089603424,
-0.07400155067443848,
-0.36622294783592224,
0.1902218610048294,
-0.1302367001771927,
-0.1982928216457367,
-0.016735587269067764,
-0.14008823037147522,
0.13965433835983276,
-0.18162022531032562,
-0.18002988398075104,
0.2571848928928375,
0.11801090836524963,
0.1535622775554657,
-0.35574212670326233,
0.45520731806755066,
0.48051542043685913,
0.5763757824897766,
-0.12039303034543991,
0.14030390977859497,
0.04786591976881027,
-0.18474557995796204,
-0.014084793627262115,
0.3874492943286896,
-0.23418059945106506,
0.05611487850546837,
0.08918056637048721,
0.0868382379412651,
0.36451318860054016,
-0.6816930770874023,
-0.3683479130268097,
0.06230727583169937,
0.15074512362480164,
-0.16232648491859436,
-0.28780731558799744,
-0.4661199450492859,
0.026116549968719482,
-0.10492633283138275,
0.08639996498823166,
-0.08654937148094177,
-0.36423105001449585,
0.17204424738883972,
-0.11095432937145233,
-0.25021252036094666,
-0.44065383076667786,
0.1069110780954361,
0.15553265810012817,
-0.3042384684085846,
0.10455285757780075,
0.0019269287586212158,
0.3650786578655243,
0.003808639943599701,
-0.1290680170059204,
-0.45760101079940796,
0.050882112234830856,
0.2613467574119568,
0.056395892053842545,
-0.38470903038978577,
0.0011205896735191345,
0.15880441665649414,
0.08712412416934967,
0.3456570506095886,
0.06421808153390884,
-0.13112664222717285,
-0.302165150642395,
0.4685520827770233,
-0.08379532396793365,
0.2480323165655136,
0.029986727982759476,
0.48280999064445496,
0.40677428245544434,
0.09086643904447556,
-0.130137100815773,
0.14697547256946564,
0.08215152472257614,
-0.09931640326976776,
-0.23083820939064026,
0.03886055946350098,
0.3511959910392761,
-0.05524132773280144,
-0.3331962525844574,
-0.26863887906074524,
0.08692344278097153,
-0.2143966406583786,
0.2743823230266571,
-0.11357855051755905,
0.2908330261707306,
0.0849958136677742,
-0.029378578066825867,
-0.02237214893102646,
-0.07117855548858643,
-0.020170778036117554,
-0.04904242232441902,
0.14827238023281097,
-0.13586483895778656,
0.4440675377845764,
0.1845080703496933,
-0.25547492504119873,
0.20145513117313385,
-0.04652111604809761,
0.11095604300498962,
0.2792010009288788,
0.16729845106601715,
-0.32525864243507385,
0.27338603138923645,
0.349910169839859,
-0.3024231195449829,
-0.30090394616127014,
0.11230239272117615,
-0.2715732455253601,
-0.07271131873130798,
0.3291880786418915,
-0.20031103491783142,
-0.32516762614250183,
-0.06328244507312775,
-0.007829596288502216,
-0.3648064136505127,
0.02600773237645626,
-0.9279547333717346,
0.04571092128753662,
-0.356451153755188,
-0.2221958339214325,
0.26777219772338867,
0.06473489850759506,
0.06770767271518707,
-0.1685638129711151,
-0.01645199954509735,
0.597854495048523,
0.04813280329108238,
-0.1282321810722351,
-0.23870326578617096,
-0.2952869236469269,
0.3037652373313904,
0.23418183624744415,
-0.034199535846710205,
0.32582613825798035,
-0.4255647361278534,
0.03150220215320587,
0.16764581203460693,
-0.42634856700897217,
-0.2300359308719635,
0.12117401510477066,
-0.06403209269046783,
0.27100059390068054,
0.27873465418815613,
0.26438474655151367,
0.19538353383541107,
-0.2038593590259552,
-0.333065390586853,
0.3044918179512024,
-0.1679876148700714,
0.014664301648736,
-0.14567340910434723,
-0.41598889231681824,
-0.017763808369636536,
0.2309151440858841,
-0.14129537343978882,
0.15131741762161255,
0.0196264386177063,
-0.37567803263664246,
0.07699597626924515,
-0.20278051495552063,
-0.02633497305214405,
-0.2017841637134552,
0.5946578979492188,
0.13420850038528442,
-0.10968489944934845,
-0.23418939113616943,
-0.3273547291755676,
0.1413026750087738,
-0.053145136684179306,
-0.13695327937602997,
-0.28614288568496704,
-0.20307159423828125,
0.17723208665847778,
-0.32020795345306396,
-0.3269106149673462,
-0.2208147943019867,
-0.046011388301849365,
0.12271642684936523,
-0.1786670684814453,
-0.07995107769966125,
-0.09177591651678085,
0.2765105366706848,
0.21218177676200867,
0.4860100746154785,
0.08017882704734802,
0.34857624769210815,
0.06202469766139984,
-0.222105011343956,
0.03311391919851303,
0.0015245527029037476,
0.15419796109199524,
-0.2488371729850769,
0.155509352684021,
0.25694629549980164,
0.6048494577407837,
0.08456498384475708,
0.5334884524345398,
0.3936939239501953,
0.21807894110679626,
-0.18640713393688202,
-0.021695373579859734,
0.10905206203460693,
0.12044188380241394,
0.21438714861869812,
-0.05958180874586105,
0.2130155861377716,
-0.2212916761636734,
0.18612083792686462,
-0.13994485139846802,
-0.3631066679954529,
0.1661786586046219,
-0.3209596574306488,
-0.07439738512039185,
-0.24258844554424286,
0.16311325132846832,
0.7044317722320557,
0.04334653541445732,
0.4257296025753021,
-0.11217939853668213,
-0.17780134081840515,
-0.0659450888633728,
0.003909152001142502,
-0.2599044442176819,
0.44193705916404724,
0.06903165578842163,
0.18567371368408203,
0.1087871864438057,
0.23401038348674774,
0.36898428201675415,
0.32453233003616333,
-0.28697457909584045,
-0.05220574885606766,
-0.004889793694019318,
0.05337362736463547,
0.13456790149211884,
0.2671809494495392,
0.2923440933227539,
0.18762394785881042,
0.24831368029117584,
0.106356680393219,
-0.25286707282066345,
-0.47296440601348877,
-0.20700861513614655,
0.013260239735245705,
-0.01262524351477623,
0.1546081006526947,
-0.25329944491386414,
-0.6619123816490173,
0.21205228567123413,
-0.04720350727438927,
-0.15109948813915253,
0.04912237077951431,
0.24564862251281738,
0.4265001714229584,
-0.27259552478790283,
0.12130191922187805,
-0.0861317366361618,
0.8173620700836182,
-0.14862290024757385,
-0.5415328145027161,
-0.18173667788505554,
0.3193027675151825,
-0.14427253603935242,
0.024290774017572403,
0.30429816246032715,
-0.1143111065030098,
0.4200291931629181,
0.11561428755521774,
0.19795581698417664,
-0.452443391084671,
-0.42566055059432983,
0.20398296415805817,
0.02754879742860794,
0.40748319029808044,
-0.0515003502368927,
0.1857377290725708,
0.40361422300338745,
-0.3731140196323395,
-0.14350371062755585,
0.10844758152961731,
-0.07473163306713104,
-0.13779127597808838,
0.04320235550403595,
0.37069040536880493,
-0.31816473603248596,
-0.00444532185792923,
-0.329175740480423,
-0.22164490818977356,
0.2188544124364853,
0.18728429079055786,
0.29381221532821655,
0.05789317935705185,
-0.10933449864387512,
-0.08038325607776642,
-0.13760697841644287,
-0.293626606464386,
0.10716720670461655,
-0.5914609432220459,
0.3083447217941284,
-0.07621915638446808,
0.317884624004364,
-0.07677898555994034,
-0.3308894634246826,
-0.14697571098804474,
-0.08952038735151291,
-0.5419204235076904,
-0.45408275723457336,
-0.2357727736234665,
0.32384783029556274,
0.05695321038365364,
-0.22869880497455597,
0.2732274532318115,
0.2471981793642044,
-0.090867780148983,
-0.12621814012527466,
0.06666916608810425,
0.12335249781608582,
0.1461522877216339,
0.3656158149242401,
0.20950040221214294,
-0.09640058130025864,
0.06332758069038391,
0.2762206494808197,
0.3003144860267639,
0.1409832388162613,
0.4462663233280182,
-0.0677424818277359,
0.5126270651817322,
0.03946985304355621,
-0.068024180829525,
-0.01756504364311695,
0.12016633152961731,
-0.32237714529037476,
0.22357043623924255,
0.10664334148168564,
0.029206449165940285,
0.057988643646240234,
-0.2049245834350586,
-0.05538306385278702,
-0.20700931549072266,
0.2178095132112503,
0.12873487174510956,
0.16468068957328796,
-0.26741623878479004,
-0.45826005935668945,
-0.18452389538288116,
-0.24255263805389404,
-0.16776038706302643,
0.5121066570281982,
0.4369329810142517,
-0.07231935858726501,
0.06847883760929108,
-0.2346370816230774,
-0.09301374107599258,
-0.0022822245955467224,
0.315689355134964,
-0.1660422831773758,
-0.1145431250333786,
0.15175017714500427,
0.037291232496500015,
0.25402921438217163,
0.4730948209762573,
-0.3126632869243622,
-0.13386939465999603,
-0.15499089658260345,
0.1188429594039917,
-0.15821388363838196,
-0.18747492134571075,
-0.07068696618080139,
-0.05419132858514786,
0.2391892671585083,
0.7142903208732605,
-0.16851069033145905,
-0.027467606589198112,
0.13625849783420563,
0.29460054636001587,
-0.16392385959625244,
-0.18885792791843414,
-0.23642054200172424,
-0.07208390533924103,
-0.3963705003261566,
0.17040938138961792,
0.13971205055713654,
-0.20109574496746063,
0.013357298448681831,
-0.32881835103034973,
0.20063818991184235,
-0.20901423692703247,
0.1384572684764862,
0.2677651643753052,
0.19685694575309753,
-0.014878897927701473,
0.06894592940807343,
0.34762588143348694,
-0.2662050127983093,
0.7597656846046448,
0.6355965733528137,
-0.21433869004249573,
-0.1217079758644104,
-0.09418678283691406,
-0.39943546056747437,
0.24714010953903198,
0.17464697360992432,
0.0050032176077365875,
0.07265964895486832,
-0.5439268350601196,
0.20200371742248535,
-0.5529428124427795,
0.3105178773403168,
0.2817416191101074,
-0.2291596233844757,
-0.051195885986089706,
-0.06855610758066177,
0.2927911877632141,
0.17052341997623444,
-0.32006484270095825,
0.5129942893981934,
0.19057270884513855,
-0.29841160774230957,
0.20417273044586182,
-0.03653319925069809,
0.9852458238601685,
0.33867335319519043,
0.13177284598350525,
-0.06451277434825897,
-0.07401564717292786,
-0.03214540332555771,
0.2372482270002365,
0.09999845176935196,
0.09934218227863312,
-0.4417795240879059,
-0.09442301839590073,
-0.2871859073638916,
0.32891249656677246,
0.17499569058418274,
-0.11600372195243835,
0.31222105026245117,
-0.14721053838729858,
-0.34088200330734253,
-0.02077016793191433,
0.21773424744606018,
0.02381649985909462,
-0.03572000190615654,
0.2057383507490158,
0.05648936331272125,
0.06597469747066498,
0.23543228209018707,
0.21085992455482483,
-0.21600036323070526,
0.08334404230117798,
-0.36859387159347534,
-0.23506402969360352,
-0.09266238659620285,
-0.3542490005493164,
-0.0023402273654937744,
-0.02918197587132454,
0.1877865344285965,
-0.18483707308769226,
0.30896270275115967,
-0.11866602301597595,
-0.09212338924407959,
-0.058131299912929535,
0.017694134265184402,
0.17685922980308533,
0.4521525204181671,
-0.43102705478668213,
-0.3029962182044983,
0.2635391652584076,
-0.008712304756045341,
-0.14777760207653046,
-0.16011211276054382,
-0.0036265579983592033,
-0.5240387320518494,
-0.1010008156299591,
-0.10830684006214142,
0.2552614212036133,
0.11158935725688934,
0.27093183994293213,
-0.20249542593955994,
-0.09998564422130585,
-0.12745767831802368,
0.08547890186309814,
0.16914016008377075,
0.00047512701712548733,
0.5366216897964478,
-0.1687663048505783,
-0.2857402563095093,
-0.14816969633102417,
-0.11608275026082993,
-0.03750736266374588,
0.1487959623336792,
0.29103854298591614,
-0.370188444852829,
-0.1961013823747635,
-0.20454168319702148,
0.5172524452209473,
-0.02904285117983818,
0.0511954203248024,
0.2759022116661072,
0.1273859143257141,
-0.04219455271959305,
0.17512793838977814,
0.1855614334344864,
0.25101035833358765,
-0.05968395620584488,
-0.2973197102546692,
-0.3207992911338806,
-0.09197818487882614,
0.1341387778520584,
-0.3759496510028839,
0.3604751527309418,
-0.17997002601623535,
0.19456928968429565,
-0.0387377068400383,
-0.04203270375728607,
-0.2539984881877899,
0.1796809285879135,
-0.38615188002586365,
0.13303068280220032,
0.34774449467658997,
0.5523691177368164,
0.4945905804634094,
-0.20228351652622223,
-0.054332975298166275,
-0.0023318715393543243,
0.0605429969727993,
-0.08425961434841156,
-0.36027732491493225,
0.16024014353752136,
0.0728984922170639,
-0.05512869358062744,
0.11965668946504593,
-0.043089911341667175,
0.10260128974914551,
0.013056875206530094,
0.11725974082946777,
0.030086927115917206,
0.11166754364967346,
0.27059757709503174,
0.030477304011583328,
-0.25113993883132935,
0.10203790664672852,
0.07212692499160767,
-0.40798142552375793,
0.4240652322769165,
0.41767871379852295,
0.15730030834674835,
-0.23707205057144165,
-0.15522357821464539,
0.033380426466464996,
-0.10279474407434464,
0.05430171638727188,
0.28057926893234253,
-0.11965809017419815,
0.29911094903945923,
-0.1068858653306961,
0.2043512910604477,
-0.07778392732143402,
-0.060585811734199524,
-0.30131638050079346,
-0.07656794786453247,
0.3093733489513397,
0.16703197360038757,
-0.24564681947231293,
-0.40862396359443665,
-0.12593233585357666,
-0.11633486300706863,
0.10913604497909546,
0.3316781520843506,
-0.14350807666778564,
0.21544906497001648,
0.20943030714988708,
-0.04620317369699478,
0.2880648970603943,
-0.025044281035661697,
0.24957029521465302,
0.1292940229177475,
-0.20927762985229492,
-0.24169696867465973,
0.29969075322151184,
0.05221516638994217,
0.18654140830039978,
0.4052729606628418,
-0.17550358176231384,
0.3048386573791504,
-0.13812988996505737,
-0.10028338432312012,
0.2047249674797058,
-0.05325542762875557,
-0.12181499600410461,
0.06447643786668777,
0.055575333535671234,
-0.05470900237560272,
0.21248257160186768,
-0.07149063795804977,
0.008030246011912823,
-0.007592294830828905,
0.04769377410411835,
0.21927319467067719,
0.24660593271255493,
0.1772816926240921,
-0.22892385721206665,
-0.09847907721996307,
-0.13642480969429016,
-0.0827915370464325,
0.07715810090303421,
-0.2322346419095993,
0.14196044206619263,
0.33378154039382935,
-0.2716216444969177,
-0.010051891207695007,
-0.0658663734793663,
0.27334198355674744,
0.14767920970916748,
-0.024128811433911324,
0.13171564042568207,
0.13374686241149902,
-0.011275820434093475,
0.3391408324241638,
0.38990622758865356,
0.15533657371997833,
0.05947234481573105,
0.07143963873386383,
-0.04314621910452843,
-0.4714431166648865,
-0.15481796860694885,
-0.15752555429935455,
0.11192397028207779,
-0.4035945236682892,
-0.03398488834500313,
0.013971149921417236,
0.13056550920009613,
-0.10004746913909912,
0.03446365147829056,
0.04843024164438248,
-0.198198139667511,
-0.2065715491771698,
0.7652648091316223,
0.43450385332107544,
0.16162541508674622,
0.04049056023359299,
-0.1538608968257904,
-0.28619223833084106,
0.1273738145828247,
0.2580866515636444,
-0.24746593832969666,
0.05243627727031708,
0.33992937207221985,
0.01911735162138939,
-0.03108280524611473,
0.22869744896888733,
0.08357413858175278,
-0.05242009460926056,
-0.1259928196668625,
-0.10155138373374939,
-0.448475182056427,
-0.10240288823843002,
-0.12106084823608398,
-0.42209163308143616,
0.15697044134140015,
-0.1020767018198967,
-0.2796713411808014,
0.08794257044792175,
0.25175097584724426,
0.009915785863995552,
0.003567892126739025,
-0.10790616273880005,
-0.5270504355430603,
0.10496841371059418,
0.22247236967086792,
0.2548959255218506,
0.038782306015491486,
-0.4811934530735016,
0.2102118879556656,
-0.07007204741239548,
0.0581970140337944,
0.09413057565689087,
-0.19892190396785736,
-0.14748409390449524,
0.21335187554359436,
0.35755255818367004,
0.15114660561084747,
0.08902109414339066,
-0.20433485507965088,
-0.06503213196992874,
0.07609878480434418,
0.018011825159192085,
-0.4272712767124176,
-0.40028783679008484,
0.2401120513677597,
0.4606788158416748,
-0.5865869522094727,
-0.1364092379808426,
-0.4628940224647522,
0.08956766128540039,
0.12698638439178467,
0.03462006524205208,
-0.19230642914772034,
0.13514377176761627,
-0.006818648427724838,
0.08790558576583862,
-0.38099953532218933,
0.03364574909210205,
-0.02686455100774765,
-0.07182025909423828,
-0.02790721505880356,
-0.0779978334903717,
0.7147984504699707,
-0.32094788551330566,
-0.2692740261554718,
-0.038136936724185944,
0.33466625213623047,
-0.003991171717643738,
0.1380167007446289,
0.10740339010953903,
0.0008944272994995117,
0.3051950931549072,
0.23980462551116943,
-0.19559305906295776,
0.36307936906814575,
0.07867719233036041,
0.10209086537361145,
-0.013672403991222382,
-0.14560461044311523,
0.09525615721940994,
-0.09093713760375977,
0.2179119884967804,
-0.21482273936271667
] |
https://github.com/huggingface/datasets/issues/4114 | Allow downloading just some columns of a dataset | In the general case you can’t always reduce the quantity of data to download, since you can’t parse CSV or JSON data without downloading the whole files right ? ^^ However we could explore this case-by-case I guess | **Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets. | 38 | Allow downloading just some columns of a dataset
**Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets.
In the general case you can’t always reduce the quantity of data to download, since you can’t parse CSV or JSON data without downloading the whole files right ? ^^ However we could explore this case-by-case I guess | [
-0.19966447353363037,
-0.058673374354839325,
-0.14872361719608307,
0.04141662269830704,
0.21505366265773773,
0.34039875864982605,
-0.003291431814432144,
0.47488564252853394,
0.3685281574726105,
0.411948561668396,
-0.11384052783250809,
0.03416605293750763,
-0.11214350908994675,
0.5283212065696716,
-0.01724967733025551,
-0.2846945524215698,
-0.17768540978431702,
0.4532848298549652,
-0.07281887531280518,
-0.02641008049249649,
-0.2853779196739197,
-0.36768460273742676,
-0.011091552674770355,
-0.12320628762245178,
-0.0031555783934891224,
-0.0838266983628273,
0.10432648658752441,
-0.11695616692304611,
-0.5269497036933899,
-0.1669292151927948,
-0.015786167234182358,
0.06916797161102295,
0.22514241933822632,
-0.28711456060409546,
-0.00010571249731583521,
-0.1874886453151703,
0.040748510509729385,
-0.07910069078207016,
-0.2802002429962158,
-0.3393542170524597,
-0.042484331876039505,
-0.39528268575668335,
0.25083813071250916,
-0.36639633774757385,
-0.012032225728034973,
-0.14799365401268005,
-0.11009936034679413,
-0.028483064845204353,
0.19321906566619873,
0.19508512318134308,
0.28093913197517395,
0.1784987449645996,
-0.15893833339214325,
-0.04379335790872574,
0.19600075483322144,
-0.053119778633117676,
-0.31375157833099365,
0.037486813962459564,
0.527691125869751,
0.17835725843906403,
0.19709889590740204,
0.40103083848953247,
-0.10473676025867462,
0.23720884323120117,
0.390652596950531,
0.028716854751110077,
0.13428404927253723,
-0.7510274648666382,
0.3717648386955261,
0.4563058316707611,
0.7961166501045227,
-0.10898976773023605,
-0.319453626871109,
-0.3134711682796478,
0.39859893918037415,
-0.33467939496040344,
-0.27429214119911194,
0.4656340479850769,
-0.4983810484409332,
0.16453732550144196,
-0.3108900785446167,
-0.37806227803230286,
-0.20732291042804718,
0.17741546034812927,
-0.08685455471277237,
-0.10091479122638702,
0.05544674023985863,
0.07236030697822571,
0.2813180088996887,
0.15800312161445618,
0.07427676767110825,
-0.0701591819524765,
0.04716477915644646,
0.4129548668861389,
-0.4457182288169861,
-0.28922227025032043,
-0.1778443157672882,
0.19189399480819702,
0.20110151171684265,
0.4152444005012512,
-0.04763008654117584,
0.00015440955758094788,
-0.09986512362957001,
0.12994521856307983,
0.21900317072868347,
0.04676009714603424,
-0.1241932287812233,
0.17775222659111023,
0.195159450173378,
-0.013343261554837227,
0.17594014108181,
-0.17945197224617004,
0.028431612998247147,
0.16952160000801086,
0.08025887608528137,
0.017183395102620125,
-0.057144153863191605,
-0.15416890382766724,
-0.019572019577026367,
-0.15326708555221558,
0.225589781999588,
0.08275968581438065,
-0.11084630340337753,
0.39510107040405273,
0.08559699356555939,
0.21951022744178772,
-0.08865278959274292,
0.24692082405090332,
0.22981750965118408,
-0.41243866086006165,
-0.10136891901493073,
0.2159624993801117,
0.08529148995876312,
-0.05437111109495163,
0.3871874511241913,
-0.2922373414039612,
0.21191464364528656,
-0.015085102990269661,
-0.04504431039094925,
-0.030334340408444405,
0.28695788979530334,
-0.3806704580783844,
0.2664474844932556,
0.3461052477359772,
0.06700871884822845,
0.0968984067440033,
0.1377411186695099,
0.09709116816520691,
-0.45377117395401,
0.40222492814064026,
-0.3259863555431366,
-0.33397382497787476,
0.02589109167456627,
0.215933695435524,
0.001431712880730629,
-0.0025804564356803894,
-0.227428138256073,
0.14227807521820068,
-0.458403617143631,
0.137770414352417,
0.11622655391693115,
0.09037993103265762,
-0.08117900043725967,
-0.24045394361019135,
0.08960632979869843,
0.28897565603256226,
-0.1523382067680359,
-0.17765533924102783,
-0.006288979202508926,
-0.22972485423088074,
0.061670370399951935,
0.19182386994361877,
-0.3781859278678894,
0.039095453917980194,
0.039774954319000244,
0.02780243754386902,
0.524000883102417,
-0.26203060150146484,
-0.19175684452056885,
0.18705469369888306,
-0.06010444462299347,
0.09903518110513687,
0.13090096414089203,
0.5619223713874817,
0.38711094856262207,
0.19945620000362396,
-0.27009785175323486,
0.4837493300437927,
0.04678168147802353,
0.042185671627521515,
0.17884333431720734,
-0.360834538936615,
0.12347251921892166,
0.2743842899799347,
0.03587670251727104,
0.46409955620765686,
0.03906407952308655,
-0.17909851670265198,
0.26259714365005493,
-0.3063846528530121,
0.13551202416419983,
0.13646522164344788,
0.08151869475841522,
0.03936118632555008,
-0.038085419684648514,
-0.22504481673240662,
-0.5032004117965698,
0.23754769563674927,
0.25280874967575073,
-0.21427977085113525,
0.04581819474697113,
-0.3834240436553955,
-0.22119411826133728,
-0.11995908617973328,
0.22148387134075165,
-0.1315993070602417,
0.06272181123495102,
-0.3262263834476471,
0.1485990434885025,
-0.09244463592767715,
-0.3908640146255493,
0.3399451971054077,
-0.2262086421251297,
0.2612992823123932,
0.12600359320640564,
-0.05130936577916145,
0.31935206055641174,
0.19974195957183838,
0.12314842641353607,
-0.13077107071876526,
0.10993779450654984,
0.1385975182056427,
0.11155111342668533,
0.10325295478105545,
0.0778302550315857,
0.14249667525291443,
-0.16340845823287964,
0.19310054183006287,
0.054242536425590515,
0.24783939123153687,
0.17798539996147156,
0.04380311071872711,
0.24640598893165588,
-0.05459973216056824,
-0.38119661808013916,
0.18646594882011414,
-0.08394810557365417,
0.33849239349365234,
0.16275562345981598,
0.09481853246688843,
0.19902868568897247,
-0.21997877955436707,
-0.09820646792650223,
-0.24097299575805664,
0.18861405551433563,
0.0330105721950531,
0.06687833368778229,
-0.07837295532226562,
-0.35797515511512756,
-0.14632391929626465,
0.10505558550357819,
0.08277443051338196,
0.026712264865636826,
0.282115638256073,
-0.12944573163986206,
0.18480724096298218,
0.2812848389148712,
0.2381567507982254,
0.35341504216194153,
0.30481618642807007,
0.019425053149461746,
0.10704278200864792,
0.20254792273044586,
-0.05455351248383522,
0.14407038688659668,
0.029954124242067337,
-0.025793278589844704,
-0.003350544720888138,
0.07582946121692657,
0.04870247095823288,
-0.12433343380689621,
-0.0680662989616394,
-0.018128182739019394,
0.060445018112659454,
0.05003713443875313,
-0.2773137092590332,
-0.3101756274700165,
-0.37978893518447876,
0.21761921048164368,
0.09209027141332626,
-0.04724089428782463,
-0.12517887353897095,
0.01992117427289486,
0.2544596195220947,
-0.25262799859046936,
-0.12584781646728516,
-0.5875610113143921,
0.4598289132118225,
-0.19862791895866394,
-0.11948022991418839,
-0.0007171481847763062,
-0.0015868274495005608,
0.23166418075561523,
0.1299726814031601,
-0.2198462039232254,
-0.038845568895339966,
0.5299034118652344,
-0.047670621424913406,
0.08509910851716995,
-0.45980304479599,
-0.23894736170768738,
0.11495564132928848,
0.022411804646253586,
-0.18182456493377686,
0.0131339430809021,
0.5021284222602844,
0.06273011118173599,
0.034865234047174454,
0.032882630825042725,
0.04356486350297928,
0.08776750415563583,
-0.1100429892539978,
0.24810512363910675,
0.10303235799074173,
-0.15372036397457123,
-0.23443549871444702,
-0.5542617440223694,
-0.4215824604034424,
0.4255754351615906,
0.31031009554862976,
0.26305487751960754,
0.12653928995132446,
0.09930218011140823,
-0.4215116798877716,
-0.1418033093214035,
0.13300721347332,
-0.07729104161262512,
-0.16137027740478516,
0.40231385827064514,
-0.0803542211651802,
-0.325331449508667,
0.09095321595668793,
0.11203065514564514,
-0.1259097456932068,
0.4337971806526184,
-0.33632391691207886,
-0.2800571918487549,
-0.338014155626297,
0.17545247077941895,
-0.3814903497695923,
0.17290453612804413,
0.18779465556144714,
-0.11635565757751465,
-0.05065467208623886,
0.12691468000411987,
0.049878593534231186,
-0.36775460839271545,
-0.03138035535812378,
-0.17458099126815796,
-0.04276067018508911,
0.25259217619895935,
0.0016666799783706665,
0.11509205400943756,
-0.10575573146343231,
0.12433761358261108,
0.28445377945899963,
-0.20323090255260468,
0.39810872077941895,
-0.17494335770606995,
-0.2757384181022644,
0.019083291292190552,
-0.22474297881126404,
-0.12030906230211258,
0.032625339925289154,
0.09264104813337326,
-0.07834328711032867,
-0.3940020799636841,
-0.005044147372245789,
-0.10104036331176758,
-0.11265420913696289,
0.23214410245418549,
0.10858292132616043,
0.31659048795700073,
0.14995220303535461,
0.1473153829574585,
-0.2993370592594147,
-0.1794399619102478,
-0.02354062721133232,
0.29371821880340576,
0.3279194235801697,
-0.1367773860692978,
-0.2699216306209564,
0.03938532620668411,
-0.5046815276145935,
0.08878142386674881,
-0.06464733183383942,
-0.08765752613544464,
0.017063643783330917,
-0.06182674691081047,
0.18950513005256653,
0.3106634318828583,
0.45603471994400024,
-0.10734223574399948,
-0.08243757486343384,
-0.035091765224933624,
-0.202464759349823,
-0.43037766218185425,
0.09161736071109772,
-0.06743256747722626,
-0.02113514393568039,
-0.11023038625717163,
0.5035962462425232,
-0.17800289392471313,
-0.02456624060869217,
0.2269478142261505,
0.37291207909584045,
-0.12029494345188141,
-0.12162477523088455,
0.027360234409570694,
-0.06913905590772629,
-0.492524653673172,
-0.10357189923524857,
0.1136959120631218,
0.06872987002134323,
-0.06696828454732895,
0.049099456518888474,
-0.1266954243183136,
0.117741160094738,
0.04478769749403,
0.1336037665605545,
0.10530222952365875,
0.18637388944625854,
0.17054526507854462,
0.0011825338006019592,
0.036910004913806915,
-0.3192826807498932,
0.4329081177711487,
-0.08926528692245483,
-0.5262066721916199,
-0.19723749160766602,
-0.20299038290977478,
0.14775043725967407,
0.2695157825946808,
-0.1805211901664734,
0.4772551655769348,
-0.3016815185546875,
0.16113242506980896,
-0.4608716666698456,
0.02624501846730709,
0.057238057255744934,
-0.1946713626384735,
-0.17169344425201416,
-0.4157523512840271,
0.5255460739135742,
0.1235160231590271,
-0.19393151998519897,
0.16954322159290314,
0.016441158950328827,
-0.1415693759918213,
-0.000635326374322176,
0.18898871541023254,
0.921210527420044,
-0.2020171731710434,
0.2350064218044281,
-0.1643618643283844,
-0.35439252853393555,
0.7307135462760925,
-0.147212952375412,
0.20918449759483337,
-0.05281735584139824,
-0.47145748138427734,
-0.1482485681772232,
-0.06839519739151001,
0.06259393692016602,
0.18170203268527985,
-0.02918316423892975,
0.20749357342720032,
-0.24150747060775757,
0.3036032021045685,
0.062359996140003204,
0.29214590787887573,
-0.44677239656448364,
-0.4415416419506073,
-0.193813756108284,
0.20102158188819885,
-0.08501054346561432,
0.30764684081077576,
0.004707504063844681,
0.08134728670120239,
-0.035889800637960434,
-0.14904458820819855,
-0.16481547057628632,
-0.007138732820749283,
-0.08321715891361237,
-0.06370004266500473,
-0.1361037790775299,
-0.09021341055631638,
0.02570446953177452,
0.12034009397029877,
0.06931401789188385,
0.2834283113479614,
-0.2037040740251541,
0.0715603157877922,
-0.1244804784655571,
0.03150719776749611,
-0.1346413642168045,
0.16948191821575165,
-0.11002472043037415,
-0.13353890180587769,
-0.10866858810186386,
0.3051583170890808,
-0.09792757779359818,
-0.2641217112541199,
-0.1535193920135498,
0.20905449986457825,
0.2678415775299072,
-0.2087872326374054,
-0.3783009648323059,
-0.15647178888320923,
0.1372300535440445,
-0.04570557549595833,
0.1721971482038498,
0.10442513227462769,
0.010449022985994816,
0.08842053264379501,
0.06833693385124207,
-0.26154762506484985,
-0.08191713690757751,
0.45299550890922546,
0.1298067718744278,
-0.09337565302848816,
0.32595574855804443,
-0.1844058334827423,
-0.29045188426971436,
-0.283285528421402,
-0.13788431882858276,
-0.0703294426202774,
-0.2331424355506897,
0.09648540616035461,
0.054191794246435165,
0.0005965679883956909,
-0.4370507597923279,
0.26822394132614136,
0.08083894848823547,
-0.019530408084392548,
-0.02372901514172554,
-0.40233880281448364,
-0.22356519103050232,
0.2504824995994568,
0.1092066615819931,
0.19957323372364044,
-0.1833312213420868,
-0.12172193825244904,
-0.06442280113697052,
0.1272910237312317,
-0.33953917026519775,
-0.0071144383400678635,
-0.029888158664107323,
0.140480637550354,
0.6055705547332764,
0.2988465130329132,
-0.10297887772321701,
-0.08794592320919037,
0.11977346241474152,
0.047903068363666534,
-0.007144421339035034,
-0.25851917266845703,
-0.16745908558368683,
0.08851765841245651,
-0.09876107424497604,
-0.043241724371910095,
0.057374339550733566,
-0.3592926859855652,
-0.19246667623519897,
-0.10714401304721832,
0.2534148097038269,
0.22396552562713623,
0.08247888833284378,
0.08553938567638397,
0.002321407198905945,
0.07615526765584946,
-0.5412724614143372,
0.3335976302623749,
-0.15616394579410553,
0.3488454222679138,
0.1015910655260086,
0.15334439277648926,
0.04125178977847099,
0.13364915549755096,
-0.1961537003517151,
-0.05474161356687546,
0.023777306079864502,
-0.14932313561439514,
0.26535043120384216,
0.28529658913612366,
0.5013866424560547,
0.02187284268438816,
0.20009811222553253,
0.18749502301216125,
-0.2531019151210785,
0.19985826313495636,
0.40661245584487915,
0.2916240096092224,
-0.27152788639068604,
-0.31060412526130676,
-0.10328805446624756,
0.040470413863658905,
0.17745856940746307,
0.1726866513490677,
0.05067456141114235,
0.07946956157684326,
0.15262219309806824,
-0.3202396333217621,
0.45596539974212646,
0.11475183814764023,
0.005364372394979,
0.6628638505935669,
0.1730545312166214,
-0.23516391217708588,
-0.06338081508874893,
0.23953646421432495,
0.02210414409637451,
-0.011542804539203644,
-0.28271719813346863,
0.08162600547075272,
-0.0073639750480651855,
-0.02456263080239296,
-0.0675838366150856,
-0.3940938115119934,
0.14702560007572174,
0.2213200032711029,
-0.004756912589073181,
0.18261368572711945,
-0.2231423556804657,
-0.03412873297929764,
0.3185245990753174,
-0.01809706725180149,
-0.17616349458694458,
0.26968318223953247,
0.13546565175056458,
-0.12749798595905304,
-0.13573138415813446,
-0.26796382665634155,
-0.14615345001220703,
0.15532249212265015,
0.042110294103622437,
-0.5007396340370178,
0.18592020869255066,
0.09181485325098038,
0.007626481354236603,
-0.09064862877130508,
0.06841027736663818,
0.02193993702530861,
0.30443280935287476,
-0.249088317155838,
-0.14726081490516663,
-0.04526062309741974,
0.17847004532814026,
0.3736383318901062,
0.10288002341985703,
-0.02575087919831276,
0.17468887567520142,
0.4547289311885834,
0.11059799045324326,
-0.09232671558856964,
-0.1205846443772316,
-0.11615854501724243,
0.02413848415017128,
0.14093716442584991,
0.2694566249847412,
0.34299394488334656,
0.2386755347251892,
-0.21862946450710297,
0.177886500954628,
-0.1619151085615158,
0.11140044033527374,
-0.6636995077133179,
-0.0012456029653549194,
0.44800865650177,
-0.2747989892959595,
0.006627321243286133,
-0.25249478220939636,
0.035486675798892975,
-0.040637075901031494,
-0.008399572223424911,
-0.04029808193445206,
0.1374635100364685,
0.10583009570837021,
0.10684444010257721,
-0.23129475116729736,
0.2851960062980652,
-0.006372760981321335,
-0.014773353934288025,
-0.3460448682308197,
-0.14746519923210144,
-0.33311203122138977,
-0.16573548316955566,
-0.3783795237541199,
-0.759635329246521,
0.3890358805656433,
0.00020903348922729492,
0.14314550161361694,
0.42399680614471436,
-0.06804189085960388,
0.09066423773765564,
0.05458300560712814,
0.26097750663757324,
-0.010015759617090225,
-0.3526379466056824,
0.17209109663963318,
0.21922555565834045,
-0.01708640716969967,
-0.39055153727531433,
0.2791985273361206,
0.12855051457881927,
0.04195354878902435,
-0.06922010332345963,
0.011906072497367859,
0.003922618925571442,
0.13349542021751404,
0.6535144448280334,
-0.11360043287277222,
0.19732408225536346,
-0.14207497239112854,
0.09501219540834427,
-0.1230449378490448,
0.028517400845885277,
-0.21068906784057617,
0.07048574090003967,
0.18924500048160553,
-0.012448493391275406,
-0.16407962143421173,
0.17092017829418182,
-0.20071916282176971,
0.4492739140987396,
0.04866421967744827,
-0.093721404671669,
-0.02228095382452011,
-0.04358025640249252,
0.22243815660476685,
0.0064095365814864635,
0.05463581159710884,
0.1451975405216217,
-0.2036639153957367,
-0.2057880312204361,
-0.16087719798088074,
-0.3361211121082306,
0.5877413749694824,
-0.08232452720403671,
-0.24534934759140015,
0.020833633840084076,
0.4326149821281433,
0.006696343421936035,
0.12399411201477051,
-0.3459143042564392,
0.12831267714500427,
0.3124191164970398,
-0.23515251278877258,
-0.07817938923835754,
0.4732958972454071,
0.021628007292747498,
-0.1925162971019745,
-0.17878001928329468,
0.23175229132175446,
-0.00926293432712555,
-0.033656757324934006,
-0.34440308809280396,
-0.4345993399620056
] |
https://github.com/huggingface/datasets/issues/4114 | Allow downloading just some columns of a dataset | Actually for csv pandas has `usecols` which allows loading a subset of columns in a more efficient way afaik, but yes, you're right this might be more complex than I thought. | **Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets. | 31 | Allow downloading just some columns of a dataset
**Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets.
Actually for csv pandas has `usecols` which allows loading a subset of columns in a more efficient way afaik, but yes, you're right this might be more complex than I thought. | [
-0.1404869556427002,
-0.09626609832048416,
-0.12970878183841705,
0.06822144240140915,
0.17431029677391052,
0.37977004051208496,
0.1323048621416092,
0.4191707670688629,
0.38333025574684143,
0.3452168107032776,
-0.1784936785697937,
0.07007282227277756,
-0.1091383621096611,
0.4753877520561218,
-0.004814109764993191,
-0.2822032570838928,
-0.18809640407562256,
0.4410915672779083,
-0.08419983088970184,
-0.005485158413648605,
-0.36046653985977173,
-0.33013153076171875,
-0.024850264191627502,
-0.0363982617855072,
-0.09045396745204926,
-0.1158510372042656,
-0.013976994901895523,
-0.07426165789365768,
-0.31285935640335083,
-0.18288326263427734,
0.05734650790691376,
0.09284753352403641,
0.2219230681657791,
-0.16292425990104675,
-0.00010156274947803468,
-0.17923003435134888,
0.01993807777762413,
-0.10066185146570206,
-0.2738938629627228,
-0.3247228264808655,
-0.0002825520932674408,
-0.3091633915901184,
0.19525881111621857,
-0.4178980886936188,
0.021847974509000778,
-0.13067609071731567,
-0.045969992876052856,
-0.06348897516727448,
0.1699274480342865,
0.13762882351875305,
0.31022828817367554,
0.18656465411186218,
-0.20023168623447418,
-0.12602467834949493,
0.18936580419540405,
-0.1608753502368927,
-0.23929399251937866,
0.03619726747274399,
0.4742221236228943,
0.07854222506284714,
0.2130541354417801,
0.4555201828479767,
-0.10798021405935287,
0.18879693746566772,
0.4172191619873047,
0.10611528158187866,
0.13207653164863586,
-0.6694967746734619,
0.3297439217567444,
0.4702816605567932,
0.7551145553588867,
-0.029485762119293213,
-0.35872215032577515,
-0.3266063630580902,
0.3125309944152832,
-0.3060212731361389,
-0.2684096395969391,
0.4221596121788025,
-0.395051509141922,
0.14224354922771454,
-0.20371708273887634,
-0.2538115680217743,
-0.18837255239486694,
0.08704138547182083,
-0.08893182873725891,
-0.10714791715145111,
0.04117582365870476,
0.06511154770851135,
0.32288622856140137,
0.17333275079727173,
0.05008402839303017,
-0.1375391185283661,
0.08052296936511993,
0.41141068935394287,
-0.43379712104797363,
-0.22365103662014008,
-0.09338361769914627,
0.1557481586933136,
0.05559641867876053,
0.3473796844482422,
-0.0016220519319176674,
-0.018699489533901215,
-0.19495202600955963,
0.19857874512672424,
0.19701950252056122,
0.04054368659853935,
-0.21867358684539795,
0.16121917963027954,
0.24956852197647095,
-0.07141588628292084,
0.12467615306377411,
-0.19900372624397278,
-0.020144566893577576,
0.1728302240371704,
0.09835247695446014,
-0.037419553846120834,
-0.042260169982910156,
-0.10445062816143036,
-0.13163474202156067,
-0.13124926388263702,
0.2893151640892029,
0.13329757750034332,
-0.06621108204126358,
0.5121498107910156,
-0.09154575318098068,
0.15035763382911682,
-0.039589978754520416,
0.17573004961013794,
0.21333204209804535,
-0.24208569526672363,
-0.12249305099248886,
0.24799111485481262,
0.12579169869422913,
-0.07479557394981384,
0.3023374676704407,
-0.3060331344604492,
0.16068799793720245,
-0.1342553347349167,
0.03975887969136238,
0.03105207532644272,
0.17852340638637543,
-0.31790798902511597,
0.26930370926856995,
0.28854167461395264,
0.09441056847572327,
0.037796758115291595,
0.1855645626783371,
0.020399637520313263,
-0.4404684007167816,
0.28486377000808716,
-0.31524693965911865,
-0.3366398513317108,
0.02622944489121437,
0.24633504450321198,
0.03707405552268028,
-0.10055758059024811,
-0.19527927041053772,
0.12948934733867645,
-0.46429696679115295,
0.19565202295780182,
0.05935872346162796,
0.17756573855876923,
-0.09716659784317017,
-0.18338941037654877,
-0.00692277867347002,
0.3579328656196594,
-0.12959007918834686,
-0.08331120759248734,
0.061549071222543716,
-0.10127575695514679,
0.040320854634046555,
0.1371179074048996,
-0.3107856512069702,
-0.009905904531478882,
0.0061140526086091995,
-0.03973570838570595,
0.5071418285369873,
-0.3057454824447632,
-0.09812529385089874,
0.1643051952123642,
-0.04219386354088783,
0.12464938312768936,
0.15475739538669586,
0.5718641877174377,
0.35910364985466003,
0.1409699022769928,
-0.225592702627182,
0.4853980541229248,
0.08192010968923569,
0.07792618870735168,
0.21753810346126556,
-0.327361136674881,
0.12523888051509857,
0.28363528847694397,
0.017884008586406708,
0.44929367303848267,
0.02198866754770279,
-0.24081569910049438,
0.2662401795387268,
-0.29959410429000854,
0.10033927857875824,
0.046779923141002655,
0.08251650631427765,
0.17977659404277802,
-0.03527523949742317,
-0.2427661120891571,
-0.4384414553642273,
0.31928136944770813,
0.25742676854133606,
-0.16909106075763702,
0.03929080441594124,
-0.4964771270751953,
-0.2772657871246338,
-0.09185393899679184,
0.1348324567079544,
-0.12253209948539734,
0.08633515238761902,
-0.22988012433052063,
0.20997457206249237,
-0.11451214551925659,
-0.3413808047771454,
0.33780527114868164,
-0.23896855115890503,
0.18749721348285675,
0.15456946194171906,
-0.09193318337202072,
0.3096882998943329,
0.2662404179573059,
0.16609308123588562,
-0.027093783020973206,
0.0926504135131836,
0.12881633639335632,
0.10202620923519135,
0.17088589072227478,
0.02871255949139595,
0.14421695470809937,
-0.17552411556243896,
0.11184448003768921,
0.004811633378267288,
0.2726876139640808,
0.07940815389156342,
0.047419317066669464,
0.3128719627857208,
-0.030572786927223206,
-0.4064702093601227,
0.262719988822937,
-0.07755611836910248,
0.32185906171798706,
0.22125329077243805,
0.10523632913827896,
0.20425410568714142,
-0.14927524328231812,
-0.03654861822724342,
-0.24243006110191345,
0.08399225771427155,
0.020468248054385185,
0.06691098213195801,
-0.07505547255277634,
-0.4275200068950653,
-0.07478078454732895,
0.11169397830963135,
0.10739994049072266,
0.005229536443948746,
0.2092672884464264,
-0.05072235316038132,
0.23778516054153442,
0.2704004943370819,
0.1879287213087082,
0.30657273530960083,
0.33760690689086914,
-0.04811551049351692,
0.0661676749587059,
0.07893640547990799,
-0.07852815091609955,
0.2067538946866989,
-0.0011083632707595825,
0.0037026016507297754,
-0.13335007429122925,
0.06510517001152039,
0.04570162296295166,
-0.12476260215044022,
-0.08737809956073761,
-0.03583064675331116,
0.08157356083393097,
0.01771565154194832,
-0.16874293982982635,
-0.25660887360572815,
-0.37790319323539734,
0.20186634361743927,
0.073415108025074,
0.01141742616891861,
-0.17158645391464233,
-0.008188039064407349,
0.2552497982978821,
-0.25898346304893494,
-0.08094989508390427,
-0.614496111869812,
0.48613953590393066,
-0.13849200308322906,
-0.09259462356567383,
0.05146769434213638,
-0.09453733265399933,
0.1949578821659088,
0.17327553033828735,
-0.1683417707681656,
-0.046475209295749664,
0.6213734149932861,
-0.0034421999007463455,
0.15655376017093658,
-0.48368316888809204,
-0.2304193079471588,
0.07070983946323395,
-0.017924100160598755,
-0.1738736927509308,
0.0011399760842323303,
0.44680410623550415,
0.02851555496454239,
0.010252091102302074,
0.044598110020160675,
-0.00406290777027607,
0.08093516528606415,
-0.10665678232908249,
0.2587306499481201,
-0.03511137142777443,
-0.11491802334785461,
-0.24426445364952087,
-0.5867373943328857,
-0.4411202073097229,
0.4522336721420288,
0.2899308502674103,
0.24834594130516052,
0.12388812750577927,
0.06609068810939789,
-0.3185979425907135,
-0.0628754273056984,
0.19104522466659546,
-0.17639029026031494,
-0.13143190741539001,
0.46994346380233765,
-0.11335206031799316,
-0.3877003788948059,
0.08915787935256958,
0.05004177987575531,
-0.12392707169055939,
0.2936657667160034,
-0.27871882915496826,
-0.30956777930259705,
-0.3658040463924408,
0.20777839422225952,
-0.28289276361465454,
0.23689554631710052,
0.16537444293498993,
-0.09749408811330795,
-0.09033557027578354,
0.10354021936655045,
0.09274229407310486,
-0.30642926692962646,
-0.065160371363163,
-0.24538648128509521,
-0.0007919427007436752,
0.18654489517211914,
-0.02425101026892662,
0.1490328162908554,
-0.14403103291988373,
0.09791408479213715,
0.31983932852745056,
-0.2806699573993683,
0.44200417399406433,
-0.15779858827590942,
-0.3247584402561188,
-0.033137544989585876,
-0.2587904632091522,
-0.0688585638999939,
0.044873688369989395,
0.06236066669225693,
-0.0719178095459938,
-0.43889179825782776,
0.10931281745433807,
-0.11438267678022385,
-0.10582730919122696,
0.1895483285188675,
0.04690299928188324,
0.249554842710495,
0.18586821854114532,
0.14976978302001953,
-0.36105096340179443,
-0.13367441296577454,
-0.0031506544910371304,
0.27683237195014954,
0.3747170567512512,
-0.20789791643619537,
-0.2792057693004608,
0.010517705231904984,
-0.4593796730041504,
0.18563374876976013,
0.006836471147835255,
-0.1297476440668106,
0.09546181559562683,
-0.11966636031866074,
0.16128355264663696,
0.24475759267807007,
0.5265992283821106,
-0.07577983289957047,
-0.10593833029270172,
-0.04910680651664734,
-0.2887763977050781,
-0.4179532527923584,
0.08927126228809357,
-0.07219219207763672,
-0.04281794652342796,
-0.17581622302532196,
0.4918929636478424,
-0.17059379816055298,
-0.037410277873277664,
0.2790164351463318,
0.27780330181121826,
-0.25840818881988525,
-0.20881512761116028,
-0.07562325149774551,
-0.067782461643219,
-0.46421918272972107,
-0.1054873988032341,
0.08301026374101639,
0.09546367079019547,
-0.10360755771398544,
0.06008550897240639,
-0.1530895233154297,
0.09487490355968475,
0.13191281259059906,
0.2095823436975479,
0.08131223917007446,
0.22332581877708435,
0.20306330919265747,
0.021400999277830124,
0.0906313955783844,
-0.3222387433052063,
0.46923553943634033,
-0.23318010568618774,
-0.4656503200531006,
-0.1907200813293457,
-0.18665295839309692,
0.21540431678295135,
0.3196643888950348,
-0.13555492460727692,
0.46228718757629395,
-0.3267500102519989,
0.0802505761384964,
-0.5119747519493103,
0.034849874675273895,
0.07008744031190872,
-0.1085180938243866,
-0.08876501768827438,
-0.5403650999069214,
0.6150886416435242,
0.12808001041412354,
-0.2044982612133026,
0.19539180397987366,
0.07389096915721893,
-0.13641217350959778,
0.031101170927286148,
0.13134296238422394,
0.8992693424224854,
-0.2191230207681656,
0.3029303550720215,
-0.07229779660701752,
-0.2853289842605591,
0.721099853515625,
-0.03165343776345253,
0.17728453874588013,
-0.0891958475112915,
-0.4515852630138397,
-0.1515854001045227,
-0.01797495037317276,
0.010312236845493317,
0.1433987021446228,
-0.044408008456230164,
0.20193812251091003,
-0.17308050394058228,
0.3630093038082123,
0.05791199207305908,
0.27008071541786194,
-0.4766753315925598,
-0.5160660147666931,
-0.3072182238101959,
0.22505789995193481,
0.04493745416402817,
0.2581127882003784,
-0.028779352083802223,
0.06480392068624496,
-0.10006113350391388,
-0.09346215426921844,
-0.10902296751737595,
0.010604098439216614,
-0.020325984805822372,
0.004007061943411827,
-0.10146762430667877,
-0.0460410974919796,
-0.04964936524629593,
0.1054154485464096,
0.07850874215364456,
0.22972537577152252,
-0.16187353432178497,
0.11149926483631134,
-0.13933131098747253,
0.03839858993887901,
-0.1716194897890091,
0.07588812708854675,
0.02981089986860752,
-0.11418061703443527,
-0.09815400093793869,
0.38189202547073364,
-0.12638887763023376,
-0.3108638525009155,
-0.1217084527015686,
0.26778143644332886,
0.20021231472492218,
-0.14114946126937866,
-0.43070220947265625,
-0.16409021615982056,
0.05173816159367561,
-0.10398589074611664,
0.19260598719120026,
0.04313176870346069,
-0.026782309636473656,
0.04393952712416649,
0.11562652885913849,
-0.22363708913326263,
-0.05265382304787636,
0.40433943271636963,
0.0509255975484848,
-0.026163363829255104,
0.26479971408843994,
-0.1770733892917633,
-0.29543066024780273,
-0.2421983778476715,
-0.20933544635772705,
-0.09651167690753937,
-0.19123204052448273,
0.16278806328773499,
0.0726281926035881,
-0.04992213100194931,
-0.45034223794937134,
0.308877170085907,
0.12741917371749878,
-0.04306832700967789,
-0.031044967472553253,
-0.40380847454071045,
-0.23360714316368103,
0.18631766736507416,
0.1104915589094162,
0.2646429240703583,
-0.15451252460479736,
-0.057343948632478714,
-0.1156093180179596,
0.12218596786260605,
-0.4018086791038513,
-0.04191526025533676,
-0.053591690957546234,
0.13569597899913788,
0.5670045614242554,
0.26331591606140137,
-0.04174678027629852,
-0.1089308112859726,
0.1618725061416626,
0.08605686575174332,
0.0010138759389519691,
-0.3018118143081665,
-0.19037026166915894,
0.08077491819858551,
-0.1034398302435875,
-0.08679172396659851,
0.03043656423687935,
-0.3483222723007202,
-0.23996788263320923,
-0.1227700263261795,
0.23748505115509033,
0.25744888186454773,
-0.017389580607414246,
-0.013201650232076645,
-0.0581640861928463,
0.033500950783491135,
-0.4589950442314148,
0.36558571457862854,
-0.20635876059532166,
0.4016011953353882,
0.10858310759067535,
0.12840786576271057,
-0.0950402095913887,
0.09049247205257416,
-0.05960121005773544,
-0.0017804056406021118,
-0.021188028156757355,
-0.19111841917037964,
0.30200591683387756,
0.2536105215549469,
0.41718584299087524,
0.07827882468700409,
0.24268341064453125,
0.1843842715024948,
-0.18934908509254456,
0.21360279619693756,
0.4176364541053772,
0.3200116455554962,
-0.3385118544101715,
-0.2538255453109741,
-0.16680851578712463,
-0.034900132566690445,
0.25336283445358276,
0.27377089858055115,
0.07165063917636871,
0.07298173010349274,
0.10566173493862152,
-0.2612222731113434,
0.4398866593837738,
0.08141627907752991,
-0.019103534519672394,
0.5722507238388062,
0.19464142620563507,
-0.15337716042995453,
0.013614545576274395,
0.2780253291130066,
0.020413152873516083,
0.02618306875228882,
-0.24125248193740845,
0.03603096678853035,
-0.04168129712343216,
-0.012670058757066727,
-0.09003230184316635,
-0.38477715849876404,
0.21100695431232452,
0.13305284082889557,
-0.0490800142288208,
0.24791088700294495,
-0.15183570981025696,
0.04296562075614929,
0.13452200591564178,
0.03627179563045502,
-0.1941823661327362,
0.3332957327365875,
0.11176153272390366,
-0.1526338756084442,
-0.10441030561923981,
-0.2779540419578552,
-0.14302749931812286,
0.18224750459194183,
0.08992379903793335,
-0.4888819456100464,
0.13555756211280823,
0.010561652481555939,
0.06754450500011444,
-0.09281628578901291,
0.05981221795082092,
-0.030193932354450226,
0.45964285731315613,
-0.23865708708763123,
-0.24328933656215668,
0.021877020597457886,
0.15076828002929688,
0.37516656517982483,
0.09566953033208847,
0.04106670990586281,
0.1899901181459427,
0.34512436389923096,
0.09746943414211273,
-0.12144844233989716,
-0.13018174469470978,
-0.1028478816151619,
0.036911483854055405,
0.10898233205080032,
0.18313664197921753,
0.4051472544670105,
0.25048765540122986,
-0.2623710632324219,
0.20898805558681488,
-0.12215086817741394,
0.18853400647640228,
-0.6463207006454468,
-0.020025908946990967,
0.45990732312202454,
-0.23933973908424377,
-0.02362864837050438,
-0.11465726047754288,
0.007859311997890472,
-0.033797312527894974,
0.003540845587849617,
-0.1014619767665863,
0.1840299665927887,
0.08331114053726196,
0.1316833347082138,
-0.09366168081760406,
0.28773707151412964,
0.04407310485839844,
0.03579544275999069,
-0.28817930817604065,
-0.07340380549430847,
-0.46630972623825073,
-0.14909246563911438,
-0.32652032375335693,
-0.7231792211532593,
0.31054869294166565,
0.016767805442214012,
0.1164783462882042,
0.3357918858528137,
-0.06304609775543213,
0.07866159081459045,
0.10782700031995773,
0.22044157981872559,
-0.033989448100328445,
-0.3500291109085083,
0.16386330127716064,
0.17097152769565582,
-0.020659808069467545,
-0.45095914602279663,
0.21862095594406128,
0.08810343593358994,
0.09161660820245743,
-0.06803277879953384,
0.0129561647772789,
-0.08672493696212769,
0.16701166331768036,
0.6264969110488892,
-0.15994226932525635,
0.2066715657711029,
-0.15576046705245972,
0.07613559067249298,
-0.10625125467777252,
0.017674224451184273,
-0.17200611531734467,
0.020318128168582916,
0.18107068538665771,
-0.03857710212469101,
-0.13531529903411865,
0.06750752776861191,
-0.19355526566505432,
0.45294439792633057,
0.12275265157222748,
-0.165890634059906,
-0.0044537317007780075,
-0.020663615316152573,
0.13569411635398865,
-0.00329259573481977,
0.05621848627924919,
0.21439248323440552,
-0.23658302426338196,
-0.18935459852218628,
-0.05887091904878616,
-0.3646725118160248,
0.6151258945465088,
-0.10076414793729782,
-0.32085180282592773,
0.06005486100912094,
0.3628326654434204,
0.0644846111536026,
0.17400208115577698,
-0.2753585875034332,
0.14769703149795532,
0.32139572501182556,
-0.2193928360939026,
-0.05584331601858139,
0.39382150769233704,
-0.027378950268030167,
-0.1696346551179886,
-0.18081338703632355,
0.2130068987607956,
-0.01233813539147377,
-0.05959129333496094,
-0.27179932594299316,
-0.49381357431411743
] |
https://github.com/huggingface/datasets/issues/4114 | Allow downloading just some columns of a dataset | Passing `columns=[...]` to `load_dataset()` in streaming mode does work if the dataset is in Parquet format, but for other formats it's either not possible or not implemented | **Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets. | 27 | Allow downloading just some columns of a dataset
**Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets.
Passing `columns=[...]` to `load_dataset()` in streaming mode does work if the dataset is in Parquet format, but for other formats it's either not possible or not implemented | [
-0.273458331823349,
-0.09920145571231842,
-0.09642118215560913,
0.006191100925207138,
0.26405397057533264,
0.3760797083377838,
0.029598526656627655,
0.3737335801124573,
0.3623078167438507,
0.29276543855667114,
-0.15798048675060272,
0.13655763864517212,
-0.19868899881839752,
0.5473166704177856,
0.027531681582331657,
-0.2957736849784851,
-0.17537501454353333,
0.37117594480514526,
-0.048117563128471375,
-0.03381923586130142,
-0.26749828457832336,
-0.333477258682251,
-0.041304703801870346,
-0.12725956737995148,
0.015286857262253761,
-0.11283501237630844,
0.10731352865695953,
-0.07950969785451889,
-0.46480274200439453,
-0.142035111784935,
0.029854388907551765,
0.11742468178272247,
0.17639808356761932,
-0.22653064131736755,
-0.00010496639151824638,
-0.12757836282253265,
0.10783946514129639,
-0.14019475877285004,
-0.36024391651153564,
-0.3532872796058655,
-0.05097959563136101,
-0.26798275113105774,
0.21317188441753387,
-0.30831238627433777,
-0.03536480665206909,
-0.20159274339675903,
-0.07147454470396042,
-0.16003873944282532,
0.09014169126749039,
0.22498399019241333,
0.2813963294029236,
0.2598435878753662,
-0.13624995946884155,
-0.0848497599363327,
0.18347156047821045,
-0.10074834525585175,
-0.2886751890182495,
-0.0005905125290155411,
0.5127390623092651,
0.17610503733158112,
0.18876293301582336,
0.4571540951728821,
-0.11560190469026566,
0.17679114639759064,
0.4349558353424072,
0.06059565022587776,
0.06088680401444435,
-0.6619019508361816,
0.34846749901771545,
0.4249967038631439,
0.7691367864608765,
-0.15345799922943115,
-0.3570394217967987,
-0.3484509587287903,
0.37574413418769836,
-0.374237984418869,
-0.2557261884212494,
0.5089613199234009,
-0.49140262603759766,
0.12035366892814636,
-0.35511913895606995,
-0.3690524101257324,
-0.22765006124973297,
0.12231502681970596,
-0.12022683024406433,
-0.04990428686141968,
0.06468594074249268,
0.11377699673175812,
0.2661999464035034,
0.1710142344236374,
0.0816149041056633,
-0.10762974619865417,
0.0175202377140522,
0.39803117513656616,
-0.48898667097091675,
-0.2290581315755844,
-0.1163889691233635,
0.3263126313686371,
0.14531511068344116,
0.3608880639076233,
0.016084792092442513,
0.00016499683260917664,
-0.15423958003520966,
0.19825327396392822,
0.2250099927186966,
0.02456916868686676,
-0.1523388922214508,
0.18165846168994904,
0.15352164208889008,
0.0420156791806221,
0.1598173975944519,
-0.2430499792098999,
0.06995464861392975,
0.2801762521266937,
0.07284875214099884,
-0.05545540899038315,
-0.051324039697647095,
-0.08452263474464417,
-0.06487557291984558,
-0.11314775794744492,
0.2345457673072815,
0.17027482390403748,
0.009960053488612175,
0.46516987681388855,
0.028225041925907135,
0.20048433542251587,
-0.0951731726527214,
0.240816131234169,
0.23570097982883453,
-0.43476948142051697,
-0.15397661924362183,
0.19010324776172638,
0.10667535662651062,
-0.07754893600940704,
0.32872626185417175,
-0.3952804505825043,
0.2076938897371292,
-0.03364550322294235,
0.06918659061193466,
0.0490485280752182,
0.2099801003932953,
-0.3059895932674408,
0.28099286556243896,
0.3285417854785919,
0.0776931494474411,
0.07536366581916809,
0.21612824499607086,
0.0639951080083847,
-0.38585102558135986,
0.3209562301635742,
-0.27486854791641235,
-0.32089006900787354,
0.08522990345954895,
0.22201372683048248,
0.028385303914546967,
-0.0659383088350296,
-0.23787203431129456,
0.14057181775569916,
-0.5054697394371033,
0.08781608939170837,
0.12572361528873444,
0.06784772872924805,
-0.06917288899421692,
-0.19291673600673676,
0.08730987459421158,
0.24974195659160614,
-0.14244411885738373,
-0.13889779150485992,
0.026400908827781677,
-0.1795480102300644,
0.13415633141994476,
0.08077433705329895,
-0.339069664478302,
-0.084298275411129,
0.020298359915614128,
0.019828587770462036,
0.5252717733383179,
-0.30355527997016907,
-0.08143632858991623,
0.16488145291805267,
-0.0075427331030368805,
0.14482662081718445,
0.14749681949615479,
0.5069706439971924,
0.45624807476997375,
0.21327205002307892,
-0.2461961805820465,
0.510115921497345,
0.05248110368847847,
0.07331634312868118,
0.21437381207942963,
-0.27853989601135254,
0.10033279657363892,
0.2999025881290436,
0.02173188328742981,
0.4439527988433838,
-0.0030665844678878784,
-0.11911436915397644,
0.3038429319858551,
-0.2481020987033844,
0.1289711892604828,
0.10120702534914017,
0.10038332641124725,
0.11559970676898956,
-0.0741940289735794,
-0.22335854172706604,
-0.533921480178833,
0.26938334107398987,
0.35832613706588745,
-0.2179020643234253,
0.031209155917167664,
-0.39284247159957886,
-0.23332718014717102,
-0.04493214190006256,
0.1832743138074875,
-0.1749718338251114,
0.07863189280033112,
-0.18433356285095215,
0.13514256477355957,
-0.06888049840927124,
-0.4267479479312897,
0.4404207170009613,
-0.23794373869895935,
0.25694167613983154,
0.10537651181221008,
-0.060288429260253906,
0.35100257396698,
0.11112035065889359,
0.11694164574146271,
-0.12772595882415771,
0.15064089000225067,
0.19957877695560455,
0.07764759659767151,
0.23980119824409485,
0.07152679562568665,
0.24253754317760468,
-0.2477341592311859,
0.16569767892360687,
0.042312316596508026,
0.21493640542030334,
0.11822579056024551,
0.06372971832752228,
0.2943665683269501,
-0.03860331326723099,
-0.413351833820343,
0.18142719566822052,
-0.10835623741149902,
0.316211998462677,
0.25112634897232056,
0.12791714072227478,
0.21695847809314728,
-0.09387437254190445,
-0.15147745609283447,
-0.21777242422103882,
0.1398993730545044,
-0.05916588380932808,
0.05256957933306694,
-0.19446872174739838,
-0.4845559000968933,
-0.09586917608976364,
0.07729485630989075,
0.15479198098182678,
-0.06515689939260483,
0.19587355852127075,
-0.13842710852622986,
0.21217620372772217,
0.36294591426849365,
0.2508785128593445,
0.33486002683639526,
0.31669577956199646,
0.06147254630923271,
0.12518514692783356,
0.10713224858045578,
-0.06784504652023315,
0.19334079325199127,
0.0188869908452034,
-0.08464421331882477,
-0.0415688082575798,
0.08193136006593704,
-0.026634719222784042,
-0.17863613367080688,
-0.004807382822036743,
0.00026014819741249084,
0.024740349501371384,
-0.025860115885734558,
-0.22190497815608978,
-0.3049063980579376,
-0.4150699973106384,
0.16249074041843414,
0.031929031014442444,
-0.048999037593603134,
-0.18756872415542603,
0.01607486605644226,
0.38382330536842346,
-0.20535197854042053,
-0.10138361155986786,
-0.6138347387313843,
0.497064471244812,
-0.14489583671092987,
-0.07570430636405945,
-0.05593245476484299,
-0.07634691148996353,
0.22795093059539795,
0.14117944240570068,
-0.2935430109500885,
-0.08022487163543701,
0.6088761687278748,
0.06352709978818893,
0.122365802526474,
-0.5016360878944397,
-0.2153109610080719,
0.14147809147834778,
-0.02509220689535141,
-0.15333542227745056,
0.07832814753055573,
0.5243837833404541,
0.07070232182741165,
-0.0015386147424578667,
0.11925897002220154,
-0.03924897685647011,
0.12580758333206177,
-0.09956218302249908,
0.27024462819099426,
0.08670707792043686,
-0.17614556849002838,
-0.19829893112182617,
-0.5254489183425903,
-0.46355220675468445,
0.3206118941307068,
0.2590152323246002,
0.1726623922586441,
0.14704634249210358,
0.02282669022679329,
-0.35547298192977905,
-0.11386312544345856,
0.0925784781575203,
-0.1295330673456192,
-0.2143985629081726,
0.4134572148323059,
-0.12316185235977173,
-0.3339073061943054,
0.12112414836883545,
0.15446721017360687,
-0.08405189216136932,
0.47815972566604614,
-0.2701238691806793,
-0.22753223776817322,
-0.2955816090106964,
0.09227064251899719,
-0.33367761969566345,
0.1357651948928833,
0.16162177920341492,
-0.1557338833808899,
-0.05430401861667633,
-0.0015045814216136932,
0.06622670590877533,
-0.3601072132587433,
-0.010286714881658554,
-0.1310041844844818,
-0.04193536937236786,
0.3068195581436157,
0.009358715265989304,
0.14900262653827667,
-0.09040854871273041,
0.10957367718219757,
0.3568249046802521,
-0.22866448760032654,
0.44386473298072815,
-0.18048906326293945,
-0.3077547252178192,
0.04124101251363754,
-0.21371328830718994,
-0.1689300239086151,
0.0552833117544651,
0.08063767850399017,
-0.07551894336938858,
-0.4335983991622925,
0.118981271982193,
-0.05910325050354004,
-0.08913865685462952,
0.14385868608951569,
0.0817352905869484,
0.3329021632671356,
0.1363648772239685,
0.22060200572013855,
-0.2853989005088806,
-0.21229708194732666,
-0.017978809773921967,
0.2838771641254425,
0.35146841406822205,
-0.0987013429403305,
-0.22199982404708862,
0.06105887517333031,
-0.4402959942817688,
0.08843071758747101,
-0.05718161538243294,
-0.04823681712150574,
-0.07087359577417374,
-0.12139048427343369,
0.1697402000427246,
0.28703954815864563,
0.4565603733062744,
-0.15708158910274506,
-0.023836396634578705,
-0.04046528786420822,
-0.16980764269828796,
-0.4911580979824066,
0.040159162133932114,
-0.11104477941989899,
-0.03200794383883476,
-0.14733275771141052,
0.5009857416152954,
-0.23155969381332397,
0.03338105231523514,
0.1557612121105194,
0.23374757170677185,
-0.161713644862175,
-0.08392743766307831,
-0.04653173312544823,
-0.008053377270698547,
-0.4789716601371765,
-0.0803256407380104,
0.11887574940919876,
0.09580256044864655,
-0.13517168164253235,
0.1067490428686142,
-0.06954730302095413,
0.16043144464492798,
0.02055930346250534,
0.1514573097229004,
0.1673581600189209,
0.19891849160194397,
0.15706124901771545,
0.09044234454631805,
0.11193257570266724,
-0.35678109526634216,
0.4586746096611023,
-0.05520840361714363,
-0.5434953570365906,
-0.1885814368724823,
-0.16290894150733948,
0.1887795329093933,
0.2667199671268463,
-0.17088395357131958,
0.4297336935997009,
-0.22357958555221558,
0.08285260200500488,
-0.51326584815979,
0.10290273278951645,
0.07542578130960464,
-0.2545793950557709,
-0.14706483483314514,
-0.506393313407898,
0.5271404385566711,
0.1095317006111145,
-0.19240783154964447,
0.2812198996543884,
0.018500283360481262,
-0.1756392866373062,
0.03662097826600075,
0.1632593721151352,
0.8727600574493408,
-0.1678503155708313,
0.2167811095714569,
-0.10426708310842514,
-0.4099166989326477,
0.6699251532554626,
-0.12569859623908997,
0.19839362800121307,
-0.0586264505982399,
-0.442608118057251,
-0.17598089575767517,
-0.08027291297912598,
0.09304732084274292,
0.12084677070379257,
-0.06638762354850769,
0.17567019164562225,
-0.20493561029434204,
0.40761616826057434,
0.05160122364759445,
0.20193105936050415,
-0.48484212160110474,
-0.4614265263080597,
-0.29353436827659607,
0.22964033484458923,
-0.1384398639202118,
0.23865146934986115,
-0.0014208555221557617,
0.07185128331184387,
0.04324176535010338,
-0.14891615509986877,
-0.2024049162864685,
0.03430880233645439,
-0.10651738941669464,
-0.10733655095100403,
-0.1151997447013855,
-0.10859963297843933,
-0.04288473725318909,
0.17369043827056885,
-0.0059024617075920105,
0.2098325788974762,
-0.23434844613075256,
0.16856130957603455,
-0.09440156072378159,
0.09478788077831268,
-0.17815084755420685,
0.14978283643722534,
-0.011674514040350914,
-0.11549612879753113,
-0.06440109014511108,
0.39101848006248474,
-0.09362011402845383,
-0.31461918354034424,
-0.14321303367614746,
0.16335678100585938,
0.36433273553848267,
-0.1311463862657547,
-0.3492187559604645,
-0.20319876074790955,
0.17586074769496918,
-0.07997934520244598,
0.16740654408931732,
0.011404730379581451,
-0.05930043384432793,
-0.007725708186626434,
0.07967700064182281,
-0.17322708666324615,
-0.06468929350376129,
0.5221942663192749,
-0.010414276272058487,
-0.022094789892435074,
0.29044240713119507,
-0.10616616904735565,
-0.3235434293746948,
-0.24627408385276794,
-0.20822814106941223,
-0.07812535762786865,
-0.15303854644298553,
0.08135415613651276,
0.06772256642580032,
-0.03153865039348602,
-0.42102792859077454,
0.2743687331676483,
-0.010047055780887604,
-0.0269094780087471,
-0.07119479775428772,
-0.4269730746746063,
-0.20965319871902466,
0.18109044432640076,
0.03611591085791588,
0.22468815743923187,
-0.14377468824386597,
-0.1228397935628891,
-0.0646602138876915,
0.04890275001525879,
-0.35879096388816833,
-0.09106774628162384,
-0.023407360538840294,
0.12043139338493347,
0.5870314836502075,
0.3260727524757385,
-0.03409335017204285,
-0.10563713312149048,
0.12406830489635468,
0.03689289465546608,
-0.024291738867759705,
-0.2514567971229553,
-0.18169298768043518,
0.08337059617042542,
-0.045541323721408844,
-0.05505712330341339,
-0.07684209197759628,
-0.37025022506713867,
-0.2580112814903259,
-0.09976117312908173,
0.3118560314178467,
0.23750042915344238,
0.03913202881813049,
0.03256911411881447,
0.08313561230897903,
0.13106393814086914,
-0.5434015989303589,
0.2695696949958801,
-0.13352254033088684,
0.32684552669525146,
0.11363405734300613,
0.078131303191185,
-0.03917137533426285,
0.06694948673248291,
-0.13185973465442657,
-0.04071458429098129,
0.06278529763221741,
-0.11870413273572922,
0.37126263976097107,
0.23865662515163422,
0.501194417476654,
0.01578431762754917,
0.30558815598487854,
0.1489693820476532,
-0.2320779412984848,
0.14953051507472992,
0.36241307854652405,
0.2881648540496826,
-0.231520414352417,
-0.29148951172828674,
-0.150564044713974,
0.08102726191282272,
0.19540108740329742,
0.10536721348762512,
0.03405890241265297,
0.07602763175964355,
0.06880844384431839,
-0.2593969702720642,
0.4750901162624359,
0.06787329912185669,
0.06917433440685272,
0.6395328640937805,
0.1300821602344513,
-0.13744127750396729,
-0.11533138900995255,
0.2078259140253067,
-0.01031968742609024,
0.017858196049928665,
-0.2519262731075287,
0.1085149273276329,
0.05960666388273239,
-0.09208431839942932,
-0.015906773507595062,
-0.41553449630737305,
0.06102931872010231,
0.12208811193704605,
-0.000041835010051727295,
0.25403091311454773,
-0.20607075095176697,
-0.00746580958366394,
0.29454344511032104,
-0.07239749282598495,
-0.1944715678691864,
0.25542908906936646,
0.13174167275428772,
-0.12669453024864197,
-0.17355014383792877,
-0.29347240924835205,
-0.1400846242904663,
0.21448636054992676,
0.06582923978567123,
-0.40947580337524414,
0.16218921542167664,
0.05127314478158951,
0.08910733461380005,
-0.14634603261947632,
-0.019943904131650925,
-0.005339957773685455,
0.3688197731971741,
-0.22939418256282806,
-0.10827083140611649,
0.012286581099033356,
0.14006516337394714,
0.4677762985229492,
0.07444962859153748,
-0.004971988499164581,
0.17818331718444824,
0.4036264717578888,
0.1389886736869812,
-0.10560153424739838,
-0.11546693742275238,
-0.11716864258050919,
0.05230212211608887,
0.1284899115562439,
0.21259436011314392,
0.40249377489089966,
0.2437019944190979,
-0.19689024984836578,
0.17510724067687988,
-0.14664466679096222,
0.16444766521453857,
-0.588755190372467,
0.0500372014939785,
0.39400020241737366,
-0.1888824701309204,
-0.029485881328582764,
-0.24376046657562256,
-0.00873948261141777,
-0.003720412962138653,
0.0295557864010334,
0.020014185458421707,
0.14382973313331604,
0.09898772835731506,
0.1059892326593399,
-0.09162105619907379,
0.37812235951423645,
-0.02910963073372841,
-0.08007854968309402,
-0.30399519205093384,
-0.1942383348941803,
-0.42457494139671326,
-0.14106881618499756,
-0.3007356524467468,
-0.71053147315979,
0.3600706458091736,
0.00863976962864399,
0.18587137758731842,
0.36049026250839233,
-0.10450564324855804,
0.03323335200548172,
0.03645453602075577,
0.27968788146972656,
-0.029167309403419495,
-0.4472609758377075,
0.20369218289852142,
0.18559931218624115,
-0.033606983721256256,
-0.32297512888908386,
0.25596222281455994,
0.12894819676876068,
0.06952720880508423,
-0.028810665011405945,
-0.01662718877196312,
-0.06829427182674408,
0.06320052593946457,
0.5626920461654663,
-0.18917064368724823,
0.23691870272159576,
-0.11964253336191177,
0.09450774639844894,
-0.13822825253009796,
0.0016131759621202946,
-0.2045389711856842,
0.006101928651332855,
0.08140888810157776,
0.08685861527919769,
-0.08684154599905014,
0.07141994684934616,
-0.26926007866859436,
0.39772897958755493,
0.07362100481987,
-0.20975545048713684,
-0.05187612026929855,
0.016782568767666817,
0.1834070086479187,
0.043507933616638184,
0.02216716855764389,
0.17872664332389832,
-0.22011268138885498,
-0.13426120579242706,
-0.09309931099414825,
-0.4319789707660675,
0.7052102088928223,
-0.1585458517074585,
-0.2909454107284546,
0.03933636099100113,
0.3500925898551941,
0.063918836414814,
0.15713244676589966,
-0.4205804765224457,
0.1967315971851349,
0.25148847699165344,
-0.27265316247940063,
-0.0060930997133255005,
0.39532992243766785,
0.09952233731746674,
-0.11379877477884293,
-0.1736152172088623,
0.20911525189876556,
0.08389417827129364,
-0.026927851140499115,
-0.26891282200813293,
-0.38264763355255127
] |
https://github.com/huggingface/datasets/issues/4114 | Allow downloading just some columns of a dataset | I tried using the `columns=['bambara']` on this dataset `oza75/bambara-tts` which is in parquet, but it does not work. This feature is really useful because sometimes you don't want to download the whole dataset but just a few columns. | **Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets. | 38 | Allow downloading just some columns of a dataset
**Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets.
I tried using the `columns=['bambara']` on this dataset `oza75/bambara-tts` which is in parquet, but it does not work. This feature is really useful because sometimes you don't want to download the whole dataset but just a few columns. | [
-0.17976683378219604,
-0.078118234872818,
-0.049561645835638046,
0.04316640645265579,
0.26091131567955017,
0.322448194026947,
0.07728441059589386,
0.3695638179779053,
0.4142913222312927,
0.3871728181838989,
-0.10462195426225662,
0.212635338306427,
-0.16071240603923798,
0.49858129024505615,
0.007167833857238293,
-0.2811836898326874,
-0.13212910294532776,
0.40000420808792114,
0.05943450331687927,
-0.047878339886665344,
-0.2995483875274658,
-0.30037614703178406,
-0.006672464311122894,
-0.049769848585128784,
0.11279019713401794,
-0.08567003905773163,
-0.0014431960880756378,
-0.14649906754493713,
-0.5203205943107605,
-0.16131816804409027,
0.12641501426696777,
-0.021234873682260513,
0.21545390784740448,
-0.24756482243537903,
-0.00010911127901636064,
-0.11091522127389908,
0.09805763512849808,
-0.12598258256912231,
-0.24709826707839966,
-0.4301310181617737,
-0.05212277173995972,
-0.4000823199748993,
0.313369482755661,
-0.3717954158782959,
-0.08697657287120819,
-0.08355844765901566,
-0.10079517960548401,
-0.1672138124704361,
0.11716385930776596,
0.24167495965957642,
0.23716184496879578,
0.14206013083457947,
-0.17669540643692017,
-0.02185063436627388,
0.35367119312286377,
-0.16404841840267181,
-0.2865380346775055,
-0.09882701933383942,
0.577928364276886,
0.1556190550327301,
0.37386879324913025,
0.3436651825904846,
-0.09187023341655731,
0.20726166665554047,
0.30917811393737793,
0.10277476906776428,
0.1976795792579651,
-0.707878589630127,
0.38867709040641785,
0.3894839584827423,
0.8404266834259033,
-0.13880831003189087,
-0.28782200813293457,
-0.25349387526512146,
0.3716108202934265,
-0.45145583152770996,
-0.21663996577262878,
0.6277341842651367,
-0.3578757643699646,
0.1575571596622467,
-0.29941120743751526,
-0.33496999740600586,
-0.13867706060409546,
0.16531528532505035,
-0.1394418179988861,
-0.032946035265922546,
0.02329448238015175,
0.10138167440891266,
0.1453695446252823,
0.09431588649749756,
0.10404346138238907,
-0.03836384415626526,
0.030831456184387207,
0.44268399477005005,
-0.4665141701698303,
-0.262999564409256,
-0.1847720742225647,
0.2404458224773407,
0.13347256183624268,
0.45479243993759155,
-0.060512445867061615,
-0.03456879407167435,
-0.06415178626775742,
0.24413931369781494,
0.23479634523391724,
-0.0719149112701416,
-0.18152466416358948,
0.26911982893943787,
0.09572719037532806,
0.01987524703145027,
0.15423402190208435,
-0.2831724286079407,
0.03415020555257797,
0.23811830580234528,
0.12021666765213013,
-0.035548076033592224,
-0.010318934917449951,
-0.24349650740623474,
-0.014235223643481731,
-0.07347934693098068,
0.325274258852005,
0.08422136306762695,
-0.06247391179203987,
0.4297088384628296,
0.09090062975883484,
0.1088055968284607,
-0.16803821921348572,
0.3179217576980591,
0.23052744567394257,
-0.5676748752593994,
-0.18348853290081024,
0.22530506551265717,
0.04069165512919426,
-0.11521517485380173,
0.30599579215049744,
-0.17338134348392487,
0.1704205721616745,
0.028463240712881088,
-0.06260071694850922,
0.08822616934776306,
0.18627706170082092,
-0.3901495337486267,
0.24512314796447754,
0.3450545072555542,
0.017968840897083282,
0.08810842782258987,
0.2187688797712326,
0.05203089863061905,
-0.48635798692703247,
0.32702013850212097,
-0.4086829721927643,
-0.27340978384017944,
0.0007805898785591125,
0.14900672435760498,
-0.004782691597938538,
-0.061631783843040466,
-0.3306710124015808,
0.12763595581054688,
-0.4668863117694855,
0.16059274971485138,
0.09992271661758423,
0.09463611245155334,
-0.08086851239204407,
-0.16057297587394714,
0.07881375402212143,
0.21199139952659607,
-0.21523723006248474,
-0.12468555569648743,
0.017003145068883896,
-0.23412016034126282,
0.20235462486743927,
0.10038167238235474,
-0.31806689500808716,
-0.04000386595726013,
0.07562031596899033,
-0.05620748549699783,
0.5545861721038818,
-0.14317774772644043,
-0.11767394840717316,
0.09724477678537369,
-0.02170141041278839,
0.04016270488500595,
0.22689524292945862,
0.36014074087142944,
0.5376499891281128,
0.23298795521259308,
-0.2908531129360199,
0.47739142179489136,
-0.02044208161532879,
0.03377198427915573,
0.17698180675506592,
-0.31638020277023315,
0.21703572571277618,
0.2792532444000244,
-0.008378908038139343,
0.44759613275527954,
0.11757951229810715,
-0.14397664368152618,
0.18963193893432617,
-0.2799791395664215,
0.11828286945819855,
0.1725766658782959,
0.1618877649307251,
0.1275395154953003,
-0.04901010915637016,
-0.28997617959976196,
-0.5138100981712341,
0.2773589789867401,
0.3248777985572815,
-0.18395362794399261,
0.013017453253269196,
-0.31191152334213257,
-0.19898131489753723,
-0.05377081781625748,
0.22963294386863708,
-0.17698773741722107,
0.01551150158047676,
-0.2754726707935333,
0.11451455950737,
-0.140004962682724,
-0.4480624794960022,
0.33204221725463867,
-0.16078326106071472,
0.2639301121234894,
0.18805226683616638,
0.09164728224277496,
0.3477971851825714,
0.09554221481084824,
0.12733110785484314,
-0.1266576051712036,
0.18411585688591003,
0.11431465297937393,
0.0936843678355217,
0.1791645586490631,
0.2037985920906067,
0.1524776965379715,
-0.20903268456459045,
0.20160067081451416,
0.029841559007763863,
0.1606375128030777,
0.10798612236976624,
-0.08754599094390869,
0.26658546924591064,
-0.021117907017469406,
-0.43305203318595886,
0.16599811613559723,
-0.019840162247419357,
0.35714399814605713,
0.14390243589878082,
0.020646410062909126,
0.2617269456386566,
-0.16628415882587433,
-0.07367263734340668,
-0.17645776271820068,
0.1913420557975769,
0.030775414779782295,
-0.06342349201440811,
-0.1288807988166809,
-0.46215692162513733,
-0.14125525951385498,
0.1104319766163826,
0.11736224591732025,
-0.04712360352277756,
0.26059287786483765,
-0.01632973551750183,
0.19193285703659058,
0.2823244035243988,
0.18711555004119873,
0.296032190322876,
0.3331872224807739,
0.00039644166827201843,
0.13515648245811462,
0.1234312504529953,
0.015159007161855698,
0.15491458773612976,
0.009118415415287018,
-0.13033919036388397,
-0.10205928236246109,
0.1682356894016266,
0.026949461549520493,
-0.1284116506576538,
0.0310196690261364,
0.06516772508621216,
0.09310749918222427,
-0.03596185892820358,
-0.2385481297969818,
-0.39731094241142273,
-0.278455913066864,
0.1777825653553009,
0.2713167369365692,
-0.12525910139083862,
-0.07348943501710892,
-0.0380844920873642,
0.2646137475967407,
-0.11043351888656616,
-0.11333917826414108,
-0.6109061241149902,
0.5210219025611877,
-0.20764891803264618,
-0.19157291948795319,
-0.030800698325037956,
-0.11125867068767548,
0.08350755274295807,
0.08730453252792358,
-0.3026553988456726,
0.016653534024953842,
0.49976077675819397,
0.08652722090482712,
0.14564627408981323,
-0.5908530950546265,
-0.21867603063583374,
0.11256968975067139,
-0.022261101752519608,
-0.17355437576770782,
0.11860772222280502,
0.47189754247665405,
0.07207383960485458,
0.030763551592826843,
0.11794565618038177,
-0.014937886036932468,
0.09633737057447433,
-0.06645910441875458,
0.2532387971878052,
0.129328653216362,
-0.1571543961763382,
-0.22393107414245605,
-0.514569103717804,
-0.34437820315361023,
0.2870739996433258,
0.35293060541152954,
0.1729355752468109,
-0.04891533404588699,
-0.021428197622299194,
-0.42098551988601685,
-0.15633311867713928,
0.12936535477638245,
-0.04133756086230278,
-0.2927354872226715,
0.4125843048095703,
-0.031298715621232986,
-0.30024075508117676,
0.13632553815841675,
0.07458031177520752,
-0.08364884555339813,
0.37028276920318604,
-0.3110399544239044,
-0.20811602473258972,
-0.29322338104248047,
-0.045391954481601715,
-0.3424622714519501,
0.23711378872394562,
0.24176332354545593,
-0.18122828006744385,
-0.036887042224407196,
0.07251203060150146,
-0.13691191375255585,
-0.26107296347618103,
0.12107151001691818,
-0.08600302785634995,
-0.06381844729185104,
0.40384843945503235,
-0.02385474368929863,
0.14076125621795654,
-0.1928195357322693,
0.07522866129875183,
0.4188326895236969,
-0.2761867642402649,
0.38687101006507874,
-0.18325355648994446,
-0.2506468594074249,
0.03161957487463951,
-0.13921791315078735,
-0.21816913783550262,
0.07272473722696304,
0.04924333468079567,
-0.2357291430234909,
-0.42152848839759827,
0.011400341987609863,
-0.06557843834161758,
-0.0409683994948864,
0.10498269647359848,
0.11128922551870346,
0.2773807942867279,
0.14426285028457642,
0.07917694002389908,
-0.3248352110385895,
-0.1802954375743866,
0.06719918549060822,
0.22342175245285034,
0.2238645851612091,
-0.14052434265613556,
-0.2807905077934265,
0.10457449406385422,
-0.40890952944755554,
0.10483656823635101,
-0.15285362303256989,
-0.06714580953121185,
-0.07851345837116241,
-0.06477749347686768,
0.22340361773967743,
0.25991296768188477,
0.5295794606208801,
-0.19149167835712433,
0.07439160346984863,
0.018738403916358948,
-0.22109542787075043,
-0.4225471019744873,
-0.029220830649137497,
-0.10975906997919083,
-0.12826843559741974,
-0.17906136810779572,
0.6673521995544434,
-0.25103434920310974,
0.04328799247741699,
0.17526550590991974,
0.22550123929977417,
-0.16337594389915466,
-0.032226212322711945,
-0.09140129387378693,
0.03599835932254791,
-0.42221561074256897,
-0.02779703587293625,
0.07565875351428986,
0.19168145954608917,
0.020307807251811028,
0.17581260204315186,
-0.24970708787441254,
0.11098539084196091,
-0.04087851941585541,
0.18560542166233063,
0.12502898275852203,
0.14987003803253174,
0.2027716338634491,
0.019128041341900826,
0.12644235789775848,
-0.34762513637542725,
0.4933266043663025,
-0.1576457917690277,
-0.5610488057136536,
-0.09529691934585571,
-0.18590685725212097,
0.2606862485408783,
0.20026664435863495,
-0.0854155495762825,
0.3555699586868286,
-0.3391295373439789,
0.1444230079650879,
-0.4028741419315338,
0.04537328705191612,
0.029169419780373573,
-0.2613769769668579,
-0.16558608412742615,
-0.45374542474746704,
0.5292572975158691,
0.1043403148651123,
-0.16528993844985962,
0.16697774827480316,
0.1655871868133545,
-0.12437240779399872,
0.16892871260643005,
0.2597680985927582,
0.9384462237358093,
-0.33558839559555054,
0.16157719492912292,
-0.21660542488098145,
-0.48388344049453735,
0.7291578650474548,
-0.2825581431388855,
0.0929412916302681,
-0.013082977384328842,
-0.5408391952514648,
-0.1877739578485489,
-0.10894890129566193,
0.1595040261745453,
0.26790714263916016,
-0.01931186392903328,
0.2608295679092407,
-0.19500356912612915,
0.3424629271030426,
0.10661253333091736,
0.20958876609802246,
-0.23993122577667236,
-0.4257339537143707,
-0.30440741777420044,
0.1853797286748886,
-0.0368160754442215,
0.18311822414398193,
0.025854066014289856,
0.10897171497344971,
-0.009371582418680191,
-0.1779697835445404,
-0.19965577125549316,
0.1083773747086525,
-0.056279633194208145,
-0.13502411544322968,
-0.05255669727921486,
-0.09057988971471786,
0.09663249552249908,
0.11502236127853394,
0.1104794442653656,
0.22759568691253662,
-0.17812611162662506,
0.18636129796504974,
0.024156592786312103,
0.011347880586981773,
-0.25002869963645935,
0.2269534319639206,
-0.09955237805843353,
-0.12401517480611801,
-0.06456805765628815,
0.35040083527565,
-0.12182420492172241,
-0.28512611985206604,
0.006191834807395935,
0.17582552134990692,
0.42078661918640137,
-0.12144909799098969,
-0.4006892740726471,
-0.17658627033233643,
0.34220412373542786,
-0.04810614138841629,
0.1218297928571701,
0.0425107404589653,
-0.02597956918179989,
-0.06400229781866074,
-0.01687239482998848,
-0.2572827935218811,
-0.10191215574741364,
0.48459041118621826,
0.0051333606243133545,
-0.03116593137383461,
0.32334446907043457,
-0.11886826157569885,
-0.2364816963672638,
-0.23915892839431763,
-0.2135898470878601,
0.03909000754356384,
-0.18509060144424438,
0.08889003843069077,
-0.026066584512591362,
0.002306804060935974,
-0.3247479200363159,
0.30591410398483276,
0.05771661177277565,
0.016459688544273376,
-0.02518267184495926,
-0.4534953832626343,
-0.13073168694972992,
0.17699837684631348,
-0.0402812622487545,
0.17485690116882324,
-0.07339729368686676,
-0.10916391015052795,
-0.04290405660867691,
-0.03920034319162369,
-0.2974017262458801,
0.024139443412423134,
-0.10376068949699402,
0.1769840270280838,
0.7559239864349365,
0.3642117381095886,
-0.15390801429748535,
-0.10822582244873047,
0.09722994267940521,
0.020768752321600914,
-0.00923357903957367,
-0.2258126139640808,
-0.13268323242664337,
0.11008264124393463,
-0.08793732523918152,
0.15251439809799194,
-0.0816614180803299,
-0.3424687385559082,
-0.26970648765563965,
-0.0770004540681839,
0.2347443699836731,
0.14016717672348022,
0.08142392337322235,
-0.04737211763858795,
0.16544820368289948,
0.017702952027320862,
-0.650762140750885,
0.1907183825969696,
-0.17938384413719177,
0.2528263330459595,
0.07819594442844391,
0.09569301456212997,
-0.0583859346807003,
0.09910622239112854,
-0.23459193110466003,
-0.0858251079916954,
0.056608282029628754,
-0.12381210178136826,
0.2841881215572357,
0.2502339780330658,
0.4673623740673065,
0.19282105565071106,
0.1814904659986496,
0.08986120671033859,
-0.21117785573005676,
0.08049187064170837,
0.5171953439712524,
0.23463931679725647,
-0.2829194664955139,
-0.3057803809642792,
-0.05479397997260094,
0.15975230932235718,
0.14098712801933289,
0.19473518431186676,
0.08143021166324615,
0.21661850810050964,
-0.020674772560596466,
-0.23607096076011658,
0.5911939740180969,
0.025566592812538147,
0.09982374310493469,
0.6890772581100464,
0.12626974284648895,
-0.20339824259281158,
-0.015255047008395195,
0.2713988125324249,
0.015341617166996002,
0.05944158136844635,
-0.20228812098503113,
0.06725434213876724,
0.15873178839683533,
-0.08623118698596954,
-0.011061839759349823,
-0.37871477007865906,
0.06131742149591446,
0.12444306910037994,
0.16241320967674255,
0.15351352095603943,
-0.246543288230896,
-0.12991270422935486,
0.46234411001205444,
-0.13675735890865326,
-0.19949129223823547,
0.3627013862133026,
0.22052884101867676,
-0.10510315001010895,
0.017965756356716156,
-0.2742207646369934,
-0.13463304936885834,
0.19631166756153107,
0.02294718101620674,
-0.4186331629753113,
0.1739950031042099,
0.04322431609034538,
0.1413423866033554,
-0.13915538787841797,
-0.04013747721910477,
0.033682212233543396,
0.31010591983795166,
-0.1998891979455948,
-0.02242538519203663,
-0.19751428067684174,
0.0025504380464553833,
0.44810009002685547,
0.07333327829837799,
-0.038392696529626846,
0.1938948631286621,
0.4186455011367798,
0.053988564759492874,
-0.07301430404186249,
-0.1253991574048996,
-0.04150523245334625,
0.004626287147402763,
0.038314007222652435,
0.31657177209854126,
0.3767625093460083,
0.18018703162670135,
-0.15912483632564545,
0.11180944740772247,
-0.16465482115745544,
0.18077799677848816,
-0.6403842568397522,
0.07431510090827942,
0.49290013313293457,
-0.16866520047187805,
0.000043705105781555176,
-0.2517140507698059,
-0.013515949249267578,
-0.1443995237350464,
-0.10855275392532349,
0.042977627366781235,
0.14997944235801697,
0.18995827436447144,
0.07375004887580872,
-0.20366518199443817,
0.32850566506385803,
0.01952967420220375,
-0.15867996215820312,
-0.3735997974872589,
-0.17184561491012573,
-0.3946532607078552,
-0.14487648010253906,
-0.40641993284225464,
-0.8107725381851196,
0.500085711479187,
0.10651328414678574,
0.22184953093528748,
0.38234061002731323,
-0.1133776605129242,
0.20150941610336304,
-0.11544866114854813,
0.3568074405193329,
-0.06920842826366425,
-0.33982598781585693,
0.18333891034126282,
0.15771257877349854,
-0.041324909776449203,
-0.2885303795337677,
0.27791744470596313,
0.14147518575191498,
-0.009107522666454315,
-0.006864164024591446,
-0.0498134046792984,
-0.08364737033843994,
0.028401704505085945,
0.5976855754852295,
-0.22631703317165375,
0.1637936234474182,
-0.031129052862524986,
0.18193897604942322,
-0.16280430555343628,
-0.07523555308580399,
-0.16638687252998352,
0.17050430178642273,
0.10057245194911957,
0.01465103030204773,
-0.2076530009508133,
0.19918179512023926,
-0.24832072854042053,
0.332594633102417,
0.05678434669971466,
-0.1455262303352356,
-0.030128587037324905,
0.008525224402546883,
0.29581713676452637,
-0.005752247758209705,
0.057010408490896225,
0.024410637095570564,
-0.15225224196910858,
-0.17289172112941742,
-0.024510055780410767,
-0.4047507345676422,
0.5945320129394531,
-0.2346419245004654,
-0.3251653015613556,
0.004928785376250744,
0.3974164128303528,
0.023467697203159332,
0.1088908389210701,
-0.4103713929653168,
0.17495673894882202,
0.3024328052997589,
-0.30380573868751526,
-0.08106265962123871,
0.3835851848125458,
0.1290549337863922,
-0.14957156777381897,
-0.21135246753692627,
0.14166608452796936,
0.00939498096704483,
0.03459732234477997,
-0.3567352890968323,
-0.391213595867157
] |
https://github.com/huggingface/datasets/issues/4114 | Allow downloading just some columns of a dataset | It only works for `streaming=True`. When not streaming it does download the full files locally before reading the data | **Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets. | 19 | Allow downloading just some columns of a dataset
**Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets.
It only works for `streaming=True`. When not streaming it does download the full files locally before reading the data | [
-0.2586664855480194,
-0.07512606680393219,
-0.09569995105266571,
0.05210991948843002,
0.2039014995098114,
0.38652539253234863,
0.02975642867386341,
0.420735627412796,
0.4311735928058624,
0.3467848598957062,
-0.17007601261138916,
0.06192515045404434,
-0.14676012098789215,
0.522003710269928,
0.008428413420915604,
-0.26687997579574585,
-0.17923668026924133,
0.401216059923172,
-0.05375422537326813,
-0.07647491246461868,
-0.31646835803985596,
-0.34344902634620667,
-0.006624378263950348,
-0.08313523232936859,
-0.010811282321810722,
-0.07374092936515808,
0.1108720451593399,
-0.09152925759553909,
-0.47665348649024963,
-0.13401952385902405,
0.0600624606013298,
0.10806439816951752,
0.18760907649993896,
-0.21574217081069946,
-0.00010588206350803375,
-0.15105950832366943,
0.09442312270402908,
-0.10628936439752579,
-0.2937525510787964,
-0.37052297592163086,
-0.05194283649325371,
-0.3191033601760864,
0.2394891083240509,
-0.33647698163986206,
-0.04849325865507126,
-0.18155138194561005,
-0.07119926065206528,
-0.1775694638490677,
0.15391497313976288,
0.18146997690200806,
0.2713768184185028,
0.23691877722740173,
-0.1665450483560562,
-0.05149919167160988,
0.20205330848693848,
-0.08514423668384552,
-0.30181264877319336,
0.05067363381385803,
0.5817488431930542,
0.12027302384376526,
0.12211091816425323,
0.45558542013168335,
-0.12466339766979218,
0.2304399311542511,
0.4217602014541626,
0.06744080781936646,
0.11064866185188293,
-0.6920969486236572,
0.3383069336414337,
0.42289674282073975,
0.7652212381362915,
-0.10187225788831711,
-0.3020203709602356,
-0.36188599467277527,
0.35085123777389526,
-0.32016825675964355,
-0.22987672686576843,
0.5255023837089539,
-0.5167664885520935,
0.16597586870193481,
-0.3432766795158386,
-0.3683214783668518,
-0.2360185980796814,
0.16210922598838806,
-0.14939188957214355,
-0.057853102684020996,
0.040123309940099716,
0.10050183534622192,
0.3115534484386444,
0.2004953771829605,
0.12629260122776031,
-0.09606919437646866,
0.06922610849142075,
0.4502039849758148,
-0.4493919014930725,
-0.23366478085517883,
-0.11330579966306686,
0.36432525515556335,
0.15473735332489014,
0.36330747604370117,
-0.007341166026890278,
-0.0003099758177995682,
-0.1722697615623474,
0.19315630197525024,
0.2015954703092575,
0.06653216481208801,
-0.10291165858507156,
0.18232567608356476,
0.18749754130840302,
0.0190509632229805,
0.1339208334684372,
-0.18981578946113586,
0.06421955674886703,
0.23714055120944977,
0.04726855084300041,
-0.0281001478433609,
-0.06158945709466934,
-0.13767242431640625,
-0.004343464970588684,
-0.054330967366695404,
0.2750243842601776,
0.11186323314905167,
-0.007704730145633221,
0.4705049991607666,
-0.009462777525186539,
0.15964394807815552,
-0.1014135405421257,
0.2489118129014969,
0.2245234102010727,
-0.3940895199775696,
-0.13721589744091034,
0.18304939568042755,
0.08577032387256622,
-0.03543988615274429,
0.4162047505378723,
-0.37316057085990906,
0.19961528480052948,
-0.04165969789028168,
0.017370600253343582,
0.0611613392829895,
0.2351124882698059,
-0.3906174600124359,
0.3492032587528229,
0.34859010577201843,
0.07849526405334473,
0.08047433197498322,
0.1864747256040573,
0.046567149460315704,
-0.4276661276817322,
0.3820090591907501,
-0.3077858090400696,
-0.3242461681365967,
0.06597926467657089,
0.2052268087863922,
-0.012553502805531025,
-0.047774121165275574,
-0.16490080952644348,
0.10032540559768677,
-0.4713353216648102,
0.12820692360401154,
0.09928680956363678,
0.12480077147483826,
-0.11998476833105087,
-0.1478380709886551,
0.08232007920742035,
0.30405882000923157,
-0.14887681603431702,
-0.13322752714157104,
0.037678346037864685,
-0.2282710075378418,
0.08260169625282288,
0.12611950933933258,
-0.3602050542831421,
-0.03353465348482132,
0.004920577630400658,
0.051675647497177124,
0.5208354592323303,
-0.3431644141674042,
-0.14960387349128723,
0.2065577507019043,
-0.03527729585766792,
0.12001772969961166,
0.12883561849594116,
0.5349650382995605,
0.36299923062324524,
0.23565605282783508,
-0.26865628361701965,
0.5202016830444336,
0.09480457752943039,
0.0739888846874237,
0.19231359660625458,
-0.3286103904247284,
0.0887647271156311,
0.32804811000823975,
0.029068900272250175,
0.4659287631511688,
0.01601598411798477,
-0.20969560742378235,
0.33272841572761536,
-0.2226828634738922,
0.16193784773349762,
0.12405426055192947,
0.0709308311343193,
0.10075701028108597,
-0.034007731825113297,
-0.2487424910068512,
-0.502852201461792,
0.29460617899894714,
0.26056015491485596,
-0.24743637442588806,
-0.010576531291007996,
-0.3798597455024719,
-0.2743209898471832,
-0.09359784424304962,
0.12403090298175812,
-0.13092823326587677,
0.053521059453487396,
-0.21763718128204346,
0.1574365198612213,
-0.02081351727247238,
-0.4040164351463318,
0.3638246953487396,
-0.25594890117645264,
0.24901287257671356,
0.07272954285144806,
-0.07035117596387863,
0.3294464349746704,
0.15885744988918304,
0.0691211074590683,
-0.1437830924987793,
0.14771512150764465,
0.150069460272789,
0.07217566668987274,
0.14760467410087585,
0.048418544232845306,
0.1961950659751892,
-0.20774751901626587,
0.19285333156585693,
0.034071184694767,
0.2439713478088379,
0.16823312640190125,
0.032266177237033844,
0.2613967955112457,
-0.04817840829491615,
-0.4447077810764313,
0.18669062852859497,
-0.1136220246553421,
0.33379846811294556,
0.16306744515895844,
0.08126773685216904,
0.2108425348997116,
-0.21353499591350555,
-0.11741184443235397,
-0.25500017404556274,
0.2123144268989563,
-0.02932364121079445,
0.09870365262031555,
-0.16346722841262817,
-0.41842755675315857,
-0.14921292662620544,
0.11154705286026001,
0.12115883827209473,
-0.06144549697637558,
0.21485674381256104,
-0.1497248411178589,
0.2498851716518402,
0.3318835198879242,
0.2946215271949768,
0.3468329906463623,
0.2868470847606659,
0.04198441654443741,
0.12640215456485748,
0.10532601922750473,
-0.07447056472301483,
0.12623031437397003,
-0.011987857520580292,
-0.08313228189945221,
0.021169908344745636,
0.06089717149734497,
0.01779063604772091,
-0.1507362425327301,
0.002429824322462082,
-0.0017567360773682594,
0.03927318751811981,
0.037004780024290085,
-0.22189100086688995,
-0.3319905996322632,
-0.4163345992565155,
0.13786329329013824,
0.0006018951535224915,
-0.06400631368160248,
-0.1672428697347641,
0.006551697850227356,
0.3517914116382599,
-0.24644343554973602,
-0.12977749109268188,
-0.6111679673194885,
0.5014826059341431,
-0.17319877445697784,
-0.17731383442878723,
-0.050665754824876785,
-0.07989802211523056,
0.24154067039489746,
0.12528075277805328,
-0.219459667801857,
-0.06344155967235565,
0.5543907880783081,
-0.0019897930324077606,
0.0890260711312294,
-0.46054384112358093,
-0.19108550250530243,
0.14658883213996887,
0.0015666522085666656,
-0.1454239934682846,
-0.010405801236629486,
0.5140376687049866,
0.03257741034030914,
0.009994509629905224,
0.09806369245052338,
-0.03081848844885826,
0.0834580510854721,
-0.14951881766319275,
0.27418410778045654,
0.11067405343055725,
-0.1660143882036209,
-0.19184046983718872,
-0.5407181978225708,
-0.42752334475517273,
0.4207230806350708,
0.32350459694862366,
0.2069191336631775,
0.13487529754638672,
0.0076475730165839195,
-0.33921706676483154,
-0.16709795594215393,
0.13074830174446106,
-0.13045310974121094,
-0.21116980910301208,
0.4387515187263489,
-0.1195170059800148,
-0.3579055070877075,
0.10852226614952087,
0.12117128074169159,
-0.1224980503320694,
0.4300581216812134,
-0.31571877002716064,
-0.22235487401485443,
-0.35824695229530334,
0.17629410326480865,
-0.38057398796081543,
0.15015342831611633,
0.18146619200706482,
-0.16106577217578888,
-0.021858833730220795,
0.03746717423200607,
0.0982578694820404,
-0.3220846951007843,
-0.04977818578481674,
-0.20974576473236084,
-0.04601540416479111,
0.18976694345474243,
-0.006995216012001038,
0.15072759985923767,
-0.1565999835729599,
0.12657283246517181,
0.31319528818130493,
-0.20227186381816864,
0.40546759963035583,
-0.16639864444732666,
-0.3237205147743225,
0.029097361490130424,
-0.20262089371681213,
-0.14642444252967834,
0.0322674959897995,
0.08370833098888397,
-0.06461043655872345,
-0.45118728280067444,
0.0330878309905529,
-0.0793071910738945,
-0.10693110525608063,
0.1650850623846054,
0.11949224770069122,
0.30988937616348267,
0.14947526156902313,
0.19517728686332703,
-0.2891550362110138,
-0.24708721041679382,
0.004208466969430447,
0.33958256244659424,
0.3503699004650116,
-0.09400007128715515,
-0.2581992447376251,
0.01872430182993412,
-0.4527631998062134,
0.09031043946743011,
-0.06788384914398193,
-0.09707996249198914,
-0.04448984935879707,
-0.14559955894947052,
0.1926109790802002,
0.30824336409568787,
0.4602468013763428,
-0.05155327916145325,
0.008117076009511948,
-0.053596820682287216,
-0.19387856125831604,
-0.47053685784339905,
0.02260541543364525,
-0.06932339817285538,
0.008360754698514938,
-0.16958968341350555,
0.5516201257705688,
-0.14884820580482483,
0.012831021100282669,
0.18680639564990997,
0.3083604574203491,
-0.14877933263778687,
-0.18107028305530548,
-0.03271692618727684,
0.004353739321231842,
-0.4804791808128357,
-0.0695001557469368,
0.08781949430704117,
0.09295958280563354,
-0.1342969834804535,
0.08752062916755676,
-0.04528950899839401,
0.1757609248161316,
0.02454323321580887,
0.17856138944625854,
0.11908335983753204,
0.14142827689647675,
0.19088420271873474,
0.06327731162309647,
0.13218626379966736,
-0.360703706741333,
0.484103262424469,
-0.0675698071718216,
-0.5238077640533447,
-0.18833991885185242,
-0.219313845038414,
0.12200146168470383,
0.26664310693740845,
-0.1717616766691208,
0.45143893361091614,
-0.20091266930103302,
0.06840770691633224,
-0.5374400615692139,
0.07796211540699005,
0.0402882918715477,
-0.21638701856136322,
-0.11279504746198654,
-0.4259292185306549,
0.6053694486618042,
0.10312256217002869,
-0.23257198929786682,
0.2591818571090698,
0.008948393166065216,
-0.11413297057151794,
0.027130763977766037,
0.13002745807170868,
0.9146586060523987,
-0.1708519160747528,
0.20031285285949707,
-0.1228112205862999,
-0.3211357593536377,
0.665393054485321,
-0.1113714650273323,
0.20268824696540833,
-0.06803126633167267,
-0.43173810839653015,
-0.16887658834457397,
-0.08131925761699677,
0.09428867697715759,
0.1293729841709137,
-0.021854139864444733,
0.13537082076072693,
-0.21815747022628784,
0.35897448658943176,
0.03077327273786068,
0.25168895721435547,
-0.4778227210044861,
-0.4194967746734619,
-0.21479126811027527,
0.19530729949474335,
-0.06510410457849503,
0.3366595506668091,
0.023781653493642807,
0.0569954551756382,
-0.04088019207119942,
-0.09962283074855804,
-0.168879896402359,
0.03630897402763367,
-0.09832871705293655,
-0.10728506743907928,
-0.1322706788778305,
-0.10742796212434769,
-0.02992902882397175,
0.1691465973854065,
0.06509839743375778,
0.2445724755525589,
-0.25899648666381836,
0.12862494587898254,
-0.09457161277532578,
0.05847543105483055,
-0.19135157763957977,
0.1268555372953415,
-0.02836013399064541,
-0.12575048208236694,
-0.12632706761360168,
0.3177385628223419,
-0.09391780942678452,
-0.27427077293395996,
-0.12327568233013153,
0.2331835925579071,
0.33537471294403076,
-0.15103080868721008,
-0.36856967210769653,
-0.18015307188034058,
0.20670391619205475,
-0.027127627283334732,
0.1692989021539688,
0.056403305381536484,
-0.014683335088193417,
0.006123602390289307,
0.0463128425180912,
-0.2340332716703415,
-0.08387008309364319,
0.5265957117080688,
0.04808305948972702,
-0.07301612943410873,
0.3006102442741394,
-0.13990569114685059,
-0.32401514053344727,
-0.2619144022464752,
-0.2096496820449829,
-0.0985230803489685,
-0.19489741325378418,
0.02650972455739975,
0.08889741450548172,
-0.0197562575340271,
-0.4386123716831207,
0.26361554861068726,
0.05265597626566887,
-0.07022502273321152,
-0.057190243154764175,
-0.4393734931945801,
-0.23414209485054016,
0.1425034999847412,
0.05782969668507576,
0.1867121011018753,
-0.10489296168088913,
-0.0896812379360199,
-0.03061206080019474,
0.12387678027153015,
-0.35246551036834717,
-0.04755610227584839,
-0.03936521336436272,
0.10757800936698914,
0.5956381559371948,
0.3094840347766876,
-0.029047435149550438,
-0.10755899548530579,
0.09560095518827438,
0.05966174602508545,
-0.016599169000983238,
-0.25298118591308594,
-0.16768693923950195,
0.08702287822961807,
-0.058221764862537384,
-0.0555594339966774,
-0.027153339236974716,
-0.41521698236465454,
-0.20762984454631805,
-0.08969809114933014,
0.2860160768032074,
0.25354939699172974,
0.06620191782712936,
0.08292514085769653,
0.0778912603855133,
0.10544466227293015,
-0.5358092188835144,
0.29585668444633484,
-0.1835927665233612,
0.29841870069503784,
0.11259868741035461,
0.11096461117267609,
-0.037085432559251785,
0.09693856537342072,
-0.12639549374580383,
-0.09797558933496475,
0.03057611733675003,
-0.12179943174123764,
0.3099866509437561,
0.24484524130821228,
0.473148912191391,
-0.0036050532944500446,
0.2904094457626343,
0.1543123722076416,
-0.24385285377502441,
0.1391022801399231,
0.4314720928668976,
0.28131499886512756,
-0.2573392391204834,
-0.3388870358467102,
-0.10674339532852173,
0.02050800994038582,
0.21084800362586975,
0.13361312448978424,
0.09496219456195831,
0.05476517975330353,
0.16582182049751282,
-0.2676022946834564,
0.494403600692749,
0.08235518634319305,
0.02617727592587471,
0.6601670980453491,
0.1512249857187271,
-0.18440215289592743,
-0.05800211429595947,
0.2576829791069031,
0.016856417059898376,
0.02955038659274578,
-0.25028562545776367,
0.02505272440612316,
-0.03185129910707474,
-0.04945851489901543,
-0.06752447038888931,
-0.47665876150131226,
0.12900109589099884,
0.14903825521469116,
-0.04649555683135986,
0.19867828488349915,
-0.23238599300384521,
0.05361231043934822,
0.2885884642601013,
-0.00711901905015111,
-0.1965065747499466,
0.29905879497528076,
0.13517290353775024,
-0.12018802762031555,
-0.18212220072746277,
-0.29925400018692017,
-0.11878682672977448,
0.1769184023141861,
0.07866378128528595,
-0.40719878673553467,
0.16744577884674072,
0.0766291618347168,
0.018173061311244965,
-0.07822776585817337,
0.031296588480472565,
0.0065167248249053955,
0.3605234622955322,
-0.21915295720100403,
-0.12049009650945663,
-0.025342687964439392,
0.16472786664962769,
0.4106220006942749,
0.08825203776359558,
-0.05889362469315529,
0.1923585683107376,
0.42550504207611084,
0.15240755677223206,
-0.1486871987581253,
-0.12767191231250763,
-0.15304777026176453,
0.09699948132038116,
0.116349957883358,
0.1939639002084732,
0.46582573652267456,
0.2242673933506012,
-0.19997845590114594,
0.22462959587574005,
-0.19221819937229156,
0.18240264058113098,
-0.5965504050254822,
-0.021570473909378052,
0.4327557682991028,
-0.22652411460876465,
-0.028318874537944794,
-0.2490614354610443,
-0.005637411028146744,
0.047686390578746796,
0.0368112176656723,
-0.01547752134501934,
0.1697729229927063,
0.05370257422327995,
0.09415125101804733,
-0.14415588974952698,
0.3685097098350525,
0.01654251292347908,
-0.016905032098293304,
-0.3280583620071411,
-0.2122512310743332,
-0.40247800946235657,
-0.10215801745653152,
-0.35642585158348083,
-0.7169560194015503,
0.35183942317962646,
-0.012132194824516773,
0.14581260085105896,
0.385117769241333,
-0.10103033483028412,
0.07985451817512512,
0.04877554625272751,
0.26201802492141724,
-0.02213667891919613,
-0.39911043643951416,
0.18323257565498352,
0.19358046352863312,
-0.025121379643678665,
-0.3398295044898987,
0.28349313139915466,
0.13250207901000977,
0.04642385244369507,
-0.02240821346640587,
0.0006329715251922607,
-0.04029291123151779,
0.12812864780426025,
0.5872109532356262,
-0.12798859179019928,
0.21499940752983093,
-0.13802482187747955,
0.12609276175498962,
-0.12697559595108032,
0.060310978442430496,
-0.25728678703308105,
-0.030062101781368256,
0.13321544229984283,
0.03149385377764702,
-0.13796773552894592,
0.08460729569196701,
-0.25761696696281433,
0.428334504365921,
0.054584115743637085,
-0.13460250198841095,
0.009846692904829979,
-0.06094727665185928,
0.21270474791526794,
0.029701868072152138,
0.05013683810830116,
0.16431713104248047,
-0.20974138379096985,
-0.15472806990146637,
-0.15275779366493225,
-0.3783479630947113,
0.6670270562171936,
-0.14373096823692322,
-0.25500935316085815,
0.05709279701113701,
0.370481938123703,
0.0023693889379501343,
0.1513643115758896,
-0.37277358770370483,
0.17591649293899536,
0.29918235540390015,
-0.2497948408126831,
-0.002139616757631302,
0.4146878123283386,
0.05964513495564461,
-0.12594370543956757,
-0.18907813727855682,
0.2208123356103897,
0.11473871767520905,
-0.04295508936047554,
-0.315397173166275,
-0.4117274284362793
] |
https://github.com/huggingface/datasets/issues/4114 | Allow downloading just some columns of a dataset | Hi @lhoestq, I have an audio dataset of 250GB on the huggingface hub in parquet format. I only wanted to load the text column. It is taking a lot of time. It seems like it is downloading audio as well even in streaming mode. | **Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets. | 44 | Allow downloading just some columns of a dataset
**Is your feature request related to a problem? Please describe.**
Some people are interested in doing label analysis of a CV dataset without downloading all the images. Downloading the whole dataset does not always makes sense for this kind of use case
**Describe the solution you'd like**
Be able to just download some columns of a dataset, such as doing
```python
load_dataset("huggan/wikiart",columns=["artist", "genre"])
```
Although this might make things a bit complicated in terms of local caching of datasets.
Hi @lhoestq, I have an audio dataset of 250GB on the huggingface hub in parquet format. I only wanted to load the text column. It is taking a lot of time. It seems like it is downloading audio as well even in streaming mode. | [
-0.3079316318035126,
-0.3856292963027954,
0.003407033160328865,
0.2329666018486023,
0.2612265944480896,
0.22897040843963623,
-0.02557140216231346,
0.21448256075382233,
0.3264232575893402,
0.3478757441043854,
-0.3935335874557495,
0.1244063675403595,
-0.12411012500524521,
0.4950302839279175,
0.06655357033014297,
-0.24129119515419006,
-0.12390192598104477,
0.32533615827560425,
0.0527520552277565,
-0.10003296285867691,
-0.23806503415107727,
-0.10388022661209106,
-0.0970720574259758,
-0.04222439229488373,
-0.10795550793409348,
-0.0556429922580719,
0.0346197783946991,
-0.0463508665561676,
-0.6269059181213379,
-0.11846558004617691,
0.12635135650634766,
0.1523263305425644,
0.12251880764961243,
-0.08534365147352219,
-0.00012051776138832793,
-0.17820046842098236,
0.23716434836387634,
-0.10733666270971298,
-0.23822465538978577,
-0.2600850462913513,
-0.0376918688416481,
-0.21664543449878693,
0.2520400881767273,
-0.14525443315505981,
-0.10777580738067627,
-0.023732680827379227,
-0.12756745517253876,
-0.02079794928431511,
0.19354824721813202,
0.18707728385925293,
0.09805607795715332,
0.3738403618335724,
-0.2125660628080368,
0.035075753927230835,
0.17211665213108063,
-0.08188454806804657,
-0.16708913445472717,
0.11981196701526642,
0.7543145418167114,
0.22033129632472992,
0.12658753991127014,
0.425152063369751,
-0.048260144889354706,
0.2776227593421936,
0.5206984877586365,
0.025164909660816193,
-0.15826985239982605,
-0.53235924243927,
0.3448535203933716,
0.5069206953048706,
0.8625598549842834,
-0.10069078952074051,
-0.19669708609580994,
-0.3479316532611847,
0.34700682759284973,
-0.43337228894233704,
-0.026631511747837067,
0.5366482734680176,
-0.4730592370033264,
0.1054067611694336,
-0.37946927547454834,
-0.48177483677864075,
-0.10584849119186401,
0.06954528391361237,
-0.009503696113824844,
-0.042823776602745056,
-0.07170433551073074,
0.08458675444126129,
0.3458557724952698,
0.027245238423347473,
-0.04274558648467064,
-0.05641843378543854,
0.06417454779148102,
0.5291470885276794,
-0.5911073684692383,
-0.25367408990859985,
-0.13656410574913025,
0.42358967661857605,
0.1668592393398285,
0.3110833764076233,
-0.15587563812732697,
0.11772629618644714,
-0.06963296234607697,
0.08920448273420334,
0.34819939732551575,
-0.05773760378360748,
-0.09360388666391373,
-0.009302779100835323,
0.1404803842306137,
0.1765112429857254,
0.19180461764335632,
-0.23053574562072754,
-0.035928286612033844,
0.30800244212150574,
-0.1597011536359787,
-0.22819101810455322,
-0.014908550307154655,
-0.2765936851501465,
-0.010371753945946693,
-0.09273158758878708,
0.2910305857658386,
0.051728300750255585,
0.11672879755496979,
0.4964316189289093,
0.01364933792501688,
0.11330863833427429,
-0.16898739337921143,
0.3681626319885254,
0.04378490149974823,
-0.4265826344490051,
-0.14029087126255035,
0.22196735441684723,
0.11377257108688354,
0.05355624109506607,
0.32507553696632385,
-0.3135179579257965,
0.10766647011041641,
0.020013980567455292,
0.1904013752937317,
-0.078982874751091,
-0.10964477807283401,
-0.34561389684677124,
-0.03134816884994507,
0.2152983695268631,
-0.06476803869009018,
0.27331477403640747,
0.04342275112867355,
0.11057423055171967,
-0.469867080450058,
0.1775505244731903,
-0.38856241106987,
-0.339882493019104,
0.14328692853450775,
-0.0013712858781218529,
-0.10276458412408829,
0.01645272970199585,
-0.45017579197883606,
0.19657854735851288,
-0.517729640007019,
0.07310792803764343,
0.007148973643779755,
0.205225870013237,
-0.32198992371559143,
0.01869756542146206,
0.17779220640659332,
0.27966147661209106,
0.030233163386583328,
-0.19586311280727386,
0.12208238989114761,
-0.12532958388328552,
0.1621195375919342,
0.392029345035553,
-0.2118881642818451,
0.1000324934720993,
0.04894319176673889,
0.12807919085025787,
0.4735970199108124,
-0.48276111483573914,
-0.349435418844223,
0.01357604656368494,
-0.11043993383646011,
0.178376704454422,
0.24410176277160645,
0.3212634325027466,
0.4593980312347412,
0.1424987018108368,
-0.10940773785114288,
0.49280405044555664,
0.15691983699798584,
0.211836040019989,
0.10042542219161987,
-0.4129234254360199,
0.11538234353065491,
0.34041520953178406,
-0.1558224856853485,
0.367900013923645,
-0.1320614218711853,
-0.06793824583292007,
0.37298861145973206,
-0.19207853078842163,
0.1362500935792923,
0.18130534887313843,
0.0765017494559288,
0.1565377116203308,
-0.10775960981845856,
-0.35097789764404297,
-0.45154404640197754,
0.1950758993625641,
0.32534655928611755,
-0.07098317891359329,
0.006935305893421173,
-0.33025795221328735,
-0.2831225097179413,
-0.08816662430763245,
0.09318181872367859,
-0.018520575016736984,
-0.12132317572832108,
-0.19239982962608337,
0.1922609657049179,
-0.08241702616214752,
-0.41873234510421753,
0.5232517123222351,
-0.18355034291744232,
0.3252445161342621,
-0.10026738047599792,
0.02908903919160366,
0.44648313522338867,
0.13537649810314178,
0.21083661913871765,
-0.09664271026849747,
0.18629667162895203,
0.09038257598876953,
0.09123317152261734,
0.2363128364086151,
0.19755995273590088,
0.4387485384941101,
-0.22700080275535583,
0.1984047144651413,
0.11484893411397934,
0.1031099408864975,
0.17576107382774353,
-0.15351442992687225,
0.2969883978366852,
-0.1397077739238739,
-0.49928346276283264,
0.15004578232765198,
0.03690500557422638,
0.34153714776039124,
0.1337626874446869,
-0.1134769544005394,
0.14783912897109985,
0.009550299495458603,
-0.18773959577083588,
0.03932484984397888,
0.27519240975379944,
-0.1596597284078598,
0.093442901968956,
-0.10427521169185638,
-0.48595130443573,
-0.24224704504013062,
0.2457379549741745,
0.043135542422533035,
-0.12597495317459106,
0.33284834027290344,
-0.12955474853515625,
0.03287610784173012,
0.23886434733867645,
-0.05742090195417404,
0.2196333110332489,
0.19228678941726685,
0.06147128716111183,
0.11231756955385208,
0.11753906309604645,
0.04414811357855797,
0.1293700784444809,
0.074587881565094,
-0.13365580141544342,
-0.021195851266384125,
0.07098513096570969,
-0.13947835564613342,
-0.47788211703300476,
0.11176952719688416,
-0.04947841912508011,
0.07813912630081177,
0.020000401884317398,
-0.3417595624923706,
-0.31203314661979675,
-0.22101616859436035,
0.15109360218048096,
-0.01615775004029274,
-0.1039750874042511,
0.013949839398264885,
-0.02445533126592636,
0.5082429051399231,
0.041330788284540176,
-0.1747533231973648,
-0.23080596327781677,
0.587604820728302,
-0.17188331484794617,
-0.12581950426101685,
-0.20626582205295563,
0.06421089172363281,
0.21421942114830017,
-0.03544192761182785,
-0.19073565304279327,
0.35167333483695984,
0.33481377363204956,
-0.036135587841272354,
0.1038336381316185,
-0.46086132526397705,
-0.01940033584833145,
0.15277084708213806,
-0.0337773934006691,
-0.14463667571544647,
-0.037993818521499634,
0.5720210075378418,
-0.015225298702716827,
-0.009506932459771633,
0.14445127546787262,
-0.0924215018749237,
-0.01375267282128334,
-0.04531339183449745,
0.2817607522010803,
0.2480975091457367,
0.03998992219567299,
-0.11426477879285812,
-0.4407792091369629,
-0.4573788642883301,
0.5025498867034912,
0.1970881223678589,
0.09813899546861649,
-0.02481859177350998,
-0.22269298136234283,
-0.262874573469162,
-0.2917589545249939,
0.19827130436897278,
-0.13774651288986206,
-0.3727402091026306,
0.3295954465866089,
0.13413144648075104,
-0.2735814154148102,
0.04360756650567055,
0.21289345622062683,
-0.05968004837632179,
0.237061008810997,
-0.31928813457489014,
-0.21333999931812286,
-0.2983076572418213,
-0.05874449387192726,
-0.2542950510978699,
0.20751282572746277,
0.2935637831687927,
-0.24001054465770721,
0.0835861936211586,
0.08153869956731796,
-0.1966167390346527,
-0.3517368733882904,
0.2565307021141052,
-0.18896126747131348,
-0.035180576145648956,
0.40694862604141235,
-0.12570825219154358,
0.19979986548423767,
0.07345813512802124,
0.2618808448314667,
0.35234126448631287,
-0.142935112118721,
0.29659098386764526,
-0.30638429522514343,
-0.29812490940093994,
0.10536698251962662,
-0.17726624011993408,
-0.19960123300552368,
0.3154110312461853,
0.18763217329978943,
-0.038815319538116455,
-0.4078633189201355,
-0.06765428185462952,
-0.05387994647026062,
-0.12041409313678741,
0.03140924125909805,
0.25976812839508057,
0.14701655507087708,
0.2622949481010437,
0.18756690621376038,
-0.20628738403320312,
-0.25302064418792725,
0.21853984892368317,
0.26425701379776,
0.26911839842796326,
-0.11569161713123322,
-0.40590807795524597,
0.01629842072725296,
-0.6160683631896973,
-0.039765864610672,
-0.14655673503875732,
0.05979399383068085,
-0.06355062127113342,
-0.01858511194586754,
0.4175814390182495,
0.1988944709300995,
0.5464205145835876,
-0.00178607739508152,
0.10712499916553497,
-0.1912451833486557,
-0.21647115051746368,
-0.332802951335907,
0.06933777034282684,
-0.1643231362104416,
-0.1928313672542572,
-0.07378502190113068,
0.7683621048927307,
-0.3734295070171356,
-0.1019883006811142,
0.08634006977081299,
0.3419054448604584,
-0.03744593262672424,
-0.030599992722272873,
-0.09618507325649261,
-0.12368287146091461,
-0.46693676710128784,
0.13997794687747955,
0.11113189905881882,
0.28751805424690247,
0.07563845813274384,
0.17445829510688782,
0.05713892728090286,
0.19169160723686218,
0.12744192779064178,
0.15684571862220764,
0.20571357011795044,
0.11506245285272598,
0.2913690209388733,
0.18596871197223663,
0.010491892695426941,
-0.3518352508544922,
0.6416879892349243,
0.21517349779605865,
-0.5314030647277832,
-0.12183354049921036,
-0.07407250255346298,
0.18410030007362366,
0.46244823932647705,
0.05090799927711487,
0.38841304183006287,
-0.16129577159881592,
0.2631170451641083,
-0.6432960629463196,
0.1429542601108551,
0.2244514524936676,
-0.07784845679998398,
-0.31120410561561584,
-0.2638132870197296,
0.6630993485450745,
0.03291867673397064,
-0.222683846950531,
0.2582213282585144,
0.4789447784423828,
0.022668486461043358,
0.04947932809591293,
-0.017946749925613403,
1.1762681007385254,
-0.30328696966171265,
0.22754822671413422,
-0.02601468935608864,
-0.4798056483268738,
0.5970028638839722,
-0.5078021287918091,
0.1724536269903183,
0.07523536682128906,
-0.40576696395874023,
-0.10663273930549622,
-0.09274554252624512,
0.006242871284484863,
0.16630405187606812,
-0.008039262145757675,
0.2186061143875122,
0.05334804952144623,
0.5257692337036133,
-0.009943554177880287,
0.3587481379508972,
-0.4256168305873871,
-0.5757640600204468,
-0.3310987949371338,
0.04510822892189026,
-0.06042834371328354,
0.28592991828918457,
0.09075244516134262,
0.11460303515195847,
0.015741389244794846,
-0.2607998251914978,
-0.2596035599708557,
0.014119483530521393,
-0.046690817922353745,
-0.18648342788219452,
0.05369862914085388,
-0.1412992626428604,
0.13935251533985138,
0.09626390039920807,
-0.10738779604434967,
0.20277918875217438,
-0.28439590334892273,
0.28686755895614624,
-0.2090650498867035,
0.11159439384937286,
-0.22197341918945312,
0.2055460661649704,
-0.24098172783851624,
-0.09846507012844086,
-0.12319833785295486,
0.24314334988594055,
-0.21497023105621338,
-0.19894470274448395,
-0.0003697723150253296,
0.1918964385986328,
0.25657445192337036,
-0.10335803031921387,
-0.43516284227371216,
-0.025934912264347076,
0.27659741044044495,
-0.003653239458799362,
-0.0023993663489818573,
0.10175246000289917,
-0.19454696774482727,
0.06516215950250626,
0.13232633471488953,
-0.23885023593902588,
-0.09675575792789459,
0.5779966115951538,
0.04358244687318802,
-0.1641438901424408,
0.36773326992988586,
-0.1119517982006073,
-0.3335316777229309,
-0.18629005551338196,
-0.17620007693767548,
0.034758128225803375,
-0.19587409496307373,
0.005370377097278833,
0.051542386412620544,
-0.1319689005613327,
-0.3731994330883026,
0.201578751206398,
0.0017468519508838654,
-0.2603971064090729,
-0.1279839128255844,
-0.33761024475097656,
-0.22693374752998352,
0.30176281929016113,
0.012551017105579376,
0.11883433163166046,
-0.058649107813835144,
-0.11586993932723999,
-0.06887774169445038,
0.10841561108827591,
-0.17270851135253906,
0.1007244735956192,
-0.11805320531129837,
0.11067292839288712,
0.6506500244140625,
0.21119174361228943,
0.08119423687458038,
-0.1488308608531952,
-0.039839692413806915,
0.03845079615712166,
-0.08099505305290222,
-0.055536165833473206,
-0.07847223430871964,
0.195436030626297,
0.07629606127738953,
0.039002299308776855,
-0.03258906304836273,
-0.22147111594676971,
-0.21631082892417908,
-0.15278825163841248,
0.36036714911460876,
0.2981955111026764,
0.16245338320732117,
-0.21142464876174927,
0.2596278488636017,
-0.06208346039056778,
-0.49125659465789795,
0.23973321914672852,
-0.058364853262901306,
0.10630913078784943,
-0.003654166590422392,
-0.05944465100765228,
0.0837283805012703,
0.10100448131561279,
-0.10406488925218582,
0.19887268543243408,
0.3452032208442688,
-0.2710597813129425,
0.346158504486084,
0.2528986632823944,
0.39055097103118896,
0.0528297983109951,
0.27182474732398987,
0.3995628356933594,
-0.09815219789743423,
-0.07331092655658722,
0.3022467792034149,
0.07970859855413437,
-0.1800869256258011,
-0.4140765368938446,
-0.10273288190364838,
-0.10457471758127213,
0.1372605264186859,
0.1735287755727768,
0.03048304095864296,
0.23261022567749023,
0.07479526847600937,
-0.2869417667388916,
0.7017287015914917,
0.06071370840072632,
0.01564750075340271,
0.46209633350372314,
0.13449029624462128,
-0.14937861263751984,
0.10329887270927429,
0.3048311769962311,
-0.005812563002109528,
0.10189802944660187,
-0.26288339495658875,
0.037296220660209656,
-0.011632081121206284,
0.07681280374526978,
-0.05206609517335892,
-0.4470488727092743,
-0.3045119345188141,
0.2692972421646118,
0.04160274192690849,
0.012159902602434158,
-0.24894919991493225,
-0.013237841427326202,
0.16339683532714844,
-0.19154846668243408,
-0.36080461740493774,
0.3119480013847351,
0.07585825771093369,
-0.19179727137088776,
0.0960177481174469,
-0.29487401247024536,
-0.17988836765289307,
0.3577772080898285,
-0.025921698659658432,
-0.29657912254333496,
0.0908219963312149,
0.01349276676774025,
0.2162134349346161,
-0.10199358314275742,
-0.2559569478034973,
-0.03194502741098404,
0.3386152386665344,
-0.20715825259685516,
0.0993741899728775,
-0.21489112079143524,
0.17239314317703247,
0.48776325583457947,
0.1321091502904892,
-0.07518598437309265,
0.10875575989484787,
0.32901954650878906,
0.2698172926902771,
-0.10701239109039307,
-0.06779090315103531,
0.046110719442367554,
0.1597583144903183,
0.12367796897888184,
0.2729282081127167,
0.37348654866218567,
0.0694347396492958,
-0.11348817497491837,
0.05019085109233856,
-0.27216601371765137,
0.022212225943803787,
-0.6248471140861511,
-0.0524129793047905,
0.0661458820104599,
-0.08921845257282257,
-0.08650049567222595,
-0.2641976773738861,
-0.0879175066947937,
0.07300157845020294,
-0.13148696720600128,
-0.07761719822883606,
0.12985828518867493,
0.15187208354473114,
-0.015105152502655983,
-0.2216782420873642,
0.46642470359802246,
0.19084486365318298,
-0.0711207464337349,
-0.2612859308719635,
-0.3912625312805176,
-0.4571782052516937,
-0.15198078751564026,
-0.3572438657283783,
-0.6592262387275696,
0.3736521005630493,
0.05496160686016083,
0.28999799489974976,
0.38730108737945557,
-0.14411883056163788,
0.20425379276275635,
-0.2592008709907532,
0.14921049773693085,
-0.08980751782655716,
-0.12268923223018646,
0.2141065150499344,
0.22461922466754913,
-0.035081323236227036,
-0.2880989611148834,
0.3871390223503113,
0.269702672958374,
-0.16232046484947205,
0.06528938561677933,
0.15781424939632416,
-0.3285065293312073,
-0.19604972004890442,
0.34808334708213806,
-0.20579122006893158,
0.27504968643188477,
-0.1557932198047638,
0.06830494850873947,
-0.16512013971805573,
-0.003564495127648115,
-0.1899421662092209,
-0.08837655931711197,
0.012386605143547058,
0.18773594498634338,
0.022998882457613945,
0.2660590410232544,
-0.14056254923343658,
0.34570133686065674,
-0.04114007204771042,
-0.003744643647223711,
-0.07308805733919144,
-0.015157646499574184,
0.09062277525663376,
0.1835782378911972,
0.1265692263841629,
0.043066270649433136,
-0.13851769268512726,
-0.1504681408405304,
-0.2090221792459488,
-0.3464437425136566,
0.783120334148407,
-0.13931314647197723,
-0.3476372957229614,
-0.03247765079140663,
0.3898928761482239,
0.11336685717105865,
-0.019793769344687462,
-0.6474732160568237,
0.22431528568267822,
0.060922276228666306,
-0.20985665917396545,
-0.09357917308807373,
0.47486069798469543,
0.005337802693247795,
-0.3702041804790497,
-0.20244891941547394,
0.15620848536491394,
0.22221586108207703,
0.008894475176930428,
-0.22848810255527496,
-0.440626859664917
] |
https://github.com/huggingface/datasets/issues/4113 | Multiprocessing with FileLock fails in python 3.9 | Closing this one because it must be used this way actually:
```python
def main():
with FileLock("tmp.lock"):
with Pool(2) as pool:
pool.map(run, range(2))
if __name__ == "__main__":
main()
``` | On python 3.9, this code hangs:
```python
from multiprocessing import Pool
from filelock import FileLock
def run(i):
print(f"got the lock in multi process [{i}]")
with FileLock("tmp.lock"):
with Pool(2) as pool:
pool.map(run, range(2))
```
This is because the subprocesses try to acquire the lock from the main process for some reason. This is not the case in older versions of python.
This can cause many issues in python 3.9. In particular, we use multiprocessing to fetch data files when you load a dataset (as long as there are >16 data files). Therefore `imagefolder` hangs, and I expect any dataset that needs to download >16 files to hang as well.
Let's see if we can fix this and have a CI that runs on 3.9.
cc @mariosasko @julien-c | 28 | Multiprocessing with FileLock fails in python 3.9
On python 3.9, this code hangs:
```python
from multiprocessing import Pool
from filelock import FileLock
def run(i):
print(f"got the lock in multi process [{i}]")
with FileLock("tmp.lock"):
with Pool(2) as pool:
pool.map(run, range(2))
```
This is because the subprocesses try to acquire the lock from the main process for some reason. This is not the case in older versions of python.
This can cause many issues in python 3.9. In particular, we use multiprocessing to fetch data files when you load a dataset (as long as there are >16 data files). Therefore `imagefolder` hangs, and I expect any dataset that needs to download >16 files to hang as well.
Let's see if we can fix this and have a CI that runs on 3.9.
cc @mariosasko @julien-c
Closing this one because it must be used this way actually:
```python
def main():
with FileLock("tmp.lock"):
with Pool(2) as pool:
pool.map(run, range(2))
if __name__ == "__main__":
main()
``` | [
-0.28328970074653625,
-0.18521010875701904,
-0.12096038460731506,
0.02627742290496826,
-0.11182673275470734,
0.03941364586353302,
0.41287147998809814,
-0.05972251668572426,
0.11630024015903473,
0.19165092706680298,
0.0430319607257843,
0.20703785121440887,
-0.09803760051727295,
0.08197811245918274,
-0.6395188570022583,
0.05796051770448685,
0.12426881492137909,
-0.30981341004371643,
0.28851228952407837,
0.2777257561683655,
-0.30819082260131836,
0.35298973321914673,
-0.36135685443878174,
-0.03310711681842804,
-0.25066688656806946,
-0.016688326373696327,
-0.2459944635629654,
0.14325758814811707,
-0.30515873432159424,
-0.1408488005399704,
0.04870627075433731,
0.5159050226211548,
-0.0760844498872757,
0.8995247483253479,
-0.00011863246618304402,
-0.26114803552627563,
0.17635157704353333,
0.0952552929520607,
-0.07440027594566345,
-0.3498117923736572,
-0.18622422218322754,
-0.08483052998781204,
0.31611213088035583,
-0.08251693844795227,
0.2784360647201538,
0.1548636555671692,
0.056868284940719604,
-0.17449736595153809,
0.42781156301498413,
-0.21397702395915985,
0.11793100833892822,
0.5999733209609985,
-0.046988971531391144,
-0.001487099681980908,
-0.25364241003990173,
0.08496714383363724,
-0.12628090381622314,
0.531394898891449,
0.7895779609680176,
-0.4752736985683441,
-0.037042923271656036,
0.0816676914691925,
-0.20875431597232819,
-0.037534575909376144,
0.06495831161737442,
-0.14359025657176971,
-0.04139002412557602,
-0.7661424875259399,
0.0901549756526947,
0.19215083122253418,
-0.09946734458208084,
0.2604520618915558,
-0.5577481389045715,
-0.21581339836120605,
0.3408772051334381,
-0.19898128509521484,
0.15490053594112396,
0.25016599893569946,
-0.3246600925922394,
-0.2043560892343521,
-0.24892966449260712,
0.13158515095710754,
0.06996119022369385,
-0.008299656212329865,
0.14277306199073792,
0.5235353708267212,
0.06839220225811005,
0.2537570893764496,
0.4109874665737152,
0.1762445718050003,
-0.06402622908353806,
-0.03247799351811409,
0.23597319424152374,
-0.22716964781284332,
-0.025755811482667923,
0.04822661727666855,
0.06640354543924332,
0.15607082843780518,
-0.4214324653148651,
-0.3016026020050049,
-0.18867404758930206,
0.08718694746494293,
0.28604602813720703,
0.12419368326663971,
0.4231001138687134,
-0.287710040807724,
-0.21749892830848694,
0.20675444602966309,
0.28225743770599365,
0.2679498791694641,
-0.13179047405719757,
-0.048447385430336,
0.0757908821105957,
-0.15467411279678345,
-0.00491999089717865,
0.2561870515346527,
0.07008031755685806,
0.047598544508218765,
0.3393109142780304,
-0.05619592219591141,
0.07097186148166656,
0.05524381250143051,
0.17151427268981934,
0.07122591137886047,
-0.0036807223223149776,
0.5807538628578186,
0.19219861924648285,
0.1939755082130432,
-0.4229053258895874,
0.2853148877620697,
-0.023816300556063652,
-0.15545117855072021,
-0.1903722584247589,
0.010456487536430359,
0.004537492990493774,
-0.14581312239170074,
0.09076052159070969,
0.1547323316335678,
0.4297447204589844,
-0.13080383837223053,
0.2991345226764679,
-0.2400180995464325,
0.09363759309053421,
0.3045317828655243,
0.13551440834999084,
0.04556088149547577,
-0.007264520972967148,
-0.3372412919998169,
-0.09184117615222931,
-0.04058844596147537,
-0.2942582964897156,
0.2110091596841812,
-0.17622819542884827,
0.05410822480916977,
-0.07420949637889862,
0.3839970529079437,
-0.1778269112110138,
-0.3507615029811859,
0.014909602701663971,
0.14974890649318695,
0.1819334328174591,
-0.6008113622665405,
-0.020099371671676636,
-0.15135616064071655,
0.12973757088184357,
0.2952944040298462,
0.27730777859687805,
0.1713114231824875,
-0.2208348661661148,
-0.11444605886936188,
0.025677107274532318,
0.1715260148048401,
0.1161288321018219,
0.08269710838794708,
-0.23304995894432068,
0.05584403872489929,
-0.3383391499519348,
-0.421547532081604,
-0.07456059753894806,
0.31238874793052673,
-0.27646616101264954,
0.13491186499595642,
0.18906912207603455,
0.17312124371528625,
0.2740175724029541,
-0.0862986147403717,
-0.09185069799423218,
0.26544785499572754,
-0.32693442702293396,
0.09775964170694351,
0.14539466798305511,
0.0027834586799144745,
-0.589405357837677,
0.11345064640045166,
0.09750379621982574,
-0.21486693620681763,
-0.11285042017698288,
0.2626982033252716,
0.517376720905304,
-0.05231979861855507,
-0.13658644258975983,
0.11843883991241455,
0.47662675380706787,
0.30856212973594666,
-0.06219464913010597,
0.10515361279249191,
-0.20622825622558594,
0.43791764974594116,
-0.006533874198794365,
-0.04449865221977234,
-0.2756483554840088,
-0.047788336873054504,
0.4094511568546295,
0.1606317013502121,
-0.10824738442897797,
-0.06097638979554176,
0.04320346564054489,
0.07521776109933853,
-0.2437114268541336,
-0.17182298004627228,
-0.03091011755168438,
0.1962372064590454,
0.3873090147972107,
0.07274194061756134,
-0.06264801323413849,
0.13621821999549866,
-0.16475819051265717,
-0.39093244075775146,
-0.07098903506994247,
0.03599214181303978,
0.018546510487794876,
-0.09331945329904556,
-0.18093839287757874,
0.1768856942653656,
0.2225601077079773,
0.2944267690181732,
0.0804133266210556,
0.011748507618904114,
0.12144987285137177,
0.0990881472826004,
-0.2123710811138153,
-0.037174392491579056,
0.01363708171993494,
-0.012017995119094849,
0.33549967408180237,
0.46731996536254883,
-0.23886729776859283,
0.1886293888092041,
0.19120758771896362,
0.13535524904727936,
-0.1787152886390686,
0.04563179239630699,
-0.03620898723602295,
-0.14834684133529663,
0.26158782839775085,
0.2960939109325409,
-0.12792766094207764,
-0.12440825998783112,
0.19674506783485413,
-0.04685954004526138,
0.45057716965675354,
0.08194093406200409,
-0.09333353489637375,
0.0657825618982315,
0.29699745774269104,
0.1767202615737915,
-0.03803134709596634,
0.09642000496387482,
0.4667397737503052,
0.046261709183454514,
0.13758598268032074,
0.05245143920183182,
0.2148914933204651,
-0.2183028608560562,
0.004845641553401947,
0.4660491347312927,
0.0091751953586936,
0.07140368223190308,
-0.24006538093090057,
-0.006849120371043682,
0.25801199674606323,
-0.4776669144630432,
-0.06649519503116608,
-0.040972091257572174,
-0.0013761892914772034,
0.4728095233440399,
-0.13470390439033508,
0.2447240650653839,
0.14139612019062042,
-0.05275414511561394,
-0.06160830333828926,
-0.4893016815185547,
-0.2403804510831833,
0.7318921089172363,
-0.11444522440433502,
-0.09477658569812775,
-0.2695111334323883,
-0.11937589943408966,
0.0020687486976385117,
0.08261154592037201,
0.006003454327583313,
-0.13811039924621582,
0.011410040780901909,
-0.04074293002486229,
0.5394216775894165,
-0.17853891849517822,
0.09460042417049408,
0.3129255175590515,
-0.25832363963127136,
-0.27752262353897095,
-0.3958343267440796,
0.10738822817802429,
-0.3202199935913086,
0.3265441358089447,
0.27585530281066895,
0.20518893003463745,
-0.08052705228328705,
-0.3327255845069885,
0.1714402139186859,
-0.3569125831127167,
-0.1107533797621727,
0.04441159963607788,
-0.01348037924617529,
-0.30012285709381104,
-0.21754376590251923,
0.24724113941192627,
-0.1126391664147377,
-0.37901952862739563,
0.41791027784347534,
-0.22579815983772278,
-0.08185082674026489,
0.09902829676866531,
0.19126996397972107,
0.15688835084438324,
-0.15486828982830048,
-0.07650884985923767,
0.17331190407276154,
-0.3478558361530304,
-0.06598326563835144,
0.04760374873876572,
-0.2230403572320938,
-0.09756898880004883,
-0.1202041357755661,
0.18108327686786652,
-0.11624163389205933,
-0.43476128578186035,
-0.32858577370643616,
-0.22777773439884186,
0.2527528703212738,
0.012488819658756256,
0.0334552526473999,
-0.0024715065956115723,
-0.14069804549217224,
-0.164505735039711,
-0.022865327075123787,
0.2737228572368622,
-0.09072569757699966,
0.07686671614646912,
-0.038254089653491974,
0.10328549146652222,
0.07767708599567413,
0.15976783633232117,
0.43371474742889404,
0.2626093924045563,
0.23931118845939636,
0.28277650475502014,
0.42534977197647095,
0.24938571453094482,
-0.07489601522684097,
-0.3844316005706787,
-0.2359609156847,
-0.0868094265460968,
-0.0637725219130516,
0.15006430447101593,
0.045223869383335114,
-0.16040164232254028,
-0.28709566593170166,
0.004112493246793747,
-0.23522895574569702,
-0.49063998460769653,
0.017585229128599167,
0.43482208251953125,
0.11169669032096863,
-0.3044728636741638,
0.03387709707021713,
0.08659787476062775,
0.0300278402864933,
-0.14740946888923645,
0.39472007751464844,
0.2372480034828186,
-0.20397934317588806,
0.24103166162967682,
-0.2173887938261032,
-0.23286277055740356,
0.21486401557922363,
0.12827706336975098,
0.3870823383331299,
0.013144154101610184,
-0.02503897249698639,
-0.1162976324558258,
-0.4233754575252533,
0.37451082468032837,
0.1300116330385208,
0.0368061326444149,
0.23248016834259033,
-0.5324693322181702,
-0.25932157039642334,
-0.29972463846206665,
-0.3119991719722748,
0.235075905919075,
0.5938308238983154,
0.6046244502067566,
0.0011659637093544006,
-0.21139763295650482,
-0.17563438415527344,
-0.07769107818603516,
-0.021135076880455017,
-0.24840186536312103,
-0.4733145833015442,
-0.23815062642097473,
-0.3051662743091583,
0.353988379240036,
0.11089947074651718,
-0.23470647633075714,
-0.19642964005470276,
-0.05311845988035202,
0.15876206755638123,
-0.46914368867874146,
-0.2784201502799988,
0.12754586338996887,
-0.1752295196056366,
0.060208775103092194,
0.3000214397907257,
-0.04924650490283966,
-0.2749457359313965,
0.018934106454253197,
0.18356534838676453,
-0.12075154483318329,
-0.09055072069168091,
0.2588476836681366,
-0.10159590095281601,
0.17060713469982147,
0.4900887906551361,
0.013074769638478756,
0.15103478729724884,
0.6153690814971924,
0.4275422692298889,
-0.10140017420053482,
-0.14667177200317383,
0.2622729241847992,
0.022179018706083298,
0.10927074402570724,
0.23788869380950928,
-0.030618831515312195,
0.37242478132247925,
0.05881088972091675,
0.4249313175678253,
-0.26289528608322144,
0.01761186122894287,
-0.04470059275627136,
0.1706385314464569,
0.6633245348930359,
-0.2796943187713623,
0.2319519817829132,
-0.046034567058086395,
-0.07146363705396652,
0.020670179277658463,
0.3730153441429138,
0.049334872514009476,
-0.22266913950443268,
-0.8151909708976746,
0.07971898466348648,
-0.19152438640594482,
0.43056079745292664,
-0.23994503915309906,
-0.23364178836345673,
0.12362391501665115,
-0.07470418512821198,
-0.06140805408358574,
0.017424480989575386,
0.32804447412490845,
-0.2800866663455963,
-0.10331949591636658,
0.10517141222953796,
0.0963839739561081,
0.2774146795272827,
0.05407363921403885,
-0.16799286007881165,
-0.07103005051612854,
0.006544843316078186,
-0.05702877789735794,
-0.49143141508102417,
-0.06507813930511475,
-0.1933736354112625,
0.14191877841949463,
-0.13537195324897766,
0.1319618970155716,
-0.04891779273748398,
0.1610000729560852,
-0.2928096652030945,
0.24031579494476318,
-0.0910755842924118,
0.30993425846099854,
0.18740314245224,
-0.1388251632452011,
0.1077520027756691,
-0.18235540390014648,
0.1553937792778015,
-0.17176499962806702,
-0.11266860365867615,
-0.21036633849143982,
0.05106973648071289,
-0.3545476794242859,
0.1727387011051178,
0.31957438588142395,
0.05542554706335068,
0.3150322139263153,
-0.04638998955488205,
-0.2290380299091339,
-0.35661229491233826,
-0.1396193653345108,
0.042454030364751816,
0.11798522621393204,
-0.04607006162405014,
0.3064798414707184,
-0.3363840579986572,
-0.2991608679294586,
-0.13206036388874054,
0.2138676643371582,
-0.11555282026529312,
-0.06309479475021362,
0.2776815891265869,
0.482902467250824,
-0.19203412532806396,
-0.16674289107322693,
-0.09549655020236969,
-0.30615976452827454,
0.06774399429559708,
0.27641230821609497,
-0.02319508232176304,
-0.09419646859169006,
0.27801942825317383,
-0.17011529207229614,
0.2753216624259949,
-0.12954387068748474,
-0.14383992552757263,
-0.4027622938156128,
-0.3888668417930603,
0.031683653593063354,
-0.2784990668296814,
0.09048454463481903,
-0.227614164352417,
-0.06124402955174446,
0.3364444077014923,
0.04462553933262825,
-0.23654083907604218,
-0.04946970194578171,
-0.5751391649246216,
-0.10841052234172821,
0.6032422780990601,
-0.2980675995349884,
0.009708095341920853,
0.10706895589828491,
0.06485767662525177,
0.2819390892982483,
-0.01985485479235649,
-0.1164540946483612,
-0.0834357738494873,
0.08484555780887604,
0.02252449095249176,
-0.10194800794124603,
0.33140748739242554,
-0.24627231061458588,
-0.045209500938653946,
-0.18160079419612885,
0.06352703273296356,
0.0062124840915203094,
0.04558299481868744,
-0.2402488738298416,
0.06860406696796417,
0.3496653139591217,
0.01819177344441414,
0.15214358270168304,
-0.052395522594451904,
0.0786856934428215,
0.19386854767799377,
0.1922404021024704,
0.25032588839530945,
-0.014444112777709961,
-0.3563229441642761,
-0.21714848279953003,
-0.02061629295349121,
0.23100131750106812,
0.17935006320476532,
0.22960308194160461,
0.007775753736495972,
0.2989010214805603,
0.3583328127861023,
0.08215586841106415,
0.2815181016921997,
0.011259378865361214,
0.3347691595554352,
0.07491949200630188,
-0.07646186649799347,
0.0189228318631649,
-0.24039697647094727,
0.2213306427001953,
-0.10003578662872314,
0.22593045234680176,
-0.13100717961788177,
-0.0031560659408569336,
-0.12030927836894989,
0.2586554288864136,
0.01787436380982399,
0.2379889041185379,
0.23703986406326294,
-0.12517017126083374,
0.00922127440571785,
0.1950223296880722,
0.055946528911590576,
-0.16502386331558228,
-0.1986459195613861,
-0.21856914460659027,
-0.12809982895851135,
0.39104408025741577,
-0.18005263805389404,
0.054415151476860046,
0.4039355218410492,
-0.27138206362724304,
-0.0029984712600708008,
-0.1522151231765747,
0.2410404533147812,
0.22619390487670898,
-0.09408612549304962,
0.06196616590023041,
-0.46065816283226013,
-0.08297041803598404,
-0.21018727123737335,
0.39060187339782715,
-0.21214559674263,
0.051919396966695786,
0.09508804976940155,
0.1007818654179573,
-0.0926341637969017,
0.009890533983707428,
0.16194570064544678,
0.07381648570299149,
0.28951287269592285,
0.48815107345581055,
0.026978738605976105,
0.04278101027011871,
-0.48776185512542725,
-0.11700881272554398,
0.04761300981044769,
-0.30485299229621887,
-0.12368524819612503,
0.42513465881347656,
0.06161206215620041,
-0.045338090509176254,
0.16944855451583862,
0.5667977333068848,
0.22026105225086212,
-0.21503768861293793,
-0.12191233783960342,
-0.09273916482925415,
0.14741933345794678,
-0.02908710390329361,
0.2184513509273529,
0.20675140619277954,
0.3642999529838562,
-0.09355774521827698,
0.09392783790826797,
-0.2298532873392105,
-0.19963286817073822,
0.17324113845825195,
0.2126152366399765,
-0.11280456185340881,
0.38828104734420776,
0.3241349458694458,
0.04457477480173111,
0.10229519754648209,
0.2514658570289612,
-0.5788014531135559,
0.13386988639831543,
0.14416415989398956,
-0.05165746062994003,
-0.1464863121509552,
-0.015409470535814762,
0.04003866761922836,
0.09429807960987091,
0.34065356850624084,
0.5066846609115601,
0.27750030159950256,
-0.21962495148181915,
0.0791749507188797,
-0.3982354700565338,
0.06969217211008072,
-0.052717652171850204,
-0.3358742892742157,
0.01843293011188507,
0.14402200281620026,
0.039455633610486984,
0.2784339189529419,
0.5205444693565369,
-0.34345147013664246,
0.25170573592185974,
0.3062282204627991,
-0.4386749863624573,
0.03850251063704491,
0.4648371934890747,
-0.29844483733177185,
-0.015371521934866905,
-0.24008473753929138,
0.16370899975299835,
-0.3614720106124878,
0.12072544544935226,
-0.04408964514732361,
-0.5382812023162842,
0.16455116868019104,
0.16346332430839539,
0.1307101845741272,
-0.031154202297329903,
0.15938693284988403,
-0.15066644549369812,
-0.41818150877952576,
-0.23230379819869995,
0.2438105046749115,
0.13542594015598297,
-0.16210082173347473,
0.028734995052218437,
0.4587327241897583,
-0.3585270941257477,
0.08905039727687836,
-0.40873414278030396,
-0.08157683908939362,
-0.3662841320037842,
-0.20340029895305634,
-0.1514245569705963,
0.07202284783124924,
0.14508086442947388,
0.04745792970061302,
0.11101800948381424,
0.5208902955055237,
0.00476769357919693,
0.15309256315231323,
-0.39932507276535034,
-0.07711895555257797,
0.25796815752983093,
-0.5628766417503357,
-0.3052894175052643,
-0.3672197759151459,
0.057734787464141846,
-0.6679345965385437,
0.3569120466709137,
0.09275152534246445,
0.1680546998977661,
-0.059900589287281036,
0.1816788613796234,
-0.39024588465690613,
0.14030125737190247,
-0.06189819797873497,
-0.07700851559638977,
-0.1317998617887497,
0.214300274848938,
-0.11487825959920883,
-0.24886482954025269,
0.07107897102832794,
0.2664526700973511
] |
https://github.com/huggingface/datasets/issues/4112 | ImageFolder with Grayscale images dataset | Hi! Replacing:
```python
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
```
with:
```python
def transform_func(examples):
examples["image"] = [transforms(img).to("cuda") for img in examples["image"]]
return examples
transformed_dataset = dataset.with_transform(transform_func)
```
should fix the issue. `datasets` doesn't support chaining of transforms (you can think of `set_format`/`with_format` as a predefined transform func for `set_transform`/`with_transforms`), so the last transform (in your case, `set_format`) takes precedence over the previous ones (in your case `with_format`). And the PyTorch formatter is not supported by the Image feature, hence the error (adding support for that is on our short-term roadmap). | Hi, I'm facing a problem with a grayscale images dataset I have uploaded [here](https://huggingface.co/datasets/ChainYo/rvl-cdip) (RVL-CDIP)
I'm getting an error while I want to use images for training a model with PyTorch DataLoader. Here is the full traceback:
```bash
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1765, in __getitem__
return self._getitem(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1750, in _getitem
formatted_output = format_table(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 314, in map_nested
mapped = [
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 315, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 251, in _single_map_nested
return function(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
```
I don't really understand why the image is still a bytes object while I used transformations on it. Here the code I used to upload the dataset (and it worked well):
```python
train_dataset = load_dataset("imagefolder", data_dir="data/train")
train_dataset = train_dataset["train"]
test_dataset = load_dataset("imagefolder", data_dir="data/test")
test_dataset = test_dataset["train"]
val_dataset = load_dataset("imagefolder", data_dir="data/val")
val_dataset = val_dataset["train"]
dataset = DatasetDict({
"train": train_dataset,
"val": val_dataset,
"test": test_dataset
})
dataset.push_to_hub("ChainYo/rvl-cdip")
```
Now here is the code I am using to get the dataset and prepare it for training:
```python
img_size = 512
batch_size = 128
normalize = [(0.5), (0.5)]
data_dir = "ChainYo/rvl-cdip"
dataset = load_dataset(data_dir, split="train")
transforms = transforms.Compose([
transforms.Resize(img_size),
transforms.CenterCrop(img_size),
transforms.ToTensor(),
transforms.Normalize(*normalize)
])
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
train_dataloader = torch.utils.data.DataLoader(
transformed_dataset, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=True
)
```
But this get me the error above. I don't understand why it's doing this kind of weird thing?
Do I need to map something on the dataset? Something like this:
```python
labels = dataset.features["label"].names
num_labels = dataset.features["label"].num_classes
def preprocess_data(examples):
images = [ex.convert("RGB") for ex in examples["image"]]
labels = [ex for ex in examples["label"]]
return {"images": images, "labels": labels}
features = Features({
"images": Image(decode=True, id=None),
"labels": ClassLabel(num_classes=num_labels, names=labels)
})
decoded_dataset = dataset.map(preprocess_data, remove_columns=dataset.column_names, features=features, batched=True, batch_size=100)
```
| 89 | ImageFolder with Grayscale images dataset
Hi, I'm facing a problem with a grayscale images dataset I have uploaded [here](https://huggingface.co/datasets/ChainYo/rvl-cdip) (RVL-CDIP)
I'm getting an error while I want to use images for training a model with PyTorch DataLoader. Here is the full traceback:
```bash
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1765, in __getitem__
return self._getitem(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1750, in _getitem
formatted_output = format_table(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 314, in map_nested
mapped = [
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 315, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 251, in _single_map_nested
return function(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
```
I don't really understand why the image is still a bytes object while I used transformations on it. Here the code I used to upload the dataset (and it worked well):
```python
train_dataset = load_dataset("imagefolder", data_dir="data/train")
train_dataset = train_dataset["train"]
test_dataset = load_dataset("imagefolder", data_dir="data/test")
test_dataset = test_dataset["train"]
val_dataset = load_dataset("imagefolder", data_dir="data/val")
val_dataset = val_dataset["train"]
dataset = DatasetDict({
"train": train_dataset,
"val": val_dataset,
"test": test_dataset
})
dataset.push_to_hub("ChainYo/rvl-cdip")
```
Now here is the code I am using to get the dataset and prepare it for training:
```python
img_size = 512
batch_size = 128
normalize = [(0.5), (0.5)]
data_dir = "ChainYo/rvl-cdip"
dataset = load_dataset(data_dir, split="train")
transforms = transforms.Compose([
transforms.Resize(img_size),
transforms.CenterCrop(img_size),
transforms.ToTensor(),
transforms.Normalize(*normalize)
])
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
train_dataloader = torch.utils.data.DataLoader(
transformed_dataset, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=True
)
```
But this get me the error above. I don't understand why it's doing this kind of weird thing?
Do I need to map something on the dataset? Something like this:
```python
labels = dataset.features["label"].names
num_labels = dataset.features["label"].num_classes
def preprocess_data(examples):
images = [ex.convert("RGB") for ex in examples["image"]]
labels = [ex for ex in examples["label"]]
return {"images": images, "labels": labels}
features = Features({
"images": Image(decode=True, id=None),
"labels": ClassLabel(num_classes=num_labels, names=labels)
})
decoded_dataset = dataset.map(preprocess_data, remove_columns=dataset.column_names, features=features, batched=True, batch_size=100)
```
Hi! Replacing:
```python
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
```
with:
```python
def transform_func(examples):
examples["image"] = [transforms(img).to("cuda") for img in examples["image"]]
return examples
transformed_dataset = dataset.with_transform(transform_func)
```
should fix the issue. `datasets` doesn't support chaining of transforms (you can think of `set_format`/`with_format` as a predefined transform func for `set_transform`/`with_transforms`), so the last transform (in your case, `set_format`) takes precedence over the previous ones (in your case `with_format`). And the PyTorch formatter is not supported by the Image feature, hence the error (adding support for that is on our short-term roadmap). | [
-0.3947274684906006,
0.27717679738998413,
0.004924949258565903,
0.3311272859573364,
0.3124428987503052,
-0.07205560058355331,
0.6099215149879456,
0.17172586917877197,
0.09527567028999329,
0.11197198182344437,
0.02965138852596283,
0.37893301248550415,
-0.41227611899375916,
-0.04050472751259804,
-0.3064040243625641,
-0.2962743937969208,
-0.25226858258247375,
0.23652508854866028,
-0.22022554278373718,
0.10406260192394257,
-0.22363902628421783,
0.0312365535646677,
-0.2093675583600998,
0.15496325492858887,
-0.6815346479415894,
-0.18172778189182281,
0.05053853243589401,
0.15183210372924805,
-0.14978773891925812,
-0.19908098876476288,
0.09277813136577606,
-0.15874046087265015,
0.31506726145744324,
0.7039391398429871,
-0.00011739767796825618,
0.18683095276355743,
0.3596716523170471,
-0.0682082399725914,
-0.2124696969985962,
-0.3707818388938904,
0.08498033136129379,
-0.027042998000979424,
-0.12237673997879028,
-0.20796415209770203,
0.09552054852247238,
-0.5331705808639526,
0.11195718497037888,
0.19093675911426544,
0.07031256705522537,
0.16621483862400055,
0.16681654751300812,
0.13466963171958923,
0.17005568742752075,
0.26981833577156067,
-0.005117692053318024,
0.19070090353488922,
0.06956848502159119,
0.5188553929328918,
0.1730022430419922,
-0.31963101029396057,
-0.07620478421449661,
0.4454616606235504,
0.025777021422982216,
0.36786895990371704,
0.2606947422027588,
0.09630564600229263,
0.23423415422439575,
-0.2296564280986786,
-0.11579524725675583,
0.1529572308063507,
0.35025933384895325,
-0.03165247291326523,
-0.47854068875312805,
-0.223201185464859,
0.05948944389820099,
-0.11632951349020004,
0.2501673400402069,
0.31566303968429565,
-0.17883893847465515,
-0.13709013164043427,
-0.37202244997024536,
-0.06565435975790024,
-0.5381706953048706,
0.2952215075492859,
-0.2831922769546509,
-0.024547338485717773,
0.01197439432144165,
0.17781560122966766,
0.31384044885635376,
0.059961654245853424,
0.22046564519405365,
-0.07813124358654022,
0.14334635436534882,
0.19404348731040955,
-0.09811888635158539,
0.010329391807317734,
-0.18337863683700562,
-0.2092733383178711,
-0.15558594465255737,
0.026078475639224052,
0.12030115723609924,
-0.36355921626091003,
-0.09571809321641922,
0.37823593616485596,
0.1055479496717453,
0.17175383865833282,
-0.1997348666191101,
0.3142630159854889,
0.17726057767868042,
0.021704740822315216,
-0.12590989470481873,
-0.1704237163066864,
-0.34972622990608215,
-0.39509356021881104,
0.15979330241680145,
0.051514144986867905,
0.4250633120536804,
-0.04543071612715721,
-0.21402154862880707,
-0.023039475083351135,
0.04525746405124664,
0.012607676908373833,
0.0018493328243494034,
0.2065046727657318,
0.09832049906253815,
-0.007664434611797333,
0.42176443338394165,
0.4131562113761902,
-0.02706889435648918,
-0.07279312610626221,
-0.10896120965480804,
0.20436324179172516,
-0.2296348661184311,
-0.3531789183616638,
-0.08178794384002686,
-0.14637257158756256,
0.08809272199869156,
-0.07639074325561523,
0.1458800584077835,
-0.009142782539129257,
0.3726957440376282,
-0.33973363041877747,
-0.139007568359375,
0.12950152158737183,
-0.26127225160598755,
-0.19029399752616882,
0.36633118987083435,
0.16009072959423065,
0.008174613118171692,
0.2068527340888977,
-0.5216915011405945,
-0.09887655079364777,
-0.2730467617511749,
0.10424191504716873,
-0.031902361661195755,
0.008750367909669876,
-0.28021425008773804,
-0.2475125938653946,
0.2945941686630249,
-0.11578710377216339,
0.06846369802951813,
-0.4110628366470337,
-0.13549450039863586,
-0.010308897122740746,
-0.2832249402999878,
0.22979265451431274,
-0.4675406217575073,
-0.14649656414985657,
0.0844593346118927,
-0.12845760583877563,
0.4124796390533447,
0.09843824803829193,
-0.2009052187204361,
0.5107197165489197,
-0.24282562732696533,
0.1381451040506363,
-0.20758074522018433,
-0.3298107087612152,
-0.2915019392967224,
0.305292010307312,
-0.082909494638443,
-0.08397331833839417,
0.07130945473909378,
0.16349801421165466,
0.162114679813385,
-0.09786874055862427,
-0.19242319464683533,
0.39528870582580566,
-0.1924779862165451,
0.18080410361289978,
0.0392819307744503,
-0.16670061647891998,
0.5391039848327637,
0.23956967890262604,
0.13705390691757202,
0.05392727255821228,
0.00005958974361419678,
-0.015210313722491264,
0.058053068816661835,
-0.4667939245700836,
0.13010844588279724,
-0.14382055401802063,
0.15691187977790833,
0.039382584393024445,
-0.06051323562860489,
-0.05741789937019348,
-0.27167823910713196,
0.1938697099685669,
-0.051385298371315,
0.21316170692443848,
-0.5060612559318542,
0.2782883644104004,
-0.018647223711013794,
0.044509440660476685,
-0.45512792468070984,
-0.29731521010398865,
0.06909944862127304,
0.022371668368577957,
-0.10577943921089172,
-0.10021165013313293,
0.011227551847696304,
0.38541409373283386,
-0.5265703201293945,
0.1338527351617813,
0.06303512305021286,
0.494073748588562,
-0.08956679701805115,
-0.2678897976875305,
0.02780107408761978,
-0.11538461595773697,
-0.05138757824897766,
-0.179171621799469,
-0.16732734441757202,
0.36836832761764526,
0.002163467463105917,
0.2339741289615631,
0.11985792964696884,
-0.16623817384243011,
0.15336252748966217,
-0.15014927089214325,
0.17540346086025238,
0.1895674616098404,
0.22132918238639832,
-0.02134595811367035,
0.18554019927978516,
0.4086684584617615,
-0.019612669944763184,
0.24309754371643066,
-0.09751702845096588,
0.01605820469558239,
0.09985536336898804,
0.01859816536307335,
0.16111689805984497,
0.08166033029556274,
0.2732074558734894,
-0.03219816833734512,
0.099307581782341,
-0.0880247950553894,
-0.12466637790203094,
-0.3014211356639862,
-0.1773451566696167,
0.09488460421562195,
0.15203776955604553,
0.2815108001232147,
-0.03468137979507446,
0.21151277422904968,
0.1150766983628273,
0.44068267941474915,
0.4768320322036743,
0.09309402108192444,
-0.2523958683013916,
0.00409935787320137,
-0.18757665157318115,
0.06323260813951492,
0.17033876478672028,
0.18165189027786255,
0.5361403226852417,
0.23593509197235107,
-0.06387599557638168,
-0.091966412961483,
-0.21215826272964478,
-0.517268180847168,
0.14564210176467896,
0.6141676306724548,
-0.20941093564033508,
0.2693394124507904,
-0.2053672820329666,
-0.25494882464408875,
0.15963879227638245,
0.17913438379764557,
-0.2552328109741211,
-0.046659789979457855,
-0.14454424381256104,
0.20244716107845306,
-0.031200412660837173,
0.10226035863161087,
-0.6109291911125183,
0.19088256359100342,
0.3285829722881317,
-0.011758560314774513,
-0.2483045756816864,
-0.1692255288362503,
-0.07011757791042328,
-0.03665749728679657,
0.33766138553619385,
-0.48551681637763977,
0.3587486147880554,
-0.08365081250667572,
0.059615492820739746,
-0.247728168964386,
-0.14076659083366394,
0.18514187633991241,
-0.12530763447284698,
0.21562252938747406,
0.23893435299396515,
0.5151287913322449,
0.1472424417734146,
-0.24792934954166412,
0.42815718054771423,
-0.25221574306488037,
-0.33629927039146423,
0.11776088178157806,
0.07406072318553925,
0.206582710146904,
-0.12261296808719635,
-0.08846262842416763,
-0.422690212726593,
-0.14636634290218353,
-0.19133104383945465,
0.11379525065422058,
0.34124141931533813,
0.5362699627876282,
0.4936065673828125,
0.10862821340560913,
-0.0532110258936882,
-0.1820891946554184,
0.01991717703640461,
-0.3058728575706482,
0.23158800601959229,
0.020983126014471054,
-0.2203712910413742,
-0.14471453428268433,
0.036159154027700424,
0.11596478521823883,
0.39542722702026367,
-0.2742592394351959,
-0.511884868144989,
0.014883230440318584,
0.020363982766866684,
-0.056115977466106415,
-0.018856389448046684,
0.02812611311674118,
0.08873112499713898,
-0.10805623233318329,
-0.12309561669826508,
0.2702782452106476,
-0.02747294306755066,
-0.018015462905168533,
0.47848862409591675,
0.14406809210777283,
0.14776137471199036,
0.18048237264156342,
0.42090940475463867,
-0.2647823095321655,
-0.24009637534618378,
0.37592288851737976,
-0.14454446732997894,
0.15643510222434998,
0.205020010471344,
-0.40591686964035034,
0.28026363253593445,
-0.0246087908744812,
-0.1497589349746704,
-0.07061861455440521,
-0.09684399515390396,
-0.3673076331615448,
-0.09686495363712311,
-0.18618547916412354,
-0.358541339635849,
-0.0269224364310503,
0.22527995705604553,
0.2194056361913681,
0.3023734390735626,
-0.36123961210250854,
-0.24997708201408386,
-0.2510198950767517,
-0.11355897039175034,
0.04249733313918114,
0.3500678539276123,
0.1533186137676239,
0.0025276467204093933,
-0.11068858206272125,
-0.07069361954927444,
-0.07395686954259872,
0.16032612323760986,
0.13824479281902313,
0.33182597160339355,
-0.05118216201663017,
0.16810423135757446,
0.006142020225524902,
0.005061505362391472,
0.6203832030296326,
-0.07451499253511429,
0.21471571922302246,
0.018327746540308,
-0.31626880168914795,
-0.08788063377141953,
-0.0773085355758667,
-0.3692152798175812,
0.3723447620868683,
-0.03753955289721489,
0.20086804032325745,
-0.20482414960861206,
-0.05495930463075638,
0.057896316051483154,
-0.09371184557676315,
-0.2394014596939087,
-0.07963552325963974,
-0.21820631623268127,
-0.11342372745275497,
-0.4760259985923767,
0.0742621198296547,
0.0007962547242641449,
0.1405879110097885,
0.13813915848731995,
0.30285561084747314,
-0.20913578569889069,
-0.024243950843811035,
-0.06935137510299683,
0.05385272577404976,
0.22781848907470703,
-0.19148477911949158,
-0.07886220514774323,
0.30715280771255493,
0.2211485654115677,
0.6216572523117065,
0.16992345452308655,
0.02413983643054962,
-0.12503927946090698,
0.09139002859592438,
-0.1312314122915268,
0.3136745095252991,
0.3282938003540039,
-0.09918615967035294,
-0.23069578409194946,
-0.1727856546640396,
0.027654986828565598,
-0.2309035062789917,
0.23024430871009827,
0.4316640794277191,
0.044497955590486526,
0.0442996621131897,
-0.3397843837738037,
0.23352810740470886,
0.0802544355392456,
0.10148221254348755,
0.31874319911003113,
-0.008053004741668701,
-0.17988739907741547,
0.017209505662322044,
0.36127135157585144,
0.889610767364502,
0.08210983872413635,
0.3037296235561371,
0.3475218713283539,
0.026673920452594757,
0.2195080816745758,
0.20718048512935638,
0.14153701066970825,
-0.20256567001342773,
-0.06610144674777985,
-0.18758781254291534,
-0.20012088119983673,
0.37740662693977356,
0.1457495242357254,
0.0880090743303299,
-0.03375370800495148,
-0.13324350118637085,
-0.3375057578086853,
-0.13092757761478424,
0.04892914742231369,
-0.35967227816581726,
-0.21633091568946838,
0.11568666994571686,
0.12302064895629883,
-0.26889997720718384,
0.20840680599212646,
-0.2697359621524811,
-0.04973623529076576,
-0.14268438518047333,
-0.14470499753952026,
-0.04839049652218819,
0.14149048924446106,
-0.3352365493774414,
0.16438736021518707,
0.09241706132888794,
-0.4171868562698364,
-0.022689633071422577,
0.2013072371482849,
-0.33724451065063477,
-0.34036239981651306,
-0.05679748207330704,
0.10906274616718292,
-0.3087748885154724,
0.13974584639072418,
0.12974193692207336,
-0.15490670502185822,
0.4648338854312897,
-0.07104037702083588,
-0.005069427192211151,
-0.1187729761004448,
-0.0341341532766819,
-0.30926114320755005,
0.1772724688053131,
0.07415810227394104,
-0.025666430592536926,
-0.04912621155381203,
-0.3063056170940399,
-0.3733142018318176,
-0.24082458019256592,
-0.07223967462778091,
0.08711592853069305,
0.29080429673194885,
-0.12588109076023102,
0.051933079957962036,
0.21473921835422516,
-0.3583735525608063,
0.14462825655937195,
0.24151000380516052,
0.18984517455101013,
0.06898320466279984,
0.6723997592926025,
0.2116919904947281,
-0.14711208641529083,
-0.16016355156898499,
0.16976070404052734,
0.16130642592906952,
-0.5598743557929993,
0.32817307114601135,
0.15702861547470093,
0.11092536151409149,
-0.16355277597904205,
-0.0472659133374691,
0.2707173824310303,
0.015761561691761017,
-0.1315528005361557,
-0.5903140902519226,
-0.4801456928253174,
-0.0008660405874252319,
-0.22943486273288727,
0.3855966329574585,
-0.21263757348060608,
0.02843160554766655,
0.04544663429260254,
-0.12844420969486237,
-0.23075279593467712,
0.1417762190103531,
-0.15305089950561523,
0.20921145379543304,
0.25004154443740845,
-0.04642896354198456,
0.2442050576210022,
-0.17523624002933502,
0.022438934072852135,
0.0872633159160614,
-0.048758864402770996,
-0.07735206931829453,
-0.37930890917778015,
0.142893448472023,
0.2902626395225525,
-0.3201148509979248,
0.19758832454681396,
-0.2589412331581116,
-0.05457166209816933,
0.05995994806289673,
-0.10776741802692413,
-0.036055367439985275,
-0.3573840856552124,
0.2774814963340759,
0.00792665034532547,
-0.07990071922540665,
0.2419314831495285,
0.039338208734989166,
-0.20097839832305908,
0.4313528537750244,
0.23578016459941864,
0.08604251593351364,
0.08717124164104462,
0.005393996834754944,
-0.11158831417560577,
-0.06289265304803848,
-0.1424950808286667,
0.25284919142723083,
0.4057108163833618,
-0.2829231023788452,
0.27938312292099,
-0.2250620275735855,
0.5416772365570068,
0.041259847581386566,
-0.42536264657974243,
-0.07411991059780121,
0.4103442132472992,
0.11754358559846878,
-0.3084377944469452,
-0.03553538769483566,
0.16039301455020905,
-0.03243947774171829,
-0.06362815201282501,
0.2351890504360199,
-0.256422758102417,
0.2688048481941223,
-0.46226269006729126,
0.08927665650844574,
0.4003751277923584,
-0.17937034368515015,
-0.09208241105079651,
0.3410109877586365,
-0.28170129656791687,
0.22452905774116516,
0.5956487059593201,
0.4211949408054352,
0.034299641847610474,
0.28455525636672974,
-0.08252628892660141,
0.1429591327905655,
0.017075015231966972,
-0.1327114850282669,
-0.012408353388309479,
-0.31702446937561035,
-0.3681195378303528,
0.0937226191163063,
0.0875127837061882,
0.27080532908439636,
-0.20899710059165955,
0.3911544680595398,
0.010186570696532726,
-0.039057422429323196,
0.06774404644966125,
0.25580090284347534,
-0.17245370149612427,
0.16245001554489136,
-0.517695426940918,
-0.24006929993629456,
-0.094246506690979,
-0.010134829208254814,
-0.010869652032852173,
-0.25877195596694946,
0.06236254796385765,
0.3435382843017578,
-0.19188569486141205,
-0.4405631124973297,
-0.029828518629074097,
0.1830442249774933,
0.04534619301557541,
-0.36167964339256287,
0.10357774794101715,
0.07754502445459366,
0.23603199422359467,
0.24941584467887878,
0.5633384585380554,
0.617529571056366,
0.44644951820373535,
-0.03468622639775276,
-0.1895906925201416,
-0.23632074892520905,
0.004544423893094063,
-0.053730905055999756,
0.24900774657726288,
0.09742245823144913,
0.05123183876276016,
0.1820741444826126,
0.09407146275043488,
-0.08594027906656265,
0.22104617953300476,
0.11489538848400116,
-0.21228137612342834,
0.14708708226680756,
0.3257746398448944,
-0.07084283977746964,
-0.12081710994243622,
-0.1546366810798645,
-0.047544755041599274,
-0.3497302234172821,
-0.11528429388999939,
0.3476642668247223,
-0.013906674459576607,
0.19180572032928467,
0.17341244220733643,
0.013233866542577744,
-0.13175442814826965,
0.4145509898662567,
0.4479804039001465,
0.20660173892974854,
-0.3605053722858429,
0.14200527966022491,
-0.5662330985069275,
0.17935749888420105,
-0.3956078588962555,
-0.19079670310020447,
-0.21277162432670593,
0.08532329648733139,
0.05816560983657837,
0.018114065751433372,
0.510296642780304,
0.09660309553146362,
0.25826090574264526,
0.18574628233909607,
-0.38831526041030884,
-0.18639110028743744,
0.23577910661697388,
0.28791695833206177,
-0.03120093047618866,
-0.2884853482246399,
0.03710261732339859,
-0.049486953765153885,
0.07556159049272537,
0.07537686079740524,
-0.0624476820230484,
-0.3076817989349365,
-0.02264358103275299,
0.3932262659072876,
-0.040066592395305634,
0.65184485912323,
0.02843780815601349,
0.15431371331214905,
-0.1639033704996109,
-0.07316252589225769,
-0.22045578062534332,
0.04135546088218689,
0.36114776134490967,
0.46219614148139954,
-0.18071025609970093,
-0.1875401735305786,
-0.5453256368637085,
0.22123020887374878,
-0.2705267071723938,
-0.19161733984947205,
-0.4534890949726105,
0.3553599417209625,
-0.1336778998374939,
-0.09727770835161209,
-0.05375439301133156,
-0.09190230816602707,
0.049681540578603745,
-0.06178950518369675,
-0.5940248966217041,
-0.36052149534225464,
0.5606497526168823,
-0.4193267822265625,
-0.4107776880264282,
0.1860111653804779,
0.01607450097799301,
0.12956035137176514,
0.3704109191894531,
-0.24766498804092407,
0.18720510601997375,
0.03777001053094864,
0.013674545101821423,
-0.19317160546779633,
-0.12380802631378174,
0.2645736634731293,
0.12391285598278046,
0.1053137332201004,
0.4532473683357239,
-0.3505426049232483,
-0.1409759223461151,
0.03206202760338783,
-0.034793172031641006
] |
https://github.com/huggingface/datasets/issues/4112 | ImageFolder with Grayscale images dataset | Ok thanks a lot for the code snippet!
I love the way `datasets` is easy to use but it made it really long to pre-process all the images (400.000 in my case) before training anything. `ImageFolder` from pytorch is faster in my case but force me to have the images on my local machine.
I don't know how to speed up the process without switching to `ImageFolder` :smile: | Hi, I'm facing a problem with a grayscale images dataset I have uploaded [here](https://huggingface.co/datasets/ChainYo/rvl-cdip) (RVL-CDIP)
I'm getting an error while I want to use images for training a model with PyTorch DataLoader. Here is the full traceback:
```bash
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1765, in __getitem__
return self._getitem(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1750, in _getitem
formatted_output = format_table(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 314, in map_nested
mapped = [
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 315, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 251, in _single_map_nested
return function(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
```
I don't really understand why the image is still a bytes object while I used transformations on it. Here the code I used to upload the dataset (and it worked well):
```python
train_dataset = load_dataset("imagefolder", data_dir="data/train")
train_dataset = train_dataset["train"]
test_dataset = load_dataset("imagefolder", data_dir="data/test")
test_dataset = test_dataset["train"]
val_dataset = load_dataset("imagefolder", data_dir="data/val")
val_dataset = val_dataset["train"]
dataset = DatasetDict({
"train": train_dataset,
"val": val_dataset,
"test": test_dataset
})
dataset.push_to_hub("ChainYo/rvl-cdip")
```
Now here is the code I am using to get the dataset and prepare it for training:
```python
img_size = 512
batch_size = 128
normalize = [(0.5), (0.5)]
data_dir = "ChainYo/rvl-cdip"
dataset = load_dataset(data_dir, split="train")
transforms = transforms.Compose([
transforms.Resize(img_size),
transforms.CenterCrop(img_size),
transforms.ToTensor(),
transforms.Normalize(*normalize)
])
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
train_dataloader = torch.utils.data.DataLoader(
transformed_dataset, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=True
)
```
But this get me the error above. I don't understand why it's doing this kind of weird thing?
Do I need to map something on the dataset? Something like this:
```python
labels = dataset.features["label"].names
num_labels = dataset.features["label"].num_classes
def preprocess_data(examples):
images = [ex.convert("RGB") for ex in examples["image"]]
labels = [ex for ex in examples["label"]]
return {"images": images, "labels": labels}
features = Features({
"images": Image(decode=True, id=None),
"labels": ClassLabel(num_classes=num_labels, names=labels)
})
decoded_dataset = dataset.map(preprocess_data, remove_columns=dataset.column_names, features=features, batched=True, batch_size=100)
```
| 68 | ImageFolder with Grayscale images dataset
Hi, I'm facing a problem with a grayscale images dataset I have uploaded [here](https://huggingface.co/datasets/ChainYo/rvl-cdip) (RVL-CDIP)
I'm getting an error while I want to use images for training a model with PyTorch DataLoader. Here is the full traceback:
```bash
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1765, in __getitem__
return self._getitem(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1750, in _getitem
formatted_output = format_table(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 314, in map_nested
mapped = [
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 315, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 251, in _single_map_nested
return function(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
```
I don't really understand why the image is still a bytes object while I used transformations on it. Here the code I used to upload the dataset (and it worked well):
```python
train_dataset = load_dataset("imagefolder", data_dir="data/train")
train_dataset = train_dataset["train"]
test_dataset = load_dataset("imagefolder", data_dir="data/test")
test_dataset = test_dataset["train"]
val_dataset = load_dataset("imagefolder", data_dir="data/val")
val_dataset = val_dataset["train"]
dataset = DatasetDict({
"train": train_dataset,
"val": val_dataset,
"test": test_dataset
})
dataset.push_to_hub("ChainYo/rvl-cdip")
```
Now here is the code I am using to get the dataset and prepare it for training:
```python
img_size = 512
batch_size = 128
normalize = [(0.5), (0.5)]
data_dir = "ChainYo/rvl-cdip"
dataset = load_dataset(data_dir, split="train")
transforms = transforms.Compose([
transforms.Resize(img_size),
transforms.CenterCrop(img_size),
transforms.ToTensor(),
transforms.Normalize(*normalize)
])
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
train_dataloader = torch.utils.data.DataLoader(
transformed_dataset, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=True
)
```
But this get me the error above. I don't understand why it's doing this kind of weird thing?
Do I need to map something on the dataset? Something like this:
```python
labels = dataset.features["label"].names
num_labels = dataset.features["label"].num_classes
def preprocess_data(examples):
images = [ex.convert("RGB") for ex in examples["image"]]
labels = [ex for ex in examples["label"]]
return {"images": images, "labels": labels}
features = Features({
"images": Image(decode=True, id=None),
"labels": ClassLabel(num_classes=num_labels, names=labels)
})
decoded_dataset = dataset.map(preprocess_data, remove_columns=dataset.column_names, features=features, batched=True, batch_size=100)
```
Ok thanks a lot for the code snippet!
I love the way `datasets` is easy to use but it made it really long to pre-process all the images (400.000 in my case) before training anything. `ImageFolder` from pytorch is faster in my case but force me to have the images on my local machine.
I don't know how to speed up the process without switching to `ImageFolder` :smile: | [
-0.3947274684906006,
0.27717679738998413,
0.004924949258565903,
0.3311272859573364,
0.3124428987503052,
-0.07205560058355331,
0.6099215149879456,
0.17172586917877197,
0.09527567028999329,
0.11197198182344437,
0.02965138852596283,
0.37893301248550415,
-0.41227611899375916,
-0.04050472751259804,
-0.3064040243625641,
-0.2962743937969208,
-0.25226858258247375,
0.23652508854866028,
-0.22022554278373718,
0.10406260192394257,
-0.22363902628421783,
0.0312365535646677,
-0.2093675583600998,
0.15496325492858887,
-0.6815346479415894,
-0.18172778189182281,
0.05053853243589401,
0.15183210372924805,
-0.14978773891925812,
-0.19908098876476288,
0.09277813136577606,
-0.15874046087265015,
0.31506726145744324,
0.7039391398429871,
-0.00011739767796825618,
0.18683095276355743,
0.3596716523170471,
-0.0682082399725914,
-0.2124696969985962,
-0.3707818388938904,
0.08498033136129379,
-0.027042998000979424,
-0.12237673997879028,
-0.20796415209770203,
0.09552054852247238,
-0.5331705808639526,
0.11195718497037888,
0.19093675911426544,
0.07031256705522537,
0.16621483862400055,
0.16681654751300812,
0.13466963171958923,
0.17005568742752075,
0.26981833577156067,
-0.005117692053318024,
0.19070090353488922,
0.06956848502159119,
0.5188553929328918,
0.1730022430419922,
-0.31963101029396057,
-0.07620478421449661,
0.4454616606235504,
0.025777021422982216,
0.36786895990371704,
0.2606947422027588,
0.09630564600229263,
0.23423415422439575,
-0.2296564280986786,
-0.11579524725675583,
0.1529572308063507,
0.35025933384895325,
-0.03165247291326523,
-0.47854068875312805,
-0.223201185464859,
0.05948944389820099,
-0.11632951349020004,
0.2501673400402069,
0.31566303968429565,
-0.17883893847465515,
-0.13709013164043427,
-0.37202244997024536,
-0.06565435975790024,
-0.5381706953048706,
0.2952215075492859,
-0.2831922769546509,
-0.024547338485717773,
0.01197439432144165,
0.17781560122966766,
0.31384044885635376,
0.059961654245853424,
0.22046564519405365,
-0.07813124358654022,
0.14334635436534882,
0.19404348731040955,
-0.09811888635158539,
0.010329391807317734,
-0.18337863683700562,
-0.2092733383178711,
-0.15558594465255737,
0.026078475639224052,
0.12030115723609924,
-0.36355921626091003,
-0.09571809321641922,
0.37823593616485596,
0.1055479496717453,
0.17175383865833282,
-0.1997348666191101,
0.3142630159854889,
0.17726057767868042,
0.021704740822315216,
-0.12590989470481873,
-0.1704237163066864,
-0.34972622990608215,
-0.39509356021881104,
0.15979330241680145,
0.051514144986867905,
0.4250633120536804,
-0.04543071612715721,
-0.21402154862880707,
-0.023039475083351135,
0.04525746405124664,
0.012607676908373833,
0.0018493328243494034,
0.2065046727657318,
0.09832049906253815,
-0.007664434611797333,
0.42176443338394165,
0.4131562113761902,
-0.02706889435648918,
-0.07279312610626221,
-0.10896120965480804,
0.20436324179172516,
-0.2296348661184311,
-0.3531789183616638,
-0.08178794384002686,
-0.14637257158756256,
0.08809272199869156,
-0.07639074325561523,
0.1458800584077835,
-0.009142782539129257,
0.3726957440376282,
-0.33973363041877747,
-0.139007568359375,
0.12950152158737183,
-0.26127225160598755,
-0.19029399752616882,
0.36633118987083435,
0.16009072959423065,
0.008174613118171692,
0.2068527340888977,
-0.5216915011405945,
-0.09887655079364777,
-0.2730467617511749,
0.10424191504716873,
-0.031902361661195755,
0.008750367909669876,
-0.28021425008773804,
-0.2475125938653946,
0.2945941686630249,
-0.11578710377216339,
0.06846369802951813,
-0.4110628366470337,
-0.13549450039863586,
-0.010308897122740746,
-0.2832249402999878,
0.22979265451431274,
-0.4675406217575073,
-0.14649656414985657,
0.0844593346118927,
-0.12845760583877563,
0.4124796390533447,
0.09843824803829193,
-0.2009052187204361,
0.5107197165489197,
-0.24282562732696533,
0.1381451040506363,
-0.20758074522018433,
-0.3298107087612152,
-0.2915019392967224,
0.305292010307312,
-0.082909494638443,
-0.08397331833839417,
0.07130945473909378,
0.16349801421165466,
0.162114679813385,
-0.09786874055862427,
-0.19242319464683533,
0.39528870582580566,
-0.1924779862165451,
0.18080410361289978,
0.0392819307744503,
-0.16670061647891998,
0.5391039848327637,
0.23956967890262604,
0.13705390691757202,
0.05392727255821228,
0.00005958974361419678,
-0.015210313722491264,
0.058053068816661835,
-0.4667939245700836,
0.13010844588279724,
-0.14382055401802063,
0.15691187977790833,
0.039382584393024445,
-0.06051323562860489,
-0.05741789937019348,
-0.27167823910713196,
0.1938697099685669,
-0.051385298371315,
0.21316170692443848,
-0.5060612559318542,
0.2782883644104004,
-0.018647223711013794,
0.044509440660476685,
-0.45512792468070984,
-0.29731521010398865,
0.06909944862127304,
0.022371668368577957,
-0.10577943921089172,
-0.10021165013313293,
0.011227551847696304,
0.38541409373283386,
-0.5265703201293945,
0.1338527351617813,
0.06303512305021286,
0.494073748588562,
-0.08956679701805115,
-0.2678897976875305,
0.02780107408761978,
-0.11538461595773697,
-0.05138757824897766,
-0.179171621799469,
-0.16732734441757202,
0.36836832761764526,
0.002163467463105917,
0.2339741289615631,
0.11985792964696884,
-0.16623817384243011,
0.15336252748966217,
-0.15014927089214325,
0.17540346086025238,
0.1895674616098404,
0.22132918238639832,
-0.02134595811367035,
0.18554019927978516,
0.4086684584617615,
-0.019612669944763184,
0.24309754371643066,
-0.09751702845096588,
0.01605820469558239,
0.09985536336898804,
0.01859816536307335,
0.16111689805984497,
0.08166033029556274,
0.2732074558734894,
-0.03219816833734512,
0.099307581782341,
-0.0880247950553894,
-0.12466637790203094,
-0.3014211356639862,
-0.1773451566696167,
0.09488460421562195,
0.15203776955604553,
0.2815108001232147,
-0.03468137979507446,
0.21151277422904968,
0.1150766983628273,
0.44068267941474915,
0.4768320322036743,
0.09309402108192444,
-0.2523958683013916,
0.00409935787320137,
-0.18757665157318115,
0.06323260813951492,
0.17033876478672028,
0.18165189027786255,
0.5361403226852417,
0.23593509197235107,
-0.06387599557638168,
-0.091966412961483,
-0.21215826272964478,
-0.517268180847168,
0.14564210176467896,
0.6141676306724548,
-0.20941093564033508,
0.2693394124507904,
-0.2053672820329666,
-0.25494882464408875,
0.15963879227638245,
0.17913438379764557,
-0.2552328109741211,
-0.046659789979457855,
-0.14454424381256104,
0.20244716107845306,
-0.031200412660837173,
0.10226035863161087,
-0.6109291911125183,
0.19088256359100342,
0.3285829722881317,
-0.011758560314774513,
-0.2483045756816864,
-0.1692255288362503,
-0.07011757791042328,
-0.03665749728679657,
0.33766138553619385,
-0.48551681637763977,
0.3587486147880554,
-0.08365081250667572,
0.059615492820739746,
-0.247728168964386,
-0.14076659083366394,
0.18514187633991241,
-0.12530763447284698,
0.21562252938747406,
0.23893435299396515,
0.5151287913322449,
0.1472424417734146,
-0.24792934954166412,
0.42815718054771423,
-0.25221574306488037,
-0.33629927039146423,
0.11776088178157806,
0.07406072318553925,
0.206582710146904,
-0.12261296808719635,
-0.08846262842416763,
-0.422690212726593,
-0.14636634290218353,
-0.19133104383945465,
0.11379525065422058,
0.34124141931533813,
0.5362699627876282,
0.4936065673828125,
0.10862821340560913,
-0.0532110258936882,
-0.1820891946554184,
0.01991717703640461,
-0.3058728575706482,
0.23158800601959229,
0.020983126014471054,
-0.2203712910413742,
-0.14471453428268433,
0.036159154027700424,
0.11596478521823883,
0.39542722702026367,
-0.2742592394351959,
-0.511884868144989,
0.014883230440318584,
0.020363982766866684,
-0.056115977466106415,
-0.018856389448046684,
0.02812611311674118,
0.08873112499713898,
-0.10805623233318329,
-0.12309561669826508,
0.2702782452106476,
-0.02747294306755066,
-0.018015462905168533,
0.47848862409591675,
0.14406809210777283,
0.14776137471199036,
0.18048237264156342,
0.42090940475463867,
-0.2647823095321655,
-0.24009637534618378,
0.37592288851737976,
-0.14454446732997894,
0.15643510222434998,
0.205020010471344,
-0.40591686964035034,
0.28026363253593445,
-0.0246087908744812,
-0.1497589349746704,
-0.07061861455440521,
-0.09684399515390396,
-0.3673076331615448,
-0.09686495363712311,
-0.18618547916412354,
-0.358541339635849,
-0.0269224364310503,
0.22527995705604553,
0.2194056361913681,
0.3023734390735626,
-0.36123961210250854,
-0.24997708201408386,
-0.2510198950767517,
-0.11355897039175034,
0.04249733313918114,
0.3500678539276123,
0.1533186137676239,
0.0025276467204093933,
-0.11068858206272125,
-0.07069361954927444,
-0.07395686954259872,
0.16032612323760986,
0.13824479281902313,
0.33182597160339355,
-0.05118216201663017,
0.16810423135757446,
0.006142020225524902,
0.005061505362391472,
0.6203832030296326,
-0.07451499253511429,
0.21471571922302246,
0.018327746540308,
-0.31626880168914795,
-0.08788063377141953,
-0.0773085355758667,
-0.3692152798175812,
0.3723447620868683,
-0.03753955289721489,
0.20086804032325745,
-0.20482414960861206,
-0.05495930463075638,
0.057896316051483154,
-0.09371184557676315,
-0.2394014596939087,
-0.07963552325963974,
-0.21820631623268127,
-0.11342372745275497,
-0.4760259985923767,
0.0742621198296547,
0.0007962547242641449,
0.1405879110097885,
0.13813915848731995,
0.30285561084747314,
-0.20913578569889069,
-0.024243950843811035,
-0.06935137510299683,
0.05385272577404976,
0.22781848907470703,
-0.19148477911949158,
-0.07886220514774323,
0.30715280771255493,
0.2211485654115677,
0.6216572523117065,
0.16992345452308655,
0.02413983643054962,
-0.12503927946090698,
0.09139002859592438,
-0.1312314122915268,
0.3136745095252991,
0.3282938003540039,
-0.09918615967035294,
-0.23069578409194946,
-0.1727856546640396,
0.027654986828565598,
-0.2309035062789917,
0.23024430871009827,
0.4316640794277191,
0.044497955590486526,
0.0442996621131897,
-0.3397843837738037,
0.23352810740470886,
0.0802544355392456,
0.10148221254348755,
0.31874319911003113,
-0.008053004741668701,
-0.17988739907741547,
0.017209505662322044,
0.36127135157585144,
0.889610767364502,
0.08210983872413635,
0.3037296235561371,
0.3475218713283539,
0.026673920452594757,
0.2195080816745758,
0.20718048512935638,
0.14153701066970825,
-0.20256567001342773,
-0.06610144674777985,
-0.18758781254291534,
-0.20012088119983673,
0.37740662693977356,
0.1457495242357254,
0.0880090743303299,
-0.03375370800495148,
-0.13324350118637085,
-0.3375057578086853,
-0.13092757761478424,
0.04892914742231369,
-0.35967227816581726,
-0.21633091568946838,
0.11568666994571686,
0.12302064895629883,
-0.26889997720718384,
0.20840680599212646,
-0.2697359621524811,
-0.04973623529076576,
-0.14268438518047333,
-0.14470499753952026,
-0.04839049652218819,
0.14149048924446106,
-0.3352365493774414,
0.16438736021518707,
0.09241706132888794,
-0.4171868562698364,
-0.022689633071422577,
0.2013072371482849,
-0.33724451065063477,
-0.34036239981651306,
-0.05679748207330704,
0.10906274616718292,
-0.3087748885154724,
0.13974584639072418,
0.12974193692207336,
-0.15490670502185822,
0.4648338854312897,
-0.07104037702083588,
-0.005069427192211151,
-0.1187729761004448,
-0.0341341532766819,
-0.30926114320755005,
0.1772724688053131,
0.07415810227394104,
-0.025666430592536926,
-0.04912621155381203,
-0.3063056170940399,
-0.3733142018318176,
-0.24082458019256592,
-0.07223967462778091,
0.08711592853069305,
0.29080429673194885,
-0.12588109076023102,
0.051933079957962036,
0.21473921835422516,
-0.3583735525608063,
0.14462825655937195,
0.24151000380516052,
0.18984517455101013,
0.06898320466279984,
0.6723997592926025,
0.2116919904947281,
-0.14711208641529083,
-0.16016355156898499,
0.16976070404052734,
0.16130642592906952,
-0.5598743557929993,
0.32817307114601135,
0.15702861547470093,
0.11092536151409149,
-0.16355277597904205,
-0.0472659133374691,
0.2707173824310303,
0.015761561691761017,
-0.1315528005361557,
-0.5903140902519226,
-0.4801456928253174,
-0.0008660405874252319,
-0.22943486273288727,
0.3855966329574585,
-0.21263757348060608,
0.02843160554766655,
0.04544663429260254,
-0.12844420969486237,
-0.23075279593467712,
0.1417762190103531,
-0.15305089950561523,
0.20921145379543304,
0.25004154443740845,
-0.04642896354198456,
0.2442050576210022,
-0.17523624002933502,
0.022438934072852135,
0.0872633159160614,
-0.048758864402770996,
-0.07735206931829453,
-0.37930890917778015,
0.142893448472023,
0.2902626395225525,
-0.3201148509979248,
0.19758832454681396,
-0.2589412331581116,
-0.05457166209816933,
0.05995994806289673,
-0.10776741802692413,
-0.036055367439985275,
-0.3573840856552124,
0.2774814963340759,
0.00792665034532547,
-0.07990071922540665,
0.2419314831495285,
0.039338208734989166,
-0.20097839832305908,
0.4313528537750244,
0.23578016459941864,
0.08604251593351364,
0.08717124164104462,
0.005393996834754944,
-0.11158831417560577,
-0.06289265304803848,
-0.1424950808286667,
0.25284919142723083,
0.4057108163833618,
-0.2829231023788452,
0.27938312292099,
-0.2250620275735855,
0.5416772365570068,
0.041259847581386566,
-0.42536264657974243,
-0.07411991059780121,
0.4103442132472992,
0.11754358559846878,
-0.3084377944469452,
-0.03553538769483566,
0.16039301455020905,
-0.03243947774171829,
-0.06362815201282501,
0.2351890504360199,
-0.256422758102417,
0.2688048481941223,
-0.46226269006729126,
0.08927665650844574,
0.4003751277923584,
-0.17937034368515015,
-0.09208241105079651,
0.3410109877586365,
-0.28170129656791687,
0.22452905774116516,
0.5956487059593201,
0.4211949408054352,
0.034299641847610474,
0.28455525636672974,
-0.08252628892660141,
0.1429591327905655,
0.017075015231966972,
-0.1327114850282669,
-0.012408353388309479,
-0.31702446937561035,
-0.3681195378303528,
0.0937226191163063,
0.0875127837061882,
0.27080532908439636,
-0.20899710059165955,
0.3911544680595398,
0.010186570696532726,
-0.039057422429323196,
0.06774404644966125,
0.25580090284347534,
-0.17245370149612427,
0.16245001554489136,
-0.517695426940918,
-0.24006929993629456,
-0.094246506690979,
-0.010134829208254814,
-0.010869652032852173,
-0.25877195596694946,
0.06236254796385765,
0.3435382843017578,
-0.19188569486141205,
-0.4405631124973297,
-0.029828518629074097,
0.1830442249774933,
0.04534619301557541,
-0.36167964339256287,
0.10357774794101715,
0.07754502445459366,
0.23603199422359467,
0.24941584467887878,
0.5633384585380554,
0.617529571056366,
0.44644951820373535,
-0.03468622639775276,
-0.1895906925201416,
-0.23632074892520905,
0.004544423893094063,
-0.053730905055999756,
0.24900774657726288,
0.09742245823144913,
0.05123183876276016,
0.1820741444826126,
0.09407146275043488,
-0.08594027906656265,
0.22104617953300476,
0.11489538848400116,
-0.21228137612342834,
0.14708708226680756,
0.3257746398448944,
-0.07084283977746964,
-0.12081710994243622,
-0.1546366810798645,
-0.047544755041599274,
-0.3497302234172821,
-0.11528429388999939,
0.3476642668247223,
-0.013906674459576607,
0.19180572032928467,
0.17341244220733643,
0.013233866542577744,
-0.13175442814826965,
0.4145509898662567,
0.4479804039001465,
0.20660173892974854,
-0.3605053722858429,
0.14200527966022491,
-0.5662330985069275,
0.17935749888420105,
-0.3956078588962555,
-0.19079670310020447,
-0.21277162432670593,
0.08532329648733139,
0.05816560983657837,
0.018114065751433372,
0.510296642780304,
0.09660309553146362,
0.25826090574264526,
0.18574628233909607,
-0.38831526041030884,
-0.18639110028743744,
0.23577910661697388,
0.28791695833206177,
-0.03120093047618866,
-0.2884853482246399,
0.03710261732339859,
-0.049486953765153885,
0.07556159049272537,
0.07537686079740524,
-0.0624476820230484,
-0.3076817989349365,
-0.02264358103275299,
0.3932262659072876,
-0.040066592395305634,
0.65184485912323,
0.02843780815601349,
0.15431371331214905,
-0.1639033704996109,
-0.07316252589225769,
-0.22045578062534332,
0.04135546088218689,
0.36114776134490967,
0.46219614148139954,
-0.18071025609970093,
-0.1875401735305786,
-0.5453256368637085,
0.22123020887374878,
-0.2705267071723938,
-0.19161733984947205,
-0.4534890949726105,
0.3553599417209625,
-0.1336778998374939,
-0.09727770835161209,
-0.05375439301133156,
-0.09190230816602707,
0.049681540578603745,
-0.06178950518369675,
-0.5940248966217041,
-0.36052149534225464,
0.5606497526168823,
-0.4193267822265625,
-0.4107776880264282,
0.1860111653804779,
0.01607450097799301,
0.12956035137176514,
0.3704109191894531,
-0.24766498804092407,
0.18720510601997375,
0.03777001053094864,
0.013674545101821423,
-0.19317160546779633,
-0.12380802631378174,
0.2645736634731293,
0.12391285598278046,
0.1053137332201004,
0.4532473683357239,
-0.3505426049232483,
-0.1409759223461151,
0.03206202760338783,
-0.034793172031641006
] |
https://github.com/huggingface/datasets/issues/4112 | ImageFolder with Grayscale images dataset | You can pass `ignore_verifications=True` in `load_dataset` to skip checksum verification, which takes a lot of time if the number of files is large. We will consider making this the default behavior. | Hi, I'm facing a problem with a grayscale images dataset I have uploaded [here](https://huggingface.co/datasets/ChainYo/rvl-cdip) (RVL-CDIP)
I'm getting an error while I want to use images for training a model with PyTorch DataLoader. Here is the full traceback:
```bash
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1765, in __getitem__
return self._getitem(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1750, in _getitem
formatted_output = format_table(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 314, in map_nested
mapped = [
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 315, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 251, in _single_map_nested
return function(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
```
I don't really understand why the image is still a bytes object while I used transformations on it. Here the code I used to upload the dataset (and it worked well):
```python
train_dataset = load_dataset("imagefolder", data_dir="data/train")
train_dataset = train_dataset["train"]
test_dataset = load_dataset("imagefolder", data_dir="data/test")
test_dataset = test_dataset["train"]
val_dataset = load_dataset("imagefolder", data_dir="data/val")
val_dataset = val_dataset["train"]
dataset = DatasetDict({
"train": train_dataset,
"val": val_dataset,
"test": test_dataset
})
dataset.push_to_hub("ChainYo/rvl-cdip")
```
Now here is the code I am using to get the dataset and prepare it for training:
```python
img_size = 512
batch_size = 128
normalize = [(0.5), (0.5)]
data_dir = "ChainYo/rvl-cdip"
dataset = load_dataset(data_dir, split="train")
transforms = transforms.Compose([
transforms.Resize(img_size),
transforms.CenterCrop(img_size),
transforms.ToTensor(),
transforms.Normalize(*normalize)
])
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
train_dataloader = torch.utils.data.DataLoader(
transformed_dataset, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=True
)
```
But this get me the error above. I don't understand why it's doing this kind of weird thing?
Do I need to map something on the dataset? Something like this:
```python
labels = dataset.features["label"].names
num_labels = dataset.features["label"].num_classes
def preprocess_data(examples):
images = [ex.convert("RGB") for ex in examples["image"]]
labels = [ex for ex in examples["label"]]
return {"images": images, "labels": labels}
features = Features({
"images": Image(decode=True, id=None),
"labels": ClassLabel(num_classes=num_labels, names=labels)
})
decoded_dataset = dataset.map(preprocess_data, remove_columns=dataset.column_names, features=features, batched=True, batch_size=100)
```
| 31 | ImageFolder with Grayscale images dataset
Hi, I'm facing a problem with a grayscale images dataset I have uploaded [here](https://huggingface.co/datasets/ChainYo/rvl-cdip) (RVL-CDIP)
I'm getting an error while I want to use images for training a model with PyTorch DataLoader. Here is the full traceback:
```bash
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1765, in __getitem__
return self._getitem(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1750, in _getitem
formatted_output = format_table(
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 314, in map_nested
mapped = [
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 315, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 267, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 251, in _single_map_nested
return function(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "/home/chainyo/miniconda3/envs/gan-bird/lib/python3.8/site-packages/datasets/formatting/torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
```
I don't really understand why the image is still a bytes object while I used transformations on it. Here the code I used to upload the dataset (and it worked well):
```python
train_dataset = load_dataset("imagefolder", data_dir="data/train")
train_dataset = train_dataset["train"]
test_dataset = load_dataset("imagefolder", data_dir="data/test")
test_dataset = test_dataset["train"]
val_dataset = load_dataset("imagefolder", data_dir="data/val")
val_dataset = val_dataset["train"]
dataset = DatasetDict({
"train": train_dataset,
"val": val_dataset,
"test": test_dataset
})
dataset.push_to_hub("ChainYo/rvl-cdip")
```
Now here is the code I am using to get the dataset and prepare it for training:
```python
img_size = 512
batch_size = 128
normalize = [(0.5), (0.5)]
data_dir = "ChainYo/rvl-cdip"
dataset = load_dataset(data_dir, split="train")
transforms = transforms.Compose([
transforms.Resize(img_size),
transforms.CenterCrop(img_size),
transforms.ToTensor(),
transforms.Normalize(*normalize)
])
transformed_dataset = dataset.with_transform(transforms)
transformed_dataset.set_format(type="torch", device="cuda")
train_dataloader = torch.utils.data.DataLoader(
transformed_dataset, batch_size=batch_size, shuffle=True, num_workers=4, pin_memory=True
)
```
But this get me the error above. I don't understand why it's doing this kind of weird thing?
Do I need to map something on the dataset? Something like this:
```python
labels = dataset.features["label"].names
num_labels = dataset.features["label"].num_classes
def preprocess_data(examples):
images = [ex.convert("RGB") for ex in examples["image"]]
labels = [ex for ex in examples["label"]]
return {"images": images, "labels": labels}
features = Features({
"images": Image(decode=True, id=None),
"labels": ClassLabel(num_classes=num_labels, names=labels)
})
decoded_dataset = dataset.map(preprocess_data, remove_columns=dataset.column_names, features=features, batched=True, batch_size=100)
```
You can pass `ignore_verifications=True` in `load_dataset` to skip checksum verification, which takes a lot of time if the number of files is large. We will consider making this the default behavior. | [
-0.3947274684906006,
0.27717679738998413,
0.004924949258565903,
0.3311272859573364,
0.3124428987503052,
-0.07205560058355331,
0.6099215149879456,
0.17172586917877197,
0.09527567028999329,
0.11197198182344437,
0.02965138852596283,
0.37893301248550415,
-0.41227611899375916,
-0.04050472751259804,
-0.3064040243625641,
-0.2962743937969208,
-0.25226858258247375,
0.23652508854866028,
-0.22022554278373718,
0.10406260192394257,
-0.22363902628421783,
0.0312365535646677,
-0.2093675583600998,
0.15496325492858887,
-0.6815346479415894,
-0.18172778189182281,
0.05053853243589401,
0.15183210372924805,
-0.14978773891925812,
-0.19908098876476288,
0.09277813136577606,
-0.15874046087265015,
0.31506726145744324,
0.7039391398429871,
-0.00011739767796825618,
0.18683095276355743,
0.3596716523170471,
-0.0682082399725914,
-0.2124696969985962,
-0.3707818388938904,
0.08498033136129379,
-0.027042998000979424,
-0.12237673997879028,
-0.20796415209770203,
0.09552054852247238,
-0.5331705808639526,
0.11195718497037888,
0.19093675911426544,
0.07031256705522537,
0.16621483862400055,
0.16681654751300812,
0.13466963171958923,
0.17005568742752075,
0.26981833577156067,
-0.005117692053318024,
0.19070090353488922,
0.06956848502159119,
0.5188553929328918,
0.1730022430419922,
-0.31963101029396057,
-0.07620478421449661,
0.4454616606235504,
0.025777021422982216,
0.36786895990371704,
0.2606947422027588,
0.09630564600229263,
0.23423415422439575,
-0.2296564280986786,
-0.11579524725675583,
0.1529572308063507,
0.35025933384895325,
-0.03165247291326523,
-0.47854068875312805,
-0.223201185464859,
0.05948944389820099,
-0.11632951349020004,
0.2501673400402069,
0.31566303968429565,
-0.17883893847465515,
-0.13709013164043427,
-0.37202244997024536,
-0.06565435975790024,
-0.5381706953048706,
0.2952215075492859,
-0.2831922769546509,
-0.024547338485717773,
0.01197439432144165,
0.17781560122966766,
0.31384044885635376,
0.059961654245853424,
0.22046564519405365,
-0.07813124358654022,
0.14334635436534882,
0.19404348731040955,
-0.09811888635158539,
0.010329391807317734,
-0.18337863683700562,
-0.2092733383178711,
-0.15558594465255737,
0.026078475639224052,
0.12030115723609924,
-0.36355921626091003,
-0.09571809321641922,
0.37823593616485596,
0.1055479496717453,
0.17175383865833282,
-0.1997348666191101,
0.3142630159854889,
0.17726057767868042,
0.021704740822315216,
-0.12590989470481873,
-0.1704237163066864,
-0.34972622990608215,
-0.39509356021881104,
0.15979330241680145,
0.051514144986867905,
0.4250633120536804,
-0.04543071612715721,
-0.21402154862880707,
-0.023039475083351135,
0.04525746405124664,
0.012607676908373833,
0.0018493328243494034,
0.2065046727657318,
0.09832049906253815,
-0.007664434611797333,
0.42176443338394165,
0.4131562113761902,
-0.02706889435648918,
-0.07279312610626221,
-0.10896120965480804,
0.20436324179172516,
-0.2296348661184311,
-0.3531789183616638,
-0.08178794384002686,
-0.14637257158756256,
0.08809272199869156,
-0.07639074325561523,
0.1458800584077835,
-0.009142782539129257,
0.3726957440376282,
-0.33973363041877747,
-0.139007568359375,
0.12950152158737183,
-0.26127225160598755,
-0.19029399752616882,
0.36633118987083435,
0.16009072959423065,
0.008174613118171692,
0.2068527340888977,
-0.5216915011405945,
-0.09887655079364777,
-0.2730467617511749,
0.10424191504716873,
-0.031902361661195755,
0.008750367909669876,
-0.28021425008773804,
-0.2475125938653946,
0.2945941686630249,
-0.11578710377216339,
0.06846369802951813,
-0.4110628366470337,
-0.13549450039863586,
-0.010308897122740746,
-0.2832249402999878,
0.22979265451431274,
-0.4675406217575073,
-0.14649656414985657,
0.0844593346118927,
-0.12845760583877563,
0.4124796390533447,
0.09843824803829193,
-0.2009052187204361,
0.5107197165489197,
-0.24282562732696533,
0.1381451040506363,
-0.20758074522018433,
-0.3298107087612152,
-0.2915019392967224,
0.305292010307312,
-0.082909494638443,
-0.08397331833839417,
0.07130945473909378,
0.16349801421165466,
0.162114679813385,
-0.09786874055862427,
-0.19242319464683533,
0.39528870582580566,
-0.1924779862165451,
0.18080410361289978,
0.0392819307744503,
-0.16670061647891998,
0.5391039848327637,
0.23956967890262604,
0.13705390691757202,
0.05392727255821228,
0.00005958974361419678,
-0.015210313722491264,
0.058053068816661835,
-0.4667939245700836,
0.13010844588279724,
-0.14382055401802063,
0.15691187977790833,
0.039382584393024445,
-0.06051323562860489,
-0.05741789937019348,
-0.27167823910713196,
0.1938697099685669,
-0.051385298371315,
0.21316170692443848,
-0.5060612559318542,
0.2782883644104004,
-0.018647223711013794,
0.044509440660476685,
-0.45512792468070984,
-0.29731521010398865,
0.06909944862127304,
0.022371668368577957,
-0.10577943921089172,
-0.10021165013313293,
0.011227551847696304,
0.38541409373283386,
-0.5265703201293945,
0.1338527351617813,
0.06303512305021286,
0.494073748588562,
-0.08956679701805115,
-0.2678897976875305,
0.02780107408761978,
-0.11538461595773697,
-0.05138757824897766,
-0.179171621799469,
-0.16732734441757202,
0.36836832761764526,
0.002163467463105917,
0.2339741289615631,
0.11985792964696884,
-0.16623817384243011,
0.15336252748966217,
-0.15014927089214325,
0.17540346086025238,
0.1895674616098404,
0.22132918238639832,
-0.02134595811367035,
0.18554019927978516,
0.4086684584617615,
-0.019612669944763184,
0.24309754371643066,
-0.09751702845096588,
0.01605820469558239,
0.09985536336898804,
0.01859816536307335,
0.16111689805984497,
0.08166033029556274,
0.2732074558734894,
-0.03219816833734512,
0.099307581782341,
-0.0880247950553894,
-0.12466637790203094,
-0.3014211356639862,
-0.1773451566696167,
0.09488460421562195,
0.15203776955604553,
0.2815108001232147,
-0.03468137979507446,
0.21151277422904968,
0.1150766983628273,
0.44068267941474915,
0.4768320322036743,
0.09309402108192444,
-0.2523958683013916,
0.00409935787320137,
-0.18757665157318115,
0.06323260813951492,
0.17033876478672028,
0.18165189027786255,
0.5361403226852417,
0.23593509197235107,
-0.06387599557638168,
-0.091966412961483,
-0.21215826272964478,
-0.517268180847168,
0.14564210176467896,
0.6141676306724548,
-0.20941093564033508,
0.2693394124507904,
-0.2053672820329666,
-0.25494882464408875,
0.15963879227638245,
0.17913438379764557,
-0.2552328109741211,
-0.046659789979457855,
-0.14454424381256104,
0.20244716107845306,
-0.031200412660837173,
0.10226035863161087,
-0.6109291911125183,
0.19088256359100342,
0.3285829722881317,
-0.011758560314774513,
-0.2483045756816864,
-0.1692255288362503,
-0.07011757791042328,
-0.03665749728679657,
0.33766138553619385,
-0.48551681637763977,
0.3587486147880554,
-0.08365081250667572,
0.059615492820739746,
-0.247728168964386,
-0.14076659083366394,
0.18514187633991241,
-0.12530763447284698,
0.21562252938747406,
0.23893435299396515,
0.5151287913322449,
0.1472424417734146,
-0.24792934954166412,
0.42815718054771423,
-0.25221574306488037,
-0.33629927039146423,
0.11776088178157806,
0.07406072318553925,
0.206582710146904,
-0.12261296808719635,
-0.08846262842416763,
-0.422690212726593,
-0.14636634290218353,
-0.19133104383945465,
0.11379525065422058,
0.34124141931533813,
0.5362699627876282,
0.4936065673828125,
0.10862821340560913,
-0.0532110258936882,
-0.1820891946554184,
0.01991717703640461,
-0.3058728575706482,
0.23158800601959229,
0.020983126014471054,
-0.2203712910413742,
-0.14471453428268433,
0.036159154027700424,
0.11596478521823883,
0.39542722702026367,
-0.2742592394351959,
-0.511884868144989,
0.014883230440318584,
0.020363982766866684,
-0.056115977466106415,
-0.018856389448046684,
0.02812611311674118,
0.08873112499713898,
-0.10805623233318329,
-0.12309561669826508,
0.2702782452106476,
-0.02747294306755066,
-0.018015462905168533,
0.47848862409591675,
0.14406809210777283,
0.14776137471199036,
0.18048237264156342,
0.42090940475463867,
-0.2647823095321655,
-0.24009637534618378,
0.37592288851737976,
-0.14454446732997894,
0.15643510222434998,
0.205020010471344,
-0.40591686964035034,
0.28026363253593445,
-0.0246087908744812,
-0.1497589349746704,
-0.07061861455440521,
-0.09684399515390396,
-0.3673076331615448,
-0.09686495363712311,
-0.18618547916412354,
-0.358541339635849,
-0.0269224364310503,
0.22527995705604553,
0.2194056361913681,
0.3023734390735626,
-0.36123961210250854,
-0.24997708201408386,
-0.2510198950767517,
-0.11355897039175034,
0.04249733313918114,
0.3500678539276123,
0.1533186137676239,
0.0025276467204093933,
-0.11068858206272125,
-0.07069361954927444,
-0.07395686954259872,
0.16032612323760986,
0.13824479281902313,
0.33182597160339355,
-0.05118216201663017,
0.16810423135757446,
0.006142020225524902,
0.005061505362391472,
0.6203832030296326,
-0.07451499253511429,
0.21471571922302246,
0.018327746540308,
-0.31626880168914795,
-0.08788063377141953,
-0.0773085355758667,
-0.3692152798175812,
0.3723447620868683,
-0.03753955289721489,
0.20086804032325745,
-0.20482414960861206,
-0.05495930463075638,
0.057896316051483154,
-0.09371184557676315,
-0.2394014596939087,
-0.07963552325963974,
-0.21820631623268127,
-0.11342372745275497,
-0.4760259985923767,
0.0742621198296547,
0.0007962547242641449,
0.1405879110097885,
0.13813915848731995,
0.30285561084747314,
-0.20913578569889069,
-0.024243950843811035,
-0.06935137510299683,
0.05385272577404976,
0.22781848907470703,
-0.19148477911949158,
-0.07886220514774323,
0.30715280771255493,
0.2211485654115677,
0.6216572523117065,
0.16992345452308655,
0.02413983643054962,
-0.12503927946090698,
0.09139002859592438,
-0.1312314122915268,
0.3136745095252991,
0.3282938003540039,
-0.09918615967035294,
-0.23069578409194946,
-0.1727856546640396,
0.027654986828565598,
-0.2309035062789917,
0.23024430871009827,
0.4316640794277191,
0.044497955590486526,
0.0442996621131897,
-0.3397843837738037,
0.23352810740470886,
0.0802544355392456,
0.10148221254348755,
0.31874319911003113,
-0.008053004741668701,
-0.17988739907741547,
0.017209505662322044,
0.36127135157585144,
0.889610767364502,
0.08210983872413635,
0.3037296235561371,
0.3475218713283539,
0.026673920452594757,
0.2195080816745758,
0.20718048512935638,
0.14153701066970825,
-0.20256567001342773,
-0.06610144674777985,
-0.18758781254291534,
-0.20012088119983673,
0.37740662693977356,
0.1457495242357254,
0.0880090743303299,
-0.03375370800495148,
-0.13324350118637085,
-0.3375057578086853,
-0.13092757761478424,
0.04892914742231369,
-0.35967227816581726,
-0.21633091568946838,
0.11568666994571686,
0.12302064895629883,
-0.26889997720718384,
0.20840680599212646,
-0.2697359621524811,
-0.04973623529076576,
-0.14268438518047333,
-0.14470499753952026,
-0.04839049652218819,
0.14149048924446106,
-0.3352365493774414,
0.16438736021518707,
0.09241706132888794,
-0.4171868562698364,
-0.022689633071422577,
0.2013072371482849,
-0.33724451065063477,
-0.34036239981651306,
-0.05679748207330704,
0.10906274616718292,
-0.3087748885154724,
0.13974584639072418,
0.12974193692207336,
-0.15490670502185822,
0.4648338854312897,
-0.07104037702083588,
-0.005069427192211151,
-0.1187729761004448,
-0.0341341532766819,
-0.30926114320755005,
0.1772724688053131,
0.07415810227394104,
-0.025666430592536926,
-0.04912621155381203,
-0.3063056170940399,
-0.3733142018318176,
-0.24082458019256592,
-0.07223967462778091,
0.08711592853069305,
0.29080429673194885,
-0.12588109076023102,
0.051933079957962036,
0.21473921835422516,
-0.3583735525608063,
0.14462825655937195,
0.24151000380516052,
0.18984517455101013,
0.06898320466279984,
0.6723997592926025,
0.2116919904947281,
-0.14711208641529083,
-0.16016355156898499,
0.16976070404052734,
0.16130642592906952,
-0.5598743557929993,
0.32817307114601135,
0.15702861547470093,
0.11092536151409149,
-0.16355277597904205,
-0.0472659133374691,
0.2707173824310303,
0.015761561691761017,
-0.1315528005361557,
-0.5903140902519226,
-0.4801456928253174,
-0.0008660405874252319,
-0.22943486273288727,
0.3855966329574585,
-0.21263757348060608,
0.02843160554766655,
0.04544663429260254,
-0.12844420969486237,
-0.23075279593467712,
0.1417762190103531,
-0.15305089950561523,
0.20921145379543304,
0.25004154443740845,
-0.04642896354198456,
0.2442050576210022,
-0.17523624002933502,
0.022438934072852135,
0.0872633159160614,
-0.048758864402770996,
-0.07735206931829453,
-0.37930890917778015,
0.142893448472023,
0.2902626395225525,
-0.3201148509979248,
0.19758832454681396,
-0.2589412331581116,
-0.05457166209816933,
0.05995994806289673,
-0.10776741802692413,
-0.036055367439985275,
-0.3573840856552124,
0.2774814963340759,
0.00792665034532547,
-0.07990071922540665,
0.2419314831495285,
0.039338208734989166,
-0.20097839832305908,
0.4313528537750244,
0.23578016459941864,
0.08604251593351364,
0.08717124164104462,
0.005393996834754944,
-0.11158831417560577,
-0.06289265304803848,
-0.1424950808286667,
0.25284919142723083,
0.4057108163833618,
-0.2829231023788452,
0.27938312292099,
-0.2250620275735855,
0.5416772365570068,
0.041259847581386566,
-0.42536264657974243,
-0.07411991059780121,
0.4103442132472992,
0.11754358559846878,
-0.3084377944469452,
-0.03553538769483566,
0.16039301455020905,
-0.03243947774171829,
-0.06362815201282501,
0.2351890504360199,
-0.256422758102417,
0.2688048481941223,
-0.46226269006729126,
0.08927665650844574,
0.4003751277923584,
-0.17937034368515015,
-0.09208241105079651,
0.3410109877586365,
-0.28170129656791687,
0.22452905774116516,
0.5956487059593201,
0.4211949408054352,
0.034299641847610474,
0.28455525636672974,
-0.08252628892660141,
0.1429591327905655,
0.017075015231966972,
-0.1327114850282669,
-0.012408353388309479,
-0.31702446937561035,
-0.3681195378303528,
0.0937226191163063,
0.0875127837061882,
0.27080532908439636,
-0.20899710059165955,
0.3911544680595398,
0.010186570696532726,
-0.039057422429323196,
0.06774404644966125,
0.25580090284347534,
-0.17245370149612427,
0.16245001554489136,
-0.517695426940918,
-0.24006929993629456,
-0.094246506690979,
-0.010134829208254814,
-0.010869652032852173,
-0.25877195596694946,
0.06236254796385765,
0.3435382843017578,
-0.19188569486141205,
-0.4405631124973297,
-0.029828518629074097,
0.1830442249774933,
0.04534619301557541,
-0.36167964339256287,
0.10357774794101715,
0.07754502445459366,
0.23603199422359467,
0.24941584467887878,
0.5633384585380554,
0.617529571056366,
0.44644951820373535,
-0.03468622639775276,
-0.1895906925201416,
-0.23632074892520905,
0.004544423893094063,
-0.053730905055999756,
0.24900774657726288,
0.09742245823144913,
0.05123183876276016,
0.1820741444826126,
0.09407146275043488,
-0.08594027906656265,
0.22104617953300476,
0.11489538848400116,
-0.21228137612342834,
0.14708708226680756,
0.3257746398448944,
-0.07084283977746964,
-0.12081710994243622,
-0.1546366810798645,
-0.047544755041599274,
-0.3497302234172821,
-0.11528429388999939,
0.3476642668247223,
-0.013906674459576607,
0.19180572032928467,
0.17341244220733643,
0.013233866542577744,
-0.13175442814826965,
0.4145509898662567,
0.4479804039001465,
0.20660173892974854,
-0.3605053722858429,
0.14200527966022491,
-0.5662330985069275,
0.17935749888420105,
-0.3956078588962555,
-0.19079670310020447,
-0.21277162432670593,
0.08532329648733139,
0.05816560983657837,
0.018114065751433372,
0.510296642780304,
0.09660309553146362,
0.25826090574264526,
0.18574628233909607,
-0.38831526041030884,
-0.18639110028743744,
0.23577910661697388,
0.28791695833206177,
-0.03120093047618866,
-0.2884853482246399,
0.03710261732339859,
-0.049486953765153885,
0.07556159049272537,
0.07537686079740524,
-0.0624476820230484,
-0.3076817989349365,
-0.02264358103275299,
0.3932262659072876,
-0.040066592395305634,
0.65184485912323,
0.02843780815601349,
0.15431371331214905,
-0.1639033704996109,
-0.07316252589225769,
-0.22045578062534332,
0.04135546088218689,
0.36114776134490967,
0.46219614148139954,
-0.18071025609970093,
-0.1875401735305786,
-0.5453256368637085,
0.22123020887374878,
-0.2705267071723938,
-0.19161733984947205,
-0.4534890949726105,
0.3553599417209625,
-0.1336778998374939,
-0.09727770835161209,
-0.05375439301133156,
-0.09190230816602707,
0.049681540578603745,
-0.06178950518369675,
-0.5940248966217041,
-0.36052149534225464,
0.5606497526168823,
-0.4193267822265625,
-0.4107776880264282,
0.1860111653804779,
0.01607450097799301,
0.12956035137176514,
0.3704109191894531,
-0.24766498804092407,
0.18720510601997375,
0.03777001053094864,
0.013674545101821423,
-0.19317160546779633,
-0.12380802631378174,
0.2645736634731293,
0.12391285598278046,
0.1053137332201004,
0.4532473683357239,
-0.3505426049232483,
-0.1409759223461151,
0.03206202760338783,
-0.034793172031641006
] |
https://github.com/huggingface/datasets/issues/4107 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows | It's not related to the dataset viewer in itself. I can replicate the error with:
```
>>> import datasets as ds
>>> d = ds.load_dataset('Pavithree/explainLikeImFive')
Using custom data configuration Pavithree--explainLikeImFive-b68b6d8112cd8a51
Downloading and preparing dataset json/Pavithree--explainLikeImFive to /home/slesage/.cache/huggingface/datasets/json/Pavithree--explainLikeImFive-b68b6d8112cd8a51/0.0.0/ac0ca5f5289a6cf108e706efcf040422dbbfa8e658dee6a819f20d76bb84d26b...
Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 305M/305M [00:03<00:00, 98.6MB/s]
Downloading data: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 17.9M/17.9M [00:00<00:00, 75.7MB/s]
Downloading data: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.9M/11.9M [00:00<00:00, 70.6MB/s]
Downloading data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:05<00:00, 1.92s/it]
Extracting data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1948.42it/s]
Failed to read file '/home/slesage/.cache/huggingface/datasets/downloads/5fee9c8819754df277aee6f252e4db6897d785231c21938407b8862ca871d246' with error <class 'pyarrow.lib.ArrowInvalid'>: Exceeded maximum rows
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/packaged_modules/json/json.py", line 144, in _generate_tables
dataset = json.load(f)
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 916 (char 915)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1691, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 605, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 694, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1151, in _prepare_split
for key, table in logging.tqdm(
File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/slesage/hf/datasets/src/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise e
File "/home/slesage/hf/datasets/src/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 246, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Exceeded maximum rows
```
cc @lhoestq @albertvillanova @mariosasko | ## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. However, the dataset preview for train split returns the below mentioned error:
Status code: 400
Exception: ArrowInvalid
Message: Exceeded maximum rows
When I try to load the same dataset it returns ArrowInvalid: Exceeded maximum rows error*
Am I the one who added this dataset ? Yes
| 238 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows
## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. However, the dataset preview for train split returns the below mentioned error:
Status code: 400
Exception: ArrowInvalid
Message: Exceeded maximum rows
When I try to load the same dataset it returns ArrowInvalid: Exceeded maximum rows error*
Am I the one who added this dataset ? Yes
It's not related to the dataset viewer in itself. I can replicate the error with:
```
>>> import datasets as ds
>>> d = ds.load_dataset('Pavithree/explainLikeImFive')
Using custom data configuration Pavithree--explainLikeImFive-b68b6d8112cd8a51
Downloading and preparing dataset json/Pavithree--explainLikeImFive to /home/slesage/.cache/huggingface/datasets/json/Pavithree--explainLikeImFive-b68b6d8112cd8a51/0.0.0/ac0ca5f5289a6cf108e706efcf040422dbbfa8e658dee6a819f20d76bb84d26b...
Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 305M/305M [00:03<00:00, 98.6MB/s]
Downloading data: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 17.9M/17.9M [00:00<00:00, 75.7MB/s]
Downloading data: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11.9M/11.9M [00:00<00:00, 70.6MB/s]
Downloading data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:05<00:00, 1.92s/it]
Extracting data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1948.42it/s]
Failed to read file '/home/slesage/.cache/huggingface/datasets/downloads/5fee9c8819754df277aee6f252e4db6897d785231c21938407b8862ca871d246' with error <class 'pyarrow.lib.ArrowInvalid'>: Exceeded maximum rows
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/packaged_modules/json/json.py", line 144, in _generate_tables
dataset = json.load(f)
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 916 (char 915)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1691, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 605, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 694, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1151, in _prepare_split
for key, table in logging.tqdm(
File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/slesage/hf/datasets/src/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise e
File "/home/slesage/hf/datasets/src/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 246, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Exceeded maximum rows
```
cc @lhoestq @albertvillanova @mariosasko | [
-0.34890487790107727,
-0.2126838117837906,
-0.08538690209388733,
0.6558033227920532,
0.03639528155326843,
0.19708555936813354,
-0.0027791671454906464,
0.15819652378559113,
-0.08486709743738174,
0.045796096324920654,
-0.28319868445396423,
0.24045084416866302,
-0.07694409042596817,
0.27674850821495056,
0.008194473572075367,
-0.041150517761707306,
-0.09182042628526688,
0.027983397245407104,
-0.30159327387809753,
0.09554120898246765,
-0.2400306761264801,
0.024012567475438118,
-0.03941095247864723,
-0.16518492996692657,
-0.36083582043647766,
0.12526603043079376,
0.179507315158844,
0.20676857233047485,
-0.2199924737215042,
-0.5366879105567932,
0.4151025116443634,
-0.24180445075035095,
0.2057991325855255,
0.3826356828212738,
-0.00012483833415899426,
0.21883220970630646,
0.2613071799278259,
-0.029527822509407997,
-0.18687178194522858,
-0.08717288076877594,
-0.08776579797267914,
-0.12663480639457703,
0.31679365038871765,
-0.12007233500480652,
-0.07088928669691086,
-0.31930533051490784,
-0.25146377086639404,
-0.36239802837371826,
0.500471830368042,
0.3149150609970093,
0.10220678150653839,
0.1358058601617813,
0.28636208176612854,
0.1539001315832138,
0.2196303904056549,
-0.10248075425624847,
-0.21405985951423645,
0.4218251705169678,
0.18703538179397583,
0.27586472034454346,
-0.033842600882053375,
0.22936463356018066,
0.3055553138256073,
0.2035406082868576,
0.3681083619594574,
-0.1844029426574707,
-0.0923982486128807,
-0.3486576974391937,
0.0756591260433197,
0.2843876779079437,
0.5034905672073364,
-0.0021885260939598083,
-0.2746995687484741,
-0.17472630739212036,
0.017528831958770752,
-0.1929994374513626,
0.3477851450443268,
0.2575981318950653,
-0.12346258759498596,
0.2268431931734085,
-0.3968738615512848,
-0.09627357125282288,
-0.30226320028305054,
0.21637341380119324,
-0.23235663771629333,
-0.021292686462402344,
-0.09177689999341965,
0.18253260850906372,
0.30831342935562134,
-0.15489540994167328,
0.17897029221057892,
0.22675365209579468,
-0.20076420903205872,
0.09678216278553009,
-0.6306552290916443,
0.02631372958421707,
-0.21427926421165466,
-0.10919675976037979,
0.07837018370628357,
0.19171026349067688,
0.24564731121063232,
0.10032689571380615,
-0.006304335780441761,
-0.07935839146375656,
0.42197033762931824,
0.06878812611103058,
-0.2647896707057953,
0.3600611090660095,
-0.27934640645980835,
0.05480062961578369,
0.05268718674778938,
-0.026281513273715973,
-0.1725182682275772,
-0.3036794662475586,
-0.14610981941223145,
-0.2565067410469055,
0.3274416923522949,
-0.35021188855171204,
-0.3382478952407837,
0.2347346991300583,
-0.7350478768348694,
0.012181788682937622,
0.14254595339298248,
0.305847704410553,
0.24068495631217957,
-0.0825052559375763,
-0.11855210363864899,
0.19671359658241272,
-0.033515505492687225,
-0.23243491351604462,
-0.0913020670413971,
-0.020112454891204834,
-0.12186740338802338,
0.18385954201221466,
0.29682642221450806,
-0.3774295747280121,
0.11927162855863571,
-0.07039788365364075,
0.04383537918329239,
-0.45771539211273193,
0.23225200176239014,
-0.2134682685136795,
0.10547316074371338,
0.2929450273513794,
0.13434822857379913,
0.18877512216567993,
0.12183049321174622,
0.27033543586730957,
0.051473237574100494,
0.2952120006084442,
-0.12278907746076584,
-0.5483577847480774,
-0.11593885719776154,
0.07497350126504898,
-0.35672879219055176,
-0.022354528307914734,
-0.27585259079933167,
0.13396379351615906,
0.010556355118751526,
-0.004332438111305237,
0.04956469312310219,
-0.19248472154140472,
0.03464030101895332,
0.06459322571754456,
0.15526022017002106,
0.3723657727241516,
-0.7257547974586487,
-0.0411854162812233,
-0.13946960866451263,
-0.18488405644893646,
-0.09531029313802719,
0.40859609842300415,
-0.35819578170776367,
-0.10393884032964706,
-0.11194581538438797,
0.07538589835166931,
0.45441776514053345,
-0.011471185833215714,
-0.867365837097168,
0.12506981194019318,
0.04717627167701721,
0.22300566732883453,
0.14998504519462585,
-0.18248437345027924,
0.38591015338897705,
0.056072015315294266,
-0.0011493638157844543,
-0.04797189682722092,
0.11903615295886993,
-0.10198386758565903,
-0.26497018337249756,
-0.4415070414543152,
0.1828705370426178,
0.22918905317783356,
0.016644518822431564,
-0.19686293601989746,
0.16643545031547546,
-0.3079504072666168,
0.2969394028186798,
-0.050017017871141434,
0.1440405398607254,
0.31228554248809814,
-0.052997615188360214,
0.17881682515144348,
0.10393579304218292,
-0.07783759385347366,
-0.24545538425445557,
0.05380770564079285,
-0.04157178848981857,
-0.2800977826118469,
-0.11161965131759644,
-0.1818784922361374,
-0.4593571424484253,
0.07622208446264267,
-0.34257248044013977,
-0.13129135966300964,
0.027993418276309967,
0.032583609223365784,
-0.0008328408002853394,
-0.10875681042671204,
-0.0425364151597023,
-0.09547772258520126,
-0.3659338355064392,
0.18178585171699524,
-0.3177086412906647,
0.4277576208114624,
0.032110005617141724,
-0.02885223552584648,
0.12271857261657715,
0.05598433315753937,
0.06495820730924606,
-0.17760106921195984,
-0.11620410531759262,
0.1482342630624771,
0.12089291960000992,
0.02032945305109024,
-0.051966436207294464,
0.09795478731393814,
0.19280333817005157,
-0.7415761351585388,
0.07617539167404175,
-0.036099452525377274,
0.048209719359874725,
0.20839378237724304,
-0.18759861588478088,
0.0941736176609993,
-0.3434620499610901,
0.28693321347236633,
-0.02159438468515873,
0.07124332338571548,
0.12804272770881653,
0.0930657684803009,
0.049104176461696625,
-0.3386022448539734,
0.13593366742134094,
0.123048797249794,
0.4546146094799042,
0.06278927624225616,
-0.03198596090078354,
0.17433449625968933,
0.17968538403511047,
0.03965282067656517,
-0.2581220865249634,
0.1330767273902893,
-0.2950047552585602,
-0.16423410177230835,
0.12360972911119461,
0.2169187217950821,
0.10664315521717072,
0.12681303918361664,
0.0943760946393013,
0.07255534082651138,
0.20271793007850647,
0.029562368988990784,
0.10593321919441223,
0.26365381479263306,
0.3193609416484833,
0.4116252362728119,
0.1624756157398224,
-0.056130748242139816,
-0.43690305948257446,
0.0013540089130401611,
0.41425013542175293,
0.34075266122817993,
-0.40682217478752136,
0.10849159210920334,
-0.13071662187576294,
-0.2223723828792572,
-0.2285706251859665,
-0.41789594292640686,
-0.04348758980631828,
-0.26898473501205444,
-0.11720246076583862,
0.09897235035896301,
-0.07381729781627655,
0.22440575063228607,
-0.32654863595962524,
0.10772106051445007,
0.11153696477413177,
0.2899343967437744,
-0.10750223696231842,
0.06660020351409912,
-0.11356192082166672,
0.05807584896683693,
0.31587642431259155,
0.07415860891342163,
0.1271151453256607,
0.21474885940551758,
0.13992513716220856,
-0.34094560146331787,
-0.2596852481365204,
0.17249712347984314,
0.03359316289424896,
0.3437832295894623,
-0.11958394944667816,
0.17446859180927277,
0.08006171137094498,
-0.26720723509788513,
0.048915427178144455,
0.15897835791110992,
-0.11260609328746796,
-0.22242148220539093,
-0.09886756539344788,
0.1712624728679657,
0.16600459814071655,
-0.3956897556781769,
-0.29345399141311646,
-0.4228704273700714,
0.22654004395008087,
0.08459338545799255,
0.02735329419374466,
-0.07917889952659607,
0.2198946624994278,
0.27746015787124634,
0.11509381234645844,
-0.18602527678012848,
-0.3819068670272827,
-0.01110130175948143,
0.30594590306282043,
-0.22711899876594543,
-0.15146580338478088,
0.21099022030830383,
-0.024620123207569122,
0.17989669740200043,
0.26913851499557495,
-0.6549847722053528,
0.078040212392807,
-0.23137356340885162,
0.033845361322164536,
-0.20701661705970764,
-0.30260786414146423,
0.2388646900653839,
-0.20583193004131317,
0.1539754569530487,
0.04183296859264374,
-0.06038377061486244,
-0.10505668073892593,
-0.19246265292167664,
0.2761787176132202,
-0.19844910502433777,
0.6307896971702576,
-0.02833736687898636,
0.7606586813926697,
0.45257166028022766,
0.1908988058567047,
0.22379302978515625,
-0.18692553043365479,
0.3973206877708435,
-0.25496906042099,
-0.24944256246089935,
-0.07092065364122391,
-0.16386455297470093,
-0.043106675148010254,
0.07421116530895233,
0.002066260203719139,
-0.2715319097042084,
0.2275049090385437,
-0.11569811403751373,
-0.4301094710826874,
-0.13963232934474945,
0.16157925128936768,
-0.26341813802719116,
0.202443927526474,
0.048119667917490005,
0.29468926787376404,
0.06102528050541878,
-0.15094053745269775,
-0.25068023800849915,
0.16896545886993408,
0.2597567141056061,
0.13815292716026306,
-0.09926895797252655,
0.06127122417092323,
-0.24085688591003418,
0.324820339679718,
0.09559734910726547,
0.32489484548568726,
-0.04199579358100891,
-0.11321958154439926,
0.3718448877334595,
-0.10691167414188385,
0.7911022305488586,
-0.28342992067337036,
0.046518366783857346,
-0.006156773306429386,
-0.05820483714342117,
-0.34885284304618835,
0.00546690821647644,
0.0645221471786499,
0.012258604168891907,
0.32039737701416016,
0.00042075663805007935,
-0.02111898362636566,
0.012592222541570663,
0.6180276870727539,
0.008693628944456577,
-0.3017592430114746,
-0.1520070880651474,
0.0028906501829624176,
-0.17561274766921997,
-0.3927725553512573,
-0.05296119302511215,
0.057865291833877563,
0.16880370676517487,
-0.07193893939256668,
-0.19363494217395782,
-0.24479667842388153,
-0.24434512853622437,
-0.12067307531833649,
0.16094167530536652,
0.3308907151222229,
0.15016798675060272,
0.16569040715694427,
0.6149094104766846,
0.13011208176612854,
0.5207937955856323,
0.8690271973609924,
0.14159207046031952,
-0.5233331918716431,
0.2235402762889862,
-0.1060115173459053,
-0.09511325508356094,
0.3556699752807617,
0.056352585554122925,
0.04226716607809067,
0.27004486322402954,
-0.06674608588218689,
0.025180861353874207,
0.1733546406030655,
0.3133648931980133,
-0.038063064217567444,
-0.3564760982990265,
-0.4930937886238098,
0.5637828707695007,
-0.05725599825382233,
0.006746374070644379,
0.23427322506904602,
0.38949519395828247,
-0.106727235019207,
0.08687101304531097,
0.0795847475528717,
1.003833293914795,
0.07572032511234283,
-0.06968414783477783,
0.20980799198150635,
-0.19394207000732422,
0.20218674838542938,
-0.049682460725307465,
-0.11086928844451904,
-0.26449844241142273,
-0.14102046191692352,
-0.17062696814537048,
-0.22594128549098969,
0.02969396486878395,
-0.014881215989589691,
0.06969213485717773,
-0.19977684319019318,
-0.07524266839027405,
-0.0055032335221767426,
-0.05940201133489609,
0.1642480045557022,
0.00664993841201067,
0.017366478219628334,
-0.0694471001625061,
0.09248075634241104,
-0.18836846947669983,
-0.05244574323296547,
-0.04880053177475929,
-0.07655838131904602,
-0.19942337274551392,
-0.07019015401601791,
-0.4834115505218506,
0.1544630527496338,
-0.19680343568325043,
0.31518280506134033,
0.09810783714056015,
-0.5322144031524658,
0.28806495666503906,
-0.09101764857769012,
-0.1881861835718155,
-0.18585319817066193,
-0.27362513542175293,
0.37767791748046875,
-0.1312061846256256,
-0.18848422169685364,
-0.03706430643796921,
-0.07263672351837158,
0.18789012730121613,
0.02728041261434555,
-0.31100374460220337,
0.3297517001628876,
0.07028676569461823,
-0.3333594799041748,
-0.05632224678993225,
0.06278442591428757,
-0.01990383118391037,
-0.5578866004943848,
-0.009893503971397877,
-0.026928968727588654,
-0.19293174147605896,
-0.1710994839668274,
0.00539599172770977,
-0.15687726438045502,
-0.013566739857196808,
-0.20603761076927185,
0.13357436656951904,
-0.2385975420475006,
-0.07312716543674469,
0.36799466609954834,
0.17034846544265747,
-0.03641640022397041,
0.6675232648849487,
0.16530781984329224,
-0.057605817914009094,
-0.09026524424552917,
0.26083528995513916,
0.3555292785167694,
-0.7350705862045288,
-0.01734667643904686,
-0.19889231026172638,
0.34150660037994385,
0.24407589435577393,
0.20326806604862213,
0.4424590468406677,
0.10190501809120178,
-0.3068816661834717,
-0.3508090674877167,
-0.22996631264686584,
0.15117228031158447,
-0.23462925851345062,
0.3796951174736023,
-0.3108181357383728,
0.08423210680484772,
-0.09036074578762054,
0.11204401403665543,
-0.16365893185138702,
0.16772311925888062,
0.023115472868084908,
-0.05765160173177719,
0.2083941102027893,
-0.2224789559841156,
0.009278579615056515,
-0.14181984961032867,
-0.04246632754802704,
0.2839784622192383,
-0.20197097957134247,
-0.06548721343278885,
-0.17264965176582336,
0.1377774178981781,
0.13805150985717773,
-0.31237921118736267,
-0.33903130888938904,
-0.049425750970840454,
-0.1467856764793396,
0.10527902096509933,
0.1406603455543518,
-0.15529237687587738,
0.2081516683101654,
-0.1666673868894577,
0.1894315779209137,
-0.22047176957130432,
-0.4229738116264343,
-0.06952300667762756,
0.10647590458393097,
0.45452427864074707,
0.19635185599327087,
0.32066479325294495,
0.11207207292318344,
0.12189967930316925,
-0.28311043977737427,
0.11522233486175537,
0.18347282707691193,
-0.007161490619182587,
0.16960182785987854,
-0.3903455138206482,
0.29190826416015625,
0.08693575114011765,
0.2670099139213562,
0.5998045802116394,
-0.24262075126171112,
-0.10630081593990326,
0.14560174942016602,
0.08293003588914871,
-0.1173316165804863,
0.030264120548963547,
0.2417244017124176,
0.03572814166545868,
-0.10540435463190079,
-0.004104353487491608,
0.02219739928841591,
0.10190117359161377,
0.16909852623939514,
0.06099957972764969,
0.23589423298835754,
-0.15063060820102692,
0.4381919801235199,
0.4237130582332611,
-0.2872363030910492,
-0.08649574220180511,
0.40514710545539856,
0.28855907917022705,
0.4723801910877228,
0.6761282682418823,
-0.19920259714126587,
0.04806789755821228,
-0.003547951579093933,
0.20411497354507446,
-0.057598747313022614,
-0.46598294377326965,
-0.30412977933883667,
0.06927140057086945,
-0.20326948165893555,
0.15794022381305695,
0.12095105648040771,
0.23224413394927979,
0.2472558468580246,
-0.10345716029405594,
-0.4586653709411621,
-0.0030700527131557465,
-0.1190616562962532,
-0.059888213872909546,
-0.27703744173049927,
-0.3218354880809784,
-0.1397000551223755,
0.30997639894485474,
-0.21772339940071106,
-0.2337632030248642,
0.1848234236240387,
0.03840887174010277,
-0.3674536347389221,
-0.4384191334247589,
0.11965577304363251,
0.15624526143074036,
0.0013518109917640686,
-0.20582062005996704,
0.3300386369228363,
0.27770328521728516,
-0.04736582189798355,
0.12548591196537018,
0.20984090864658356,
0.36836743354797363,
0.002195104956626892,
0.1445866823196411,
-0.0747150257229805,
0.2236773818731308,
-0.014679670333862305,
-0.06091441586613655,
0.30397847294807434,
0.37892505526542664,
-0.029236432164907455,
0.29176968336105347,
0.04195675998926163,
-0.1385897994041443,
0.25481149554252625,
-0.01861288771033287,
0.46003127098083496,
-0.4594343304634094,
-0.007165193557739258,
-0.27309903502464294,
-0.08619369566440582,
-0.030615247786045074,
-0.13492584228515625,
-0.46262621879577637,
0.18148599565029144,
0.1813313364982605,
-0.013276808895170689,
0.039718326181173325,
0.03086654469370842,
-0.012441888451576233,
-0.11001758277416229,
0.7084599733352661,
0.34747985005378723,
0.14548712968826294,
-0.010360625572502613,
0.013266712427139282,
-0.5896716117858887,
0.20473071932792664,
-0.3025904595851898,
0.12196087837219238,
0.2535057067871094,
0.22515566647052765,
-0.06024637073278427,
0.20027567446231842,
0.40615588426589966,
0.23803232610225677,
0.0826539695262909,
0.2278248369693756,
-0.16642971336841583,
-0.26127633452415466,
0.4258500337600708,
0.0574493482708931,
-0.27547305822372437,
-0.29150569438934326,
0.24787326157093048,
-0.020322900265455246,
-0.16468742489814758,
0.10312134772539139,
-0.1811468005180359,
-0.03304120525717735,
-0.2543138861656189,
0.39354225993156433,
0.1224018931388855,
0.5729751586914062,
0.20513668656349182,
0.1759001612663269,
-0.5549997091293335,
-0.606377899646759,
-0.13175362348556519,
0.4184533655643463,
0.30021023750305176,
0.5366330146789551,
-0.12182027101516724,
-0.21106953918933868,
-0.0902566984295845,
-0.19484083354473114,
-0.09156432747840881,
0.14831410348415375,
-0.1839294135570526,
0.04687010496854782,
-0.03953630104660988,
0.0607776902616024,
0.15432575345039368,
0.30253180861473083,
0.09618818759918213,
0.10974058508872986,
-0.05279256030917168,
-0.05759505182504654,
0.44586995244026184,
-0.26228779554367065,
-0.12970547378063202,
0.10995110124349594,
0.061485279351472855,
0.6856455206871033,
-0.08781380951404572,
-0.3583182692527771,
0.1110827699303627,
0.5447987914085388,
-0.18895196914672852,
-0.12593436241149902,
0.2839726507663727,
0.028255417943000793,
-0.05526331439614296,
-0.24846702814102173,
0.3567448854446411,
0.14563071727752686,
-0.08047995716333389,
0.11917625367641449,
-0.08613987267017365
] |
https://github.com/huggingface/datasets/issues/4107 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows | It seems that train.json is not a valid JSON Lines file: it has several JSON objects in the first line (the 915th character in the first line starts a new object, and there's no "\n")
You need to have one JSON object per line | ## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. However, the dataset preview for train split returns the below mentioned error:
Status code: 400
Exception: ArrowInvalid
Message: Exceeded maximum rows
When I try to load the same dataset it returns ArrowInvalid: Exceeded maximum rows error*
Am I the one who added this dataset ? Yes
| 44 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows
## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. However, the dataset preview for train split returns the below mentioned error:
Status code: 400
Exception: ArrowInvalid
Message: Exceeded maximum rows
When I try to load the same dataset it returns ArrowInvalid: Exceeded maximum rows error*
Am I the one who added this dataset ? Yes
It seems that train.json is not a valid JSON Lines file: it has several JSON objects in the first line (the 915th character in the first line starts a new object, and there's no "\n")
You need to have one JSON object per line | [
-0.302093505859375,
-0.11188995838165283,
-0.08697442710399628,
0.6097393035888672,
0.010300876572728157,
0.1638595163822174,
0.06848174333572388,
0.3277800381183624,
-0.10921570658683777,
-0.05663786828517914,
-0.1367327719926834,
0.23917695879936218,
-0.12791326642036438,
0.2545633316040039,
0.02792603150010109,
-0.1423967182636261,
-0.06602167338132858,
0.05048097297549248,
-0.18992727994918823,
0.04390578716993332,
-0.16197778284549713,
0.09805584698915482,
-0.1485593318939209,
-0.13120006024837494,
-0.5453463792800903,
0.06803259998559952,
0.15237483382225037,
0.2249191701412201,
-0.3031299114227295,
-0.30828163027763367,
0.3053153157234192,
-0.32886654138565063,
0.14978523552417755,
0.45254629850387573,
-0.00011806393013102934,
0.1967696100473404,
0.14224937558174133,
-0.032136183232069016,
-0.009353735484182835,
-0.12055988609790802,
-0.1203591600060463,
-0.03261926770210266,
0.35925549268722534,
-0.19086816906929016,
-0.05863511562347412,
-0.3673352003097534,
-0.22845794260501862,
-0.19135752320289612,
0.7918124198913574,
0.3908592164516449,
0.11900211870670319,
-0.03246130794286728,
0.13483166694641113,
0.2060614377260208,
0.287564754486084,
-0.07418793439865112,
-0.25418761372566223,
0.33536261320114136,
0.17178604006767273,
0.28634074330329895,
-0.061740197241306305,
0.1727108508348465,
0.31745287775993347,
0.10400967299938202,
0.2766772508621216,
-0.17353497445583344,
-0.1776745319366455,
-0.2930404543876648,
-0.01844209060072899,
0.2885109782218933,
0.4411369264125824,
0.0976148247718811,
-0.20682400465011597,
-0.14762631058692932,
-0.04944769665598869,
-0.1787496954202652,
0.4367176294326782,
0.19185714423656464,
-0.10965955257415771,
0.24783849716186523,
-0.3687758147716522,
-0.15814931690692902,
-0.31942784786224365,
0.25103074312210083,
-0.1405748426914215,
-0.03823256492614746,
-0.09927555918693542,
0.1424964964389801,
0.2782735228538513,
-0.046974048018455505,
0.08280646055936813,
0.25862038135528564,
-0.14758120477199554,
0.1259925663471222,
-0.49376732110977173,
-0.04583597555756569,
-0.32956716418266296,
-0.42264410853385925,
0.06096541881561279,
0.25742897391319275,
0.30790677666664124,
0.10415709018707275,
-0.04959188029170036,
0.04698563739657402,
0.4502330422401428,
0.09489521384239197,
-0.23321321606636047,
0.23014593124389648,
-0.22252784669399261,
0.016230616718530655,
-0.1020641028881073,
-0.022947512567043304,
-0.2867076098918915,
-0.28111571073532104,
-0.2142585963010788,
-0.20499879121780396,
0.2627072334289551,
-0.33423706889152527,
-0.1697562038898468,
0.26243913173675537,
-0.8174611330032349,
-0.08586013317108154,
0.13251233100891113,
0.22510161995887756,
0.2045697718858719,
-0.10451478511095047,
-0.052902668714523315,
0.1874697059392929,
-0.07670895010232925,
-0.11055853962898254,
-0.07449676841497421,
0.06573129445314407,
-0.17778128385543823,
0.1155083030462265,
0.2524575889110565,
-0.2753126919269562,
0.22962336242198944,
-0.14415480196475983,
-0.014684818685054779,
-0.46586233377456665,
0.2817055284976959,
-0.1468539834022522,
0.10687237977981567,
0.19776050746440887,
0.09130087494850159,
0.10738033801317215,
0.05019547790288925,
0.25654613971710205,
0.07061239331960678,
0.23674353957176208,
-0.33354651927948,
-0.5850589275360107,
-0.20999784767627716,
0.1042441874742508,
-0.28840893507003784,
0.022252323105931282,
-0.13651937246322632,
0.13462209701538086,
0.04166803136467934,
-0.018466884270310402,
0.08314020186662674,
-0.1347682625055313,
0.12622548639774323,
0.05506587773561478,
0.14640405774116516,
0.12969864904880524,
-0.7201105356216431,
-0.09473975747823715,
-0.12832623720169067,
-0.13766607642173767,
0.06672059744596481,
0.4659603536128998,
-0.36326953768730164,
-0.09592730551958084,
-0.12856422364711761,
0.28331708908081055,
0.6239379048347473,
0.12080340087413788,
-0.7472199201583862,
0.29454052448272705,
-0.018320579081773758,
0.0921161100268364,
0.06953028589487076,
-0.164312943816185,
0.3732698857784271,
0.09294801205396652,
0.24781398475170135,
-0.003748960793018341,
0.1987398862838745,
-0.12351877242326736,
-0.31127116084098816,
-0.4599246680736542,
0.033881284296512604,
0.25332731008529663,
-0.007007364183664322,
-0.23921865224838257,
0.10505442321300507,
-0.1132584661245346,
0.3216281533241272,
-0.027333620935678482,
0.12074943631887436,
0.30345040559768677,
0.020505178719758987,
0.024362999945878983,
0.07950954884290695,
-0.05076994001865387,
-0.1922333836555481,
-0.045328326523303986,
-0.03481018915772438,
-0.23872098326683044,
0.04962721839547157,
-0.19658006727695465,
-0.45849108695983887,
0.028327034786343575,
-0.3346978724002838,
-0.06603902578353882,
0.0682346373796463,
-0.16223850846290588,
-0.05736497417092323,
-0.07974053174257278,
-0.19582948088645935,
-0.11657997220754623,
-0.3698226511478424,
0.1443914920091629,
-0.31597644090652466,
0.44926589727401733,
-0.05149802565574646,
-0.048480719327926636,
0.16519060730934143,
0.05094331502914429,
-0.036215998232364655,
-0.263627290725708,
-0.11951539665460587,
0.14454856514930725,
0.011750258505344391,
-0.13178184628486633,
-0.06664665043354034,
0.1860119104385376,
0.20272254943847656,
-0.606491208076477,
-0.009105121716856956,
-0.05272947624325752,
-0.022166892886161804,
0.18146181106567383,
-0.2186185121536255,
0.13221009075641632,
-0.24384795129299164,
0.24183985590934753,
-0.02063235267996788,
0.0760924369096756,
0.15279720723628998,
0.02021002396941185,
-0.037904053926467896,
-0.35390904545783997,
0.13080333173274994,
0.13810279965400696,
0.2725755274295807,
-0.024144036695361137,
-0.05927695706486702,
0.10498828440904617,
0.4655812680721283,
0.08833833038806915,
-0.13819333910942078,
0.12224496155977249,
-0.27532732486724854,
-0.17078787088394165,
0.07756216824054718,
0.1885514110326767,
0.09745384752750397,
0.1357271522283554,
0.11674115061759949,
0.07540343701839447,
0.13282838463783264,
-0.035237111151218414,
0.06451666355133057,
0.18225333094596863,
0.40925076603889465,
0.37900879979133606,
0.1331058293581009,
-0.11632367223501205,
-0.46103233098983765,
-0.0828246921300888,
0.3711867928504944,
0.3619243800640106,
-0.2989703118801117,
0.15184077620506287,
-0.11252383887767792,
-0.04320744052529335,
-0.23397447168827057,
-0.4255622625350952,
-0.019531529396772385,
-0.2276998609304428,
0.028661897405982018,
-0.001569300889968872,
-0.16961996257305145,
0.25623342394828796,
-0.2633306384086609,
0.16028596460819244,
0.1295446902513504,
0.22793345153331757,
-0.0992627739906311,
0.06020679324865341,
-0.2340937852859497,
0.1402822583913803,
0.3539089858531952,
0.10411614924669266,
0.05274525284767151,
0.18067564070224762,
0.04952620714902878,
-0.13363336026668549,
-0.19796791672706604,
0.24824166297912598,
-0.02287791669368744,
0.37301141023635864,
-0.15561631321907043,
0.1915419101715088,
-0.025303110480308533,
-0.3105194568634033,
0.10037598758935928,
0.07147645205259323,
-0.2148502618074417,
-0.21399030089378357,
-0.07674948871135712,
0.1544782966375351,
0.11038453876972198,
-0.6191890239715576,
-0.1175239160656929,
-0.3428971767425537,
0.25802192091941833,
0.16399307548999786,
0.022605903446674347,
-0.1383010298013687,
0.3908073306083679,
0.3447669446468353,
0.20296600461006165,
-0.20261383056640625,
-0.38220080733299255,
-0.2371164858341217,
0.3430676758289337,
-0.19597305357456207,
-0.19803038239479065,
0.2979099452495575,
0.031374216079711914,
0.013718657195568085,
0.17761915922164917,
-0.6055325865745544,
0.03949515148997307,
-0.17995411157608032,
-0.008813831955194473,
-0.14849768579006195,
-0.30896052718162537,
0.27963849902153015,
-0.247991681098938,
0.11567746102809906,
0.03468994051218033,
-0.011166112497448921,
-0.013221420347690582,
-0.09566528350114822,
0.34126001596450806,
-0.2303963303565979,
0.6755960583686829,
0.0362524576485157,
0.6990262269973755,
0.3599933683872223,
0.06198994815349579,
0.12658624351024628,
-0.20402619242668152,
0.18827904760837555,
-0.32301321625709534,
-0.14191865921020508,
0.0663369819521904,
-0.20078277587890625,
-0.09569127857685089,
0.09502975642681122,
0.023113343864679337,
-0.26973047852516174,
0.16794967651367188,
0.012714549899101257,
-0.41693660616874695,
-0.1441636085510254,
0.2399556040763855,
-0.22615370154380798,
0.10336216539144516,
0.002583583816885948,
0.26107558608055115,
0.06376291811466217,
-0.10316598415374756,
-0.14533598721027374,
0.14886054396629333,
0.22820189595222473,
0.07473481446504593,
-0.30482617020606995,
-0.0009154011495411396,
-0.1758066713809967,
0.31073305010795593,
0.06823442876338959,
0.2555519938468933,
-0.06889098882675171,
-0.17264452576637268,
0.32761847972869873,
-0.21149839460849762,
0.8031380772590637,
-0.25513455271720886,
-0.0741223469376564,
0.01658036932349205,
0.12610949575901031,
-0.24865804612636566,
-0.012749597430229187,
0.017706293612718582,
0.11292785406112671,
0.4341815114021301,
-0.04818733036518097,
-0.02835164964199066,
0.01190884131938219,
0.6204267740249634,
-0.07809201627969742,
-0.3120018541812897,
-0.14812475442886353,
-0.0433354526758194,
-0.10143925249576569,
-0.4350525736808777,
-0.06839596480131149,
0.10238268226385117,
0.1328359693288803,
-0.09941180795431137,
-0.290531724691391,
-0.0541795939207077,
-0.26571133732795715,
-0.0672406554222107,
0.2607147693634033,
0.32006654143333435,
0.1962256282567978,
0.0956447422504425,
0.5029911994934082,
0.23070555925369263,
0.41279691457748413,
0.8438185453414917,
0.18241702020168304,
-0.4631900191307068,
0.28579357266426086,
-0.19558773934841156,
0.05249456688761711,
0.2722967863082886,
0.039713721722364426,
-0.027681827545166016,
0.37875497341156006,
-0.04070147126913071,
0.11231133341789246,
0.2836039960384369,
0.4425034523010254,
-0.1329321563243866,
-0.312043696641922,
-0.47108393907546997,
0.5106088519096375,
0.000057402998208999634,
0.06362929940223694,
0.17101913690567017,
0.18938159942626953,
-0.07732970267534256,
0.24068930745124817,
0.049665506929159164,
0.9804330468177795,
0.1161908209323883,
-0.06084215268492699,
0.16464000940322876,
-0.18347980082035065,
0.25337353348731995,
-0.2926616966724396,
-0.05032816529273987,
-0.2027808576822281,
0.04641025885939598,
-0.12339527159929276,
-0.2102564573287964,
-0.020442597568035126,
0.10182280838489532,
0.014716554433107376,
-0.35432663559913635,
-0.03205961734056473,
-0.023866895586252213,
-0.1553192436695099,
0.1027456670999527,
0.08139999955892563,
0.041013203561306,
-0.08476898074150085,
0.11650621891021729,
-0.18356172740459442,
-0.12119778990745544,
-0.06314840912818909,
-0.13204951584339142,
-0.20702451467514038,
-0.10080909729003906,
-0.4116649031639099,
0.15128183364868164,
-0.020694037899374962,
0.2628124952316284,
0.2033962607383728,
-0.5023036003112793,
0.2092711329460144,
-0.192565456032753,
-0.15011277794837952,
-0.17463813722133636,
-0.2843032777309418,
0.3416496217250824,
-0.15140393376350403,
-0.2846493124961853,
-0.12154636532068253,
-0.10177460312843323,
0.2904457449913025,
-0.03603804111480713,
-0.3529427945613861,
0.3704299032688141,
0.04241536557674408,
-0.4345114827156067,
-0.01787787675857544,
0.09446069598197937,
-0.04861701279878616,
-0.5269498229026794,
-0.033657290041446686,
0.1455579698085785,
-0.22450138628482819,
-0.18020282685756683,
0.05172527953982353,
-0.12058767676353455,
-0.024580657482147217,
-0.22515174746513367,
0.23062439262866974,
-0.10043793171644211,
-0.0649530440568924,
0.26274728775024414,
0.27493664622306824,
-0.0012644752860069275,
0.5950024127960205,
0.2560215890407562,
0.06640595197677612,
-0.21773356199264526,
0.3182465434074402,
0.6085407733917236,
-0.6209611892700195,
-0.03162030503153801,
-0.21883977949619293,
0.18246911466121674,
0.27917447686195374,
0.31288468837738037,
0.3822972774505615,
0.11039792746305466,
-0.15303491055965424,
-0.4039032757282257,
-0.3358064889907837,
0.25341230630874634,
-0.2550384998321533,
0.3798161447048187,
-0.2515210509300232,
0.17784301936626434,
-0.038416795432567596,
0.10127588361501694,
-0.2040233016014099,
0.17921243607997894,
-0.027268338948488235,
-0.06408713012933731,
0.03589547798037529,
-0.24968406558036804,
0.074634850025177,
-0.06625641882419586,
-0.016627581790089607,
0.29096734523773193,
-0.24582812190055847,
-0.1025298535823822,
-0.12475483119487762,
0.1289697289466858,
0.21582764387130737,
-0.21703492105007172,
-0.41890835762023926,
0.00654236227273941,
-0.19796222448349,
0.17459620535373688,
0.13024486601352692,
-0.2893696427345276,
0.20900650322437286,
-0.02167024090886116,
0.1711958944797516,
-0.204639732837677,
-0.39303290843963623,
-0.20932449400424957,
0.1252945065498352,
0.521283745765686,
0.21092648804187775,
0.18900223076343536,
0.13562647998332977,
0.10867121815681458,
-0.28557059168815613,
0.10015599429607391,
0.1025950238108635,
0.19574862718582153,
0.14953407645225525,
-0.526392936706543,
0.32480648159980774,
0.008659329265356064,
0.23637965321540833,
0.7419437170028687,
-0.2747828960418701,
0.0020747147500514984,
0.1368662416934967,
0.14810122549533844,
-0.12223369628190994,
-0.007150859106332064,
0.290035605430603,
0.016662435606122017,
-0.07806725800037384,
-0.1265772581100464,
-0.041255172342061996,
0.11236540973186493,
0.05871281772851944,
0.10965418070554733,
0.13783873617649078,
-0.16904385387897491,
0.3630855977535248,
0.3235026001930237,
-0.3357560932636261,
-0.11976620554924011,
0.2372703105211258,
0.15266427397727966,
0.5199888348579407,
0.6074023246765137,
-0.07476586848497391,
-0.058731816709041595,
0.12932658195495605,
0.28137192130088806,
-0.11692645400762558,
-0.3484710454940796,
-0.2670906186103821,
0.15754610300064087,
-0.12491947412490845,
0.23788243532180786,
0.12195202708244324,
0.16517817974090576,
0.3189032971858978,
-0.15865164995193481,
-0.47656697034835815,
-0.052538808435201645,
-0.0854749009013176,
-0.014248253777623177,
-0.49459731578826904,
-0.3535403907299042,
-0.07464838773012161,
0.3112729489803314,
-0.2660636901855469,
-0.10850879549980164,
0.14895544946193695,
0.036172766238451004,
-0.35085368156433105,
-0.3044855296611786,
0.2271040678024292,
0.12496928125619888,
-0.007777802646160126,
-0.16458144783973694,
0.3246842920780182,
0.20610108971595764,
-0.06991499662399292,
0.13854403793811798,
0.08212944865226746,
0.2591662108898163,
-0.02672850713133812,
0.07441609352827072,
-0.08027083426713943,
0.16458763182163239,
-0.088653564453125,
-0.055407751351594925,
0.3353985846042633,
0.4857727885246277,
-0.13708412647247314,
0.30965274572372437,
0.07055210322141647,
-0.17538435757160187,
0.4275539517402649,
-0.06739936769008636,
0.39888796210289,
-0.32826876640319824,
-0.035727567970752716,
-0.19957880675792694,
-0.1414603590965271,
-0.02334042266011238,
-0.22009029984474182,
-0.4582413136959076,
0.0060637411661446095,
0.14297214150428772,
-0.08022533357143402,
0.07796191424131393,
-0.028164450079202652,
0.014780532568693161,
-0.16328054666519165,
0.7127948999404907,
0.29630106687545776,
0.09231236577033997,
0.06965520977973938,
0.024668902158737183,
-0.4617578089237213,
0.21993961930274963,
-0.3509615659713745,
0.1878928393125534,
0.1506602168083191,
0.3012179136276245,
0.01563020795583725,
0.2557675838470459,
0.32426542043685913,
0.14006897807121277,
-0.033148493617773056,
0.15684664249420166,
-0.34430453181266785,
-0.1660061776638031,
0.5534834861755371,
0.1825743168592453,
-0.22118137776851654,
-0.191424161195755,
0.22284606099128723,
-0.004263054113835096,
-0.14299705624580383,
0.17689739167690277,
-0.29792362451553345,
-0.08950117975473404,
-0.14089463651180267,
0.4783763885498047,
0.19434639811515808,
0.4198608696460724,
0.115035779774189,
0.2424883246421814,
-0.5410861372947693,
-0.5647549033164978,
-0.044795434921979904,
0.3729461431503296,
0.34718355536460876,
0.6162728071212769,
-0.11106158047914505,
-0.013981468975543976,
-0.09705925732851028,
-0.26990440487861633,
-0.11854372173547745,
-0.09324255585670471,
-0.2763479948043823,
0.011772500351071358,
0.05401352792978287,
0.09273634105920792,
0.17261400818824768,
0.36074206233024597,
0.05982286110520363,
-0.09105943888425827,
-0.06299939006567001,
0.0041565801948308945,
0.43460598587989807,
-0.2326122373342514,
-0.17858363687992096,
0.22208359837532043,
0.014688313007354736,
0.6800888180732727,
0.01211482286453247,
-0.351031631231308,
0.018038302659988403,
0.5625783801078796,
-0.16432419419288635,
-0.20597003400325775,
0.20823799073696136,
0.1372033953666687,
-0.06740795075893402,
-0.21381491422653198,
0.3591625988483429,
0.15561681985855103,
-0.16862422227859497,
0.056904856115579605,
-0.16821222007274628
] |
https://github.com/huggingface/datasets/issues/4107 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows | I'm closing this issue.
@Pavithree, please, feel free to re-open it if fixing the JSON file does not solve it. | ## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. However, the dataset preview for train split returns the below mentioned error:
Status code: 400
Exception: ArrowInvalid
Message: Exceeded maximum rows
When I try to load the same dataset it returns ArrowInvalid: Exceeded maximum rows error*
Am I the one who added this dataset ? Yes
| 20 | Unable to view the dataset and loading the same dataset throws the error - ArrowInvalid: Exceeded maximum rows
## Dataset viewer issue - -ArrowInvalid: Exceeded maximum rows
**Link:** *https://huggingface.co/datasets/Pavithree/explainLikeImFive*
*This is the subset of original eli5 dataset https://huggingface.co/datasets/vblagoje/lfqa. I just filtered the data samples which belongs to one particular subreddit thread. However, the dataset preview for train split returns the below mentioned error:
Status code: 400
Exception: ArrowInvalid
Message: Exceeded maximum rows
When I try to load the same dataset it returns ArrowInvalid: Exceeded maximum rows error*
Am I the one who added this dataset ? Yes
I'm closing this issue.
@Pavithree, please, feel free to re-open it if fixing the JSON file does not solve it. | [
-0.3932259976863861,
-0.17191271483898163,
-0.09222610294818878,
0.6554149985313416,
-0.05300936847925186,
0.16771551966667175,
0.03700984641909599,
0.31992754340171814,
-0.0745026096701622,
-0.005808882415294647,
-0.2643893361091614,
0.3230982720851898,
-0.09235909581184387,
0.28450992703437805,
-0.02866620570421219,
-0.10547222197055817,
-0.11544554680585861,
0.12328927963972092,
-0.2891204357147217,
0.022729717195034027,
-0.21475933492183685,
0.00867102388292551,
-0.16174176335334778,
-0.1637209951877594,
-0.4100574254989624,
0.08156271278858185,
0.18674996495246887,
0.22720366716384888,
-0.25620347261428833,
-0.33336305618286133,
0.23477520048618317,
-0.25891363620758057,
0.2491014301776886,
0.33717137575149536,
-0.00011975777306361124,
0.15861034393310547,
0.2108166366815567,
-0.008416997268795967,
-0.034107357263565063,
-0.08769011497497559,
-0.09965652227401733,
0.016523707658052444,
0.3796692192554474,
-0.14543414115905762,
-0.08442002534866333,
-0.29228347539901733,
-0.2501833438873291,
-0.21337366104125977,
0.7159003019332886,
0.2196972817182541,
0.12748678028583527,
0.023829277604818344,
0.1518118977546692,
0.21566112339496613,
0.2816725969314575,
-0.11286471784114838,
-0.2396904081106186,
0.23525948822498322,
0.31800782680511475,
0.3089354634284973,
-0.0620090588927269,
0.20523947477340698,
0.32425427436828613,
0.14328894019126892,
0.23777958750724792,
-0.2634330987930298,
-0.15151762962341309,
-0.3059921860694885,
0.06337345391511917,
0.2915022373199463,
0.5547359585762024,
0.0902002602815628,
-0.192824125289917,
-0.0817013680934906,
-0.008829057216644287,
-0.19699817895889282,
0.45110413432121277,
0.20537583529949188,
-0.08298233151435852,
0.23919697105884552,
-0.27795758843421936,
-0.1171037033200264,
-0.34720906615257263,
0.2445291429758072,
-0.18364763259887695,
0.04067278280854225,
-0.08817998319864273,
0.1520160734653473,
0.29975005984306335,
-0.12544618546962738,
0.16951385140419006,
0.26856017112731934,
-0.16150528192520142,
0.15014655888080597,
-0.5729609131813049,
-0.010092616081237793,
-0.3510911762714386,
-0.24775338172912598,
0.09013836085796356,
0.23432575166225433,
0.25234130024909973,
0.18537884950637817,
-0.01844286546111107,
-0.03556323051452637,
0.4076921045780182,
0.07138891518115997,
-0.19846239686012268,
0.2720628082752228,
-0.21273170411586761,
0.008766243234276772,
-0.10739496350288391,
-0.03274419903755188,
-0.27439674735069275,
-0.2568938434123993,
-0.2323068082332611,
-0.2440481185913086,
0.2831774353981018,
-0.38783085346221924,
-0.2353510856628418,
0.24743805825710297,
-0.7475370764732361,
-0.06671933829784393,
0.1284710019826889,
0.2580210566520691,
0.228982612490654,
-0.10684547573328018,
-0.13498294353485107,
0.2071397751569748,
-0.02343282289803028,
-0.2358313798904419,
-0.07475530356168747,
-0.04977995529770851,
-0.20678295195102692,
0.12150584906339645,
0.27404704689979553,
-0.30751317739486694,
0.22490152716636658,
-0.09006108343601227,
-0.04465876519680023,
-0.3525046110153198,
0.28978878259658813,
-0.1292596161365509,
0.10597831755876541,
0.24142147600650787,
0.15615063905715942,
0.09085243195295334,
0.015977896749973297,
0.2570222020149231,
0.11845602840185165,
0.3028140664100647,
-0.22440579533576965,
-0.5631247162818909,
-0.3020106256008148,
0.08030954003334045,
-0.32040661573410034,
0.0668950006365776,
-0.15658357739448547,
0.1583811640739441,
-0.007610142230987549,
-0.03566015139222145,
0.05460260808467865,
-0.08536022156476974,
0.08939684927463531,
0.05629879608750343,
0.09421468526124954,
0.20717288553714752,
-0.7227270007133484,
-0.07072409242391586,
-0.22806094586849213,
-0.13011714816093445,
0.02843349426984787,
0.4428752660751343,
-0.34727975726127625,
-0.24806800484657288,
-0.1494917869567871,
0.24949680268764496,
0.6306935548782349,
0.04869481548666954,
-0.9106941223144531,
0.23356537520885468,
-0.014215018600225449,
0.10791683942079544,
0.11067557334899902,
-0.16005225479602814,
0.4042300581932068,
0.0696306824684143,
0.15807440876960754,
-0.03774647414684296,
0.2156434804201126,
-0.1761976182460785,
-0.3201812207698822,
-0.46654266119003296,
0.10011215507984161,
0.2324608415365219,
0.018918387591838837,
-0.20695286989212036,
0.18926233053207397,
-0.23819568753242493,
0.3451438248157501,
-0.04014372453093529,
0.1473376303911209,
0.22126127779483795,
0.062335774302482605,
0.029834777116775513,
0.10192114859819412,
-0.12007158249616623,
-0.2140829861164093,
-0.022768927738070488,
-0.12467338144779205,
-0.26645994186401367,
0.021768882870674133,
-0.16776128113269806,
-0.46932071447372437,
0.06266643851995468,
-0.35698574781417847,
-0.03665480390191078,
0.04979550093412399,
-0.17477160692214966,
-0.041611164808273315,
-0.11892452836036682,
-0.149603009223938,
-0.09705449640750885,
-0.3766506612300873,
0.14421650767326355,
-0.34640514850616455,
0.4535616934299469,
-0.005166502669453621,
-0.044557467103004456,
0.14896078407764435,
0.03809326887130737,
-0.001089438796043396,
-0.21267735958099365,
-0.1485549807548523,
0.10116614401340485,
-0.023299483582377434,
-0.1147979199886322,
-0.02886711061000824,
0.17332090437412262,
0.21471554040908813,
-0.6521694660186768,
0.11559360474348068,
-0.08784471452236176,
0.01575285941362381,
0.2272043228149414,
-0.18696337938308716,
0.10567714273929596,
-0.22259370982646942,
0.21065577864646912,
-0.06780432164669037,
0.09833665192127228,
0.14038704335689545,
0.0002817288041114807,
0.005482936277985573,
-0.41821160912513733,
0.12147161364555359,
0.19978447258472443,
0.35129621624946594,
0.017843645066022873,
-0.08334647119045258,
0.2072913646697998,
0.2798813283443451,
0.0666641891002655,
-0.14887899160385132,
0.1699075847864151,
-0.37527909874916077,
-0.15460500121116638,
0.07255230844020844,
0.17061570286750793,
0.11163271218538284,
0.13944193720817566,
0.039122890681028366,
0.046484608203172684,
0.25137218832969666,
0.0152239128947258,
0.12083490192890167,
0.18258635699748993,
0.35660263895988464,
0.36393070220947266,
0.19487302005290985,
-0.12786027789115906,
-0.4145908057689667,
0.002610575407743454,
0.4405326247215271,
0.3799887001514435,
-0.2832033932209015,
0.0939883142709732,
-0.1027074009180069,
-0.00905783660709858,
-0.15335172414779663,
-0.3895876407623291,
-0.021091517060995102,
-0.2167438268661499,
0.04610274359583855,
0.0650656595826149,
-0.1522662192583084,
0.26554667949676514,
-0.2990802526473999,
0.16926170885562897,
0.18670305609703064,
0.3922203779220581,
-0.1264297366142273,
0.05550876259803772,
-0.177165687084198,
0.12819838523864746,
0.36739155650138855,
0.12887312471866608,
0.07186401635408401,
0.18286530673503876,
0.10540846735239029,
-0.18040193617343903,
-0.26956814527511597,
0.21252994239330292,
0.06440219283103943,
0.4466075897216797,
-0.2070803940296173,
0.15308314561843872,
0.01242472231388092,
-0.2778640389442444,
0.060984835028648376,
0.04151076823472977,
-0.15601679682731628,
-0.198665589094162,
-0.12940403819084167,
0.1843280792236328,
0.2138102650642395,
-0.4915953576564789,
-0.21249248087406158,
-0.3686361014842987,
0.26054084300994873,
0.11621373891830444,
0.020243100821971893,
-0.18587517738342285,
0.333160400390625,
0.267919659614563,
0.17543768882751465,
-0.2642797529697418,
-0.4295707046985626,
-0.19310015439987183,
0.3753166198730469,
-0.23665301501750946,
-0.21480222046375275,
0.24366801977157593,
0.01895369589328766,
0.055194154381752014,
0.17823204398155212,
-0.5953580737113953,
0.0694151520729065,
-0.20671579241752625,
0.029681015759706497,
-0.22115162014961243,
-0.2930728793144226,
0.2193121314048767,
-0.2095319777727127,
0.11263622343540192,
0.02766493707895279,
0.006229586899280548,
-0.014157384634017944,
-0.09727073460817337,
0.308197945356369,
-0.1986292004585266,
0.5778031945228577,
-0.010745350271463394,
0.7377220392227173,
0.3341665267944336,
0.036625538021326065,
0.15936963260173798,
-0.12208918482065201,
0.20321522653102875,
-0.29413458704948425,
-0.15793967247009277,
0.0011199319269508123,
-0.15103965997695923,
-0.012944038026034832,
0.1532633900642395,
-0.018210526555776596,
-0.34502917528152466,
0.22011715173721313,
-0.1446976661682129,
-0.3701651692390442,
-0.11773942410945892,
0.21653200685977936,
-0.1925451010465622,
0.06715444475412369,
0.07485993206501007,
0.21214959025382996,
-0.019974928349256516,
-0.18296265602111816,
-0.15475565195083618,
0.09201844036579132,
0.23948770761489868,
0.052135366946458817,
-0.16739585995674133,
-0.0292557030916214,
-0.12315351516008377,
0.368513822555542,
0.03910042345523834,
0.27537673711776733,
-0.06279758363962173,
-0.17272254824638367,
0.3905470371246338,
-0.14468343555927277,
0.7818009853363037,
-0.2651211619377136,
0.0007462799549102783,
-0.03283834084868431,
0.09954833984375,
-0.25786638259887695,
-0.004354976117610931,
0.05559300258755684,
0.12240565568208694,
0.3298527002334595,
-0.049572527408599854,
0.0319693386554718,
0.011485453695058823,
0.5894452333450317,
-0.06220658868551254,
-0.3213013708591461,
-0.20667262375354767,
-0.027164779603481293,
-0.008539792150259018,
-0.4830456078052521,
-0.008446469902992249,
0.0677001029253006,
0.12514016032218933,
-0.15815456211566925,
-0.2658889591693878,
-0.09399581700563431,
-0.31701651215553284,
-0.08444496989250183,
0.2661435604095459,
0.31968259811401367,
0.210403174161911,
0.13748668134212494,
0.5328204035758972,
0.1725941300392151,
0.3887004554271698,
0.8479733467102051,
0.17121610045433044,
-0.4295528531074524,
0.2673064172267914,
-0.17816726863384247,
0.000012017786502838135,
0.3151240050792694,
0.05052800849080086,
0.008257895708084106,
0.372356116771698,
-0.08915121853351593,
0.0696788802742958,
0.1781143844127655,
0.3150406777858734,
-0.12397930771112442,
-0.24638763070106506,
-0.42691585421562195,
0.545361340045929,
-0.018546726554632187,
0.014872729778289795,
0.2814473509788513,
0.27211713790893555,
0.01890582963824272,
0.23105399310588837,
0.0784861296415329,
1.0071295499801636,
0.11024037003517151,
-0.10320675373077393,
0.12822118401527405,
-0.21107107400894165,
0.11213657259941101,
-0.17828361690044403,
-0.08988776803016663,
-0.24343238770961761,
-0.05137272924184799,
-0.10769955068826675,
-0.22688716650009155,
-0.0364706814289093,
0.06070602685213089,
0.0605800487101078,
-0.3802621066570282,
-0.08880601078271866,
-0.025097403675317764,
-0.09290871024131775,
0.10041399300098419,
0.05153936892747879,
0.039110660552978516,
-0.0997038409113884,
0.08950469642877579,
-0.21145181357860565,
-0.13872358202934265,
-0.0497378446161747,
-0.171440988779068,
-0.17507235705852509,
-0.06335936486721039,
-0.4320850968360901,
0.1501423716545105,
-0.12109594792127609,
0.27110499143600464,
0.13201379776000977,
-0.5230126976966858,
0.3222436010837555,
-0.20097211003303528,
-0.15706929564476013,
-0.1844770461320877,
-0.31155675649642944,
0.34895405173301697,
-0.11308509856462479,
-0.2612852156162262,
-0.10723169147968292,
-0.08144296705722809,
0.23883430659770966,
0.004213780164718628,
-0.41705116629600525,
0.4374335706233978,
0.11079049855470657,
-0.35988765954971313,
-0.024441540241241455,
0.09118723124265671,
-0.02429957687854767,
-0.5740748047828674,
-0.03638892620801926,
0.05319061130285263,
-0.17102564871311188,
-0.1464228332042694,
0.045399367809295654,
-0.1365327686071396,
-0.057756368070840836,
-0.202467679977417,
0.24701562523841858,
-0.11185615509748459,
-0.05286826565861702,
0.33274349570274353,
0.29174792766571045,
0.04623018205165863,
0.5922625064849854,
0.26095858216285706,
0.038425855338573456,
-0.17923283576965332,
0.28238165378570557,
0.534313976764679,
-0.7096825242042542,
-0.04197103902697563,
-0.21444787085056305,
0.18920131027698517,
0.26478487253189087,
0.29847827553749084,
0.3482908010482788,
0.0507100448012352,
-0.19461752474308014,
-0.36835184693336487,
-0.3488824665546417,
0.18255111575126648,
-0.35436367988586426,
0.3825891613960266,
-0.2533344030380249,
0.13045795261859894,
-0.13931934535503387,
0.2135077565908432,
-0.21558645367622375,
0.2124013900756836,
0.009528184309601784,
-0.04055008292198181,
0.09177885204553604,
-0.31535908579826355,
-0.005487815476953983,
-0.03221384435892105,
-0.028303273022174835,
0.2876114249229431,
-0.258449524641037,
-0.10277197510004044,
-0.12322665750980377,
0.1281953752040863,
0.16096201539039612,
-0.2689867913722992,
-0.4193626642227173,
-0.043738216161727905,
-0.1750303953886032,
0.19840438663959503,
0.14859673380851746,
-0.3203282356262207,
0.2426304966211319,
-0.09072469174861908,
0.2402435839176178,
-0.2825537919998169,
-0.38971126079559326,
-0.07970945537090302,
0.14040017127990723,
0.47309136390686035,
0.12614519894123077,
0.23756977915763855,
0.1041347086429596,
0.1251034140586853,
-0.24417202174663544,
0.015656165778636932,
0.15426437556743622,
0.14862316846847534,
0.17508229613304138,
-0.47215336561203003,
0.276629239320755,
0.04067813232541084,
0.1630673110485077,
0.6259230971336365,
-0.22976328432559967,
-0.06647677719593048,
0.13590940833091736,
0.13831306993961334,
-0.1521928906440735,
-0.010864094831049442,
0.3013781011104584,
-0.01828911155462265,
-0.07325199246406555,
-0.134355366230011,
0.0715712159872055,
0.015211768448352814,
0.14698441326618195,
0.11899176985025406,
0.1833810657262802,
-0.2257426232099533,
0.34517037868499756,
0.37303778529167175,
-0.29408079385757446,
-0.17030949890613556,
0.2482888251543045,
0.24338412284851074,
0.5095741748809814,
0.6516937017440796,
-0.11159051209688187,
-0.0505865216255188,
0.0906544178724289,
0.27870815992355347,
-0.0760674998164177,
-0.4127011299133301,
-0.2401377409696579,
0.14814941585063934,
-0.11429223418235779,
0.24147459864616394,
0.1489793062210083,
0.12386204302310944,
0.3723604381084442,
-0.13288812339305878,
-0.4699678421020508,
0.02032664604485035,
-0.08534949272871017,
-0.03307698294520378,
-0.4036718010902405,
-0.3838527798652649,
-0.06599656492471695,
0.3199780583381653,
-0.2724125385284424,
-0.0733681172132492,
0.22075270116329193,
0.057029202580451965,
-0.3088734745979309,
-0.3033290505409241,
0.12928611040115356,
0.26989227533340454,
-0.002090238034725189,
-0.1916321963071823,
0.3203444480895996,
0.2642478942871094,
-0.07561062276363373,
0.1370406448841095,
0.14348554611206055,
0.28905993700027466,
-0.07718075811862946,
-0.018938109278678894,
-0.040370188653469086,
0.2608996033668518,
-0.0908970907330513,
-0.07122718542814255,
0.30151641368865967,
0.5056087970733643,
-0.17157132923603058,
0.27450549602508545,
0.06610072404146194,
-0.16049358248710632,
0.32326287031173706,
-0.059372249990701675,
0.40801766514778137,
-0.31065791845321655,
-0.16610872745513916,
-0.14388594031333923,
-0.138159841299057,
-0.03411532938480377,
-0.28854843974113464,
-0.4846259653568268,
0.16365112364292145,
0.11761538684368134,
-0.10864639282226562,
0.0690842941403389,
-0.07082626968622208,
0.013799101114273071,
-0.18814417719841003,
0.6755630373954773,
0.29683586955070496,
0.10907924175262451,
0.03788698837161064,
0.028933070600032806,
-0.4449085295200348,
0.28397783637046814,
-0.307849645614624,
0.20454564690589905,
0.22687382996082306,
0.26632240414619446,
0.07975415140390396,
0.17039085924625397,
0.43018078804016113,
0.15155963599681854,
0.022860456258058548,
0.23352345824241638,
-0.29369300603866577,
-0.17685335874557495,
0.5585881471633911,
0.16169364750385284,
-0.25471824407577515,
-0.15131962299346924,
0.23236817121505737,
0.03325751796364784,
-0.13095231354236603,
0.08814737200737,
-0.26189494132995605,
-0.0666256844997406,
-0.1538195013999939,
0.43154817819595337,
0.1978640854358673,
0.45907968282699585,
0.1081617996096611,
0.24750903248786926,
-0.5203568935394287,
-0.5636616349220276,
-0.012471809983253479,
0.27545642852783203,
0.4345456659793854,
0.5005720853805542,
-0.11307047307491302,
-0.10712683200836182,
-0.09041939675807953,
-0.3267022371292114,
-0.11520760506391525,
0.060792066156864166,
-0.2792496681213379,
0.019118012860417366,
0.006430618464946747,
0.11199904978275299,
0.13299405574798584,
0.3683842122554779,
0.09959001839160919,
-0.09433635324239731,
-0.05537918210029602,
-0.03006472997367382,
0.4823002815246582,
-0.25888311862945557,
-0.24170762300491333,
0.23304696381092072,
0.04032621532678604,
0.6460710763931274,
0.060635268688201904,
-0.3576013445854187,
0.09095492213964462,
0.5401760935783386,
-0.19070005416870117,
-0.08214092999696732,
0.23780140280723572,
0.22386454045772552,
-0.03380391746759415,
-0.2560901939868927,
0.32625266909599304,
0.1852133572101593,
-0.12108758836984634,
0.030470330268144608,
-0.15670019388198853
] |
https://github.com/huggingface/datasets/issues/4105 | push to hub fails with huggingface-hub 0.5.0 | Hi ! Indeed there was a breaking change in `huggingface_hub` 0.5.0 in `HfApi.create_repo`, which is called here in `datasets` by passing the org name in both the `repo_id` and the `organization` arguments:
https://github.com/huggingface/datasets/blob/2230f7f7d7fbaf102cff356f5a8f3bd1561bea43/src/datasets/arrow_dataset.py#L3363-L3369
I think we should fix that in `huggingface_hub`, will keep you posted. In the meantime please use `huggingface_hub` 0.4.0 | ## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```
## Expected results
The dataset is successfully uploaded
## Actual results
An error validation is raised:
```bash
if repo_id and (name or organization):
> raise ValueError(
"Only pass `repo_id` and leave deprecated `name` and "
"`organization` to be None."
E ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0
cc @adrinjalali
| 52 | push to hub fails with huggingface-hub 0.5.0
## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```
## Expected results
The dataset is successfully uploaded
## Actual results
An error validation is raised:
```bash
if repo_id and (name or organization):
> raise ValueError(
"Only pass `repo_id` and leave deprecated `name` and "
"`organization` to be None."
E ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0
cc @adrinjalali
Hi ! Indeed there was a breaking change in `huggingface_hub` 0.5.0 in `HfApi.create_repo`, which is called here in `datasets` by passing the org name in both the `repo_id` and the `organization` arguments:
https://github.com/huggingface/datasets/blob/2230f7f7d7fbaf102cff356f5a8f3bd1561bea43/src/datasets/arrow_dataset.py#L3363-L3369
I think we should fix that in `huggingface_hub`, will keep you posted. In the meantime please use `huggingface_hub` 0.4.0 | [
-0.18618573248386383,
-0.43112415075302124,
0.05626027658581734,
0.0067310333251953125,
0.1298481822013855,
-0.18018727004528046,
0.23904255032539368,
0.37987807393074036,
0.09368537366390228,
0.1841653436422348,
-0.24823278188705444,
0.11042679101228714,
0.1387445479631424,
0.17468339204788208,
-0.018078353255987167,
0.07168515771627426,
0.3145363926887512,
0.0539177767932415,
0.07010103762149811,
-0.10772968828678131,
-0.23032155632972717,
0.14147672057151794,
0.02220260351896286,
0.13528034090995789,
-0.3884812891483307,
0.09070730209350586,
-0.1285463571548462,
0.36532220244407654,
-0.15559934079647064,
-0.13014280796051025,
0.41490575671195984,
0.20266610383987427,
-0.11601438373327255,
0.5192533731460571,
-0.0001164919012808241,
0.036332353949546814,
0.39552026987075806,
0.00294383242726326,
-0.2615882456302643,
-0.3924538493156433,
0.015496782958507538,
-0.11372802406549454,
-0.18914897739887238,
0.09621334820985794,
-0.0313696525990963,
0.2839590311050415,
-0.05243006348609924,
0.3155832290649414,
0.2269384264945984,
0.2061145156621933,
0.15220783650875092,
0.5072675943374634,
0.3877299427986145,
-0.3071041703224182,
0.33043172955513,
0.22714866697788239,
-0.30040425062179565,
0.35196441411972046,
0.0424613319337368,
0.17235365509986877,
0.05556825175881386,
0.1637757569551468,
0.0012310761958360672,
-0.2543097734451294,
0.20260852575302124,
-0.08173362910747528,
0.145624577999115,
0.010521959513425827,
-0.009095028042793274,
0.08525130152702332,
-0.04016507416963577,
-0.4175422787666321,
-0.5342667102813721,
-0.11645038425922394,
0.0369546078145504,
-0.47592324018478394,
0.27612417936325073,
0.044661201536655426,
-0.07786642014980316,
0.05169212073087692,
-0.14068914949893951,
-0.3784133195877075,
-0.055829305201768875,
0.19683070480823517,
0.06681984663009644,
0.21292617917060852,
-0.13220132887363434,
-0.0124763622879982,
0.009226325899362564,
-0.3112560510635376,
0.07850093394517899,
-0.025478322058916092,
-0.1586102843284607,
0.016945909708738327,
-0.24722079932689667,
-0.10185029357671738,
-0.08834926038980484,
0.19277870655059814,
0.4414064288139343,
-0.005688514560461044,
-0.11918888986110687,
0.0475255623459816,
-0.27122020721435547,
0.11568497121334076,
0.22848092019557953,
0.1696321666240692,
0.15643534064292908,
0.02988247200846672,
0.18666641414165497,
0.4451909065246582,
0.22024351358413696,
0.07736077904701233,
0.10546601563692093,
-0.025222256779670715,
0.01889077201485634,
-0.15327131748199463,
0.41089868545532227,
-0.11349756270647049,
-0.28820738196372986,
0.13581483066082,
-0.36028656363487244,
0.15668688714504242,
0.0853111520409584,
0.2838623821735382,
0.04306137189269066,
0.18224307894706726,
-0.15322890877723694,
0.28400933742523193,
-0.2777077257633209,
0.2959732413291931,
-0.3060498833656311,
0.03493565320968628,
-0.0647168755531311,
0.07452111691236496,
0.20313076674938202,
-0.7760152220726013,
0.24822008609771729,
0.06966643780469894,
0.32861995697021484,
-0.09892750531435013,
-0.5534880757331848,
0.057160694152116776,
0.015871591866016388,
0.3220135271549225,
-0.036118827760219574,
0.1790081262588501,
-0.08616046607494354,
-0.08587516844272614,
-0.0952325314283371,
-0.01706286519765854,
-0.3718607723712921,
-0.36048588156700134,
-0.0009900052100419998,
0.13162808120250702,
-0.17567935585975647,
-0.05894093215465546,
-0.28037387132644653,
-0.08211050927639008,
-0.1608368456363678,
-0.007735166698694229,
0.008676275610923767,
0.23652923107147217,
-0.06284645944833755,
-0.007749584503471851,
0.2546652853488922,
0.3671576976776123,
0.3610762059688568,
-0.13166779279708862,
0.14609333872795105,
0.1502756029367447,
-0.14076045155525208,
0.2182350605726242,
-0.127013698220253,
-0.047228969633579254,
-0.159721240401268,
0.06000809371471405,
-0.09341802448034286,
-0.7586143612861633,
-0.5065635442733765,
-0.11599445343017578,
-0.11287614703178406,
-0.08161616325378418,
-0.06195148080587387,
-0.14592312276363373,
-0.2576846778392792,
-0.11243618279695511,
-0.09022606909275055,
0.0886509120464325,
-0.0021084900945425034,
0.11628822237253189,
-0.3885093927383423,
-0.3083573877811432,
-0.22688929736614227,
0.26247331500053406,
0.10100681334733963,
0.06537824124097824,
0.04326734319329262,
0.17583991587162018,
0.14125490188598633,
0.0591968335211277,
0.05824309587478638,
0.1212947815656662,
0.6124312281608582,
-0.21555368602275848,
0.02160523273050785,
-0.2298717498779297,
-0.3506976366043091,
0.20983225107192993,
0.1598442643880844,
0.067644864320755,
0.009132012724876404,
-0.15981510281562805,
-0.5921259522438049,
0.19317451119422913,
-0.009554263204336166,
-0.06299027800559998,
0.05779258906841278,
-0.2154272496700287,
0.1277437061071396,
0.13919773697853088,
-0.20487500727176666,
0.5880542397499084,
-0.1902536153793335,
0.4224218726158142,
-0.3232894837856293,
0.6602206826210022,
-0.13174250721931458,
-0.3058622181415558,
0.045605652034282684,
0.3438492715358734,
0.3027195930480957,
-0.14071382582187653,
-0.024760503321886063,
0.6075361371040344,
0.06040005013346672,
-0.046014368534088135,
0.10077232122421265,
-0.08197738230228424,
0.35517069697380066,
0.04275576397776604,
-0.1270570009946823,
-0.012854717671871185,
0.11981724202632904,
0.10015439242124557,
-0.17266911268234253,
0.3137003481388092,
-0.11303505301475525,
0.04778558760881424,
0.00833117589354515,
0.19041728973388672,
-0.013460420072078705,
-0.027611564844846725,
0.010960366576910019,
-0.039572037756443024,
0.051415327936410904,
-0.0315261073410511,
-0.0032503176480531693,
-0.2776731848716736,
-0.015020579099655151,
0.009661316871643066,
0.4085406959056854,
0.16774089634418488,
0.050421711057424545,
0.08852482587099075,
-0.17222854495048523,
-0.01858607865869999,
0.13986316323280334,
0.13751135766506195,
0.11203884333372116,
-0.041422586888074875,
-0.40960022807121277,
0.23222699761390686,
-0.10904735326766968,
-0.03191450983285904,
0.08411097526550293,
0.02997705340385437,
0.08513856679201126,
0.0857500284910202,
0.11599621921777725,
0.1300128996372223,
-0.2092258334159851,
-0.13294366002082825,
0.005179639905691147,
0.23745061457157135,
-0.3719976842403412,
-0.22930753231048584,
0.06407248228788376,
0.08037585020065308,
-0.04696458578109741,
-0.40498483180999756,
-0.6090028882026672,
-0.57783442735672,
-0.06763354688882828,
0.5582920908927917,
0.07755519449710846,
0.25574803352355957,
0.3488542437553406,
0.04011538624763489,
-0.024289732798933983,
-0.21786542236804962,
-0.21816696226596832,
0.06232409179210663,
-0.004507753998041153,
-0.04766179621219635,
-0.02774488925933838,
0.16874714195728302,
0.17830945551395416,
-0.16302800178527832,
0.1901683658361435,
-0.3601332902908325,
-0.22581222653388977,
0.16554024815559387,
-0.28490936756134033,
-0.0062715038657188416,
0.19900014996528625,
-0.030420102179050446,
-0.1883460283279419,
-0.1788843721151352,
0.29146885871887207,
-0.2968418002128601,
-0.3402675986289978,
0.17757177352905273,
0.016479378566145897,
-0.06419961154460907,
-0.15777815878391266,
0.09725765883922577,
0.20946568250656128,
-0.3946188986301422,
0.2706553041934967,
0.04694740101695061,
0.08267205953598022,
0.3870537281036377,
0.19902624189853668,
0.13592150807380676,
-0.18866905570030212,
-0.3924570679664612,
-0.10973858088254929,
-0.28211721777915955,
0.19040359556674957,
-0.10605176538228989,
-0.26774701476097107,
0.10153822600841522,
0.21109013259410858,
0.10276490449905396,
0.043297793716192245,
-0.22539569437503815,
-0.6788075566291809,
-0.14346805214881897,
0.362457811832428,
0.006175454705953598,
0.22217965126037598,
0.36092159152030945,
0.016741564497351646,
-0.008507810533046722,
-0.055576786398887634,
-0.46511372923851013,
0.06755563616752625,
0.3728218078613281,
-0.01889318972826004,
-0.03866453468799591,
-0.046161115169525146,
-0.038439687341451645,
0.638818085193634,
0.12957054376602173,
-0.14878018200397491,
0.5091407299041748,
0.1110568568110466,
0.5656402707099915,
-0.2758093476295471,
-0.37587079405784607,
-0.07126664370298386,
0.1485612541437149,
0.2459828406572342,
0.017006896436214447,
0.09156414121389389,
0.2797171473503113,
-0.21382294595241547,
-0.6017151474952698,
-0.006706621497869492,
-0.2431720793247223,
-0.2933803200721741,
-0.05120790749788284,
-0.06446131318807602,
0.028367552906274796,
0.23328939080238342,
-0.2099652737379074,
-0.16886314749717712,
0.268804132938385,
0.24598021805286407,
0.10386611521244049,
0.02950270287692547,
-0.21104592084884644,
-0.09120453894138336,
-0.5301473140716553,
0.19583556056022644,
0.053466346114873886,
0.35690709948539734,
0.049744073301553726,
-0.013956137001514435,
0.03764445707201958,
-0.21370583772659302,
0.36723923683166504,
-0.3478087782859802,
0.07437465339899063,
-0.046103399246931076,
-0.09082575142383575,
-0.5425596237182617,
0.0261160247027874,
0.038082193583250046,
0.34725528955459595,
-0.10133680701255798,
0.6849692463874817,
-0.365464448928833,
-0.444515585899353,
0.24595381319522858,
-0.268879234790802,
0.08836619555950165,
-0.11023564636707306,
-0.23382732272148132,
-0.22317367792129517,
-0.296048104763031,
0.07733191549777985,
0.19998463988304138,
0.31120336055755615,
-0.21718156337738037,
0.10785640776157379,
0.04103712737560272,
-0.09148672223091125,
0.025584757328033447,
-0.03752715885639191,
0.1678694188594818,
-0.076251320540905,
0.20819272100925446,
0.14016759395599365,
0.22058239579200745,
0.2486448585987091,
0.5676854848861694,
0.03778820484876633,
-0.5576517581939697,
-0.16163018345832825,
-0.011254988610744476,
0.06427216529846191,
0.5059875249862671,
0.2141946703195572,
0.19586393237113953,
-0.19756218791007996,
0.12136425822973251,
-0.2043887823820114,
-0.16864964365959167,
0.32453420758247375,
0.008996996097266674,
-0.3056411147117615,
0.17568261921405792,
0.3798280358314514,
-0.10700681805610657,
0.1430404633283615,
0.2067399024963379,
0.9490308165550232,
-0.12790454924106598,
0.33727210760116577,
-0.16427603363990784,
0.999218761920929,
0.13960935175418854,
0.15154622495174408,
0.2418886423110962,
-0.35978251695632935,
0.35301750898361206,
-0.032281648367643356,
0.0023187054321169853,
-0.43298718333244324,
-0.11051773279905319,
-0.02756616286933422,
0.14393889904022217,
0.1199074387550354,
-0.23522649705410004,
-0.2501828074455261,
0.22106900811195374,
-0.3157320022583008,
0.42611411213874817,
-0.20150738954544067,
0.09006255865097046,
-0.6407816410064697,
-0.3168833255767822,
-0.34023499488830566,
0.14049138128757477,
-0.043295666575431824,
0.23809058964252472,
0.02033548802137375,
-0.13936099410057068,
-0.3057243227958679,
-0.14271974563598633,
-0.4190042018890381,
0.08571012318134308,
0.15054482221603394,
-0.303009033203125,
0.25952476263046265,
-0.007066741585731506,
0.06833764910697937,
-0.06862959265708923,
0.7850075960159302,
0.11030721664428711,
-0.3748266398906708,
0.220913827419281,
-0.3264000415802002,
-0.1197444498538971,
-0.018029548227787018,
-0.0392213873565197,
0.22465237975120544,
-0.018772602081298828,
-0.32483282685279846,
-0.1444942057132721,
-0.02535546012222767,
-0.08133251965045929,
-0.048568643629550934,
-0.07511429488658905,
-0.09877121448516846,
-0.295226126909256,
0.1521691381931305,
0.16465350985527039,
-0.043407294899225235,
-0.2751214802265167,
0.08164076507091522,
0.058251336216926575,
-0.04406215250492096,
-0.1813029944896698,
0.1159442663192749,
-0.06340453028678894,
-0.03717625513672829,
0.6156619787216187,
-0.23831045627593994,
-0.11559157818555832,
0.14713485538959503,
-0.06599926203489304,
-0.04784025996923447,
-0.12090574949979782,
0.01812759041786194,
0.6180896759033203,
-0.7503910660743713,
0.02690211683511734,
-0.19363166391849518,
-0.060456082224845886,
0.08098717778921127,
0.2758917510509491,
0.024020692333579063,
-0.10434050112962723,
0.01673668995499611,
-0.1601720005273819,
-0.042754098773002625,
0.18041473627090454,
0.05841778218746185,
0.0490250363945961,
-0.056824762374162674,
-0.0217394158244133,
0.07967913895845413,
-0.04418862611055374,
-0.2811424136161804,
0.31252962350845337,
-0.2697046101093292,
0.014535843394696712,
-0.16123248636722565,
-0.22755107283592224,
0.28171592950820923,
-0.41769731044769287,
0.11110632121562958,
0.11538783460855484,
-0.3516155779361725,
-0.11394017934799194,
-0.39948758482933044,
0.13839347660541534,
0.21736246347427368,
-0.023847851902246475,
-0.04723838344216347,
-0.006467755883932114,
-0.09510667622089386,
-0.2058204859495163,
0.33085939288139343,
0.422954261302948,
-0.014964744448661804,
0.036415282636880875,
0.759391188621521,
0.4211808443069458,
-0.1294899880886078,
0.01052767038345337,
0.17743277549743652,
0.3785082697868347,
-0.27300283312797546,
-0.0016948692500591278,
-0.2331256866455078,
-0.054287444800138474,
-0.06916828453540802,
0.24988654255867004,
0.32538390159606934,
0.15262070298194885,
0.3214922547340393,
-0.16756078600883484,
-0.10293884575366974,
-0.02538428269326687,
0.4698279798030853,
0.1596839278936386,
-0.16199825704097748,
-0.11373443156480789,
0.4001408815383911,
0.190140038728714,
-0.03771720081567764,
-0.20920249819755554,
0.4764113128185272,
-0.015588735230267048,
0.030372928828001022,
0.1540011167526245,
0.3310697674751282,
0.09064292907714844,
0.019813228398561478,
0.13450956344604492,
0.446034699678421,
-0.10794246196746826,
-0.05047519877552986,
0.24838708341121674,
0.07937115430831909,
0.11201563477516174,
0.24938444793224335,
0.04903334379196167,
0.12404382228851318,
0.2510303854942322,
-0.01691804826259613,
0.4170859754085541,
0.21124717593193054,
0.03788197785615921,
0.40180033445358276,
-0.20256146788597107,
-0.1415071338415146,
-0.029904276132583618,
0.05514463037252426,
0.0680936723947525,
-0.0839950293302536,
0.6702700257301331,
-0.33298173546791077,
-0.19351708889007568,
-0.3692386746406555,
-0.03016624227166176,
-0.08880063146352768,
0.09021936357021332,
0.012546397745609283,
-0.0038875341415405273,
-0.3632766008377075,
-0.14132723212242126,
-0.07671937346458435,
-0.2634413242340088,
0.39009904861450195,
0.0000524669885635376,
-0.03673422336578369,
-0.3160613179206848,
-0.2970466911792755,
0.2452208697795868,
0.4560176134109497,
-0.08173954486846924,
0.10400573164224625,
0.10999084264039993,
-0.39596402645111084,
-0.11125525832176208,
0.45955172181129456,
0.43255501985549927,
-0.0054220519959926605,
-0.03863728046417236,
0.15825046598911285,
0.2791431248188019,
0.09139221161603928,
0.33782100677490234,
0.06361405551433563,
-0.04416082799434662,
0.11544346809387207,
0.06625284254550934,
0.1522722691297531,
-0.10334654897451401,
-0.2039712518453598,
-0.08876857161521912,
0.4099174439907074,
-0.10857367515563965,
0.40313097834587097,
-0.39097917079925537,
-0.03834468871355057,
-0.19737288355827332,
0.14882183074951172,
-0.11881593614816666,
0.20588403940200806,
0.13434723019599915,
0.031183738261461258,
0.03592924028635025,
-0.351107120513916,
0.054743558168411255,
0.050565872341394424,
0.3684386909008026,
0.36680206656455994,
-0.17598044872283936,
-0.23316654562950134,
-0.07248221337795258,
-0.217570960521698,
0.19334638118743896,
-0.021637942641973495,
0.12357407808303833,
0.08483146876096725,
-0.13395710289478302,
-0.17100653052330017,
-0.020985282957553864,
-0.08371137082576752,
-0.11899841576814651,
0.12072267383337021,
0.19974321126937866,
-0.17011140286922455,
0.15677759051322937,
0.03215286508202553,
-0.3121814727783203,
0.13134025037288666,
-0.1529959738254547,
0.3081986904144287,
0.04975854605436325,
-0.03890635818243027,
0.03816647082567215,
0.14621050655841827,
0.1698887050151825,
-0.2249547839164734,
0.049265969544649124,
-0.0021726731210947037,
-0.17099767923355103,
0.07028484344482422,
-0.3563823401927948,
-0.5101178288459778,
-0.288828045129776,
-0.3156280219554901,
-0.05407452583312988,
-0.2616240680217743,
0.35303404927253723,
-0.03382662683725357,
-0.2952984571456909,
-0.05188484117388725,
0.36920785903930664,
0.00025890767574310303,
0.08083905279636383,
-0.08275893330574036,
0.2215845286846161,
0.010040916502475739,
-0.015195939689874649,
0.28146857023239136,
0.14012892544269562,
-0.020885787904262543,
0.21536239981651306,
-0.42597585916519165,
-0.2998998463153839,
0.4152883291244507,
0.07103784382343292,
-0.05994199961423874,
0.010390191338956356,
0.33596271276474,
0.3590274453163147,
-0.3707920014858246,
-0.5078505277633667,
0.02631283551454544,
0.060525231063365936,
0.05927770584821701,
-0.4220885634422302,
0.13195744156837463,
0.11760491132736206,
-0.07184736430644989,
0.0025267116725444794,
-0.07843334972858429,
0.1598673164844513,
-0.1577262282371521,
0.5636566281318665,
0.07242884486913681
] |
https://github.com/huggingface/datasets/issues/4105 | push to hub fails with huggingface-hub 0.5.0 | I'll be sending a fix for this later today on the `huggingface_hub` side.
The error would be converted to a `FutureWarning` if `datasets` uses kwargs instead of positional, for example here:
https://github.com/huggingface/datasets/blob/2230f7f7d7fbaf102cff356f5a8f3bd1561bea43/src/datasets/arrow_dataset.py#L3363-L3369
to be:
``` python
api.create_repo(
name=dataset_name,
token=token,
repo_type="dataset",
organization=organization,
private=private,
)
```
But `name` and `organization` are deprecated in `huggingface_hub=0.5`, and people should pass `repo_id='org/name` instead. Note that `repo_id` was introduced in 0.5 and if `datasets` wants to support older `huggingface_hub` versions (which I encourage it to do), there needs to be a helper function to do that. It can be something like:
```python
def create_repo(
client,
name: str,
token: Optional[str] = None,
organization: Optional[str] = None,
private: Optional[bool] = None,
repo_type: Optional[str] = None,
exist_ok: Optional[bool] = False,
space_sdk: Optional[str] = None,
) -> str:
try:
return client.create_repo(
repo_id=f"{organization}/{name}",
token=token,
private=private,
repo_type=repo_type,
exist_ok=exist_ok,
space_sdk=space_sdk,
)
except TypeError:
return client.create_repo(
name=name,
organization=organization,
token=token,
private=private,
repo_type=repo_type,
exist_ok=exist_ok,
space_sdk=space_sdk,
)
```
in a `utils/_fixes.py` kinda file and and be used internally.
I'll be sending a patch to `huggingface_hub` to convert the error reported in this issue to a `FutureWarning`. | ## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```
## Expected results
The dataset is successfully uploaded
## Actual results
An error validation is raised:
```bash
if repo_id and (name or organization):
> raise ValueError(
"Only pass `repo_id` and leave deprecated `name` and "
"`organization` to be None."
E ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0
cc @adrinjalali
| 179 | push to hub fails with huggingface-hub 0.5.0
## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```
## Expected results
The dataset is successfully uploaded
## Actual results
An error validation is raised:
```bash
if repo_id and (name or organization):
> raise ValueError(
"Only pass `repo_id` and leave deprecated `name` and "
"`organization` to be None."
E ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0
cc @adrinjalali
I'll be sending a fix for this later today on the `huggingface_hub` side.
The error would be converted to a `FutureWarning` if `datasets` uses kwargs instead of positional, for example here:
https://github.com/huggingface/datasets/blob/2230f7f7d7fbaf102cff356f5a8f3bd1561bea43/src/datasets/arrow_dataset.py#L3363-L3369
to be:
``` python
api.create_repo(
name=dataset_name,
token=token,
repo_type="dataset",
organization=organization,
private=private,
)
```
But `name` and `organization` are deprecated in `huggingface_hub=0.5`, and people should pass `repo_id='org/name` instead. Note that `repo_id` was introduced in 0.5 and if `datasets` wants to support older `huggingface_hub` versions (which I encourage it to do), there needs to be a helper function to do that. It can be something like:
```python
def create_repo(
client,
name: str,
token: Optional[str] = None,
organization: Optional[str] = None,
private: Optional[bool] = None,
repo_type: Optional[str] = None,
exist_ok: Optional[bool] = False,
space_sdk: Optional[str] = None,
) -> str:
try:
return client.create_repo(
repo_id=f"{organization}/{name}",
token=token,
private=private,
repo_type=repo_type,
exist_ok=exist_ok,
space_sdk=space_sdk,
)
except TypeError:
return client.create_repo(
name=name,
organization=organization,
token=token,
private=private,
repo_type=repo_type,
exist_ok=exist_ok,
space_sdk=space_sdk,
)
```
in a `utils/_fixes.py` kinda file and and be used internally.
I'll be sending a patch to `huggingface_hub` to convert the error reported in this issue to a `FutureWarning`. | [
-0.17796801030635834,
-0.3613968789577484,
0.03966119512915611,
-0.04187328368425369,
0.1493162214756012,
-0.1146920770406723,
0.2596385180950165,
0.3919743001461029,
0.0567190907895565,
0.2154313027858734,
-0.16143356263637543,
0.1872851699590683,
0.02898694947361946,
0.09895596653223038,
-0.016329508274793625,
0.06428038328886032,
0.3249468505382538,
0.08632098138332367,
0.14534872770309448,
-0.06114503741264343,
-0.24155771732330322,
0.14890174567699432,
-0.023041419684886932,
0.16142725944519043,
-0.3828867971897125,
0.03243498504161835,
-0.10897806286811829,
0.3636226952075958,
-0.2805213928222656,
-0.2099369764328003,
0.45785093307495117,
0.1745123565196991,
-0.12499283999204636,
0.5028982758522034,
-0.0001172115298686549,
0.08862639963626862,
0.4137715697288513,
-0.007482901215553284,
-0.2815573513507843,
-0.43520474433898926,
-0.0508500412106514,
-0.21789658069610596,
-0.17107301950454712,
-0.025461509823799133,
-0.010817069560289383,
0.2825043201446533,
-0.008993575349450111,
0.2580931484699249,
0.32721611857414246,
0.27542048692703247,
0.14186260104179382,
0.5311610698699951,
0.41297879815101624,
-0.28623437881469727,
0.21512705087661743,
0.23948432505130768,
-0.34578022360801697,
0.42987895011901855,
0.05052115023136139,
0.25503382086753845,
0.004291467368602753,
0.1607821136713028,
-0.05763368681073189,
-0.23826824128627777,
0.16473396122455597,
-0.07274516671895981,
0.1398783177137375,
-0.033764950931072235,
-0.04269718378782272,
0.05856102332472801,
-0.0664994940161705,
-0.4527089297771454,
-0.57477867603302,
-0.24480390548706055,
0.03031458705663681,
-0.5069590210914612,
0.2876949906349182,
-0.027195235714316368,
-0.08284088969230652,
0.07063750922679901,
-0.252542644739151,
-0.3399844765663147,
-0.09084761142730713,
0.18645071983337402,
0.09536729753017426,
0.31884729862213135,
-0.11494864523410797,
0.0170024074614048,
-0.06343282759189606,
-0.237037792801857,
0.06376447528600693,
-0.02677067741751671,
-0.13808932900428772,
-0.014675467275083065,
-0.3060457110404968,
-0.0989711582660675,
-0.009926259517669678,
0.2377719283103943,
0.44875678420066833,
0.07319558411836624,
-0.1024310365319252,
0.04684106260538101,
-0.19191040098667145,
0.10748796910047531,
0.20346814393997192,
0.2034333497285843,
0.22760894894599915,
0.043650124222040176,
0.17472641170024872,
0.43035003542900085,
0.3359992504119873,
0.08972363919019699,
0.08681418001651764,
-0.03296332806348801,
0.014996137470006943,
-0.05375763773918152,
0.510602593421936,
-0.04713023081421852,
-0.26081252098083496,
0.10779361426830292,
-0.30388396978378296,
0.22311267256736755,
0.12993314862251282,
0.13824249804019928,
0.0840182676911354,
0.23213472962379456,
-0.1160556897521019,
0.2644987106323242,
-0.16863927245140076,
0.2587437927722931,
-0.27333682775497437,
0.03902319818735123,
-0.14787797629833221,
0.06534421443939209,
0.15620224177837372,
-0.7099246382713318,
0.29707738757133484,
0.12808683514595032,
0.2835686206817627,
-0.09906186163425446,
-0.5822110772132874,
0.08860094845294952,
-0.008832015097141266,
0.2769000828266144,
-0.10032159090042114,
0.20994743704795837,
-0.11284057796001434,
-0.12964372336864471,
-0.13084092736244202,
-0.04246646910905838,
-0.37243786454200745,
-0.40601566433906555,
-0.014604615047574043,
0.11357701569795609,
-0.28862684965133667,
0.022913001477718353,
-0.39857742190361023,
0.04563950002193451,
-0.09275611490011215,
-0.004548154771327972,
0.03315761685371399,
0.2334624081850052,
-0.1856505274772644,
-0.05542394891381264,
0.18517157435417175,
0.38651925325393677,
0.3226964771747589,
-0.1471448689699173,
0.16931402683258057,
0.1336418092250824,
-0.12837770581245422,
0.21520298719406128,
-0.10241742432117462,
-0.028866201639175415,
-0.15617461502552032,
0.09274746477603912,
-0.0022813156247138977,
-0.7290074229240417,
-0.4749701917171478,
-0.08544138073921204,
-0.15294568240642548,
-0.07777126133441925,
-0.06253720074892044,
-0.13144055008888245,
-0.24060271680355072,
-0.09802402555942535,
-0.1385064721107483,
0.10336211323738098,
-0.03894173353910446,
0.1513940840959549,
-0.3388495147228241,
-0.2835693061351776,
-0.16256551444530487,
0.23400895297527313,
0.10229216516017914,
0.025195911526679993,
-0.06282905489206314,
0.29860275983810425,
0.10511961579322815,
-0.016245577484369278,
0.12081075459718704,
0.20316660404205322,
0.5678791999816895,
-0.3116610646247864,
-0.02176828496158123,
-0.2807089686393738,
-0.5311744809150696,
0.2646065056324005,
0.18778130412101746,
0.12694823741912842,
-0.02997291088104248,
-0.14442114531993866,
-0.5834985375404358,
0.21401415765285492,
-0.08009132742881775,
-0.00209997221827507,
0.03905094414949417,
-0.2503676414489746,
0.24135059118270874,
0.24890612065792084,
-0.22738072276115417,
0.44658762216567993,
-0.1904217004776001,
0.41672465205192566,
-0.45487162470817566,
0.5945441722869873,
-0.12156126648187637,
-0.36774617433547974,
0.03137274831533432,
0.3142005503177643,
0.28012770414352417,
-0.11295002698898315,
0.00272911274805665,
0.5878097414970398,
0.06500948220491409,
0.029629990458488464,
-0.06881893426179886,
-0.003198280930519104,
0.4209926128387451,
0.15225940942764282,
-0.16562798619270325,
-0.028821658343076706,
0.12494036555290222,
0.13532587885856628,
-0.2098338007926941,
0.370769739151001,
-0.07247960567474365,
0.028191402554512024,
-0.037605851888656616,
0.1918850988149643,
-0.018500685691833496,
-0.05082457885146141,
-0.05358104407787323,
-0.05055592209100723,
-0.01252010092139244,
-0.011165119707584381,
0.028857942670583725,
-0.2758049964904785,
0.055788516998291016,
-0.04387364536523819,
0.34303510189056396,
0.19802317023277283,
0.10552588850259781,
0.08213526010513306,
-0.08947431296110153,
-0.10652193427085876,
0.15312644839286804,
0.12432178854942322,
0.10087430477142334,
-0.05433874949812889,
-0.34725549817085266,
0.16730263829231262,
-0.12492983788251877,
-0.09565550088882446,
0.07626864314079285,
0.12255784869194031,
0.058520883321762085,
0.17540401220321655,
0.1158658117055893,
0.1170092448592186,
-0.20952409505844116,
-0.09841737151145935,
0.10286875814199448,
0.27849605679512024,
-0.33057889342308044,
-0.16857819259166718,
-0.00413820706307888,
0.07428768277168274,
-0.003194269724190235,
-0.45982712507247925,
-0.6187921762466431,
-0.556929886341095,
-0.030660703778266907,
0.546161949634552,
-0.010331477969884872,
0.2785685360431671,
0.335212767124176,
-0.00435328483581543,
0.04712424427270889,
-0.17526964843273163,
-0.27613893151283264,
0.004447799175977707,
0.01686643250286579,
-0.03800258785486221,
0.007062830962240696,
0.1178971603512764,
0.2254531979560852,
-0.20283177495002747,
0.17176538705825806,
-0.39500799775123596,
-0.23778781294822693,
0.15512937307357788,
-0.3685818314552307,
0.05778762698173523,
0.23615258932113647,
0.010275617241859436,
-0.21109645068645477,
-0.1724105328321457,
0.3055252134799957,
-0.2971593141555786,
-0.4171842634677887,
0.12864470481872559,
-0.038146231323480606,
-0.02564777247607708,
-0.2260906994342804,
0.12828418612480164,
0.1777171790599823,
-0.3797442317008972,
0.33385157585144043,
0.05907491222023964,
0.03733665123581886,
0.4641987681388855,
0.24653112888336182,
0.06733407080173492,
-0.12939941883087158,
-0.3642212152481079,
-0.07959026843309402,
-0.3195250928401947,
0.23531772196292877,
-0.05774511769413948,
-0.21887798607349396,
0.06585891544818878,
0.18023066222667694,
0.16546668112277985,
0.012233422137796879,
-0.18421903252601624,
-0.7994692921638489,
-0.15388326346874237,
0.4311637580394745,
0.05798928439617157,
0.10926591604948044,
0.39122840762138367,
0.06474993377923965,
0.0016470421105623245,
-0.0644322857260704,
-0.4432939291000366,
0.10066212713718414,
0.33124953508377075,
-0.051631711423397064,
0.035145197063684464,
0.041318900883197784,
0.030660364776849747,
0.5870410799980164,
0.13259464502334595,
-0.19332292675971985,
0.4551502466201782,
0.07407426089048386,
0.5215952396392822,
-0.24151167273521423,
-0.3660874664783478,
-0.1045139953494072,
0.07447543740272522,
0.19848927855491638,
0.00671251118183136,
0.11236532032489777,
0.2953137457370758,
-0.23071546852588654,
-0.5767799615859985,
-0.02554972842335701,
-0.2262449562549591,
-0.28735288977622986,
-0.02330600470304489,
-0.018563367426395416,
0.03908099606633186,
0.20799511671066284,
-0.20074227452278137,
-0.19209882616996765,
0.20139342546463013,
0.1975049376487732,
0.16144214570522308,
0.043183911591768265,
-0.26332807540893555,
-0.03366859257221222,
-0.5164350271224976,
0.14372804760932922,
0.1457030475139618,
0.32342472672462463,
0.11495429277420044,
0.05991426110267639,
-0.05954299867153168,
-0.16014482080936432,
0.2267206907272339,
-0.2593771815299988,
0.1472303867340088,
-0.046824630349874496,
-0.1423736810684204,
-0.44874298572540283,
0.0319812037050724,
0.02527560666203499,
0.2934543192386627,
-0.07293790578842163,
0.6584485173225403,
-0.3755072057247162,
-0.3702390193939209,
0.17194822430610657,
-0.20184290409088135,
0.07535870373249054,
-0.05869942903518677,
-0.25479063391685486,
-0.24264875054359436,
-0.33107879757881165,
0.10750070959329605,
0.3104170858860016,
0.21241344511508942,
-0.218248188495636,
0.1238493025302887,
0.09556350857019424,
-0.06887592375278473,
0.03348442167043686,
-0.02924318239092827,
0.15351027250289917,
-0.07290059328079224,
0.15797606110572815,
0.12854701280593872,
0.15060755610466003,
0.22474093735218048,
0.5692735314369202,
0.08357682824134827,
-0.6042836308479309,
-0.1937098205089569,
0.08069591224193573,
0.01319945603609085,
0.5336101055145264,
0.18048347532749176,
0.22118431329727173,
-0.20868486166000366,
0.037891991436481476,
-0.2908897399902344,
-0.13527879118919373,
0.3685721457004547,
-0.020797796547412872,
-0.3104398548603058,
0.1524503082036972,
0.417651504278183,
-0.07412728667259216,
0.14054682850837708,
0.1264318823814392,
0.8961151242256165,
-0.1970529705286026,
0.21566852927207947,
-0.11474847048521042,
0.9538764357566833,
0.20025505125522614,
0.14550668001174927,
0.3632907569408417,
-0.2624189257621765,
0.4666902720928192,
0.06769310683012009,
0.001227211207151413,
-0.4260256290435791,
-0.03998187556862831,
-0.04912225157022476,
0.1731707602739334,
0.13084563612937927,
-0.20062805712223053,
-0.23557132482528687,
0.2052033394575119,
-0.24672666192054749,
0.46089497208595276,
-0.1855391263961792,
0.12057843804359436,
-0.5783970952033997,
-0.3259701132774353,
-0.4419679343700409,
0.13385479152202606,
-0.09253568947315216,
0.19772997498512268,
0.014464003965258598,
-0.16659893095493317,
-0.3073746860027313,
-0.17754797637462616,
-0.4358974099159241,
0.09455616772174835,
0.24943576753139496,
-0.10192003101110458,
0.16882890462875366,
-0.09397643804550171,
0.029415223747491837,
0.0463649220764637,
0.7985822558403015,
0.14359663426876068,
-0.3918824791908264,
0.20056118071079254,
-0.3591724932193756,
-0.202352836728096,
-0.046845801174640656,
0.013163755647838116,
0.19442175328731537,
-0.022364750504493713,
-0.24795493483543396,
-0.15292221307754517,
-0.0757625550031662,
-0.0961507260799408,
-0.15425513684749603,
-0.05284903943538666,
-0.05724982172250748,
-0.3154745399951935,
0.14488056302070618,
0.07225871086120605,
-0.04479270428419113,
-0.32666248083114624,
0.04570207744836807,
0.07808547466993332,
-0.033020034432411194,
-0.19366052746772766,
0.07453367859125137,
-0.060529693961143494,
-0.022187642753124237,
0.6004140973091125,
-0.21676510572433472,
-0.17029063403606415,
0.13266871869564056,
-0.06921587139368057,
-0.10694094747304916,
-0.07347173988819122,
0.0593995526432991,
0.5781835913658142,
-0.7517840266227722,
0.09040629863739014,
-0.14760729670524597,
-0.044650472700595856,
0.016354067251086235,
0.3138265311717987,
0.06860814988613129,
-0.12049398571252823,
-0.0013837367296218872,
-0.1363573968410492,
-0.0712781548500061,
0.2341158092021942,
0.08249346166849136,
0.1109304279088974,
-0.05137797072529793,
-0.04052238538861275,
0.07115787267684937,
-0.10296934843063354,
-0.2639842927455902,
0.2288299947977066,
-0.3311844766139984,
0.05768013000488281,
-0.16332271695137024,
-0.28857436776161194,
0.24020203948020935,
-0.3942077159881592,
0.05803048610687256,
0.12298239022493362,
-0.3024557828903198,
-0.08296103030443192,
-0.38234490156173706,
0.1325373351573944,
0.22016051411628723,
0.01585162989795208,
-0.004121968988329172,
0.014077655971050262,
-0.0821743756532669,
-0.14639446139335632,
0.2942141592502594,
0.5068454146385193,
0.03877268359065056,
0.08638864010572433,
0.7219035029411316,
0.5306546092033386,
-0.06228947639465332,
0.03157101944088936,
0.08452244848012924,
0.38141560554504395,
-0.28804031014442444,
0.06896702945232391,
-0.2007535994052887,
-0.03834596276283264,
-0.06808467954397202,
0.2415539026260376,
0.35484743118286133,
0.1121768057346344,
0.35212355852127075,
-0.20742790400981903,
-0.07654768973588943,
0.01484692096710205,
0.426522821187973,
0.2579587697982788,
-0.19339868426322937,
-0.10422846674919128,
0.3247866630554199,
0.1460614800453186,
-0.02502364292740822,
-0.21005137264728546,
0.45764824748039246,
-0.008353929035365582,
0.06164931133389473,
0.18074065446853638,
0.3157796859741211,
0.039465226233005524,
-0.013686634600162506,
0.12694206833839417,
0.5123551487922668,
-0.0942864641547203,
-0.05036406219005585,
0.25635093450546265,
0.04833446815609932,
0.09655153006315231,
0.2130003124475479,
0.06400056183338165,
0.1985168755054474,
0.20407193899154663,
-0.05353560298681259,
0.4804045259952545,
0.1610567420721054,
0.02273492142558098,
0.4391971230506897,
-0.14971508085727692,
-0.2064404934644699,
-0.09031711518764496,
-0.0015753582119941711,
0.12098170816898346,
0.008398979902267456,
0.5776808261871338,
-0.38387539982795715,
-0.1622730940580368,
-0.3735352158546448,
0.02193637005984783,
-0.09335445612668991,
0.10278570652008057,
-0.03964009881019592,
0.004512585699558258,
-0.35896021127700806,
-0.1434357762336731,
-0.10079987347126007,
-0.2129555195569992,
0.3698655962944031,
-0.07520413398742676,
-0.042995885014534,
-0.16797322034835815,
-0.2960050106048584,
0.3017483353614807,
0.45678606629371643,
-0.14229924976825714,
0.13326573371887207,
0.2375938445329666,
-0.4004151225090027,
-0.12113064527511597,
0.48154759407043457,
0.4571390450000763,
-0.00007693842053413391,
-0.032724522054195404,
0.20084424316883087,
0.24408693611621857,
0.05367753654718399,
0.3271896541118622,
0.15574228763580322,
-0.114753857254982,
0.16629046201705933,
0.10021242499351501,
0.1452096551656723,
-0.08873537927865982,
-0.1660107970237732,
-0.0996113121509552,
0.3779081702232361,
-0.034686412662267685,
0.4588760435581207,
-0.3533446788787842,
-0.03530005365610123,
-0.161612868309021,
0.14907169342041016,
-0.0819433256983757,
0.10919754207134247,
0.1070718914270401,
0.0671393871307373,
0.026640355587005615,
-0.3572792112827301,
0.05023198574781418,
0.11408209800720215,
0.3622063994407654,
0.35806453227996826,
-0.15753641724586487,
-0.20052988827228546,
-0.07266763597726822,
-0.21160688996315002,
0.17338313162326813,
0.01775260642170906,
0.03992190957069397,
0.07287123054265976,
-0.1750364452600479,
-0.15422981977462769,
0.08066162467002869,
-0.21807529032230377,
-0.10557926446199417,
0.006932360120117664,
0.18235836923122406,
-0.21492712199687958,
0.15209752321243286,
0.07127287983894348,
-0.33923280239105225,
0.1715874820947647,
-0.16064336895942688,
0.33122557401657104,
0.05351683124899864,
-0.07048704475164413,
-0.051086947321891785,
0.166872039437294,
0.13638365268707275,
-0.1211453527212143,
-0.011935748159885406,
0.07981981337070465,
-0.08981870114803314,
0.028581075370311737,
-0.40467369556427,
-0.529017984867096,
-0.23918232321739197,
-0.34612149000167847,
0.020890500396490097,
-0.2255731225013733,
0.3792099952697754,
-0.05664747953414917,
-0.25386252999305725,
-0.03312259167432785,
0.3556772470474243,
0.010647527873516083,
0.06582879275083542,
-0.15801681578159332,
0.19850555062294006,
-0.03433682769536972,
0.03753836452960968,
0.21857692301273346,
0.09040945768356323,
0.002082984894514084,
0.23480243980884552,
-0.37270820140838623,
-0.4075801372528076,
0.4604266285896301,
0.054714277386665344,
-0.05640794336795807,
-0.03311958163976669,
0.18972247838974,
0.3368433117866516,
-0.32941359281539917,
-0.5895965695381165,
0.01906464993953705,
0.1225055530667305,
0.07014013826847076,
-0.40887898206710815,
0.0889129787683487,
0.09920062124729156,
-0.15524953603744507,
-0.018675897270441055,
-0.05326700210571289,
0.12014556676149368,
-0.1303991675376892,
0.5737796425819397,
0.004826240241527557
] |
https://github.com/huggingface/datasets/issues/4105 | push to hub fails with huggingface-hub 0.5.0 | We can definitely change `push_to_hub` to use `repo_id` in `datasets` and require `huggingface_hub>=0.5.0`.
Let me open a PR :) | ## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```
## Expected results
The dataset is successfully uploaded
## Actual results
An error validation is raised:
```bash
if repo_id and (name or organization):
> raise ValueError(
"Only pass `repo_id` and leave deprecated `name` and "
"`organization` to be None."
E ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0
cc @adrinjalali
| 19 | push to hub fails with huggingface-hub 0.5.0
## Describe the bug
`ds.push_to_hub` is failing when updating a dataset in the form "org_id/repo_id"
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("rubrix/news_test")
ds.push_to_hub("<your-user>/news_test", token="<your-token>")
```
## Expected results
The dataset is successfully uploaded
## Actual results
An error validation is raised:
```bash
if repo_id and (name or organization):
> raise ValueError(
"Only pass `repo_id` and leave deprecated `name` and "
"`organization` to be None."
E ValueError: Only pass `repo_id` and leave deprecated `name` and `organization` to be None.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.1
- `huggingface-hub`: 0.5
- Platform: macOS
- Python version: 3.8.12
- PyArrow version: 6.0.0
cc @adrinjalali
We can definitely change `push_to_hub` to use `repo_id` in `datasets` and require `huggingface_hub>=0.5.0`.
Let me open a PR :) | [
-0.21252645552158356,
-0.43157485127449036,
0.05220417305827141,
0.048228368163108826,
0.11559921503067017,
-0.15239620208740234,
0.2406623512506485,
0.39148497581481934,
0.09442321956157684,
0.18098723888397217,
-0.14784903824329376,
0.20395970344543457,
0.04224810749292374,
0.18272234499454498,
0.048740118741989136,
0.11801496893167496,
0.36097583174705505,
0.08675997704267502,
0.08458587527275085,
-0.07669064402580261,
-0.19055457413196564,
0.11726268380880356,
-0.04781223088502884,
0.12258079648017883,
-0.43945854902267456,
0.048136189579963684,
-0.0718916803598404,
0.41741180419921875,
-0.18626229465007782,
-0.1549079567193985,
0.43800729513168335,
0.22571294009685516,
-0.06619706749916077,
0.5420902371406555,
-0.00011856240598717704,
0.0547613650560379,
0.37066781520843506,
0.010511724278330803,
-0.22829818725585938,
-0.40915077924728394,
-0.04042491316795349,
-0.1516992151737213,
-0.19910794496536255,
-0.05571352690458298,
-0.028337588533759117,
0.30823954939842224,
-0.046219080686569214,
0.38998210430145264,
0.25646644830703735,
0.274343341588974,
0.15619352459907532,
0.5313301086425781,
0.4135661721229553,
-0.2657730281352997,
0.3317868113517761,
0.21886558830738068,
-0.27721691131591797,
0.44837018847465515,
0.10588286817073822,
0.20394060015678406,
0.06417425721883774,
0.1622248888015747,
-0.05911954492330551,
-0.28771358728408813,
0.2014075517654419,
-0.09335679560899734,
0.20129382610321045,
-0.0024085193872451782,
-0.051518842577934265,
0.04625643789768219,
-0.022516682744026184,
-0.44142237305641174,
-0.5042058825492859,
-0.16480529308319092,
0.03431377559900284,
-0.4510454535484314,
0.29045867919921875,
-0.07378280907869339,
-0.0695953518152237,
0.1579338014125824,
-0.2848776876926422,
-0.42082297801971436,
-0.07877601683139801,
0.1848033368587494,
0.027290403842926025,
0.19429130852222443,
-0.10166683793067932,
0.002784769982099533,
0.007147502154111862,
-0.26251792907714844,
0.1669038087129593,
0.005461452528834343,
-0.10544650256633759,
-0.09764426946640015,
-0.2937285602092743,
-0.15117573738098145,
-0.026841916143894196,
0.31438329815864563,
0.4597908556461334,
0.028422709554433823,
-0.13644839823246002,
0.0019670408219099045,
-0.21375755965709686,
0.14063355326652527,
0.2492765337228775,
0.15489615499973297,
0.1785883605480194,
0.05152304470539093,
0.26201385259628296,
0.403486430644989,
0.20340785384178162,
0.11346802860498428,
0.0784418061375618,
-0.021987643092870712,
0.13832716643810272,
-0.060646481812000275,
0.47959190607070923,
-0.07691091299057007,
-0.25018855929374695,
0.12608632445335388,
-0.3383055329322815,
0.23306438326835632,
0.1273013800382614,
0.19604766368865967,
-0.01615564525127411,
0.19543147087097168,
-0.18054746091365814,
0.18262866139411926,
-0.2428523600101471,
0.22448807954788208,
-0.2967347204685211,
0.11029939353466034,
-0.08330270648002625,
0.014513565227389336,
0.16859170794487,
-0.8137477040290833,
0.26599037647247314,
0.10092972964048386,
0.2887371778488159,
-0.127859428524971,
-0.5962239503860474,
0.07566381990909576,
-0.03104478120803833,
0.3107595145702362,
-0.08762969076633453,
0.18673336505889893,
-0.17747868597507477,
-0.1313849240541458,
-0.13403134047985077,
0.06361941248178482,
-0.40170377492904663,
-0.436615914106369,
0.017937742173671722,
0.11244580149650574,
-0.32821470499038696,
-0.053779639303684235,
-0.2923039495944977,
-0.06762392818927765,
-0.14260292053222656,
-0.08188877999782562,
-0.027249060571193695,
0.19280822575092316,
-0.05964472517371178,
-0.03794214874505997,
0.23242706060409546,
0.38521379232406616,
0.3165040612220764,
-0.07009835541248322,
0.20043550431728363,
0.13701878488063812,
-0.09847249835729599,
0.24217167496681213,
-0.07010442763566971,
0.001682765781879425,
-0.15461833775043488,
0.07692494988441467,
-0.02874142676591873,
-0.781932532787323,
-0.617429256439209,
-0.1340799480676651,
-0.1650022566318512,
-0.05578647181391716,
-0.029951907694339752,
-0.07412748783826828,
-0.20878596603870392,
-0.10628188401460648,
-0.10190199315547943,
0.17492353916168213,
-0.04899516701698303,
0.17777781188488007,
-0.42939624190330505,
-0.22228625416755676,
-0.11071430146694183,
0.3367934226989746,
0.1189618706703186,
0.02792629599571228,
0.010407514870166779,
0.26654884219169617,
0.09371091425418854,
0.03237331286072731,
0.032853782176971436,
0.0832999125123024,
0.6169291138648987,
-0.36531496047973633,
0.01837640255689621,
-0.325133353471756,
-0.42260250449180603,
0.26214295625686646,
0.2576741576194763,
0.05809373781085014,
-0.029196202754974365,
-0.14841696619987488,
-0.6044106483459473,
0.19910338521003723,
-0.002124972641468048,
-0.05320306494832039,
0.031246662139892578,
-0.2432563304901123,
0.1459176242351532,
0.2136833667755127,
-0.2828174829483032,
0.5747923851013184,
-0.18066833913326263,
0.3807286024093628,
-0.3567115068435669,
0.6065683364868164,
-0.14669035375118256,
-0.3861297369003296,
0.04840747267007828,
0.3216802775859833,
0.268724262714386,
-0.13336864113807678,
0.035225093364715576,
0.6038764119148254,
0.05146938934922218,
-0.00950942188501358,
-0.002599947154521942,
-0.0647842288017273,
0.389259397983551,
0.03635421767830849,
-0.2173544317483902,
-0.033677417784929276,
0.11687245965003967,
0.12064441293478012,
-0.17507046461105347,
0.28359949588775635,
-0.05235353484749794,
-0.005243964493274689,
-0.039683036506175995,
0.2101854532957077,
-0.06844399124383926,
-0.09394269436597824,
0.010792000219225883,
0.03214568644762039,
0.0721624493598938,
-0.006666814908385277,
-0.025538256391882896,
-0.24994252622127533,
-0.05661112815141678,
0.019547171890735626,
0.37550708651542664,
0.11529037356376648,
0.18066082894802094,
0.05692988634109497,
-0.10119115561246872,
-0.07442711293697357,
0.13933566212654114,
0.07531118392944336,
0.09569887816905975,
-0.024664398282766342,
-0.40341341495513916,
0.21384866535663605,
-0.10126993060112,
-0.024455098435282707,
0.00733146071434021,
-0.010549917817115784,
0.02637346088886261,
0.15087682008743286,
0.11600969731807709,
0.11200165003538132,
-0.17754730582237244,
-0.09855566918849945,
0.056088484823703766,
0.30664217472076416,
-0.40011948347091675,
-0.20203259587287903,
0.015073148533701897,
0.12409374862909317,
0.02860328182578087,
-0.44880327582359314,
-0.5952022075653076,
-0.4958169460296631,
-0.0019984543323516846,
0.6196709275245667,
0.04891328141093254,
0.2994954288005829,
0.4090501368045807,
0.05215458571910858,
0.008518485352396965,
-0.2445567399263382,
-0.26456475257873535,
-0.025911787524819374,
-0.0190606489777565,
-0.05085358768701553,
0.059172578155994415,
0.1366942822933197,
0.22090300917625427,
-0.291072815656662,
0.16016414761543274,
-0.3684206008911133,
-0.2455819845199585,
0.148172527551651,
-0.3338872194290161,
0.10380906611680984,
0.204281747341156,
0.04924529045820236,
-0.17823292315006256,
-0.09809990227222443,
0.2689473628997803,
-0.30554938316345215,
-0.4000798165798187,
0.16999393701553345,
-0.004668480716645718,
-0.08770840615034103,
-0.1315603405237198,
0.07756178826093674,
0.1839357167482376,
-0.3720032274723053,
0.23239457607269287,
-0.01962217129766941,
0.09376046806573868,
0.39604902267456055,
0.24324288964271545,
0.08318261057138443,
-0.14054222404956818,
-0.35446950793266296,
-0.03568042442202568,
-0.3283354341983795,
0.28773999214172363,
-0.030879277735948563,
-0.27304115891456604,
0.09354038536548615,
0.25034099817276,
0.026031605899333954,
0.0933937355875969,
-0.23699747025966644,
-0.728822648525238,
-0.09037993103265762,
0.3998987376689911,
0.042745672166347504,
0.19227024912834167,
0.3885417580604553,
0.0037325513549149036,
0.016610225662589073,
-0.03777216747403145,
-0.5033503770828247,
0.026632584631443024,
0.4234197437763214,
-0.015991203486919403,
0.019779616966843605,
-0.02659454196691513,
-0.02368270419538021,
0.5373220443725586,
0.0776255875825882,
-0.19674177467823029,
0.430503785610199,
0.06479723751544952,
0.5085169672966003,
-0.20081794261932373,
-0.41527628898620605,
-0.0649833083152771,
0.16135595738887787,
0.13504791259765625,
-0.004494190216064453,
0.033233605325222015,
0.2740284204483032,
-0.2713138461112976,
-0.676062822341919,
-0.07239188998937607,
-0.19560404121875763,
-0.28091830015182495,
0.048800647258758545,
-0.038158513605594635,
0.005034089088439941,
0.17089369893074036,
-0.151691272854805,
-0.1456027626991272,
0.25481754541397095,
0.2714579701423645,
0.16790813207626343,
0.05621877685189247,
-0.2821540832519531,
-0.08459638804197311,
-0.5375213623046875,
0.14080862700939178,
0.09966467320919037,
0.3128226399421692,
0.06294594705104828,
0.036444224417209625,
0.014863461256027222,
-0.21786868572235107,
0.4151238203048706,
-0.3358907103538513,
0.16158784925937653,
-0.12415623664855957,
-0.16445693373680115,
-0.45367175340652466,
0.02072758600115776,
0.07218471169471741,
0.36621585488319397,
-0.07178547978401184,
0.6722503900527954,
-0.31625309586524963,
-0.32642048597335815,
0.2518100142478943,
-0.21512657403945923,
0.08417576551437378,
-0.22445984184741974,
-0.2205619066953659,
-0.300239235162735,
-0.296664297580719,
0.11378848552703857,
0.2918397784233093,
0.25008323788642883,
-0.13158217072486877,
0.09956932067871094,
0.010358660481870174,
-0.09956613183021545,
0.06761021912097931,
0.006964469328522682,
0.16230562329292297,
-0.16819508373737335,
0.18493208289146423,
0.11944413930177689,
0.13514474034309387,
0.21296755969524384,
0.5546504855155945,
0.07423296570777893,
-0.636503279209137,
-0.22291690111160278,
0.06389244645833969,
0.052731841802597046,
0.4997372329235077,
0.15462471544742584,
0.17693793773651123,
-0.22881710529327393,
0.004211045801639557,
-0.18084044754505157,
-0.18387897312641144,
0.33768659830093384,
0.030873678624629974,
-0.371948778629303,
0.1885746568441391,
0.3978654146194458,
-0.050494685769081116,
0.11167372763156891,
0.056115735322237015,
0.8407915234565735,
-0.1334313005208969,
0.2685874104499817,
-0.17223578691482544,
1.0429233312606812,
0.136131152510643,
0.157121479511261,
0.24876171350479126,
-0.2893267273902893,
0.5042455792427063,
-0.04207060486078262,
0.02634313888847828,
-0.47557640075683594,
-0.12929680943489075,
-0.08411385864019394,
0.16084140539169312,
0.060062892735004425,
-0.2669244408607483,
-0.21846632659435272,
0.26328447461128235,
-0.31831124424934387,
0.45782893896102905,
-0.1587284952402115,
0.07278485596179962,
-0.5138546824455261,
-0.2393818199634552,
-0.40858960151672363,
0.10995616018772125,
-0.0696096420288086,
0.18217313289642334,
0.01155359297990799,
-0.13116775453090668,
-0.30611759424209595,
-0.1848881095647812,
-0.4303765892982483,
0.08854517340660095,
0.22699256241321564,
-0.2389829307794571,
0.2516387403011322,
-0.10409054905176163,
0.01164170727133751,
0.04692160338163376,
0.7623148560523987,
0.13296423852443695,
-0.3709445893764496,
0.17959915101528168,
-0.3414290249347687,
-0.13898104429244995,
0.04179977625608444,
-0.019420381635427475,
0.26606929302215576,
-0.04444359615445137,
-0.3007025420665741,
-0.0834651067852974,
-0.02663365751504898,
-0.12653915584087372,
-0.06000951677560806,
-0.03699394315481186,
-0.09147822856903076,
-0.26609575748443604,
0.08325648307800293,
0.0851694867014885,
-0.014349101111292839,
-0.2822779417037964,
0.06819179654121399,
0.04628831148147583,
-0.0205556508153677,
-0.08783978968858719,
0.0010028481483459473,
-0.07519696652889252,
-0.01981579139828682,
0.621292769908905,
-0.2153761088848114,
-0.13776305317878723,
0.04533693939447403,
-0.06986589729785919,
-0.10667797923088074,
-0.10011361539363861,
0.05146390199661255,
0.5828201770782471,
-0.6354964971542358,
0.011924694292247295,
-0.24427111446857452,
-0.020539365708827972,
-0.04641181230545044,
0.24417518079280853,
0.11885439604520798,
-0.12754109501838684,
-0.013370722532272339,
-0.19891493022441864,
-0.027637705206871033,
0.16913765668869019,
0.15048228204250336,
0.05898766964673996,
0.04523792862892151,
-0.08020803332328796,
0.06062542647123337,
-0.10231418907642365,
-0.2705915868282318,
0.2744024395942688,
-0.3215859532356262,
0.0163511224091053,
-0.1724841445684433,
-0.18555977940559387,
0.23052473366260529,
-0.4307612180709839,
0.09754884988069534,
0.11996472626924515,
-0.2607385516166687,
-0.11737332493066788,
-0.3474818468093872,
0.14895674586296082,
0.25779443979263306,
0.031835585832595825,
0.007051654160022736,
-0.0013279002159833908,
-0.06268487870693207,
-0.14246602356433868,
0.32515081763267517,
0.4849468469619751,
0.03195615112781525,
0.06308644264936447,
0.7347815036773682,
0.4566158056259155,
-0.19551746547222137,
0.09915881603956223,
0.1251441240310669,
0.3631557822227478,
-0.30579835176467896,
0.06426655501127243,
-0.18563909828662872,
-0.057825587689876556,
-0.06501378118991852,
0.23586967587471008,
0.34655940532684326,
0.12799589335918427,
0.3542802929878235,
-0.17523987591266632,
-0.04004966467618942,
0.046567704528570175,
0.45319458842277527,
0.2451719045639038,
-0.2380281537771225,
-0.07029366493225098,
0.35429590940475464,
0.16566021740436554,
-0.03931937366724014,
-0.23564974963665009,
0.5065211653709412,
-0.01617460325360298,
-0.009138785302639008,
0.17694735527038574,
0.2782987952232361,
0.0443258136510849,
-0.035165347158908844,
0.10891490429639816,
0.5672786831855774,
-0.05860503762960434,
-0.1523783802986145,
0.2506854236125946,
0.07628323137760162,
0.09220007061958313,
0.23703733086585999,
0.09958536922931671,
0.1527344137430191,
0.2889103293418884,
-0.07615957409143448,
0.4144635498523712,
0.16059619188308716,
0.06196391582489014,
0.3802454471588135,
-0.10364247858524323,
-0.09456437826156616,
0.009903550148010254,
0.09131580591201782,
0.03701338544487953,
-0.04846590757369995,
0.6274635195732117,
-0.3554458022117615,
-0.1446252018213272,
-0.36491090059280396,
-0.002302885055541992,
-0.02837274968624115,
0.1671280860900879,
-0.03680219128727913,
0.023320570588111877,
-0.41666680574417114,
-0.12756982445716858,
-0.13946424424648285,
-0.21845827996730804,
0.3434740900993347,
0.053403958678245544,
-0.06840376555919647,
-0.2348168045282364,
-0.35568955540657043,
0.23677179217338562,
0.4161628782749176,
-0.19851699471473694,
0.14100122451782227,
0.1462574601173401,
-0.37543007731437683,
-0.07907867431640625,
0.5094374418258667,
0.4481905996799469,
0.048439063131809235,
-0.02308947592973709,
0.15202002227306366,
0.21990837156772614,
0.07950249314308167,
0.3226843476295471,
0.08521430194377899,
-0.1387205272912979,
0.23092292249202728,
0.029297836124897003,
0.13588745892047882,
-0.0769791305065155,
-0.1156226396560669,
-0.1319928765296936,
0.3138037621974945,
-0.10162955522537231,
0.37216752767562866,
-0.30045926570892334,
-0.05304238572716713,
-0.18743671476840973,
0.1588926613330841,
-0.08475907146930695,
0.10474448651075363,
0.16939924657344818,
0.09370274096727371,
0.010217977687716484,
-0.30389049649238586,
0.04653780162334442,
0.006729526445269585,
0.38359254598617554,
0.3872726857662201,
-0.14112091064453125,
-0.2402379810810089,
-0.0284164696931839,
-0.233204185962677,
0.2650180459022522,
-0.00008962303400039673,
0.007350394502282143,
0.14055556058883667,
-0.22565989196300507,
-0.22855374217033386,
0.09197349846363068,
-0.17860810458660126,
-0.08410967886447906,
-0.00590614415705204,
0.23659124970436096,
-0.20290838181972504,
0.12954188883304596,
0.004942245781421661,
-0.3547651171684265,
0.1291578859090805,
-0.11499220132827759,
0.43460097908973694,
0.024133574217557907,
-0.04801144823431969,
-0.03584866598248482,
0.11748631298542023,
0.1688702255487442,
-0.13417744636535645,
0.05110732465982437,
0.03757264465093613,
-0.024653956294059753,
0.0798376277089119,
-0.34504392743110657,
-0.46941208839416504,
-0.21008023619651794,
-0.3949938714504242,
-0.052659571170806885,
-0.21749362349510193,
0.2691274881362915,
-0.0475945845246315,
-0.2847786247730255,
-0.046949706971645355,
0.40792399644851685,
-0.022465748712420464,
0.03089050203561783,
-0.08392602950334549,
0.06829263269901276,
0.021850354969501495,
0.0186038576066494,
0.2369651198387146,
0.06172787398099899,
-0.02323971688747406,
0.21197520196437836,
-0.44314056634902954,
-0.345743864774704,
0.44203439354896545,
0.07888510078191757,
-0.047771815210580826,
-0.0527980662882328,
0.2843744158744812,
0.33562690019607544,
-0.3214332163333893,
-0.5247297286987305,
-0.01927068829536438,
0.10186764597892761,
0.08461092412471771,
-0.40174439549446106,
0.13594944775104523,
0.11708658933639526,
-0.0019839145243167877,
0.016062960028648376,
-0.07031649351119995,
0.17262831330299377,
-0.13614621758460999,
0.5495551228523254,
-0.03492309898138046
] |
https://github.com/huggingface/datasets/issues/4104 | Add time series data - stock market | @INF800 happy to add this dataset! I will try to set a PR by the end of the day... if you can kindly point me to the dataset? Also, note we have a bunch of time series datasets checked in e.g. `electricity_load_diagrams` or `monash_tsf`, and ideally this dataset could also be in a similar format. | ## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem
 | 55 | Add time series data - stock market
## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem

@INF800 happy to add this dataset! I will try to set a PR by the end of the day... if you can kindly point me to the dataset? Also, note we have a bunch of time series datasets checked in e.g. `electricity_load_diagrams` or `monash_tsf`, and ideally this dataset could also be in a similar format. | [
-0.4105682075023651,
-0.15613389015197754,
-0.20273622870445251,
-0.02041252702474594,
0.29667603969573975,
-0.04654606059193611,
0.27518078684806824,
0.2120448350906372,
0.23726066946983337,
-0.035647615790367126,
0.16770309209823608,
0.315420925617218,
-0.5273311734199524,
0.195855975151062,
0.11567381769418716,
-0.3401099443435669,
0.02219758927822113,
0.22431674599647522,
-0.2521655559539795,
0.026972845196723938,
0.09288689494132996,
0.0031921863555908203,
-0.08970309048891068,
0.008995510637760162,
-0.17540130019187927,
0.015360190533101559,
0.16791430115699768,
0.06054225191473961,
-0.1407722681760788,
-0.10848546773195267,
-0.030355902388691902,
-0.10914303362369537,
0.11039778590202332,
0.8560751676559448,
-0.00010328683856641874,
0.02508043497800827,
0.021866217255592346,
-0.26917657256126404,
-0.029350729659199715,
0.02187333256006241,
-0.1462307870388031,
-0.10557273030281067,
0.09369469434022903,
-0.1286296248435974,
-0.3325912058353424,
-0.15573333203792572,
-0.3096207082271576,
0.041683048009872437,
0.7186404466629028,
0.5938759446144104,
0.2992979884147644,
0.19886140525341034,
-0.0024205967783927917,
-0.28933200240135193,
0.15169760584831238,
0.14972248673439026,
-0.236473947763443,
-0.10908062756061554,
0.28746312856674194,
0.0949467122554779,
-0.05377408117055893,
0.25899171829223633,
0.10682167112827301,
-0.09866304695606232,
0.10317490249872208,
-0.14218111336231232,
0.2737123668193817,
-0.1880510300397873,
-0.39742961525917053,
0.11928209662437439,
0.4246441423892975,
-0.12396108359098434,
-0.13952688872814178,
-0.10822350531816483,
-0.02390681579709053,
0.20544691383838654,
0.019960593432188034,
0.012500694021582603,
-0.22201570868492126,
0.23101550340652466,
0.1685745269060135,
0.12841375172138214,
-0.30346745252609253,
0.03258395567536354,
-0.20150110125541687,
0.13566996157169342,
-0.0572638064622879,
0.057981811463832855,
-0.03732193633913994,
-0.14495693147182465,
-0.11260122060775757,
0.02418062835931778,
0.21219202876091003,
0.2201208472251892,
-0.2924022972583771,
-0.35763901472091675,
0.06522508710622787,
-0.07184817641973495,
-0.2754807770252228,
-0.02541361004114151,
-0.4953571856021881,
-0.043541617691516876,
0.21329358220100403,
-0.23658785223960876,
-0.2563287615776062,
0.3006643056869507,
-0.46029406785964966,
0.09321954846382141,
0.10016226023435593,
-0.1517435610294342,
-0.19467663764953613,
0.015449000522494316,
-0.11497993767261505,
0.032680585980415344,
-0.10640989243984222,
-0.0830247774720192,
-0.22904615104198456,
-0.05035019665956497,
-0.20784065127372742,
0.10736296325922012,
0.3044620454311371,
-0.23321379721164703,
0.03119916096329689,
0.2868989408016205,
0.08410923928022385,
0.29035863280296326,
0.17932286858558655,
0.0637756809592247,
0.04746067523956299,
-0.24890081584453583,
-0.26586902141571045,
0.21848216652870178,
-0.22683995962142944,
0.05570713430643082,
0.16689683496952057,
0.18458664417266846,
0.13275691866874695,
0.16188015043735504,
-0.17462733387947083,
0.14367355406284332,
0.07219407707452774,
0.19670167565345764,
-0.1225905492901802,
0.3850453495979309,
-0.08276383578777313,
-0.08097230643033981,
0.1123088151216507,
0.13002467155456543,
-0.1889132857322693,
0.03897326439619064,
-0.06638497859239578,
-0.23403193056583405,
-0.25639352202415466,
0.2696091830730438,
-0.35619020462036133,
-0.060792237520217896,
0.27925512194633484,
0.21201811730861664,
0.020238466560840607,
-0.23401309549808502,
0.06219067797064781,
0.16739550232887268,
0.1826191544532776,
-0.0876324325799942,
0.01103234477341175,
0.1152200773358345,
-0.4646114408969879,
-0.1591113954782486,
-0.061282433569431305,
-0.228327214717865,
0.04600515589118004,
0.043688513338565826,
-0.10333645343780518,
0.23294472694396973,
0.2196206897497177,
-0.41763991117477417,
0.466618150472641,
-0.0557003915309906,
-0.2844894826412201,
0.1762152463197708,
-0.40982162952423096,
-0.1283627599477768,
0.253982275724411,
0.2920836806297302,
0.01584664359688759,
0.060815609991550446,
-0.18891435861587524,
0.04749460145831108,
-0.2678336799144745,
0.08430343866348267,
-0.1926259845495224,
-0.19550201296806335,
0.21501578390598297,
0.3753178119659424,
0.13617680966854095,
0.03056967630982399,
-0.26079651713371277,
0.32980069518089294,
0.13716568052768707,
0.11569646745920181,
0.0639282688498497,
0.073893241584301,
0.08263798803091049,
-0.12567949295043945,
-0.05980546399950981,
-0.35237598419189453,
-0.009659111499786377,
-0.0628199502825737,
0.022481150925159454,
0.586246132850647,
-0.1157655268907547,
0.07938089966773987,
-0.5242353677749634,
0.05751296877861023,
-0.19330747425556183,
-0.2298802137374878,
0.281166136264801,
0.0269901305437088,
-0.014152353629469872,
0.013627171516418457,
-0.0615791454911232,
0.065211720764637,
0.14549632370471954,
-0.07240135222673416,
0.04161139950156212,
0.3239985406398773,
-0.09135106950998306,
-0.03206610679626465,
-0.2623671293258667,
0.16827857494354248,
-0.1592234969139099,
0.08039138466119766,
0.013685096055269241,
-0.06573599576950073,
-0.0942734032869339,
0.3048669993877411,
0.02658911794424057,
0.41256028413772583,
0.09972696751356125,
-0.17932793498039246,
-0.05071393400430679,
0.18276730179786682,
0.17582903802394867,
-0.06368052214384079,
-0.4727831184864044,
0.3695027232170105,
0.1659172624349594,
-0.11599398404359818,
-0.45074641704559326,
0.04157570004463196,
0.3527175784111023,
-0.0776420310139656,
-0.016558747738599777,
0.06608343124389648,
0.19459635019302368,
0.0312931053340435,
0.25537368655204773,
-0.08698420971632004,
-0.1292230784893036,
0.17579691112041473,
0.03128459304571152,
-0.045151613652706146,
0.21600142121315002,
-0.04622127115726471,
-0.5098838210105896,
-0.08332230150699615,
-0.014768620952963829,
0.07147927582263947,
0.11824455112218857,
0.18334710597991943,
0.008684035390615463,
-0.09584900736808777,
0.058093588799238205,
-0.17543131113052368,
0.10595773160457611,
-0.039046138525009155,
0.19650903344154358,
0.1355265974998474,
0.1393519788980484,
0.25434935092926025,
-0.07424773275852203,
-0.2974107265472412,
-0.008637288585305214,
0.40708592534065247,
-0.2759028375148773,
0.05175774544477463,
0.13124176859855652,
0.20819205045700073,
0.08420764654874802,
0.04756850376725197,
0.1124623566865921,
-0.2546222507953644,
0.1626371592283249,
-0.07504211366176605,
-0.13918115198612213,
0.03244690224528313,
0.031069356948137283,
0.5663166046142578,
0.4112122058868408,
-0.025245023891329765,
-0.16978813707828522,
-0.2683008313179016,
0.028991401195526123,
0.3364546597003937,
-0.0024282140657305717,
0.018708499148488045,
0.28366976976394653,
-0.11587817966938019,
0.17903552949428558,
0.29656922817230225,
-0.4561856985092163,
0.291107177734375,
-0.06613684445619583,
0.2712155878543854,
0.03918243572115898,
0.2816212773323059,
0.17628593742847443,
-0.28182387351989746,
0.06556975096464157,
-0.15872155129909515,
-0.09266719222068787,
0.16950291395187378,
-0.3423974812030792,
0.019122589379549026,
-0.14496423304080963,
-0.19828295707702637,
-0.3562931418418884,
-0.27556321024894714,
0.07852651178836823,
0.09175257384777069,
-0.16238373517990112,
-0.20880931615829468,
-0.054119907319545746,
-0.0850960910320282,
-0.12380357086658478,
0.12880612909793854,
-0.31296417117118835,
-0.3309931755065918,
0.3935856521129608,
-0.1310308277606964,
-0.2685290575027466,
-0.06418280303478241,
-0.1695374995470047,
-0.3457460105419159,
-0.11116758733987808,
-0.3652968406677246,
-0.013198143802583218,
-0.14715085923671722,
0.09515997767448425,
0.27742138504981995,
-0.1486586183309555,
0.26210570335388184,
0.11929834634065628,
-0.13476458191871643,
-0.04767464101314545,
0.08276993036270142,
0.030993662774562836,
0.16651514172554016,
0.2038298398256302,
-0.27725687623023987,
0.5772396326065063,
-0.11090521514415741,
0.645789623260498,
0.13919413089752197,
-0.34690070152282715,
-0.1066916435956955,
-0.27979782223701477,
-0.06648685038089752,
0.0801561176776886,
-0.16417168080806732,
-0.06687211245298386,
0.08237781375646591,
0.050505995750427246,
0.30299538373947144,
-0.03915029391646385,
0.09379643201828003,
-0.1707814484834671,
0.27722999453544617,
-0.2596689760684967,
-0.2189425528049469,
0.24866020679473877,
-0.07738371193408966,
0.2223086953163147,
-0.13514886796474457,
-0.008219346404075623,
-0.2821516692638397,
-0.20278707146644592,
0.041407518088817596,
0.07743074744939804,
0.061591923236846924,
-0.454815536737442,
-0.41178733110427856,
0.1722327172756195,
-0.36805427074432373,
0.027468957006931305,
-0.04777798056602478,
0.09653723984956741,
0.06974554061889648,
-0.270205020904541,
-0.15133598446846008,
0.18311330676078796,
0.30608898401260376,
-0.04015425592660904,
0.07056229561567307,
0.10635839402675629,
-0.2691259980201721,
-0.4976331889629364,
-0.04016922414302826,
-0.3463083803653717,
0.06274321675300598,
-0.2422575205564499,
0.32327738404273987,
-0.07749593257904053,
-0.08608788251876831,
0.2237055003643036,
0.07568267732858658,
-0.30407723784446716,
-0.06328185647726059,
0.25460970401763916,
0.16977283358573914,
0.05327991396188736,
0.31936031579971313,
-0.10068096965551376,
0.16070833802223206,
0.006216946989297867,
0.14210283756256104,
0.2710825800895691,
0.33682164549827576,
0.2204393744468689,
0.09465433657169342,
-0.021433550864458084,
0.17243456840515137,
0.13445736467838287,
-0.11060552299022675,
-0.4035152196884155,
-0.13020029664039612,
0.3550030291080475,
0.11064109206199646,
-0.051679372787475586,
0.20412421226501465,
-0.28469574451446533,
-0.24664348363876343,
0.2949172854423523,
-0.06735914945602417,
0.0015816986560821533,
-0.051082298159599304,
0.388677716255188,
-0.302145391702652,
0.12123124301433563,
0.03286487236618996,
-0.07530699670314789,
-0.1055668368935585,
-0.073652483522892,
0.1649688482284546,
-0.07076393067836761,
-0.1204695999622345,
0.05824339762330055,
-0.2299431413412094,
-0.22653642296791077,
0.41709375381469727,
0.02729160711169243,
0.9180843234062195,
0.1588847041130066,
0.2646689713001251,
0.6120909452438354,
0.38374513387680054,
0.29274216294288635,
-0.25764453411102295,
-0.1829780787229538,
-0.1113998144865036,
-0.30241858959198,
-0.044148463755846024,
-0.10133208334445953,
-0.03885582834482193,
0.17566975951194763,
-0.29903319478034973,
-0.020784998312592506,
0.10049805045127869,
0.2925541400909424,
0.09546519070863724,
0.22273728251457214,
0.43940162658691406,
-0.016757816076278687,
-0.09515026211738586,
0.2297506332397461,
0.013484515249729156,
0.10206817090511322,
-0.030342308804392815,
-0.13754217326641083,
-0.2509596645832062,
0.07639705389738083,
-0.4247038960456848,
-0.24933111667633057,
-0.0008695293217897415,
0.08302413672208786,
-0.38740214705467224,
-0.18855196237564087,
0.15951019525527954,
-0.11714065074920654,
0.04879200458526611,
0.0032111331820487976,
-0.23187780380249023,
0.1527423858642578,
-0.08102255314588547,
0.15943966805934906,
-0.038737449795007706,
0.035282865166664124,
0.14574317634105682,
-0.11493677645921707,
-0.15846991539001465,
0.16594335436820984,
-0.18762712180614471,
-0.2576705813407898,
-0.24252761900424957,
0.006402745842933655,
0.11592378467321396,
-0.37112540006637573,
-0.22439347207546234,
0.15154391527175903,
-0.3460824191570282,
-0.26508787274360657,
0.26769185066223145,
0.2012035995721817,
-0.11259525269269943,
0.4358907639980316,
0.14842304587364197,
-0.24949727952480316,
-0.23771466314792633,
0.0855928510427475,
0.13760873675346375,
-0.13480207324028015,
0.06545991450548172,
0.38413313031196594,
-0.3045511841773987,
-0.4374122619628906,
0.2527466118335724,
0.4044302701950073,
-0.8577779531478882,
0.07500384747982025,
-0.23027858138084412,
-0.34954309463500977,
0.302288681268692,
0.2324335128068924,
0.5821723937988281,
-0.0642123892903328,
0.12889453768730164,
-0.29606926441192627,
-0.27584439516067505,
0.24518966674804688,
0.36594951152801514,
0.17652489244937897,
-0.16221511363983154,
0.22152331471443176,
0.06894701719284058,
0.07738759368658066,
-0.5051261782646179,
-0.017044808715581894,
-0.13484537601470947,
0.2409021407365799,
-0.0692388191819191,
-0.10098513215780258,
0.26444727182388306,
-0.1394677609205246,
0.17351685464382172,
-0.2210373431444168,
-0.4282732307910919,
-0.29208609461784363,
0.07849456369876862,
0.07917923480272293,
-0.0966712236404419,
-0.09002511948347092,
0.03906925022602081,
-0.13331007957458496,
-0.11490289866924286,
0.0047133504413068295,
-0.18539218604564667,
0.07068228721618652,
-0.12310647964477539,
0.1725844442844391,
0.43317854404449463,
-0.009428828954696655,
-0.25631093978881836,
0.03486578166484833,
0.012468874454498291,
0.14042755961418152,
0.3763774335384369,
0.29831334948539734,
0.15301281213760376,
-0.0912477970123291,
-0.40858206152915955,
0.3154863715171814,
0.04932325333356857,
0.18196457624435425,
0.4722486734390259,
0.0007006488740444183,
0.1320038139820099,
0.43630868196487427,
0.26729801297187805,
0.1914713978767395,
-0.36056283116340637,
0.14844085276126862,
0.051404185593128204,
0.3158162236213684,
-0.29101061820983887,
0.22973400354385376,
0.09348313510417938,
0.0911703109741211,
0.2837601900100708,
0.054321035742759705,
0.09944292902946472,
-0.015175007283687592,
0.39763402938842773,
0.3738636076450348,
0.2876063883304596,
-0.13835446536540985,
0.2560533583164215,
0.508725643157959,
-0.0718119740486145,
-0.040060896426439285,
0.29329851269721985,
0.15838122367858887,
-0.1828034222126007,
0.0794060230255127,
0.19302088022232056,
0.39217856526374817,
0.2806340456008911,
-0.07820139825344086,
0.022970709949731827,
0.1404293328523636,
0.12037304043769836,
0.16155573725700378,
-0.2940007746219635,
-0.07345674186944962,
0.33196404576301575,
-0.14682725071907043,
0.06022059544920921,
0.04406633973121643,
-0.17354369163513184,
0.3970407545566559,
-0.016631130129098892,
0.06726722419261932,
0.1486693024635315,
-0.24112552404403687,
-0.14442864060401917,
-0.32094842195510864,
-0.06821347773075104,
-0.14457465708255768,
0.25325220823287964,
0.05300586670637131,
0.026326261460781097,
-0.051838524639606476,
-0.19271424412727356,
0.21578359603881836,
0.10324664413928986,
-0.1431058645248413,
-0.186760812997818,
0.4501001238822937,
-0.022012770175933838,
0.12676933407783508,
0.1065990999341011,
0.06741563230752945,
-0.08050979673862457,
-0.5018238425254822,
0.3228316903114319,
0.0310957133769989,
-0.35590264201164246,
0.0008984804153442383,
0.19389468431472778,
0.06073727458715439,
-0.05030893161892891,
0.253859281539917,
0.3139845132827759,
-0.31701621413230896,
-0.13335378468036652,
0.12254999577999115,
0.05895545333623886,
-0.11784842610359192,
0.2850998044013977,
0.22638320922851562,
-0.06885698437690735,
0.09348023682832718,
-0.027210593223571777,
-0.018223408609628677,
0.18491367995738983,
-0.09799039363861084,
-0.2569725513458252,
0.1523892879486084,
-0.017428727820515633,
0.1526007503271103,
-0.11353197693824768,
0.2848411798477173,
0.026765454560518265,
0.307066947221756,
-0.06753309071063995,
-0.18656736612319946,
-0.3699634075164795,
0.034381091594696045,
-0.014411237090826035,
-0.07118109613656998,
0.10368905961513519,
0.09091851860284805,
0.42336347699165344,
0.20958688855171204,
0.05429365485906601,
-0.3057801127433777,
-0.37239447236061096,
0.2889723479747772,
-0.3654797077178955,
0.16273854672908783,
0.19232170283794403,
0.3356638550758362,
0.0471663624048233,
-0.17401719093322754,
0.16474398970603943,
0.1991034746170044,
0.3092133700847626,
-0.31647735834121704,
-0.3092254400253296,
0.032110802829265594,
0.3078688383102417,
0.48140108585357666,
-0.11761510372161865,
0.30508744716644287,
-0.3046320080757141,
0.06583884358406067,
0.09092747420072556,
-0.28114721179008484,
-0.010755049996078014,
0.1252453327178955,
-0.018293295055627823,
0.19072990119457245,
-0.09642009437084198,
-0.31643515825271606,
0.013265044428408146,
-0.39592444896698,
-0.3050687909126282,
0.06990805268287659,
-0.6435173153877258,
0.22429928183555603,
0.09702151268720627,
0.1448085606098175,
-0.04515712335705757,
0.030755842104554176,
-0.10642525553703308,
-0.0031044157221913338,
0.1906980723142624,
-0.1681375801563263,
0.32477903366088867,
0.024895429611206055,
-0.34808236360549927,
0.015699278563261032,
-0.13168559968471527,
-0.09427907317876816,
0.22227995097637177,
-0.057358041405677795,
0.041456885635852814,
0.23941132426261902,
-0.027326583862304688,
0.062058862298727036,
0.21316762268543243,
0.17211848497390747,
0.057809535413980484,
-0.08655320852994919,
0.4142884314060211,
0.011291854083538055,
-0.10380308330059052,
-0.4493138790130615,
-0.4720080494880676
] |
https://github.com/huggingface/datasets/issues/4104 | Add time series data - stock market | Thankyou. This is how raw data looks like before cleaning for an individual stocks:
1. https://github.com/INF800/marktech/tree/raw-data/f/data/raw
2. https://github.com/INF800/marktech/tree/raw-data/t/data/raw
3. https://github.com/INF800/marktech/tree/raw-data/rdfn/data/raw
4. https://github.com/INF800/marktech/tree/raw-data/irbt/data/raw
5. https://github.com/INF800/marktech/tree/raw-data/hll/data/raw
6. https://github.com/INF800/marktech/tree/raw-data/infy/data/raw
7. https://github.com/INF800/marktech/tree/raw-data/reli/data/raw
8. https://github.com/INF800/marktech/tree/raw-data/hdbk/data/raw
> Scraping is automated using GitHub Actions. So, everyday we will see a new file added in the above links.
I can rewrite the cleaning scripts to make sure it fits HF dataset standards. (P.S I am very much new to HF dataset)
The data set above can be converted into univariate regression / multivariate regression / sequence to sequence generation dataset etc. So, do we have some kind of transformation modules that will read the dataset as some type of dataset (`GenericTimeData`) and convert it to other possible dataset relating to a specific ML task. **By having this kind of transformation module, I only have to add data once** and use transformation module whenever necessary
Additionally, having some kind of versioning for the dataset will be really helpful because it will keep on updating - especially time series datasets | ## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem
 | 170 | Add time series data - stock market
## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem

Thankyou. This is how raw data looks like before cleaning for an individual stocks:
1. https://github.com/INF800/marktech/tree/raw-data/f/data/raw
2. https://github.com/INF800/marktech/tree/raw-data/t/data/raw
3. https://github.com/INF800/marktech/tree/raw-data/rdfn/data/raw
4. https://github.com/INF800/marktech/tree/raw-data/irbt/data/raw
5. https://github.com/INF800/marktech/tree/raw-data/hll/data/raw
6. https://github.com/INF800/marktech/tree/raw-data/infy/data/raw
7. https://github.com/INF800/marktech/tree/raw-data/reli/data/raw
8. https://github.com/INF800/marktech/tree/raw-data/hdbk/data/raw
> Scraping is automated using GitHub Actions. So, everyday we will see a new file added in the above links.
I can rewrite the cleaning scripts to make sure it fits HF dataset standards. (P.S I am very much new to HF dataset)
The data set above can be converted into univariate regression / multivariate regression / sequence to sequence generation dataset etc. So, do we have some kind of transformation modules that will read the dataset as some type of dataset (`GenericTimeData`) and convert it to other possible dataset relating to a specific ML task. **By having this kind of transformation module, I only have to add data once** and use transformation module whenever necessary
Additionally, having some kind of versioning for the dataset will be really helpful because it will keep on updating - especially time series datasets | [
-0.36875858902931213,
0.04915213584899902,
-0.1846979707479477,
-0.15053865313529968,
0.16514107584953308,
-0.09947682917118073,
0.0917971134185791,
0.45980218052864075,
0.3224415183067322,
-0.08603222668170929,
-0.13898524641990662,
0.06327664107084274,
-0.14862580597400665,
0.16102534532546997,
-0.13915275037288666,
-0.16208504140377045,
-0.0475153848528862,
0.3720344007015228,
-0.2158554196357727,
-0.12268804013729095,
-0.05085669457912445,
-0.12199649214744568,
0.03041372448205948,
-0.02647615224123001,
-0.053083717823028564,
-0.0964127704501152,
0.20756790041923523,
0.09560202062129974,
0.018563704565167427,
-0.12019281089305878,
-0.03541696071624756,
0.21522343158721924,
0.15628032386302948,
0.9059637188911438,
-0.00010686158202588558,
0.11321711540222168,
-0.08211727440357208,
-0.22395698726177216,
-0.061101675033569336,
0.3196008801460266,
0.02886761724948883,
-0.16472679376602173,
0.09795219451189041,
-0.11173854023218155,
-0.3386968970298767,
-0.25515061616897583,
-0.3057284355163574,
-0.14855322241783142,
0.9588483572006226,
0.5799986124038696,
0.27588650584220886,
0.16440589725971222,
-0.178888738155365,
0.12890022993087769,
0.32505133748054504,
0.2282121777534485,
-0.13921771943569183,
-0.004120474681258202,
0.020135320723056793,
-0.09439175575971603,
-0.12969526648521423,
0.5486428737640381,
-0.009610990062355995,
0.014722059480845928,
0.0896085873246193,
-0.1487353891134262,
0.2971051335334778,
-0.07268668711185455,
-0.09122376888990402,
0.25977760553359985,
-0.02154252678155899,
-0.05147349089384079,
-0.3882937729358673,
-0.25721436738967896,
-0.17774702608585358,
-0.11252391338348389,
0.02789951115846634,
0.01981028914451599,
-0.04010336846113205,
0.23842597007751465,
0.0656903088092804,
0.05608049035072327,
-0.14317107200622559,
-0.04490534961223602,
-0.05919232591986656,
0.1084766685962677,
-0.030445192009210587,
0.045399732887744904,
-0.04179411754012108,
-0.12834998965263367,
-0.03796504810452461,
-0.24283263087272644,
0.0029145516455173492,
0.2836557626724243,
-0.2074122577905655,
-0.2299545705318451,
0.1724187135696411,
-0.26272448897361755,
-0.20548555254936218,
0.005187559872865677,
-0.3816903531551361,
0.15264934301376343,
0.2797701358795166,
-0.30485716462135315,
-0.17434494197368622,
0.23192790150642395,
-0.2847685217857361,
0.027882184833288193,
0.2522927522659302,
-0.008654290810227394,
-0.20913845300674438,
-0.05221967399120331,
0.20470459759235382,
0.03012283518910408,
-0.10389076173305511,
0.1018974557518959,
-0.08092661201953888,
-0.11150824278593063,
-0.3235504627227783,
0.1642601191997528,
0.22291269898414612,
-0.32390543818473816,
-0.01391380000859499,
0.4271700382232666,
0.15823139250278473,
0.21977266669273376,
0.1429200917482376,
-0.03403841704130173,
-0.19046203792095184,
0.04075255244970322,
-0.27599889039993286,
0.05721791461110115,
-0.1313876211643219,
0.04150580242276192,
0.07905006408691406,
0.1367723047733307,
0.06842638552188873,
0.10590698570013046,
-0.14055752754211426,
0.08268125355243683,
-0.005410369485616684,
-0.08379265666007996,
0.1269376128911972,
0.5053207278251648,
-0.10562111437320709,
-0.13704466819763184,
0.23134957253932953,
0.03690705448389053,
-0.2842998504638672,
-0.08911886066198349,
-0.3330657184123993,
-0.15625391900539398,
-0.15953722596168518,
0.27758562564849854,
-0.13885831832885742,
0.11455453932285309,
0.09907953441143036,
0.0214023906737566,
0.11905258148908615,
-0.08857207000255585,
-0.055282317101955414,
-0.0689007043838501,
0.12352705001831055,
-0.034362293779850006,
-0.19048863649368286,
0.25759008526802063,
-0.27960485219955444,
-0.12844419479370117,
0.12670868635177612,
-0.05510127916932106,
0.3057723343372345,
0.1344277709722519,
-0.14187417924404144,
0.3215257227420807,
0.06830564141273499,
-0.36126166582107544,
0.5293979644775391,
-0.1903398633003235,
-0.32230669260025024,
0.36854827404022217,
-0.23866011202335358,
0.19123993813991547,
0.46543824672698975,
-0.1370602250099182,
0.15223076939582825,
-0.03794825077056885,
-0.20015248656272888,
0.12581439316272736,
0.07110142707824707,
0.07651037722826004,
-0.38097164034843445,
-0.2026558220386505,
-0.028823934495449066,
0.14395049214363098,
0.14654028415679932,
0.000003419816493988037,
-0.12522464990615845,
0.028582870960235596,
0.37428754568099976,
-0.08564411103725433,
0.07516425848007202,
0.014272930100560188,
0.19595679640769958,
0.06987927854061127,
0.050685394555330276,
-0.22248083353042603,
-0.1959158182144165,
-0.10109446197748184,
-0.35624876618385315,
0.2822774648666382,
-0.14645877480506897,
-0.31866610050201416,
-0.4204008877277374,
-0.03551699221134186,
-0.3797004222869873,
-0.2605709731578827,
0.2961716651916504,
0.3272206783294678,
-0.0860493928194046,
-0.16896045207977295,
-0.09443778544664383,
0.18491749465465546,
-0.045083776116371155,
-0.021995224058628082,
0.14662890136241913,
0.4989100694656372,
-0.05759851634502411,
-0.0566004142165184,
-0.18810652196407318,
0.24682015180587769,
-0.07425368577241898,
-0.1196243166923523,
-0.025759834796190262,
0.07777819782495499,
0.022789746522903442,
0.16168539226055145,
0.11899677664041519,
0.23662069439888,
0.019466537982225418,
0.011085618287324905,
-0.11121650785207748,
0.35612308979034424,
0.19393429160118103,
-0.04384099692106247,
-0.3925735354423523,
0.47902899980545044,
0.12164190411567688,
0.06890986859798431,
-0.26620322465896606,
-0.22877272963523865,
0.45252278447151184,
-0.23131707310676575,
0.10049614310264587,
-0.19763611257076263,
0.06822195649147034,
0.18724408745765686,
0.19208860397338867,
0.005552731454372406,
-0.09003253281116486,
0.276156485080719,
0.28719362616539,
0.09949474036693573,
0.04881095886230469,
0.10343257337808609,
-0.20938614010810852,
-0.22020497918128967,
0.05891669541597366,
0.20514510571956635,
0.17134405672550201,
0.23843617737293243,
-0.13303029537200928,
-0.09770460426807404,
0.18981751799583435,
-0.19640856981277466,
0.0284145325422287,
-0.0016765296459197998,
0.20736968517303467,
0.306367427110672,
0.14689812064170837,
0.3417539894580841,
-0.29519525170326233,
-0.4997674226760864,
-0.008494706824421883,
0.39494383335113525,
-0.3579194247722626,
0.0438804030418396,
-0.13935215771198273,
0.07092756032943726,
-0.11034560948610306,
0.18064703047275543,
0.17593224346637726,
-0.3554619550704956,
0.1366117298603058,
0.00922420248389244,
-0.4175160527229309,
0.106407031416893,
-0.02404193952679634,
0.3901134729385376,
0.38425663113594055,
-0.0808417946100235,
-0.36799556016921997,
-0.06686513125896454,
-0.03082110732793808,
0.20712266862392426,
0.19999419152736664,
0.06271632760763168,
0.38022539019584656,
-0.17067953944206238,
0.0838114395737648,
0.1218821331858635,
-0.43531984090805054,
0.28227075934410095,
-0.022913124412298203,
0.1995295137166977,
-0.054549410939216614,
0.2851838767528534,
0.049762800335884094,
-0.32895228266716003,
-0.032883431762456894,
-0.0887254998087883,
-0.028972120955586433,
0.03832204267382622,
-0.272927850484848,
0.14414340257644653,
-0.08739912509918213,
-0.10135654360055923,
-0.25425955653190613,
-0.38810282945632935,
-0.041270069777965546,
-0.06140971556305885,
0.0909644365310669,
-0.04649515077471733,
-0.25893256068229675,
-0.1662004590034485,
-0.2541489601135254,
0.25486189126968384,
-0.3474288582801819,
-0.21176622807979584,
0.2317722737789154,
-0.16253046691417694,
-0.2607073187828064,
-0.008583404123783112,
-0.182267963886261,
-0.4086996912956238,
0.1288457214832306,
-0.4062499403953552,
-0.1527639478445053,
-0.028359150514006615,
0.021343205124139786,
0.18827351927757263,
-0.0682755708694458,
0.20373356342315674,
0.19887515902519226,
-0.1900465190410614,
-0.05461575463414192,
0.20490211248397827,
0.05116000398993492,
0.018050195649266243,
0.052159253507852554,
-0.14325687289237976,
0.6142835021018982,
-0.04334983229637146,
0.8280014395713806,
0.24488773941993713,
-0.1598462015390396,
0.09239693731069565,
-0.14397788047790527,
0.19251234829425812,
-0.05747891217470169,
-0.16948701441287994,
-0.2363920658826828,
0.13638538122177124,
0.07371468096971512,
0.3824231028556824,
-0.0929754301905632,
0.238638773560524,
0.0004861392080783844,
0.20206235349178314,
-0.2490830421447754,
-0.3810451924800873,
0.33640989661216736,
-0.005898438394069672,
0.16999194025993347,
0.07098688185214996,
0.06605126708745956,
-0.16052259504795074,
-0.22617202997207642,
0.11157000064849854,
0.327790766954422,
0.20025068521499634,
-0.22450953722000122,
-0.4912654459476471,
0.02787705324590206,
-0.4618462324142456,
0.13843220472335815,
0.02284599281847477,
0.2823895812034607,
0.15299749374389648,
-0.27980613708496094,
-0.08624720573425293,
-0.002423783764243126,
0.24900151789188385,
-0.019165439531207085,
0.23548108339309692,
0.03208515793085098,
-0.4421011507511139,
-0.14339925348758698,
-0.16366787254810333,
-0.2982197701931,
-0.049282051622867584,
-0.17084969580173492,
0.33824723958969116,
-0.3082065284252167,
-0.484102338552475,
0.22219780087471008,
-0.048719555139541626,
-0.3330483138561249,
0.03323400765657425,
0.1314837485551834,
0.01773993670940399,
-0.09198128432035446,
0.21432650089263916,
-0.10126372426748276,
0.20918339490890503,
-0.08465323597192764,
0.1482994556427002,
-0.07125142961740494,
0.037861019372940063,
0.4451199173927307,
0.07912065088748932,
0.06418312340974808,
0.2707297205924988,
-0.019845567643642426,
-0.12412557005882263,
-0.16522809863090515,
0.06842312216758728,
0.4224488437175751,
-0.25654104351997375,
-0.04694505035877228,
0.1006699949502945,
-0.4014377295970917,
-0.1745566427707672,
0.37877213954925537,
-0.07776789367198944,
0.056878712028265,
-0.06706380099058151,
0.5098515152931213,
-0.2876642346382141,
0.1891409009695053,
0.0264141745865345,
-0.01882264018058777,
-0.08004152774810791,
-0.21617594361305237,
0.318322092294693,
-0.10921499133110046,
-0.1789759397506714,
0.04511942341923714,
0.10872560739517212,
-0.3235733211040497,
0.6127347946166992,
0.07666134834289551,
0.8844426274299622,
0.19800996780395508,
0.22543635964393616,
0.5671077966690063,
0.12940408289432526,
0.0692821592092514,
-0.38626766204833984,
-0.10860280692577362,
-0.1320919692516327,
-0.21911074221134186,
-0.17760492861270905,
0.08798328042030334,
0.1138007715344429,
0.1513836532831192,
-0.006404805928468704,
0.2533368766307831,
0.17252464592456818,
0.41655611991882324,
0.021843116730451584,
0.3536854684352875,
0.2777472734451294,
-0.0742352157831192,
-0.26684966683387756,
0.13455407321453094,
0.06249431520700455,
0.2413160651922226,
-0.14239084720611572,
-0.1544414907693863,
-0.10392533987760544,
-0.04611879959702492,
-0.1139594092965126,
-0.21390202641487122,
0.11187733709812164,
0.03678501397371292,
-0.3134939968585968,
-0.3041159212589264,
-0.16817206144332886,
-0.4097274839878082,
-0.11724011600017548,
0.015012171119451523,
-0.07921559363603592,
0.03736663609743118,
0.06701613962650299,
0.23258626461029053,
-0.10417374968528748,
0.06385315954685211,
0.36875054240226746,
-0.142595112323761,
-0.08702859282493591,
0.1153424084186554,
-0.15740707516670227,
-0.39466947317123413,
0.024795517325401306,
0.044633883982896805,
0.1062295138835907,
-0.4213298559188843,
-0.15731693804264069,
0.12498733401298523,
-0.4441636800765991,
-0.27138084173202515,
0.21220332384109497,
-0.03696397691965103,
-0.19571352005004883,
0.3984442353248596,
0.09496666491031647,
-0.40951865911483765,
-0.3499343991279602,
0.05158800631761551,
0.37443795800209045,
-0.10291089862585068,
0.3442022204399109,
0.183036208152771,
-0.3734011650085449,
-0.43061283230781555,
0.047105103731155396,
0.5859800577163696,
-0.6654129028320312,
0.17004288733005524,
-0.35179856419563293,
-0.4379855990409851,
0.4042951464653015,
0.17091946303844452,
0.4105335474014282,
-0.10013740509748459,
-0.05149214714765549,
-0.5072699189186096,
-0.11020315438508987,
0.24598929286003113,
0.2856333255767822,
0.16354167461395264,
-0.011003220453858376,
0.4077412486076355,
-0.10786382108926773,
0.14136414229869843,
-0.46824774146080017,
0.024631891399621964,
0.018626505509018898,
0.21191446483135223,
-0.15957576036453247,
-0.026597000658512115,
0.21002645790576935,
0.0849371999502182,
0.13933603465557098,
-0.10347135365009308,
-0.4391120374202728,
-0.30918097496032715,
0.0813433974981308,
0.10225824266672134,
-0.15334683656692505,
0.017764383926987648,
0.0533035583794117,
-0.036893200129270554,
-0.1525232195854187,
-0.11789599061012268,
0.12530159950256348,
-0.085176020860672,
0.0007296279072761536,
0.10492441803216934,
0.5771554112434387,
-0.17899003624916077,
-0.13678720593452454,
0.07438956201076508,
-0.0897747129201889,
0.2815549373626709,
0.07458687573671341,
0.2543112337589264,
-0.22485743463039398,
-0.023157328367233276,
-0.337756872177124,
0.08214274048805237,
0.16995331645011902,
0.21806317567825317,
0.46377891302108765,
-0.0735573023557663,
-0.11061479151248932,
0.38661473989486694,
0.48873069882392883,
0.31422021985054016,
-0.34285393357276917,
-0.24647660553455353,
-0.051578737795352936,
0.23591116070747375,
-0.3174583911895752,
0.23212407529354095,
0.0832662433385849,
0.0405309684574604,
0.3886893093585968,
0.27331244945526123,
0.13307197391986847,
-0.09094753116369247,
0.4076882600784302,
0.4294602572917938,
0.3233102262020111,
-0.1977826952934265,
0.12625806033611298,
0.5870886445045471,
-0.04051721841096878,
0.07213877141475677,
0.44390010833740234,
0.08669435977935791,
-0.03729880601167679,
0.14073914289474487,
0.3868730962276459,
0.4960821866989136,
0.3548733592033386,
0.10636354982852936,
-0.19146382808685303,
-0.2861976623535156,
0.021211538463830948,
0.37016239762306213,
-0.05738227069377899,
0.18050414323806763,
0.41041305661201477,
-0.2116948664188385,
0.25739526748657227,
-0.11198260635137558,
-0.20344528555870056,
0.5818074941635132,
-0.05366484820842743,
0.02691156417131424,
0.09906239807605743,
-0.1980133056640625,
-0.1204005628824234,
-0.18511110544204712,
-0.07882851362228394,
0.06953836232423782,
0.14994210004806519,
0.0006889179348945618,
0.00020302832126617432,
0.15622763335704803,
-0.20310616493225098,
-0.10294539481401443,
0.2551312744617462,
-0.22219732403755188,
-0.07548464089632034,
0.47441232204437256,
0.13366562128067017,
0.1584867686033249,
0.1340416818857193,
0.05457753688097,
0.05800483375787735,
-0.3566475808620453,
-0.025088757276535034,
0.07318389415740967,
-0.338448166847229,
-0.0693388432264328,
0.3255195915699005,
-0.1736060380935669,
-0.08542405068874359,
0.31440845131874084,
0.28878021240234375,
-0.3402244746685028,
-0.19998833537101746,
0.0959237590432167,
0.03916485607624054,
-0.08460922539234161,
0.44397711753845215,
0.3999638557434082,
-0.04440625011920929,
0.24547581374645233,
-0.17981550097465515,
0.011433377861976624,
-0.051874954253435135,
0.06373404711484909,
-0.4341883957386017,
0.27439773082733154,
-0.050807151943445206,
0.12779058516025543,
-0.08564409613609314,
0.3687513768672943,
0.05512368306517601,
0.0960967093706131,
-0.1094571053981781,
-0.04919571802020073,
-0.488158255815506,
-0.1223597452044487,
-0.206985205411911,
-0.35192570090293884,
0.14072944223880768,
0.04111683368682861,
0.22448056936264038,
0.07413710653781891,
0.09830114245414734,
-0.42422911524772644,
-0.15088097751140594,
-0.036070309579372406,
-0.44753962755203247,
0.1904645413160324,
-0.17450349032878876,
0.31162527203559875,
0.03921175003051758,
-0.5734688639640808,
0.3533012270927429,
0.20902101695537567,
0.239709734916687,
-0.05366674065589905,
-0.2785494327545166,
0.29720962047576904,
-0.03363940119743347,
0.3630061149597168,
0.023280803114175797,
0.059165894985198975,
-0.3086419105529785,
0.02728402428328991,
0.04425836727023125,
-0.09769380837678909,
-0.1410406082868576,
0.14919185638427734,
0.000250011682510376,
0.4131544530391693,
-0.041254673153162,
-0.229648157954216,
-0.00644018966704607,
-0.09338982403278351,
-0.1834149956703186,
-0.016844367608428,
-0.5193406343460083,
0.2919548749923706,
-0.0567241795361042,
0.09965349733829498,
-0.0019970349967479706,
0.24258235096931458,
0.0809343159198761,
0.1299176663160324,
-0.10268726199865341,
-0.14880309998989105,
0.38106414675712585,
-0.12408272176980972,
-0.4150526225566864,
-0.07153493165969849,
0.15498726069927216,
-0.1404944360256195,
0.15623678267002106,
-0.21197938919067383,
0.010311879217624664,
0.2579759657382965,
0.05252104625105858,
0.002059847116470337,
0.19272106885910034,
0.16800037026405334,
-0.06567297130823135,
-0.030462007969617844,
0.32141250371932983,
0.04328576475381851,
-0.1924130618572235,
-0.4892825484275818,
-0.44656676054000854
] |
https://github.com/huggingface/datasets/issues/4104 | Add time series data - stock market | thanks @INF800 I'll have a look. I believe it should be possible to incorporate this into the time-series format. | ## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem
 | 19 | Add time series data - stock market
## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem

thanks @INF800 I'll have a look. I believe it should be possible to incorporate this into the time-series format. | [
-0.35378822684288025,
-0.1289306879043579,
-0.1909162402153015,
-0.05314543843269348,
0.27298063039779663,
-0.059987157583236694,
0.2987922430038452,
0.20147842168807983,
0.16080839931964874,
-0.11831048130989075,
0.03583080321550369,
0.3749178349971771,
-0.5095005631446838,
0.2756156921386719,
0.05085957795381546,
-0.2635550796985626,
-0.02485077828168869,
0.26342737674713135,
-0.2932980954647064,
0.13657189905643463,
0.12468214333057404,
-0.05096723139286041,
0.021924979984760284,
0.038053616881370544,
-0.11604774743318558,
0.08135297894477844,
0.11794261634349823,
0.03315883129835129,
-0.16226333379745483,
-0.07330354303121567,
-0.131577730178833,
-0.10471661388874054,
0.13380151987075806,
0.6926102638244629,
-0.00010141672100871801,
0.07411301136016846,
-0.022449396550655365,
-0.2324657291173935,
0.03199481591582298,
-0.0014792978763580322,
-0.08555597811937332,
-0.09852469712495804,
0.1278962939977646,
-0.17769023776054382,
-0.3861630856990814,
-0.17123591899871826,
-0.34028181433677673,
0.03731348365545273,
0.8299278616905212,
0.5095791816711426,
0.3096960783004761,
0.23183676600456238,
-0.022356640547513962,
-0.1171417161822319,
0.08987870067358017,
0.14953316748142242,
-0.12785540521144867,
-0.08664844930171967,
0.2862676978111267,
0.17488020658493042,
0.035437241196632385,
0.3630475401878357,
0.25462761521339417,
-0.23205266892910004,
0.08651813864707947,
-0.056103624403476715,
0.3454684317111969,
-0.09931176900863647,
-0.5105693340301514,
0.018330685794353485,
0.29363271594047546,
-0.15668851137161255,
-0.22554486989974976,
-0.018659263849258423,
0.03211135044693947,
0.14798083901405334,
-0.08005265146493912,
-0.11815385520458221,
-0.14254231750965118,
0.25539442896842957,
0.22673512995243073,
-0.028038758784532547,
-0.36001962423324585,
-0.021312981843948364,
-0.2164720594882965,
0.2095000445842743,
-0.00931741762906313,
0.02804027870297432,
-0.15796294808387756,
-0.13968399167060852,
-0.06919963657855988,
0.12127044796943665,
0.25752344727516174,
0.21330443024635315,
-0.20773528516292572,
-0.4189031720161438,
-0.035460881888866425,
-0.07098480314016342,
-0.33689141273498535,
-0.08660522103309631,
-0.4751351773738861,
0.006399946287274361,
0.18367759883403778,
-0.15778735280036926,
-0.12341068685054779,
0.2675740122795105,
-0.4527477025985718,
0.08145388960838318,
0.09243504703044891,
-0.22734539210796356,
-0.15523993968963623,
-0.08458240330219269,
-0.16925156116485596,
0.03293570503592491,
-0.14418266713619232,
0.004825415089726448,
-0.19353662431240082,
-0.029242943972349167,
-0.10835988074541092,
-0.07441634684801102,
0.3469814360141754,
-0.07131770998239517,
0.030036775395274162,
0.21031370759010315,
0.08039648830890656,
0.276787132024765,
0.2404009848833084,
0.00594710186123848,
0.2145226150751114,
-0.19934998452663422,
-0.20411403477191925,
0.2331978976726532,
-0.24390073120594025,
0.052260905504226685,
0.07998810708522797,
0.10994593799114227,
0.10826221108436584,
0.21462778747081757,
-0.03337326645851135,
0.19380417466163635,
-0.0780654102563858,
0.2338346242904663,
-0.13117006421089172,
0.20955349504947662,
-0.07802729308605194,
-0.16499210894107819,
0.05679234117269516,
0.13784581422805786,
-0.18038643896579742,
0.08879588544368744,
-0.15477928519248962,
-0.1167735606431961,
-0.2693830132484436,
0.24022121727466583,
-0.22999955713748932,
-0.03103683888912201,
0.3552391231060028,
0.2057722955942154,
0.0509737953543663,
-0.308747798204422,
-0.005312234163284302,
0.09385080635547638,
0.1207856684923172,
-0.018172085285186768,
-0.022797029465436935,
-0.006085127592086792,
-0.44122442603111267,
-0.21918611228466034,
0.00133955804631114,
-0.20776687562465668,
-0.019775189459323883,
0.07289187610149384,
-0.1598552167415619,
0.17081668972969055,
0.19850382208824158,
-0.24586786329746246,
0.5080289840698242,
-0.07456553727388382,
-0.12009115517139435,
0.16360677778720856,
-0.4406489133834839,
-0.13052800297737122,
0.19835710525512695,
0.3056577742099762,
0.10076447576284409,
0.038650766015052795,
-0.24511200189590454,
0.06246842071413994,
-0.23285293579101562,
0.07761522382497787,
-0.16862621903419495,
-0.17994028329849243,
0.2425255924463272,
0.3321511149406433,
0.15625108778476715,
0.11434943228960037,
-0.2677158713340759,
0.35873234272003174,
0.16703924536705017,
0.0341908223927021,
0.12717032432556152,
-0.024035565555095673,
0.05946936458349228,
-0.051963284611701965,
0.027879036962985992,
-0.42122435569763184,
0.03174489736557007,
-0.20118916034698486,
-0.07710792124271393,
0.5141061544418335,
-0.04536229372024536,
-0.056787628680467606,
-0.5811508893966675,
-0.019557233899831772,
-0.14166125655174255,
-0.056989628821611404,
0.30502158403396606,
-0.012354381382465363,
-0.07066217809915543,
-0.0066985152661800385,
0.0013453289866447449,
0.031021494418382645,
0.229187473654747,
-0.06028540059924126,
0.040845710784196854,
0.3118784427642822,
-0.11581753939390182,
-0.039280690252780914,
-0.19190141558647156,
0.2114376425743103,
-0.055122412741184235,
0.11614063382148743,
0.15535330772399902,
-0.0436493456363678,
-0.14783893525600433,
0.3353523015975952,
-0.09108401089906693,
0.31282782554626465,
0.0681019052863121,
-0.054974451661109924,
-0.02668251283466816,
0.18667174875736237,
0.18883666396141052,
-0.056016962975263596,
-0.3448091745376587,
0.46761536598205566,
0.2190314680337906,
-0.07597612589597702,
-0.36231744289398193,
0.0681484043598175,
0.32883644104003906,
-0.13859421014785767,
-0.07971221953630447,
-0.03919898718595505,
-0.037835586816072464,
-0.11920572817325592,
0.12285581231117249,
-0.23742039501667023,
-0.15065158903598785,
0.2452532947063446,
0.06639952212572098,
0.12379533052444458,
0.1229853555560112,
0.013140302151441574,
-0.5543516278266907,
-0.016255076974630356,
-0.009484617039561272,
0.02394799515604973,
0.08952389657497406,
0.20126798748970032,
-0.038626205176115036,
0.03152045980095863,
0.03879699110984802,
-0.09607499837875366,
0.12569653987884521,
-0.07987917959690094,
0.19031943380832672,
0.26879799365997314,
0.06333787739276886,
0.23257651925086975,
-0.031116191297769547,
-0.3048379421234131,
-0.07341558486223221,
0.21456418931484222,
-0.28319674730300903,
0.1328895539045334,
0.045069098472595215,
0.1253669559955597,
0.031004153192043304,
-0.034034114331007004,
0.25817784667015076,
-0.2554960250854492,
0.17128722369670868,
-0.05253354832530022,
-0.13528141379356384,
0.011155439540743828,
0.15571464598178864,
0.4743903875350952,
0.36462560296058655,
0.1394118070602417,
-0.2189399152994156,
-0.2662118673324585,
0.1602720022201538,
0.35704317688941956,
0.01843523606657982,
0.049119919538497925,
0.1609632521867752,
-0.05673625320196152,
0.1336652785539627,
0.2444687932729721,
-0.40816929936408997,
0.35608112812042236,
0.028331516310572624,
0.14836955070495605,
-0.017998680472373962,
0.18785390257835388,
0.14182649552822113,
-0.26124975085258484,
0.08133121579885483,
-0.09756043553352356,
-0.11898255348205566,
0.06575551629066467,
-0.2422483265399933,
0.13368406891822815,
-0.2898724675178528,
-0.09124449640512466,
-0.3978186249732971,
-0.23569965362548828,
0.0125516876578331,
0.10395167768001556,
-0.17835213243961334,
-0.21908701956272125,
-0.09176414459943771,
-0.16913731396198273,
-0.15051090717315674,
0.05950450897216797,
-0.37671253085136414,
-0.15518724918365479,
0.4534967541694641,
-0.3104815185070038,
-0.2329714447259903,
-0.07084222137928009,
-0.09232860803604126,
-0.3059476613998413,
-0.11510760337114334,
-0.15126991271972656,
-0.012272265739738941,
0.08469592034816742,
-0.11646932363510132,
0.14220529794692993,
-0.09136009216308594,
0.30382367968559265,
0.22680778801441193,
-0.16072198748588562,
-0.01817157492041588,
0.25470423698425293,
0.1084221750497818,
0.15219521522521973,
0.1555592119693756,
-0.2700415849685669,
0.5879601240158081,
-0.12717832624912262,
0.554211437702179,
0.04941900447010994,
-0.3048037588596344,
-0.13521873950958252,
-0.25043630599975586,
-0.029781777411699295,
0.12365064769983292,
-0.008543815463781357,
-0.21257437765598297,
0.02559453248977661,
0.07143676280975342,
0.3307955265045166,
-0.03303522989153862,
0.13539382815361023,
-0.1651359498500824,
0.21889623999595642,
-0.21894773840904236,
-0.17733542621135712,
0.2645217180252075,
-0.0772152915596962,
0.2328188717365265,
-0.051675233989953995,
-0.1437336653470993,
-0.21867288649082184,
-0.11422478407621384,
0.14470726251602173,
0.0841396227478981,
0.13892441987991333,
-0.3754769265651703,
-0.2627335488796234,
0.08207572251558304,
-0.3189515173435211,
-0.05024470388889313,
0.02328667603433132,
-0.03547534719109535,
0.1862681806087494,
-0.25238004326820374,
-0.23114706575870514,
0.09836375713348389,
0.2097996324300766,
-0.010482141748070717,
0.039391208440065384,
0.10723511874675751,
-0.39122384786605835,
-0.4698735177516937,
-0.06543722748756409,
-0.32100725173950195,
-0.03445662930607796,
-0.26512956619262695,
0.426321804523468,
-0.12752322852611542,
-0.015363255515694618,
0.15865816175937653,
0.0401180163025856,
-0.34343475103378296,
-0.12394624203443527,
0.3731984794139862,
0.23442336916923523,
0.007910476997494698,
0.134468674659729,
-0.07489431649446487,
0.08975299447774887,
-0.0004024642985314131,
0.06323850154876709,
0.12332576513290405,
0.24733424186706543,
0.15040066838264465,
0.08407822251319885,
0.10432983189821243,
0.09925511479377747,
-0.0011027883738279343,
-0.1698596328496933,
-0.3399406373500824,
-0.18066604435443878,
0.24491752684116364,
0.2532881498336792,
-0.040521711111068726,
0.06470473110675812,
-0.33697080612182617,
-0.21904563903808594,
0.23362785577774048,
-0.10104559361934662,
0.009159237146377563,
-0.01977870985865593,
0.35322409868240356,
-0.3070964217185974,
0.0818079262971878,
-0.05973910540342331,
-0.08773309737443924,
0.030177436769008636,
0.049596838653087616,
0.14683780074119568,
-0.09361772239208221,
-0.1333703100681305,
-0.013970263302326202,
-0.22254009544849396,
-0.3368168771266937,
0.4552668333053589,
-0.07028710097074509,
0.8340144753456116,
0.2323215752840042,
0.20872431993484497,
0.589216947555542,
0.34275299310684204,
0.2595162093639374,
-0.2174222618341446,
-0.18121352791786194,
-0.15785177052021027,
-0.2435954362154007,
-0.048856206238269806,
-0.008370880037546158,
-0.10173768550157547,
0.24830947816371918,
-0.4551854431629181,
-0.014329532161355019,
-0.007213130593299866,
0.3100670874118805,
0.05532190203666687,
0.2124948501586914,
0.5175172686576843,
-0.026511434465646744,
-0.1617961823940277,
0.2169431447982788,
0.014541860669851303,
-0.10880295932292938,
-0.07097014784812927,
-0.2517821788787842,
-0.19480009377002716,
0.14866003394126892,
-0.2358173131942749,
-0.2365068793296814,
0.03593306243419647,
0.044407643377780914,
-0.4715959131717682,
-0.16172650456428528,
0.1698840856552124,
-0.16970504820346832,
0.0656786635518074,
-0.09003500640392303,
-0.22994089126586914,
0.06641186773777008,
-0.046625904738903046,
0.20514634251594543,
-0.08815678209066391,
0.09005740284919739,
0.12503105401992798,
-0.15334078669548035,
-0.06623007357120514,
0.21064090728759766,
-0.1611643135547638,
-0.330413818359375,
-0.06037255376577377,
0.025039490312337875,
0.06115664914250374,
-0.29706260561943054,
-0.2462468445301056,
0.23116520047187805,
-0.2996366620063782,
-0.2747017443180084,
0.2829088568687439,
0.167247474193573,
-0.1932814121246338,
0.4758046269416809,
0.16780342161655426,
-0.09449652582406998,
-0.2878991961479187,
0.0999060645699501,
0.18883416056632996,
-0.1250808835029602,
-0.001288045197725296,
0.3190907835960388,
-0.33750951290130615,
-0.35948339104652405,
0.17124244570732117,
0.36537444591522217,
-0.7612687349319458,
0.07641352713108063,
-0.0981539711356163,
-0.35197582840919495,
0.1307746022939682,
0.23013180494308472,
0.4857414960861206,
0.03424612060189247,
-0.0586690828204155,
-0.3083190619945526,
-0.2039581835269928,
0.24270179867744446,
0.3928862512111664,
0.10783389210700989,
-0.08951260894536972,
0.2771511375904083,
-0.09633498638868332,
0.04527121037244797,
-0.5221131443977356,
-0.15019738674163818,
-0.0013348311185836792,
0.31859198212623596,
-0.10419633984565735,
-0.047834232449531555,
0.19055142998695374,
-0.04666484519839287,
0.1721125990152359,
-0.06415236741304398,
-0.29292991757392883,
-0.3219384253025055,
0.14758683741092682,
0.057624995708465576,
-0.0193636454641819,
-0.015138369053602219,
0.007862333208322525,
-0.03844192624092102,
-0.10602535307407379,
0.0743531733751297,
-0.1372791826725006,
0.10730919986963272,
-0.06465539336204529,
0.198605477809906,
0.3776082694530487,
-0.05242953449487686,
-0.15134190022945404,
-0.03655318170785904,
0.08660100400447845,
0.20025339722633362,
0.26956284046173096,
0.3139360547065735,
0.04608255997300148,
-0.023470189422369003,
-0.3773837387561798,
0.323573499917984,
0.03364434465765953,
0.1884288489818573,
0.5078619122505188,
0.11301642656326294,
0.08825762569904327,
0.46321138739585876,
0.3529067039489746,
0.19831658899784088,
-0.3533697724342346,
0.18496166169643402,
0.049720197916030884,
0.3223680257797241,
-0.2935310900211334,
0.24750734865665436,
0.03934580087661743,
-0.026639796793460846,
0.3311939537525177,
0.10082355886697769,
0.09693865478038788,
-0.0751340389251709,
0.5176712870597839,
0.3674335181713104,
0.1726706624031067,
-0.1600029170513153,
0.2247229516506195,
0.4235707223415375,
-0.004384681582450867,
0.06957192718982697,
0.29413580894470215,
0.19268356263637543,
-0.1465485692024231,
0.10061268508434296,
0.10114205628633499,
0.3112201392650604,
0.3111071288585663,
-0.11007541418075562,
0.09865623712539673,
0.2869803309440613,
0.07998304814100266,
0.09646807610988617,
-0.18152901530265808,
-0.0023232698440551758,
0.41213709115982056,
-0.23600894212722778,
0.1176949292421341,
-0.01835023984313011,
-0.11430376023054123,
0.4727764427661896,
-0.12140556424856186,
0.1776270866394043,
0.12265937030315399,
-0.19472433626651764,
-0.10438406467437744,
-0.28980132937431335,
-0.0584733746945858,
-0.01986335963010788,
0.17756029963493347,
0.05913972854614258,
0.09212923794984818,
0.13527843356132507,
-0.20917978882789612,
0.15701940655708313,
0.11318141967058182,
-0.2600877583026886,
-0.30731266736984253,
0.42838090658187866,
0.0825020894408226,
0.140495166182518,
0.2160130739212036,
-0.009946685284376144,
-0.08351511508226395,
-0.4476327896118164,
0.30488264560699463,
0.04891490563750267,
-0.35783034563064575,
0.03680663928389549,
0.09037673473358154,
0.17469431459903717,
-0.09381468594074249,
0.26857247948646545,
0.32025620341300964,
-0.3589436709880829,
-0.09526073932647705,
0.10922691971063614,
0.07687067985534668,
-0.08726809918880463,
0.25305795669555664,
0.37823525071144104,
-0.1071203351020813,
0.11506009846925735,
-0.13677889108657837,
-0.006610739976167679,
0.19944192469120026,
-0.12472221255302429,
-0.2873260974884033,
0.1555173099040985,
0.007192435674369335,
0.1767456829547882,
-0.03746148198843002,
0.20289216935634613,
-0.04389858618378639,
0.22478774189949036,
0.023388884961605072,
-0.21939115226268768,
-0.28560715913772583,
0.04269138723611832,
0.17503415048122406,
-0.15742091834545135,
0.08233135938644409,
0.013843199238181114,
0.3808342218399048,
0.3079151511192322,
0.06360740214586258,
-0.37017902731895447,
-0.36063429713249207,
0.1628057062625885,
-0.37648558616638184,
0.21303245425224304,
0.16612812876701355,
0.34722912311553955,
0.1751284897327423,
-0.15422019362449646,
0.2073376178741455,
0.10897035151720047,
0.35822945833206177,
-0.24104805290699005,
-0.3073362410068512,
-0.15194819867610931,
0.2742592692375183,
0.49601054191589355,
-0.2331523299217224,
0.18464291095733643,
-0.3527047634124756,
0.12524986267089844,
0.21596282720565796,
-0.27215734124183655,
-0.157367542386055,
0.15833395719528198,
0.03122330829501152,
0.19660663604736328,
-0.09620543569326401,
-0.39338234066963196,
0.007635371293872595,
-0.45523443818092346,
-0.3063013553619385,
0.012063826434314251,
-0.6103883385658264,
0.27343320846557617,
0.06364500522613525,
0.1539076417684555,
-0.14392195641994476,
0.02420254796743393,
-0.11764191091060638,
-0.04957552254199982,
0.12963713705539703,
-0.22394827008247375,
0.24384744465351105,
0.09383571147918701,
-0.4365919828414917,
0.08649247139692307,
-0.19022142887115479,
-0.20513474941253662,
0.13971705734729767,
0.034440264105796814,
0.026177234947681427,
0.1932646781206131,
0.08264036476612091,
0.19538652896881104,
0.14068691432476044,
0.13487933576107025,
0.022463764995336533,
-0.1449311375617981,
0.31776726245880127,
0.14144332706928253,
-0.07955815643072128,
-0.6259653568267822,
-0.5308806300163269
] |
https://github.com/huggingface/datasets/issues/4104 | Add time series data - stock market | @INF800 yes I am aware of the review repository and paper which is more or less a collection of abstracts etc. I am working on a unified library of implementations of these papers together with datasets to be then able to compare/contrast and build upon the research etc. but I am not ready to share them publicly just yet.
In any case regarding your dataset at the moment its seems from looking at the csv files, its mixture of textual and numerical data, sometimes in the same column etc. As you know, for time series models we would need just numeric data so I would need your help in disambiguating the dataset you have collected and also perhaps starting with just numerical data to start with...
Do you think you can make a version with just numerical data? | ## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem
 | 138 | Add time series data - stock market
## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem

@INF800 yes I am aware of the review repository and paper which is more or less a collection of abstracts etc. I am working on a unified library of implementations of these papers together with datasets to be then able to compare/contrast and build upon the research etc. but I am not ready to share them publicly just yet.
In any case regarding your dataset at the moment its seems from looking at the csv files, its mixture of textual and numerical data, sometimes in the same column etc. As you know, for time series models we would need just numeric data so I would need your help in disambiguating the dataset you have collected and also perhaps starting with just numerical data to start with...
Do you think you can make a version with just numerical data? | [
-0.26833009719848633,
-0.11275579035282135,
-0.1953907012939453,
0.022913262248039246,
0.1751267910003662,
-0.12447376549243927,
0.20423844456672668,
0.2058556228876114,
0.15866002440452576,
-0.132166787981987,
0.09277062118053436,
0.15531007945537567,
-0.3484843969345093,
0.13204877078533173,
0.007181219290941954,
-0.08133770525455475,
0.005814887583255768,
0.2504153847694397,
-0.2737148106098175,
0.008219830691814423,
0.1107632964849472,
0.0387885682284832,
-0.004082150757312775,
0.07434852421283722,
-0.04858866333961487,
-0.1470371037721634,
0.014886656776070595,
0.17079128324985504,
-0.317291796207428,
-0.11600179225206375,
-0.07730283588171005,
-0.032164815813302994,
0.16724836826324463,
0.8926330208778381,
-0.00009803699504118413,
-0.023563195019960403,
-0.10458730161190033,
-0.271059513092041,
0.14020854234695435,
-0.08597064018249512,
-0.030387841165065765,
-0.19107569754123688,
0.16220954060554504,
-0.24702498316764832,
-0.3574157953262329,
-0.1255580186843872,
-0.3912352919578552,
0.08114349842071533,
0.8513071537017822,
0.5171158909797668,
0.3395286202430725,
0.0772835984826088,
-0.028494995087385178,
-0.11210866272449493,
0.085205078125,
0.06386695802211761,
-0.17638657987117767,
0.11375100910663605,
0.33736011385917664,
0.15516574680805206,
-0.11290115863084793,
0.31223100423812866,
0.06126454472541809,
-0.09965294599533081,
0.17503264546394348,
0.03862931951880455,
0.27920204401016235,
-0.30916592478752136,
-0.30539533495903015,
0.14771820604801178,
0.3301019072532654,
-0.06579399108886719,
-0.15499460697174072,
-0.05655885115265846,
-0.055632203817367554,
0.022636407986283302,
0.04722479358315468,
0.04291369020938873,
-0.1858525425195694,
0.2015976905822754,
0.08079108595848083,
0.03044574335217476,
-0.329713374376297,
-0.033082060515880585,
-0.2652088403701782,
0.048877015709877014,
-0.15415728092193604,
0.035733215510845184,
0.012632567435503006,
-0.20078621804714203,
-0.04858226329088211,
0.028571756556630135,
0.27084580063819885,
0.22109223902225494,
-0.2535240948200226,
-0.3402807116508484,
-0.030993863940238953,
-0.1204502210021019,
-0.2002023160457611,
-0.10705560445785522,
-0.19571754336357117,
-0.07543233782052994,
0.1567171812057495,
-0.19230356812477112,
-0.17231646180152893,
0.2955521047115326,
-0.25933369994163513,
-0.05649654194712639,
0.09677612781524658,
-0.08103291690349579,
-0.17669972777366638,
-0.031561411917209625,
-0.0667341873049736,
-0.05598296970129013,
-0.09073609113693237,
0.02508564665913582,
-0.15032804012298584,
-0.17843084037303925,
-0.14827805757522583,
0.08094512671232224,
0.3349510431289673,
-0.10195799916982651,
0.049668848514556885,
0.2656714916229248,
0.021698929369449615,
0.1761457920074463,
0.14286670088768005,
0.08497161418199539,
0.03209853917360306,
-0.22697098553180695,
-0.1876743733882904,
0.26101386547088623,
-0.33387845754623413,
0.04106554761528969,
0.17567679286003113,
0.09586983919143677,
0.09888382256031036,
0.26541581749916077,
-0.08846193552017212,
0.11595746874809265,
-0.035845763981342316,
0.06185345724225044,
-0.011362887918949127,
0.18727093935012817,
-0.04833372309803963,
-0.0344504751265049,
0.1035851538181305,
0.027978412806987762,
-0.19870546460151672,
-0.024912305176258087,
-0.14293137192726135,
-0.06232732534408569,
-0.15617676079273224,
0.29596349596977234,
-0.27143698930740356,
-0.04963020980358124,
0.3560963273048401,
0.2639116048812866,
0.02222573757171631,
-0.20725448429584503,
0.03912877291440964,
0.18702873587608337,
0.20716360211372375,
-0.17286083102226257,
-0.03487832844257355,
0.10873760282993317,
-0.5360892415046692,
0.0630326122045517,
-0.10070838779211044,
-0.14371295273303986,
0.08614926040172577,
0.18009933829307556,
-0.20044741034507751,
0.10420423746109009,
0.24961340427398682,
-0.16932424902915955,
0.41977524757385254,
-0.032694682478904724,
-0.1821703016757965,
0.26804685592651367,
-0.23926331102848053,
-0.19471095502376556,
0.2829901874065399,
0.22919616103172302,
0.15896651148796082,
-0.06171434372663498,
-0.22643664479255676,
-0.06848976761102676,
-0.16387690603733063,
-0.038027793169021606,
-0.2134391814470291,
-0.3151804208755493,
0.15612831711769104,
0.17159292101860046,
0.10818713903427124,
-0.00003310292959213257,
-0.24718573689460754,
-0.012123064137995243,
0.12723200023174286,
-0.09206092357635498,
0.029200876131653786,
0.18966004252433777,
0.2259661704301834,
-0.00713416188955307,
-0.09157222509384155,
-0.3447733521461487,
-0.09391168504953384,
-0.09034460783004761,
-0.11264532804489136,
0.4841896891593933,
-0.07783587276935577,
-0.0955711156129837,
-0.544762909412384,
-0.0937732607126236,
-0.05578656867146492,
-0.13459789752960205,
0.3595128655433655,
-0.06434780359268188,
-0.03050851635634899,
-0.09760066866874695,
-0.04829901084303856,
0.11657968163490295,
0.020641738548874855,
-0.07424401491880417,
-0.10418644547462463,
0.30778536200523376,
-0.19352255761623383,
-0.01499092299491167,
0.015716958791017532,
0.16910414397716522,
-0.03861001878976822,
0.017481913790106773,
0.10759805887937546,
0.08178666234016418,
-0.07474663853645325,
0.20415076613426208,
0.11623679846525192,
0.40479418635368347,
0.08514337241649628,
-0.037982575595378876,
0.07355756312608719,
0.17812278866767883,
0.29228800535202026,
0.04253626614809036,
-0.3936770558357239,
0.37894266843795776,
0.095491923391819,
-0.09605667740106583,
-0.25162190198898315,
-0.052639588713645935,
0.36394450068473816,
-0.1319432556629181,
-0.12071376293897629,
-0.0019426792860031128,
0.09243935346603394,
-0.10547517240047455,
0.11323758959770203,
-0.00989331491291523,
-0.24931268393993378,
0.12250614911317825,
0.13547265529632568,
-0.02426755428314209,
0.1966896951198578,
0.06717239320278168,
-0.4478103518486023,
-0.12306591868400574,
-0.05662509799003601,
0.1281573325395584,
0.08218899369239807,
0.1775168925523758,
-0.042024608701467514,
-0.09827959537506104,
0.019280824810266495,
-0.06074376404285431,
0.20321236550807953,
-0.06085267663002014,
0.19401581585407257,
0.17859400808811188,
-0.06078041344881058,
0.28957629203796387,
-0.09901131689548492,
-0.23293934762477875,
-0.1330839991569519,
0.31578531861305237,
-0.30874258279800415,
0.06035207211971283,
0.0013095252215862274,
0.1824449896812439,
-0.1213545948266983,
0.028025832027196884,
0.0018088463693857193,
-0.2102038413286209,
0.08862586319446564,
-0.12303747236728668,
-0.03965294733643532,
-0.042423710227012634,
0.0690440833568573,
0.4808698296546936,
0.31337279081344604,
0.10353702306747437,
-0.10445116460323334,
-0.3812325596809387,
-0.019958369433879852,
0.35575243830680847,
0.10779699683189392,
0.13909700512886047,
0.314863383769989,
-0.11634009331464767,
0.12435241043567657,
0.2116221785545349,
-0.4236539900302887,
0.3172253668308258,
-0.16094541549682617,
0.2877098023891449,
0.0028250738978385925,
0.34288185834884644,
0.051186420023441315,
-0.27291667461395264,
0.06128751486539841,
-0.15507234632968903,
-0.10485370457172394,
0.16414496302604675,
-0.2552536427974701,
-0.11366811394691467,
-0.12626159191131592,
-0.37738123536109924,
-0.44294577836990356,
-0.2403845638036728,
-0.04763802886009216,
0.12609326839447021,
-0.11557391285896301,
-0.11342725902795792,
0.0941186472773552,
-0.08996731042861938,
-0.024607399478554726,
0.19757962226867676,
-0.3847142457962036,
-0.1298404186964035,
0.4295492470264435,
-0.17355327308177948,
-0.31500598788261414,
0.03561354801058769,
-0.09191181510686874,
-0.2466239035129547,
-0.0464443564414978,
-0.21969951689243317,
-0.05993621423840523,
-0.03286947309970856,
-0.002682991325855255,
0.3434702157974243,
-0.10946613550186157,
0.3534092307090759,
0.15245307981967926,
-0.17816926538944244,
-0.024882184341549873,
0.02673448622226715,
0.09089703112840652,
0.2008015215396881,
0.23618337512016296,
-0.1668364703655243,
0.5854987502098083,
-0.21728599071502686,
0.7094691395759583,
0.0947033166885376,
-0.46969935297966003,
-0.22662001848220825,
-0.17106947302818298,
-0.06243972107768059,
0.1358417421579361,
-0.20905190706253052,
-0.10964076220989227,
-0.05930916965007782,
-0.08310838043689728,
0.3853815197944641,
-0.11645082384347916,
0.09889612346887589,
-0.24249204993247986,
0.2871831953525543,
-0.5379108786582947,
-0.29114434123039246,
0.3394182026386261,
0.08292118459939957,
0.25109046697616577,
-0.072853222489357,
-0.15134763717651367,
-0.24368150532245636,
-0.1553431749343872,
0.03158111125230789,
0.13396409153938293,
-0.029986180365085602,
-0.35109519958496094,
-0.301575243473053,
0.12899531424045563,
-0.3012230396270752,
0.10588357597589493,
-0.06209883093833923,
0.055377259850502014,
0.1366349458694458,
-0.2219465970993042,
-0.04816776514053345,
-0.015476549044251442,
0.22103175520896912,
-0.06932762265205383,
-0.03486570715904236,
0.046965282410383224,
-0.24424409866333008,
-0.41368475556373596,
0.00945180281996727,
-0.3527670204639435,
0.006345466244965792,
-0.08048668503761292,
0.31116706132888794,
-0.24242538213729858,
-0.18651656806468964,
0.11324242502450943,
0.0985562801361084,
-0.3048529028892517,
-0.03772125765681267,
0.2499941736459732,
0.1545720398426056,
0.04942471534013748,
0.10151876509189606,
-0.17352861166000366,
-0.009153901599347591,
-0.09634318202733994,
0.1617429405450821,
0.25248658657073975,
0.23788532614707947,
0.3660404682159424,
0.1934901624917984,
0.07546471059322357,
-0.04330793023109436,
0.0809197872877121,
-0.0767393559217453,
-0.14047648012638092,
-0.11494229733943939,
0.3158867657184601,
0.1292268931865692,
-0.004799380898475647,
0.126214861869812,
-0.45428466796875,
-0.3276093006134033,
0.27969813346862793,
-0.11857421696186066,
0.006412006914615631,
0.019684378057718277,
0.27678751945495605,
-0.31313762068748474,
0.022394368425011635,
0.1218082383275032,
0.016911126673221588,
-0.05727919191122055,
-0.07239485532045364,
0.25286248326301575,
-0.015562817454338074,
-0.2958647608757019,
-0.05285719037055969,
-0.1651437133550644,
-0.27017784118652344,
0.455411434173584,
0.15687596797943115,
0.8935379385948181,
0.14998102188110352,
0.17317914962768555,
0.6203851103782654,
0.24956364929676056,
0.3286103308200836,
-0.2979758381843567,
-0.2086385041475296,
-0.16688895225524902,
-0.17993594706058502,
-0.09892155975103378,
-0.02448110096156597,
0.0027699433267116547,
0.33400672674179077,
-0.3335282504558563,
0.0812058374285698,
0.06613343954086304,
0.3537772595882416,
-0.029168473556637764,
0.20050273835659027,
0.4763013422489166,
-0.02505411207675934,
-0.23014281690120697,
0.2577570676803589,
-0.12120288610458374,
-0.09864576160907745,
0.007805256173014641,
-0.26250559091567993,
-0.3830004334449768,
0.1507856696844101,
-0.2321823090314865,
-0.27266618609428406,
-0.01631947048008442,
0.09111302345991135,
-0.3462086319923401,
-0.22145365178585052,
0.2023862600326538,
-0.09825281798839569,
0.19964775443077087,
-0.12563776969909668,
-0.3039824962615967,
0.03522827848792076,
0.02767198532819748,
0.09552521258592606,
-0.03907034546136856,
0.02956562489271164,
0.22064228355884552,
-0.18629351258277893,
-0.09632924199104309,
0.0924898087978363,
-0.13342003524303436,
-0.15555070340633392,
-0.04190845042467117,
0.03039688989520073,
-0.00178619846701622,
-0.38026148080825806,
-0.26464390754699707,
0.31360816955566406,
-0.3021363317966461,
-0.10223813354969025,
0.29753658175468445,
0.17312175035476685,
-0.03733073174953461,
0.4317631423473358,
0.08047699928283691,
-0.10108347982168198,
-0.22239236533641815,
0.03974254056811333,
0.2787668704986572,
-0.16483180224895477,
-0.016684643924236298,
0.2265569418668747,
-0.3185462951660156,
-0.48653337359428406,
0.0987032875418663,
0.30762529373168945,
-0.7350549101829529,
0.036467842757701874,
-0.10225219279527664,
-0.37032920122146606,
0.3334224224090576,
0.291664183139801,
0.7061739563941956,
-0.00820770114660263,
0.06494301557540894,
-0.2933311462402344,
-0.2688283622264862,
0.2852337956428528,
0.47633635997772217,
0.04678709805011749,
-0.17580759525299072,
0.22008736431598663,
0.0720972791314125,
0.07995200157165527,
-0.5519543886184692,
0.007651759311556816,
-0.07588580250740051,
0.2509633004665375,
0.02284942753612995,
-0.16949677467346191,
0.19054074585437775,
-0.08113820850849152,
0.20782533288002014,
-0.21112611889839172,
-0.4475668668746948,
-0.3272264003753662,
0.11332017183303833,
0.06825471669435501,
-0.131099671125412,
-0.05644180625677109,
0.039641570299863815,
-0.173813596367836,
-0.09912699460983276,
0.04195437580347061,
-0.16279783844947815,
0.09137403219938278,
0.018752526491880417,
0.1862262785434723,
0.19285054504871368,
0.007052093744277954,
-0.24424974620342255,
-0.01036965474486351,
-0.08871243894100189,
0.23259566724300385,
0.398100346326828,
0.2599266469478607,
0.04812079295516014,
-0.06838642060756683,
-0.3674134612083435,
0.3328778147697449,
-0.05867776274681091,
0.13042640686035156,
0.4972933232784271,
0.03796922415494919,
0.194334015250206,
0.47925934195518494,
0.41343924403190613,
0.3215595483779907,
-0.3487582206726074,
0.08578793704509735,
0.02092890255153179,
0.3517296016216278,
-0.362981379032135,
0.2854771018028259,
0.002171047031879425,
-0.03300442919135094,
0.3650570809841156,
0.17821365594863892,
0.16082598268985748,
-0.07751896232366562,
0.40473097562789917,
0.22045272588729858,
0.346942663192749,
-0.2158195972442627,
0.1593361794948578,
0.38778263330459595,
0.0122348852455616,
0.016740843653678894,
0.3394332230091095,
0.13229461014270782,
-0.16068994998931885,
0.08568133413791656,
0.14102144539356232,
0.2118205577135086,
0.25814521312713623,
-0.015437837690114975,
0.04828757420182228,
0.1539274901151657,
0.19166812300682068,
0.2858477532863617,
-0.31468504667282104,
-0.03411248326301575,
0.33454787731170654,
0.05081981420516968,
0.0072497036308050156,
-0.04387649521231651,
-0.22836080193519592,
0.34372594952583313,
0.012883935123682022,
0.09974198043346405,
-0.11901392787694931,
-0.2290685772895813,
-0.09348264336585999,
-0.33791884779930115,
-0.04506305977702141,
-0.02288380265235901,
0.22748884558677673,
0.061786726117134094,
0.016405783593654633,
-0.09037677943706512,
-0.23700329661369324,
0.08468411862850189,
0.2098361849784851,
-0.1478971689939499,
-0.08396188169717789,
0.4689359664916992,
-0.017135433852672577,
0.12107288837432861,
0.1632802039384842,
0.09704592078924179,
-0.047884561121463776,
-0.4196555018424988,
0.22375226020812988,
0.09184442460536957,
-0.3521282970905304,
0.04100805148482323,
0.11525709927082062,
0.02926395833492279,
0.08172719180583954,
0.3560752868652344,
0.3692361116409302,
-0.33024173974990845,
-0.00420122966170311,
0.04166201502084732,
0.10665488243103027,
-0.05486046522855759,
0.13946270942687988,
0.3664512038230896,
-0.07246172428131104,
0.08527111262083054,
-0.11606249958276749,
-0.1409902274608612,
0.13900226354599,
-0.02567450702190399,
-0.22485409677028656,
0.2389681041240692,
-0.07607309520244598,
0.18840260803699493,
-0.0033190473914146423,
0.23579786717891693,
-0.07858042418956757,
0.22858920693397522,
-0.13590958714485168,
-0.19021719694137573,
-0.44805338978767395,
-0.11062239855527878,
-0.003951206803321838,
-0.135212704539299,
-0.03928109258413315,
0.1853974163532257,
0.4471927583217621,
0.2849665880203247,
0.020207226276397705,
-0.3557782471179962,
-0.42927688360214233,
0.19558091461658478,
-0.3491155803203583,
0.18024814128875732,
-0.0028954073786735535,
0.43929171562194824,
0.11080808937549591,
-0.07483719289302826,
0.0635710284113884,
0.21666386723518372,
0.29924148321151733,
-0.22763018310070038,
-0.14019209146499634,
0.11388824880123138,
0.20924879610538483,
0.40060871839523315,
-0.08773334324359894,
0.31993991136550903,
-0.34402239322662354,
-0.054835591465234756,
0.1308923214673996,
-0.09029369056224823,
-0.09569789469242096,
0.2327961027622223,
0.2053830623626709,
0.25173014402389526,
-0.09134933352470398,
-0.2021724134683609,
-0.026189638301730156,
-0.29839253425598145,
-0.1919361650943756,
-0.09458469599485397,
-0.5408338904380798,
0.14812469482421875,
0.2731783986091614,
0.08999473601579666,
0.023335400968790054,
0.21781572699546814,
-0.16263417899608612,
0.028238946571946144,
0.08258599042892456,
-0.22101342678070068,
0.27774864435195923,
0.07793688029050827,
-0.2442488819360733,
0.16934524476528168,
-0.03354473412036896,
-0.15350812673568726,
0.27941545844078064,
-0.11012431979179382,
0.051731787621974945,
0.19923506677150726,
-0.03872813284397125,
-0.0006430801004171371,
0.0871787816286087,
0.15742097795009613,
-0.08659740537405014,
-0.09189540147781372,
0.41705578565597534,
0.11504150927066803,
-0.09172641485929489,
-0.44777587056159973,
-0.4764336943626404
] |
https://github.com/huggingface/datasets/issues/4104 | Add time series data - stock market | > @INF800 yes I am aware of the review repository and paper which is more or less a collection of abstracts etc. I am working on a unified library of implementations of these papers together with datasets to be then able to compare/contrast and build upon the research etc. but I am not ready to share them publicly just yet.
>
> In any case regarding your dataset at the moment its seems from looking at the csv files, its mixture of textual and numerical data, sometimes in the same column etc. As you know, for time series models we would need just numeric data so I would need your help in disambiguating the dataset you have collected and also perhaps starting with just numerical data to start with...
>
> Do you think you can make a version with just numerical data?
Will share the numeric data and conversion script within end of this week.
I am on a business trip currently - it is in my desktop. | ## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem
 | 169 | Add time series data - stock market
## Adding a Time Series Dataset
- **Name:** 2min ticker data for stock market
- **Description:** 8 stocks' data collected for 1month post ukraine-russia war. 4 NSE stocks and 4 NASDAQ stocks. Along with technical indicators (additional features) as shown in below image
- **Data:** Collected by myself from investing.com
- **Motivation:** Test applicability of transformer based model on stock market / time series problem

> @INF800 yes I am aware of the review repository and paper which is more or less a collection of abstracts etc. I am working on a unified library of implementations of these papers together with datasets to be then able to compare/contrast and build upon the research etc. but I am not ready to share them publicly just yet.
>
> In any case regarding your dataset at the moment its seems from looking at the csv files, its mixture of textual and numerical data, sometimes in the same column etc. As you know, for time series models we would need just numeric data so I would need your help in disambiguating the dataset you have collected and also perhaps starting with just numerical data to start with...
>
> Do you think you can make a version with just numerical data?
Will share the numeric data and conversion script within end of this week.
I am on a business trip currently - it is in my desktop. | [
-0.27834808826446533,
-0.1050129383802414,
-0.2014274001121521,
0.0014404729008674622,
0.23150166869163513,
-0.1322031021118164,
0.19488976895809174,
0.24059860408306122,
0.1763898730278015,
-0.1240391731262207,
0.07416131347417831,
0.20537778735160828,
-0.32985034584999084,
0.1638268530368805,
0.015285014174878597,
-0.12086082994937897,
0.04238046705722809,
0.2550011873245239,
-0.2647140920162201,
0.007993780076503754,
0.07883967459201813,
0.03983897715806961,
-0.0122251957654953,
0.07607876509428024,
-0.05487687513232231,
-0.09833676367998123,
0.023301737383008003,
0.17354519665241241,
-0.3018164336681366,
-0.09347537904977798,
-0.10976598411798477,
-0.05206170305609703,
0.1542605459690094,
0.9074095487594604,
-0.00009844794840319082,
-0.030048899352550507,
-0.09250476956367493,
-0.24015772342681885,
0.08364972472190857,
-0.08183139562606812,
-0.04817836359143257,
-0.1958136260509491,
0.1620878130197525,
-0.2514893114566803,
-0.3753291964530945,
-0.11841201037168503,
-0.3955422341823578,
0.036789052188396454,
0.8493919968605042,
0.5249650478363037,
0.3269844949245453,
0.07504457235336304,
-0.014146815985441208,
-0.10825946927070618,
0.08299217373132706,
0.07071345299482346,
-0.17040905356407166,
0.12575337290763855,
0.3307998478412628,
0.14875459671020508,
-0.12415441125631332,
0.31206178665161133,
0.060040682554244995,
-0.13326670229434967,
0.1819402575492859,
0.016254842281341553,
0.2956608235836029,
-0.3131692707538605,
-0.3043968081474304,
0.1264185607433319,
0.3423437476158142,
-0.07952483743429184,
-0.16097907721996307,
-0.05281798541545868,
-0.05210399255156517,
0.03706523776054382,
0.022492673248052597,
0.06057202070951462,
-0.17377622425556183,
0.20140168070793152,
0.06970926374197006,
0.05816662684082985,
-0.37293118238449097,
-0.02973353862762451,
-0.262739896774292,
0.0034720897674560547,
-0.16494633257389069,
0.01910994201898575,
0.01879986748099327,
-0.2475431114435196,
-0.054163772612810135,
-0.00796160101890564,
0.299175888299942,
0.2090550810098648,
-0.214640811085701,
-0.3139845132827759,
-0.05555049329996109,
-0.10161320120096207,
-0.22924122214317322,
-0.1368972212076187,
-0.26554587483406067,
-0.02621406316757202,
0.17520146071910858,
-0.20469319820404053,
-0.20017822086811066,
0.31056803464889526,
-0.2504138648509979,
-0.0568876676261425,
0.095271997153759,
-0.07420326769351959,
-0.1645866334438324,
-0.01316792517900467,
-0.10533677786588669,
-0.09053587168455124,
-0.10957281291484833,
0.0601135715842247,
-0.16139407455921173,
-0.19445663690567017,
-0.14405789971351624,
0.048225972801446915,
0.36353814601898193,
-0.10951211303472519,
0.04869307577610016,
0.2706867456436157,
0.06418892741203308,
0.19514653086662292,
0.17429277300834656,
0.10050716996192932,
0.016554033383727074,
-0.2410111427307129,
-0.18523791432380676,
0.2795506715774536,
-0.30806782841682434,
0.04609403759241104,
0.14891554415225983,
0.12928639352321625,
0.05525266379117966,
0.2609711289405823,
-0.08193056285381317,
0.11440964043140411,
-0.07695744931697845,
0.0758325457572937,
-0.015623189508914948,
0.1865137666463852,
-0.04342200607061386,
-0.043149203062057495,
0.1180785596370697,
0.02465631067752838,
-0.15360355377197266,
0.06966175138950348,
-0.11627551168203354,
-0.05798843875527382,
-0.17937248945236206,
0.2894027829170227,
-0.2564714550971985,
-0.07149375230073929,
0.33334609866142273,
0.26424142718315125,
0.03162289410829544,
-0.18436338007450104,
0.06184321641921997,
0.12233218550682068,
0.20391586422920227,
-0.18210549652576447,
-0.033555012196302414,
0.09832684695720673,
-0.5535160303115845,
0.06213867664337158,
-0.06732804328203201,
-0.20714497566223145,
0.11286953836679459,
0.18132252991199493,
-0.1859099417924881,
0.08779050409793854,
0.2852020561695099,
-0.17704540491104126,
0.4511938989162445,
-0.04497204348444939,
-0.1483924388885498,
0.27165716886520386,
-0.27362680435180664,
-0.20846670866012573,
0.2425958216190338,
0.22068312764167786,
0.14664779603481293,
-0.031292885541915894,
-0.2008121907711029,
-0.06907065212726593,
-0.15918022394180298,
0.016645541414618492,
-0.22679297626018524,
-0.2624492049217224,
0.17991212010383606,
0.18801720440387726,
0.10771989077329636,
0.005013406276702881,
-0.25283586978912354,
0.012022077105939388,
0.1336306929588318,
-0.10783571004867554,
0.061834923923015594,
0.18542595207691193,
0.17991548776626587,
-0.023837223649024963,
-0.07779280096292496,
-0.31453773379325867,
-0.09316156059503555,
-0.10936678200960159,
-0.11642765253782272,
0.5024075508117676,
-0.10887157917022705,
-0.06729262322187424,
-0.6006495356559753,
-0.11403801292181015,
-0.06659114360809326,
-0.07540188729763031,
0.3553057312965393,
-0.07768283784389496,
-0.018376905471086502,
-0.0836721882224083,
-0.02602977491915226,
0.10690078139305115,
0.028562845662236214,
-0.06091468781232834,
-0.09518420696258545,
0.2968752086162567,
-0.20291317999362946,
-0.023758959025144577,
0.006787080317735672,
0.18286430835723877,
0.0018176697194576263,
0.031329717487096786,
0.050611019134521484,
0.0637594610452652,
-0.08208563178777695,
0.2216358780860901,
0.10604740679264069,
0.39318346977233887,
0.11198096722364426,
-0.027309957891702652,
0.10693874210119247,
0.15259519219398499,
0.3214692175388336,
0.040134623646736145,
-0.407033771276474,
0.39909225702285767,
0.07120218873023987,
-0.10239709168672562,
-0.2755195200443268,
-0.04211172088980675,
0.34744149446487427,
-0.13252323865890503,
-0.12032368779182434,
-0.0021888986229896545,
0.07866805791854858,
-0.10216966271400452,
0.07921995222568512,
-0.030904600396752357,
-0.21313168108463287,
0.17162656784057617,
0.13198964297771454,
-0.05278618633747101,
0.15076956152915955,
0.059171244502067566,
-0.4502745270729065,
-0.12481670826673508,
-0.06361493468284607,
0.12544429302215576,
0.06904402375221252,
0.1728925108909607,
-0.008856590837240219,
-0.08803372085094452,
0.03375864773988724,
-0.07473006844520569,
0.23275239765644073,
-0.053464263677597046,
0.22679299116134644,
0.14275072515010834,
-0.04765952378511429,
0.2698661684989929,
-0.06316821277141571,
-0.22374340891838074,
-0.09789198637008667,
0.33115753531455994,
-0.3425348997116089,
0.021873151883482933,
0.005627172067761421,
0.15988358855247498,
-0.12997028231620789,
0.024614837020635605,
0.05425012484192848,
-0.2319704294204712,
0.05052110552787781,
-0.11297810077667236,
-0.02954239211976528,
-0.04191479831933975,
0.06763015687465668,
0.4510931968688965,
0.321137934923172,
0.11100088804960251,
-0.13456130027770996,
-0.38905197381973267,
-0.017517197877168655,
0.3590248227119446,
0.15294431149959564,
0.16250452399253845,
0.2933304011821747,
-0.13772298395633698,
0.13824157416820526,
0.20520560443401337,
-0.4164966642856598,
0.28612029552459717,
-0.15054823458194733,
0.24716271460056305,
-0.02029702067375183,
0.3541734218597412,
0.0366644561290741,
-0.2642412781715393,
0.07869317382574081,
-0.1511007398366928,
-0.09509341418743134,
0.17208796739578247,
-0.2679847776889801,
-0.12121042609214783,
-0.13942942023277283,
-0.3405095636844635,
-0.4300382733345032,
-0.22321778535842896,
-0.04912587255239487,
0.12328246235847473,
-0.11317567527294159,
-0.14562156796455383,
0.08436821401119232,
-0.09267544746398926,
0.0037300651893019676,
0.18983039259910583,
-0.40101802349090576,
-0.13607734441757202,
0.4161088466644287,
-0.18024152517318726,
-0.3423101007938385,
0.014586810022592545,
-0.07653076946735382,
-0.28997984528541565,
-0.04671839624643326,
-0.20425361394882202,
-0.06609021127223969,
-0.059541255235672,
0.009810365736484528,
0.33271700143814087,
-0.12209412455558777,
0.31892189383506775,
0.17535144090652466,
-0.17271234095096588,
-0.029530223459005356,
0.028110027313232422,
0.05663975700736046,
0.18525224924087524,
0.2268466055393219,
-0.17415061593055725,
0.5844359993934631,
-0.19753852486610413,
0.698852002620697,
0.10161907970905304,
-0.4328978359699249,
-0.24226784706115723,
-0.1914680004119873,
-0.09110505878925323,
0.12137918919324875,
-0.21760514378547668,
-0.09799619764089584,
-0.052359312772750854,
-0.042286816984415054,
0.35962051153182983,
-0.13490179181098938,
0.10788749158382416,
-0.24461723864078522,
0.26183316111564636,
-0.5287352800369263,
-0.2868572771549225,
0.3536362051963806,
0.09022529423236847,
0.22167140245437622,
-0.0701785609126091,
-0.16526103019714355,
-0.259226530790329,
-0.1546364724636078,
0.023148342967033386,
0.14597612619400024,
-0.016406238079071045,
-0.34949252009391785,
-0.33039721846580505,
0.1309688687324524,
-0.32083606719970703,
0.13278718292713165,
-0.059987086802721024,
0.07101801037788391,
0.1330360323190689,
-0.23628032207489014,
-0.05814993381500244,
-0.006032065022736788,
0.25315752625465393,
-0.028454644605517387,
-0.029338881373405457,
0.09093579649925232,
-0.2512948513031006,
-0.45389965176582336,
0.010186467319726944,
-0.3824724555015564,
0.03619707375764847,
-0.11351534724235535,
0.2997570335865021,
-0.23226472735404968,
-0.2146461009979248,
0.13891839981079102,
0.11095559597015381,
-0.30105045437812805,
-0.019458064809441566,
0.27168652415275574,
0.1554175317287445,
0.01798035018146038,
0.09937232732772827,
-0.15824684500694275,
0.039665237069129944,
-0.1344120055437088,
0.12778827548027039,
0.30185261368751526,
0.2533681094646454,
0.3818098306655884,
0.17231348156929016,
0.05369598791003227,
0.018303118646144867,
0.08800904452800751,
-0.08861745893955231,
-0.18720482289791107,
-0.1137591302394867,
0.2942098379135132,
0.08504045754671097,
-0.02290445566177368,
0.11870702356100082,
-0.4171285033226013,
-0.29663559794425964,
0.3041510581970215,
-0.11276207864284515,
-0.05905262380838394,
0.014730827882885933,
0.3181464672088623,
-0.2834688127040863,
-0.011983586475253105,
0.08490050584077835,
0.00570119172334671,
-0.05356113985180855,
-0.07515501230955124,
0.24849438667297363,
-0.012114259414374828,
-0.25198352336883545,
-0.08775489032268524,
-0.13606500625610352,
-0.24312125146389008,
0.44628578424453735,
0.14062345027923584,
0.9216392636299133,
0.11287982761859894,
0.16161273419857025,
0.6533914804458618,
0.25083833932876587,
0.31817665696144104,
-0.25515812635421753,
-0.19729039072990417,
-0.20465175807476044,
-0.16100871562957764,
-0.0728171318769455,
-0.02620461955666542,
-0.006764799356460571,
0.34679025411605835,
-0.34885358810424805,
0.10076582431793213,
0.018820472061634064,
0.320796400308609,
-0.02523605339229107,
0.21374210715293884,
0.46892422437667847,
-0.04932035133242607,
-0.20890164375305176,
0.25592488050460815,
-0.11048541963100433,
-0.08348649740219116,
0.011538546532392502,
-0.28875112533569336,
-0.4006683826446533,
0.15909384191036224,
-0.21105998754501343,
-0.23986127972602844,
-0.035377226769924164,
0.10407212376594543,
-0.3843699097633362,
-0.2238180935382843,
0.22511239349842072,
-0.10336446762084961,
0.19341851770877838,
-0.13226380944252014,
-0.27455875277519226,
0.010108999907970428,
0.039481163024902344,
0.12980963289737701,
-0.020093709230422974,
0.039054024964571,
0.23318149149417877,
-0.18789562582969666,
-0.10647296160459518,
0.05936872214078903,
-0.15291337668895721,
-0.12142306566238403,
-0.049475573003292084,
0.007884010672569275,
0.050358228385448456,
-0.42582768201828003,
-0.29250258207321167,
0.2773839831352234,
-0.3456757366657257,
-0.12298206984996796,
0.2915838062763214,
0.14207476377487183,
-0.03182040527462959,
0.46927979588508606,
0.09633074700832367,
-0.1282498836517334,
-0.18238551914691925,
0.041445471346378326,
0.2424578070640564,
-0.2026282697916031,
0.01355021819472313,
0.24795354902744293,
-0.3408539295196533,
-0.47269508242607117,
0.10102466493844986,
0.31232988834381104,
-0.7583246231079102,
0.07518172264099121,
-0.1356307417154312,
-0.33868399262428284,
0.32464852929115295,
0.2614607810974121,
0.6751067042350769,
0.027646876871585846,
0.07566231489181519,
-0.3118759095668793,
-0.25177040696144104,
0.24973668158054352,
0.47100403904914856,
0.03864680603146553,
-0.15155616402626038,
0.23457568883895874,
0.05359562486410141,
0.024030305445194244,
-0.5506221055984497,
0.02744094841182232,
-0.06037868931889534,
0.282457560300827,
0.039036136120557785,
-0.17758655548095703,
0.1495276242494583,
-0.05931989103555679,
0.20984870195388794,
-0.17343607544898987,
-0.4399973750114441,
-0.3184971511363983,
0.1529151350259781,
0.07099331170320511,
-0.13280323147773743,
-0.08474298566579819,
0.053597792983055115,
-0.18882694840431213,
-0.08749225735664368,
0.048155464231967926,
-0.1654897928237915,
0.10150442272424698,
-0.004461534321308136,
0.17951345443725586,
0.2174047976732254,
0.02031632885336876,
-0.19130469858646393,
-0.010104242712259293,
-0.08958388864994049,
0.26140764355659485,
0.3500148355960846,
0.3090059161186218,
0.04876036196947098,
-0.07361384481191635,
-0.373788982629776,
0.3113427460193634,
-0.02557266503572464,
0.1574234664440155,
0.48666438460350037,
0.04630809649825096,
0.17835849523544312,
0.4910171329975128,
0.39425376057624817,
0.3265994191169739,
-0.392333984375,
0.09885472059249878,
0.003107032272964716,
0.33159464597702026,
-0.317042738199234,
0.2920827269554138,
0.02526017837226391,
-0.06099274754524231,
0.33057400584220886,
0.18205884099006653,
0.1544751226902008,
-0.08143819123506546,
0.409942090511322,
0.20102357864379883,
0.35401326417922974,
-0.20188508927822113,
0.1606525331735611,
0.39227455854415894,
-0.014658477157354355,
-0.008524622768163681,
0.3207780122756958,
0.14607733488082886,
-0.20737344026565552,
0.08462169021368027,
0.1305854618549347,
0.21881848573684692,
0.25405359268188477,
-0.011614587157964706,
0.06444400548934937,
0.13706856966018677,
0.21197247505187988,
0.31727516651153564,
-0.33234232664108276,
-0.02401834726333618,
0.35163113474845886,
0.004512317478656769,
0.0010893791913986206,
-0.024877265095710754,
-0.17781893908977509,
0.3813120424747467,
0.006035760045051575,
0.10328638553619385,
-0.08314073085784912,
-0.22802037000656128,
-0.11997444182634354,
-0.36708447337150574,
-0.10190369188785553,
-0.0501098558306694,
0.2280665636062622,
0.09246733784675598,
0.03898993507027626,
-0.04068013280630112,
-0.2685646116733551,
0.10666874051094055,
0.22433257102966309,
-0.1698921173810959,
-0.13659736514091492,
0.49966853857040405,
0.004342496395111084,
0.11036023497581482,
0.14032334089279175,
0.11627869307994843,
-0.030240915715694427,
-0.43951523303985596,
0.22789545357227325,
0.11564607918262482,
-0.3642454445362091,
0.08943519741296768,
0.11713466048240662,
0.05448169261217117,
0.07767945528030396,
0.3485729992389679,
0.3631390929222107,
-0.30758821964263916,
-0.05757463350892067,
0.10758243501186371,
0.11421613395214081,
-0.019789958372712135,
0.14680393040180206,
0.3510296642780304,
-0.07364539057016373,
0.03714573383331299,
-0.12638744711875916,
-0.0919499397277832,
0.10131487995386124,
-0.04946934059262276,
-0.2625168561935425,
0.2603415548801422,
-0.06691304594278336,
0.18932583928108215,
0.025062071159482002,
0.23933352530002594,
-0.0902431458234787,
0.2068949043750763,
-0.1698044091463089,
-0.1730901300907135,
-0.4144989252090454,
-0.09951042383909225,
0.0658288225531578,
-0.13116289675235748,
-0.04823016747832298,
0.1972527652978897,
0.42901572585105896,
0.28658419847488403,
0.039054565131664276,
-0.37488678097724915,
-0.39295437932014465,
0.21343834698200226,
-0.32710763812065125,
0.20450828969478607,
0.03299833461642265,
0.4101257026195526,
0.11885152757167816,
-0.08685491979122162,
0.1067352145910263,
0.20863871276378632,
0.29522639513015747,
-0.24781863391399384,
-0.14044633507728577,
0.12179762125015259,
0.1936855912208557,
0.395315021276474,
-0.1031130775809288,
0.32909148931503296,
-0.32332688570022583,
-0.0435764417052269,
0.1885203719139099,
-0.08151646703481674,
-0.09535130113363266,
0.2883641719818115,
0.18593551218509674,
0.21331918239593506,
-0.0472903773188591,
-0.202413409948349,
-0.021080099046230316,
-0.3109174370765686,
-0.23268850147724152,
-0.09017680585384369,
-0.583112895488739,
0.1413290649652481,
0.278789222240448,
0.08228237926959991,
0.024915218353271484,
0.19110235571861267,
-0.12449836730957031,
0.06159190088510513,
0.05589188635349274,
-0.24743050336837769,
0.28166481852531433,
0.09516086429357529,
-0.28015875816345215,
0.14451195299625397,
-0.04231743514537811,
-0.18274906277656555,
0.28297707438468933,
-0.07615751773118973,
0.061273105442523956,
0.19360092282295227,
-0.03311144560575485,
0.025472812354564667,
0.11284451186656952,
0.14539167284965515,
-0.05064582824707031,
-0.1202867180109024,
0.3827545642852783,
0.12530097365379333,
-0.0689237117767334,
-0.48048192262649536,
-0.48132944107055664
] |
https://github.com/huggingface/datasets/issues/4101 | How can I download only the train and test split for full numbers using load_dataset()? | Hi! Can you please specify the full name of the dataset? IIRC `full_numbers` is one of the configs of the `svhn` dataset, and its generation is slow due to data being stored in binary Matlab files. Even if you specify a specific split, `datasets` downloads all of them, but we plan to fix that soon and only download the requested split.
If you are in a hurry, download the `svhn` script [here](`https://huggingface.co/datasets/svhn/blob/main/svhn.py`), remove [this code](https://huggingface.co/datasets/svhn/blob/main/svhn.py#L155-L162), and run:
```python
from datasets import load_dataset
dset = load_dataset("path/to/your/local/script.py", "full_numbers")
```
And to make loading easier in Colab, you can create a dataset repo on the Hub and upload the script there. Or push the script to Google Drive and mount the drive in Colab. | How can I download only the train and test split for full numbers using load_dataset()?
I do not need the extra split and it will take 40 mins just to download in Colab. I have very short time in hand. Please help. | 121 | How can I download only the train and test split for full numbers using load_dataset()?
How can I download only the train and test split for full numbers using load_dataset()?
I do not need the extra split and it will take 40 mins just to download in Colab. I have very short time in hand. Please help.
Hi! Can you please specify the full name of the dataset? IIRC `full_numbers` is one of the configs of the `svhn` dataset, and its generation is slow due to data being stored in binary Matlab files. Even if you specify a specific split, `datasets` downloads all of them, but we plan to fix that soon and only download the requested split.
If you are in a hurry, download the `svhn` script [here](`https://huggingface.co/datasets/svhn/blob/main/svhn.py`), remove [this code](https://huggingface.co/datasets/svhn/blob/main/svhn.py#L155-L162), and run:
```python
from datasets import load_dataset
dset = load_dataset("path/to/your/local/script.py", "full_numbers")
```
And to make loading easier in Colab, you can create a dataset repo on the Hub and upload the script there. Or push the script to Google Drive and mount the drive in Colab. | [
-0.42226123809814453,
-0.2911457419395447,
-0.03731757774949074,
0.23905789852142334,
0.0026369988918304443,
0.1689540147781372,
0.3794756233692169,
0.5034560561180115,
-0.062251605093479156,
0.311470091342926,
-0.4362158477306366,
-0.060495514422655106,
-0.002634734846651554,
0.5183427333831787,
-0.00648523960262537,
-0.03233717381954193,
-0.0514516606926918,
0.44391462206840515,
0.07812971621751785,
-0.15175315737724304,
-0.2570582330226898,
0.059304624795913696,
-0.2772677540779114,
-0.3184632658958435,
-0.503539502620697,
-0.020185181871056557,
-0.12845709919929504,
0.23724108934402466,
-0.3666262626647949,
-0.04060986265540123,
0.5088934302330017,
-0.047248732298612595,
0.4197595715522766,
0.05274777486920357,
-0.00012578342284541577,
-0.12167197465896606,
0.09897807240486145,
-0.060316719114780426,
-0.32314926385879517,
-0.06684833765029907,
-0.4307260811328888,
-0.1263435184955597,
0.19225899875164032,
-0.36101415753364563,
0.013254471123218536,
0.36711585521698,
-0.016269339248538017,
0.18930816650390625,
0.4238584637641907,
0.4262058734893799,
-0.007247596979141235,
-0.16831013560295105,
-0.285306453704834,
-0.06723397970199585,
0.3841281235218048,
-0.19518382847309113,
0.07775496691465378,
0.3818581700325012,
0.3578740954399109,
0.2202356457710266,
0.038982413709163666,
0.3046911060810089,
0.17205223441123962,
0.31344738602638245,
0.03392723947763443,
0.05909710004925728,
-0.05935554951429367,
-0.8038942813873291,
0.43687134981155396,
0.5300082564353943,
0.2675023078918457,
0.028293557465076447,
0.16420935094356537,
-0.17911121249198914,
-0.006263182498514652,
-0.6262876391410828,
0.13453182578086853,
0.3898161053657532,
-0.2621147930622101,
0.05871318280696869,
-0.34765055775642395,
-0.3238948881626129,
-0.15597867965698242,
0.2150096744298935,
-0.2065078765153885,
0.12393704056739807,
-0.022590573877096176,
-0.020465925335884094,
0.2941043972969055,
0.10103266686201096,
0.40432009100914,
-0.2892853021621704,
-0.053283046931028366,
0.19617003202438354,
-0.2715631425380707,
-0.34131842851638794,
-0.5557048916816711,
-0.3214718997478485,
0.07736379653215408,
0.08630676567554474,
-0.3050369918346405,
0.051868610084056854,
-0.34358054399490356,
-0.016282305121421814,
0.18883615732192993,
0.21926631033420563,
0.14875301718711853,
0.4174134433269501,
0.17131048440933228,
-0.004196216352283955,
0.07670067250728607,
0.1089690625667572,
-0.3627423346042633,
-0.13873644173145294,
-0.32996490597724915,
0.15903770923614502,
-0.2072124481201172,
-0.41916030645370483,
-0.027683498337864876,
-0.25035908818244934,
-0.3622945547103882,
-0.17307861149311066,
0.1893215775489807,
0.4814336597919464,
-0.06272683292627335,
0.14561843872070312,
-0.3969554305076599,
0.05456214398145676,
-0.3607613742351532,
-0.3152773976325989,
-0.015756094828248024,
0.4715084135532379,
-0.1655537188053131,
-0.07668592780828476,
0.5020622611045837,
-0.21143892407417297,
0.4007689356803894,
-0.05620582029223442,
0.09820346534252167,
0.02996959537267685,
0.15363642573356628,
-0.6648273468017578,
0.10286252945661545,
0.22335366904735565,
0.3098631501197815,
0.22745180130004883,
-0.16007915139198303,
0.2829251289367676,
-0.23451560735702515,
0.19260945916175842,
-0.21446722745895386,
-0.35010015964508057,
0.219127357006073,
-0.004944794811308384,
-0.37558192014694214,
0.11422069370746613,
-0.10897349566221237,
0.07331836223602295,
-0.19695603847503662,
0.12105898559093475,
0.03719187527894974,
-0.16010268032550812,
-0.32604554295539856,
-0.008176939561963081,
0.5691847205162048,
0.1800352931022644,
-0.07196379452943802,
0.040417589247226715,
0.020503666251897812,
0.06869655847549438,
0.6089367270469666,
0.10079263150691986,
-0.21444784104824066,
0.04076017811894417,
-0.13143916428089142,
0.04115833342075348,
0.4905737042427063,
-0.045809343457221985,
-0.2300247699022293,
0.3117091953754425,
0.08626335859298706,
-0.2516136169433594,
-0.0705346092581749,
0.32367295026779175,
0.30295270681381226,
0.06475729495286942,
0.051633164286613464,
0.5862388014793396,
-0.11522841453552246,
-0.2321643978357315,
-0.1133589893579483,
-0.46827128529548645,
-0.0038810037076473236,
0.26781994104385376,
0.45495811104774475,
0.21986261010169983,
0.022625692188739777,
0.1779605597257614,
0.4295162856578827,
-0.060262951999902725,
0.13680021464824677,
0.11546728760004044,
0.23267576098442078,
-0.075489342212677,
-0.012916337698698044,
-0.2093448042869568,
-0.184994637966156,
0.3666996955871582,
-0.08802443742752075,
-0.058501072227954865,
0.19532494246959686,
0.09142322838306427,
-0.5102716684341431,
-0.33886387944221497,
0.21750801801681519,
-0.12703090906143188,
-0.22930245101451874,
-0.19925761222839355,
0.11879600584506989,
-0.1836823672056198,
-0.23982004821300507,
0.4323567748069763,
-0.13428060710430145,
0.1537855863571167,
-0.01996833086013794,
0.32730090618133545,
0.2061072438955307,
-0.0872262641787529,
0.34084850549697876,
-0.20344758033752441,
0.26994070410728455,
-0.26405805349349976,
-0.2879975736141205,
0.30695781111717224,
0.2327347993850708,
-0.17224974930286407,
0.1894828975200653,
-0.08952583372592926,
0.25049149990081787,
0.04636264964938164,
-0.013376155868172646,
-0.07410551607608795,
0.19193652272224426,
0.04229237884283066,
-0.2745189666748047,
0.34401077032089233,
-0.2842671871185303,
0.2558291554450989,
0.03191326558589935,
0.1371660679578781,
0.21296511590480804,
-0.2668725550174713,
0.03657408803701401,
-0.1433265507221222,
0.14422248303890228,
-0.12108644843101501,
-0.09443788230419159,
0.002665819600224495,
-0.151495099067688,
-0.10439137369394302,
0.6770180463790894,
-0.2236759513616562,
-0.30471211671829224,
0.03986310586333275,
-0.28500068187713623,
0.046852149069309235,
0.35348692536354065,
0.18268626928329468,
0.14683514833450317,
0.11190097779035568,
0.223067507147789,
0.04449540376663208,
0.2040935605764389,
-0.1150299608707428,
0.10028010606765747,
0.17548519372940063,
0.20491357147693634,
-0.2654637396335602,
-0.3387117087841034,
-0.2158505916595459,
0.01686902716755867,
-0.04541117697954178,
0.08509860187768936,
0.23295758664608002,
-0.07613573968410492,
-0.19016817212104797,
-0.0699218288064003,
-0.21478700637817383,
-0.2740211486816406,
-0.057653751224279404,
0.14744141697883606,
-0.07710946351289749,
-0.019265111535787582,
0.0010708272457122803,
0.21975350379943848,
-0.04019530862569809,
-0.13200552761554718,
0.09835224598646164,
-0.04614018648862839,
-0.09440619498491287,
0.08417604863643646,
0.015904633328318596,
-0.091033436357975,
0.0602543018758297,
0.04996301606297493,
0.6374854445457458,
0.0928000807762146,
-0.3059551417827606,
-0.11463885009288788,
0.17479579150676727,
0.1004996970295906,
0.2804761826992035,
0.08101101219654083,
-0.160150945186615,
0.015464887022972107,
0.27026796340942383,
-0.3341009020805359,
0.013143115676939487,
-0.17482426762580872,
-0.17915686964988708,
0.07316461950540543,
-0.021085795015096664,
-0.00393324438482523,
0.23510859906673431,
-0.03483818471431732,
-0.5220158100128174,
-0.18976975977420807,
-0.21402326226234436,
-0.07456672191619873,
0.262865275144577,
0.10903140902519226,
-0.3380987346172333,
-0.0012194085866212845,
0.1681419014930725,
0.29821422696113586,
-0.16934701800346375,
0.04053276404738426,
-0.34926626086235046,
0.47889748215675354,
-0.022773031145334244,
-0.22899113595485687,
0.227972149848938,
-0.20817242562770844,
-0.25913119316101074,
0.14898011088371277,
-0.4160274267196655,
-0.14993667602539062,
-0.4632215201854706,
0.0071173906326293945,
-0.20841383934020996,
-0.010877007618546486,
0.07199259847402573,
-0.43250763416290283,
0.06818056106567383,
0.060230448842048645,
-0.021372295916080475,
-0.0031988322734832764,
0.0452842190861702,
0.1624598503112793,
-0.041361965239048004,
0.1437218189239502,
-0.018148796632885933,
0.835833728313446,
0.45937201380729675,
0.1229478120803833,
-0.1977238655090332,
0.019161198288202286,
-0.10144524276256561,
-0.1060013547539711,
-0.19217802584171295,
0.0973692387342453,
0.01196359097957611,
-0.00814543105661869,
0.4042835235595703,
-0.05868782103061676,
0.08569526672363281,
-0.39054274559020996,
-0.37871789932250977,
-0.1906094253063202,
-0.22308064997196198,
0.16923104226589203,
-0.10272170603275299,
0.14298222959041595,
0.028475996106863022,
0.34898149967193604,
-0.00833218079060316,
-0.2032170593738556,
0.04768925532698631,
0.14417898654937744,
-0.057414911687374115,
0.0045178914442658424,
-0.08496999740600586,
-0.19157934188842773,
-0.34414440393447876,
0.11771894246339798,
0.10365128517150879,
-0.0667768195271492,
0.06164099648594856,
0.2214011549949646,
0.3084256649017334,
-0.039803311228752136,
0.3699744939804077,
0.15385298430919647,
0.3566437363624573,
-0.04601863771677017,
-0.42812010645866394,
-0.29305097460746765,
0.10196259617805481,
-0.3731234669685364,
0.05308615043759346,
0.41089579463005066,
0.25365376472473145,
-0.21148711442947388,
-0.2702615559101105,
0.5435031652450562,
0.06801556050777435,
-0.2854546010494232,
0.05164274573326111,
0.08447390794754028,
-0.06868664175271988,
-0.21439129114151,
0.12610727548599243,
0.0327843576669693,
0.18512237071990967,
-0.08304964005947113,
0.07476939260959625,
0.063031867146492,
-0.25375130772590637,
0.3656444549560547,
0.2471373826265335,
0.057643428444862366,
0.46609213948249817,
0.35227611660957336,
0.14432844519615173,
-0.020163245499134064,
0.09335722774267197,
0.5849807858467102,
-0.29487258195877075,
-0.23768267035484314,
0.15559878945350647,
-0.10435711592435837,
0.12718813121318817,
0.44618886709213257,
-0.16216906905174255,
-0.12255916744470596,
0.012608871795237064,
0.15362897515296936,
0.03787983953952789,
0.7042677402496338,
-0.17853714525699615,
0.08328140527009964,
-0.4465668797492981,
-0.5778753161430359,
0.26797279715538025,
0.07126088440418243,
-0.07427418231964111,
0.050177235156297684,
-0.1393367350101471,
-0.026778390631079674,
0.12833742797374725,
0.04937272146344185,
0.9880915284156799,
-0.17102953791618347,
-0.015405472368001938,
-0.2646240293979645,
-0.21801349520683289,
0.3387439548969269,
-0.42236489057540894,
0.1215047836303711,
-0.10002274811267853,
-0.33160510659217834,
-0.030125513672828674,
-0.22245225310325623,
-0.2490914762020111,
-0.04443147033452988,
-0.18031460046768188,
0.3274567127227783,
-0.0781339779496193,
0.26887112855911255,
-0.07568519562482834,
0.3327435553073883,
-0.013378230854868889,
-0.15461663901805878,
0.006817595101892948,
-0.007664395496249199,
-0.07873106002807617,
0.32297641038894653,
0.043223269283771515,
-0.03281093388795853,
-0.3575004041194916,
-0.04291648417711258,
0.1502380222082138,
0.20266759395599365,
-0.28074589371681213,
0.02769429050385952,
-0.48242977261543274,
-0.2488073706626892,
0.14794310927391052,
0.2388969361782074,
0.4072214365005493,
0.12361276149749756,
-0.1730496734380722,
0.33069244027137756,
0.20246455073356628,
-0.06763546168804169,
-0.09143774211406708,
0.1363190859556198,
0.14433321356773376,
-0.25854408740997314,
-0.052442971616983414,
0.1804342269897461,
-0.24831268191337585,
0.008313555270433426,
0.05467510223388672,
0.07800336182117462,
0.02423212304711342,
-0.27672848105430603,
0.05179339647293091,
0.1587062031030655,
0.2101331651210785,
-0.1759834587574005,
-0.013531684875488281,
0.17298758029937744,
-0.29250407218933105,
0.28248921036720276,
-0.028782334178686142,
-0.36441731452941895,
-0.196309432387352,
0.00950014591217041,
0.27333638072013855,
0.12489627301692963,
0.480533629655838,
-0.043595973402261734,
-0.06075363978743553,
-0.10382795333862305,
0.1715015470981598,
0.15215004980564117,
-0.24538999795913696,
0.3007946312427521,
-0.3723876178264618,
0.04645220935344696,
-0.00838975328952074,
0.3604181110858917,
0.18837778270244598,
-0.06410189718008041,
0.01029270514845848,
-0.3211674392223358,
-0.3571394681930542,
-0.044212810695171356,
0.10044552385807037,
0.4038248062133789,
-0.0026839599013328552,
0.3182535171508789,
-0.0746999979019165,
0.24930106103420258,
-0.13886888325214386,
0.3114995062351227,
-0.29074370861053467,
0.3553396761417389,
-0.07974909245967865,
-0.12105239182710648,
0.19958770275115967,
0.07094535231590271,
-0.10596944391727448,
-0.01881691813468933,
-0.27552106976509094,
-0.019047936424613,
-0.15248191356658936,
0.21075931191444397,
-0.11755792051553726,
-0.2988660931587219,
-0.20879124104976654,
-0.1628650724887848,
-0.24572834372520447,
0.0015627718530595303,
0.1967593878507614,
0.0886247530579567,
0.25033509731292725,
0.1226775050163269,
0.3754149377346039,
-0.04032550007104874,
-0.5565279722213745,
0.3311218321323395,
-0.11067521572113037,
0.38311922550201416,
0.11226379126310349,
0.3420637249946594,
0.17774450778961182,
-0.0018534362316131592,
0.06757882982492447,
-0.33970871567726135,
0.3646988272666931,
-0.24478265643119812,
-0.028004005551338196,
0.11901979148387909,
0.40098291635513306,
-0.0071463994681835175,
0.094819076359272,
0.5051325559616089,
0.011254499666392803,
0.15417292714118958,
0.2692319452762604,
0.04893839731812477,
-0.14706259965896606,
0.22246205806732178,
0.10898001492023468,
-0.06549528241157532,
0.12051333487033844,
0.4148091673851013,
-0.18349429965019226,
0.325649619102478,
-0.2308511883020401,
0.021604184061288834,
0.12969402968883514,
0.4567747712135315,
0.05558926239609718,
0.4711967706680298,
-0.2796093821525574,
0.07072412967681885,
-0.06128573417663574,
0.021710235625505447,
0.027409203350543976,
0.30108755826950073,
-0.2323102355003357,
0.38979244232177734,
0.01275540515780449,
0.20892567932605743,
0.2582949101924896,
-0.20023685693740845,
-0.2358190268278122,
0.4443638026714325,
-0.28960689902305603,
-0.10908391326665878,
-0.13458842039108276,
0.5525481700897217,
-0.21265333890914917,
-0.342920184135437,
-0.20560894906520844,
0.1523263156414032,
0.12649855017662048,
0.2040722370147705,
-0.17375440895557404,
-0.23028090596199036,
-0.2788945436477661,
0.3646465539932251,
0.10071739554405212,
-0.1834632307291031,
0.0646800547838211,
0.4531314969062805,
-0.21742288768291473,
0.2870928943157196,
-0.08608739078044891,
0.2025584578514099,
0.08021815866231918,
-0.19454599916934967,
-0.18372830748558044,
-0.17185823619365692,
-0.008940503001213074,
0.3378133773803711,
-0.15764901041984558,
-0.08834965527057648,
-0.08841653913259506,
0.009739803150296211,
-0.3849944770336151,
0.6973215341567993,
0.08461282402276993,
0.0706402063369751,
-0.11249285936355591,
0.315823495388031,
0.23547421395778656,
0.28135713934898376,
-0.03939114883542061,
-0.1337977945804596,
0.12371174991130829,
-0.19016088545322418,
0.005500110797584057,
-0.3518774211406708,
0.2632128596305847,
0.3517182469367981,
0.08140575140714645,
-0.1971750408411026,
-0.1149878278374672,
-0.18321019411087036,
-0.09480759501457214,
-0.15576016902923584,
-0.2771718204021454,
0.09142980724573135,
0.30520114302635193,
-0.06347692012786865,
-0.3050660789012909,
0.34995022416114807,
-0.06386643648147583,
0.04800739884376526,
-0.36431339383125305,
-0.35157638788223267,
-0.18450316786766052,
-0.19867712259292603,
-0.2832687795162201,
-0.029598461464047432,
0.14000998437404633,
0.08033845573663712,
0.03736213967204094,
0.22745950520038605,
0.029762163758277893,
0.22526071965694427,
-0.02467939257621765,
0.20401759445667267,
-0.2422207146883011,
-0.024985235184431076,
-0.09912082552909851,
0.09344426542520523,
0.05693614482879639,
-0.33764442801475525,
0.24515239894390106,
-0.13179951906204224,
-0.2364397943019867,
0.4478570222854614,
-0.5239772796630859,
0.4156220853328705,
-0.21085911989212036,
0.43711057305336,
0.06566282361745834,
0.3348822593688965,
-0.035976435989141464,
0.12099941819906235,
0.31822285056114197,
-0.06869509816169739,
-0.07595043629407883,
-0.08634810894727707,
0.29192835092544556,
0.3056780993938446,
-0.2353784292936325,
0.5031736493110657,
-0.13142459094524384,
0.06720627099275589,
-0.06775644421577454,
-0.05633731931447983,
0.0016055721789598465,
-0.19696660339832306,
-0.2048243284225464,
0.3811810314655304,
0.3024541735649109,
0.35211101174354553,
-0.33282074332237244,
-0.33772146701812744,
-0.18823328614234924,
-0.07322864234447479,
0.6816259622573853,
-0.05583006516098976,
-0.2289961576461792,
-0.3388393223285675,
0.16727550327777863,
0.3054867386817932,
0.21740102767944336,
-0.2762433886528015,
0.055977173149585724,
0.09467341750860214,
-0.025978337973356247,
-0.3674141466617584,
0.21476179361343384,
0.23891186714172363,
-0.12589715421199799,
-0.005097784101963043,
-0.016462653875350952,
0.2661341428756714,
-0.3455098569393158,
-0.4728821814060211,
-0.363061785697937
] |
https://github.com/huggingface/datasets/issues/4099 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128) | Hi @andreybond, thanks for reporting.
Unfortunately, I'm not able to able to reproduce your issue:
```python
In [4]: from datasets import load_dataset
...: datasets = load_dataset("nielsr/XFUN", "xfun.ja")
In [5]: datasets
Out[5]:
DatasetDict({
train: Dataset({
features: ['id', 'input_ids', 'bbox', 'labels', 'image', 'entities', 'relations'],
num_rows: 194
})
validation: Dataset({
features: ['id', 'input_ids', 'bbox', 'labels', 'image', 'entities', 'relations'],
num_rows: 71
})
})
```
The only reason I can imagine this issue may arise is if your default encoding is not "UTF-8" (and it is ASCII instead). This is usually the case on Windows machines; but you say your environment is a Linux machine. Maybe you change your machine default encoding?
Could you please check this?
```python
In [6]: import sys
In [7]: sys.getdefaultencoding()
Out[7]: 'utf-8'
``` | ## Describe the bug
Error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)" is thrown when downloading dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("nielsr/XFUN", "xfun.ja")
```
## Expected results
Dataset should be downloaded without exceptions
## Actual results
Stack trace (for the second-time execution):
Downloading and preparing dataset xfun/xfun.ja to /root/.cache/huggingface/datasets/nielsr___xfun/xfun.ja/0.0.0/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477...
Downloading data files: 100%
2/2 [00:00<00:00, 88.48it/s]
Extracting data files: 100%
2/2 [00:00<00:00, 79.60it/s]
UnicodeDecodeErrorTraceback (most recent call last)
<ipython-input-31-79c26bd1109c> in <module>
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("nielsr/XFUN", "xfun.ja")
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
604 )
605
--> 606 # By default, return all splits
607 if split is None:
608 split = {s: s for s in self.info.splits}
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
692 Args:
693 split: `datasets.Split` which subset of the data to read.
--> 694
695 Returns:
696 `Dataset`
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys)
/usr/local/lib/python3.6/dist-packages/tqdm/notebook.py in __iter__(self)
252 if not self.disable:
253 self.display(check_delay=False)
--> 254
255 def __iter__(self):
256 try:
/usr/local/lib/python3.6/dist-packages/tqdm/std.py in __iter__(self)
1183 for obj in iterable:
1184 yield obj
-> 1185 return
1186
1187 mininterval = self.mininterval
~/.cache/huggingface/modules/datasets_modules/datasets/nielsr--XFUN/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477/XFUN.py in _generate_examples(self, filepaths)
140 logger.info("Generating examples from = %s", filepath)
141 with open(filepath[0], "r") as f:
--> 142 data = json.load(f)
143
144 for doc in data["documents"]:
/usr/lib/python3.6/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.6/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0 (but reproduced with many previous versions)
- Platform: Docker: Linux da5b74136d6b 5.3.0-1031-azure #32~18.04.1-Ubuntu SMP Mon Jun 22 15:27:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ; Base docker image is : huggingface/transformers-pytorch-cpu
- Python version: 3.6.9
- PyArrow version: 6.0.1
| 123 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Describe the bug
Error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)" is thrown when downloading dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("nielsr/XFUN", "xfun.ja")
```
## Expected results
Dataset should be downloaded without exceptions
## Actual results
Stack trace (for the second-time execution):
Downloading and preparing dataset xfun/xfun.ja to /root/.cache/huggingface/datasets/nielsr___xfun/xfun.ja/0.0.0/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477...
Downloading data files: 100%
2/2 [00:00<00:00, 88.48it/s]
Extracting data files: 100%
2/2 [00:00<00:00, 79.60it/s]
UnicodeDecodeErrorTraceback (most recent call last)
<ipython-input-31-79c26bd1109c> in <module>
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("nielsr/XFUN", "xfun.ja")
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
604 )
605
--> 606 # By default, return all splits
607 if split is None:
608 split = {s: s for s in self.info.splits}
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
692 Args:
693 split: `datasets.Split` which subset of the data to read.
--> 694
695 Returns:
696 `Dataset`
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys)
/usr/local/lib/python3.6/dist-packages/tqdm/notebook.py in __iter__(self)
252 if not self.disable:
253 self.display(check_delay=False)
--> 254
255 def __iter__(self):
256 try:
/usr/local/lib/python3.6/dist-packages/tqdm/std.py in __iter__(self)
1183 for obj in iterable:
1184 yield obj
-> 1185 return
1186
1187 mininterval = self.mininterval
~/.cache/huggingface/modules/datasets_modules/datasets/nielsr--XFUN/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477/XFUN.py in _generate_examples(self, filepaths)
140 logger.info("Generating examples from = %s", filepath)
141 with open(filepath[0], "r") as f:
--> 142 data = json.load(f)
143
144 for doc in data["documents"]:
/usr/lib/python3.6/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.6/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0 (but reproduced with many previous versions)
- Platform: Docker: Linux da5b74136d6b 5.3.0-1031-azure #32~18.04.1-Ubuntu SMP Mon Jun 22 15:27:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ; Base docker image is : huggingface/transformers-pytorch-cpu
- Python version: 3.6.9
- PyArrow version: 6.0.1
Hi @andreybond, thanks for reporting.
Unfortunately, I'm not able to able to reproduce your issue:
```python
In [4]: from datasets import load_dataset
...: datasets = load_dataset("nielsr/XFUN", "xfun.ja")
In [5]: datasets
Out[5]:
DatasetDict({
train: Dataset({
features: ['id', 'input_ids', 'bbox', 'labels', 'image', 'entities', 'relations'],
num_rows: 194
})
validation: Dataset({
features: ['id', 'input_ids', 'bbox', 'labels', 'image', 'entities', 'relations'],
num_rows: 71
})
})
```
The only reason I can imagine this issue may arise is if your default encoding is not "UTF-8" (and it is ASCII instead). This is usually the case on Windows machines; but you say your environment is a Linux machine. Maybe you change your machine default encoding?
Could you please check this?
```python
In [6]: import sys
In [7]: sys.getdefaultencoding()
Out[7]: 'utf-8'
``` | [
-0.2249612659215927,
-0.011080123484134674,
-0.11821454763412476,
0.3766307830810547,
0.4748916029930115,
0.07017090171575546,
0.19218997657299042,
0.42498084902763367,
-0.24204838275909424,
0.23078402876853943,
-0.08927082270383835,
0.11802073568105698,
-0.056294508278369904,
-0.11612605303525925,
-0.026307497173547745,
-0.10487629473209381,
-0.08414114266633987,
0.19831901788711548,
-0.10486669838428497,
0.021139338612556458,
-0.23987673223018646,
0.15730547904968262,
-0.1527586281299591,
0.1366768628358841,
-0.10218925029039383,
-0.09880811721086502,
-0.036016348749399185,
0.42776724696159363,
-0.3105621039867401,
-0.5563288927078247,
0.2730208933353424,
-0.1499936729669571,
0.2355162501335144,
0.46225666999816895,
-0.00010794834088301286,
0.0773506760597229,
0.19757720828056335,
-0.011399573646485806,
-0.35637062788009644,
-0.18129248917102814,
-0.5157776474952698,
-0.09986225515604019,
-0.22215095162391663,
-0.2464134395122528,
0.09643488377332687,
0.04854096472263336,
0.04316573590040207,
-0.41056719422340393,
0.33819952607154846,
0.48655056953430176,
0.226533904671669,
0.21451322734355927,
0.12831954658031464,
0.11305230110883713,
0.07491185516119003,
0.05194631218910217,
-0.03835587203502655,
0.3721809685230255,
0.21210642158985138,
0.394227534532547,
-0.021662570536136627,
0.14201131463050842,
-0.08961611241102219,
0.17430810630321503,
-0.012287311255931854,
0.19864729046821594,
-0.14715591073036194,
-0.40030431747436523,
-0.043057672679424286,
-0.05511212348937988,
0.19633814692497253,
-0.4019670784473419,
-0.40431493520736694,
0.015258647501468658,
0.007723032962530851,
-0.7341346740722656,
0.24614104628562927,
0.1706087589263916,
-0.15467897057533264,
0.2870323956012726,
0.04753757268190384,
0.1360694020986557,
-0.34980490803718567,
0.0847177729010582,
-0.20422692596912384,
0.2783568501472473,
-0.22910602390766144,
-0.09895829111337662,
-0.16938753426074982,
-0.1039222925901413,
0.0960657075047493,
-0.21876244246959686,
-0.13072581589221954,
0.21692660450935364,
-0.24056465923786163,
-0.046208810061216354,
0.06836685538291931,
-0.15426278114318848,
0.26379796862602234,
-0.21472196280956268,
0.09261078387498856,
0.03901705518364906,
-0.13764424622058868,
0.04295451194047928,
0.056754205375909805,
0.10105478763580322,
0.015126191079616547,
0.411814421415329,
0.3566465973854065,
0.35954949259757996,
0.09961147606372833,
-0.07602595537900925,
-0.04306267946958542,
-0.17490291595458984,
0.11559562385082245,
0.3333798348903656,
0.5485195517539978,
-0.40250879526138306,
-0.5407798886299133,
0.1772187352180481,
0.06952593475580215,
-0.1771850734949112,
0.06141003221273422,
0.1359405815601349,
0.14896658062934875,
0.24987921118736267,
-0.15085670351982117,
0.23872843384742737,
-0.2973646819591522,
-0.23161202669143677,
-0.17442463338375092,
-0.004860730841755867,
0.11972315609455109,
0.0734022930264473,
-0.02465519867837429,
0.007800860330462456,
0.06500718742609024,
0.20089781284332275,
0.23847706615924835,
0.035106830298900604,
0.028725387528538704,
-0.22543708980083466,
-0.0583638921380043,
0.12132054567337036,
-0.16078664362430573,
0.17369893193244934,
0.0667828768491745,
-0.05831989273428917,
0.033773429691791534,
0.10122241079807281,
-0.2032390534877777,
-0.11228732764720917,
-0.12745894491672516,
0.2711447775363922,
0.06279222667217255,
-0.09778136014938354,
-0.13311246037483215,
-0.03739326074719429,
0.2790338099002838,
-0.06728557497262955,
0.22424668073654175,
-0.1588774472475052,
-0.262310653924942,
-0.1861727386713028,
0.09488698840141296,
0.33492738008499146,
-0.21931175887584686,
0.017285898327827454,
0.09641487896442413,
0.0007643233984708786,
0.37856560945510864,
0.2703147530555725,
-0.11598674952983856,
-0.009012237191200256,
-0.20199018716812134,
0.24811844527721405,
0.5223243236541748,
-0.39059919118881226,
-0.654930591583252,
0.26289400458335876,
-0.24045978486537933,
0.2044733613729477,
0.09707164764404297,
0.0670001208782196,
0.506752610206604,
-0.031138863414525986,
0.14081552624702454,
0.4689132571220398,
-0.0472944974899292,
0.037105120718479156,
-0.15151157975196838,
-0.20843878388404846,
0.23227369785308838,
0.09187401831150055,
-0.008906055241823196,
0.07259710133075714,
0.2188367247581482,
-0.09881681203842163,
0.48185259103775024,
-0.22874820232391357,
0.08112426102161407,
0.2726559042930603,
0.0873144268989563,
-0.10878142714500427,
-0.001503337174654007,
-0.4128372073173523,
-0.09885979443788528,
0.2809087038040161,
-0.08700462430715561,
-0.08739244937896729,
-0.5638006925582886,
-0.07514676451683044,
-0.39590421319007874,
-0.2362721711397171,
-0.41352537274360657,
-0.22444558143615723,
0.1527039110660553,
0.4441426992416382,
0.1673843264579773,
0.13285143673419952,
-0.3534458577632904,
0.3843112587928772,
-0.18877698481082916,
0.06363948434591293,
-0.252284437417984,
0.3659222424030304,
-0.12472376972436905,
-0.21385475993156433,
0.11150044202804565,
0.10485367476940155,
0.05890084430575371,
-0.15316614508628845,
-0.35138657689094543,
0.3194067180156708,
0.1774144023656845,
-0.05502915382385254,
-0.23800769448280334,
-0.11681433022022247,
0.40829551219940186,
-0.20189259946346283,
-0.02196739800274372,
0.2958199381828308,
0.22544315457344055,
0.1025596484541893,
0.05475108325481415,
0.25686317682266235,
-0.13603980839252472,
-0.0436694398522377,
-0.05449772998690605,
-0.05582283437252045,
0.390914648771286,
0.09737551212310791,
0.06627914309501648,
-0.19260746240615845,
0.2537800073623657,
-0.0573655404150486,
0.29478853940963745,
-0.0648602619767189,
-0.10671694576740265,
0.10018202662467957,
0.7250160574913025,
-0.086369588971138,
0.06428567320108414,
0.1343618631362915,
0.07944963127374649,
0.2467285394668579,
-0.009202815592288971,
0.12388390302658081,
0.27570396661758423,
0.0812278538942337,
0.0017121285200119019,
-0.001534903421998024,
0.056163936853408813,
-0.14708875119686127,
0.18226011097431183,
-0.08047905564308167,
0.06177331879734993,
0.04063910245895386,
-0.07179789245128632,
0.11042801290750504,
-0.2556978762149811,
-0.43747106194496155,
-0.07720191776752472,
0.2967108190059662,
-0.4032234847545624,
0.1171649619936943,
-0.33441632986068726,
-0.23317930102348328,
-0.28763195872306824,
-0.10209953039884567,
-0.23962542414665222,
-0.09638875722885132,
-0.25215959548950195,
0.011194039136171341,
0.021431446075439453,
0.10413454473018646,
-0.32130715250968933,
-0.1306130737066269,
0.2980557978153229,
-0.017281951382756233,
0.0634019523859024,
0.006324633490294218,
-0.16847863793373108,
0.11445637047290802,
0.31379958987236023,
0.06276289373636246,
0.29307740926742554,
-0.3117453455924988,
-0.029138579964637756,
-0.19996114075183868,
-0.08514554798603058,
0.07785584777593613,
-0.0759173333644867,
0.19002443552017212,
-0.05282007157802582,
0.2367749810218811,
-0.08550563454627991,
-0.32484811544418335,
0.061566293239593506,
-0.020392976701259613,
-0.38054969906806946,
0.21907617151737213,
0.10856185853481293,
-0.13726796209812164,
-0.07535164058208466,
-0.24919220805168152,
-0.35374584794044495,
-0.43125268816947937,
-0.046127378940582275,
-0.03538953885436058,
0.2703792452812195,
0.20985537767410278,
-0.13185346126556396,
0.20618028938770294,
0.13893266022205353,
0.06456433981657028,
-0.05630051717162132,
-0.2950124144554138,
0.5078899264335632,
-0.35972586274147034,
-0.36269935965538025,
-0.20782369375228882,
0.01597084477543831,
0.20832198858261108,
0.11921463161706924,
-0.2939997911453247,
0.1115875169634819,
-0.5780037641525269,
0.37978652119636536,
-0.14997878670692444,
0.019677501171827316,
0.1490275114774704,
-0.04298051446676254,
0.012730991467833519,
-0.04682820662856102,
0.04960073158144951,
-0.1234121099114418,
0.1071203425526619,
0.11862850189208984,
0.09650108218193054,
0.5395463705062866,
-0.02226552553474903,
0.16559410095214844,
0.2457311451435089,
-0.008086107671260834,
0.4749949872493744,
-0.15503670275211334,
0.0646250993013382,
0.016462698578834534,
-0.4167361557483673,
0.19207799434661865,
0.054198265075683594,
-0.08037049323320389,
0.20485764741897583,
-0.1476060152053833,
0.08364978432655334,
-0.1161477193236351,
-0.19748495519161224,
-0.2108730673789978,
-0.26066723465919495,
-0.13570204377174377,
-0.1606522649526596,
0.2328106164932251,
-0.09232744574546814,
0.1867917776107788,
0.07558797299861908,
-0.07735924422740936,
0.011179141700267792,
0.11293908208608627,
-0.041296638548374176,
0.042722221463918686,
0.03236529603600502,
0.15901264548301697,
-0.4642372727394104,
0.2115756720304489,
0.49892768263816833,
0.39792075753211975,
-0.03046036884188652,
0.13315469026565552,
0.0070953369140625,
-0.010883616283535957,
0.37291187047958374,
0.06275056302547455,
0.30139315128326416,
0.10339498519897461,
0.15710699558258057,
-0.24944037199020386,
0.01216423511505127,
-0.37712764739990234,
0.40861791372299194,
0.002004910260438919,
0.053771719336509705,
-0.2655591070652008,
0.1337442696094513,
0.1617874950170517,
0.21320442855358124,
-0.012155529111623764,
-0.1614893674850464,
-0.4854700565338135,
-0.39080315828323364,
-0.37521395087242126,
0.13839425146579742,
-0.02878536842763424,
0.423898845911026,
-0.23843033611774445,
-0.0837261974811554,
-0.0307916346937418,
-0.22220686078071594,
0.04127210006117821,
0.14749430119991302,
0.15629535913467407,
0.0847359299659729,
0.15932290256023407,
0.19388961791992188,
-0.1541006863117218,
0.2332548201084137,
0.675679087638855,
0.19911828637123108,
-0.7109456658363342,
0.016318950802087784,
-0.21494992077350616,
-0.006897568702697754,
0.10791141539812088,
-0.058300379663705826,
0.007893450558185577,
0.1133909597992897,
0.07057195901870728,
0.057012684643268585,
-0.03290650248527527,
0.3367856740951538,
0.15229888260364532,
-0.38834527134895325,
-0.2892419695854187,
0.3190924823284149,
-0.03937097638845444,
0.14585131406784058,
0.4591701924800873,
0.24383655190467834,
-0.23591668903827667,
0.05869929492473602,
0.1295621544122696,
0.664678156375885,
0.02363314852118492,
0.07752431929111481,
0.4531303644180298,
-0.41371190547943115,
0.512374222278595,
0.2787889838218689,
0.20658574998378754,
-0.2855720818042755,
-0.25377610325813293,
-0.10439891368150711,
-0.00967387855052948,
0.2826729118824005,
-0.03177785873413086,
-0.4097716212272644,
0.1875232756137848,
-0.2855597734451294,
0.052007582038640976,
0.061916425824165344,
0.047235652804374695,
-0.39304351806640625,
-0.1181974858045578,
-0.602684736251831,
0.1748969554901123,
-0.2618330717086792,
0.07177451252937317,
-0.1382182538509369,
-0.15745653212070465,
-0.19566313922405243,
-0.22536852955818176,
-0.2177494615316391,
0.2478007674217224,
-0.21267439424991608,
0.33831310272216797,
-0.3000760078430176,
-0.3416215181350708,
0.05611270293593407,
0.1684679388999939,
0.36023080348968506,
-0.11784283816814423,
-0.04869502782821655,
0.031795382499694824,
-0.0928882583975792,
0.17889238893985748,
0.16451579332351685,
-0.03356623649597168,
0.13160353899002075,
-0.005860496312379837,
-0.37779247760772705,
0.1195056289434433,
0.215328186750412,
-0.31635868549346924,
0.15278947353363037,
0.14665299654006958,
-0.1445477306842804,
-0.14792296290397644,
0.01863480918109417,
-0.17957398295402527,
0.060422029346227646,
-0.16441844403743744,
0.16603051126003265,
0.06437080353498459,
-0.11401857435703278,
-0.04701760411262512,
-0.029401864856481552,
-0.31667280197143555,
-0.08850039541721344,
0.3552420437335968,
-0.030638158321380615,
-0.08576291799545288,
0.46001264452934265,
0.15269653499126434,
-0.19162464141845703,
-0.1214088648557663,
0.12599486112594604,
-0.002106267726048827,
-0.25681641697883606,
0.024101264774799347,
-0.1441812366247177,
0.32315880060195923,
-0.2740529179573059,
0.07499998062849045,
0.09506019949913025,
-0.07882105559110641,
-0.008210226893424988,
-0.44261568784713745,
-0.46709778904914856,
0.03177456185221672,
-0.003545459359884262,
0.10220050066709518,
-0.10942228883504868,
0.06362518668174744,
-0.0723283439874649,
-0.2375706434249878,
-0.3253069519996643,
0.11249545216560364,
-0.21301274001598358,
0.004039982333779335,
0.179176926612854,
-0.026105791330337524,
0.07568275928497314,
0.02601977437734604,
0.21258129179477692,
0.2540634274482727,
0.04537762701511383,
-0.19137823581695557,
-0.23968200385570526,
0.0915972962975502,
-0.11217514425516129,
-0.3776945471763611,
0.04697605222463608,
-0.05489339306950569,
-0.09443485736846924,
-0.14674603939056396,
0.10034461319446564,
0.30121737718582153,
0.005679219961166382,
0.16743874549865723,
0.02123424783349037,
-0.0014865994453430176,
-0.11026863008737564,
0.13128161430358887,
-0.28349602222442627,
0.387664794921875,
0.04464663937687874,
0.48304232954978943,
-0.006609446369111538,
0.05298444628715515,
-0.17858117818832397,
-0.06654063612222672,
0.06585326790809631,
-0.11498204618692398,
0.21321570873260498,
-0.48046445846557617,
0.21658506989479065,
0.37405532598495483,
0.1986411064863205,
0.3794209957122803,
-0.2584018111228943,
-0.08755506575107574,
-0.1333458423614502,
0.26117244362831116,
-0.08209091424942017,
-0.12920807301998138,
0.04484102129936218,
-0.018028624355793,
-0.14164389669895172,
0.26075029373168945,
-0.14409030973911285,
-0.18834508955478668,
0.14447036385536194,
0.07936060428619385,
0.10290426015853882,
0.1321013867855072,
0.25820255279541016,
0.3657360076904297,
-0.12365065515041351,
-0.2185705453157425,
0.13939166069030762,
0.011998634785413742,
0.21032187342643738,
0.6617954969406128,
-0.3502523601055145,
0.11338779330253601,
-0.16255435347557068,
0.1678035706281662,
-0.09841982275247574,
-0.3426961898803711,
-0.11814147233963013,
-0.02224196493625641,
-0.23709070682525635,
0.0698637068271637,
0.3122774660587311,
-0.23567286133766174,
-0.15736180543899536,
-0.04660968855023384,
-0.08368454873561859,
0.06248391419649124,
-0.16622000932693481,
0.2907167375087738,
0.01283450797200203,
-0.05884474515914917,
-0.2917672395706177,
-0.08612465113401413,
-0.06953689455986023,
0.07996026426553726,
0.24100466072559357,
0.2684679329395294,
-0.30314332246780396,
-0.4061773121356964,
0.20452657341957092,
0.30538201332092285,
0.20940077304840088,
-0.380413681268692,
0.35217157006263733,
0.6594058871269226,
0.1301468163728714,
0.19725632667541504,
0.22728168964385986,
0.43887314200401306,
0.4624297618865967,
-0.11624634265899658,
0.15042097866535187,
-0.11490097641944885,
-0.08171065896749496,
-0.0010756980627775192,
0.17466309666633606,
-0.22446507215499878,
0.4098801016807556,
0.39178815484046936,
0.24172315001487732,
-0.15350241959095,
-0.05932729318737984,
0.2633797824382782,
0.1657092273235321,
-0.20849791169166565,
0.3371011018753052,
-0.22828060388565063,
0.03845463693141937,
-0.18911607563495636,
-0.1118481382727623,
-0.5097464323043823,
0.10422768443822861,
0.07641041278839111,
-0.019163182005286217,
0.06673187017440796,
-0.09972898662090302,
0.10255787521600723,
0.01830333285033703,
0.2346036434173584,
0.4482278525829315,
0.24934729933738708,
-0.149331733584404,
-0.2178155779838562,
-0.5801690220832825,
0.18306565284729004,
0.05433832108974457,
-0.29514092206954956,
-0.03132377564907074,
0.21152187883853912,
-0.21656304597854614,
0.23778590559959412,
0.3274283707141876,
0.022305186837911606,
-0.02963486686348915,
0.08129068464040756,
-0.2478894293308258,
-0.1118253618478775,
0.15722790360450745,
-0.045742958784103394,
-0.15312370657920837,
-0.4424077272415161,
0.2904461920261383,
-0.25975462794303894,
0.11069618910551071,
-0.1507495790719986,
0.026719197630882263,
-0.11887232959270477,
-0.3823060989379883,
0.3010265827178955,
0.48010215163230896,
0.48582834005355835,
-0.20509609580039978,
-0.25331273674964905,
-0.15829341113567352,
-0.21666061878204346,
-0.10145995020866394,
0.506662905216217,
0.020570766180753708,
0.5467973947525024,
-0.034873105585575104,
-0.42102178931236267,
-0.4659881293773651,
0.5954373478889465,
-0.1088348850607872,
0.11860612779855728,
-0.0727790892124176,
0.15536844730377197,
-0.16456905007362366,
-0.0012227467959746718,
-0.037326227873563766,
0.24018508195877075,
0.008056316524744034,
0.3546338677406311,
-0.044889185577631,
-0.5433923006057739,
0.3826521933078766,
-0.3062169551849365,
-0.3581138849258423,
-0.04570871591567993,
0.3857444226741791,
0.18431368470191956,
-0.15669503808021545,
-0.3884146213531494,
0.27143236994743347,
0.3947119116783142,
-0.17957404255867004,
-0.29143834114074707,
0.23709754645824432,
0.10019616782665253,
0.09895999729633331,
0.06331726908683777,
0.5780328512191772,
0.05032491683959961,
-0.12075304239988327,
0.43430113792419434,
-0.3278047442436218
] |
https://github.com/huggingface/datasets/issues/4099 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128) | I opened a PR in the original dataset loading script:
- microsoft/unilm#677
and fixed the corresponding dataset script on the Hub:
- https://huggingface.co/datasets/nielsr/XFUN/commit/73ba5e026621e05fb756ae0f267eb49971f70ebd | ## Describe the bug
Error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)" is thrown when downloading dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("nielsr/XFUN", "xfun.ja")
```
## Expected results
Dataset should be downloaded without exceptions
## Actual results
Stack trace (for the second-time execution):
Downloading and preparing dataset xfun/xfun.ja to /root/.cache/huggingface/datasets/nielsr___xfun/xfun.ja/0.0.0/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477...
Downloading data files: 100%
2/2 [00:00<00:00, 88.48it/s]
Extracting data files: 100%
2/2 [00:00<00:00, 79.60it/s]
UnicodeDecodeErrorTraceback (most recent call last)
<ipython-input-31-79c26bd1109c> in <module>
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("nielsr/XFUN", "xfun.ja")
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
604 )
605
--> 606 # By default, return all splits
607 if split is None:
608 split = {s: s for s in self.info.splits}
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
692 Args:
693 split: `datasets.Split` which subset of the data to read.
--> 694
695 Returns:
696 `Dataset`
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys)
/usr/local/lib/python3.6/dist-packages/tqdm/notebook.py in __iter__(self)
252 if not self.disable:
253 self.display(check_delay=False)
--> 254
255 def __iter__(self):
256 try:
/usr/local/lib/python3.6/dist-packages/tqdm/std.py in __iter__(self)
1183 for obj in iterable:
1184 yield obj
-> 1185 return
1186
1187 mininterval = self.mininterval
~/.cache/huggingface/modules/datasets_modules/datasets/nielsr--XFUN/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477/XFUN.py in _generate_examples(self, filepaths)
140 logger.info("Generating examples from = %s", filepath)
141 with open(filepath[0], "r") as f:
--> 142 data = json.load(f)
143
144 for doc in data["documents"]:
/usr/lib/python3.6/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.6/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0 (but reproduced with many previous versions)
- Platform: Docker: Linux da5b74136d6b 5.3.0-1031-azure #32~18.04.1-Ubuntu SMP Mon Jun 22 15:27:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ; Base docker image is : huggingface/transformers-pytorch-cpu
- Python version: 3.6.9
- PyArrow version: 6.0.1
| 23 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Describe the bug
Error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)" is thrown when downloading dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("nielsr/XFUN", "xfun.ja")
```
## Expected results
Dataset should be downloaded without exceptions
## Actual results
Stack trace (for the second-time execution):
Downloading and preparing dataset xfun/xfun.ja to /root/.cache/huggingface/datasets/nielsr___xfun/xfun.ja/0.0.0/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477...
Downloading data files: 100%
2/2 [00:00<00:00, 88.48it/s]
Extracting data files: 100%
2/2 [00:00<00:00, 79.60it/s]
UnicodeDecodeErrorTraceback (most recent call last)
<ipython-input-31-79c26bd1109c> in <module>
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("nielsr/XFUN", "xfun.ja")
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
604 )
605
--> 606 # By default, return all splits
607 if split is None:
608 split = {s: s for s in self.info.splits}
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
692 Args:
693 split: `datasets.Split` which subset of the data to read.
--> 694
695 Returns:
696 `Dataset`
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys)
/usr/local/lib/python3.6/dist-packages/tqdm/notebook.py in __iter__(self)
252 if not self.disable:
253 self.display(check_delay=False)
--> 254
255 def __iter__(self):
256 try:
/usr/local/lib/python3.6/dist-packages/tqdm/std.py in __iter__(self)
1183 for obj in iterable:
1184 yield obj
-> 1185 return
1186
1187 mininterval = self.mininterval
~/.cache/huggingface/modules/datasets_modules/datasets/nielsr--XFUN/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477/XFUN.py in _generate_examples(self, filepaths)
140 logger.info("Generating examples from = %s", filepath)
141 with open(filepath[0], "r") as f:
--> 142 data = json.load(f)
143
144 for doc in data["documents"]:
/usr/lib/python3.6/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.6/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0 (but reproduced with many previous versions)
- Platform: Docker: Linux da5b74136d6b 5.3.0-1031-azure #32~18.04.1-Ubuntu SMP Mon Jun 22 15:27:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ; Base docker image is : huggingface/transformers-pytorch-cpu
- Python version: 3.6.9
- PyArrow version: 6.0.1
I opened a PR in the original dataset loading script:
- microsoft/unilm#677
and fixed the corresponding dataset script on the Hub:
- https://huggingface.co/datasets/nielsr/XFUN/commit/73ba5e026621e05fb756ae0f267eb49971f70ebd | [
-0.2249612659215927,
-0.011080123484134674,
-0.11821454763412476,
0.3766307830810547,
0.4748916029930115,
0.07017090171575546,
0.19218997657299042,
0.42498084902763367,
-0.24204838275909424,
0.23078402876853943,
-0.08927082270383835,
0.11802073568105698,
-0.056294508278369904,
-0.11612605303525925,
-0.026307497173547745,
-0.10487629473209381,
-0.08414114266633987,
0.19831901788711548,
-0.10486669838428497,
0.021139338612556458,
-0.23987673223018646,
0.15730547904968262,
-0.1527586281299591,
0.1366768628358841,
-0.10218925029039383,
-0.09880811721086502,
-0.036016348749399185,
0.42776724696159363,
-0.3105621039867401,
-0.5563288927078247,
0.2730208933353424,
-0.1499936729669571,
0.2355162501335144,
0.46225666999816895,
-0.00010794834088301286,
0.0773506760597229,
0.19757720828056335,
-0.011399573646485806,
-0.35637062788009644,
-0.18129248917102814,
-0.5157776474952698,
-0.09986225515604019,
-0.22215095162391663,
-0.2464134395122528,
0.09643488377332687,
0.04854096472263336,
0.04316573590040207,
-0.41056719422340393,
0.33819952607154846,
0.48655056953430176,
0.226533904671669,
0.21451322734355927,
0.12831954658031464,
0.11305230110883713,
0.07491185516119003,
0.05194631218910217,
-0.03835587203502655,
0.3721809685230255,
0.21210642158985138,
0.394227534532547,
-0.021662570536136627,
0.14201131463050842,
-0.08961611241102219,
0.17430810630321503,
-0.012287311255931854,
0.19864729046821594,
-0.14715591073036194,
-0.40030431747436523,
-0.043057672679424286,
-0.05511212348937988,
0.19633814692497253,
-0.4019670784473419,
-0.40431493520736694,
0.015258647501468658,
0.007723032962530851,
-0.7341346740722656,
0.24614104628562927,
0.1706087589263916,
-0.15467897057533264,
0.2870323956012726,
0.04753757268190384,
0.1360694020986557,
-0.34980490803718567,
0.0847177729010582,
-0.20422692596912384,
0.2783568501472473,
-0.22910602390766144,
-0.09895829111337662,
-0.16938753426074982,
-0.1039222925901413,
0.0960657075047493,
-0.21876244246959686,
-0.13072581589221954,
0.21692660450935364,
-0.24056465923786163,
-0.046208810061216354,
0.06836685538291931,
-0.15426278114318848,
0.26379796862602234,
-0.21472196280956268,
0.09261078387498856,
0.03901705518364906,
-0.13764424622058868,
0.04295451194047928,
0.056754205375909805,
0.10105478763580322,
0.015126191079616547,
0.411814421415329,
0.3566465973854065,
0.35954949259757996,
0.09961147606372833,
-0.07602595537900925,
-0.04306267946958542,
-0.17490291595458984,
0.11559562385082245,
0.3333798348903656,
0.5485195517539978,
-0.40250879526138306,
-0.5407798886299133,
0.1772187352180481,
0.06952593475580215,
-0.1771850734949112,
0.06141003221273422,
0.1359405815601349,
0.14896658062934875,
0.24987921118736267,
-0.15085670351982117,
0.23872843384742737,
-0.2973646819591522,
-0.23161202669143677,
-0.17442463338375092,
-0.004860730841755867,
0.11972315609455109,
0.0734022930264473,
-0.02465519867837429,
0.007800860330462456,
0.06500718742609024,
0.20089781284332275,
0.23847706615924835,
0.035106830298900604,
0.028725387528538704,
-0.22543708980083466,
-0.0583638921380043,
0.12132054567337036,
-0.16078664362430573,
0.17369893193244934,
0.0667828768491745,
-0.05831989273428917,
0.033773429691791534,
0.10122241079807281,
-0.2032390534877777,
-0.11228732764720917,
-0.12745894491672516,
0.2711447775363922,
0.06279222667217255,
-0.09778136014938354,
-0.13311246037483215,
-0.03739326074719429,
0.2790338099002838,
-0.06728557497262955,
0.22424668073654175,
-0.1588774472475052,
-0.262310653924942,
-0.1861727386713028,
0.09488698840141296,
0.33492738008499146,
-0.21931175887584686,
0.017285898327827454,
0.09641487896442413,
0.0007643233984708786,
0.37856560945510864,
0.2703147530555725,
-0.11598674952983856,
-0.009012237191200256,
-0.20199018716812134,
0.24811844527721405,
0.5223243236541748,
-0.39059919118881226,
-0.654930591583252,
0.26289400458335876,
-0.24045978486537933,
0.2044733613729477,
0.09707164764404297,
0.0670001208782196,
0.506752610206604,
-0.031138863414525986,
0.14081552624702454,
0.4689132571220398,
-0.0472944974899292,
0.037105120718479156,
-0.15151157975196838,
-0.20843878388404846,
0.23227369785308838,
0.09187401831150055,
-0.008906055241823196,
0.07259710133075714,
0.2188367247581482,
-0.09881681203842163,
0.48185259103775024,
-0.22874820232391357,
0.08112426102161407,
0.2726559042930603,
0.0873144268989563,
-0.10878142714500427,
-0.001503337174654007,
-0.4128372073173523,
-0.09885979443788528,
0.2809087038040161,
-0.08700462430715561,
-0.08739244937896729,
-0.5638006925582886,
-0.07514676451683044,
-0.39590421319007874,
-0.2362721711397171,
-0.41352537274360657,
-0.22444558143615723,
0.1527039110660553,
0.4441426992416382,
0.1673843264579773,
0.13285143673419952,
-0.3534458577632904,
0.3843112587928772,
-0.18877698481082916,
0.06363948434591293,
-0.252284437417984,
0.3659222424030304,
-0.12472376972436905,
-0.21385475993156433,
0.11150044202804565,
0.10485367476940155,
0.05890084430575371,
-0.15316614508628845,
-0.35138657689094543,
0.3194067180156708,
0.1774144023656845,
-0.05502915382385254,
-0.23800769448280334,
-0.11681433022022247,
0.40829551219940186,
-0.20189259946346283,
-0.02196739800274372,
0.2958199381828308,
0.22544315457344055,
0.1025596484541893,
0.05475108325481415,
0.25686317682266235,
-0.13603980839252472,
-0.0436694398522377,
-0.05449772998690605,
-0.05582283437252045,
0.390914648771286,
0.09737551212310791,
0.06627914309501648,
-0.19260746240615845,
0.2537800073623657,
-0.0573655404150486,
0.29478853940963745,
-0.0648602619767189,
-0.10671694576740265,
0.10018202662467957,
0.7250160574913025,
-0.086369588971138,
0.06428567320108414,
0.1343618631362915,
0.07944963127374649,
0.2467285394668579,
-0.009202815592288971,
0.12388390302658081,
0.27570396661758423,
0.0812278538942337,
0.0017121285200119019,
-0.001534903421998024,
0.056163936853408813,
-0.14708875119686127,
0.18226011097431183,
-0.08047905564308167,
0.06177331879734993,
0.04063910245895386,
-0.07179789245128632,
0.11042801290750504,
-0.2556978762149811,
-0.43747106194496155,
-0.07720191776752472,
0.2967108190059662,
-0.4032234847545624,
0.1171649619936943,
-0.33441632986068726,
-0.23317930102348328,
-0.28763195872306824,
-0.10209953039884567,
-0.23962542414665222,
-0.09638875722885132,
-0.25215959548950195,
0.011194039136171341,
0.021431446075439453,
0.10413454473018646,
-0.32130715250968933,
-0.1306130737066269,
0.2980557978153229,
-0.017281951382756233,
0.0634019523859024,
0.006324633490294218,
-0.16847863793373108,
0.11445637047290802,
0.31379958987236023,
0.06276289373636246,
0.29307740926742554,
-0.3117453455924988,
-0.029138579964637756,
-0.19996114075183868,
-0.08514554798603058,
0.07785584777593613,
-0.0759173333644867,
0.19002443552017212,
-0.05282007157802582,
0.2367749810218811,
-0.08550563454627991,
-0.32484811544418335,
0.061566293239593506,
-0.020392976701259613,
-0.38054969906806946,
0.21907617151737213,
0.10856185853481293,
-0.13726796209812164,
-0.07535164058208466,
-0.24919220805168152,
-0.35374584794044495,
-0.43125268816947937,
-0.046127378940582275,
-0.03538953885436058,
0.2703792452812195,
0.20985537767410278,
-0.13185346126556396,
0.20618028938770294,
0.13893266022205353,
0.06456433981657028,
-0.05630051717162132,
-0.2950124144554138,
0.5078899264335632,
-0.35972586274147034,
-0.36269935965538025,
-0.20782369375228882,
0.01597084477543831,
0.20832198858261108,
0.11921463161706924,
-0.2939997911453247,
0.1115875169634819,
-0.5780037641525269,
0.37978652119636536,
-0.14997878670692444,
0.019677501171827316,
0.1490275114774704,
-0.04298051446676254,
0.012730991467833519,
-0.04682820662856102,
0.04960073158144951,
-0.1234121099114418,
0.1071203425526619,
0.11862850189208984,
0.09650108218193054,
0.5395463705062866,
-0.02226552553474903,
0.16559410095214844,
0.2457311451435089,
-0.008086107671260834,
0.4749949872493744,
-0.15503670275211334,
0.0646250993013382,
0.016462698578834534,
-0.4167361557483673,
0.19207799434661865,
0.054198265075683594,
-0.08037049323320389,
0.20485764741897583,
-0.1476060152053833,
0.08364978432655334,
-0.1161477193236351,
-0.19748495519161224,
-0.2108730673789978,
-0.26066723465919495,
-0.13570204377174377,
-0.1606522649526596,
0.2328106164932251,
-0.09232744574546814,
0.1867917776107788,
0.07558797299861908,
-0.07735924422740936,
0.011179141700267792,
0.11293908208608627,
-0.041296638548374176,
0.042722221463918686,
0.03236529603600502,
0.15901264548301697,
-0.4642372727394104,
0.2115756720304489,
0.49892768263816833,
0.39792075753211975,
-0.03046036884188652,
0.13315469026565552,
0.0070953369140625,
-0.010883616283535957,
0.37291187047958374,
0.06275056302547455,
0.30139315128326416,
0.10339498519897461,
0.15710699558258057,
-0.24944037199020386,
0.01216423511505127,
-0.37712764739990234,
0.40861791372299194,
0.002004910260438919,
0.053771719336509705,
-0.2655591070652008,
0.1337442696094513,
0.1617874950170517,
0.21320442855358124,
-0.012155529111623764,
-0.1614893674850464,
-0.4854700565338135,
-0.39080315828323364,
-0.37521395087242126,
0.13839425146579742,
-0.02878536842763424,
0.423898845911026,
-0.23843033611774445,
-0.0837261974811554,
-0.0307916346937418,
-0.22220686078071594,
0.04127210006117821,
0.14749430119991302,
0.15629535913467407,
0.0847359299659729,
0.15932290256023407,
0.19388961791992188,
-0.1541006863117218,
0.2332548201084137,
0.675679087638855,
0.19911828637123108,
-0.7109456658363342,
0.016318950802087784,
-0.21494992077350616,
-0.006897568702697754,
0.10791141539812088,
-0.058300379663705826,
0.007893450558185577,
0.1133909597992897,
0.07057195901870728,
0.057012684643268585,
-0.03290650248527527,
0.3367856740951538,
0.15229888260364532,
-0.38834527134895325,
-0.2892419695854187,
0.3190924823284149,
-0.03937097638845444,
0.14585131406784058,
0.4591701924800873,
0.24383655190467834,
-0.23591668903827667,
0.05869929492473602,
0.1295621544122696,
0.664678156375885,
0.02363314852118492,
0.07752431929111481,
0.4531303644180298,
-0.41371190547943115,
0.512374222278595,
0.2787889838218689,
0.20658574998378754,
-0.2855720818042755,
-0.25377610325813293,
-0.10439891368150711,
-0.00967387855052948,
0.2826729118824005,
-0.03177785873413086,
-0.4097716212272644,
0.1875232756137848,
-0.2855597734451294,
0.052007582038640976,
0.061916425824165344,
0.047235652804374695,
-0.39304351806640625,
-0.1181974858045578,
-0.602684736251831,
0.1748969554901123,
-0.2618330717086792,
0.07177451252937317,
-0.1382182538509369,
-0.15745653212070465,
-0.19566313922405243,
-0.22536852955818176,
-0.2177494615316391,
0.2478007674217224,
-0.21267439424991608,
0.33831310272216797,
-0.3000760078430176,
-0.3416215181350708,
0.05611270293593407,
0.1684679388999939,
0.36023080348968506,
-0.11784283816814423,
-0.04869502782821655,
0.031795382499694824,
-0.0928882583975792,
0.17889238893985748,
0.16451579332351685,
-0.03356623649597168,
0.13160353899002075,
-0.005860496312379837,
-0.37779247760772705,
0.1195056289434433,
0.215328186750412,
-0.31635868549346924,
0.15278947353363037,
0.14665299654006958,
-0.1445477306842804,
-0.14792296290397644,
0.01863480918109417,
-0.17957398295402527,
0.060422029346227646,
-0.16441844403743744,
0.16603051126003265,
0.06437080353498459,
-0.11401857435703278,
-0.04701760411262512,
-0.029401864856481552,
-0.31667280197143555,
-0.08850039541721344,
0.3552420437335968,
-0.030638158321380615,
-0.08576291799545288,
0.46001264452934265,
0.15269653499126434,
-0.19162464141845703,
-0.1214088648557663,
0.12599486112594604,
-0.002106267726048827,
-0.25681641697883606,
0.024101264774799347,
-0.1441812366247177,
0.32315880060195923,
-0.2740529179573059,
0.07499998062849045,
0.09506019949913025,
-0.07882105559110641,
-0.008210226893424988,
-0.44261568784713745,
-0.46709778904914856,
0.03177456185221672,
-0.003545459359884262,
0.10220050066709518,
-0.10942228883504868,
0.06362518668174744,
-0.0723283439874649,
-0.2375706434249878,
-0.3253069519996643,
0.11249545216560364,
-0.21301274001598358,
0.004039982333779335,
0.179176926612854,
-0.026105791330337524,
0.07568275928497314,
0.02601977437734604,
0.21258129179477692,
0.2540634274482727,
0.04537762701511383,
-0.19137823581695557,
-0.23968200385570526,
0.0915972962975502,
-0.11217514425516129,
-0.3776945471763611,
0.04697605222463608,
-0.05489339306950569,
-0.09443485736846924,
-0.14674603939056396,
0.10034461319446564,
0.30121737718582153,
0.005679219961166382,
0.16743874549865723,
0.02123424783349037,
-0.0014865994453430176,
-0.11026863008737564,
0.13128161430358887,
-0.28349602222442627,
0.387664794921875,
0.04464663937687874,
0.48304232954978943,
-0.006609446369111538,
0.05298444628715515,
-0.17858117818832397,
-0.06654063612222672,
0.06585326790809631,
-0.11498204618692398,
0.21321570873260498,
-0.48046445846557617,
0.21658506989479065,
0.37405532598495483,
0.1986411064863205,
0.3794209957122803,
-0.2584018111228943,
-0.08755506575107574,
-0.1333458423614502,
0.26117244362831116,
-0.08209091424942017,
-0.12920807301998138,
0.04484102129936218,
-0.018028624355793,
-0.14164389669895172,
0.26075029373168945,
-0.14409030973911285,
-0.18834508955478668,
0.14447036385536194,
0.07936060428619385,
0.10290426015853882,
0.1321013867855072,
0.25820255279541016,
0.3657360076904297,
-0.12365065515041351,
-0.2185705453157425,
0.13939166069030762,
0.011998634785413742,
0.21032187342643738,
0.6617954969406128,
-0.3502523601055145,
0.11338779330253601,
-0.16255435347557068,
0.1678035706281662,
-0.09841982275247574,
-0.3426961898803711,
-0.11814147233963013,
-0.02224196493625641,
-0.23709070682525635,
0.0698637068271637,
0.3122774660587311,
-0.23567286133766174,
-0.15736180543899536,
-0.04660968855023384,
-0.08368454873561859,
0.06248391419649124,
-0.16622000932693481,
0.2907167375087738,
0.01283450797200203,
-0.05884474515914917,
-0.2917672395706177,
-0.08612465113401413,
-0.06953689455986023,
0.07996026426553726,
0.24100466072559357,
0.2684679329395294,
-0.30314332246780396,
-0.4061773121356964,
0.20452657341957092,
0.30538201332092285,
0.20940077304840088,
-0.380413681268692,
0.35217157006263733,
0.6594058871269226,
0.1301468163728714,
0.19725632667541504,
0.22728168964385986,
0.43887314200401306,
0.4624297618865967,
-0.11624634265899658,
0.15042097866535187,
-0.11490097641944885,
-0.08171065896749496,
-0.0010756980627775192,
0.17466309666633606,
-0.22446507215499878,
0.4098801016807556,
0.39178815484046936,
0.24172315001487732,
-0.15350241959095,
-0.05932729318737984,
0.2633797824382782,
0.1657092273235321,
-0.20849791169166565,
0.3371011018753052,
-0.22828060388565063,
0.03845463693141937,
-0.18911607563495636,
-0.1118481382727623,
-0.5097464323043823,
0.10422768443822861,
0.07641041278839111,
-0.019163182005286217,
0.06673187017440796,
-0.09972898662090302,
0.10255787521600723,
0.01830333285033703,
0.2346036434173584,
0.4482278525829315,
0.24934729933738708,
-0.149331733584404,
-0.2178155779838562,
-0.5801690220832825,
0.18306565284729004,
0.05433832108974457,
-0.29514092206954956,
-0.03132377564907074,
0.21152187883853912,
-0.21656304597854614,
0.23778590559959412,
0.3274283707141876,
0.022305186837911606,
-0.02963486686348915,
0.08129068464040756,
-0.2478894293308258,
-0.1118253618478775,
0.15722790360450745,
-0.045742958784103394,
-0.15312370657920837,
-0.4424077272415161,
0.2904461920261383,
-0.25975462794303894,
0.11069618910551071,
-0.1507495790719986,
0.026719197630882263,
-0.11887232959270477,
-0.3823060989379883,
0.3010265827178955,
0.48010215163230896,
0.48582834005355835,
-0.20509609580039978,
-0.25331273674964905,
-0.15829341113567352,
-0.21666061878204346,
-0.10145995020866394,
0.506662905216217,
0.020570766180753708,
0.5467973947525024,
-0.034873105585575104,
-0.42102178931236267,
-0.4659881293773651,
0.5954373478889465,
-0.1088348850607872,
0.11860612779855728,
-0.0727790892124176,
0.15536844730377197,
-0.16456905007362366,
-0.0012227467959746718,
-0.037326227873563766,
0.24018508195877075,
0.008056316524744034,
0.3546338677406311,
-0.044889185577631,
-0.5433923006057739,
0.3826521933078766,
-0.3062169551849365,
-0.3581138849258423,
-0.04570871591567993,
0.3857444226741791,
0.18431368470191956,
-0.15669503808021545,
-0.3884146213531494,
0.27143236994743347,
0.3947119116783142,
-0.17957404255867004,
-0.29143834114074707,
0.23709754645824432,
0.10019616782665253,
0.09895999729633331,
0.06331726908683777,
0.5780328512191772,
0.05032491683959961,
-0.12075304239988327,
0.43430113792419434,
-0.3278047442436218
] |
https://github.com/huggingface/datasets/issues/4099 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128) | import sys
sys.getdefaultencoding()
returned: 'utf-8'
---------------------
I've just cloned master branch - your fix works! Thank you! | ## Describe the bug
Error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)" is thrown when downloading dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("nielsr/XFUN", "xfun.ja")
```
## Expected results
Dataset should be downloaded without exceptions
## Actual results
Stack trace (for the second-time execution):
Downloading and preparing dataset xfun/xfun.ja to /root/.cache/huggingface/datasets/nielsr___xfun/xfun.ja/0.0.0/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477...
Downloading data files: 100%
2/2 [00:00<00:00, 88.48it/s]
Extracting data files: 100%
2/2 [00:00<00:00, 79.60it/s]
UnicodeDecodeErrorTraceback (most recent call last)
<ipython-input-31-79c26bd1109c> in <module>
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("nielsr/XFUN", "xfun.ja")
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
604 )
605
--> 606 # By default, return all splits
607 if split is None:
608 split = {s: s for s in self.info.splits}
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
692 Args:
693 split: `datasets.Split` which subset of the data to read.
--> 694
695 Returns:
696 `Dataset`
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys)
/usr/local/lib/python3.6/dist-packages/tqdm/notebook.py in __iter__(self)
252 if not self.disable:
253 self.display(check_delay=False)
--> 254
255 def __iter__(self):
256 try:
/usr/local/lib/python3.6/dist-packages/tqdm/std.py in __iter__(self)
1183 for obj in iterable:
1184 yield obj
-> 1185 return
1186
1187 mininterval = self.mininterval
~/.cache/huggingface/modules/datasets_modules/datasets/nielsr--XFUN/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477/XFUN.py in _generate_examples(self, filepaths)
140 logger.info("Generating examples from = %s", filepath)
141 with open(filepath[0], "r") as f:
--> 142 data = json.load(f)
143
144 for doc in data["documents"]:
/usr/lib/python3.6/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.6/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0 (but reproduced with many previous versions)
- Platform: Docker: Linux da5b74136d6b 5.3.0-1031-azure #32~18.04.1-Ubuntu SMP Mon Jun 22 15:27:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ; Base docker image is : huggingface/transformers-pytorch-cpu
- Python version: 3.6.9
- PyArrow version: 6.0.1
| 17 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Describe the bug
Error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)" is thrown when downloading dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("nielsr/XFUN", "xfun.ja")
```
## Expected results
Dataset should be downloaded without exceptions
## Actual results
Stack trace (for the second-time execution):
Downloading and preparing dataset xfun/xfun.ja to /root/.cache/huggingface/datasets/nielsr___xfun/xfun.ja/0.0.0/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477...
Downloading data files: 100%
2/2 [00:00<00:00, 88.48it/s]
Extracting data files: 100%
2/2 [00:00<00:00, 79.60it/s]
UnicodeDecodeErrorTraceback (most recent call last)
<ipython-input-31-79c26bd1109c> in <module>
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("nielsr/XFUN", "xfun.ja")
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
604 )
605
--> 606 # By default, return all splits
607 if split is None:
608 split = {s: s for s in self.info.splits}
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
692 Args:
693 split: `datasets.Split` which subset of the data to read.
--> 694
695 Returns:
696 `Dataset`
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys)
/usr/local/lib/python3.6/dist-packages/tqdm/notebook.py in __iter__(self)
252 if not self.disable:
253 self.display(check_delay=False)
--> 254
255 def __iter__(self):
256 try:
/usr/local/lib/python3.6/dist-packages/tqdm/std.py in __iter__(self)
1183 for obj in iterable:
1184 yield obj
-> 1185 return
1186
1187 mininterval = self.mininterval
~/.cache/huggingface/modules/datasets_modules/datasets/nielsr--XFUN/e06e948b673d1be9a390a83c05c10e49438bf03dd85ae9a4fe06f8747a724477/XFUN.py in _generate_examples(self, filepaths)
140 logger.info("Generating examples from = %s", filepath)
141 with open(filepath[0], "r") as f:
--> 142 data = json.load(f)
143
144 for doc in data["documents"]:
/usr/lib/python3.6/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.6/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 213: ordinal not in range(128)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0 (but reproduced with many previous versions)
- Platform: Docker: Linux da5b74136d6b 5.3.0-1031-azure #32~18.04.1-Ubuntu SMP Mon Jun 22 15:27:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ; Base docker image is : huggingface/transformers-pytorch-cpu
- Python version: 3.6.9
- PyArrow version: 6.0.1
import sys
sys.getdefaultencoding()
returned: 'utf-8'
---------------------
I've just cloned master branch - your fix works! Thank you! | [
-0.2249612659215927,
-0.011080123484134674,
-0.11821454763412476,
0.3766307830810547,
0.4748916029930115,
0.07017090171575546,
0.19218997657299042,
0.42498084902763367,
-0.24204838275909424,
0.23078402876853943,
-0.08927082270383835,
0.11802073568105698,
-0.056294508278369904,
-0.11612605303525925,
-0.026307497173547745,
-0.10487629473209381,
-0.08414114266633987,
0.19831901788711548,
-0.10486669838428497,
0.021139338612556458,
-0.23987673223018646,
0.15730547904968262,
-0.1527586281299591,
0.1366768628358841,
-0.10218925029039383,
-0.09880811721086502,
-0.036016348749399185,
0.42776724696159363,
-0.3105621039867401,
-0.5563288927078247,
0.2730208933353424,
-0.1499936729669571,
0.2355162501335144,
0.46225666999816895,
-0.00010794834088301286,
0.0773506760597229,
0.19757720828056335,
-0.011399573646485806,
-0.35637062788009644,
-0.18129248917102814,
-0.5157776474952698,
-0.09986225515604019,
-0.22215095162391663,
-0.2464134395122528,
0.09643488377332687,
0.04854096472263336,
0.04316573590040207,
-0.41056719422340393,
0.33819952607154846,
0.48655056953430176,
0.226533904671669,
0.21451322734355927,
0.12831954658031464,
0.11305230110883713,
0.07491185516119003,
0.05194631218910217,
-0.03835587203502655,
0.3721809685230255,
0.21210642158985138,
0.394227534532547,
-0.021662570536136627,
0.14201131463050842,
-0.08961611241102219,
0.17430810630321503,
-0.012287311255931854,
0.19864729046821594,
-0.14715591073036194,
-0.40030431747436523,
-0.043057672679424286,
-0.05511212348937988,
0.19633814692497253,
-0.4019670784473419,
-0.40431493520736694,
0.015258647501468658,
0.007723032962530851,
-0.7341346740722656,
0.24614104628562927,
0.1706087589263916,
-0.15467897057533264,
0.2870323956012726,
0.04753757268190384,
0.1360694020986557,
-0.34980490803718567,
0.0847177729010582,
-0.20422692596912384,
0.2783568501472473,
-0.22910602390766144,
-0.09895829111337662,
-0.16938753426074982,
-0.1039222925901413,
0.0960657075047493,
-0.21876244246959686,
-0.13072581589221954,
0.21692660450935364,
-0.24056465923786163,
-0.046208810061216354,
0.06836685538291931,
-0.15426278114318848,
0.26379796862602234,
-0.21472196280956268,
0.09261078387498856,
0.03901705518364906,
-0.13764424622058868,
0.04295451194047928,
0.056754205375909805,
0.10105478763580322,
0.015126191079616547,
0.411814421415329,
0.3566465973854065,
0.35954949259757996,
0.09961147606372833,
-0.07602595537900925,
-0.04306267946958542,
-0.17490291595458984,
0.11559562385082245,
0.3333798348903656,
0.5485195517539978,
-0.40250879526138306,
-0.5407798886299133,
0.1772187352180481,
0.06952593475580215,
-0.1771850734949112,
0.06141003221273422,
0.1359405815601349,
0.14896658062934875,
0.24987921118736267,
-0.15085670351982117,
0.23872843384742737,
-0.2973646819591522,
-0.23161202669143677,
-0.17442463338375092,
-0.004860730841755867,
0.11972315609455109,
0.0734022930264473,
-0.02465519867837429,
0.007800860330462456,
0.06500718742609024,
0.20089781284332275,
0.23847706615924835,
0.035106830298900604,
0.028725387528538704,
-0.22543708980083466,
-0.0583638921380043,
0.12132054567337036,
-0.16078664362430573,
0.17369893193244934,
0.0667828768491745,
-0.05831989273428917,
0.033773429691791534,
0.10122241079807281,
-0.2032390534877777,
-0.11228732764720917,
-0.12745894491672516,
0.2711447775363922,
0.06279222667217255,
-0.09778136014938354,
-0.13311246037483215,
-0.03739326074719429,
0.2790338099002838,
-0.06728557497262955,
0.22424668073654175,
-0.1588774472475052,
-0.262310653924942,
-0.1861727386713028,
0.09488698840141296,
0.33492738008499146,
-0.21931175887584686,
0.017285898327827454,
0.09641487896442413,
0.0007643233984708786,
0.37856560945510864,
0.2703147530555725,
-0.11598674952983856,
-0.009012237191200256,
-0.20199018716812134,
0.24811844527721405,
0.5223243236541748,
-0.39059919118881226,
-0.654930591583252,
0.26289400458335876,
-0.24045978486537933,
0.2044733613729477,
0.09707164764404297,
0.0670001208782196,
0.506752610206604,
-0.031138863414525986,
0.14081552624702454,
0.4689132571220398,
-0.0472944974899292,
0.037105120718479156,
-0.15151157975196838,
-0.20843878388404846,
0.23227369785308838,
0.09187401831150055,
-0.008906055241823196,
0.07259710133075714,
0.2188367247581482,
-0.09881681203842163,
0.48185259103775024,
-0.22874820232391357,
0.08112426102161407,
0.2726559042930603,
0.0873144268989563,
-0.10878142714500427,
-0.001503337174654007,
-0.4128372073173523,
-0.09885979443788528,
0.2809087038040161,
-0.08700462430715561,
-0.08739244937896729,
-0.5638006925582886,
-0.07514676451683044,
-0.39590421319007874,
-0.2362721711397171,
-0.41352537274360657,
-0.22444558143615723,
0.1527039110660553,
0.4441426992416382,
0.1673843264579773,
0.13285143673419952,
-0.3534458577632904,
0.3843112587928772,
-0.18877698481082916,
0.06363948434591293,
-0.252284437417984,
0.3659222424030304,
-0.12472376972436905,
-0.21385475993156433,
0.11150044202804565,
0.10485367476940155,
0.05890084430575371,
-0.15316614508628845,
-0.35138657689094543,
0.3194067180156708,
0.1774144023656845,
-0.05502915382385254,
-0.23800769448280334,
-0.11681433022022247,
0.40829551219940186,
-0.20189259946346283,
-0.02196739800274372,
0.2958199381828308,
0.22544315457344055,
0.1025596484541893,
0.05475108325481415,
0.25686317682266235,
-0.13603980839252472,
-0.0436694398522377,
-0.05449772998690605,
-0.05582283437252045,
0.390914648771286,
0.09737551212310791,
0.06627914309501648,
-0.19260746240615845,
0.2537800073623657,
-0.0573655404150486,
0.29478853940963745,
-0.0648602619767189,
-0.10671694576740265,
0.10018202662467957,
0.7250160574913025,
-0.086369588971138,
0.06428567320108414,
0.1343618631362915,
0.07944963127374649,
0.2467285394668579,
-0.009202815592288971,
0.12388390302658081,
0.27570396661758423,
0.0812278538942337,
0.0017121285200119019,
-0.001534903421998024,
0.056163936853408813,
-0.14708875119686127,
0.18226011097431183,
-0.08047905564308167,
0.06177331879734993,
0.04063910245895386,
-0.07179789245128632,
0.11042801290750504,
-0.2556978762149811,
-0.43747106194496155,
-0.07720191776752472,
0.2967108190059662,
-0.4032234847545624,
0.1171649619936943,
-0.33441632986068726,
-0.23317930102348328,
-0.28763195872306824,
-0.10209953039884567,
-0.23962542414665222,
-0.09638875722885132,
-0.25215959548950195,
0.011194039136171341,
0.021431446075439453,
0.10413454473018646,
-0.32130715250968933,
-0.1306130737066269,
0.2980557978153229,
-0.017281951382756233,
0.0634019523859024,
0.006324633490294218,
-0.16847863793373108,
0.11445637047290802,
0.31379958987236023,
0.06276289373636246,
0.29307740926742554,
-0.3117453455924988,
-0.029138579964637756,
-0.19996114075183868,
-0.08514554798603058,
0.07785584777593613,
-0.0759173333644867,
0.19002443552017212,
-0.05282007157802582,
0.2367749810218811,
-0.08550563454627991,
-0.32484811544418335,
0.061566293239593506,
-0.020392976701259613,
-0.38054969906806946,
0.21907617151737213,
0.10856185853481293,
-0.13726796209812164,
-0.07535164058208466,
-0.24919220805168152,
-0.35374584794044495,
-0.43125268816947937,
-0.046127378940582275,
-0.03538953885436058,
0.2703792452812195,
0.20985537767410278,
-0.13185346126556396,
0.20618028938770294,
0.13893266022205353,
0.06456433981657028,
-0.05630051717162132,
-0.2950124144554138,
0.5078899264335632,
-0.35972586274147034,
-0.36269935965538025,
-0.20782369375228882,
0.01597084477543831,
0.20832198858261108,
0.11921463161706924,
-0.2939997911453247,
0.1115875169634819,
-0.5780037641525269,
0.37978652119636536,
-0.14997878670692444,
0.019677501171827316,
0.1490275114774704,
-0.04298051446676254,
0.012730991467833519,
-0.04682820662856102,
0.04960073158144951,
-0.1234121099114418,
0.1071203425526619,
0.11862850189208984,
0.09650108218193054,
0.5395463705062866,
-0.02226552553474903,
0.16559410095214844,
0.2457311451435089,
-0.008086107671260834,
0.4749949872493744,
-0.15503670275211334,
0.0646250993013382,
0.016462698578834534,
-0.4167361557483673,
0.19207799434661865,
0.054198265075683594,
-0.08037049323320389,
0.20485764741897583,
-0.1476060152053833,
0.08364978432655334,
-0.1161477193236351,
-0.19748495519161224,
-0.2108730673789978,
-0.26066723465919495,
-0.13570204377174377,
-0.1606522649526596,
0.2328106164932251,
-0.09232744574546814,
0.1867917776107788,
0.07558797299861908,
-0.07735924422740936,
0.011179141700267792,
0.11293908208608627,
-0.041296638548374176,
0.042722221463918686,
0.03236529603600502,
0.15901264548301697,
-0.4642372727394104,
0.2115756720304489,
0.49892768263816833,
0.39792075753211975,
-0.03046036884188652,
0.13315469026565552,
0.0070953369140625,
-0.010883616283535957,
0.37291187047958374,
0.06275056302547455,
0.30139315128326416,
0.10339498519897461,
0.15710699558258057,
-0.24944037199020386,
0.01216423511505127,
-0.37712764739990234,
0.40861791372299194,
0.002004910260438919,
0.053771719336509705,
-0.2655591070652008,
0.1337442696094513,
0.1617874950170517,
0.21320442855358124,
-0.012155529111623764,
-0.1614893674850464,
-0.4854700565338135,
-0.39080315828323364,
-0.37521395087242126,
0.13839425146579742,
-0.02878536842763424,
0.423898845911026,
-0.23843033611774445,
-0.0837261974811554,
-0.0307916346937418,
-0.22220686078071594,
0.04127210006117821,
0.14749430119991302,
0.15629535913467407,
0.0847359299659729,
0.15932290256023407,
0.19388961791992188,
-0.1541006863117218,
0.2332548201084137,
0.675679087638855,
0.19911828637123108,
-0.7109456658363342,
0.016318950802087784,
-0.21494992077350616,
-0.006897568702697754,
0.10791141539812088,
-0.058300379663705826,
0.007893450558185577,
0.1133909597992897,
0.07057195901870728,
0.057012684643268585,
-0.03290650248527527,
0.3367856740951538,
0.15229888260364532,
-0.38834527134895325,
-0.2892419695854187,
0.3190924823284149,
-0.03937097638845444,
0.14585131406784058,
0.4591701924800873,
0.24383655190467834,
-0.23591668903827667,
0.05869929492473602,
0.1295621544122696,
0.664678156375885,
0.02363314852118492,
0.07752431929111481,
0.4531303644180298,
-0.41371190547943115,
0.512374222278595,
0.2787889838218689,
0.20658574998378754,
-0.2855720818042755,
-0.25377610325813293,
-0.10439891368150711,
-0.00967387855052948,
0.2826729118824005,
-0.03177785873413086,
-0.4097716212272644,
0.1875232756137848,
-0.2855597734451294,
0.052007582038640976,
0.061916425824165344,
0.047235652804374695,
-0.39304351806640625,
-0.1181974858045578,
-0.602684736251831,
0.1748969554901123,
-0.2618330717086792,
0.07177451252937317,
-0.1382182538509369,
-0.15745653212070465,
-0.19566313922405243,
-0.22536852955818176,
-0.2177494615316391,
0.2478007674217224,
-0.21267439424991608,
0.33831310272216797,
-0.3000760078430176,
-0.3416215181350708,
0.05611270293593407,
0.1684679388999939,
0.36023080348968506,
-0.11784283816814423,
-0.04869502782821655,
0.031795382499694824,
-0.0928882583975792,
0.17889238893985748,
0.16451579332351685,
-0.03356623649597168,
0.13160353899002075,
-0.005860496312379837,
-0.37779247760772705,
0.1195056289434433,
0.215328186750412,
-0.31635868549346924,
0.15278947353363037,
0.14665299654006958,
-0.1445477306842804,
-0.14792296290397644,
0.01863480918109417,
-0.17957398295402527,
0.060422029346227646,
-0.16441844403743744,
0.16603051126003265,
0.06437080353498459,
-0.11401857435703278,
-0.04701760411262512,
-0.029401864856481552,
-0.31667280197143555,
-0.08850039541721344,
0.3552420437335968,
-0.030638158321380615,
-0.08576291799545288,
0.46001264452934265,
0.15269653499126434,
-0.19162464141845703,
-0.1214088648557663,
0.12599486112594604,
-0.002106267726048827,
-0.25681641697883606,
0.024101264774799347,
-0.1441812366247177,
0.32315880060195923,
-0.2740529179573059,
0.07499998062849045,
0.09506019949913025,
-0.07882105559110641,
-0.008210226893424988,
-0.44261568784713745,
-0.46709778904914856,
0.03177456185221672,
-0.003545459359884262,
0.10220050066709518,
-0.10942228883504868,
0.06362518668174744,
-0.0723283439874649,
-0.2375706434249878,
-0.3253069519996643,
0.11249545216560364,
-0.21301274001598358,
0.004039982333779335,
0.179176926612854,
-0.026105791330337524,
0.07568275928497314,
0.02601977437734604,
0.21258129179477692,
0.2540634274482727,
0.04537762701511383,
-0.19137823581695557,
-0.23968200385570526,
0.0915972962975502,
-0.11217514425516129,
-0.3776945471763611,
0.04697605222463608,
-0.05489339306950569,
-0.09443485736846924,
-0.14674603939056396,
0.10034461319446564,
0.30121737718582153,
0.005679219961166382,
0.16743874549865723,
0.02123424783349037,
-0.0014865994453430176,
-0.11026863008737564,
0.13128161430358887,
-0.28349602222442627,
0.387664794921875,
0.04464663937687874,
0.48304232954978943,
-0.006609446369111538,
0.05298444628715515,
-0.17858117818832397,
-0.06654063612222672,
0.06585326790809631,
-0.11498204618692398,
0.21321570873260498,
-0.48046445846557617,
0.21658506989479065,
0.37405532598495483,
0.1986411064863205,
0.3794209957122803,
-0.2584018111228943,
-0.08755506575107574,
-0.1333458423614502,
0.26117244362831116,
-0.08209091424942017,
-0.12920807301998138,
0.04484102129936218,
-0.018028624355793,
-0.14164389669895172,
0.26075029373168945,
-0.14409030973911285,
-0.18834508955478668,
0.14447036385536194,
0.07936060428619385,
0.10290426015853882,
0.1321013867855072,
0.25820255279541016,
0.3657360076904297,
-0.12365065515041351,
-0.2185705453157425,
0.13939166069030762,
0.011998634785413742,
0.21032187342643738,
0.6617954969406128,
-0.3502523601055145,
0.11338779330253601,
-0.16255435347557068,
0.1678035706281662,
-0.09841982275247574,
-0.3426961898803711,
-0.11814147233963013,
-0.02224196493625641,
-0.23709070682525635,
0.0698637068271637,
0.3122774660587311,
-0.23567286133766174,
-0.15736180543899536,
-0.04660968855023384,
-0.08368454873561859,
0.06248391419649124,
-0.16622000932693481,
0.2907167375087738,
0.01283450797200203,
-0.05884474515914917,
-0.2917672395706177,
-0.08612465113401413,
-0.06953689455986023,
0.07996026426553726,
0.24100466072559357,
0.2684679329395294,
-0.30314332246780396,
-0.4061773121356964,
0.20452657341957092,
0.30538201332092285,
0.20940077304840088,
-0.380413681268692,
0.35217157006263733,
0.6594058871269226,
0.1301468163728714,
0.19725632667541504,
0.22728168964385986,
0.43887314200401306,
0.4624297618865967,
-0.11624634265899658,
0.15042097866535187,
-0.11490097641944885,
-0.08171065896749496,
-0.0010756980627775192,
0.17466309666633606,
-0.22446507215499878,
0.4098801016807556,
0.39178815484046936,
0.24172315001487732,
-0.15350241959095,
-0.05932729318737984,
0.2633797824382782,
0.1657092273235321,
-0.20849791169166565,
0.3371011018753052,
-0.22828060388565063,
0.03845463693141937,
-0.18911607563495636,
-0.1118481382727623,
-0.5097464323043823,
0.10422768443822861,
0.07641041278839111,
-0.019163182005286217,
0.06673187017440796,
-0.09972898662090302,
0.10255787521600723,
0.01830333285033703,
0.2346036434173584,
0.4482278525829315,
0.24934729933738708,
-0.149331733584404,
-0.2178155779838562,
-0.5801690220832825,
0.18306565284729004,
0.05433832108974457,
-0.29514092206954956,
-0.03132377564907074,
0.21152187883853912,
-0.21656304597854614,
0.23778590559959412,
0.3274283707141876,
0.022305186837911606,
-0.02963486686348915,
0.08129068464040756,
-0.2478894293308258,
-0.1118253618478775,
0.15722790360450745,
-0.045742958784103394,
-0.15312370657920837,
-0.4424077272415161,
0.2904461920261383,
-0.25975462794303894,
0.11069618910551071,
-0.1507495790719986,
0.026719197630882263,
-0.11887232959270477,
-0.3823060989379883,
0.3010265827178955,
0.48010215163230896,
0.48582834005355835,
-0.20509609580039978,
-0.25331273674964905,
-0.15829341113567352,
-0.21666061878204346,
-0.10145995020866394,
0.506662905216217,
0.020570766180753708,
0.5467973947525024,
-0.034873105585575104,
-0.42102178931236267,
-0.4659881293773651,
0.5954373478889465,
-0.1088348850607872,
0.11860612779855728,
-0.0727790892124176,
0.15536844730377197,
-0.16456905007362366,
-0.0012227467959746718,
-0.037326227873563766,
0.24018508195877075,
0.008056316524744034,
0.3546338677406311,
-0.044889185577631,
-0.5433923006057739,
0.3826521933078766,
-0.3062169551849365,
-0.3581138849258423,
-0.04570871591567993,
0.3857444226741791,
0.18431368470191956,
-0.15669503808021545,
-0.3884146213531494,
0.27143236994743347,
0.3947119116783142,
-0.17957404255867004,
-0.29143834114074707,
0.23709754645824432,
0.10019616782665253,
0.09895999729633331,
0.06331726908683777,
0.5780328512191772,
0.05032491683959961,
-0.12075304239988327,
0.43430113792419434,
-0.3278047442436218
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | Hi @jacobbieker, thanks for your request and study of possible alternatives.
We are very interested in finding a way to make `datasets` useful to you.
Looking at the Zarr docs, I saw that among its storage alternatives, there is the ZIP file format: https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ZipStore
This might be convenient for many reasons:
- On the one hand, we avoid the Git issue with huge number of small files: chunks files are compressed into a single ZIP file
- On the other hand, the ZIP file format is specially suited for streaming data because it allows random access to its component files (i.e. it supports random access to its chunks)
Anyway, I think that a Python loading script will be necessary: you need to implement additional logic to select certain chunks (based on date or other criteria).
Please, let me know if this makes sense to you. | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 145 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
Hi @jacobbieker, thanks for your request and study of possible alternatives.
We are very interested in finding a way to make `datasets` useful to you.
Looking at the Zarr docs, I saw that among its storage alternatives, there is the ZIP file format: https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ZipStore
This might be convenient for many reasons:
- On the one hand, we avoid the Git issue with huge number of small files: chunks files are compressed into a single ZIP file
- On the other hand, the ZIP file format is specially suited for streaming data because it allows random access to its component files (i.e. it supports random access to its chunks)
Anyway, I think that a Python loading script will be necessary: you need to implement additional logic to select certain chunks (based on date or other criteria).
Please, let me know if this makes sense to you. | [
-0.3244534134864807,
-0.12639868259429932,
-0.02510545216500759,
-0.19540421664714813,
0.031852565705776215,
0.10994995385408401,
0.04600340873003006,
0.23520907759666443,
0.30418914556503296,
0.3589913249015808,
-0.3856135904788971,
0.2067563831806183,
-0.1894843727350235,
0.6700432300567627,
0.0357847698032856,
-0.1144961267709732,
-0.030699290335178375,
0.14430835843086243,
0.13459329307079315,
0.12364597618579865,
0.23303526639938354,
-0.02100171335041523,
0.025028832256793976,
-0.24615101516246796,
-0.007276078686118126,
0.037229303270578384,
-0.16170957684516907,
0.08360818028450012,
-0.14806754887104034,
-0.28008925914764404,
0.3458501100540161,
0.3046472668647766,
0.44486093521118164,
-0.015363059937953949,
-0.00010822678450495005,
-0.08994992077350616,
0.1474989354610443,
-0.19105562567710876,
-0.18580381572246552,
-0.36722564697265625,
-0.05499109998345375,
-0.23891139030456543,
-0.25166648626327515,
0.05432646721601486,
-0.08648091554641724,
-0.5253785252571106,
0.050925422459840775,
-0.1624002605676651,
0.152345210313797,
-0.05228685215115547,
0.1156700998544693,
-0.11773694306612015,
-0.20169638097286224,
-0.15843921899795532,
0.359470397233963,
0.5364902019500732,
-0.3964326083660126,
0.13727371394634247,
0.3034026622772217,
0.08339289575815201,
0.03064204752445221,
0.39918404817581177,
-0.2849448323249817,
-0.01251758262515068,
0.23109707236289978,
-0.0952666848897934,
-0.8210728764533997,
-0.24620965123176575,
-0.18911150097846985,
0.3320733904838562,
0.5592511296272278,
-0.25242549180984497,
-0.6185964345932007,
-0.19432991743087769,
0.022131238132715225,
-0.26359933614730835,
-0.2533194124698639,
0.3430514335632324,
-0.14468495547771454,
0.2567284107208252,
-0.37043988704681396,
-0.2781742513179779,
-0.39420270919799805,
0.33577072620391846,
0.1658131331205368,
0.5089249610900879,
0.05943896621465683,
-0.10491827875375748,
0.02617988921701908,
0.0036085043102502823,
0.45551976561546326,
-0.2883254289627075,
0.07412314414978027,
0.08086109161376953,
-0.368874192237854,
-0.22116601467132568,
-0.06338793784379959,
0.05612247437238693,
0.4965049624443054,
0.5259575843811035,
0.25923195481300354,
0.2886006534099579,
-0.08662597090005875,
0.030425311997532845,
-0.00412924587726593,
0.09215304255485535,
-0.2783191204071045,
-0.22472743690013885,
0.297821968793869,
0.23741084337234497,
0.17644400894641876,
-0.26304009556770325,
-0.0184624120593071,
0.44705820083618164,
-0.2905782461166382,
-0.09853656589984894,
0.06932881474494934,
-0.35087570548057556,
0.08484645932912827,
-0.13448786735534668,
-0.364206999540329,
-0.1761406809091568,
-0.13429494202136993,
0.15139007568359375,
0.0084849176928401,
0.24667823314666748,
-0.15401580929756165,
0.20887432992458344,
0.14401641488075256,
-0.27053430676460266,
-0.04684939607977867,
-0.04866659268736839,
0.10024023056030273,
0.6436652541160583,
0.1771763414144516,
-0.34273824095726013,
0.1485995203256607,
-0.040655333548784256,
0.5118091106414795,
0.16616125404834747,
0.22760595381259918,
-0.18166007101535797,
0.17445002496242523,
0.17119906842708588,
-0.024277007207274437,
-0.05206111818552017,
-0.10420867800712585,
0.4369170665740967,
-0.1287587434053421,
0.0515219047665596,
-0.30089738965034485,
-0.6411982178688049,
-0.13343508541584015,
0.028330232948064804,
-0.032529570162296295,
-0.178834930062294,
-0.3058377802371979,
0.263225793838501,
-0.4528177082538605,
-0.26082804799079895,
-0.2995695471763611,
0.21576356887817383,
-0.20016080141067505,
-0.023668058216571808,
0.292970210313797,
0.15603742003440857,
-0.0642746165394783,
0.18953493237495422,
-0.20876416563987732,
0.21313616633415222,
0.38215193152427673,
0.14615865051746368,
-0.4295944273471832,
0.19582679867744446,
-0.21772344410419464,
0.06333249807357788,
0.37163010239601135,
-0.32739657163619995,
-0.19232599437236786,
0.2860592305660248,
0.21172191202640533,
0.21015937626361847,
0.15855731070041656,
0.07825631648302078,
0.4345865845680237,
0.0626896396279335,
-0.24837371706962585,
0.4976966977119446,
-0.2553069293498993,
0.18794609606266022,
-0.23799802362918854,
-0.30750134587287903,
-0.2035503089427948,
0.5544261932373047,
-0.17801158130168915,
-0.058906786143779755,
0.2299637794494629,
0.1444971263408661,
0.3629184663295746,
-0.2726607024669647,
0.1418161243200302,
0.0540793240070343,
0.0790347009897232,
0.2983662784099579,
-0.1992933303117752,
-0.0934179425239563,
-0.3704449534416199,
0.052072711288928986,
-0.25853240489959717,
0.14037035405635834,
0.16578884422779083,
-0.15742427110671997,
-0.0915224552154541,
0.03632950037717819,
-0.024397294968366623,
-0.09651505947113037,
0.03539947420358658,
0.26966798305511475,
0.0345245860517025,
-0.07834191620349884,
-0.11527520418167114,
0.3744424283504486,
0.3088652789592743,
-0.11298289895057678,
0.00978761911392212,
0.5695868134498596,
-0.05559568852186203,
-0.06115949898958206,
0.25621920824050903,
-0.041563212871551514,
0.041979193687438965,
-0.09419530630111694,
-0.1908072829246521,
0.1789354681968689,
0.02508995682001114,
0.22688916325569153,
0.3046852648258209,
0.4163140058517456,
0.3971042037010193,
-0.056989140808582306,
0.182602196931839,
0.10152767598628998,
-0.010219035670161247,
0.1358763873577118,
-0.45208999514579773,
0.24326935410499573,
0.01572202891111374,
-0.10673742741346359,
-0.1884007453918457,
0.14809995889663696,
0.17126160860061646,
0.016947802156209946,
-0.15107044577598572,
-0.044461820274591446,
-0.023298781365156174,
-0.23937417566776276,
-0.11776363849639893,
-0.27830076217651367,
-0.3883724510669708,
0.21232196688652039,
0.21756915748119354,
0.06807206571102142,
-0.3633785843849182,
0.15281367301940918,
-0.06119868904352188,
-0.2019835114479065,
0.5052999258041382,
0.32353919744491577,
0.22221148014068604,
0.42193734645843506,
-0.12036463618278503,
-0.010210642591118813,
0.14542698860168457,
-0.07408557832241058,
0.044546447694301605,
0.16689947247505188,
0.2518346607685089,
0.26639682054519653,
0.3225848972797394,
0.15663911402225494,
-0.17198684811592102,
-0.6023992896080017,
-0.0931343212723732,
-0.18534643948078156,
0.23064738512039185,
-0.20626722276210785,
-0.2306061089038849,
-0.3773496448993683,
-0.016900617629289627,
-0.04400030896067619,
-0.1408698558807373,
-0.30887702107429504,
0.11650529503822327,
0.4106318950653076,
-0.35308152437210083,
-0.03371827304363251,
-0.05438186973333359,
0.3377528786659241,
-0.3694020211696625,
-0.22294069826602936,
-0.39750760793685913,
-0.04933202266693115,
-0.004859708249568939,
0.03456506505608559,
0.0334433913230896,
-0.1573307067155838,
0.47439688444137573,
0.2824932336807251,
0.2718682289123535,
-0.6137343645095825,
-0.05671466141939163,
0.2347823679447174,
-0.05449051409959793,
-0.14480212330818176,
-0.04634907841682434,
0.10976099222898483,
0.09641394019126892,
-0.07025168091058731,
0.1353626400232315,
-0.0020957551896572113,
0.09876208007335663,
-0.06323334574699402,
0.08400687575340271,
0.11603148281574249,
-0.06965907663106918,
-0.0553465411067009,
-0.4535234272480011,
-0.65581214427948,
-0.2890189290046692,
-0.0819629654288292,
0.1753457486629486,
-0.05009584128856659,
-0.05282701924443245,
-0.2815485894680023,
-0.28483283519744873,
-0.33567625284194946,
0.012729496695101261,
-0.5366084575653076,
0.4892578125,
-0.3883165121078491,
-0.23323582112789154,
0.12826068699359894,
0.2735314965248108,
-0.07766450941562653,
0.27417224645614624,
-0.25687408447265625,
-0.07393764704465866,
-0.004872282966971397,
0.0068337582051754,
-0.0924878865480423,
-0.21706843376159668,
0.4291139841079712,
0.013625562191009521,
-0.03411531075835228,
0.04992992430925369,
-0.26301130652427673,
-0.03708890825510025,
0.38885045051574707,
0.09118644893169403,
0.20805618166923523,
-0.018967092037200928,
0.1744353324174881,
0.5295077562332153,
0.1040770411491394,
0.26597869396209717,
0.6530154943466187,
0.19087998569011688,
-0.03318733349442482,
-0.2619130313396454,
-0.12085943669080734,
0.006657563149929047,
-0.13195037841796875,
-0.0722055658698082,
0.3045651316642761,
0.21234896779060364,
-0.17188477516174316,
-0.3845486640930176,
-0.22235038876533508,
0.3276330232620239,
-0.0782078206539154,
0.09639941900968552,
-0.04563009738922119,
0.41999006271362305,
-0.103823721408844,
-0.12917739152908325,
-0.19893679022789001,
-0.32638102769851685,
0.21166251599788666,
-0.019283324480056763,
0.4360233545303345,
0.3485850393772125,
-0.17668238282203674,
0.23163479566574097,
-0.24127796292304993,
0.3804885745048523,
0.3366672396659851,
-0.16824905574321747,
-0.12450043857097626,
-0.09769758582115173,
0.1454816460609436,
0.018209338188171387,
0.09387478232383728,
-0.4191674292087555,
-0.25624698400497437,
0.03572910651564598,
-0.23110154271125793,
0.12426010519266129,
-0.24853606522083282,
0.08300276100635529,
-0.36129090189933777,
-0.2772033214569092,
0.6704244017601013,
-0.11239931732416153,
-0.4368078410625458,
-0.006943561136722565,
0.09680952876806259,
-0.14995212852954865,
-0.056748971343040466,
0.22086460888385773,
-0.12227966636419296,
-0.43333229422569275,
-0.06763694435358047,
-0.2697350084781647,
0.19853344559669495,
-0.025979191064834595,
-0.23415912687778473,
0.11638081073760986,
0.4402272701263428,
0.08895695209503174,
-0.05198201537132263,
0.2445152997970581,
0.10940898209810257,
0.05152345076203346,
0.0482453890144825,
0.1956247240304947,
0.32621508836746216,
0.4613841772079468,
0.4546765685081482,
-0.010992348194122314,
-0.0413813591003418,
0.005616503767669201,
0.16228817403316498,
0.07715601474046707,
0.15911029279232025,
-0.051785118877887726,
-0.04630936682224274,
0.2703946828842163,
-0.4392760396003723,
0.07224863767623901,
-0.002682732418179512,
-0.464546799659729,
-0.2876729667186737,
-0.21100012958049774,
0.3139903247356415,
-0.036970317363739014,
-0.03342298045754433,
0.10082989931106567,
0.001956343650817871,
0.02570011280477047,
0.5739312767982483,
0.42971503734588623,
0.995631217956543,
-0.3209052085876465,
0.27015814185142517,
0.009014425799250603,
-0.30119746923446655,
0.09524375945329666,
-0.7281836271286011,
0.06865686178207397,
-0.1974528580904007,
-0.322897732257843,
-0.16140218079090118,
0.08801466226577759,
0.1484910100698471,
0.0437295101583004,
-0.16140151023864746,
0.09492754191160202,
0.5079082250595093,
0.4913312494754791,
-0.1255863457918167,
0.3474576473236084,
-0.06443768739700317,
-0.5341829657554626,
-0.26927199959754944,
0.1697593331336975,
-0.2269580215215683,
0.1358008086681366,
0.05485247075557709,
-0.5227397680282593,
-0.007045309990644455,
0.21805278956890106,
-0.2575019299983978,
0.26824715733528137,
0.08141625672578812,
-0.17980241775512695,
-0.3862091302871704,
0.0033217668533325195,
-0.03716089949011803,
0.17990534007549286,
-0.1970077008008957,
-0.04381262883543968,
-0.3573695421218872,
-0.04749693349003792,
-0.1318487524986267,
0.08698392659425735,
-0.22454988956451416,
-0.10995781421661377,
0.09308340400457382,
-0.26058220863342285,
-0.03597523272037506,
0.1778099536895752,
0.035051435232162476,
-0.3461518883705139,
-0.30262622237205505,
-0.03609635680913925,
0.24170932173728943,
-0.20420995354652405,
0.025694530457258224,
0.17353737354278564,
0.03543344512581825,
-0.09627047181129456,
0.05329125002026558,
-0.04673831909894943,
0.12912596762180328,
0.017538931220769882,
0.047434259206056595,
0.08914782106876373,
-0.20228107273578644,
0.19896280765533447,
-0.0973060354590416,
0.25355690717697144,
0.05485302954912186,
0.00969630852341652,
-0.06764879822731018,
-0.08760400116443634,
0.003764204680919647,
-0.2689775824546814,
-0.2497480809688568,
-0.016571812331676483,
-0.1088486909866333,
-0.0914604663848877,
-0.024817874655127525,
0.42775723338127136,
0.10937684774398804,
-0.3046603500843048,
-0.04904840514063835,
-0.28067463636398315,
-0.14322203397750854,
0.21072779595851898,
-0.11707891523838043,
0.24061839282512665,
0.07454755157232285,
0.12643840909004211,
-0.04774242639541626,
-0.05323784053325653,
-0.3041500151157379,
-0.1917268931865692,
0.05362102389335632,
-0.0031798668205738068,
-0.20057538151741028,
0.03674647957086563,
0.30620935559272766,
0.02512684464454651,
-0.037405792623758316,
-0.14338253438472748,
-0.33434146642684937,
-0.09749533981084824,
0.042185310274362564,
0.16168025135993958,
0.28859585523605347,
-0.06447333097457886,
-0.14330649375915527,
-0.1160418689250946,
-0.039476778358221054,
-0.26975688338279724,
0.2968699634075165,
0.006966020911931992,
-0.21202819049358368,
-0.08428798615932465,
0.06831874698400497,
-0.13197994232177734,
-0.35120922327041626,
0.09752407670021057,
0.36597734689712524,
0.12353233993053436,
-0.053068820387125015,
0.010648757219314575,
0.04856633022427559,
-0.3187282383441925,
-0.09486988186836243,
0.05286455899477005,
0.45580196380615234,
-0.0018717125058174133,
0.683603823184967,
0.1778145134449005,
0.08647182583808899,
0.33794474601745605,
0.4222109019756317,
-0.2828156352043152,
-0.003862569807097316,
0.10360748320817947,
0.16779044270515442,
0.1619713455438614,
-0.09534132480621338,
-0.22500255703926086,
0.06452318280935287,
0.02114832028746605,
-0.025777168571949005,
0.21422743797302246,
0.6152609586715698,
0.10823307931423187,
0.014346599578857422,
-0.11246558278799057,
0.321384459733963,
0.06068205088376999,
0.06693439930677414,
0.0808754563331604,
0.03156669810414314,
0.0999453142285347,
-0.21464289724826813,
-0.06579999625682831,
0.1453086882829666,
-0.07207490503787994,
-0.12302013486623764,
0.3594004809856415,
0.19424152374267578,
-0.038860682398080826,
0.05044378340244293,
-0.5862839221954346,
-0.03787921741604805,
-0.06911680102348328,
0.4448584020137787,
0.12453100085258484,
-0.03282997012138367,
-0.10107337683439255,
0.4674718677997589,
-0.45892533659935,
-0.22295881807804108,
0.4394504129886627,
0.33634403347969055,
0.1874973028898239,
0.12173672020435333,
-0.08137191832065582,
-0.14988821744918823,
0.30982208251953125,
0.16670915484428406,
0.058730680495500565,
0.3116856515407562,
0.07874549925327301,
0.17538928985595703,
-0.24077190458774567,
0.13396430015563965,
0.19805508852005005,
0.2444777488708496,
-0.14651533961296082,
0.1880812644958496,
0.08913758397102356,
-0.2763632535934448,
-0.011753711849451065,
0.09413415193557739,
0.17976123094558716,
0.07602509111166,
0.17638598382472992,
0.22771212458610535,
-0.35866689682006836,
0.14846935868263245,
0.2937385141849518,
0.06507030129432678,
0.045337382704019547,
-0.002214547246694565,
0.5085961818695068,
0.026551486924290657,
-0.008530236780643463,
0.07627065479755402,
-0.3399978578090668,
-0.041181039065122604,
-0.0012191543355584145,
0.14412811398506165,
0.4613555669784546,
-0.0016007833182811737,
0.04537500813603401,
-0.01810557395219803,
-0.09329581260681152,
-0.05491242557764053,
0.0870593786239624,
-0.005256442353129387,
0.05886761099100113,
-0.07064946740865707,
0.09503122419118881,
0.00915963388979435,
0.2954058349132538,
0.12191808223724365,
-0.0038464702665805817,
-0.08831813186407089,
-0.28251636028289795,
-0.03919919580221176,
-0.19478201866149902,
0.05042697489261627,
0.05678904056549072,
-0.016065564006567,
-0.08913980424404144,
0.2994803488254547,
0.11898500472307205,
-0.17728526890277863,
-0.26607847213745117,
0.268709272146225,
0.3229810297489166,
-0.2918883264064789,
0.2615005075931549,
0.09353524446487427,
0.1832345426082611,
0.05301975458860397,
-0.11856319010257721,
0.2598456144332886,
0.031633175909519196,
0.009165283292531967,
-0.005312172695994377,
0.011487118899822235,
-0.15424220263957977,
-0.4742719233036041,
0.3823295533657074,
-0.2201101928949356,
-0.0801333338022232,
-0.10200297832489014,
-0.064910888671875,
-0.17318937182426453,
0.10082050412893295,
0.0007201489061117172,
-0.1259860396385193,
0.04303913936018944,
0.5253340005874634,
-0.14554832875728607,
-0.02724790945649147,
-0.3048963248729706,
0.27893099188804626,
-0.14623349905014038,
-0.21257571876049042,
0.002947654575109482,
-0.13239173591136932,
-0.20782530307769775,
0.024129260331392288,
0.17904992401599884,
0.09939846396446228,
0.059064432978630066,
-0.11059918999671936,
-0.35996168851852417,
-0.26020708680152893,
0.5436626672744751,
0.1358603835105896,
-0.00734449177980423,
0.21863587200641632,
0.06519336998462677,
0.2325412631034851,
0.03371696174144745,
-0.3141406774520874,
0.07352808862924576,
0.07043950259685516,
0.051809776574373245,
0.3895750045776367,
0.5458821654319763,
0.2503735423088074,
-0.20393653213977814,
-0.12045757472515106,
0.1573466956615448,
0.08728089928627014,
-0.09314509481191635,
-0.20762164890766144,
0.08431421965360641
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | Ah okay, I missed the option of zip files for zarr, I'll try that with our repos and see if it works! Thanks a lot! | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 25 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
Ah okay, I missed the option of zip files for zarr, I'll try that with our repos and see if it works! Thanks a lot! | [
-0.30690452456474304,
-0.1402798891067505,
-0.02689996175467968,
-0.20030204951763153,
0.016946952790021896,
0.08815271407365799,
0.04732124134898186,
0.25285661220550537,
0.2585313022136688,
0.3653847575187683,
-0.38941726088523865,
0.2703041434288025,
-0.16435891389846802,
0.6827341914176941,
0.023509204387664795,
-0.09820377826690674,
-0.04529135674238205,
0.11754681169986725,
0.08638521283864975,
0.10374873876571655,
0.2141367495059967,
0.02889079973101616,
0.03127244859933853,
-0.2574760913848877,
-0.009262027218937874,
0.04308474063873291,
-0.17508724331855774,
0.10481967031955719,
-0.1922779679298401,
-0.25835472345352173,
0.35809704661369324,
0.3277183473110199,
0.44655799865722656,
-0.022622965276241302,
-0.00010733889939729124,
-0.10991199314594269,
0.15583392977714539,
-0.1852373331785202,
-0.2189946472644806,
-0.3826867938041687,
-0.027236904948949814,
-0.305728942155838,
-0.2589780390262604,
0.04853755980730057,
-0.07561321556568146,
-0.4942665994167328,
0.05507143586874008,
-0.14927929639816284,
0.20641008019447327,
-0.03632252663373947,
0.12544716894626617,
-0.10631147027015686,
-0.16944792866706848,
-0.19273515045642853,
0.3800773322582245,
0.5306224226951599,
-0.4211331307888031,
0.1247682273387909,
0.2881496548652649,
0.05565641075372696,
0.0011029914021492004,
0.4190860390663147,
-0.2657236158847809,
-0.0021045561879873276,
0.2704589366912842,
-0.08631337434053421,
-0.8219614028930664,
-0.21774402260780334,
-0.17840689420700073,
0.3407454192638397,
0.5483688116073608,
-0.2644650638103485,
-0.6198551654815674,
-0.20573878288269043,
0.009678337723016739,
-0.3019796311855316,
-0.18998131155967712,
0.3269018232822418,
-0.17675644159317017,
0.24485258758068085,
-0.36565712094306946,
-0.27261969447135925,
-0.3725034296512604,
0.3303951621055603,
0.1455226093530655,
0.5711240172386169,
0.030804220587015152,
-0.10700786858797073,
0.060411106795072556,
0.007738560438156128,
0.4547271430492401,
-0.28921109437942505,
0.0896405577659607,
0.09166300296783447,
-0.33914774656295776,
-0.23236101865768433,
-0.027261294424533844,
0.059286199510097504,
0.5140760540962219,
0.5380434989929199,
0.2314871996641159,
0.25941887497901917,
-0.08180305361747742,
0.00865015760064125,
0.005322996526956558,
0.13074152171611786,
-0.2775031626224518,
-0.22642171382904053,
0.3009399175643921,
0.26250165700912476,
0.19156412780284882,
-0.2853516936302185,
0.018346086144447327,
0.41920140385627747,
-0.2863876223564148,
-0.06052025407552719,
0.07651550322771072,
-0.3278842866420746,
0.10303627699613571,
-0.14775735139846802,
-0.3260575532913208,
-0.21227341890335083,
-0.17665411531925201,
0.14547765254974365,
-0.0035396695602685213,
0.21697330474853516,
-0.2017272710800171,
0.20862668752670288,
0.15296904742717743,
-0.22116431593894958,
-0.04970576986670494,
-0.07122677564620972,
0.08037041127681732,
0.6305273175239563,
0.19114889204502106,
-0.321389377117157,
0.1695251166820526,
-0.06648220121860504,
0.5009600520133972,
0.2016666829586029,
0.2562175393104553,
-0.1635303795337677,
0.1789996176958084,
0.15204603970050812,
-0.03420403227210045,
-0.04720146954059601,
-0.06183365359902382,
0.4332003593444824,
-0.15909337997436523,
0.06877648830413818,
-0.3062537610530853,
-0.6182264089584351,
-0.12692393362522125,
0.03973142057657242,
-0.0644378662109375,
-0.17481790482997894,
-0.24987846612930298,
0.2378903329372406,
-0.442412406206131,
-0.28046005964279175,
-0.2765626609325409,
0.2505384087562561,
-0.21819469332695007,
-0.037055570632219315,
0.2697654068470001,
0.15570363402366638,
-0.07914161682128906,
0.18373547494411469,
-0.2528934180736542,
0.1961822360754013,
0.3820890784263611,
0.13257989287376404,
-0.4367198050022125,
0.19798898696899414,
-0.250374436378479,
0.06836146116256714,
0.3921143710613251,
-0.30178341269493103,
-0.21556204557418823,
0.31269392371177673,
0.17902180552482605,
0.2441476434469223,
0.1769598424434662,
0.057763777673244476,
0.40528422594070435,
0.053566642105579376,
-0.22224053740501404,
0.45855480432510376,
-0.2615474462509155,
0.1562042087316513,
-0.24707311391830444,
-0.3009099066257477,
-0.1708715558052063,
0.5153993368148804,
-0.17338018119335175,
-0.01906951516866684,
0.19238221645355225,
0.06727175414562225,
0.36209431290626526,
-0.24734386801719666,
0.13651028275489807,
0.03657691553235054,
0.07790324091911316,
0.3183637261390686,
-0.20520451664924622,
-0.055261049419641495,
-0.3853108584880829,
0.07067463546991348,
-0.304179847240448,
0.13066506385803223,
0.10610828548669815,
-0.1707911342382431,
-0.10058225691318512,
0.028197335079312325,
-0.01545439288020134,
-0.12285327911376953,
0.0504225417971611,
0.2880300283432007,
0.07003253698348999,
-0.09408172965049744,
-0.11466002464294434,
0.4013603627681732,
0.3421410918235779,
-0.1114778146147728,
-0.02143659070134163,
0.5606381893157959,
-0.07512719184160233,
-0.06540938466787338,
0.26439234614372253,
-0.055394433438777924,
0.03711465746164322,
-0.10124977678060532,
-0.19770461320877075,
0.1734468936920166,
0.00843680277466774,
0.19372625648975372,
0.31082284450531006,
0.3805385231971741,
0.3534027934074402,
-0.07807544618844986,
0.19429557025432587,
0.11359541118144989,
-0.03085344284772873,
0.1451815664768219,
-0.4934113919734955,
0.2605549693107605,
0.005985688418149948,
-0.1102728322148323,
-0.1963925063610077,
0.15273384749889374,
0.20315426588058472,
0.004196006804704666,
-0.1924106925725937,
-0.014771271497011185,
-0.0360330305993557,
-0.2130657285451889,
-0.08981909602880478,
-0.268159955739975,
-0.3311746120452881,
0.24208468198776245,
0.25493115186691284,
0.07181441783905029,
-0.35184136033058167,
0.19406282901763916,
-0.036191217601299286,
-0.19314560294151306,
0.5137460231781006,
0.3137941062450409,
0.2836626172065735,
0.4426712095737457,
-0.09259223937988281,
-0.01499641127884388,
0.11348319798707962,
-0.09233282506465912,
0.044991426169872284,
0.15370497107505798,
0.22672311961650848,
0.2746889591217041,
0.2902779281139374,
0.1498602032661438,
-0.18890315294265747,
-0.576206386089325,
-0.09710495173931122,
-0.17704622447490692,
0.21554219722747803,
-0.20387549698352814,
-0.2082010805606842,
-0.3944939374923706,
-0.006422334350645542,
-0.025160767138004303,
-0.14816705882549286,
-0.3240402340888977,
0.15801480412483215,
0.38442233204841614,
-0.3626161515712738,
-0.008519692346453667,
0.005768686532974243,
0.3238438665866852,
-0.35171493887901306,
-0.21632850170135498,
-0.4015754759311676,
-0.05243866518139839,
-0.00033115968108177185,
0.05226890370249748,
0.03696775808930397,
-0.16882357001304626,
0.4807293713092804,
0.2841385304927826,
0.2827601432800293,
-0.648931086063385,
-0.0796591192483902,
0.2416900396347046,
-0.09162026643753052,
-0.10335630178451538,
-0.016856372356414795,
0.14373177289962769,
0.10345721244812012,
-0.06538235396146774,
0.17328739166259766,
0.02261357195675373,
0.08964567631483078,
-0.06526762247085571,
0.10128748416900635,
0.1225232481956482,
-0.08766142278909683,
-0.06782471388578415,
-0.43212440609931946,
-0.6822317242622375,
-0.21280057728290558,
-0.07716911286115646,
0.16668817400932312,
-0.026005547493696213,
-0.04187479615211487,
-0.27203118801116943,
-0.2704586684703827,
-0.3557848334312439,
-0.0070718275383114815,
-0.5643410682678223,
0.4981035590171814,
-0.377065509557724,
-0.2179573029279709,
0.12676545977592468,
0.2730391025543213,
-0.052782926708459854,
0.2595563530921936,
-0.2425576001405716,
-0.06907855719327927,
-0.02400326170027256,
0.05218661203980446,
-0.11952665448188782,
-0.16311675310134888,
0.48320335149765015,
0.032115235924720764,
-0.048728495836257935,
0.0584382563829422,
-0.2559898793697357,
-0.04939582198858261,
0.3391529321670532,
0.10698059946298599,
0.1880338191986084,
-0.03244444727897644,
0.16752618551254272,
0.546880841255188,
0.1131337583065033,
0.31369492411613464,
0.6698391437530518,
0.20826435089111328,
0.00009398534893989563,
-0.2640698254108429,
-0.14562760293483734,
-0.012805991806089878,
-0.12080755829811096,
-0.055700547993183136,
0.3289370536804199,
0.23183304071426392,
-0.18695293366909027,
-0.3871285021305084,
-0.2219819873571396,
0.3170521855354309,
-0.08639085292816162,
0.13669461011886597,
-0.014240369200706482,
0.3681125044822693,
-0.08509282767772675,
-0.12648142874240875,
-0.21773859858512878,
-0.29700538516044617,
0.20822276175022125,
-0.03179191052913666,
0.45403745770454407,
0.3261161744594574,
-0.17724333703517914,
0.16505734622478485,
-0.23311901092529297,
0.3714606761932373,
0.3430594801902771,
-0.2280469387769699,
-0.12067253887653351,
-0.12425563484430313,
0.10912178456783295,
0.0059395115822553635,
0.14537107944488525,
-0.41359755396842957,
-0.2803628444671631,
0.06420624256134033,
-0.20429043471813202,
0.10928110033273697,
-0.2384449988603592,
0.07344633340835571,
-0.3652069568634033,
-0.3002912700176239,
0.7044263482093811,
-0.1357765793800354,
-0.41305628418922424,
-0.014364447444677353,
0.07381948828697205,
-0.1301758736371994,
-0.07768236845731735,
0.21147514879703522,
-0.11455988883972168,
-0.46281272172927856,
-0.08709128946065903,
-0.2772691249847412,
0.15100526809692383,
-0.02094183675944805,
-0.2530325949192047,
0.15568099915981293,
0.3994118273258209,
0.06238749623298645,
-0.07638183236122131,
0.24507898092269897,
0.10631681978702545,
0.04008079692721367,
0.05690564960241318,
0.1905992031097412,
0.26169276237487793,
0.47380226850509644,
0.4105525612831116,
-0.01154114305973053,
-0.06664471328258514,
0.007264952175319195,
0.1192115917801857,
0.11563710868358612,
0.14382104575634003,
-0.06228681653738022,
-0.06971795856952667,
0.31341254711151123,
-0.43930625915527344,
0.053169336169958115,
0.0016666827723383904,
-0.45565786957740784,
-0.2585686445236206,
-0.19901657104492188,
0.3275531828403473,
-0.033777546137571335,
-0.029082641005516052,
0.15866035223007202,
-0.0382428914308548,
0.03622372820973396,
0.5255422592163086,
0.3698459565639496,
1.0297197103500366,
-0.2701365351676941,
0.2893965542316437,
0.03375711664557457,
-0.2946886718273163,
0.11827035248279572,
-0.7443497180938721,
0.06386123597621918,
-0.1592809408903122,
-0.33644983172416687,
-0.15452463924884796,
0.08551959693431854,
0.1608816385269165,
0.07007579505443573,
-0.2210862636566162,
0.0922304019331932,
0.49681955575942993,
0.4645804464817047,
-0.10151974856853485,
0.31660357117652893,
-0.1288800984621048,
-0.5337062478065491,
-0.2825576066970825,
0.1824263483285904,
-0.19050206243991852,
0.18226978182792664,
0.0635673925280571,
-0.5395711064338684,
-0.06503425538539886,
0.16971400380134583,
-0.23011067509651184,
0.2763853073120117,
0.03132956102490425,
-0.18123216927051544,
-0.36073213815689087,
0.044096872210502625,
-0.07980377227067947,
0.16375645995140076,
-0.1768730729818344,
-0.027815934270620346,
-0.3613296151161194,
-0.05272495374083519,
-0.09918568283319473,
0.08390996605157852,
-0.24490705132484436,
-0.09075341373682022,
0.10671157389879227,
-0.2703123390674591,
-0.035370029509067535,
0.1733388900756836,
0.00440409779548645,
-0.30930930376052856,
-0.2966007590293884,
-0.055688053369522095,
0.2413983941078186,
-0.22769656777381897,
0.04449161887168884,
0.1472165584564209,
0.009533196687698364,
-0.11873894929885864,
0.07028825581073761,
-0.04016878455877304,
0.1179533451795578,
0.011941693723201752,
0.020780783146619797,
0.11579617857933044,
-0.21149100363254547,
0.1985522210597992,
-0.10838643461465836,
0.2619519829750061,
0.04184544458985329,
0.009745795279741287,
-0.07062839716672897,
-0.09234358370304108,
0.014391280710697174,
-0.2824956476688385,
-0.2629530727863312,
0.0036438507959246635,
-0.09082376956939697,
-0.12246304750442505,
-0.0752248615026474,
0.4463299810886383,
0.15312007069587708,
-0.2716474235057831,
-0.0227223951369524,
-0.2324621081352234,
-0.14235398173332214,
0.20536352694034576,
-0.08914713561534882,
0.2385835349559784,
0.059954434633255005,
0.13123846054077148,
0.008789017796516418,
-0.05504164099693298,
-0.32529327273368835,
-0.21577119827270508,
0.06064818054437637,
-0.019613981246948242,
-0.1678769737482071,
0.023696215823292732,
0.3376600444316864,
0.021180957555770874,
-0.022964419797062874,
-0.09570808708667755,
-0.35099706053733826,
-0.11593376845121384,
0.03159048780798912,
0.15238870680332184,
0.2842932343482971,
-0.08079216629266739,
-0.08007325232028961,
-0.07732214778661728,
-0.04142768308520317,
-0.25687268376350403,
0.27610453963279724,
-0.024257007986307144,
-0.1955374926328659,
-0.08817330002784729,
0.07963547110557556,
-0.13790711760520935,
-0.35739630460739136,
0.061651863157749176,
0.3610992729663849,
0.14693820476531982,
-0.050598494708538055,
0.0037545152008533478,
-0.01920129545032978,
-0.31409531831741333,
-0.09955384582281113,
0.07245723903179169,
0.43593257665634155,
0.009892677888274193,
0.6800917983055115,
0.17543619871139526,
0.055247921496629715,
0.30905795097351074,
0.4040795862674713,
-0.2916022539138794,
0.025784408673644066,
0.1128203421831131,
0.1880929172039032,
0.17043712735176086,
-0.10508601367473602,
-0.2192363291978836,
0.05228887125849724,
0.012218713760375977,
0.006164316087961197,
0.2117919921875,
0.5549732446670532,
0.12055106461048126,
0.043936945497989655,
-0.11099141836166382,
0.3085481524467468,
0.0671534612774849,
0.06929504871368408,
0.11909040808677673,
0.02669595554471016,
0.10246653109788895,
-0.21701742708683014,
-0.09289240837097168,
0.13158395886421204,
-0.09454654157161713,
-0.12561404705047607,
0.3513249158859253,
0.14308352768421173,
-0.028000887483358383,
0.042866554111242294,
-0.6092099547386169,
-0.044010575860738754,
-0.06231781840324402,
0.44403597712516785,
0.13582848012447357,
-0.027109265327453613,
-0.0731121078133583,
0.4394018352031708,
-0.440480500459671,
-0.20976655185222626,
0.4644453227519989,
0.31089040637016296,
0.18857426941394806,
0.09642307460308075,
-0.1012936681509018,
-0.16263270378112793,
0.29273319244384766,
0.18771420419216156,
0.05679740384221077,
0.349700391292572,
0.06498262286186218,
0.19078296422958374,
-0.19663703441619873,
0.13920804858207703,
0.14757606387138367,
0.24009644985198975,
-0.14404071867465973,
0.21071244776248932,
0.10463850945234299,
-0.30374693870544434,
-0.03035762533545494,
0.07443585991859436,
0.19316215813159943,
0.06547851115465164,
0.2038382887840271,
0.21841631829738617,
-0.3460247218608856,
0.12831637263298035,
0.2641240060329437,
0.0690457746386528,
0.05007624998688698,
0.002190602943301201,
0.4968395531177521,
0.0440332368016243,
-0.054182425141334534,
0.08807426691055298,
-0.3545673191547394,
-0.07294534146785736,
-0.002758723683655262,
0.1353594809770584,
0.4430728256702423,
-0.014367442578077316,
0.04923101142048836,
-0.06731938570737839,
-0.12863962352275848,
-0.050122782588005066,
0.053122442215681076,
0.015640437602996826,
0.05594000965356827,
-0.09692360460758209,
0.10369361191987991,
0.01014644280076027,
0.2922038733959198,
0.12745673954486847,
-0.009089931845664978,
-0.11484446376562119,
-0.2857291102409363,
-0.0594894178211689,
-0.19282284379005432,
0.020367324352264404,
0.07647904753684998,
-0.014714328572154045,
-0.08031093329191208,
0.2999238669872284,
0.14611303806304932,
-0.1793910712003708,
-0.28821855783462524,
0.30158913135528564,
0.3126353323459625,
-0.31612783670425415,
0.21962060034275055,
0.11960279941558838,
0.2029041200876236,
0.07591559737920761,
-0.12918278574943542,
0.24568361043930054,
0.06235833093523979,
0.023054160177707672,
0.013641961850225925,
-0.0009284839034080505,
-0.14363662898540497,
-0.4790504276752472,
0.38755539059638977,
-0.2291412055492401,
-0.08681090176105499,
-0.09499629586935043,
-0.08706240355968475,
-0.14125950634479523,
0.12863636016845703,
0.03199400380253792,
-0.14369651675224304,
0.07790283858776093,
0.5425006151199341,
-0.15705841779708862,
-0.007508471608161926,
-0.3433542251586914,
0.26667216420173645,
-0.13368776440620422,
-0.21251001954078674,
0.015872297808527946,
-0.09111464768648148,
-0.19954368472099304,
0.016285110265016556,
0.16231513023376465,
0.12708532810211182,
0.06522445380687714,
-0.10006003081798553,
-0.37377339601516724,
-0.2772079110145569,
0.5616515278816223,
0.1399131417274475,
-0.03560876101255417,
0.2281656265258789,
0.046648912131786346,
0.21371141076087952,
0.021375782787799835,
-0.31302788853645325,
0.09333550184965134,
0.06530692428350449,
0.07881845533847809,
0.38612666726112366,
0.537868082523346,
0.24774344265460968,
-0.21686580777168274,
-0.12064102292060852,
0.18399539589881897,
0.10468513518571854,
-0.09181637316942215,
-0.17651596665382385,
0.05444362759590149
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | On behalf of the Zarr developers, let me say THANK YOU for working to support Zarr on HF! 🙏 Zarr is a 100% open-source and community driven project (fiscally sponsored by NumFocus). We see it as an ideal format for ML training datasets, particularly in scientific domains.
I think the solution of zipping the Zarr store is a reasonable way to balance the constraints of Git LFS with the structure of Zarr.
It would be amazing to get something on the [Hugging Face Datasets Docs](https://huggingface.co/docs/datasets/index) about how to best work with Zarr. Let me know if there's a way I could help with that effort. | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 105 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
On behalf of the Zarr developers, let me say THANK YOU for working to support Zarr on HF! 🙏 Zarr is a 100% open-source and community driven project (fiscally sponsored by NumFocus). We see it as an ideal format for ML training datasets, particularly in scientific domains.
I think the solution of zipping the Zarr store is a reasonable way to balance the constraints of Git LFS with the structure of Zarr.
It would be amazing to get something on the [Hugging Face Datasets Docs](https://huggingface.co/docs/datasets/index) about how to best work with Zarr. Let me know if there's a way I could help with that effort. | [
-0.2788940966129303,
-0.14777211844921112,
-0.02981726825237274,
-0.1854163408279419,
0.041601717472076416,
0.10000624507665634,
0.06658702343702316,
0.20968155562877655,
0.2738592326641083,
0.33962202072143555,
-0.38272997736930847,
0.2304084151983261,
-0.19778791069984436,
0.6521243453025818,
-0.00146446842700243,
-0.1133146584033966,
-0.045933373272418976,
0.11292150616645813,
0.14091067016124725,
0.11528521776199341,
0.24864929914474487,
-0.008913995698094368,
0.005300894379615784,
-0.2633339762687683,
-0.02731015905737877,
0.06117130070924759,
-0.1500602513551712,
0.09894469380378723,
-0.21295468509197235,
-0.2813294529914856,
0.3844596743583679,
0.3146480321884155,
0.43083852529525757,
-0.019150160253047943,
-0.00010804425983224064,
-0.10395725071430206,
0.18446117639541626,
-0.1852445751428604,
-0.1956680417060852,
-0.38051629066467285,
-0.056989796459674835,
-0.25335797667503357,
-0.27762749791145325,
0.05518088489770889,
-0.06523766368627548,
-0.5140129923820496,
0.035809166729450226,
-0.12523728609085083,
0.16097840666770935,
-0.03423723205924034,
0.11195366084575653,
-0.12044189125299454,
-0.17650176584720612,
-0.1473923623561859,
0.3643561899662018,
0.5511552691459656,
-0.4075978100299835,
0.11675053834915161,
0.2898867130279541,
0.10257527977228165,
0.017787225544452667,
0.4241548180580139,
-0.287030428647995,
-0.0308946892619133,
0.24271419644355774,
-0.1123337596654892,
-0.8420900702476501,
-0.23431804776191711,
-0.17550182342529297,
0.31362754106521606,
0.575813889503479,
-0.26966553926467896,
-0.5951115489006042,
-0.21117445826530457,
0.023024819791316986,
-0.2812145948410034,
-0.22853505611419678,
0.2716149389743805,
-0.1493007242679596,
0.22119168937206268,
-0.38315439224243164,
-0.2770836055278778,
-0.3941117525100708,
0.33561182022094727,
0.1482960432767868,
0.5225217342376709,
0.054911430925130844,
-0.10998242348432541,
0.026696715503931046,
-0.0034432299435138702,
0.467009037733078,
-0.2683417797088623,
0.08001875877380371,
0.11095559597015381,
-0.39716488122940063,
-0.21743367612361908,
-0.03227583318948746,
0.06039779633283615,
0.49283546209335327,
0.5492962002754211,
0.2640150487422943,
0.2759990692138672,
-0.10010708123445511,
0.04362967982888222,
0.020348601043224335,
0.11888347566127777,
-0.2783227264881134,
-0.26322323083877563,
0.28732332587242126,
0.237935870885849,
0.19222135841846466,
-0.26844319701194763,
-0.00956759974360466,
0.4323878288269043,
-0.29098957777023315,
-0.09254458546638489,
0.08143018186092377,
-0.33647072315216064,
0.10547604411840439,
-0.14519859850406647,
-0.3582293391227722,
-0.20055340230464935,
-0.13110530376434326,
0.1421126127243042,
0.0018892427906394005,
0.24260622262954712,
-0.19189128279685974,
0.20920880138874054,
0.15828007459640503,
-0.22746005654335022,
-0.04937659576535225,
-0.06900058686733246,
0.08163319528102875,
0.624772846698761,
0.2056502252817154,
-0.31310054659843445,
0.14675483107566833,
-0.03854849562048912,
0.5294990539550781,
0.1680392473936081,
0.23106321692466736,
-0.15904831886291504,
0.17834588885307312,
0.15388865768909454,
-0.03984440863132477,
-0.03331853821873665,
-0.10359124839305878,
0.45640289783477783,
-0.123609758913517,
0.07016944140195847,
-0.3050221800804138,
-0.6556461453437805,
-0.1367628276348114,
0.03891716152429581,
-0.06361254304647446,
-0.19125254452228546,
-0.29198214411735535,
0.2415296584367752,
-0.44249197840690613,
-0.285374253988266,
-0.2701381742954254,
0.22028836607933044,
-0.17813178896903992,
-0.02507278323173523,
0.286735475063324,
0.1364525705575943,
-0.021213911473751068,
0.18460166454315186,
-0.24974586069583893,
0.19996961951255798,
0.3768729269504547,
0.13044708967208862,
-0.4379565715789795,
0.19548267126083374,
-0.20979703962802887,
0.052931562066078186,
0.4058421850204468,
-0.3206201195716858,
-0.21102312207221985,
0.2725675702095032,
0.18138237297534943,
0.21766161918640137,
0.15095672011375427,
0.07548659294843674,
0.42293599247932434,
0.07548200339078903,
-0.26409485936164856,
0.4807271361351013,
-0.26089558005332947,
0.16433963179588318,
-0.2487248033285141,
-0.2627616822719574,
-0.20194318890571594,
0.535533607006073,
-0.19149057567119598,
-0.048350222408771515,
0.21482086181640625,
0.17368653416633606,
0.3618033230304718,
-0.23504889011383057,
0.14339131116867065,
0.037544116377830505,
0.10575614869594574,
0.3181436061859131,
-0.16952276229858398,
-0.0747985690832138,
-0.36376774311065674,
0.054994188249111176,
-0.25838136672973633,
0.1627851128578186,
0.16548138856887817,
-0.1424403339624405,
-0.12981843948364258,
0.024516044184565544,
-0.031450849026441574,
-0.13224424421787262,
0.04880445450544357,
0.25602877140045166,
0.04223957285284996,
-0.06681078672409058,
-0.11428384482860565,
0.3713836967945099,
0.31162580847740173,
-0.11484126001596451,
-0.0037228725850582123,
0.5659904479980469,
-0.07502546906471252,
-0.05302000790834427,
0.244602769613266,
-0.02691861242055893,
0.04491645097732544,
-0.06824658066034317,
-0.1954563558101654,
0.16583240032196045,
0.03813009336590767,
0.23319776356220245,
0.29608631134033203,
0.4075273275375366,
0.3960956037044525,
-0.053804196417331696,
0.19158804416656494,
0.0874456912279129,
-0.0077595096081495285,
0.12874281406402588,
-0.44836321473121643,
0.22524049878120422,
-0.033393744379282,
-0.10722766071557999,
-0.18170993030071259,
0.15173955261707306,
0.17537015676498413,
0.022088851779699326,
-0.1763191968202591,
-0.02977830171585083,
-0.021661881357431412,
-0.267301470041275,
-0.1418612152338028,
-0.2706405222415924,
-0.35671576857566833,
0.21878701448440552,
0.20931759476661682,
0.07070393860340118,
-0.37823787331581116,
0.16023869812488556,
-0.04949001222848892,
-0.19290035963058472,
0.5176670551300049,
0.3279213011264801,
0.24238556623458862,
0.4225354492664337,
-0.11276346445083618,
-0.024683227762579918,
0.1531008929014206,
-0.06791874766349792,
0.05005408078432083,
0.1773463785648346,
0.24290086328983307,
0.2745841443538666,
0.3132949471473694,
0.15755318105220795,
-0.17418897151947021,
-0.6257321834564209,
-0.08775614202022552,
-0.16304825246334076,
0.22361376881599426,
-0.22015731036663055,
-0.20648500323295593,
-0.41305455565452576,
-0.04126085713505745,
-0.06317117065191269,
-0.1364334225654602,
-0.3300001323223114,
0.11725252121686935,
0.41525930166244507,
-0.34029653668403625,
-0.021712960675358772,
-0.04182052239775658,
0.3189138174057007,
-0.37321969866752625,
-0.21403497457504272,
-0.4230257570743561,
-0.06776951998472214,
0.006324924528598785,
0.04709671065211296,
0.02329890802502632,
-0.1560952514410019,
0.468625009059906,
0.31047743558883667,
0.3047823905944824,
-0.599404513835907,
-0.10012318193912506,
0.23098772764205933,
-0.09088033437728882,
-0.17900709807872772,
-0.03467710316181183,
0.1284216195344925,
0.09250517189502716,
-0.08309440314769745,
0.16986623406410217,
0.009499406442046165,
0.08779475092887878,
-0.056922703981399536,
0.08029256761074066,
0.13478420674800873,
-0.07558842748403549,
-0.06622561067342758,
-0.40661677718162537,
-0.6522855758666992,
-0.2706514000892639,
-0.12345011532306671,
0.14693987369537354,
-0.048888806253671646,
-0.06458014249801636,
-0.2684286832809448,
-0.30828574299812317,
-0.33965685963630676,
0.013849975541234016,
-0.5284428596496582,
0.48458579182624817,
-0.3881608545780182,
-0.22320474684238434,
0.1465587019920349,
0.2883026599884033,
-0.033017050474882126,
0.26749134063720703,
-0.2292565554380417,
-0.0662427768111229,
0.022959932684898376,
-0.008167579770088196,
-0.09461849927902222,
-0.21425595879554749,
0.4443720579147339,
0.038888897746801376,
-0.03271860629320145,
0.049237027764320374,
-0.2571212649345398,
-0.08466873317956924,
0.3831157088279724,
0.10272514075040817,
0.18577173352241516,
-0.02242426574230194,
0.18032626807689667,
0.5439289808273315,
0.09538237750530243,
0.29010647535324097,
0.6467785835266113,
0.20095284283161163,
-0.025672588497400284,
-0.24575436115264893,
-0.16037973761558533,
0.03680991753935814,
-0.1203967034816742,
-0.08717009425163269,
0.3016613721847534,
0.2225811779499054,
-0.19649921357631683,
-0.38901159167289734,
-0.20892027020454407,
0.31158646941185,
-0.05800987780094147,
0.12057141214609146,
-0.04575877636671066,
0.40971747040748596,
-0.10133318603038788,
-0.13163423538208008,
-0.18309885263442993,
-0.3182906210422516,
0.1965748816728592,
-0.026539862155914307,
0.4503825902938843,
0.33909979462623596,
-0.18806736171245575,
0.19171062111854553,
-0.2247895896434784,
0.34205642342567444,
0.3495573103427887,
-0.18724194169044495,
-0.11277691274881363,
-0.10325126349925995,
0.14380964636802673,
0.028146294876933098,
0.10860035568475723,
-0.4016694128513336,
-0.27909398078918457,
0.05052584037184715,
-0.19994229078292847,
0.11079107969999313,
-0.21366620063781738,
0.10235157608985901,
-0.3676482141017914,
-0.28647345304489136,
0.6599650382995605,
-0.1048898920416832,
-0.40929412841796875,
-0.0032289400696754456,
0.07463087886571884,
-0.13755622506141663,
-0.06549860537052155,
0.2107960730791092,
-0.13269995152950287,
-0.45709162950515747,
-0.05911218374967575,
-0.2686377763748169,
0.19921275973320007,
-0.03291840851306915,
-0.23553046584129333,
0.12763725221157074,
0.4386867880821228,
0.05121134594082832,
-0.04909254610538483,
0.24562954902648926,
0.09016592055559158,
0.048969756811857224,
0.05669676512479782,
0.16357941925525665,
0.3125319480895996,
0.46604424715042114,
0.4445020854473114,
-0.0064882636070251465,
-0.058672063052654266,
0.017538420855998993,
0.15434440970420837,
0.08295655250549316,
0.1583372950553894,
-0.06235765665769577,
-0.0740162655711174,
0.26732587814331055,
-0.43311041593551636,
0.06532351672649384,
0.017342904582619667,
-0.4549824297428131,
-0.2889847457408905,
-0.20400752127170563,
0.3158767819404602,
-0.05513432249426842,
-0.02438310533761978,
0.10996989160776138,
0.009550303220748901,
0.03201951086521149,
0.557758629322052,
0.4064623713493347,
1.0134496688842773,
-0.29814016819000244,
0.26349663734436035,
0.011570855975151062,
-0.2764137387275696,
0.08975542336702347,
-0.7332705855369568,
0.07846325635910034,
-0.19291892647743225,
-0.3079349994659424,
-0.15621022880077362,
0.08912482857704163,
0.1567436009645462,
0.05240696668624878,
-0.15643781423568726,
0.06474089622497559,
0.5306763052940369,
0.49998360872268677,
-0.13527630269527435,
0.3400617837905884,
-0.08610248565673828,
-0.5286225080490112,
-0.2719323933124542,
0.16839855909347534,
-0.20057104527950287,
0.17691418528556824,
0.06331627070903778,
-0.5280524492263794,
-0.03760993480682373,
0.20281395316123962,
-0.24994820356369019,
0.24864456057548523,
0.07409821450710297,
-0.21868275105953217,
-0.3908838629722595,
-0.01732303947210312,
-0.03383149206638336,
0.20508916676044464,
-0.20282290875911713,
-0.047678183764219284,
-0.3700600564479828,
-0.035040367394685745,
-0.10223572701215744,
0.059738852083683014,
-0.23568317294120789,
-0.11569767445325851,
0.07388045638799667,
-0.2799583375453949,
-0.042771779000759125,
0.18068084120750427,
0.035557422786951065,
-0.3237954378128052,
-0.3380577564239502,
-0.022483661770820618,
0.23343965411186218,
-0.20993711054325104,
0.03335336223244667,
0.17616379261016846,
0.04710537567734718,
-0.09922996163368225,
0.06190229207277298,
-0.02488114684820175,
0.12449011951684952,
-0.0006722137331962585,
0.016899246722459793,
0.11266474425792694,
-0.2138303518295288,
0.22194001078605652,
-0.0896366611123085,
0.2265474498271942,
0.04568595811724663,
-0.012824837118387222,
-0.06332401186227798,
-0.07922834157943726,
-0.005108591169118881,
-0.24298790097236633,
-0.27208903431892395,
-0.05741036310791969,
-0.0920909196138382,
-0.08360234647989273,
-0.03427058830857277,
0.4321168065071106,
0.1113201230764389,
-0.28772151470184326,
-0.041530542075634,
-0.27734267711639404,
-0.14995968341827393,
0.23102860152721405,
-0.10889396071434021,
0.22360733151435852,
0.04235614836215973,
0.13717766106128693,
-0.018034350126981735,
-0.05447131395339966,
-0.3087030351161957,
-0.19879615306854248,
0.07643593847751617,
0.008020879700779915,
-0.1814010590314865,
0.022411100566387177,
0.3170410692691803,
0.0184471495449543,
-0.03488866239786148,
-0.12675637006759644,
-0.34017184376716614,
-0.09735362976789474,
0.06088851019740105,
0.16450519859790802,
0.31562539935112,
-0.057872869074344635,
-0.14575134217739105,
-0.08557896316051483,
-0.033779989928007126,
-0.2568279802799225,
0.3107634484767914,
-0.0045704469084739685,
-0.18802125751972198,
-0.07396309822797775,
0.05390256270766258,
-0.12481857091188431,
-0.3576182723045349,
0.08133963495492935,
0.39330193400382996,
0.11507624387741089,
-0.004292481578886509,
0.013171583414077759,
0.038115352392196655,
-0.3033679723739624,
-0.08773782104253769,
0.05451751500368118,
0.43758368492126465,
-0.002061929553747177,
0.696535050868988,
0.15925785899162292,
0.08289991319179535,
0.3113727867603302,
0.4266353249549866,
-0.2775718867778778,
0.009962919168174267,
0.09393288940191269,
0.16675633192062378,
0.16329368948936462,
-0.08371550589799881,
-0.20347465574741364,
0.05615054443478584,
0.005038073752075434,
-0.043657898902893066,
0.19313208758831024,
0.5771546959877014,
0.12362363934516907,
0.010868586599826813,
-0.10084909945726395,
0.3361626863479614,
0.03007635474205017,
0.0635574460029602,
0.08409212529659271,
-0.005054660141468048,
0.07825861126184464,
-0.2102060467004776,
-0.07400904595851898,
0.1459512710571289,
-0.07330787181854248,
-0.09157558530569077,
0.4303372800350189,
0.1615993082523346,
-0.023442823439836502,
0.05706974118947983,
-0.5792648196220398,
-0.061914656311273575,
-0.07864926755428314,
0.43790727853775024,
0.10677027702331543,
-0.05042049288749695,
-0.07026354223489761,
0.4919969141483307,
-0.44960683584213257,
-0.20923295617103577,
0.4169841706752777,
0.32202062010765076,
0.19998016953468323,
0.12145848572254181,
-0.12019406259059906,
-0.15171223878860474,
0.29103296995162964,
0.17936544120311737,
0.058505766093730927,
0.31194233894348145,
0.05808603763580322,
0.15419593453407288,
-0.24569867551326752,
0.11356353014707565,
0.20499494671821594,
0.222799152135849,
-0.12666966021060944,
0.18023328483104706,
0.08689683675765991,
-0.2988336682319641,
-0.00917818397283554,
0.06110403686761856,
0.18620964884757996,
0.07381075620651245,
0.1968918889760971,
0.22277526557445526,
-0.37087497115135193,
0.13502226769924164,
0.29350030422210693,
0.10750183463096619,
0.06637637317180634,
-0.016490858048200607,
0.48244667053222656,
0.028464043512940407,
-0.029590345919132233,
0.07416427135467529,
-0.33415746688842773,
-0.07328523695468903,
0.00763475988060236,
0.16548308730125427,
0.4367007315158844,
0.00280916690826416,
0.03354402631521225,
-0.021240539848804474,
-0.09035778045654297,
-0.06944540143013,
0.06083068251609802,
0.028928808867931366,
0.04356608912348747,
-0.10285218805074692,
0.09769444912672043,
0.02084481157362461,
0.2988699674606323,
0.11005803942680359,
0.017466943711042404,
-0.08764822781085968,
-0.2942562997341156,
-0.07911546528339386,
-0.17904159426689148,
0.07569596916437149,
0.10184431076049805,
-0.001537468284368515,
-0.10370631515979767,
0.3051464557647705,
0.1233539953827858,
-0.1832685023546219,
-0.2956516146659851,
0.30442097783088684,
0.3049864172935486,
-0.2831089496612549,
0.25096675753593445,
0.10677912086248398,
0.1607358157634735,
0.04401776194572449,
-0.10026103258132935,
0.24721676111221313,
0.0379338264465332,
0.017165102064609528,
-0.013022858649492264,
-0.0036510638892650604,
-0.15785712003707886,
-0.4761340320110321,
0.381864070892334,
-0.21820056438446045,
-0.0790611058473587,
-0.08560124039649963,
-0.0701415091753006,
-0.1825716644525528,
0.09942407160997391,
0.015023787505924702,
-0.13798066973686218,
0.0717441737651825,
0.5380833148956299,
-0.13862907886505127,
-0.01926843822002411,
-0.3294833302497864,
0.3118634521961212,
-0.14146842062473297,
-0.24244312942028046,
0.015499766916036606,
-0.13822439312934875,
-0.2138957977294922,
0.026135887950658798,
0.1615479290485382,
0.08706636726856232,
0.07986163347959518,
-0.08554613590240479,
-0.37378692626953125,
-0.2672838270664215,
0.5779551267623901,
0.14296399056911469,
-0.002618696540594101,
0.21658514440059662,
0.06277984380722046,
0.22500771284103394,
0.030469674617052078,
-0.3515454828739166,
0.09497261792421341,
0.06203593313694,
0.06436051428318024,
0.3973430395126343,
0.5510926842689514,
0.26874083280563354,
-0.21440266072750092,
-0.11703523993492126,
0.18268652260303497,
0.09345711022615433,
-0.060158051550388336,
-0.17236624658107758,
0.09436644613742828
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | Also just noting here that I was able to lazily open @jacobbieker's dataset over the internet from HF hub 🚀 !
```python
import xarray as xr
url = "https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip"
zip_url = 'zip:///::' + url
ds = xr.open_dataset(zip_url, engine='zarr', chunks={})
```
<img width="740" alt="image" src="https://user-images.githubusercontent.com/1197350/164508663-bc75cdc0-734d-44f4-9562-2877ecfdf433.png">
| **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 44 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
Also just noting here that I was able to lazily open @jacobbieker's dataset over the internet from HF hub 🚀 !
```python
import xarray as xr
url = "https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip"
zip_url = 'zip:///::' + url
ds = xr.open_dataset(zip_url, engine='zarr', chunks={})
```
<img width="740" alt="image" src="https://user-images.githubusercontent.com/1197350/164508663-bc75cdc0-734d-44f4-9562-2877ecfdf433.png">
| [
-0.3418927490711212,
-0.10325557738542557,
-0.003513047471642494,
-0.18105009198188782,
0.035091351717710495,
0.09697968512773514,
0.09834803640842438,
0.2509673833847046,
0.28040024638175964,
0.38076233863830566,
-0.3892696499824524,
0.20213428139686584,
-0.206726536154747,
0.6755539178848267,
0.020834442228078842,
-0.09405878186225891,
-0.045830510556697845,
0.0976458340883255,
0.15073257684707642,
0.13307063281536102,
0.20523017644882202,
0.006149452179670334,
0.02702740579843521,
-0.18581445515155792,
0.013596568256616592,
0.030061813071370125,
-0.15605980157852173,
0.16109077632427216,
-0.16048742830753326,
-0.3105967044830322,
0.30172598361968994,
0.3483835756778717,
0.4227854907512665,
0.00405467301607132,
-0.00010614739585435018,
-0.043141141533851624,
0.18287186324596405,
-0.12409044802188873,
-0.22402162849903107,
-0.3877703547477722,
-0.0037460699677467346,
-0.22573280334472656,
-0.24086269736289978,
0.05209072679281235,
-0.14021211862564087,
-0.5224446654319763,
0.05756484717130661,
-0.18898822367191315,
0.19964686036109924,
-0.01592678762972355,
0.1260547637939453,
-0.08576158434152603,
-0.16128414869308472,
-0.20041151344776154,
0.35393238067626953,
0.4851061701774597,
-0.4231936037540436,
0.10134433209896088,
0.2809792160987854,
0.09676320105791092,
0.020794592797756195,
0.42293158173561096,
-0.28296932578086853,
-0.035178497433662415,
0.29704901576042175,
-0.08715634047985077,
-0.8282434940338135,
-0.2224419116973877,
-0.17097002267837524,
0.3843291103839874,
0.5550326704978943,
-0.25297069549560547,
-0.6058745384216309,
-0.20275968313217163,
0.010094767436385155,
-0.25847166776657104,
-0.20121034979820251,
0.3198305666446686,
-0.1364842802286148,
0.26463279128074646,
-0.3431805372238159,
-0.2694312036037445,
-0.4158492386341095,
0.3074778914451599,
0.16562677919864655,
0.5098817944526672,
0.03212762251496315,
-0.11681700497865677,
0.07374171912670135,
-0.04953783005475998,
0.4328046441078186,
-0.2563997805118561,
0.06427134573459625,
0.06682515889406204,
-0.35967785120010376,
-0.2179892212152481,
0.04529992863535881,
0.04070645943284035,
0.4688766300678253,
0.5748076438903809,
0.27885323762893677,
0.3274261951446533,
-0.09534265846014023,
0.00868978351354599,
0.008416274562478065,
0.11276769638061523,
-0.2563609480857849,
-0.2049211710691452,
0.3739544749259949,
0.2693234384059906,
0.15950918197631836,
-0.2526867389678955,
-0.03223952278494835,
0.3915193974971771,
-0.2887881398200989,
-0.07824086397886276,
0.11775301396846771,
-0.3396255075931549,
0.09559693932533264,
-0.12831324338912964,
-0.30967527627944946,
-0.17187495529651642,
-0.17337343096733093,
0.19728431105613708,
-0.02380170300602913,
0.19818374514579773,
-0.144246906042099,
0.20370572805404663,
0.10476814955472946,
-0.212251678109169,
-0.05265389010310173,
-0.05776799097657204,
0.0986877977848053,
0.6134654879570007,
0.17086993157863617,
-0.30780574679374695,
0.1165362223982811,
-0.06676176190376282,
0.48446124792099,
0.17304925620555878,
0.24490684270858765,
-0.15911796689033508,
0.1332799345254898,
0.1655118465423584,
-0.01023700088262558,
-0.059569716453552246,
-0.10640677809715271,
0.4001973271369934,
-0.1484460085630417,
0.0911070853471756,
-0.2981695532798767,
-0.6529235243797302,
-0.12697963416576385,
0.05550813674926758,
-0.06843210011720657,
-0.16566374897956848,
-0.28120386600494385,
0.2390001267194748,
-0.49578025937080383,
-0.2690378427505493,
-0.30487895011901855,
0.26139265298843384,
-0.171752467751503,
-0.016232330352067947,
0.2689875364303589,
0.1999516785144806,
-0.040884651243686676,
0.19547492265701294,
-0.19724904000759125,
0.19448643922805786,
0.36518266797065735,
0.1461220532655716,
-0.46586522459983826,
0.2021797001361847,
-0.21337950229644775,
0.07648859918117523,
0.3530266582965851,
-0.34049147367477417,
-0.1576336771249771,
0.2605680227279663,
0.1706233024597168,
0.23894725739955902,
0.13639242947101593,
0.054691754281520844,
0.41521456837654114,
0.031173385679721832,
-0.2474571168422699,
0.469310462474823,
-0.20559966564178467,
0.19561590254306793,
-0.2485577017068863,
-0.2921103239059448,
-0.2487415224313736,
0.5264556407928467,
-0.178974449634552,
-0.06909007579088211,
0.23323285579681396,
0.15286217629909515,
0.35187217593193054,
-0.2928510308265686,
0.10159202665090561,
0.045000895857810974,
0.051802173256874084,
0.3240002989768982,
-0.21042263507843018,
-0.05985257774591446,
-0.36403000354766846,
0.09492481499910355,
-0.2254190593957901,
0.16688397526741028,
0.14880500733852386,
-0.18599113821983337,
-0.08834345638751984,
0.07477528601884842,
-0.044873472303152084,
-0.1528768539428711,
0.05467626452445984,
0.2931951880455017,
0.01710040494799614,
-0.047161027789115906,
-0.13927312195301056,
0.358541876077652,
0.28341853618621826,
-0.09972819685935974,
-0.02928023412823677,
0.5142088532447815,
-0.07133235782384872,
-0.018104657530784607,
0.22165364027023315,
-0.06376325339078903,
0.03924178332090378,
-0.11387899518013,
-0.16171231865882874,
0.2043623924255371,
0.0626712366938591,
0.24779589474201202,
0.2903002202510834,
0.39880919456481934,
0.37530165910720825,
-0.05960806459188461,
0.17882348597049713,
0.09612029790878296,
-0.04295015335083008,
0.12526807188987732,
-0.4657123386859894,
0.28204870223999023,
0.012805130332708359,
-0.09521693736314774,
-0.14270788431167603,
0.12399262934923172,
0.14568915963172913,
-0.023924607783555984,
-0.16364021599292755,
-0.020372647792100906,
-0.031251806765794754,
-0.22435082495212555,
-0.12528544664382935,
-0.2839087247848511,
-0.41412413120269775,
0.21851599216461182,
0.2343726009130478,
0.06780347228050232,
-0.342262864112854,
0.17048707604408264,
-0.050735361874103546,
-0.17903584241867065,
0.44789814949035645,
0.30252256989479065,
0.19709178805351257,
0.41880109906196594,
-0.08650147914886475,
0.012174670584499836,
0.14263568818569183,
-0.10341756045818329,
0.06539206206798553,
0.17251825332641602,
0.24227318167686462,
0.28205177187919617,
0.3141672611236572,
0.17615091800689697,
-0.16040809452533722,
-0.6269746422767639,
-0.10331187397241592,
-0.17835839092731476,
0.1542166918516159,
-0.18442167341709137,
-0.20348452031612396,
-0.34203383326530457,
0.014037691056728363,
-0.04853593185544014,
-0.097114697098732,
-0.31677621603012085,
0.15509754419326782,
0.39859041571617126,
-0.39173391461372375,
-0.04323974996805191,
-0.08890879154205322,
0.33024901151657104,
-0.36326533555984497,
-0.21543781459331512,
-0.3539092242717743,
-0.06793415546417236,
-0.026740655303001404,
0.05823346599936485,
0.0645960196852684,
-0.20670954883098602,
0.4632674753665924,
0.27510860562324524,
0.2660594582557678,
-0.6276708245277405,
-0.10742304474115372,
0.22519133985042572,
-0.019200265407562256,
-0.09167768061161041,
-0.024556398391723633,
0.12942148745059967,
0.08289963752031326,
-0.06225680932402611,
0.1912940889596939,
-0.012101838365197182,
0.09032736718654633,
-0.058944765478372574,
0.10072949528694153,
0.09438516944646835,
-0.08701760321855545,
-0.0862756296992302,
-0.41334983706474304,
-0.6898577809333801,
-0.2482137829065323,
-0.07133009284734726,
0.17246970534324646,
0.012075625360012054,
-0.06919313222169876,
-0.2560991942882538,
-0.235209122300148,
-0.3330398499965668,
-0.0164230614900589,
-0.5345151424407959,
0.50963294506073,
-0.45440372824668884,
-0.24636481702327728,
0.11101636290550232,
0.28542715311050415,
-0.10330334305763245,
0.22101174294948578,
-0.28314027190208435,
-0.07170664519071579,
-0.03428560495376587,
-0.00034271180629730225,
-0.13076920807361603,
-0.2246134728193283,
0.44832533597946167,
0.06309159100055695,
-0.07334091514348984,
0.0384056493639946,
-0.2645780146121979,
-0.027783207595348358,
0.35330790281295776,
0.014477647840976715,
0.20135200023651123,
-0.016603481024503708,
0.15774329006671906,
0.5449216365814209,
0.054532889276742935,
0.2963077127933502,
0.6051428318023682,
0.1416715830564499,
0.005252201110124588,
-0.2717249095439911,
-0.10084005445241928,
0.02039153315126896,
-0.10346284508705139,
-0.09096435457468033,
0.3388962745666504,
0.23800379037857056,
-0.1683042049407959,
-0.4189612865447998,
-0.20593051612377167,
0.3265528380870819,
-0.1146162748336792,
0.1307813823223114,
-0.04002354294061661,
0.35210004448890686,
-0.09095600247383118,
-0.06245433911681175,
-0.2046305537223816,
-0.32152995467185974,
0.22261041402816772,
-0.003527611494064331,
0.42978808283805847,
0.3287709951400757,
-0.15853027999401093,
0.22534537315368652,
-0.2771542966365814,
0.3897138833999634,
0.3013533055782318,
-0.23167981207370758,
-0.10630969703197479,
-0.15854117274284363,
0.1621505469083786,
-0.02692040242254734,
0.13111303746700287,
-0.3931621015071869,
-0.2679111361503601,
0.08938609063625336,
-0.20939400792121887,
0.10320747643709183,
-0.24284601211547852,
0.08605730533599854,
-0.3497559130191803,
-0.2677498459815979,
0.6783125400543213,
-0.15119099617004395,
-0.41916143894195557,
-0.01115860790014267,
0.033601075410842896,
-0.12704995274543762,
-0.04213965684175491,
0.21414147317409515,
-0.159956157207489,
-0.4496537446975708,
-0.114375539124012,
-0.26341187953948975,
0.1618156135082245,
-0.036297887563705444,
-0.22981193661689758,
0.11112956702709198,
0.44601333141326904,
0.10822013765573502,
-0.024133745580911636,
0.275809109210968,
0.10753635317087173,
0.041615430265665054,
0.07942475378513336,
0.19496680796146393,
0.28540822863578796,
0.5417976379394531,
0.4478340148925781,
0.007922664284706116,
-0.06626719981431961,
0.008016648702323437,
0.08936656266450882,
0.14693590998649597,
0.14496104419231415,
-0.0510232076048851,
-0.018216393887996674,
0.3254370391368866,
-0.41782885789871216,
0.11129406094551086,
-0.0018817223608493805,
-0.4369339048862457,
-0.3049527704715729,
-0.2395070642232895,
0.33143123984336853,
-0.05564689636230469,
-0.08923618495464325,
0.11064338684082031,
0.03968920558691025,
0.00006499607115983963,
0.5669827461242676,
0.34509512782096863,
1.0252659320831299,
-0.28776413202285767,
0.2578403353691101,
0.04896215349435806,
-0.3295091390609741,
0.12251909077167511,
-0.7526914477348328,
0.09303347021341324,
-0.18166613578796387,
-0.29847612977027893,
-0.1516617387533188,
0.07377271354198456,
0.13091018795967102,
0.05827951058745384,
-0.19136185944080353,
0.02918643318116665,
0.49386924505233765,
0.49994683265686035,
-0.124880850315094,
0.3684575855731964,
-0.08432364463806152,
-0.49288275837898254,
-0.3134991228580475,
0.18787294626235962,
-0.205426886677742,
0.19008098542690277,
0.07553786039352417,
-0.5719442367553711,
-0.028707176446914673,
0.19998355209827423,
-0.23891359567642212,
0.2880486249923706,
0.02031012438237667,
-0.17872151732444763,
-0.3707171678543091,
0.03518127650022507,
-0.026988089084625244,
0.17896950244903564,
-0.19920940697193146,
-0.0036140531301498413,
-0.3574788272380829,
0.005141414701938629,
-0.11454195529222488,
0.07051596790552139,
-0.22036148607730865,
-0.12825173139572144,
0.15126192569732666,
-0.28623542189598083,
-0.025748074054718018,
0.20514798164367676,
0.025996137410402298,
-0.36089247465133667,
-0.33393073081970215,
-0.02404523640871048,
0.236705482006073,
-0.2174123078584671,
0.003129243850708008,
0.13250450789928436,
0.0074794963002204895,
-0.08952294290065765,
0.0636940598487854,
-0.08530488610267639,
0.17324015498161316,
-0.029568858444690704,
0.045805662870407104,
0.07779553532600403,
-0.1802617311477661,
0.1840733289718628,
-0.0885833352804184,
0.23835542798042297,
0.07815152406692505,
0.06407064199447632,
-0.06974010169506073,
-0.07688477635383606,
-0.016309674829244614,
-0.25783368945121765,
-0.2332874834537506,
0.044879961758852005,
-0.098721943795681,
-0.11996011435985565,
0.001833608141168952,
0.4318156838417053,
0.12782716751098633,
-0.3193623721599579,
0.008595626801252365,
-0.2753751277923584,
-0.10858254134654999,
0.1776251494884491,
-0.08908098936080933,
0.25071850419044495,
0.06735378503799438,
0.1529799997806549,
-0.032196398824453354,
-0.06645163148641586,
-0.3306751847267151,
-0.20998968183994293,
0.04311646521091461,
-0.027112223207950592,
-0.20176604390144348,
0.056795261800289154,
0.35557085275650024,
0.02163589373230934,
-0.031057141721248627,
-0.15409483015537262,
-0.36284923553466797,
-0.10964460670948029,
-0.003985859453678131,
0.15197086334228516,
0.23688867688179016,
-0.08891413360834122,
-0.12228936702013016,
-0.12491665780544281,
-0.02049880102276802,
-0.26638829708099365,
0.34268730878829956,
-0.005488120019435883,
-0.21644555032253265,
-0.1376369595527649,
0.05225273594260216,
-0.1369887888431549,
-0.3375966548919678,
0.06867620348930359,
0.37593960762023926,
0.19189441204071045,
-0.06422897428274155,
-0.022983357310295105,
0.0020961114205420017,
-0.3374512195587158,
-0.04450045898556709,
0.07528170943260193,
0.4344554543495178,
-0.0035978220403194427,
0.6842988133430481,
0.1233946830034256,
0.06009094789624214,
0.3221362829208374,
0.4608316719532013,
-0.2659364938735962,
-0.0008509010076522827,
0.10084018111228943,
0.19148039817810059,
0.15799906849861145,
-0.0812416672706604,
-0.19286654889583588,
0.03097245842218399,
-0.005535597912967205,
0.00014450028538703918,
0.17585565149784088,
0.5803057551383972,
0.10082785785198212,
-0.04097640514373779,
-0.07516150176525116,
0.3273565471172333,
0.048562243580818176,
0.08055433630943298,
0.0769633948802948,
-0.04003264382481575,
0.07580110430717468,
-0.16996468603610992,
-0.08571457862854004,
0.17410314083099365,
-0.005121443420648575,
-0.09714142233133316,
0.349688321352005,
0.20976731181144714,
0.044557835906744,
0.03852761536836624,
-0.6177775859832764,
-0.0268443264067173,
-0.061006009578704834,
0.4293980002403259,
0.13850295543670654,
-0.03800491243600845,
-0.11831744760274887,
0.47945281863212585,
-0.42722463607788086,
-0.2239420861005783,
0.47408628463745117,
0.3126910924911499,
0.1695537269115448,
0.12864050269126892,
-0.11500635743141174,
-0.13969016075134277,
0.3027551472187042,
0.15892194211483002,
0.05587863549590111,
0.29578864574432373,
0.07034477591514587,
0.19968532025814056,
-0.2141621857881546,
0.11935663968324661,
0.12069854140281677,
0.27692312002182007,
-0.16131117939949036,
0.18629996478557587,
0.13300564885139465,
-0.28683146834373474,
-0.0064148567616939545,
0.10296402871608734,
0.207707479596138,
0.09738991409540176,
0.14049579203128815,
0.2725123465061188,
-0.36843225359916687,
0.1145479828119278,
0.26853054761886597,
0.0647108182311058,
0.08043050020933151,
-0.022967524826526642,
0.5320925712585449,
0.04658961296081543,
-0.035021498799324036,
0.08496946096420288,
-0.37109389901161194,
-0.003306623548269272,
-0.015624894760549068,
0.12423063814640045,
0.4485434889793396,
-0.007450167089700699,
0.030246401205658913,
-0.07016066461801529,
-0.10496290028095245,
-0.0945776104927063,
0.055996302515268326,
-0.0009716122876852751,
0.05982112139463425,
-0.13113585114479065,
0.10598191618919373,
0.06893230974674225,
0.3158077299594879,
0.11281165480613708,
0.023615766316652298,
-0.07405204325914383,
-0.2756991386413574,
-0.07828203588724136,
-0.18695998191833496,
0.022953225299715996,
0.015104522928595543,
0.013631979003548622,
-0.08921165764331818,
0.31902533769607544,
0.13708436489105225,
-0.1747010201215744,
-0.291901171207428,
0.27062997221946716,
0.31391391158103943,
-0.3102951943874359,
0.27483659982681274,
0.06546790897846222,
0.1669604331254959,
0.03288095071911812,
-0.12520623207092285,
0.22143621742725372,
-0.0012608515098690987,
0.02155127376317978,
0.015810592100024223,
0.020632833242416382,
-0.14430777728557587,
-0.4787234961986542,
0.3943290710449219,
-0.1859782636165619,
-0.055060818791389465,
-0.13108420372009277,
-0.044781602919101715,
-0.2030344307422638,
0.08077221363782883,
0.007497391663491726,
-0.1437411904335022,
0.0771230086684227,
0.5054908990859985,
-0.11066938191652298,
-0.06728030741214752,
-0.32191503047943115,
0.2555784285068512,
-0.12819167971611023,
-0.16904717683792114,
0.030652368441224098,
-0.08749251812696457,
-0.2157709002494812,
0.042188599705696106,
0.19048699736595154,
0.14300242066383362,
0.06143449246883392,
-0.13527312874794006,
-0.37431710958480835,
-0.338299959897995,
0.5714889168739319,
0.057692281901836395,
-0.03705183416604996,
0.22880779206752777,
0.07986488938331604,
0.17323005199432373,
0.0619814395904541,
-0.3300129771232605,
0.13856807351112366,
0.041779398918151855,
0.06385224312543869,
0.37279799580574036,
0.547923743724823,
0.22721442580223083,
-0.21190237998962402,
-0.12306526303291321,
0.19511233270168304,
0.10173202306032181,
-0.08993928134441376,
-0.2593746781349182,
0.08178524672985077
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | However, I wasn't able to get streaming working using the Datasets api:
```python
from datasets import load_dataset
ds = load_dataset("openclimatefix/mrms", streaming=True, split='train')
item = next(iter(ds))
```
<details>
<summary>FileNotFoundError traceback</summary>
```
No config specified, defaulting to: mrms/2021
zip://::https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip
data/2016_001.zarr.zip
zip://2016_001.zarr.zip::https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [1], in <cell line: 3>()
1 from datasets import load_dataset
2 ds = load_dataset("openclimatefix/mrms", streaming=True, split='train')
----> 3 item = next(iter(ds))
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/datasets/iterable_dataset.py:497, in IterableDataset.__iter__(self)
496 def __iter__(self):
--> 497 for key, example in self._iter():
498 if self.features:
499 # we encode the example for ClassLabel feature types for example
500 encoded_example = self.features.encode_example(example)
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/datasets/iterable_dataset.py:494, in IterableDataset._iter(self)
492 else:
493 ex_iterable = self._ex_iterable
--> 494 yield from ex_iterable
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/datasets/iterable_dataset.py:87, in ExamplesIterable.__iter__(self)
86 def __iter__(self):
---> 87 yield from self.generate_examples_fn(**self.kwargs)
File ~/.cache/huggingface/modules/datasets_modules/datasets/openclimatefix--mrms/2a6f697014d7eb3caf586ca137d47ca38785ae2fe36248611b021f8248b59936/mrms.py:150, in MRMS._generate_examples(self, filepath, split)
147 filepath = "[https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip](https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip%3C/span%3E%3Cspan) style="color:rgb(175,0,0)">"
148 # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
149 # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
--> 150 with zarr.storage.FSStore(fsspec.open("zip::" + filepath, mode='r'), mode='r') as store:
151 data = xr.open_zarr(store)
152 for key, row in enumerate(data["time"].values):
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/zarr/storage.py:1120, in FSStore.__init__(self, url, normalize_keys, key_separator, mode, exceptions, dimension_separator, **storage_options)
1117 import fsspec
1118 self.normalize_keys = normalize_keys
-> 1120 protocol, _ = fsspec.core.split_protocol(url)
1121 # set auto_mkdir to True for local file system
1122 if protocol in (None, "file") and not storage_options.get("auto_mkdir"):
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:514, in split_protocol(urlpath)
512 def split_protocol(urlpath):
513 """Return protocol, path pair"""
--> 514 urlpath = stringify_path(urlpath)
515 if "://" in urlpath:
516 protocol, path = urlpath.split("://", 1)
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/utils.py:315, in stringify_path(filepath)
313 return filepath
314 elif hasattr(filepath, "__fspath__"):
--> 315 return filepath.__fspath__()
316 elif isinstance(filepath, pathlib.Path):
317 return str(filepath)
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:98, in OpenFile.__fspath__(self)
96 def __fspath__(self):
97 # may raise if cannot be resolved to local file
---> 98 return self.open().__fspath__()
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:140, in OpenFile.open(self)
132 def open(self):
133 """Materialise this as a real open file without context
134
135 The file should be explicitly closed to avoid enclosed file
(...)
138 been deleted; but a with-context is better style.
139 """
--> 140 out = self.__enter__()
141 closer = out.close
142 fobjects = self.fobjects.copy()[:-1]
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:103, in OpenFile.__enter__(self)
100 def __enter__(self):
101 mode = self.mode.replace("t", "").replace("b", "") + "b"
--> 103 f = self.fs.open(self.path, mode=mode)
105 self.fobjects = [f]
107 if self.compression is not None:
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/spec.py:1009, in AbstractFileSystem.open(self, path, mode, block_size, cache_options, compression, **kwargs)
1007 else:
1008 ac = kwargs.pop("autocommit", not self._intrans)
-> 1009 f = self._open(
1010 path,
1011 mode=mode,
1012 block_size=block_size,
1013 autocommit=ac,
1014 cache_options=cache_options,
1015 **kwargs,
1016 )
1017 if compression is not None:
1018 from fsspec.compression import compr
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/implementations/zip.py:96, in ZipFileSystem._open(self, path, mode, block_size, autocommit, cache_options, **kwargs)
94 if mode != "rb":
95 raise NotImplementedError
---> 96 info = self.info(path)
97 out = self.zip.open(path, "r")
98 out.size = info["size"]
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/archive.py:42, in AbstractArchiveFileSystem.info(self, path, **kwargs)
40 return self.dir_cache[path + "/"]
41 else:
---> 42 raise FileNotFoundError(path)
FileNotFoundError:
```
</details>
Is this a bug? Or am I just doing it wrong... | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 511 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
However, I wasn't able to get streaming working using the Datasets api:
```python
from datasets import load_dataset
ds = load_dataset("openclimatefix/mrms", streaming=True, split='train')
item = next(iter(ds))
```
<details>
<summary>FileNotFoundError traceback</summary>
```
No config specified, defaulting to: mrms/2021
zip://::https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip
data/2016_001.zarr.zip
zip://2016_001.zarr.zip::https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Input In [1], in <cell line: 3>()
1 from datasets import load_dataset
2 ds = load_dataset("openclimatefix/mrms", streaming=True, split='train')
----> 3 item = next(iter(ds))
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/datasets/iterable_dataset.py:497, in IterableDataset.__iter__(self)
496 def __iter__(self):
--> 497 for key, example in self._iter():
498 if self.features:
499 # we encode the example for ClassLabel feature types for example
500 encoded_example = self.features.encode_example(example)
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/datasets/iterable_dataset.py:494, in IterableDataset._iter(self)
492 else:
493 ex_iterable = self._ex_iterable
--> 494 yield from ex_iterable
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/datasets/iterable_dataset.py:87, in ExamplesIterable.__iter__(self)
86 def __iter__(self):
---> 87 yield from self.generate_examples_fn(**self.kwargs)
File ~/.cache/huggingface/modules/datasets_modules/datasets/openclimatefix--mrms/2a6f697014d7eb3caf586ca137d47ca38785ae2fe36248611b021f8248b59936/mrms.py:150, in MRMS._generate_examples(self, filepath, split)
147 filepath = "[https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip](https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip%3C/span%3E%3Cspan) style="color:rgb(175,0,0)">"
148 # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
149 # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
--> 150 with zarr.storage.FSStore(fsspec.open("zip::" + filepath, mode='r'), mode='r') as store:
151 data = xr.open_zarr(store)
152 for key, row in enumerate(data["time"].values):
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/zarr/storage.py:1120, in FSStore.__init__(self, url, normalize_keys, key_separator, mode, exceptions, dimension_separator, **storage_options)
1117 import fsspec
1118 self.normalize_keys = normalize_keys
-> 1120 protocol, _ = fsspec.core.split_protocol(url)
1121 # set auto_mkdir to True for local file system
1122 if protocol in (None, "file") and not storage_options.get("auto_mkdir"):
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:514, in split_protocol(urlpath)
512 def split_protocol(urlpath):
513 """Return protocol, path pair"""
--> 514 urlpath = stringify_path(urlpath)
515 if "://" in urlpath:
516 protocol, path = urlpath.split("://", 1)
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/utils.py:315, in stringify_path(filepath)
313 return filepath
314 elif hasattr(filepath, "__fspath__"):
--> 315 return filepath.__fspath__()
316 elif isinstance(filepath, pathlib.Path):
317 return str(filepath)
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:98, in OpenFile.__fspath__(self)
96 def __fspath__(self):
97 # may raise if cannot be resolved to local file
---> 98 return self.open().__fspath__()
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:140, in OpenFile.open(self)
132 def open(self):
133 """Materialise this as a real open file without context
134
135 The file should be explicitly closed to avoid enclosed file
(...)
138 been deleted; but a with-context is better style.
139 """
--> 140 out = self.__enter__()
141 closer = out.close
142 fobjects = self.fobjects.copy()[:-1]
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/core.py:103, in OpenFile.__enter__(self)
100 def __enter__(self):
101 mode = self.mode.replace("t", "").replace("b", "") + "b"
--> 103 f = self.fs.open(self.path, mode=mode)
105 self.fobjects = [f]
107 if self.compression is not None:
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/spec.py:1009, in AbstractFileSystem.open(self, path, mode, block_size, cache_options, compression, **kwargs)
1007 else:
1008 ac = kwargs.pop("autocommit", not self._intrans)
-> 1009 f = self._open(
1010 path,
1011 mode=mode,
1012 block_size=block_size,
1013 autocommit=ac,
1014 cache_options=cache_options,
1015 **kwargs,
1016 )
1017 if compression is not None:
1018 from fsspec.compression import compr
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/implementations/zip.py:96, in ZipFileSystem._open(self, path, mode, block_size, autocommit, cache_options, **kwargs)
94 if mode != "rb":
95 raise NotImplementedError
---> 96 info = self.info(path)
97 out = self.zip.open(path, "r")
98 out.size = info["size"]
File /opt/miniconda3/envs/hugginface/lib/python3.9/site-packages/fsspec/archive.py:42, in AbstractArchiveFileSystem.info(self, path, **kwargs)
40 return self.dir_cache[path + "/"]
41 else:
---> 42 raise FileNotFoundError(path)
FileNotFoundError:
```
</details>
Is this a bug? Or am I just doing it wrong... | [
-0.33763793110847473,
-0.14472168684005737,
-0.01663341373205185,
-0.19096176326274872,
0.031032191589474678,
0.088331438601017,
0.07099559903144836,
0.21563266217708588,
0.30044275522232056,
0.3126605153083801,
-0.3831915557384491,
0.2008129358291626,
-0.1836354285478592,
0.6807723641395569,
0.005170611664652824,
-0.12546920776367188,
-0.049512363970279694,
0.11128212511539459,
0.11891421675682068,
0.12106937170028687,
0.24934086203575134,
-0.025862226262688637,
0.03361847996711731,
-0.2576633095741272,
-0.003182042855769396,
0.042669475078582764,
-0.15047669410705566,
0.09874686598777771,
-0.19240184128284454,
-0.26655784249305725,
0.3476003110408783,
0.3494327664375305,
0.44601163268089294,
0.002152450382709503,
-0.00010789348016260192,
-0.08649866282939911,
0.17892619967460632,
-0.18160630762577057,
-0.21369168162345886,
-0.3541048765182495,
-0.07682613283395767,
-0.23392269015312195,
-0.25994494557380676,
0.06265600770711899,
-0.1035003662109375,
-0.5092600584030151,
0.04649908095598221,
-0.20538435876369476,
0.17431741952896118,
-0.013406382873654366,
0.1142987310886383,
-0.08784804493188858,
-0.20729473233222961,
-0.15735305845737457,
0.3402262032032013,
0.5096414685249329,
-0.4060530662536621,
0.11003515124320984,
0.3142484426498413,
0.08820516616106033,
0.003758661448955536,
0.43077099323272705,
-0.28130006790161133,
0.008462222293019295,
0.2687312364578247,
-0.09818875789642334,
-0.8351060748100281,
-0.21091580390930176,
-0.18582838773727417,
0.33617889881134033,
0.5755318403244019,
-0.2738003134727478,
-0.605845034122467,
-0.22742247581481934,
0.005593316629528999,
-0.2879749834537506,
-0.22837722301483154,
0.2707032263278961,
-0.15640781819820404,
0.21344353258609772,
-0.38845667243003845,
-0.28814393281936646,
-0.3829478323459625,
0.3296131491661072,
0.15140527486801147,
0.5236696004867554,
0.0524967797100544,
-0.10635078698396683,
0.017401985824108124,
-0.009092159569263458,
0.45941391587257385,
-0.284864217042923,
0.08324453234672546,
0.08515667915344238,
-0.4094633460044861,
-0.19746384024620056,
-0.006630443036556244,
0.08302757889032364,
0.4807773232460022,
0.5198113918304443,
0.27690187096595764,
0.29539576172828674,
-0.09211120009422302,
0.037241607904434204,
0.02266559936106205,
0.12035655975341797,
-0.2814851999282837,
-0.23562684655189514,
0.29779917001724243,
0.27634021639823914,
0.14458736777305603,
-0.2665897309780121,
0.006164343096315861,
0.4219524562358856,
-0.3139974772930145,
-0.08994549512863159,
0.09432002902030945,
-0.33576077222824097,
0.0694146677851677,
-0.1320703625679016,
-0.3340175449848175,
-0.1955942064523697,
-0.11255224794149399,
0.15169866383075714,
-0.007166397292166948,
0.23808300495147705,
-0.18271209299564362,
0.2227022498846054,
0.12119888514280319,
-0.2532368302345276,
-0.05765708535909653,
-0.0643557608127594,
0.07024747133255005,
0.6327182650566101,
0.1982891708612442,
-0.3249747157096863,
0.1551477611064911,
-0.040269456803798676,
0.5167793035507202,
0.2092076539993286,
0.23089635372161865,
-0.16765804588794708,
0.1668848693370819,
0.11689862608909607,
-0.045375604182481766,
-0.02576080709695816,
-0.06778876483440399,
0.4380218982696533,
-0.1285797655582428,
0.0222427137196064,
-0.26996639370918274,
-0.64110267162323,
-0.11360642313957214,
0.036618735641241074,
-0.0731361135840416,
-0.19196052849292755,
-0.29190656542778015,
0.28244683146476746,
-0.4368111193180084,
-0.2988491356372833,
-0.28207820653915405,
0.21058322489261627,
-0.19568540155887604,
-0.006061750464141369,
0.2911004424095154,
0.16716477274894714,
-0.06600334495306015,
0.15963901579380035,
-0.22848999500274658,
0.2117651253938675,
0.3843354284763336,
0.14521411061286926,
-0.4175744950771332,
0.17761632800102234,
-0.20788341760635376,
0.05500784516334534,
0.3790361285209656,
-0.3212963044643402,
-0.2051876336336136,
0.28185364603996277,
0.19103480875492096,
0.24096567928791046,
0.1712299883365631,
0.05741618573665619,
0.4444596469402313,
0.0560014545917511,
-0.24575448036193848,
0.49209660291671753,
-0.2659382224082947,
0.16515189409255981,
-0.24428284168243408,
-0.29138100147247314,
-0.21591083705425262,
0.5303824543952942,
-0.17268051207065582,
-0.04002340883016586,
0.21415263414382935,
0.15996669232845306,
0.34302034974098206,
-0.25647222995758057,
0.18115831911563873,
0.04740717262029648,
0.09117484092712402,
0.30671876668930054,
-0.19678518176078796,
-0.08863350749015808,
-0.38352644443511963,
0.07003411650657654,
-0.22584545612335205,
0.15303006768226624,
0.15072868764400482,
-0.15574106574058533,
-0.10309682041406631,
0.014064231887459755,
-0.0262192003428936,
-0.12345108389854431,
0.046538420021533966,
0.300618052482605,
0.05611201003193855,
-0.08597835898399353,
-0.11779682338237762,
0.38801267743110657,
0.30306220054626465,
-0.11905669420957565,
-0.023703373968601227,
0.5682057738304138,
-0.057325638830661774,
-0.08368296921253204,
0.25592029094696045,
-0.04774156212806702,
0.050588227808475494,
-0.07856034487485886,
-0.182711660861969,
0.19059467315673828,
0.011396589688956738,
0.23948003351688385,
0.2916950285434723,
0.4134294390678406,
0.403570294380188,
-0.0623476542532444,
0.18057304620742798,
0.1116403341293335,
-0.014228252694010735,
0.13225576281547546,
-0.4662298262119293,
0.251298725605011,
-0.00896049290895462,
-0.07348472625017166,
-0.162859708070755,
0.14387738704681396,
0.17986808717250824,
0.025237541645765305,
-0.1794312745332718,
-0.03689662739634514,
-0.004683628678321838,
-0.2647297978401184,
-0.11796532571315765,
-0.28957465291023254,
-0.3896344006061554,
0.26125121116638184,
0.22298561036586761,
0.1058838963508606,
-0.37673071026802063,
0.134707510471344,
-0.05623257905244827,
-0.19256055355072021,
0.5399978160858154,
0.31285178661346436,
0.23931145668029785,
0.425727516412735,
-0.0661318302154541,
-0.006896058097481728,
0.12993648648262024,
-0.08264897018671036,
0.041530102491378784,
0.15024778246879578,
0.20723386108875275,
0.25766512751579285,
0.3047659397125244,
0.14454393088817596,
-0.1703830063343048,
-0.6116399168968201,
-0.07222191244363785,
-0.1621406376361847,
0.18795327842235565,
-0.17652764916419983,
-0.23927563428878784,
-0.39849430322647095,
-0.01868680864572525,
-0.04787527024745941,
-0.12262548506259918,
-0.32188543677330017,
0.12281730026006699,
0.429583340883255,
-0.3479463458061218,
0.0037266258150339127,
-0.06972701847553253,
0.31065428256988525,
-0.3667139410972595,
-0.22762738168239594,
-0.4133793115615845,
-0.0871075689792633,
0.004533004015684128,
0.05299612507224083,
0.03464460372924805,
-0.11963488161563873,
0.45572227239608765,
0.31137192249298096,
0.2700711488723755,
-0.6137796640396118,
-0.08600819110870361,
0.23890642821788788,
-0.06419491022825241,
-0.12702912092208862,
-0.03640405833721161,
0.1447608917951584,
0.07249549776315689,
-0.08655260503292084,
0.17070229351520538,
-0.025367453694343567,
0.11855800449848175,
-0.08786022663116455,
0.07217640429735184,
0.11852984875440598,
-0.07404860854148865,
-0.06496507674455643,
-0.40692204236984253,
-0.6814234256744385,
-0.2777114510536194,
-0.11394807696342468,
0.13629291951656342,
-0.0402456596493721,
-0.06001665070652962,
-0.2593837082386017,
-0.27598923444747925,
-0.32142284512519836,
-0.005641980096697807,
-0.5529277920722961,
0.48806285858154297,
-0.39473825693130493,
-0.22229568660259247,
0.1377009153366089,
0.2877380847930908,
-0.05375823751091957,
0.31012386083602905,
-0.22766755521297455,
-0.06457486748695374,
0.01570916548371315,
0.008781518787145615,
-0.07894162833690643,
-0.18997891247272491,
0.424362450838089,
0.03108716569840908,
-0.03651124984025955,
0.029616840183734894,
-0.24330440163612366,
-0.07554549723863602,
0.37697744369506836,
0.10331077873706818,
0.19513562321662903,
-0.0021543726325035095,
0.17235462367534637,
0.5699686408042908,
0.10576049983501434,
0.2656722664833069,
0.6826026439666748,
0.19055338203907013,
-0.011056970804929733,
-0.24717554450035095,
-0.14379151165485382,
0.03382682055234909,
-0.13048583269119263,
-0.07412321865558624,
0.3174585700035095,
0.2115095555782318,
-0.1696210652589798,
-0.39214131236076355,
-0.17391730844974518,
0.30901411175727844,
-0.08098605275154114,
0.11022602021694183,
-0.05595783889293671,
0.39234811067581177,
-0.08787298202514648,
-0.1036854237318039,
-0.18621820211410522,
-0.2995806932449341,
0.19419270753860474,
-0.030157029628753662,
0.43295738101005554,
0.34430038928985596,
-0.1909938007593155,
0.2286818027496338,
-0.25409579277038574,
0.360757976770401,
0.3130701184272766,
-0.18564756214618683,
-0.13756303489208221,
-0.09733828902244568,
0.12713631987571716,
-0.010072415694594383,
0.09577473998069763,
-0.43307095766067505,
-0.2746288776397705,
0.04381180927157402,
-0.19476334750652313,
0.09142924845218658,
-0.23157556354999542,
0.08224749565124512,
-0.3401622474193573,
-0.27047625184059143,
0.6547678709030151,
-0.15611661970615387,
-0.39165762066841125,
-0.017385169863700867,
0.05530253425240517,
-0.10191184282302856,
-0.044977135956287384,
0.21251456439495087,
-0.12778449058532715,
-0.45384880900382996,
-0.049612678587436676,
-0.26990601420402527,
0.1844642013311386,
-0.026807380840182304,
-0.2026022970676422,
0.1399141550064087,
0.4498545825481415,
0.08300695568323135,
-0.03430168330669403,
0.25147745013237,
0.10617423802614212,
0.05982915684580803,
0.07075139880180359,
0.1890326887369156,
0.3221033811569214,
0.4983746409416199,
0.45390835404396057,
-0.024999625980854034,
-0.05146922916173935,
0.050167325884103775,
0.13930490612983704,
0.11018340289592743,
0.17108334600925446,
-0.040986187756061554,
-0.02674180641770363,
0.2673957645893097,
-0.40531203150749207,
0.1056562215089798,
-0.006323214620351791,
-0.42823702096939087,
-0.29454031586647034,
-0.2508218288421631,
0.307203084230423,
-0.037848956882953644,
-0.04213614761829376,
0.14434070885181427,
0.02773495763540268,
0.006408381275832653,
0.5432685017585754,
0.38068047165870667,
0.9917176961898804,
-0.28391730785369873,
0.2534330487251282,
0.03349801152944565,
-0.2977685332298279,
0.11973575502634048,
-0.7223377823829651,
0.07092344015836716,
-0.17225809395313263,
-0.33303502202033997,
-0.14534743130207062,
0.09860798716545105,
0.17143124341964722,
0.05089695006608963,
-0.18244202435016632,
0.09237105399370193,
0.5267035365104675,
0.5070903301239014,
-0.114900603890419,
0.3402111828327179,
-0.10504037886857986,
-0.532932460308075,
-0.3086983561515808,
0.18017089366912842,
-0.23585228621959686,
0.16177915036678314,
0.043868184089660645,
-0.524766743183136,
-0.03549552708864212,
0.19327417016029358,
-0.2533877491950989,
0.2605871260166168,
0.04434320703148842,
-0.2093055099248886,
-0.4213087856769562,
-0.002589412033557892,
-0.025910314172506332,
0.17914439737796783,
-0.18383105099201202,
-0.07064826786518097,
-0.3795776963233948,
-0.006465669721364975,
-0.10495222359895706,
0.06762117147445679,
-0.23303020000457764,
-0.143976092338562,
0.09354214370250702,
-0.26832032203674316,
-0.04182363301515579,
0.19176757335662842,
0.03443358466029167,
-0.32463592290878296,
-0.3139019012451172,
-0.04870995134115219,
0.22275876998901367,
-0.19438984990119934,
0.022213445976376534,
0.16664692759513855,
0.04294245317578316,
-0.10262520611286163,
0.057306788861751556,
-0.06136539578437805,
0.11016260832548141,
0.006554663181304932,
0.007909528911113739,
0.12466046214103699,
-0.22642801702022552,
0.22159317135810852,
-0.09604700654745102,
0.2415328025817871,
0.06037921458482742,
0.03537171706557274,
-0.07349030673503876,
-0.0817888081073761,
-0.02721613273024559,
-0.22303055226802826,
-0.24795007705688477,
-0.038457971066236496,
-0.11145944893360138,
-0.1244044303894043,
-0.019565779715776443,
0.42320239543914795,
0.10343430936336517,
-0.292149156332016,
-0.030023720115423203,
-0.25082021951675415,
-0.15061742067337036,
0.2165374457836151,
-0.10392022132873535,
0.23906786739826202,
0.040065668523311615,
0.12396800518035889,
-0.032810479402542114,
-0.050839997828006744,
-0.3150280714035034,
-0.221709743142128,
0.07683756947517395,
0.014574983157217503,
-0.17416024208068848,
0.03598785400390625,
0.3455173671245575,
0.00762454979121685,
-0.032722823321819305,
-0.12591594457626343,
-0.3495626449584961,
-0.10236389935016632,
0.03568442910909653,
0.16046567261219025,
0.3047609031200409,
-0.10451020300388336,
-0.12987938523292542,
-0.0995975062251091,
-0.0378447026014328,
-0.2722282111644745,
0.30655163526535034,
0.020188376307487488,
-0.19202519953250885,
-0.10515399277210236,
0.09013606607913971,
-0.13004344701766968,
-0.3445230722427368,
0.06181371584534645,
0.3819841742515564,
0.1295342743396759,
-0.022929351776838303,
0.025710320100188255,
0.04083877056837082,
-0.3049777150154114,
-0.0734497532248497,
0.055744342505931854,
0.4666241407394409,
0.025355899706482887,
0.6764374375343323,
0.15400992333889008,
0.07511162757873535,
0.3221331834793091,
0.45718714594841003,
-0.2457057535648346,
0.02765173837542534,
0.0767810046672821,
0.16252949833869934,
0.16790048778057098,
-0.08535119891166687,
-0.19075585901737213,
0.07438206672668457,
0.0024261632934212685,
0.003422096371650696,
0.1932947039604187,
0.5815514326095581,
0.11787113547325134,
-0.008959166705608368,
-0.10515047609806061,
0.33318427205085754,
0.04763096943497658,
0.09981997311115265,
0.08009115606546402,
0.021467458456754684,
0.08670710772275925,
-0.21273738145828247,
-0.0778219997882843,
0.13518373668193817,
-0.06468378007411957,
-0.13368552923202515,
0.3795066773891449,
0.19171568751335144,
-0.011623222380876541,
0.03625599294900894,
-0.580390989780426,
-0.06469090282917023,
-0.0908571183681488,
0.42806458473205566,
0.14346018433570862,
-0.053823113441467285,
-0.09704587608575821,
0.44198745489120483,
-0.4520944356918335,
-0.20251309871673584,
0.43047595024108887,
0.3320429027080536,
0.16397856175899506,
0.09060874581336975,
-0.10599018633365631,
-0.15310586988925934,
0.30105504393577576,
0.16474495828151703,
0.06534884870052338,
0.3112521171569824,
0.044550929218530655,
0.18218985199928284,
-0.25743699073791504,
0.11620217561721802,
0.18547633290290833,
0.24072468280792236,
-0.13713304698467255,
0.19678005576133728,
0.10312129557132721,
-0.29430118203163147,
0.018225762993097305,
0.07703262567520142,
0.1951640397310257,
0.06671034544706345,
0.16917936503887177,
0.22975580394268036,
-0.3383246958255768,
0.12321989238262177,
0.2695745825767517,
0.07917380332946777,
0.07009384781122208,
-0.022389311343431473,
0.5081810355186462,
0.03199164569377899,
-0.04299512505531311,
0.06523758918046951,
-0.34759071469306946,
-0.07204894721508026,
0.0029439646750688553,
0.13014595210552216,
0.4227061867713928,
0.018075905740261078,
0.04108173027634621,
-0.03515792638063431,
-0.11363397538661957,
-0.0650310143828392,
0.09073947370052338,
0.008919590152800083,
0.049303144216537476,
-0.08485069870948792,
0.09624622017145157,
0.028216658160090446,
0.31460273265838623,
0.1209636926651001,
0.014017146080732346,
-0.11468178778886795,
-0.2764519453048706,
-0.09451769292354584,
-0.19048044085502625,
0.041118983179330826,
0.055406972765922546,
-0.01689974032342434,
-0.07532623410224915,
0.305854856967926,
0.10634784400463104,
-0.19073380529880524,
-0.26570621132850647,
0.28713861107826233,
0.31848180294036865,
-0.2917572557926178,
0.22760775685310364,
0.05978704243898392,
0.17879478633403778,
0.05755516141653061,
-0.12048187851905823,
0.2499696910381317,
0.04136590287089348,
0.021328717470169067,
0.01188697386533022,
0.0014606192708015442,
-0.15747539699077606,
-0.5145052671432495,
0.37835440039634705,
-0.2108279913663864,
-0.04475194215774536,
-0.10513156652450562,
-0.08274965733289719,
-0.21368691325187683,
0.0778050571680069,
-0.0226658433675766,
-0.11180735379457474,
0.047967083752155304,
0.5583728551864624,
-0.1373426616191864,
-0.03732655569911003,
-0.33904826641082764,
0.3102916479110718,
-0.11603803187608719,
-0.22967830300331116,
0.025747599080204964,
-0.11686760187149048,
-0.21772748231887817,
0.047319844365119934,
0.15748126804828644,
0.10985161364078522,
0.07112722098827362,
-0.086118683218956,
-0.3715442419052124,
-0.2951754629611969,
0.5850423574447632,
0.10851141065359116,
-0.022853340953588486,
0.20399168133735657,
0.06002790108323097,
0.24597597122192383,
0.028667593374848366,
-0.36299288272857666,
0.09777996689081192,
0.05396006256341934,
0.0443560928106308,
0.37969812750816345,
0.5301178097724915,
0.26067155599594116,
-0.19972938299179077,
-0.12880422174930573,
0.16894087195396423,
0.10176932066679001,
-0.08485903590917587,
-0.17011740803718567,
0.09759056568145752
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | I'm still messing around with that dataset, so the data might have moved. I currently have each year of MRMS precipitation rate data as it's own zarr, but as they are quite large (on order of 100GB each) I'm working to split them into single days, and as such they are still being moved around, I was just trying to get a proof of concept working originally. | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 67 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
I'm still messing around with that dataset, so the data might have moved. I currently have each year of MRMS precipitation rate data as it's own zarr, but as they are quite large (on order of 100GB each) I'm working to split them into single days, and as such they are still being moved around, I was just trying to get a proof of concept working originally. | [
-0.31905877590179443,
-0.1435210257768631,
-0.02451399154961109,
-0.18626467883586884,
0.01632748171687126,
0.08207256346940994,
0.054684560745954514,
0.24200204014778137,
0.29531529545783997,
0.3457220792770386,
-0.38183870911598206,
0.20182162523269653,
-0.1873716413974762,
0.6717907190322876,
0.011486772447824478,
-0.1103142648935318,
-0.04257293790578842,
0.13248585164546967,
0.13846652209758759,
0.1082976758480072,
0.2198798954486847,
-0.020367758348584175,
0.03468586504459381,
-0.25081080198287964,
-0.012528358027338982,
0.04381532222032547,
-0.16511206328868866,
0.09969644248485565,
-0.17705242335796356,
-0.27856171131134033,
0.3418729305267334,
0.3394102454185486,
0.4450644850730896,
-0.011155620217323303,
-0.00010680760897230357,
-0.09920278191566467,
0.13725358247756958,
-0.1842411905527115,
-0.20811054110527039,
-0.3529597520828247,
-0.04518349468708038,
-0.25841522216796875,
-0.2645391821861267,
0.0470699742436409,
-0.11504548788070679,
-0.5178636312484741,
0.03512310981750488,
-0.1690155565738678,
0.16805866360664368,
-0.03734520822763443,
0.12524491548538208,
-0.11520323902368546,
-0.22133949398994446,
-0.15855705738067627,
0.35325947403907776,
0.5408807396888733,
-0.41036832332611084,
0.11133027076721191,
0.30021536350250244,
0.0837310403585434,
0.023469075560569763,
0.43286171555519104,
-0.29230594635009766,
-0.004644719883799553,
0.24793121218681335,
-0.1009535863995552,
-0.8227811455726624,
-0.2169637680053711,
-0.1746639609336853,
0.35196632146835327,
0.5523099899291992,
-0.25425148010253906,
-0.6050985455513,
-0.20799171924591064,
0.01906808838248253,
-0.27982234954833984,
-0.22832298278808594,
0.29263582825660706,
-0.15215416252613068,
0.2419419288635254,
-0.35711005330085754,
-0.2762421667575836,
-0.37076902389526367,
0.3262842297554016,
0.14566215872764587,
0.5201460719108582,
0.04342319071292877,
-0.11043866723775864,
0.022366203367710114,
-0.005197841674089432,
0.4288381040096283,
-0.27455076575279236,
0.08962847292423248,
0.08564445376396179,
-0.3783199191093445,
-0.21909105777740479,
-0.011651307344436646,
0.05274200439453125,
0.4959256052970886,
0.5281912088394165,
0.26703202724456787,
0.2896869480609894,
-0.09054607897996902,
0.029955865815281868,
0.007739890366792679,
0.09968960285186768,
-0.2926102876663208,
-0.22925451397895813,
0.3060382008552551,
0.25053107738494873,
0.1585661619901657,
-0.264662504196167,
-0.002214634558185935,
0.42689526081085205,
-0.28466567397117615,
-0.0858379378914833,
0.09098754078149796,
-0.34956738352775574,
0.07489755004644394,
-0.12350363284349442,
-0.32634425163269043,
-0.19149063527584076,
-0.13244707882404327,
0.15051287412643433,
0.012704295106232166,
0.23045194149017334,
-0.16942651569843292,
0.21214799582958221,
0.1405048668384552,
-0.24515670537948608,
-0.05998919904232025,
-0.06585590541362762,
0.09133124351501465,
0.6429402232170105,
0.19047361612319946,
-0.31316816806793213,
0.15023894608020782,
-0.049049973487854004,
0.500050961971283,
0.1817900538444519,
0.23652735352516174,
-0.17246872186660767,
0.17980891466140747,
0.15776625275611877,
-0.04560939595103264,
-0.05206695944070816,
-0.07521829009056091,
0.4196428060531616,
-0.1532392054796219,
0.04396737366914749,
-0.29674553871154785,
-0.6479418873786926,
-0.12584492564201355,
0.04504765570163727,
-0.05657429248094559,
-0.18253423273563385,
-0.27753621339797974,
0.27838432788848877,
-0.43711307644844055,
-0.2766139805316925,
-0.27852925658226013,
0.20938611030578613,
-0.1897013634443283,
-0.02505037933588028,
0.28343674540519714,
0.16913403570652008,
-0.06609201431274414,
0.1826251894235611,
-0.20775020122528076,
0.2058996558189392,
0.3784821331501007,
0.15882477164268494,
-0.4237075448036194,
0.18887630105018616,
-0.21413834393024445,
0.06699991226196289,
0.3776058256626129,
-0.32068437337875366,
-0.18699106574058533,
0.2847803831100464,
0.18694116175174713,
0.2352798730134964,
0.15377795696258545,
0.06722438335418701,
0.4373186528682709,
0.04543264955282211,
-0.24046680331230164,
0.486763596534729,
-0.25962647795677185,
0.17281301319599152,
-0.25312256813049316,
-0.2912037968635559,
-0.20529264211654663,
0.5434021949768066,
-0.18650592863559723,
-0.03654118627309799,
0.21785369515419006,
0.14163583517074585,
0.35130906105041504,
-0.2657814025878906,
0.1582627147436142,
0.048708561807870865,
0.09828227758407593,
0.31446030735969543,
-0.19262643158435822,
-0.08934684842824936,
-0.35636764764785767,
0.05839322507381439,
-0.252681165933609,
0.15352866053581238,
0.1590898185968399,
-0.17281970381736755,
-0.10283134132623672,
0.02752080373466015,
-0.0239073745906353,
-0.11508257687091827,
0.05821363627910614,
0.2885626554489136,
0.04467061534523964,
-0.0835404247045517,
-0.11830329895019531,
0.35865625739097595,
0.2976337671279907,
-0.11835135519504547,
0.0005589183419942856,
0.5601952075958252,
-0.05993501842021942,
-0.07114290446043015,
0.26330438256263733,
-0.023795872926712036,
0.04437785595655441,
-0.09294443577528,
-0.17951980233192444,
0.17817825078964233,
0.027682840824127197,
0.22180189192295074,
0.2896857261657715,
0.42285072803497314,
0.3870273530483246,
-0.051906704902648926,
0.19306133687496185,
0.09038478136062622,
-0.02286287397146225,
0.13726606965065002,
-0.46173182129859924,
0.2649672031402588,
0.013570580631494522,
-0.09387033432722092,
-0.18616944551467896,
0.14760859310626984,
0.19255709648132324,
0.01028834655880928,
-0.1730113923549652,
-0.046241357922554016,
-0.02556830272078514,
-0.2551025450229645,
-0.12129516899585724,
-0.2806541621685028,
-0.38070836663246155,
0.24394026398658752,
0.23886743187904358,
0.08130338788032532,
-0.3458983302116394,
0.16322115063667297,
-0.05340106040239334,
-0.19627800583839417,
0.5009632110595703,
0.3038441240787506,
0.21505868434906006,
0.43453457951545715,
-0.09690698981285095,
-0.02385321445763111,
0.13171716034412384,
-0.08223193138837814,
0.039506152272224426,
0.15361198782920837,
0.23575612902641296,
0.26239871978759766,
0.307960569858551,
0.16954593360424042,
-0.18326333165168762,
-0.6217877268791199,
-0.0943273976445198,
-0.1615176945924759,
0.2143765091896057,
-0.19370567798614502,
-0.2219986468553543,
-0.3744358420372009,
-0.016073547303676605,
-0.04253118485212326,
-0.14102838933467865,
-0.3107251524925232,
0.13879592716693878,
0.39869174361228943,
-0.3703598380088806,
-0.02132929302752018,
-0.05739147961139679,
0.3244076371192932,
-0.3681589961051941,
-0.23748745024204254,
-0.40185216069221497,
-0.07461234927177429,
0.002896048128604889,
0.05562514439225197,
0.028041895478963852,
-0.14465650916099548,
0.47965696454048157,
0.3007311224937439,
0.2866293787956238,
-0.5989776849746704,
-0.08869217336177826,
0.23635052144527435,
-0.07110682129859924,
-0.1515684723854065,
-0.03305727243423462,
0.14194677770137787,
0.10294263064861298,
-0.0800175592303276,
0.17661038041114807,
-0.004456678405404091,
0.104548379778862,
-0.06364065408706665,
0.0807308480143547,
0.11137192696332932,
-0.08405707776546478,
-0.05288230627775192,
-0.4205373525619507,
-0.679742693901062,
-0.2757980227470398,
-0.07570423185825348,
0.15914753079414368,
-0.03187375143170357,
-0.046478040516376495,
-0.2621578872203827,
-0.27762845158576965,
-0.3300381004810333,
-0.008995252661406994,
-0.5387791991233826,
0.47366711497306824,
-0.3988211750984192,
-0.21428509056568146,
0.11513657867908478,
0.27394914627075195,
-0.061608996242284775,
0.2733531594276428,
-0.2572762072086334,
-0.06383607536554337,
-0.011374743655323982,
0.019344881176948547,
-0.0924072116613388,
-0.20948582887649536,
0.4581960141658783,
0.034393612295389175,
-0.05401280149817467,
0.04863964021205902,
-0.24767115712165833,
-0.06033202260732651,
0.3887462913990021,
0.08245448023080826,
0.18102073669433594,
-0.016297318041324615,
0.17305776476860046,
0.537880003452301,
0.07897275686264038,
0.2694564461708069,
0.6623388528823853,
0.19944700598716736,
-0.016845326870679855,
-0.2591766119003296,
-0.1294119954109192,
0.03437605872750282,
-0.12883684039115906,
-0.06815172731876373,
0.32834935188293457,
0.22061023116111755,
-0.18307413160800934,
-0.37973904609680176,
-0.21592113375663757,
0.3043774366378784,
-0.07728603482246399,
0.1240420788526535,
-0.04020299017429352,
0.39504697918891907,
-0.09483946859836578,
-0.12199483811855316,
-0.20874330401420593,
-0.3048381805419922,
0.1995014250278473,
-0.030566170811653137,
0.43908587098121643,
0.3313158452510834,
-0.18527698516845703,
0.21567513048648834,
-0.23939248919487,
0.365220308303833,
0.3285409212112427,
-0.19366683065891266,
-0.13552364706993103,
-0.11641757935285568,
0.12636683881282806,
-0.0006786440499126911,
0.09270551800727844,
-0.419714093208313,
-0.2708503007888794,
0.05068086460232735,
-0.21357521414756775,
0.10562161356210709,
-0.23855222761631012,
0.07963301241397858,
-0.35763174295425415,
-0.27928370237350464,
0.6940396428108215,
-0.13285136222839355,
-0.41822439432144165,
-0.0047578029334545135,
0.07420871406793594,
-0.12655530869960785,
-0.04040742293000221,
0.20836062729358673,
-0.13614800572395325,
-0.4528917074203491,
-0.052640341222286224,
-0.2675236463546753,
0.19231291115283966,
-0.021447502076625824,
-0.22558943927288055,
0.129136860370636,
0.43572288751602173,
0.07667559385299683,
-0.03437117487192154,
0.24238094687461853,
0.1084798127412796,
0.044136445969343185,
0.04954393580555916,
0.1792609989643097,
0.31129294633865356,
0.48548996448516846,
0.44709309935569763,
0.0009229183197021484,
-0.04543113708496094,
0.018824651837348938,
0.1397785246372223,
0.09798432886600494,
0.17128632962703705,
-0.044374339282512665,
-0.045643389225006104,
0.30145442485809326,
-0.4468000829219818,
0.0753680169582367,
0.0012617576867341995,
-0.4527316987514496,
-0.29788297414779663,
-0.21138136088848114,
0.33246657252311707,
-0.042018406093120575,
-0.03461194410920143,
0.11201845854520798,
0.03450736403465271,
0.023905470967292786,
0.5768081545829773,
0.4106247127056122,
1.0069414377212524,
-0.29760247468948364,
0.2572305500507355,
0.040458545088768005,
-0.2934252917766571,
0.10675889998674393,
-0.7432089447975159,
0.05869230255484581,
-0.17288362979888916,
-0.32701170444488525,
-0.14264345169067383,
0.09711533784866333,
0.15797993540763855,
0.06042935699224472,
-0.18251346051692963,
0.05219072476029396,
0.5092821717262268,
0.495665580034256,
-0.12776249647140503,
0.34677791595458984,
-0.08982887119054794,
-0.5318243503570557,
-0.2843605577945709,
0.18589471280574799,
-0.22648762166500092,
0.16663490235805511,
0.07019355893135071,
-0.5224841237068176,
-0.029857156798243523,
0.1991962492465973,
-0.2500095069408417,
0.2566804587841034,
0.06686678528785706,
-0.20545163750648499,
-0.3975829482078552,
-0.004637762904167175,
-0.04990515112876892,
0.15562891960144043,
-0.18226753175258636,
-0.04265390709042549,
-0.3663864731788635,
-0.03375354781746864,
-0.11030817776918411,
0.07116271555423737,
-0.23431256413459778,
-0.12510856986045837,
0.10472095012664795,
-0.2721690833568573,
-0.04104882478713989,
0.178509920835495,
0.04065394401550293,
-0.3286324739456177,
-0.30114907026290894,
-0.040548890829086304,
0.21629442274570465,
-0.20808956027030945,
0.04010852798819542,
0.1700725257396698,
0.030979063361883163,
-0.11228661239147186,
0.0685826763510704,
-0.049417831003665924,
0.12312371283769608,
0.0013092085719108582,
0.03346050903201103,
0.11222994327545166,
-0.22191305458545685,
0.19019153714179993,
-0.08035743981599808,
0.2527424693107605,
0.05903689190745354,
0.016623038798570633,
-0.062060918658971786,
-0.10436659306287766,
-0.0037229210138320923,
-0.23814348876476288,
-0.25326061248779297,
-0.025978628545999527,
-0.11028574407100677,
-0.12525370717048645,
-0.01576073281466961,
0.4299545884132385,
0.11835969239473343,
-0.30843585729599,
-0.04077256843447685,
-0.26854419708251953,
-0.13793045282363892,
0.20320247113704681,
-0.10237015783786774,
0.24506410956382751,
0.0432911217212677,
0.1476515382528305,
-0.031796298921108246,
-0.02488802559673786,
-0.32705554366111755,
-0.21419008076190948,
0.05599250644445419,
0.009681550785899162,
-0.18655376136302948,
0.042423348873853683,
0.3262248933315277,
0.03410172462463379,
-0.021997984498739243,
-0.12233938276767731,
-0.3414367139339447,
-0.11515209823846817,
0.027085725218057632,
0.15268124639987946,
0.2890358567237854,
-0.0666048675775528,
-0.13490991294384003,
-0.0866505429148674,
-0.03941339626908302,
-0.2745779752731323,
0.29755449295043945,
-0.005214579403400421,
-0.19851131737232208,
-0.09468507766723633,
0.06671622395515442,
-0.13006693124771118,
-0.3300894498825073,
0.06507836282253265,
0.3724045157432556,
0.1267613023519516,
-0.027859851717948914,
0.011589203029870987,
0.02229452133178711,
-0.31484878063201904,
-0.0795779824256897,
0.062320295721292496,
0.4540055990219116,
0.004527797922492027,
0.6827310919761658,
0.16659358143806458,
0.08001641929149628,
0.3304715156555176,
0.4371587336063385,
-0.28697603940963745,
0.01726432517170906,
0.08412133157253265,
0.17090851068496704,
0.17942248284816742,
-0.09639660269021988,
-0.20528385043144226,
0.07040321826934814,
0.010270129889249802,
-0.007855646312236786,
0.217730313539505,
0.5880130529403687,
0.1355419158935547,
0.02149331569671631,
-0.11395545303821564,
0.3277099132537842,
0.04441971331834793,
0.06632760167121887,
0.08422014117240906,
0.01596798375248909,
0.0847015455365181,
-0.20335830748081207,
-0.0734868198633194,
0.15425193309783936,
-0.07161515951156616,
-0.1175544336438179,
0.36749714612960815,
0.17765724658966064,
-0.030195850878953934,
0.05313440412282944,
-0.583732008934021,
-0.04486322030425072,
-0.07751518487930298,
0.43445539474487305,
0.1313808262348175,
-0.04702754318714142,
-0.11066833883523941,
0.45401516556739807,
-0.4527469277381897,
-0.2194232940673828,
0.4502110779285431,
0.31506621837615967,
0.18781256675720215,
0.10453042387962341,
-0.0974053144454956,
-0.15077853202819824,
0.27616235613822937,
0.17445290088653564,
0.05139493942260742,
0.30042779445648193,
0.05022072046995163,
0.1857614517211914,
-0.23265396058559418,
0.1304534673690796,
0.17277798056602478,
0.24402645230293274,
-0.13784851133823395,
0.180853471159935,
0.11214461177587509,
-0.2967075705528259,
-0.0014535114169120789,
0.07590201497077942,
0.19471123814582825,
0.07011879980564117,
0.1574220359325409,
0.23377478122711182,
-0.3584417402744293,
0.12817560136318207,
0.2645782232284546,
0.07004773616790771,
0.049567971378564835,
-0.003925137221813202,
0.515116810798645,
0.0434635728597641,
-0.03860218822956085,
0.07117272913455963,
-0.336379736661911,
-0.0661030113697052,
-0.005316953640431166,
0.1411104053258896,
0.44821885228157043,
-0.00021895766258239746,
0.034232158213853836,
-0.04150409251451492,
-0.09501264989376068,
-0.07580053806304932,
0.06434915959835052,
0.005508666858077049,
0.05968356132507324,
-0.08387444168329239,
0.10340210795402527,
0.01855795830488205,
0.3003113567829132,
0.1245444267988205,
0.00009671971201896667,
-0.10501333326101303,
-0.27593177556991577,
-0.062405653297901154,
-0.19140112400054932,
0.024442920461297035,
0.044080980122089386,
-0.008296187967061996,
-0.06980594992637634,
0.3078390955924988,
0.13431718945503235,
-0.19537098705768585,
-0.2766484320163727,
0.28303098678588867,
0.3128002882003784,
-0.2917349934577942,
0.23996956646442413,
0.057907555252313614,
0.16995465755462646,
0.058078959584236145,
-0.12238079309463501,
0.24893751740455627,
0.03353309631347656,
0.030963987112045288,
-0.007854389026761055,
-0.0027808845043182373,
-0.15353505313396454,
-0.4915432631969452,
0.38892412185668945,
-0.2127329260110855,
-0.0894576907157898,
-0.10806962102651596,
-0.0839373916387558,
-0.18869295716285706,
0.09982165694236755,
-0.006165569182485342,
-0.12062367051839828,
0.0556056946516037,
0.5388643741607666,
-0.141865074634552,
-0.03144274279475212,
-0.326144814491272,
0.28739064931869507,
-0.12179069221019745,
-0.21860696375370026,
0.034010037779808044,
-0.11420877277851105,
-0.19707635045051575,
0.022750943899154663,
0.17896400392055511,
0.1175386905670166,
0.0833098515868187,
-0.09371393173933029,
-0.363369345664978,
-0.2808999717235565,
0.5637330412864685,
0.12567003071308136,
-0.014478658325970173,
0.2212112545967102,
0.08878225088119507,
0.22367358207702637,
0.047453872859478,
-0.328795850276947,
0.09802220016717911,
0.06538804620504379,
0.0652182400226593,
0.37537872791290283,
0.5368032455444336,
0.25808054208755493,
-0.223968505859375,
-0.12245021760463715,
0.15593291819095612,
0.0847538560628891,
-0.08146684616804123,
-0.19115011394023895,
0.08760332316160202
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | I've mostly finished rearranging the data now and uploading some more, so this works now:
```python
import datasets
ds = datasets.load_dataset("openclimatefix/mrms", streaming=True, split="train")
item = next(iter(ds))
print(item.keys())
print(item["timestamp"])
```
The MRMS data now goes most of 2016-2022, with quite a few gaps I'm working on filling in | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 47 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
I've mostly finished rearranging the data now and uploading some more, so this works now:
```python
import datasets
ds = datasets.load_dataset("openclimatefix/mrms", streaming=True, split="train")
item = next(iter(ds))
print(item.keys())
print(item["timestamp"])
```
The MRMS data now goes most of 2016-2022, with quite a few gaps I'm working on filling in | [
-0.31460854411125183,
-0.15288738906383514,
-0.017942383885383606,
-0.1865331083536148,
0.01835629716515541,
0.08358537405729294,
0.06929712742567062,
0.23560616374015808,
0.3060990869998932,
0.34475117921829224,
-0.38248956203460693,
0.20602382719516754,
-0.18392837047576904,
0.6715686321258545,
0.009832514449954033,
-0.12169228494167328,
-0.03952542692422867,
0.11727406084537506,
0.1384008824825287,
0.10527756810188293,
0.22481831908226013,
-0.02375088445842266,
0.021283403038978577,
-0.24870358407497406,
-0.014996453188359737,
0.04455211013555527,
-0.17403627932071686,
0.11063562333583832,
-0.17769761383533478,
-0.2804836332798004,
0.33877506852149963,
0.3312615752220154,
0.43588289618492126,
-0.0049483031034469604,
-0.0001072351005859673,
-0.1032094955444336,
0.14871004223823547,
-0.1790439486503601,
-0.20279940962791443,
-0.35175859928131104,
-0.042489804327487946,
-0.2589905560016632,
-0.2609775960445404,
0.04547586292028427,
-0.10839862376451492,
-0.5240658521652222,
0.03355100378394127,
-0.17180514335632324,
0.16930128633975983,
-0.03548772260546684,
0.1203208863735199,
-0.11729452759027481,
-0.2142685204744339,
-0.15843744575977325,
0.35086023807525635,
0.5374153852462769,
-0.41223764419555664,
0.10729193687438965,
0.3128117322921753,
0.09058994799852371,
0.013403162360191345,
0.4276282787322998,
-0.2898944914340973,
-0.005141211673617363,
0.247740238904953,
-0.09525731205940247,
-0.8256646990776062,
-0.2231510579586029,
-0.17922553420066833,
0.3451012670993805,
0.5601564049720764,
-0.25847533345222473,
-0.6044702529907227,
-0.21738198399543762,
0.02453095093369484,
-0.275439977645874,
-0.22949650883674622,
0.2829875648021698,
-0.15231981873512268,
0.2292787730693817,
-0.3614494204521179,
-0.27971339225769043,
-0.37358853220939636,
0.3220564126968384,
0.14138615131378174,
0.5255414247512817,
0.048739247024059296,
-0.1068367287516594,
0.02293100208044052,
-0.005808185786008835,
0.43329331278800964,
-0.2692231237888336,
0.09207391738891602,
0.08540231734514236,
-0.3938007354736328,
-0.21748127043247223,
-0.009082160890102386,
0.051429107785224915,
0.4910160303115845,
0.529056966304779,
0.27081888914108276,
0.2900548577308655,
-0.08288612216711044,
0.026540763676166534,
0.014834944158792496,
0.11175726354122162,
-0.2986924648284912,
-0.2319679707288742,
0.29931971430778503,
0.2596413493156433,
0.15852394700050354,
-0.26034098863601685,
0.010445788502693176,
0.42219915986061096,
-0.29598408937454224,
-0.08245664089918137,
0.09122598171234131,
-0.34868234395980835,
0.07070816308259964,
-0.12069588154554367,
-0.3321129381656647,
-0.20170046389102936,
-0.12559695541858673,
0.1447013020515442,
0.0055197784677147865,
0.23455950617790222,
-0.17387649416923523,
0.20819947123527527,
0.13167785108089447,
-0.24207304418087006,
-0.05857346951961517,
-0.05906547233462334,
0.08034627139568329,
0.6367770433425903,
0.1941688060760498,
-0.3128233850002289,
0.14558401703834534,
-0.033569447696208954,
0.5069429874420166,
0.1856284886598587,
0.23929551243782043,
-0.17364530265331268,
0.1799614429473877,
0.14528656005859375,
-0.05431371182203293,
-0.052267201244831085,
-0.07399453222751617,
0.4301724433898926,
-0.14931626617908478,
0.0385839119553566,
-0.2987363338470459,
-0.6475345492362976,
-0.11833886802196503,
0.04199407994747162,
-0.06378690898418427,
-0.18604709208011627,
-0.2762981951236725,
0.2755145728588104,
-0.4434308707714081,
-0.2772548794746399,
-0.2828978896141052,
0.20743829011917114,
-0.18695180118083954,
-0.020386116579174995,
0.27992361783981323,
0.16532301902770996,
-0.07078344374895096,
0.18768548965454102,
-0.2235458791255951,
0.22148306667804718,
0.382954865694046,
0.15821105241775513,
-0.4301217794418335,
0.20328310132026672,
-0.21766327321529388,
0.06558971107006073,
0.3734779953956604,
-0.3156854808330536,
-0.1868138164281845,
0.2786237299442291,
0.18472956120967865,
0.23338325321674347,
0.15491850674152374,
0.05690925195813179,
0.43587541580200195,
0.05137493088841438,
-0.24838539958000183,
0.4736356735229492,
-0.25963297486305237,
0.16542766988277435,
-0.25367167592048645,
-0.29223594069480896,
-0.20397256314754486,
0.5414392948150635,
-0.18114855885505676,
-0.05122911185026169,
0.2244962751865387,
0.14047163724899292,
0.3546525239944458,
-0.27058839797973633,
0.15609602630138397,
0.05222988873720169,
0.09985779225826263,
0.3104338049888611,
-0.1952594369649887,
-0.08937695622444153,
-0.3658430278301239,
0.06557690352201462,
-0.24786843359470367,
0.16626191139221191,
0.16181305050849915,
-0.15440812706947327,
-0.10930164158344269,
0.02192290686070919,
-0.026784610003232956,
-0.11858336627483368,
0.05394640564918518,
0.2910817861557007,
0.03414332494139671,
-0.0827706977725029,
-0.11923158168792725,
0.3658312261104584,
0.30225691199302673,
-0.12189880013465881,
-0.0034579727798700333,
0.5680784583091736,
-0.06324724853038788,
-0.07559826970100403,
0.2574986517429352,
-0.01609201729297638,
0.0515717938542366,
-0.09357523173093796,
-0.17995551228523254,
0.1788175106048584,
0.038632702082395554,
0.21492627263069153,
0.3035598397254944,
0.4066869914531708,
0.4019213914871216,
-0.054811544716358185,
0.19059227406978607,
0.0963270366191864,
-0.026391245424747467,
0.13439634442329407,
-0.46719667315483093,
0.25957822799682617,
0.0024800002574920654,
-0.09311965852975845,
-0.1887504756450653,
0.1503676325082779,
0.18772868812084198,
0.011674899607896805,
-0.1621130406856537,
-0.04921181499958038,
-0.015392255038022995,
-0.24092863500118256,
-0.119813933968544,
-0.2782929539680481,
-0.38575345277786255,
0.25123006105422974,
0.2447853535413742,
0.08495697379112244,
-0.35493335127830505,
0.16029797494411469,
-0.04068703204393387,
-0.19982415437698364,
0.512556254863739,
0.3053751587867737,
0.22020143270492554,
0.43623319268226624,
-0.08471395075321198,
-0.016589218750596046,
0.12755818665027618,
-0.07299752533435822,
0.041281938552856445,
0.1559700071811676,
0.22737309336662292,
0.257040798664093,
0.3026534914970398,
0.1669122278690338,
-0.17146942019462585,
-0.6269179582595825,
-0.08718911558389664,
-0.16187813878059387,
0.20523962378501892,
-0.19903674721717834,
-0.22594021260738373,
-0.37183716893196106,
-0.022013895213603973,
-0.042564403265714645,
-0.14585603773593903,
-0.32529908418655396,
0.1354263424873352,
0.3953571617603302,
-0.3761884272098541,
-0.014191359281539917,
-0.06160230562090874,
0.31502294540405273,
-0.3712255656719208,
-0.23202840983867645,
-0.4141102433204651,
-0.06690968573093414,
-0.003489632159471512,
0.05349903926253319,
0.0322209931910038,
-0.1308283805847168,
0.47467291355133057,
0.3074173331260681,
0.28452664613723755,
-0.6129875779151917,
-0.10203994810581207,
0.24378207325935364,
-0.08351919054985046,
-0.13756996393203735,
-0.026561446487903595,
0.13422000408172607,
0.07800246775150299,
-0.08062490820884705,
0.17799238860607147,
-0.0032326150685548782,
0.1081191897392273,
-0.0592343844473362,
0.07860056310892105,
0.11559725552797318,
-0.07970839738845825,
-0.07280237227678299,
-0.4199106991291046,
-0.6794259548187256,
-0.2818027138710022,
-0.09660127758979797,
0.1553623527288437,
-0.038720838725566864,
-0.054358530789613724,
-0.26265543699264526,
-0.27689942717552185,
-0.3301527500152588,
-0.00571521557867527,
-0.5429220795631409,
0.4758564233779907,
-0.396457701921463,
-0.2146594375371933,
0.12042215466499329,
0.28851479291915894,
-0.05803421512246132,
0.2755172848701477,
-0.2530427575111389,
-0.0690460279583931,
-0.007045963779091835,
0.01928417757153511,
-0.10199110209941864,
-0.19995813071727753,
0.45487144589424133,
0.048450443893671036,
-0.05235670506954193,
0.0515701025724411,
-0.24885039031505585,
-0.06016465276479721,
0.4026171565055847,
0.09275277704000473,
0.17993003129959106,
-0.025102242827415466,
0.17289012670516968,
0.5460880994796753,
0.08604131639003754,
0.2787374258041382,
0.6710177659988403,
0.20708876848220825,
-0.0186757855117321,
-0.2607988715171814,
-0.1451270878314972,
0.034850943833589554,
-0.1291097104549408,
-0.06564958393573761,
0.3266342282295227,
0.21309834718704224,
-0.176052987575531,
-0.38020601868629456,
-0.20019584894180298,
0.30693721771240234,
-0.08396996557712555,
0.12585335969924927,
-0.03871548920869827,
0.39608582854270935,
-0.10158561170101166,
-0.11368954181671143,
-0.20345500111579895,
-0.30101001262664795,
0.19668613374233246,
-0.03289833664894104,
0.4338841736316681,
0.33354929089546204,
-0.1890914887189865,
0.21417401731014252,
-0.23642244935035706,
0.3649153709411621,
0.326084703207016,
-0.20122520625591278,
-0.1405865103006363,
-0.11264589428901672,
0.12733109295368195,
0.003558004042133689,
0.09003780782222748,
-0.4111228287220001,
-0.26960259675979614,
0.057868678122758865,
-0.20925237238407135,
0.1072252169251442,
-0.23582716286182404,
0.07963734865188599,
-0.36016950011253357,
-0.2621172368526459,
0.6876989603042603,
-0.14208383858203888,
-0.4209766387939453,
-0.009914066642522812,
0.07587973773479462,
-0.11857222020626068,
-0.05006387457251549,
0.21582342684268951,
-0.12910476326942444,
-0.44599002599716187,
-0.04349369555711746,
-0.2681269943714142,
0.19213494658470154,
-0.03002123162150383,
-0.22941835224628448,
0.13484413921833038,
0.43040063977241516,
0.07598404586315155,
-0.039448581635951996,
0.255012184381485,
0.09724384546279907,
0.05039094761013985,
0.0634332150220871,
0.18908639252185822,
0.3135559856891632,
0.4960188865661621,
0.44716325402259827,
0.0002424493432044983,
-0.04192245006561279,
0.01903550699353218,
0.14523708820343018,
0.11124011874198914,
0.1714228391647339,
-0.05040735751390457,
-0.04628886282444,
0.30095046758651733,
-0.439577579498291,
0.08131619542837143,
0.0018138345330953598,
-0.44266316294670105,
-0.29209259152412415,
-0.20823094248771667,
0.32166531682014465,
-0.04267321154475212,
-0.040162742137908936,
0.10766928642988205,
0.047947078943252563,
0.016443822532892227,
0.5766397714614868,
0.4067365825176239,
1.0142663717269897,
-0.2929278016090393,
0.25755998492240906,
0.045113906264305115,
-0.2934689521789551,
0.11495669186115265,
-0.7310810089111328,
0.06469368189573288,
-0.1779453605413437,
-0.326870858669281,
-0.1393124759197235,
0.09540975093841553,
0.160934180021286,
0.061162352561950684,
-0.18902164697647095,
0.07162799686193466,
0.5210341215133667,
0.4847182631492615,
-0.12789273262023926,
0.350902795791626,
-0.07809209823608398,
-0.5321696400642395,
-0.28742101788520813,
0.1801813542842865,
-0.22833029925823212,
0.15806342661380768,
0.06622359156608582,
-0.5292249321937561,
-0.04155418276786804,
0.20031799376010895,
-0.24856813251972198,
0.2535638213157654,
0.05917368456721306,
-0.20030687749385834,
-0.4055381119251251,
-0.006180897355079651,
-0.038485653698444366,
0.15230900049209595,
-0.18954525887966156,
-0.04152518883347511,
-0.3701004981994629,
-0.028938855975866318,
-0.10203846544027328,
0.07684238255023956,
-0.23042342066764832,
-0.13333213329315186,
0.10748730599880219,
-0.26669400930404663,
-0.052798766642808914,
0.17010948061943054,
0.030598517507314682,
-0.32689762115478516,
-0.3167048692703247,
-0.034204356372356415,
0.21576547622680664,
-0.20971739292144775,
0.04175833612680435,
0.16786226630210876,
0.029836509376764297,
-0.11001001298427582,
0.06534051895141602,
-0.04975398629903793,
0.12144800275564194,
0.015275068581104279,
0.022116128355264664,
0.10836531221866608,
-0.23036731779575348,
0.19209128618240356,
-0.08109056949615479,
0.24115368723869324,
0.05452728271484375,
0.026325654238462448,
-0.06081018224358559,
-0.09702107310295105,
-0.008363403379917145,
-0.23516497015953064,
-0.24936461448669434,
-0.03731650859117508,
-0.11691596359014511,
-0.12427056580781937,
-0.008948423899710178,
0.4193819761276245,
0.12104426324367523,
-0.30823686718940735,
-0.0472792349755764,
-0.26188474893569946,
-0.14407837390899658,
0.2079240381717682,
-0.09730029106140137,
0.24210073053836823,
0.040645599365234375,
0.14634771645069122,
-0.031640589237213135,
-0.035959333181381226,
-0.3226154148578644,
-0.20932187139987946,
0.06130233407020569,
0.011511081829667091,
-0.1833987683057785,
0.03099888190627098,
0.3242051303386688,
0.027872733771800995,
-0.02305208332836628,
-0.13177841901779175,
-0.34675168991088867,
-0.10794537514448166,
0.03800895810127258,
0.15612609684467316,
0.2921748161315918,
-0.07280949503183365,
-0.13329482078552246,
-0.09048747271299362,
-0.03205247223377228,
-0.27487611770629883,
0.2960766851902008,
0.0004049725830554962,
-0.19427980482578278,
-0.09940044581890106,
0.07619021087884903,
-0.13527804613113403,
-0.32532429695129395,
0.06595548987388611,
0.38144612312316895,
0.12295883893966675,
-0.028285233303904533,
0.019514191895723343,
0.025411473587155342,
-0.3123107850551605,
-0.06894853711128235,
0.06161773204803467,
0.45415693521499634,
0.013929478824138641,
0.6780691146850586,
0.16364112496376038,
0.0753776878118515,
0.334529846906662,
0.4397512376308441,
-0.2754594683647156,
0.01876835525035858,
0.06971282511949539,
0.16990947723388672,
0.17434914410114288,
-0.0928354412317276,
-0.207668736577034,
0.07218324393033981,
0.02280345931649208,
-0.011326484382152557,
0.2103915959596634,
0.5953668355941772,
0.13170073926448822,
0.009014353156089783,
-0.10513996332883835,
0.3303638696670532,
0.04587648808956146,
0.07134176790714264,
0.07032695412635803,
0.0024122297763824463,
0.07878933846950531,
-0.19974857568740845,
-0.07816928625106812,
0.14654704928398132,
-0.055872537195682526,
-0.11090479046106339,
0.3720903694629669,
0.1813984513282776,
-0.02261122688651085,
0.05381784588098526,
-0.5796294212341309,
-0.04290103539824486,
-0.07302539050579071,
0.4325267970561981,
0.12708258628845215,
-0.048882752656936646,
-0.10439974814653397,
0.4497631788253784,
-0.4677594006061554,
-0.21180236339569092,
0.4408488869667053,
0.30792972445487976,
0.1986183226108551,
0.11692330241203308,
-0.10336924344301224,
-0.15521980822086334,
0.27689722180366516,
0.17161959409713745,
0.05738405883312225,
0.31583017110824585,
0.04663826525211334,
0.17158009111881256,
-0.23980019986629486,
0.11539065837860107,
0.17919883131980896,
0.24314838647842407,
-0.13874630630016327,
0.18106263875961304,
0.11637081205844879,
-0.30782267451286316,
-0.005241971462965012,
0.07333752512931824,
0.19006988406181335,
0.07040797173976898,
0.14875595271587372,
0.23188655078411102,
-0.3496205806732178,
0.13119854032993317,
0.27078017592430115,
0.0671943724155426,
0.04915475472807884,
-0.017992481589317322,
0.5159165859222412,
0.03733896464109421,
-0.037965670228004456,
0.05993751436471939,
-0.33757948875427246,
-0.06513425707817078,
-0.007850668393075466,
0.13942502439022064,
0.45138245820999146,
-0.0024787671864032745,
0.04464884474873543,
-0.04252154380083084,
-0.11299353092908859,
-0.0701834037899971,
0.07733702659606934,
0.010743970051407814,
0.05408120155334473,
-0.08531978726387024,
0.1017061173915863,
0.026910599321126938,
0.2999887764453888,
0.11951673030853271,
0.0005737803876399994,
-0.1169661357998848,
-0.2749967575073242,
-0.06798392534255981,
-0.19293683767318726,
0.03441860154271126,
0.05546744912862778,
-0.0006882520392537117,
-0.07417391985654831,
0.30654412508010864,
0.1211257204413414,
-0.17564795911312103,
-0.27621644735336304,
0.2865159511566162,
0.30963972210884094,
-0.3111467957496643,
0.24440234899520874,
0.0642913207411766,
0.1687779426574707,
0.05326201021671295,
-0.11405832320451736,
0.2552471458911896,
0.03974029794335365,
0.025197498500347137,
0.0001391880214214325,
-0.004033491015434265,
-0.15515072643756866,
-0.4834042489528656,
0.3860761225223541,
-0.1990496814250946,
-0.07691085338592529,
-0.1093418300151825,
-0.08591362833976746,
-0.1956862211227417,
0.09431903064250946,
-0.008423296734690666,
-0.10946746915578842,
0.05670395493507385,
0.5482122898101807,
-0.14017163217067719,
-0.03203572705388069,
-0.3336958885192871,
0.29472535848617554,
-0.11506688594818115,
-0.2218528389930725,
0.027432406321167946,
-0.111537404358387,
-0.1909714937210083,
0.032447267323732376,
0.16818298399448395,
0.12224062532186508,
0.08501424640417099,
-0.08859840035438538,
-0.3693418502807617,
-0.28227511048316956,
0.5715434551239014,
0.14146265387535095,
-0.024233607575297356,
0.2155715972185135,
0.08513209223747253,
0.22604000568389893,
0.05204512178897858,
-0.34430834650993347,
0.0856916531920433,
0.06148817762732506,
0.06432326138019562,
0.3761741816997528,
0.5344293713569641,
0.257203072309494,
-0.22633397579193115,
-0.12019883096218109,
0.16267995536327362,
0.09245564043521881,
-0.0721936970949173,
-0.18358412384986877,
0.0962114930152893
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | Hi @albertvillanova, I noticed there is now the [HFFileSystem](https://huggingface.co/docs/huggingface_hub/main/en/guides/hf_file_system), where the docs show an example of writing a Zarr store directly to the Hub, and no mention of having too many files. Is there still the restriction on lots of files in `datasets`? It would be more convenient to be able to have the geospatial data in one large Zarr store, rather than in multiple smaller ones, but happy to continue using zipped Zarrs if thats the recommended way. | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 79 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
Hi @albertvillanova, I noticed there is now the [HFFileSystem](https://huggingface.co/docs/huggingface_hub/main/en/guides/hf_file_system), where the docs show an example of writing a Zarr store directly to the Hub, and no mention of having too many files. Is there still the restriction on lots of files in `datasets`? It would be more convenient to be able to have the geospatial data in one large Zarr store, rather than in multiple smaller ones, but happy to continue using zipped Zarrs if thats the recommended way. | [
-0.28596290946006775,
-0.13934540748596191,
-0.022838512435555458,
-0.2160182148218155,
0.030697833746671677,
0.08610258251428604,
0.0636271983385086,
0.2633105516433716,
0.33098578453063965,
0.337083637714386,
-0.39648422598838806,
0.1706221103668213,
-0.15322145819664001,
0.6502998471260071,
0.02836582064628601,
-0.12028545141220093,
-0.021436303853988647,
0.12239846587181091,
0.1674143373966217,
0.10316015779972076,
0.24946191906929016,
-0.00782228633761406,
0.015862271189689636,
-0.2388184815645218,
-0.002116489689797163,
0.0623352974653244,
-0.1734318733215332,
0.08414141833782196,
-0.17823955416679382,
-0.28582656383514404,
0.3561202585697174,
0.3320944011211395,
0.45777571201324463,
-0.031026847660541534,
-0.00010825665958691388,
-0.09357240796089172,
0.18074390292167664,
-0.19146017730236053,
-0.21035966277122498,
-0.3795764446258545,
-0.039587315171957016,
-0.2298683077096939,
-0.27266359329223633,
0.08645348995923996,
-0.10334368050098419,
-0.5178797841072083,
0.03969395533204079,
-0.17590510845184326,
0.11946411430835724,
-0.03939428552985191,
0.11952650547027588,
-0.11532265692949295,
-0.196066752076149,
-0.1696411371231079,
0.3531121015548706,
0.5458683371543884,
-0.404758483171463,
0.10414566099643707,
0.30050498247146606,
0.047004081308841705,
0.0021172910928726196,
0.39991503953933716,
-0.28530240058898926,
-0.014803130179643631,
0.2477494776248932,
-0.0885213315486908,
-0.8380314111709595,
-0.20931686460971832,
-0.14858746528625488,
0.3360210061073303,
0.5541719198226929,
-0.24878787994384766,
-0.5986270904541016,
-0.18830591440200806,
0.01837681233882904,
-0.2605687975883484,
-0.24172675609588623,
0.2909458875656128,
-0.15269848704338074,
0.2321467101573944,
-0.30602261424064636,
-0.30331647396087646,
-0.396488755941391,
0.31354761123657227,
0.1621481478214264,
0.5406272411346436,
0.05115406587719917,
-0.10789602249860764,
0.04069579765200615,
0.006035711616277695,
0.4440362751483917,
-0.26434576511383057,
0.05877389386296272,
0.07592553645372391,
-0.3848235309123993,
-0.21782711148262024,
-0.026187442243099213,
0.07746046781539917,
0.5084097981452942,
0.5090363025665283,
0.23800654709339142,
0.2542790174484253,
-0.09411870688199997,
0.04042595624923706,
0.014435763470828533,
0.12606027722358704,
-0.28390809893608093,
-0.22749947011470795,
0.28831595182418823,
0.27600181102752686,
0.1867392659187317,
-0.25764766335487366,
-0.000534258084371686,
0.4036064147949219,
-0.3248891830444336,
-0.1107194796204567,
0.0614980012178421,
-0.3674868941307068,
0.054427579045295715,
-0.13954848051071167,
-0.3380948305130005,
-0.20951592922210693,
-0.138633593916893,
0.1592838615179062,
0.014820518903434277,
0.22848889231681824,
-0.17199650406837463,
0.2241409420967102,
0.14464274048805237,
-0.2577672004699707,
-0.06792522966861725,
-0.04655890539288521,
0.08235630393028259,
0.6113789081573486,
0.191025972366333,
-0.3439944088459015,
0.146025151014328,
-0.0521664172410965,
0.5164303779602051,
0.18466949462890625,
0.2098228931427002,
-0.1880771964788437,
0.196306049823761,
0.19234557449817657,
-0.06154803931713104,
-0.05341809242963791,
-0.07024216651916504,
0.4014474153518677,
-0.14197653532028198,
0.05214155092835426,
-0.2975336015224457,
-0.638015627861023,
-0.15906770527362823,
0.03385772556066513,
-0.02162654884159565,
-0.22512084245681763,
-0.30010131001472473,
0.2569209337234497,
-0.4488833248615265,
-0.25806644558906555,
-0.2642902731895447,
0.22330394387245178,
-0.16267408430576324,
-0.03521976247429848,
0.29230156540870667,
0.15504911541938782,
-0.08250473439693451,
0.19053199887275696,
-0.21781949698925018,
0.20451125502586365,
0.38703012466430664,
0.16376633942127228,
-0.4282893240451813,
0.2116086483001709,
-0.22386610507965088,
0.06124603748321533,
0.3843070864677429,
-0.37503671646118164,
-0.1893071085214615,
0.30662938952445984,
0.21334661543369293,
0.227974072098732,
0.16550499200820923,
0.037266869097948074,
0.4317622482776642,
0.04150862246751785,
-0.2572617828845978,
0.47528064250946045,
-0.26349684596061707,
0.1454169899225235,
-0.23872855305671692,
-0.29414644837379456,
-0.2311875969171524,
0.5275107026100159,
-0.15556226670742035,
-0.0313054695725441,
0.22226405143737793,
0.15060113370418549,
0.38285523653030396,
-0.23857736587524414,
0.1491590291261673,
0.03897637501358986,
0.08251926302909851,
0.34844541549682617,
-0.17429830133914948,
-0.04433055967092514,
-0.3355424106121063,
0.04940072447061539,
-0.24294120073318481,
0.15212059020996094,
0.19872982800006866,
-0.16601812839508057,
-0.12825120985507965,
0.020805587992072105,
-0.02798290178179741,
-0.15269848704338074,
0.03775306046009064,
0.24648332595825195,
0.04971392825245857,
-0.08681458979845047,
-0.13247406482696533,
0.4178251028060913,
0.33384960889816284,
-0.1169060617685318,
0.022149141877889633,
0.5799556970596313,
-0.09338453412055969,
-0.04939766228199005,
0.25673237442970276,
-0.02276042103767395,
0.06053350865840912,
-0.08280021697282791,
-0.20649218559265137,
0.16848772764205933,
0.02475145272910595,
0.1974254846572876,
0.31395700573921204,
0.41845425963401794,
0.36870065331459045,
-0.04312930256128311,
0.19250720739364624,
0.10850895941257477,
-0.019120043143630028,
0.12954029440879822,
-0.44201841950416565,
0.2340695858001709,
0.012166699394583702,
-0.11993976682424545,
-0.1874043047428131,
0.13389334082603455,
0.20520076155662537,
0.008132725954055786,
-0.14983123540878296,
-0.049257002770900726,
-0.04271102324128151,
-0.26485779881477356,
-0.1360379308462143,
-0.30673646926879883,
-0.36151376366615295,
0.21285861730575562,
0.25607407093048096,
0.07744599878787994,
-0.3764718174934387,
0.17528170347213745,
-0.03896917402744293,
-0.19857075810432434,
0.5388784408569336,
0.2772000730037689,
0.22963760793209076,
0.4147515594959259,
-0.11545030772686005,
0.0009729955345392227,
0.11795341968536377,
-0.08836185187101364,
0.061586104333400726,
0.16970446705818176,
0.25826790928840637,
0.2610120475292206,
0.3074810206890106,
0.1632903516292572,
-0.18995675444602966,
-0.6521556973457336,
-0.11587582528591156,
-0.18360796570777893,
0.2187882959842682,
-0.2070717066526413,
-0.24335628747940063,
-0.39246034622192383,
-0.01378942932933569,
-0.016768015921115875,
-0.11719542741775513,
-0.3338201344013214,
0.13157197833061218,
0.3938533663749695,
-0.3442871570587158,
-0.017578110098838806,
-0.03219369426369667,
0.33599382638931274,
-0.36666613817214966,
-0.21804215013980865,
-0.41552793979644775,
-0.04861300438642502,
-0.02787443995475769,
0.038686808198690414,
0.011320368386805058,
-0.1928124874830246,
0.479361891746521,
0.27934375405311584,
0.2554579973220825,
-0.6348392963409424,
-0.11246311664581299,
0.2270459532737732,
-0.06392227113246918,
-0.16851572692394257,
-0.03494228422641754,
0.12107667326927185,
0.0794186070561409,
-0.065251424908638,
0.14098161458969116,
0.013385048136115074,
0.10140866041183472,
-0.07722605764865875,
0.04841950535774231,
0.13048696517944336,
-0.07342948764562607,
-0.03300033509731293,
-0.42957648634910583,
-0.6690915822982788,
-0.2893190383911133,
-0.09059491753578186,
0.15266507863998413,
-0.05586646497249603,
-0.06554267555475235,
-0.2785468101501465,
-0.27304670214653015,
-0.3614170253276825,
-0.007712803781032562,
-0.5427364110946655,
0.4521086812019348,
-0.37514182925224304,
-0.20243501663208008,
0.14652229845523834,
0.2853447198867798,
-0.06395256519317627,
0.23610547184944153,
-0.2646879553794861,
-0.05320749059319496,
0.021381158381700516,
0.04022840037941933,
-0.09574614465236664,
-0.2033563256263733,
0.45070526003837585,
0.013791656121611595,
-0.036507271230220795,
0.04959306865930557,
-0.23924727737903595,
-0.0657024160027504,
0.3824083209037781,
0.12051950395107269,
0.2019011676311493,
0.003210265189409256,
0.19026970863342285,
0.5216090679168701,
0.13984905183315277,
0.28912872076034546,
0.681219220161438,
0.21911168098449707,
-0.0004736706614494324,
-0.2896270751953125,
-0.12488600611686707,
0.06079911068081856,
-0.11252865195274353,
-0.07535386830568314,
0.3169345259666443,
0.21911171078681946,
-0.15616320073604584,
-0.3733861744403839,
-0.20523807406425476,
0.3572607934474945,
-0.0573836974799633,
0.10996069014072418,
-0.05536000430583954,
0.3878519833087921,
-0.10056792199611664,
-0.11135458201169968,
-0.1865379959344864,
-0.3162708580493927,
0.22678104043006897,
0.011561989784240723,
0.44727399945259094,
0.335872083902359,
-0.11368180811405182,
0.2273617386817932,
-0.2455502450466156,
0.3596002459526062,
0.333138108253479,
-0.15616756677627563,
-0.14890578389167786,
-0.08672422170639038,
0.14285747706890106,
0.007671302184462547,
0.11216176301240921,
-0.4103779196739197,
-0.2727597951889038,
0.06893375515937805,
-0.19848458468914032,
0.1372261941432953,
-0.2508280575275421,
0.09775818884372711,
-0.349029541015625,
-0.2509101331233978,
0.6858909130096436,
-0.14571402966976166,
-0.4220675528049469,
0.02824082039296627,
0.051209188997745514,
-0.11689150333404541,
-0.045372605323791504,
0.20773543417453766,
-0.13698971271514893,
-0.4347190260887146,
-0.06438294798135757,
-0.26041853427886963,
0.18180908262729645,
-0.037202827632427216,
-0.22532106935977936,
0.15325140953063965,
0.40268445014953613,
0.06575679779052734,
-0.08099587261676788,
0.21727195382118225,
0.09500839561223984,
0.051197852939367294,
0.0647098496556282,
0.19961735606193542,
0.3225880563259125,
0.4780708849430084,
0.4294448494911194,
-0.0043349117040634155,
-0.050643496215343475,
0.05408744886517525,
0.13174152374267578,
0.1024816632270813,
0.16689430177211761,
-0.026353128254413605,
-0.03743187338113785,
0.283328115940094,
-0.44695648550987244,
0.055083099752664566,
0.0020701950415968895,
-0.4502853453159332,
-0.30010920763015747,
-0.19109974801540375,
0.3230343759059906,
-0.04289437085390091,
-0.05221891403198242,
0.14488977193832397,
0.04627182334661484,
0.025552507489919662,
0.6150339841842651,
0.3568606376647949,
1.0156229734420776,
-0.28833043575286865,
0.2610083520412445,
0.04146750271320343,
-0.33933770656585693,
0.0699491873383522,
-0.7670648694038391,
0.06390539556741714,
-0.20007701218128204,
-0.3111216127872467,
-0.13718830049037933,
0.09444351494312286,
0.20215049386024475,
0.052799202501773834,
-0.1791379749774933,
0.10009531676769257,
0.5057809948921204,
0.48929300904273987,
-0.11066916584968567,
0.32836461067199707,
-0.07945550978183746,
-0.5185890197753906,
-0.25470107793807983,
0.18360701203346252,
-0.2152419537305832,
0.18903976678848267,
0.06007963418960571,
-0.5134403705596924,
-0.01781333237886429,
0.19776715338230133,
-0.25917431712150574,
0.2751293480396271,
0.09107396006584167,
-0.19194632768630981,
-0.34144237637519836,
0.008218131959438324,
-0.032954953610897064,
0.13050171732902527,
-0.1423492282629013,
-0.03633873537182808,
-0.34718790650367737,
-0.00042193010449409485,
-0.08288664370775223,
0.08365199714899063,
-0.24534331262111664,
-0.11570553481578827,
0.10460909456014633,
-0.26561304926872253,
-0.08010201156139374,
0.15036384761333466,
0.012195580638945103,
-0.3768313527107239,
-0.34457606077194214,
-0.0533464252948761,
0.24609176814556122,
-0.18242523074150085,
0.04962247237563133,
0.15742462873458862,
0.056157175451517105,
-0.11998599767684937,
0.06269198656082153,
-0.03436589241027832,
0.12702259421348572,
-0.013715729117393494,
0.03664516657590866,
0.11358964443206787,
-0.2366047352552414,
0.21117952466011047,
-0.0911380872130394,
0.24138575792312622,
0.048017144203186035,
0.003323793411254883,
-0.08914238959550858,
-0.09208521991968155,
-0.04619084298610687,
-0.23070524632930756,
-0.24205201864242554,
-0.008372643031179905,
-0.1154041439294815,
-0.14680235087871552,
-0.031131114810705185,
0.42322346568107605,
0.12255101650953293,
-0.2967781126499176,
-0.04577292501926422,
-0.25788354873657227,
-0.14038321375846863,
0.19929346442222595,
-0.15735650062561035,
0.21354243159294128,
0.0676877573132515,
0.1369670182466507,
-0.03468945622444153,
-0.02598453499376774,
-0.31119728088378906,
-0.20928022265434265,
0.06776156276464462,
0.00917748175561428,
-0.18890365958213806,
0.019565463066101074,
0.3254834711551666,
0.02968156710267067,
-0.020503666251897812,
-0.1337197721004486,
-0.3304094672203064,
-0.10339569300413132,
0.024988997727632523,
0.15731582045555115,
0.28503403067588806,
-0.042720235884189606,
-0.13750693202018738,
-0.11431965976953506,
-0.06389962136745453,
-0.2734696567058563,
0.3135613799095154,
0.0032553188502788544,
-0.19247059524059296,
-0.07686451077461243,
0.10548534989356995,
-0.16928714513778687,
-0.3025532364845276,
0.06002213805913925,
0.3815147578716278,
0.15454231202602386,
-0.03418714925646782,
-0.013802144676446915,
0.025085249915719032,
-0.3189954161643982,
-0.11546690762042999,
0.06945524364709854,
0.47167474031448364,
0.016538724303245544,
0.6861070394515991,
0.15321962535381317,
0.07774724066257477,
0.305741548538208,
0.4224066138267517,
-0.32031020522117615,
0.01683276705443859,
0.05449548363685608,
0.18639075756072998,
0.1593835949897766,
-0.08737848699092865,
-0.2262483388185501,
0.06897193193435669,
0.04125627130270004,
-0.02344454824924469,
0.19744619727134705,
0.6278684735298157,
0.125463604927063,
0.026959899812936783,
-0.09965385496616364,
0.31546762585639954,
0.06848591566085815,
0.043186839669942856,
0.07721703499555588,
0.0074695684015750885,
0.0958622545003891,
-0.19958120584487915,
-0.10186530649662018,
0.15731652081012726,
-0.04884994029998779,
-0.09721183031797409,
0.38750791549682617,
0.18981868028640747,
-0.03301529958844185,
0.07256998121738434,
-0.6202843189239502,
-0.03267548605799675,
-0.10980123281478882,
0.4316858649253845,
0.10424607992172241,
-0.02292346954345703,
-0.11578824371099472,
0.47338515520095825,
-0.4609792232513428,
-0.21107883751392365,
0.42081472277641296,
0.2822466492652893,
0.18631061911582947,
0.15367093682289124,
-0.08780627697706223,
-0.1445159912109375,
0.29203546047210693,
0.18425343930721283,
0.07632889598608017,
0.3126748204231262,
0.04306403547525406,
0.1468842774629593,
-0.21940907835960388,
0.14463666081428528,
0.17237895727157593,
0.24224814772605896,
-0.08473984152078629,
0.18522495031356812,
0.05900973081588745,
-0.2735694348812103,
0.019272316247224808,
0.10874151438474655,
0.1887802928686142,
0.08393285423517227,
0.1890432983636856,
0.18684740364551544,
-0.3459029197692871,
0.12649847567081451,
0.2822608947753906,
0.0675458163022995,
0.032169461250305176,
-0.029102377593517303,
0.4846637547016144,
0.026057107374072075,
-0.025411006063222885,
0.0761149525642395,
-0.3367178738117218,
-0.05798071250319481,
-0.002398993354290724,
0.17761431634426117,
0.43171271681785583,
-0.015441469848155975,
0.04368792474269867,
-0.03081353008747101,
-0.10710657387971878,
-0.05560643970966339,
0.06919508427381516,
0.0034471547696739435,
0.049907758831977844,
-0.1022982969880104,
0.09423204511404037,
0.013116237707436085,
0.29860982298851013,
0.1124323308467865,
-0.012194380164146423,
-0.09515578299760818,
-0.2934420704841614,
-0.04553403705358505,
-0.20394566655158997,
0.033368926495313644,
0.06842789053916931,
-0.005611204542219639,
-0.0890766978263855,
0.29666656255722046,
0.09258478879928589,
-0.15993697941303253,
-0.3154088854789734,
0.32959288358688354,
0.31183817982673645,
-0.2787565290927887,
0.24108542501926422,
0.11044977605342865,
0.1677379012107849,
0.05004020035266876,
-0.13709434866905212,
0.25931113958358765,
0.05797823891043663,
0.024174675345420837,
-0.022376619279384613,
-0.005508892238140106,
-0.13771633803844452,
-0.5045257806777954,
0.3891808092594147,
-0.19504030048847198,
-0.10169567167758942,
-0.10490573197603226,
-0.07794138044118881,
-0.1972629725933075,
0.08718199282884598,
0.008606967516243458,
-0.12113719433546066,
0.021480873227119446,
0.5465147495269775,
-0.13080699741840363,
-0.060707177966833115,
-0.33223065733909607,
0.28742754459381104,
-0.16501788794994354,
-0.21570809185504913,
0.00022821314632892609,
-0.08901115506887436,
-0.23032453656196594,
0.0417301319539547,
0.19547703862190247,
0.0944608598947525,
0.07455921173095703,
-0.09120144695043564,
-0.3742952346801758,
-0.26846843957901,
0.5539238452911377,
0.13647904992103577,
-0.025697428733110428,
0.19783803820610046,
0.07823155075311661,
0.2306368052959442,
0.018219321966171265,
-0.3220069408416748,
0.09008084982633591,
0.05203457921743393,
0.07479894161224365,
0.37962237000465393,
0.5465784072875977,
0.254753440618515,
-0.18975208699703217,
-0.11361266672611237,
0.15639552474021912,
0.0929492861032486,
-0.08549116551876068,
-0.19225986301898956,
0.08935706317424774
] |
https://github.com/huggingface/datasets/issues/4096 | Add support for streaming Zarr stores for hosted datasets | Hi @jacobbieker.
Thanks for coming back to this pending issue.
In fact, we are now using the `fsspec` API in our `HFFileSystem`, which was not the case when you created this issue.
On the other hand, I am not sure of the current limitations, both in terms of the number of files or performance when loading.
- If I remember correctly, I think there is a limit in the maximum number of files per directory: 10k
I think it would be best to try a POC again and discuss any issues that arise and whether we can fix them on our end (both `datasets` and the Hub).
We would really like to support the Zarr format 100% and that the Hub is really convenient for your use case. So do not hesitate to report any problem: you can ping me on the Hub as @albertvillanova | **Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
| 145 | Add support for streaming Zarr stores for hosted datasets
**Is your feature request related to a problem? Please describe.**
Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr stores are designed to be easily streamed in from cloud storage, especially with xarray and fsspec. Since geospatial data tends to be very large, and on the order of TBs of data or 10's of TBs of data for a single dataset, it can be difficult to store the dataset locally for users. Just adding Zarr stores with HF git doesn't work well (see https://github.com/huggingface/datasets/issues/3823) as Zarr splits the data into lots of small chunks for fast loading, and that doesn't work well with git. I've somewhat gotten around that issue by tarring each Zarr store and uploading them as a single file, which seems to be working (see https://huggingface.co/datasets/openclimatefix/gfs-reforecast for example data files, although the script isn't written yet). This does mean that streaming doesn't quite work though. On the other hand, in https://huggingface.co/datasets/openclimatefix/eumetsat_uk_hrv we stream in a Zarr store from a public GCP bucket quite easily.
**Describe the solution you'd like**
A way to upload Zarr stores for hosted datasets so that we can stream it with xarray and fsspec.
**Describe alternatives you've considered**
Tarring each Zarr store individually and just extracting them in the dataset script -> Downside this is a lot of data that probably doesn't fit locally for a lot of potential users.
Pre-prepare examples in a format like Parquet -> Would use a lot more storage, and a lot less flexibility, in the eumetsat_uk_hrv, we use the one Zarr store for multiple different configurations.
Hi @jacobbieker.
Thanks for coming back to this pending issue.
In fact, we are now using the `fsspec` API in our `HFFileSystem`, which was not the case when you created this issue.
On the other hand, I am not sure of the current limitations, both in terms of the number of files or performance when loading.
- If I remember correctly, I think there is a limit in the maximum number of files per directory: 10k
I think it would be best to try a POC again and discuss any issues that arise and whether we can fix them on our end (both `datasets` and the Hub).
We would really like to support the Zarr format 100% and that the Hub is really convenient for your use case. So do not hesitate to report any problem: you can ping me on the Hub as @albertvillanova | [
-0.29052746295928955,
-0.13669079542160034,
-0.019656319171190262,
-0.17703136801719666,
0.039060574024915695,
0.08451040834188461,
0.07272307574748993,
0.21038860082626343,
0.2954651713371277,
0.33930355310440063,
-0.35658907890319824,
0.19535602629184723,
-0.17305125296115875,
0.6844581961631775,
0.005951373837888241,
-0.11823207139968872,
-0.035953812301158905,
0.11382998526096344,
0.13797929883003235,
0.12025031447410583,
0.24861609935760498,
0.018933700397610664,
0.006388992071151733,
-0.26635944843292236,
-0.032665811479091644,
0.03452450782060623,
-0.1516885906457901,
0.07971414178609848,
-0.19342893362045288,
-0.27144309878349304,
0.3687640428543091,
0.32344871759414673,
0.44184109568595886,
-0.006342723965644836,
-0.00010927483526756987,
-0.09249560534954071,
0.18353183567523956,
-0.20259873569011688,
-0.1915898621082306,
-0.4060977101325989,
-0.046151112765073776,
-0.2449384182691574,
-0.24558421969413757,
0.07220775634050369,
-0.1118699386715889,
-0.49737194180488586,
0.026233239099383354,
-0.18032684922218323,
0.15265700221061707,
-0.04397684335708618,
0.11268649995326996,
-0.10666362941265106,
-0.18865349888801575,
-0.1552230715751648,
0.34227216243743896,
0.5352897047996521,
-0.39858895540237427,
0.11903439462184906,
0.3123815357685089,
0.07876987010240555,
0.02172808349132538,
0.4267682135105133,
-0.2523099184036255,
-0.009179838001728058,
0.24888619780540466,
-0.11290954798460007,
-0.8234786987304688,
-0.24584171175956726,
-0.17639756202697754,
0.31158220767974854,
0.5795405507087708,
-0.2506013810634613,
-0.6176178455352783,
-0.22632086277008057,
0.021067146211862564,
-0.26569971442222595,
-0.2112848162651062,
0.28406524658203125,
-0.14739829301834106,
0.22229313850402832,
-0.3799179792404175,
-0.2974741756916046,
-0.3884180188179016,
0.33292514085769653,
0.13320423662662506,
0.5182431936264038,
0.04023655876517296,
-0.09999381750822067,
0.015877868980169296,
-0.020530443638563156,
0.4254029095172882,
-0.2797957956790924,
0.0936705619096756,
0.08658865094184875,
-0.40247735381126404,
-0.19024333357810974,
-0.02830164134502411,
0.06542601436376572,
0.4814049005508423,
0.5517162084579468,
0.2604909837245941,
0.2780238389968872,
-0.08577872812747955,
0.03686371073126793,
0.03158774971961975,
0.1352735459804535,
-0.2618218958377838,
-0.24905478954315186,
0.31074780225753784,
0.27395522594451904,
0.15515916049480438,
-0.2714338004589081,
-0.009867779910564423,
0.4191088080406189,
-0.303077757358551,
-0.07263360172510147,
0.10630369186401367,
-0.3649095892906189,
0.050456441938877106,
-0.1153353676199913,
-0.34000450372695923,
-0.18734300136566162,
-0.12494299560785294,
0.14239947497844696,
0.020376425236463547,
0.2709771394729614,
-0.15304027497768402,
0.2350233644247055,
0.11388333886861801,
-0.24902968108654022,
-0.05130846053361893,
-0.07362960278987885,
0.07779549062252045,
0.6325297951698303,
0.20044173300266266,
-0.31991106271743774,
0.1631138175725937,
-0.026334883645176888,
0.5370429158210754,
0.16085520386695862,
0.20784248411655426,
-0.18284828960895538,
0.1673053652048111,
0.16191138327121735,
-0.036984317004680634,
-0.015164823271334171,
-0.0843254029750824,
0.4351087808609009,
-0.12937131524085999,
0.07525154203176498,
-0.28893470764160156,
-0.6349114179611206,
-0.11526553332805634,
0.028485246002674103,
-0.06017736718058586,
-0.16407199203968048,
-0.3176448345184326,
0.26110005378723145,
-0.4296048581600189,
-0.28285834193229675,
-0.2936800420284271,
0.20470654964447021,
-0.1998092383146286,
-0.017371952533721924,
0.29762229323387146,
0.1546012908220291,
-0.06340048462152481,
0.19324877858161926,
-0.2190941721200943,
0.2044200450181961,
0.3851911127567291,
0.15283434092998505,
-0.44954589009284973,
0.17375615239143372,
-0.2272503674030304,
0.07714052498340607,
0.35420793294906616,
-0.34723401069641113,
-0.20208746194839478,
0.29907241463661194,
0.1657518893480301,
0.24390192329883575,
0.17476966977119446,
0.03054620325565338,
0.42707154154777527,
0.04354959353804588,
-0.25218743085861206,
0.4980740547180176,
-0.2574906349182129,
0.15991485118865967,
-0.2650589048862457,
-0.27008965611457825,
-0.2092195600271225,
0.5082319974899292,
-0.1646386831998825,
-0.04157913476228714,
0.2017558217048645,
0.15127548575401306,
0.3598405122756958,
-0.2507258355617523,
0.17035219073295593,
0.0660647600889206,
0.10096319764852524,
0.3221474885940552,
-0.17441588640213013,
-0.07393563538789749,
-0.38544657826423645,
0.07627847045660019,
-0.253704696893692,
0.1450602412223816,
0.14175939559936523,
-0.1568303108215332,
-0.1101963222026825,
0.037823230028152466,
-0.02938743308186531,
-0.10051557421684265,
0.0347428098320961,
0.27055078744888306,
0.0270114503800869,
-0.09185482561588287,
-0.11232420802116394,
0.38664165139198303,
0.3279918134212494,
-0.11959975212812424,
-0.006408920511603355,
0.5835879445075989,
-0.07103307545185089,
-0.08901534974575043,
0.2769872844219208,
-0.04075544327497482,
0.08528625965118408,
-0.09652967005968094,
-0.1961471140384674,
0.18447831273078918,
0.021519390866160393,
0.23228508234024048,
0.29043179750442505,
0.3890911340713501,
0.38625189661979675,
-0.03845375403761864,
0.17217926681041718,
0.08806464076042175,
-0.014237068593502045,
0.11631142348051071,
-0.4378798305988312,
0.25254908204078674,
-0.013055812567472458,
-0.10330898314714432,
-0.18210624158382416,
0.1368473768234253,
0.17095032334327698,
0.009828809648752213,
-0.1702207326889038,
-0.03783079981803894,
-0.01609867438673973,
-0.2607465386390686,
-0.1217893660068512,
-0.30630555748939514,
-0.40578725934028625,
0.23921966552734375,
0.19228629767894745,
0.0803287923336029,
-0.3957425355911255,
0.1573992669582367,
-0.03522920608520508,
-0.18278661370277405,
0.5124129056930542,
0.31478580832481384,
0.2540280818939209,
0.4169696271419525,
-0.09074324369430542,
-0.022548271343111992,
0.15353012084960938,
-0.08036579191684723,
0.0539642758667469,
0.18448151648044586,
0.24706535041332245,
0.27273622155189514,
0.3446584641933441,
0.15109612047672272,
-0.16238948702812195,
-0.607637345790863,
-0.06516394764184952,
-0.1793922483921051,
0.19040800631046295,
-0.20612868666648865,
-0.24844688177108765,
-0.39523187279701233,
-0.03572690114378929,
-0.0375952385365963,
-0.15608878433704376,
-0.3182699680328369,
0.11254113167524338,
0.427168071269989,
-0.3664458394050598,
-0.0185210183262825,
-0.055367521941661835,
0.31179648637771606,
-0.38896068930625916,
-0.21689657866954803,
-0.3919508755207062,
-0.05274120718240738,
-0.006906688213348389,
0.03158450871706009,
0.04346926137804985,
-0.16936881840229034,
0.4715999662876129,
0.306575745344162,
0.2815685272216797,
-0.6060556173324585,
-0.09645936638116837,
0.23104611039161682,
-0.06863074749708176,
-0.13443756103515625,
-0.06486310064792633,
0.1324392557144165,
0.08742696046829224,
-0.08873281627893448,
0.16557887196540833,
-0.0012594852596521378,
0.1165899783372879,
-0.07643333822488785,
0.09015878289937973,
0.12483570724725723,
-0.07963746786117554,
-0.06525547057390213,
-0.4136970341205597,
-0.6504027247428894,
-0.27335822582244873,
-0.09716391563415527,
0.1610264927148819,
-0.05982593446969986,
-0.07558853179216385,
-0.30760303139686584,
-0.26697033643722534,
-0.35789158940315247,
-0.0031227951403707266,
-0.5480150580406189,
0.4830668270587921,
-0.3885054290294647,
-0.2312055379152298,
0.14626993238925934,
0.29572683572769165,
-0.06022169068455696,
0.2729436159133911,
-0.24492628872394562,
-0.059988100081682205,
0.007900852710008621,
0.021529819816350937,
-0.10147365927696228,
-0.22845660150051117,
0.45537853240966797,
0.0005863253027200699,
-0.031986333429813385,
0.025935016572475433,
-0.28324592113494873,
-0.03975709527730942,
0.398225337266922,
0.11079048365354538,
0.18864178657531738,
-0.021608777344226837,
0.1852068454027176,
0.5504422783851624,
0.10264798998832703,
0.28686609864234924,
0.6859217882156372,
0.21842153370380402,
-0.018705446273088455,
-0.25089794397354126,
-0.1355983167886734,
0.023439014330506325,
-0.12636515498161316,
-0.08545787632465363,
0.3028891682624817,
0.2249774932861328,
-0.17092806100845337,
-0.3954518139362335,
-0.1928497701883316,
0.31139621138572693,
-0.09840811043977737,
0.11493276804685593,
-0.062440596520900726,
0.41299137473106384,
-0.07952110469341278,
-0.1254693865776062,
-0.199856698513031,
-0.29088568687438965,
0.18731670081615448,
-0.018393538892269135,
0.4568696618080139,
0.3254595696926117,
-0.18855905532836914,
0.21448074281215668,
-0.24022212624549866,
0.36494189500808716,
0.3171698749065399,
-0.1535770446062088,
-0.13812795281410217,
-0.10195385664701462,
0.15636947751045227,
-0.006117666605859995,
0.12505167722702026,
-0.39685675501823425,
-0.25062406063079834,
0.061221059411764145,
-0.2233765870332718,
0.12733988463878632,
-0.25993746519088745,
0.09902259707450867,
-0.3314302861690521,
-0.26324671506881714,
0.6768577098846436,
-0.13893088698387146,
-0.4238232374191284,
-0.03773093223571777,
0.06879901140928268,
-0.13368093967437744,
-0.08028692752122879,
0.21312879025936127,
-0.11644396185874939,
-0.44577109813690186,
-0.04885973781347275,
-0.242575004696846,
0.21079601347446442,
-0.05311177670955658,
-0.21291179955005646,
0.15834255516529083,
0.4277626574039459,
0.08200620859861374,
-0.09253531694412231,
0.26908713579177856,
0.1041722223162651,
0.0854102075099945,
0.08150982856750488,
0.18613433837890625,
0.33442097902297974,
0.4842815399169922,
0.4492666721343994,
0.007377639412879944,
-0.04468103498220444,
0.016535505652427673,
0.16796506941318512,
0.1399378776550293,
0.15967993438243866,
-0.05514765530824661,
-0.05603565275669098,
0.27472299337387085,
-0.43613100051879883,
0.0566863939166069,
0.007571451831609011,
-0.47360435128211975,
-0.27767840027809143,
-0.20592202246189117,
0.30844220519065857,
-0.05167962610721588,
-0.05166812613606453,
0.12045066803693771,
0.029408082365989685,
0.003078511916100979,
0.57112056016922,
0.376714825630188,
1.042810320854187,
-0.3069354295730591,
0.24373124539852142,
0.0037257596850395203,
-0.3030323386192322,
0.09954527020454407,
-0.7356952428817749,
0.07517631351947784,
-0.19728463888168335,
-0.32426658272743225,
-0.14598676562309265,
0.08083528280258179,
0.16774162650108337,
0.061204664409160614,
-0.1380879133939743,
0.08188088983297348,
0.48647671937942505,
0.4783647954463959,
-0.14319990575313568,
0.34039267897605896,
-0.08300488442182541,
-0.5241392850875854,
-0.27707886695861816,
0.16702577471733093,
-0.2165210098028183,
0.19451406598091125,
0.04540671780705452,
-0.5209535956382751,
-0.045264579355716705,
0.1811562478542328,
-0.26415836811065674,
0.2671531140804291,
0.05027419328689575,
-0.21120572090148926,
-0.3760021924972534,
-0.02114143967628479,
-0.025321204215288162,
0.189247727394104,
-0.19497664272785187,
-0.060211893171072006,
-0.3727809190750122,
-0.011874359101057053,
-0.09586804360151291,
0.07701247185468674,
-0.23774726688861847,
-0.132285475730896,
0.09551812708377838,
-0.2657521069049835,
-0.04026869684457779,
0.14455434679985046,
0.008100354112684727,
-0.3122571110725403,
-0.34240031242370605,
-0.03337150812149048,
0.24344809353351593,
-0.22293519973754883,
0.015489164739847183,
0.16726145148277283,
0.07126055657863617,
-0.10992468893527985,
0.05289849266409874,
-0.03095289319753647,
0.10846488922834396,
0.02366524562239647,
0.01650560088455677,
0.11431734263896942,
-0.19964022934436798,
0.22979408502578735,
-0.08628404140472412,
0.23477241396903992,
0.07463739812374115,
0.022839833050966263,
-0.07704464346170425,
-0.07563017308712006,
-0.028907950967550278,
-0.24803367257118225,
-0.2564694583415985,
-0.032556042075157166,
-0.08844491839408875,
-0.10194458067417145,
-0.025284018367528915,
0.4318599998950958,
0.10222966969013214,
-0.2978404462337494,
-0.029778730124235153,
-0.29380571842193604,
-0.13591815531253815,
0.20281243324279785,
-0.13304518163204193,
0.21483223140239716,
0.045526109635829926,
0.14762187004089355,
-0.020406082272529602,
-0.04368580877780914,
-0.3047405183315277,
-0.19115608930587769,
0.04840308427810669,
0.027737470343708992,
-0.17938095331192017,
0.026799088343977928,
0.3295620083808899,
0.01255776546895504,
-0.03204801678657532,
-0.14392471313476562,
-0.337197482585907,
-0.08625654876232147,
0.06648701429367065,
0.1698710322380066,
0.3052583932876587,
-0.06443111598491669,
-0.13429956138134003,
-0.11676836758852005,
-0.035137053579092026,
-0.2520362138748169,
0.31459808349609375,
0.029545538127422333,
-0.19728349149227142,
-0.11817020177841187,
0.06343437731266022,
-0.11138378828763962,
-0.33820146322250366,
0.0862884670495987,
0.38630950450897217,
0.13194352388381958,
-0.020882664248347282,
0.004363607615232468,
0.026877451688051224,
-0.30031535029411316,
-0.0954369381070137,
0.0361376628279686,
0.42115867137908936,
0.03607035428285599,
0.6883065700531006,
0.1323876678943634,
0.09815376996994019,
0.32865574955940247,
0.4560873508453369,
-0.2751676142215729,
0.003379225032404065,
0.07422401756048203,
0.17157992720603943,
0.162624791264534,
-0.07005646824836731,
-0.2023550271987915,
0.07299576699733734,
0.01153215765953064,
-0.044026248157024384,
0.2089778482913971,
0.6228910088539124,
0.10347811877727509,
0.015883341431617737,
-0.08611234277486801,
0.34416210651397705,
0.0627567321062088,
0.07649198174476624,
0.06890802085399628,
0.008686792105436325,
0.10136457532644272,
-0.19397325813770294,
-0.0664980560541153,
0.14778441190719604,
-0.07117685675621033,
-0.10941129177808762,
0.3830830752849579,
0.1885072886943817,
-0.023537959903478622,
0.03940058499574661,
-0.6308735013008118,
-0.052450839430093765,
-0.07281894981861115,
0.4550310969352722,
0.10730989277362823,
-0.05441899597644806,
-0.07967431098222733,
0.44368481636047363,
-0.4529288411140442,
-0.2137763798236847,
0.45033836364746094,
0.2947927415370941,
0.19074629247188568,
0.12276409566402435,
-0.11184383928775787,
-0.1492910385131836,
0.29788315296173096,
0.15695321559906006,
0.07911483198404312,
0.31864434480667114,
0.057759903371334076,
0.13510054349899292,
-0.263324499130249,
0.092535600066185,
0.17030861973762512,
0.23666831851005554,
-0.13356825709342957,
0.2314397543668747,
0.09072345495223999,
-0.28537848591804504,
0.020683933049440384,
0.07881640642881393,
0.2081058919429779,
0.08269424736499786,
0.18238501250743866,
0.2112586796283722,
-0.3519686460494995,
0.13141673803329468,
0.2972217798233032,
0.08980446308851242,
0.057757847011089325,
0.02408984862267971,
0.5121052861213684,
0.02376365102827549,
-0.02383366972208023,
0.06619501113891602,
-0.30989453196525574,
-0.05251483991742134,
0.0014541558921337128,
0.15583910048007965,
0.41508445143699646,
-0.0037266798317432404,
0.02735016867518425,
-0.06227581948041916,
-0.09290166199207306,
-0.07352464646100998,
0.07157617807388306,
0.0019124152604490519,
0.04908604174852371,
-0.09020937234163284,
0.09122766554355621,
0.01547683123499155,
0.29811403155326843,
0.09950530529022217,
-0.028072886168956757,
-0.12420367449522018,
-0.29630690813064575,
-0.08475436270236969,
-0.17811542749404907,
0.04634279012680054,
0.05764017999172211,
0.014308410696685314,
-0.09416181594133377,
0.319237619638443,
0.08290454745292664,
-0.16882728040218353,
-0.27252259850502014,
0.27320486307144165,
0.32832807302474976,
-0.31409260630607605,
0.24976573884487152,
0.08899751305580139,
0.15420351922512054,
0.056622251868247986,
-0.10046445578336716,
0.2519237697124481,
0.04736354202032089,
0.012264512479305267,
-0.003593485802412033,
0.014364100992679596,
-0.1668425351381302,
-0.48634740710258484,
0.3983125388622284,
-0.19638468325138092,
-0.03620155155658722,
-0.07731440663337708,
-0.06425099074840546,
-0.20040461421012878,
0.08772698044776917,
0.004770323634147644,
-0.09476032108068466,
0.03336115926504135,
0.5581178665161133,
-0.15797697007656097,
-0.03042193129658699,
-0.33881014585494995,
0.2912786602973938,
-0.1546688824892044,
-0.22674626111984253,
0.022385207936167717,
-0.11254660040140152,
-0.23783695697784424,
0.047990843653678894,
0.1911153644323349,
0.11724105477333069,
0.07628193497657776,
-0.09534317255020142,
-0.403637170791626,
-0.281332790851593,
0.5973224639892578,
0.1353326141834259,
-0.037780359387397766,
0.2044648975133896,
0.10348566621541977,
0.23335877060890198,
0.025939302518963814,
-0.350166380405426,
0.09059625118970871,
0.05077153071761131,
0.060281261801719666,
0.38217827677726746,
0.5421541929244995,
0.24783216416835785,
-0.21477988362312317,
-0.10397496819496155,
0.17522528767585754,
0.10077143460512161,
-0.09273016452789307,
-0.19784864783287048,
0.11084030568599701
] |
https://github.com/huggingface/datasets/issues/4093 | elena-soare/crawled-ecommerce: missing dataset | By the way, the error on our part is due to the huge size of every row (~90MB). The dataset viewer does not support such big dataset rows for the moment.
Anyway, we're working to give a hint about this in the dataset viewer. | elena-soare/crawled-ecommerce
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 44 | elena-soare/crawled-ecommerce: missing dataset
elena-soare/crawled-ecommerce
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
By the way, the error on our part is due to the huge size of every row (~90MB). The dataset viewer does not support such big dataset rows for the moment.
Anyway, we're working to give a hint about this in the dataset viewer. | [
-0.12076814472675323,
-0.0028605982661247253,
-0.131867915391922,
0.06351882219314575,
0.1874111145734787,
0.0794982984662056,
0.12546874582767487,
0.1737336367368698,
0.2639741897583008,
0.11739049106836319,
0.0001629756297916174,
0.35129907727241516,
-0.21190959215164185,
0.3936077356338501,
0.14557790756225586,
0.01838584616780281,
0.0039342790842056274,
0.10561109334230423,
-0.04559118300676346,
-0.07369537651538849,
-0.28277283906936646,
0.17369896173477173,
-0.018119700253009796,
-0.1969168335199356,
-0.22983407974243164,
0.055410996079444885,
-0.20159897208213806,
-0.07999692112207413,
-0.2810384929180145,
-0.35772329568862915,
0.4158572852611542,
-0.25443947315216064,
0.31071847677230835,
0.39282697439193726,
-0.00010352818935643882,
0.025963403284549713,
0.13729171454906464,
-0.18954893946647644,
-0.2929941713809967,
-0.11000396311283112,
-0.1745828092098236,
-0.17499999701976776,
0.10211530327796936,
-0.14333069324493408,
-0.19359484314918518,
-0.10448168218135834,
0.032040417194366455,
-0.146380215883255,
0.05127173662185669,
0.4402155876159668,
0.32506638765335083,
-0.008049859665334225,
0.09499050676822662,
-0.3824661076068878,
0.2220171093940735,
-0.174230694770813,
-0.16032560169696808,
-0.037676356732845306,
0.20163482427597046,
0.1599474996328354,
0.28959110379219055,
0.607285737991333,
0.06796590238809586,
-0.06692036986351013,
0.24896803498268127,
-0.12293548136949539,
0.2104288935661316,
-0.35483992099761963,
0.20413029193878174,
0.17620941996574402,
0.5402911901473999,
0.07005036622285843,
-0.17324964702129364,
-0.03297189623117447,
0.25829729437828064,
-0.24383705854415894,
0.06413733959197998,
0.21249881386756897,
0.09789828956127167,
0.20423749089241028,
-0.12071583420038223,
-0.13730530440807343,
-0.13109052181243896,
0.3292163610458374,
-0.3163941204547882,
0.24158146977424622,
-0.16613221168518066,
-0.10591306537389755,
-0.04364253208041191,
0.05352085083723068,
0.1870114654302597,
0.233559250831604,
-0.03624055162072182,
0.22135192155838013,
-0.33804067969322205,
-0.16276463866233826,
0.3014017641544342,
0.16280525922775269,
0.05248383432626724,
0.0977146252989769,
0.15530087053775787,
-0.039686866104602814,
0.14894579350948334,
0.09472119808197021,
-0.032948147505521774,
0.11175109446048737,
-0.17759177088737488,
0.07861916720867157,
0.14924576878547668,
-0.09796598553657532,
0.08825139701366425,
-0.1126161441206932,
-0.10409726202487946,
0.09293536096811295,
-0.06885112076997757,
-0.03018668293952942,
0.365714967250824,
-0.16390389204025269,
-0.4630247950553894,
-0.057421304285526276,
-0.2858859598636627,
-0.08006254583597183,
-0.1213185265660286,
0.280055433511734,
0.1771184206008911,
-0.3475695550441742,
-0.047484926879405975,
0.41293466091156006,
0.12937696278095245,
-0.3283625543117523,
-0.33447402715682983,
0.1375352442264557,
0.040662143379449844,
-0.13773582875728607,
0.3428035080432892,
-0.38208791613578796,
0.36051684617996216,
-0.3119959533214569,
-0.17407509684562683,
-0.01929117552936077,
0.002824915573000908,
-0.05352699011564255,
-0.1591481864452362,
0.5627796649932861,
0.16637572646141052,
-0.02295202948153019,
-0.04185599461197853,
-0.115414559841156,
-0.08699113130569458,
0.2187330424785614,
-0.3163181245326996,
-0.6587672829627991,
-0.1888975203037262,
0.29822251200675964,
-0.20835267007350922,
-0.41599202156066895,
-0.004096806049346924,
0.20369210839271545,
-0.03422226756811142,
0.158504918217659,
-0.09562566131353378,
0.09086981415748596,
-0.059789907187223434,
-0.016606932505965233,
0.14764173328876495,
0.15098954737186432,
-0.3151404559612274,
0.004951931536197662,
-0.548647403717041,
0.08477729558944702,
0.2996116280555725,
0.04772630333900452,
-0.18596066534519196,
0.45353779196739197,
-0.22182631492614746,
0.14104071259498596,
0.29998978972435,
0.18771609663963318,
-0.37197500467300415,
-0.043839823454618454,
-0.15871843695640564,
-0.011945292353630066,
0.12713423371315002,
-0.15953418612480164,
0.09724050015211105,
-0.07443951815366745,
0.057630471885204315,
-0.08353054523468018,
-0.09194525331258774,
0.0837859958410263,
-0.18799085915088654,
-0.042753640562295914,
0.31534284353256226,
0.34905102849006653,
0.27621176838874817,
-0.11916717141866684,
0.16553747653961182,
-0.23909702897071838,
-0.038110360503196716,
-0.05959518626332283,
-0.02019488997757435,
0.3367636203765869,
0.2325853556394577,
0.21982967853546143,
0.223878413438797,
-0.20667719841003418,
-0.15945842862129211,
0.09771765023469925,
-0.08959196507930756,
0.31874850392341614,
-0.1676696389913559,
-0.19781427085399628,
-0.6162337064743042,
0.024344427511096,
-0.17798464000225067,
-0.3989190459251404,
0.2221585214138031,
0.0630427747964859,
-0.26156115531921387,
-0.014232778921723366,
0.00027578696608543396,
-0.0846441239118576,
0.10519784688949585,
-0.0627533420920372,
0.006747441366314888,
0.20841696858406067,
-0.28683149814605713,
-0.04757610335946083,
0.09432083368301392,
0.12203283607959747,
0.3062839210033417,
-0.10567888617515564,
0.05174320936203003,
0.01752816140651703,
-0.25632452964782715,
-0.08032459020614624,
0.39630040526390076,
0.021231845021247864,
-0.006254967302083969,
-0.4250277280807495,
0.10651913285255432,
0.010415419936180115,
0.08080729097127914,
-0.08968555927276611,
-0.027947694063186646,
-0.13629917800426483,
-0.028469610959291458,
-0.029077254235744476,
-0.29112738370895386,
0.08444706350564957,
0.47019460797309875,
-0.027075760066509247,
0.17914414405822754,
-0.07011513411998749,
0.3728449046611786,
-0.050972241908311844,
0.0850096344947815,
-0.07205042988061905,
-0.33981066942214966,
0.46248912811279297,
0.21367226541042328,
0.02613784745335579,
0.354276180267334,
0.32607847452163696,
-0.3187110126018524,
-0.12753593921661377,
-0.17386482656002045,
0.2757326364517212,
0.3781760334968567,
0.36301156878471375,
0.03589997440576553,
-0.1099228486418724,
0.11562694609165192,
-0.17607837915420532,
0.10592179000377655,
0.18482831120491028,
0.2876165211200714,
0.08457718789577484,
0.18955686688423157,
-0.12695859372615814,
-0.45763063430786133,
-0.16790077090263367,
0.24747616052627563,
0.37497302889823914,
-0.09762640297412872,
-0.06677325814962387,
-0.08801894634962082,
-0.13738001883029938,
-0.029590025544166565,
-0.11878509074449539,
0.04747253656387329,
-0.43070971965789795,
0.30778270959854126,
-0.03684040531516075,
-0.18214774131774902,
0.220234677195549,
-0.06102262809872627,
0.3084346652030945,
-0.06290195137262344,
0.26332682371139526,
-0.29938894510269165,
-0.22500625252723694,
-0.11906968802213669,
0.19414198398590088,
-0.10971039533615112,
0.05010389909148216,
0.3420947790145874,
0.003851650282740593,
0.3708828091621399,
-0.20679685473442078,
-0.5797363519668579,
0.012530695647001266,
-0.0793069452047348,
0.06080993264913559,
0.10198558866977692,
0.12367285788059235,
-0.09095357358455658,
-0.07809320092201233,
-0.002664884552359581,
0.16389818489551544,
-0.15099439024925232,
0.048266470432281494,
-0.16967283189296722,
0.011254066601395607,
-0.08549271523952484,
-0.4340335428714752,
-0.459612101316452,
-0.24967940151691437,
-0.023514196276664734,
0.021484483033418655,
-0.05371245741844177,
-0.14017325639724731,
-0.09885986894369125,
-0.040633611381053925,
-0.0978851243853569,
0.12089330703020096,
-0.3297866880893707,
-0.24742065370082855,
0.5665695071220398,
-0.22117404639720917,
-0.3864399194717407,
0.28580841422080994,
-0.0829843133687973,
-0.018720727413892746,
0.06110477074980736,
-0.43128859996795654,
0.40971431136131287,
-0.019122807309031487,
-0.1784316599369049,
-0.18539424240589142,
-0.3065579831600189,
0.5873619914054871,
0.11978808045387268,
-0.18660114705562592,
-0.20519068837165833,
0.06895889341831207,
-0.240721195936203,
-0.007407769560813904,
0.19161322712898254,
-0.6339703798294067,
0.33384740352630615,
0.06964074075222015,
0.324566125869751,
-0.09802095592021942,
0.18362510204315186,
0.3823144733905792,
0.07347074896097183,
0.48669129610061646,
-0.22446385025978088,
-0.3397022783756256,
-0.055855218321084976,
-0.08787877857685089,
-0.020312441512942314,
0.2941610813140869,
-0.05951102823019028,
-0.19168291985988617,
-0.16858378052711487,
-0.20359714329242706,
-0.21095168590545654,
-0.029488183557987213,
0.06701179593801498,
0.07754266262054443,
0.2670309245586395,
0.19755229353904724,
0.1403610110282898,
-0.18492640554904938,
-0.1946471631526947,
-0.1703387051820755,
0.12627066671848297,
0.023931488394737244,
0.15021835267543793,
-0.23646271228790283,
-0.0908610075712204,
-0.697026252746582,
0.14139017462730408,
-0.2528095543384552,
0.0003535822033882141,
-0.06925877928733826,
0.07984445244073868,
0.23171187937259674,
0.1960061639547348,
0.451870858669281,
-0.3729555904865265,
-0.09544232487678528,
0.008359331637620926,
0.07343221455812454,
-0.20704448223114014,
0.026152517646551132,
-0.2048245370388031,
0.4029388427734375,
0.1601891815662384,
0.1624329388141632,
-0.010268747806549072,
0.20334990322589874,
0.515624463558197,
0.0028541528154164553,
-0.10641393065452576,
-0.16075338423252106,
-0.15721237659454346,
-0.4432053864002228,
-0.030954744666814804,
-0.032925792038440704,
0.1678103357553482,
0.29263031482696533,
0.06378350406885147,
-0.05177425220608711,
-0.331961989402771,
-0.004101114347577095,
-0.03741903603076935,
0.005921706557273865,
0.29579776525497437,
0.14636297523975372,
0.24127089977264404,
0.1408490091562271,
0.37071576714515686,
0.1852077692747116,
0.5809882879257202,
-0.14756134152412415,
-0.3246334195137024,
0.06927040219306946,
-0.6174206733703613,
0.18265050649642944,
0.19710242748260498,
0.012612384743988514,
0.025635920464992523,
-0.05660632252693176,
0.14582125842571259,
-0.06971494853496552,
-0.05505344644188881,
0.13257001340389252,
0.19139927625656128,
-0.15420906245708466,
-0.004119843244552612,
0.24013468623161316,
-0.26358330249786377,
-0.024428188800811768,
0.1405142843723297,
0.2650766968727112,
-0.28077390789985657,
0.3900739550590515,
-0.376186341047287,
0.9439408183097839,
0.10052245855331421,
-0.21810537576675415,
0.11243624985218048,
-0.03679295629262924,
0.2894611954689026,
-0.3748188018798828,
0.21769249439239502,
0.20098382234573364,
-0.4346846342086792,
0.000598737969994545,
0.033798959106206894,
0.11521559953689575,
0.1495037078857422,
-0.1489720493555069,
0.25111427903175354,
0.13406534492969513,
-0.22566384077072144,
0.016066042706370354,
0.11921188235282898,
0.24117502570152283,
-0.09279564023017883,
-0.05558770149946213,
0.21973910927772522,
-0.0573711097240448,
0.46353742480278015,
-0.12904587388038635,
0.029509814456105232,
0.010151874274015427,
-0.20827685296535492,
-0.30901968479156494,
-0.047362178564071655,
0.11784494668245316,
0.07162733376026154,
-0.1288081407546997,
-0.2119867503643036,
0.13045048713684082,
0.01254691556096077,
0.12499729543924332,
-0.09197691082954407,
-0.3346130847930908,
0.42631521821022034,
-0.06581263989210129,
-0.15227968990802765,
0.07222145795822144,
-0.035181865096092224,
0.1147841140627861,
-0.1426975131034851,
-0.4754057824611664,
0.2018779218196869,
-0.2693365216255188,
-0.1246388629078865,
-0.20417572557926178,
0.06463553756475449,
-0.03620930761098862,
-0.08664350211620331,
-0.07573370635509491,
0.3024420142173767,
0.12561994791030884,
-0.3153621554374695,
0.22995856404304504,
0.2506237030029297,
-0.0209168903529644,
0.22925350069999695,
0.0197653379291296,
-0.24628688395023346,
-0.2936536371707916,
0.40131983160972595,
0.23167473077774048,
0.1696002036333084,
0.6374455690383911,
-0.028918474912643433,
-0.28034406900405884,
-0.309076726436615,
0.15326252579689026,
0.352448046207428,
-0.467272013425827,
-0.14008958637714386,
-0.2716958224773407,
0.04216374456882477,
0.1538192480802536,
0.11682658642530441,
0.19962455332279205,
-0.18094435334205627,
-0.1190418004989624,
-0.5300676226615906,
0.03894437104463577,
0.07966763526201248,
0.27081891894340515,
-0.01880761608481407,
-0.09083188325166702,
0.1050284206867218,
0.3150082230567932,
0.0329463854432106,
-0.41294607520103455,
0.20730866491794586,
-0.310183048248291,
0.14343464374542236,
-0.027793660759925842,
0.038407232612371445,
0.36414340138435364,
-0.08127912878990173,
0.21204929053783417,
0.03713540732860565,
-0.0780799388885498,
-0.2941373586654663,
0.05122402682900429,
0.10973065346479416,
-0.01618216559290886,
0.21976347267627716,
-0.031526364386081696,
-0.25181859731674194,
-0.21894587576389313,
0.08033524453639984,
-0.07037593424320221,
-0.021106481552124023,
0.1348898708820343,
-0.1613256335258484,
0.2368704080581665,
-0.13547253608703613,
-0.003652624785900116,
-0.10109099745750427,
0.11121822148561478,
0.3180314898490906,
-0.19003236293792725,
0.11950818449258804,
0.22645263373851776,
0.030526652932167053,
0.0364810973405838,
-0.14797130227088928,
-0.3281439542770386,
0.14152014255523682,
0.36465367674827576,
-0.3617243766784668,
0.33104678988456726,
0.056686803698539734,
0.057322852313518524,
0.021070729941129684,
-0.3564188480377197,
0.026345031335949898,
0.31511247158050537,
0.3092006742954254,
-0.7245059013366699,
-0.06803465634584427,
0.08782905340194702,
0.16672509908676147,
0.10708725452423096,
-0.12155649811029434,
-0.05627002194523811,
0.29760342836380005,
0.2316434383392334,
0.3124098479747772,
0.44205430150032043,
-0.20132523775100708,
0.04204079881310463,
-0.09668697416782379,
-0.26612135767936707,
0.10329633206129074,
0.2292710244655609,
0.13231123983860016,
-0.034866221249103546,
0.6748315095901489,
-0.12461832910776138,
0.47995659708976746,
0.1796291470527649,
-0.03432111069560051,
0.23884910345077515,
-0.31943097710609436,
0.1906525194644928,
0.2305123209953308,
0.09841897338628769,
-0.05790422856807709,
0.19767940044403076,
0.2031804919242859,
-0.000883929431438446,
0.15394528210163116,
-0.3500465452671051,
0.011108443140983582,
-0.16470959782600403,
0.2622782588005066,
-0.14812374114990234,
-0.12295277416706085,
0.032193928956985474,
-0.18755289912223816,
0.051558785140514374,
-0.0999143123626709,
0.005856148898601532,
-0.07098828256130219,
-0.3207029700279236,
-0.3478337228298187,
-0.01390044018626213,
0.04979917034506798,
-0.013337641954421997,
-0.21510760486125946,
0.09924204647541046,
0.17076309025287628,
-0.22750407457351685,
0.271490216255188,
0.41785430908203125,
0.17361944913864136,
0.018866652622818947,
0.06603328883647919,
0.13218510150909424,
0.03478193283081055,
-0.4615831971168518,
-0.07343775033950806,
0.023717323318123817,
0.3116646111011505,
0.10043513774871826,
0.24646629393100739,
0.18431293964385986,
-0.15674981474876404,
0.3316091001033783,
0.35719868540763855,
0.4351753890514374,
0.03765454143285751,
0.03366153687238693,
-0.23375192284584045,
-0.09229185432195663,
-0.21408163011074066,
-0.07916820794343948,
-0.3426854908466339,
0.28791964054107666,
0.10263167321681976,
-0.02453908510506153,
-0.014710021205246449,
-0.16829931735992432,
0.1505194753408432,
-0.1581132858991623,
0.5370420813560486,
0.198710098862648,
-0.149935781955719,
-0.09237025678157806,
-0.23071841895580292,
-0.5629596710205078,
0.19146212935447693,
-0.503738284111023,
-0.16319020092487335,
0.1257125735282898,
0.23913781344890594,
0.18164092302322388,
0.019833430647850037,
0.40198683738708496,
0.339099645614624,
0.026285886764526367,
-0.061482518911361694,
-0.3550095558166504,
-0.2849358320236206,
0.16126710176467896,
0.25930094718933105,
0.006440278142690659,
-0.10171675682067871,
0.30803611874580383,
-0.058291345834732056,
0.19805648922920227,
-0.17996174097061157,
-0.12443426251411438,
-0.20397892594337463,
0.2138613611459732,
0.42543017864227295,
-0.053771115839481354,
0.2935544550418854,
-0.10727672278881073,
0.1520598828792572,
-0.12108178436756134,
-0.45416879653930664,
0.013794965110719204,
0.4256204664707184,
0.38488373160362244,
0.01342632994055748,
-0.2686510384082794,
-0.2977599501609802,
-0.024173356592655182,
0.15212558209896088,
-0.2287471741437912,
0.05363837257027626,
-0.24445287883281708,
0.3571893572807312,
-0.10350742936134338,
0.08274737745523453,
-0.008774079382419586,
-0.18466967344284058,
-0.03713928908109665,
-0.18848496675491333,
-0.11354943364858627,
-0.179859921336174,
0.35773390531539917,
-0.1388409286737442,
-0.19760730862617493,
-0.2261534482240677,
0.1744997799396515,
0.4267869293689728,
0.004526766017079353,
-0.3786844313144684,
0.16641750931739807,
0.3242308795452118,
0.1099591925740242,
-0.011182891204953194,
0.186196967959404,
-0.0025146743282675743,
0.00042710080742836,
-0.06398026645183563,
0.29455870389938354,
0.21981027722358704,
0.021982943639159203,
-0.19900435209274292,
-0.14218907058238983
] |
https://github.com/huggingface/datasets/issues/4093 | elena-soare/crawled-ecommerce: missing dataset | Fixed. See https://huggingface.co/datasets/elena-soare/crawled-ecommerce/viewer/elena-soare--crawled-ecommerce/train.
<img width="1552" alt="Capture d’écran 2022-04-12 à 11 23 51" src="https://user-images.githubusercontent.com/1676121/162929722-2e2b80e2-154a-4b61-87bd-e341bd6c46e6.png">
Thanks for reporting! | elena-soare/crawled-ecommerce
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 16 | elena-soare/crawled-ecommerce: missing dataset
elena-soare/crawled-ecommerce
**Link:** *link to the dataset viewer page*
*short description of the issue*
Am I the one who added this dataset ? Yes-No
Fixed. See https://huggingface.co/datasets/elena-soare/crawled-ecommerce/viewer/elena-soare--crawled-ecommerce/train.
<img width="1552" alt="Capture d’écran 2022-04-12 à 11 23 51" src="https://user-images.githubusercontent.com/1676121/162929722-2e2b80e2-154a-4b61-87bd-e341bd6c46e6.png">
Thanks for reporting! | [
-0.160965695977211,
-0.02993939071893692,
-0.10246431827545166,
0.01082918792963028,
0.2179088145494461,
0.07106920331716537,
0.34098049998283386,
0.13420870900154114,
0.2152991145849228,
0.044046565890312195,
0.021953271701931953,
0.24195754528045654,
-0.1733660250902176,
0.5085989832878113,
0.1597573310136795,
-0.07928265631198883,
0.015856392681598663,
0.07597322762012482,
0.0767376646399498,
-0.14680105447769165,
-0.18252582848072052,
0.24577035009860992,
-0.01627388969063759,
-0.33735519647598267,
-0.3179967701435089,
0.19870921969413757,
-0.23990961909294128,
-0.062174148857593536,
-0.301950603723526,
-0.29889142513275146,
0.4757847189903259,
-0.14247828722000122,
0.27694615721702576,
0.2998136281967163,
-0.00010658457176759839,
0.0003618001937866211,
0.06966207921504974,
-0.1588418185710907,
-0.28831151127815247,
-0.27778899669647217,
-0.20156511664390564,
-0.20653143525123596,
0.12956735491752625,
-0.05099210515618324,
-0.2388048768043518,
-0.01458966638892889,
0.09691794961690903,
-0.02473732829093933,
0.17403662204742432,
0.42316389083862305,
0.2474205642938614,
-0.09525632113218307,
0.1275363713502884,
-0.3271912932395935,
0.06619793176651001,
-0.01659303903579712,
-0.18774646520614624,
-0.0027307644486427307,
0.22296661138534546,
0.17635153234004974,
0.31836703419685364,
0.652620255947113,
0.05142907798290253,
0.007160956040024757,
0.09249594807624817,
-0.035829536616802216,
0.2336244285106659,
-0.36924490332603455,
0.1400756537914276,
0.22059229016304016,
0.5047815442085266,
0.06200888752937317,
-0.23206830024719238,
-0.16923019289970398,
0.12725037336349487,
-0.26102596521377563,
0.04178750514984131,
0.13156062364578247,
0.1628463715314865,
0.2547317147254944,
-0.19570328295230865,
-0.14403456449508667,
-0.0616956390440464,
0.39265984296798706,
-0.2192220687866211,
0.2443259358406067,
-0.14846068620681763,
-0.11457157880067825,
-0.1430489420890808,
0.15949563682079315,
-0.03447763994336128,
0.20997579395771027,
-0.12934216856956482,
0.3140721917152405,
-0.27693337202072144,
-0.2060798853635788,
0.17111146450042725,
0.07187940180301666,
-0.07496827840805054,
0.36064523458480835,
0.11195451766252518,
0.009179273620247841,
-0.06355956196784973,
0.060352932661771774,
0.04255213588476181,
0.17873911559581757,
-0.20185229182243347,
0.06589540094137192,
0.2000211924314499,
0.14437392354011536,
0.16161689162254333,
-0.16027933359146118,
0.006262287497520447,
-0.034093692898750305,
-0.10325528681278229,
-0.032764945179224014,
0.3515428304672241,
-0.2094355821609497,
-0.37710416316986084,
-0.11725736409425735,
-0.253614217042923,
-0.1421310156583786,
-0.17118054628372192,
0.18199589848518372,
0.1397322565317154,
-0.2495470643043518,
0.0558723583817482,
0.46463918685913086,
0.06727546453475952,
-0.36344048380851746,
-0.32282188534736633,
0.1124543696641922,
0.04855724051594734,
0.11348778009414673,
0.3090686798095703,
-0.3380413055419922,
0.4808802902698517,
-0.2666557729244232,
-0.23733539879322052,
-0.06357520818710327,
-0.07523364573717117,
-0.08702331781387329,
-0.1459069848060608,
0.39225640892982483,
0.0652228593826294,
0.05037502199411392,
-0.021701674908399582,
-0.05787821486592293,
-0.10071873664855957,
0.09769384562969208,
-0.29585665464401245,
-0.5065611004829407,
-0.07627797871828079,
0.20925503969192505,
-0.2808305025100708,
-0.5524958372116089,
-0.11279169470071793,
0.2687833607196808,
-0.05761731415987015,
0.22067013382911682,
0.017598956823349,
0.19658154249191284,
-0.14828059077262878,
0.07172326743602753,
0.18572992086410522,
0.2374238818883896,
-0.08616633713245392,
-0.2534979581832886,
-0.5986887812614441,
0.09142428636550903,
0.25976380705833435,
0.0049428790807724,
-0.22763332724571228,
0.5789104104042053,
-0.2777335047721863,
0.11242175102233887,
0.2563077211380005,
0.07385873794555664,
-0.3252898156642914,
-0.15387821197509766,
-0.10363610088825226,
0.0546574741601944,
0.0717591941356659,
-0.13783934712409973,
0.07116147875785828,
-0.048333365470170975,
-0.1461808979511261,
-0.013446550816297531,
-0.05505075305700302,
0.08114943653345108,
-0.14293666183948517,
-0.06078118085861206,
0.2880743443965912,
0.4096497595310211,
0.3571290373802185,
-0.0949995145201683,
0.08895368874073029,
-0.18065889179706573,
-0.050680555403232574,
0.07899084687232971,
0.1549159437417984,
0.32677459716796875,
0.44261711835861206,
0.2745850682258606,
0.23451700806617737,
-0.16379085183143616,
-0.04434892535209656,
0.06520935893058777,
-0.038200121372938156,
0.2991725206375122,
-0.07843969762325287,
-0.08306282758712769,
-0.6035178303718567,
-0.11037971824407578,
-0.25855812430381775,
-0.6514265537261963,
0.12446391582489014,
0.041301220655441284,
-0.2310541421175003,
0.09627626836299896,
-0.05803532525897026,
0.07620831578969955,
0.04356561601161957,
0.027286982163786888,
-0.024265073239803314,
0.28193148970603943,
-0.2052198350429535,
-0.012203062884509563,
0.09770327806472778,
0.21220099925994873,
0.2593487799167633,
-0.1002039983868599,
0.033060796558856964,
0.1249149888753891,
-0.24718771874904633,
0.12840253114700317,
0.3343748450279236,
0.06411896646022797,
0.21698784828186035,
-0.5323660373687744,
0.041645217686891556,
-0.03474189341068268,
0.08497782051563263,
-0.1458190679550171,
-0.07736193388700485,
-0.14472870528697968,
0.0276469886302948,
0.01325063407421112,
-0.27698957920074463,
0.18918471038341522,
0.3335065543651581,
-0.1116529032588005,
0.220232754945755,
-0.0951467901468277,
0.3310573101043701,
-0.15080957114696503,
0.1270657628774643,
-0.17471250891685486,
-0.20157746970653534,
0.48729726672172546,
0.2255432903766632,
0.2110215723514557,
0.24396222829818726,
0.3287864625453949,
-0.4418240189552307,
-0.1553569734096527,
-0.18874859809875488,
0.20205409824848175,
0.36387789249420166,
0.3039863705635071,
-0.05153020843863487,
-0.14644569158554077,
0.2202932983636856,
-0.1625475138425827,
0.11997496336698532,
0.259338915348053,
0.2094668298959732,
0.06588620692491531,
0.20386533439159393,
-0.10344206541776657,
-0.3728090822696686,
-0.2273024171590805,
0.21732217073440552,
0.2623230218887329,
-0.05951155722141266,
-0.11919724941253662,
-0.09929249435663223,
-0.0213253665715456,
-0.10547728091478348,
-0.10437198728322983,
-0.08557736873626709,
-0.43930500745773315,
0.29956793785095215,
0.042636413127183914,
-0.11201980710029602,
0.1836242377758026,
-0.13726955652236938,
0.19448059797286987,
-0.20305322110652924,
0.08949637413024902,
-0.3643323481082916,
-0.28951847553253174,
-0.17016753554344177,
0.16148559749126434,
-0.15861040353775024,
-0.1030222475528717,
0.2696184515953064,
-0.09965412318706512,
0.3807586431503296,
-0.31773436069488525,
-0.7033097147941589,
0.014556702226400375,
-0.01273493841290474,
0.028319086879491806,
0.12152887880802155,
0.09128375351428986,
-0.10355238616466522,
0.11715765297412872,
0.0968029797077179,
0.1544080227613449,
-0.24856898188591003,
-0.04213215410709381,
-0.19648413360118866,
0.031808458268642426,
-0.020901216194033623,
-0.36549875140190125,
-0.36624640226364136,
-0.16212069988250732,
-0.011260062456130981,
0.10224813222885132,
-0.09662683308124542,
0.063859723508358,
-0.061074938625097275,
-0.07432645559310913,
-0.12966065108776093,
0.169815331697464,
-0.31287461519241333,
-0.2984529137611389,
0.5028656721115112,
-0.21926109492778778,
-0.405292272567749,
0.37180766463279724,
-0.14463460445404053,
0.08713144809007645,
-0.021312866359949112,
-0.4845433831214905,
0.40841665863990784,
-0.0026786550879478455,
-0.209591343998909,
-0.12621016800403595,
-0.23389066755771637,
0.662412166595459,
0.07523350417613983,
-0.1522669494152069,
-0.2927803695201874,
0.09802721440792084,
-0.147750586271286,
-0.0667828842997551,
0.28620341420173645,
-0.5978661179542542,
0.2890157103538513,
0.12350085377693176,
0.3802459239959717,
-0.15060842037200928,
0.07437951117753983,
0.44893085956573486,
0.014136160723865032,
0.45844224095344543,
-0.16438639163970947,
-0.29742035269737244,
-0.0035700544249266386,
0.0552816167473793,
0.18983502686023712,
0.24531854689121246,
0.024626579135656357,
-0.0040018074214458466,
-0.23419798910617828,
-0.09916983544826508,
-0.3044610917568207,
-0.029243584722280502,
-0.013247409835457802,
0.18622635304927826,
0.34098127484321594,
0.2876618206501007,
0.18744266033172607,
-0.17935803532600403,
-0.3150917589664459,
-0.05390335991978645,
0.3153496980667114,
0.06213165074586868,
0.09998820722103119,
-0.27879399061203003,
-0.13369673490524292,
-0.5999903082847595,
0.0724354088306427,
-0.22439633309841156,
0.11762205511331558,
-0.12342575192451477,
0.08316463232040405,
0.14773491024971008,
0.2781795263290405,
0.4391467571258545,
-0.32547035813331604,
-0.17446045577526093,
-0.03690771758556366,
-0.05443757772445679,
-0.15577848255634308,
0.0769544392824173,
-0.003167528659105301,
0.47972697019577026,
0.01072806864976883,
0.28882649540901184,
0.04734797030687332,
0.18094702064990997,
0.5622129440307617,
-0.06985466182231903,
-0.12204064428806305,
-0.020664948970079422,
-0.061358969658613205,
-0.28105854988098145,
-0.025318359956145287,
-0.18278253078460693,
0.09076057374477386,
0.3326292932033539,
0.01665118709206581,
-0.009868945926427841,
-0.4101385176181793,
-0.07240907102823257,
0.021962568163871765,
-0.0979829877614975,
0.3775060176849365,
0.2677769362926483,
0.3041718602180481,
0.2709285020828247,
0.2690914273262024,
0.13622088730335236,
0.5062623023986816,
-0.09907442331314087,
-0.2887254059314728,
0.04346763342618942,
-0.49442294239997864,
0.18365542590618134,
0.24598419666290283,
0.07907349616289139,
-0.13920792937278748,
0.029759295284748077,
0.026828642934560776,
-0.10265535861253738,
-0.02632603608071804,
0.020763758569955826,
0.31776273250579834,
-0.1453685462474823,
0.0035875793546438217,
0.2797425389289856,
-0.25325867533683777,
0.06753411889076233,
0.2269546538591385,
0.1554931104183197,
-0.32099130749702454,
0.25912266969680786,
-0.3568894565105438,
0.9086288809776306,
0.06455865502357483,
-0.0892803817987442,
0.07705000042915344,
-0.02886223793029785,
0.1314341276884079,
-0.3188561797142029,
0.25859013199806213,
0.17921307682991028,
-0.19453375041484833,
-0.009257646277546883,
-0.030926015228033066,
0.15023764967918396,
0.08166306465864182,
-0.01448548212647438,
0.1891872137784958,
0.13496996462345123,
-0.03355013206601143,
-0.009216101840138435,
0.02379307895898819,
0.20766842365264893,
-0.17626960575580597,
-0.1175740659236908,
0.19665206968784332,
-0.07733920216560364,
0.6157514452934265,
-0.12792730331420898,
-0.02914055436849594,
-0.2010902464389801,
-0.13492567837238312,
-0.24191753566265106,
-0.16185522079467773,
0.09893923997879028,
0.11507463455200195,
-0.0222402922809124,
-0.3196170926094055,
0.12326031923294067,
0.017862342298030853,
0.20321837067604065,
-0.31403863430023193,
-0.4127489924430847,
0.5787261128425598,
-0.1411903202533722,
-0.2593505382537842,
0.08459989726543427,
0.0677560344338417,
0.02930135279893875,
-0.0688665434718132,
-0.3109385073184967,
0.19889336824417114,
-0.28100869059562683,
-0.11711116135120392,
-0.31384479999542236,
-0.00931113213300705,
0.03679777309298515,
-0.13442760705947876,
-0.07808239758014679,
0.4611912965774536,
0.23670077323913574,
-0.40091803669929504,
0.17160585522651672,
0.3585834503173828,
-0.017440317198634148,
0.010166414082050323,
0.0022826604545116425,
-0.2225012481212616,
-0.2932188808917999,
0.4177643954753876,
0.17584267258644104,
0.07917723804712296,
0.7137699127197266,
-0.03738955780863762,
-0.16363468766212463,
-0.2858741283416748,
0.151894211769104,
0.33737197518348694,
-0.5661845803260803,
-0.020638499408960342,
-0.3498876094818115,
0.1009778380393982,
0.057176899164915085,
0.22951407730579376,
0.025148652493953705,
-0.30086663365364075,
-0.05683370679616928,
-0.6125109195709229,
-0.03570812940597534,
0.036396462470293045,
0.15667705237865448,
0.007946603000164032,
-0.2346377968788147,
0.22140949964523315,
0.3142169117927551,
-0.13768300414085388,
-0.35237133502960205,
0.25463709235191345,
-0.18800047039985657,
0.18981580436229706,
-0.030423559248447418,
0.10627757012844086,
0.45232126116752625,
-0.1492280513048172,
0.1068650484085083,
-0.011021032929420471,
-0.07651117444038391,
-0.24218422174453735,
-0.06393630802631378,
0.14387786388397217,
0.027373870834708214,
0.07406763732433319,
-0.03743191063404083,
-0.01349366270005703,
-0.27379167079925537,
0.04796573519706726,
-0.16400200128555298,
0.033803217113018036,
0.10399511456489563,
-0.08675774931907654,
0.11513260006904602,
-0.13634061813354492,
-0.013589929789304733,
-0.25131645798683167,
0.08740141242742538,
0.48197048902511597,
-0.06668918579816818,
0.04503432661294937,
0.24036245048046112,
0.10391546785831451,
0.06271882355213165,
-0.1995580792427063,
-0.2409621924161911,
0.107972651720047,
0.3302694261074066,
-0.38321882486343384,
0.3977499008178711,
0.1694650799036026,
0.07950473576784134,
-0.05856592208147049,
-0.4190865755081177,
0.1504792869091034,
0.3918677866458893,
0.23184800148010254,
-0.6696579456329346,
0.14077189564704895,
0.1398637890815735,
0.10059737414121628,
0.09554290771484375,
-0.1618693470954895,
0.12628597021102905,
0.398556113243103,
0.2919374704360962,
0.3626215159893036,
0.38182905316352844,
-0.09920263290405273,
0.26575735211372375,
-0.24744543433189392,
-0.27283966541290283,
0.11757457256317139,
0.27336254715919495,
0.1495261937379837,
-0.006792902946472168,
0.5765624642372131,
-0.19764932990074158,
0.4816267788410187,
0.0907192975282669,
0.1355060636997223,
0.24763357639312744,
-0.3189321458339691,
0.16764064133167267,
0.16584916412830353,
0.13270558416843414,
-0.012846440076828003,
0.06619910895824432,
0.3867611289024353,
0.01880863681435585,
0.05875811725854874,
-0.23907937109470367,
0.05121225863695145,
-0.19289690256118774,
0.23662841320037842,
-0.11374437808990479,
-0.11113300919532776,
-0.10838517546653748,
-0.17974479496479034,
0.08680577576160431,
-0.3030621409416199,
0.06838832050561905,
-0.07365216314792633,
-0.4274953603744507,
-0.5324138402938843,
-0.1354045867919922,
0.18446481227874756,
0.11734262108802795,
-0.14524635672569275,
-0.01815168373286724,
0.07935039699077606,
-0.3211654722690582,
0.38172608613967896,
0.5617296099662781,
0.0178154855966568,
-0.15858078002929688,
0.08580802381038666,
0.14398261904716492,
0.061974480748176575,
-0.4408475458621979,
-0.0030485885217785835,
0.07689525187015533,
0.2978448271751404,
0.05618102848529816,
0.15434333682060242,
0.15033498406410217,
-0.12962551414966583,
0.22837084531784058,
0.3939095437526703,
0.3768935203552246,
-0.08528456091880798,
0.08851401507854462,
-0.3384658992290497,
-0.0317746177315712,
-0.24603486061096191,
-0.1481606662273407,
-0.30406180024147034,
0.14540597796440125,
0.05477497726678848,
-0.03677736222743988,
-0.0454748272895813,
-0.1496770977973938,
0.12897653877735138,
-0.08329209685325623,
0.250078022480011,
0.27472391724586487,
-0.14820647239685059,
-0.13296864926815033,
-0.316324919462204,
-0.4575667083263397,
0.08073189109563828,
-0.22467392683029175,
-0.27354830503463745,
-0.022697973996400833,
0.32399532198905945,
0.07573481649160385,
0.0861324816942215,
0.5756675601005554,
0.3324613571166992,
0.27469295263290405,
-0.01727999746799469,
-0.28902918100357056,
-0.29591435194015503,
0.035377297550439835,
0.3035925328731537,
0.06730712205171585,
-0.006856754422187805,
0.23890605568885803,
-0.043878842145204544,
0.11744856089353561,
-0.13897018134593964,
-0.14611484110355377,
-0.30226197838783264,
0.18360845744609833,
0.5363647937774658,
-0.09683553129434586,
0.06338486075401306,
-0.07150402665138245,
0.2156399041414261,
-0.2661675810813904,
-0.556866466999054,
0.10446003079414368,
0.48382318019866943,
0.2246442586183548,
0.09186313301324844,
-0.3304635286331177,
-0.32652372121810913,
-0.09323591738939285,
0.2355312556028366,
-0.012309592217206955,
-0.1668466478586197,
-0.41407373547554016,
0.3338683545589447,
-0.13874390721321106,
0.13322043418884277,
0.07678771764039993,
0.03748137503862381,
-0.15290755033493042,
-0.25291332602500916,
-0.19882124662399292,
-0.11833348125219345,
0.24351859092712402,
-0.4450901448726654,
-0.13192157447338104,
-0.21955420076847076,
0.15838555991649628,
0.5237942934036255,
0.013638744130730629,
-0.492840439081192,
0.1295258104801178,
0.3503895401954651,
0.1664186716079712,
0.12551313638687134,
0.287801593542099,
0.017678551375865936,
-0.014227163046598434,
-0.07170615345239639,
0.29202723503112793,
0.2527540922164917,
0.12907683849334717,
-0.11075203120708466,
-0.02221379056572914
] |
https://github.com/huggingface/datasets/issues/4091 | Build a Dataset One Example at a Time Without Loading All Data Into Memory | Hi! Yes, the problem with `add_item` is that it keeps examples in memory, so you are left with these options:
* writing a dataset loading script in which you iterate over `custom_example_dict_streamer` and yield the examples (in `_generate examples`)
* storing the data in a JSON/CSV/Parquet/TXT file and using `Dataset.from_{format}`
* using `add_item` + `save_to_disk` on smaller chunks:
```python
from datasets import Dataset, concatenate_datasets
MAX_SAMPLES_IN_MEMORY = 1000
samples_in_dset = 0
dset = Dataset.from_dict({"col1": [], "col2": []}) # empty dataset
path_to_save_dir = "path/to/save/dir"
num_chunks = 0
for example_dict in custom_example_dict_streamer("/path/to/raw/data"):
dset = dset.add_item(example_dict)
samples_in_dset += 1
if samples_in_dset == MAX_SAMPLES_IN_MEMORY:
samples_in_dset = 0
dset.save_to_disk(f"{path_to_save_dir}{num_chunks}")
num_chunks =+ 1
dset = Dataset.from_dict({"col1": [], "col2": []}) # empty dataset
if samples_in_dset > 0:
dset.save_to_disk(f"{path_to_save_dir}{num_chunks}")
num_chunks =+ 1
loaded_dsets = [] # memory-mapped
for chunk_num in range(num_chunks):
dset = Dataset.load_from_disk(f"{path_to_save_dir}{chunk_num}")
loaded_dsets.append(dset)
final_dset = concatenate_datasets(dset)
```
If you still have issues with this approach, you can try to delete unused datasets with `gc.collect()` to free some memory. | **Is your feature request related to a problem? Please describe.**
I have a very large dataset stored on disk in a custom format. I have some custom code that reads one data example at a time and yields it in the form of a dictionary. I want to construct a `Dataset` with all examples, and then save it to disk. I later want to load the saved `Dataset` and use it like any other HuggingFace dataset, get splits, wrap it in a PyTorch `DataLoader`, etc. **Crucially, I do not ever want to materialize all the data in memory while building the dataset.**
**Describe the solution you'd like**
I would like to be able to do something like the following. Notice how each example is read and then immediately added to the dataset. We do not store all the data in memory when constructing the `Dataset`. If it helps, I will know the schema of my dataset before hand.
```
# Initialize an empty Dataset, possibly from a known schema.
dataset = Dataset()
# Read in examples one by one using a custom data streamer.
for example_dict in custom_example_dict_streamer("/path/to/raw/data"):
# Add this example to the dict but do not store it in memory.
dataset.add_item(example_dict)
# Save the final dataset to disk as an Arrow-backed dataset.
dataset.save_to_disk("/path/to/dataset")
...
# I'd like to be able to later `load_from_disk` and use the loaded Dataset
# just like any other memory-mapped pyarrow-backed HuggingFace dataset...
loaded_dataset = Dataset.load_from_disk("/path/to/dataset")
loaded_dataset.set_format(type="torch", columnns=["foo", "bar", "baz"])
dataloader = torch.utils.data.DataLoader(loaded_dataset, batch_size=16)
...
```
**Describe alternatives you've considered**
I initially tried to read all the data into memory, construct a Pandas DataFrame and then call `Dataset.from_pandas`. This would not work as it requires storing all the data in memory. It seems that there is an `add_item` method already -- I tried to implement something like the desired API written above, but I've not been able to initialize an empty `Dataset` (this seems to require several layers of constructing `datasets.table.Table` which requires constructing a `pyarrow.lib.Table`, etc). I also considered writing my data to multiple sharded CSV files or JSON files and then using `from_csv` or `from_json`. I'd prefer not to do this because (1) I'd prefer to avoid the intermediate step of creating these temp CSV/JSON files and (2) I'm not sure if `from_csv` and `from_json` use memory-mapping.
Do you have any suggestions on how I'd be able to achieve this use case? Does something already exist to support this? Thank you very much in advance! | 161 | Build a Dataset One Example at a Time Without Loading All Data Into Memory
**Is your feature request related to a problem? Please describe.**
I have a very large dataset stored on disk in a custom format. I have some custom code that reads one data example at a time and yields it in the form of a dictionary. I want to construct a `Dataset` with all examples, and then save it to disk. I later want to load the saved `Dataset` and use it like any other HuggingFace dataset, get splits, wrap it in a PyTorch `DataLoader`, etc. **Crucially, I do not ever want to materialize all the data in memory while building the dataset.**
**Describe the solution you'd like**
I would like to be able to do something like the following. Notice how each example is read and then immediately added to the dataset. We do not store all the data in memory when constructing the `Dataset`. If it helps, I will know the schema of my dataset before hand.
```
# Initialize an empty Dataset, possibly from a known schema.
dataset = Dataset()
# Read in examples one by one using a custom data streamer.
for example_dict in custom_example_dict_streamer("/path/to/raw/data"):
# Add this example to the dict but do not store it in memory.
dataset.add_item(example_dict)
# Save the final dataset to disk as an Arrow-backed dataset.
dataset.save_to_disk("/path/to/dataset")
...
# I'd like to be able to later `load_from_disk` and use the loaded Dataset
# just like any other memory-mapped pyarrow-backed HuggingFace dataset...
loaded_dataset = Dataset.load_from_disk("/path/to/dataset")
loaded_dataset.set_format(type="torch", columnns=["foo", "bar", "baz"])
dataloader = torch.utils.data.DataLoader(loaded_dataset, batch_size=16)
...
```
**Describe alternatives you've considered**
I initially tried to read all the data into memory, construct a Pandas DataFrame and then call `Dataset.from_pandas`. This would not work as it requires storing all the data in memory. It seems that there is an `add_item` method already -- I tried to implement something like the desired API written above, but I've not been able to initialize an empty `Dataset` (this seems to require several layers of constructing `datasets.table.Table` which requires constructing a `pyarrow.lib.Table`, etc). I also considered writing my data to multiple sharded CSV files or JSON files and then using `from_csv` or `from_json`. I'd prefer not to do this because (1) I'd prefer to avoid the intermediate step of creating these temp CSV/JSON files and (2) I'm not sure if `from_csv` and `from_json` use memory-mapping.
Do you have any suggestions on how I'd be able to achieve this use case? Does something already exist to support this? Thank you very much in advance!
Hi! Yes, the problem with `add_item` is that it keeps examples in memory, so you are left with these options:
* writing a dataset loading script in which you iterate over `custom_example_dict_streamer` and yield the examples (in `_generate examples`)
* storing the data in a JSON/CSV/Parquet/TXT file and using `Dataset.from_{format}`
* using `add_item` + `save_to_disk` on smaller chunks:
```python
from datasets import Dataset, concatenate_datasets
MAX_SAMPLES_IN_MEMORY = 1000
samples_in_dset = 0
dset = Dataset.from_dict({"col1": [], "col2": []}) # empty dataset
path_to_save_dir = "path/to/save/dir"
num_chunks = 0
for example_dict in custom_example_dict_streamer("/path/to/raw/data"):
dset = dset.add_item(example_dict)
samples_in_dset += 1
if samples_in_dset == MAX_SAMPLES_IN_MEMORY:
samples_in_dset = 0
dset.save_to_disk(f"{path_to_save_dir}{num_chunks}")
num_chunks =+ 1
dset = Dataset.from_dict({"col1": [], "col2": []}) # empty dataset
if samples_in_dset > 0:
dset.save_to_disk(f"{path_to_save_dir}{num_chunks}")
num_chunks =+ 1
loaded_dsets = [] # memory-mapped
for chunk_num in range(num_chunks):
dset = Dataset.load_from_disk(f"{path_to_save_dir}{chunk_num}")
loaded_dsets.append(dset)
final_dset = concatenate_datasets(dset)
```
If you still have issues with this approach, you can try to delete unused datasets with `gc.collect()` to free some memory. | [
-0.4209350347518921,
-0.11638520658016205,
0.03712019696831703,
0.2598600387573242,
0.1629028022289276,
0.13571840524673462,
0.11643485724925995,
0.1412477046251297,
-0.01454082876443863,
0.3117845356464386,
0.3016648292541504,
0.185853511095047,
-0.4372403621673584,
0.3365069031715393,
0.2986663281917572,
-0.12641175091266632,
0.061615146696567535,
0.259818971157074,
0.07883007824420929,
0.23423393070697784,
-0.07831153273582458,
-0.36918404698371887,
0.07090334594249725,
-0.44821804761886597,
-0.22522544860839844,
-0.15403807163238525,
-0.42975831031799316,
-0.04340369254350662,
-0.09820493310689926,
-0.31612691283226013,
0.19472742080688477,
0.1339821219444275,
0.10038592666387558,
0.2431761920452118,
-0.0001193306379718706,
-0.025184184312820435,
0.21590235829353333,
-0.18681222200393677,
-0.6107703447341919,
-0.010600566864013672,
0.07198090851306915,
-0.2320745438337326,
0.17854392528533936,
-0.34986165165901184,
-0.11080145835876465,
-0.3290686011314392,
0.1026189848780632,
-0.441545695066452,
0.4038887619972229,
-0.1870235800743103,
0.10254257917404175,
0.06730783730745316,
-0.08105440437793732,
-0.038313187658786774,
0.18159636855125427,
0.7042092680931091,
-0.21044893562793732,
0.08750684559345245,
0.30788496136665344,
0.12109024822711945,
-0.2019842565059662,
0.17467598617076874,
-0.18206843733787537,
0.03718758001923561,
0.49166133999824524,
0.14031080901622772,
-0.2599630355834961,
-0.21425017714500427,
-0.12164493650197983,
0.2811366319656372,
0.6285695433616638,
-0.51744544506073,
-0.6003103852272034,
-0.5044122934341431,
0.03956322744488716,
-0.4004783630371094,
-0.2066406011581421,
0.4591842591762543,
-0.46584194898605347,
-0.0166921429336071,
-0.26242154836654663,
-0.28457731008529663,
-0.2060098946094513,
0.18894566595554352,
0.15004940330982208,
-0.28987544775009155,
-0.10685332864522934,
0.10385137051343918,
0.14592641592025757,
0.02250160649418831,
0.20979392528533936,
-0.352705717086792,
0.09323878586292267,
0.26187705993652344,
0.06621812283992767,
-0.14054138958454132,
-0.11390981823205948,
-0.00005145370960235596,
0.5586258172988892,
0.08000797033309937,
0.2936224341392517,
0.08402764797210693,
0.12778542935848236,
-0.02666483074426651,
0.08554995059967041,
-0.0027183089405298233,
0.03187188878655434,
-0.1161881536245346,
0.186002716422081,
0.1536155790090561,
0.1061432808637619,
-0.09938260167837143,
-0.21536552906036377,
0.25725480914115906,
0.13835901021957397,
-0.11919964104890823,
0.14401207864284515,
0.14719590544700623,
0.09812387079000473,
-0.1882334053516388,
-0.0693521797657013,
-0.03217777609825134,
-0.11179398745298386,
0.38222581148147583,
-0.006922322325408459,
-0.09119883924722672,
0.06477848440408707,
0.20774467289447784,
-0.06943771243095398,
-0.0470813624560833,
-0.08708140254020691,
0.055040039122104645,
-0.15026253461837769,
0.3765547275543213,
0.4219582974910736,
0.0470493920147419,
0.1640986204147339,
0.11994729191064835,
-0.14614830911159515,
0.05583804100751877,
0.18462611734867096,
-0.34016743302345276,
0.2913685441017151,
-0.05311646685004234,
-0.08069673180580139,
0.14954406023025513,
-0.1153726577758789,
0.06270543485879898,
-0.2957002818584442,
0.38643595576286316,
0.22927895188331604,
-0.3678097426891327,
0.12326477468013763,
0.04483792558312416,
-0.21018870174884796,
0.17192429304122925,
-0.35139456391334534,
0.35346662998199463,
0.12530837953090668,
-0.12718500196933746,
-0.11224008351564407,
0.15497761964797974,
-0.1741083413362503,
-0.2765001654624939,
0.42684054374694824,
0.6043602228164673,
-0.5733698010444641,
-0.0515400767326355,
0.06435610353946686,
0.02558109536767006,
-0.020888596773147583,
0.054465893656015396,
-0.30846139788627625,
0.39363759756088257,
-0.3228326141834259,
-0.16992557048797607,
0.3627917170524597,
-0.12949630618095398,
-0.30268731713294983,
0.30490773916244507,
0.0182630717754364,
0.29303085803985596,
0.26085934042930603,
0.49990665912628174,
0.5375149250030518,
0.1747264564037323,
-0.12269195914268494,
0.4144344925880432,
-0.23637214303016663,
0.07295481860637665,
-0.0018221549689769745,
-0.3941572606563568,
0.2951887845993042,
0.0824529379606247,
-0.16353093087673187,
0.1247483491897583,
-0.14605578780174255,
-0.010787916369736195,
0.4248400032520294,
-0.37958598136901855,
0.23445335030555725,
0.1449185162782669,
0.05481585115194321,
-0.038424305617809296,
-0.13719893991947174,
-0.22423508763313293,
-0.6583160758018494,
0.293669730424881,
0.2762472331523895,
-0.09867146611213684,
-0.11954690515995026,
-0.23501750826835632,
0.24986186623573303,
0.013115724548697472,
-0.11992818117141724,
-0.21867600083351135,
-0.07106851041316986,
0.03480567783117294,
0.09307847917079926,
-0.23011302947998047,
-0.28790709376335144,
0.34955674409866333,
-0.06999502331018448,
0.13773243129253387,
-0.4195549488067627,
0.044498100876808167,
0.23032434284687042,
-0.28402581810951233,
-0.1733585149049759,
0.0798417329788208,
-0.05077394098043442,
-0.15446360409259796,
0.19508236646652222,
0.15431402623653412,
0.09638816118240356,
0.16689929366111755,
-0.27820512652397156,
0.11034949123859406,
0.275400310754776,
-0.13153575360774994,
0.1960987001657486,
-0.09141290187835693,
0.19710464775562286,
-0.34460997581481934,
-0.5591373443603516,
0.46031326055526733,
0.3568125069141388,
0.400043785572052,
0.14935947954654694,
-0.05588718503713608,
0.035206228494644165,
-0.030787797644734383,
-0.07102587074041367,
-0.2107819765806198,
0.23712509870529175,
-0.005382869392633438,
0.4756479859352112,
0.017270049080252647,
-0.3408670127391815,
0.08886388689279556,
0.05583604425191879,
-0.13954655826091766,
0.16148073971271515,
0.17418402433395386,
-0.25493124127388,
0.03764233738183975,
0.13628120720386505,
0.10630713403224945,
0.2807597815990448,
0.10881325602531433,
0.10487130284309387,
0.08541523665189743,
0.24928238987922668,
0.05801789462566376,
0.09377436339855194,
0.10323434323072433,
0.23618429899215698,
0.09878930449485779,
0.11603745818138123,
-0.03867311403155327,
-0.04984193295240402,
0.02942141517996788,
0.16049917042255402,
-0.19478605687618256,
-0.19534814357757568,
0.047570183873176575,
-0.04026344418525696,
-0.08209987729787827,
-0.15753638744354248,
-0.07121027261018753,
-0.1780250519514084,
0.0004876842722296715,
-0.1314619481563568,
0.39408206939697266,
0.07611723244190216,
-0.020036013796925545,
0.18581131100654602,
0.3609597086906433,
-0.09162034839391708,
-0.5261384844779968,
0.03724053502082825,
-0.10584316402673721,
0.1311054676771164,
-0.03999606892466545,
0.05974742770195007,
0.2884180545806885,
0.6590754985809326,
0.1992642879486084,
-0.026357272639870644,
-0.45730578899383545,
-0.03502071276307106,
0.17567425966262817,
-0.04867963492870331,
0.2995196282863617,
0.2324542999267578,
0.1919105052947998,
0.18312162160873413,
-0.2859603464603424,
0.05680001527070999,
-0.13166338205337524,
-0.1664605438709259,
-0.0015455931425094604,
-0.030624166131019592,
0.14162318408489227,
-0.11353473365306854,
0.11047270148992538,
-0.2464429885149002,
-0.35674136877059937,
0.4192214012145996,
0.18021650612354279,
0.280873566865921,
-0.16400492191314697,
0.07962097227573395,
0.0714469775557518,
0.15723678469657898,
0.02079649642109871,
0.13467803597450256,
-0.23999746143817902,
0.2603282928466797,
-0.3150193989276886,
-0.14404265582561493,
-0.16810859739780426,
-0.3989109992980957,
-0.0280529223382473,
0.5626739263534546,
-0.6233103275299072,
0.02044256031513214,
-0.28018295764923096,
0.18916237354278564,
-0.11925959587097168,
0.09733118861913681,
0.357787162065506,
0.033474188297986984,
0.05394814908504486,
-0.13668549060821533,
-0.2653041481971741,
0.16798415780067444,
-0.24879658222198486,
0.15338051319122314,
0.1067761778831482,
0.31277039647102356,
-0.0027849897742271423,
0.8366506099700928,
0.14081336557865143,
-0.08793899416923523,
0.05821434035897255,
-0.10993319004774094,
0.1829988956451416,
-0.22217229008674622,
-0.22382156550884247,
-0.05144346132874489,
-0.3980006277561188,
-0.12162268906831741,
-0.06475856900215149,
0.1066579669713974,
-0.013529270887374878,
-0.07216247916221619,
0.0383760966360569,
0.13866102695465088,
-0.24931547045707703,
0.2541590929031372,
-0.3331400752067566,
0.2887970209121704,
-0.21752196550369263,
0.11327057331800461,
-0.29489269852638245,
-0.026403255760669708,
-0.02532001957297325,
0.03805778920650482,
0.4109591543674469,
-0.1311987191438675,
-0.2870454788208008,
0.2777251899242401,
-0.7122268080711365,
0.04094146937131882,
0.10838675498962402,
-0.14009989798069,
0.18176394701004028,
-0.12101173400878906,
-0.04346694052219391,
-0.16552576422691345,
0.8799043297767639,
0.321794331073761,
-0.061824455857276917,
0.07423573732376099,
-0.24331289529800415,
-0.5960701704025269,
0.22644425928592682,
-0.07647816836833954,
0.4405239224433899,
-0.21820391714572906,
0.46991539001464844,
-0.42424488067626953,
-0.17611727118492126,
0.05933289974927902,
0.680106520652771,
-0.23516064882278442,
-0.25430792570114136,
-0.035432033240795135,
-0.19026511907577515,
-0.36118122935295105,
-0.025210164487361908,
0.09240641444921494,
-0.0383029542863369,
0.05958758294582367,
-0.0707734003663063,
-0.37819504737854004,
0.17512986063957214,
0.08009810000658035,
-0.3544982969760895,
0.32066741585731506,
-0.1274770051240921,
0.31022873520851135,
0.22848722338676453,
0.10099273920059204,
0.22441358864307404,
0.41719162464141846,
0.12736041843891144,
-0.1217343658208847,
0.15586912631988525,
-0.025575298815965652,
0.3994317948818207,
0.40659910440444946,
0.10502059012651443,
0.1505439132452011,
-0.043610960245132446,
0.05947979539632797,
-0.8550372123718262,
-0.036571208387613297,
0.040470123291015625,
-0.2361508309841156,
-0.36598601937294006,
-0.4927258789539337,
0.6578699350357056,
0.20526424050331116,
0.002427145838737488,
0.49487996101379395,
0.09734230488538742,
-0.24675308167934418,
0.39311885833740234,
0.2393687665462494,
0.9796254634857178,
-0.21724005043506622,
0.6056007146835327,
0.31369325518608093,
-0.00013360381126403809,
0.23048381507396698,
-0.04078324884176254,
0.19820889830589294,
-0.4013308882713318,
-0.15679112076759338,
-0.06506635993719101,
-0.32242661714553833,
0.1308220475912094,
0.16523224115371704,
-0.28711166977882385,
0.1468009054660797,
-0.3416787385940552,
0.14861822128295898,
-0.001607874408364296,
0.2550872564315796,
-0.3189641833305359,
-0.47439464926719666,
-0.03680148348212242,
0.059147968888282776,
0.026491930708289146,
0.04335637390613556,
-0.06839077174663544,
-0.05919851362705231,
0.028570692986249924,
-0.111587293446064,
-0.22333502769470215,
-0.0007234141230583191,
-0.5365973711013794,
0.12627170979976654,
-0.2892424762248993,
-0.4813969135284424,
0.1266840547323227,
0.31397777795791626,
0.048224132508039474,
0.18971669673919678,
-0.04874883592128754,
-0.06910434365272522,
0.11281149089336395,
0.13992007076740265,
-0.10286354273557663,
-0.23159055411815643,
0.1758967489004135,
0.10468149930238724,
0.06625533849000931,
0.10505634546279907,
-0.3506561815738678,
-0.15495026111602783,
-0.13649143278598785,
-0.14583466947078705,
0.23083224892616272,
-0.39007458090782166,
-0.15052592754364014,
0.01412193477153778,
0.057864073663949966,
-0.17061485350131989,
0.0020852386951446533,
0.2700774073600769,
-0.13141919672489166,
0.12043143808841705,
-0.14942125976085663,
0.09222844243049622,
-0.024712219834327698,
0.2545051872730255,
0.03411128371953964,
-0.04654867947101593,
0.516101062297821,
0.17558996379375458,
-0.1452013999223709,
-0.21328598260879517,
0.27919432520866394,
0.3578154146671295,
-0.2522296607494354,
0.22482562065124512,
0.01641274243593216,
0.030804023146629333,
-0.2469882369041443,
0.15423718094825745,
-0.023165151476860046,
-0.03753982484340668,
-0.16062365472316742,
-0.11937597393989563,
-0.4892457127571106,
0.24896344542503357,
0.15639913082122803,
0.4387376308441162,
-0.005867082625627518,
0.050172485411167145,
-0.05332978069782257,
0.43646541237831116,
-0.24901911616325378,
0.18396005034446716,
0.08353819698095322,
0.21000924706459045,
0.17966262996196747,
0.14738601446151733,
-0.02306808903813362,
0.013057347387075424,
0.015141578391194344,
0.009528020396828651,
-0.08381772041320801,
-0.1189948245882988,
-0.05260622873902321,
0.17873167991638184,
-0.05153971165418625,
-0.12464755028486252,
0.12253973633050919,
-0.1640470325946808,
0.0011603031307458878,
-0.35574835538864136,
0.48553746938705444,
0.25807076692581177,
-0.13924595713615417,
-0.17641393840312958,
0.2813096046447754,
0.39133644104003906,
-0.32084929943084717,
0.1939580887556076,
-0.014548435807228088,
0.24714574217796326,
0.022860713303089142,
0.07120513916015625,
-0.06791582703590393,
-0.18112432956695557,
-0.009913068264722824,
0.051548637449741364,
0.25917816162109375,
-0.005988962948322296,
0.15452083945274353,
-0.10485571622848511,
-0.13357539474964142,
0.011528559029102325,
0.4891603887081146,
0.23412084579467773,
-0.15147002041339874,
0.2137604057788849,
0.3717583417892456,
0.11260955780744553,
-0.02844260260462761,
-0.20706693828105927,
0.08827531337738037,
-0.3422161340713501,
0.1325771063566208,
0.2877081632614136,
-0.03098154440522194,
0.13275949656963348,
-0.47935736179351807,
-0.19150924682617188,
0.09700917452573776,
-0.07282951474189758,
0.1466113179922104,
0.35112011432647705,
-0.15999729931354523,
-0.1869802176952362,
0.028937283903360367,
0.3379330337047577,
0.25130659341812134,
0.15491151809692383,
-0.12414079159498215,
0.4889228045940399,
0.16037262976169586,
-0.06133301928639412,
0.17563259601593018,
-0.4958525002002716,
0.04765348881483078,
-0.04553060233592987,
0.20416057109832764,
0.08189596235752106,
-0.4448322653770447,
0.3467555046081543,
-0.14216014742851257,
-0.1973380148410797,
-0.0771995559334755,
0.20330660045146942,
-0.021960385143756866,
-0.06479277461767197,
0.23819243907928467,
-0.1681993156671524,
0.14159667491912842,
-0.015869606286287308,
-0.12256407737731934,
-0.5519500374794006,
0.1256030797958374,
0.04183407872915268,
0.33677467703819275,
-0.12937214970588684,
0.3530856668949127,
0.07826337218284607,
0.17556802928447723,
-0.30463507771492004,
0.08051694184541702,
0.1485043466091156,
0.038095418363809586,
-0.21686014533042908,
0.12467031180858612,
0.11161677539348602,
0.39106014370918274,
-0.2827897369861603,
0.2954721450805664,
-0.1951836198568344,
-0.07246577739715576,
-0.144639790058136,
-0.147840216755867,
0.0561114177107811,
-0.18534809350967407,
0.44636937975883484,
0.0009291991591453552,
-0.050135985016822815,
0.07107482850551605,
0.3064911365509033,
-0.08367368578910828,
-0.49808505177497864,
0.07912668585777283,
0.07418609410524368,
-0.22815757989883423,
0.09826377779245377,
0.012637101113796234,
-0.1604137420654297,
-0.2725967466831207,
0.6316074728965759,
-0.37787362933158875,
0.08691232651472092,
0.2679752707481384,
0.05514758825302124,
-0.22112883627414703,
0.5340123772621155,
0.12786071002483368,
0.3672250211238861,
-0.46024981141090393,
-0.05566611513495445,
-0.3000252842903137,
-0.18859264254570007,
-0.20721730589866638,
-0.1267344206571579,
-0.0197348203510046,
0.2684510052204132,
-0.004157744348049164,
0.22117987275123596,
-0.3217480182647705,
0.03817567229270935,
-0.0011764168739318848,
0.2834762930870056,
-0.22598183155059814,
-0.190641850233078,
-0.013792641460895538,
0.29727891087532043,
0.016969390213489532,
-0.5244717001914978,
0.049299634993076324,
0.042461127042770386,
-0.017195291817188263,
0.22709934413433075,
0.15890048444271088,
0.2631400227546692,
0.09778144210577011,
0.43919649720191956,
-0.08346275985240936,
0.1991303563117981,
-0.02463477849960327,
-0.21660315990447998,
-0.06476806104183197,
0.20181049406528473,
-0.19967980682849884,
0.029413670301437378,
0.1825631558895111,
0.3144281208515167,
-0.3909359574317932,
0.039487075060606,
-0.31611815094947815,
-0.041454415768384933,
0.12264290452003479,
0.0052351695485413074,
-0.17867885529994965,
0.18886062502861023,
-0.2317344844341278,
0.195323646068573,
0.16172894835472107,
0.35389766097068787,
-0.35545143485069275,
0.1557035595178604,
-0.19253124296665192,
-0.06637857109308243,
0.5308500528335571,
-0.24294348061084747,
-0.14237801730632782,
0.04070727899670601,
0.15885740518569946,
0.17133909463882446,
0.013421716168522835,
-0.46567249298095703,
-0.003812946379184723,
0.38075166940689087,
-0.07777155935764313,
-0.03205999359488487,
0.263882040977478,
0.13124911487102509,
-0.2965821921825409,
-0.12254387140274048,
0.584936261177063,
-0.08671396970748901,
-0.1652437448501587,
-0.20495237410068512,
-0.5461618304252625
] |
https://github.com/huggingface/datasets/issues/4086 | Dataset viewer issue for McGill-NLP/feedbackQA | Hi @cslizc, thanks for reporting.
I have just forced the refresh of the corresponding cache and the preview is working now. | ## Dataset viewer issue for '*McGill-NLP/feedbackQA*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/McGill-NLP/feedbackQA)*
*short description of the issue*
The dataset can be loaded correctly with `load_dataset` but the preview doesn't work. Error message:
```
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist.
```
Am I the one who added this dataset ? Yes
| 21 | Dataset viewer issue for McGill-NLP/feedbackQA
## Dataset viewer issue for '*McGill-NLP/feedbackQA*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/McGill-NLP/feedbackQA)*
*short description of the issue*
The dataset can be loaded correctly with `load_dataset` but the preview doesn't work. Error message:
```
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist.
```
Am I the one who added this dataset ? Yes
Hi @cslizc, thanks for reporting.
I have just forced the refresh of the corresponding cache and the preview is working now. | [
-0.3954628109931946,
0.10764700174331665,
0.05978500470519066,
0.26841992139816284,
0.05776575207710266,
0.07902570813894272,
0.19902373850345612,
0.29658257961273193,
0.32268834114074707,
0.023535847663879395,
-0.1500445157289505,
0.3179178535938263,
-0.07651112973690033,
0.01836520992219448,
0.15740467607975006,
-0.23080813884735107,
0.01833600550889969,
0.2394709587097168,
-0.4619167149066925,
0.18353688716888428,
-0.19989198446273804,
0.2644568085670471,
-0.22592546045780182,
0.01744840294122696,
-0.18077687919139862,
0.23041363060474396,
-0.11997983604669571,
0.04291882365942001,
-0.23151682317256927,
-0.26630184054374695,
0.3369385898113251,
0.2163783311843872,
0.2551962733268738,
0.38503602147102356,
-0.00011498479580041021,
0.04210440069437027,
0.44561320543289185,
0.06935415416955948,
-0.1457676738500595,
-0.31253278255462646,
0.13757827877998352,
-0.46999678015708923,
0.19706027209758759,
-0.022689513862133026,
-0.13909757137298584,
-0.019293054938316345,
0.22389326989650726,
-0.43415525555610657,
0.29182830452919006,
0.03589118272066116,
0.2126477062702179,
0.42236489057540894,
-0.04965018481016159,
-0.35803940892219543,
0.14765633642673492,
-0.01917995512485504,
-0.2629031836986542,
0.32299837470054626,
0.19348368048667908,
-0.03659027814865112,
-0.13082250952720642,
0.2233712077140808,
0.13039591908454895,
-0.08843749761581421,
0.1045943945646286,
-0.037819698452949524,
0.11526063084602356,
-0.1707717925310135,
0.21460729837417603,
0.2574216425418854,
0.9835370182991028,
-0.21213096380233765,
-0.2883012592792511,
-0.017991308122873306,
0.0883009061217308,
-0.018825944513082504,
0.3099803626537323,
0.03428584337234497,
0.18490007519721985,
0.09183007478713989,
-0.5075606107711792,
-0.192762553691864,
-0.002015508711338043,
0.10253918170928955,
-0.20251202583312988,
-0.031143859028816223,
-0.16251297295093536,
0.21537140011787415,
-0.00005759298801422119,
0.08628644049167633,
0.2574033737182617,
0.0864371731877327,
-0.2922513484954834,
0.22552013397216797,
-0.39742615818977356,
-0.0607244037091732,
0.08073720335960388,
0.016431596130132675,
0.007631335407495499,
0.07882270216941833,
-0.171937495470047,
0.21028420329093933,
-0.054814789444208145,
0.17497602105140686,
0.18314260244369507,
0.12691530585289001,
0.16647137701511383,
-0.020640093833208084,
0.268694132566452,
0.23401528596878052,
0.10752379894256592,
-0.11759770661592484,
-0.18575868010520935,
-0.09116736054420471,
-0.31443652510643005,
-0.2750049829483032,
0.2666516900062561,
-0.21979878842830658,
-0.3033575117588043,
0.11648914963006973,
-0.10480640083551407,
0.00785594992339611,
0.067826047539711,
0.5453709959983826,
-0.1532505452632904,
0.01724323444068432,
0.09497258067131042,
0.26997238397598267,
-0.3005896806716919,
-0.5419561266899109,
-0.17384196817874908,
-0.07168354094028473,
-0.29889553785324097,
0.1604672521352768,
0.38714808225631714,
0.23916885256767273,
0.2987629175186157,
-0.07648824900388718,
0.06455834954977036,
0.025114260613918304,
0.029474852606654167,
0.019384780898690224,
-0.30765414237976074,
0.16378085315227509,
0.0317026786506176,
0.20448245108127594,
0.20906206965446472,
0.000115957111120224,
0.026306234300136566,
0.31839290261268616,
0.05579794943332672,
-0.21739532053470612,
-0.18671345710754395,
0.12021681666374207,
-0.20503969490528107,
-0.10763679444789886,
-0.39249759912490845,
0.3687763214111328,
-0.06429805606603622,
-0.2549860179424286,
-0.054073311388492584,
0.07382473349571228,
-0.22747331857681274,
-0.05713124945759773,
0.1674012988805771,
0.6043130159378052,
-0.6127924919128418,
-0.4344271719455719,
-0.5860469937324524,
-0.22582411766052246,
0.017823301255702972,
0.3121633529663086,
-0.2233620285987854,
-0.042778484523296356,
-0.47663602232933044,
0.05384932458400726,
0.30132392048835754,
-0.22793473303318024,
-0.6642158031463623,
0.2735879719257355,
-0.2731451094150543,
0.11649280041456223,
-0.014047063887119293,
0.15623272955417633,
0.14656130969524384,
-0.21741914749145508,
-0.3678227365016937,
0.003063250333070755,
0.13829876482486725,
-0.15064243972301483,
-0.2424590289592743,
-0.08199972659349442,
0.46008068323135376,
0.3382922112941742,
0.10174048691987991,
0.010488443076610565,
-0.0003099218010902405,
-0.022281479090452194,
0.28356873989105225,
0.24631217122077942,
0.055688321590423584,
-0.050377607345581055,
0.10797291249036789,
0.06061938405036926,
-0.025752989575266838,
-0.0012794006615877151,
-0.3535568118095398,
0.19128170609474182,
-0.5105172991752625,
-0.19390864670276642,
0.20277655124664307,
0.0020491555333137512,
-0.5064565539360046,
0.07529976218938828,
-0.18921244144439697,
-0.44920074939727783,
0.10094611346721649,
0.14985151588916779,
-0.033158984035253525,
0.1316603124141693,
0.00099843367934227,
0.19441910088062286,
-0.17328877747058868,
0.01497043389827013,
-0.04680598899722099,
0.21179240942001343,
0.018726926296949387,
-0.05120156705379486,
0.10847356915473938,
0.16320592164993286,
0.2865373194217682,
-0.04643213748931885,
-0.07425758242607117,
0.3776138126850128,
-0.1485985815525055,
0.11651475727558136,
0.2758595943450928,
-0.20919643342494965,
0.2230968177318573,
-0.46249088644981384,
0.18077655136585236,
0.07732878625392914,
0.014887229539453983,
-0.026729252189397812,
-0.2515075206756592,
0.18851009011268616,
0.3577630817890167,
-0.07042238861322403,
0.0005189776420593262,
0.20390565693378448,
0.243589848279953,
-0.029230747371912003,
0.05060163885354996,
-0.22083623707294464,
0.40791064500808716,
0.14545579254627228,
0.2815047800540924,
-0.24138550460338593,
-0.2039024382829666,
0.18778793513774872,
0.06544356048107147,
0.01599307730793953,
0.04010957106947899,
-0.09813456982374191,
-0.3074195086956024,
-0.1379333734512329,
-0.007187312468886375,
-0.23801378905773163,
0.39569658041000366,
0.04931408911943436,
-0.0005751028656959534,
0.18484722077846527,
0.11963947862386703,
-0.18308383226394653,
0.03683685511350632,
-0.008507519960403442,
-0.2072618305683136,
0.04756275564432144,
0.16127590835094452,
-0.1611034870147705,
-0.34647223353385925,
0.27841854095458984,
0.36726516485214233,
0.07158183306455612,
-0.2621098756790161,
0.08061628043651581,
-0.13560742139816284,
-0.5818610787391663,
0.01600521057844162,
-0.02972095087170601,
-0.0655657947063446,
-0.3095054626464844,
0.0028158463537693024,
0.3228927254676819,
0.09664081037044525,
0.38188064098358154,
-0.005736637860536575,
0.3795596957206726,
-0.06728999316692352,
0.22106891870498657,
-0.008896313607692719,
0.05500151962041855,
-0.32314684987068176,
0.09964209794998169,
0.21839497983455658,
-0.12436944991350174,
0.1976294219493866,
-0.11019094288349152,
0.1714010089635849,
-0.764883816242218,
-0.41192883253097534,
0.10744145512580872,
-0.01225145161151886,
0.5651166439056396,
-0.201450377702713,
0.020889170467853546,
-0.2124813348054886,
0.08064840734004974,
0.14176127314567566,
-0.30664584040641785,
-0.18881328403949738,
0.043841756880283356,
-0.028911935165524483,
-0.14922381937503815,
0.04891808703541756,
-0.2119288146495819,
-0.17046670615673065,
-0.4196685552597046,
0.0904684066772461,
-0.19615638256072998,
-0.07293249666690826,
-0.14894437789916992,
-0.33610936999320984,
-0.02596919611096382,
-0.10736534744501114,
-0.17649419605731964,
-0.40228962898254395,
-0.4766603708267212,
0.39323142170906067,
-0.5437580347061157,
-0.5236997604370117,
0.29443687200546265,
0.10471510887145996,
0.24431642889976501,
-0.07427025586366653,
-0.5921558737754822,
0.021157637238502502,
-0.02823241986334324,
0.20412111282348633,
0.32859352231025696,
-0.3390216827392578,
0.32307085394859314,
-0.34368202090263367,
0.0964319109916687,
-0.14633800089359283,
-0.30994710326194763,
-0.06706037372350693,
-0.16842204332351685,
0.5265452265739441,
-0.31485095620155334,
0.2484261691570282,
-0.09690942615270615,
0.7055650949478149,
0.4017446041107178,
0.30758970975875854,
0.2758718729019165,
0.062233202159404755,
0.5128545761108398,
-0.23799660801887512,
-0.21723809838294983,
0.19763676822185516,
-0.13069486618041992,
0.11505758762359619,
0.379894495010376,
-0.013161232694983482,
-0.5118962526321411,
-0.1909160614013672,
0.08676056563854218,
-0.19631162285804749,
-0.18997912108898163,
-0.11581024527549744,
-0.24233728647232056,
0.19954659044742584,
0.21861636638641357,
0.2113514542579651,
-0.025856677442789078,
-0.233218252658844,
0.1320173591375351,
0.5089256763458252,
0.30484524369239807,
0.016817910596728325,
-0.23037047684192657,
0.08071811497211456,
-0.3081824779510498,
0.2112923264503479,
-0.26461711525917053,
0.5319278836250305,
-0.24026495218276978,
-0.07507699728012085,
0.15031540393829346,
0.17603228986263275,
0.609015941619873,
-0.05143149942159653,
-0.06892263144254684,
0.24151599407196045,
-0.08367522805929184,
-0.36597418785095215,
-0.22701497375965118,
0.107308030128479,
0.45382535457611084,
0.0774284303188324,
-0.001519620418548584,
-0.12756671011447906,
0.0794307291507721,
0.30910637974739075,
-0.20150226354599,
-0.26907727122306824,
-0.4668995141983032,
-0.1314588040113449,
0.03359314054250717,
0.039822690188884735,
-0.16102391481399536,
-0.2915336489677429,
0.06282418221235275,
-0.027041124179959297,
0.22396717965602875,
-0.1474979668855667,
-0.24823471903800964,
-0.11507818102836609,
0.15570946037769318,
0.3762872815132141,
0.02620326541364193,
0.5490262508392334,
0.5010902881622314,
0.05827529355883598,
-0.04675452411174774,
0.5672246217727661,
0.30741962790489197,
-0.5796651840209961,
0.4790327847003937,
-0.05316901579499245,
0.014164283871650696,
0.3031184673309326,
-0.07429372519254684,
-0.010774016380310059,
0.13900652527809143,
-0.03850732743740082,
-0.307669460773468,
0.1997910887002945,
0.30583611130714417,
-0.1433870792388916,
-0.4274543821811676,
-0.4113461971282959,
0.5851489901542664,
0.02454744279384613,
0.11201988160610199,
0.02134440839290619,
-0.0838506817817688,
-0.08816264569759369,
-0.07162211835384369,
-0.20599880814552307,
0.7791390419006348,
-0.14652477204799652,
-0.08450420200824738,
0.3666107654571533,
-0.13195765018463135,
0.3008256256580353,
-0.22582639753818512,
0.1260448545217514,
-0.3962162435054779,
-0.2014259546995163,
-0.09346739947795868,
-0.14510756731033325,
0.2828623652458191,
0.019709907472133636,
-0.16909873485565186,
0.05994298681616783,
0.061853110790252686,
0.18238669633865356,
0.17505623400211334,
0.012130659073591232,
-0.2233928143978119,
-0.0981273204088211,
-0.11316859722137451,
0.17329223453998566,
-0.04610048979520798,
0.2946210205554962,
-0.18639686703681946,
0.06281602382659912,
-0.1242409348487854,
0.11048796772956848,
-0.5089849829673767,
0.08729882538318634,
-0.08379502594470978,
0.00046686455607414246,
0.211845263838768,
-0.39093631505966187,
0.4932074248790741,
0.08907829225063324,
0.08018895238637924,
0.22604487836360931,
-0.3642682731151581,
0.408731073141098,
-0.16221916675567627,
-0.21925267577171326,
0.0594022236764431,
-0.03553561121225357,
0.055028755217790604,
0.024781808257102966,
-0.05017070472240448,
0.24583539366722107,
-0.047440141439437866,
-0.13814565539360046,
-0.27342653274536133,
-0.03100699931383133,
0.24584490060806274,
-0.3104010820388794,
-0.09098614752292633,
-0.06723470985889435,
0.10181182622909546,
-0.09801984578371048,
0.11747165024280548,
0.1913909763097763,
-0.10006797313690186,
-0.2676568925380707,
0.012662038207054138,
-0.1297176629304886,
-0.1296747922897339,
0.35308098793029785,
-0.17018547654151917,
-0.26777970790863037,
0.41416940093040466,
0.2885880470275879,
-0.17508676648139954,
-0.08172805607318878,
-0.09090971946716309,
0.2811221182346344,
-0.32957449555397034,
0.053016986697912216,
-0.0030544514302164316,
0.23143957555294037,
0.056900739669799805,
0.12523113191127777,
0.07308877259492874,
-0.35421597957611084,
-0.019453050568699837,
-0.5317684412002563,
-0.23246590793132782,
0.1365566849708557,
-0.3722458481788635,
0.11862409114837646,
0.28718504309654236,
0.04135507345199585,
0.15535734593868256,
0.29008087515830994,
-0.2507052421569824,
-0.06165950745344162,
-0.10893809050321579,
-0.024540048092603683,
0.2953566014766693,
-0.006759442389011383,
0.08606167882680893,
-0.07110683619976044,
-0.0021419543772935867,
0.09009557217359543,
-0.32113388180732727,
-0.10861283540725708,
-0.020034361630678177,
0.1820543259382248,
0.13295027613639832,
-0.1683121621608734,
-0.024485591799020767,
-0.06315198540687561,
0.026529932394623756,
0.011573147028684616,
0.0661483108997345,
-0.1027141585946083,
-0.031996950507164,
0.00012517627328634262,
0.29356446862220764,
-0.15328198671340942,
-0.2724817395210266,
0.20701585710048676,
0.11830258369445801,
0.35859400033950806,
0.15395012497901917,
0.08308468759059906,
0.044404007494449615,
0.0428437665104866,
0.07647240161895752,
0.0625506043434143,
0.046841904520988464,
0.06949478387832642,
0.29785507917404175,
-0.502991259098053,
0.3920838534832001,
0.2393532395362854,
0.30033740401268005,
0.3387342393398285,
-0.27967414259910583,
-0.17080886662006378,
0.4581749141216278,
0.09056878834962845,
-0.3070046603679657,
-0.004197429399937391,
0.35521700978279114,
0.19725646078586578,
-0.02301916480064392,
-0.05830305069684982,
0.22440296411514282,
0.14207516610622406,
0.10726790130138397,
0.29610583186149597,
0.2939807176589966,
-0.0958993062376976,
0.36935168504714966,
0.16577133536338806,
-0.07493986189365387,
0.1355649083852768,
0.24242262542247772,
0.35752159357070923,
-0.1568019986152649,
0.5620738863945007,
-0.054968126118183136,
0.17240244150161743,
-0.1763802170753479,
0.3442453444004059,
0.051720332354307175,
-0.4925380051136017,
-0.04258480295538902,
0.20752914249897003,
-0.14033904671669006,
0.09454961121082306,
-0.14668342471122742,
0.3955201804637909,
-0.03574693202972412,
0.10706640034914017,
-0.2660181224346161,
0.1678221970796585,
-0.21854713559150696,
-0.04192005470395088,
-0.032392825931310654,
-0.17077307403087616,
-0.1551026850938797,
0.20151330530643463,
-0.10059568285942078,
-0.013937212526798248,
-0.09004294872283936,
0.07502929866313934,
-0.33809661865234375,
-0.4035908281803131,
0.09824536740779877,
0.20202186703681946,
0.012067727744579315,
-0.22589336335659027,
0.29515933990478516,
0.04242938756942749,
0.020831838250160217,
0.3779376149177551,
0.33663204312324524,
0.1721183955669403,
0.20293696224689484,
-0.213182270526886,
0.029046542942523956,
-0.03030797839164734,
-0.1380525529384613,
-0.0010820869356393814,
0.3147549629211426,
0.3479969799518585,
-0.12765692174434662,
0.15510188043117523,
0.0917426347732544,
-0.10421586781740189,
0.5293189287185669,
0.1581423431634903,
0.4322349727153778,
-0.34638625383377075,
0.09188656508922577,
-0.46235859394073486,
0.10629979521036148,
-0.18030665814876556,
-0.19378909468650818,
-0.27218058705329895,
0.17632387578487396,
0.312075138092041,
0.14820563793182373,
-0.0012561473995447159,
-0.2936546206474304,
0.042627375572919846,
0.16890576481819153,
0.4531954526901245,
0.411634236574173,
0.16877731680870056,
-0.24383994936943054,
-0.40392428636550903,
-0.6647316813468933,
0.1709231734275818,
0.1005549430847168,
0.3068545162677765,
0.17674775421619415,
0.1643809676170349,
0.06877259910106659,
0.2669159173965454,
0.2836766242980957,
0.10198293626308441,
0.11289169639348984,
0.05411694571375847,
-0.1720810830593109,
-0.2543041706085205,
0.19427725672721863,
-0.0084295142441988,
-0.1509002149105072,
-0.0829223096370697,
0.2081088274717331,
0.19071881473064423,
-0.07502458989620209,
-0.14511550962924957,
-0.15161541104316711,
-0.04366128146648407,
0.04077969864010811,
0.2175171822309494,
0.20713350176811218,
0.41664448380470276,
0.17828917503356934,
-0.05113142728805542,
-0.47335922718048096,
-0.2920040190219879,
-0.1549237072467804,
0.057596951723098755,
0.1066521555185318,
0.4282757043838501,
-0.2039814293384552,
0.0532243587076664,
-0.21030056476593018,
0.08529472351074219,
0.03609172999858856,
0.028706450015306473,
-0.41696903109550476,
-0.11308565735816956,
-0.1170559674501419,
0.06035579368472099,
0.1815076321363449,
0.2959866225719452,
0.04837069660425186,
0.23587892949581146,
-0.28890401124954224,
-0.2950340509414673,
0.28539252281188965,
-0.4346238374710083,
-0.14645326137542725,
-0.0021091687958687544,
0.06369747221469879,
-0.37862738966941833,
-0.2631383538246155,
-0.5659300088882446,
0.07317721098661423,
0.30626380443573,
-0.16472363471984863,
0.34811824560165405,
0.22305314242839813,
-0.004235564731061459,
-0.002972785383462906,
-0.10707992315292358,
0.8629947900772095,
0.21610400080680847,
-0.07332634180784225,
0.13957096636295319,
-0.20505084097385406
] |
https://github.com/huggingface/datasets/issues/4085 | datasets.set_progress_bar_enabled(False) not working in datasets v2 | Now, I can't find any reference to set_progress_bar_enabled in the code.
I think it have been deleted | ## Describe the bug
datasets.set_progress_bar_enabled(False) not working in datasets v2
## Steps to reproduce the bug
```python
datasets.set_progress_bar_enabled(False)
```
## Expected results
datasets not using any progress bar
## Actual results
AttributeError: module 'datasets' has no attribute 'set_progress_bar_enabled
## Environment info
datasets version 2
| 17 | datasets.set_progress_bar_enabled(False) not working in datasets v2
## Describe the bug
datasets.set_progress_bar_enabled(False) not working in datasets v2
## Steps to reproduce the bug
```python
datasets.set_progress_bar_enabled(False)
```
## Expected results
datasets not using any progress bar
## Actual results
AttributeError: module 'datasets' has no attribute 'set_progress_bar_enabled
## Environment info
datasets version 2
Now, I can't find any reference to set_progress_bar_enabled in the code.
I think it have been deleted | [
-0.0829407125711441,
0.20135128498077393,
-0.23333482444286346,
-0.18151068687438965,
0.21289780735969543,
0.04634319245815277,
0.3892688751220703,
0.24631083011627197,
-0.2829354405403137,
0.18804007768630981,
0.19536717236042023,
0.44425711035728455,
-0.1529557853937149,
0.135637566447258,
0.03630907088518143,
0.13706770539283752,
0.0853453129529953,
0.41774824261665344,
0.012469910085201263,
0.12783709168434143,
-0.22868819534778595,
0.13940034806728363,
-0.5328260064125061,
-0.025131747126579285,
-0.08148278295993805,
0.06771492213010788,
0.1139896959066391,
-0.0465477854013443,
-0.057491108775138855,
-0.6920461058616638,
0.32866281270980835,
0.0638444721698761,
-0.08719984441995621,
0.20932164788246155,
-0.00011336780880810693,
-0.07349864393472672,
0.4886987805366516,
-0.0342736653983593,
-0.31713125109672546,
0.02184261381626129,
-0.3167989253997803,
-0.20935501158237457,
0.2612750232219696,
-0.25381362438201904,
0.17338493466377258,
-0.3301088511943817,
-0.1392229199409485,
-0.4149441123008728,
0.17862537503242493,
0.2967698276042938,
0.2530760169029236,
0.19850601255893707,
0.1470337063074112,
-0.12470344454050064,
0.10830934345722198,
-0.1042470782995224,
-0.19529469311237335,
0.186532661318779,
0.3116552531719208,
-0.06906795501708984,
0.20570304989814758,
0.3929734230041504,
-0.18650059401988983,
0.1649651676416397,
0.2560233473777771,
-0.2098720371723175,
-0.039602287113666534,
-0.026272252202033997,
0.2438739836215973,
-0.18911081552505493,
0.5733756422996521,
-0.43399232625961304,
-0.21098759770393372,
-0.19959679245948792,
-0.006003465503454208,
-0.1268458068370819,
0.13451363146305084,
-0.2341730147600174,
0.024846769869327545,
0.1852726936340332,
-0.2893550992012024,
-0.49275413155555725,
-0.1153753250837326,
0.009422436356544495,
-0.006984591484069824,
0.17571140825748444,
-0.2086096554994583,
-0.12562400102615356,
-0.16443496942520142,
0.2582247257232666,
0.0825657993555069,
0.24382123351097107,
0.048084091395139694,
0.07037850469350815,
-0.049869608134031296,
0.08040812611579895,
0.4000335931777954,
0.2902550995349884,
0.027816936373710632,
0.3193172216415405,
-0.21630363166332245,
0.05542164295911789,
-0.053407613188028336,
0.12452352046966553,
0.003700248897075653,
0.2833878993988037,
0.1773054450750351,
-0.2170720249414444,
0.3952440023422241,
-0.06074284017086029,
0.21314242482185364,
0.10008848458528519,
0.0028571058064699173,
-0.42024996876716614,
0.4483678340911865,
0.2526634633541107,
0.5768842697143555,
-0.17039673030376434,
-0.5129006505012512,
0.16765202581882477,
-0.2324538230895996,
-0.22913427650928497,
0.07912543416023254,
0.20661163330078125,
0.08369871973991394,
-0.27615344524383545,
-0.02497991919517517,
-0.15914322435855865,
-0.23093003034591675,
-0.24603374302387238,
-0.21841326355934143,
0.30612555146217346,
-0.3866722583770752,
-0.07583533972501755,
0.03054485097527504,
-0.0780559778213501,
0.2842031717300415,
-0.09656817466020584,
-0.16486823558807373,
0.04384393244981766,
0.04588361829519272,
-0.03450319543480873,
0.2962114214897156,
0.3410392701625824,
-0.20674952864646912,
0.2936117351055145,
0.17858462035655975,
-0.19233858585357666,
-0.1521163284778595,
0.3382795453071594,
-0.13352501392364502,
-0.4608364403247833,
-0.2183108776807785,
0.14148010313510895,
-0.3562161326408386,
-0.1443953514099121,
-0.3624759316444397,
0.1538495570421219,
0.3097899556159973,
0.02282024547457695,
0.17206412553787231,
-0.22800712287425995,
-0.26672810316085815,
-0.20966465771198273,
0.3349353075027466,
0.413993239402771,
-0.629957914352417,
-0.03406412899494171,
0.009003926068544388,
-0.14518077671527863,
-0.04055037349462509,
-0.14159806072711945,
-0.24556538462638855,
0.19928400218486786,
-0.3405478596687317,
-0.0453309640288353,
0.21649733185768127,
-0.42022547125816345,
-0.4441433250904083,
-0.16854634881019592,
0.12529750168323517,
-0.11091481149196625,
-0.17515423893928528,
-0.20349708199501038,
-0.14145663380622864,
-0.2409137785434723,
-0.034404441714286804,
-0.10398945212364197,
0.35563185811042786,
-0.27594301104545593,
0.010555427521467209,
-0.2586265206336975,
0.2859783172607422,
0.02397703379392624,
0.3473547101020813,
0.16709023714065552,
0.17056676745414734,
-0.14471858739852905,
0.2415366768836975,
0.1395954191684723,
0.22917866706848145,
0.3818243145942688,
0.39958512783050537,
-0.04075520485639572,
0.06783024221658707,
-0.3554355204105377,
0.2361394166946411,
0.19963905215263367,
0.11048871278762817,
-0.21813756227493286,
-0.21882708370685577,
-0.08761446923017502,
-0.303364098072052,
0.11933507770299911,
-0.31027349829673767,
-0.13299165666103363,
0.12945140898227692,
0.03859274089336395,
0.2131110429763794,
0.09577195346355438,
-0.4663136303424835,
0.3499904274940491,
-0.4069223403930664,
-0.14128878712654114,
-0.058003704994916916,
0.293509304523468,
0.034888532012701035,
-0.2915371358394623,
0.15582261979579926,
0.40537017583847046,
0.006877187639474869,
0.209044948220253,
-0.1675252914428711,
0.35726314783096313,
-0.002289308700710535,
0.053519852459430695,
0.01017593964934349,
0.2339305281639099,
-0.014951745048165321,
-0.3813081979751587,
-0.08861765265464783,
0.24359169602394104,
-0.020136922597885132,
0.39238831400871277,
0.05965684354305267,
-0.15043599903583527,
-0.011432535946369171,
0.15194715559482574,
0.25823986530303955,
0.042256273329257965,
0.02793661691248417,
0.14850760996341705,
-0.2899665832519531,
-0.3249174952507019,
0.08174948394298553,
0.17503705620765686,
0.4137941896915436,
-0.06898465752601624,
-0.045356541872024536,
0.26481661200523376,
0.6616378426551819,
0.18957334756851196,
0.258131742477417,
-0.03231579065322876,
-0.2894030511379242,
-0.23054149746894836,
0.07961664348840714,
0.32207781076431274,
0.6488980054855347,
0.2438473403453827,
0.13751955330371857,
-0.01953895576298237,
0.0290728360414505,
-0.05087879300117493,
0.09314184635877609,
0.28951001167297363,
0.20115144550800323,
0.009110011160373688,
0.14055980741977692,
-0.07023058831691742,
-0.29510730504989624,
-0.403723806142807,
-0.2366349995136261,
0.24070796370506287,
-0.3758877217769623,
0.08556917309761047,
-0.46892064809799194,
0.0179612934589386,
-0.06250941008329391,
-0.17489872872829437,
0.03854728862643242,
-0.23585179448127747,
0.03179813548922539,
-0.006152287125587463,
0.32732483744621277,
0.3230295777320862,
-0.08919046819210052,
0.03932097554206848,
-0.07239944487810135,
-0.03784937411546707,
-0.12088596820831299,
-0.11292653530836105,
-0.03572714328765869,
0.062337059527635574,
-0.11650748550891876,
-0.16801416873931885,
0.28391796350479126,
-0.1613452434539795,
0.012158488854765892,
-0.24474436044692993,
-0.07766074687242508,
-0.05575057864189148,
-0.0839788168668747,
0.1804465651512146,
0.302554190158844,
-0.005252324044704437,
0.03784164786338806,
0.49772903323173523,
0.10246827453374863,
-0.09017524868249893,
-0.025024177506566048,
-0.3056527376174927,
-0.26858946681022644,
-0.04945801943540573,
0.04156361147761345,
-0.038692690432071686,
-0.38624903559684753,
-0.3114897310733795,
-0.1225370466709137,
-0.0234318096190691,
-0.05276411026716232,
0.2603033483028412,
-0.05717632547020912,
0.33656108379364014,
0.2498967945575714,
-0.0012038061395287514,
-0.14497728645801544,
-0.3364512622356415,
0.28601232171058655,
-0.2275834083557129,
-0.13586358726024628,
0.2446359097957611,
0.09865471720695496,
0.08878929913043976,
-0.2059706151485443,
-0.07999272644519806,
-0.29563820362091064,
-0.18566125631332397,
0.009766928851604462,
-0.27933311462402344,
0.17252323031425476,
0.3939153552055359,
0.26691240072250366,
-0.10809693485498428,
-0.1625950038433075,
-0.2856827974319458,
0.15533947944641113,
0.0022992510348558426,
0.05637562647461891,
-0.027582809329032898,
-0.21050342917442322,
0.05933866277337074,
0.49965202808380127,
0.31262296438217163,
-0.03139529749751091,
0.1976722925901413,
0.08732429891824722,
0.31346020102500916,
-0.11091390997171402,
-0.3095366954803467,
-0.06568816304206848,
-0.09370730817317963,
0.023817721754312515,
-0.03895203769207001,
-0.05868712067604065,
0.0563325360417366,
-0.1147976890206337,
-0.35171911120414734,
-0.17571237683296204,
0.08908872306346893,
-0.46605634689331055,
-0.25097253918647766,
0.35271602869033813,
0.03232591226696968,
0.09263104945421219,
-0.18317987024784088,
0.03737412765622139,
-0.03151554986834526,
0.2269340604543686,
0.2647966742515564,
-0.008014373481273651,
-0.2861517071723938,
-0.2689981758594513,
-0.32849451899528503,
0.17671145498752594,
-0.019602172076702118,
0.08343567699193954,
-0.056036073714494705,
-0.08190861344337463,
0.21460631489753723,
-0.030951891094446182,
0.31660521030426025,
-0.2425742894411087,
-0.10246548056602478,
0.2960064113140106,
0.17426647245883942,
-0.24472549557685852,
-0.2624001204967499,
0.07736626267433167,
0.43362823128700256,
-0.010277170687913895,
-0.22696587443351746,
0.32885637879371643,
-0.12425508350133896,
0.29380324482917786,
-0.05935593321919441,
-0.0320555716753006,
-0.24894149601459503,
-0.6119396686553955,
-0.2218315303325653,
-0.20001079142093658,
-0.06047645956277847,
0.05041753500699997,
-0.041248008608818054,
-0.07661567628383636,
-0.13983455300331116,
0.04713200032711029,
-0.194413959980011,
0.15252526104450226,
-0.06425037235021591,
0.16256260871887207,
0.04008043184876442,
-0.08292637765407562,
0.22381794452667236,
0.1889655441045761,
0.26765257120132446,
0.08312869071960449,
0.0720391720533371,
-0.04065021872520447,
0.25873851776123047,
-0.02652018517255783,
0.40296462178230286,
-0.03832225501537323,
-0.4280846416950226,
0.258411705493927,
-0.10736162960529327,
0.038568101823329926,
-0.30332687497138977,
-0.42444494366645813,
0.18613620102405548,
-0.020258735865354538,
-0.16900014877319336,
-0.44462618231773376,
0.31402528285980225,
-0.10849003493785858,
0.0767274796962738,
0.30728650093078613,
0.1934778094291687,
-0.13115963339805603,
-0.18400825560092926,
0.07991615682840347,
0.6349184513092041,
0.018755976110696793,
-0.19823980331420898,
0.2286677360534668,
-0.11958099901676178,
0.38685303926467896,
-0.022336216643452644,
0.20206083357334137,
-0.29418444633483887,
-0.09807292371988297,
-0.07643700391054153,
-0.35777461528778076,
0.3474160134792328,
-0.3611295223236084,
-0.1808294653892517,
0.29320210218429565,
-0.4167741537094116,
0.10050661861896515,
-0.10240697115659714,
-0.15019802749156952,
-0.022465145215392113,
-0.011621709913015366,
-0.46916523575782776,
0.17434723675251007,
-0.04653492569923401,
0.4576161503791809,
-0.20186716318130493,
0.2161201387643814,
-0.12212537229061127,
0.2856065630912781,
-0.3551000952720642,
-0.015269814990460873,
0.17192775011062622,
0.3619866371154785,
0.22130440175533295,
-0.49322056770324707,
0.3124665915966034,
0.2506125867366791,
0.701914370059967,
-0.21087656915187836,
-0.3105003535747528,
0.2047661393880844,
-0.06287241727113724,
0.13651596009731293,
0.137094646692276,
0.02725825086236,
0.2963830530643463,
-0.12872694432735443,
-0.4204646348953247,
0.4916938543319702,
0.051268912851810455,
-0.17090463638305664,
-0.16529829800128937,
0.15654116868972778,
0.2567030191421509,
0.06423577666282654,
-0.0457475408911705,
0.2928618788719177,
0.4761689305305481,
-0.24344119429588318,
0.13332141935825348,
0.1992460936307907,
0.010753297246992588,
0.39203405380249023,
-0.4649341404438019,
-0.18169377744197845,
-0.03356460854411125,
0.31121256947517395,
-0.05457209050655365,
0.19402724504470825,
0.44246071577072144,
0.12265987694263458,
-0.3061818480491638,
-0.20078051090240479,
0.040281444787979126,
0.21455320715904236,
-0.08931047469377518,
0.036859359592199326,
0.06139475852251053,
0.44295334815979004,
-0.07782536000013351,
0.2563612163066864,
-0.24444077908992767,
0.00484524667263031,
-0.19543907046318054,
-0.23386259377002716,
-0.31000128388404846,
0.1696804165840149,
-0.1237458884716034,
0.07523886859416962,
-0.12487379461526871,
0.0912901759147644,
0.24267154932022095,
-0.18215236067771912,
-0.305799663066864,
-0.04383929818868637,
-0.17438261210918427,
-0.11848670244216919,
0.31012627482414246,
0.002640511840581894,
0.02417745068669319,
-0.13955995440483093,
0.07180650532245636,
-0.14982330799102783,
-0.2715736925601959,
-0.24189996719360352,
-0.06986840814352036,
0.12340797483921051,
-0.3389435410499573,
0.0014311373233795166,
0.10963264107704163,
-0.20920033752918243,
-0.12906420230865479,
0.0725250095129013,
0.09816470742225647,
0.4188312292098999,
0.1876380443572998,
0.4943273067474365,
-0.2714155316352844,
-0.2618200182914734,
-0.06218073517084122,
-0.13531410694122314,
0.14425188302993774,
0.17238059639930725,
0.16243377327919006,
0.3119773864746094,
0.18093377351760864,
0.16265465319156647,
-0.24454927444458008,
0.26949772238731384,
-0.1137123852968216,
0.1984565258026123,
-0.07457257062196732,
-0.3371649384498596,
0.1367076337337494,
-0.28786173462867737,
0.3894635736942291,
0.11454488337039948,
-0.2978850305080414,
-0.017462976276874542,
-0.01868050917983055,
0.17532773315906525,
-0.38673022389411926,
-0.001932784914970398,
0.4326791763305664,
0.13298359513282776,
0.06811526417732239,
0.1418979912996292,
0.16623899340629578,
0.26750481128692627,
0.049582283943891525,
0.33538222312927246,
0.30830681324005127,
-0.24250544607639313,
0.09439034759998322,
0.08167606592178345,
0.20100168883800507,
-0.02155054733157158,
0.34280890226364136,
0.3754015266895294,
0.17657619714736938,
0.7208772301673889,
0.05451569706201553,
0.5686507225036621,
0.36386123299598694,
0.32867714762687683,
-0.347176194190979,
-0.2505461275577545,
0.042829740792512894,
0.023863278329372406,
-0.1716947853565216,
-0.23953711986541748,
-0.032382041215896606,
0.40990379452705383,
-0.06653863191604614,
-0.08207321166992188,
-0.048695966601371765,
0.21866858005523682,
-0.0416208878159523,
-0.29106736183166504,
0.1275874227285385,
-0.1772882044315338,
0.03542041778564453,
-0.025494279339909554,
0.1504065841436386,
0.05539209395647049,
0.3049546182155609,
-0.1375565379858017,
0.11530596017837524,
-0.3034626543521881,
0.36417070031166077,
0.14019635319709778,
0.18010452389717102,
-0.06341836601495743,
-0.17347897589206696,
-0.18729235231876373,
0.19206297397613525,
-0.14456459879875183,
0.28027012944221497,
0.3614852726459503,
0.08609925210475922,
-0.05971195176243782,
-0.21715793013572693,
0.005218169651925564,
-0.21438008546829224,
-0.09383362531661987,
0.09429122507572174,
-0.12635348737239838,
0.04985116794705391,
0.05388767644762993,
0.15127578377723694,
-0.04152902588248253,
0.3163284361362457,
0.09317019581794739,
0.3417052626609802,
-0.6486791372299194,
0.453962117433548,
-0.1083960235118866,
-0.16456671059131622,
-0.14487741887569427,
0.26536044478416443,
-0.2542836666107178,
0.11568702012300491,
0.5022196769714355,
0.15221290290355682,
-0.0609009712934494,
-0.07922931760549545,
0.09342630207538605,
-0.13010863959789276,
-0.03402251377701759,
0.2952824831008911,
0.6282733082771301,
-0.014657107181847095,
-0.3205442428588867,
-0.5979547500610352,
-0.028494440019130707,
0.19745692610740662,
0.15408873558044434,
-0.05916740000247955,
0.022986015304923058,
-0.17340567708015442,
0.09743790328502655,
0.5992790460586548,
0.01231074333190918,
0.14288441836833954,
-0.18888810276985168,
-0.022329436615109444,
-0.03631378337740898,
-0.20034374296665192,
0.039611730724573135,
-0.1702980250120163,
-0.17548653483390808,
-0.1759909689426422,
-0.26754963397979736,
0.05747915804386139,
-0.3443874716758728,
-0.2861141562461853,
0.3108021020889282,
-0.0849909633398056,
0.6668404340744019,
-0.07581917196512222,
0.10378380864858627,
0.03771185129880905,
-0.10783460736274719,
-0.0504438541829586,
-0.13677401840686798,
-0.028219886124134064,
0.38818642497062683,
-0.27198296785354614,
0.282569944858551,
-0.4225834906101227,
0.12128372490406036,
-0.19451645016670227,
0.3887171149253845,
0.18560442328453064,
0.39308345317840576,
-0.44392842054367065,
0.028560349717736244,
-0.015144482254981995,
0.38074398040771484,
0.024590812623500824,
-0.23314383625984192,
-0.1389733850955963,
0.5134479999542236,
-0.5215813517570496,
0.1729912906885147,
0.3765718340873718,
-0.32888761162757874,
-0.42864060401916504,
-0.25178804993629456,
0.4945269525051117,
0.0622677281498909,
-0.31138187646865845,
-0.5640005469322205,
-0.16965770721435547,
0.5211136937141418,
0.03541000187397003,
-0.3440934717655182,
0.4603748619556427,
-0.2582399547100067,
0.338457852602005,
0.1661607176065445,
0.18442541360855103,
-0.03347652405500412,
0.2375447303056717,
-0.13262154161930084,
-0.09535417705774307
] |
https://github.com/huggingface/datasets/issues/4085 | datasets.set_progress_bar_enabled(False) not working in datasets v2 | Hi @virilo,
Please note that since `datasets` version 2.0.0, we have aligned with `transformers` the management of the progress bar (among other things):
- #3897
Now, you should update your code to use `datasets.logging.disable_progress_bar`.
You have more info in our docs: [Logging methods](https://huggingface.co/docs/datasets/package_reference/logging_methods) | ## Describe the bug
datasets.set_progress_bar_enabled(False) not working in datasets v2
## Steps to reproduce the bug
```python
datasets.set_progress_bar_enabled(False)
```
## Expected results
datasets not using any progress bar
## Actual results
AttributeError: module 'datasets' has no attribute 'set_progress_bar_enabled
## Environment info
datasets version 2
| 43 | datasets.set_progress_bar_enabled(False) not working in datasets v2
## Describe the bug
datasets.set_progress_bar_enabled(False) not working in datasets v2
## Steps to reproduce the bug
```python
datasets.set_progress_bar_enabled(False)
```
## Expected results
datasets not using any progress bar
## Actual results
AttributeError: module 'datasets' has no attribute 'set_progress_bar_enabled
## Environment info
datasets version 2
Hi @virilo,
Please note that since `datasets` version 2.0.0, we have aligned with `transformers` the management of the progress bar (among other things):
- #3897
Now, you should update your code to use `datasets.logging.disable_progress_bar`.
You have more info in our docs: [Logging methods](https://huggingface.co/docs/datasets/package_reference/logging_methods) | [
-0.23593193292617798,
-0.07234673202037811,
-0.09013853967189789,
-0.15511107444763184,
0.18768924474716187,
0.007314801216125488,
0.39803749322891235,
0.24451754987239838,
-0.2226463407278061,
0.1619221419095993,
0.14099454879760742,
0.39943814277648926,
-0.09014040976762772,
0.3656436800956726,
-0.09184002876281738,
0.07129350304603577,
0.004721388220787048,
0.2816920280456543,
-0.14084210991859436,
0.12925264239311218,
-0.19865424931049347,
-0.009302588179707527,
-0.4424252510070801,
-0.03224039822816849,
-0.20784786343574524,
0.0495622418820858,
0.2396165132522583,
-0.04465711861848831,
-0.10275665670633316,
-0.5779529213905334,
0.2930809557437897,
0.15612399578094482,
0.0162094384431839,
0.49228331446647644,
-0.00010606739670038223,
-0.056429825723171234,
0.468219518661499,
0.12401464581489563,
-0.4025367498397827,
-0.175571009516716,
-0.28369808197021484,
-0.49617546796798706,
0.3178558051586151,
-0.16943641006946564,
0.04775200039148331,
-0.3720111846923828,
-0.11818097531795502,
-0.30531400442123413,
0.39666640758514404,
0.1138351783156395,
0.28326430916786194,
0.3174884617328644,
-0.03266146034002304,
0.011583393439650536,
0.08830495923757553,
0.03801428899168968,
-0.27107489109039307,
0.12194237112998962,
0.17622414231300354,
-0.0022034430876374245,
-0.12452470511198044,
0.43869298696517944,
-0.1371801644563675,
0.2957538962364197,
0.17583289742469788,
0.00008223112672567368,
-0.014284968376159668,
-0.15268482267856598,
0.09360939264297485,
0.14588317275047302,
0.3141636252403259,
-0.5600680708885193,
-0.33638012409210205,
-0.4252548813819885,
-0.13028939068317413,
-0.27573466300964355,
0.05659487098455429,
-0.08150719106197357,
0.02997549995779991,
0.1845872402191162,
-0.43604007363319397,
-0.2174416184425354,
-0.07866408675909042,
-0.040668390691280365,
0.0036513209342956543,
-0.08339045941829681,
-0.26847851276397705,
0.003865256905555725,
-0.1457074135541916,
0.10674026608467102,
-0.1543055772781372,
0.11792165786027908,
-0.07477027177810669,
-0.02903849259018898,
-0.3898504972457886,
0.04472651332616806,
0.3717248737812042,
0.2988680899143219,
0.10448945313692093,
0.43198949098587036,
-0.29469990730285645,
0.1916930079460144,
-0.044480711221694946,
0.10082121193408966,
-0.03187887743115425,
0.32509034872055054,
0.32739609479904175,
0.0001896815374493599,
0.5101644992828369,
0.03313933312892914,
0.13781318068504333,
0.07155643403530121,
0.31481096148490906,
-0.506351888179779,
0.44174474477767944,
0.14533965289592743,
0.4841933846473694,
-0.18573243916034698,
-0.3466016352176666,
0.08904939889907837,
-0.08804808557033539,
-0.10373874008655548,
0.2907007336616516,
0.18478842079639435,
-0.0013933151494711637,
-0.3008594214916229,
0.05902845412492752,
0.23357366025447845,
-0.17305365204811096,
-0.09713652729988098,
-0.2353169322013855,
0.00785965844988823,
-0.27880746126174927,
0.2575812041759491,
0.18726448714733124,
-0.2166883945465088,
0.21625883877277374,
0.18009544909000397,
-0.2659950256347656,
0.1816929280757904,
0.14505845308303833,
-0.16063906252384186,
0.2524632215499878,
0.221455916762352,
0.0374775193631649,
0.2958587110042572,
0.12183304131031036,
-0.054539188742637634,
-0.08661089092493057,
0.15360184013843536,
0.11242279410362244,
-0.3269970118999481,
-0.23646189272403717,
0.21518003940582275,
-0.38508766889572144,
-0.10395124554634094,
-0.3556153476238251,
0.30333027243614197,
0.22110535204410553,
0.17947155237197876,
0.24655187129974365,
-0.09630845487117767,
-0.4064820408821106,
-0.025707537308335304,
0.390931099653244,
0.3837336301803589,
-0.44472837448120117,
-0.07219910621643066,
0.022065773606300354,
-0.29133740067481995,
-0.033959902822971344,
-0.13392534852027893,
-0.06949979066848755,
0.15249870717525482,
-0.2073878049850464,
-0.025733906775712967,
0.08576461672782898,
-0.21054144203662872,
-0.3332233428955078,
-0.11576760560274124,
0.03735284507274628,
-0.04020408168435097,
-0.01781482994556427,
-0.10009162127971649,
-0.17240354418754578,
-0.11923490464687347,
-0.2559366524219513,
0.1075703501701355,
0.3000929355621338,
-0.02801828272640705,
-0.10981625318527222,
-0.21811534464359283,
0.17827165126800537,
0.23022212088108063,
0.10989253222942352,
-0.012430481612682343,
0.06354276835918427,
-0.18145743012428284,
0.2049219310283661,
0.10038620233535767,
0.27519896626472473,
0.2529281973838806,
0.3099544942378998,
-0.13083074986934662,
-0.04250010848045349,
-0.3013128638267517,
-0.06772122532129288,
0.23319566249847412,
0.0805320292711258,
-0.13972629606723785,
-0.14679908752441406,
-0.07681886851787567,
-0.21077704429626465,
-0.010165899060666561,
-0.36791253089904785,
-0.1824750304222107,
0.14687462151050568,
0.03846249729394913,
0.25519102811813354,
0.1479802280664444,
-0.4285931885242462,
0.4100486636161804,
-0.3779999017715454,
0.016479764133691788,
-0.06439407169818878,
0.3533789813518524,
0.20974770188331604,
-0.37128162384033203,
0.06579598039388657,
0.2985576093196869,
0.06735435128211975,
0.1690230518579483,
-0.07871674746274948,
0.3256551921367645,
-0.11923842132091522,
0.23598480224609375,
-0.006821718066930771,
0.05642350763082504,
0.07459663599729538,
-0.2327907234430313,
-0.09820234030485153,
0.3465479612350464,
-0.07661328464746475,
0.22201815247535706,
-0.1918134093284607,
0.007254436612129211,
0.09763947129249573,
0.28042495250701904,
0.04412572830915451,
-0.029197227209806442,
0.03735751658678055,
-0.01230958104133606,
-0.31276217103004456,
-0.36305975914001465,
0.15630777180194855,
-0.03176769241690636,
0.4733543395996094,
-0.16774460673332214,
-0.03072231262922287,
0.10081563889980316,
0.5851288437843323,
0.31315645575523376,
0.20262035727500916,
0.07492439448833466,
-0.40312495827674866,
-0.10317577421665192,
0.2514056861400604,
0.12582457065582275,
0.4193374514579773,
0.30282217264175415,
0.17959263920783997,
0.21272331476211548,
-0.030477352440357208,
0.021066874265670776,
-0.027725793421268463,
0.03035985678434372,
0.017903145402669907,
0.1195061206817627,
0.2531600594520569,
-0.16178780794143677,
-0.35880357027053833,
-0.09550464153289795,
-0.30313605070114136,
0.10620293766260147,
-0.3169020116329193,
-0.09834638983011246,
-0.3264772891998291,
-0.10167208313941956,
-0.10088324546813965,
-0.11768914014101028,
-0.16223664581775665,
-0.1303005963563919,
0.0806710347533226,
0.2903747260570526,
0.18815524876117706,
0.3797086477279663,
0.16554312407970428,
-0.09845252335071564,
0.05123281478881836,
0.04276387766003609,
-0.29425013065338135,
0.024014027789235115,
-0.026333019137382507,
0.1390259712934494,
-0.0797034502029419,
0.023352360352873802,
0.262097030878067,
-0.16951364278793335,
0.05067615956068039,
-0.29945245385169983,
-0.05753367766737938,
0.06274039298295975,
-0.20431949198246002,
0.21489602327346802,
0.1689586043357849,
0.06505134701728821,
0.019253551959991455,
0.4169881343841553,
0.23215147852897644,
-0.13193145394325256,
-0.0025759730488061905,
-0.1399824172258377,
-0.2034393548965454,
0.029935386031866074,
-0.17080466449260712,
0.055932722985744476,
-0.2710748016834259,
-0.3361988663673401,
0.10141140222549438,
-0.06516170501708984,
-0.08239877223968506,
0.2779213786125183,
-0.013692286796867847,
0.2863859236240387,
0.05775768309831619,
0.012702498584985733,
-0.04972277209162712,
-0.4803435504436493,
0.3082590401172638,
-0.21559211611747742,
-0.12658753991127014,
0.1972852647304535,
0.13291990756988525,
-0.1637003868818283,
-0.1773642748594284,
-0.27285507321357727,
-0.3652709424495697,
-0.45131173729896545,
0.1295628696680069,
-0.06263383477926254,
0.2751610279083252,
0.270097017288208,
0.03612052649259567,
-0.057723626494407654,
-0.1513528823852539,
-0.44293859601020813,
0.2117203176021576,
0.03387855365872383,
0.114808090031147,
-0.10330646485090256,
0.03574485704302788,
0.1227102279663086,
0.36948686838150024,
0.48635154962539673,
-0.13663595914840698,
0.3004583716392517,
-0.08623317629098892,
0.32657039165496826,
-0.23794609308242798,
-0.3790707290172577,
-0.07000614702701569,
0.005278304219245911,
0.04473700374364853,
0.01484362781047821,
0.13461646437644958,
0.20225685834884644,
-0.16073673963546753,
-0.08255285024642944,
-0.10715579241514206,
-0.08590557426214218,
-0.4936635196208954,
-0.01582883670926094,
0.15908339619636536,
0.004201512783765793,
0.21470123529434204,
-0.10749681293964386,
-0.05987735092639923,
-0.11014531552791595,
0.2301865667104721,
0.1686343401670456,
-0.012266402132809162,
-0.2767869830131531,
0.05438660830259323,
-0.451455295085907,
0.21757292747497559,
-0.0007883787620812654,
-0.08759618550539017,
-0.1243622750043869,
-0.08943259716033936,
0.17400240898132324,
0.08228891342878342,
0.2981676161289215,
-0.21460215747356415,
0.19262263178825378,
0.03615594655275345,
-0.061489276587963104,
-0.44722774624824524,
-0.20636658370494843,
0.0759202092885971,
0.435943067073822,
0.03556543588638306,
0.1641083061695099,
0.06908463686704636,
-0.16676531732082367,
0.12978379428386688,
0.08581095188856125,
0.09143824875354767,
-0.4225972294807434,
-0.6102352142333984,
-0.02719029225409031,
-0.20852629840373993,
0.023535117506980896,
-0.04990377277135849,
0.0018768222071230412,
-0.21335875988006592,
-0.3458183705806732,
-0.020732631906867027,
-0.2861117124557495,
0.0717983990907669,
0.1529000699520111,
0.1571514904499054,
-0.06735463440418243,
0.09860721230506897,
0.20183928310871124,
0.13689649105072021,
0.090150386095047,
0.1770051121711731,
0.17491956055164337,
-0.22336721420288086,
0.12479022145271301,
-0.046393271535634995,
0.19024091958999634,
0.05538364499807358,
-0.4118250012397766,
0.3279159367084503,
-0.03633701056241989,
0.27473706007003784,
-0.3666459023952484,
-0.24821534752845764,
0.29663515090942383,
0.15432652831077576,
-0.2115878313779831,
-0.13530558347702026,
0.4127584397792816,
0.08210685849189758,
0.09585045278072357,
0.1938665211200714,
0.1907663345336914,
-0.12882652878761292,
-0.317721426486969,
-0.06523624807596207,
0.43605703115463257,
-0.06231646239757538,
-0.1593932956457138,
0.31155866384506226,
-0.12168991565704346,
0.4204396903514862,
0.13473032414913177,
0.1734217256307602,
-0.3830419182777405,
-0.1321612298488617,
0.0388040617108345,
-0.2071860134601593,
0.3042638897895813,
-0.3759358525276184,
-0.22102835774421692,
0.2340182214975357,
-0.2998858094215393,
0.07022781670093536,
-0.33730149269104004,
0.0945284366607666,
-0.20623959600925446,
-0.12855245172977448,
-0.6575957536697388,
0.24792328476905823,
0.023681819438934326,
0.3438080847263336,
-0.07068654149770737,
0.142331063747406,
0.00812562182545662,
0.1738256812095642,
-0.2713542580604553,
0.07793939858675003,
0.23462562263011932,
0.0367286391556263,
0.25881439447402954,
-0.4667280912399292,
0.16412253677845,
0.07808830589056015,
0.642916202545166,
-0.2006950080394745,
-0.27093788981437683,
0.07004538178443909,
-0.2852918803691864,
0.3154596984386444,
0.005533820018172264,
-0.04345175623893738,
0.2120654582977295,
-0.12518343329429626,
-0.38878679275512695,
0.3087335526943207,
0.13460667431354523,
-0.22748686373233795,
0.01604156196117401,
0.17484986782073975,
0.08456333726644516,
-0.09859856963157654,
0.2001979649066925,
0.13294617831707,
0.5220543742179871,
-0.2265430986881256,
0.2202579826116562,
0.24647299945354462,
0.0025029180105775595,
0.32641837000846863,
-0.3628041446208954,
-0.26662397384643555,
-0.16465765237808228,
0.41897186636924744,
-0.3261432945728302,
0.26853978633880615,
0.3840004801750183,
0.27673590183258057,
-0.29637426137924194,
-0.18580862879753113,
0.14594489336013794,
0.33328062295913696,
-0.17895156145095825,
0.06634549796581268,
0.21689267456531525,
0.39212411642074585,
0.012742539867758751,
0.2559667229652405,
-0.3954819440841675,
-0.029993489384651184,
-0.14359267055988312,
-0.17191937565803528,
-0.32705357670783997,
-0.0844719409942627,
-0.18353357911109924,
0.0505690798163414,
-0.1252671778202057,
0.1601923704147339,
0.28872522711753845,
-0.16427697241306305,
-0.35535240173339844,
-0.07198327779769897,
-0.12786456942558289,
-0.11299385130405426,
0.1887226104736328,
-0.012141026556491852,
0.0755818784236908,
-0.18049712479114532,
0.13415414094924927,
-0.06227215379476547,
-0.42122456431388855,
-0.30500560998916626,
-0.14111927151679993,
0.037730053067207336,
-0.11949319392442703,
-0.20821601152420044,
0.05486341193318367,
-0.12693727016448975,
-0.2278636395931244,
-0.17584872245788574,
0.21859894692897797,
0.48992782831192017,
0.04305289685726166,
0.41130173206329346,
-0.15727926790714264,
-0.06541743129491806,
-0.21648187935352325,
-0.3234781324863434,
0.011921830475330353,
-0.09708403050899506,
0.04866410791873932,
0.15617859363555908,
0.0762389674782753,
0.2280777096748352,
-0.06760257482528687,
0.10154269635677338,
0.2890796661376953,
0.2202039659023285,
-0.1447421908378601,
-0.21534253656864166,
0.06634663045406342,
-0.15973633527755737,
0.5660752058029175,
0.05163901671767235,
-0.11957106739282608,
-0.12066227942705154,
0.06889481842517853,
0.26915714144706726,
-0.2559465169906616,
0.18230058252811432,
0.3646943271160126,
0.15602566301822662,
0.19591347873210907,
0.11286472529172897,
-0.060543324798345566,
0.32165032625198364,
0.09264156967401505,
0.3314318358898163,
0.18842005729675293,
-0.3259958028793335,
0.11835379898548126,
0.16056668758392334,
-0.062266431748867035,
-0.02158573642373085,
0.4537460207939148,
0.3470786213874817,
0.1856958270072937,
0.5109157562255859,
0.03901190683245659,
0.4232026934623718,
0.05369434505701065,
0.3135605752468109,
-0.23720267415046692,
-0.21319687366485596,
-0.14045803248882294,
-0.010575398802757263,
-0.15487661957740784,
-0.3701728582382202,
-0.1288687139749527,
0.40269431471824646,
-0.2590153217315674,
-0.09885043650865555,
-0.11373625695705414,
0.1434783935546875,
0.07706650346517563,
-0.2005295306444168,
0.157976895570755,
-0.047853611409664154,
0.017789125442504883,
-0.04909748211503029,
-0.03646157309412956,
0.00528334453701973,
0.24557901918888092,
-0.10161422193050385,
0.031061910092830658,
-0.41368722915649414,
0.09027494490146637,
0.2147049605846405,
0.3202892541885376,
0.15740376710891724,
-0.19298624992370605,
-0.06261715292930603,
0.2179446667432785,
-0.06206003949046135,
0.48793989419937134,
0.22280944883823395,
0.17733082175254822,
0.04705292731523514,
-0.09595755487680435,
0.006345744244754314,
-0.09493197500705719,
-0.19611185789108276,
0.18359346687793732,
-0.3101843297481537,
-0.05172649398446083,
0.07960352301597595,
0.21998001635074615,
-0.1488206386566162,
0.2995736300945282,
-0.11405861377716064,
0.29483187198638916,
-0.6678247451782227,
0.5315294861793518,
-0.11642006039619446,
0.005637362599372864,
0.023579739034175873,
-0.11355746537446976,
-0.1943308711051941,
0.11344049125909805,
0.4894884526729584,
0.09069186449050903,
0.05980198085308075,
-0.3127071261405945,
0.1196552962064743,
-0.22293800115585327,
-0.004634365439414978,
0.27725866436958313,
0.4040026068687439,
0.008323605172336102,
-0.08919018507003784,
-0.567700982093811,
-0.14209187030792236,
0.15867741405963898,
0.0691906213760376,
-0.06671525537967682,
0.005673583596944809,
-0.29770687222480774,
0.258915513753891,
0.47209078073501587,
0.06862477958202362,
0.18329322338104248,
-0.2828860282897949,
-0.11003795266151428,
-0.022517677396535873,
-0.20655886828899384,
-0.06809387356042862,
-0.08831082284450531,
-0.21512028574943542,
-0.03519643470644951,
-0.1018851101398468,
0.11631806939840317,
-0.10862328112125397,
-0.04790929704904556,
0.15580780804157257,
-0.14256680011749268,
0.6796190738677979,
0.02752605266869068,
-0.019137732684612274,
0.01970137283205986,
-0.02419199049472809,
-0.1573345810174942,
-0.08220606297254562,
-0.33630555868148804,
0.23307013511657715,
-0.3495059907436371,
0.47009849548339844,
-0.27157148718833923,
0.02621365524828434,
-0.18881744146347046,
0.4098261296749115,
0.17843157052993774,
0.17605528235435486,
-0.07218082249164581,
0.14896908402442932,
0.07128649204969406,
0.19252309203147888,
-0.0577969029545784,
-0.1771075427532196,
-0.059111110866069794,
0.43963512778282166,
-0.33266663551330566,
-0.10878677666187286,
0.35504090785980225,
-0.3885424733161926,
-0.31849631667137146,
-0.13276295363903046,
0.41150298714637756,
0.20684632658958435,
-0.4316764771938324,
-0.44640809297561646,
-0.08409382402896881,
0.31521761417388916,
-0.0502951443195343,
-0.17257224023342133,
0.42083248496055603,
-0.22168107330799103,
0.22498638927936554,
0.0956319272518158,
0.18440201878547668,
0.20131856203079224,
0.18534377217292786,
0.0657867044210434,
-0.07987263798713684
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.